@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,16 +1,16 @@
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
  var NAMESPACE_SVG = "http://www.w3.org/2000/svg";
11
11
  var NAMESPACE_MATHML = "http://www.w3.org/1998/Math/MathML";
12
12
  //#endregion
13
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/shared/utils.js
13
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/shared/utils.js
14
14
  var is_array = Array.isArray;
15
15
  var index_of = Array.prototype.indexOf;
16
16
  var includes = Array.prototype.includes;
@@ -47,7 +47,7 @@ function deferred() {
47
47
  };
48
48
  }
49
49
  //#endregion
50
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/typeof.js
50
+ //#region \0@oxc-project+runtime@0.129.0/helpers/typeof.js
51
51
  function _typeof(o) {
52
52
  "@babel/helpers - typeof";
53
53
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -57,7 +57,7 @@ function _typeof(o) {
57
57
  }, _typeof(o);
58
58
  }
59
59
  //#endregion
60
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPrimitive.js
60
+ //#region \0@oxc-project+runtime@0.129.0/helpers/toPrimitive.js
61
61
  function toPrimitive(t, r) {
62
62
  if ("object" != _typeof(t) || !t) return t;
63
63
  var e = t[Symbol.toPrimitive];
@@ -69,13 +69,13 @@ function toPrimitive(t, r) {
69
69
  return ("string" === r ? String : Number)(t);
70
70
  }
71
71
  //#endregion
72
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPropertyKey.js
72
+ //#region \0@oxc-project+runtime@0.129.0/helpers/toPropertyKey.js
73
73
  function toPropertyKey(t) {
74
74
  var i = toPrimitive(t, "string");
75
75
  return "symbol" == _typeof(i) ? i : i + "";
76
76
  }
77
77
  //#endregion
78
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/defineProperty.js
78
+ //#region \0@oxc-project+runtime@0.129.0/helpers/defineProperty.js
79
79
  function _defineProperty(e, r, t) {
80
80
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
81
81
  value: t,
@@ -114,10 +114,6 @@ var ERROR_VALUE = 1 << 23;
114
114
  var STATE_SYMBOL = Symbol("$state");
115
115
  var LEGACY_PROPS = Symbol("legacy props");
116
116
  var LOADING_ATTR_SYMBOL = Symbol("");
117
- var ATTRIBUTES_CACHE = Symbol("attributes");
118
- var CLASS_CACHE = Symbol("class");
119
- var STYLE_CACHE = Symbol("style");
120
- var TEXT_CACHE = Symbol("text");
121
117
  /** allow users to ignore aborted signal errors if `reason.name === 'StaleReactionError` */
122
118
  var STALE_REACTION = new class StaleReactionError extends Error {
123
119
  constructor(..._args) {
@@ -128,7 +124,7 @@ var STALE_REACTION = new class StaleReactionError extends Error {
128
124
  }();
129
125
  var IS_XHTML = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
130
126
  //#endregion
131
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/errors.js
127
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/errors.js
132
128
  /**
133
129
  * Cannot create a `$derived(...)` with an `await` expression outside of an effect tree
134
130
  * @returns {never}
@@ -239,7 +235,7 @@ function svelte_boundary_reset_noop() {
239
235
  console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`);
240
236
  }
241
237
  //#endregion
242
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/dom/hydration.js
238
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/dom/hydration.js
243
239
  /** @import { TemplateNode } from '#client' */
244
240
  /**
245
241
  * Use this variable to guard everything related to hydration code so it can be treeshaken out
@@ -318,7 +314,7 @@ function read_hydration_instruction(node) {
318
314
  return node.data;
319
315
  }
320
316
  //#endregion
321
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/reactivity/equality.js
317
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/reactivity/equality.js
322
318
  /** @import { Equals } from '#client' */
323
319
  /** @type {Equals} */
324
320
  function equals(value) {
@@ -337,13 +333,13 @@ function safe_equals(value) {
337
333
  return !safe_not_equal(value, this.v);
338
334
  }
339
335
  //#endregion
340
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/flags/index.js
336
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/flags/index.js
341
337
  /** True if experimental.async=true */
342
338
  var async_mode_flag = false;
343
339
  /** True if we're not certain that we only have Svelte 5 code in the compilation */
344
340
  var legacy_mode_flag = false;
345
341
  //#endregion
346
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/context.js
342
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/context.js
347
343
  /** @import { ComponentContext, DevStackEntry, Effect } from '#client' */
348
344
  /** @type {ComponentContext | null} */
349
345
  var component_context = null;
@@ -395,7 +391,7 @@ function is_runes() {
395
391
  return !legacy_mode_flag || component_context !== null && component_context.l === null;
396
392
  }
397
393
  //#endregion
398
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/dom/task.js
394
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/dom/task.js
399
395
  /** @type {Array<() => void>} */
400
396
  var micro_tasks = [];
401
397
  function run_micro_tasks() {
@@ -453,7 +449,7 @@ function invoke_error_boundary(error, effect) {
453
449
  throw error;
454
450
  }
455
451
  //#endregion
456
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/reactivity/status.js
452
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/reactivity/status.js
457
453
  /** @import { Derived, Signal } from '#client' */
458
454
  var STATUS_MASK = ~(DIRTY | MAYBE_DIRTY | CLEAN);
459
455
  /**
@@ -472,7 +468,7 @@ function update_derived_status(derived) {
472
468
  else set_signal_status(derived, MAYBE_DIRTY);
473
469
  }
474
470
  //#endregion
475
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/reactivity/utils.js
471
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/reactivity/utils.js
476
472
  /** @import { Derived, Effect, Value } from '#client' */
477
473
  /**
478
474
  * @param {Value[] | null} deps
@@ -500,7 +496,7 @@ function defer_effect(effect, dirty_effects, maybe_dirty_effects) {
500
496
  set_signal_status(effect, CLEAN);
501
497
  }
502
498
  //#endregion
503
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/reactivity/store.js
499
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/reactivity/store.js
504
500
  /**
505
501
  * We set this to `true` when updating a store so that we correctly
506
502
  * schedule effects if the update takes place inside a `$:` effect
@@ -530,53 +526,46 @@ function capture_store_binding(fn) {
530
526
  }
531
527
  }
532
528
  //#endregion
533
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/checkPrivateRedeclaration.js
529
+ //#region \0@oxc-project+runtime@0.129.0/helpers/checkPrivateRedeclaration.js
534
530
  function _checkPrivateRedeclaration(e, t) {
535
531
  if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
536
532
  }
537
533
  //#endregion
538
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/classPrivateMethodInitSpec.js
534
+ //#region \0@oxc-project+runtime@0.129.0/helpers/classPrivateMethodInitSpec.js
539
535
  function _classPrivateMethodInitSpec(e, a) {
540
536
  _checkPrivateRedeclaration(e, a), a.add(e);
541
537
  }
542
538
  //#endregion
543
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/classPrivateFieldInitSpec.js
539
+ //#region \0@oxc-project+runtime@0.129.0/helpers/classPrivateFieldInitSpec.js
544
540
  function _classPrivateFieldInitSpec(e, t, a) {
545
541
  _checkPrivateRedeclaration(e, t), t.set(e, a);
546
542
  }
547
543
  //#endregion
548
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/assertClassBrand.js
544
+ //#region \0@oxc-project+runtime@0.129.0/helpers/assertClassBrand.js
549
545
  function _assertClassBrand(e, t, n) {
550
546
  if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
551
547
  throw new TypeError("Private element is not present on this object");
552
548
  }
553
549
  //#endregion
554
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/classPrivateFieldSet2.js
555
- function _classPrivateFieldSet2(s, a, r) {
556
- return s.set(_assertClassBrand(s, a), r), r;
557
- }
558
- //#endregion
559
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/classPrivateFieldGet2.js
550
+ //#region \0@oxc-project+runtime@0.129.0/helpers/classPrivateFieldGet2.js
560
551
  function _classPrivateFieldGet2(s, a) {
561
552
  return s.get(_assertClassBrand(s, a));
562
553
  }
563
554
  //#endregion
564
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/reactivity/batch.js
555
+ //#region \0@oxc-project+runtime@0.129.0/helpers/classPrivateFieldSet2.js
556
+ function _classPrivateFieldSet2(s, a, r) {
557
+ return s.set(_assertClassBrand(s, a), r), r;
558
+ }
559
+ //#endregion
560
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/reactivity/batch.js
565
561
  /** @import { Fork } from 'svelte' */
566
562
  /** @import { Derived, Effect, Reaction, Source, Value } from '#client' */
567
563
  var _Batch;
568
- /** @type {Batch | null} */
569
- var first_batch = null;
570
- /** @type {Batch | null} */
571
- var last_batch = null;
564
+ /** @type {Set<Batch>} */
565
+ var batches = /* @__PURE__ */ new Set();
572
566
  /** @type {Batch | null} */
573
567
  var current_batch = null;
574
568
  /**
575
- * This is needed to avoid overwriting inputs
576
- * @type {Batch | null}
577
- */
578
- var previous_batch = null;
579
- /**
580
569
  * When time travelling (i.e. working in one batch, while other batches
581
570
  * still have ongoing work), we ignore the real values of affected
582
571
  * signals in favour of their values within the batch
@@ -604,11 +593,9 @@ var collected_effects = null;
604
593
  var legacy_updates = null;
605
594
  var flush_count = 0;
606
595
  var uid = 1;
607
- var _started = /* @__PURE__ */ new WeakMap();
608
- var _prev = /* @__PURE__ */ new WeakMap();
609
- var _next = /* @__PURE__ */ new WeakMap();
610
596
  var _commit_callbacks = /* @__PURE__ */ new WeakMap();
611
597
  var _discard_callbacks = /* @__PURE__ */ new WeakMap();
598
+ var _fork_commit_callbacks = /* @__PURE__ */ new WeakMap();
612
599
  var _pending = /* @__PURE__ */ new WeakMap();
613
600
  var _blocking_pending = /* @__PURE__ */ new WeakMap();
614
601
  var _deferred = /* @__PURE__ */ new WeakMap();
@@ -619,21 +606,12 @@ var _maybe_dirty_effects$1 = /* @__PURE__ */ new WeakMap();
619
606
  var _skipped_branches = /* @__PURE__ */ new WeakMap();
620
607
  var _unskipped_branches = /* @__PURE__ */ new WeakMap();
621
608
  var _decrement_queued = /* @__PURE__ */ new WeakMap();
609
+ var _blockers = /* @__PURE__ */ new WeakMap();
622
610
  var _Batch_brand = /* @__PURE__ */ new WeakSet();
623
611
  var Batch = class Batch {
624
612
  constructor() {
625
613
  _classPrivateMethodInitSpec(this, _Batch_brand);
626
614
  _defineProperty(this, "id", uid++);
627
- _classPrivateFieldInitSpec(this, _started, false);
628
- _defineProperty(this, "linked", true);
629
- _classPrivateFieldInitSpec(this, _prev, null);
630
- _classPrivateFieldInitSpec(this, _next, null);
631
- _defineProperty(
632
- this,
633
- /** @type {Map<Effect, ReturnType<typeof deferred<any>>>} */
634
- "async_deriveds",
635
- /* @__PURE__ */ new Map()
636
- );
637
615
  _defineProperty(
638
616
  this,
639
617
  /**
@@ -657,7 +635,8 @@ var Batch = class Batch {
657
635
  );
658
636
  _classPrivateFieldInitSpec(this, _commit_callbacks, /* @__PURE__ */ new Set());
659
637
  _classPrivateFieldInitSpec(this, _discard_callbacks, /* @__PURE__ */ new Set());
660
- _classPrivateFieldInitSpec(this, _pending, 0);
638
+ _classPrivateFieldInitSpec(this, _fork_commit_callbacks, /* @__PURE__ */ new Set());
639
+ _classPrivateFieldInitSpec(this, _pending, /* @__PURE__ */ new Map());
661
640
  _classPrivateFieldInitSpec(this, _blocking_pending, /* @__PURE__ */ new Map());
662
641
  _classPrivateFieldInitSpec(this, _deferred, null);
663
642
  _classPrivateFieldInitSpec(this, _roots, []);
@@ -668,12 +647,7 @@ var Batch = class Batch {
668
647
  _classPrivateFieldInitSpec(this, _unskipped_branches, /* @__PURE__ */ new Set());
669
648
  _defineProperty(this, "is_fork", false);
670
649
  _classPrivateFieldInitSpec(this, _decrement_queued, false);
671
- if (last_batch === null) first_batch = last_batch = this;
672
- else {
673
- _classPrivateFieldSet2(_next, last_batch, this);
674
- _classPrivateFieldSet2(_prev, this, last_batch);
675
- }
676
- last_batch = this;
650
+ _classPrivateFieldInitSpec(this, _blockers, /* @__PURE__ */ new Set());
677
651
  }
678
652
  /**
679
653
  * Add an effect to the #skipped_branches map and reset its children
@@ -748,8 +722,8 @@ var Batch = class Batch {
748
722
  discard() {
749
723
  for (const fn of _classPrivateFieldGet2(_discard_callbacks, this)) fn(this);
750
724
  _classPrivateFieldGet2(_discard_callbacks, this).clear();
751
- _assertClassBrand(_Batch_brand, this, _unlink).call(this);
752
- _classPrivateFieldGet2(_deferred, this)?.resolve();
725
+ _classPrivateFieldGet2(_fork_commit_callbacks, this).clear();
726
+ batches.delete(this);
753
727
  }
754
728
  /**
755
729
  * @param {Effect} effect
@@ -762,7 +736,8 @@ var Batch = class Batch {
762
736
  * @param {Effect} effect
763
737
  */
764
738
  increment(blocking, effect) {
765
- _classPrivateFieldSet2(_pending, this, _classPrivateFieldGet2(_pending, this) + 1);
739
+ let pending_count = _classPrivateFieldGet2(_pending, this).get(effect) ?? 0;
740
+ _classPrivateFieldGet2(_pending, this).set(effect, pending_count + 1);
766
741
  if (blocking) {
767
742
  let blocking_pending_count = _classPrivateFieldGet2(_blocking_pending, this).get(effect) ?? 0;
768
743
  _classPrivateFieldGet2(_blocking_pending, this).set(effect, blocking_pending_count + 1);
@@ -771,19 +746,22 @@ var Batch = class Batch {
771
746
  /**
772
747
  * @param {boolean} blocking
773
748
  * @param {Effect} effect
749
+ * @param {boolean} skip - whether to skip updates (because this is triggered by a stale reaction)
774
750
  */
775
- decrement(blocking, effect) {
776
- _classPrivateFieldSet2(_pending, this, _classPrivateFieldGet2(_pending, this) - 1);
751
+ decrement(blocking, effect, skip) {
752
+ let pending_count = _classPrivateFieldGet2(_pending, this).get(effect) ?? 0;
753
+ if (pending_count === 1) _classPrivateFieldGet2(_pending, this).delete(effect);
754
+ else _classPrivateFieldGet2(_pending, this).set(effect, pending_count - 1);
777
755
  if (blocking) {
778
756
  let blocking_pending_count = _classPrivateFieldGet2(_blocking_pending, this).get(effect) ?? 0;
779
757
  if (blocking_pending_count === 1) _classPrivateFieldGet2(_blocking_pending, this).delete(effect);
780
758
  else _classPrivateFieldGet2(_blocking_pending, this).set(effect, blocking_pending_count - 1);
781
759
  }
782
- if (_classPrivateFieldGet2(_decrement_queued, this)) return;
760
+ if (_classPrivateFieldGet2(_decrement_queued, this) || skip) return;
783
761
  _classPrivateFieldSet2(_decrement_queued, this, true);
784
762
  queue_micro_task(() => {
785
763
  _classPrivateFieldSet2(_decrement_queued, this, false);
786
- if (this.linked) this.flush();
764
+ this.flush();
787
765
  });
788
766
  }
789
767
  /**
@@ -804,38 +782,48 @@ var Batch = class Batch {
804
782
  ondiscard(fn) {
805
783
  _classPrivateFieldGet2(_discard_callbacks, this).add(fn);
806
784
  }
785
+ /** @param {(batch: Batch) => void} fn */
786
+ on_fork_commit(fn) {
787
+ _classPrivateFieldGet2(_fork_commit_callbacks, this).add(fn);
788
+ }
789
+ run_fork_commit_callbacks() {
790
+ for (const fn of _classPrivateFieldGet2(_fork_commit_callbacks, this)) fn(this);
791
+ _classPrivateFieldGet2(_fork_commit_callbacks, this).clear();
792
+ }
807
793
  settled() {
808
794
  return (_classPrivateFieldGet2(_deferred, this) ?? _classPrivateFieldSet2(_deferred, this, deferred())).promise;
809
795
  }
810
796
  static ensure() {
811
797
  if (current_batch === null) {
812
798
  const batch = current_batch = new Batch();
813
- if (!is_processing && !is_flushing_sync) queue_micro_task(() => {
814
- if (!_classPrivateFieldGet2(_started, batch)) batch.flush();
815
- });
799
+ if (!is_processing) {
800
+ batches.add(current_batch);
801
+ if (!is_flushing_sync) queue_micro_task(() => {
802
+ if (current_batch !== batch) return;
803
+ batch.flush();
804
+ });
805
+ }
816
806
  }
817
807
  return current_batch;
818
808
  }
819
809
  apply() {
820
- if (!async_mode_flag || !this.is_fork && _classPrivateFieldGet2(_prev, this) === null && _classPrivateFieldGet2(_next, this) === null) {
810
+ if (!async_mode_flag || !this.is_fork && batches.size === 1) {
821
811
  batch_values = null;
822
812
  return;
823
813
  }
824
814
  batch_values = /* @__PURE__ */ new Map();
825
815
  for (const [source, [value]] of this.current) batch_values.set(source, value);
826
- for (let batch = first_batch; batch !== null; batch = _classPrivateFieldGet2(_next, batch)) {
816
+ for (const batch of batches) {
827
817
  if (batch === this || batch.is_fork) continue;
828
818
  var intersects = false;
819
+ var differs = false;
829
820
  if (batch.id < this.id) for (const [source, [, is_derived]] of batch.current) {
830
821
  if (is_derived) continue;
831
- if (this.current.has(source)) {
832
- intersects = true;
833
- break;
834
- }
835
- }
836
- if (!intersects) {
837
- for (const [source, previous] of batch.previous) if (!batch_values.has(source)) batch_values.set(source, previous);
822
+ intersects || (intersects = this.current.has(source));
823
+ differs || (differs = !this.current.has(source));
838
824
  }
825
+ if (intersects && differs) _classPrivateFieldGet2(_blockers, this).add(batch);
826
+ else for (const [source, previous] of batch.previous) if (!batch_values.has(source)) batch_values.set(source, previous);
839
827
  }
840
828
  }
841
829
  /**
@@ -866,10 +854,12 @@ var Batch = class Batch {
866
854
  };
867
855
  _Batch = Batch;
868
856
  function _is_deferred() {
869
- if (this.is_fork) return true;
870
- for (const effect of _classPrivateFieldGet2(_blocking_pending, this).keys()) {
871
- var e = effect;
857
+ return this.is_fork || _classPrivateFieldGet2(_blocking_pending, this).size > 0;
858
+ }
859
+ function _is_blocked() {
860
+ for (const batch of _classPrivateFieldGet2(_blockers, this)) for (const effect of _classPrivateFieldGet2(_blocking_pending, batch).keys()) {
872
861
  var skipped = false;
862
+ var e = effect;
873
863
  while (e.parent !== null) {
874
864
  if (_classPrivateFieldGet2(_skipped_branches, this).has(e)) {
875
865
  skipped = true;
@@ -882,19 +872,20 @@ function _is_deferred() {
882
872
  return false;
883
873
  }
884
874
  function _process() {
885
- _classPrivateFieldSet2(_started, this, true);
886
875
  if (flush_count++ > 1e3) {
887
- _assertClassBrand(_Batch_brand, this, _unlink).call(this);
876
+ batches.delete(this);
888
877
  infinite_loop_guard();
889
878
  }
890
- for (const e of _classPrivateFieldGet2(_dirty_effects$1, this)) {
891
- _classPrivateFieldGet2(_maybe_dirty_effects$1, this).delete(e);
892
- set_signal_status(e, DIRTY);
893
- this.schedule(e);
894
- }
895
- for (const e of _classPrivateFieldGet2(_maybe_dirty_effects$1, this)) {
896
- set_signal_status(e, MAYBE_DIRTY);
897
- this.schedule(e);
879
+ if (!_assertClassBrand(_Batch_brand, this, _is_deferred).call(this)) {
880
+ for (const e of _classPrivateFieldGet2(_dirty_effects$1, this)) {
881
+ _classPrivateFieldGet2(_maybe_dirty_effects$1, this).delete(e);
882
+ set_signal_status(e, DIRTY);
883
+ this.schedule(e);
884
+ }
885
+ for (const e of _classPrivateFieldGet2(_maybe_dirty_effects$1, this)) {
886
+ set_signal_status(e, MAYBE_DIRTY);
887
+ this.schedule(e);
888
+ }
898
889
  }
899
890
  const roots = _classPrivateFieldGet2(_roots, this);
900
891
  _classPrivateFieldSet2(_roots, this, []);
@@ -912,7 +903,6 @@ function _process() {
912
903
  _assertClassBrand(_Batch_brand, this, _traverse).call(this, root, effects, render_effects);
913
904
  } catch (e) {
914
905
  reset_all(root);
915
- if (!_assertClassBrand(_Batch_brand, this, _is_deferred).call(this)) this.discard();
916
906
  throw e;
917
907
  }
918
908
  current_batch = null;
@@ -922,43 +912,30 @@ function _process() {
922
912
  }
923
913
  collected_effects = null;
924
914
  legacy_updates = null;
925
- if (_assertClassBrand(_Batch_brand, this, _is_deferred).call(this)) {
915
+ if (_assertClassBrand(_Batch_brand, this, _is_deferred).call(this) || _assertClassBrand(_Batch_brand, this, _is_blocked).call(this)) {
926
916
  _assertClassBrand(_Batch_brand, this, _defer_effects).call(this, render_effects);
927
917
  _assertClassBrand(_Batch_brand, this, _defer_effects).call(this, effects);
928
918
  for (const [e, t] of _classPrivateFieldGet2(_skipped_branches, this)) reset_branch(e, t);
929
- if (updates.length > 0)
930
- /** @type {Batch} */ _assertClassBrand(_Batch_brand, current_batch, _process).call(current_batch);
931
- return;
932
- }
933
- const earlier_batch = _assertClassBrand(_Batch_brand, this, _find_earlier_batch).call(this);
934
- if (earlier_batch) {
935
- _assertClassBrand(_Batch_brand, this, _defer_effects).call(this, render_effects);
936
- _assertClassBrand(_Batch_brand, this, _defer_effects).call(this, effects);
937
- _assertClassBrand(_Batch_brand, earlier_batch, _merge).call(earlier_batch, this);
938
- return;
919
+ } else {
920
+ if (_classPrivateFieldGet2(_pending, this).size === 0) batches.delete(this);
921
+ _classPrivateFieldGet2(_dirty_effects$1, this).clear();
922
+ _classPrivateFieldGet2(_maybe_dirty_effects$1, this).clear();
923
+ for (const fn of _classPrivateFieldGet2(_commit_callbacks, this)) fn(this);
924
+ _classPrivateFieldGet2(_commit_callbacks, this).clear();
925
+ flush_queued_effects(render_effects);
926
+ flush_queued_effects(effects);
927
+ _classPrivateFieldGet2(_deferred, this)?.resolve();
939
928
  }
940
- _classPrivateFieldGet2(_dirty_effects$1, this).clear();
941
- _classPrivateFieldGet2(_maybe_dirty_effects$1, this).clear();
942
- for (const fn of _classPrivateFieldGet2(_commit_callbacks, this)) fn(this);
943
- _classPrivateFieldGet2(_commit_callbacks, this).clear();
944
- previous_batch = this;
945
- flush_queued_effects(render_effects);
946
- flush_queued_effects(effects);
947
- previous_batch = null;
948
- _classPrivateFieldGet2(_deferred, this)?.resolve();
949
929
  var next_batch = current_batch;
950
- if (_classPrivateFieldGet2(_pending, this) === 0 && (_classPrivateFieldGet2(_roots, this).length === 0 || next_batch !== null)) {
951
- _assertClassBrand(_Batch_brand, this, _unlink).call(this);
952
- if (async_mode_flag) {
953
- _assertClassBrand(_Batch_brand, this, _commit$1).call(this);
954
- current_batch = next_batch;
955
- }
956
- }
957
- if (_classPrivateFieldGet2(_roots, this).length > 0) if (next_batch !== null) {
958
- const batch = next_batch;
930
+ if (_classPrivateFieldGet2(_roots, this).length > 0) {
931
+ const batch = next_batch ?? (next_batch = this);
959
932
  _classPrivateFieldGet2(_roots, batch).push(..._classPrivateFieldGet2(_roots, this).filter((r) => !_classPrivateFieldGet2(_roots, batch).includes(r)));
960
- } else next_batch = this;
961
- if (next_batch !== null) _assertClassBrand(_Batch_brand, next_batch, _process).call(next_batch);
933
+ }
934
+ if (next_batch !== null) {
935
+ batches.add(next_batch);
936
+ _assertClassBrand(_Batch_brand, next_batch, _process).call(next_batch);
937
+ }
938
+ if (async_mode_flag && !batches.has(this)) _assertClassBrand(_Batch_brand, this, _commit$1).call(this);
962
939
  }
963
940
  /**
964
941
  * Traverse the effect tree, executing effects or stashing
@@ -997,59 +974,6 @@ function _traverse(root, effects, render_effects) {
997
974
  }
998
975
  }
999
976
  }
1000
- function _find_earlier_batch() {
1001
- var batch = _classPrivateFieldGet2(_prev, this);
1002
- while (batch !== null) {
1003
- if (!batch.is_fork) {
1004
- for (const [value, [, is_derived]] of this.current) if (batch.current.has(value) && !is_derived) return batch;
1005
- }
1006
- batch = _classPrivateFieldGet2(_prev, batch);
1007
- }
1008
- return null;
1009
- }
1010
- /**
1011
- * @param {Batch} batch
1012
- */
1013
- function _merge(batch) {
1014
- for (const [source, value] of batch.current) {
1015
- if (!this.previous.has(source) && batch.previous.has(source)) this.previous.set(source, batch.previous.get(source));
1016
- this.current.set(source, value);
1017
- }
1018
- for (const [effect, deferred] of batch.async_deriveds) {
1019
- const d = this.async_deriveds.get(effect);
1020
- if (d) deferred.promise.then(d.resolve).catch(d.reject);
1021
- }
1022
- this.transfer_effects(_classPrivateFieldGet2(_dirty_effects$1, batch), _classPrivateFieldGet2(_maybe_dirty_effects$1, batch));
1023
- /**
1024
- * mark all effects that depend on `batch.current`, except the
1025
- * async effects that we just resolved (TODO unless they depend
1026
- * on values in this batch that are NOT in the later batch?).
1027
- * Through this we also will populate the correct #skipped_branches,
1028
- * oncommit callbacks etc, so we don't need to merge them separately.
1029
- * @param {Value} value
1030
- */
1031
- const mark = (value) => {
1032
- var reactions = value.reactions;
1033
- if (reactions === null) return;
1034
- for (const reaction of reactions) {
1035
- var flags = reaction.f;
1036
- if ((flags & 2) !== 0) mark(reaction);
1037
- else {
1038
- var effect = reaction;
1039
- if (flags & 4194320 && !this.async_deriveds.has(effect)) {
1040
- _classPrivateFieldGet2(_maybe_dirty_effects$1, this).delete(effect);
1041
- set_signal_status(effect, DIRTY);
1042
- this.schedule(effect);
1043
- }
1044
- }
1045
- }
1046
- };
1047
- for (const source of this.current.keys()) mark(source);
1048
- this.oncommit(() => batch.discard());
1049
- _assertClassBrand(_Batch_brand, batch, _unlink).call(batch);
1050
- current_batch = this;
1051
- _assertClassBrand(_Batch_brand, this, _process).call(this);
1052
- }
1053
977
  /**
1054
978
  * @param {Effect[]} effects
1055
979
  */
@@ -1057,7 +981,7 @@ function _defer_effects(effects) {
1057
981
  for (var i = 0; i < effects.length; i += 1) defer_effect(effects[i], _classPrivateFieldGet2(_dirty_effects$1, this), _classPrivateFieldGet2(_maybe_dirty_effects$1, this));
1058
982
  }
1059
983
  function _commit$1() {
1060
- for (let batch = first_batch; batch !== null; batch = _classPrivateFieldGet2(_next, batch)) {
984
+ for (const batch of batches) {
1061
985
  var is_earlier = batch.id < this.id;
1062
986
  /** @type {Source[]} */
1063
987
  var sources = [];
@@ -1069,12 +993,7 @@ function _commit$1() {
1069
993
  }
1070
994
  sources.push(source);
1071
995
  }
1072
- if (is_earlier) for (const [effect, deferred] of this.async_deriveds) {
1073
- const d = batch.async_deriveds.get(effect);
1074
- if (d) deferred.promise.then(d.resolve).catch(d.reject);
1075
- }
1076
- if (!_classPrivateFieldGet2(_started, batch)) continue;
1077
- var others = [...batch.current.keys()].filter((s) => !batch.current.get(s)[1] && !this.current.has(s));
996
+ var others = [...batch.current.keys()].filter((s) => !this.current.has(s));
1078
997
  if (others.length === 0) {
1079
998
  if (is_earlier) batch.discard();
1080
999
  } else if (sources.length > 0) {
@@ -1089,18 +1008,12 @@ function _commit$1() {
1089
1008
  var checked = /* @__PURE__ */ new Map();
1090
1009
  for (var source of sources) mark_effects(source, others, marked, checked);
1091
1010
  checked = /* @__PURE__ */ new Map();
1092
- var current_unequal = [...batch.current].filter(([c, v1]) => {
1093
- const v2 = this.current.get(c);
1094
- if (!v2) return true;
1095
- return v2[0] !== v1[0] || v2[1] !== v1[1];
1096
- }).map(([c]) => c);
1097
- if (current_unequal.length > 0) {
1098
- for (const effect of _classPrivateFieldGet2(_new_effects, this)) if ((effect.f & 155648) === 0 && depends_on(effect, current_unequal, checked)) if ((effect.f & 4194320) !== 0) {
1099
- set_signal_status(effect, DIRTY);
1100
- batch.schedule(effect);
1101
- } else _classPrivateFieldGet2(_dirty_effects$1, batch).add(effect);
1102
- }
1103
- if (_classPrivateFieldGet2(_roots, batch).length > 0 && !_classPrivateFieldGet2(_decrement_queued, batch)) {
1011
+ var current_unequal = [...batch.current.keys()].filter((c) => this.current.has(c) ? this.current.get(c)[0] !== c : true);
1012
+ for (const effect of _classPrivateFieldGet2(_new_effects, this)) if ((effect.f & 155648) === 0 && depends_on(effect, current_unequal, checked)) if ((effect.f & 4194320) !== 0) {
1013
+ set_signal_status(effect, DIRTY);
1014
+ batch.schedule(effect);
1015
+ } else _classPrivateFieldGet2(_dirty_effects$1, batch).add(effect);
1016
+ if (_classPrivateFieldGet2(_roots, batch).length > 0) {
1104
1017
  batch.apply();
1105
1018
  for (var root of _classPrivateFieldGet2(_roots, batch)) _assertClassBrand(_Batch_brand, batch, _traverse).call(batch, root, [], []);
1106
1019
  _classPrivateFieldSet2(_roots, batch, []);
@@ -1108,16 +1021,13 @@ function _commit$1() {
1108
1021
  batch.deactivate();
1109
1022
  }
1110
1023
  }
1111
- }
1112
- function _unlink() {
1113
- if (!this.linked) return;
1114
- var prev = _classPrivateFieldGet2(_prev, this);
1115
- var next = _classPrivateFieldGet2(_next, this);
1116
- if (prev === null) first_batch = next;
1117
- else _classPrivateFieldSet2(_next, prev, next);
1118
- if (next === null) last_batch = prev;
1119
- else _classPrivateFieldSet2(_prev, next, prev);
1120
- this.linked = false;
1024
+ for (const batch of batches) if (_classPrivateFieldGet2(_blockers, batch).has(this)) {
1025
+ _classPrivateFieldGet2(_blockers, batch).delete(this);
1026
+ if (_classPrivateFieldGet2(_blockers, batch).size === 0 && !_assertClassBrand(_Batch_brand, batch, _is_deferred).call(batch)) {
1027
+ batch.activate();
1028
+ _assertClassBrand(_Batch_brand, batch, _process).call(batch);
1029
+ }
1030
+ }
1121
1031
  }
1122
1032
  /**
1123
1033
  * Synchronously flush any pending updates.
@@ -1270,7 +1180,7 @@ function reset_all(effect) {
1270
1180
  }
1271
1181
  }
1272
1182
  //#endregion
1273
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/reactivity/create-subscriber.js
1183
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/reactivity/create-subscriber.js
1274
1184
  /**
1275
1185
  * Returns a `subscribe` function that integrates external event-based systems with Svelte's reactivity.
1276
1186
  * It's particularly useful for integrating with web APIs like `MediaQuery`, `IntersectionObserver`, or `WebSocket`.
@@ -1343,13 +1253,13 @@ function createSubscriber(start) {
1343
1253
  };
1344
1254
  }
1345
1255
  //#endregion
1346
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
1256
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
1347
1257
  /** @import { Effect, Source, TemplateNode, } from '#client' */
1348
1258
  /**
1349
1259
  * @typedef {{
1350
- * onerror?: ((error: unknown, reset: () => void) => void) | null;
1351
- * failed?: ((anchor: Node, error: () => unknown, reset: () => () => void) => void) | null;
1352
- * pending?: ((anchor: Node) => void) | null;
1260
+ * onerror?: (error: unknown, reset: () => void) => void;
1261
+ * failed?: (anchor: Node, error: () => unknown, reset: () => () => void) => void;
1262
+ * pending?: (anchor: Node) => void;
1353
1263
  * }} BoundaryProps
1354
1264
  */
1355
1265
  var flags = EFFECT_TRANSPARENT | EFFECT_PRESERVED;
@@ -1496,7 +1406,7 @@ var Boundary = class {
1496
1406
  if (_classPrivateFieldGet2(_main_effect, this)) current_batch.skip_effect(_classPrivateFieldGet2(_main_effect, this));
1497
1407
  if (_classPrivateFieldGet2(_pending_effect, this)) current_batch.skip_effect(_classPrivateFieldGet2(_pending_effect, this));
1498
1408
  if (_classPrivateFieldGet2(_failed_effect, this)) current_batch.skip_effect(_classPrivateFieldGet2(_failed_effect, this));
1499
- current_batch.oncommit(() => {
1409
+ current_batch.on_fork_commit(() => {
1500
1410
  _assertClassBrand(_Boundary_brand, this, _handle_error).call(this, error);
1501
1411
  });
1502
1412
  } else _assertClassBrand(_Boundary_brand, this, _handle_error).call(this, error);
@@ -1696,8 +1606,8 @@ function _handle_error(error) {
1696
1606
  });
1697
1607
  }
1698
1608
  //#endregion
1699
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/reactivity/async.js
1700
- /** @import { Blocker, Effect, Source, Value } from '#client' */
1609
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/reactivity/async.js
1610
+ /** @import { Blocker, Effect, Value } from '#client' */
1701
1611
  /**
1702
1612
  * @param {Blocker[]} blockers
1703
1613
  * @param {Array<() => any>} sync
@@ -1707,34 +1617,30 @@ function _handle_error(error) {
1707
1617
  function flatten(blockers, sync, async, fn) {
1708
1618
  const d = is_runes() ? derived : derived_safe_equal;
1709
1619
  var pending = blockers.filter((b) => !b.settled);
1710
- var deriveds = sync.map(d);
1711
1620
  if (async.length === 0 && pending.length === 0) {
1712
- fn(deriveds);
1621
+ fn(sync.map(d));
1713
1622
  return;
1714
1623
  }
1715
1624
  var parent = active_effect;
1716
1625
  var restore = capture();
1717
1626
  var blocker_promise = pending.length === 1 ? pending[0].promise : pending.length > 1 ? Promise.all(pending.map((b) => b.promise)) : null;
1718
- /**
1719
- * @param {Source[]} async
1720
- */
1721
- function finish(async) {
1722
- if ((parent.f & 16384) !== 0) return;
1627
+ /** @param {Value[]} values */
1628
+ function finish(values) {
1723
1629
  restore();
1724
1630
  try {
1725
- fn([...deriveds, ...async]);
1631
+ fn(values);
1726
1632
  } catch (error) {
1727
- invoke_error_boundary(error, parent);
1633
+ if ((parent.f & 16384) === 0) invoke_error_boundary(error, parent);
1728
1634
  }
1729
1635
  unset_context();
1730
1636
  }
1731
- var decrement_pending = increment_pending();
1732
1637
  if (async.length === 0) {
1733
- /** @type {Promise<any>} */ blocker_promise.then(() => finish([])).finally(decrement_pending);
1638
+ /** @type {Promise<any>} */ blocker_promise.then(() => finish(sync.map(d)));
1734
1639
  return;
1735
1640
  }
1641
+ var decrement_pending = increment_pending();
1736
1642
  function run() {
1737
- Promise.all(async.map((expression) => /* @__PURE__ */ async_derived(expression))).then(finish).catch((error) => invoke_error_boundary(error, parent)).finally(decrement_pending);
1643
+ Promise.all(async.map((expression) => /* @__PURE__ */ async_derived(expression))).then((result) => finish([...sync.map(d), ...result])).catch((error) => invoke_error_boundary(error, parent)).finally(() => decrement_pending());
1738
1644
  }
1739
1645
  if (blocker_promise) blocker_promise.then(() => {
1740
1646
  restore();
@@ -1776,12 +1682,12 @@ function increment_pending() {
1776
1682
  var effect = active_effect;
1777
1683
  var boundary = effect.b;
1778
1684
  var batch = current_batch;
1779
- var blocking = !!boundary?.is_rendered();
1780
- boundary?.update_pending_count(1, batch);
1685
+ var blocking = boundary.is_rendered();
1686
+ boundary.update_pending_count(1, batch);
1781
1687
  batch.increment(blocking, effect);
1782
- return () => {
1783
- boundary?.update_pending_count(-1, batch);
1784
- batch.decrement(blocking, effect);
1688
+ return (skip = false) => {
1689
+ boundary.update_pending_count(-1, batch);
1690
+ batch.decrement(blocking, effect, skip);
1785
1691
  };
1786
1692
  }
1787
1693
  /**
@@ -1789,7 +1695,7 @@ function increment_pending() {
1789
1695
  * @param {() => V} fn
1790
1696
  * @returns {Derived<V>}
1791
1697
  */
1792
- /*#__NO_SIDE_EFFECTS__*/
1698
+ /* @__NO_SIDE_EFFECTS__ */
1793
1699
  function derived(fn) {
1794
1700
  var flags = 2 | DIRTY;
1795
1701
  if (active_effect !== null) active_effect.f |= EFFECT_PRESERVED;
@@ -1808,7 +1714,6 @@ function derived(fn) {
1808
1714
  ac: null
1809
1715
  };
1810
1716
  }
1811
- var OBSOLETE = Symbol("obsolete");
1812
1717
  /**
1813
1718
  * @template V
1814
1719
  * @param {() => V | Promise<V>} fn
@@ -1816,24 +1721,22 @@ var OBSOLETE = Symbol("obsolete");
1816
1721
  * @param {string} [location] If provided, print a warning if the value is not read immediately after update
1817
1722
  * @returns {Promise<Source<V>>}
1818
1723
  */
1819
- /*#__NO_SIDE_EFFECTS__*/
1724
+ /* @__NO_SIDE_EFFECTS__ */
1820
1725
  function async_derived(fn, label, location) {
1821
1726
  let parent = active_effect;
1822
1727
  if (parent === null) async_derived_orphan();
1823
1728
  var promise = void 0;
1824
1729
  var signal = source(UNINITIALIZED);
1825
1730
  var should_suspend = !active_reaction;
1826
- /** @type {Set<ReturnType<typeof deferred<V>>>} */
1827
- var deferreds = /* @__PURE__ */ new Set();
1731
+ /** @type {Map<Batch, ReturnType<typeof deferred<V>>>} */
1732
+ var deferreds = /* @__PURE__ */ new Map();
1828
1733
  async_effect(() => {
1829
1734
  var effect = active_effect;
1830
1735
  /** @type {ReturnType<typeof deferred<V>>} */
1831
1736
  var d = deferred();
1832
1737
  promise = d.promise;
1833
1738
  try {
1834
- Promise.resolve(fn()).then(d.resolve, (e) => {
1835
- if (e !== STALE_REACTION) d.reject(e);
1836
- }).finally(unset_context);
1739
+ Promise.resolve(fn()).then(d.resolve, d.reject).finally(unset_context);
1837
1740
  } catch (error) {
1838
1741
  d.reject(error);
1839
1742
  unset_context();
@@ -1841,19 +1744,22 @@ function async_derived(fn, label, location) {
1841
1744
  var batch = current_batch;
1842
1745
  if (should_suspend) {
1843
1746
  if ((effect.f & 32768) !== 0) var decrement_pending = increment_pending();
1844
- if (parent.b?.is_rendered()) batch.async_deriveds.get(effect)?.reject(OBSOLETE);
1845
- else for (const d of deferreds.values()) d.reject(OBSOLETE);
1846
- deferreds.add(d);
1847
- batch.async_deriveds.set(effect, d);
1747
+ if (parent.b.is_rendered()) {
1748
+ deferreds.get(batch)?.reject(STALE_REACTION);
1749
+ deferreds.delete(batch);
1750
+ } else {
1751
+ for (const d of deferreds.values()) d.reject(STALE_REACTION);
1752
+ deferreds.clear();
1753
+ }
1754
+ deferreds.set(batch, d);
1848
1755
  }
1849
1756
  /**
1850
1757
  * @param {any} value
1851
1758
  * @param {unknown} error
1852
1759
  */
1853
1760
  const handler = (value, error = void 0) => {
1854
- decrement_pending?.();
1855
- deferreds.delete(d);
1856
- if (error === OBSOLETE) return;
1761
+ if (decrement_pending) decrement_pending(error === STALE_REACTION);
1762
+ if (error === STALE_REACTION || (effect.f & 16384) !== 0) return;
1857
1763
  batch.activate();
1858
1764
  if (error) {
1859
1765
  signal.f |= ERROR_VALUE;
@@ -1861,13 +1767,18 @@ function async_derived(fn, label, location) {
1861
1767
  } else {
1862
1768
  if ((signal.f & 8388608) !== 0) signal.f ^= ERROR_VALUE;
1863
1769
  internal_set(signal, value);
1770
+ for (const [b, d] of deferreds) {
1771
+ deferreds.delete(b);
1772
+ if (b === batch) break;
1773
+ d.reject(STALE_REACTION);
1774
+ }
1864
1775
  }
1865
1776
  batch.deactivate();
1866
1777
  };
1867
1778
  d.promise.then(handler, (e) => handler(null, e || "unknown"));
1868
1779
  });
1869
1780
  teardown(() => {
1870
- for (const d of deferreds) d.reject(OBSOLETE);
1781
+ for (const d of deferreds.values()) d.reject(STALE_REACTION);
1871
1782
  });
1872
1783
  return new Promise((fulfil) => {
1873
1784
  /** @param {Promise<V>} p */
@@ -1886,7 +1797,7 @@ function async_derived(fn, label, location) {
1886
1797
  * @param {() => V} fn
1887
1798
  * @returns {Derived<V>}
1888
1799
  */
1889
- /*#__NO_SIDE_EFFECTS__*/
1800
+ /* @__NO_SIDE_EFFECTS__ */
1890
1801
  function user_derived(fn) {
1891
1802
  const d = /* @__PURE__ */ derived(fn);
1892
1803
  if (!async_mode_flag) push_reaction_value(d);
@@ -1897,7 +1808,7 @@ function user_derived(fn) {
1897
1808
  * @param {() => V} fn
1898
1809
  * @returns {Derived<V>}
1899
1810
  */
1900
- /*#__NO_SIDE_EFFECTS__*/
1811
+ /* @__NO_SIDE_EFFECTS__ */
1901
1812
  function derived_safe_equal(fn) {
1902
1813
  const signal = /* @__PURE__ */ derived(fn);
1903
1814
  signal.equals = safe_equals;
@@ -1923,7 +1834,7 @@ function execute_derived(derived) {
1923
1834
  var value;
1924
1835
  var prev_active_effect = active_effect;
1925
1836
  var parent = derived.parent;
1926
- if (!is_destroying_effect && parent !== null && derived.v !== UNINITIALIZED && (parent.f & 24576) !== 0) {
1837
+ if (!is_destroying_effect && parent !== null && (parent.f & 24576) !== 0) {
1927
1838
  derived_inert();
1928
1839
  return derived.v;
1929
1840
  }
@@ -1946,10 +1857,8 @@ function update_derived(derived) {
1946
1857
  if (!derived.equals(value)) {
1947
1858
  derived.wv = increment_write_version();
1948
1859
  if (!current_batch?.is_fork || derived.deps === null) {
1949
- if (current_batch !== null) {
1950
- current_batch.capture(derived, value, true);
1951
- previous_batch?.capture(derived, value, true);
1952
- } else derived.v = value;
1860
+ if (current_batch !== null) current_batch.capture(derived, value, true);
1861
+ else derived.v = value;
1953
1862
  if (derived.deps === null) {
1954
1863
  set_signal_status(derived, CLEAN);
1955
1864
  return;
@@ -1969,7 +1878,7 @@ function freeze_derived_effects(derived) {
1969
1878
  for (const e of derived.effects) if (e.teardown || e.ac) {
1970
1879
  e.teardown?.();
1971
1880
  e.ac?.abort(STALE_REACTION);
1972
- if (e.fn !== null) e.teardown = noop;
1881
+ e.teardown = noop;
1973
1882
  e.ac = null;
1974
1883
  remove_reactions(e, 0);
1975
1884
  destroy_effect_children(e);
@@ -1980,12 +1889,12 @@ function freeze_derived_effects(derived) {
1980
1889
  */
1981
1890
  function unfreeze_derived_effects(derived) {
1982
1891
  if (derived.effects === null) return;
1983
- for (const e of derived.effects) if (e.teardown && e.fn !== null) update_effect(e);
1892
+ for (const e of derived.effects) if (e.teardown) update_effect(e);
1984
1893
  }
1985
1894
  //#endregion
1986
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/reactivity/sources.js
1895
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/reactivity/sources.js
1987
1896
  /** @import { Derived, Effect, Source, Value } from '#client' */
1988
- /** @type {Set<Effect>} */
1897
+ /** @type {Set<any>} */
1989
1898
  var eager_effects = /* @__PURE__ */ new Set();
1990
1899
  /** @type {Map<Source, any>} */
1991
1900
  var old_values = /* @__PURE__ */ new Map();
@@ -2011,7 +1920,7 @@ function source(v, stack) {
2011
1920
  * @param {V} v
2012
1921
  * @param {Error | null} [stack]
2013
1922
  */
2014
- /*#__NO_SIDE_EFFECTS__*/
1923
+ /* @__NO_SIDE_EFFECTS__ */
2015
1924
  function state(v, stack) {
2016
1925
  const s = source(v, stack);
2017
1926
  push_reaction_value(s);
@@ -2023,7 +1932,7 @@ function state(v, stack) {
2023
1932
  * @param {boolean} [immutable]
2024
1933
  * @returns {Source<V>}
2025
1934
  */
2026
- /*#__NO_SIDE_EFFECTS__*/
1935
+ /* @__NO_SIDE_EFFECTS__ */
2027
1936
  function mutable_source(initial_value, immutable = false, trackable = true) {
2028
1937
  const s = source(initial_value);
2029
1938
  if (!immutable) s.equals = safe_equals;
@@ -2041,7 +1950,7 @@ function mutable_source(initial_value, immutable = false, trackable = true) {
2041
1950
  * @returns {V}
2042
1951
  */
2043
1952
  function set(source, value, should_proxy = false) {
2044
- 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();
1953
+ 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();
2045
1954
  return internal_set(source, should_proxy ? proxy(value) : value, legacy_updates);
2046
1955
  }
2047
1956
  /**
@@ -2073,13 +1982,7 @@ function flush_eager_effects() {
2073
1982
  eager_effects_deferred = false;
2074
1983
  for (const effect of eager_effects) {
2075
1984
  if ((effect.f & 1024) !== 0) set_signal_status(effect, MAYBE_DIRTY);
2076
- let dirty;
2077
- try {
2078
- dirty = is_dirty(effect);
2079
- } catch {
2080
- dirty = true;
2081
- }
2082
- if (dirty) update_effect(effect);
1985
+ if (is_dirty(effect)) update_effect(effect);
2083
1986
  }
2084
1987
  eager_effects.clear();
2085
1988
  }
@@ -2107,8 +2010,7 @@ function mark_reactions(signal, status, updated_during_traversal) {
2107
2010
  if (!runes && reaction === active_effect) continue;
2108
2011
  var not_dirty = (flags & DIRTY) === 0;
2109
2012
  if (not_dirty) set_signal_status(reaction, status);
2110
- if ((flags & 131072) !== 0) eager_effects.add(reaction);
2111
- else if ((flags & 2) !== 0) {
2013
+ if ((flags & 2) !== 0) {
2112
2014
  var derived = reaction;
2113
2015
  batch_values?.delete(derived);
2114
2016
  if ((flags & 65536) === 0) {
@@ -2281,19 +2183,8 @@ function proxy(value) {
2281
2183
  }
2282
2184
  });
2283
2185
  }
2284
- new Set([
2285
- "copyWithin",
2286
- "fill",
2287
- "pop",
2288
- "push",
2289
- "reverse",
2290
- "shift",
2291
- "sort",
2292
- "splice",
2293
- "unshift"
2294
- ]);
2295
2186
  //#endregion
2296
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/dom/operations.js
2187
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/dom/operations.js
2297
2188
  /** @import { Effect, TemplateNode } from '#client' */
2298
2189
  /** @type {Window} */
2299
2190
  var $window;
@@ -2317,13 +2208,13 @@ function init_operations() {
2317
2208
  first_child_getter = get_descriptor(node_prototype, "firstChild").get;
2318
2209
  next_sibling_getter = get_descriptor(node_prototype, "nextSibling").get;
2319
2210
  if (is_extensible(element_prototype)) {
2320
- /** @type {any} */ element_prototype[CLASS_CACHE] = void 0;
2321
- /** @type {any} */ element_prototype[ATTRIBUTES_CACHE] = null;
2322
- /** @type {any} */ element_prototype[STYLE_CACHE] = void 0;
2211
+ element_prototype.__click = void 0;
2212
+ element_prototype.__className = void 0;
2213
+ element_prototype.__attributes = null;
2214
+ element_prototype.__style = void 0;
2323
2215
  element_prototype.__e = void 0;
2324
2216
  }
2325
- if (is_extensible(text_prototype))
2326
- /** @type {any} */ text_prototype[TEXT_CACHE] = void 0;
2217
+ if (is_extensible(text_prototype)) text_prototype.__t = void 0;
2327
2218
  }
2328
2219
  /**
2329
2220
  * @param {string} value
@@ -2336,7 +2227,7 @@ function create_text(value = "") {
2336
2227
  * @template {Node} N
2337
2228
  * @param {N} node
2338
2229
  */
2339
- /*@__NO_SIDE_EFFECTS__*/
2230
+ /* @__NO_SIDE_EFFECTS__ */
2340
2231
  function get_first_child(node) {
2341
2232
  return first_child_getter.call(node);
2342
2233
  }
@@ -2344,7 +2235,7 @@ function get_first_child(node) {
2344
2235
  * @template {Node} N
2345
2236
  * @param {N} node
2346
2237
  */
2347
- /*@__NO_SIDE_EFFECTS__*/
2238
+ /* @__NO_SIDE_EFFECTS__ */
2348
2239
  function get_next_sibling(node) {
2349
2240
  return next_sibling_getter.call(node);
2350
2241
  }
@@ -2440,12 +2331,6 @@ function should_defer_append() {
2440
2331
  return (active_effect.f & REACTION_RAN) !== 0;
2441
2332
  }
2442
2333
  /**
2443
- * Branching here is intentional and load-bearing for perf. `createElement(tag)`
2444
- * hits a fast path in Blink that `createElementNS(NAMESPACE_HTML, tag)` doesn't,
2445
- * and passing an explicit `undefined` as the trailing options arg measurably
2446
- * slows both APIs. Funnelling every case through a single `createElementNS(ns,
2447
- * tag, options)` call would be smaller but slower on the HTML path.
2448
- *
2449
2334
  * @template {keyof HTMLElementTagNameMap | string} T
2450
2335
  * @param {T} tag
2451
2336
  * @param {string} [namespace]
@@ -2453,8 +2338,8 @@ function should_defer_append() {
2453
2338
  * @returns {T extends keyof HTMLElementTagNameMap ? HTMLElementTagNameMap[T] : Element}
2454
2339
  */
2455
2340
  function create_element(tag, namespace, is) {
2456
- if (namespace == null || namespace === "http://www.w3.org/1999/xhtml") return is ? document.createElement(tag, { is }) : document.createElement(tag);
2457
- return is ? document.createElementNS(namespace, tag, { is }) : document.createElementNS(namespace, tag);
2341
+ let options = is ? { is } : void 0;
2342
+ return document.createElementNS(namespace ?? "http://www.w3.org/1999/xhtml", tag, options);
2458
2343
  }
2459
2344
  /**
2460
2345
  * Browsers split text nodes larger than 65536 bytes when parsing.
@@ -2471,7 +2356,7 @@ function merge_text_nodes(text) {
2471
2356
  }
2472
2357
  }
2473
2358
  //#endregion
2474
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
2359
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
2475
2360
  /**
2476
2361
  * @template T
2477
2362
  * @param {() => T} fn
@@ -2489,7 +2374,7 @@ function without_reactive_context(fn) {
2489
2374
  }
2490
2375
  }
2491
2376
  //#endregion
2492
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/reactivity/effects.js
2377
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/reactivity/effects.js
2493
2378
  /** @import { Blocker, ComponentContext, ComponentContextLegacy, Derived, Effect, TemplateNode, TransitionManager } from '#client' */
2494
2379
  /**
2495
2380
  * @param {'$effect' | '$effect.pre' | '$inspect'} rune
@@ -2589,7 +2474,7 @@ function teardown(fn) {
2589
2474
  function user_effect(fn) {
2590
2475
  validate_effect("$effect");
2591
2476
  var flags = active_effect.f;
2592
- if (!active_reaction && (flags & 32) !== 0 && component_context !== null && !component_context.i) {
2477
+ if (!active_reaction && (flags & 32) !== 0 && (flags & 32768) === 0) {
2593
2478
  var context = component_context;
2594
2479
  (context.e ?? (context.e = [])).push(fn);
2595
2480
  } else return create_user_effect(fn);
@@ -2662,9 +2547,7 @@ function render_effect(fn, flags = 0) {
2662
2547
  */
2663
2548
  function template_effect(fn, sync = [], async = [], blockers = []) {
2664
2549
  flatten(blockers, sync, async, (values) => {
2665
- create_effect(8, () => {
2666
- fn(...values.map(get));
2667
- });
2550
+ create_effect(8, () => fn(...values.map(get)));
2668
2551
  });
2669
2552
  }
2670
2553
  /**
@@ -2740,7 +2623,7 @@ function destroy_effect(effect, remove_dom = true) {
2740
2623
  remove_effect_dom(effect.nodes.start, effect.nodes.end);
2741
2624
  removed = true;
2742
2625
  }
2743
- effect.f |= DESTROYING;
2626
+ set_signal_status(effect, DESTROYING);
2744
2627
  destroy_effect_children(effect, remove_dom && !removed);
2745
2628
  remove_reactions(effect, 0);
2746
2629
  var transitions = effect.nodes && effect.nodes.t;
@@ -2875,14 +2758,14 @@ function move_effect(effect, fragment) {
2875
2758
  }
2876
2759
  }
2877
2760
  //#endregion
2878
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/legacy.js
2761
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/legacy.js
2879
2762
  /**
2880
2763
  * @type {Set<Value> | null}
2881
2764
  * @deprecated
2882
2765
  */
2883
2766
  var captured_signals = null;
2884
2767
  //#endregion
2885
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/runtime.js
2768
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/runtime.js
2886
2769
  /** @import { Derived, Effect, Reaction, Source, Value } from '#client' */
2887
2770
  var is_updating_effect = false;
2888
2771
  var is_destroying_effect = false;
@@ -2906,12 +2789,13 @@ function set_active_effect(effect) {
2906
2789
  /**
2907
2790
  * When sources are created within a reaction, reading and writing
2908
2791
  * them within that reaction should not cause a re-run
2909
- * @type {null | Set<Source>}
2792
+ * @type {null | Source[]}
2910
2793
  */
2911
2794
  var current_sources = null;
2912
2795
  /** @param {Value} value */
2913
2796
  function push_reaction_value(value) {
2914
- if (active_reaction !== null && (!async_mode_flag || (active_reaction.f & 2) !== 0)) (current_sources ?? (current_sources = /* @__PURE__ */ new Set())).add(value);
2797
+ if (active_reaction !== null && (!async_mode_flag || (active_reaction.f & 2) !== 0)) if (current_sources === null) current_sources = [value];
2798
+ else current_sources.push(value);
2915
2799
  }
2916
2800
  /**
2917
2801
  * The dependencies of the reaction that is currently being executed. In many cases,
@@ -2976,7 +2860,7 @@ function is_dirty(reaction) {
2976
2860
  function schedule_possible_effect_self_invalidation(signal, effect, root = true) {
2977
2861
  var reactions = signal.reactions;
2978
2862
  if (reactions === null) return;
2979
- if (!async_mode_flag && current_sources !== null && current_sources.has(signal)) return;
2863
+ if (!async_mode_flag && current_sources !== null && includes.call(current_sources, signal)) return;
2980
2864
  for (var i = 0; i < reactions.length; i++) {
2981
2865
  var reaction = reactions[i];
2982
2866
  if ((reaction.f & 2) !== 0) schedule_possible_effect_self_invalidation(reaction, effect, false);
@@ -3131,7 +3015,7 @@ function get(signal) {
3131
3015
  var is_derived = (signal.f & 2) !== 0;
3132
3016
  captured_signals?.add(signal);
3133
3017
  if (active_reaction !== null && !untracking) {
3134
- if (!(active_effect !== null && (active_effect.f & 16384) !== 0) && (current_sources === null || !current_sources.has(signal))) {
3018
+ if (!(active_effect !== null && (active_effect.f & 16384) !== 0) && (current_sources === null || !includes.call(current_sources, signal))) {
3135
3019
  var deps = active_reaction.deps;
3136
3020
  if ((active_reaction.f & 2097152) !== 0) {
3137
3021
  if (signal.rv < read_version) {
@@ -3142,8 +3026,7 @@ function get(signal) {
3142
3026
  }
3143
3027
  } else {
3144
3028
  var _active_reaction;
3145
- (_active_reaction = active_reaction).deps ?? (_active_reaction.deps = []);
3146
- if (!includes.call(active_reaction.deps, signal)) active_reaction.deps.push(signal);
3029
+ ((_active_reaction = active_reaction).deps ?? (_active_reaction.deps = [])).push(signal);
3147
3030
  var reactions = signal.reactions;
3148
3031
  if (reactions === null) signal.reactions = [active_reaction];
3149
3032
  else if (!includes.call(reactions, active_reaction)) reactions.push(active_reaction);
@@ -3226,7 +3109,7 @@ function untrack(fn) {
3226
3109
  }
3227
3110
  }
3228
3111
  //#endregion
3229
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/dom/elements/events.js
3112
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/dom/elements/events.js
3230
3113
  /**
3231
3114
  * Used on elements, as a map of event type -> event handler,
3232
3115
  * and on events themselves to track which element handled an event
@@ -3283,7 +3166,8 @@ function handle_event_propagation(event) {
3283
3166
  */
3284
3167
  var other_errors = [];
3285
3168
  while (current_target !== null) {
3286
- if (current_target === handler_element) break;
3169
+ /** @type {null | Element} */
3170
+ var parent_element = current_target.assignedSlot || current_target.parentNode || current_target.host || null;
3287
3171
  try {
3288
3172
  var delegated = current_target[event_symbol]?.[event_name];
3289
3173
  if (delegated != null && (!current_target.disabled || event.target === current_target)) delegated.call(current_target, event);
@@ -3291,9 +3175,8 @@ function handle_event_propagation(event) {
3291
3175
  if (throw_error) other_errors.push(error);
3292
3176
  else throw_error = error;
3293
3177
  }
3294
- if (event.cancelBubble) break;
3295
- path_idx++;
3296
- current_target = path_idx < path.length ? path[path_idx] : null;
3178
+ if (event.cancelBubble || parent_element === handler_element || parent_element === null) break;
3179
+ current_target = parent_element;
3297
3180
  }
3298
3181
  if (throw_error) {
3299
3182
  for (let error of other_errors) queueMicrotask(() => {
@@ -3309,7 +3192,7 @@ function handle_event_propagation(event) {
3309
3192
  }
3310
3193
  }
3311
3194
  //#endregion
3312
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/dom/reconciler.js
3195
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/dom/reconciler.js
3313
3196
  var policy = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", {
3314
3197
  /** @param {string} html */
3315
3198
  createHTML: (html) => {
@@ -3328,7 +3211,7 @@ function create_fragment_from_html(html) {
3328
3211
  return elem.content;
3329
3212
  }
3330
3213
  //#endregion
3331
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/dom/template.js
3214
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/dom/template.js
3332
3215
  /** @import { Effect, EffectNodes, TemplateNode } from '#client' */
3333
3216
  /** @import { TemplateStructure } from './types' */
3334
3217
  /**
@@ -3349,7 +3232,7 @@ function assign_nodes(start, end) {
3349
3232
  * @param {number} flags
3350
3233
  * @returns {() => Node | Node[]}
3351
3234
  */
3352
- /*#__NO_SIDE_EFFECTS__*/
3235
+ /* @__NO_SIDE_EFFECTS__ */
3353
3236
  function from_html(content, flags) {
3354
3237
  var is_fragment = (flags & 1) !== 0;
3355
3238
  var use_import_node = (flags & 2) !== 0;
@@ -3450,10 +3333,9 @@ function is_passive_event(name) {
3450
3333
  * @returns {void}
3451
3334
  */
3452
3335
  function set_text(text, value) {
3453
- var _text;
3454
3336
  var str = value == null ? "" : typeof value === "object" ? `${value}` : value;
3455
- if (str !== ((_text = text)[TEXT_CACHE] ?? (_text[TEXT_CACHE] = text.nodeValue))) {
3456
- /** @type {any} */ text[TEXT_CACHE] = str;
3337
+ if (str !== (text.__t ?? (text.__t = text.nodeValue))) {
3338
+ text.__t = str;
3457
3339
  text.nodeValue = `${str}`;
3458
3340
  }
3459
3341
  }
@@ -3633,7 +3515,7 @@ function unmount(component, options) {
3633
3515
  return Promise.resolve();
3634
3516
  }
3635
3517
  //#endregion
3636
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/dom/blocks/branches.js
3518
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/dom/blocks/branches.js
3637
3519
  /** @import { Effect, TemplateNode } from '#client' */
3638
3520
  var _batches = /* @__PURE__ */ new WeakMap();
3639
3521
  var _onscreen = /* @__PURE__ */ new WeakMap();
@@ -3675,7 +3557,6 @@ var BranchManager = class {
3675
3557
  } else {
3676
3558
  var offscreen = _classPrivateFieldGet2(_offscreen, this).get(key);
3677
3559
  if (offscreen) {
3678
- resume_effect(offscreen.effect);
3679
3560
  _classPrivateFieldGet2(_onscreen, this).set(key, offscreen.effect);
3680
3561
  _classPrivateFieldGet2(_offscreen, this).delete(key);
3681
3562
  /** @type {TemplateNode} */ offscreen.fragment.lastChild.remove();
@@ -3756,7 +3637,7 @@ var BranchManager = class {
3756
3637
  }
3757
3638
  };
3758
3639
  //#endregion
3759
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/dom/blocks/if.js
3640
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/dom/blocks/if.js
3760
3641
  /** @import { TemplateNode } from '#client' */
3761
3642
  /**
3762
3643
  * @param {TemplateNode} node
@@ -3802,7 +3683,7 @@ function if_block(node, fn, elseif = false) {
3802
3683
  }, flags);
3803
3684
  }
3804
3685
  //#endregion
3805
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/dom/blocks/each.js
3686
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/dom/blocks/each.js
3806
3687
  /** @import { EachItem, EachOutroGroup, EachState, Effect, EffectNodes, MaybeSource, Source, TemplateNode, TransitionManager, Value } from '#client' */
3807
3688
  /** @import { Batch } from '../../reactivity/batch.js'; */
3808
3689
  /**
@@ -4274,7 +4155,7 @@ function html(node, get_value, is_controlled = false, svg = false, mathml = fals
4274
4155
  });
4275
4156
  }
4276
4157
  //#endregion
4277
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/dom/css.js
4158
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/dom/css.js
4278
4159
  /**
4279
4160
  * @param {Node} anchor
4280
4161
  * @param {{ hash: string, code: string }} css
@@ -4292,7 +4173,7 @@ function append_styles(anchor, css) {
4292
4173
  });
4293
4174
  }
4294
4175
  //#endregion
4295
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/dom/elements/attributes.js
4176
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/dom/elements/attributes.js
4296
4177
  /** @import { Blocker, Effect } from '#client' */
4297
4178
  var IS_CUSTOM_ELEMENT = Symbol("is custom element");
4298
4179
  var IS_HTML = Symbol("is html");
@@ -4323,8 +4204,7 @@ function set_attribute(element, attribute, value, skip_warning) {
4323
4204
  * @param {Element} element
4324
4205
  */
4325
4206
  function get_attributes(element) {
4326
- var _element;
4327
- return (_element = element)[ATTRIBUTES_CACHE] ?? (_element[ATTRIBUTES_CACHE] = {
4207
+ return element.__attributes ?? (element.__attributes = {
4328
4208
  [IS_CUSTOM_ELEMENT]: element.nodeName.includes("-"),
4329
4209
  [IS_HTML]: element.namespaceURI === "http://www.w3.org/1999/xhtml"
4330
4210
  });
@@ -4342,13 +4222,13 @@ function get_setters(element) {
4342
4222
  var element_proto = Element.prototype;
4343
4223
  while (element_proto !== proto) {
4344
4224
  descriptors = get_descriptors(proto);
4345
- for (var key in descriptors) if (descriptors[key].set && key !== "innerHTML" && key !== "textContent" && key !== "innerText") setters.push(key);
4225
+ for (var key in descriptors) if (descriptors[key].set) setters.push(key);
4346
4226
  proto = get_prototype_of(proto);
4347
4227
  }
4348
4228
  return setters;
4349
4229
  }
4350
4230
  //#endregion
4351
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/dom/elements/bindings/size.js
4231
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/dom/elements/bindings/size.js
4352
4232
  var _ResizeObserverSingleton;
4353
4233
  var _listeners = /* @__PURE__ */ new WeakMap();
4354
4234
  var _observer = /* @__PURE__ */ new WeakMap();
@@ -4400,8 +4280,8 @@ function _getObserver() {
4400
4280
  }
4401
4281
  _defineProperty(ResizeObserverSingleton, "entries", /* @__PURE__ */ new WeakMap());
4402
4282
  //#endregion
4403
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/reactivity/props.js
4404
- /** @import { Derived, Effect, Source } from './types.js' */
4283
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/reactivity/props.js
4284
+ /** @import { Effect, Source } from './types.js' */
4405
4285
  /**
4406
4286
  * This function is responsible for synchronizing a possibly bound prop with the inner component state.
4407
4287
  * It is used whenever the compiler sees that the component writes to the prop, or when it has a default prop_value.
@@ -4418,12 +4298,7 @@ function prop(props, key, flags, fallback) {
4418
4298
  var lazy = (flags & 16) !== 0;
4419
4299
  var fallback_value = fallback;
4420
4300
  var fallback_dirty = true;
4421
- var fallback_signal = void 0;
4422
4301
  var get_fallback = () => {
4423
- if (lazy && runes) {
4424
- fallback_signal ?? (fallback_signal = /* @__PURE__ */ derived(fallback));
4425
- return get(fallback_signal);
4426
- }
4427
4302
  if (fallback_dirty) {
4428
4303
  fallback_dirty = false;
4429
4304
  fallback_value = lazy ? untrack(fallback) : fallback;
@@ -4493,7 +4368,7 @@ function prop(props, key, flags, fallback) {
4493
4368
  });
4494
4369
  }
4495
4370
  //#endregion
4496
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/legacy/legacy-client.js
4371
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/legacy/legacy-client.js
4497
4372
  /** @import { ComponentConstructorOptions, ComponentType, SvelteComponent, Component } from 'svelte' */
4498
4373
  /**
4499
4374
  * Takes the same options as a Svelte 4 component and the component function and returns a Svelte 4 compatible component.
@@ -4612,7 +4487,7 @@ var Svelte4Component = class {
4612
4487
  }
4613
4488
  };
4614
4489
  //#endregion
4615
- //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/dom/elements/custom-element.js
4490
+ //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/dom/elements/custom-element.js
4616
4491
  /**
4617
4492
  * @typedef {Object} CustomElementPropDefinition
4618
4493
  * @property {string} [attribute]
@@ -4898,18 +4773,18 @@ function create_custom_element(Component, props_definition, slots, exports, shad
4898
4773
  }
4899
4774
  //#endregion
4900
4775
  //#region src/print/Print.svelte
4901
- var root = /* @__PURE__ */ from_html(`<div class="mb-4 prose prose-sm svelte-1fx5wwa"></div>`);
4902
- var root_1 = /* @__PURE__ */ from_html(`<div class="mb-2 prose prose-sm svelte-1fx5wwa"></div>`);
4903
- var root_2 = /* @__PURE__ */ from_html(`<img class="max-h-14 object-contain"/>`);
4776
+ var root_1 = /* @__PURE__ */ from_html(`<div class="mb-4 prose prose-sm svelte-1fx5wwa"></div>`);
4777
+ var root_2 = /* @__PURE__ */ from_html(`<div class="mb-2 prose prose-sm svelte-1fx5wwa"></div>`);
4778
+ var root_4 = /* @__PURE__ */ from_html(`<img class="max-h-14 object-contain"/>`);
4904
4779
  var root_3 = /* @__PURE__ */ from_html(`<div class="mb-4 prose prose-sm svelte-1fx5wwa"><!> <span class="inline-block min-w-[6rem] border-b-2 border-gray-600 print:border-black px-1"><!></span> <!></div>`);
4905
- var root_4 = /* @__PURE__ */ from_html(`<div><strong>Audio:</strong> </div>`);
4906
- var root_5 = /* @__PURE__ */ from_html(`<div><strong>Transcript:</strong> </div>`);
4907
- var root_6 = /* @__PURE__ */ from_html(`<div class="text-sm mb-4"><!> <!></div>`);
4908
- var root_7 = /* @__PURE__ */ from_html(`<span class="font-medium"> </span> <!>`, 1);
4909
- var root_8 = /* @__PURE__ */ from_html(`<span class="font-medium">(key)</span>`);
4910
- var root_9 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
4780
+ var root_8 = /* @__PURE__ */ from_html(`<div><strong>Audio:</strong> </div>`);
4781
+ var root_9 = /* @__PURE__ */ from_html(`<div><strong>Transcript:</strong> </div>`);
4782
+ var root_7 = /* @__PURE__ */ from_html(`<div class="text-sm mb-4"><!> <!></div>`);
4783
+ var root_11 = /* @__PURE__ */ from_html(`<span class="font-medium"> </span> <!>`, 1);
4784
+ var root_14 = /* @__PURE__ */ from_html(`<span class="font-medium">(key)</span>`);
4785
+ var root_13 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
4911
4786
  var root_10 = /* @__PURE__ */ from_html(`<li><!></li>`);
4912
- var root_11 = /* @__PURE__ */ from_html(`<div class="p-4 print:p-0"><!> <!> <!> <!> <ul class="text-sm list-disc pl-5"></ul></div>`);
4787
+ var root = /* @__PURE__ */ from_html(`<div class="p-4 print:p-0"><!> <!> <!> <!> <ul class="text-sm list-disc pl-5"></ul></div>`);
4913
4788
  var $$css = {
4914
4789
  hash: "svelte-1fx5wwa",
4915
4790
  code: ".prose.svelte-1fx5wwa p {margin:0.5em 0;}.prose.svelte-1fx5wwa strong {font-weight:600;}"
@@ -4950,10 +4825,10 @@ function Print($$anchor, $$props) {
4950
4825
  flushSync();
4951
4826
  }
4952
4827
  };
4953
- var div = root_11();
4828
+ var div = root();
4954
4829
  var node = child(div);
4955
4830
  var consequent = ($$anchor) => {
4956
- var div_1 = root();
4831
+ var div_1 = root_1();
4957
4832
  html(div_1, () => get(prompt), true);
4958
4833
  reset(div_1);
4959
4834
  append($$anchor, div_1);
@@ -4963,7 +4838,7 @@ function Print($$anchor, $$props) {
4963
4838
  });
4964
4839
  var node_1 = sibling(node, 2);
4965
4840
  var consequent_1 = ($$anchor) => {
4966
- var div_2 = root_1();
4841
+ var div_2 = root_2();
4967
4842
  html(div_2, () => model().sentenceHtml, true);
4968
4843
  reset(div_2);
4969
4844
  append($$anchor, div_2);
@@ -4979,7 +4854,7 @@ function Print($$anchor, $$props) {
4979
4854
  var span = sibling(node_3, 2);
4980
4855
  var node_4 = child(span);
4981
4856
  var consequent_2 = ($$anchor) => {
4982
- var img = root_2();
4857
+ var img = root_4();
4983
4858
  template_effect(() => {
4984
4859
  set_attribute(img, "src", get(correct).imageUrl);
4985
4860
  set_attribute(img, "alt", get(correct).imageAlt || "");
@@ -5009,10 +4884,10 @@ function Print($$anchor, $$props) {
5009
4884
  });
5010
4885
  var node_7 = sibling(node_2, 2);
5011
4886
  var consequent_7 = ($$anchor) => {
5012
- var div_4 = root_6();
4887
+ var div_4 = root_7();
5013
4888
  var node_8 = child(div_4);
5014
4889
  var consequent_5 = ($$anchor) => {
5015
- var div_5 = root_4();
4890
+ var div_5 = root_8();
5016
4891
  var text_1 = sibling(child(div_5));
5017
4892
  reset(div_5);
5018
4893
  template_effect(() => set_text(text_1, ` ${model().audioUrl ?? ""}`));
@@ -5023,7 +4898,7 @@ function Print($$anchor, $$props) {
5023
4898
  });
5024
4899
  var node_9 = sibling(node_8, 2);
5025
4900
  var consequent_6 = ($$anchor) => {
5026
- var div_6 = root_5();
4901
+ var div_6 = root_9();
5027
4902
  var text_2 = sibling(child(div_6));
5028
4903
  reset(div_6);
5029
4904
  template_effect(() => set_text(text_2, ` ${model().audioTranscript ?? ""}`));
@@ -5043,7 +4918,7 @@ function Print($$anchor, $$props) {
5043
4918
  var li = root_10();
5044
4919
  var node_10 = child(li);
5045
4920
  var consequent_9 = ($$anchor) => {
5046
- var fragment_1 = root_7();
4921
+ var fragment_1 = root_11();
5047
4922
  var span_1 = first_child(fragment_1);
5048
4923
  var text_3 = child(span_1, true);
5049
4924
  reset(span_1);
@@ -5058,12 +4933,12 @@ function Print($$anchor, $$props) {
5058
4933
  append($$anchor, fragment_1);
5059
4934
  };
5060
4935
  var alternate_1 = ($$anchor) => {
5061
- var fragment_2 = root_9();
4936
+ var fragment_2 = root_13();
5062
4937
  var node_12 = first_child(fragment_2);
5063
4938
  html(node_12, () => get(c).labelHtml || "");
5064
4939
  var node_13 = sibling(node_12, 2);
5065
4940
  var consequent_10 = ($$anchor) => {
5066
- append($$anchor, root_8());
4941
+ append($$anchor, root_14());
5067
4942
  };
5068
4943
  if_block(node_13, ($$render) => {
5069
4944
  if (get(showAnswerKey) && get(c).id === model()?.correctChoiceId) $$render(consequent_10);