@pie-element/simple-cloze 0.1.1 → 0.1.2

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.
@@ -1,16 +1,16 @@
1
- //#region ../../../node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/disclose-version.js
1
+ //#region ../../../node_modules/.bun/svelte@5.55.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.54.0/node_modules/svelte/src/constants.js
7
+ //#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/constants.js
8
8
  var HYDRATION_ERROR = {};
9
9
  var UNINITIALIZED = Symbol();
10
10
  var NAMESPACE_SVG = "http://www.w3.org/2000/svg";
11
11
  var NAMESPACE_MATHML = "http://www.w3.org/1998/Math/MathML";
12
12
  //#endregion
13
- //#region ../../../node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/shared/utils.js
13
+ //#region ../../../node_modules/.bun/svelte@5.55.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;
@@ -130,7 +130,7 @@ function lifecycle_outside_component(name) {
130
130
  throw new Error(`https://svelte.dev/e/lifecycle_outside_component`);
131
131
  }
132
132
  //#endregion
133
- //#region ../../../node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/errors.js
133
+ //#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/errors.js
134
134
  /**
135
135
  * Cannot create a `$derived(...)` with an `await` expression outside of an effect tree
136
136
  * @returns {never}
@@ -225,7 +225,7 @@ function svelte_boundary_reset_noop() {
225
225
  console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`);
226
226
  }
227
227
  //#endregion
228
- //#region ../../../node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/dom/hydration.js
228
+ //#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/dom/hydration.js
229
229
  /** @import { TemplateNode } from '#client' */
230
230
  /**
231
231
  * Use this variable to guard everything related to hydration code so it can be treeshaken out
@@ -304,7 +304,7 @@ function read_hydration_instruction(node) {
304
304
  return node.data;
305
305
  }
306
306
  //#endregion
307
- //#region ../../../node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/reactivity/equality.js
307
+ //#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/reactivity/equality.js
308
308
  /** @import { Equals } from '#client' */
309
309
  /** @type {Equals} */
