@kozou/svelte-ui 0.0.1 → 0.1.0

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.
Files changed (119) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +108 -1
  3. package/build/client/_app/immutable/assets/0.Cg4B63gQ.css +2 -0
  4. package/build/client/_app/immutable/assets/0.Cg4B63gQ.css.br +0 -0
  5. package/build/client/_app/immutable/assets/0.Cg4B63gQ.css.gz +0 -0
  6. package/build/client/_app/immutable/chunks/BpIM_fT8.js +2 -0
  7. package/build/client/_app/immutable/chunks/BpIM_fT8.js.br +0 -0
  8. package/build/client/_app/immutable/chunks/BpIM_fT8.js.gz +0 -0
  9. package/build/client/_app/immutable/chunks/D4orYVgu.js +4 -0
  10. package/build/client/_app/immutable/chunks/D4orYVgu.js.br +0 -0
  11. package/build/client/_app/immutable/chunks/D4orYVgu.js.gz +0 -0
  12. package/build/client/_app/immutable/chunks/DdEzykkf.js +1 -0
  13. package/build/client/_app/immutable/chunks/DdEzykkf.js.br +0 -0
  14. package/build/client/_app/immutable/chunks/DdEzykkf.js.gz +0 -0
  15. package/build/client/_app/immutable/chunks/Dq0SIjgq.js +214 -0
  16. package/build/client/_app/immutable/chunks/Dq0SIjgq.js.br +0 -0
  17. package/build/client/_app/immutable/chunks/Dq0SIjgq.js.gz +0 -0
  18. package/build/client/_app/immutable/chunks/kNaey6uv.js +1 -0
  19. package/build/client/_app/immutable/chunks/kNaey6uv.js.br +0 -0
  20. package/build/client/_app/immutable/chunks/kNaey6uv.js.gz +0 -0
  21. package/build/client/_app/immutable/chunks/xihTtKlq.js +1 -0
  22. package/build/client/_app/immutable/chunks/xihTtKlq.js.br +1 -0
  23. package/build/client/_app/immutable/chunks/xihTtKlq.js.gz +0 -0
  24. package/build/client/_app/immutable/entry/app.B2E2jsYG.js +2 -0
  25. package/build/client/_app/immutable/entry/app.B2E2jsYG.js.br +0 -0
  26. package/build/client/_app/immutable/entry/app.B2E2jsYG.js.gz +0 -0
  27. package/build/client/_app/immutable/entry/start.Ccv3-hR2.js +1 -0
  28. package/build/client/_app/immutable/entry/start.Ccv3-hR2.js.br +0 -0
  29. package/build/client/_app/immutable/entry/start.Ccv3-hR2.js.gz +0 -0
  30. package/build/client/_app/immutable/nodes/0.C77vZJGR.js +1 -0
  31. package/build/client/_app/immutable/nodes/0.C77vZJGR.js.br +0 -0
  32. package/build/client/_app/immutable/nodes/0.C77vZJGR.js.gz +0 -0
  33. package/build/client/_app/immutable/nodes/1.9-mDK_1B.js +1 -0
  34. package/build/client/_app/immutable/nodes/1.9-mDK_1B.js.br +0 -0
  35. package/build/client/_app/immutable/nodes/1.9-mDK_1B.js.gz +0 -0
  36. package/build/client/_app/immutable/nodes/2.DKSRkbg2.js +1 -0
  37. package/build/client/_app/immutable/nodes/2.DKSRkbg2.js.br +0 -0
  38. package/build/client/_app/immutable/nodes/2.DKSRkbg2.js.gz +0 -0
  39. package/build/client/_app/immutable/nodes/3.BRseKH3J.js +1 -0
  40. package/build/client/_app/immutable/nodes/3.BRseKH3J.js.br +0 -0
  41. package/build/client/_app/immutable/nodes/3.BRseKH3J.js.gz +0 -0
  42. package/build/client/_app/immutable/nodes/4.D1ErMjLn.js +1 -0
  43. package/build/client/_app/immutable/nodes/4.D1ErMjLn.js.br +0 -0
  44. package/build/client/_app/immutable/nodes/4.D1ErMjLn.js.gz +0 -0
  45. package/build/client/_app/immutable/nodes/5.U1CG0AZz.js +1 -0
  46. package/build/client/_app/immutable/nodes/5.U1CG0AZz.js.br +0 -0
  47. package/build/client/_app/immutable/nodes/5.U1CG0AZz.js.gz +0 -0
  48. package/build/client/_app/immutable/nodes/6.BqfsXcpL.js +1 -0
  49. package/build/client/_app/immutable/nodes/6.BqfsXcpL.js.br +0 -0
  50. package/build/client/_app/immutable/nodes/6.BqfsXcpL.js.gz +0 -0
  51. package/build/client/_app/immutable/nodes/7.Bfhyc_gZ.js +1 -0
  52. package/build/client/_app/immutable/nodes/7.Bfhyc_gZ.js.br +0 -0
  53. package/build/client/_app/immutable/nodes/7.Bfhyc_gZ.js.gz +0 -0
  54. package/build/client/_app/version.json +1 -0
  55. package/build/client/_app/version.json.br +0 -0
  56. package/build/client/_app/version.json.gz +0 -0
  57. package/build/env.js +94 -0
  58. package/build/handler.js +1494 -0
  59. package/build/index.js +345 -0
  60. package/build/server/chunks/0-Cpki24QE.js +24 -0
  61. package/build/server/chunks/0-Cpki24QE.js.map +1 -0
  62. package/build/server/chunks/1-C_Zl16E8.js +9 -0
  63. package/build/server/chunks/1-C_Zl16E8.js.map +1 -0
  64. package/build/server/chunks/2-Bb7ROZP0.js +35 -0
  65. package/build/server/chunks/2-Bb7ROZP0.js.map +1 -0
  66. package/build/server/chunks/3-dXQmFZGn.js +71 -0
  67. package/build/server/chunks/3-dXQmFZGn.js.map +1 -0
  68. package/build/server/chunks/4-Dn5qQ29L.js +54 -0
  69. package/build/server/chunks/4-Dn5qQ29L.js.map +1 -0
  70. package/build/server/chunks/5-CKRn1yVS.js +69 -0
  71. package/build/server/chunks/5-CKRn1yVS.js.map +1 -0
  72. package/build/server/chunks/6-C7PGuXlN.js +70 -0
  73. package/build/server/chunks/6-C7PGuXlN.js.map +1 -0
  74. package/build/server/chunks/7-BtKcX-UD.js +66 -0
  75. package/build/server/chunks/7-BtKcX-UD.js.map +1 -0
  76. package/build/server/chunks/_layout.svelte-DcwZs9VT.js +15 -0
  77. package/build/server/chunks/_layout.svelte-DcwZs9VT.js.map +1 -0
  78. package/build/server/chunks/_page.svelte-69okwN_x.js +70 -0
  79. package/build/server/chunks/_page.svelte-69okwN_x.js.map +1 -0
  80. package/build/server/chunks/_page.svelte-7DhzytBp.js +79 -0
  81. package/build/server/chunks/_page.svelte-7DhzytBp.js.map +1 -0
  82. package/build/server/chunks/_page.svelte-BpS5HgaB.js +78 -0
  83. package/build/server/chunks/_page.svelte-BpS5HgaB.js.map +1 -0
  84. package/build/server/chunks/_page.svelte-BywGr3Tk.js +51 -0
  85. package/build/server/chunks/_page.svelte-BywGr3Tk.js.map +1 -0
  86. package/build/server/chunks/_page.svelte-ClFWSFQK.js +70 -0
  87. package/build/server/chunks/_page.svelte-ClFWSFQK.js.map +1 -0
  88. package/build/server/chunks/_page.svelte-Dfaz3pC_.js +86 -0
  89. package/build/server/chunks/_page.svelte-Dfaz3pC_.js.map +1 -0
  90. package/build/server/chunks/adapter-DSZ-_PM_.js +273 -0
  91. package/build/server/chunks/adapter-DSZ-_PM_.js.map +1 -0
  92. package/build/server/chunks/app-C1bzfcjj.js +12 -0
  93. package/build/server/chunks/app-C1bzfcjj.js.map +1 -0
  94. package/build/server/chunks/client-nr13Vsqj.js +69 -0
  95. package/build/server/chunks/client-nr13Vsqj.js.map +1 -0
  96. package/build/server/chunks/dev-yRSoS_kM.js +4498 -0
  97. package/build/server/chunks/dev-yRSoS_kM.js.map +1 -0
  98. package/build/server/chunks/error.svelte-B8LolEv3.js +68 -0
  99. package/build/server/chunks/error.svelte-B8LolEv3.js.map +1 -0
  100. package/build/server/chunks/hooks.server-BgTiHdgV.js +11706 -0
  101. package/build/server/chunks/hooks.server-BgTiHdgV.js.map +1 -0
  102. package/build/server/chunks/index-5kYmxIr9.js +191 -0
  103. package/build/server/chunks/index-5kYmxIr9.js.map +1 -0
  104. package/build/server/chunks/index-DBqjc0Yf.js +77 -0
  105. package/build/server/chunks/index-DBqjc0Yf.js.map +1 -0
  106. package/build/server/chunks/internal-Dtmf8fV4.js +1759 -0
  107. package/build/server/chunks/internal-Dtmf8fV4.js.map +1 -0
  108. package/build/server/chunks/list-params-DjWk7B1o.js +44 -0
  109. package/build/server/chunks/list-params-DjWk7B1o.js.map +1 -0
  110. package/build/server/chunks/widget-registry-Bfc0OPDn.js +242 -0
  111. package/build/server/chunks/widget-registry-Bfc0OPDn.js.map +1 -0
  112. package/build/server/chunks/zod-from-table-HRMJdgEv.js +7936 -0
  113. package/build/server/chunks/zod-from-table-HRMJdgEv.js.map +1 -0
  114. package/build/server/index.js +4447 -0
  115. package/build/server/index.js.map +1 -0
  116. package/build/server/manifest.js +86 -0
  117. package/build/server/manifest.js.map +1 -0
  118. package/build/shims.js +32 -0
  119. package/package.json +65 -4
