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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/configure.js +2 -0
  2. package/dist/author/index.d.ts +0 -1
  3. package/dist/author/index.js +292 -171
  4. package/dist/author/index.js.map +1 -1
  5. package/dist/controller/defaults.d.ts +0 -1
  6. package/dist/controller/index.d.ts +0 -1
  7. package/dist/controller/index.js.map +1 -1
  8. package/dist/delivery/computeAudioMode.d.ts +0 -1
  9. package/dist/delivery/computeChoiceCorrectness.d.ts +0 -1
  10. package/dist/delivery/computeDisplayState.d.ts +0 -1
  11. package/dist/delivery/computeLayoutProfile.d.ts +0 -1
  12. package/dist/delivery/computeLayoutStyle.d.ts +0 -1
  13. package/dist/delivery/index.d.ts +0 -1
  14. package/dist/delivery/index.js +409 -284
  15. package/dist/delivery/index.js.map +1 -1
  16. package/dist/delivery/variant-css-map.d.ts +0 -1
  17. package/dist/index.d.ts +0 -1
  18. package/dist/index.iife.d.ts +0 -1
  19. package/dist/index.iife.js +6 -6
  20. package/dist/index.js +409 -284
  21. package/dist/index.js.map +1 -1
  22. package/dist/print/index.d.ts +0 -1
  23. package/dist/print/index.js +363 -238
  24. package/dist/print/index.js.map +1 -1
  25. package/dist/runtime-support.d.ts +12 -0
  26. package/dist/runtime-support.js +14 -0
  27. package/dist/runtime-support.js.map +1 -0
  28. package/dist/shared/layoutLimits.d.ts +0 -1
  29. package/dist/shared/types.d.ts +0 -1
  30. package/package.json +19 -5
  31. package/dist/author/index.d.ts.map +0 -1
  32. package/dist/controller/defaults.d.ts.map +0 -1
  33. package/dist/controller/index.d.ts.map +0 -1
  34. package/dist/delivery/computeAudioMode.d.ts.map +0 -1
  35. package/dist/delivery/computeChoiceCorrectness.d.ts.map +0 -1
  36. package/dist/delivery/computeDisplayState.d.ts.map +0 -1
  37. package/dist/delivery/computeLayoutProfile.d.ts.map +0 -1
  38. package/dist/delivery/computeLayoutStyle.d.ts.map +0 -1
  39. package/dist/delivery/index.d.ts.map +0 -1
  40. package/dist/delivery/variant-css-map.d.ts.map +0 -1
  41. package/dist/index.d.ts.map +0 -1
  42. package/dist/index.iife.d.ts.map +0 -1
  43. package/dist/print/index.d.ts.map +0 -1
  44. package/dist/shared/layoutLimits.d.ts.map +0 -1
  45. package/dist/shared/types.d.ts.map +0 -1
package/dist/index.js CHANGED
@@ -1,16 +1,16 @@
1
- //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/disclose-version.js
1
+ //#region ../../../node_modules/.bun/svelte@5.56.1/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.55.5/node_modules/svelte/src/constants.js
7
+ //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/constants.js
8
8
  var HYDRATION_ERROR = {};
9
- var UNINITIALIZED = Symbol();
9
+ var UNINITIALIZED = Symbol("uninitialized");
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.55.5/node_modules/svelte/src/internal/shared/utils.js
13
+ //#region ../../../node_modules/.bun/svelte@5.56.1/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.129.0/helpers/typeof.js
50
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/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.129.0/helpers/toPrimitive.js
60
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/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.129.0/helpers/toPropertyKey.js
72
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/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.129.0/helpers/defineProperty.js
78
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/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,6 +114,11 @@ 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
+ var FORM_RESET_HANDLER = Symbol("form reset");
117
122
  /** allow users to ignore aborted signal errors if `reason.name === 'StaleReactionError` */
