@pie-element/mc-populated-blank 0.2.13-next.3 → 0.2.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/author/index.d.ts +1 -0
  2. package/dist/author/index.d.ts.map +1 -0
  3. package/dist/author/index.js +171 -292
  4. package/dist/author/index.js.map +1 -1
  5. package/dist/controller/defaults.d.ts +1 -0
  6. package/dist/controller/defaults.d.ts.map +1 -0
  7. package/dist/controller/index.d.ts +1 -0
  8. package/dist/controller/index.d.ts.map +1 -0
  9. package/dist/controller/index.js.map +1 -1
  10. package/dist/delivery/computeAudioMode.d.ts +1 -0
  11. package/dist/delivery/computeAudioMode.d.ts.map +1 -0
  12. package/dist/delivery/computeChoiceCorrectness.d.ts +1 -0
  13. package/dist/delivery/computeChoiceCorrectness.d.ts.map +1 -0
  14. package/dist/delivery/computeDisplayState.d.ts +1 -0
  15. package/dist/delivery/computeDisplayState.d.ts.map +1 -0
  16. package/dist/delivery/computeLayoutProfile.d.ts +1 -0
  17. package/dist/delivery/computeLayoutProfile.d.ts.map +1 -0
  18. package/dist/delivery/computeLayoutStyle.d.ts +1 -0
  19. package/dist/delivery/computeLayoutStyle.d.ts.map +1 -0
  20. package/dist/delivery/index.d.ts +1 -0
  21. package/dist/delivery/index.d.ts.map +1 -0
  22. package/dist/delivery/index.js +299 -418
  23. package/dist/delivery/index.js.map +1 -1
  24. package/dist/delivery/variant-css-map.d.ts +1 -0
  25. package/dist/delivery/variant-css-map.d.ts.map +1 -0
  26. package/dist/index.d.ts +1 -0
  27. package/dist/index.d.ts.map +1 -0
  28. package/dist/index.iife.d.ts +1 -0
  29. package/dist/index.iife.d.ts.map +1 -0
  30. package/dist/index.iife.js +97 -21
  31. package/dist/index.js +299 -418
  32. package/dist/index.js.map +1 -1
  33. package/dist/print/index.d.ts +1 -0
  34. package/dist/print/index.d.ts.map +1 -0
  35. package/dist/print/index.js +238 -363
  36. package/dist/print/index.js.map +1 -1
  37. package/dist/shared/layoutLimits.d.ts +1 -0
  38. package/dist/shared/layoutLimits.d.ts.map +1 -0
  39. package/dist/shared/types.d.ts +1 -0
  40. package/dist/shared/types.d.ts.map +1 -0
  41. package/package.json +5 -31
  42. package/configure.js +0 -2
  43. package/dist/browser/author/index.js +0 -50
  44. package/dist/browser/author/index.js.map +0 -1
  45. package/dist/browser/client-B0miu8E8.js +0 -2414
  46. package/dist/browser/client-B0miu8E8.js.map +0 -1
  47. package/dist/browser/controller/index.js +0 -221
  48. package/dist/browser/controller/index.js.map +0 -1
  49. package/dist/browser/delivery/index.js +0 -1234
  50. package/dist/browser/delivery/index.js.map +0 -1
  51. package/dist/browser/layoutLimits-ATKOwLHb.js +0 -42
  52. package/dist/browser/layoutLimits-ATKOwLHb.js.map +0 -1
  53. package/dist/browser/print/index.js +0 -125
  54. package/dist/browser/print/index.js.map +0 -1
  55. package/dist/runtime-support.d.ts +0 -12
  56. package/dist/runtime-support.js +0 -14
  57. package/dist/runtime-support.js.map +0 -1
@@ -1,14 +1,14 @@
1
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/disclose-version.js
1
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/disclose-version.js
2
2
  if (typeof window !== "undefined") {
3
3
  var _window$__svelte, _window;
4
4
  ((_window$__svelte = (_window = window).__svelte ?? (_window.__svelte = {})).v ?? (_window$__svelte.v = /* @__PURE__ */ new Set())).add("5");
5
5
  }
6
6
  //#endregion
7
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/constants.js
7
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/constants.js
8
8
  var HYDRATION_ERROR = {};
9
- var UNINITIALIZED = Symbol("uninitialized");
9
+ var UNINITIALIZED = Symbol();
10
10
  //#endregion
11
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/shared/utils.js
11
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/shared/utils.js
12
12
  var is_array = Array.isArray;
13
13
  var index_of = Array.prototype.indexOf;
14
14
  var includes = Array.prototype.includes;
@@ -44,7 +44,7 @@ function deferred() {
44
44
  };
45
45
  }
46
46
  //#endregion
47
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/typeof.js
47
+ //#region \0@oxc-project+runtime@0.129.0/helpers/typeof.js
48
48
  function _typeof(o) {
49
49
  "@babel/helpers - typeof";
50
50
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -54,7 +54,7 @@ function _typeof(o) {
54
54
  }, _typeof(o);
55
55
  }
56
56
  //#endregion