@@ -0,0 +1,1759 @@
1
+ import { createRequire } from 'node:module';
2
+ import { a5 as ssr_context, _ as run$1, a0 as setContext, U as noop$1, C as hasContext, x as getContext, w as getAllContexts, v as getAbortSignal, j as createContext, S as lifecycle_function_unavailable, r as experimental_async_required, A as get_render_context, aa as uneval, E as hydratable_serialization_failed, D as DevalueError, P as is_primitive, B as get_type, O as is_plain_object, p as enumerable_symbols, a8 as stringify_key, a9 as stringify_string, ac as valid_array_indices, R as is_valid_array_len, M as MAX_ARRAY_INDEX, Q as is_valid_array_index, Z as render, $ as set, L as LEGACY_PROPS, t as get, s as flushSync, l as define_property, T as mutable_source, K as init_operations, y as get_first_child, z as get_next_sibling, H as HYDRATION_ERROR, a4 as set_hydrating, a3 as set_hydrate_node, I as hydration_failed, g as clear_text_content, i as component_root, F as hydrate_node, k as create_text, f as boundary, c as array_from, N as is_passive_event, a2 as set_active_reaction, a1 as set_active_effect, b as active_reaction, a as active_effect, m as derived, G as hydrating, W as push, h as component_context, J as hydration_mismatch, V as pop } from './dev-yRSoS_kM.js';
3
+ import { H as HttpError, S as SvelteKitError } from './index-DBqjc0Yf.js';
4
+ import 'clsx';
5
+
6
+ //#region \0rolldown/runtime.js
7
+ var __create = Object.create;
8
+ var __defProp = Object.defineProperty;
9
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
10
+ var __getOwnPropNames = Object.getOwnPropertyNames;
11
+ var __getProtoOf = Object.getPrototypeOf;
12
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
13
+ var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
14
+ var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
15
+ var __exportAll = (all, no_symbols) => {
16
+ let target = {};
17
+ for (var name in all) __defProp(target, name, {
18
+ get: all[name],
19
+ enumerable: true
20
+ });
21
+ __defProp(target, Symbol.toStringTag, { value: "Module" });
22
+ return target;
23
+ };
24
+ var __copyProps = (to, from, except, desc) => {
25
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
26
+ key = keys[i];
27
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
28
+ get: ((k) => from[k]).bind(null, key),
29
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
30
+ });
31
+ }
32
+ return to;
33
+ };
34
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(__defProp(target, "default", {
35
+ value: mod,
36
+ enumerable: true
37
+ }) , mod));
38
+ var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
39
+ var __require = /* @__PURE__ */ createRequire(import.meta.url);
40
+
41
+ //#region ../../node_modules/.pnpm/@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.55.9_vite@8.0.14_@type_260c3daced0e24b679dd557260bbc4f1/node_modules/@sveltejs/kit/src/runtime/app/paths/internal/server.js
42
+ var base = "";
43
+ var assets = base;
44
+ var app_dir = "_app";
45
+ var initial = {
46
+ base,
47
+ assets
48
+ };
49
+ /**
50
+ * @param {{ base: string, assets: string }} paths
51
+ */
52
+ function override(paths) {
53
+ base = paths.base;
54
+ assets = paths.assets;
55
+ }
56
+ function reset() {
57
+ base = initial.base;
58
+ assets = initial.assets;
59
+ }
60
+ /**
61
+ * `$env/dynamic/public`
62
+ * @type {Record<string, string>}
63
+ */
64
+ var public_env = {};
65
+ /** @type {(environment: Record<string, string>) => void} */
66
+ function set_private_env(environment) {}
67
+ /** @type {(environment: Record<string, string>) => void} */
68
+ function set_public_env(environment) {
69
+ public_env = environment;
70
+ }
71
+ //#endregion
72
+ //#region ../../node_modules/.pnpm/svelte@5.55.9/node_modules/svelte/src/internal/server/hydratable.js
73
+ /** @import { HydratableLookupEntry } from '#server' */
74
+ /**
75
+ * @template T
76
+ * @param {string} key
77
+ * @param {() => T} fn
78
+ * @returns {T}
79
+ */
80
+ function hydratable(key, fn) {
81
+ experimental_async_required();
82
+ const { hydratable } = get_render_context();
83
+ let entry = hydratable.lookup.get(key);
84
+ if (entry !== void 0) return entry.value;
85
+ const value = fn();
86
+ entry = encode(key, value, hydratable.unresolved_promises);
87
+ hydratable.lookup.set(key, entry);
88
+ return value;
89
+ }
90
+ /**
91
+ * @param {string} key
92
+ * @param {any} value
93
+ * @param {Map<Promise<any>, string>} [unresolved]
94
+ */
95
+ function encode(key, value, unresolved) {
96
+ /** @type {HydratableLookupEntry} */
97
+ const entry = {
98
+ value,
99
+ serialized: ""
100
+ };
101
+ let uid = 1;
102
+ entry.serialized = uneval(entry.value, (value, uneval) => {
103
+ if (is_promise(value)) {
104
+ const placeholder = `"${uid++}"`;
105
+ const p = value.then((v) => {
106
+ entry.serialized = entry.serialized.replace(placeholder, () => `r(${uneval(v)})`);
107
+ }).catch((devalue_error) => hydratable_serialization_failed(key, serialization_stack(entry.stack, devalue_error?.stack)));
108
+ p.catch(() => {}).finally(() => unresolved?.delete(p));
109
+ (entry.promises ??= []).push(p);
110
+ return placeholder;
111
+ }
112
+ });
113
+ return entry;
114
+ }
115
+ /**
116
+ * @param {any} value
117
+ * @returns {value is Promise<any>}
118
+ */
119
+ function is_promise(value) {
120
+ return Object.prototype.toString.call(value) === "[object Promise]";
121
+ }
122
+ /**
123
+ * @param {string | undefined} root_stack
124
+ * @param {string | undefined} uneval_stack
125
+ */
126
+ function serialization_stack(root_stack, uneval_stack) {
127
+ let out = "";
128
+ if (root_stack) out += root_stack + "\n";
129
+ if (uneval_stack) out += "Caused by:\n" + uneval_stack + "\n";
130
+ return out || "<missing stack trace>";
131
+ }
132
+ //#endregion
133
+ //#region ../../node_modules/.pnpm/svelte@5.55.9/node_modules/svelte/src/internal/server/blocks/snippet.js
134
+ /** @import { Snippet } from 'svelte' */
135
+ /** @import { Renderer } from '../renderer' */
136
+ /** @import { Getters } from '#shared' */
137
+ /**
138
+ * Create a snippet programmatically
139
+ * @template {unknown[]} Params
140
+ * @param {(...params: Getters<Params>) => {
141
+ * render: () => string
142
+ * setup?: (element: Element) => void | (() => void)
143
+ * }} fn
144
+ * @returns {Snippet<Params>}
145
+ */
146
+ function createRawSnippet(fn) {
147
+ return (renderer, ...args) => {
148
+ var getters = args.map((value) => () => value);
149
+ renderer.push(fn(...getters).render().trim());
150
+ };
151
+ }
152
+ //#endregion
153
+ //#region ../../node_modules/.pnpm/svelte@5.55.9/node_modules/svelte/src/index-server.js
154
+ /** @import { SSRContext } from '#server' */
155
+ /** @import { Renderer } from './internal/server/renderer.js' */
156
+ var index_server_exports = /* @__PURE__ */ __exportAll({
157
+ afterUpdate: () => noop$1,
158
+ beforeUpdate: () => noop$1,
159
+ createContext: () => createContext,
160
+ createEventDispatcher: () => createEventDispatcher,
161
+ createRawSnippet: () => createRawSnippet,
162
+ flushSync: () => noop$1,
163
+ fork: () => fork,
164
+ getAbortSignal: () => getAbortSignal,
165
+ getAllContexts: () => getAllContexts,
166
+ getContext: () => getContext,
167
+ hasContext: () => hasContext,
168
+ hydratable: () => hydratable,
169
+ hydrate: () => hydrate$1,
170
+ mount: () => mount$1,
171
+ onDestroy: () => onDestroy,
172
+ onMount: () => noop$1,
173
+ setContext: () => setContext,
174
+ settled: () => settled,
175
+ tick: () => tick,
176
+ unmount: () => unmount$1,
177
+ untrack: () => run$1
178
+ });
179
+ /** @param {() => void} fn */
180
+ function onDestroy(fn) {
181
+ /** @type {Renderer} */ ssr_context.r.on_destroy(fn);
182
+ }
183
+ function createEventDispatcher() {
184
+ return noop$1;
185
+ }
186
+ function mount$1() {
187
+ lifecycle_function_unavailable("mount");
188
+ }
189
+ function hydrate$1() {
190
+ lifecycle_function_unavailable("hydrate");
191
+ }
192
+ function unmount$1() {
193
+ lifecycle_function_unavailable("unmount");
194
+ }
195
+ function fork() {
196
+ lifecycle_function_unavailable("fork");
197
+ }
198
+ async function tick() {}
199
+ async function settled() {}
200
+
201
+ //#region ../../node_modules/.pnpm/@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.55.9_vite@8.0.14_@type_260c3daced0e24b679dd557260bbc4f1/node_modules/@sveltejs/kit/src/utils/functions.js
202
+ function noop() {}
203
+ /**
204
+ * @template T
205
+ * @param {() => T} fn
206
+ */
207
+ function once(fn) {
208
+ let done = false;
209
+ /** @type T */
210
+ let result;
211
+ return () => {
212
+ if (done) return result;
213
+ done = true;
214
+ return result = fn();
215
+ };
216
+ }
217
+ //#endregion
218
+ //#region ../../node_modules/.pnpm/devalue@5.8.1/node_modules/devalue/src/base64.js
219
+ /** @type {(array_buffer: ArrayBuffer) => string} */
220
+ function encode_native(array_buffer) {
221
+ return new Uint8Array(array_buffer).toBase64();
222
+ }
223
+ /** @type {(base64: string) => ArrayBuffer} */
224
+ function decode_native(base64) {
225
+ return Uint8Array.fromBase64(base64).buffer;
226
+ }
227
+ /** @type {(array_buffer: ArrayBuffer) => string} */
228
+ function encode_buffer(array_buffer) {
229
+ return Buffer.from(array_buffer).toString("base64");
230
+ }
231
+ /** @type {(base64: string) => ArrayBuffer} */
232
+ function decode_buffer(base64) {
233
+ return Uint8Array.from(Buffer.from(base64, "base64")).buffer;
234
+ }
235
+ /** @type {(array_buffer: ArrayBuffer) => string} */
236
+ function encode_legacy(array_buffer) {
237
+ const array = new Uint8Array(array_buffer);
238
+ let binary = "";
239
+ const chunk_size = 32768;
240
+ for (let i = 0; i < array.length; i += chunk_size) {
241
+ const chunk = array.subarray(i, i + chunk_size);
242
+ binary += String.fromCharCode.apply(null, chunk);
243
+ }
244
+ return btoa(binary);
245
+ }
246
+ /** @type {(base64: string) => ArrayBuffer} */
247
+ function decode_legacy(base64) {
248
+ const binary_string = atob(base64);
249
+ const len = binary_string.length;
250
+ const array = new Uint8Array(len);
251
+ for (let i = 0; i < len; i++) array[i] = binary_string.charCodeAt(i);
252
+ return array.buffer;
253
+ }
254
+ var native = typeof Uint8Array.fromBase64 === "function";
255
+ var buffer = typeof process === "object" && process.versions?.node !== void 0;
256
+ var encode64 = native ? encode_native : buffer ? encode_buffer : encode_legacy;
257
+ var decode64 = native ? decode_native : buffer ? decode_buffer : decode_legacy;
258
+ //#endregion
259
+ //#region ../../node_modules/.pnpm/devalue@5.8.1/node_modules/devalue/src/parse.js
260
+ /**
261
+ * Revive a value serialized with `devalue.stringify`
262
+ * @param {string} serialized
263
+ * @param {Record<string, (value: any) => any>} [revivers]
264
+ */
265
+ function parse(serialized, revivers) {
266
+ return unflatten(JSON.parse(serialized), revivers);
267
+ }
268
+ /**
269
+ * Revive a value flattened with `devalue.stringify`
270
+ * @param {number | any[]} parsed
271
+ * @param {Record<string, (value: any) => any>} [revivers]
272
+ */
273
+ function unflatten(parsed, revivers) {
274
+ if (typeof parsed === "number") return hydrate(parsed, true);
275
+ if (!Array.isArray(parsed) || parsed.length === 0) throw new Error("Invalid input");
276
+ const values = parsed;
277
+ const hydrated = Array(values.length);
278
+ /**
279
+ * A set of values currently being hydrated with custom revivers,
280
+ * used to detect invalid cyclical dependencies
281
+ * @type {Set<number> | null}
282
+ */
283
+ let hydrating = null;
284
+ /**
285
+ * @param {number} index
286
+ * @returns {any}
287
+ */
288
+ function hydrate(index, standalone = false) {
289
+ if (index === -1) return void 0;
290
+ if (index === -3) return NaN;
291
+ if (index === -4) return Infinity;
292
+ if (index === -5) return -Infinity;
293
+ if (index === -6) return -0;
294
+ if (standalone || typeof index !== "number") throw new Error(`Invalid input`);
295
+ if (index in hydrated) return hydrated[index];
296
+ const value = values[index];
297
+ if (!value || typeof value !== "object") hydrated[index] = value;
298
+ else if (Array.isArray(value)) if (typeof value[0] === "string") {
299
+ const type = value[0];
300
+ const reviver = revivers && Object.hasOwn(revivers, type) ? revivers[type] : void 0;
301
+ if (reviver) {
302
+ let i = value[1];
303
+ if (typeof i !== "number") i = values.push(value[1]) - 1;
304
+ hydrating ??= /* @__PURE__ */ new Set();
305
+ if (hydrating.has(i)) throw new Error("Invalid circular reference");
306
+ hydrating.add(i);
307
+ hydrated[index] = reviver(hydrate(i));
308
+ hydrating.delete(i);
309
+ return hydrated[index];
310
+ }
311
+ switch (type) {
312
+ case "Date":
313
+ hydrated[index] = new Date(value[1]);
314
+ break;
315
+ case "Set":
316
+ const set = /* @__PURE__ */ new Set();
317
+ hydrated[index] = set;
318
+ for (let i = 1; i < value.length; i += 1) set.add(hydrate(value[i]));
319
+ break;
320
+ case "Map":
321
+ const map = /* @__PURE__ */ new Map();
322
+ hydrated[index] = map;
323
+ for (let i = 1; i < value.length; i += 2) map.set(hydrate(value[i]), hydrate(value[i + 1]));
324
+ break;
325
+ case "RegExp":
326
+ hydrated[index] = new RegExp(value[1], value[2]);
327
+ break;
328
+ case "Object": {
329
+ const wrapped_index = value[1];
330
+ if (typeof values[wrapped_index] === "object" && values[wrapped_index][0] !== "BigInt") throw new Error("Invalid input");
331
+ hydrated[index] = Object(hydrate(wrapped_index));
332
+ break;
333
+ }
334
+ case "BigInt":
335
+ hydrated[index] = BigInt(value[1]);
336
+ break;
337
+ case "null":
338
+ const obj = Object.create(null);
339
+ hydrated[index] = obj;
340
+ for (let i = 1; i < value.length; i += 2) {
341
+ if (value[i] === "__proto__") throw new Error("Cannot parse an object with a `__proto__` property");
342
+ obj[value[i]] = hydrate(value[i + 1]);
343
+ }
344
+ break;
345
+ case "Int8Array":
346
+ case "Uint8Array":
347
+ case "Uint8ClampedArray":
348
+ case "Int16Array":
349
+ case "Uint16Array":
350
+ case "Float16Array":
351
+ case "Int32Array":
352
+ case "Uint32Array":
353
+ case "Float32Array":
354
+ case "Float64Array":
355
+ case "BigInt64Array":
356
+ case "BigUint64Array":
357
+ case "DataView": {
358
+ if (values[value[1]][0] !== "ArrayBuffer") throw new Error("Invalid data");
359
+ const TypedArrayConstructor = globalThis[type];
360
+ const buffer = hydrate(value[1]);
361
+ hydrated[index] = value[2] !== void 0 ? new TypedArrayConstructor(buffer, value[2], value[3]) : new TypedArrayConstructor(buffer);
362
+ break;
363
+ }
364
+ case "ArrayBuffer": {
365
+ const base64 = value[1];
366
+ if (typeof base64 !== "string") throw new Error("Invalid ArrayBuffer encoding");
367
+ hydrated[index] = decode64(base64);
368
+ break;
369
+ }
370
+ case "Temporal.Duration":
371
+ case "Temporal.Instant":
372
+ case "Temporal.PlainDate":
373
+ case "Temporal.PlainTime":
374
+ case "Temporal.PlainDateTime":
375
+ case "Temporal.PlainMonthDay":
376
+ case "Temporal.PlainYearMonth":
377
+ case "Temporal.ZonedDateTime": {
378
+ const temporalName = type.slice(9);
379
+ hydrated[index] = Temporal[temporalName].from(value[1]);
380
+ break;
381
+ }
382
+ case "URL":
383
+ hydrated[index] = new URL(value[1]);
384
+ break;
385
+ case "URLSearchParams":
386
+ hydrated[index] = new URLSearchParams(value[1]);
387
+ break;
388
+ default: throw new Error(`Unknown type ${type}`);
389
+ }
390
+ } else if (value[0] === -7) {
391
+ const len = value[1];
392
+ if (!is_valid_array_len(len)) throw new Error("Invalid input");
393
+ /** @type {any[]} */
394
+ const array = [];
395
+ hydrated[index] = array;
396
+ array[MAX_ARRAY_INDEX] = void 0;
397
+ delete array[MAX_ARRAY_INDEX];
398
+ for (let i = 2; i < value.length; i += 2) {
399
+ const idx = value[i];
400
+ if (!is_valid_array_index(idx) || idx >= len) throw new Error("Invalid input");
401
+ array[idx] = hydrate(value[i + 1]);
402
+ }
403
+ array.length = len;
404
+ } else {
405
+ const array = new Array(value.length);
406
+ hydrated[index] = array;
407
+ for (let i = 0; i < value.length; i += 1) {
408
+ const n = value[i];
409
+ if (n === -2) continue;
410
+ array[i] = hydrate(n);
411
+ }
412
+ }
413
+ else {
414
+ /** @type {Record<string, any>} */
415
+ const object = {};
416
+ hydrated[index] = object;
417
+ for (const key of Object.keys(value)) {
418
+ if (key === "__proto__") throw new Error("Cannot parse an object with a `__proto__` property");
419
+ const n = value[key];
420
+ object[key] = hydrate(n);
421
+ }
422
+ }
423
+ return hydrated[index];
424
+ }
425
+ return hydrate(0);
426
+ }
427
+ //#endregion
428
+ //#region ../../node_modules/.pnpm/devalue@5.8.1/node_modules/devalue/src/stringify.js
429
+ /**
430
+ * Turn a value into a JSON string that can be parsed with `devalue.parse`
431
+ * @param {any} value
432
+ * @param {Record<string, (value: any) => any>} [reducers]
433
+ */
434
+ function stringify$1(value, reducers) {
435
+ const stringified = run(false, value, reducers);
436
+ return typeof stringified === "string" ? stringified : `[${stringified.join(",")}]`;
437
+ }
438
+ /**
439
+ * @param {boolean} async
440
+ * @param {any} value
441
+ * @param {Record<string, (value: any) => any>} [reducers]
442
+ */
443
+ function run(async, value, reducers) {
444
+ /** @type {any[]} */
445
+ const stringified = [];
446
+ /** @type {Map<any, number>} */
447
+ const indexes = /* @__PURE__ */ new Map();
448
+ /** @type {Array<{ key: string, fn: (value: any) => any }>} */
449
+ const custom = [];
450
+ if (reducers) for (const key of Object.getOwnPropertyNames(reducers)) custom.push({
451
+ key,
452
+ fn: reducers[key]
453
+ });
454
+ /** @type {string[]} */
455
+ const keys = [];
456
+ let p = 0;
457
+ /**
458
+ * @param {any} thing
459
+ * @param {number} [index]
460
+ */
461
+ function flatten(thing, index) {
462
+ if (thing === void 0) return -1;
463
+ if (Number.isNaN(thing)) return -3;
464
+ if (thing === Infinity) return -4;
465
+ if (thing === -Infinity) return -5;
466
+ if (thing === 0 && 1 / thing < 0) return -6;
467
+ if (indexes.has(thing)) return indexes.get(thing);
468
+ index ??= p++;
469
+ indexes.set(thing, index);
470
+ for (const { key, fn } of custom) {
471
+ const value = fn(thing);
472
+ if (value) {
473
+ stringified[index] = `["${key}",${flatten(value)}]`;
474
+ return index;
475
+ }
476
+ }
477
+ if (typeof thing === "function") throw new DevalueError(`Cannot stringify a function`, keys, thing, value);
478
+ else if (typeof thing === "symbol") throw new DevalueError(`Cannot stringify a Symbol primitive`, keys, thing, value);
479
+ /** @type {string | Promise<any>} */
480
+ let str = "";
481
+ if (is_primitive(thing)) str = stringify_primitive(thing);
482
+ else if (typeof thing.then === "function") {
483
+ throw new DevalueError(`Cannot stringify a Promise or thenable — use stringifyAsync instead`, keys, thing, value);
484
+ } else {
485
+ const type = get_type(thing);
486
+ switch (type) {
487
+ case "Number":
488
+ case "String":
489
+ case "Boolean":
490
+ case "BigInt":
491
+ str = `["Object",${flatten(thing.valueOf())}]`;
492
+ break;
493
+ case "Date":
494
+ str = `["Date","${!isNaN(thing.getDate()) ? thing.toISOString() : ""}"]`;
495
+ break;
496
+ case "URL":
497
+ str = `["URL",${stringify_string(thing.toString())}]`;
498
+ break;
499
+ case "URLSearchParams":
500
+ str = `["URLSearchParams",${stringify_string(thing.toString())}]`;
501
+ break;
502
+ case "RegExp":
503
+ const { source, flags } = thing;
504
+ str = flags ? `["RegExp",${stringify_string(source)},"${flags}"]` : `["RegExp",${stringify_string(source)}]`;
505
+ break;
506
+ case "Array": {
507
+ let mostly_dense = false;
508
+ str = "[";
509
+ for (let i = 0; i < thing.length; i += 1) {
510
+ if (i > 0) str += ",";
511
+ if (Object.hasOwn(thing, i)) {
512
+ keys.push(`[${i}]`);
513
+ str += flatten(thing[i]);
514
+ keys.pop();
515
+ } else if (mostly_dense) str += -2;
516
+ else {
517
+ const populated_keys = valid_array_indices(thing);
518
+ const population = populated_keys.length;
519
+ const d = String(thing.length).length;
520
+ if ((thing.length - population) * 3 > 4 + d + population * (d + 1)) {
521
+ str = "[-7," + thing.length;
522
+ for (let j = 0; j < populated_keys.length; j++) {
523
+ const key = populated_keys[j];
524
+ keys.push(`[${key}]`);
525
+ str += "," + key + "," + flatten(thing[key]);
526
+ keys.pop();
527
+ }
528
+ break;
529
+ } else {
530
+ mostly_dense = true;
531
+ str += -2;
532
+ }
533
+ }
534
+ }
535
+ str += "]";
536
+ break;
537
+ }
538
+ case "Set":
539
+ str = "[\"Set\"";
540
+ for (const value of thing) str += `,${flatten(value)}`;
541
+ str += "]";
542
+ break;
543
+ case "Map":
544
+ str = "[\"Map\"";
545
+ for (const [key, value] of thing) {
546
+ keys.push(`.get(${is_primitive(key) ? stringify_primitive(key) : "..."})`);
547
+ str += `,${flatten(key)},${flatten(value)}`;
548
+ keys.pop();
549
+ }
550
+ str += "]";
551
+ break;
552
+ case "Int8Array":
553
+ case "Uint8Array":
554
+ case "Uint8ClampedArray":
555
+ case "Int16Array":
556
+ case "Uint16Array":
557
+ case "Float16Array":
558
+ case "Int32Array":
559
+ case "Uint32Array":
560
+ case "Float32Array":
561
+ case "Float64Array":
562
+ case "BigInt64Array":
563
+ case "BigUint64Array":
564
+ case "DataView": {
565
+ /** @type {import("./types.js").TypedArray} */
566
+ const typedArray = thing;
567
+ str = "[\"" + type + "\"," + flatten(typedArray.buffer);
568
+ if (typedArray.byteLength !== typedArray.buffer.byteLength) str += `,${typedArray.byteOffset},${typedArray.length}`;
569
+ str += "]";
570
+ break;
571
+ }
572
+ case "ArrayBuffer":
573
+ str = `["ArrayBuffer","${encode64(thing)}"]`;
574
+ break;
575
+ case "Temporal.Duration":
576
+ case "Temporal.Instant":
577
+ case "Temporal.PlainDate":
578
+ case "Temporal.PlainTime":
579
+ case "Temporal.PlainDateTime":
580
+ case "Temporal.PlainMonthDay":
581
+ case "Temporal.PlainYearMonth":
582
+ case "Temporal.ZonedDateTime":
583
+ str = `["${type}",${stringify_string(thing.toString())}]`;
584
+ break;
585
+ default:
586
+ if (!is_plain_object(thing)) throw new DevalueError(`Cannot stringify arbitrary non-POJOs`, keys, thing, value);
587
+ if (enumerable_symbols(thing).length > 0) throw new DevalueError(`Cannot stringify POJOs with symbolic keys`, keys, thing, value);
588
+ if (Object.getPrototypeOf(thing) === null) {
589
+ str = "[\"null\"";
590
+ for (const key of Object.keys(thing)) {
591
+ if (key === "__proto__") throw new DevalueError(`Cannot stringify objects with __proto__ keys`, keys, thing, value);
592
+ keys.push(stringify_key(key));
593
+ str += `,${stringify_string(key)},${flatten(thing[key])}`;
594
+ keys.pop();
595
+ }
596
+ str += "]";
597
+ } else {
598
+ str = "{";
599
+ let started = false;
600
+ for (const key of Object.keys(thing)) {
601
+ if (key === "__proto__") throw new DevalueError(`Cannot stringify objects with __proto__ keys`, keys, thing, value);
602
+ if (started) str += ",";
603
+ started = true;
604
+ keys.push(stringify_key(key));
605
+ str += `${stringify_string(key)}:${flatten(thing[key])}`;
606
+ keys.pop();
607
+ }
608
+ str += "}";
609
+ }
610
+ }
611
+ }
612
+ stringified[index] = str;
613
+ return index;
614
+ }
615
+ const index = flatten(value);
616
+ if (index < 0) return `${index}`;
617
+ return stringified;
618
+ }
619
+ /**
620
+ * @param {any} thing
621
+ * @returns {string}
622
+ */
623
+ function stringify_primitive(thing) {
624
+ const type = typeof thing;
625
+ if (type === "string") return stringify_string(thing);
626
+ if (thing === void 0) return (-1).toString();
627
+ if (thing === 0 && 1 / thing < 0) return (-6).toString();
628
+ if (type === "bigint") return `["BigInt","${thing}"]`;
629
+ return String(thing);
630
+ }
631
+ //#endregion
632
+ //#region ../../node_modules/.pnpm/@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.55.9_vite@8.0.14_@type_260c3daced0e24b679dd557260bbc4f1/node_modules/@sveltejs/kit/src/runtime/utils.js
633
+ var text_encoder = new TextEncoder();
634
+ /**
635
+ * Like node's path.relative, but without using node
636
+ * @param {string} from
637
+ * @param {string} to
638
+ */
639
+ function get_relative_path(from, to) {
640
+ const from_parts = from.split(/[/\\]/);
641
+ const to_parts = to.split(/[/\\]/);
642
+ from_parts.pop();
643
+ while (from_parts[0] === to_parts[0]) {
644
+ from_parts.shift();
645
+ to_parts.shift();
646
+ }
647
+ let i = from_parts.length;
648
+ while (i--) from_parts[i] = "..";
649
+ return from_parts.concat(to_parts).join("/");
650
+ }
651
+ /**
652
+ * @param {Uint8Array} bytes
653
+ * @returns {string}
654
+ */
655
+ function base64_encode(bytes) {
656
+ if (globalThis.Buffer) return globalThis.Buffer.from(bytes).toString("base64");
657
+ let binary = "";
658
+ for (let i = 0; i < bytes.length; i++) binary += String.fromCharCode(bytes[i]);
659
+ return btoa(binary);
660
+ }
661
+ /**
662
+ * @param {string} encoded
663
+ * @returns {Uint8Array}
664
+ */
665
+ function base64_decode(encoded) {
666
+ if (globalThis.Buffer) {
667
+ const buffer = globalThis.Buffer.from(encoded, "base64");
668
+ return new Uint8Array(buffer);
669
+ }
670
+ const binary = atob(encoded);
671
+ const bytes = new Uint8Array(binary.length);
672
+ for (let i = 0; i < binary.length; i++) bytes[i] = binary.charCodeAt(i);
673
+ return bytes;
674
+ }
675
+ //#endregion
676
+ //#region ../../node_modules/.pnpm/@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.55.9_vite@8.0.14_@type_260c3daced0e24b679dd557260bbc4f1/node_modules/@sveltejs/kit/src/utils/error.js
677
+ /**
678
+ * @param {unknown} err
679
+ * @return {Error}
680
+ */
681
+ function coalesce_to_error(err) {
682
+ return err instanceof Error || err && err.name && err.message ? err : new Error(JSON.stringify(err));
683
+ }
684
+ /**
685
+ * This is an identity function that exists to make TypeScript less
686
+ * paranoid about people throwing things that aren't errors, which
687
+ * frankly is not something we should care about
688
+ * @param {unknown} error
689
+ */
690
+ function normalize_error(error) {
691
+ return error;
692
+ }
693
+ /**
694
+ * @param {unknown} error
695
+ */
696
+ function get_status(error) {
697
+ return error instanceof HttpError || error instanceof SvelteKitError ? error.status : 500;
698
+ }
699
+ /**
700
+ * @param {unknown} error
701
+ */
702
+ function get_message(error) {
703
+ return error instanceof SvelteKitError ? error.text : "Internal Error";
704
+ }
705
+ var INVALIDATED_PARAM = "x-sveltekit-invalidated";
706
+ var TRAILING_SLASH_PARAM = "x-sveltekit-trailing-slash";
707
+ /**
708
+ * Try to `devalue.stringify` the data object using the provided transport encoders.
709
+ * @param {any} data
710
+ * @param {Transport} transport
711
+ */
712
+ function stringify(data, transport) {
713
+ return stringify$1(data, Object.fromEntries(Object.entries(transport).map(([k, v]) => [k, v.encode])));
714
+ }
715
+ var remote_object = "__skrao";
716
+ var remote_map = "__skram";
717
+ var remote_set = "__skras";
718
+ /** @param {Transport} transport */
719
+ function create_remote_arg_revivers(transport) {
720
+ const remote_fns_revivers = {
721
+ /** @type {(value: unknown) => unknown} */
722
+ [remote_object]: (value) => value,
723
+ /** @type {(value: unknown) => Map<unknown, unknown>} */
724
+ [remote_map]: (value) => {
725
+ if (!Array.isArray(value)) throw new Error("Invalid data for Map reviver");
726
+ const map = /* @__PURE__ */ new Map();
727
+ for (const item of value) {
728
+ if (!Array.isArray(item) || item.length !== 2 || typeof item[0] !== "string" || typeof item[1] !== "string") throw new Error("Invalid data for Map reviver");
729
+ const [key, val] = item;
730
+ map.set(parse$1(key), parse$1(val));
731
+ }
732
+ return map;
733
+ },
734
+ /** @type {(value: unknown) => Set<unknown>} */
735
+ [remote_set]: (value) => {
736
+ if (!Array.isArray(value)) throw new Error("Invalid data for Set reviver");
737
+ const set = /* @__PURE__ */ new Set();
738
+ for (const item of value) {
739
+ if (typeof item !== "string") throw new Error("Invalid data for Set reviver");
740
+ set.add(parse$1(item));
741
+ }
742
+ return set;
743
+ }
744
+ };
745
+ const all_revivers = {
746
+ ...Object.fromEntries(Object.entries(transport).map(([k, v]) => [k, v.decode])),
747
+ ...remote_fns_revivers
748
+ };
749
+ /** @type {(data: string) => unknown} */
750
+ const parse$1 = (data) => parse(data, all_revivers);
751
+ return all_revivers;
752
+ }
753
+ /**
754
+ * Parses the argument (if any) for a remote function
755
+ * @param {string} string
756
+ * @param {Transport} transport
757
+ */
758
+ function parse_remote_arg(string, transport) {
759
+ if (!string) return void 0;
760
+ return parse(new TextDecoder().decode(base64_decode(string.replaceAll("-", "+").replaceAll("_", "/"))), create_remote_arg_revivers(transport));
761
+ }
762
+ /**
763
+ * @param {string} id
764
+ * @param {string} payload
765
+ */
766
+ function create_remote_key(id, payload) {
767
+ return id + "/" + payload;
768
+ }
769
+ /**
770
+ * @param {string} key
771
+ * @returns {{ id: string; payload: string }}
772
+ */
773
+ function split_remote_key(key) {
774
+ const i = key.lastIndexOf("/");
775
+ if (i === -1) throw new Error(`Invalid remote key: ${key}`);
776
+ return {
777
+ id: key.slice(0, i),
778
+ payload: key.slice(i + 1)
779
+ };
780
+ }
781
+
782
+ // eslint-disable-next-line n/prefer-global/process
783
+ const IN_WEBCONTAINER = !!globalThis.process?.versions?.webcontainer;
784
+
785
+ /** @import { RequestEvent } from '@sveltejs/kit' */
786
+ /** @import { RequestStore } from 'types' */
787
+ /** @import { AsyncLocalStorage } from 'node:async_hooks' */
788
+
789
+
790
+ /** @type {RequestStore | null} */
791
+ let sync_store = null;
792
+
793
+ /** @type {AsyncLocalStorage<RequestStore | null> | null} */
794
+ let als;
795
+
796
+ import('node:async_hooks')
797
+ .then((hooks) => (als = new hooks.AsyncLocalStorage()))
798
+ .catch(() => {
799
+ // can't use AsyncLocalStorage, but can still call getRequestEvent synchronously.
800
+ // this isn't behind `supports` because it's basically just StackBlitz (i.e.
801
+ // in-browser usage) that doesn't support it AFAICT
802
+ });
803
+
804
+ /**
805
+ * @template T
806
+ * @param {RequestStore | null} store
807
+ * @param {() => T} fn
808
+ */
809
+ function with_request_store(store, fn) {
810
+ try {
811
+ sync_store = store;
812
+ return als ? als.run(store, fn) : fn();
813
+ } finally {
814
+ // Since AsyncLocalStorage is not working in webcontainers, we don't reset `sync_store`
815
+ // and handle only one request at a time in `src/runtime/server/index.js`.
816
+ if (!IN_WEBCONTAINER) {
817
+ sync_store = null;
818
+ }
819
+ }
820
+ }
821
+
822
+ //#region ../../node_modules/.pnpm/@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.55.9_vite@8.0.14_@type_260c3daced0e24b679dd557260bbc4f1/node_modules/@sveltejs/kit/src/utils/array.js
823
+ /**
824
+ * Removes nullish values from an array.
825
+ *
826
+ * @template T
827
+ * @param {Array<T>} arr
828
+ */
829
+ function compact(arr) {
830
+ return arr.filter(
831
+ /** @returns {val is NonNullable<T>} */
832
+ (val) => val != null
833
+ );
834
+ }
835
+ //#endregion
836
+ //#region ../../node_modules/.pnpm/@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.55.9_vite@8.0.14_@type_260c3daced0e24b679dd557260bbc4f1/node_modules/@sveltejs/kit/src/runtime/pathname.js
837
+ var DATA_SUFFIX = "/__data.json";
838
+ var HTML_DATA_SUFFIX = ".html__data.json";
839
+ /** @param {string} pathname */
840
+ function has_data_suffix(pathname) {
841
+ return pathname.endsWith(DATA_SUFFIX) || pathname.endsWith(HTML_DATA_SUFFIX);
842
+ }
843
+ /** @param {string} pathname */
844
+ function add_data_suffix(pathname) {
845
+ if (pathname.endsWith(".html")) return pathname.replace(/\.html$/, HTML_DATA_SUFFIX);
846
+ return pathname.replace(/\/$/, "") + DATA_SUFFIX;
847
+ }
848
+ /** @param {string} pathname */
849
+ function strip_data_suffix(pathname) {
850
+ if (pathname.endsWith(HTML_DATA_SUFFIX)) return pathname.slice(0, -16) + ".html";
851
+ return pathname.slice(0, -12);
852
+ }
853
+ var ROUTE_SUFFIX = "/__route.js";
854
+ /**
855
+ * @param {string} pathname
856
+ * @returns {boolean}
857
+ */
858
+ function has_resolution_suffix(pathname) {
859
+ return pathname.endsWith(ROUTE_SUFFIX);
860
+ }
861
+ /**
862
+ * Convert a regular URL to a route to send to SvelteKit's server-side route resolution endpoint
863
+ * @param {string} pathname
864
+ * @returns {string}
865
+ */
866
+ function add_resolution_suffix(pathname) {
867
+ return pathname.replace(/\/$/, "") + ROUTE_SUFFIX;
868
+ }
869
+ /**
870
+ * @param {string} pathname
871
+ * @returns {string}
872
+ */
873
+ function strip_resolution_suffix(pathname) {
874
+ return pathname.slice(0, -11);
875
+ }
876
+ //#endregion
877
+ //#region ../../node_modules/.pnpm/@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.55.9_vite@8.0.14_@type_260c3daced0e24b679dd557260bbc4f1/node_modules/@sveltejs/kit/src/runtime/telemetry/noop.js
878
+ /**
879
+ * @type {Span}
880
+ */
881
+ var noop_span = {
882
+ spanContext() {
883
+ return noop_span_context;
884
+ },
885
+ setAttribute() {
886
+ return this;
887
+ },
888
+ setAttributes() {
889
+ return this;
890
+ },
891
+ addEvent() {
892
+ return this;
893
+ },
894
+ setStatus() {
895
+ return this;
896
+ },
897
+ updateName() {
898
+ return this;
899
+ },
900
+ end() {
901
+ return this;
902
+ },
903
+ isRecording() {
904
+ return false;
905
+ },
906
+ recordException() {
907
+ return this;
908
+ },
909
+ addLink() {
910
+ return this;
911
+ },
912
+ addLinks() {
913
+ return this;
914
+ }
915
+ };
916
+ /**
917
+ * @type {SpanContext}
918
+ */
919
+ var noop_span_context = {
920
+ traceId: "",
921
+ spanId: "",
922
+ traceFlags: 0
923
+ };
924
+ var internal = new URL("sveltekit-internal://");
925
+ /**
926
+ * @param {string} base
927
+ * @param {string} path
928
+ */
929
+ function resolve(base, path) {
930
+ if (path[0] === "/" && path[1] === "/") return path;
931
+ let url = new URL(base, internal);
932
+ url = new URL(path, url);
933
+ return url.protocol === internal.protocol ? url.pathname + url.search + url.hash : url.href;
934
+ }
935
+ /**
936
+ * @param {string} path
937
+ * @param {import('types').TrailingSlash} trailing_slash
938
+ */
939
+ function normalize_path(path, trailing_slash) {
940
+ if (path === "/" || trailing_slash === "ignore") return path;
941
+ if (trailing_slash === "never") return path.endsWith("/") ? path.slice(0, -1) : path;
942
+ else if (trailing_slash === "always" && !path.endsWith("/")) return path + "/";
943
+ return path;
944
+ }
945
+ /**
946
+ * Decode pathname excluding %25 to prevent further double decoding of params
947
+ * @param {string} pathname
948
+ */
949
+ function decode_pathname(pathname) {
950
+ return pathname.split("%25").map(decodeURI).join("%25");
951
+ }
952
+ /** @param {Record<string, string>} params */
953
+ function decode_params(params) {
954
+ for (const key in params) params[key] = decodeURIComponent(params[key]);
955
+ return params;
956
+ }
957
+ /**
958
+ * @param {URL} url
959
+ * @param {() => void} callback
960
+ * @param {(search_param: string) => void} search_params_callback
961
+ * @param {boolean} [allow_hash]
962
+ */
963
+ function make_trackable(url, callback, search_params_callback, allow_hash = false) {
964
+ const tracked = new URL(url);
965
+ Object.defineProperty(tracked, "searchParams", {
966
+ value: new Proxy(tracked.searchParams, { get(obj, key) {
967
+ if (key === "get" || key === "getAll" || key === "has") return (param, ...rest) => {
968
+ search_params_callback(param);
969
+ return obj[key](param, ...rest);
970
+ };
971
+ callback();
972
+ const value = Reflect.get(obj, key);
973
+ return typeof value === "function" ? value.bind(obj) : value;
974
+ } }),
975
+ enumerable: true,
976
+ configurable: true
977
+ });
978
+ /**
979
+ * URL properties that could change during the lifetime of the page,
980
+ * which excludes things like `origin`
981
+ */
982
+ const tracked_url_properties = [
983
+ "href",
984
+ "pathname",
985
+ "search",
986
+ "toString",
987
+ "toJSON"
988
+ ];
989
+ if (allow_hash) tracked_url_properties.push("hash");
990
+ for (const property of tracked_url_properties) Object.defineProperty(tracked, property, {
991
+ get() {
992
+ callback();
993
+ return url[property];
994
+ },
995
+ enumerable: true,
996
+ configurable: true
997
+ });
998
+ tracked[Symbol.for("nodejs.util.inspect.custom")] = (_depth, opts, inspect) => {
999
+ return inspect(url, opts);
1000
+ };
1001
+ tracked.searchParams[Symbol.for("nodejs.util.inspect.custom")] = (_depth, opts, inspect) => {
1002
+ return inspect(url.searchParams, opts);
1003
+ };
1004
+ if (!allow_hash) disable_hash(tracked);
1005
+ return tracked;
1006
+ }
1007
+ /**
1008
+ * Disallow access to `url.hash` on the server and in `load`
1009
+ * @param {URL} url
1010
+ */
1011
+ function disable_hash(url) {
1012
+ allow_nodejs_console_log(url);
1013
+ Object.defineProperty(url, "hash", { get() {
1014
+ throw new Error("Cannot access event.url.hash. Consider using `page.url.hash` inside a component instead");
1015
+ } });
1016
+ }
1017
+ /**
1018
+ * Disallow access to `url.search` and `url.searchParams` during prerendering
1019
+ * @param {URL} url
1020
+ */
1021
+ function disable_search(url) {
1022
+ allow_nodejs_console_log(url);
1023
+ for (const property of ["search", "searchParams"]) Object.defineProperty(url, property, { get() {
1024
+ throw new Error(`Cannot access url.${property} on a page with prerendering enabled`);
1025
+ } });
1026
+ }
1027
+ /**
1028
+ * Allow URL to be console logged, bypassing disabled properties.
1029
+ * @param {URL} url
1030
+ */
1031
+ function allow_nodejs_console_log(url) {
1032
+ url[Symbol.for("nodejs.util.inspect.custom")] = (_depth, opts, inspect) => {
1033
+ return inspect(new URL(url), opts);
1034
+ };
1035
+ }
1036
+ //#endregion
1037
+ //#region ../../node_modules/.pnpm/@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.55.9_vite@8.0.14_@type_260c3daced0e24b679dd557260bbc4f1/node_modules/@sveltejs/kit/src/utils/hash.js
1038
+ /**
1039
+ * Hash using djb2
1040
+ * @param {import('types').StrictBody[]} values
1041
+ */
1042
+ function hash(...values) {
1043
+ let hash = 5381;
1044
+ for (const value of values) if (typeof value === "string") {
1045
+ let i = value.length;
1046
+ while (i) hash = hash * 33 ^ value.charCodeAt(--i);
1047
+ } else if (ArrayBuffer.isView(value)) {
1048
+ const buffer = new Uint8Array(value.buffer, value.byteOffset, value.byteLength);
1049
+ let i = buffer.length;
1050
+ while (i) hash = hash * 33 ^ buffer[--i];
1051
+ } else throw new TypeError("value must be a string or TypedArray");
1052
+ return (hash >>> 0).toString(36);
1053
+ }
1054
+ //#endregion
1055
+ //#region ../../node_modules/.pnpm/@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.55.9_vite@8.0.14_@type_260c3daced0e24b679dd557260bbc4f1/node_modules/@sveltejs/kit/src/utils/routing.js
1056
+ /**
1057
+ * @param {RegExpMatchArray} match
1058
+ * @param {import('types').RouteParam[]} params
1059
+ * @param {Record<string, import('@sveltejs/kit').ParamMatcher>} matchers
1060
+ */
1061
+ function exec(match, params, matchers) {
1062
+ /** @type {Record<string, string>} */
1063
+ const result = {};
1064
+ const values = match.slice(1);
1065
+ const values_needing_match = values.filter((value) => value !== void 0);
1066
+ let buffered = 0;
1067
+ for (let i = 0; i < params.length; i += 1) {
1068
+ const param = params[i];
1069
+ let value = values[i - buffered];
1070
+ if (param.chained && param.rest && buffered) {
1071
+ value = values.slice(i - buffered, i + 1).filter((s) => s).join("/");
1072
+ buffered = 0;
1073
+ }
1074
+ if (value === void 0) if (param.rest) value = "";
1075
+ else continue;
1076
+ if (!param.matcher || matchers[param.matcher](value)) {
1077
+ result[param.name] = value;
1078
+ const next_param = params[i + 1];
1079
+ const next_value = values[i + 1];
1080
+ if (next_param && !next_param.rest && next_param.optional && next_value && param.chained) buffered = 0;
1081
+ if (!next_param && !next_value && Object.keys(result).length === values_needing_match.length) buffered = 0;
1082
+ continue;
1083
+ }
1084
+ if (param.optional && param.chained) {
1085
+ buffered++;
1086
+ continue;
1087
+ }
1088
+ return;
1089
+ }
1090
+ if (buffered) return;
1091
+ return result;
1092
+ }
1093
+ /**
1094
+ * Find the first route that matches the given path
1095
+ * @template {{pattern: RegExp, params: import('types').RouteParam[]}} Route
1096
+ * @param {string} path - The decoded pathname to match
1097
+ * @param {Route[]} routes
1098
+ * @param {Record<string, import('@sveltejs/kit').ParamMatcher>} matchers
1099
+ * @returns {{ route: Route, params: Record<string, string> } | null}
1100
+ */
1101
+ function find_route(path, routes, matchers) {
1102
+ for (const route of routes) {
1103
+ const match = route.pattern.exec(path);
1104
+ if (!match) continue;
1105
+ const matched = exec(match, route.params, matchers);
1106
+ if (matched) return {
1107
+ route,
1108
+ params: decode_params(matched)
1109
+ };
1110
+ }
1111
+ return null;
1112
+ }
1113
+ //#endregion
1114
+ //#region ../../node_modules/.pnpm/@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.55.9_vite@8.0.14_@type_260c3daced0e24b679dd557260bbc4f1/node_modules/@sveltejs/kit/src/utils/exports.js
1115
+ /**
1116
+ * @param {Set<string>} expected
1117
+ */
1118
+ function validator(expected) {
1119
+ /**
1120
+ * @param {any} module
1121
+ * @param {string} [file]
1122
+ */
1123
+ function validate(module, file) {
1124
+ if (!module) return;
1125
+ for (const key in module) {
1126
+ if (key[0] === "_" || expected.has(key)) continue;
1127
+ const values = [...expected.values()];
1128
+ const hint = hint_for_supported_files(key, file?.slice(file.lastIndexOf("."))) ?? `valid exports are ${values.join(", ")}, or anything with a '_' prefix`;
1129
+ throw new Error(`Invalid export '${key}'${file ? ` in ${file}` : ""} (${hint})`);
1130
+ }
1131
+ }
1132
+ return validate;
1133
+ }
1134
+ /**
1135
+ * @param {string} key
1136
+ * @param {string} ext
1137
+ * @returns {string | void}
1138
+ */
1139
+ function hint_for_supported_files(key, ext = ".js") {
1140
+ const supported_files = [];
1141
+ if (valid_layout_exports.has(key)) supported_files.push(`+layout${ext}`);
1142
+ if (valid_page_exports.has(key)) supported_files.push(`+page${ext}`);
1143
+ if (valid_layout_server_exports.has(key)) supported_files.push(`+layout.server${ext}`);
1144
+ if (valid_page_server_exports.has(key)) supported_files.push(`+page.server${ext}`);
1145
+ if (valid_server_exports.has(key)) supported_files.push(`+server${ext}`);
1146
+ 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)}`;
1147
+ }
1148
+ var valid_layout_exports = new Set([
1149
+ "load",
1150
+ "prerender",
1151
+ "csr",
1152
+ "ssr",
1153
+ "trailingSlash",
1154
+ "config"
1155
+ ]);
1156
+ var valid_page_exports = new Set([...valid_layout_exports, "entries"]);
1157
+ var valid_layout_server_exports = new Set([...valid_layout_exports]);
1158
+ var valid_page_server_exports = new Set([
1159
+ ...valid_layout_server_exports,
1160
+ "actions",
1161
+ "entries"
1162
+ ]);
1163
+ var valid_server_exports = new Set([
1164
+ "GET",
1165
+ "POST",
1166
+ "PATCH",
1167
+ "PUT",
1168
+ "DELETE",
1169
+ "OPTIONS",
1170
+ "HEAD",
1171
+ "fallback",
1172
+ "prerender",
1173
+ "trailingSlash",
1174
+ "config",
1175
+ "entries"
1176
+ ]);
1177
+ var validate_layout_exports = validator(valid_layout_exports);
1178
+ var validate_page_exports = validator(valid_page_exports);
1179
+ var validate_layout_server_exports = validator(valid_layout_server_exports);
1180
+ var validate_page_server_exports = validator(valid_page_server_exports);
1181
+
1182
+ //#region \0virtual:__sveltekit/server
1183
+ var read_implementation = null;
1184
+ function set_read_implementation(fn) {
1185
+ read_implementation = fn;
1186
+ }
1187
+ //#endregion
1188
+ //#region ../../node_modules/.pnpm/svelte@5.55.9/node_modules/svelte/src/internal/client/dom/elements/events.js
1189
+ /**
1190
+ * Used on elements, as a map of event type -> event handler,
1191
+ * and on events themselves to track which element handled an event
1192
+ */
1193
+ var event_symbol = Symbol("events");
1194
+ /** @type {Set<string>} */
1195
+ var all_registered_events = /* @__PURE__ */ new Set();
1196
+ /** @type {Set<(events: Array<string>) => void>} */
1197
+ var root_event_handles = /* @__PURE__ */ new Set();
1198
+ var last_propagated_event = null;
1199
+ /**
1200
+ * @this {EventTarget}
1201
+ * @param {Event} event
1202
+ * @returns {void}
1203
+ */
1204
+ function handle_event_propagation(event) {
1205
+ var handler_element = this;
1206
+ var owner_document = handler_element.ownerDocument;
1207
+ var event_name = event.type;
1208
+ var path = event.composedPath?.() || [];
1209
+ var current_target = path[0] || event.target;
1210
+ last_propagated_event = event;
1211
+ var path_idx = 0;
1212
+ var handled_at = last_propagated_event === event && event[event_symbol];
1213
+ if (handled_at) {
1214
+ var at_idx = path.indexOf(handled_at);
1215
+ if (at_idx !== -1 && (handler_element === document || handler_element === window)) {
1216
+ event[event_symbol] = handler_element;
1217
+ return;
1218
+ }
1219
+ var handler_idx = path.indexOf(handler_element);
1220
+ if (handler_idx === -1) return;
1221
+ if (at_idx <= handler_idx) path_idx = at_idx;
1222
+ }
1223
+ current_target = path[path_idx] || event.target;
1224
+ if (current_target === handler_element) return;
1225
+ define_property(event, "currentTarget", {
1226
+ configurable: true,
1227
+ get() {
1228
+ return current_target || owner_document;
1229
+ }
1230
+ });
1231
+ var previous_reaction = active_reaction;
1232
+ var previous_effect = active_effect;
1233
+ set_active_reaction(null);
1234
+ set_active_effect(null);
1235
+ try {
1236
+ /**
1237
+ * @type {unknown}
1238
+ */
1239
+ var throw_error;
1240
+ /**
1241
+ * @type {unknown[]}
1242
+ */
1243
+ var other_errors = [];
1244
+ while (current_target !== null) {
1245
+ /** @type {null | Element} */
1246
+ var parent_element = current_target.assignedSlot || current_target.parentNode || current_target.host || null;
1247
+ try {
1248
+ var delegated = current_target[event_symbol]?.[event_name];
1249
+ if (delegated != null && (!current_target.disabled || event.target === current_target)) delegated.call(current_target, event);
1250
+ } catch (error) {
1251
+ if (throw_error) other_errors.push(error);
1252
+ else throw_error = error;
1253
+ }
1254
+ if (event.cancelBubble || parent_element === handler_element || parent_element === null) break;
1255
+ current_target = parent_element;
1256
+ }
1257
+ if (throw_error) {
1258
+ for (let error of other_errors) queueMicrotask(() => {
1259
+ throw error;
1260
+ });
1261
+ throw throw_error;
1262
+ }
1263
+ } finally {
1264
+ event[event_symbol] = handler_element;
1265
+ delete event.currentTarget;
1266
+ set_active_reaction(previous_reaction);
1267
+ set_active_effect(previous_effect);
1268
+ }
1269
+ }
1270
+ //#endregion
1271
+ //#region ../../node_modules/.pnpm/svelte@5.55.9/node_modules/svelte/src/internal/client/dom/template.js
1272
+ /**
1273
+ * @param {TemplateNode} start
1274
+ * @param {TemplateNode | null} end
1275
+ */
1276
+ function assign_nodes(start, end) {
1277
+ var effect = active_effect;
1278
+ if (effect.nodes === null) effect.nodes = {
1279
+ start,
1280
+ end,
1281
+ a: null,
1282
+ t: null
1283
+ };
1284
+ }
1285
+ /**
1286
+ * Mounts a component to the given target and returns the exports and potentially the props (if compiled with `accessors: true`) of the component.
1287
+ * Transitions will play during the initial render unless the `intro` option is set to `false`.
1288
+ *
1289
+ * @template {Record<string, any>} Props
1290
+ * @template {Record<string, any>} Exports
1291
+ * @param {ComponentType<SvelteComponent<Props>> | Component<Props, Exports, any>} component
1292
+ * @param {MountOptions<Props>} options
1293
+ * @returns {Exports}
1294
+ */
1295
+ function mount(component, options) {
1296
+ return _mount(component, options);
1297
+ }
1298
+ /**
1299
+ * Hydrates a component on the given target and returns the exports and potentially the props (if compiled with `accessors: true`) of the component
1300
+ *
1301
+ * @template {Record<string, any>} Props
1302
+ * @template {Record<string, any>} Exports
1303
+ * @param {ComponentType<SvelteComponent<Props>> | Component<Props, Exports, any>} component
1304
+ * @param {{} extends Props ? {
1305
+ * target: Document | Element | ShadowRoot;
1306
+ * props?: Props;
1307
+ * events?: Record<string, (e: any) => any>;
1308
+ * context?: Map<any, any>;
1309
+ * intro?: boolean;
1310
+ * recover?: boolean;
1311
+ * transformError?: (error: unknown) => unknown;
1312
+ * } : {
1313
+ * target: Document | Element | ShadowRoot;
1314
+ * props: Props;
1315
+ * events?: Record<string, (e: any) => any>;
1316
+ * context?: Map<any, any>;
1317
+ * intro?: boolean;
1318
+ * recover?: boolean;
1319
+ * transformError?: (error: unknown) => unknown;
1320
+ * }} options
1321
+ * @returns {Exports}
1322
+ */
1323
+ function hydrate(component, options) {
1324
+ init_operations();
1325
+ options.intro = options.intro ?? false;
1326
+ const target = options.target;
1327
+ const was_hydrating = hydrating;
1328
+ const previous_hydrate_node = hydrate_node;
1329
+ try {
1330
+ var anchor = /* @__PURE__ */ get_first_child(target);
1331
+ while (anchor && (anchor.nodeType !== 8 || anchor.data !== "[")) anchor = /* @__PURE__ */ get_next_sibling(anchor);
1332
+ if (!anchor) throw HYDRATION_ERROR;
1333
+ set_hydrating(true);
1334
+ set_hydrate_node(anchor);
1335
+ const instance = _mount(component, {
1336
+ ...options,
1337
+ anchor
1338
+ });
1339
+ set_hydrating(false);
1340
+ return instance;
1341
+ } catch (error) {
1342
+ if (error instanceof Error && error.message.split("\n").some((line) => line.startsWith("https://svelte.dev/e/"))) throw error;
1343
+ if (error !== HYDRATION_ERROR) console.warn("Failed to hydrate: ", error);
1344
+ if (options.recover === false) hydration_failed();
1345
+ init_operations();
1346
+ clear_text_content(target);
1347
+ set_hydrating(false);
1348
+ return mount(component, options);
1349
+ } finally {
1350
+ set_hydrating(was_hydrating);
1351
+ set_hydrate_node(previous_hydrate_node);
1352
+ }
1353
+ }
1354
+ /** @type {Map<EventTarget, Map<string, number>>} */
1355
+ var listeners = /* @__PURE__ */ new Map();
1356
+ /**
1357
+ * @template {Record<string, any>} Exports
1358
+ * @param {ComponentType<SvelteComponent<any>> | Component<any>} Component
1359
+ * @param {MountOptions} options
1360
+ * @returns {Exports}
1361
+ */
1362
+ function _mount(Component, { target, anchor, props = {}, events, context, intro = true, transformError }) {
1363
+ init_operations();
1364
+ /** @type {Exports} */
1365
+ var component = void 0;
1366
+ var unmount = component_root(() => {
1367
+ var anchor_node = anchor ?? target.appendChild(create_text());
1368
+ boundary(anchor_node, { pending: () => {} }, (anchor_node) => {
1369
+ push({});
1370
+ var ctx = component_context;
1371
+ if (context) ctx.c = context;
1372
+ if (events)
1373
+ /** @type {any} */ props.$$events = events;
1374
+ if (hydrating) assign_nodes(anchor_node, null);
1375
+ component = Component(anchor_node, props) || {};
1376
+ if (hydrating) {
1377
+ /** @type {Effect & { nodes: EffectNodes }} */ active_effect.nodes.end = hydrate_node;
1378
+ if (hydrate_node === null || hydrate_node.nodeType !== 8 || hydrate_node.data !== "]") {
1379
+ hydration_mismatch();
1380
+ throw HYDRATION_ERROR;
1381
+ }
1382
+ }
1383
+ pop();
1384
+ }, transformError);
1385
+ /** @type {Set<string>} */
1386
+ var registered_events = /* @__PURE__ */ new Set();
1387
+ /** @param {Array<string>} events */
1388
+ var event_handle = (events) => {
1389
+ for (var i = 0; i < events.length; i++) {
1390
+ var event_name = events[i];
1391
+ if (registered_events.has(event_name)) continue;
1392
+ registered_events.add(event_name);
1393
+ var passive = is_passive_event(event_name);
1394
+ for (const node of [target, document]) {
1395
+ var counts = listeners.get(node);
1396
+ if (counts === void 0) {
1397
+ counts = /* @__PURE__ */ new Map();
1398
+ listeners.set(node, counts);
1399
+ }
1400
+ var count = counts.get(event_name);
1401
+ if (count === void 0) {
1402
+ node.addEventListener(event_name, handle_event_propagation, { passive });
1403
+ counts.set(event_name, 1);
1404
+ } else counts.set(event_name, count + 1);
1405
+ }
1406
+ }
1407
+ };
1408
+ event_handle(array_from(all_registered_events));
1409
+ root_event_handles.add(event_handle);
1410
+ return () => {
1411
+ for (var event_name of registered_events) for (const node of [target, document]) {
1412
+ var counts = listeners.get(node);
1413
+ var count = counts.get(event_name);
1414
+ if (--count == 0) {
1415
+ node.removeEventListener(event_name, handle_event_propagation);
1416
+ counts.delete(event_name);
1417
+ if (counts.size === 0) listeners.delete(node);
1418
+ } else counts.set(event_name, count);
1419
+ }
1420
+ root_event_handles.delete(event_handle);
1421
+ if (anchor_node !== anchor) anchor_node.parentNode?.removeChild(anchor_node);
1422
+ };
1423
+ });
1424
+ mounted_components.set(component, unmount);
1425
+ return component;
1426
+ }
1427
+ /**
1428
+ * References of the components that were mounted or hydrated.
1429
+ * Uses a `WeakMap` to avoid memory leaks.
1430
+ */
1431
+ var mounted_components = /* @__PURE__ */ new WeakMap();
1432
+ /**
1433
+ * Unmounts a component that was previously mounted using `mount` or `hydrate`.
1434
+ *
1435
+ * Since 5.13.0, if `options.outro` is `true`, [transitions](https://svelte.dev/docs/svelte/transition) will play before the component is removed from the DOM.
1436
+ *
1437
+ * Returns a `Promise` that resolves after transitions have completed if `options.outro` is true, or immediately otherwise (prior to 5.13.0, returns `void`).
1438
+ *
1439
+ * ```js
1440
+ * import { mount, unmount } from 'svelte';
1441
+ * import App from './App.svelte';
1442
+ *
1443
+ * const app = mount(App, { target: document.body });
1444
+ *
1445
+ * // later...
1446
+ * unmount(app, { outro: true });
1447
+ * ```
1448
+ * @param {Record<string, any>} component
1449
+ * @param {{ outro?: boolean }} [options]
1450
+ * @returns {Promise<void>}
1451
+ */
1452
+ function unmount(component, options) {
1453
+ const fn = mounted_components.get(component);
1454
+ if (fn) {
1455
+ mounted_components.delete(component);
1456
+ return fn(options);
1457
+ }
1458
+ return Promise.resolve();
1459
+ }
1460
+ //#endregion
1461
+ //#region ../../node_modules/.pnpm/svelte@5.55.9/node_modules/svelte/src/legacy/legacy-client.js
1462
+ /** @import { ComponentConstructorOptions, ComponentType, SvelteComponent, Component } from 'svelte' */
1463
+ /**
1464
+ * Takes the component function and returns a Svelte 4 compatible component constructor.
1465
+ *
1466
+ * @deprecated Use this only as a temporary solution to migrate your imperative component code to Svelte 5.
1467
+ *
1468
+ * @template {Record<string, any>} Props
1469
+ * @template {Record<string, any>} Exports
1470
+ * @template {Record<string, any>} Events
1471
+ * @template {Record<string, any>} Slots
1472
+ *
1473
+ * @param {SvelteComponent<Props, Events, Slots> | Component<Props>} component
1474
+ * @returns {ComponentType<SvelteComponent<Props, Events, Slots> & Exports>}
1475
+ */
1476
+ function asClassComponent$1(component) {
1477
+ return class extends Svelte4Component {
1478
+ /** @param {any} options */
1479
+ constructor(options) {
1480
+ super({
1481
+ component,
1482
+ ...options
1483
+ });
1484
+ }
1485
+ };
1486
+ }
1487
+ /**
1488
+ * Support using the component as both a class and function during the transition period
1489
+ * @typedef {{new (o: ComponentConstructorOptions): SvelteComponent;(...args: Parameters<Component<Record<string, any>>>): ReturnType<Component<Record<string, any>, Record<string, any>>>;}} LegacyComponentType
1490
+ */
1491
+ var Svelte4Component = class {
1492
+ /** @type {any} */
1493
+ #events;
1494
+ /** @type {Record<string, any>} */
1495
+ #instance;
1496
+ /**
1497
+ * @param {ComponentConstructorOptions & {
1498
+ * component: any;
1499
+ * }} options
1500
+ */
1501
+ constructor(options) {
1502
+ var sources = /* @__PURE__ */ new Map();
1503
+ /**
1504
+ * @param {string | symbol} key
1505
+ * @param {unknown} value
1506
+ */
1507
+ var add_source = (key, value) => {
1508
+ var s = /* @__PURE__ */ mutable_source(value, false, false);
1509
+ sources.set(key, s);
1510
+ return s;
1511
+ };
1512
+ const props = new Proxy({
1513
+ ...options.props || {},
1514
+ $$events: {}
1515
+ }, {
1516
+ get(target, prop) {
1517
+ return get(sources.get(prop) ?? add_source(prop, Reflect.get(target, prop)));
1518
+ },
1519
+ has(target, prop) {
1520
+ if (prop === LEGACY_PROPS) return true;
1521
+ get(sources.get(prop) ?? add_source(prop, Reflect.get(target, prop)));
1522
+ return Reflect.has(target, prop);
1523
+ },
1524
+ set(target, prop, value) {
1525
+ set(sources.get(prop) ?? add_source(prop, value), value);
1526
+ return Reflect.set(target, prop, value);
1527
+ }
1528
+ });
1529
+ this.#instance = (options.hydrate ? hydrate : mount)(options.component, {
1530
+ target: options.target,
1531
+ anchor: options.anchor,
1532
+ props,
1533
+ context: options.context,
1534
+ intro: options.intro ?? false,
1535
+ recover: options.recover,
1536
+ transformError: options.transformError
1537
+ });
1538
+ if ((!options?.props?.$$host || options.sync === false)) flushSync();
1539
+ this.#events = props.$$events;
1540
+ for (const key of Object.keys(this.#instance)) {
1541
+ if (key === "$set" || key === "$destroy" || key === "$on") continue;
1542
+ define_property(this, key, {
1543
+ get() {
1544
+ return this.#instance[key];
1545
+ },
1546
+ /** @param {any} value */
1547
+ set(value) {
1548
+ this.#instance[key] = value;
1549
+ },
1550
+ enumerable: true
1551
+ });
1552
+ }
1553
+ this.#instance.$set = (next) => {
1554
+ Object.assign(props, next);
1555
+ };
1556
+ this.#instance.$destroy = () => {
1557
+ unmount(this.#instance);
1558
+ };
1559
+ }
1560
+ /** @param {Record<string, any>} props */
1561
+ $set(props) {
1562
+ this.#instance.$set(props);
1563
+ }
1564
+ /**
1565
+ * @param {string} event
1566
+ * @param {(...args: any[]) => any} callback
1567
+ * @returns {any}
1568
+ */
1569
+ $on(event, callback) {
1570
+ this.#events[event] = this.#events[event] || [];
1571
+ /** @param {any[]} args */
1572
+ const cb = (...args) => callback.call(this, ...args);
1573
+ this.#events[event].push(cb);
1574
+ return () => {
1575
+ this.#events[event] = this.#events[event].filter(
1576
+ /** @param {any} fn */
1577
+ (fn) => fn !== cb
1578
+ );
1579
+ };
1580
+ }
1581
+ $destroy() {
1582
+ this.#instance.$destroy();
1583
+ }
1584
+ };
1585
+ //#endregion
1586
+ //#region ../../node_modules/.pnpm/svelte@5.55.9/node_modules/svelte/src/legacy/legacy-server.js
1587
+ /** @import { SvelteComponent } from '../index.js' */
1588
+ /** @import { Csp } from '#server' */
1589
+ /** @typedef {{ head: string, html: string, css: { code: string, map: null }; hashes?: { script: `sha256-${string}`[] } }} LegacyRenderResult */
1590
+ /**
1591
+ * Takes a Svelte 5 component and returns a Svelte 4 compatible component constructor.
1592
+ *
1593
+ * @deprecated Use this only as a temporary solution to migrate your imperative component code to Svelte 5.
1594
+ *
1595
+ * @template {Record<string, any>} Props
1596
+ * @template {Record<string, any>} Exports
1597
+ * @template {Record<string, any>} Events
1598
+ * @template {Record<string, any>} Slots
1599
+ *
1600
+ * @param {SvelteComponent<Props, Events, Slots>} component
1601
+ * @returns {typeof SvelteComponent<Props, Events, Slots> & Exports}
1602
+ */
1603
+ function asClassComponent(component) {
1604
+ const component_constructor = asClassComponent$1(component);
1605
+ /** @type {(props?: {}, opts?: { $$slots?: {}; context?: Map<any, any>; csp?: Csp; transformError?: (error: unknown) => unknown }) => LegacyRenderResult & PromiseLike<LegacyRenderResult> } */
1606
+ const _render = (props, { context, csp, transformError } = {}) => {
1607
+ const result = render(component, {
1608
+ props,
1609
+ context,
1610
+ csp,
1611
+ transformError
1612
+ });
1613
+ const munged = Object.defineProperties({}, {
1614
+ css: { value: {
1615
+ code: "",
1616
+ map: null
1617
+ } },
1618
+ head: { get: () => result.head },
1619
+ html: { get: () => result.body },
1620
+ then: {
1621
+ /**
1622
+ * this is not type-safe, but honestly it's the best I can do right now, and it's a straightforward function.
1623
+ *
1624
+ * @template TResult1
1625
+ * @template [TResult2=never]
1626
+ * @param { (value: LegacyRenderResult) => TResult1 } onfulfilled
1627
+ * @param { (reason: unknown) => TResult2 } onrejected
1628
+ */
1629
+ value: (onfulfilled, onrejected) => {
1630
+ {
1631
+ const user_result = onfulfilled({
1632
+ css: munged.css,
1633
+ head: munged.head,
1634
+ html: munged.html
1635
+ });
1636
+ return Promise.resolve(user_result);
1637
+ }
1638
+ } }
1639
+ });
1640
+ return munged;
1641
+ };
1642
+ component_constructor.render = _render;
1643
+ return component_constructor;
1644
+ }
1645
+ //#endregion
1646
+ //#region .svelte-kit/generated/root.svelte
1647
+ function Root($$renderer, $$props) {
1648
+ $$renderer.component(($$renderer) => {
1649
+ let { stores, page, constructors, components = [], form, data_0 = null, data_1 = null } = $$props;
1650
+ setContext("__svelte__", stores);
1651
+ stores.page.set(page);
1652
+ const Pyramid_1 = derived(() => constructors[1]);
1653
+ if (constructors[1]) {
1654
+ $$renderer.push("<!--[0-->");
1655
+ const Pyramid_0 = constructors[0];
1656
+ if (Pyramid_0) {
1657
+ $$renderer.push("<!--[-->");
1658
+ Pyramid_0($$renderer, {
1659
+ data: data_0,
1660
+ form,
1661
+ params: page.params,
1662
+ children: ($$renderer) => {
1663
+ if (Pyramid_1()) {
1664
+ $$renderer.push("<!--[-->");
1665
+ Pyramid_1()($$renderer, {
1666
+ data: data_1,
1667
+ form,
1668
+ params: page.params
1669
+ });
1670
+ $$renderer.push("<!--]-->");
1671
+ } else {
1672
+ $$renderer.push("<!--[!-->");
1673
+ $$renderer.push("<!--]-->");
1674
+ }
1675
+ },
1676
+ $$slots: { default: true }
1677
+ });
1678
+ $$renderer.push("<!--]-->");
1679
+ } else {
1680
+ $$renderer.push("<!--[!-->");
1681
+ $$renderer.push("<!--]-->");
1682
+ }
1683
+ } else {
1684
+ $$renderer.push("<!--[-1-->");
1685
+ const Pyramid_0 = constructors[0];
1686
+ if (Pyramid_0) {
1687
+ $$renderer.push("<!--[-->");
1688
+ Pyramid_0($$renderer, {
1689
+ data: data_0,
1690
+ form,
1691
+ params: page.params
1692
+ });
1693
+ $$renderer.push("<!--]-->");
1694
+ } else {
1695
+ $$renderer.push("<!--[!-->");
1696
+ $$renderer.push("<!--]-->");
1697
+ }
1698
+ }
1699
+ $$renderer.push(`<!--]--> `);
1700
+ $$renderer.push("<!--[-1-->");
1701
+ $$renderer.push(`<!--]-->`);
1702
+ });
1703
+ }
1704
+ //#endregion
1705
+ //#region .svelte-kit/generated/server/internal.js
1706
+ var options = {
1707
+ app_template_contains_nonce: false,
1708
+ async: false,
1709
+ csp: {
1710
+ "mode": "auto",
1711
+ "directives": {
1712
+ "upgrade-insecure-requests": false,
1713
+ "block-all-mixed-content": false
1714
+ },
1715
+ "reportOnly": {
1716
+ "upgrade-insecure-requests": false,
1717
+ "block-all-mixed-content": false
1718
+ }
1719
+ },
1720
+ csrf_check_origin: true,
1721
+ csrf_trusted_origins: [],
1722
+ embedded: false,
1723
+ env_public_prefix: "PUBLIC_",
1724
+ env_private_prefix: "",
1725
+ hash_routing: false,
1726
+ hooks: null,
1727
+ preload_strategy: "modulepreload",
1728
+ root: asClassComponent(Root),
1729
+ service_worker: false,
1730
+ service_worker_options: void 0,
1731
+ server_error_boundaries: false,
1732
+ templates: {
1733
+ app: ({ head, body, assets, nonce, env }) => "<!doctype html>\n<html lang=\"en\">\n <head>\n <meta charset=\"utf-8\" />\n <link rel=\"icon\" href=\"" + assets + "/favicon.png\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n " + head + "\n </head>\n <body data-sveltekit-preload-data=\"hover\">\n <div style=\"display: contents\">" + body + "</div>\n </body>\n</html>\n",
1734
+ error: ({ status, message }) => "<!doctype html>\n<html lang=\"en\">\n <head>\n <meta charset=\"utf-8\" />\n <title>" + message + "</title>\n\n <style>\n body {\n --bg: white;\n --fg: #222;\n --divider: #ccc;\n background: var(--bg);\n color: var(--fg);\n font-family:\n system-ui,\n -apple-system,\n BlinkMacSystemFont,\n 'Segoe UI',\n Roboto,\n Oxygen,\n Ubuntu,\n Cantarell,\n 'Open Sans',\n 'Helvetica Neue',\n sans-serif;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100vh;\n margin: 0;\n }\n\n .error {\n display: flex;\n align-items: center;\n max-width: 32rem;\n margin: 0 1rem;\n }\n\n .status {\n font-weight: 200;\n font-size: 3rem;\n line-height: 1;\n position: relative;\n top: -0.05rem;\n }\n\n .message {\n border-left: 1px solid var(--divider);\n padding: 0 0 0 1rem;\n margin: 0 0 0 1rem;\n min-height: 2.5rem;\n display: flex;\n align-items: center;\n }\n\n .message h1 {\n font-weight: 400;\n font-size: 1em;\n margin: 0;\n }\n\n @media (prefers-color-scheme: dark) {\n body {\n --bg: #222;\n --fg: #ddd;\n --divider: #666;\n }\n }\n </style>\n </head>\n <body>\n <div class=\"error\">\n <span class=\"status\">" + status + "</span>\n <div class=\"message\">\n <h1>" + message + "</h1>\n </div>\n </div>\n </body>\n</html>\n"
1735
+ },
1736
+ version_hash: "12vqng7"
1737
+ };
1738
+ async function get_hooks() {
1739
+ let handle;
1740
+ let handleFetch;
1741
+ let handleError;
1742
+ let handleValidationError;
1743
+ let init;
1744
+ ({handle, handleFetch, handleError, handleValidationError, init} = await import('./hooks.server-BgTiHdgV.js'));
1745
+ let reroute;
1746
+ let transport;
1747
+ return {
1748
+ handle,
1749
+ handleFetch,
1750
+ handleError,
1751
+ handleValidationError,
1752
+ init,
1753
+ reroute,
1754
+ transport
1755
+ };
1756
+ }
1757
+
1758
+ export { validate_layout_exports as $, noop as A, noop_span as B, normalize_error as C, normalize_path as D, onDestroy as E, once as F, options as G, override as H, INVALIDATED_PARAM as I, parse as J, parse_remote_arg as K, public_env as L, read_implementation as M, reset as N, resolve as O, set_private_env as P, set_public_env as Q, set_read_implementation as R, split_remote_key as S, TRAILING_SLASH_PARAM as T, stringify as U, stringify$1 as V, strip_data_suffix as W, strip_resolution_suffix as X, text_encoder as Y, tick as Z, __commonJSMin as _, __esmMin as a, validate_layout_server_exports as a0, validate_page_exports as a1, validate_page_server_exports as a2, with_request_store as a3, __exportAll as b, __require as c, __toCommonJS as d, __toESM as e, add_data_suffix as f, add_resolution_suffix as g, app_dir as h, assets as i, base as j, base64_encode as k, coalesce_to_error as l, compact as m, create_remote_key as n, decode_pathname as o, disable_search as p, find_route as q, get_hooks as r, get_message as s, get_relative_path as t, get_status as u, has_data_suffix as v, has_resolution_suffix as w, hash as x, index_server_exports as y, make_trackable as z };
1759
+ //# sourceMappingURL=internal-Dtmf8fV4.js.map