118
123
  var STALE_REACTION = new class StaleReactionError extends Error {
119
124
  constructor(..._args) {
@@ -124,7 +129,7 @@ var STALE_REACTION = new class StaleReactionError extends Error {
124
129
  }();
125
130
  var IS_XHTML = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
126
131
  //#endregion
127
- //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/errors.js
132
+ //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/errors.js
128
133
  /**
129
134
  * Cannot create a `$derived(...)` with an `await` expression outside of an effect tree
130
135
  * @returns {never}
@@ -235,7 +240,7 @@ function svelte_boundary_reset_noop() {
235
240
  console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`);
236
241
  }
237
242
  //#endregion
238
- //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/dom/hydration.js
243
+ //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/dom/hydration.js
239
244
  /** @import { TemplateNode } from '#client' */
240
245
  /**
241
246
  * Use this variable to guard everything related to hydration code so it can be treeshaken out
@@ -314,7 +319,7 @@ function read_hydration_instruction(node) {
314
319
  return node.data;
315
320
  }
316
321
  //#endregion
317
- //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/reactivity/equality.js
322
+ //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/reactivity/equality.js
318
323
  /** @import { Equals } from '#client' */
319
324
  /** @type {Equals} */
320
325
  function equals(value) {
@@ -333,13 +338,13 @@ function safe_equals(value) {
333
338
  return !safe_not_equal(value, this.v);
334
339
  }
335
340
  //#endregion
336
- //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/flags/index.js
341
+ //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/flags/index.js
337
342
  /** True if experimental.async=true */
338
343
  var async_mode_flag = false;
339
344
  /** True if we're not certain that we only have Svelte 5 code in the compilation */
340
345
  var legacy_mode_flag = false;
341
346
  //#endregion
342
- //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/context.js
347
+ //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/context.js
343
348
  /** @import { ComponentContext, DevStackEntry, Effect } from '#client' */
344
349
  /** @type {ComponentContext | null} */
345
350
  var component_context = null;
@@ -391,7 +396,7 @@ function is_runes() {
391
396
  return !legacy_mode_flag || component_context !== null && component_context.l === null;
392
397
  }
393
398
  //#endregion
394
- //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/dom/task.js
399
+ //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/dom/task.js
395
400
  /** @type {Array<() => void>} */
396
401
  var micro_tasks = [];
397
402
  function run_micro_tasks() {
@@ -449,7 +454,7 @@ function invoke_error_boundary(error, effect) {
449
454
  throw error;
450
455
  }
451
456
  //#endregion
452
- //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/reactivity/status.js
457
+ //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/reactivity/status.js
453
458
  /** @import { Derived, Signal } from '#client' */
454
459
  var STATUS_MASK = ~(DIRTY | MAYBE_DIRTY | CLEAN);
455
460
  /**
@@ -468,7 +473,7 @@ function update_derived_status(derived) {
468
473
  else set_signal_status(derived, MAYBE_DIRTY);
469
474
  }
470
475
  //#endregion
471
- //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/reactivity/utils.js
476
+ //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/reactivity/utils.js
472
477
  /** @import { Derived, Effect, Value } from '#client' */
473
478
  /**
474
479
  * @param {Value[] | null} deps
@@ -496,7 +501,7 @@ function defer_effect(effect, dirty_effects, maybe_dirty_effects) {
496
501
  set_signal_status(effect, CLEAN);
497
502
  }
498
503
  //#endregion
499
- //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/reactivity/store.js
504
+ //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/reactivity/store.js
500
505
  /**
501
506
  * We set this to `true` when updating a store so that we correctly
502
507
  * schedule effects if the update takes place inside a `$:` effect
@@ -526,46 +531,53 @@ function capture_store_binding(fn) {
526
531
  }
527
532
  }
528
533
  //#endregion
529
- //#region \0@oxc-project+runtime@0.129.0/helpers/checkPrivateRedeclaration.js
534
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/checkPrivateRedeclaration.js
530
535
  function _checkPrivateRedeclaration(e, t) {
531
536
  if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
532
537
  }
533
538
  //#endregion
534
- //#region \0@oxc-project+runtime@0.129.0/helpers/classPrivateMethodInitSpec.js
539
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/classPrivateMethodInitSpec.js
535
540
  function _classPrivateMethodInitSpec(e, a) {
536
541
  _checkPrivateRedeclaration(e, a), a.add(e);
537
542
  }
538
543
  //#endregion
539
- //#region \0@oxc-project+runtime@0.129.0/helpers/classPrivateFieldInitSpec.js
544
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/classPrivateFieldInitSpec.js
540
545
  function _classPrivateFieldInitSpec(e, t, a) {
541
546
  _checkPrivateRedeclaration(e, t), t.set(e, a);
542
547
  }
543
548
  //#endregion
544
- //#region \0@oxc-project+runtime@0.129.0/helpers/assertClassBrand.js
549
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/assertClassBrand.js
545
550
  function _assertClassBrand(e, t, n) {
546
551
  if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
547
552
  throw new TypeError("Private element is not present on this object");
548
553
  }
549
554
  //#endregion
550
- //#region \0@oxc-project+runtime@0.129.0/helpers/classPrivateFieldGet2.js
551
- function _classPrivateFieldGet2(s, a) {
552
- return s.get(_assertClassBrand(s, a));
553
- }
554
- //#endregion
555
- //#region \0@oxc-project+runtime@0.129.0/helpers/classPrivateFieldSet2.js
555
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/classPrivateFieldSet2.js
556
556
  function _classPrivateFieldSet2(s, a, r) {
557
557
  return s.set(_assertClassBrand(s, a), r), r;
558
558
  }
559
559
  //#endregion
560
- //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/reactivity/batch.js
560
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/classPrivateFieldGet2.js
561
+ function _classPrivateFieldGet2(s, a) {
562
+ return s.get(_assertClassBrand(s, a));
563
+ }
564
+ //#endregion
565
+ //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/reactivity/batch.js
561
566
  /** @import { Fork } from 'svelte' */
562
567
  /** @import { Derived, Effect, Reaction, Source, Value } from '#client' */
563
568
  var _Batch;
564
- /** @type {Set<Batch>} */
565
- var batches = /* @__PURE__ */ new Set();
569
+ /** @type {Batch | null} */
570
+ var first_batch = null;
571
+ /** @type {Batch | null} */
572
+ var last_batch = null;
566
573
  /** @type {Batch | null} */
567
574
  var current_batch = null;
568
575
  /**
576
+ * This is needed to avoid overwriting inputs
577
+ * @type {Batch | null}
578
+ */
579
+ var previous_batch = null;
580
+ /**
569
581
  * When time travelling (i.e. working in one batch, while other batches
570
582
  * still have ongoing work), we ignore the real values of affected
571
583
  * signals in favour of their values within the batch
@@ -593,9 +605,11 @@ var collected_effects = null;
593
605
  var legacy_updates = null;
594
606
  var flush_count = 0;
595
607
  var uid = 1;
608
+ var _started = /* @__PURE__ */ new WeakMap();
609
+ var _prev = /* @__PURE__ */ new WeakMap();
610
+ var _next = /* @__PURE__ */ new WeakMap();
596
611
  var _commit_callbacks = /* @__PURE__ */ new WeakMap();
597
612
  var _discard_callbacks = /* @__PURE__ */ new WeakMap();
598
- var _fork_commit_callbacks = /* @__PURE__ */ new WeakMap();
599
613
  var _pending = /* @__PURE__ */ new WeakMap();
600
614
  var _blocking_pending = /* @__PURE__ */ new WeakMap();
601
615
  var _deferred = /* @__PURE__ */ new WeakMap();
@@ -606,12 +620,21 @@ var _maybe_dirty_effects$1 = /* @__PURE__ */ new WeakMap();
606
620
  var _skipped_branches = /* @__PURE__ */ new WeakMap();
607
621
  var _unskipped_branches = /* @__PURE__ */ new WeakMap();
608
622
  var _decrement_queued = /* @__PURE__ */ new WeakMap();
609
- var _blockers = /* @__PURE__ */ new WeakMap();
610
623
  var _Batch_brand = /* @__PURE__ */ new WeakSet();
611
624
  var Batch = class Batch {
612
625
  constructor() {
613
626
  _classPrivateMethodInitSpec(this, _Batch_brand);
614
627
  _defineProperty(this, "id", uid++);
628
+ _classPrivateFieldInitSpec(this, _started, false);
629
+ _defineProperty(this, "linked", true);
630
+ _classPrivateFieldInitSpec(this, _prev, null);
631
+ _classPrivateFieldInitSpec(this, _next, null);
632
+ _defineProperty(
633
+ this,
634
+ /** @type {Map<Effect, ReturnType<typeof deferred<any>>>} */
635
+ "async_deriveds",
636
+ /* @__PURE__ */ new Map()
637
+ );
615
638
  _defineProperty(
616
639
  this,
617
640
  /**
@@ -635,8 +658,7 @@ var Batch = class Batch {
635
658
  );
636
659
  _classPrivateFieldInitSpec(this, _commit_callbacks, /* @__PURE__ */ new Set());
637
660
  _classPrivateFieldInitSpec(this, _discard_callbacks, /* @__PURE__ */ new Set());
638
- _classPrivateFieldInitSpec(this, _fork_commit_callbacks, /* @__PURE__ */ new Set());
639
- _classPrivateFieldInitSpec(this, _pending, /* @__PURE__ */ new Map());
661
+ _classPrivateFieldInitSpec(this, _pending, 0);
640
662
  _classPrivateFieldInitSpec(this, _blocking_pending, /* @__PURE__ */ new Map());
641
663
  _classPrivateFieldInitSpec(this, _deferred, null);
642
664
  _classPrivateFieldInitSpec(this, _roots, []);
@@ -647,7 +669,12 @@ var Batch = class Batch {
647
669
  _classPrivateFieldInitSpec(this, _unskipped_branches, /* @__PURE__ */ new Set());
648
670
  _defineProperty(this, "is_fork", false);
649
671
  _classPrivateFieldInitSpec(this, _decrement_queued, false);
650
- _classPrivateFieldInitSpec(this, _blockers, /* @__PURE__ */ new Set());
672
+ if (last_batch === null) first_batch = last_batch = this;
673
+ else {
674
+ _classPrivateFieldSet2(_next, last_batch, this);
675
+ _classPrivateFieldSet2(_prev, this, last_batch);
676
+ }
677
+ last_batch = this;
651
678
  }
652
679
  /**
653
680
  * Add an effect to the #skipped_branches map and reset its children
@@ -722,8 +749,8 @@ var Batch = class Batch {
722
749
  discard() {
723
750
  for (const fn of _classPrivateFieldGet2(_discard_callbacks, this)) fn(this);
724
751
  _classPrivateFieldGet2(_discard_callbacks, this).clear();
725
- _classPrivateFieldGet2(_fork_commit_callbacks, this).clear();
726
- batches.delete(this);
752
+ _assertClassBrand(_Batch_brand, this, _unlink).call(this);
753
+ _classPrivateFieldGet2(_deferred, this)?.resolve();
727
754
  }
728
755
  /**
729
756
  * @param {Effect} effect
@@ -736,8 +763,7 @@ var Batch = class Batch {
736
763
  * @param {Effect} effect
737
764
  */
738
765
  increment(blocking, effect) {
739
- let pending_count = _classPrivateFieldGet2(_pending, this).get(effect) ?? 0;
740
- _classPrivateFieldGet2(_pending, this).set(effect, pending_count + 1);
766
+ _classPrivateFieldSet2(_pending, this, _classPrivateFieldGet2(_pending, this) + 1);
741
767
  if (blocking) {
742
768
  let blocking_pending_count = _classPrivateFieldGet2(_blocking_pending, this).get(effect) ?? 0;
743
769
  _classPrivateFieldGet2(_blocking_pending, this).set(effect, blocking_pending_count + 1);
@@ -746,22 +772,19 @@ var Batch = class Batch {
746
772
  /**
747
773
  * @param {boolean} blocking
748
774
  * @param {Effect} effect
749
- * @param {boolean} skip - whether to skip updates (because this is triggered by a stale reaction)
750
775
  */
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);
776
+ decrement(blocking, effect) {
777
+ _classPrivateFieldSet2(_pending, this, _classPrivateFieldGet2(_pending, this) - 1);
755
778
  if (blocking) {
756
779
  let blocking_pending_count = _classPrivateFieldGet2(_blocking_pending, this).get(effect) ?? 0;
757
780
  if (blocking_pending_count === 1) _classPrivateFieldGet2(_blocking_pending, this).delete(effect);
758
781
  else _classPrivateFieldGet2(_blocking_pending, this).set(effect, blocking_pending_count - 1);
759
782
  }
760
- if (_classPrivateFieldGet2(_decrement_queued, this) || skip) return;
783
+ if (_classPrivateFieldGet2(_decrement_queued, this)) return;
761
784
  _classPrivateFieldSet2(_decrement_queued, this, true);
762
785
  queue_micro_task(() => {
763
786
  _classPrivateFieldSet2(_decrement_queued, this, false);
764
- this.flush();
787
+ if (this.linked) this.flush();
765
788
  });
766
789
  }
767
790
  /**
@@ -782,48 +805,38 @@ var Batch = class Batch {
782
805
  ondiscard(fn) {
783
806
  _classPrivateFieldGet2(_discard_callbacks, this).add(fn);
784
807
  }
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
- }
793
808
  settled() {
794
809
  return (_classPrivateFieldGet2(_deferred, this) ?? _classPrivateFieldSet2(_deferred, this, deferred())).promise;
795
810
  }
796
811
  static ensure() {
797
812
  if (current_batch === null) {
798
813
  const batch = current_batch = new Batch();
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
- }
814
+ if (!is_processing && !is_flushing_sync) queue_micro_task(() => {
815
+ if (!_classPrivateFieldGet2(_started, batch)) batch.flush();
816
+ });
806
817
  }
807
818
  return current_batch;
808
819
  }
809
820
  apply() {
810
- if (!async_mode_flag || !this.is_fork && batches.size === 1) {
821
+ if (!async_mode_flag || !this.is_fork && _classPrivateFieldGet2(_prev, this) === null && _classPrivateFieldGet2(_next, this) === null) {
811
822
  batch_values = null;
812
823
  return;
813
824
  }
814
825
  batch_values = /* @__PURE__ */ new Map();
815
826
  for (const [source, [value]] of this.current) batch_values.set(source, value);
816
- for (const batch of batches) {
827
+ for (let batch = first_batch; batch !== null; batch = _classPrivateFieldGet2(_next, batch)) {
817
828
  if (batch === this || batch.is_fork) continue;
818
829
  var intersects = false;
819
- var differs = false;
820
830
  if (batch.id < this.id) for (const [source, [, is_derived]] of batch.current) {
821
831
  if (is_derived) continue;
822
- intersects || (intersects = this.current.has(source));
823
- differs || (differs = !this.current.has(source));
832
+ if (this.current.has(source)) {
833
+ intersects = true;
834
+ break;
835
+ }
836
+ }
837
+ if (!intersects) {
838
+ for (const [source, previous] of batch.previous) if (!batch_values.has(source)) batch_values.set(source, previous);
824
839
  }
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);
827
840
  }
828
841
  }
829
842
  /**
@@ -854,12 +867,10 @@ var Batch = class Batch {
854
867
  };
855
868
  _Batch = Batch;
856
869
  function _is_deferred() {
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()) {
861
- var skipped = false;
870
+ if (this.is_fork) return true;
871
+ for (const effect of _classPrivateFieldGet2(_blocking_pending, this).keys()) {
862
872
  var e = effect;
873
+ var skipped = false;
863
874
  while (e.parent !== null) {
864
875
  if (_classPrivateFieldGet2(_skipped_branches, this).has(e)) {
865
876
  skipped = true;
@@ -872,20 +883,19 @@ function _is_blocked() {
872
883
  return false;
873
884
  }
874
885
  function _process() {
886
+ _classPrivateFieldSet2(_started, this, true);
875
887
  if (flush_count++ > 1e3) {
876
- batches.delete(this);
888
+ _assertClassBrand(_Batch_brand, this, _unlink).call(this);
877
889
  infinite_loop_guard();
878
890
  }
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
- }
891
+ for (const e of _classPrivateFieldGet2(_dirty_effects$1, this)) {
892
+ _classPrivateFieldGet2(_maybe_dirty_effects$1, this).delete(e);
893
+ set_signal_status(e, DIRTY);
894
+ this.schedule(e);
895
+ }
896
+ for (const e of _classPrivateFieldGet2(_maybe_dirty_effects$1, this)) {
897
+ set_signal_status(e, MAYBE_DIRTY);
898
+ this.schedule(e);
889
899
  }
890
900
  const roots = _classPrivateFieldGet2(_roots, this);
891
901
  _classPrivateFieldSet2(_roots, this, []);
@@ -903,6 +913,7 @@ function _process() {
903
913
  _assertClassBrand(_Batch_brand, this, _traverse).call(this, root, effects, render_effects);
904
914
  } catch (e) {
905
915
  reset_all(root);
916
+ if (!_assertClassBrand(_Batch_brand, this, _is_deferred).call(this)) this.discard();
906
917
  throw e;
907
918
  }
908
919
  current_batch = null;
@@ -912,30 +923,43 @@ function _process() {
912
923
  }
913
924
  collected_effects = null;
914
925
  legacy_updates = null;
915
- if (_assertClassBrand(_Batch_brand, this, _is_deferred).call(this) || _assertClassBrand(_Batch_brand, this, _is_blocked).call(this)) {
926
+ if (_assertClassBrand(_Batch_brand, this, _is_deferred).call(this)) {
916
927
  _assertClassBrand(_Batch_brand, this, _defer_effects).call(this, render_effects);
917
928
  _assertClassBrand(_Batch_brand, this, _defer_effects).call(this, effects);
918
929
  for (const [e, t] of _classPrivateFieldGet2(_skipped_branches, this)) reset_branch(e, t);
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();
930
+ if (updates.length > 0)
931
+ /** @type {Batch} */ _assertClassBrand(_Batch_brand, current_batch, _process).call(current_batch);
932
+ return;
928
933
  }
929
- var next_batch = current_batch;
930
- if (_classPrivateFieldGet2(_roots, this).length > 0) {
931
- const batch = next_batch ?? (next_batch = this);
932
- _classPrivateFieldGet2(_roots, batch).push(..._classPrivateFieldGet2(_roots, this).filter((r) => !_classPrivateFieldGet2(_roots, batch).includes(r)));
934
+ const earlier_batch = _assertClassBrand(_Batch_brand, this, _find_earlier_batch).call(this);
935
+ if (earlier_batch) {
936
+ _assertClassBrand(_Batch_brand, this, _defer_effects).call(this, render_effects);
937
+ _assertClassBrand(_Batch_brand, this, _defer_effects).call(this, effects);
938
+ _assertClassBrand(_Batch_brand, earlier_batch, _merge).call(earlier_batch, this);
939
+ return;
933
940
  }
934
- if (next_batch !== null) {
935
- batches.add(next_batch);
936
- _assertClassBrand(_Batch_brand, next_batch, _process).call(next_batch);
941
+ _classPrivateFieldGet2(_dirty_effects$1, this).clear();
942
+ _classPrivateFieldGet2(_maybe_dirty_effects$1, this).clear();
943
+ for (const fn of _classPrivateFieldGet2(_commit_callbacks, this)) fn(this);
944
+ _classPrivateFieldGet2(_commit_callbacks, this).clear();
945
+ previous_batch = this;
946
+ flush_queued_effects(render_effects);
947
+ flush_queued_effects(effects);
948
+ previous_batch = null;
949
+ _classPrivateFieldGet2(_deferred, this)?.resolve();
950
+ var next_batch = current_batch;
951
+ if (_classPrivateFieldGet2(_pending, this) === 0 && (_classPrivateFieldGet2(_roots, this).length === 0 || next_batch !== null)) {
952
+ _assertClassBrand(_Batch_brand, this, _unlink).call(this);
953
+ if (async_mode_flag) {
954
+ _assertClassBrand(_Batch_brand, this, _commit$1).call(this);
955
+ current_batch = next_batch;
956
+ }
937
957
  }
938
- if (async_mode_flag && !batches.has(this)) _assertClassBrand(_Batch_brand, this, _commit$1).call(this);
958
+ if (_classPrivateFieldGet2(_roots, this).length > 0) if (next_batch !== null) {
959
+ const batch = next_batch;
960
+ _classPrivateFieldGet2(_roots, batch).push(..._classPrivateFieldGet2(_roots, this).filter((r) => !_classPrivateFieldGet2(_roots, batch).includes(r)));
961
+ } else next_batch = this;
962
+ if (next_batch !== null) _assertClassBrand(_Batch_brand, next_batch, _process).call(next_batch);
939
963
  }
940
964
  /**
941
965
  * Traverse the effect tree, executing effects or stashing
@@ -974,6 +998,59 @@ function _traverse(root, effects, render_effects) {
974
998
  }
975
999
  }
976
1000
  }
1001
+ function _find_earlier_batch() {
1002
+ var batch = _classPrivateFieldGet2(_prev, this);
1003
+ while (batch !== null) {
1004
+ if (!batch.is_fork) {
1005
+ for (const [value, [, is_derived]] of this.current) if (batch.current.has(value) && !is_derived) return batch;
1006
+ }
1007
+ batch = _classPrivateFieldGet2(_prev, batch);
1008
+ }
1009
+ return null;
1010
+ }
1011
+ /**
1012
+ * @param {Batch} batch
1013
+ */
1014
+ function _merge(batch) {
1015
+ for (const [source, value] of batch.current) {
1016
+ if (!this.previous.has(source) && batch.previous.has(source)) this.previous.set(source, batch.previous.get(source));
1017
+ this.current.set(source, value);
1018
+ }
1019
+ for (const [effect, deferred] of batch.async_deriveds) {
1020
+ const d = this.async_deriveds.get(effect);
1021
+ if (d) deferred.promise.then(d.resolve).catch(d.reject);
1022
+ }
1023
+ this.transfer_effects(_classPrivateFieldGet2(_dirty_effects$1, batch), _classPrivateFieldGet2(_maybe_dirty_effects$1, batch));
1024
+ /**
1025
+ * mark all effects that depend on `batch.current`, except the
1026
+ * async effects that we just resolved (TODO unless they depend
1027
+ * on values in this batch that are NOT in the later batch?).
1028
+ * Through this we also will populate the correct #skipped_branches,
1029
+ * oncommit callbacks etc, so we don't need to merge them separately.
1030
+ * @param {Value} value
1031
+ */
1032
+ const mark = (value) => {
1033
+ var reactions = value.reactions;
1034
+ if (reactions === null) return;
1035
+ for (const reaction of reactions) {
1036
+ var flags = reaction.f;
1037
+ if ((flags & 2) !== 0) mark(reaction);
1038
+ else {
1039
+ var effect = reaction;
1040
+ if (flags & 4194320 && !this.async_deriveds.has(effect)) {
1041
+ _classPrivateFieldGet2(_maybe_dirty_effects$1, this).delete(effect);
1042
+ set_signal_status(effect, DIRTY);
1043
+ this.schedule(effect);
1044
+ }
1045
+ }
1046
+ }
1047
+ };
1048
+ for (const source of this.current.keys()) mark(source);
1049
+ this.oncommit(() => batch.discard());
1050
+ _assertClassBrand(_Batch_brand, batch, _unlink).call(batch);
1051
+ current_batch = this;
1052
+ _assertClassBrand(_Batch_brand, this, _process).call(this);
1053
+ }
977
1054
  /**
978
1055
  * @param {Effect[]} effects
979
1056
  */
@@ -981,7 +1058,7 @@ function _defer_effects(effects) {
981
1058
  for (var i = 0; i < effects.length; i += 1) defer_effect(effects[i], _classPrivateFieldGet2(_dirty_effects$1, this), _classPrivateFieldGet2(_maybe_dirty_effects$1, this));
982
1059
  }
983
1060
  function _commit$1() {
984
- for (const batch of batches) {
1061
+ for (let batch = first_batch; batch !== null; batch = _classPrivateFieldGet2(_next, batch)) {
985
1062
  var is_earlier = batch.id < this.id;
986
1063
  /** @type {Source[]} */
987
1064
  var sources = [];
@@ -993,7 +1070,12 @@ function _commit$1() {
993
1070
  }
994
1071
  sources.push(source);
995
1072
  }
996
- var others = [...batch.current.keys()].filter((s) => !this.current.has(s));
1073
+ if (is_earlier) for (const [effect, deferred] of this.async_deriveds) {
1074
+ const d = batch.async_deriveds.get(effect);
1075
+ if (d) deferred.promise.then(d.resolve).catch(d.reject);
1076
+ }
1077
+ if (!_classPrivateFieldGet2(_started, batch)) continue;
1078
+ var others = [...batch.current.keys()].filter((s) => !batch.current.get(s)[1] && !this.current.has(s));
997
1079
  if (others.length === 0) {
998
1080
  if (is_earlier) batch.discard();
999
1081
  } else if (sources.length > 0) {
@@ -1008,12 +1090,18 @@ function _commit$1() {
1008
1090
  var checked = /* @__PURE__ */ new Map();
1009
1091
  for (var source of sources) mark_effects(source, others, marked, checked);
1010
1092
  checked = /* @__PURE__ */ new Map();
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) {
1093
+ var current_unequal = [...batch.current].filter(([c, v1]) => {
1094
+ const v2 = this.current.get(c);
1095
+ if (!v2) return true;
1096
+ return v2[0] !== v1[0] || v2[1] !== v1[1];
1097
+ }).map(([c]) => c);
1098
+ if (current_unequal.length > 0) {
1099
+ for (const effect of _classPrivateFieldGet2(_new_effects, this)) if ((effect.f & 155648) === 0 && depends_on(effect, current_unequal, checked)) if ((effect.f & 4194320) !== 0) {
1100
+ set_signal_status(effect, DIRTY);
1101
+ batch.schedule(effect);
1102
+ } else _classPrivateFieldGet2(_dirty_effects$1, batch).add(effect);
1103
+ }
1104
+ if (_classPrivateFieldGet2(_roots, batch).length > 0 && !_classPrivateFieldGet2(_decrement_queued, batch)) {
1017
1105
  batch.apply();
1018
1106
  for (var root of _classPrivateFieldGet2(_roots, batch)) _assertClassBrand(_Batch_brand, batch, _traverse).call(batch, root, [], []);
1019
1107
  _classPrivateFieldSet2(_roots, batch, []);
@@ -1021,13 +1109,16 @@ function _commit$1() {
1021
1109
  batch.deactivate();
1022
1110
  }
1023
1111
  }
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
- }
1112
+ }
1113
+ function _unlink() {
1114
+ if (!this.linked) return;
1115
+ var prev = _classPrivateFieldGet2(_prev, this);
1116
+ var next = _classPrivateFieldGet2(_next, this);
1117
+ if (prev === null) first_batch = next;
1118
+ else _classPrivateFieldSet2(_next, prev, next);
1119
+ if (next === null) last_batch = prev;
1120
+ else _classPrivateFieldSet2(_prev, next, prev);
1121
+ this.linked = false;
1031
1122
  }
1032
1123
  /**
1033
1124
  * Synchronously flush any pending updates.
@@ -1180,7 +1271,7 @@ function reset_all(effect) {
1180
1271
  }
1181
1272
  }
1182
1273
  //#endregion
1183
- //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/reactivity/create-subscriber.js
1274
+ //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/reactivity/create-subscriber.js
1184
1275
  /**
1185
1276
  * Returns a `subscribe` function that integrates external event-based systems with Svelte's reactivity.
1186
1277
  * It's particularly useful for integrating with web APIs like `MediaQuery`, `IntersectionObserver`, or `WebSocket`.
@@ -1253,13 +1344,13 @@ function createSubscriber(start) {
1253
1344
  };
1254
1345
  }
1255
1346
  //#endregion
1256
- //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
1347
+ //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
1257
1348
  /** @import { Effect, Source, TemplateNode, } from '#client' */
1258
1349
  /**
1259
1350
  * @typedef {{
1260
- * onerror?: (error: unknown, reset: () => void) => void;
1261
- * failed?: (anchor: Node, error: () => unknown, reset: () => () => void) => void;
1262
- * pending?: (anchor: Node) => void;
1351
+ * onerror?: ((error: unknown, reset: () => void) => void) | null;
1352
+ * failed?: ((anchor: Node, error: () => unknown, reset: () => () => void) => void) | null;
1353
+ * pending?: ((anchor: Node) => void) | null;
1263
1354
  * }} BoundaryProps
1264
1355
  */
1265
1356
  var flags = EFFECT_TRANSPARENT | EFFECT_PRESERVED;
@@ -1406,7 +1497,7 @@ var Boundary = class {
1406
1497
  if (_classPrivateFieldGet2(_main_effect, this)) current_batch.skip_effect(_classPrivateFieldGet2(_main_effect, this));
1407
1498
  if (_classPrivateFieldGet2(_pending_effect, this)) current_batch.skip_effect(_classPrivateFieldGet2(_pending_effect, this));
1408
1499
  if (_classPrivateFieldGet2(_failed_effect, this)) current_batch.skip_effect(_classPrivateFieldGet2(_failed_effect, this));
1409
- current_batch.on_fork_commit(() => {
1500
+ current_batch.oncommit(() => {
1410
1501
  _assertClassBrand(_Boundary_brand, this, _handle_error).call(this, error);
1411
1502
  });
1412
1503
  } else _assertClassBrand(_Boundary_brand, this, _handle_error).call(this, error);
@@ -1606,8 +1697,8 @@ function _handle_error(error) {
1606
1697
  });
1607
1698
  }
1608
1699
  //#endregion
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' */
1700
+ //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/reactivity/async.js
1701
+ /** @import { Blocker, Effect, Source, Value } from '#client' */
1611
1702
  /**
1612
1703
  * @param {Blocker[]} blockers
1613
1704
  * @param {Array<() => any>} sync
@@ -1617,30 +1708,34 @@ function _handle_error(error) {
1617
1708
  function flatten(blockers, sync, async, fn) {
1618
1709
  const d = is_runes() ? derived : derived_safe_equal;
1619
1710
  var pending = blockers.filter((b) => !b.settled);
1711
+ var deriveds = sync.map(d);
1620
1712
  if (async.length === 0 && pending.length === 0) {
1621
- fn(sync.map(d));
1713
+ fn(deriveds);
1622
1714
  return;
1623
1715
  }
1624
1716
  var parent = active_effect;
1625
1717
  var restore = capture();
1626
1718
  var blocker_promise = pending.length === 1 ? pending[0].promise : pending.length > 1 ? Promise.all(pending.map((b) => b.promise)) : null;
1627
- /** @param {Value[]} values */
1628
- function finish(values) {
1719
+ /**
1720
+ * @param {Source[]} async
1721
+ */
1722
+ function finish(async) {
1723
+ if ((parent.f & 16384) !== 0) return;
1629
1724
  restore();
1630
1725
  try {
1631
- fn(values);
1726
+ fn([...deriveds, ...async]);
1632
1727
  } catch (error) {
1633
- if ((parent.f & 16384) === 0) invoke_error_boundary(error, parent);
1728
+ invoke_error_boundary(error, parent);
1634
1729
  }
1635
1730
  unset_context();
1636
1731
  }
1732
+ var decrement_pending = increment_pending();
1637
1733
  if (async.length === 0) {
1638
- /** @type {Promise<any>} */ blocker_promise.then(() => finish(sync.map(d)));
1734
+ /** @type {Promise<any>} */ blocker_promise.then(() => finish([])).finally(decrement_pending);
1639
1735
  return;
1640
1736
  }
1641
- var decrement_pending = increment_pending();
1642
1737
  function run() {
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
+ Promise.all(async.map((expression) => /* @__PURE__ */ async_derived(expression))).then(finish).catch((error) => invoke_error_boundary(error, parent)).finally(decrement_pending);
1644
1739
  }
1645
1740
  if (blocker_promise) blocker_promise.then(() => {
1646
1741
  restore();
@@ -1682,12 +1777,12 @@ function increment_pending() {
1682
1777
  var effect = active_effect;
1683
1778
  var boundary = effect.b;
1684
1779
  var batch = current_batch;
1685
- var blocking = boundary.is_rendered();
1686
- boundary.update_pending_count(1, batch);
1780
+ var blocking = !!boundary?.is_rendered();
1781
+ boundary?.update_pending_count(1, batch);
1687
1782
  batch.increment(blocking, effect);
1688
- return (skip = false) => {
1689
- boundary.update_pending_count(-1, batch);
1690
- batch.decrement(blocking, effect, skip);
1783
+ return () => {
1784
+ boundary?.update_pending_count(-1, batch);
1785
+ batch.decrement(blocking, effect);
1691
1786
  };
1692
1787
  }
1693
1788
  /**
@@ -1695,7 +1790,7 @@ function increment_pending() {
1695
1790
  * @param {() => V} fn
1696
1791
  * @returns {Derived<V>}
1697
1792
  */
1698
- /* @__NO_SIDE_EFFECTS__ */
1793
+ /*#__NO_SIDE_EFFECTS__*/
1699
1794
  function derived(fn) {
1700
1795
  var flags = 2 | DIRTY;
1701
1796
  if (active_effect !== null) active_effect.f |= EFFECT_PRESERVED;
@@ -1714,6 +1809,7 @@ function derived(fn) {
1714
1809
  ac: null
1715
1810
  };
1716
1811
  }
1812
+ var OBSOLETE = Symbol("obsolete");
1717
1813
  /**
1718
1814
  * @template V
1719
1815
  * @param {() => V | Promise<V>} fn
@@ -1721,22 +1817,24 @@ function derived(fn) {
1721
1817
  * @param {string} [location] If provided, print a warning if the value is not read immediately after update
1722
1818
  * @returns {Promise<Source<V>>}
1723
1819
  */
1724
- /* @__NO_SIDE_EFFECTS__ */
1820
+ /*#__NO_SIDE_EFFECTS__*/
1725
1821
  function async_derived(fn, label, location) {
1726
1822
  let parent = active_effect;
1727
1823
  if (parent === null) async_derived_orphan();
1728
1824
  var promise = void 0;
1729
1825
  var signal = source(UNINITIALIZED);
1730
1826
  var should_suspend = !active_reaction;
1731
- /** @type {Map<Batch, ReturnType<typeof deferred<V>>>} */
1732
- var deferreds = /* @__PURE__ */ new Map();
1827
+ /** @type {Set<ReturnType<typeof deferred<V>>>} */
1828
+ var deferreds = /* @__PURE__ */ new Set();
1733
1829
  async_effect(() => {
1734
1830
  var effect = active_effect;
1735
1831
  /** @type {ReturnType<typeof deferred<V>>} */
1736
1832
  var d = deferred();
1737
1833
  promise = d.promise;
1738
1834
  try {
1739
- Promise.resolve(fn()).then(d.resolve, d.reject).finally(unset_context);
1835
+ Promise.resolve(fn()).then(d.resolve, (e) => {
1836
+ if (e !== STALE_REACTION) d.reject(e);
1837
+ }).finally(unset_context);
1740
1838
  } catch (error) {
1741
1839
  d.reject(error);
1742
1840
  unset_context();
@@ -1744,22 +1842,19 @@ function async_derived(fn, label, location) {
1744
1842
  var batch = current_batch;
1745
1843
  if (should_suspend) {
1746
1844
  if ((effect.f & 32768) !== 0) var decrement_pending = increment_pending();
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);
1845
+ if (parent.b?.is_rendered()) batch.async_deriveds.get(effect)?.reject(OBSOLETE);
1846
+ else for (const d of deferreds.values()) d.reject(OBSOLETE);
1847
+ deferreds.add(d);
1848
+ batch.async_deriveds.set(effect, d);
1755
1849
  }
1756
1850
  /**
1757
1851
  * @param {any} value
1758
1852
  * @param {unknown} error
1759
1853
  */
1760
1854
  const handler = (value, error = void 0) => {
1761
- if (decrement_pending) decrement_pending(error === STALE_REACTION);
1762
- if (error === STALE_REACTION || (effect.f & 16384) !== 0) return;
1855
+ decrement_pending?.();
1856
+ deferreds.delete(d);
1857
+ if (error === OBSOLETE) return;
1763
1858
  batch.activate();
1764
1859
  if (error) {
1765
1860
  signal.f |= ERROR_VALUE;
@@ -1767,18 +1862,13 @@ function async_derived(fn, label, location) {
1767
1862
  } else {
1768
1863
  if ((signal.f & 8388608) !== 0) signal.f ^= ERROR_VALUE;
1769
1864
  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
- }
1775
1865
  }
1776
1866
  batch.deactivate();
1777
1867
  };
1778
1868
  d.promise.then(handler, (e) => handler(null, e || "unknown"));
1779
1869
  });
1780
1870
  teardown(() => {
1781
- for (const d of deferreds.values()) d.reject(STALE_REACTION);
1871
+ for (const d of deferreds) d.reject(OBSOLETE);
1782
1872
  });
1783
1873
  return new Promise((fulfil) => {
1784
1874
  /** @param {Promise<V>} p */
@@ -1797,7 +1887,7 @@ function async_derived(fn, label, location) {
1797
1887
  * @param {() => V} fn
1798
1888
  * @returns {Derived<V>}
1799
1889
  */
1800
- /* @__NO_SIDE_EFFECTS__ */
1890
+ /*#__NO_SIDE_EFFECTS__*/
1801
1891
  function user_derived(fn) {
1802
1892
  const d = /* @__PURE__ */ derived(fn);
1803
1893
  if (!async_mode_flag) push_reaction_value(d);
@@ -1808,7 +1898,7 @@ function user_derived(fn) {
1808
1898
  * @param {() => V} fn
1809
1899
  * @returns {Derived<V>}
1810
1900
  */
1811
- /* @__NO_SIDE_EFFECTS__ */
1901
+ /*#__NO_SIDE_EFFECTS__*/
1812
1902
  function derived_safe_equal(fn) {
1813
1903
  const signal = /* @__PURE__ */ derived(fn);
1814
1904
  signal.equals = safe_equals;
@@ -1834,7 +1924,7 @@ function execute_derived(derived) {
1834
1924
  var value;
1835
1925
  var prev_active_effect = active_effect;
1836
1926
  var parent = derived.parent;
1837
- if (!is_destroying_effect && parent !== null && (parent.f & 24576) !== 0) {
1927
+ if (!is_destroying_effect && parent !== null && derived.v !== UNINITIALIZED && (parent.f & 24576) !== 0) {
1838
1928
  derived_inert();
1839
1929
  return derived.v;
1840
1930
  }
@@ -1857,8 +1947,10 @@ function update_derived(derived) {
1857
1947
  if (!derived.equals(value)) {
1858
1948
  derived.wv = increment_write_version();
1859
1949
  if (!current_batch?.is_fork || derived.deps === null) {
1860
- if (current_batch !== null) current_batch.capture(derived, value, true);
1861
- else derived.v = value;
1950
+ if (current_batch !== null) {
1951
+ current_batch.capture(derived, value, true);
1952
+ previous_batch?.capture(derived, value, true);
1953
+ } else derived.v = value;
1862
1954
  if (derived.deps === null) {
1863
1955
  set_signal_status(derived, CLEAN);
1864
1956
  return;
@@ -1878,7 +1970,7 @@ function freeze_derived_effects(derived) {
1878
1970
  for (const e of derived.effects) if (e.teardown || e.ac) {
1879
1971
  e.teardown?.();
1880
1972
  e.ac?.abort(STALE_REACTION);
1881
- e.teardown = noop;
1973
+ if (e.fn !== null) e.teardown = noop;
1882
1974
  e.ac = null;
1883
1975
  remove_reactions(e, 0);
1884
1976
  destroy_effect_children(e);
@@ -1889,12 +1981,12 @@ function freeze_derived_effects(derived) {
1889
1981
  */
1890
1982
  function unfreeze_derived_effects(derived) {
1891
1983
  if (derived.effects === null) return;
1892
- for (const e of derived.effects) if (e.teardown) update_effect(e);
1984
+ for (const e of derived.effects) if (e.teardown && e.fn !== null) update_effect(e);
1893
1985
  }
1894
1986
  //#endregion
1895
- //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/reactivity/sources.js
1987
+ //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/reactivity/sources.js
1896
1988
  /** @import { Derived, Effect, Source, Value } from '#client' */
1897
- /** @type {Set<any>} */
1989
+ /** @type {Set<Effect>} */
1898
1990
  var eager_effects = /* @__PURE__ */ new Set();
1899
1991
  /** @type {Map<Source, any>} */
1900
1992
  var old_values = /* @__PURE__ */ new Map();
@@ -1920,7 +2012,7 @@ function source(v, stack) {
1920
2012
  * @param {V} v
1921
2013
  * @param {Error | null} [stack]
1922
2014
  */
1923
- /* @__NO_SIDE_EFFECTS__ */
2015
+ /*#__NO_SIDE_EFFECTS__*/
1924
2016
  function state(v, stack) {
1925
2017
  const s = source(v, stack);
1926
2018
  push_reaction_value(s);
@@ -1932,7 +2024,7 @@ function state(v, stack) {
1932
2024
  * @param {boolean} [immutable]
1933
2025
  * @returns {Source<V>}
1934
2026
  */
1935
- /* @__NO_SIDE_EFFECTS__ */
2027
+ /*#__NO_SIDE_EFFECTS__*/
1936
2028
  function mutable_source(initial_value, immutable = false, trackable = true) {
1937
2029
  const s = source(initial_value);
1938
2030
  if (!immutable) s.equals = safe_equals;
@@ -1950,7 +2042,7 @@ function mutable_source(initial_value, immutable = false, trackable = true) {
1950
2042
  * @returns {V}
1951
2043
  */
1952
2044
  function set(source, value, should_proxy = false) {
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
+ 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();
1954
2046
  return internal_set(source, should_proxy ? proxy(value) : value, legacy_updates);
1955
2047
  }
1956
2048
  /**
@@ -1982,7 +2074,13 @@ function flush_eager_effects() {
1982
2074
  eager_effects_deferred = false;
1983
2075
  for (const effect of eager_effects) {
1984
2076
  if ((effect.f & 1024) !== 0) set_signal_status(effect, MAYBE_DIRTY);
1985
- if (is_dirty(effect)) update_effect(effect);
2077
+ let dirty;
2078
+ try {
2079
+ dirty = is_dirty(effect);
2080
+ } catch {
2081
+ dirty = true;
2082
+ }
2083
+ if (dirty) update_effect(effect);
1986
2084
  }
1987
2085
  eager_effects.clear();
1988
2086
  }
@@ -2010,7 +2108,8 @@ function mark_reactions(signal, status, updated_during_traversal) {
2010
2108
  if (!runes && reaction === active_effect) continue;
2011
2109
  var not_dirty = (flags & DIRTY) === 0;
2012
2110
  if (not_dirty) set_signal_status(reaction, status);
2013
- if ((flags & 2) !== 0) {
2111
+ if ((flags & 131072) !== 0) eager_effects.add(reaction);
2112
+ else if ((flags & 2) !== 0) {
2014
2113
  var derived = reaction;
2015
2114
  batch_values?.delete(derived);
2016
2115
  if ((flags & 65536) === 0) {
@@ -2183,8 +2282,19 @@ function proxy(value) {
2183
2282
  }
2184
2283
  });
2185
2284
  }
2285
+ new Set([
2286
+ "copyWithin",
2287
+ "fill",
2288
+ "pop",
2289
+ "push",
2290
+ "reverse",
2291
+ "shift",
2292
+ "sort",
2293
+ "splice",
2294
+ "unshift"
2295
+ ]);
2186
2296
  //#endregion
2187
- //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/dom/operations.js
2297
+ //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/dom/operations.js
2188
2298
  /** @import { Effect, TemplateNode } from '#client' */
2189
2299
  /** @type {Window} */
2190
2300
  var $window;
@@ -2208,13 +2318,13 @@ function init_operations() {
2208
2318
  first_child_getter = get_descriptor(node_prototype, "firstChild").get;
2209
2319
  next_sibling_getter = get_descriptor(node_prototype, "nextSibling").get;
2210
2320
  if (is_extensible(element_prototype)) {
2211
- element_prototype.__click = void 0;
2212
- element_prototype.__className = void 0;
2213
- element_prototype.__attributes = null;
2214
- element_prototype.__style = void 0;
2321
+ /** @type {any} */ element_prototype[CLASS_CACHE] = void 0;
2322
+ /** @type {any} */ element_prototype[ATTRIBUTES_CACHE] = null;
2323
+ /** @type {any} */ element_prototype[STYLE_CACHE] = void 0;
2215
2324
  element_prototype.__e = void 0;
2216
2325
  }
2217
- if (is_extensible(text_prototype)) text_prototype.__t = void 0;
2326
+ if (is_extensible(text_prototype))
2327
+ /** @type {any} */ text_prototype[TEXT_CACHE] = void 0;
2218
2328
  }
2219
2329
  /**
2220
2330
  * @param {string} value
@@ -2227,7 +2337,7 @@ function create_text(value = "") {
2227
2337
  * @template {Node} N
2228
2338
  * @param {N} node
2229
2339
  */
2230
- /* @__NO_SIDE_EFFECTS__ */
2340
+ /*@__NO_SIDE_EFFECTS__*/
2231
2341
  function get_first_child(node) {
2232
2342
  return first_child_getter.call(node);
2233
2343
  }
@@ -2235,7 +2345,7 @@ function get_first_child(node) {
2235
2345
  * @template {Node} N
2236
2346
  * @param {N} node
2237
2347
  */
2238
- /* @__NO_SIDE_EFFECTS__ */
2348
+ /*@__NO_SIDE_EFFECTS__*/
2239
2349
  function get_next_sibling(node) {
2240
2350
  return next_sibling_getter.call(node);
2241
2351
  }
@@ -2331,6 +2441,12 @@ function should_defer_append() {
2331
2441
  return (active_effect.f & REACTION_RAN) !== 0;
2332
2442
  }
2333
2443
  /**
2444
+ * Branching here is intentional and load-bearing for perf. `createElement(tag)`
2445
+ * hits a fast path in Blink that `createElementNS(NAMESPACE_HTML, tag)` doesn't,
2446
+ * and passing an explicit `undefined` as the trailing options arg measurably
2447
+ * slows both APIs. Funnelling every case through a single `createElementNS(ns,
2448
+ * tag, options)` call would be smaller but slower on the HTML path.
2449
+ *
2334
2450
  * @template {keyof HTMLElementTagNameMap | string} T
2335
2451
  * @param {T} tag
2336
2452
  * @param {string} [namespace]
@@ -2338,8 +2454,8 @@ function should_defer_append() {
2338
2454
  * @returns {T extends keyof HTMLElementTagNameMap ? HTMLElementTagNameMap[T] : Element}
2339
2455
  */
2340
2456
  function create_element(tag, namespace, is) {
2341
- let options = is ? { is } : void 0;
2342
- return document.createElementNS(namespace ?? "http://www.w3.org/1999/xhtml", tag, options);
2457
+ if (namespace == null || namespace === "http://www.w3.org/1999/xhtml") return is ? document.createElement(tag, { is }) : document.createElement(tag);
2458
+ return is ? document.createElementNS(namespace, tag, { is }) : document.createElementNS(namespace, tag);
2343
2459
  }
2344
2460
  /**
2345
2461
  * Browsers split text nodes larger than 65536 bytes when parsing.
@@ -2356,20 +2472,21 @@ function merge_text_nodes(text) {
2356
2472
  }
2357
2473
  }
2358
2474
  //#endregion
2359
- //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/dom/elements/misc.js
2475
+ //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/dom/elements/misc.js
2360
2476
  var listening_to_form_reset = false;
2361
2477
  function add_form_reset_listener() {
2362
2478
  if (!listening_to_form_reset) {
2363
2479
  listening_to_form_reset = true;
2364
2480
  document.addEventListener("reset", (evt) => {
2365
2481
  Promise.resolve().then(() => {
2366
- if (!evt.defaultPrevented) for (const e of evt.target.elements) e.__on_r?.();
2482
+ if (!evt.defaultPrevented) for (const e of evt.target.elements)
2483
+ /** @type {any} */ e[FORM_RESET_HANDLER]?.();
2367
2484
  });
2368
2485
  }, { capture: true });
2369
2486
  }
2370
2487
  }
2371
2488
  //#endregion
2372
- //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
2489
+ //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
2373
2490
  /**
2374
2491
  * @template T
2375
2492
  * @param {() => T} fn
@@ -2387,7 +2504,7 @@ function without_reactive_context(fn) {
2387
2504
  }
2388
2505
  }
2389
2506
  //#endregion
2390
- //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/reactivity/effects.js
2507
+ //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/reactivity/effects.js
2391
2508
  /** @import { Blocker, ComponentContext, ComponentContextLegacy, Derived, Effect, TemplateNode, TransitionManager } from '#client' */
2392
2509
  /**
2393
2510
  * @param {'$effect' | '$effect.pre' | '$inspect'} rune
@@ -2487,7 +2604,7 @@ function teardown(fn) {
2487
2604
  function user_effect(fn) {
2488
2605
  validate_effect("$effect");
2489
2606
  var flags = active_effect.f;
2490
- if (!active_reaction && (flags & 32) !== 0 && (flags & 32768) === 0) {
2607
+ if (!active_reaction && (flags & 32) !== 0 && component_context !== null && !component_context.i) {
2491
2608
  var context = component_context;
2492
2609
  (context.e ?? (context.e = [])).push(fn);
2493
2610
  } else return create_user_effect(fn);
@@ -2560,7 +2677,9 @@ function render_effect(fn, flags = 0) {
2560
2677
  */
2561
2678
  function template_effect(fn, sync = [], async = [], blockers = []) {
2562
2679
  flatten(blockers, sync, async, (values) => {
2563
- create_effect(8, () => fn(...values.map(get)));
2680
+ create_effect(8, () => {
2681
+ fn(...values.map(get));
2682
+ });
2564
2683
  });
2565
2684
  }
2566
2685
  /**
@@ -2636,7 +2755,7 @@ function destroy_effect(effect, remove_dom = true) {
2636
2755
  remove_effect_dom(effect.nodes.start, effect.nodes.end);
2637
2756
  removed = true;
2638
2757
  }
2639
- set_signal_status(effect, DESTROYING);
2758
+ effect.f |= DESTROYING;
2640
2759
  destroy_effect_children(effect, remove_dom && !removed);
2641
2760
  remove_reactions(effect, 0);
2642
2761
  var transitions = effect.nodes && effect.nodes.t;
@@ -2771,14 +2890,14 @@ function move_effect(effect, fragment) {
2771
2890
  }
2772
2891
  }
2773
2892
  //#endregion
2774
- //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/legacy.js
2893
+ //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/legacy.js
2775
2894
  /**
2776
2895
  * @type {Set<Value> | null}
2777
2896
  * @deprecated
2778
2897
  */
2779
2898
  var captured_signals = null;
2780
2899
  //#endregion
2781
- //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/runtime.js
2900
+ //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/runtime.js
2782
2901
  /** @import { Derived, Effect, Reaction, Source, Value } from '#client' */
2783
2902
  var is_updating_effect = false;
2784
2903
  var is_destroying_effect = false;
@@ -2802,13 +2921,12 @@ function set_active_effect(effect) {
2802
2921
  /**
2803
2922
  * When sources are created within a reaction, reading and writing
2804
2923
  * them within that reaction should not cause a re-run
2805
- * @type {null | Source[]}
2924
+ * @type {null | Set<Source>}
2806
2925
  */
2807
2926
  var current_sources = null;
2808
2927
  /** @param {Value} value */
2809
2928
  function push_reaction_value(value) {
2810
- if (active_reaction !== null && (!async_mode_flag || (active_reaction.f & 2) !== 0)) if (current_sources === null) current_sources = [value];
2811
- else current_sources.push(value);
2929
+ if (active_reaction !== null && (!async_mode_flag || (active_reaction.f & 2) !== 0)) (current_sources ?? (current_sources = /* @__PURE__ */ new Set())).add(value);
2812
2930
  }
2813
2931
  /**
2814
2932
  * The dependencies of the reaction that is currently being executed. In many cases,
@@ -2873,7 +2991,7 @@ function is_dirty(reaction) {
2873
2991
  function schedule_possible_effect_self_invalidation(signal, effect, root = true) {
2874
2992
  var reactions = signal.reactions;
2875
2993
  if (reactions === null) return;
2876
- if (!async_mode_flag && current_sources !== null && includes.call(current_sources, signal)) return;
2994
+ if (!async_mode_flag && current_sources !== null && current_sources.has(signal)) return;
2877
2995
  for (var i = 0; i < reactions.length; i++) {
2878
2996
  var reaction = reactions[i];
2879
2997
  if ((reaction.f & 2) !== 0) schedule_possible_effect_self_invalidation(reaction, effect, false);
@@ -3028,7 +3146,7 @@ function get(signal) {
3028
3146
  var is_derived = (signal.f & 2) !== 0;
3029
3147
  captured_signals?.add(signal);
3030
3148
  if (active_reaction !== null && !untracking) {
3031
- if (!(active_effect !== null && (active_effect.f & 16384) !== 0) && (current_sources === null || !includes.call(current_sources, signal))) {
3149
+ if (!(active_effect !== null && (active_effect.f & 16384) !== 0) && (current_sources === null || !current_sources.has(signal))) {
3032
3150
  var deps = active_reaction.deps;
3033
3151
  if ((active_reaction.f & 2097152) !== 0) {
3034
3152
  if (signal.rv < read_version) {
@@ -3039,7 +3157,8 @@ function get(signal) {
3039
3157
  }
3040
3158
  } else {
3041
3159
  var _active_reaction;
3042
- ((_active_reaction = active_reaction).deps ?? (_active_reaction.deps = [])).push(signal);
3160
+ (_active_reaction = active_reaction).deps ?? (_active_reaction.deps = []);
3161
+ if (!includes.call(active_reaction.deps, signal)) active_reaction.deps.push(signal);
3043
3162
  var reactions = signal.reactions;
3044
3163
  if (reactions === null) signal.reactions = [active_reaction];
3045
3164
  else if (!includes.call(reactions, active_reaction)) reactions.push(active_reaction);
@@ -3122,7 +3241,7 @@ function untrack(fn) {
3122
3241
  }
3123
3242
  }
3124
3243
  //#endregion
3125
- //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/dom/elements/events.js
3244
+ //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/dom/elements/events.js
3126
3245
  /**
3127
3246
  * Used on elements, as a map of event type -> event handler,
3128
3247
  * and on events themselves to track which element handled an event
@@ -3179,8 +3298,7 @@ function handle_event_propagation(event) {
3179
3298
  */
3180
3299
  var other_errors = [];
3181
3300
  while (current_target !== null) {
3182
- /** @type {null | Element} */
3183
- var parent_element = current_target.assignedSlot || current_target.parentNode || current_target.host || null;
3301
+ if (current_target === handler_element) break;
3184
3302
  try {
3185
3303
  var delegated = current_target[event_symbol]?.[event_name];
3186
3304
  if (delegated != null && (!current_target.disabled || event.target === current_target)) delegated.call(current_target, event);
@@ -3188,8 +3306,9 @@ function handle_event_propagation(event) {
3188
3306
  if (throw_error) other_errors.push(error);
3189
3307
  else throw_error = error;
3190
3308
  }
3191
- if (event.cancelBubble || parent_element === handler_element || parent_element === null) break;
3192
- current_target = parent_element;
3309
+ if (event.cancelBubble) break;
3310
+ path_idx++;
3311
+ current_target = path_idx < path.length ? path[path_idx] : null;
3193
3312
  }
3194
3313
  if (throw_error) {
3195
3314
  for (let error of other_errors) queueMicrotask(() => {
@@ -3205,7 +3324,7 @@ function handle_event_propagation(event) {
3205
3324
  }
3206
3325
  }
3207
3326
  //#endregion
3208
- //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/dom/reconciler.js
3327
+ //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/dom/reconciler.js
3209
3328
  var policy = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", {
3210
3329
  /** @param {string} html */
3211
3330
  createHTML: (html) => {
@@ -3224,7 +3343,7 @@ function create_fragment_from_html(html) {
3224
3343
  return elem.content;
3225
3344
  }
3226
3345
  //#endregion
3227
- //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/dom/template.js
3346
+ //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/dom/template.js
3228
3347
  /** @import { Effect, EffectNodes, TemplateNode } from '#client' */
3229
3348
  /** @import { TemplateStructure } from './types' */
3230
3349
  /**
@@ -3245,7 +3364,7 @@ function assign_nodes(start, end) {
3245
3364
  * @param {number} flags
3246
3365
  * @returns {() => Node | Node[]}
3247
3366
  */
3248
- /* @__NO_SIDE_EFFECTS__ */
3367
+ /*#__NO_SIDE_EFFECTS__*/
3249
3368
  function from_html(content, flags) {
3250
3369
  var is_fragment = (flags & 1) !== 0;
3251
3370
  var use_import_node = (flags & 2) !== 0;
@@ -3280,7 +3399,7 @@ function from_html(content, flags) {
3280
3399
  * @param {'svg' | 'math'} ns
3281
3400
  * @returns {() => Node | Node[]}
3282
3401
  */
3283
- /* @__NO_SIDE_EFFECTS__ */
3402
+ /*#__NO_SIDE_EFFECTS__*/
3284
3403
  function from_namespace(content, flags, ns = "svg") {
3285
3404
  /**
3286
3405
  * Whether or not the first item is a text/element node. If not, we need to
@@ -3316,7 +3435,7 @@ function from_namespace(content, flags, ns = "svg") {
3316
3435
  * @param {string} content
3317
3436
  * @param {number} flags
3318
3437
  */
3319
- /* @__NO_SIDE_EFFECTS__ */
3438
+ /*#__NO_SIDE_EFFECTS__*/
3320
3439
  function from_svg(content, flags) {
3321
3440
  return /* @__PURE__ */ from_namespace(content, flags, "svg");
3322
3441
  }
@@ -3374,9 +3493,10 @@ function is_passive_event(name) {
3374
3493
  * @returns {void}
3375
3494
  */
3376
3495
  function set_text(text, value) {
3496
+ var _text;
3377
3497
  var str = value == null ? "" : typeof value === "object" ? `${value}` : value;
3378
- if (str !== (text.__t ?? (text.__t = text.nodeValue))) {
3379
- text.__t = str;
3498
+ if (str !== ((_text = text)[TEXT_CACHE] ?? (_text[TEXT_CACHE] = text.nodeValue))) {
3499
+ /** @type {any} */ text[TEXT_CACHE] = str;
3380
3500
  text.nodeValue = `${str}`;
3381
3501
  }
3382
3502
  }
@@ -3556,7 +3676,7 @@ function unmount(component, options) {
3556
3676
  return Promise.resolve();
3557
3677
  }
3558
3678
  //#endregion
3559
- //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/dom/blocks/branches.js
3679
+ //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/dom/blocks/branches.js
3560
3680
  /** @import { Effect, TemplateNode } from '#client' */
3561
3681
  var _batches = /* @__PURE__ */ new WeakMap();
3562
3682
  var _onscreen = /* @__PURE__ */ new WeakMap();
@@ -3598,6 +3718,7 @@ var BranchManager = class {
3598
3718
  } else {
3599
3719
  var offscreen = _classPrivateFieldGet2(_offscreen, this).get(key);
3600
3720
  if (offscreen) {
3721
+ resume_effect(offscreen.effect);
3601
3722
  _classPrivateFieldGet2(_onscreen, this).set(key, offscreen.effect);
3602
3723
  _classPrivateFieldGet2(_offscreen, this).delete(key);
3603
3724
  /** @type {TemplateNode} */ offscreen.fragment.lastChild.remove();
@@ -3678,7 +3799,7 @@ var BranchManager = class {
3678
3799
  }
3679
3800
  };
3680
3801
  //#endregion
3681
- //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/dom/blocks/if.js
3802
+ //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/dom/blocks/if.js
3682
3803
  /** @import { TemplateNode } from '#client' */
3683
3804
  /**
3684
3805
  * @param {TemplateNode} node
@@ -3724,7 +3845,7 @@ function if_block(node, fn, elseif = false) {
3724
3845
  }, flags);
3725
3846
  }
3726
3847
  //#endregion
3727
- //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/dom/blocks/each.js
3848
+ //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/dom/blocks/each.js
3728
3849
  /** @import { EachItem, EachOutroGroup, EachState, Effect, EffectNodes, MaybeSource, Source, TemplateNode, TransitionManager, Value } from '#client' */
3729
3850
  /** @import { Batch } from '../../reactivity/batch.js'; */
3730
3851
  /**
@@ -4189,7 +4310,7 @@ function html(node, get_value, is_controlled = false, svg = false, mathml = fals
4189
4310
  });
4190
4311
  }
4191
4312
  //#endregion
4192
- //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/dom/css.js
4313
+ //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/dom/css.js
4193
4314
  /**
4194
4315
  * @param {Node} anchor
4195
4316
  * @param {{ hash: string, code: string }} css
@@ -4207,7 +4328,7 @@ function append_styles$1(anchor, css) {
4207
4328
  });
4208
4329
  }
4209
4330
  //#endregion
4210
- //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/shared/attributes.js
4331
+ //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/shared/attributes.js
4211
4332
  var whitespace = [..." \n\r\f\xA0\v"];
4212
4333
  /**
4213
4334
  * @param {any} value
@@ -4317,7 +4438,7 @@ function to_style(value, styles) {
4317
4438
  return value == null ? null : String(value);
4318
4439
  }
4319
4440
  //#endregion
4320
- //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/dom/elements/class.js
4441
+ //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/dom/elements/class.js
4321
4442
  /**
4322
4443
  * @param {Element} dom
4323
4444
  * @param {boolean | number} is_html
@@ -4328,13 +4449,13 @@ function to_style(value, styles) {
4328
4449
  * @returns {Record<string, boolean> | undefined}
4329
4450
  */
4330
4451
  function set_class(dom, is_html, value, hash, prev_classes, next_classes) {
4331
- var prev = dom.__className;
4452
+ var prev = dom[CLASS_CACHE];
4332
4453
  if (hydrating || prev !== value || prev === void 0) {
4333
4454
  var next_class_name = to_class(value, hash, next_classes);
4334
4455
  if (!hydrating || next_class_name !== dom.getAttribute("class")) if (next_class_name == null) dom.removeAttribute("class");
4335
4456
  else if (is_html) dom.className = next_class_name;
4336
4457
  else dom.setAttribute("class", next_class_name);
4337
- dom.__className = value;
4458
+ /** @type {any} */ dom[CLASS_CACHE] = value;
4338
4459
  } else if (next_classes && prev_classes !== next_classes) for (var key in next_classes) {
4339
4460
  var is_present = !!next_classes[key];
4340
4461
  if (prev_classes == null || is_present !== !!prev_classes[key]) dom.classList.toggle(key, is_present);
@@ -4342,7 +4463,7 @@ function set_class(dom, is_html, value, hash, prev_classes, next_classes) {
4342
4463
  return next_classes;
4343
4464
  }
4344
4465
  //#endregion
4345
- //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/dom/elements/style.js
4466
+ //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/dom/elements/style.js
4346
4467
  /**
4347
4468
  * @param {Element & ElementCSSInlineStyle} dom
4348
4469
  * @param {Record<string, any>} prev
@@ -4363,12 +4484,12 @@ function update_styles(dom, prev = {}, next, priority) {
4363
4484
  * @param {Record<string, any> | [Record<string, any>, Record<string, any>]} [next_styles]
4364
4485
  */
4365
4486
  function set_style(dom, value, prev_styles, next_styles) {
4366
- var prev = dom.__style;
4487
+ var prev = dom[STYLE_CACHE];
4367
4488
  if (hydrating || prev !== value) {
4368
4489
  var next_style_attr = to_style(value, next_styles);
4369
4490
  if (!hydrating || next_style_attr !== dom.getAttribute("style")) if (next_style_attr == null) dom.removeAttribute("style");
4370
4491
  else dom.style.cssText = next_style_attr;
4371
- dom.__style = value;
4492
+ /** @type {any} */ dom[STYLE_CACHE] = value;
4372
4493
  } else if (next_styles) if (Array.isArray(next_styles)) {
4373
4494
  update_styles(dom, prev_styles?.[0], next_styles[0]);
4374
4495
  update_styles(dom, prev_styles?.[1], next_styles[1], "important");
@@ -4376,7 +4497,7 @@ function set_style(dom, value, prev_styles, next_styles) {
4376
4497
  return next_styles;
4377
4498
  }
4378
4499
  //#endregion
4379
- //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/dom/elements/attributes.js
4500
+ //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/dom/elements/attributes.js
4380
4501
  /** @import { Blocker, Effect } from '#client' */
4381
4502
  var IS_CUSTOM_ELEMENT = Symbol("is custom element");
4382
4503
  var IS_HTML = Symbol("is html");
@@ -4405,7 +4526,7 @@ function remove_input_defaults(input) {
4405
4526
  input.checked = checked;
4406
4527
  }
4407
4528
  };
4408
- input.__on_r = remove_defaults;
4529
+ /** @type {any} */ input[FORM_RESET_HANDLER] = remove_defaults;
4409
4530
  queue_micro_task(remove_defaults);
4410
4531
  add_form_reset_listener();
4411
4532
  }
@@ -4453,7 +4574,8 @@ function set_attribute(element, attribute, value, skip_warning) {
4453
4574
  * @param {Element} element
4454
4575
  */
4455
4576
  function get_attributes(element) {
4456
- return element.__attributes ?? (element.__attributes = {
4577
+ var _element;
4578
+ return (_element = element)[ATTRIBUTES_CACHE] ?? (_element[ATTRIBUTES_CACHE] = {
4457
4579
  [IS_CUSTOM_ELEMENT]: element.nodeName.includes("-"),
4458
4580
  [IS_HTML]: element.namespaceURI === "http://www.w3.org/1999/xhtml"
4459
4581
  });
@@ -4471,13 +4593,13 @@ function get_setters(element) {
4471
4593
  var element_proto = Element.prototype;
4472
4594
  while (element_proto !== proto) {
4473
4595
  descriptors = get_descriptors(proto);
4474
- for (var key in descriptors) if (descriptors[key].set) setters.push(key);
4596
+ for (var key in descriptors) if (descriptors[key].set && key !== "innerHTML" && key !== "textContent" && key !== "innerText") setters.push(key);
4475
4597
  proto = get_prototype_of(proto);
4476
4598
  }
4477
4599
  return setters;
4478
4600
  }
4479
4601
  //#endregion
4480
- //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/dom/elements/bindings/size.js
4602
+ //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/dom/elements/bindings/size.js
4481
4603
  var _ResizeObserverSingleton;
4482
4604
  var _listeners = /* @__PURE__ */ new WeakMap();
4483
4605
  var _observer = /* @__PURE__ */ new WeakMap();
@@ -4529,7 +4651,7 @@ function _getObserver() {
4529
4651
  }
4530
4652
  _defineProperty(ResizeObserverSingleton, "entries", /* @__PURE__ */ new WeakMap());
4531
4653
  //#endregion
4532
- //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/dom/elements/bindings/this.js
4654
+ //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/dom/elements/bindings/this.js
4533
4655
  /** @import { ComponentContext, Effect } from '#client' */
4534
4656
  /**
4535
4657
  * @param {any} bound_value
@@ -4559,7 +4681,7 @@ function bind_this(element_or_component = {}, update, get_value, get_parts) {
4559
4681
  old_parts = parts;
4560
4682
  parts = get_parts?.() || [];
4561
4683
  untrack(() => {
4562
- if (element_or_component !== get_value(...parts)) {
4684
+ if (!is_bound_this(get_value(...parts), element_or_component)) {
4563
4685
  update(element_or_component, ...parts);
4564
4686
  if (old_parts && is_bound_this(get_value(...old_parts), element_or_component)) update(null, ...old_parts);
4565
4687
  }
@@ -4581,8 +4703,8 @@ function bind_this(element_or_component = {}, update, get_value, get_parts) {
4581
4703
  return element_or_component;
4582
4704
  }
4583
4705
  //#endregion
4584
- //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/reactivity/props.js
4585
- /** @import { Effect, Source } from './types.js' */
4706
+ //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/reactivity/props.js
4707
+ /** @import { Derived, Effect, Source } from './types.js' */
4586
4708
  /**
4587
4709
  * This function is responsible for synchronizing a possibly bound prop with the inner component state.
4588
4710
  * It is used whenever the compiler sees that the component writes to the prop, or when it has a default prop_value.
@@ -4599,7 +4721,12 @@ function prop(props, key, flags, fallback) {
4599
4721
  var lazy = (flags & 16) !== 0;
4600
4722
  var fallback_value = fallback;
4601
4723
  var fallback_dirty = true;
4724
+ var fallback_signal = void 0;
4602
4725
  var get_fallback = () => {
4726
+ if (lazy && runes) {
4727
+ fallback_signal ?? (fallback_signal = /* @__PURE__ */ derived(fallback));
4728
+ return get(fallback_signal);
4729
+ }
4603
4730
  if (fallback_dirty) {
4604
4731
  fallback_dirty = false;
4605
4732
  fallback_value = lazy ? untrack(fallback) : fallback;
@@ -4669,7 +4796,7 @@ function prop(props, key, flags, fallback) {
4669
4796
  });
4670
4797
  }
4671
4798
  //#endregion
4672
- //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/legacy/legacy-client.js
4799
+ //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/legacy/legacy-client.js
4673
4800
  /** @import { ComponentConstructorOptions, ComponentType, SvelteComponent, Component } from 'svelte' */
4674
4801
  /**
4675
4802
  * Takes the same options as a Svelte 4 component and the component function and returns a Svelte 4 compatible component.
@@ -4788,7 +4915,7 @@ var Svelte4Component = class {
4788
4915
  }
4789
4916
  };
4790
4917
  //#endregion
4791
- //#region ../../../node_modules/.bun/svelte@5.55.5/node_modules/svelte/src/internal/client/dom/elements/custom-element.js
4918
+ //#region ../../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/dom/elements/custom-element.js
4792
4919
  /**
4793
4920
  * @typedef {Object} CustomElementPropDefinition
4794
4921
  * @property {string} [attribute]
@@ -5236,11 +5363,11 @@ function computeAudioMode(params) {
5236
5363
  }
5237
5364
  //#endregion
5238
5365
  //#region src/delivery/AudioPlayer.svelte
5239
- var root_2$3 = /* @__PURE__ */ from_html(`<audio class="sr-only pie-audio-player svelte-ypdwb3" preload="metadata" aria-hidden="true" tabindex="-1"></audio> <button class="listen-button pie-listen-button rli-feature-audio svelte-ypdwb3" type="button"><img/> <img/></button>`, 1);
5240
- var root_4$2 = /* @__PURE__ */ from_html(`<button class="mt-2 text-sm underline pie-audio-autoplay-enable" type="button"> </button>`);
5241
- var root_3$3 = /* @__PURE__ */ from_html(`<audio controls="" class="w-full max-w-md pie-audio-player" preload="metadata"><track kind="captions"/></audio> <!>`, 1);
5242
- var root_5$2 = /* @__PURE__ */ from_html(`<p class="text-sm text-red-700 pie-audio-error" role="alert"> </p>`);
5243
- var root_1$3 = /* @__PURE__ */ from_html(`<div class="mb-4 audio-container pie-audio-container"><!></div>`);
5366
+ var root$3 = /* @__PURE__ */ from_html(`<audio class="sr-only pie-audio-player svelte-ypdwb3" preload="metadata" aria-hidden="true" tabindex="-1"></audio> <button class="listen-button pie-listen-button rli-feature-audio svelte-ypdwb3" type="button"><img/> <img/></button>`, 1);
5367
+ var root_1$3 = /* @__PURE__ */ from_html(`<button class="mt-2 text-sm underline pie-audio-autoplay-enable" type="button"> </button>`);
5368
+ var root_2$3 = /* @__PURE__ */ from_html(`<audio controls="" class="w-full max-w-md pie-audio-player" preload="metadata"><track kind="captions"/></audio> <!>`, 1);
5369
+ var root_3$3 = /* @__PURE__ */ from_html(`<p class="text-sm text-red-700 pie-audio-error" role="alert"> </p>`);
5370
+ var root_4$2 = /* @__PURE__ */ from_html(`<div class="mb-4 audio-container pie-audio-container"><!></div>`);
5244
5371
  var $$css$3 = {
5245
5372
  hash: "svelte-ypdwb3",
5246
5373
  code: ".listen-button.svelte-ypdwb3 {width:var(--mpb-listen-button-size, 128px);height:var(--mpb-listen-button-size, 128px);border:0;padding:0;background-color:transparent;cursor:pointer;z-index:1;}.listen-button.svelte-ypdwb3:hover {background-color:#e2f1fe;}.listen-feature-icon.svelte-ypdwb3 {width:var(--mpb-listen-button-size, 128px);height:var(--mpb-listen-button-size, 128px);object-fit:contain;display:none;}.listen-feature-icon.listen-active.svelte-ypdwb3 {display:block;}.sr-only.svelte-ypdwb3 {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;}"
@@ -5405,10 +5532,10 @@ function AudioPlayer($$anchor, $$props) {
5405
5532
  var fragment = comment();
5406
5533
  var node = first_child(fragment);
5407
5534
  var consequent_4 = ($$anchor) => {
5408
- var div = root_1$3();
5535
+ var div = root_4$2();
5409
5536
  var node_1 = child(div);
5410
5537
  var consequent = ($$anchor) => {
5411
- var fragment_1 = root_2$3();
5538
+ var fragment_1 = root$3();
5412
5539
  var audio = first_child(fragment_1);
5413
5540
  bind_this(audio, ($$value) => set(audioEl, $$value), () => get(audioEl));
5414
5541
  var button = sibling(audio, 2);
@@ -5433,12 +5560,12 @@ function AudioPlayer($$anchor, $$props) {
5433
5560
  append($$anchor, fragment_1);
5434
5561
  };
5435
5562
  var consequent_2 = ($$anchor) => {
5436
- var fragment_2 = root_3$3();
5563
+ var fragment_2 = root_2$3();
5437
5564
  var audio_1 = first_child(fragment_2);
5438
5565
  bind_this(audio_1, ($$value) => set(audioEl, $$value), () => get(audioEl));
5439
5566
  var node_2 = sibling(audio_1, 2);
5440
5567
  var consequent_1 = ($$anchor) => {
5441
- var button_1 = root_4$2();
5568
+ var button_1 = root_1$3();
5442
5569
  var text = child(button_1, true);
5443
5570
  reset(button_1);
5444
5571
  bind_this(button_1, ($$value) => set(autoplayEnableButtonEl, $$value), () => get(autoplayEnableButtonEl));
@@ -5455,7 +5582,7 @@ function AudioPlayer($$anchor, $$props) {
5455
5582
  append($$anchor, fragment_2);
5456
5583
  };
5457
5584
  var consequent_3 = ($$anchor) => {
5458
- var p = root_5$2();
5585
+ var p = root_3$3();
5459
5586
  var text_1 = child(p, true);
5460
5587
  reset(p);
5461
5588
  template_effect(() => set_text(text_1, get(audioErrorMessage)));
@@ -5491,10 +5618,10 @@ create_custom_element(AudioPlayer, {
5491
5618
  }, [], [], { mode: "open" });
5492
5619
  //#endregion
5493
5620
  //#region src/delivery/ClozeMarker.svelte
5494
- var root_1$2 = /* @__PURE__ */ from_html(`<img class="w-auto object-contain pie-blank-image" style="max-height:var(--mpb-selected-image-max-height, 4rem);"/>`);
5495
- var root_2$2 = /* @__PURE__ */ from_html(`<span class="cloze-marker-value pie-blank-value svelte-d9l5tb"></span>`);
5496
- var root_3$2 = /* @__PURE__ */ from_html(`<span class="cloze-marker-empty svelte-d9l5tb" aria-hidden="true">&nbsp;</span>`);
5497
- var root$2 = /* @__PURE__ */ from_html(`<span role="status" aria-live="polite" aria-atomic="true"><!></span>`);
5621
+ var root$2 = /* @__PURE__ */ from_html(`<img class="w-auto object-contain pie-blank-image" style="max-height:var(--mpb-selected-image-max-height, 4rem);"/>`);
5622
+ var root_1$2 = /* @__PURE__ */ from_html(`<span class="cloze-marker-value pie-blank-value svelte-d9l5tb"></span>`);
5623
+ var root_2$2 = /* @__PURE__ */ from_html(`<span class="cloze-marker-empty svelte-d9l5tb" aria-hidden="true">&nbsp;</span>`);
5624
+ var root_3$2 = /* @__PURE__ */ from_html(`<span role="status" aria-live="polite" aria-atomic="true"><!></span>`);
5498
5625
  var $$css$2 = {
5499
5626
  hash: "svelte-d9l5tb",
5500
5627
  code: ".cloze-marker.svelte-d9l5tb {display:inline-flex;align-items:center;justify-content:center;text-align:center;vertical-align:baseline;}.cloze-marker.svelte-d9l5tb:focus-within {outline:2px solid var(--pie-focus, #2563eb);outline-offset:2px;}.cloze-marker-standalone.svelte-d9l5tb {width:var(--mpb-blank-standalone-width, 7rem);}.cloze-marker-empty.svelte-d9l5tb {display:inline-block;min-width:4ch;}.cloze-marker-value.svelte-d9l5tb {width:100%;display:inline-flex;align-items:center;justify-content:center;text-align:center;}.cloze-marker-value.svelte-d9l5tb p {margin:0;}"
@@ -5554,10 +5681,10 @@ function ClozeMarker($$anchor, $$props) {
5554
5681
  flushSync();
5555
5682
  }
5556
5683
  };
5557
- var span = root$2();
5684
+ var span = root_3$2();
5558
5685
  var node = child(span);
5559
5686
  var consequent = ($$anchor) => {
5560
- var img = root_1$2();
5687
+ var img = root$2();
5561
5688
  template_effect(() => {
5562
5689
  set_attribute(img, "src", displayChoice().imageUrl);
5563
5690
  set_attribute(img, "alt", displayChoice().imageAlt || "Selected answer image");
@@ -5565,13 +5692,13 @@ function ClozeMarker($$anchor, $$props) {
5565
5692
  append($$anchor, img);
5566
5693
  };
5567
5694
  var consequent_1 = ($$anchor) => {
5568
- var span_1 = root_2$2();
5695
+ var span_1 = root_1$2();
5569
5696
  html(span_1, displayChoiceLabelHtml, true);
5570
5697
  reset(span_1);
5571
5698
  append($$anchor, span_1);
5572
5699
  };
5573
5700
  var alternate = ($$anchor) => {
5574
- append($$anchor, root_3$2());
5701
+ append($$anchor, root_2$2());
5575
5702
  };
5576
5703
  if_block(node, ($$render) => {
5577
5704
  if (choiceMode() === "image" && displayChoice()?.imageUrl) $$render(consequent);
@@ -5598,14 +5725,12 @@ create_custom_element(ClozeMarker, {
5598
5725
  }, [], [], { mode: "open" });
5599
5726
  //#endregion
5600
5727
  //#region src/delivery/ChoiceRow.svelte
5601
- var root_2$1 = /* @__PURE__ */ from_html(`<img class="object-contain pie-choice-image" style="max-height:var(--mpb-choice-image-max-height, 5rem);"/>`);
5602
- var root_3$1 = /* @__PURE__ */ from_html(`<span class="choice-html pie-choice-label svelte-8xu1pt"></span>`);
5603
- var root_1$1 = /* @__PURE__ */ from_html(`<label class="cursor-pointer choice-tile text-center pie-choice-tile svelte-8xu1pt"><span class="choice-tile-content pie-choice-tile-content svelte-8xu1pt"><!></span> <input type="radio" class="choice-radio-bottom pie-choice-radio pie-choice-radio-bottom svelte-8xu1pt"/></label>`);
5604
- var root_5$1 = /* @__PURE__ */ from_html(`<img class="object-contain pie-choice-image" style="max-height:var(--mpb-choice-image-max-height, 5rem);"/>`);
5605
- var root_6$1 = /* @__PURE__ */ from_html(`<span class="choice-html pie-choice-label svelte-8xu1pt"></span>`);
5606
- var root_4$1 = /* @__PURE__ */ from_html(`<input type="radio" class="choice-radio-inline pie-choice-radio pie-choice-radio-inline svelte-8xu1pt"/> <label class="cursor-pointer flex-1 pie-choice-label-wrap svelte-8xu1pt"><!></label>`, 1);
5607
- var root_7$1 = /* @__PURE__ */ from_html(`<span aria-hidden="true"> </span>`);
5608
- var root$1 = /* @__PURE__ */ from_html(`<div style="gap:var(--mpb-choice-row-gap, 0.5rem);"><!> <!></div>`);
5728
+ var root$1 = /* @__PURE__ */ from_html(`<img class="object-contain pie-choice-image" style="max-height:var(--mpb-choice-image-max-height, 5rem);"/>`);
5729
+ var root_1$1 = /* @__PURE__ */ from_html(`<span class="choice-html pie-choice-label svelte-8xu1pt"></span>`);
5730
+ var root_2$1 = /* @__PURE__ */ from_html(`<label class="cursor-pointer choice-tile text-center pie-choice-tile svelte-8xu1pt"><span class="choice-tile-content pie-choice-tile-content svelte-8xu1pt"><!></span> <input type="radio" class="choice-radio-bottom pie-choice-radio pie-choice-radio-bottom svelte-8xu1pt"/></label>`);
5731
+ var root_3$1 = /* @__PURE__ */ from_html(`<input type="radio" class="choice-radio-inline pie-choice-radio pie-choice-radio-inline svelte-8xu1pt"/> <label class="cursor-pointer flex-1 pie-choice-label-wrap svelte-8xu1pt"><!></label>`, 1);
5732
+ var root_4$1 = /* @__PURE__ */ from_html(`<span aria-hidden="true"> </span>`);
5733
+ var root_5$1 = /* @__PURE__ */ from_html(`<div style="gap:var(--mpb-choice-row-gap, 0.5rem);"><!> <!></div>`);
5609
5734
  var $$css$1 = {
5610
5735
  hash: "svelte-8xu1pt",
5611
5736
  code: ".choice-row-horizontal.svelte-8xu1pt {flex-direction:column;align-items:center;width:min(var(--mpb-choice-width-px, 170px), var(--mpb-choice-width-vw, 30vw));min-height:var(--mpb-choice-tile-min-height, 11rem);gap:0;}.choice-tile.svelte-8xu1pt {display:flex;flex-direction:column;justify-content:space-between;align-items:center;width:100%;min-height:var(--mpb-choice-tile-min-height, 11rem);padding:0.8rem 0.65rem 0.5rem;border-radius:8px;background:transparent;transition:background-color 120ms ease-in-out;}.choice-tile-content.svelte-8xu1pt {width:100%;display:flex;align-items:center;justify-content:center;min-height:var(--mpb-choice-content-min-height, 7.5rem);}.choice-row-horizontal.svelte-8xu1pt:hover .choice-tile:where(.svelte-8xu1pt) {background:var(--mpb-choice-hover-bg, var(--pie-correct-answer-choice-hover-bg, #f2f2f2));}.pie-choice-horizontal.svelte-8xu1pt:not(.is-selected):not(:hover) .pie-choice-tile:where(.svelte-8xu1pt) {background:transparent;}.choice-row-horizontal.is-selected.svelte-8xu1pt .choice-tile:where(.svelte-8xu1pt) {background:var(--mpb-choice-selected-bg, var(--pie-correct-answer-choice-selected-bg, #fcfcd3));}.choice-row-horizontal.is-selected.svelte-8xu1pt:hover .choice-tile:where(.svelte-8xu1pt) {background:var(--mpb-choice-selected-bg, var(--pie-correct-answer-choice-selected-bg, #fcfcd3));}.pie-choice.svelte-8xu1pt:not(.pie-choice-horizontal):hover .pie-choice-label-wrap:where(.svelte-8xu1pt) {background:var(--pie-correct-answer-choice-hover-bg, #ececec);}.pie-choice.svelte-8xu1pt:not(.pie-choice-horizontal):not(.is-selected):not(:hover) .pie-choice-label-wrap:where(.svelte-8xu1pt) {background:transparent;}.pie-choice:not(.pie-choice-horizontal).is-selected.svelte-8xu1pt .pie-choice-label-wrap:where(.svelte-8xu1pt) {background:var(--pie-correct-answer-choice-selected-bg, #f1f1f1);border-radius:6px;}.pie-choice:not(.pie-choice-horizontal).is-selected.svelte-8xu1pt:hover .pie-choice-label-wrap:where(.svelte-8xu1pt) {background:var(--pie-correct-answer-choice-selected-bg, #f1f1f1);}.pie-choice.choice-correct.svelte-8xu1pt {border-left:3px solid var(--pie-correct-answer-choice-correct-border, #0ea449);}.pie-choice.choice-incorrect.svelte-8xu1pt {border-left:3px solid var(--pie-correct-answer-choice-incorrect-border, #bf0d00);}.pie-choice-horizontal.choice-correct.svelte-8xu1pt .choice-tile:where(.svelte-8xu1pt) {background:var(--pie-correct-answer-choice-correct-bg, #e8f5e9);}.pie-choice-horizontal.choice-incorrect.svelte-8xu1pt .choice-tile:where(.svelte-8xu1pt) {background:var(--pie-correct-answer-choice-incorrect-bg, #ffebee);}.pie-choice-feedback-badge.svelte-8xu1pt {margin-left:auto;display:inline-flex;align-items:center;justify-content:center;width:1.1rem;height:1.1rem;border-radius:9999px;font-size:0.72rem;line-height:1;font-weight:700;color:var(--pie-correct-answer-feedback-glyph-color, #fff);}.pie-choice-feedback-correct.svelte-8xu1pt {background:var(--pie-correct-answer-feedback-correct-bg, #087d38);}.pie-choice-feedback-incorrect.svelte-8xu1pt {background:var(--pie-correct-answer-feedback-incorrect-bg, #bf0d00);}.choice-row-horizontal.svelte-8xu1pt p {margin:0;text-align:center;}.choice-html.svelte-8xu1pt p {margin:0;}.choice-html.svelte-8xu1pt {width:100%;display:inline-flex;align-items:center;justify-content:center;text-align:center;}.choice-radio-bottom.svelte-8xu1pt {margin-top:var(--mpb-horizontal-choice-radio-top-margin, 0.5rem);padding:var(--mpb-choice-radio-padding, 0px);}.choice-radio-inline.svelte-8xu1pt {margin-top:var(--mpb-horizontal-choice-radio-top-margin, 0.5rem);}"
@@ -5679,14 +5804,14 @@ function ChoiceRow($$anchor, $$props) {
5679
5804
  flushSync();
5680
5805
  }
5681
5806
  };
5682
- var div = root$1();
5807
+ var div = root_5$1();
5683
5808
  var node = child(div);
5684
5809
  var consequent_1 = ($$anchor) => {
5685
- var label = root_1$1();
5810
+ var label = root_2$1();
5686
5811
  var span = child(label);
5687
5812
  var node_1 = child(span);
5688
5813
  var consequent = ($$anchor) => {
5689
- var img = root_2$1();
5814
+ var img = root$1();
5690
5815
  template_effect(() => {
5691
5816
  set_attribute(img, "src", choice().imageUrl);
5692
5817
  set_attribute(img, "alt", choice().imageAlt || `Choice ${choice().id}`);
@@ -5694,7 +5819,7 @@ function ChoiceRow($$anchor, $$props) {
5694
5819
  append($$anchor, img);
5695
5820
  };
5696
5821
  var alternate = ($$anchor) => {
5697
- var span_1 = root_3$1();
5822
+ var span_1 = root_1$1();
5698
5823
  html(span_1, () => choice().labelHtml || "", true);
5699
5824
  reset(span_1);
5700
5825
  append($$anchor, span_1);
@@ -5718,13 +5843,13 @@ function ChoiceRow($$anchor, $$props) {
5718
5843
  append($$anchor, label);
5719
5844
  };
5720
5845
  var alternate_2 = ($$anchor) => {
5721
- var fragment = root_4$1();
5846
+ var fragment = root_3$1();
5722
5847
  var input_1 = first_child(fragment);
5723
5848
  remove_input_defaults(input_1);
5724
5849
  var label_1 = sibling(input_1, 2);
5725
5850
  var node_2 = child(label_1);
5726
5851
  var consequent_2 = ($$anchor) => {
5727
- var img_1 = root_5$1();
5852
+ var img_1 = root$1();
5728
5853
  template_effect(() => {
5729
5854
  set_attribute(img_1, "src", choice().imageUrl);
5730
5855
  set_attribute(img_1, "alt", choice().imageAlt || `Choice ${choice().id}`);
@@ -5732,7 +5857,7 @@ function ChoiceRow($$anchor, $$props) {
5732
5857
  append($$anchor, img_1);
5733
5858
  };
5734
5859
  var alternate_1 = ($$anchor) => {
5735
- var span_2 = root_6$1();
5860
+ var span_2 = root_1$1();
5736
5861
  html(span_2, () => choice().labelHtml || "", true);
5737
5862
  reset(span_2);
5738
5863
  append($$anchor, span_2);
@@ -5758,7 +5883,7 @@ function ChoiceRow($$anchor, $$props) {
5758
5883
  });
5759
5884
  var node_3 = sibling(node, 2);
5760
5885
  var consequent_3 = ($$anchor) => {
5761
- var span_3 = root_7$1();
5886
+ var span_3 = root_4$1();
5762
5887
  var text = child(span_3, true);
5763
5888
  reset(span_3);
5764
5889
  template_effect(() => {
@@ -6223,15 +6348,15 @@ var ensureVariantCssInjected = (config) => {
6223
6348
  };
6224
6349
  //#endregion
6225
6350
  //#region src/delivery/McPopulatedBlank.svelte
6226
- var root_1 = /* @__PURE__ */ from_html(`<div class="mb-4 prose pie-prompt"></div>`);
6227
- var root_2 = /* @__PURE__ */ from_html(`<p> </p>`);
6228
- var root_4 = /* @__PURE__ */ from_svg(`<svg class="pie-correct-answer-toggle-svg svelte-6wlbb4" preserveAspectRatio="xMinYMin meet" version="1.1" viewBox="-283 359 34 35"><circle cx="-266" cy="375.9" r="14" fill="var(--pie-correct-answer-toggle-icon-open-bg, #bce2ff)"></circle><path d="M-280.5,375.9c0-8,6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5s-6.5,14.5-14.5,14.5S-280.5,383.9-280.5,375.9z M-279.5,375.9c0,7.4,6.1,13.5,13.5,13.5c7.4,0,13.5-6.1,13.5-13.5s-6.1-13.5-13.5-13.5C-273.4,362.4-279.5,368.5-279.5,375.9z" fill="var(--pie-correct-answer-toggle-icon-open-bg, #bce2ff)"></path><polygon points="-265.4,383.1 -258.6,377.2 -261.2,374.2 -264.3,376.9 -268.9,368.7 -272.4,370.6" fill="var(--pie-correct-answer-toggle-icon-glyph-color, #1a9cff)"></polygon></svg>`);
6229
- var root_5 = /* @__PURE__ */ from_svg(`<svg class="pie-correct-answer-toggle-svg svelte-6wlbb4" preserveAspectRatio="xMinYMin meet" version="1.1" viewBox="-129.5 127 34 35"><path d="M-112.9,160.4c-8.5,0-15.5-6.9-15.5-15.5c0-8.5,6.9-15.5,15.5-15.5s15.5,6.9,15.5,15.5 C-97.4,153.5-104.3,160.4-112.9,160.4z" fill="#D0CAC5" stroke="#E6E3E0" stroke-width="0.75"></path><path d="M-113.2,159c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-105.2,159-113.2,159z" fill="#B3ABA4" stroke="#CDC7C2" stroke-width="0.5"></path><circle cx="-114.2" cy="143.5" r="14" fill="white"></circle><path d="M-114.2,158c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-106.2,158-114.2,158z M-114.2,130c-7.4,0-13.5,6.1-13.5,13.5s6.1,13.5,13.5,13.5s13.5-6.1,13.5-13.5S-106.8,130-114.2,130z" fill="var(--pie-correct-answer-toggle-icon-closed-bg, #bce2ff)"></path><polygon points="-114.8,150.7 -121.6,144.8 -119,141.8 -115.9,144.5 -111.3,136.3 -107.8,138.2" fill="var(--pie-correct-answer-toggle-icon-glyph-color, #1a9cff)"></polygon></svg>`);
6230
- var root_3 = /* @__PURE__ */ from_html(`<div class="pie-correct-answer-toggle-row svelte-6wlbb4"><button type="button" class="mb-3 pie-toggle-correct-answer svelte-6wlbb4" style="gap:var(--mpb-toggle-button-gap, 0.5rem);" data-testid="show-correct-answer"><span class="pie-correct-answer-toggle-content svelte-6wlbb4"><span class="pie-correct-answer-toggle-icon-holder svelte-6wlbb4" aria-hidden="true"><!></span> <span class="pie-correct-answer-toggle-label svelte-6wlbb4"> </span></span></button></div>`);
6231
- var root_6 = /* @__PURE__ */ from_html(`<div class="mb-3 prose prose-p:my-1 sentence-line pie-sentence-line svelte-6wlbb4"></div>`);
6232
- var root_7 = /* @__PURE__ */ from_html(`<div class="mb-4 template-line pie-template-line svelte-6wlbb4"><!> <!> <!></div>`);
6233
- var root_8 = /* @__PURE__ */ from_html(`<p class="sr-only pie-result-feedback svelte-6wlbb4" role="status" aria-live="polite"> </p>`);
6234
- var root = /* @__PURE__ */ from_html(`<div><!> <!> <!> <!> <!> <!> <!> <fieldset class="border-0 p-0 m-0 pie-choices-fieldset svelte-6wlbb4"><legend class="sr-only pie-choices-legend svelte-6wlbb4"> </legend> <div style="gap:var(--mpb-choice-group-gap, 0.5rem);" role="radiogroup" tabindex="-1"></div></fieldset></div>`);
6351
+ var root = /* @__PURE__ */ from_html(`<div class="mb-4 prose pie-prompt"></div>`);
6352
+ var root_1 = /* @__PURE__ */ from_html(`<p> </p>`);
6353
+ var root_2 = /* @__PURE__ */ from_svg(`<svg class="pie-correct-answer-toggle-svg svelte-6wlbb4" preserveAspectRatio="xMinYMin meet" version="1.1" viewBox="-283 359 34 35"><circle cx="-266" cy="375.9" r="14" fill="var(--pie-correct-answer-toggle-icon-open-bg, #bce2ff)"></circle><path d="M-280.5,375.9c0-8,6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5s-6.5,14.5-14.5,14.5S-280.5,383.9-280.5,375.9z M-279.5,375.9c0,7.4,6.1,13.5,13.5,13.5c7.4,0,13.5-6.1,13.5-13.5s-6.1-13.5-13.5-13.5C-273.4,362.4-279.5,368.5-279.5,375.9z" fill="var(--pie-correct-answer-toggle-icon-open-bg, #bce2ff)"></path><polygon points="-265.4,383.1 -258.6,377.2 -261.2,374.2 -264.3,376.9 -268.9,368.7 -272.4,370.6" fill="var(--pie-correct-answer-toggle-icon-glyph-color, #1a9cff)"></polygon></svg>`);
6354
+ var root_3 = /* @__PURE__ */ from_svg(`<svg class="pie-correct-answer-toggle-svg svelte-6wlbb4" preserveAspectRatio="xMinYMin meet" version="1.1" viewBox="-129.5 127 34 35"><path d="M-112.9,160.4c-8.5,0-15.5-6.9-15.5-15.5c0-8.5,6.9-15.5,15.5-15.5s15.5,6.9,15.5,15.5 C-97.4,153.5-104.3,160.4-112.9,160.4z" fill="#D0CAC5" stroke="#E6E3E0" stroke-width="0.75"></path><path d="M-113.2,159c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-105.2,159-113.2,159z" fill="#B3ABA4" stroke="#CDC7C2" stroke-width="0.5"></path><circle cx="-114.2" cy="143.5" r="14" fill="white"></circle><path d="M-114.2,158c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-106.2,158-114.2,158z M-114.2,130c-7.4,0-13.5,6.1-13.5,13.5s6.1,13.5,13.5,13.5s13.5-6.1,13.5-13.5S-106.8,130-114.2,130z" fill="var(--pie-correct-answer-toggle-icon-closed-bg, #bce2ff)"></path><polygon points="-114.8,150.7 -121.6,144.8 -119,141.8 -115.9,144.5 -111.3,136.3 -107.8,138.2" fill="var(--pie-correct-answer-toggle-icon-glyph-color, #1a9cff)"></polygon></svg>`);
6355
+ var root_4 = /* @__PURE__ */ from_html(`<div class="pie-correct-answer-toggle-row svelte-6wlbb4"><button type="button" class="mb-3 pie-toggle-correct-answer svelte-6wlbb4" style="gap:var(--mpb-toggle-button-gap, 0.5rem);" data-testid="show-correct-answer"><span class="pie-correct-answer-toggle-content svelte-6wlbb4"><span class="pie-correct-answer-toggle-icon-holder svelte-6wlbb4" aria-hidden="true"><!></span> <span class="pie-correct-answer-toggle-label svelte-6wlbb4"> </span></span></button></div>`);
6356
+ var root_5 = /* @__PURE__ */ from_html(`<div class="mb-3 prose prose-p:my-1 sentence-line pie-sentence-line svelte-6wlbb4"></div>`);
6357
+ var root_6 = /* @__PURE__ */ from_html(`<div class="mb-4 template-line pie-template-line svelte-6wlbb4"><!> <!> <!></div>`);
6358
+ var root_7 = /* @__PURE__ */ from_html(`<p class="sr-only pie-result-feedback svelte-6wlbb4" role="status" aria-live="polite"> </p>`);
6359
+ var root_8 = /* @__PURE__ */ from_html(`<div><!> <!> <!> <!> <!> <!> <!> <fieldset class="border-0 p-0 m-0 pie-choices-fieldset svelte-6wlbb4"><legend class="sr-only pie-choices-legend svelte-6wlbb4"> </legend> <div style="gap:var(--mpb-choice-group-gap, 0.5rem);" role="radiogroup" tabindex="-1"></div></fieldset></div>`);
6235
6360
  var $$css = {
6236
6361
  hash: "svelte-6wlbb4",
6237
6362
  code: ".sr-only.svelte-6wlbb4 {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;}.mc-populated-blank-root.svelte-6wlbb4 .prose {max-width:none;}.pie-toggle-correct-answer.svelte-6wlbb4 {width:100%;cursor:pointer;border:0;background:transparent;padding:0;display:flex;justify-content:center;text-align:center;color:var(--pie-correct-answer-toggle-label-color, var(--pie-text, black));}.pie-correct-answer-toggle-row.svelte-6wlbb4 {width:100%;display:flex;justify-content:flex-end;}.pie-correct-answer-toggle-content.svelte-6wlbb4 {display:flex;margin:0 auto;align-items:center;}.pie-correct-answer-toggle-icon-holder.svelte-6wlbb4 {width:25px;margin-right:5px;display:inline-flex;align-items:center;justify-content:center;}.pie-correct-answer-toggle-svg.svelte-6wlbb4 {width:25px;height:25px;}.pie-correct-answer-toggle-label.svelte-6wlbb4 {width:fit-content;min-width:140px;align-self:center;vertical-align:middle;font-weight:400;user-select:none;}.pie-toggle-correct-answer.svelte-6wlbb4:hover .pie-correct-answer-toggle-label:where(.svelte-6wlbb4),\n .pie-toggle-correct-answer.svelte-6wlbb4:focus-visible .pie-correct-answer-toggle-label:where(.svelte-6wlbb4) {text-decoration:underline;}.template-line.svelte-6wlbb4 {white-space:pre-wrap;}.template-line.svelte-6wlbb4 p {margin:0;}.layout-audio_blank_only.svelte-6wlbb4 .pie-audio-container,\n .layout-stimulus_image_blank.svelte-6wlbb4 .pie-audio-container {display:flex;width:min(100%, var(--mpb-audio-instructions-max-width, 875px));margin-left:auto;margin-right:auto;justify-content:flex-end;}.layout-audio_blank_only.svelte-6wlbb4 .template-line:where(.svelte-6wlbb4),\n .layout-stimulus_image_blank.svelte-6wlbb4 .template-line:where(.svelte-6wlbb4) {text-align:center;margin:var(--mpb-audio-blank-template-margin-top, 0.8rem) 0\n var(--mpb-audio-blank-template-margin-bottom, 1.8rem);}.layout-audio_blank_only.svelte-6wlbb4 fieldset:where(.svelte-6wlbb4) {display:flex;justify-content:center;}.layout-audio_blank_only.svelte-6wlbb4 .pie-blank-slot,\n .layout-stimulus_image_blank.svelte-6wlbb4 .pie-blank-slot {width:var(--mpb-blank-wide-width, 10rem);border-bottom-width:var(--mpb-blank-underline-wide-width, 6px);min-height:160px;padding-bottom:4px;}.layout-stimulus_image_blank.svelte-6wlbb4 {display:grid;grid-template-columns:minmax(var(--mpb-stimulus-min-column, 210px), 1fr) auto;grid-template-areas:'transcript transcript'\n 'sentence audio'\n '. template'\n 'choices choices';column-gap:var(--mpb-stimulus-grid-column-gap, 2rem);row-gap:var(--mpb-stimulus-grid-row-gap, 0.7rem);align-items:start;}.layout-stimulus_image_blank.svelte-6wlbb4 .pie-audio-transcript:where(.svelte-6wlbb4) {grid-area:transcript;}.layout-stimulus_image_blank.svelte-6wlbb4 .pie-audio-container {grid-area:audio;margin:0;}.layout-stimulus_image_blank.svelte-6wlbb4 .sentence-line:where(.svelte-6wlbb4) {grid-area:sentence;margin:var(--mpb-stimulus-sentence-margin-top, 0.2rem) 0 0;}.layout-stimulus_image_blank.svelte-6wlbb4 .template-line:where(.svelte-6wlbb4) {grid-area:template;margin:0;text-align:center;justify-self:center;}.layout-stimulus_image_blank.svelte-6wlbb4 fieldset:where(.svelte-6wlbb4) {grid-area:choices;margin-top:var(--mpb-stimulus-choices-margin-top, 0.9rem);}.layout-token_sequence.svelte-6wlbb4 {display:grid;grid-template-columns:1fr auto;grid-template-areas:'transcript audio'\n 'template template'\n 'choices choices';column-gap:var(--mpb-token-grid-column-gap, 1.5rem);row-gap:var(--mpb-token-grid-row-gap, 0.8rem);align-items:start;}.layout-token_sequence.svelte-6wlbb4 .pie-audio-transcript:where(.svelte-6wlbb4) {grid-area:transcript;}.layout-token_sequence.svelte-6wlbb4 .pie-audio-container {grid-area:audio;margin:0;justify-self:end;}.layout-token_sequence.svelte-6wlbb4 .template-line:where(.svelte-6wlbb4) {grid-area:template;margin:var(--mpb-token-template-margin-top, 0.6rem) 0 0;justify-self:center;text-align:center;}.layout-token_sequence.svelte-6wlbb4 .template-line:where(.svelte-6wlbb4) span + span {margin-left:var(--mpb-token-inline-token-gap, 0.35rem);}.layout-token_sequence.svelte-6wlbb4 .pie-blank-slot {width:var(--mpb-blank-standalone-width, 7rem);border-bottom-width:var(--mpb-blank-underline-wide-width, 4px);margin-left:var(--mpb-token-inline-token-gap, 0.35rem);}.layout-token_sequence.svelte-6wlbb4 fieldset:where(.svelte-6wlbb4) {grid-area:choices;margin-top:var(--mpb-token-choices-margin-top, 0.2rem);}.layout-inline_sentence.has-inline-audio.svelte-6wlbb4 {display:grid;grid-template-columns:minmax(var(--mpb-text-min-column, 260px), 1fr) auto;grid-template-areas:'transcript transcript'\n 'template audio'\n 'choices choices';column-gap:var(--mpb-inline-grid-column-gap, 1.5rem);row-gap:var(--mpb-inline-grid-row-gap, 0.65rem);align-items:start;}.layout-inline_sentence.has-inline-audio.svelte-6wlbb4 .pie-audio-transcript:where(.svelte-6wlbb4) {grid-area:transcript;}.layout-inline_sentence.has-inline-audio.svelte-6wlbb4 .pie-audio-container {grid-area:audio;margin:0;justify-self:end;}.layout-inline_sentence.has-inline-audio.svelte-6wlbb4 .template-line:where(.svelte-6wlbb4) {grid-area:template;margin:var(--mpb-inline-template-margin-top, 0.45rem) 0 0;text-align:center;justify-self:center;}.layout-inline_sentence.has-inline-audio.svelte-6wlbb4 fieldset:where(.svelte-6wlbb4) {grid-area:choices;margin-top:var(--mpb-inline-choices-margin-top, 0.25rem);}\n\n /* Match Learnosity responsive behavior for CQT audio-blank layouts:\n at smaller widths, audio control shifts left and answer tiles stack. */\n @media (max-width: 760px) {.layout-audio_blank_only.svelte-6wlbb4 .pie-audio-container,\n .layout-stimulus_image_blank.svelte-6wlbb4 .pie-audio-container,\n .layout-token_sequence.svelte-6wlbb4 .pie-audio-container,\n .layout-inline_sentence.has-inline-audio.svelte-6wlbb4 .pie-audio-container {width:100%;margin-left:0;margin-right:0;justify-content:flex-start;justify-self:start;}.layout-audio_blank_only.svelte-6wlbb4 .pie-choices:where(.svelte-6wlbb4),\n .layout-token_sequence.svelte-6wlbb4 .pie-choices:where(.svelte-6wlbb4),\n .layout-stimulus_image_blank.svelte-6wlbb4 .pie-choices:where(.svelte-6wlbb4),\n .layout-inline_sentence.has-inline-audio.svelte-6wlbb4 .pie-choices:where(.svelte-6wlbb4) {flex-direction:column;align-items:flex-start;justify-content:flex-start;}.layout-audio_blank_only.svelte-6wlbb4 .choice-row-horizontal:where(.svelte-6wlbb4),\n .layout-token_sequence.svelte-6wlbb4 .choice-row-horizontal:where(.svelte-6wlbb4),\n .layout-stimulus_image_blank.svelte-6wlbb4 .choice-row-horizontal:where(.svelte-6wlbb4),\n .layout-inline_sentence.has-inline-audio.svelte-6wlbb4 .choice-row-horizontal:where(.svelte-6wlbb4) {width:min(100%, var(--mpb-narrow-choice-max-width, 230px));align-items:flex-start;}\n }"
@@ -6493,10 +6618,10 @@ function McPopulatedBlank($$anchor, $$props) {
6493
6618
  flushSync();
6494
6619
  }
6495
6620
  };
6496
- var div = root();
6621
+ var div = root_8();
6497
6622
  var node_1 = child(div);
6498
6623
  var consequent = ($$anchor) => {
6499
- var div_1 = root_1();
6624
+ var div_1 = root();
6500
6625
  html(div_1, () => model().prompt, true);
6501
6626
  reset(div_1);
6502
6627
  template_effect(() => set_attribute(div_1, "id", get(promptId)));
@@ -6507,7 +6632,7 @@ function McPopulatedBlank($$anchor, $$props) {
6507
6632
  });
6508
6633
  var node_2 = sibling(node_1, 2);
6509
6634
  var consequent_1 = ($$anchor) => {
6510
- var p = root_2();
6635
+ var p = root_1();
6511
6636
  var text = child(p, true);
6512
6637
  reset(p);
6513
6638
  template_effect(() => {
@@ -6522,16 +6647,16 @@ function McPopulatedBlank($$anchor, $$props) {
6522
6647
  });
6523
6648
  var node_3 = sibling(node_2, 2);
6524
6649
  var consequent_3 = ($$anchor) => {
6525
- var div_2 = root_3();
6650
+ var div_2 = root_4();
6526
6651
  var button = child(div_2);
6527
6652
  var span = child(button);
6528
6653
  var span_1 = child(span);
6529
6654
  var node_4 = child(span_1);
6530
6655
  var consequent_2 = ($$anchor) => {
6531
- append($$anchor, root_4());
6656
+ append($$anchor, root_2());
6532
6657
  };
6533
6658
  var alternate = ($$anchor) => {
6534
- append($$anchor, root_5());
6659
+ append($$anchor, root_3());
6535
6660
  };
6536
6661
  if_block(node_4, ($$render) => {
6537
6662
  if (get(showCorrectAnswer)) $$render(consequent_2);
@@ -6598,7 +6723,7 @@ function McPopulatedBlank($$anchor, $$props) {
6598
6723
  }
6599
6724
  var node_6 = sibling(node_5, 2);
6600
6725
  var consequent_4 = ($$anchor) => {
6601
- var div_3 = root_6();
6726
+ var div_3 = root_5();
6602
6727
  html(div_3, () => model().sentenceHtml, true);
6603
6728
  reset(div_3);
6604
6729
  template_effect(() => set_attribute(div_3, "aria-describedby", get(templateDescribedBy)));
@@ -6609,7 +6734,7 @@ function McPopulatedBlank($$anchor, $$props) {
6609
6734
  });
6610
6735
  var node_7 = sibling(node_6, 2);
6611
6736
  var consequent_5 = ($$anchor) => {
6612
- var div_4 = root_7();
6737
+ var div_4 = root_6();
6613
6738
  var node_8 = child(div_4);
6614
6739
  html(node_8, () => get(templateParts).before);
6615
6740
  var node_9 = sibling(node_8, 2);
@@ -6646,7 +6771,7 @@ function McPopulatedBlank($$anchor, $$props) {
6646
6771
  });
6647
6772
  var node_11 = sibling(node_7, 2);
6648
6773
  var consequent_6 = ($$anchor) => {
6649
- var p_1 = root_8();
6774
+ var p_1 = root_7();
6650
6775
  var text_2 = child(p_1, true);
6651
6776
  reset(p_1);
6652
6777
  template_effect(() => {