@pie-element/mc-populated-blank 0.3.0-next.20 → 0.3.0-next.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/author/index.js +135 -133
- package/dist/author/index.js.map +1 -1
- package/dist/browser/{McPopulatedBlank-DJOmkW2m.js → McPopulatedBlank-B0ep0vS4.js} +2 -2
- package/dist/browser/{McPopulatedBlank-DJOmkW2m.js.map → McPopulatedBlank-B0ep0vS4.js.map} +1 -1
- package/dist/browser/author/index.js +1 -1
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/{client-CWh3mUUV.js → client-Dfdyltec.js} +632 -617
- package/dist/browser/client-Dfdyltec.js.map +1 -0
- package/dist/browser/delivery/index.js +1 -1
- package/dist/browser/print/index.js +2 -2
- package/dist/browser/print/index.js.map +1 -1
- package/dist/delivery/index.js +146 -144
- package/dist/delivery/index.js.map +1 -1
- package/dist/index.iife.js +7 -7
- package/dist/print/index.js +146 -144
- package/dist/print/index.js.map +1 -1
- package/module/print.js +1082 -1067
- package/module/print.js.map +1 -1
- package/package.json +1 -1
- package/dist/browser/client-CWh3mUUV.js.map +0 -1
package/dist/author/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
1
|
+
//#region ../../../node_modules/.bun/svelte@5.57.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.57.
|
|
7
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/constants.js
|
|
8
8
|
var HYDRATION_ERROR = {};
|
|
9
9
|
var UNINITIALIZED = Symbol("uninitialized");
|
|
10
10
|
//#endregion
|
|
11
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
11
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/shared/utils.js
|
|
12
12
|
var is_array = Array.isArray;
|
|
13
13
|
var index_of = Array.prototype.indexOf;
|
|
14
14
|
var includes = Array.prototype.includes;
|
|
@@ -97,13 +97,6 @@ var DESTROYING = 1 << 25;
|
|
|
97
97
|
var EFFECT_TRANSPARENT = 65536;
|
|
98
98
|
var EFFECT_PRESERVED = 1 << 19;
|
|
99
99
|
var USER_EFFECT = 1 << 20;
|
|
100
|
-
/**
|
|
101
|
-
* Tells that we marked this derived and its reactions as visited during the "mark as (maybe) dirty"-phase.
|
|
102
|
-
* Will be lifted during execution of the derived and during checking its dirty state (both are necessary
|
|
103
|
-
* because a derived might be checked but not executed). This is a pure performance optimization flag and
|
|
104
|
-
* should not be used for any other purpose!
|
|
105
|
-
*/
|
|
106
|
-
var WAS_MARKED = 65536;
|
|
107
100
|
var REACTION_IS_UPDATING = 1 << 21;
|
|
108
101
|
var ERROR_VALUE = 1 << 23;
|
|
109
102
|
var STATE_SYMBOL = Symbol("$state");
|
|
@@ -143,7 +136,7 @@ function svelte_boundary_reset_noop() {
|
|
|
143
136
|
console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`);
|
|
144
137
|
}
|
|
145
138
|
//#endregion
|
|
146
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
139
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/hydration.js
|
|
147
140
|
/** @import { TemplateNode } from '#client' */
|
|
148
141
|
/**
|
|
149
142
|
* Use this variable to guard everything related to hydration code so it can be treeshaken out
|
|
@@ -202,7 +195,7 @@ function skip_nodes(remove = true) {
|
|
|
202
195
|
}
|
|
203
196
|
}
|
|
204
197
|
//#endregion
|
|
205
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
198
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/equality.js
|
|
206
199
|
/** @import { Equals } from '#client' */
|
|
207
200
|
/** @type {Equals} */
|
|
208
201
|
function equals(value) {
|
|
@@ -271,13 +264,13 @@ function svelte_boundary_reset_onerror() {
|
|
|
271
264
|
throw new Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`);
|
|
272
265
|
}
|
|
273
266
|
//#endregion
|
|
274
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
267
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/flags/index.js
|
|
275
268
|
/** True if experimental.async=true */
|
|
276
269
|
var async_mode_flag = false;
|
|
277
270
|
/** True if we're not certain that we only have Svelte 5 code in the compilation */
|
|
278
271
|
var legacy_mode_flag = false;
|
|
279
272
|
//#endregion
|
|
280
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
273
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/context.js
|
|
281
274
|
/** @import { ComponentContext, DevStackEntry, Effect } from '#client' */
|
|
282
275
|
/** @type {ComponentContext | null} */
|
|
283
276
|
var component_context = null;
|
|
@@ -337,7 +330,7 @@ function is_runes() {
|
|
|
337
330
|
return !legacy_mode_flag || component_context !== null && component_context.l === null;
|
|
338
331
|
}
|
|
339
332
|
//#endregion
|
|
340
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
333
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/task.js
|
|
341
334
|
/** @type {Array<() => void>} */
|
|
342
335
|
var micro_tasks = [];
|
|
343
336
|
function run_micro_tasks() {
|
|
@@ -364,7 +357,7 @@ function flush_tasks() {
|
|
|
364
357
|
while (micro_tasks.length > 0) run_micro_tasks();
|
|
365
358
|
}
|
|
366
359
|
//#endregion
|
|
367
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
360
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/status.js
|
|
368
361
|
/** @import { Derived, Signal } from '#client' */
|
|
369
362
|
var STATUS_MASK = ~(DIRTY | MAYBE_DIRTY | CLEAN);
|
|
370
363
|
/**
|
|
@@ -383,22 +376,8 @@ function update_derived_status(derived) {
|
|
|
383
376
|
else set_signal_status(derived, MAYBE_DIRTY);
|
|
384
377
|
}
|
|
385
378
|
//#endregion
|
|
386
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
387
|
-
/** @import {
|
|
388
|
-
/**
|
|
389
|
-
* @param {Value[] | null} deps
|
|
390
|
-
*/
|
|
391
|
-
function clear_marked(deps) {
|
|
392
|
-
if (deps === null) return;
|
|
393
|
-
for (const dep of deps) {
|
|
394
|
-
if ((dep.f & 2) === 0 || (dep.f & 65536) === 0) continue;
|
|
395
|
-
dep.f ^= WAS_MARKED;
|
|
396
|
-
clear_marked(
|
|
397
|
-
/** @type {Derived} */
|
|
398
|
-
dep.deps
|
|
399
|
-
);
|
|
400
|
-
}
|
|
401
|
-
}
|
|
379
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/utils.js
|
|
380
|
+
/** @import { Effect } from '#client' */
|
|
402
381
|
/**
|
|
403
382
|
* @param {Effect} effect
|
|
404
383
|
* @param {Set<Effect>} dirty_effects
|
|
@@ -407,41 +386,10 @@ function clear_marked(deps) {
|
|
|
407
386
|
function defer_effect(effect, dirty_effects, maybe_dirty_effects) {
|
|
408
387
|
if ((effect.f & 2048) !== 0) dirty_effects.add(effect);
|
|
409
388
|
else if ((effect.f & 4096) !== 0) maybe_dirty_effects.add(effect);
|
|
410
|
-
clear_marked(effect.deps);
|
|
411
389
|
set_signal_status(effect, CLEAN);
|
|
412
390
|
}
|
|
413
391
|
//#endregion
|
|
414
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
415
|
-
/**
|
|
416
|
-
* We set this to `true` when updating a store so that we correctly
|
|
417
|
-
* schedule effects if the update takes place inside a `$:` effect
|
|
418
|
-
*/
|
|
419
|
-
var legacy_is_updating_store = false;
|
|
420
|
-
/**
|
|
421
|
-
* Whether or not the prop currently being read is a store binding, as in
|
|
422
|
-
* `<Child bind:x={$y} />`. If it is, we treat the prop as mutable even in
|
|
423
|
-
* runes mode, and skip `binding_property_non_reactive` validation
|
|
424
|
-
*/
|
|
425
|
-
var is_store_binding = false;
|
|
426
|
-
/**
|
|
427
|
-
* Returns a tuple that indicates whether `fn()` reads a prop that is a store binding.
|
|
428
|
-
* Used to prevent `binding_property_non_reactive` validation false positives and
|
|
429
|
-
* ensure that these props are treated as mutable even in runes mode
|
|
430
|
-
* @template T
|
|
431
|
-
* @param {() => T} fn
|
|
432
|
-
* @returns {[T, boolean]}
|
|
433
|
-
*/
|
|
434
|
-
function capture_store_binding(fn) {
|
|
435
|
-
var previous_is_store_binding = is_store_binding;
|
|
436
|
-
try {
|
|
437
|
-
is_store_binding = false;
|
|
438
|
-
return [fn(), is_store_binding];
|
|
439
|
-
} finally {
|
|
440
|
-
is_store_binding = previous_is_store_binding;
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
//#endregion
|
|
444
|
-
//#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
|
|
392
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
|
|
445
393
|
/**
|
|
446
394
|
* @template T
|
|
447
395
|
* @param {() => T} fn
|
|
@@ -520,7 +468,6 @@ function execute_derived(derived) {
|
|
|
520
468
|
}
|
|
521
469
|
set_active_effect(parent);
|
|
522
470
|
try {
|
|
523
|
-
derived.f &= ~WAS_MARKED;
|
|
524
471
|
destroy_derived_effects(derived);
|
|
525
472
|
value = update_reaction(derived);
|
|
526
473
|
} finally {
|
|
@@ -607,7 +554,7 @@ function _classPrivateFieldGet2(s, a) {
|
|
|
607
554
|
return s.get(_assertClassBrand(s, a));
|
|
608
555
|
}
|
|
609
556
|
//#endregion
|
|
610
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
557
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/batch.js
|
|
611
558
|
/** @import { Fork } from 'svelte' */
|
|
612
559
|
/** @import { Derived, Effect, Reaction, Source, Value } from '#client' */
|
|
613
560
|
var _Batch;
|
|
@@ -658,7 +605,7 @@ var _discard_callbacks = /* @__PURE__ */ new WeakMap();
|
|
|
658
605
|
var _pending = /* @__PURE__ */ new WeakMap();
|
|
659
606
|
var _blocking_pending = /* @__PURE__ */ new WeakMap();
|
|
660
607
|
var _deferred = /* @__PURE__ */ new WeakMap();
|
|
661
|
-
var
|
|
608
|
+
var _scheduled = /* @__PURE__ */ new WeakMap();
|
|
662
609
|
var _new_effects = /* @__PURE__ */ new WeakMap();
|
|
663
610
|
var _dirty_effects$1 = /* @__PURE__ */ new WeakMap();
|
|
664
611
|
var _maybe_dirty_effects$1 = /* @__PURE__ */ new WeakMap();
|
|
@@ -706,7 +653,7 @@ var Batch = class Batch {
|
|
|
706
653
|
_classPrivateFieldInitSpec(this, _pending, 0);
|
|
707
654
|
_classPrivateFieldInitSpec(this, _blocking_pending, /* @__PURE__ */ new Map());
|
|
708
655
|
_classPrivateFieldInitSpec(this, _deferred, null);
|
|
709
|
-
_classPrivateFieldInitSpec(this,
|
|
656
|
+
_classPrivateFieldInitSpec(this, _scheduled, []);
|
|
710
657
|
_classPrivateFieldInitSpec(this, _new_effects, []);
|
|
711
658
|
_classPrivateFieldInitSpec(this, _dirty_effects$1, /* @__PURE__ */ new Set());
|
|
712
659
|
_classPrivateFieldInitSpec(this, _maybe_dirty_effects$1, /* @__PURE__ */ new Set());
|
|
@@ -895,20 +842,7 @@ var Batch = class Batch {
|
|
|
895
842
|
effect.b.defer_effect(effect);
|
|
896
843
|
return;
|
|
897
844
|
}
|
|
898
|
-
|
|
899
|
-
while (e.parent !== null) {
|
|
900
|
-
e = e.parent;
|
|
901
|
-
var flags = e.f;
|
|
902
|
-
if (collected_effects !== null && e === active_effect) {
|
|
903
|
-
if (async_mode_flag) return;
|
|
904
|
-
if ((active_reaction === null || (active_reaction.f & 2) === 0) && !legacy_is_updating_store) return;
|
|
905
|
-
}
|
|
906
|
-
if ((flags & 96) !== 0) {
|
|
907
|
-
if ((flags & 1024) === 0) return;
|
|
908
|
-
e.f ^= CLEAN;
|
|
909
|
-
}
|
|
910
|
-
}
|
|
911
|
-
_classPrivateFieldGet2(_roots, this).push(e);
|
|
845
|
+
_classPrivateFieldGet2(_scheduled, this).push(effect);
|
|
912
846
|
}
|
|
913
847
|
};
|
|
914
848
|
_Batch = Batch;
|
|
@@ -928,12 +862,40 @@ function _is_deferred() {
|
|
|
928
862
|
}
|
|
929
863
|
return false;
|
|
930
864
|
}
|
|
865
|
+
/**
|
|
866
|
+
* Convert the effects that were scheduled in this batch into the root effects
|
|
867
|
+
* that need to be traversed, marking the path to each effect (by clearing the
|
|
868
|
+
* `CLEAN` flag on ancestor branches) so that the traversal can find them.
|
|
869
|
+
* This happens right before traversal rather than at scheduling time, so that
|
|
870
|
+
* the markers left on the (shared) effect tree are created and consumed within
|
|
871
|
+
* a single traversal — scheduling into other batches can never observe them
|
|
872
|
+
* @returns {Effect[]}
|
|
873
|
+
*/
|
|
874
|
+
function _resolve$1() {
|
|
875
|
+
/** @type {Effect[]} */
|
|
876
|
+
var roots = [];
|
|
877
|
+
for (const effect of _classPrivateFieldGet2(_scheduled, this)) {
|
|
878
|
+
if ((effect.f & 16384) !== 0 || (effect.f & 6144) === 0) continue;
|
|
879
|
+
var e = effect;
|
|
880
|
+
var covered = false;
|
|
881
|
+
while (e.parent !== null) {
|
|
882
|
+
e = e.parent;
|
|
883
|
+
var flags = e.f;
|
|
884
|
+
if ((flags & 96) !== 0) {
|
|
885
|
+
if ((flags & 1024) === 0) {
|
|
886
|
+
covered = true;
|
|
887
|
+
break;
|
|
888
|
+
}
|
|
889
|
+
e.f ^= CLEAN;
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
if (!covered) roots.push(e);
|
|
893
|
+
}
|
|
894
|
+
_classPrivateFieldSet2(_scheduled, this, []);
|
|
895
|
+
return roots;
|
|
896
|
+
}
|
|
931
897
|
function _process() {
|
|
932
898
|
_classPrivateFieldSet2(_started, this, true);
|
|
933
|
-
if (flush_count++ > 1e3) {
|
|
934
|
-
_assertClassBrand(_Batch_brand, this, _unlink).call(this);
|
|
935
|
-
infinite_loop_guard();
|
|
936
|
-
}
|
|
937
899
|
for (const e of _classPrivateFieldGet2(_dirty_effects$1, this)) {
|
|
938
900
|
_classPrivateFieldGet2(_maybe_dirty_effects$1, this).delete(e);
|
|
939
901
|
set_signal_status(e, DIRTY);
|
|
@@ -943,8 +905,6 @@ function _process() {
|
|
|
943
905
|
set_signal_status(e, MAYBE_DIRTY);
|
|
944
906
|
this.schedule(e);
|
|
945
907
|
}
|
|
946
|
-
const roots = _classPrivateFieldGet2(_roots, this);
|
|
947
|
-
_classPrivateFieldSet2(_roots, this, []);
|
|
948
908
|
this.apply();
|
|
949
909
|
/** @type {Effect[]} */
|
|
950
910
|
var effects = collected_effects = [];
|
|
@@ -955,12 +915,18 @@ function _process() {
|
|
|
955
915
|
* @deprecated when we get rid of legacy mode and stores, we can get rid of this
|
|
956
916
|
*/
|
|
957
917
|
var updates = legacy_updates = [];
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
918
|
+
while (_classPrivateFieldGet2(_scheduled, this).length > 0) {
|
|
919
|
+
if (flush_count++ > 1e3) {
|
|
920
|
+
_assertClassBrand(_Batch_brand, this, _unlink).call(this);
|
|
921
|
+
infinite_loop_guard();
|
|
922
|
+
}
|
|
923
|
+
for (const root of _assertClassBrand(_Batch_brand, this, _resolve$1).call(this)) try {
|
|
924
|
+
_assertClassBrand(_Batch_brand, this, _traverse).call(this, root, effects, render_effects);
|
|
925
|
+
} catch (e) {
|
|
926
|
+
reset_all(root);
|
|
927
|
+
if (!_assertClassBrand(_Batch_brand, this, _is_deferred).call(this)) this.discard();
|
|
928
|
+
throw e;
|
|
929
|
+
}
|
|
964
930
|
}
|
|
965
931
|
current_batch = null;
|
|
966
932
|
if (updates.length > 0) {
|
|
@@ -994,16 +960,16 @@ function _process() {
|
|
|
994
960
|
previous_batch = null;
|
|
995
961
|
_classPrivateFieldGet2(_deferred, this)?.resolve();
|
|
996
962
|
var next_batch = current_batch;
|
|
997
|
-
if (_classPrivateFieldGet2(_pending, this) === 0 && (_classPrivateFieldGet2(
|
|
963
|
+
if (_classPrivateFieldGet2(_pending, this) === 0 && (_classPrivateFieldGet2(_scheduled, this).length === 0 || next_batch !== null)) {
|
|
998
964
|
_assertClassBrand(_Batch_brand, this, _unlink).call(this);
|
|
999
965
|
if (async_mode_flag) {
|
|
1000
966
|
_assertClassBrand(_Batch_brand, this, _commit).call(this);
|
|
1001
967
|
current_batch = next_batch;
|
|
1002
968
|
}
|
|
1003
969
|
}
|
|
1004
|
-
if (_classPrivateFieldGet2(
|
|
1005
|
-
const
|
|
1006
|
-
|
|
970
|
+
if (_classPrivateFieldGet2(_scheduled, this).length > 0) if (next_batch !== null) {
|
|
971
|
+
for (const e of _classPrivateFieldGet2(_scheduled, this)) _classPrivateFieldGet2(_scheduled, next_batch).push(e);
|
|
972
|
+
_classPrivateFieldSet2(_scheduled, this, []);
|
|
1007
973
|
} else next_batch = this;
|
|
1008
974
|
if (next_batch !== null) {
|
|
1009
975
|
old_values.clear();
|
|
@@ -1153,10 +1119,9 @@ function _commit() {
|
|
|
1153
1119
|
batch.schedule(effect);
|
|
1154
1120
|
} else _classPrivateFieldGet2(_dirty_effects$1, batch).add(effect);
|
|
1155
1121
|
}
|
|
1156
|
-
if (_classPrivateFieldGet2(
|
|
1122
|
+
if (_classPrivateFieldGet2(_scheduled, batch).length > 0 && !_classPrivateFieldGet2(_decrement_queued, batch)) {
|
|
1157
1123
|
batch.apply();
|
|
1158
|
-
for (var root of
|
|
1159
|
-
_classPrivateFieldSet2(_roots, batch, []);
|
|
1124
|
+
for (var root of _assertClassBrand(_Batch_brand, batch, _resolve$1).call(batch)) _assertClassBrand(_Batch_brand, batch, _traverse).call(batch, root, [], []);
|
|
1160
1125
|
}
|
|
1161
1126
|
batch.deactivate();
|
|
1162
1127
|
}
|
|
@@ -1323,7 +1288,7 @@ function reset_all(effect) {
|
|
|
1323
1288
|
}
|
|
1324
1289
|
}
|
|
1325
1290
|
//#endregion
|
|
1326
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
1291
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/sources.js
|
|
1327
1292
|
/** @import { Derived, Effect, Source, Value } from '#client' */
|
|
1328
1293
|
/** @type {Set<Effect>} */
|
|
1329
1294
|
var eager_effects = /* @__PURE__ */ new Set();
|
|
@@ -1385,6 +1350,16 @@ function set(source, value, should_proxy = false) {
|
|
|
1385
1350
|
return internal_set(source, should_proxy ? proxy(value) : value, legacy_updates);
|
|
1386
1351
|
}
|
|
1387
1352
|
/**
|
|
1353
|
+
* A set of signals we have already seen while traversing in mark_reactions.
|
|
1354
|
+
* Not always set to balance the common case of sources only having a couple
|
|
1355
|
+
* of (transitive) dependencies (where always creating a Set would be bad for perf)
|
|
1356
|
+
* with the edge case of extremely deep or wide dependency arrays with cycles.
|
|
1357
|
+
* @type {Set<any> | null}
|
|
1358
|
+
*/
|
|
1359
|
+
var seen = null;
|
|
1360
|
+
/** Number of transitive dependencies, see {@link seen} for more info */
|
|
1361
|
+
var count_deps = 0;
|
|
1362
|
+
/**
|
|
1388
1363
|
* @template V
|
|
1389
1364
|
* @param {Source<V>} source
|
|
1390
1365
|
* @param {V} value
|
|
@@ -1403,7 +1378,10 @@ function internal_set(source, value, updated_during_traversal = null) {
|
|
|
1403
1378
|
if (batch_values === null) update_derived_status(derived);
|
|
1404
1379
|
}
|
|
1405
1380
|
source.wv = increment_write_version();
|
|
1381
|
+
seen = null;
|
|
1382
|
+
count_deps = 0;
|
|
1406
1383
|
mark_reactions(source, DIRTY, updated_during_traversal);
|
|
1384
|
+
seen = null;
|
|
1407
1385
|
if (is_runes() && active_effect !== null && (active_effect.f & 1024) !== 0 && (active_effect.f & 96) === 0) if (untracked_writes === null) set_untracked_writes([source]);
|
|
1408
1386
|
else untracked_writes.push(source);
|
|
1409
1387
|
if (!batch.is_fork && eager_effects.size > 0 && !eager_effects_deferred) flush_eager_effects();
|
|
@@ -1442,6 +1420,12 @@ function mark_reactions(signal, status, updated_during_traversal) {
|
|
|
1442
1420
|
if (reactions === null) return;
|
|
1443
1421
|
var runes = is_runes();
|
|
1444
1422
|
var length = reactions.length;
|
|
1423
|
+
count_deps += length;
|
|
1424
|
+
if (count_deps > 1e5 && seen === null) seen = /* @__PURE__ */ new Set();
|
|
1425
|
+
if (seen !== null) {
|
|
1426
|
+
if (seen.has(signal)) return;
|
|
1427
|
+
seen.add(signal);
|
|
1428
|
+
}
|
|
1445
1429
|
for (var i = 0; i < length; i++) {
|
|
1446
1430
|
var reaction = reactions[i];
|
|
1447
1431
|
var flags = reaction.f;
|
|
@@ -1452,10 +1436,7 @@ function mark_reactions(signal, status, updated_during_traversal) {
|
|
|
1452
1436
|
else if ((flags & 2) !== 0) {
|
|
1453
1437
|
var derived = reaction;
|
|
1454
1438
|
batch_values?.delete(derived);
|
|
1455
|
-
|
|
1456
|
-
if (flags & 512 && (active_effect === null || (active_effect.f & 2097152) === 0)) reaction.f |= WAS_MARKED;
|
|
1457
|
-
mark_reactions(derived, MAYBE_DIRTY, updated_during_traversal);
|
|
1458
|
-
}
|
|
1439
|
+
mark_reactions(derived, MAYBE_DIRTY, updated_during_traversal);
|
|
1459
1440
|
} else if (not_dirty) {
|
|
1460
1441
|
var effect = reaction;
|
|
1461
1442
|
if ((flags & 16) !== 0 && eager_block_effects !== null) eager_block_effects.add(effect);
|
|
@@ -1543,14 +1524,14 @@ function proxy(value) {
|
|
|
1543
1524
|
return Reflect.get(target, prop, receiver);
|
|
1544
1525
|
},
|
|
1545
1526
|
getOwnPropertyDescriptor(target, prop) {
|
|
1527
|
+
this.has?.(target, prop);
|
|
1546
1528
|
var descriptor = Reflect.getOwnPropertyDescriptor(target, prop);
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
if (source !== void 0 && value !== UNINITIALIZED) return {
|
|
1529
|
+
var s = sources.get(prop);
|
|
1530
|
+
if (s !== void 0) {
|
|
1531
|
+
var value = get(s);
|
|
1532
|
+
if (value === UNINITIALIZED) return;
|
|
1533
|
+
if (descriptor && "value" in descriptor) descriptor.value = value;
|
|
1534
|
+
else return {
|
|
1554
1535
|
enumerable: true,
|
|
1555
1536
|
configurable: true,
|
|
1556
1537
|
value,
|
|
@@ -1623,7 +1604,7 @@ function proxy(value) {
|
|
|
1623
1604
|
});
|
|
1624
1605
|
}
|
|
1625
1606
|
//#endregion
|
|
1626
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
1607
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/operations.js
|
|
1627
1608
|
/** @type {Window} */
|
|
1628
1609
|
var $window;
|
|
1629
1610
|
/** @type {boolean} */
|
|
@@ -1735,7 +1716,7 @@ function invoke_error_boundary(error, effect) {
|
|
|
1735
1716
|
throw error;
|
|
1736
1717
|
}
|
|
1737
1718
|
//#endregion
|
|
1738
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
1719
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/effects.js
|
|
1739
1720
|
/** @import { Blocker, ComponentContext, ComponentContextLegacy, Derived, Effect, TemplateNode, TransitionManager } from '#client' */
|
|
1740
1721
|
/**
|
|
1741
1722
|
* @param {Effect} effect
|
|
@@ -2042,14 +2023,14 @@ function move_effect(effect, fragment) {
|
|
|
2042
2023
|
}
|
|
2043
2024
|
}
|
|
2044
2025
|
//#endregion
|
|
2045
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
2026
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/legacy.js
|
|
2046
2027
|
/**
|
|
2047
2028
|
* @type {Set<Value> | null}
|
|
2048
2029
|
* @deprecated
|
|
2049
2030
|
*/
|
|
2050
2031
|
var captured_signals = null;
|
|
2051
2032
|
//#endregion
|
|
2052
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
2033
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/runtime.js
|
|
2053
2034
|
/** @import { Derived, Effect, Reaction, Source, Value } from '#client' */
|
|
2054
2035
|
/**
|
|
2055
2036
|
* True if updating in an effect context that is reactive (i.e. not branch/root effects)
|
|
@@ -2081,7 +2062,7 @@ function set_active_effect(effect) {
|
|
|
2081
2062
|
var current_sources = null;
|
|
2082
2063
|
/** @param {Value} value */
|
|
2083
2064
|
function push_reaction_value(value) {
|
|
2084
|
-
if (active_reaction !== null && (!async_mode_flag || (active_reaction.f & 2) !== 0)) (current_sources ?? (current_sources = /* @__PURE__ */ new Set())).add(value);
|
|
2065
|
+
if (active_reaction !== null && (!async_mode_flag && (active_reaction.f & 2097152) !== 0 || (active_reaction.f & 2) !== 0)) (current_sources ?? (current_sources = /* @__PURE__ */ new Set())).add(value);
|
|
2085
2066
|
}
|
|
2086
2067
|
/**
|
|
2087
2068
|
* The dependencies of the reaction that is currently being executed. In many cases,
|
|
@@ -2125,7 +2106,6 @@ function increment_write_version() {
|
|
|
2125
2106
|
function is_dirty(reaction) {
|
|
2126
2107
|
var flags = reaction.f;
|
|
2127
2108
|
if ((flags & 2048) !== 0) return true;
|
|
2128
|
-
if (flags & 2) reaction.f &= ~WAS_MARKED;
|
|
2129
2109
|
if ((flags & 4096) !== 0) {
|
|
2130
2110
|
var dependencies = reaction.deps;
|
|
2131
2111
|
var length = dependencies.length;
|
|
@@ -2257,10 +2237,7 @@ function remove_reaction(signal, dependency) {
|
|
|
2257
2237
|
}
|
|
2258
2238
|
if (reactions === null && (dependency.f & 2) !== 0 && (new_deps === null || !includes.call(new_deps, dependency))) {
|
|
2259
2239
|
var derived = dependency;
|
|
2260
|
-
if ((derived.f & 512) !== 0)
|
|
2261
|
-
derived.f ^= 512;
|
|
2262
|
-
derived.f &= ~WAS_MARKED;
|
|
2263
|
-
}
|
|
2240
|
+
if ((derived.f & 512) !== 0) derived.f ^= 512;
|
|
2264
2241
|
if (derived.v !== UNINITIALIZED) update_derived_status(derived);
|
|
2265
2242
|
if (derived.ac !== null) without_reactive_context(() => {
|
|
2266
2243
|
/** @type {AbortController} */ derived.ac.abort(STALE_REACTION);
|
|
@@ -2409,7 +2386,7 @@ function untrack(fn) {
|
|
|
2409
2386
|
}
|
|
2410
2387
|
}
|
|
2411
2388
|
//#endregion
|
|
2412
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
2389
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/events.js
|
|
2413
2390
|
/**
|
|
2414
2391
|
* Used on elements, as a map of event type -> event handler,
|
|
2415
2392
|
* and on events themselves to track which element handled an event
|
|
@@ -2500,7 +2477,7 @@ function handle_event_propagation(event) {
|
|
|
2500
2477
|
}
|
|
2501
2478
|
}
|
|
2502
2479
|
//#endregion
|
|
2503
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
2480
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/reconciler.js
|
|
2504
2481
|
var policy = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", {
|
|
2505
2482
|
/** @param {string} html */
|
|
2506
2483
|
createHTML: (html) => {
|
|
@@ -2519,7 +2496,7 @@ function create_fragment_from_html(html) {
|
|
|
2519
2496
|
return elem.content;
|
|
2520
2497
|
}
|
|
2521
2498
|
//#endregion
|
|
2522
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
2499
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/template.js
|
|
2523
2500
|
/** @import { Effect, EffectNodes, TemplateNode } from '#client' */
|
|
2524
2501
|
/** @import { TemplateStructure } from './types' */
|
|
2525
2502
|
/**
|
|
@@ -2603,7 +2580,7 @@ function is_passive_event(name) {
|
|
|
2603
2580
|
return PASSIVE_EVENTS.includes(name);
|
|
2604
2581
|
}
|
|
2605
2582
|
//#endregion
|
|
2606
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
2583
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/reactivity/create-subscriber.js
|
|
2607
2584
|
/**
|
|
2608
2585
|
* Returns a `subscribe` function that integrates external event-based systems with Svelte's reactivity.
|
|
2609
2586
|
* It's particularly useful for integrating with web APIs like `MediaQuery`, `IntersectionObserver`, or `WebSocket`.
|
|
@@ -2676,7 +2653,7 @@ function createSubscriber(start) {
|
|
|
2676
2653
|
};
|
|
2677
2654
|
}
|
|
2678
2655
|
//#endregion
|
|
2679
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
2656
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
|
|
2680
2657
|
/** @import { Effect, Source, TemplateNode, } from '#client' */
|
|
2681
2658
|
/**
|
|
2682
2659
|
* @typedef {{
|
|
@@ -3234,7 +3211,7 @@ function unmount(component, options) {
|
|
|
3234
3211
|
return Promise.resolve();
|
|
3235
3212
|
}
|
|
3236
3213
|
//#endregion
|
|
3237
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
3214
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/css.js
|
|
3238
3215
|
/**
|
|
3239
3216
|
* @param {Node} anchor
|
|
3240
3217
|
* @param {{ hash: string, code: string }} css
|
|
@@ -3253,7 +3230,7 @@ function append_styles(anchor, css) {
|
|
|
3253
3230
|
});
|
|
3254
3231
|
}
|
|
3255
3232
|
//#endregion
|
|
3256
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
3233
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/bindings/size.js
|
|
3257
3234
|
var _ResizeObserverSingleton;
|
|
3258
3235
|
var _listeners = /* @__PURE__ */ new WeakMap();
|
|
3259
3236
|
var _observer = /* @__PURE__ */ new WeakMap();
|
|
@@ -3305,7 +3282,32 @@ function _getObserver() {
|
|
|
3305
3282
|
}
|
|
3306
3283
|
_defineProperty(ResizeObserverSingleton, "entries", /* @__PURE__ */ new WeakMap());
|
|
3307
3284
|
//#endregion
|
|
3308
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
3285
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/store.js
|
|
3286
|
+
/**
|
|
3287
|
+
* Whether or not the prop currently being read is a store binding, as in
|
|
3288
|
+
* `<Child bind:x={$y} />`. If it is, we treat the prop as mutable even in
|
|
3289
|
+
* runes mode, and skip `binding_property_non_reactive` validation
|
|
3290
|
+
*/
|
|
3291
|
+
var is_store_binding = false;
|
|
3292
|
+
/**
|
|
3293
|
+
* Returns a tuple that indicates whether `fn()` reads a prop that is a store binding.
|
|
3294
|
+
* Used to prevent `binding_property_non_reactive` validation false positives and
|
|
3295
|
+
* ensure that these props are treated as mutable even in runes mode
|
|
3296
|
+
* @template T
|
|
3297
|
+
* @param {() => T} fn
|
|
3298
|
+
* @returns {[T, boolean]}
|
|
3299
|
+
*/
|
|
3300
|
+
function capture_store_binding(fn) {
|
|
3301
|
+
var previous_is_store_binding = is_store_binding;
|
|
3302
|
+
try {
|
|
3303
|
+
is_store_binding = false;
|
|
3304
|
+
return [fn(), is_store_binding];
|
|
3305
|
+
} finally {
|
|
3306
|
+
is_store_binding = previous_is_store_binding;
|
|
3307
|
+
}
|
|
3308
|
+
}
|
|
3309
|
+
//#endregion
|
|
3310
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/props.js
|
|
3309
3311
|
/** @import { Derived, Effect, Source } from './types.js' */
|
|
3310
3312
|
/**
|
|
3311
3313
|
* This function is responsible for synchronizing a possibly bound prop with the inner component state.
|
|
@@ -3398,7 +3400,7 @@ function prop(props, key, flags, fallback) {
|
|
|
3398
3400
|
});
|
|
3399
3401
|
}
|
|
3400
3402
|
//#endregion
|
|
3401
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
3403
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/legacy/legacy-client.js
|
|
3402
3404
|
/** @import { ComponentConstructorOptions, ComponentType, SvelteComponent, Component } from 'svelte' */
|
|
3403
3405
|
/**
|
|
3404
3406
|
* Takes the same options as a Svelte 4 component and the component function and returns a Svelte 4 compatible component.
|
|
@@ -3517,7 +3519,7 @@ var Svelte4Component = class {
|
|
|
3517
3519
|
}
|
|
3518
3520
|
};
|
|
3519
3521
|
//#endregion
|
|
3520
|
-
//#region ../../../node_modules/.bun/svelte@5.57.
|
|
3522
|
+
//#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/custom-element.js
|
|
3521
3523
|
/**
|
|
3522
3524
|
* @typedef {Object} CustomElementPropDefinition
|
|
3523
3525
|
* @property {string} [attribute]
|