310
310
  function equals(value) {
@@ -323,13 +323,13 @@ function safe_equals(value) {
323
323
  return !safe_not_equal(value, this.v);
324
324
  }
325
325
  //#endregion
326
- //#region ../../../node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/flags/index.js
326
+ //#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/flags/index.js
327
327
  /** True if experimental.async=true */
328
328
  var async_mode_flag = false;
329
329
  /** True if we're not certain that we only have Svelte 5 code in the compilation */
330
330
  var legacy_mode_flag = false;
331
331
  //#endregion
332
- //#region ../../../node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/context.js
332
+ //#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/context.js
333
333
  /** @import { ComponentContext, DevStackEntry, Effect } from '#client' */
334
334
  /** @type {ComponentContext | null} */
335
335
  var component_context = null;
@@ -381,7 +381,7 @@ function is_runes() {
381
381
  return !legacy_mode_flag || component_context !== null && component_context.l === null;
382
382
  }
383
383
  //#endregion
384
- //#region ../../../node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/dom/task.js
384
+ //#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/dom/task.js
385
385
  /** @type {Array<() => void>} */
386
386
  var micro_tasks = [];
387
387
  function run_micro_tasks() {
@@ -439,7 +439,7 @@ function invoke_error_boundary(error, effect) {
439
439
  throw error;
440
440
  }
441
441
  //#endregion
442
- //#region ../../../node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/reactivity/status.js
442
+ //#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/reactivity/status.js
443
443
  /** @import { Derived, Signal } from '#client' */
444
444
  var STATUS_MASK = ~(DIRTY | MAYBE_DIRTY | CLEAN);
445
445
  /**
@@ -458,7 +458,7 @@ function update_derived_status(derived) {
458
458
  else set_signal_status(derived, MAYBE_DIRTY);
459
459
  }
460
460
  //#endregion
461
- //#region ../../../node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/reactivity/utils.js
461
+ //#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/reactivity/utils.js
462
462
  /** @import { Derived, Effect, Value } from '#client' */
463
463
  /**
464
464
  * @param {Value[] | null} deps
@@ -486,7 +486,7 @@ function defer_effect(effect, dirty_effects, maybe_dirty_effects) {
486
486
  set_signal_status(effect, CLEAN);
487
487
  }
488
488
  //#endregion
489
- //#region ../../../node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/reactivity/store.js
489
+ //#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/reactivity/store.js
490
490
  /**
491
491
  * We set this to `true` when updating a store so that we correctly
492
492
  * schedule effects if the update takes place inside a `$:` effect
@@ -547,7 +547,7 @@ function _classPrivateFieldSet2(s, a, r) {
547
547
  return s.set(_assertClassBrand(s, a), r), r;
548
548
  }
549
549
  //#endregion
550
- //#region ../../../node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/reactivity/batch.js
550
+ //#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/reactivity/batch.js
551
551
  /** @import { Fork } from 'svelte' */
552
552
  /** @import { Derived, Effect, Reaction, Source, Value } from '#client' */
553
553
  var _Batch;
@@ -589,10 +589,12 @@ var _pending = /* @__PURE__ */ new WeakMap();
589
589
  var _blocking_pending = /* @__PURE__ */ new WeakMap();
590
590
  var _deferred = /* @__PURE__ */ new WeakMap();
591
591
  var _roots = /* @__PURE__ */ new WeakMap();
592
+ var _new_effects = /* @__PURE__ */ new WeakMap();
592
593
  var _dirty_effects$1 = /* @__PURE__ */ new WeakMap();
593
594
  var _maybe_dirty_effects$1 = /* @__PURE__ */ new WeakMap();
594
595
  var _skipped_branches = /* @__PURE__ */ new WeakMap();
595
596
  var _decrement_queued = /* @__PURE__ */ new WeakMap();
597
+ var _blockers = /* @__PURE__ */ new WeakMap();
596
598
  var _Batch_brand = /* @__PURE__ */ new WeakSet();
597
599
  var Batch = class Batch {
598
600
  constructor() {
@@ -601,9 +603,10 @@ var Batch = class Batch {
601
603
  _defineProperty(
602
604
  this,
603
605
  /**
604
- * The current values of any sources that are updated in this batch
606
+ * The current values of any signals that are updated in this batch.
607
+ * Tuple format: [value, is_derived] (note: is_derived is false for deriveds, too, if they were overridden via assignment)
605
608
  * They keys of this map are identical to `this.#previous`
606
- * @type {Map<Source, any>}
609
+ * @type {Map<Value, [any, boolean]>}
607
610
  */
608
611
  "current",
609
612
  /* @__PURE__ */ new Map()
@@ -611,24 +614,26 @@ var Batch = class Batch {
611
614
  _defineProperty(
612
615
  this,
613
616
  /**
614
- * The values of any sources that are updated in this batch _before_ those updates took place.
617
+ * The values of any signals (sources and deriveds) that are updated in this batch _before_ those updates took place.
615
618
  * They keys of this map are identical to `this.#current`
616
- * @type {Map<Source, any>}
619
+ * @type {Map<Value, any>}
617
620
  */
618
621
  "previous",
619
622
  /* @__PURE__ */ new Map()
620
623
  );
621
624
  _classPrivateFieldInitSpec(this, _commit_callbacks, /* @__PURE__ */ new Set());
622
625
  _classPrivateFieldInitSpec(this, _discard_callbacks, /* @__PURE__ */ new Set());
623
- _classPrivateFieldInitSpec(this, _pending, 0);
624
- _classPrivateFieldInitSpec(this, _blocking_pending, 0);
626
+ _classPrivateFieldInitSpec(this, _pending, /* @__PURE__ */ new Map());
627
+ _classPrivateFieldInitSpec(this, _blocking_pending, /* @__PURE__ */ new Map());
625
628
  _classPrivateFieldInitSpec(this, _deferred, null);
626
629
  _classPrivateFieldInitSpec(this, _roots, []);
630
+ _classPrivateFieldInitSpec(this, _new_effects, []);
627
631
  _classPrivateFieldInitSpec(this, _dirty_effects$1, /* @__PURE__ */ new Set());
628
632
  _classPrivateFieldInitSpec(this, _maybe_dirty_effects$1, /* @__PURE__ */ new Set());
629
633
  _classPrivateFieldInitSpec(this, _skipped_branches, /* @__PURE__ */ new Map());
630
634
  _defineProperty(this, "is_fork", false);
631
635
  _classPrivateFieldInitSpec(this, _decrement_queued, false);
636
+ _classPrivateFieldInitSpec(this, _blockers, /* @__PURE__ */ new Set());
632
637
  }
633
638
  /**
634
639
  * Add an effect to the #skipped_branches map and reset its children
@@ -662,13 +667,14 @@ var Batch = class Batch {
662
667
  /**
663
668
  * Associate a change to a given source with the current
664
669
  * batch, noting its previous and current values
665
- * @param {Source} source
670
+ * @param {Value} source
666
671
  * @param {any} old_value
672
+ * @param {boolean} [is_derived]
667
673
  */
668
- capture(source, old_value) {
674
+ capture(source, old_value, is_derived = false) {
669
675
  if (old_value !== UNINITIALIZED && !this.previous.has(source)) this.previous.set(source, old_value);
670
676
  if ((source.f & 8388608) === 0) {
671
- this.current.set(source, source.v);
677
+ this.current.set(source, [source.v, is_derived]);
672
678
  batch_values?.set(source, source.v);
673
679
  }
674
680
  }
@@ -701,20 +707,37 @@ var Batch = class Batch {
701
707
  batches.delete(this);
702
708
  }
703
709
  /**
704
- *
710
+ * @param {Effect} effect
711
+ */
712
+ register_created_effect(effect) {
713
+ _classPrivateFieldGet2(_new_effects, this).push(effect);
714
+ }
715
+ /**
705
716
  * @param {boolean} blocking
717
+ * @param {Effect} effect
706
718
  */
707
- increment(blocking) {
708
- _classPrivateFieldSet2(_pending, this, _classPrivateFieldGet2(_pending, this) + 1);
709
- if (blocking) _classPrivateFieldSet2(_blocking_pending, this, _classPrivateFieldGet2(_blocking_pending, this) + 1);
719
+ increment(blocking, effect) {
720
+ let pending_count = _classPrivateFieldGet2(_pending, this).get(effect) ?? 0;
721
+ _classPrivateFieldGet2(_pending, this).set(effect, pending_count + 1);
722
+ if (blocking) {
723
+ let blocking_pending_count = _classPrivateFieldGet2(_blocking_pending, this).get(effect) ?? 0;
724
+ _classPrivateFieldGet2(_blocking_pending, this).set(effect, blocking_pending_count + 1);
725
+ }
710
726
  }
711
727
  /**
712
728
  * @param {boolean} blocking
729
+ * @param {Effect} effect
713
730
  * @param {boolean} skip - whether to skip updates (because this is triggered by a stale reaction)
714
731
  */
715
- decrement(blocking, skip) {
716
- _classPrivateFieldSet2(_pending, this, _classPrivateFieldGet2(_pending, this) - 1);
717
- if (blocking) _classPrivateFieldSet2(_blocking_pending, this, _classPrivateFieldGet2(_blocking_pending, this) - 1);
732
+ decrement(blocking, effect, skip) {
733
+ let pending_count = _classPrivateFieldGet2(_pending, this).get(effect) ?? 0;
734
+ if (pending_count === 1) _classPrivateFieldGet2(_pending, this).delete(effect);
735
+ else _classPrivateFieldGet2(_pending, this).set(effect, pending_count - 1);
736
+ if (blocking) {
737
+ let blocking_pending_count = _classPrivateFieldGet2(_blocking_pending, this).get(effect) ?? 0;
738
+ if (blocking_pending_count === 1) _classPrivateFieldGet2(_blocking_pending, this).delete(effect);
739
+ else _classPrivateFieldGet2(_blocking_pending, this).set(effect, blocking_pending_count - 1);
740
+ }
718
741
  if (_classPrivateFieldGet2(_decrement_queued, this) || skip) return;
719
742
  _classPrivateFieldSet2(_decrement_queued, this, true);
720
743
  queue_micro_task(() => {
@@ -761,10 +784,19 @@ var Batch = class Batch {
761
784
  batch_values = null;
762
785
  return;
763
786
  }
764
- batch_values = new Map(this.current);
787
+ batch_values = /* @__PURE__ */ new Map();
788
+ for (const [source, [value]] of this.current) batch_values.set(source, value);
765
789
  for (const batch of batches) {
766
790
  if (batch === this || batch.is_fork) continue;
767
- for (const [source, previous] of batch.previous) if (!batch_values.has(source)) batch_values.set(source, previous);
791
+ var intersects = false;
792
+ var differs = false;
793
+ if (batch.id < this.id) for (const [source, [, is_derived]] of batch.current) {
794
+ if (is_derived) continue;
795
+ intersects || (intersects = this.current.has(source));
796
+ differs || (differs = !this.current.has(source));
797
+ }
798
+ if (intersects && differs) _classPrivateFieldGet2(_blockers, this).add(batch);
799
+ else for (const [source, previous] of batch.previous) if (!batch_values.has(source)) batch_values.set(source, previous);
768
800
  }
769
801
  }
770
802
  /**
@@ -795,7 +827,22 @@ var Batch = class Batch {
795
827
  };
796
828
  _Batch = Batch;
797
829
  function _is_deferred() {
798
- return this.is_fork || _classPrivateFieldGet2(_blocking_pending, this) > 0;
830
+ return this.is_fork || _classPrivateFieldGet2(_blocking_pending, this).size > 0;
831
+ }
832
+ function _is_blocked() {
833
+ for (const batch of _classPrivateFieldGet2(_blockers, this)) for (const effect of _classPrivateFieldGet2(_blocking_pending, batch).keys()) {
834
+ var skipped = false;
835
+ var e = effect;
836
+ while (e.parent !== null) {
837
+ if (_classPrivateFieldGet2(_skipped_branches, this).has(e)) {
838
+ skipped = true;
839
+ break;
840
+ }
841
+ e = e.parent;
842
+ }
843
+ if (!skipped) return true;
844
+ }
845
+ return false;
799
846
  }
800
847
  function _process() {
801
848
  if (flush_count++ > 1e3) {
@@ -838,12 +885,12 @@ function _process() {
838
885
  }
839
886
  collected_effects = null;
840
887
  legacy_updates = null;
841
- if (_assertClassBrand(_Batch_brand, this, _is_deferred).call(this)) {
888
+ if (_assertClassBrand(_Batch_brand, this, _is_deferred).call(this) || _assertClassBrand(_Batch_brand, this, _is_blocked).call(this)) {
842
889
  _assertClassBrand(_Batch_brand, this, _defer_effects).call(this, render_effects);
843
890
  _assertClassBrand(_Batch_brand, this, _defer_effects).call(this, effects);
844
891
  for (const [e, t] of _classPrivateFieldGet2(_skipped_branches, this)) reset_branch(e, t);
845
892
  } else {
846
- if (_classPrivateFieldGet2(_pending, this) === 0) batches.delete(this);
893
+ if (_classPrivateFieldGet2(_pending, this).size === 0) batches.delete(this);
847
894
  _classPrivateFieldGet2(_dirty_effects$1, this).clear();
848
895
  _classPrivateFieldGet2(_maybe_dirty_effects$1, this).clear();
849
896
  for (const fn of _classPrivateFieldGet2(_commit_callbacks, this)) fn(this);
@@ -911,9 +958,12 @@ function _commit$1() {
911
958
  var is_earlier = batch.id < this.id;
912
959
  /** @type {Source[]} */
913
960
  var sources = [];
914
- for (const [source, value] of this.current) {
915
- if (batch.current.has(source)) if (is_earlier && value !== batch.current.get(source)) batch.current.set(source, value);
916
- else continue;
961
+ for (const [source, [value, is_derived]] of this.current) {
962
+ if (batch.current.has(source)) {
963
+ var batch_value = batch.current.get(source)[0];
964
+ if (is_earlier && value !== batch_value) batch.current.set(source, [value, is_derived]);
965
+ else continue;
966
+ }
917
967
  sources.push(source);
918
968
  }
919
969
  var others = [...batch.current.keys()].filter((s) => !this.current.has(s));
@@ -926,6 +976,12 @@ function _commit$1() {
926
976
  /** @type {Map<Reaction, boolean>} */
927
977
  var checked = /* @__PURE__ */ new Map();
928
978
  for (var source of sources) mark_effects(source, others, marked, checked);
979
+ checked = /* @__PURE__ */ new Map();
980
+ var current_unequal = [...batch.current.keys()].filter((c) => this.current.has(c) ? this.current.get(c)[0] !== c : true);
981
+ for (const effect of _classPrivateFieldGet2(_new_effects, this)) if ((effect.f & 155648) === 0 && depends_on(effect, current_unequal, checked)) if ((effect.f & 4194320) !== 0) {
982
+ set_signal_status(effect, DIRTY);
983
+ batch.schedule(effect);
984
+ } else _classPrivateFieldGet2(_dirty_effects$1, batch).add(effect);
929
985
  if (_classPrivateFieldGet2(_roots, batch).length > 0) {
930
986
  batch.apply();
931
987
  for (var root of _classPrivateFieldGet2(_roots, batch)) _assertClassBrand(_Batch_brand, batch, _traverse).call(batch, root, [], []);
@@ -934,6 +990,13 @@ function _commit$1() {
934
990
  batch.deactivate();
935
991
  }
936
992
  }
993
+ for (const batch of batches) if (_classPrivateFieldGet2(_blockers, batch).has(this)) {
994
+ _classPrivateFieldGet2(_blockers, batch).delete(this);
995
+ if (_classPrivateFieldGet2(_blockers, batch).size === 0 && !_assertClassBrand(_Batch_brand, batch, _is_deferred).call(batch)) {
996
+ batch.activate();
997
+ _assertClassBrand(_Batch_brand, batch, _process).call(batch);
998
+ }
999
+ }
937
1000
  }
938
1001
  /**
939
1002
  * Synchronously flush any pending updates.
@@ -1086,7 +1149,7 @@ function reset_all(effect) {
1086
1149
  }
1087
1150
  }
1088
1151
  //#endregion
1089
- //#region ../../../node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/reactivity/create-subscriber.js
1152
+ //#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/reactivity/create-subscriber.js
1090
1153
  /**
1091
1154
  * Returns a `subscribe` function that integrates external event-based systems with Svelte's reactivity.
1092
1155
  * It's particularly useful for integrating with web APIs like `MediaQuery`, `IntersectionObserver`, or `WebSocket`.
@@ -1159,7 +1222,7 @@ function createSubscriber(start) {
1159
1222
  };
1160
1223
  }
1161
1224
  //#endregion
1162
- //#region ../../../node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
1225
+ //#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
1163
1226
  /** @import { Effect, Source, TemplateNode, } from '#client' */
1164
1227
  /**
1165
1228
  * @typedef {{
@@ -1499,7 +1562,7 @@ function _update_pending_count(d, batch) {
1499
1562
  }
1500
1563
  }
1501
1564
  //#endregion
1502
- //#region ../../../node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/reactivity/async.js
1565
+ //#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/reactivity/async.js
1503
1566
  /** @import { Blocker, Effect, Value } from '#client' */
1504
1567
  /**
1505
1568
  * @param {Blocker[]} blockers
@@ -1572,14 +1635,15 @@ function unset_context(deactivate_batch = true) {
1572
1635
  * @returns {(skip?: boolean) => void}
1573
1636
  */
1574
1637
  function increment_pending() {
1575
- var boundary = active_effect.b;
1638
+ var effect = active_effect;
1639
+ var boundary = effect.b;
1576
1640
  var batch = current_batch;
1577
1641
  var blocking = boundary.is_rendered();
1578
1642
  boundary.update_pending_count(1, batch);
1579
- batch.increment(blocking);
1643
+ batch.increment(blocking, effect);
1580
1644
  return (skip = false) => {
1581
1645
  boundary.update_pending_count(-1, batch);
1582
- batch.decrement(blocking, skip);
1646
+ batch.decrement(blocking, effect, skip);
1583
1647
  };
1584
1648
  }
1585
1649
  /**
@@ -1759,7 +1823,7 @@ function update_derived(derived) {
1759
1823
  derived.wv = increment_write_version();
1760
1824
  if (!current_batch?.is_fork || derived.deps === null) {
1761
1825
  derived.v = value;
1762
- current_batch?.capture(derived, old_value);
1826
+ current_batch?.capture(derived, old_value, true);
1763
1827
  if (derived.deps === null) {
1764
1828
  set_signal_status(derived, CLEAN);
1765
1829
  return;
@@ -1793,7 +1857,7 @@ function unfreeze_derived_effects(derived) {
1793
1857
  for (const e of derived.effects) if (e.teardown) update_effect(e);
1794
1858
  }
1795
1859
  //#endregion
1796
- //#region ../../../node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/reactivity/sources.js
1860
+ //#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/reactivity/sources.js
1797
1861
  /** @import { Derived, Effect, Source, Value } from '#client' */
1798
1862
  /** @type {Set<any>} */
1799
1863
  var eager_effects = /* @__PURE__ */ new Set();
@@ -2088,7 +2152,7 @@ function proxy(value) {
2088
2152
  });
2089
2153
  }
2090
2154
  //#endregion
2091
- //#region ../../../node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/dom/operations.js
2155
+ //#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/dom/operations.js
2092
2156
  /** @import { Effect, TemplateNode } from '#client' */
2093
2157
  /** @type {Window} */
2094
2158
  var $window;
@@ -2260,7 +2324,7 @@ function merge_text_nodes(text) {
2260
2324
  }
2261
2325
  }
2262
2326
  //#endregion
2263
- //#region ../../../node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/dom/elements/misc.js
2327
+ //#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/dom/elements/misc.js
2264
2328
  var listening_to_form_reset = false;
2265
2329
  function add_form_reset_listener() {
2266
2330
  if (!listening_to_form_reset) {
@@ -2273,7 +2337,7 @@ function add_form_reset_listener() {
2273
2337
  }
2274
2338
  }
2275
2339
  //#endregion
2276
- //#region ../../../node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
2340
+ //#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
2277
2341
  /**
2278
2342
  * @template T
2279
2343
  * @param {() => T} fn
@@ -2291,7 +2355,7 @@ function without_reactive_context(fn) {
2291
2355
  }
2292
2356
  }
2293
2357
  //#endregion
2294
- //#region ../../../node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/reactivity/effects.js
2358
+ //#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/reactivity/effects.js
2295
2359
  /** @import { Blocker, ComponentContext, ComponentContextLegacy, Derived, Effect, TemplateNode, TransitionManager } from '#client' */
2296
2360
  /**
2297
2361
  * @param {'$effect' | '$effect.pre' | '$inspect'} rune
@@ -2341,6 +2405,7 @@ function create_effect(type, fn) {
2341
2405
  wv: 0,
2342
2406
  ac: null
2343
2407
  };
2408
+ current_batch?.register_created_effect(effect);
2344
2409
  /** @type {Effect | null} */
2345
2410
  var e = effect;
2346
2411
  if ((type & 4) !== 0) if (collected_effects !== null) collected_effects.push(effect);
@@ -2549,7 +2614,7 @@ function destroy_effect(effect, remove_dom = true) {
2549
2614
  effect.f |= DESTROYED;
2550
2615
  var parent = effect.parent;
2551
2616
  if (parent !== null && parent.first !== null) unlink_effect(effect);
2552
- effect.next = effect.prev = effect.teardown = effect.ctx = effect.deps = effect.fn = effect.nodes = effect.ac = null;
2617
+ effect.next = effect.prev = effect.teardown = effect.ctx = effect.deps = effect.fn = effect.nodes = effect.ac = effect.b = null;
2553
2618
  }
2554
2619
  /**
2555
2620
  *
@@ -2672,14 +2737,14 @@ function move_effect(effect, fragment) {
2672
2737
  }
2673
2738
  }
2674
2739
  //#endregion
2675
- //#region ../../../node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/legacy.js
2740
+ //#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/legacy.js
2676
2741
  /**
2677
2742
  * @type {Set<Value> | null}
2678
2743
  * @deprecated
2679
2744
  */
2680
2745
  var captured_signals = null;
2681
2746
  //#endregion
2682
- //#region ../../../node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/runtime.js
2747
+ //#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/runtime.js
2683
2748
  /** @import { Derived, Effect, Reaction, Source, Value } from '#client' */
2684
2749
  var is_updating_effect = false;
2685
2750
  var is_destroying_effect = false;
@@ -3023,7 +3088,7 @@ function untrack(fn) {
3023
3088
  }
3024
3089
  }
3025
3090
  //#endregion
3026
- //#region ../../../node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/dom/elements/events.js
3091
+ //#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/dom/elements/events.js
3027
3092
  /**
3028
3093
  * Used on elements, as a map of event type -> event handler,
3029
3094
  * and on events themselves to track which element handled an event
@@ -3123,7 +3188,7 @@ function handle_event_propagation(event) {
3123
3188
  }
3124
3189
  }
3125
3190
  //#endregion
3126
- //#region ../../../node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/dom/reconciler.js
3191
+ //#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/dom/reconciler.js
3127
3192
  var policy = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (html) => {
3128
3193
  return html;
3129
3194
  } });
@@ -3140,7 +3205,7 @@ function create_fragment_from_html(html) {
3140
3205
  return elem.content;
3141
3206
  }
3142
3207
  //#endregion
3143
- //#region ../../../node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/dom/template.js
3208
+ //#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/dom/template.js
3144
3209
  /** @import { Effect, EffectNodes, TemplateNode } from '#client' */
3145
3210
  /** @import { TemplateStructure } from './types' */
3146
3211
  /**
@@ -3414,7 +3479,7 @@ function unmount(component, options) {
3414
3479
  return Promise.resolve();
3415
3480
  }
3416
3481
  //#endregion
3417
- //#region ../../../node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/dom/blocks/branches.js
3482
+ //#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/dom/blocks/branches.js
3418
3483
  /** @import { Effect, TemplateNode } from '#client' */
3419
3484
  var _batches = /* @__PURE__ */ new WeakMap();
3420
3485
  var _onscreen = /* @__PURE__ */ new WeakMap();
@@ -3638,7 +3703,7 @@ function init_update_callbacks(context) {
3638
3703
  });
3639
3704
  }
3640
3705
  //#endregion
3641
- //#region ../../../node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/dom/blocks/if.js
3706
+ //#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/dom/blocks/if.js
3642
3707
  /** @import { TemplateNode } from '#client' */
3643
3708
  /**
3644
3709
  * @param {TemplateNode} node
@@ -3744,7 +3809,7 @@ function html(node, get_value, is_controlled = false, svg = false, mathml = fals
3744
3809
  });
3745
3810
  }
3746
3811
  //#endregion
3747
- //#region ../../../node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/dom/css.js
3812
+ //#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/dom/css.js
3748
3813
  /**
3749
3814
  * @param {Node} anchor
3750
3815
  * @param {{ hash: string, code: string }} css
@@ -3762,7 +3827,7 @@ function append_styles$1(anchor, css) {
3762
3827
  });
3763
3828
  }
3764
3829
  //#endregion
3765
- //#region ../../../node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/shared/attributes.js
3830
+ //#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/shared/attributes.js
3766
3831
  var whitespace$1 = [..." \n\r\f\xA0\v"];
3767
3832
  /**
3768
3833
  * @param {any} value
@@ -3872,7 +3937,7 @@ function to_style(value, styles) {
3872
3937
  return value == null ? null : String(value);
3873
3938
  }
3874
3939
  //#endregion
3875
- //#region ../../../node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/dom/elements/class.js
3940
+ //#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/dom/elements/class.js
3876
3941
  /**
3877
3942
  * @param {Element} dom
3878
3943
  * @param {boolean | number} is_html
@@ -3897,7 +3962,7 @@ function set_class(dom, is_html, value, hash, prev_classes, next_classes) {
3897
3962
  return next_classes;
3898
3963
  }
3899
3964
  //#endregion
3900
- //#region ../../../node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/dom/elements/style.js
3965
+ //#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/dom/elements/style.js
3901
3966
  /**
3902
3967
  * @param {Element & ElementCSSInlineStyle} dom
3903
3968
  * @param {Record<string, any>} prev
@@ -3931,7 +3996,7 @@ function set_style(dom, value, prev_styles, next_styles) {
3931
3996
  return next_styles;
3932
3997
  }
3933
3998
  //#endregion
3934
- //#region ../../../node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/dom/elements/attributes.js
3999
+ //#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/dom/elements/attributes.js
3935
4000
  /** @import { Blocker, Effect } from '#client' */
3936
4001
  var IS_CUSTOM_ELEMENT = Symbol("is custom element");
3937
4002
  var IS_HTML = Symbol("is html");
@@ -4029,7 +4094,7 @@ function get_setters(element) {
4029
4094
  */
4030
4095
  function check_src_in_dev_hydration(element, attribute, value) {}
4031
4096
  //#endregion
4032
- //#region ../../../node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/dom/elements/bindings/size.js
4097
+ //#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/dom/elements/bindings/size.js
4033
4098
  var _ResizeObserverSingleton;
4034
4099
  var _listeners = /* @__PURE__ */ new WeakMap();
4035
4100
  var _observer = /* @__PURE__ */ new WeakMap();
@@ -4081,7 +4146,7 @@ function _getObserver() {
4081
4146
  }
4082
4147
  _defineProperty(ResizeObserverSingleton, "entries", /* @__PURE__ */ new WeakMap());
4083
4148
  //#endregion
4084
- //#region ../../../node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/dom/elements/bindings/this.js
4149
+ //#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/dom/elements/bindings/this.js
4085
4150
  /** @import { ComponentContext, Effect } from '#client' */
4086
4151
  /**
4087
4152
  * @param {any} bound_value
@@ -4133,7 +4198,7 @@ function bind_this(element_or_component = {}, update, get_value, get_parts) {
4133
4198
  return element_or_component;
4134
4199
  }
4135
4200
  //#endregion
4136
- //#region ../../../node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/reactivity/props.js
4201
+ //#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/reactivity/props.js
4137
4202
  /** @import { Effect, Source } from './types.js' */
4138
4203
  /**
4139
4204
  * This function is responsible for synchronizing a possibly bound prop with the inner component state.
@@ -4221,7 +4286,7 @@ function prop(props, key, flags, fallback) {
4221
4286
  });
4222
4287
  }
4223
4288
  //#endregion
4224
- //#region ../../../node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/legacy/legacy-client.js
4289
+ //#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/legacy/legacy-client.js
4225
4290
  /** @import { ComponentConstructorOptions, ComponentType, SvelteComponent, Component } from 'svelte' */
4226
4291
  /**
4227
4292
  * Takes the same options as a Svelte 4 component and the component function and returns a Svelte 4 compatible component.
@@ -4339,7 +4404,7 @@ var Svelte4Component = class {
4339
4404
  }
4340
4405
  };
4341
4406
  //#endregion
4342
- //#region ../../../node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/dom/elements/custom-element.js
4407
+ //#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/dom/elements/custom-element.js
4343
4408
  /**
4344
4409
  * @typedef {Object} CustomElementPropDefinition
4345
4410
  * @property {string} [attribute]