@liip/liipgpt 1.0.0 → 2.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.
- package/button/liipgpt-button.iife.js +186 -174
- package/chat/liipgpt-chat.iife.js +222 -210
- package/config/index.cjs +36 -6
- package/config/index.d.ts +3024 -538
- package/config/index.js +36 -6
- package/configurator/_app/env.js +1 -1
- package/configurator/_app/immutable/chunks/BnCAkRMw.js +1 -0
- package/configurator/_app/immutable/chunks/C1CVfDcA.js +209 -0
- package/configurator/_app/immutable/chunks/C7ucs8kz.js +1 -0
- package/configurator/_app/immutable/chunks/CfQtRUjK.js +1 -0
- package/configurator/_app/immutable/chunks/Cgm2UlUC.js +1 -0
- package/configurator/_app/immutable/chunks/DNNNN9KC.js +3 -0
- package/configurator/_app/immutable/chunks/DuQTZe3l.js +1 -0
- package/configurator/_app/immutable/chunks/DvEdoyY3.js +1 -0
- package/configurator/_app/immutable/chunks/{BzVylwd7.js → DwsPRhVz.js} +1 -1
- package/configurator/_app/immutable/chunks/PdZf4Jij.js +1 -0
- package/configurator/_app/immutable/chunks/TMezqz9A.js +1 -0
- package/configurator/_app/immutable/chunks/dZVw-Q0d.js +228 -0
- package/configurator/_app/immutable/chunks/lMON6K8G.js +15 -0
- package/configurator/_app/immutable/entry/app.CdFUjOEM.js +2 -0
- package/configurator/_app/immutable/entry/start.CnM-eUb6.js +1 -0
- package/configurator/_app/immutable/nodes/{0.C1WA-Sd0.js → 0.-WsI4DHZ.js} +1 -1
- package/configurator/_app/immutable/nodes/1.CbwRpfkr.js +1 -0
- package/configurator/_app/immutable/nodes/2.DbP2H5Hu.js +30 -0
- package/configurator/_app/immutable/nodes/3.CrU_53hy.js +897 -0
- package/configurator/_app/version.json +1 -1
- package/configurator/index.html +10 -10
- package/configurator/sidebar.html +10 -10
- package/index.cjs +1329 -864
- package/index.d.ts +4770 -726
- package/index.js +1329 -864
- package/package.json +1 -1
- package/configurator/_app/immutable/chunks/BiXZbQqO.js +0 -1
- package/configurator/_app/immutable/chunks/BmumJykv.js +0 -3
- package/configurator/_app/immutable/chunks/BynrE7QB.js +0 -4
- package/configurator/_app/immutable/chunks/CXbcLk5j.js +0 -1
- package/configurator/_app/immutable/chunks/CaDmIJkP.js +0 -28
- package/configurator/_app/immutable/chunks/D5wkZK_2.js +0 -1
- package/configurator/_app/immutable/chunks/DCtHJYgu.js +0 -1
- package/configurator/_app/immutable/chunks/DH3truD-.js +0 -364
- package/configurator/_app/immutable/chunks/DTGU2mqM.js +0 -1
- package/configurator/_app/immutable/chunks/DUt8zN7X.js +0 -1
- package/configurator/_app/immutable/chunks/DkXqbGhE.js +0 -58
- package/configurator/_app/immutable/chunks/Dq6jck_i.js +0 -1
- package/configurator/_app/immutable/chunks/DqybDqwy.js +0 -15
- package/configurator/_app/immutable/entry/app.0vDWmuRN.js +0 -2
- package/configurator/_app/immutable/entry/start.DR9kqzeI.js +0 -1
- package/configurator/_app/immutable/nodes/1.D_clQXr4.js +0 -1
- package/configurator/_app/immutable/nodes/2.DVQmbfVp.js +0 -1
- package/configurator/_app/immutable/nodes/3.CVRgUIw6.js +0 -897
package/index.js
CHANGED
|
@@ -3192,7 +3192,7 @@ class MarkdownRenderer {
|
|
|
3192
3192
|
}
|
|
3193
3193
|
// node_modules/.pnpm/esm-env@1.2.2/node_modules/esm-env/true.js
|
|
3194
3194
|
var true_default = true;
|
|
3195
|
-
// node_modules/.pnpm/svelte@5.
|
|
3195
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/shared/utils.js
|
|
3196
3196
|
var is_array = Array.isArray;
|
|
3197
3197
|
var index_of = Array.prototype.indexOf;
|
|
3198
3198
|
var array_from = Array.from;
|
|
@@ -3209,8 +3209,17 @@ function run_all(arr) {
|
|
|
3209
3209
|
arr[i]();
|
|
3210
3210
|
}
|
|
3211
3211
|
}
|
|
3212
|
+
function deferred() {
|
|
3213
|
+
var resolve;
|
|
3214
|
+
var reject;
|
|
3215
|
+
var promise = new Promise((res, rej) => {
|
|
3216
|
+
resolve = res;
|
|
3217
|
+
reject = rej;
|
|
3218
|
+
});
|
|
3219
|
+
return { promise, resolve, reject };
|
|
3220
|
+
}
|
|
3212
3221
|
|
|
3213
|
-
// node_modules/.pnpm/svelte@5.
|
|
3222
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/constants.js
|
|
3214
3223
|
var DERIVED = 1 << 1;
|
|
3215
3224
|
var EFFECT = 1 << 2;
|
|
3216
3225
|
var RENDER_EFFECT = 1 << 3;
|
|
@@ -3230,8 +3239,10 @@ var EFFECT_TRANSPARENT = 1 << 16;
|
|
|
3230
3239
|
var INSPECT_EFFECT = 1 << 17;
|
|
3231
3240
|
var HEAD_EFFECT = 1 << 18;
|
|
3232
3241
|
var EFFECT_PRESERVED = 1 << 19;
|
|
3233
|
-
var
|
|
3234
|
-
var
|
|
3242
|
+
var USER_EFFECT = 1 << 20;
|
|
3243
|
+
var REACTION_IS_UPDATING = 1 << 21;
|
|
3244
|
+
var ASYNC = 1 << 22;
|
|
3245
|
+
var ERROR_VALUE = 1 << 23;
|
|
3235
3246
|
var STATE_SYMBOL = Symbol("$state");
|
|
3236
3247
|
var LEGACY_PROPS = Symbol("legacy props");
|
|
3237
3248
|
var LOADING_ATTR_SYMBOL = Symbol("");
|
|
@@ -3242,35 +3253,7 @@ var STALE_REACTION = new class StaleReactionError extends Error {
|
|
|
3242
3253
|
};
|
|
3243
3254
|
var COMMENT_NODE = 8;
|
|
3244
3255
|
|
|
3245
|
-
// node_modules/.pnpm/svelte@5.
|
|
3246
|
-
var micro_tasks = [];
|
|
3247
|
-
var idle_tasks = [];
|
|
3248
|
-
function run_micro_tasks() {
|
|
3249
|
-
var tasks = micro_tasks;
|
|
3250
|
-
micro_tasks = [];
|
|
3251
|
-
run_all(tasks);
|
|
3252
|
-
}
|
|
3253
|
-
function run_idle_tasks() {
|
|
3254
|
-
var tasks = idle_tasks;
|
|
3255
|
-
idle_tasks = [];
|
|
3256
|
-
run_all(tasks);
|
|
3257
|
-
}
|
|
3258
|
-
function queue_micro_task(fn) {
|
|
3259
|
-
if (micro_tasks.length === 0) {
|
|
3260
|
-
queueMicrotask(run_micro_tasks);
|
|
3261
|
-
}
|
|
3262
|
-
micro_tasks.push(fn);
|
|
3263
|
-
}
|
|
3264
|
-
function flush_tasks() {
|
|
3265
|
-
if (micro_tasks.length > 0) {
|
|
3266
|
-
run_micro_tasks();
|
|
3267
|
-
}
|
|
3268
|
-
if (idle_tasks.length > 0) {
|
|
3269
|
-
run_idle_tasks();
|
|
3270
|
-
}
|
|
3271
|
-
}
|
|
3272
|
-
|
|
3273
|
-
// node_modules/.pnpm/svelte@5.35.6/node_modules/svelte/src/internal/client/reactivity/equality.js
|
|
3256
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/reactivity/equality.js
|
|
3274
3257
|
function equals(value) {
|
|
3275
3258
|
return value === this.v;
|
|
3276
3259
|
}
|
|
@@ -3280,8 +3263,7 @@ function safe_not_equal(a, b) {
|
|
|
3280
3263
|
function safe_equals(value) {
|
|
3281
3264
|
return !safe_not_equal(value, this.v);
|
|
3282
3265
|
}
|
|
3283
|
-
|
|
3284
|
-
// node_modules/.pnpm/svelte@5.35.6/node_modules/svelte/src/internal/client/errors.js
|
|
3266
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/errors.js
|
|
3285
3267
|
function derived_references_self() {
|
|
3286
3268
|
if (true_default) {
|
|
3287
3269
|
const error = new Error(`derived_references_self
|
|
@@ -3296,7 +3278,7 @@ https://svelte.dev/e/derived_references_self`);
|
|
|
3296
3278
|
function effect_update_depth_exceeded() {
|
|
3297
3279
|
if (true_default) {
|
|
3298
3280
|
const error = new Error(`effect_update_depth_exceeded
|
|
3299
|
-
Maximum update depth exceeded. This
|
|
3281
|
+
Maximum update depth exceeded. This typically indicates that an effect reads and writes the same piece of state
|
|
3300
3282
|
https://svelte.dev/e/effect_update_depth_exceeded`);
|
|
3301
3283
|
error.name = "Svelte error";
|
|
3302
3284
|
throw error;
|
|
@@ -3304,6 +3286,17 @@ https://svelte.dev/e/effect_update_depth_exceeded`);
|
|
|
3304
3286
|
throw new Error(`https://svelte.dev/e/effect_update_depth_exceeded`);
|
|
3305
3287
|
}
|
|
3306
3288
|
}
|
|
3289
|
+
function flush_sync_in_effect() {
|
|
3290
|
+
if (true_default) {
|
|
3291
|
+
const error = new Error(`flush_sync_in_effect
|
|
3292
|
+
Cannot use \`flushSync\` inside an effect
|
|
3293
|
+
https://svelte.dev/e/flush_sync_in_effect`);
|
|
3294
|
+
error.name = "Svelte error";
|
|
3295
|
+
throw error;
|
|
3296
|
+
} else {
|
|
3297
|
+
throw new Error(`https://svelte.dev/e/flush_sync_in_effect`);
|
|
3298
|
+
}
|
|
3299
|
+
}
|
|
3307
3300
|
function hydration_failed() {
|
|
3308
3301
|
if (true_default) {
|
|
3309
3302
|
const error = new Error(`hydration_failed
|
|
@@ -3360,11 +3353,12 @@ https://svelte.dev/e/state_unsafe_mutation`);
|
|
|
3360
3353
|
}
|
|
3361
3354
|
}
|
|
3362
3355
|
|
|
3363
|
-
// node_modules/.pnpm/svelte@5.
|
|
3356
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/flags/index.js
|
|
3357
|
+
var async_mode_flag = false;
|
|
3364
3358
|
var legacy_mode_flag = false;
|
|
3365
3359
|
var tracing_mode_flag = false;
|
|
3366
3360
|
|
|
3367
|
-
// node_modules/.pnpm/svelte@5.
|
|
3361
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/constants.js
|
|
3368
3362
|
var EACH_INDEX_REACTIVE = 1 << 1;
|
|
3369
3363
|
var EACH_IS_CONTROLLED = 1 << 2;
|
|
3370
3364
|
var EACH_IS_ANIMATED = 1 << 3;
|
|
@@ -3387,40 +3381,40 @@ var UNINITIALIZED = Symbol();
|
|
|
3387
3381
|
var FILENAME = Symbol("filename");
|
|
3388
3382
|
var HMR = Symbol("hmr");
|
|
3389
3383
|
|
|
3390
|
-
// node_modules/.pnpm/svelte@5.
|
|
3384
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/dev/tracing.js
|
|
3391
3385
|
var tracing_expressions = null;
|
|
3392
3386
|
function get_stack(label) {
|
|
3393
3387
|
let error = Error();
|
|
3394
3388
|
const stack = error.stack;
|
|
3395
|
-
if (stack)
|
|
3396
|
-
|
|
3389
|
+
if (!stack)
|
|
3390
|
+
return null;
|
|
3391
|
+
const lines = stack.split(`
|
|
3397
3392
|
`);
|
|
3398
|
-
|
|
3393
|
+
const new_lines = [`
|
|
3399
3394
|
`];
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
}
|
|
3405
|
-
if (line.includes("validate_each_keys")) {
|
|
3406
|
-
return null;
|
|
3407
|
-
}
|
|
3408
|
-
if (line.includes("svelte/src/internal")) {
|
|
3409
|
-
continue;
|
|
3410
|
-
}
|
|
3411
|
-
new_lines.push(line);
|
|
3395
|
+
for (let i = 0;i < lines.length; i++) {
|
|
3396
|
+
const line = lines[i];
|
|
3397
|
+
if (line === "Error") {
|
|
3398
|
+
continue;
|
|
3412
3399
|
}
|
|
3413
|
-
if (
|
|
3400
|
+
if (line.includes("validate_each_keys")) {
|
|
3414
3401
|
return null;
|
|
3415
3402
|
}
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3403
|
+
if (line.includes("svelte/src/internal")) {
|
|
3404
|
+
continue;
|
|
3405
|
+
}
|
|
3406
|
+
new_lines.push(line);
|
|
3407
|
+
}
|
|
3408
|
+
if (new_lines.length === 1) {
|
|
3409
|
+
return null;
|
|
3423
3410
|
}
|
|
3411
|
+
define_property(error, "stack", {
|
|
3412
|
+
value: new_lines.join(`
|
|
3413
|
+
`)
|
|
3414
|
+
});
|
|
3415
|
+
define_property(error, "name", {
|
|
3416
|
+
value: `${label}Error`
|
|
3417
|
+
});
|
|
3424
3418
|
return error;
|
|
3425
3419
|
}
|
|
3426
3420
|
function tag2(source, label) {
|
|
@@ -3433,7 +3427,7 @@ function tag_proxy(value, label) {
|
|
|
3433
3427
|
return value;
|
|
3434
3428
|
}
|
|
3435
3429
|
|
|
3436
|
-
// node_modules/.pnpm/svelte@5.
|
|
3430
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/context.js
|
|
3437
3431
|
var component_context = null;
|
|
3438
3432
|
function set_component_context(context) {
|
|
3439
3433
|
component_context = context;
|
|
@@ -3453,16 +3447,8 @@ function push(props, runes = false, fn) {
|
|
|
3453
3447
|
e: null,
|
|
3454
3448
|
s: props,
|
|
3455
3449
|
x: null,
|
|
3456
|
-
l: null
|
|
3450
|
+
l: legacy_mode_flag && !runes ? { s: null, u: null, $: [] } : null
|
|
3457
3451
|
};
|
|
3458
|
-
if (legacy_mode_flag && !runes) {
|
|
3459
|
-
component_context.l = {
|
|
3460
|
-
s: null,
|
|
3461
|
-
u: null,
|
|
3462
|
-
r1: [],
|
|
3463
|
-
r2: source(false)
|
|
3464
|
-
};
|
|
3465
|
-
}
|
|
3466
3452
|
if (true_default) {
|
|
3467
3453
|
component_context.function = fn;
|
|
3468
3454
|
dev_current_component_function = fn;
|
|
@@ -3490,7 +3476,93 @@ function is_runes() {
|
|
|
3490
3476
|
return !legacy_mode_flag || component_context !== null && component_context.l === null;
|
|
3491
3477
|
}
|
|
3492
3478
|
|
|
3493
|
-
// node_modules/.pnpm/svelte@5.
|
|
3479
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/warnings.js
|
|
3480
|
+
var bold = "font-weight: bold";
|
|
3481
|
+
var normal = "font-weight: normal";
|
|
3482
|
+
function await_reactivity_loss(name) {
|
|
3483
|
+
if (true_default) {
|
|
3484
|
+
console.warn(`%c[svelte] await_reactivity_loss
|
|
3485
|
+
%cDetected reactivity loss when reading \`${name}\`. This happens when state is read in an async function after an earlier \`await\`
|
|
3486
|
+
https://svelte.dev/e/await_reactivity_loss`, bold, normal);
|
|
3487
|
+
} else {
|
|
3488
|
+
console.warn(`https://svelte.dev/e/await_reactivity_loss`);
|
|
3489
|
+
}
|
|
3490
|
+
}
|
|
3491
|
+
function hydration_mismatch(location) {
|
|
3492
|
+
if (true_default) {
|
|
3493
|
+
console.warn(`%c[svelte] hydration_mismatch
|
|
3494
|
+
%c${location ? `Hydration failed because the initial UI does not match what was rendered on the server. The error occurred near ${location}` : "Hydration failed because the initial UI does not match what was rendered on the server"}
|
|
3495
|
+
https://svelte.dev/e/hydration_mismatch`, bold, normal);
|
|
3496
|
+
} else {
|
|
3497
|
+
console.warn(`https://svelte.dev/e/hydration_mismatch`);
|
|
3498
|
+
}
|
|
3499
|
+
}
|
|
3500
|
+
function lifecycle_double_unmount() {
|
|
3501
|
+
if (true_default) {
|
|
3502
|
+
console.warn(`%c[svelte] lifecycle_double_unmount
|
|
3503
|
+
%cTried to unmount a component that was not mounted
|
|
3504
|
+
https://svelte.dev/e/lifecycle_double_unmount`, bold, normal);
|
|
3505
|
+
} else {
|
|
3506
|
+
console.warn(`https://svelte.dev/e/lifecycle_double_unmount`);
|
|
3507
|
+
}
|
|
3508
|
+
}
|
|
3509
|
+
function state_proxy_equality_mismatch(operator) {
|
|
3510
|
+
if (true_default) {
|
|
3511
|
+
console.warn(`%c[svelte] state_proxy_equality_mismatch
|
|
3512
|
+
%cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${operator}\` will produce unexpected results
|
|
3513
|
+
https://svelte.dev/e/state_proxy_equality_mismatch`, bold, normal);
|
|
3514
|
+
} else {
|
|
3515
|
+
console.warn(`https://svelte.dev/e/state_proxy_equality_mismatch`);
|
|
3516
|
+
}
|
|
3517
|
+
}
|
|
3518
|
+
|
|
3519
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/dom/hydration.js
|
|
3520
|
+
var hydrating = false;
|
|
3521
|
+
function set_hydrating(value) {
|
|
3522
|
+
hydrating = value;
|
|
3523
|
+
}
|
|
3524
|
+
var hydrate_node;
|
|
3525
|
+
function set_hydrate_node(node) {
|
|
3526
|
+
if (node === null) {
|
|
3527
|
+
hydration_mismatch();
|
|
3528
|
+
throw HYDRATION_ERROR;
|
|
3529
|
+
}
|
|
3530
|
+
return hydrate_node = node;
|
|
3531
|
+
}
|
|
3532
|
+
function hydrate_next() {
|
|
3533
|
+
return set_hydrate_node(get_next_sibling(hydrate_node));
|
|
3534
|
+
}
|
|
3535
|
+
function next(count = 1) {
|
|
3536
|
+
if (hydrating) {
|
|
3537
|
+
var i = count;
|
|
3538
|
+
var node = hydrate_node;
|
|
3539
|
+
while (i--) {
|
|
3540
|
+
node = get_next_sibling(node);
|
|
3541
|
+
}
|
|
3542
|
+
hydrate_node = node;
|
|
3543
|
+
}
|
|
3544
|
+
}
|
|
3545
|
+
function remove_nodes() {
|
|
3546
|
+
var depth = 0;
|
|
3547
|
+
var node = hydrate_node;
|
|
3548
|
+
while (true) {
|
|
3549
|
+
if (node.nodeType === COMMENT_NODE) {
|
|
3550
|
+
var data = node.data;
|
|
3551
|
+
if (data === HYDRATION_END) {
|
|
3552
|
+
if (depth === 0)
|
|
3553
|
+
return node;
|
|
3554
|
+
depth -= 1;
|
|
3555
|
+
} else if (data === HYDRATION_START || data === HYDRATION_START_ELSE) {
|
|
3556
|
+
depth += 1;
|
|
3557
|
+
}
|
|
3558
|
+
}
|
|
3559
|
+
var next2 = get_next_sibling(node);
|
|
3560
|
+
node.remove();
|
|
3561
|
+
node = next2;
|
|
3562
|
+
}
|
|
3563
|
+
}
|
|
3564
|
+
|
|
3565
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/proxy.js
|
|
3494
3566
|
var regex_is_valid_identifier = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
|
|
3495
3567
|
function proxy(value) {
|
|
3496
3568
|
if (typeof value !== "object" || value === null || STATE_SYMBOL in value) {
|
|
@@ -3520,13 +3592,16 @@ function proxy(value) {
|
|
|
3520
3592
|
};
|
|
3521
3593
|
if (is_proxied_array) {
|
|
3522
3594
|
sources.set("length", state(value.length, stack));
|
|
3595
|
+
if (true_default) {
|
|
3596
|
+
value = inspectable_array(value);
|
|
3597
|
+
}
|
|
3523
3598
|
}
|
|
3524
3599
|
var path = "";
|
|
3525
3600
|
function update_path(new_path) {
|
|
3526
3601
|
path = new_path;
|
|
3527
3602
|
tag2(version, `${path} version`);
|
|
3528
|
-
for (const [prop,
|
|
3529
|
-
tag2(
|
|
3603
|
+
for (const [prop, source] of sources) {
|
|
3604
|
+
tag2(source, get_label(path, prop));
|
|
3530
3605
|
}
|
|
3531
3606
|
}
|
|
3532
3607
|
return new Proxy(value, {
|
|
@@ -3561,13 +3636,6 @@ function proxy(value) {
|
|
|
3561
3636
|
}
|
|
3562
3637
|
}
|
|
3563
3638
|
} else {
|
|
3564
|
-
if (is_proxied_array && typeof prop === "string") {
|
|
3565
|
-
var ls = sources.get("length");
|
|
3566
|
-
var n = Number(prop);
|
|
3567
|
-
if (Number.isInteger(n) && n < ls.v) {
|
|
3568
|
-
set(ls, n);
|
|
3569
|
-
}
|
|
3570
|
-
}
|
|
3571
3639
|
set(s, UNINITIALIZED);
|
|
3572
3640
|
increment(version);
|
|
3573
3641
|
}
|
|
@@ -3606,9 +3674,9 @@ function proxy(value) {
|
|
|
3606
3674
|
if (s)
|
|
3607
3675
|
descriptor.value = get(s);
|
|
3608
3676
|
} else if (descriptor === undefined) {
|
|
3609
|
-
var
|
|
3610
|
-
var value2 =
|
|
3611
|
-
if (
|
|
3677
|
+
var source = sources.get(prop);
|
|
3678
|
+
var value2 = source?.v;
|
|
3679
|
+
if (source !== undefined && value2 !== UNINITIALIZED) {
|
|
3612
3680
|
return {
|
|
3613
3681
|
enumerable: true,
|
|
3614
3682
|
configurable: true,
|
|
@@ -3694,11 +3762,11 @@ function proxy(value) {
|
|
|
3694
3762
|
ownKeys(target) {
|
|
3695
3763
|
get(version);
|
|
3696
3764
|
var own_keys = Reflect.ownKeys(target).filter((key2) => {
|
|
3697
|
-
var
|
|
3698
|
-
return
|
|
3765
|
+
var source2 = sources.get(key2);
|
|
3766
|
+
return source2 === undefined || source2.v !== UNINITIALIZED;
|
|
3699
3767
|
});
|
|
3700
|
-
for (var [key,
|
|
3701
|
-
if (
|
|
3768
|
+
for (var [key, source] of sources) {
|
|
3769
|
+
if (source.v !== UNINITIALIZED && !(key in target)) {
|
|
3702
3770
|
own_keys.push(key);
|
|
3703
3771
|
}
|
|
3704
3772
|
}
|
|
@@ -3724,322 +3792,86 @@ function get_proxied_value(value) {
|
|
|
3724
3792
|
} catch {}
|
|
3725
3793
|
return value;
|
|
3726
3794
|
}
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3795
|
+
var ARRAY_MUTATING_METHODS = new Set([
|
|
3796
|
+
"copyWithin",
|
|
3797
|
+
"fill",
|
|
3798
|
+
"pop",
|
|
3799
|
+
"push",
|
|
3800
|
+
"reverse",
|
|
3801
|
+
"shift",
|
|
3802
|
+
"sort",
|
|
3803
|
+
"splice",
|
|
3804
|
+
"unshift"
|
|
3805
|
+
]);
|
|
3806
|
+
function inspectable_array(array) {
|
|
3807
|
+
return new Proxy(array, {
|
|
3808
|
+
get(target, prop, receiver) {
|
|
3809
|
+
var value = Reflect.get(target, prop, receiver);
|
|
3810
|
+
if (!ARRAY_MUTATING_METHODS.has(prop)) {
|
|
3811
|
+
return value;
|
|
3812
|
+
}
|
|
3813
|
+
return function(...args) {
|
|
3814
|
+
set_inspect_effects_deferred();
|
|
3815
|
+
var result = value.apply(this, args);
|
|
3816
|
+
flush_inspect_effects();
|
|
3817
|
+
return result;
|
|
3818
|
+
};
|
|
3735
3819
|
}
|
|
3736
|
-
}
|
|
3820
|
+
});
|
|
3737
3821
|
}
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
parent = parent.parent;
|
|
3822
|
+
|
|
3823
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/dev/equality.js
|
|
3824
|
+
function init_array_prototype_warnings() {
|
|
3825
|
+
const array_prototype2 = Array.prototype;
|
|
3826
|
+
const cleanup = Array.__svelte_cleanup;
|
|
3827
|
+
if (cleanup) {
|
|
3828
|
+
cleanup();
|
|
3746
3829
|
}
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
try {
|
|
3757
|
-
if (stack.includes(derived)) {
|
|
3758
|
-
derived_references_self();
|
|
3830
|
+
const { indexOf, lastIndexOf, includes } = array_prototype2;
|
|
3831
|
+
array_prototype2.indexOf = function(item, from_index) {
|
|
3832
|
+
const index = indexOf.call(this, item, from_index);
|
|
3833
|
+
if (index === -1) {
|
|
3834
|
+
for (let i = from_index ?? 0;i < this.length; i += 1) {
|
|
3835
|
+
if (get_proxied_value(this[i]) === item) {
|
|
3836
|
+
state_proxy_equality_mismatch("array.indexOf(...)");
|
|
3837
|
+
break;
|
|
3838
|
+
}
|
|
3759
3839
|
}
|
|
3760
|
-
stack.push(derived);
|
|
3761
|
-
destroy_derived_effects(derived);
|
|
3762
|
-
value = update_reaction(derived);
|
|
3763
|
-
} finally {
|
|
3764
|
-
set_active_effect(prev_active_effect);
|
|
3765
|
-
set_inspect_effects(prev_inspect_effects);
|
|
3766
|
-
stack.pop();
|
|
3767
3840
|
}
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3841
|
+
return index;
|
|
3842
|
+
};
|
|
3843
|
+
array_prototype2.lastIndexOf = function(item, from_index) {
|
|
3844
|
+
const index = lastIndexOf.call(this, item, from_index ?? this.length - 1);
|
|
3845
|
+
if (index === -1) {
|
|
3846
|
+
for (let i = 0;i <= (from_index ?? this.length - 1); i += 1) {
|
|
3847
|
+
if (get_proxied_value(this[i]) === item) {
|
|
3848
|
+
state_proxy_equality_mismatch("array.lastIndexOf(...)");
|
|
3849
|
+
break;
|
|
3850
|
+
}
|
|
3851
|
+
}
|
|
3774
3852
|
}
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3853
|
+
return index;
|
|
3854
|
+
};
|
|
3855
|
+
array_prototype2.includes = function(item, from_index) {
|
|
3856
|
+
const has = includes.call(this, item, from_index);
|
|
3857
|
+
if (!has) {
|
|
3858
|
+
for (let i = 0;i < this.length; i += 1) {
|
|
3859
|
+
if (get_proxied_value(this[i]) === item) {
|
|
3860
|
+
state_proxy_equality_mismatch("array.includes(...)");
|
|
3861
|
+
break;
|
|
3862
|
+
}
|
|
3863
|
+
}
|
|
3864
|
+
}
|
|
3865
|
+
return has;
|
|
3866
|
+
};
|
|
3867
|
+
Array.__svelte_cleanup = () => {
|
|
3868
|
+
array_prototype2.indexOf = indexOf;
|
|
3869
|
+
array_prototype2.lastIndexOf = lastIndexOf;
|
|
3870
|
+
array_prototype2.includes = includes;
|
|
3871
|
+
};
|
|
3788
3872
|
}
|
|
3789
3873
|
|
|
3790
|
-
// node_modules/.pnpm/svelte@5.
|
|
3791
|
-
var inspect_effects = new Set;
|
|
3792
|
-
var old_values = new Map;
|
|
3793
|
-
function set_inspect_effects(v) {
|
|
3794
|
-
inspect_effects = v;
|
|
3795
|
-
}
|
|
3796
|
-
function source(v, stack2) {
|
|
3797
|
-
var signal = {
|
|
3798
|
-
f: 0,
|
|
3799
|
-
v,
|
|
3800
|
-
reactions: null,
|
|
3801
|
-
equals,
|
|
3802
|
-
rv: 0,
|
|
3803
|
-
wv: 0
|
|
3804
|
-
};
|
|
3805
|
-
if (true_default && tracing_mode_flag) {
|
|
3806
|
-
signal.created = stack2 ?? get_stack("CreatedAt");
|
|
3807
|
-
signal.updated = null;
|
|
3808
|
-
signal.set_during_effect = false;
|
|
3809
|
-
signal.trace = null;
|
|
3810
|
-
}
|
|
3811
|
-
return signal;
|
|
3812
|
-
}
|
|
3813
|
-
function state(v, stack2) {
|
|
3814
|
-
const s = source(v, stack2);
|
|
3815
|
-
push_reaction_value(s);
|
|
3816
|
-
return s;
|
|
3817
|
-
}
|
|
3818
|
-
function mutable_source(initial_value, immutable = false, trackable = true) {
|
|
3819
|
-
const s = source(initial_value);
|
|
3820
|
-
if (!immutable) {
|
|
3821
|
-
s.equals = safe_equals;
|
|
3822
|
-
}
|
|
3823
|
-
if (legacy_mode_flag && trackable && component_context !== null && component_context.l !== null) {
|
|
3824
|
-
(component_context.l.s ??= []).push(s);
|
|
3825
|
-
}
|
|
3826
|
-
return s;
|
|
3827
|
-
}
|
|
3828
|
-
function set(source2, value, should_proxy = false) {
|
|
3829
|
-
if (active_reaction !== null && (!untracking || (active_reaction.f & INSPECT_EFFECT) !== 0) && is_runes() && (active_reaction.f & (DERIVED | BLOCK_EFFECT | INSPECT_EFFECT)) !== 0 && !current_sources?.includes(source2)) {
|
|
3830
|
-
state_unsafe_mutation();
|
|
3831
|
-
}
|
|
3832
|
-
let new_value = should_proxy ? proxy(value) : value;
|
|
3833
|
-
if (true_default) {
|
|
3834
|
-
tag_proxy(new_value, source2.label);
|
|
3835
|
-
}
|
|
3836
|
-
return internal_set(source2, new_value);
|
|
3837
|
-
}
|
|
3838
|
-
function internal_set(source2, value) {
|
|
3839
|
-
if (!source2.equals(value)) {
|
|
3840
|
-
var old_value = source2.v;
|
|
3841
|
-
if (is_destroying_effect) {
|
|
3842
|
-
old_values.set(source2, value);
|
|
3843
|
-
} else {
|
|
3844
|
-
old_values.set(source2, old_value);
|
|
3845
|
-
}
|
|
3846
|
-
source2.v = value;
|
|
3847
|
-
if (true_default && tracing_mode_flag) {
|
|
3848
|
-
source2.updated = get_stack("UpdatedAt");
|
|
3849
|
-
if (active_effect !== null) {
|
|
3850
|
-
source2.set_during_effect = true;
|
|
3851
|
-
}
|
|
3852
|
-
}
|
|
3853
|
-
if ((source2.f & DERIVED) !== 0) {
|
|
3854
|
-
if ((source2.f & DIRTY) !== 0) {
|
|
3855
|
-
execute_derived(source2);
|
|
3856
|
-
}
|
|
3857
|
-
set_signal_status(source2, (source2.f & UNOWNED) === 0 ? CLEAN : MAYBE_DIRTY);
|
|
3858
|
-
}
|
|
3859
|
-
source2.wv = increment_write_version();
|
|
3860
|
-
mark_reactions(source2, DIRTY);
|
|
3861
|
-
if (is_runes() && active_effect !== null && (active_effect.f & CLEAN) !== 0 && (active_effect.f & (BRANCH_EFFECT | ROOT_EFFECT)) === 0) {
|
|
3862
|
-
if (untracked_writes === null) {
|
|
3863
|
-
set_untracked_writes([source2]);
|
|
3864
|
-
} else {
|
|
3865
|
-
untracked_writes.push(source2);
|
|
3866
|
-
}
|
|
3867
|
-
}
|
|
3868
|
-
if (true_default && inspect_effects.size > 0) {
|
|
3869
|
-
const inspects = Array.from(inspect_effects);
|
|
3870
|
-
for (const effect of inspects) {
|
|
3871
|
-
if ((effect.f & CLEAN) !== 0) {
|
|
3872
|
-
set_signal_status(effect, MAYBE_DIRTY);
|
|
3873
|
-
}
|
|
3874
|
-
if (check_dirtiness(effect)) {
|
|
3875
|
-
update_effect(effect);
|
|
3876
|
-
}
|
|
3877
|
-
}
|
|
3878
|
-
inspect_effects.clear();
|
|
3879
|
-
}
|
|
3880
|
-
}
|
|
3881
|
-
return value;
|
|
3882
|
-
}
|
|
3883
|
-
function increment(source2) {
|
|
3884
|
-
set(source2, source2.v + 1);
|
|
3885
|
-
}
|
|
3886
|
-
function mark_reactions(signal, status) {
|
|
3887
|
-
var reactions = signal.reactions;
|
|
3888
|
-
if (reactions === null)
|
|
3889
|
-
return;
|
|
3890
|
-
var runes = is_runes();
|
|
3891
|
-
var length = reactions.length;
|
|
3892
|
-
for (var i = 0;i < length; i++) {
|
|
3893
|
-
var reaction = reactions[i];
|
|
3894
|
-
var flags = reaction.f;
|
|
3895
|
-
if ((flags & DIRTY) !== 0)
|
|
3896
|
-
continue;
|
|
3897
|
-
if (!runes && reaction === active_effect)
|
|
3898
|
-
continue;
|
|
3899
|
-
if (true_default && (flags & INSPECT_EFFECT) !== 0) {
|
|
3900
|
-
inspect_effects.add(reaction);
|
|
3901
|
-
continue;
|
|
3902
|
-
}
|
|
3903
|
-
set_signal_status(reaction, status);
|
|
3904
|
-
if ((flags & (CLEAN | UNOWNED)) !== 0) {
|
|
3905
|
-
if ((flags & DERIVED) !== 0) {
|
|
3906
|
-
mark_reactions(reaction, MAYBE_DIRTY);
|
|
3907
|
-
} else {
|
|
3908
|
-
schedule_effect(reaction);
|
|
3909
|
-
}
|
|
3910
|
-
}
|
|
3911
|
-
}
|
|
3912
|
-
}
|
|
3913
|
-
|
|
3914
|
-
// node_modules/.pnpm/svelte@5.35.6/node_modules/svelte/src/internal/client/warnings.js
|
|
3915
|
-
var bold = "font-weight: bold";
|
|
3916
|
-
var normal = "font-weight: normal";
|
|
3917
|
-
function hydration_mismatch(location) {
|
|
3918
|
-
if (true_default) {
|
|
3919
|
-
console.warn(`%c[svelte] hydration_mismatch
|
|
3920
|
-
%c${location ? `Hydration failed because the initial UI does not match what was rendered on the server. The error occurred near ${location}` : "Hydration failed because the initial UI does not match what was rendered on the server"}
|
|
3921
|
-
https://svelte.dev/e/hydration_mismatch`, bold, normal);
|
|
3922
|
-
} else {
|
|
3923
|
-
console.warn(`https://svelte.dev/e/hydration_mismatch`);
|
|
3924
|
-
}
|
|
3925
|
-
}
|
|
3926
|
-
function lifecycle_double_unmount() {
|
|
3927
|
-
if (true_default) {
|
|
3928
|
-
console.warn(`%c[svelte] lifecycle_double_unmount
|
|
3929
|
-
%cTried to unmount a component that was not mounted
|
|
3930
|
-
https://svelte.dev/e/lifecycle_double_unmount`, bold, normal);
|
|
3931
|
-
} else {
|
|
3932
|
-
console.warn(`https://svelte.dev/e/lifecycle_double_unmount`);
|
|
3933
|
-
}
|
|
3934
|
-
}
|
|
3935
|
-
function state_proxy_equality_mismatch(operator) {
|
|
3936
|
-
if (true_default) {
|
|
3937
|
-
console.warn(`%c[svelte] state_proxy_equality_mismatch
|
|
3938
|
-
%cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${operator}\` will produce unexpected results
|
|
3939
|
-
https://svelte.dev/e/state_proxy_equality_mismatch`, bold, normal);
|
|
3940
|
-
} else {
|
|
3941
|
-
console.warn(`https://svelte.dev/e/state_proxy_equality_mismatch`);
|
|
3942
|
-
}
|
|
3943
|
-
}
|
|
3944
|
-
|
|
3945
|
-
// node_modules/.pnpm/svelte@5.35.6/node_modules/svelte/src/internal/client/dom/hydration.js
|
|
3946
|
-
var hydrating = false;
|
|
3947
|
-
function set_hydrating(value) {
|
|
3948
|
-
hydrating = value;
|
|
3949
|
-
}
|
|
3950
|
-
var hydrate_node;
|
|
3951
|
-
function set_hydrate_node(node) {
|
|
3952
|
-
if (node === null) {
|
|
3953
|
-
hydration_mismatch();
|
|
3954
|
-
throw HYDRATION_ERROR;
|
|
3955
|
-
}
|
|
3956
|
-
return hydrate_node = node;
|
|
3957
|
-
}
|
|
3958
|
-
function hydrate_next() {
|
|
3959
|
-
return set_hydrate_node(get_next_sibling(hydrate_node));
|
|
3960
|
-
}
|
|
3961
|
-
function next(count = 1) {
|
|
3962
|
-
if (hydrating) {
|
|
3963
|
-
var i = count;
|
|
3964
|
-
var node = hydrate_node;
|
|
3965
|
-
while (i--) {
|
|
3966
|
-
node = get_next_sibling(node);
|
|
3967
|
-
}
|
|
3968
|
-
hydrate_node = node;
|
|
3969
|
-
}
|
|
3970
|
-
}
|
|
3971
|
-
function remove_nodes() {
|
|
3972
|
-
var depth = 0;
|
|
3973
|
-
var node = hydrate_node;
|
|
3974
|
-
while (true) {
|
|
3975
|
-
if (node.nodeType === COMMENT_NODE) {
|
|
3976
|
-
var data = node.data;
|
|
3977
|
-
if (data === HYDRATION_END) {
|
|
3978
|
-
if (depth === 0)
|
|
3979
|
-
return node;
|
|
3980
|
-
depth -= 1;
|
|
3981
|
-
} else if (data === HYDRATION_START || data === HYDRATION_START_ELSE) {
|
|
3982
|
-
depth += 1;
|
|
3983
|
-
}
|
|
3984
|
-
}
|
|
3985
|
-
var next2 = get_next_sibling(node);
|
|
3986
|
-
node.remove();
|
|
3987
|
-
node = next2;
|
|
3988
|
-
}
|
|
3989
|
-
}
|
|
3990
|
-
|
|
3991
|
-
// node_modules/.pnpm/svelte@5.35.6/node_modules/svelte/src/internal/client/dev/equality.js
|
|
3992
|
-
function init_array_prototype_warnings() {
|
|
3993
|
-
const array_prototype2 = Array.prototype;
|
|
3994
|
-
const cleanup = Array.__svelte_cleanup;
|
|
3995
|
-
if (cleanup) {
|
|
3996
|
-
cleanup();
|
|
3997
|
-
}
|
|
3998
|
-
const { indexOf, lastIndexOf, includes } = array_prototype2;
|
|
3999
|
-
array_prototype2.indexOf = function(item, from_index) {
|
|
4000
|
-
const index = indexOf.call(this, item, from_index);
|
|
4001
|
-
if (index === -1) {
|
|
4002
|
-
for (let i = from_index ?? 0;i < this.length; i += 1) {
|
|
4003
|
-
if (get_proxied_value(this[i]) === item) {
|
|
4004
|
-
state_proxy_equality_mismatch("array.indexOf(...)");
|
|
4005
|
-
break;
|
|
4006
|
-
}
|
|
4007
|
-
}
|
|
4008
|
-
}
|
|
4009
|
-
return index;
|
|
4010
|
-
};
|
|
4011
|
-
array_prototype2.lastIndexOf = function(item, from_index) {
|
|
4012
|
-
const index = lastIndexOf.call(this, item, from_index ?? this.length - 1);
|
|
4013
|
-
if (index === -1) {
|
|
4014
|
-
for (let i = 0;i <= (from_index ?? this.length - 1); i += 1) {
|
|
4015
|
-
if (get_proxied_value(this[i]) === item) {
|
|
4016
|
-
state_proxy_equality_mismatch("array.lastIndexOf(...)");
|
|
4017
|
-
break;
|
|
4018
|
-
}
|
|
4019
|
-
}
|
|
4020
|
-
}
|
|
4021
|
-
return index;
|
|
4022
|
-
};
|
|
4023
|
-
array_prototype2.includes = function(item, from_index) {
|
|
4024
|
-
const has = includes.call(this, item, from_index);
|
|
4025
|
-
if (!has) {
|
|
4026
|
-
for (let i = 0;i < this.length; i += 1) {
|
|
4027
|
-
if (get_proxied_value(this[i]) === item) {
|
|
4028
|
-
state_proxy_equality_mismatch("array.includes(...)");
|
|
4029
|
-
break;
|
|
4030
|
-
}
|
|
4031
|
-
}
|
|
4032
|
-
}
|
|
4033
|
-
return has;
|
|
4034
|
-
};
|
|
4035
|
-
Array.__svelte_cleanup = () => {
|
|
4036
|
-
array_prototype2.indexOf = indexOf;
|
|
4037
|
-
array_prototype2.lastIndexOf = lastIndexOf;
|
|
4038
|
-
array_prototype2.includes = includes;
|
|
4039
|
-
};
|
|
4040
|
-
}
|
|
4041
|
-
|
|
4042
|
-
// node_modules/.pnpm/svelte@5.35.6/node_modules/svelte/src/internal/client/dom/operations.js
|
|
3874
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/dom/operations.js
|
|
4043
3875
|
var $window;
|
|
4044
3876
|
var $document;
|
|
4045
3877
|
var is_firefox;
|
|
@@ -4085,17 +3917,25 @@ function clear_text_content(node) {
|
|
|
4085
3917
|
node.textContent = "";
|
|
4086
3918
|
}
|
|
4087
3919
|
|
|
4088
|
-
// node_modules/.pnpm/svelte@5.
|
|
3920
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/error-handling.js
|
|
3921
|
+
var adjustments = new WeakMap;
|
|
4089
3922
|
function handle_error(error) {
|
|
4090
3923
|
var effect = active_effect;
|
|
4091
|
-
if (
|
|
4092
|
-
|
|
3924
|
+
if (effect === null) {
|
|
3925
|
+
active_reaction.f |= ERROR_VALUE;
|
|
3926
|
+
return error;
|
|
3927
|
+
}
|
|
3928
|
+
if (true_default && error instanceof Error && !adjustments.has(error)) {
|
|
3929
|
+
adjustments.set(error, get_adjustments(error, effect));
|
|
4093
3930
|
}
|
|
4094
3931
|
if ((effect.f & EFFECT_RAN) === 0) {
|
|
4095
3932
|
if ((effect.f & BOUNDARY_EFFECT) === 0) {
|
|
3933
|
+
if (!effect.parent && error instanceof Error) {
|
|
3934
|
+
apply_adjustments(error);
|
|
3935
|
+
}
|
|
4096
3936
|
throw error;
|
|
4097
3937
|
}
|
|
4098
|
-
effect.
|
|
3938
|
+
effect.b.error(error);
|
|
4099
3939
|
} else {
|
|
4100
3940
|
invoke_error_boundary(error, effect);
|
|
4101
3941
|
}
|
|
@@ -4110,13 +3950,12 @@ function invoke_error_boundary(error, effect) {
|
|
|
4110
3950
|
}
|
|
4111
3951
|
effect = effect.parent;
|
|
4112
3952
|
}
|
|
3953
|
+
if (error instanceof Error) {
|
|
3954
|
+
apply_adjustments(error);
|
|
3955
|
+
}
|
|
4113
3956
|
throw error;
|
|
4114
3957
|
}
|
|
4115
|
-
|
|
4116
|
-
function adjust_error(error, effect) {
|
|
4117
|
-
if (adjusted_errors.has(error))
|
|
4118
|
-
return;
|
|
4119
|
-
adjusted_errors.add(error);
|
|
3958
|
+
function get_adjustments(error, effect) {
|
|
4120
3959
|
const message_descriptor = get_descriptor(error, "message");
|
|
4121
3960
|
if (message_descriptor && !message_descriptor.configurable)
|
|
4122
3961
|
return;
|
|
@@ -4129,30 +3968,838 @@ ${indent}in ${effect.fn?.name || "<unknown>"}`;
|
|
|
4129
3968
|
${indent}in ${context.function?.[FILENAME].split("/").pop()}`;
|
|
4130
3969
|
context = context.p;
|
|
4131
3970
|
}
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
${component_stack}
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
3971
|
+
return {
|
|
3972
|
+
message: error.message + `
|
|
3973
|
+
${component_stack}
|
|
3974
|
+
`,
|
|
3975
|
+
stack: error.stack?.split(`
|
|
3976
|
+
`).filter((line) => !line.includes("svelte/src/internal")).join(`
|
|
3977
|
+
`)
|
|
3978
|
+
};
|
|
3979
|
+
}
|
|
3980
|
+
function apply_adjustments(error) {
|
|
3981
|
+
const adjusted = adjustments.get(error);
|
|
3982
|
+
if (adjusted) {
|
|
3983
|
+
define_property(error, "message", {
|
|
3984
|
+
value: adjusted.message
|
|
3985
|
+
});
|
|
3986
|
+
define_property(error, "stack", {
|
|
3987
|
+
value: adjusted.stack
|
|
3988
|
+
});
|
|
3989
|
+
}
|
|
3990
|
+
}
|
|
3991
|
+
|
|
3992
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/dom/task.js
|
|
3993
|
+
var micro_tasks = [];
|
|
3994
|
+
var idle_tasks = [];
|
|
3995
|
+
function run_micro_tasks() {
|
|
3996
|
+
var tasks = micro_tasks;
|
|
3997
|
+
micro_tasks = [];
|
|
3998
|
+
run_all(tasks);
|
|
3999
|
+
}
|
|
4000
|
+
function run_idle_tasks() {
|
|
4001
|
+
var tasks = idle_tasks;
|
|
4002
|
+
idle_tasks = [];
|
|
4003
|
+
run_all(tasks);
|
|
4004
|
+
}
|
|
4005
|
+
function queue_micro_task(fn) {
|
|
4006
|
+
if (micro_tasks.length === 0) {
|
|
4007
|
+
queueMicrotask(run_micro_tasks);
|
|
4008
|
+
}
|
|
4009
|
+
micro_tasks.push(fn);
|
|
4010
|
+
}
|
|
4011
|
+
function flush_tasks() {
|
|
4012
|
+
if (micro_tasks.length > 0) {
|
|
4013
|
+
run_micro_tasks();
|
|
4014
|
+
}
|
|
4015
|
+
if (idle_tasks.length > 0) {
|
|
4016
|
+
run_idle_tasks();
|
|
4017
|
+
}
|
|
4018
|
+
}
|
|
4019
|
+
|
|
4020
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/reactivity/create-subscriber.js
|
|
4021
|
+
function createSubscriber(start) {
|
|
4022
|
+
let subscribers = 0;
|
|
4023
|
+
let version = source(0);
|
|
4024
|
+
let stop;
|
|
4025
|
+
if (true_default) {
|
|
4026
|
+
tag2(version, "createSubscriber version");
|
|
4027
|
+
}
|
|
4028
|
+
return () => {
|
|
4029
|
+
if (effect_tracking()) {
|
|
4030
|
+
get(version);
|
|
4031
|
+
render_effect(() => {
|
|
4032
|
+
if (subscribers === 0) {
|
|
4033
|
+
stop = untrack(() => start(() => increment(version)));
|
|
4034
|
+
}
|
|
4035
|
+
subscribers += 1;
|
|
4036
|
+
return () => {
|
|
4037
|
+
queue_micro_task(() => {
|
|
4038
|
+
subscribers -= 1;
|
|
4039
|
+
if (subscribers === 0) {
|
|
4040
|
+
stop?.();
|
|
4041
|
+
stop = undefined;
|
|
4042
|
+
}
|
|
4043
|
+
});
|
|
4044
|
+
};
|
|
4045
|
+
});
|
|
4046
|
+
}
|
|
4047
|
+
};
|
|
4048
|
+
}
|
|
4049
|
+
|
|
4050
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
|
|
4051
|
+
var flags = EFFECT_TRANSPARENT | EFFECT_PRESERVED | BOUNDARY_EFFECT;
|
|
4052
|
+
class Boundary {
|
|
4053
|
+
pending = false;
|
|
4054
|
+
parent;
|
|
4055
|
+
#anchor;
|
|
4056
|
+
#hydrate_open;
|
|
4057
|
+
#props;
|
|
4058
|
+
#children;
|
|
4059
|
+
#effect;
|
|
4060
|
+
#main_effect = null;
|
|
4061
|
+
#pending_effect = null;
|
|
4062
|
+
#failed_effect = null;
|
|
4063
|
+
#offscreen_fragment = null;
|
|
4064
|
+
#pending_count = 0;
|
|
4065
|
+
#is_creating_fallback = false;
|
|
4066
|
+
#effect_pending = null;
|
|
4067
|
+
#effect_pending_update = () => {
|
|
4068
|
+
if (this.#effect_pending) {
|
|
4069
|
+
internal_set(this.#effect_pending, this.#pending_count);
|
|
4070
|
+
}
|
|
4071
|
+
};
|
|
4072
|
+
#effect_pending_subscriber = createSubscriber(() => {
|
|
4073
|
+
this.#effect_pending = source(this.#pending_count);
|
|
4074
|
+
if (true_default) {
|
|
4075
|
+
tag2(this.#effect_pending, "$effect.pending()");
|
|
4076
|
+
}
|
|
4077
|
+
return () => {
|
|
4078
|
+
this.#effect_pending = null;
|
|
4079
|
+
};
|
|
4080
|
+
});
|
|
4081
|
+
constructor(node, props, children) {
|
|
4082
|
+
this.#anchor = node;
|
|
4083
|
+
this.#props = props;
|
|
4084
|
+
this.#children = children;
|
|
4085
|
+
this.#hydrate_open = hydrate_node;
|
|
4086
|
+
this.parent = active_effect.b;
|
|
4087
|
+
this.pending = !!this.#props.pending;
|
|
4088
|
+
this.#effect = block2(() => {
|
|
4089
|
+
active_effect.b = this;
|
|
4090
|
+
if (hydrating) {
|
|
4091
|
+
hydrate_next();
|
|
4092
|
+
}
|
|
4093
|
+
const pending = this.#props.pending;
|
|
4094
|
+
if (hydrating && pending) {
|
|
4095
|
+
this.#pending_effect = branch(() => pending(this.#anchor));
|
|
4096
|
+
queueMicrotask(() => {
|
|
4097
|
+
this.#main_effect = this.#run(() => {
|
|
4098
|
+
Batch.ensure();
|
|
4099
|
+
return branch(() => this.#children(this.#anchor));
|
|
4100
|
+
});
|
|
4101
|
+
if (this.#pending_count > 0) {
|
|
4102
|
+
this.#show_pending_snippet();
|
|
4103
|
+
} else {
|
|
4104
|
+
pause_effect(this.#pending_effect, () => {
|
|
4105
|
+
this.#pending_effect = null;
|
|
4106
|
+
});
|
|
4107
|
+
this.pending = false;
|
|
4108
|
+
}
|
|
4109
|
+
});
|
|
4110
|
+
} else {
|
|
4111
|
+
try {
|
|
4112
|
+
this.#main_effect = branch(() => children(this.#anchor));
|
|
4113
|
+
} catch (error) {
|
|
4114
|
+
this.error(error);
|
|
4115
|
+
}
|
|
4116
|
+
if (this.#pending_count > 0) {
|
|
4117
|
+
this.#show_pending_snippet();
|
|
4118
|
+
} else {
|
|
4119
|
+
this.pending = false;
|
|
4120
|
+
}
|
|
4121
|
+
}
|
|
4122
|
+
}, flags);
|
|
4123
|
+
if (hydrating) {
|
|
4124
|
+
this.#anchor = hydrate_node;
|
|
4125
|
+
}
|
|
4126
|
+
}
|
|
4127
|
+
has_pending_snippet() {
|
|
4128
|
+
return !!this.#props.pending;
|
|
4129
|
+
}
|
|
4130
|
+
#run(fn) {
|
|
4131
|
+
var previous_effect = active_effect;
|
|
4132
|
+
var previous_reaction = active_reaction;
|
|
4133
|
+
var previous_ctx = component_context;
|
|
4134
|
+
set_active_effect(this.#effect);
|
|
4135
|
+
set_active_reaction(this.#effect);
|
|
4136
|
+
set_component_context(this.#effect.ctx);
|
|
4137
|
+
try {
|
|
4138
|
+
return fn();
|
|
4139
|
+
} finally {
|
|
4140
|
+
set_active_effect(previous_effect);
|
|
4141
|
+
set_active_reaction(previous_reaction);
|
|
4142
|
+
set_component_context(previous_ctx);
|
|
4143
|
+
}
|
|
4144
|
+
}
|
|
4145
|
+
#show_pending_snippet() {
|
|
4146
|
+
const pending = this.#props.pending;
|
|
4147
|
+
if (this.#main_effect !== null) {
|
|
4148
|
+
this.#offscreen_fragment = document.createDocumentFragment();
|
|
4149
|
+
move_effect(this.#main_effect, this.#offscreen_fragment);
|
|
4150
|
+
}
|
|
4151
|
+
if (this.#pending_effect === null) {
|
|
4152
|
+
this.#pending_effect = branch(() => pending(this.#anchor));
|
|
4153
|
+
}
|
|
4154
|
+
}
|
|
4155
|
+
#update_pending_count(d) {
|
|
4156
|
+
this.#pending_count += d;
|
|
4157
|
+
if (this.#pending_count === 0) {
|
|
4158
|
+
this.pending = false;
|
|
4159
|
+
if (this.#pending_effect) {
|
|
4160
|
+
pause_effect(this.#pending_effect, () => {
|
|
4161
|
+
this.#pending_effect = null;
|
|
4162
|
+
});
|
|
4163
|
+
}
|
|
4164
|
+
if (this.#offscreen_fragment) {
|
|
4165
|
+
this.#anchor.before(this.#offscreen_fragment);
|
|
4166
|
+
this.#offscreen_fragment = null;
|
|
4167
|
+
}
|
|
4168
|
+
}
|
|
4169
|
+
}
|
|
4170
|
+
update_pending_count(d) {
|
|
4171
|
+
if (this.has_pending_snippet()) {
|
|
4172
|
+
this.#update_pending_count(d);
|
|
4173
|
+
} else if (this.parent) {
|
|
4174
|
+
this.parent.#update_pending_count(d);
|
|
4175
|
+
}
|
|
4176
|
+
effect_pending_updates.add(this.#effect_pending_update);
|
|
4177
|
+
}
|
|
4178
|
+
get_effect_pending() {
|
|
4179
|
+
this.#effect_pending_subscriber();
|
|
4180
|
+
return get(this.#effect_pending);
|
|
4181
|
+
}
|
|
4182
|
+
error(error) {
|
|
4183
|
+
var onerror = this.#props.onerror;
|
|
4184
|
+
let failed = this.#props.failed;
|
|
4185
|
+
const reset = () => {
|
|
4186
|
+
this.#pending_count = 0;
|
|
4187
|
+
if (this.#failed_effect !== null) {
|
|
4188
|
+
pause_effect(this.#failed_effect, () => {
|
|
4189
|
+
this.#failed_effect = null;
|
|
4190
|
+
});
|
|
4191
|
+
}
|
|
4192
|
+
this.pending = true;
|
|
4193
|
+
this.#main_effect = this.#run(() => {
|
|
4194
|
+
this.#is_creating_fallback = false;
|
|
4195
|
+
return branch(() => this.#children(this.#anchor));
|
|
4196
|
+
});
|
|
4197
|
+
if (this.#pending_count > 0) {
|
|
4198
|
+
this.#show_pending_snippet();
|
|
4199
|
+
} else {
|
|
4200
|
+
this.pending = false;
|
|
4201
|
+
}
|
|
4202
|
+
};
|
|
4203
|
+
if (this.#is_creating_fallback || !onerror && !failed) {
|
|
4204
|
+
throw error;
|
|
4205
|
+
}
|
|
4206
|
+
var previous_reaction = active_reaction;
|
|
4207
|
+
try {
|
|
4208
|
+
set_active_reaction(null);
|
|
4209
|
+
onerror?.(error, reset);
|
|
4210
|
+
} finally {
|
|
4211
|
+
set_active_reaction(previous_reaction);
|
|
4212
|
+
}
|
|
4213
|
+
if (this.#main_effect) {
|
|
4214
|
+
destroy_effect(this.#main_effect);
|
|
4215
|
+
this.#main_effect = null;
|
|
4216
|
+
}
|
|
4217
|
+
if (this.#pending_effect) {
|
|
4218
|
+
destroy_effect(this.#pending_effect);
|
|
4219
|
+
this.#pending_effect = null;
|
|
4220
|
+
}
|
|
4221
|
+
if (this.#failed_effect) {
|
|
4222
|
+
destroy_effect(this.#failed_effect);
|
|
4223
|
+
this.#failed_effect = null;
|
|
4224
|
+
}
|
|
4225
|
+
if (hydrating) {
|
|
4226
|
+
set_hydrate_node(this.#hydrate_open);
|
|
4227
|
+
next();
|
|
4228
|
+
set_hydrate_node(remove_nodes());
|
|
4229
|
+
}
|
|
4230
|
+
if (failed) {
|
|
4231
|
+
queue_micro_task(() => {
|
|
4232
|
+
this.#failed_effect = this.#run(() => {
|
|
4233
|
+
this.#is_creating_fallback = true;
|
|
4234
|
+
try {
|
|
4235
|
+
return branch(() => {
|
|
4236
|
+
failed(this.#anchor, () => error, () => reset);
|
|
4237
|
+
});
|
|
4238
|
+
} catch (error2) {
|
|
4239
|
+
invoke_error_boundary(error2, this.#effect.parent);
|
|
4240
|
+
return null;
|
|
4241
|
+
} finally {
|
|
4242
|
+
this.#is_creating_fallback = false;
|
|
4243
|
+
}
|
|
4244
|
+
});
|
|
4245
|
+
});
|
|
4246
|
+
}
|
|
4247
|
+
}
|
|
4248
|
+
}
|
|
4249
|
+
function move_effect(effect, fragment) {
|
|
4250
|
+
var node = effect.nodes_start;
|
|
4251
|
+
var end = effect.nodes_end;
|
|
4252
|
+
while (node !== null) {
|
|
4253
|
+
var next2 = node === end ? null : get_next_sibling(node);
|
|
4254
|
+
fragment.append(node);
|
|
4255
|
+
node = next2;
|
|
4256
|
+
}
|
|
4257
|
+
}
|
|
4258
|
+
|
|
4259
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/reactivity/deriveds.js
|
|
4260
|
+
var current_async_effect = null;
|
|
4261
|
+
var recent_async_deriveds = new Set;
|
|
4262
|
+
function destroy_derived_effects(derived) {
|
|
4263
|
+
var effects = derived.effects;
|
|
4264
|
+
if (effects !== null) {
|
|
4265
|
+
derived.effects = null;
|
|
4266
|
+
for (var i = 0;i < effects.length; i += 1) {
|
|
4267
|
+
destroy_effect(effects[i]);
|
|
4268
|
+
}
|
|
4269
|
+
}
|
|
4270
|
+
}
|
|
4271
|
+
var stack = [];
|
|
4272
|
+
function get_derived_parent_effect(derived) {
|
|
4273
|
+
var parent = derived.parent;
|
|
4274
|
+
while (parent !== null) {
|
|
4275
|
+
if ((parent.f & DERIVED) === 0) {
|
|
4276
|
+
return parent;
|
|
4277
|
+
}
|
|
4278
|
+
parent = parent.parent;
|
|
4279
|
+
}
|
|
4280
|
+
return null;
|
|
4281
|
+
}
|
|
4282
|
+
function execute_derived(derived) {
|
|
4283
|
+
var value;
|
|
4284
|
+
var prev_active_effect = active_effect;
|
|
4285
|
+
set_active_effect(get_derived_parent_effect(derived));
|
|
4286
|
+
if (true_default) {
|
|
4287
|
+
let prev_inspect_effects = inspect_effects;
|
|
4288
|
+
set_inspect_effects(new Set);
|
|
4289
|
+
try {
|
|
4290
|
+
if (stack.includes(derived)) {
|
|
4291
|
+
derived_references_self();
|
|
4292
|
+
}
|
|
4293
|
+
stack.push(derived);
|
|
4294
|
+
destroy_derived_effects(derived);
|
|
4295
|
+
value = update_reaction(derived);
|
|
4296
|
+
} finally {
|
|
4297
|
+
set_active_effect(prev_active_effect);
|
|
4298
|
+
set_inspect_effects(prev_inspect_effects);
|
|
4299
|
+
stack.pop();
|
|
4300
|
+
}
|
|
4301
|
+
} else {
|
|
4302
|
+
try {
|
|
4303
|
+
destroy_derived_effects(derived);
|
|
4304
|
+
value = update_reaction(derived);
|
|
4305
|
+
} finally {
|
|
4306
|
+
set_active_effect(prev_active_effect);
|
|
4307
|
+
}
|
|
4308
|
+
}
|
|
4309
|
+
return value;
|
|
4310
|
+
}
|
|
4311
|
+
function update_derived(derived) {
|
|
4312
|
+
var value = execute_derived(derived);
|
|
4313
|
+
if (!derived.equals(value)) {
|
|
4314
|
+
derived.v = value;
|
|
4315
|
+
derived.wv = increment_write_version();
|
|
4316
|
+
}
|
|
4317
|
+
if (is_destroying_effect)
|
|
4318
|
+
return;
|
|
4319
|
+
if (batch_deriveds !== null) {
|
|
4320
|
+
batch_deriveds.set(derived, derived.v);
|
|
4321
|
+
} else {
|
|
4322
|
+
var status = (skip_reaction || (derived.f & UNOWNED) !== 0) && derived.deps !== null ? MAYBE_DIRTY : CLEAN;
|
|
4323
|
+
set_signal_status(derived, status);
|
|
4324
|
+
}
|
|
4325
|
+
}
|
|
4326
|
+
|
|
4327
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/reactivity/batch.js
|
|
4328
|
+
var batches = new Set;
|
|
4329
|
+
var current_batch = null;
|
|
4330
|
+
var batch_deriveds = null;
|
|
4331
|
+
var effect_pending_updates = new Set;
|
|
4332
|
+
var queued_root_effects = [];
|
|
4333
|
+
var last_scheduled_effect = null;
|
|
4334
|
+
var is_flushing = false;
|
|
4335
|
+
|
|
4336
|
+
class Batch {
|
|
4337
|
+
#current = new Map;
|
|
4338
|
+
#previous = new Map;
|
|
4339
|
+
#callbacks = new Set;
|
|
4340
|
+
#pending = 0;
|
|
4341
|
+
#deferred = null;
|
|
4342
|
+
#neutered = false;
|
|
4343
|
+
#async_effects = [];
|
|
4344
|
+
#boundary_async_effects = [];
|
|
4345
|
+
#render_effects = [];
|
|
4346
|
+
#effects = [];
|
|
4347
|
+
#block_effects = [];
|
|
4348
|
+
skipped_effects = new Set;
|
|
4349
|
+
#process(root_effects) {
|
|
4350
|
+
queued_root_effects = [];
|
|
4351
|
+
var current_values = null;
|
|
4352
|
+
if (batches.size > 1) {
|
|
4353
|
+
current_values = new Map;
|
|
4354
|
+
batch_deriveds = new Map;
|
|
4355
|
+
for (const [source2, current] of this.#current) {
|
|
4356
|
+
current_values.set(source2, { v: source2.v, wv: source2.wv });
|
|
4357
|
+
source2.v = current;
|
|
4358
|
+
}
|
|
4359
|
+
for (const batch of batches) {
|
|
4360
|
+
if (batch === this)
|
|
4361
|
+
continue;
|
|
4362
|
+
for (const [source2, previous] of batch.#previous) {
|
|
4363
|
+
if (!current_values.has(source2)) {
|
|
4364
|
+
current_values.set(source2, { v: source2.v, wv: source2.wv });
|
|
4365
|
+
source2.v = previous;
|
|
4366
|
+
}
|
|
4367
|
+
}
|
|
4368
|
+
}
|
|
4369
|
+
}
|
|
4370
|
+
for (const root of root_effects) {
|
|
4371
|
+
this.#traverse_effect_tree(root);
|
|
4372
|
+
}
|
|
4373
|
+
if (this.#async_effects.length === 0 && this.#pending === 0) {
|
|
4374
|
+
var render_effects = this.#render_effects;
|
|
4375
|
+
var effects = this.#effects;
|
|
4376
|
+
this.#render_effects = [];
|
|
4377
|
+
this.#effects = [];
|
|
4378
|
+
this.#block_effects = [];
|
|
4379
|
+
this.#commit();
|
|
4380
|
+
flush_queued_effects(render_effects);
|
|
4381
|
+
flush_queued_effects(effects);
|
|
4382
|
+
this.#deferred?.resolve();
|
|
4383
|
+
} else {
|
|
4384
|
+
for (const e of this.#render_effects)
|
|
4385
|
+
set_signal_status(e, CLEAN);
|
|
4386
|
+
for (const e of this.#effects)
|
|
4387
|
+
set_signal_status(e, CLEAN);
|
|
4388
|
+
for (const e of this.#block_effects)
|
|
4389
|
+
set_signal_status(e, CLEAN);
|
|
4390
|
+
}
|
|
4391
|
+
if (current_values) {
|
|
4392
|
+
for (const [source2, { v, wv }] of current_values) {
|
|
4393
|
+
if (source2.wv <= wv) {
|
|
4394
|
+
source2.v = v;
|
|
4395
|
+
}
|
|
4396
|
+
}
|
|
4397
|
+
batch_deriveds = null;
|
|
4398
|
+
}
|
|
4399
|
+
for (const effect of this.#async_effects) {
|
|
4400
|
+
update_effect(effect);
|
|
4401
|
+
}
|
|
4402
|
+
for (const effect of this.#boundary_async_effects) {
|
|
4403
|
+
update_effect(effect);
|
|
4404
|
+
}
|
|
4405
|
+
this.#async_effects = [];
|
|
4406
|
+
this.#boundary_async_effects = [];
|
|
4407
|
+
}
|
|
4408
|
+
#traverse_effect_tree(root) {
|
|
4409
|
+
root.f ^= CLEAN;
|
|
4410
|
+
var effect = root.first;
|
|
4411
|
+
while (effect !== null) {
|
|
4412
|
+
var flags2 = effect.f;
|
|
4413
|
+
var is_branch = (flags2 & (BRANCH_EFFECT | ROOT_EFFECT)) !== 0;
|
|
4414
|
+
var is_skippable_branch = is_branch && (flags2 & CLEAN) !== 0;
|
|
4415
|
+
var skip = is_skippable_branch || (flags2 & INERT) !== 0 || this.skipped_effects.has(effect);
|
|
4416
|
+
if (!skip && effect.fn !== null) {
|
|
4417
|
+
if (is_branch) {
|
|
4418
|
+
effect.f ^= CLEAN;
|
|
4419
|
+
} else if ((flags2 & EFFECT) !== 0) {
|
|
4420
|
+
this.#effects.push(effect);
|
|
4421
|
+
} else if (async_mode_flag && (flags2 & RENDER_EFFECT) !== 0) {
|
|
4422
|
+
this.#render_effects.push(effect);
|
|
4423
|
+
} else if (is_dirty(effect)) {
|
|
4424
|
+
if ((flags2 & ASYNC) !== 0) {
|
|
4425
|
+
var effects = effect.b?.pending ? this.#boundary_async_effects : this.#async_effects;
|
|
4426
|
+
effects.push(effect);
|
|
4427
|
+
} else {
|
|
4428
|
+
if ((effect.f & BLOCK_EFFECT) !== 0)
|
|
4429
|
+
this.#block_effects.push(effect);
|
|
4430
|
+
update_effect(effect);
|
|
4431
|
+
}
|
|
4432
|
+
}
|
|
4433
|
+
var child = effect.first;
|
|
4434
|
+
if (child !== null) {
|
|
4435
|
+
effect = child;
|
|
4436
|
+
continue;
|
|
4437
|
+
}
|
|
4438
|
+
}
|
|
4439
|
+
var parent = effect.parent;
|
|
4440
|
+
effect = effect.next;
|
|
4441
|
+
while (effect === null && parent !== null) {
|
|
4442
|
+
effect = parent.next;
|
|
4443
|
+
parent = parent.parent;
|
|
4444
|
+
}
|
|
4445
|
+
}
|
|
4446
|
+
}
|
|
4447
|
+
capture(source2, value) {
|
|
4448
|
+
if (!this.#previous.has(source2)) {
|
|
4449
|
+
this.#previous.set(source2, value);
|
|
4450
|
+
}
|
|
4451
|
+
this.#current.set(source2, source2.v);
|
|
4452
|
+
}
|
|
4453
|
+
activate() {
|
|
4454
|
+
current_batch = this;
|
|
4455
|
+
}
|
|
4456
|
+
deactivate() {
|
|
4457
|
+
current_batch = null;
|
|
4458
|
+
for (const update of effect_pending_updates) {
|
|
4459
|
+
effect_pending_updates.delete(update);
|
|
4460
|
+
update();
|
|
4461
|
+
if (current_batch !== null) {
|
|
4462
|
+
break;
|
|
4463
|
+
}
|
|
4464
|
+
}
|
|
4465
|
+
}
|
|
4466
|
+
neuter() {
|
|
4467
|
+
this.#neutered = true;
|
|
4468
|
+
}
|
|
4469
|
+
flush() {
|
|
4470
|
+
if (queued_root_effects.length > 0) {
|
|
4471
|
+
this.flush_effects();
|
|
4472
|
+
} else {
|
|
4473
|
+
this.#commit();
|
|
4474
|
+
}
|
|
4475
|
+
if (current_batch !== this) {
|
|
4476
|
+
return;
|
|
4477
|
+
}
|
|
4478
|
+
if (this.#pending === 0) {
|
|
4479
|
+
batches.delete(this);
|
|
4480
|
+
}
|
|
4481
|
+
this.deactivate();
|
|
4482
|
+
}
|
|
4483
|
+
flush_effects() {
|
|
4484
|
+
var was_updating_effect = is_updating_effect;
|
|
4485
|
+
is_flushing = true;
|
|
4486
|
+
try {
|
|
4487
|
+
var flush_count = 0;
|
|
4488
|
+
set_is_updating_effect(true);
|
|
4489
|
+
while (queued_root_effects.length > 0) {
|
|
4490
|
+
if (flush_count++ > 1000) {
|
|
4491
|
+
if (true_default) {
|
|
4492
|
+
var updates = new Map;
|
|
4493
|
+
for (const source2 of this.#current.keys()) {
|
|
4494
|
+
for (const [stack2, update] of source2.updated ?? []) {
|
|
4495
|
+
var entry = updates.get(stack2);
|
|
4496
|
+
if (!entry) {
|
|
4497
|
+
entry = { error: update.error, count: 0 };
|
|
4498
|
+
updates.set(stack2, entry);
|
|
4499
|
+
}
|
|
4500
|
+
entry.count += update.count;
|
|
4501
|
+
}
|
|
4502
|
+
}
|
|
4503
|
+
for (const update of updates.values()) {
|
|
4504
|
+
console.error(update.error);
|
|
4505
|
+
}
|
|
4506
|
+
}
|
|
4507
|
+
infinite_loop_guard();
|
|
4508
|
+
}
|
|
4509
|
+
this.#process(queued_root_effects);
|
|
4510
|
+
old_values.clear();
|
|
4511
|
+
}
|
|
4512
|
+
} finally {
|
|
4513
|
+
is_flushing = false;
|
|
4514
|
+
set_is_updating_effect(was_updating_effect);
|
|
4515
|
+
last_scheduled_effect = null;
|
|
4516
|
+
}
|
|
4517
|
+
}
|
|
4518
|
+
#commit() {
|
|
4519
|
+
if (!this.#neutered) {
|
|
4520
|
+
for (const fn of this.#callbacks) {
|
|
4521
|
+
fn();
|
|
4522
|
+
}
|
|
4523
|
+
}
|
|
4524
|
+
this.#callbacks.clear();
|
|
4525
|
+
}
|
|
4526
|
+
increment() {
|
|
4527
|
+
this.#pending += 1;
|
|
4528
|
+
}
|
|
4529
|
+
decrement() {
|
|
4530
|
+
this.#pending -= 1;
|
|
4531
|
+
if (this.#pending === 0) {
|
|
4532
|
+
for (const e of this.#render_effects) {
|
|
4533
|
+
set_signal_status(e, DIRTY);
|
|
4534
|
+
schedule_effect(e);
|
|
4535
|
+
}
|
|
4536
|
+
for (const e of this.#effects) {
|
|
4537
|
+
set_signal_status(e, DIRTY);
|
|
4538
|
+
schedule_effect(e);
|
|
4539
|
+
}
|
|
4540
|
+
for (const e of this.#block_effects) {
|
|
4541
|
+
set_signal_status(e, DIRTY);
|
|
4542
|
+
schedule_effect(e);
|
|
4543
|
+
}
|
|
4544
|
+
this.#render_effects = [];
|
|
4545
|
+
this.#effects = [];
|
|
4546
|
+
this.flush();
|
|
4547
|
+
} else {
|
|
4548
|
+
this.deactivate();
|
|
4549
|
+
}
|
|
4550
|
+
}
|
|
4551
|
+
add_callback(fn) {
|
|
4552
|
+
this.#callbacks.add(fn);
|
|
4553
|
+
}
|
|
4554
|
+
settled() {
|
|
4555
|
+
return (this.#deferred ??= deferred()).promise;
|
|
4556
|
+
}
|
|
4557
|
+
static ensure(autoflush = true) {
|
|
4558
|
+
if (current_batch === null) {
|
|
4559
|
+
const batch = current_batch = new Batch;
|
|
4560
|
+
batches.add(current_batch);
|
|
4561
|
+
if (autoflush) {
|
|
4562
|
+
queueMicrotask(() => {
|
|
4563
|
+
if (current_batch !== batch) {
|
|
4564
|
+
return;
|
|
4565
|
+
}
|
|
4566
|
+
batch.flush();
|
|
4567
|
+
});
|
|
4568
|
+
}
|
|
4569
|
+
}
|
|
4570
|
+
return current_batch;
|
|
4571
|
+
}
|
|
4572
|
+
}
|
|
4573
|
+
function flushSync(fn) {
|
|
4574
|
+
if (async_mode_flag && active_effect !== null) {
|
|
4575
|
+
flush_sync_in_effect();
|
|
4576
|
+
}
|
|
4577
|
+
var result;
|
|
4578
|
+
const batch = Batch.ensure(false);
|
|
4579
|
+
if (fn) {
|
|
4580
|
+
batch.flush_effects();
|
|
4581
|
+
result = fn();
|
|
4582
|
+
}
|
|
4583
|
+
while (true) {
|
|
4584
|
+
flush_tasks();
|
|
4585
|
+
if (queued_root_effects.length === 0) {
|
|
4586
|
+
if (batch === current_batch) {
|
|
4587
|
+
batch.flush();
|
|
4588
|
+
}
|
|
4589
|
+
last_scheduled_effect = null;
|
|
4590
|
+
return result;
|
|
4591
|
+
}
|
|
4592
|
+
batch.flush_effects();
|
|
4593
|
+
}
|
|
4594
|
+
}
|
|
4595
|
+
function infinite_loop_guard() {
|
|
4596
|
+
try {
|
|
4597
|
+
effect_update_depth_exceeded();
|
|
4598
|
+
} catch (error) {
|
|
4599
|
+
if (true_default) {
|
|
4600
|
+
define_property(error, "stack", { value: "" });
|
|
4601
|
+
}
|
|
4602
|
+
invoke_error_boundary(error, last_scheduled_effect);
|
|
4603
|
+
}
|
|
4604
|
+
}
|
|
4605
|
+
function flush_queued_effects(effects) {
|
|
4606
|
+
var length = effects.length;
|
|
4607
|
+
if (length === 0)
|
|
4608
|
+
return;
|
|
4609
|
+
for (var i = 0;i < length; i++) {
|
|
4610
|
+
var effect = effects[i];
|
|
4611
|
+
if ((effect.f & (DESTROYED | INERT)) === 0) {
|
|
4612
|
+
if (is_dirty(effect)) {
|
|
4613
|
+
var wv = write_version;
|
|
4614
|
+
update_effect(effect);
|
|
4615
|
+
if (effect.deps === null && effect.first === null && effect.nodes_start === null) {
|
|
4616
|
+
if (effect.teardown === null) {
|
|
4617
|
+
unlink_effect(effect);
|
|
4618
|
+
} else {
|
|
4619
|
+
effect.fn = null;
|
|
4620
|
+
}
|
|
4621
|
+
}
|
|
4622
|
+
if (write_version > wv && (effect.f & USER_EFFECT) !== 0) {
|
|
4623
|
+
break;
|
|
4624
|
+
}
|
|
4625
|
+
}
|
|
4626
|
+
}
|
|
4627
|
+
}
|
|
4628
|
+
for (;i < length; i += 1) {
|
|
4629
|
+
schedule_effect(effects[i]);
|
|
4630
|
+
}
|
|
4631
|
+
}
|
|
4632
|
+
function schedule_effect(signal) {
|
|
4633
|
+
var effect = last_scheduled_effect = signal;
|
|
4634
|
+
while (effect.parent !== null) {
|
|
4635
|
+
effect = effect.parent;
|
|
4636
|
+
var flags2 = effect.f;
|
|
4637
|
+
if (is_flushing && effect === active_effect && (flags2 & BLOCK_EFFECT) !== 0) {
|
|
4638
|
+
return;
|
|
4639
|
+
}
|
|
4640
|
+
if ((flags2 & (ROOT_EFFECT | BRANCH_EFFECT)) !== 0) {
|
|
4641
|
+
if ((flags2 & CLEAN) === 0)
|
|
4642
|
+
return;
|
|
4643
|
+
effect.f ^= CLEAN;
|
|
4644
|
+
}
|
|
4645
|
+
}
|
|
4646
|
+
queued_root_effects.push(effect);
|
|
4647
|
+
}
|
|
4648
|
+
|
|
4649
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/reactivity/sources.js
|
|
4650
|
+
var inspect_effects = new Set;
|
|
4651
|
+
var old_values = new Map;
|
|
4652
|
+
function set_inspect_effects(v) {
|
|
4653
|
+
inspect_effects = v;
|
|
4654
|
+
}
|
|
4655
|
+
var inspect_effects_deferred = false;
|
|
4656
|
+
function set_inspect_effects_deferred() {
|
|
4657
|
+
inspect_effects_deferred = true;
|
|
4658
|
+
}
|
|
4659
|
+
function source(v, stack2) {
|
|
4660
|
+
var signal = {
|
|
4661
|
+
f: 0,
|
|
4662
|
+
v,
|
|
4663
|
+
reactions: null,
|
|
4664
|
+
equals,
|
|
4665
|
+
rv: 0,
|
|
4666
|
+
wv: 0
|
|
4667
|
+
};
|
|
4668
|
+
if (true_default && tracing_mode_flag) {
|
|
4669
|
+
signal.created = stack2 ?? get_stack("CreatedAt");
|
|
4670
|
+
signal.updated = null;
|
|
4671
|
+
signal.set_during_effect = false;
|
|
4672
|
+
signal.trace = null;
|
|
4673
|
+
}
|
|
4674
|
+
return signal;
|
|
4675
|
+
}
|
|
4676
|
+
function state(v, stack2) {
|
|
4677
|
+
const s = source(v, stack2);
|
|
4678
|
+
push_reaction_value(s);
|
|
4679
|
+
return s;
|
|
4680
|
+
}
|
|
4681
|
+
function mutable_source(initial_value, immutable = false, trackable = true) {
|
|
4682
|
+
const s = source(initial_value);
|
|
4683
|
+
if (!immutable) {
|
|
4684
|
+
s.equals = safe_equals;
|
|
4685
|
+
}
|
|
4686
|
+
if (legacy_mode_flag && trackable && component_context !== null && component_context.l !== null) {
|
|
4687
|
+
(component_context.l.s ??= []).push(s);
|
|
4688
|
+
}
|
|
4689
|
+
return s;
|
|
4690
|
+
}
|
|
4691
|
+
function set(source2, value, should_proxy = false) {
|
|
4692
|
+
if (active_reaction !== null && (!untracking || (active_reaction.f & INSPECT_EFFECT) !== 0) && is_runes() && (active_reaction.f & (DERIVED | BLOCK_EFFECT | ASYNC | INSPECT_EFFECT)) !== 0 && !current_sources?.includes(source2)) {
|
|
4693
|
+
state_unsafe_mutation();
|
|
4694
|
+
}
|
|
4695
|
+
let new_value = should_proxy ? proxy(value) : value;
|
|
4696
|
+
if (true_default) {
|
|
4697
|
+
tag_proxy(new_value, source2.label);
|
|
4698
|
+
}
|
|
4699
|
+
return internal_set(source2, new_value);
|
|
4700
|
+
}
|
|
4701
|
+
function internal_set(source2, value) {
|
|
4702
|
+
if (!source2.equals(value)) {
|
|
4703
|
+
var old_value = source2.v;
|
|
4704
|
+
if (is_destroying_effect) {
|
|
4705
|
+
old_values.set(source2, value);
|
|
4706
|
+
} else {
|
|
4707
|
+
old_values.set(source2, old_value);
|
|
4708
|
+
}
|
|
4709
|
+
source2.v = value;
|
|
4710
|
+
const batch = Batch.ensure();
|
|
4711
|
+
batch.capture(source2, old_value);
|
|
4712
|
+
if (true_default) {
|
|
4713
|
+
if (tracing_mode_flag || active_effect !== null) {
|
|
4714
|
+
const error = get_stack("UpdatedAt");
|
|
4715
|
+
if (error !== null) {
|
|
4716
|
+
source2.updated ??= new Map;
|
|
4717
|
+
let entry = source2.updated.get(error.stack);
|
|
4718
|
+
if (!entry) {
|
|
4719
|
+
entry = { error, count: 0 };
|
|
4720
|
+
source2.updated.set(error.stack, entry);
|
|
4721
|
+
}
|
|
4722
|
+
entry.count++;
|
|
4723
|
+
}
|
|
4724
|
+
}
|
|
4725
|
+
if (active_effect !== null) {
|
|
4726
|
+
source2.set_during_effect = true;
|
|
4727
|
+
}
|
|
4728
|
+
}
|
|
4729
|
+
if ((source2.f & DERIVED) !== 0) {
|
|
4730
|
+
if ((source2.f & DIRTY) !== 0) {
|
|
4731
|
+
execute_derived(source2);
|
|
4732
|
+
}
|
|
4733
|
+
set_signal_status(source2, (source2.f & UNOWNED) === 0 ? CLEAN : MAYBE_DIRTY);
|
|
4734
|
+
}
|
|
4735
|
+
source2.wv = increment_write_version();
|
|
4736
|
+
mark_reactions(source2, DIRTY);
|
|
4737
|
+
if (is_runes() && active_effect !== null && (active_effect.f & CLEAN) !== 0 && (active_effect.f & (BRANCH_EFFECT | ROOT_EFFECT)) === 0) {
|
|
4738
|
+
if (untracked_writes === null) {
|
|
4739
|
+
set_untracked_writes([source2]);
|
|
4740
|
+
} else {
|
|
4741
|
+
untracked_writes.push(source2);
|
|
4742
|
+
}
|
|
4743
|
+
}
|
|
4744
|
+
if (true_default && inspect_effects.size > 0 && !inspect_effects_deferred) {
|
|
4745
|
+
flush_inspect_effects();
|
|
4746
|
+
}
|
|
4747
|
+
}
|
|
4748
|
+
return value;
|
|
4749
|
+
}
|
|
4750
|
+
function flush_inspect_effects() {
|
|
4751
|
+
inspect_effects_deferred = false;
|
|
4752
|
+
const inspects = Array.from(inspect_effects);
|
|
4753
|
+
for (const effect of inspects) {
|
|
4754
|
+
if ((effect.f & CLEAN) !== 0) {
|
|
4755
|
+
set_signal_status(effect, MAYBE_DIRTY);
|
|
4756
|
+
}
|
|
4757
|
+
if (is_dirty(effect)) {
|
|
4758
|
+
update_effect(effect);
|
|
4759
|
+
}
|
|
4760
|
+
}
|
|
4761
|
+
inspect_effects.clear();
|
|
4762
|
+
}
|
|
4763
|
+
function increment(source2) {
|
|
4764
|
+
set(source2, source2.v + 1);
|
|
4765
|
+
}
|
|
4766
|
+
function mark_reactions(signal, status) {
|
|
4767
|
+
var reactions = signal.reactions;
|
|
4768
|
+
if (reactions === null)
|
|
4769
|
+
return;
|
|
4770
|
+
var runes = is_runes();
|
|
4771
|
+
var length = reactions.length;
|
|
4772
|
+
for (var i = 0;i < length; i++) {
|
|
4773
|
+
var reaction = reactions[i];
|
|
4774
|
+
var flags2 = reaction.f;
|
|
4775
|
+
if ((flags2 & DIRTY) !== 0)
|
|
4776
|
+
continue;
|
|
4777
|
+
if (!runes && reaction === active_effect)
|
|
4778
|
+
continue;
|
|
4779
|
+
if (true_default && (flags2 & INSPECT_EFFECT) !== 0) {
|
|
4780
|
+
inspect_effects.add(reaction);
|
|
4781
|
+
continue;
|
|
4782
|
+
}
|
|
4783
|
+
set_signal_status(reaction, status);
|
|
4784
|
+
if ((flags2 & (CLEAN | UNOWNED)) !== 0) {
|
|
4785
|
+
if ((flags2 & DERIVED) !== 0) {
|
|
4786
|
+
mark_reactions(reaction, MAYBE_DIRTY);
|
|
4787
|
+
} else {
|
|
4788
|
+
schedule_effect(reaction);
|
|
4789
|
+
}
|
|
4790
|
+
}
|
|
4143
4791
|
}
|
|
4144
4792
|
}
|
|
4145
4793
|
|
|
4146
|
-
// node_modules/.pnpm/svelte@5.
|
|
4147
|
-
var is_flushing = false;
|
|
4148
|
-
var last_scheduled_effect = null;
|
|
4794
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/runtime.js
|
|
4149
4795
|
var is_updating_effect = false;
|
|
4796
|
+
function set_is_updating_effect(value) {
|
|
4797
|
+
is_updating_effect = value;
|
|
4798
|
+
}
|
|
4150
4799
|
var is_destroying_effect = false;
|
|
4151
4800
|
function set_is_destroying_effect(value) {
|
|
4152
4801
|
is_destroying_effect = value;
|
|
4153
4802
|
}
|
|
4154
|
-
var queued_root_effects = [];
|
|
4155
|
-
var dev_effect_stack = [];
|
|
4156
4803
|
var active_reaction = null;
|
|
4157
4804
|
var untracking = false;
|
|
4158
4805
|
function set_active_reaction(reaction) {
|
|
@@ -4164,7 +4811,7 @@ function set_active_effect(effect) {
|
|
|
4164
4811
|
}
|
|
4165
4812
|
var current_sources = null;
|
|
4166
4813
|
function push_reaction_value(value) {
|
|
4167
|
-
if (active_reaction !== null && active_reaction.f &
|
|
4814
|
+
if (active_reaction !== null && (!async_mode_flag || (active_reaction.f & DERIVED) !== 0)) {
|
|
4168
4815
|
if (current_sources === null) {
|
|
4169
4816
|
current_sources = [value];
|
|
4170
4817
|
} else {
|
|
@@ -4189,39 +4836,39 @@ var captured_signals = null;
|
|
|
4189
4836
|
function increment_write_version() {
|
|
4190
4837
|
return ++write_version;
|
|
4191
4838
|
}
|
|
4192
|
-
function
|
|
4193
|
-
var
|
|
4194
|
-
if ((
|
|
4839
|
+
function is_dirty(reaction) {
|
|
4840
|
+
var flags2 = reaction.f;
|
|
4841
|
+
if ((flags2 & DIRTY) !== 0) {
|
|
4195
4842
|
return true;
|
|
4196
4843
|
}
|
|
4197
|
-
if ((
|
|
4844
|
+
if ((flags2 & MAYBE_DIRTY) !== 0) {
|
|
4198
4845
|
var dependencies = reaction.deps;
|
|
4199
|
-
var is_unowned = (
|
|
4846
|
+
var is_unowned = (flags2 & UNOWNED) !== 0;
|
|
4200
4847
|
if (dependencies !== null) {
|
|
4201
4848
|
var i;
|
|
4202
4849
|
var dependency;
|
|
4203
|
-
var is_disconnected = (
|
|
4850
|
+
var is_disconnected = (flags2 & DISCONNECTED) !== 0;
|
|
4204
4851
|
var is_unowned_connected = is_unowned && active_effect !== null && !skip_reaction;
|
|
4205
4852
|
var length = dependencies.length;
|
|
4206
|
-
if (is_disconnected || is_unowned_connected) {
|
|
4207
|
-
var
|
|
4208
|
-
var parent =
|
|
4853
|
+
if ((is_disconnected || is_unowned_connected) && (active_effect === null || (active_effect.f & DESTROYED) === 0)) {
|
|
4854
|
+
var derived2 = reaction;
|
|
4855
|
+
var parent = derived2.parent;
|
|
4209
4856
|
for (i = 0;i < length; i++) {
|
|
4210
4857
|
dependency = dependencies[i];
|
|
4211
|
-
if (is_disconnected || !dependency?.reactions?.includes(
|
|
4212
|
-
(dependency.reactions ??= []).push(
|
|
4858
|
+
if (is_disconnected || !dependency?.reactions?.includes(derived2)) {
|
|
4859
|
+
(dependency.reactions ??= []).push(derived2);
|
|
4213
4860
|
}
|
|
4214
4861
|
}
|
|
4215
4862
|
if (is_disconnected) {
|
|
4216
|
-
|
|
4863
|
+
derived2.f ^= DISCONNECTED;
|
|
4217
4864
|
}
|
|
4218
4865
|
if (is_unowned_connected && parent !== null && (parent.f & UNOWNED) === 0) {
|
|
4219
|
-
|
|
4866
|
+
derived2.f ^= UNOWNED;
|
|
4220
4867
|
}
|
|
4221
4868
|
}
|
|
4222
4869
|
for (i = 0;i < length; i++) {
|
|
4223
4870
|
dependency = dependencies[i];
|
|
4224
|
-
if (
|
|
4871
|
+
if (is_dirty(dependency)) {
|
|
4225
4872
|
update_derived(dependency);
|
|
4226
4873
|
}
|
|
4227
4874
|
if (dependency.wv > reaction.wv) {
|
|
@@ -4239,7 +4886,7 @@ function schedule_possible_effect_self_invalidation(signal, effect, root = true)
|
|
|
4239
4886
|
var reactions = signal.reactions;
|
|
4240
4887
|
if (reactions === null)
|
|
4241
4888
|
return;
|
|
4242
|
-
if (current_sources?.includes(signal)) {
|
|
4889
|
+
if (!async_mode_flag && current_sources?.includes(signal)) {
|
|
4243
4890
|
return;
|
|
4244
4891
|
}
|
|
4245
4892
|
for (var i = 0;i < reactions.length; i++) {
|
|
@@ -4266,22 +4913,22 @@ function update_reaction(reaction) {
|
|
|
4266
4913
|
var previous_component_context = component_context;
|
|
4267
4914
|
var previous_untracking = untracking;
|
|
4268
4915
|
var previous_update_version = update_version;
|
|
4269
|
-
var
|
|
4916
|
+
var flags2 = reaction.f;
|
|
4270
4917
|
new_deps = null;
|
|
4271
4918
|
skipped_deps = 0;
|
|
4272
4919
|
untracked_writes = null;
|
|
4273
|
-
skip_reaction = (
|
|
4274
|
-
active_reaction = (
|
|
4920
|
+
skip_reaction = (flags2 & UNOWNED) !== 0 && (untracking || !is_updating_effect || active_reaction === null);
|
|
4921
|
+
active_reaction = (flags2 & (BRANCH_EFFECT | ROOT_EFFECT)) === 0 ? reaction : null;
|
|
4275
4922
|
current_sources = null;
|
|
4276
4923
|
set_component_context(reaction.ctx);
|
|
4277
4924
|
untracking = false;
|
|
4278
4925
|
update_version = ++read_version;
|
|
4279
|
-
reaction.f |= EFFECT_IS_UPDATING;
|
|
4280
4926
|
if (reaction.ac !== null) {
|
|
4281
4927
|
reaction.ac.abort(STALE_REACTION);
|
|
4282
4928
|
reaction.ac = null;
|
|
4283
4929
|
}
|
|
4284
4930
|
try {
|
|
4931
|
+
reaction.f |= REACTION_IS_UPDATING;
|
|
4285
4932
|
var result = (0, reaction.fn)();
|
|
4286
4933
|
var deps = reaction.deps;
|
|
4287
4934
|
if (new_deps !== null) {
|
|
@@ -4295,7 +4942,7 @@ function update_reaction(reaction) {
|
|
|
4295
4942
|
} else {
|
|
4296
4943
|
reaction.deps = deps = new_deps;
|
|
4297
4944
|
}
|
|
4298
|
-
if (!skip_reaction || (
|
|
4945
|
+
if (!skip_reaction || (flags2 & DERIVED) !== 0 && reaction.reactions !== null) {
|
|
4299
4946
|
for (i = skipped_deps;i < deps.length; i++) {
|
|
4300
4947
|
(deps[i].reactions ??= []).push(reaction);
|
|
4301
4948
|
}
|
|
@@ -4319,10 +4966,14 @@ function update_reaction(reaction) {
|
|
|
4319
4966
|
}
|
|
4320
4967
|
}
|
|
4321
4968
|
}
|
|
4969
|
+
if ((reaction.f & ERROR_VALUE) !== 0) {
|
|
4970
|
+
reaction.f ^= ERROR_VALUE;
|
|
4971
|
+
}
|
|
4322
4972
|
return result;
|
|
4323
4973
|
} catch (error) {
|
|
4324
|
-
handle_error(error);
|
|
4974
|
+
return handle_error(error);
|
|
4325
4975
|
} finally {
|
|
4976
|
+
reaction.f ^= REACTION_IS_UPDATING;
|
|
4326
4977
|
new_deps = previous_deps;
|
|
4327
4978
|
skipped_deps = previous_skipped_deps;
|
|
4328
4979
|
untracked_writes = previous_untracked_writes;
|
|
@@ -4332,7 +4983,6 @@ function update_reaction(reaction) {
|
|
|
4332
4983
|
set_component_context(previous_component_context);
|
|
4333
4984
|
untracking = previous_untracking;
|
|
4334
4985
|
update_version = previous_update_version;
|
|
4335
|
-
reaction.f ^= EFFECT_IS_UPDATING;
|
|
4336
4986
|
}
|
|
4337
4987
|
}
|
|
4338
4988
|
function remove_reaction(signal, dependency) {
|
|
@@ -4367,8 +5017,8 @@ function remove_reactions(signal, start_index) {
|
|
|
4367
5017
|
}
|
|
4368
5018
|
}
|
|
4369
5019
|
function update_effect(effect) {
|
|
4370
|
-
var
|
|
4371
|
-
if ((
|
|
5020
|
+
var flags2 = effect.f;
|
|
5021
|
+
if ((flags2 & DESTROYED) !== 0) {
|
|
4372
5022
|
return;
|
|
4373
5023
|
}
|
|
4374
5024
|
set_signal_status(effect, CLEAN);
|
|
@@ -4383,14 +5033,14 @@ function update_effect(effect) {
|
|
|
4383
5033
|
set_dev_stack(effect.dev_stack ?? dev_stack);
|
|
4384
5034
|
}
|
|
4385
5035
|
try {
|
|
4386
|
-
if ((
|
|
5036
|
+
if ((flags2 & BLOCK_EFFECT) !== 0) {
|
|
4387
5037
|
destroy_block_effect_children(effect);
|
|
4388
5038
|
} else {
|
|
4389
5039
|
destroy_effect_children(effect);
|
|
4390
5040
|
}
|
|
4391
5041
|
execute_effect_teardown(effect);
|
|
4392
|
-
var
|
|
4393
|
-
effect.teardown = typeof
|
|
5042
|
+
var teardown = update_reaction(effect);
|
|
5043
|
+
effect.teardown = typeof teardown === "function" ? teardown : null;
|
|
4394
5044
|
effect.wv = write_version;
|
|
4395
5045
|
if (true_default && tracing_mode_flag && (effect.f & DIRTY) !== 0 && effect.deps !== null) {
|
|
4396
5046
|
for (var dep of effect.deps) {
|
|
@@ -4400,9 +5050,6 @@ function update_effect(effect) {
|
|
|
4400
5050
|
}
|
|
4401
5051
|
}
|
|
4402
5052
|
}
|
|
4403
|
-
if (true_default) {
|
|
4404
|
-
dev_effect_stack.push(effect);
|
|
4405
|
-
}
|
|
4406
5053
|
} finally {
|
|
4407
5054
|
is_updating_effect = was_updating_effect;
|
|
4408
5055
|
active_effect = previous_effect;
|
|
@@ -4412,210 +5059,71 @@ function update_effect(effect) {
|
|
|
4412
5059
|
}
|
|
4413
5060
|
}
|
|
4414
5061
|
}
|
|
4415
|
-
function log_effect_stack() {
|
|
4416
|
-
console.error("Last ten effects were: ", dev_effect_stack.slice(-10).map((d) => d.fn));
|
|
4417
|
-
dev_effect_stack = [];
|
|
4418
|
-
}
|
|
4419
|
-
function infinite_loop_guard() {
|
|
4420
|
-
try {
|
|
4421
|
-
effect_update_depth_exceeded();
|
|
4422
|
-
} catch (error) {
|
|
4423
|
-
if (true_default) {
|
|
4424
|
-
define_property(error, "stack", {
|
|
4425
|
-
value: ""
|
|
4426
|
-
});
|
|
4427
|
-
}
|
|
4428
|
-
if (last_scheduled_effect !== null) {
|
|
4429
|
-
if (true_default) {
|
|
4430
|
-
try {
|
|
4431
|
-
invoke_error_boundary(error, last_scheduled_effect);
|
|
4432
|
-
} catch (e) {
|
|
4433
|
-
log_effect_stack();
|
|
4434
|
-
throw e;
|
|
4435
|
-
}
|
|
4436
|
-
} else {
|
|
4437
|
-
invoke_error_boundary(error, last_scheduled_effect);
|
|
4438
|
-
}
|
|
4439
|
-
} else {
|
|
4440
|
-
if (true_default) {
|
|
4441
|
-
log_effect_stack();
|
|
4442
|
-
}
|
|
4443
|
-
throw error;
|
|
4444
|
-
}
|
|
4445
|
-
}
|
|
4446
|
-
}
|
|
4447
|
-
function flush_queued_root_effects() {
|
|
4448
|
-
var was_updating_effect = is_updating_effect;
|
|
4449
|
-
try {
|
|
4450
|
-
var flush_count = 0;
|
|
4451
|
-
is_updating_effect = true;
|
|
4452
|
-
while (queued_root_effects.length > 0) {
|
|
4453
|
-
if (flush_count++ > 1000) {
|
|
4454
|
-
infinite_loop_guard();
|
|
4455
|
-
}
|
|
4456
|
-
var root_effects = queued_root_effects;
|
|
4457
|
-
var length = root_effects.length;
|
|
4458
|
-
queued_root_effects = [];
|
|
4459
|
-
for (var i = 0;i < length; i++) {
|
|
4460
|
-
var collected_effects = process_effects(root_effects[i]);
|
|
4461
|
-
flush_queued_effects(collected_effects);
|
|
4462
|
-
}
|
|
4463
|
-
old_values.clear();
|
|
4464
|
-
}
|
|
4465
|
-
} finally {
|
|
4466
|
-
is_flushing = false;
|
|
4467
|
-
is_updating_effect = was_updating_effect;
|
|
4468
|
-
last_scheduled_effect = null;
|
|
4469
|
-
if (true_default) {
|
|
4470
|
-
dev_effect_stack = [];
|
|
4471
|
-
}
|
|
4472
|
-
}
|
|
4473
|
-
}
|
|
4474
|
-
function flush_queued_effects(effects) {
|
|
4475
|
-
var length = effects.length;
|
|
4476
|
-
if (length === 0)
|
|
4477
|
-
return;
|
|
4478
|
-
for (var i = 0;i < length; i++) {
|
|
4479
|
-
var effect = effects[i];
|
|
4480
|
-
if ((effect.f & (DESTROYED | INERT)) === 0) {
|
|
4481
|
-
if (check_dirtiness(effect)) {
|
|
4482
|
-
var wv = write_version;
|
|
4483
|
-
update_effect(effect);
|
|
4484
|
-
if (effect.deps === null && effect.first === null && effect.nodes_start === null) {
|
|
4485
|
-
if (effect.teardown === null) {
|
|
4486
|
-
unlink_effect(effect);
|
|
4487
|
-
} else {
|
|
4488
|
-
effect.fn = null;
|
|
4489
|
-
}
|
|
4490
|
-
}
|
|
4491
|
-
if (write_version > wv && (effect.f & USER_EFFECT) !== 0) {
|
|
4492
|
-
break;
|
|
4493
|
-
}
|
|
4494
|
-
}
|
|
4495
|
-
}
|
|
4496
|
-
}
|
|
4497
|
-
for (;i < length; i += 1) {
|
|
4498
|
-
schedule_effect(effects[i]);
|
|
4499
|
-
}
|
|
4500
|
-
}
|
|
4501
|
-
function schedule_effect(signal) {
|
|
4502
|
-
if (!is_flushing) {
|
|
4503
|
-
is_flushing = true;
|
|
4504
|
-
queueMicrotask(flush_queued_root_effects);
|
|
4505
|
-
}
|
|
4506
|
-
var effect = last_scheduled_effect = signal;
|
|
4507
|
-
while (effect.parent !== null) {
|
|
4508
|
-
effect = effect.parent;
|
|
4509
|
-
var flags = effect.f;
|
|
4510
|
-
if ((flags & (ROOT_EFFECT | BRANCH_EFFECT)) !== 0) {
|
|
4511
|
-
if ((flags & CLEAN) === 0)
|
|
4512
|
-
return;
|
|
4513
|
-
effect.f ^= CLEAN;
|
|
4514
|
-
}
|
|
4515
|
-
}
|
|
4516
|
-
queued_root_effects.push(effect);
|
|
4517
|
-
}
|
|
4518
|
-
function process_effects(root) {
|
|
4519
|
-
var effects = [];
|
|
4520
|
-
var effect = root;
|
|
4521
|
-
while (effect !== null) {
|
|
4522
|
-
var flags = effect.f;
|
|
4523
|
-
var is_branch = (flags & (BRANCH_EFFECT | ROOT_EFFECT)) !== 0;
|
|
4524
|
-
var is_skippable_branch = is_branch && (flags & CLEAN) !== 0;
|
|
4525
|
-
if (!is_skippable_branch && (flags & INERT) === 0) {
|
|
4526
|
-
if ((flags & EFFECT) !== 0) {
|
|
4527
|
-
effects.push(effect);
|
|
4528
|
-
} else if (is_branch) {
|
|
4529
|
-
effect.f ^= CLEAN;
|
|
4530
|
-
} else {
|
|
4531
|
-
if (check_dirtiness(effect)) {
|
|
4532
|
-
update_effect(effect);
|
|
4533
|
-
}
|
|
4534
|
-
}
|
|
4535
|
-
var child = effect.first;
|
|
4536
|
-
if (child !== null) {
|
|
4537
|
-
effect = child;
|
|
4538
|
-
continue;
|
|
4539
|
-
}
|
|
4540
|
-
}
|
|
4541
|
-
var parent = effect.parent;
|
|
4542
|
-
effect = effect.next;
|
|
4543
|
-
while (effect === null && parent !== null) {
|
|
4544
|
-
effect = parent.next;
|
|
4545
|
-
parent = parent.parent;
|
|
4546
|
-
}
|
|
4547
|
-
}
|
|
4548
|
-
return effects;
|
|
4549
|
-
}
|
|
4550
|
-
function flushSync(fn) {
|
|
4551
|
-
var result;
|
|
4552
|
-
if (fn) {
|
|
4553
|
-
is_flushing = true;
|
|
4554
|
-
flush_queued_root_effects();
|
|
4555
|
-
is_flushing = true;
|
|
4556
|
-
result = fn();
|
|
4557
|
-
}
|
|
4558
|
-
while (true) {
|
|
4559
|
-
flush_tasks();
|
|
4560
|
-
if (queued_root_effects.length === 0) {
|
|
4561
|
-
is_flushing = false;
|
|
4562
|
-
last_scheduled_effect = null;
|
|
4563
|
-
if (true_default) {
|
|
4564
|
-
dev_effect_stack = [];
|
|
4565
|
-
}
|
|
4566
|
-
return result;
|
|
4567
|
-
}
|
|
4568
|
-
is_flushing = true;
|
|
4569
|
-
flush_queued_root_effects();
|
|
4570
|
-
}
|
|
4571
|
-
}
|
|
4572
5062
|
function get(signal) {
|
|
4573
|
-
var
|
|
4574
|
-
var is_derived = (
|
|
5063
|
+
var flags2 = signal.f;
|
|
5064
|
+
var is_derived = (flags2 & DERIVED) !== 0;
|
|
4575
5065
|
if (captured_signals !== null) {
|
|
4576
5066
|
captured_signals.add(signal);
|
|
4577
5067
|
}
|
|
4578
5068
|
if (active_reaction !== null && !untracking) {
|
|
4579
|
-
|
|
5069
|
+
var destroyed = active_effect !== null && (active_effect.f & DESTROYED) !== 0;
|
|
5070
|
+
if (!destroyed && !current_sources?.includes(signal)) {
|
|
4580
5071
|
var deps = active_reaction.deps;
|
|
4581
|
-
if (
|
|
4582
|
-
signal.rv
|
|
4583
|
-
|
|
4584
|
-
skipped_deps
|
|
4585
|
-
|
|
4586
|
-
new_deps
|
|
4587
|
-
|
|
4588
|
-
new_deps.
|
|
5072
|
+
if ((active_reaction.f & REACTION_IS_UPDATING) !== 0) {
|
|
5073
|
+
if (signal.rv < read_version) {
|
|
5074
|
+
signal.rv = read_version;
|
|
5075
|
+
if (new_deps === null && deps !== null && deps[skipped_deps] === signal) {
|
|
5076
|
+
skipped_deps++;
|
|
5077
|
+
} else if (new_deps === null) {
|
|
5078
|
+
new_deps = [signal];
|
|
5079
|
+
} else if (!skip_reaction || !new_deps.includes(signal)) {
|
|
5080
|
+
new_deps.push(signal);
|
|
5081
|
+
}
|
|
5082
|
+
}
|
|
5083
|
+
} else {
|
|
5084
|
+
(active_reaction.deps ??= []).push(signal);
|
|
5085
|
+
var reactions = signal.reactions;
|
|
5086
|
+
if (reactions === null) {
|
|
5087
|
+
signal.reactions = [active_reaction];
|
|
5088
|
+
} else if (!reactions.includes(active_reaction)) {
|
|
5089
|
+
reactions.push(active_reaction);
|
|
4589
5090
|
}
|
|
4590
5091
|
}
|
|
4591
5092
|
}
|
|
4592
5093
|
} else if (is_derived && signal.deps === null && signal.effects === null) {
|
|
4593
|
-
var
|
|
4594
|
-
var parent =
|
|
5094
|
+
var derived2 = signal;
|
|
5095
|
+
var parent = derived2.parent;
|
|
4595
5096
|
if (parent !== null && (parent.f & UNOWNED) === 0) {
|
|
4596
|
-
|
|
4597
|
-
}
|
|
4598
|
-
}
|
|
4599
|
-
if (is_derived && !is_destroying_effect) {
|
|
4600
|
-
derived = signal;
|
|
4601
|
-
if (check_dirtiness(derived)) {
|
|
4602
|
-
update_derived(derived);
|
|
5097
|
+
derived2.f ^= UNOWNED;
|
|
4603
5098
|
}
|
|
4604
5099
|
}
|
|
4605
|
-
if (true_default
|
|
4606
|
-
if (
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
var
|
|
4612
|
-
if (
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
5100
|
+
if (true_default) {
|
|
5101
|
+
if (current_async_effect) {
|
|
5102
|
+
var tracking = (current_async_effect.f & REACTION_IS_UPDATING) !== 0;
|
|
5103
|
+
var was_read = current_async_effect.deps?.includes(signal);
|
|
5104
|
+
if (!tracking && !untracking && !was_read) {
|
|
5105
|
+
await_reactivity_loss(signal.label);
|
|
5106
|
+
var trace = get_stack("TracedAt");
|
|
5107
|
+
if (trace)
|
|
5108
|
+
console.warn(trace);
|
|
5109
|
+
}
|
|
5110
|
+
}
|
|
5111
|
+
recent_async_deriveds.delete(signal);
|
|
5112
|
+
if (tracing_mode_flag && !untracking && tracing_expressions !== null && active_reaction !== null && tracing_expressions.reaction === active_reaction) {
|
|
5113
|
+
if (signal.trace) {
|
|
5114
|
+
signal.trace();
|
|
5115
|
+
} else {
|
|
5116
|
+
trace = get_stack("TracedAt");
|
|
5117
|
+
if (trace) {
|
|
5118
|
+
var entry = tracing_expressions.entries.get(signal);
|
|
5119
|
+
if (entry === undefined) {
|
|
5120
|
+
entry = { traces: [] };
|
|
5121
|
+
tracing_expressions.entries.set(signal, entry);
|
|
5122
|
+
}
|
|
5123
|
+
var last = entry.traces[entry.traces.length - 1];
|
|
5124
|
+
if (trace.stack !== last?.stack) {
|
|
5125
|
+
entry.traces.push(trace);
|
|
5126
|
+
}
|
|
4619
5127
|
}
|
|
4620
5128
|
}
|
|
4621
5129
|
}
|
|
@@ -4625,23 +5133,34 @@ function get(signal) {
|
|
|
4625
5133
|
return old_values.get(signal);
|
|
4626
5134
|
}
|
|
4627
5135
|
if (is_derived) {
|
|
4628
|
-
|
|
4629
|
-
var value =
|
|
4630
|
-
if ((
|
|
4631
|
-
value = execute_derived(
|
|
5136
|
+
derived2 = signal;
|
|
5137
|
+
var value = derived2.v;
|
|
5138
|
+
if ((derived2.f & CLEAN) !== 0 || depends_on_old_values(derived2)) {
|
|
5139
|
+
value = execute_derived(derived2);
|
|
4632
5140
|
}
|
|
4633
|
-
old_values.set(
|
|
5141
|
+
old_values.set(derived2, value);
|
|
4634
5142
|
return value;
|
|
4635
5143
|
}
|
|
5144
|
+
} else if (is_derived) {
|
|
5145
|
+
derived2 = signal;
|
|
5146
|
+
if (batch_deriveds?.has(derived2)) {
|
|
5147
|
+
return batch_deriveds.get(derived2);
|
|
5148
|
+
}
|
|
5149
|
+
if (is_dirty(derived2)) {
|
|
5150
|
+
update_derived(derived2);
|
|
5151
|
+
}
|
|
5152
|
+
}
|
|
5153
|
+
if ((signal.f & ERROR_VALUE) !== 0) {
|
|
5154
|
+
throw signal.v;
|
|
4636
5155
|
}
|
|
4637
5156
|
return signal.v;
|
|
4638
5157
|
}
|
|
4639
|
-
function depends_on_old_values(
|
|
4640
|
-
if (
|
|
5158
|
+
function depends_on_old_values(derived2) {
|
|
5159
|
+
if (derived2.v === UNINITIALIZED)
|
|
4641
5160
|
return true;
|
|
4642
|
-
if (
|
|
5161
|
+
if (derived2.deps === null)
|
|
4643
5162
|
return false;
|
|
4644
|
-
for (const dep of
|
|
5163
|
+
for (const dep of derived2.deps) {
|
|
4645
5164
|
if (old_values.has(dep)) {
|
|
4646
5165
|
return true;
|
|
4647
5166
|
}
|
|
@@ -4651,12 +5170,21 @@ function depends_on_old_values(derived) {
|
|
|
4651
5170
|
}
|
|
4652
5171
|
return false;
|
|
4653
5172
|
}
|
|
5173
|
+
function untrack(fn) {
|
|
5174
|
+
var previous_untracking = untracking;
|
|
5175
|
+
try {
|
|
5176
|
+
untracking = true;
|
|
5177
|
+
return fn();
|
|
5178
|
+
} finally {
|
|
5179
|
+
untracking = previous_untracking;
|
|
5180
|
+
}
|
|
5181
|
+
}
|
|
4654
5182
|
var STATUS_MASK = ~(DIRTY | MAYBE_DIRTY | CLEAN);
|
|
4655
5183
|
function set_signal_status(signal, status) {
|
|
4656
5184
|
signal.f = signal.f & STATUS_MASK | status;
|
|
4657
5185
|
}
|
|
4658
5186
|
|
|
4659
|
-
// node_modules/.pnpm/svelte@5.
|
|
5187
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/reactivity/effects.js
|
|
4660
5188
|
function push_effect(effect, parent_effect) {
|
|
4661
5189
|
var parent_last = parent_effect.last;
|
|
4662
5190
|
if (parent_last === null) {
|
|
@@ -4674,6 +5202,9 @@ function create_effect(type, fn, sync, push2 = true) {
|
|
|
4674
5202
|
parent = parent.parent;
|
|
4675
5203
|
}
|
|
4676
5204
|
}
|
|
5205
|
+
if (parent !== null && (parent.f & INERT) !== 0) {
|
|
5206
|
+
type |= INERT;
|
|
5207
|
+
}
|
|
4677
5208
|
var effect = {
|
|
4678
5209
|
ctx: component_context,
|
|
4679
5210
|
deps: null,
|
|
@@ -4706,7 +5237,7 @@ function create_effect(type, fn, sync, push2 = true) {
|
|
|
4706
5237
|
} else if (fn !== null) {
|
|
4707
5238
|
schedule_effect(effect);
|
|
4708
5239
|
}
|
|
4709
|
-
var inert = sync && effect.deps === null && effect.first === null && effect.nodes_start === null && effect.teardown === null && (effect.f &
|
|
5240
|
+
var inert = sync && effect.deps === null && effect.first === null && effect.nodes_start === null && effect.teardown === null && (effect.f & EFFECT_PRESERVED) === 0;
|
|
4710
5241
|
if (!inert && push2) {
|
|
4711
5242
|
if (parent !== null) {
|
|
4712
5243
|
push_effect(effect, parent);
|
|
@@ -4718,16 +5249,21 @@ function create_effect(type, fn, sync, push2 = true) {
|
|
|
4718
5249
|
}
|
|
4719
5250
|
return effect;
|
|
4720
5251
|
}
|
|
5252
|
+
function effect_tracking() {
|
|
5253
|
+
return active_reaction !== null && !untracking;
|
|
5254
|
+
}
|
|
4721
5255
|
function create_user_effect(fn) {
|
|
4722
5256
|
return create_effect(EFFECT | USER_EFFECT, fn, false);
|
|
4723
5257
|
}
|
|
4724
5258
|
function effect_root(fn) {
|
|
5259
|
+
Batch.ensure();
|
|
4725
5260
|
const effect = create_effect(ROOT_EFFECT, fn, true);
|
|
4726
5261
|
return () => {
|
|
4727
5262
|
destroy_effect(effect);
|
|
4728
5263
|
};
|
|
4729
5264
|
}
|
|
4730
5265
|
function component_root(fn) {
|
|
5266
|
+
Batch.ensure();
|
|
4731
5267
|
const effect = create_effect(ROOT_EFFECT, fn, true);
|
|
4732
5268
|
return (options2 = {}) => {
|
|
4733
5269
|
return new Promise((fulfil) => {
|
|
@@ -4743,28 +5279,28 @@ function component_root(fn) {
|
|
|
4743
5279
|
});
|
|
4744
5280
|
};
|
|
4745
5281
|
}
|
|
4746
|
-
function render_effect(fn) {
|
|
4747
|
-
return create_effect(RENDER_EFFECT, fn, true);
|
|
5282
|
+
function render_effect(fn, flags2 = 0) {
|
|
5283
|
+
return create_effect(RENDER_EFFECT | flags2, fn, true);
|
|
4748
5284
|
}
|
|
4749
|
-
function block2(fn,
|
|
4750
|
-
var effect = create_effect(
|
|
5285
|
+
function block2(fn, flags2 = 0) {
|
|
5286
|
+
var effect = create_effect(BLOCK_EFFECT | flags2, fn, true);
|
|
4751
5287
|
if (true_default) {
|
|
4752
5288
|
effect.dev_stack = dev_stack;
|
|
4753
5289
|
}
|
|
4754
5290
|
return effect;
|
|
4755
5291
|
}
|
|
4756
5292
|
function branch(fn, push2 = true) {
|
|
4757
|
-
return create_effect(
|
|
5293
|
+
return create_effect(BRANCH_EFFECT, fn, true, push2);
|
|
4758
5294
|
}
|
|
4759
5295
|
function execute_effect_teardown(effect) {
|
|
4760
|
-
var
|
|
4761
|
-
if (
|
|
5296
|
+
var teardown = effect.teardown;
|
|
5297
|
+
if (teardown !== null) {
|
|
4762
5298
|
const previously_destroying_effect = is_destroying_effect;
|
|
4763
5299
|
const previous_reaction = active_reaction;
|
|
4764
5300
|
set_is_destroying_effect(true);
|
|
4765
5301
|
set_active_reaction(null);
|
|
4766
5302
|
try {
|
|
4767
|
-
|
|
5303
|
+
teardown.call(null);
|
|
4768
5304
|
} finally {
|
|
4769
5305
|
set_is_destroying_effect(previously_destroying_effect);
|
|
4770
5306
|
set_active_reaction(previous_reaction);
|
|
@@ -4881,7 +5417,7 @@ function pause_children(effect, transitions, local) {
|
|
|
4881
5417
|
child = sibling;
|
|
4882
5418
|
}
|
|
4883
5419
|
}
|
|
4884
|
-
// node_modules/.pnpm/svelte@5.
|
|
5420
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/utils.js
|
|
4885
5421
|
var DOM_BOOLEAN_ATTRIBUTES = [
|
|
4886
5422
|
"allowfullscreen",
|
|
4887
5423
|
"async",
|
|
@@ -4950,14 +5486,15 @@ var RUNES = [
|
|
|
4950
5486
|
"$effect.pre",
|
|
4951
5487
|
"$effect.tracking",
|
|
4952
5488
|
"$effect.root",
|
|
5489
|
+
"$effect.pending",
|
|
4953
5490
|
"$inspect",
|
|
4954
5491
|
"$inspect().with",
|
|
4955
5492
|
"$inspect.trace",
|
|
4956
5493
|
"$host"
|
|
4957
5494
|
];
|
|
4958
|
-
// node_modules/.pnpm/svelte@5.
|
|
5495
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/dev/css.js
|
|
4959
5496
|
var all_styles = new Map;
|
|
4960
|
-
// node_modules/.pnpm/svelte@5.
|
|
5497
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/dom/elements/events.js
|
|
4961
5498
|
var all_registered_events = new Set;
|
|
4962
5499
|
var root_event_handles = new Set;
|
|
4963
5500
|
function handle_event_propagation(event) {
|
|
@@ -5038,13 +5575,13 @@ function handle_event_propagation(event) {
|
|
|
5038
5575
|
}
|
|
5039
5576
|
}
|
|
5040
5577
|
|
|
5041
|
-
// node_modules/.pnpm/svelte@5.
|
|
5578
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/dom/blocks/svelte-head.js
|
|
5042
5579
|
var head_anchor;
|
|
5043
5580
|
function reset_head_anchor() {
|
|
5044
5581
|
head_anchor = undefined;
|
|
5045
5582
|
}
|
|
5046
5583
|
|
|
5047
|
-
// node_modules/.pnpm/svelte@5.
|
|
5584
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/dom/template.js
|
|
5048
5585
|
function assign_nodes(start, end) {
|
|
5049
5586
|
var effect = active_effect;
|
|
5050
5587
|
if (effect.nodes_start === null) {
|
|
@@ -5064,7 +5601,7 @@ function append(anchor, dom) {
|
|
|
5064
5601
|
anchor.before(dom);
|
|
5065
5602
|
}
|
|
5066
5603
|
|
|
5067
|
-
// node_modules/.pnpm/svelte@5.
|
|
5604
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/render.js
|
|
5068
5605
|
var should_intro = true;
|
|
5069
5606
|
function mount(component, options2) {
|
|
5070
5607
|
return _mount(component, options2);
|
|
@@ -5190,7 +5727,7 @@ function unmount(component, options2) {
|
|
|
5190
5727
|
}
|
|
5191
5728
|
return Promise.resolve();
|
|
5192
5729
|
}
|
|
5193
|
-
// node_modules/.pnpm/svelte@5.
|
|
5730
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/shared/attributes.js
|
|
5194
5731
|
var replacements = {
|
|
5195
5732
|
translate: new Map([
|
|
5196
5733
|
[true, "yes"],
|
|
@@ -5200,22 +5737,22 @@ var replacements = {
|
|
|
5200
5737
|
var whitespace = [...`
|
|
5201
5738
|
\r\f \v\uFEFF`];
|
|
5202
5739
|
|
|
5203
|
-
// node_modules/.pnpm/svelte@5.
|
|
5740
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/dom/elements/attributes.js
|
|
5204
5741
|
var CLASS = Symbol("class");
|
|
5205
5742
|
var STYLE = Symbol("style");
|
|
5206
5743
|
var IS_CUSTOM_ELEMENT = Symbol("is custom element");
|
|
5207
5744
|
var IS_HTML = Symbol("is html");
|
|
5208
5745
|
var setters_cache = new Map;
|
|
5209
|
-
// node_modules/.pnpm/svelte@5.
|
|
5746
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/timing.js
|
|
5210
5747
|
var now = true_default ? () => performance.now() : () => Date.now();
|
|
5211
5748
|
var raf = {
|
|
5212
5749
|
tick: (_) => (true_default ? requestAnimationFrame : noop)(_),
|
|
5213
5750
|
now: () => now(),
|
|
5214
5751
|
tasks: new Set
|
|
5215
5752
|
};
|
|
5216
|
-
// node_modules/.pnpm/svelte@5.
|
|
5753
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/dom/elements/bindings/input.js
|
|
5217
5754
|
var pending = new Set;
|
|
5218
|
-
// node_modules/.pnpm/svelte@5.
|
|
5755
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/dom/elements/bindings/size.js
|
|
5219
5756
|
class ResizeObserverSingleton {
|
|
5220
5757
|
#listeners = new WeakMap;
|
|
5221
5758
|
#observer;
|
|
@@ -5249,111 +5786,9 @@ class ResizeObserverSingleton {
|
|
|
5249
5786
|
}));
|
|
5250
5787
|
}
|
|
5251
5788
|
}
|
|
5252
|
-
// node_modules/.pnpm/svelte@5.
|
|
5789
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/reactivity/store.js
|
|
5253
5790
|
var IS_UNMOUNTED = Symbol();
|
|
5254
|
-
// node_modules/.pnpm/svelte@5.
|
|
5255
|
-
var flags = EFFECT_TRANSPARENT | EFFECT_PRESERVED | BOUNDARY_EFFECT;
|
|
5256
|
-
class Boundary {
|
|
5257
|
-
#anchor;
|
|
5258
|
-
#hydrate_open;
|
|
5259
|
-
#props;
|
|
5260
|
-
#children;
|
|
5261
|
-
#effect;
|
|
5262
|
-
#main_effect = null;
|
|
5263
|
-
#failed_effect = null;
|
|
5264
|
-
#is_creating_fallback = false;
|
|
5265
|
-
constructor(node, props, children) {
|
|
5266
|
-
this.#anchor = node;
|
|
5267
|
-
this.#props = props;
|
|
5268
|
-
this.#children = children;
|
|
5269
|
-
this.#hydrate_open = hydrate_node;
|
|
5270
|
-
this.#effect = block2(() => {
|
|
5271
|
-
active_effect.b = this;
|
|
5272
|
-
if (hydrating) {
|
|
5273
|
-
hydrate_next();
|
|
5274
|
-
}
|
|
5275
|
-
try {
|
|
5276
|
-
this.#main_effect = branch(() => children(this.#anchor));
|
|
5277
|
-
} catch (error) {
|
|
5278
|
-
this.error(error);
|
|
5279
|
-
}
|
|
5280
|
-
}, flags);
|
|
5281
|
-
if (hydrating) {
|
|
5282
|
-
this.#anchor = hydrate_node;
|
|
5283
|
-
}
|
|
5284
|
-
}
|
|
5285
|
-
#run(fn) {
|
|
5286
|
-
var previous_effect = active_effect;
|
|
5287
|
-
var previous_reaction = active_reaction;
|
|
5288
|
-
var previous_ctx = component_context;
|
|
5289
|
-
set_active_effect(this.#effect);
|
|
5290
|
-
set_active_reaction(this.#effect);
|
|
5291
|
-
set_component_context(this.#effect.ctx);
|
|
5292
|
-
try {
|
|
5293
|
-
return fn();
|
|
5294
|
-
} finally {
|
|
5295
|
-
set_active_effect(previous_effect);
|
|
5296
|
-
set_active_reaction(previous_reaction);
|
|
5297
|
-
set_component_context(previous_ctx);
|
|
5298
|
-
}
|
|
5299
|
-
}
|
|
5300
|
-
error(error) {
|
|
5301
|
-
var onerror = this.#props.onerror;
|
|
5302
|
-
let failed = this.#props.failed;
|
|
5303
|
-
const reset = () => {
|
|
5304
|
-
if (this.#failed_effect !== null) {
|
|
5305
|
-
pause_effect(this.#failed_effect, () => {
|
|
5306
|
-
this.#failed_effect = null;
|
|
5307
|
-
});
|
|
5308
|
-
}
|
|
5309
|
-
this.#main_effect = this.#run(() => {
|
|
5310
|
-
this.#is_creating_fallback = false;
|
|
5311
|
-
return branch(() => this.#children(this.#anchor));
|
|
5312
|
-
});
|
|
5313
|
-
};
|
|
5314
|
-
if (this.#is_creating_fallback || !onerror && !failed) {
|
|
5315
|
-
throw error;
|
|
5316
|
-
}
|
|
5317
|
-
var previous_reaction = active_reaction;
|
|
5318
|
-
try {
|
|
5319
|
-
set_active_reaction(null);
|
|
5320
|
-
onerror?.(error, reset);
|
|
5321
|
-
} finally {
|
|
5322
|
-
set_active_reaction(previous_reaction);
|
|
5323
|
-
}
|
|
5324
|
-
if (this.#main_effect) {
|
|
5325
|
-
destroy_effect(this.#main_effect);
|
|
5326
|
-
this.#main_effect = null;
|
|
5327
|
-
}
|
|
5328
|
-
if (this.#failed_effect) {
|
|
5329
|
-
destroy_effect(this.#failed_effect);
|
|
5330
|
-
this.#failed_effect = null;
|
|
5331
|
-
}
|
|
5332
|
-
if (hydrating) {
|
|
5333
|
-
set_hydrate_node(this.#hydrate_open);
|
|
5334
|
-
next();
|
|
5335
|
-
set_hydrate_node(remove_nodes());
|
|
5336
|
-
}
|
|
5337
|
-
if (failed) {
|
|
5338
|
-
queue_micro_task(() => {
|
|
5339
|
-
this.#failed_effect = this.#run(() => {
|
|
5340
|
-
this.#is_creating_fallback = true;
|
|
5341
|
-
try {
|
|
5342
|
-
return branch(() => {
|
|
5343
|
-
failed(this.#anchor, () => error, () => reset);
|
|
5344
|
-
});
|
|
5345
|
-
} catch (error2) {
|
|
5346
|
-
invoke_error_boundary(error2, this.#effect.parent);
|
|
5347
|
-
return null;
|
|
5348
|
-
} finally {
|
|
5349
|
-
this.#is_creating_fallback = false;
|
|
5350
|
-
}
|
|
5351
|
-
});
|
|
5352
|
-
});
|
|
5353
|
-
}
|
|
5354
|
-
}
|
|
5355
|
-
}
|
|
5356
|
-
// node_modules/.pnpm/svelte@5.35.6/node_modules/svelte/src/legacy/legacy-client.js
|
|
5791
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/legacy/legacy-client.js
|
|
5357
5792
|
function createClassComponent(options2) {
|
|
5358
5793
|
return new Svelte4Component(options2);
|
|
5359
5794
|
}
|
|
@@ -5390,7 +5825,7 @@ class Svelte4Component {
|
|
|
5390
5825
|
intro: options2.intro ?? false,
|
|
5391
5826
|
recover: options2.recover
|
|
5392
5827
|
});
|
|
5393
|
-
if (!options2?.props?.$$host || options2.sync === false) {
|
|
5828
|
+
if (!async_mode_flag && (!options2?.props?.$$host || options2.sync === false)) {
|
|
5394
5829
|
flushSync();
|
|
5395
5830
|
}
|
|
5396
5831
|
this.#events = props.$$events;
|
|
@@ -5430,7 +5865,7 @@ class Svelte4Component {
|
|
|
5430
5865
|
}
|
|
5431
5866
|
}
|
|
5432
5867
|
|
|
5433
|
-
// node_modules/.pnpm/svelte@5.
|
|
5868
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/internal/client/dom/elements/custom-element.js
|
|
5434
5869
|
var SvelteElement;
|
|
5435
5870
|
if (typeof HTMLElement === "function") {
|
|
5436
5871
|
SvelteElement = class extends HTMLElement {
|
|
@@ -5605,7 +6040,7 @@ function get_custom_elements_slots(element) {
|
|
|
5605
6040
|
});
|
|
5606
6041
|
return result;
|
|
5607
6042
|
}
|
|
5608
|
-
// node_modules/.pnpm/svelte@5.
|
|
6043
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/index-client.js
|
|
5609
6044
|
if (true_default) {
|
|
5610
6045
|
let throw_rune_error = function(rune) {
|
|
5611
6046
|
if (!(rune in globalThis)) {
|
|
@@ -5632,7 +6067,7 @@ if (true_default) {
|
|
|
5632
6067
|
throw_rune_error("$bindable");
|
|
5633
6068
|
}
|
|
5634
6069
|
|
|
5635
|
-
// node_modules/.pnpm/svelte@5.
|
|
6070
|
+
// node_modules/.pnpm/svelte@5.36.5/node_modules/svelte/src/store/shared/index.js
|
|
5636
6071
|
var subscriber_queue = [];
|
|
5637
6072
|
function writable(value, start = noop) {
|
|
5638
6073
|
let stop = null;
|
|
@@ -6053,9 +6488,9 @@ var util;
|
|
|
6053
6488
|
};
|
|
6054
6489
|
util2.objectKeys = typeof Object.keys === "function" ? (obj) => Object.keys(obj) : (object) => {
|
|
6055
6490
|
const keys = [];
|
|
6056
|
-
for (const
|
|
6057
|
-
if (Object.prototype.hasOwnProperty.call(object,
|
|
6058
|
-
keys.push(
|
|
6491
|
+
for (const key2 in object) {
|
|
6492
|
+
if (Object.prototype.hasOwnProperty.call(object, key2)) {
|
|
6493
|
+
keys.push(key2);
|
|
6059
6494
|
}
|
|
6060
6495
|
}
|
|
6061
6496
|
return keys;
|
|
@@ -6451,10 +6886,10 @@ class ParseStatus {
|
|
|
6451
6886
|
static async mergeObjectAsync(status, pairs) {
|
|
6452
6887
|
const syncPairs = [];
|
|
6453
6888
|
for (const pair of pairs) {
|
|
6454
|
-
const
|
|
6889
|
+
const key2 = await pair.key;
|
|
6455
6890
|
const value = await pair.value;
|
|
6456
6891
|
syncPairs.push({
|
|
6457
|
-
key,
|
|
6892
|
+
key: key2,
|
|
6458
6893
|
value
|
|
6459
6894
|
});
|
|
6460
6895
|
}
|
|
@@ -6463,17 +6898,17 @@ class ParseStatus {
|
|
|
6463
6898
|
static mergeObjectSync(status, pairs) {
|
|
6464
6899
|
const finalObject = {};
|
|
6465
6900
|
for (const pair of pairs) {
|
|
6466
|
-
const { key, value } = pair;
|
|
6467
|
-
if (
|
|
6901
|
+
const { key: key2, value } = pair;
|
|
6902
|
+
if (key2.status === "aborted")
|
|
6468
6903
|
return INVALID;
|
|
6469
6904
|
if (value.status === "aborted")
|
|
6470
6905
|
return INVALID;
|
|
6471
|
-
if (
|
|
6906
|
+
if (key2.status === "dirty")
|
|
6472
6907
|
status.dirty();
|
|
6473
6908
|
if (value.status === "dirty")
|
|
6474
6909
|
status.dirty();
|
|
6475
|
-
if (
|
|
6476
|
-
finalObject[
|
|
6910
|
+
if (key2.value !== "__proto__" && (typeof value.value !== "undefined" || pair.alwaysSet)) {
|
|
6911
|
+
finalObject[key2.value] = value.value;
|
|
6477
6912
|
}
|
|
6478
6913
|
}
|
|
6479
6914
|
return { status: status.value, value: finalObject };
|
|
@@ -6497,12 +6932,12 @@ var errorUtil;
|
|
|
6497
6932
|
|
|
6498
6933
|
// node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.js
|
|
6499
6934
|
class ParseInputLazyPath {
|
|
6500
|
-
constructor(parent, value, path,
|
|
6935
|
+
constructor(parent, value, path, key2) {
|
|
6501
6936
|
this._cachedPath = [];
|
|
6502
6937
|
this.parent = parent;
|
|
6503
6938
|
this.data = value;
|
|
6504
6939
|
this._path = path;
|
|
6505
|
-
this._key =
|
|
6940
|
+
this._key = key2;
|
|
6506
6941
|
}
|
|
6507
6942
|
get path() {
|
|
6508
6943
|
if (!this._cachedPath.length) {
|
|
@@ -8258,9 +8693,9 @@ ZodArray.create = (schema, params) => {
|
|
|
8258
8693
|
function deepPartialify(schema) {
|
|
8259
8694
|
if (schema instanceof ZodObject) {
|
|
8260
8695
|
const newShape = {};
|
|
8261
|
-
for (const
|
|
8262
|
-
const fieldSchema = schema.shape[
|
|
8263
|
-
newShape[
|
|
8696
|
+
for (const key2 in schema.shape) {
|
|
8697
|
+
const fieldSchema = schema.shape[key2];
|
|
8698
|
+
newShape[key2] = ZodOptional.create(deepPartialify(fieldSchema));
|
|
8264
8699
|
}
|
|
8265
8700
|
return new ZodObject({
|
|
8266
8701
|
...schema._def,
|
|
@@ -8312,29 +8747,29 @@ class ZodObject extends ZodType {
|
|
|
8312
8747
|
const { shape, keys: shapeKeys } = this._getCached();
|
|
8313
8748
|
const extraKeys = [];
|
|
8314
8749
|
if (!(this._def.catchall instanceof ZodNever && this._def.unknownKeys === "strip")) {
|
|
8315
|
-
for (const
|
|
8316
|
-
if (!shapeKeys.includes(
|
|
8317
|
-
extraKeys.push(
|
|
8750
|
+
for (const key2 in ctx.data) {
|
|
8751
|
+
if (!shapeKeys.includes(key2)) {
|
|
8752
|
+
extraKeys.push(key2);
|
|
8318
8753
|
}
|
|
8319
8754
|
}
|
|
8320
8755
|
}
|
|
8321
8756
|
const pairs = [];
|
|
8322
|
-
for (const
|
|
8323
|
-
const keyValidator = shape[
|
|
8324
|
-
const value = ctx.data[
|
|
8757
|
+
for (const key2 of shapeKeys) {
|
|
8758
|
+
const keyValidator = shape[key2];
|
|
8759
|
+
const value = ctx.data[key2];
|
|
8325
8760
|
pairs.push({
|
|
8326
|
-
key: { status: "valid", value:
|
|
8327
|
-
value: keyValidator._parse(new ParseInputLazyPath(ctx, value, ctx.path,
|
|
8328
|
-
alwaysSet:
|
|
8761
|
+
key: { status: "valid", value: key2 },
|
|
8762
|
+
value: keyValidator._parse(new ParseInputLazyPath(ctx, value, ctx.path, key2)),
|
|
8763
|
+
alwaysSet: key2 in ctx.data
|
|
8329
8764
|
});
|
|
8330
8765
|
}
|
|
8331
8766
|
if (this._def.catchall instanceof ZodNever) {
|
|
8332
8767
|
const unknownKeys = this._def.unknownKeys;
|
|
8333
8768
|
if (unknownKeys === "passthrough") {
|
|
8334
|
-
for (const
|
|
8769
|
+
for (const key2 of extraKeys) {
|
|
8335
8770
|
pairs.push({
|
|
8336
|
-
key: { status: "valid", value:
|
|
8337
|
-
value: { status: "valid", value: ctx.data[
|
|
8771
|
+
key: { status: "valid", value: key2 },
|
|
8772
|
+
value: { status: "valid", value: ctx.data[key2] }
|
|
8338
8773
|
});
|
|
8339
8774
|
}
|
|
8340
8775
|
} else if (unknownKeys === "strict") {
|
|
@@ -8350,12 +8785,12 @@ class ZodObject extends ZodType {
|
|
|
8350
8785
|
}
|
|
8351
8786
|
} else {
|
|
8352
8787
|
const catchall = this._def.catchall;
|
|
8353
|
-
for (const
|
|
8354
|
-
const value = ctx.data[
|
|
8788
|
+
for (const key2 of extraKeys) {
|
|
8789
|
+
const value = ctx.data[key2];
|
|
8355
8790
|
pairs.push({
|
|
8356
|
-
key: { status: "valid", value:
|
|
8357
|
-
value: catchall._parse(new ParseInputLazyPath(ctx, value, ctx.path,
|
|
8358
|
-
alwaysSet:
|
|
8791
|
+
key: { status: "valid", value: key2 },
|
|
8792
|
+
value: catchall._parse(new ParseInputLazyPath(ctx, value, ctx.path, key2)),
|
|
8793
|
+
alwaysSet: key2 in ctx.data
|
|
8359
8794
|
});
|
|
8360
8795
|
}
|
|
8361
8796
|
}
|
|
@@ -8363,10 +8798,10 @@ class ZodObject extends ZodType {
|
|
|
8363
8798
|
return Promise.resolve().then(async () => {
|
|
8364
8799
|
const syncPairs = [];
|
|
8365
8800
|
for (const pair of pairs) {
|
|
8366
|
-
const
|
|
8801
|
+
const key2 = await pair.key;
|
|
8367
8802
|
const value = await pair.value;
|
|
8368
8803
|
syncPairs.push({
|
|
8369
|
-
key,
|
|
8804
|
+
key: key2,
|
|
8370
8805
|
value,
|
|
8371
8806
|
alwaysSet: pair.alwaysSet
|
|
8372
8807
|
});
|
|
@@ -8434,8 +8869,8 @@ class ZodObject extends ZodType {
|
|
|
8434
8869
|
});
|
|
8435
8870
|
return merged;
|
|
8436
8871
|
}
|
|
8437
|
-
setKey(
|
|
8438
|
-
return this.augment({ [
|
|
8872
|
+
setKey(key2, schema) {
|
|
8873
|
+
return this.augment({ [key2]: schema });
|
|
8439
8874
|
}
|
|
8440
8875
|
catchall(index2) {
|
|
8441
8876
|
return new ZodObject({
|
|
@@ -8445,9 +8880,9 @@ class ZodObject extends ZodType {
|
|
|
8445
8880
|
}
|
|
8446
8881
|
pick(mask) {
|
|
8447
8882
|
const shape = {};
|
|
8448
|
-
for (const
|
|
8449
|
-
if (mask[
|
|
8450
|
-
shape[
|
|
8883
|
+
for (const key2 of util.objectKeys(mask)) {
|
|
8884
|
+
if (mask[key2] && this.shape[key2]) {
|
|
8885
|
+
shape[key2] = this.shape[key2];
|
|
8451
8886
|
}
|
|
8452
8887
|
}
|
|
8453
8888
|
return new ZodObject({
|
|
@@ -8457,9 +8892,9 @@ class ZodObject extends ZodType {
|
|
|
8457
8892
|
}
|
|
8458
8893
|
omit(mask) {
|
|
8459
8894
|
const shape = {};
|
|
8460
|
-
for (const
|
|
8461
|
-
if (!mask[
|
|
8462
|
-
shape[
|
|
8895
|
+
for (const key2 of util.objectKeys(this.shape)) {
|
|
8896
|
+
if (!mask[key2]) {
|
|
8897
|
+
shape[key2] = this.shape[key2];
|
|
8463
8898
|
}
|
|
8464
8899
|
}
|
|
8465
8900
|
return new ZodObject({
|
|
@@ -8472,12 +8907,12 @@ class ZodObject extends ZodType {
|
|
|
8472
8907
|
}
|
|
8473
8908
|
partial(mask) {
|
|
8474
8909
|
const newShape = {};
|
|
8475
|
-
for (const
|
|
8476
|
-
const fieldSchema = this.shape[
|
|
8477
|
-
if (mask && !mask[
|
|
8478
|
-
newShape[
|
|
8910
|
+
for (const key2 of util.objectKeys(this.shape)) {
|
|
8911
|
+
const fieldSchema = this.shape[key2];
|
|
8912
|
+
if (mask && !mask[key2]) {
|
|
8913
|
+
newShape[key2] = fieldSchema;
|
|
8479
8914
|
} else {
|
|
8480
|
-
newShape[
|
|
8915
|
+
newShape[key2] = fieldSchema.optional();
|
|
8481
8916
|
}
|
|
8482
8917
|
}
|
|
8483
8918
|
return new ZodObject({
|
|
@@ -8487,16 +8922,16 @@ class ZodObject extends ZodType {
|
|
|
8487
8922
|
}
|
|
8488
8923
|
required(mask) {
|
|
8489
8924
|
const newShape = {};
|
|
8490
|
-
for (const
|
|
8491
|
-
if (mask && !mask[
|
|
8492
|
-
newShape[
|
|
8925
|
+
for (const key2 of util.objectKeys(this.shape)) {
|
|
8926
|
+
if (mask && !mask[key2]) {
|
|
8927
|
+
newShape[key2] = this.shape[key2];
|
|
8493
8928
|
} else {
|
|
8494
|
-
const fieldSchema = this.shape[
|
|
8929
|
+
const fieldSchema = this.shape[key2];
|
|
8495
8930
|
let newField = fieldSchema;
|
|
8496
8931
|
while (newField instanceof ZodOptional) {
|
|
8497
8932
|
newField = newField._def.innerType;
|
|
8498
8933
|
}
|
|
8499
|
-
newShape[
|
|
8934
|
+
newShape[key2] = newField;
|
|
8500
8935
|
}
|
|
8501
8936
|
}
|
|
8502
8937
|
return new ZodObject({
|
|
@@ -8734,14 +9169,14 @@ function mergeValues(a, b) {
|
|
|
8734
9169
|
return { valid: true, data: a };
|
|
8735
9170
|
} else if (aType === ZodParsedType.object && bType === ZodParsedType.object) {
|
|
8736
9171
|
const bKeys = util.objectKeys(b);
|
|
8737
|
-
const sharedKeys = util.objectKeys(a).filter((
|
|
9172
|
+
const sharedKeys = util.objectKeys(a).filter((key2) => bKeys.indexOf(key2) !== -1);
|
|
8738
9173
|
const newObj = { ...a, ...b };
|
|
8739
|
-
for (const
|
|
8740
|
-
const sharedValue = mergeValues(a[
|
|
9174
|
+
for (const key2 of sharedKeys) {
|
|
9175
|
+
const sharedValue = mergeValues(a[key2], b[key2]);
|
|
8741
9176
|
if (!sharedValue.valid) {
|
|
8742
9177
|
return { valid: false };
|
|
8743
9178
|
}
|
|
8744
|
-
newObj[
|
|
9179
|
+
newObj[key2] = sharedValue.data;
|
|
8745
9180
|
}
|
|
8746
9181
|
return { valid: true, data: newObj };
|
|
8747
9182
|
} else if (aType === ZodParsedType.array && bType === ZodParsedType.array) {
|
|
@@ -8908,11 +9343,11 @@ class ZodRecord extends ZodType {
|
|
|
8908
9343
|
const pairs = [];
|
|
8909
9344
|
const keyType = this._def.keyType;
|
|
8910
9345
|
const valueType = this._def.valueType;
|
|
8911
|
-
for (const
|
|
9346
|
+
for (const key2 in ctx.data) {
|
|
8912
9347
|
pairs.push({
|
|
8913
|
-
key: keyType._parse(new ParseInputLazyPath(ctx,
|
|
8914
|
-
value: valueType._parse(new ParseInputLazyPath(ctx, ctx.data[
|
|
8915
|
-
alwaysSet:
|
|
9348
|
+
key: keyType._parse(new ParseInputLazyPath(ctx, key2, ctx.path, key2)),
|
|
9349
|
+
value: valueType._parse(new ParseInputLazyPath(ctx, ctx.data[key2], ctx.path, key2)),
|
|
9350
|
+
alwaysSet: key2 in ctx.data
|
|
8916
9351
|
});
|
|
8917
9352
|
}
|
|
8918
9353
|
if (ctx.common.async) {
|
|
@@ -8961,9 +9396,9 @@ class ZodMap extends ZodType {
|
|
|
8961
9396
|
}
|
|
8962
9397
|
const keyType = this._def.keyType;
|
|
8963
9398
|
const valueType = this._def.valueType;
|
|
8964
|
-
const pairs = [...ctx.data.entries()].map(([
|
|
9399
|
+
const pairs = [...ctx.data.entries()].map(([key2, value], index2) => {
|
|
8965
9400
|
return {
|
|
8966
|
-
key: keyType._parse(new ParseInputLazyPath(ctx,
|
|
9401
|
+
key: keyType._parse(new ParseInputLazyPath(ctx, key2, ctx.path, [index2, "key"])),
|
|
8967
9402
|
value: valueType._parse(new ParseInputLazyPath(ctx, value, ctx.path, [index2, "value"]))
|
|
8968
9403
|
};
|
|
8969
9404
|
});
|
|
@@ -8971,30 +9406,30 @@ class ZodMap extends ZodType {
|
|
|
8971
9406
|
const finalMap = new Map;
|
|
8972
9407
|
return Promise.resolve().then(async () => {
|
|
8973
9408
|
for (const pair of pairs) {
|
|
8974
|
-
const
|
|
9409
|
+
const key2 = await pair.key;
|
|
8975
9410
|
const value = await pair.value;
|
|
8976
|
-
if (
|
|
9411
|
+
if (key2.status === "aborted" || value.status === "aborted") {
|
|
8977
9412
|
return INVALID;
|
|
8978
9413
|
}
|
|
8979
|
-
if (
|
|
9414
|
+
if (key2.status === "dirty" || value.status === "dirty") {
|
|
8980
9415
|
status.dirty();
|
|
8981
9416
|
}
|
|
8982
|
-
finalMap.set(
|
|
9417
|
+
finalMap.set(key2.value, value.value);
|
|
8983
9418
|
}
|
|
8984
9419
|
return { status: status.value, value: finalMap };
|
|
8985
9420
|
});
|
|
8986
9421
|
} else {
|
|
8987
9422
|
const finalMap = new Map;
|
|
8988
9423
|
for (const pair of pairs) {
|
|
8989
|
-
const
|
|
9424
|
+
const key2 = pair.key;
|
|
8990
9425
|
const value = pair.value;
|
|
8991
|
-
if (
|
|
9426
|
+
if (key2.status === "aborted" || value.status === "aborted") {
|
|
8992
9427
|
return INVALID;
|
|
8993
9428
|
}
|
|
8994
|
-
if (
|
|
9429
|
+
if (key2.status === "dirty" || value.status === "dirty") {
|
|
8995
9430
|
status.dirty();
|
|
8996
9431
|
}
|
|
8997
|
-
finalMap.set(
|
|
9432
|
+
finalMap.set(key2.value, value.value);
|
|
8998
9433
|
}
|
|
8999
9434
|
return { status: status.value, value: finalMap };
|
|
9000
9435
|
}
|
|
@@ -9883,10 +10318,11 @@ var coerce = {
|
|
|
9883
10318
|
};
|
|
9884
10319
|
var NEVER = INVALID;
|
|
9885
10320
|
// src/lib/config/schemas/theme-schema.ts
|
|
9886
|
-
var
|
|
10321
|
+
var sizeDefinitionClampSchema = exports_external.object({
|
|
9887
10322
|
minRem: exports_external.number(),
|
|
9888
10323
|
maxRem: exports_external.number()
|
|
9889
10324
|
});
|
|
10325
|
+
var sizeDefinitionSchema = sizeDefinitionClampSchema.or(exports_external.string());
|
|
9890
10326
|
var colorSchema = exports_external.object({
|
|
9891
10327
|
0: exports_external.string().optional(),
|
|
9892
10328
|
50: exports_external.string(),
|
|
@@ -9916,7 +10352,7 @@ var componentSchema = exports_external.object({
|
|
|
9916
10352
|
focus: componentSchemaBase.optional()
|
|
9917
10353
|
}).and(componentSchemaBase);
|
|
9918
10354
|
var fontSchema = exports_external.object({
|
|
9919
|
-
family: exports_external.string()
|
|
10355
|
+
family: exports_external.string().optional()
|
|
9920
10356
|
});
|
|
9921
10357
|
var svgsSchema = exports_external.record(exports_external.enum([
|
|
9922
10358
|
"predefinedQuestion",
|
|
@@ -9949,17 +10385,35 @@ var svgsSchema = exports_external.record(exports_external.enum([
|
|
|
9949
10385
|
"avatar",
|
|
9950
10386
|
"openChat",
|
|
9951
10387
|
"speechInput",
|
|
10388
|
+
"listUnordered",
|
|
9952
10389
|
"lightMode",
|
|
9953
10390
|
"darkMode"
|
|
9954
10391
|
]), exports_external.string());
|
|
9955
10392
|
var tokensSchema = exports_external.object({
|
|
9956
|
-
font: fontSchema,
|
|
10393
|
+
font: fontSchema.optional(),
|
|
9957
10394
|
colors: exports_external.object({
|
|
9958
10395
|
brand: colorSchema,
|
|
9959
10396
|
accent: colorSchema.optional(),
|
|
9960
10397
|
highlight: colorSchema,
|
|
9961
10398
|
grey: colorSchema
|
|
9962
10399
|
}),
|
|
10400
|
+
base: exports_external.object({
|
|
10401
|
+
fontSizeXs: sizeDefinitionSchema.optional(),
|
|
10402
|
+
fontSizeSm: sizeDefinitionSchema.optional(),
|
|
10403
|
+
fontSizeBody: sizeDefinitionSchema.optional(),
|
|
10404
|
+
fontSizeH3: sizeDefinitionSchema.optional(),
|
|
10405
|
+
fontSizeH2: sizeDefinitionSchema.optional(),
|
|
10406
|
+
fontSizeH1: sizeDefinitionSchema.optional(),
|
|
10407
|
+
fontWeightNormal: exports_external.string().optional(),
|
|
10408
|
+
fontWeightBold: exports_external.string().optional(),
|
|
10409
|
+
fontWeightTitle: exports_external.string().optional(),
|
|
10410
|
+
lineHeightDefault: exports_external.string().optional(),
|
|
10411
|
+
lineHeightSnug: exports_external.string().optional(),
|
|
10412
|
+
lineHeightTight: exports_external.string().optional(),
|
|
10413
|
+
borderRadius: sizeDefinitionSchema.optional(),
|
|
10414
|
+
lineColor: exports_external.string().optional(),
|
|
10415
|
+
boxShadow: exports_external.string().optional()
|
|
10416
|
+
}),
|
|
9963
10417
|
components: exports_external.record(exports_external.string(), componentSchema),
|
|
9964
10418
|
svgs: svgsSchema
|
|
9965
10419
|
});
|
|
@@ -10032,9 +10486,17 @@ var themeSchema2 = objectType({
|
|
|
10032
10486
|
}).optional()
|
|
10033
10487
|
}).optional(),
|
|
10034
10488
|
font: objectType({
|
|
10035
|
-
size: sizeDefinitionSchema.optional(),
|
|
10036
10489
|
family: stringType().optional(),
|
|
10037
|
-
urls: arrayType(stringType()).optional()
|
|
10490
|
+
urls: arrayType(stringType()).optional(),
|
|
10491
|
+
sizeXs: sizeDefinitionSchema.optional(),
|
|
10492
|
+
sizeSm: sizeDefinitionSchema.optional(),
|
|
10493
|
+
sizeBody: sizeDefinitionSchema.optional(),
|
|
10494
|
+
sizeH3: sizeDefinitionSchema.optional(),
|
|
10495
|
+
sizeH2: sizeDefinitionSchema.optional(),
|
|
10496
|
+
sizeH1: sizeDefinitionSchema.optional(),
|
|
10497
|
+
weightNormal: stringType().optional(),
|
|
10498
|
+
weightBold: stringType().optional(),
|
|
10499
|
+
weightTitle: stringType().optional()
|
|
10038
10500
|
}).optional(),
|
|
10039
10501
|
borderRadius: sizeDefinitionSchema.optional(),
|
|
10040
10502
|
fineGrained: fineGrainedThemeSchema.optional()
|
|
@@ -10074,13 +10536,16 @@ var translationSchema = exports_external.object({
|
|
|
10074
10536
|
predefinedQuestions: exports_external.string(),
|
|
10075
10537
|
introductionTitle: exports_external.string(),
|
|
10076
10538
|
introductionDisclaimer: exports_external.string().optional(),
|
|
10077
|
-
referenceTitle: exports_external.string(),
|
|
10078
10539
|
chatInputPlaceholder: exports_external.string(),
|
|
10079
10540
|
chatInputPlaceholderListening: exports_external.string().optional(),
|
|
10080
10541
|
chatInputSubmit: exports_external.string(),
|
|
10081
10542
|
chatInputStartListening: exports_external.string(),
|
|
10082
10543
|
chatInputStopListening: exports_external.string(),
|
|
10083
10544
|
referenceLink: exports_external.string(),
|
|
10545
|
+
referencesDisplay: exports_external.string(),
|
|
10546
|
+
referencesHide: exports_external.string(),
|
|
10547
|
+
referencesTitle: exports_external.string(),
|
|
10548
|
+
referencesFurtherTitle: exports_external.string(),
|
|
10084
10549
|
newChat: exports_external.string(),
|
|
10085
10550
|
maintenanceModeError: exports_external.string(),
|
|
10086
10551
|
messageBotLoading: exports_external.string(),
|
|
@@ -10192,17 +10657,17 @@ class ServerStorage {
|
|
|
10192
10657
|
clear() {
|
|
10193
10658
|
storage.clear();
|
|
10194
10659
|
}
|
|
10195
|
-
getItem(
|
|
10196
|
-
return storage.get(
|
|
10660
|
+
getItem(key2) {
|
|
10661
|
+
return storage.get(key2) || null;
|
|
10197
10662
|
}
|
|
10198
10663
|
key(index2) {
|
|
10199
10664
|
return Array.from(storage.keys())[index2] || null;
|
|
10200
10665
|
}
|
|
10201
|
-
removeItem(
|
|
10202
|
-
storage.delete(
|
|
10666
|
+
removeItem(key2) {
|
|
10667
|
+
storage.delete(key2);
|
|
10203
10668
|
}
|
|
10204
|
-
setItem(
|
|
10205
|
-
storage.set(
|
|
10669
|
+
setItem(key2, value) {
|
|
10670
|
+
storage.set(key2, String(value));
|
|
10206
10671
|
}
|
|
10207
10672
|
}
|
|
10208
10673
|
var agnosticStorage = globalThis.localStorage ?? new ServerStorage;
|