57
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPrimitive.js
57
+ //#region \0@oxc-project+runtime@0.129.0/helpers/toPrimitive.js
58
58
  function toPrimitive(t, r) {
59
59
  if ("object" != _typeof(t) || !t) return t;
60
60
  var e = t[Symbol.toPrimitive];
@@ -66,13 +66,13 @@ function toPrimitive(t, r) {
66
66
  return ("string" === r ? String : Number)(t);
67
67
  }
68
68
  //#endregion
69
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPropertyKey.js
69
+ //#region \0@oxc-project+runtime@0.129.0/helpers/toPropertyKey.js
70
70
  function toPropertyKey(t) {
71
71
  var i = toPrimitive(t, "string");
72
72
  return "symbol" == _typeof(i) ? i : i + "";
73
73
  }
74
74
  //#endregion
75
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/defineProperty.js
75
+ //#region \0@oxc-project+runtime@0.129.0/helpers/defineProperty.js
76
76
  function _defineProperty(e, r, t) {
77
77
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
78
78
  value: t,
@@ -108,10 +108,6 @@ var REACTION_IS_UPDATING = 1 << 21;
108
108
  var ERROR_VALUE = 1 << 23;
109
109
  var STATE_SYMBOL = Symbol("$state");
110
110
  var LEGACY_PROPS = Symbol("legacy props");
111
- var ATTRIBUTES_CACHE = Symbol("attributes");
112
- var CLASS_CACHE = Symbol("class");
113
- var STYLE_CACHE = Symbol("style");
114
- var TEXT_CACHE = Symbol("text");
115
111
  /** allow users to ignore aborted signal errors if `reason.name === 'StaleReactionError` */
116
112
  var STALE_REACTION = new class StaleReactionError extends Error {
117
113
  constructor(..._args) {
@@ -191,7 +187,7 @@ function svelte_boundary_reset_noop() {
191
187
  console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`);
192
188
  }
193
189
  //#endregion
194
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/dom/hydration.js
190
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/dom/hydration.js
195
191
  /** @import { TemplateNode } from '#client' */
196
192
  /**
197
193
  * Use this variable to guard everything related to hydration code so it can be treeshaken out
@@ -250,7 +246,7 @@ function skip_nodes(remove = true) {
250
246
  }
251
247
  }
252
248
  //#endregion
253
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/reactivity/equality.js
249
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/reactivity/equality.js
254
250
  /** @import { Equals } from '#client' */
255
251
  /** @type {Equals} */
256
252
  function equals(value) {
@@ -269,13 +265,13 @@ function safe_equals(value) {
269
265
  return !safe_not_equal(value, this.v);
270
266
  }
271
267
  //#endregion
272
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/flags/index.js
268
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/flags/index.js
273
269
  /** True if experimental.async=true */
274
270
  var async_mode_flag = false;
275
271
  /** True if we're not certain that we only have Svelte 5 code in the compilation */
276
272
  var legacy_mode_flag = false;
277
273
  //#endregion
278
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/context.js
274
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/context.js
279
275
  /** @import { ComponentContext, DevStackEntry, Effect } from '#client' */
280
276
  /** @type {ComponentContext | null} */
281
277
  var component_context = null;
@@ -327,7 +323,7 @@ function is_runes() {
327
323
  return !legacy_mode_flag || component_context !== null && component_context.l === null;
328
324
  }
329
325
  //#endregion
330
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/dom/task.js
326
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/dom/task.js
331
327
  /** @type {Array<() => void>} */
332
328
  var micro_tasks = [];
333
329
  function run_micro_tasks() {
@@ -385,7 +381,7 @@ function invoke_error_boundary(error, effect) {
385
381
  throw error;
386
382
  }
387
383
  //#endregion
388
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/reactivity/status.js
384
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/reactivity/status.js
389
385
  /** @import { Derived, Signal } from '#client' */
390
386
  var STATUS_MASK = ~(DIRTY | MAYBE_DIRTY | CLEAN);
391
387
  /**
@@ -404,7 +400,7 @@ function update_derived_status(derived) {
404
400
  else set_signal_status(derived, MAYBE_DIRTY);
405
401
  }
406
402
  //#endregion
407
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/reactivity/utils.js
403
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/reactivity/utils.js
408
404
  /** @import { Derived, Effect, Value } from '#client' */
409
405
  /**
410
406
  * @param {Value[] | null} deps
@@ -432,7 +428,7 @@ function defer_effect(effect, dirty_effects, maybe_dirty_effects) {
432
428
  set_signal_status(effect, CLEAN);
433
429
  }
434
430
  //#endregion
435
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/reactivity/store.js
431
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/reactivity/store.js
436
432
  /**
437
433
  * We set this to `true` when updating a store so that we correctly
438
434
  * schedule effects if the update takes place inside a `$:` effect
@@ -462,53 +458,46 @@ function capture_store_binding(fn) {
462
458
  }
463
459
  }
464
460
  //#endregion
465
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/checkPrivateRedeclaration.js
461
+ //#region \0@oxc-project+runtime@0.129.0/helpers/checkPrivateRedeclaration.js
466
462
  function _checkPrivateRedeclaration(e, t) {
467
463
  if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
468
464
  }
469
465
  //#endregion
470
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/classPrivateMethodInitSpec.js
466
+ //#region \0@oxc-project+runtime@0.129.0/helpers/classPrivateMethodInitSpec.js
471
467
  function _classPrivateMethodInitSpec(e, a) {
472
468
  _checkPrivateRedeclaration(e, a), a.add(e);
473
469
  }
474
470
  //#endregion
475
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/classPrivateFieldInitSpec.js
471
+ //#region \0@oxc-project+runtime@0.129.0/helpers/classPrivateFieldInitSpec.js
476
472
  function _classPrivateFieldInitSpec(e, t, a) {
477
473
  _checkPrivateRedeclaration(e, t), t.set(e, a);
478
474
  }
479
475
  //#endregion
480
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/assertClassBrand.js
476
+ //#region \0@oxc-project+runtime@0.129.0/helpers/assertClassBrand.js
481
477
  function _assertClassBrand(e, t, n) {
482
478
  if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
483
479
  throw new TypeError("Private element is not present on this object");
484
480
  }
485
481
  //#endregion
486
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/classPrivateFieldSet2.js
487
- function _classPrivateFieldSet2(s, a, r) {
488
- return s.set(_assertClassBrand(s, a), r), r;
489
- }
490
- //#endregion
491
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/classPrivateFieldGet2.js
482
+ //#region \0@oxc-project+runtime@0.129.0/helpers/classPrivateFieldGet2.js
492
483
  function _classPrivateFieldGet2(s, a) {
493
484
  return s.get(_assertClassBrand(s, a));
494
485
  }
495
486
  //#endregion
496
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/reactivity/batch.js
487
+ //#region \0@oxc-project+runtime@0.129.0/helpers/classPrivateFieldSet2.js
488
+ function _classPrivateFieldSet2(s, a, r) {
489
+ return s.set(_assertClassBrand(s, a), r), r;
490
+ }
491
+ //#endregion
492
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/reactivity/batch.js
497
493
  /** @import { Fork } from 'svelte' */
498
494
  /** @import { Derived, Effect, Reaction, Source, Value } from '#client' */
499
495
  var _Batch;
500
- /** @type {Batch | null} */
501
- var first_batch = null;
502
- /** @type {Batch | null} */
503
- var last_batch = null;
496
+ /** @type {Set<Batch>} */
497
+ var batches = /* @__PURE__ */ new Set();
504
498
  /** @type {Batch | null} */
505
499
  var current_batch = null;
506
500
  /**
507
- * This is needed to avoid overwriting inputs
508
- * @type {Batch | null}
509
- */
510
- var previous_batch = null;
511
- /**
512
501
  * When time travelling (i.e. working in one batch, while other batches
513
502
  * still have ongoing work), we ignore the real values of affected
514
503
  * signals in favour of their values within the batch
@@ -536,11 +525,9 @@ var collected_effects = null;
536
525
  var legacy_updates = null;
537
526
  var flush_count = 0;
538
527
  var uid = 1;
539
- var _started = /* @__PURE__ */ new WeakMap();
540
- var _prev = /* @__PURE__ */ new WeakMap();
541
- var _next = /* @__PURE__ */ new WeakMap();
542
528
  var _commit_callbacks = /* @__PURE__ */ new WeakMap();
543
529
  var _discard_callbacks = /* @__PURE__ */ new WeakMap();
530
+ var _fork_commit_callbacks = /* @__PURE__ */ new WeakMap();
544
531
  var _pending = /* @__PURE__ */ new WeakMap();
545
532
  var _blocking_pending = /* @__PURE__ */ new WeakMap();
546
533
  var _deferred = /* @__PURE__ */ new WeakMap();
@@ -551,21 +538,12 @@ var _maybe_dirty_effects$1 = /* @__PURE__ */ new WeakMap();
551
538
  var _skipped_branches = /* @__PURE__ */ new WeakMap();
552
539
  var _unskipped_branches = /* @__PURE__ */ new WeakMap();
553
540
  var _decrement_queued = /* @__PURE__ */ new WeakMap();
541
+ var _blockers = /* @__PURE__ */ new WeakMap();
554
542
  var _Batch_brand = /* @__PURE__ */ new WeakSet();
555
543
  var Batch = class Batch {
556
544
  constructor() {
557
545
  _classPrivateMethodInitSpec(this, _Batch_brand);
558
546
  _defineProperty(this, "id", uid++);
559
- _classPrivateFieldInitSpec(this, _started, false);
560
- _defineProperty(this, "linked", true);
561
- _classPrivateFieldInitSpec(this, _prev, null);
562
- _classPrivateFieldInitSpec(this, _next, null);
563
- _defineProperty(
564
- this,
565
- /** @type {Map<Effect, ReturnType<typeof deferred<any>>>} */
566
- "async_deriveds",
567
- /* @__PURE__ */ new Map()
568
- );
569
547
  _defineProperty(
570
548
  this,
571
549
  /**
@@ -589,7 +567,8 @@ var Batch = class Batch {
589
567
  );
590
568
  _classPrivateFieldInitSpec(this, _commit_callbacks, /* @__PURE__ */ new Set());
591
569
  _classPrivateFieldInitSpec(this, _discard_callbacks, /* @__PURE__ */ new Set());
592
- _classPrivateFieldInitSpec(this, _pending, 0);
570
+ _classPrivateFieldInitSpec(this, _fork_commit_callbacks, /* @__PURE__ */ new Set());
571
+ _classPrivateFieldInitSpec(this, _pending, /* @__PURE__ */ new Map());
593
572
  _classPrivateFieldInitSpec(this, _blocking_pending, /* @__PURE__ */ new Map());
594
573
  _classPrivateFieldInitSpec(this, _deferred, null);
595
574
  _classPrivateFieldInitSpec(this, _roots, []);
@@ -600,12 +579,7 @@ var Batch = class Batch {
600
579
  _classPrivateFieldInitSpec(this, _unskipped_branches, /* @__PURE__ */ new Set());
601
580
  _defineProperty(this, "is_fork", false);
602
581
  _classPrivateFieldInitSpec(this, _decrement_queued, false);
603
- if (last_batch === null) first_batch = last_batch = this;
604
- else {
605
- _classPrivateFieldSet2(_next, last_batch, this);
606
- _classPrivateFieldSet2(_prev, this, last_batch);
607
- }
608
- last_batch = this;
582
+ _classPrivateFieldInitSpec(this, _blockers, /* @__PURE__ */ new Set());
609
583
  }
610
584
  /**
611
585
  * Add an effect to the #skipped_branches map and reset its children
@@ -680,8 +654,8 @@ var Batch = class Batch {
680
654
  discard() {
681
655
  for (const fn of _classPrivateFieldGet2(_discard_callbacks, this)) fn(this);
682
656
  _classPrivateFieldGet2(_discard_callbacks, this).clear();
683
- _assertClassBrand(_Batch_brand, this, _unlink).call(this);
684
- _classPrivateFieldGet2(_deferred, this)?.resolve();
657
+ _classPrivateFieldGet2(_fork_commit_callbacks, this).clear();
658
+ batches.delete(this);
685
659
  }
686
660
  /**
687
661
  * @param {Effect} effect
@@ -694,7 +668,8 @@ var Batch = class Batch {
694
668
  * @param {Effect} effect
695
669
  */
696
670
  increment(blocking, effect) {
697
- _classPrivateFieldSet2(_pending, this, _classPrivateFieldGet2(_pending, this) + 1);
671
+ let pending_count = _classPrivateFieldGet2(_pending, this).get(effect) ?? 0;
672
+ _classPrivateFieldGet2(_pending, this).set(effect, pending_count + 1);
698
673
  if (blocking) {
699
674
  let blocking_pending_count = _classPrivateFieldGet2(_blocking_pending, this).get(effect) ?? 0;
700
675
  _classPrivateFieldGet2(_blocking_pending, this).set(effect, blocking_pending_count + 1);
@@ -703,19 +678,22 @@ var Batch = class Batch {
703
678
  /**
704
679
  * @param {boolean} blocking
705
680
  * @param {Effect} effect
681
+ * @param {boolean} skip - whether to skip updates (because this is triggered by a stale reaction)
706
682
  */
707
- decrement(blocking, effect) {
708
- _classPrivateFieldSet2(_pending, this, _classPrivateFieldGet2(_pending, this) - 1);
683
+ decrement(blocking, effect, skip) {
684
+ let pending_count = _classPrivateFieldGet2(_pending, this).get(effect) ?? 0;
685
+ if (pending_count === 1) _classPrivateFieldGet2(_pending, this).delete(effect);
686
+ else _classPrivateFieldGet2(_pending, this).set(effect, pending_count - 1);
709
687
  if (blocking) {
710
688
  let blocking_pending_count = _classPrivateFieldGet2(_blocking_pending, this).get(effect) ?? 0;
711
689
  if (blocking_pending_count === 1) _classPrivateFieldGet2(_blocking_pending, this).delete(effect);
712
690
  else _classPrivateFieldGet2(_blocking_pending, this).set(effect, blocking_pending_count - 1);
713
691
  }
714
- if (_classPrivateFieldGet2(_decrement_queued, this)) return;
692
+ if (_classPrivateFieldGet2(_decrement_queued, this) || skip) return;
715
693
  _classPrivateFieldSet2(_decrement_queued, this, true);
716
694
  queue_micro_task(() => {
717
695
  _classPrivateFieldSet2(_decrement_queued, this, false);
718
- if (this.linked) this.flush();
696
+ this.flush();
719
697
  });
720
698
  }
721
699
  /**
@@ -736,38 +714,48 @@ var Batch = class Batch {
736
714
  ondiscard(fn) {
737
715
  _classPrivateFieldGet2(_discard_callbacks, this).add(fn);
738
716
  }
717
+ /** @param {(batch: Batch) => void} fn */
718
+ on_fork_commit(fn) {
719
+ _classPrivateFieldGet2(_fork_commit_callbacks, this).add(fn);
720
+ }
721
+ run_fork_commit_callbacks() {
722
+ for (const fn of _classPrivateFieldGet2(_fork_commit_callbacks, this)) fn(this);
723
+ _classPrivateFieldGet2(_fork_commit_callbacks, this).clear();
724
+ }
739
725
  settled() {
740
726
  return (_classPrivateFieldGet2(_deferred, this) ?? _classPrivateFieldSet2(_deferred, this, deferred())).promise;
741
727
  }
742
728
  static ensure() {
743
729
  if (current_batch === null) {
744
730
  const batch = current_batch = new Batch();
745
- if (!is_processing && !is_flushing_sync) queue_micro_task(() => {
746
- if (!_classPrivateFieldGet2(_started, batch)) batch.flush();
747
- });
731
+ if (!is_processing) {
732
+ batches.add(current_batch);
733
+ if (!is_flushing_sync) queue_micro_task(() => {
734
+ if (current_batch !== batch) return;
735
+ batch.flush();
736
+ });
737
+ }
748
738
  }
749
739
  return current_batch;
750
740
  }
751
741
  apply() {
752
- if (!async_mode_flag || !this.is_fork && _classPrivateFieldGet2(_prev, this) === null && _classPrivateFieldGet2(_next, this) === null) {
742
+ if (!async_mode_flag || !this.is_fork && batches.size === 1) {
753
743
  batch_values = null;
754
744
  return;
755
745
  }
756
746
  batch_values = /* @__PURE__ */ new Map();
757
747
  for (const [source, [value]] of this.current) batch_values.set(source, value);
758
- for (let batch = first_batch; batch !== null; batch = _classPrivateFieldGet2(_next, batch)) {
748
+ for (const batch of batches) {
759
749
  if (batch === this || batch.is_fork) continue;
760
750
  var intersects = false;
751
+ var differs = false;
761
752
  if (batch.id < this.id) for (const [source, [, is_derived]] of batch.current) {
762
753
  if (is_derived) continue;
763
- if (this.current.has(source)) {
764
- intersects = true;
765
- break;
766
- }
767
- }
768
- if (!intersects) {
769
- for (const [source, previous] of batch.previous) if (!batch_values.has(source)) batch_values.set(source, previous);
754
+ intersects || (intersects = this.current.has(source));
755
+ differs || (differs = !this.current.has(source));
770
756
  }
757
+ if (intersects && differs) _classPrivateFieldGet2(_blockers, this).add(batch);
758
+ else for (const [source, previous] of batch.previous) if (!batch_values.has(source)) batch_values.set(source, previous);
771
759
  }
772
760
  }
773
761
  /**
@@ -798,10 +786,12 @@ var Batch = class Batch {
798
786
  };
799
787
  _Batch = Batch;
800
788
  function _is_deferred() {
801
- if (this.is_fork) return true;
802
- for (const effect of _classPrivateFieldGet2(_blocking_pending, this).keys()) {
803
- var e = effect;
789
+ return this.is_fork || _classPrivateFieldGet2(_blocking_pending, this).size > 0;
790
+ }
791
+ function _is_blocked() {
792
+ for (const batch of _classPrivateFieldGet2(_blockers, this)) for (const effect of _classPrivateFieldGet2(_blocking_pending, batch).keys()) {
804
793
  var skipped = false;
794
+ var e = effect;
805
795
  while (e.parent !== null) {
806
796
  if (_classPrivateFieldGet2(_skipped_branches, this).has(e)) {
807
797
  skipped = true;
@@ -814,19 +804,20 @@ function _is_deferred() {
814
804
  return false;
815
805
  }
816
806
  function _process() {
817
- _classPrivateFieldSet2(_started, this, true);
818
807
  if (flush_count++ > 1e3) {
819
- _assertClassBrand(_Batch_brand, this, _unlink).call(this);
808
+ batches.delete(this);
820
809
  infinite_loop_guard();
821
810
  }
822
- for (const e of _classPrivateFieldGet2(_dirty_effects$1, this)) {
823
- _classPrivateFieldGet2(_maybe_dirty_effects$1, this).delete(e);
824
- set_signal_status(e, DIRTY);
825
- this.schedule(e);
826
- }
827
- for (const e of _classPrivateFieldGet2(_maybe_dirty_effects$1, this)) {
828
- set_signal_status(e, MAYBE_DIRTY);
829
- this.schedule(e);
811
+ if (!_assertClassBrand(_Batch_brand, this, _is_deferred).call(this)) {
812
+ for (const e of _classPrivateFieldGet2(_dirty_effects$1, this)) {
813
+ _classPrivateFieldGet2(_maybe_dirty_effects$1, this).delete(e);
814
+ set_signal_status(e, DIRTY);
815
+ this.schedule(e);
816
+ }
817
+ for (const e of _classPrivateFieldGet2(_maybe_dirty_effects$1, this)) {
818
+ set_signal_status(e, MAYBE_DIRTY);
819
+ this.schedule(e);
820
+ }
830
821
  }
831
822
  const roots = _classPrivateFieldGet2(_roots, this);
832
823
  _classPrivateFieldSet2(_roots, this, []);
@@ -844,7 +835,6 @@ function _process() {
844
835
  _assertClassBrand(_Batch_brand, this, _traverse).call(this, root, effects, render_effects);
845
836
  } catch (e) {
846
837
  reset_all(root);
847
- if (!_assertClassBrand(_Batch_brand, this, _is_deferred).call(this)) this.discard();
848
838
  throw e;
849
839
  }
850
840
  current_batch = null;
@@ -854,43 +844,30 @@ function _process() {
854
844
  }
855
845
  collected_effects = null;
856
846
  legacy_updates = null;
857
- if (_assertClassBrand(_Batch_brand, this, _is_deferred).call(this)) {
847
+ if (_assertClassBrand(_Batch_brand, this, _is_deferred).call(this) || _assertClassBrand(_Batch_brand, this, _is_blocked).call(this)) {
858
848
  _assertClassBrand(_Batch_brand, this, _defer_effects).call(this, render_effects);
859
849
  _assertClassBrand(_Batch_brand, this, _defer_effects).call(this, effects);
860
850
  for (const [e, t] of _classPrivateFieldGet2(_skipped_branches, this)) reset_branch(e, t);
861
- if (updates.length > 0)
862
- /** @type {Batch} */ _assertClassBrand(_Batch_brand, current_batch, _process).call(current_batch);
863
- return;
864
- }
865
- const earlier_batch = _assertClassBrand(_Batch_brand, this, _find_earlier_batch).call(this);
866
- if (earlier_batch) {
867
- _assertClassBrand(_Batch_brand, this, _defer_effects).call(this, render_effects);
868
- _assertClassBrand(_Batch_brand, this, _defer_effects).call(this, effects);
869
- _assertClassBrand(_Batch_brand, earlier_batch, _merge).call(earlier_batch, this);
870
- return;
851
+ } else {
852
+ if (_classPrivateFieldGet2(_pending, this).size === 0) batches.delete(this);
853
+ _classPrivateFieldGet2(_dirty_effects$1, this).clear();
854
+ _classPrivateFieldGet2(_maybe_dirty_effects$1, this).clear();
855
+ for (const fn of _classPrivateFieldGet2(_commit_callbacks, this)) fn(this);
856
+ _classPrivateFieldGet2(_commit_callbacks, this).clear();
857
+ flush_queued_effects(render_effects);
858
+ flush_queued_effects(effects);
859
+ _classPrivateFieldGet2(_deferred, this)?.resolve();
871
860
  }
872
- _classPrivateFieldGet2(_dirty_effects$1, this).clear();
873
- _classPrivateFieldGet2(_maybe_dirty_effects$1, this).clear();
874
- for (const fn of _classPrivateFieldGet2(_commit_callbacks, this)) fn(this);
875
- _classPrivateFieldGet2(_commit_callbacks, this).clear();
876
- previous_batch = this;
877
- flush_queued_effects(render_effects);
878
- flush_queued_effects(effects);
879
- previous_batch = null;
880
- _classPrivateFieldGet2(_deferred, this)?.resolve();
881
861
  var next_batch = current_batch;
882
- if (_classPrivateFieldGet2(_pending, this) === 0 && (_classPrivateFieldGet2(_roots, this).length === 0 || next_batch !== null)) {
883
- _assertClassBrand(_Batch_brand, this, _unlink).call(this);
884
- if (async_mode_flag) {
885
- _assertClassBrand(_Batch_brand, this, _commit).call(this);
886
- current_batch = next_batch;
887
- }
888
- }
889
- if (_classPrivateFieldGet2(_roots, this).length > 0) if (next_batch !== null) {
890
- const batch = next_batch;
862
+ if (_classPrivateFieldGet2(_roots, this).length > 0) {
863
+ const batch = next_batch ?? (next_batch = this);
891
864
  _classPrivateFieldGet2(_roots, batch).push(..._classPrivateFieldGet2(_roots, this).filter((r) => !_classPrivateFieldGet2(_roots, batch).includes(r)));
892
- } else next_batch = this;
893
- if (next_batch !== null) _assertClassBrand(_Batch_brand, next_batch, _process).call(next_batch);
865
+ }
866
+ if (next_batch !== null) {
867
+ batches.add(next_batch);
868
+ _assertClassBrand(_Batch_brand, next_batch, _process).call(next_batch);
869
+ }
870
+ if (async_mode_flag && !batches.has(this)) _assertClassBrand(_Batch_brand, this, _commit).call(this);
894
871
  }
895
872
  /**
896
873
  * Traverse the effect tree, executing effects or stashing
@@ -929,59 +906,6 @@ function _traverse(root, effects, render_effects) {
929
906
  }
930
907
  }
931
908
  }
932
- function _find_earlier_batch() {
933
- var batch = _classPrivateFieldGet2(_prev, this);
934
- while (batch !== null) {
935
- if (!batch.is_fork) {
936
- for (const [value, [, is_derived]] of this.current) if (batch.current.has(value) && !is_derived) return batch;
937
- }
938
- batch = _classPrivateFieldGet2(_prev, batch);
939
- }
940
- return null;
941
- }
942
- /**
943
- * @param {Batch} batch
944
- */
945
- function _merge(batch) {
946
- for (const [source, value] of batch.current) {
947
- if (!this.previous.has(source) && batch.previous.has(source)) this.previous.set(source, batch.previous.get(source));
948
- this.current.set(source, value);
949
- }
950
- for (const [effect, deferred] of batch.async_deriveds) {
951
- const d = this.async_deriveds.get(effect);
952
- if (d) deferred.promise.then(d.resolve).catch(d.reject);
953
- }
954
- this.transfer_effects(_classPrivateFieldGet2(_dirty_effects$1, batch), _classPrivateFieldGet2(_maybe_dirty_effects$1, batch));
955
- /**
956
- * mark all effects that depend on `batch.current`, except the
957
- * async effects that we just resolved (TODO unless they depend
958
- * on values in this batch that are NOT in the later batch?).
959
- * Through this we also will populate the correct #skipped_branches,
960
- * oncommit callbacks etc, so we don't need to merge them separately.
961
- * @param {Value} value
962
- */
963
- const mark = (value) => {
964
- var reactions = value.reactions;
965
- if (reactions === null) return;
966
- for (const reaction of reactions) {
967
- var flags = reaction.f;
968
- if ((flags & 2) !== 0) mark(reaction);
969
- else {
970
- var effect = reaction;
971
- if (flags & 4194320 && !this.async_deriveds.has(effect)) {
972
- _classPrivateFieldGet2(_maybe_dirty_effects$1, this).delete(effect);
973
- set_signal_status(effect, DIRTY);
974
- this.schedule(effect);
975
- }
976
- }
977
- }
978
- };
979
- for (const source of this.current.keys()) mark(source);
980
- this.oncommit(() => batch.discard());
981
- _assertClassBrand(_Batch_brand, batch, _unlink).call(batch);
982
- current_batch = this;
983
- _assertClassBrand(_Batch_brand, this, _process).call(this);
984
- }
985
909
  /**
986
910
  * @param {Effect[]} effects
987
911
  */
@@ -989,7 +913,7 @@ function _defer_effects(effects) {
989
913
  for (var i = 0; i < effects.length; i += 1) defer_effect(effects[i], _classPrivateFieldGet2(_dirty_effects$1, this), _classPrivateFieldGet2(_maybe_dirty_effects$1, this));
990
914
  }
991
915
  function _commit() {
992
- for (let batch = first_batch; batch !== null; batch = _classPrivateFieldGet2(_next, batch)) {
916
+ for (const batch of batches) {
993
917
  var is_earlier = batch.id < this.id;
994
918
  /** @type {Source[]} */
995
919
  var sources = [];
@@ -1001,12 +925,7 @@ function _commit() {
1001
925
  }
1002
926
  sources.push(source);
1003
927
  }
1004
- if (is_earlier) for (const [effect, deferred] of this.async_deriveds) {
1005
- const d = batch.async_deriveds.get(effect);
1006
- if (d) deferred.promise.then(d.resolve).catch(d.reject);
1007
- }
1008
- if (!_classPrivateFieldGet2(_started, batch)) continue;
1009
- var others = [...batch.current.keys()].filter((s) => !batch.current.get(s)[1] && !this.current.has(s));
928
+ var others = [...batch.current.keys()].filter((s) => !this.current.has(s));
1010
929
  if (others.length === 0) {
1011
930
  if (is_earlier) batch.discard();
1012
931
  } else if (sources.length > 0) {
@@ -1021,18 +940,12 @@ function _commit() {
1021
940
  var checked = /* @__PURE__ */ new Map();
1022
941
  for (var source of sources) mark_effects(source, others, marked, checked);
1023
942
  checked = /* @__PURE__ */ new Map();
1024
- var current_unequal = [...batch.current].filter(([c, v1]) => {
1025
- const v2 = this.current.get(c);
1026
- if (!v2) return true;
1027
- return v2[0] !== v1[0] || v2[1] !== v1[1];
1028
- }).map(([c]) => c);
1029
- if (current_unequal.length > 0) {
1030
- for (const effect of _classPrivateFieldGet2(_new_effects, this)) if ((effect.f & 155648) === 0 && depends_on(effect, current_unequal, checked)) if ((effect.f & 4194320) !== 0) {
1031
- set_signal_status(effect, DIRTY);
1032
- batch.schedule(effect);
1033
- } else _classPrivateFieldGet2(_dirty_effects$1, batch).add(effect);
1034
- }
1035
- if (_classPrivateFieldGet2(_roots, batch).length > 0 && !_classPrivateFieldGet2(_decrement_queued, batch)) {
943
+ var current_unequal = [...batch.current.keys()].filter((c) => this.current.has(c) ? this.current.get(c)[0] !== c : true);
944
+ for (const effect of _classPrivateFieldGet2(_new_effects, this)) if ((effect.f & 155648) === 0 && depends_on(effect, current_unequal, checked)) if ((effect.f & 4194320) !== 0) {
945
+ set_signal_status(effect, DIRTY);
946
+ batch.schedule(effect);
947
+ } else _classPrivateFieldGet2(_dirty_effects$1, batch).add(effect);
948
+ if (_classPrivateFieldGet2(_roots, batch).length > 0) {
1036
949
  batch.apply();
1037
950
  for (var root of _classPrivateFieldGet2(_roots, batch)) _assertClassBrand(_Batch_brand, batch, _traverse).call(batch, root, [], []);
1038
951
  _classPrivateFieldSet2(_roots, batch, []);
@@ -1040,16 +953,13 @@ function _commit() {
1040
953
  batch.deactivate();
1041
954
  }
1042
955
  }
1043
- }
1044
- function _unlink() {
1045
- if (!this.linked) return;
1046
- var prev = _classPrivateFieldGet2(_prev, this);
1047
- var next = _classPrivateFieldGet2(_next, this);
1048
- if (prev === null) first_batch = next;
1049
- else _classPrivateFieldSet2(_next, prev, next);
1050
- if (next === null) last_batch = prev;
1051
- else _classPrivateFieldSet2(_prev, next, prev);
1052
- this.linked = false;
956
+ for (const batch of batches) if (_classPrivateFieldGet2(_blockers, batch).has(this)) {
957
+ _classPrivateFieldGet2(_blockers, batch).delete(this);
958
+ if (_classPrivateFieldGet2(_blockers, batch).size === 0 && !_assertClassBrand(_Batch_brand, batch, _is_deferred).call(batch)) {
959
+ batch.activate();
960
+ _assertClassBrand(_Batch_brand, batch, _process).call(batch);
961
+ }
962
+ }
1053
963
  }
1054
964
  /**
1055
965
  * Synchronously flush any pending updates.
@@ -1202,7 +1112,7 @@ function reset_all(effect) {
1202
1112
  }
1203
1113
  }
1204
1114
  //#endregion
1205
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/reactivity/create-subscriber.js
1115
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/reactivity/create-subscriber.js
1206
1116
  /**
1207
1117
  * Returns a `subscribe` function that integrates external event-based systems with Svelte's reactivity.
1208
1118
  * It's particularly useful for integrating with web APIs like `MediaQuery`, `IntersectionObserver`, or `WebSocket`.
@@ -1275,13 +1185,13 @@ function createSubscriber(start) {
1275
1185
  };
1276
1186
  }
1277
1187
  //#endregion
1278
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
1188
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
1279
1189
  /** @import { Effect, Source, TemplateNode, } from '#client' */
1280
1190
  /**
1281
1191
  * @typedef {{
1282
- * onerror?: ((error: unknown, reset: () => void) => void) | null;
1283
- * failed?: ((anchor: Node, error: () => unknown, reset: () => () => void) => void) | null;
1284
- * pending?: ((anchor: Node) => void) | null;
1192
+ * onerror?: (error: unknown, reset: () => void) => void;
1193
+ * failed?: (anchor: Node, error: () => unknown, reset: () => () => void) => void;
1194
+ * pending?: (anchor: Node) => void;
1285
1195
  * }} BoundaryProps
1286
1196
  */
1287
1197
  var flags = EFFECT_TRANSPARENT | EFFECT_PRESERVED;
@@ -1428,7 +1338,7 @@ var Boundary = class {
1428
1338
  if (_classPrivateFieldGet2(_main_effect, this)) current_batch.skip_effect(_classPrivateFieldGet2(_main_effect, this));
1429
1339
  if (_classPrivateFieldGet2(_pending_effect, this)) current_batch.skip_effect(_classPrivateFieldGet2(_pending_effect, this));
1430
1340
  if (_classPrivateFieldGet2(_failed_effect, this)) current_batch.skip_effect(_classPrivateFieldGet2(_failed_effect, this));
1431
- current_batch.oncommit(() => {
1341
+ current_batch.on_fork_commit(() => {
1432
1342
  _assertClassBrand(_Boundary_brand, this, _handle_error).call(this, error);
1433
1343
  });
1434
1344
  } else _assertClassBrand(_Boundary_brand, this, _handle_error).call(this, error);
@@ -1632,7 +1542,7 @@ function _handle_error(error) {
1632
1542
  * @param {() => V} fn
1633
1543
  * @returns {Derived<V>}
1634
1544
  */
1635
- /*#__NO_SIDE_EFFECTS__*/
1545
+ /* @__NO_SIDE_EFFECTS__ */
1636
1546
  function derived(fn) {
1637
1547
  var flags = 2 | DIRTY;
1638
1548
  if (active_effect !== null) active_effect.f |= EFFECT_PRESERVED;
@@ -1656,7 +1566,7 @@ function derived(fn) {
1656
1566
  * @param {() => V} fn
1657
1567
  * @returns {Derived<V>}
1658
1568
  */
1659
- /*#__NO_SIDE_EFFECTS__*/
1569
+ /* @__NO_SIDE_EFFECTS__ */
1660
1570
  function derived_safe_equal(fn) {
1661
1571
  const signal = /* @__PURE__ */ derived(fn);
1662
1572
  signal.equals = safe_equals;
@@ -1682,7 +1592,7 @@ function execute_derived(derived) {
1682
1592
  var value;
1683
1593
  var prev_active_effect = active_effect;
1684
1594
  var parent = derived.parent;
1685
- if (!is_destroying_effect && parent !== null && derived.v !== UNINITIALIZED && (parent.f & 24576) !== 0) {
1595
+ if (!is_destroying_effect && parent !== null && (parent.f & 24576) !== 0) {
1686
1596
  derived_inert();
1687
1597
  return derived.v;
1688
1598
  }
@@ -1705,10 +1615,8 @@ function update_derived(derived) {
1705
1615
  if (!derived.equals(value)) {
1706
1616
  derived.wv = increment_write_version();
1707
1617
  if (!current_batch?.is_fork || derived.deps === null) {
1708
- if (current_batch !== null) {
1709
- current_batch.capture(derived, value, true);
1710
- previous_batch?.capture(derived, value, true);
1711
- } else derived.v = value;
1618
+ if (current_batch !== null) current_batch.capture(derived, value, true);
1619
+ else derived.v = value;
1712
1620
  if (derived.deps === null) {
1713
1621
  set_signal_status(derived, CLEAN);
1714
1622
  return;
@@ -1728,7 +1636,7 @@ function freeze_derived_effects(derived) {
1728
1636
  for (const e of derived.effects) if (e.teardown || e.ac) {
1729
1637
  e.teardown?.();
1730
1638
  e.ac?.abort(STALE_REACTION);
1731
- if (e.fn !== null) e.teardown = noop;
1639
+ e.teardown = noop;
1732
1640
  e.ac = null;
1733
1641
  remove_reactions(e, 0);
1734
1642
  destroy_effect_children(e);
@@ -1739,12 +1647,12 @@ function freeze_derived_effects(derived) {
1739
1647
  */
1740
1648
  function unfreeze_derived_effects(derived) {
1741
1649
  if (derived.effects === null) return;
1742
- for (const e of derived.effects) if (e.teardown && e.fn !== null) update_effect(e);
1650
+ for (const e of derived.effects) if (e.teardown) update_effect(e);
1743
1651
  }
1744
1652
  //#endregion
1745
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/reactivity/sources.js
1653
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/reactivity/sources.js
1746
1654
  /** @import { Derived, Effect, Source, Value } from '#client' */
1747
- /** @type {Set<Effect>} */
1655
+ /** @type {Set<any>} */
1748
1656
  var eager_effects = /* @__PURE__ */ new Set();
1749
1657
  /** @type {Map<Source, any>} */
1750
1658
  var old_values = /* @__PURE__ */ new Map();
@@ -1770,7 +1678,7 @@ function source(v, stack) {
1770
1678
  * @param {V} v
1771
1679
  * @param {Error | null} [stack]
1772
1680
  */
1773
- /*#__NO_SIDE_EFFECTS__*/
1681
+ /* @__NO_SIDE_EFFECTS__ */
1774
1682
  function state(v, stack) {
1775
1683
  const s = source(v, stack);
1776
1684
  push_reaction_value(s);
@@ -1782,7 +1690,7 @@ function state(v, stack) {
1782
1690
  * @param {boolean} [immutable]
1783
1691
  * @returns {Source<V>}
1784
1692
  */
1785
- /*#__NO_SIDE_EFFECTS__*/
1693
+ /* @__NO_SIDE_EFFECTS__ */
1786
1694
  function mutable_source(initial_value, immutable = false, trackable = true) {
1787
1695
  const s = source(initial_value);
1788
1696
  if (!immutable) s.equals = safe_equals;
@@ -1800,7 +1708,7 @@ function mutable_source(initial_value, immutable = false, trackable = true) {
1800
1708
  * @returns {V}
1801
1709
  */
1802
1710
  function set(source, value, should_proxy = false) {
1803
- if (active_reaction !== null && (!untracking || (active_reaction.f & 131072) !== 0) && is_runes() && (active_reaction.f & 4325394) !== 0 && (current_sources === null || !current_sources.has(source))) state_unsafe_mutation();
1711
+ if (active_reaction !== null && (!untracking || (active_reaction.f & 131072) !== 0) && is_runes() && (active_reaction.f & 4325394) !== 0 && (current_sources === null || !includes.call(current_sources, source))) state_unsafe_mutation();
1804
1712
  return internal_set(source, should_proxy ? proxy(value) : value, legacy_updates);
1805
1713
  }
1806
1714
  /**
@@ -1832,13 +1740,7 @@ function flush_eager_effects() {
1832
1740
  eager_effects_deferred = false;
1833
1741
  for (const effect of eager_effects) {
1834
1742
  if ((effect.f & 1024) !== 0) set_signal_status(effect, MAYBE_DIRTY);
1835
- let dirty;
1836
- try {
1837
- dirty = is_dirty(effect);
1838
- } catch {
1839
- dirty = true;
1840
- }
1841
- if (dirty) update_effect(effect);
1743
+ if (is_dirty(effect)) update_effect(effect);
1842
1744
  }
1843
1745
  eager_effects.clear();
1844
1746
  }
@@ -1866,8 +1768,7 @@ function mark_reactions(signal, status, updated_during_traversal) {
1866
1768
  if (!runes && reaction === active_effect) continue;
1867
1769
  var not_dirty = (flags & DIRTY) === 0;
1868
1770
  if (not_dirty) set_signal_status(reaction, status);
1869
- if ((flags & 131072) !== 0) eager_effects.add(reaction);
1870
- else if ((flags & 2) !== 0) {
1771
+ if ((flags & 2) !== 0) {
1871
1772
  var derived = reaction;
1872
1773
  batch_values?.delete(derived);
1873
1774
  if ((flags & 65536) === 0) {
@@ -2040,19 +1941,8 @@ function proxy(value) {
2040
1941
  }
2041
1942
  });
2042
1943
  }
2043
- new Set([
2044
- "copyWithin",
2045
- "fill",
2046
- "pop",
2047
- "push",
2048
- "reverse",
2049
- "shift",
2050
- "sort",
2051
- "splice",
2052
- "unshift"
2053
- ]);
2054
1944
  //#endregion
2055
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/dom/operations.js
1945
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/dom/operations.js
2056
1946
  /** @type {Window} */
2057
1947
  var $window;
2058
1948
  /** @type {boolean} */
@@ -2075,13 +1965,13 @@ function init_operations() {
2075
1965
  first_child_getter = get_descriptor(node_prototype, "firstChild").get;
2076
1966
  next_sibling_getter = get_descriptor(node_prototype, "nextSibling").get;
2077
1967
  if (is_extensible(element_prototype)) {
2078
- /** @type {any} */ element_prototype[CLASS_CACHE] = void 0;
2079
- /** @type {any} */ element_prototype[ATTRIBUTES_CACHE] = null;
2080
- /** @type {any} */ element_prototype[STYLE_CACHE] = void 0;
1968
+ element_prototype.__click = void 0;
1969
+ element_prototype.__className = void 0;
1970
+ element_prototype.__attributes = null;
1971
+ element_prototype.__style = void 0;
2081
1972
  element_prototype.__e = void 0;
2082
1973
  }
2083
- if (is_extensible(text_prototype))
2084
- /** @type {any} */ text_prototype[TEXT_CACHE] = void 0;
1974
+ if (is_extensible(text_prototype)) text_prototype.__t = void 0;
2085
1975
  }
2086
1976
  /**
2087
1977
  * @param {string} value
@@ -2094,7 +1984,7 @@ function create_text(value = "") {
2094
1984
  * @template {Node} N
2095
1985
  * @param {N} node
2096
1986
  */
2097
- /*@__NO_SIDE_EFFECTS__*/
1987
+ /* @__NO_SIDE_EFFECTS__ */
2098
1988
  function get_first_child(node) {
2099
1989
  return first_child_getter.call(node);
2100
1990
  }
@@ -2102,7 +1992,7 @@ function get_first_child(node) {
2102
1992
  * @template {Node} N
2103
1993
  * @param {N} node
2104
1994
  */
2105
- /*@__NO_SIDE_EFFECTS__*/
1995
+ /* @__NO_SIDE_EFFECTS__ */
2106
1996
  function get_next_sibling(node) {
2107
1997
  return next_sibling_getter.call(node);
2108
1998
  }
@@ -2115,12 +2005,6 @@ function clear_text_content(node) {
2115
2005
  node.textContent = "";
2116
2006
  }
2117
2007
  /**
2118
- * Branching here is intentional and load-bearing for perf. `createElement(tag)`
2119
- * hits a fast path in Blink that `createElementNS(NAMESPACE_HTML, tag)` doesn't,
2120
- * and passing an explicit `undefined` as the trailing options arg measurably
2121
- * slows both APIs. Funnelling every case through a single `createElementNS(ns,
2122
- * tag, options)` call would be smaller but slower on the HTML path.
2123
- *
2124
2008
  * @template {keyof HTMLElementTagNameMap | string} T
2125
2009
  * @param {T} tag
2126
2010
  * @param {string} [namespace]
@@ -2128,11 +2012,11 @@ function clear_text_content(node) {
2128
2012
  * @returns {T extends keyof HTMLElementTagNameMap ? HTMLElementTagNameMap[T] : Element}
2129
2013
  */
2130
2014
  function create_element(tag, namespace, is) {
2131
- if (namespace == null || namespace === "http://www.w3.org/1999/xhtml") return is ? document.createElement(tag, { is }) : document.createElement(tag);
2132
- return is ? document.createElementNS(namespace, tag, { is }) : document.createElementNS(namespace, tag);
2015
+ let options = is ? { is } : void 0;
2016
+ return document.createElementNS(namespace ?? "http://www.w3.org/1999/xhtml", tag, options);
2133
2017
  }
2134
2018
  //#endregion
2135
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
2019
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
2136
2020
  /**
2137
2021
  * @template T
2138
2022
  * @param {() => T} fn
@@ -2150,7 +2034,7 @@ function without_reactive_context(fn) {
2150
2034
  }
2151
2035
  }
2152
2036
  //#endregion
2153
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/reactivity/effects.js
2037
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/reactivity/effects.js
2154
2038
  /** @import { Blocker, ComponentContext, ComponentContextLegacy, Derived, Effect, TemplateNode, TransitionManager } from '#client' */
2155
2039
  /**
2156
2040
  * @param {Effect} effect
@@ -2350,7 +2234,7 @@ function destroy_effect(effect, remove_dom = true) {
2350
2234
  remove_effect_dom(effect.nodes.start, effect.nodes.end);
2351
2235
  removed = true;
2352
2236
  }
2353
- effect.f |= DESTROYING;
2237
+ set_signal_status(effect, DESTROYING);
2354
2238
  destroy_effect_children(effect, remove_dom && !removed);
2355
2239
  remove_reactions(effect, 0);
2356
2240
  var transitions = effect.nodes && effect.nodes.t;
@@ -2454,14 +2338,14 @@ function move_effect(effect, fragment) {
2454
2338
  }
2455
2339
  }
2456
2340
  //#endregion
2457
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/legacy.js
2341
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/legacy.js
2458
2342
  /**
2459
2343
  * @type {Set<Value> | null}
2460
2344
  * @deprecated
2461
2345
  */
2462
2346
  var captured_signals = null;
2463
2347
  //#endregion
2464
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/runtime.js
2348
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/runtime.js
2465
2349
  /** @import { Derived, Effect, Reaction, Source, Value } from '#client' */
2466
2350
  var is_updating_effect = false;
2467
2351
  var is_destroying_effect = false;
@@ -2485,12 +2369,13 @@ function set_active_effect(effect) {
2485
2369
  /**
2486
2370
  * When sources are created within a reaction, reading and writing
2487
2371
  * them within that reaction should not cause a re-run
2488
- * @type {null | Set<Source>}
2372
+ * @type {null | Source[]}
2489
2373
  */
2490
2374
  var current_sources = null;
2491
2375
  /** @param {Value} value */
2492
2376
  function push_reaction_value(value) {
2493
- if (active_reaction !== null && (!async_mode_flag || (active_reaction.f & 2) !== 0)) (current_sources ?? (current_sources = /* @__PURE__ */ new Set())).add(value);
2377
+ if (active_reaction !== null && (!async_mode_flag || (active_reaction.f & 2) !== 0)) if (current_sources === null) current_sources = [value];
2378
+ else current_sources.push(value);
2494
2379
  }
2495
2380
  /**
2496
2381
  * The dependencies of the reaction that is currently being executed. In many cases,
@@ -2555,7 +2440,7 @@ function is_dirty(reaction) {
2555
2440
  function schedule_possible_effect_self_invalidation(signal, effect, root = true) {
2556
2441
  var reactions = signal.reactions;
2557
2442
  if (reactions === null) return;
2558
- if (!async_mode_flag && current_sources !== null && current_sources.has(signal)) return;
2443
+ if (!async_mode_flag && current_sources !== null && includes.call(current_sources, signal)) return;
2559
2444
  for (var i = 0; i < reactions.length; i++) {
2560
2445
  var reaction = reactions[i];
2561
2446
  if ((reaction.f & 2) !== 0) schedule_possible_effect_self_invalidation(reaction, effect, false);
@@ -2710,7 +2595,7 @@ function get(signal) {
2710
2595
  var is_derived = (signal.f & 2) !== 0;
2711
2596
  captured_signals?.add(signal);
2712
2597
  if (active_reaction !== null && !untracking) {
2713
- if (!(active_effect !== null && (active_effect.f & 16384) !== 0) && (current_sources === null || !current_sources.has(signal))) {
2598
+ if (!(active_effect !== null && (active_effect.f & 16384) !== 0) && (current_sources === null || !includes.call(current_sources, signal))) {
2714
2599
  var deps = active_reaction.deps;
2715
2600
  if ((active_reaction.f & 2097152) !== 0) {
2716
2601
  if (signal.rv < read_version) {
@@ -2721,8 +2606,7 @@ function get(signal) {
2721
2606
  }
2722
2607
  } else {
2723
2608
  var _active_reaction;
2724
- (_active_reaction = active_reaction).deps ?? (_active_reaction.deps = []);
2725
- if (!includes.call(active_reaction.deps, signal)) active_reaction.deps.push(signal);
2609
+ ((_active_reaction = active_reaction).deps ?? (_active_reaction.deps = [])).push(signal);
2726
2610
  var reactions = signal.reactions;
2727
2611
  if (reactions === null) signal.reactions = [active_reaction];
2728
2612
  else if (!includes.call(reactions, active_reaction)) reactions.push(active_reaction);
@@ -2805,7 +2689,7 @@ function untrack(fn) {
2805
2689
  }
2806
2690
  }
2807
2691
  //#endregion
2808
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/dom/elements/events.js
2692
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/dom/elements/events.js
2809
2693
  /**
2810
2694
  * Used on elements, as a map of event type -> event handler,
2811
2695
  * and on events themselves to track which element handled an event
@@ -2862,7 +2746,8 @@ function handle_event_propagation(event) {
2862
2746
  */
2863
2747
  var other_errors = [];
2864
2748
  while (current_target !== null) {
2865
- if (current_target === handler_element) break;
2749
+ /** @type {null | Element} */
2750
+ var parent_element = current_target.assignedSlot || current_target.parentNode || current_target.host || null;
2866
2751
  try {
2867
2752
  var delegated = current_target[event_symbol]?.[event_name];
2868
2753
  if (delegated != null && (!current_target.disabled || event.target === current_target)) delegated.call(current_target, event);
@@ -2870,9 +2755,8 @@ function handle_event_propagation(event) {
2870
2755
  if (throw_error) other_errors.push(error);
2871
2756
  else throw_error = error;
2872
2757
  }
2873
- if (event.cancelBubble) break;
2874
- path_idx++;
2875
- current_target = path_idx < path.length ? path[path_idx] : null;
2758
+ if (event.cancelBubble || parent_element === handler_element || parent_element === null) break;
2759
+ current_target = parent_element;
2876
2760
  }
2877
2761
  if (throw_error) {
2878
2762
  for (let error of other_errors) queueMicrotask(() => {
@@ -2888,7 +2772,7 @@ function handle_event_propagation(event) {
2888
2772
  }
2889
2773
  }
2890
2774
  //#endregion
2891
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/dom/reconciler.js
2775
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/dom/reconciler.js
2892
2776
  var policy = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", {
2893
2777
  /** @param {string} html */
2894
2778
  createHTML: (html) => {
@@ -2907,7 +2791,7 @@ function create_fragment_from_html(html) {
2907
2791
  return elem.content;
2908
2792
  }
2909
2793
  //#endregion
2910
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/dom/template.js
2794
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/dom/template.js
2911
2795
  /** @import { Effect, EffectNodes, TemplateNode } from '#client' */
2912
2796
  /** @import { TemplateStructure } from './types' */
2913
2797
  /**
@@ -2928,7 +2812,7 @@ function assign_nodes(start, end) {
2928
2812
  * @param {number} flags
2929
2813
  * @returns {() => Node | Node[]}
2930
2814
  */
2931
- /*#__NO_SIDE_EFFECTS__*/
2815
+ /* @__NO_SIDE_EFFECTS__ */
2932
2816
  function from_html(content, flags) {
2933
2817
  var is_fragment = (flags & 1) !== 0;
2934
2818
  var use_import_node = (flags & 2) !== 0;
@@ -3166,7 +3050,7 @@ function unmount(component, options) {
3166
3050
  return Promise.resolve();
3167
3051
  }
3168
3052
  //#endregion
3169
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/dom/css.js
3053
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/dom/css.js
3170
3054
  /**
3171
3055
  * @param {Node} anchor
3172
3056
  * @param {{ hash: string, code: string }} css
@@ -3184,7 +3068,7 @@ function append_styles(anchor, css) {
3184
3068
  });
3185
3069
  }
3186
3070
  //#endregion
3187
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/dom/elements/bindings/size.js
3071
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/dom/elements/bindings/size.js
3188
3072
  var _ResizeObserverSingleton;
3189
3073
  var _listeners = /* @__PURE__ */ new WeakMap();
3190
3074
  var _observer = /* @__PURE__ */ new WeakMap();
@@ -3236,8 +3120,8 @@ function _getObserver() {
3236
3120
  }
3237
3121
  _defineProperty(ResizeObserverSingleton, "entries", /* @__PURE__ */ new WeakMap());
3238
3122
  //#endregion
3239
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/reactivity/props.js
3240
- /** @import { Derived, Effect, Source } from './types.js' */
3123
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/reactivity/props.js
3124
+ /** @import { Effect, Source } from './types.js' */
3241
3125
  /**
3242
3126
  * This function is responsible for synchronizing a possibly bound prop with the inner component state.
3243
3127
  * It is used whenever the compiler sees that the component writes to the prop, or when it has a default prop_value.
@@ -3254,12 +3138,7 @@ function prop(props, key, flags, fallback) {
3254
3138
  var lazy = (flags & 16) !== 0;
3255
3139
  var fallback_value = fallback;
3256
3140
  var fallback_dirty = true;
3257
- var fallback_signal = void 0;
3258
3141
  var get_fallback = () => {
3259
- if (lazy && runes) {
3260
- fallback_signal ?? (fallback_signal = /* @__PURE__ */ derived(fallback));
3261
- return get(fallback_signal);
3262
- }
3263
3142
  if (fallback_dirty) {
3264
3143
  fallback_dirty = false;
3265
3144
  fallback_value = lazy ? untrack(fallback) : fallback;
@@ -3329,7 +3208,7 @@ function prop(props, key, flags, fallback) {
3329
3208
  });
3330
3209
  }
3331
3210
  //#endregion
3332
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/legacy/legacy-client.js
3211
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/legacy/legacy-client.js
3333
3212
  /** @import { ComponentConstructorOptions, ComponentType, SvelteComponent, Component } from 'svelte' */
3334
3213
  /**
3335
3214
  * Takes the same options as a Svelte 4 component and the component function and returns a Svelte 4 compatible component.
@@ -3448,7 +3327,7 @@ var Svelte4Component = class {
3448
3327
  }
3449
3328
  };
3450
3329
  //#endregion
3451
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/dom/elements/custom-element.js
3330
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/dom/elements/custom-element.js
3452
3331
  /**
3453
3332
  * @typedef {Object} CustomElementPropDefinition
3454
3333
  * @property {string} [attribute]