@solidrt/cli 0.0.54 → 0.0.55

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,4 +1,4 @@
1
- // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.3/node_modules/@solidjs/signals/dist/prod/core/error.js
1
+ // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.4/node_modules/@solidjs/signals/dist/prod/core/error.js
2
2
  class NotReadyError extends Error {
3
3
  source;
4
4
  constructor(r) {
@@ -37,7 +37,7 @@ class ContextNotFoundError extends Error {
37
37
  super("");
38
38
  }
39
39
  }
40
- // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.3/node_modules/@solidjs/signals/dist/prod/core/constants.js
40
+ // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.4/node_modules/@solidjs/signals/dist/prod/core/constants.js
41
41
  var REACTIVE_NONE = 0;
42
42
  var REACTIVE_CHECK = 1 << 0;
43
43
  var REACTIVE_DIRTY = 1 << 1;
@@ -81,12 +81,12 @@ var SUPPORTS_PROXY = typeof Proxy === "function";
81
81
  var defaultContext = {};
82
82
  var $REFRESH = Symbol("refresh");
83
83
 
84
- // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.3/node_modules/@solidjs/signals/dist/prod/core/lanes.js
84
+ // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.4/node_modules/@solidjs/signals/dist/prod/core/lanes.js
85
85
  var signalLanes = new WeakMap;
86
86
  var activeLanes = new Set;
87
87
  function findLane(n) {
88
- while (n.tn)
89
- n = n.tn;
88
+ while (n.an)
89
+ n = n.an;
90
90
  return n;
91
91
  }
92
92
  function mergeLanes(n, e) {
@@ -94,14 +94,14 @@ function mergeLanes(n, e) {
94
94
  e = findLane(e);
95
95
  if (n === e)
96
96
  return n;
97
- e.tn = n;
97
+ e.an = n;
98
98
  for (const i of e.Ae)
99
99
  n.Ae.add(i);
100
100
  e.Ae.clear();
101
- n.en[0].push(...e.en[0]);
102
- n.en[1].push(...e.en[1]);
103
- e.en[0].length = 0;
104
- e.en[1].length = 0;
101
+ n.rn[0].push(...e.rn[0]);
102
+ n.rn[1].push(...e.rn[1]);
103
+ e.rn[0].length = 0;
104
+ e.rn[1].length = 0;
105
105
  return n;
106
106
  }
107
107
  function resolveLane(n) {
@@ -116,12 +116,12 @@ function resolveLane(n) {
116
116
  return;
117
117
  }
118
118
  function resolveTransition(n) {
119
- if (hasActiveOverride(n) && n.o?.Et) {
120
- const e = ext(n).Et = currentTransition(n.o?.Et);
121
- if (e.an !== true)
119
+ if (hasActiveOverride(n) && n.o?.Nt) {
120
+ const e = ext(n).Nt = currentTransition(n.o?.Nt);
121
+ if (e.fn !== true)
122
122
  return e;
123
123
  if (n.o !== null)
124
- n.o.Et = null;
124
+ n.o.Nt = null;
125
125
  }
126
126
  return resolveLane(n)?._e ?? n._e;
127
127
  }
@@ -133,7 +133,7 @@ function assignOrMergeLane(n, e) {
133
133
  const i = findLane(e);
134
134
  const t = n.o?.Be;
135
135
  if (t) {
136
- if (t.tn) {
136
+ if (t.an) {
137
137
  ext(n).Be = e;
138
138
  n.T |= CONFIG_HAS_LANE;
139
139
  return;
@@ -141,10 +141,10 @@ function assignOrMergeLane(n, e) {
141
141
  const r = findLane(t);
142
142
  if (activeLanes.has(r)) {
143
143
  if (r !== i && !hasActiveOverride(n)) {
144
- if (i.rn && findLane(i.rn) === r) {
144
+ if (i.sn && findLane(i.sn) === r) {
145
145
  ext(n).Be = e;
146
146
  n.T |= CONFIG_HAS_LANE;
147
- } else if (r.rn && findLane(r.rn) === i)
147
+ } else if (r.sn && findLane(r.sn) === i)
148
148
  ;
149
149
  else
150
150
  mergeLanes(i, r);
@@ -156,7 +156,7 @@ function assignOrMergeLane(n, e) {
156
156
  n.T |= CONFIG_HAS_LANE;
157
157
  }
158
158
 
159
- // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.3/node_modules/@solidjs/signals/dist/prod/core/scheduler.js
159
+ // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.4/node_modules/@solidjs/signals/dist/prod/core/scheduler.js
160
160
  var transitions = new Set;
161
161
  var dirtyQueue = {
162
162
  eE: new Array(2000).fill(undefined),
@@ -187,8 +187,8 @@ var syncDepth = 0;
187
187
  var projectionWriteActive = false;
188
188
  var transientStoreNodes = new Set;
189
189
  function canUseSimpleSyncFlush(e) {
190
- const t = e.k;
191
- return transitions.size === 0 && activeLanes.size === 0 && e.Qt.length === 0 && t.Ke.length === 0 && t.m.length === 0 && t.cn.size === 0 && transientStoreNodes.size === 0;
190
+ const t = e.m;
191
+ return transitions.size === 0 && activeLanes.size === 0 && e.Qt.length === 0 && t.Ke.length === 0 && t.A.length === 0 && t.Tn.size === 0 && transientStoreNodes.size === 0;
192
192
  }
193
193
  function sweepTransientStoreNodes() {
194
194
  if (transientStoreNodes.size === 0)
@@ -217,42 +217,56 @@ function createBatch() {
217
217
  yt: [],
218
218
  Ne: new Map,
219
219
  Ke: [],
220
- m: [],
221
- cn: new Set,
222
- oe: [],
220
+ A: [],
221
+ Tn: new Set,
222
+ ue: [],
223
223
  bt: {
224
224
  Lt: [[], []],
225
225
  Qt: []
226
226
  },
227
- an: false,
228
- ln: new Set
227
+ fn: false,
228
+ cn: new Set
229
229
  };
230
230
  }
231
231
  function mergeTransitionState(e, t) {
232
- t.an = e;
233
- e.oe.push(...t.oe);
234
- for (const i of activeLanes)
235
- if (i._e === t)
236
- i._e = e;
232
+ t.fn = e;
233
+ e.ue.push(...t.ue);
234
+ for (const i2 of activeLanes)
235
+ if (i2._e === t)
236
+ i2._e = e;
237
237
  if (t.Ke.length) {
238
238
  e.Ke.push(...t.Ke);
239
239
  t.Ke.length = 0;
240
240
  }
241
- if (t.m.length) {
242
- e.m.push(...t.m);
243
- t.m.length = 0;
241
+ if (t.A.length) {
242
+ e.A.push(...t.A);
243
+ t.A.length = 0;
244
244
  }
245
- for (const i of t.cn)
246
- e.cn.add(i);
247
- for (const [i, n] of t.Ne) {
248
- let t2 = e.Ne.get(i);
245
+ for (const i2 of t.Tn)
246
+ e.Tn.add(i2);
247
+ const i = t.Mt;
248
+ if (i !== undefined) {
249
+ t.Mt = undefined;
250
+ let n = e.Mt;
251
+ if (n !== undefined)
252
+ n.push(...i);
253
+ else
254
+ n = e.Mt = i;
255
+ for (let e2 = 0;e2 < i.length; e2++) {
256
+ const t2 = i[e2].pc;
257
+ if (t2 !== undefined && t2.qe === i[e2])
258
+ t2.qa = n;
259
+ }
260
+ }
261
+ for (const [i2, n] of t.Ne) {
262
+ let t2 = e.Ne.get(i2);
249
263
  if (!t2)
250
- e.Ne.set(i, t2 = new Set);
264
+ e.Ne.set(i2, t2 = new Set);
251
265
  for (const e2 of n)
252
266
  t2.add(e2);
253
267
  }
254
- for (const i of t.ln)
255
- e.ln.add(i);
268
+ for (const i2 of t.cn)
269
+ e.cn.add(i2);
256
270
  }
257
271
  function schedule() {
258
272
  if (halted) {
@@ -262,7 +276,7 @@ function schedule() {
262
276
  if (scheduled)
263
277
  return;
264
278
  scheduled = true;
265
- if (!syncDepth && !globalQueue.sn && !projectionWriteActive)
279
+ if (!syncDepth && !globalQueue.En && !projectionWriteActive)
266
280
  queueMicrotask(flush);
267
281
  }
268
282
  function haltReactivity(e) {
@@ -281,25 +295,25 @@ function notifyHalted() {
281
295
  var queueRunToken = 0;
282
296
 
283
297
  class Queue {
284
- ve = null;
298
+ ke = null;
285
299
  Lt = [[], []];
286
300
  Qt = [];
287
- Mt = 0;
301
+ Vt = 0;
288
302
  created = clock;
289
303
  addChild(e) {
290
304
  this.Qt.push(e);
291
- e.ve = this;
305
+ e.ke = this;
292
306
  }
293
307
  removeChild(e) {
294
308
  const t = this.Qt.indexOf(e);
295
309
  if (t >= 0) {
296
310
  this.Qt.splice(t, 1);
297
- e.ve = null;
311
+ e.ke = null;
298
312
  }
299
313
  }
300
314
  notify(e, t, i, n) {
301
- if (this.ve)
302
- return this.ve.notify(e, t, i, n);
315
+ if (this.ke)
316
+ return this.ke.notify(e, t, i, n);
303
317
  return false;
304
318
  }
305
319
  run(e) {
@@ -312,8 +326,8 @@ class Queue {
312
326
  const i = ++queueRunToken;
313
327
  for (let n = 0;n < t.length; ) {
314
328
  const s = t[n];
315
- if (s.Mt !== i) {
316
- s.Mt = i;
329
+ if (s.Vt !== i) {
330
+ s.Vt = i;
317
331
  s.run?.(e);
318
332
  if (t[n] !== s) {
319
333
  n = 0;
@@ -327,7 +341,7 @@ class Queue {
327
341
  if (e) {
328
342
  if (currentOptimisticLane) {
329
343
  const i = findLane(currentOptimisticLane);
330
- i.en[e - 1].push(t);
344
+ i.rn[e - 1].push(t);
331
345
  } else {
332
346
  this.Lt[e - 1].push(t);
333
347
  }
@@ -364,16 +378,16 @@ class Queue {
364
378
  }
365
379
 
366
380
  class GlobalQueue extends Queue {
367
- sn = false;
368
- k = createBatch();
381
+ En = false;
382
+ m = createBatch();
369
383
  static Ce;
370
384
  static Fe;
371
385
  static tt;
372
- static Vt = null;
386
+ static Bt = null;
387
+ static p = null;
373
388
  static G = null;
374
389
  static M = null;
375
- static h = null;
376
- static j = null;
390
+ static N = null;
377
391
  static Rt = null;
378
392
  static Gt = null;
379
393
  static Oe = null;
@@ -384,61 +398,64 @@ class GlobalQueue extends Queue {
384
398
  static Dt = null;
385
399
  static Ht = null;
386
400
  static Je = null;
387
- static p = null;
388
- static Bt = null;
401
+ static k = null;
389
402
  static wt = null;
390
- static vt = null;
391
- static fn = null;
392
- static En = null;
393
- static Tn = null;
403
+ static jt = null;
404
+ static kt = null;
394
405
  static dn = null;
406
+ static In = null;
407
+ static Nn = null;
408
+ static _n = null;
409
+ static ln = null;
395
410
  static Ft = null;
396
411
  static ht = null;
397
412
  static gt = null;
398
413
  static je = null;
399
414
  static $e = null;
400
415
  static ze = null;
401
- static In = null;
416
+ static An = null;
402
417
  flush() {
403
- if (this.sn)
418
+ if (this.En)
404
419
  return;
405
420
  if (activeTransition === null && dirtyQueue.EE < dirtyQueue.xe && this.Lt[0].length === 0 && this.Lt[1].length === 0 && this.Qt.length === 0 && canUseSimpleSyncFlush(this)) {
406
- this.sn = true;
421
+ this.En = true;
407
422
  try {
423
+ sweepDormant();
408
424
  commitPendingNodes();
409
425
  } finally {
410
- this.sn = false;
426
+ this.En = false;
411
427
  }
412
428
  clock++;
413
- scheduled = dirtyQueue.EE >= dirtyQueue.xe || this.Lt[0].length !== 0 || this.Lt[1].length !== 0 || this.k.yt.length !== 0;
429
+ scheduled = dirtyQueue.EE >= dirtyQueue.xe || this.Lt[0].length !== 0 || this.Lt[1].length !== 0 || this.m.yt.length !== 0;
414
430
  return;
415
431
  }
416
- this.sn = true;
432
+ this.En = true;
417
433
  try {
418
434
  if (false)
419
435
  ;
436
+ sweepDormant();
420
437
  runHeap(dirtyQueue, GlobalQueue.Ce);
421
438
  if (activeTransition) {
422
439
  const e = transitionComplete(activeTransition);
423
440
  if (!e) {
424
441
  const e2 = activeTransition;
425
- runHeap(zombieQueue, this.k === e2 ? cancelZombieRecompute : GlobalQueue.Ce);
426
- if (this.k === e2)
427
- currentBatch = this.k = createBatch();
442
+ runHeap(zombieQueue, this.m === e2 ? cancelZombieRecompute : GlobalQueue.Ce);
443
+ if (this.m === e2)
444
+ currentBatch = this.m = createBatch();
428
445
  if (activeLanes.size) {
429
- GlobalQueue.dn(EFFECT_RENDER);
430
- GlobalQueue.dn(EFFECT_USER);
446
+ GlobalQueue._n(EFFECT_RENDER);
447
+ GlobalQueue._n(EFFECT_USER);
431
448
  }
432
449
  this.stashQueues(e2.bt);
433
450
  clock++;
434
- scheduled = dirtyQueue.EE >= dirtyQueue.xe || this.k.yt.length > 0;
451
+ scheduled = dirtyQueue.EE >= dirtyQueue.xe || this.m.yt.length > 0;
435
452
  reassignPendingTransition(e2.yt);
436
453
  activeTransition = null;
437
454
  finalizePureQueue(null, true);
438
455
  return;
439
456
  }
440
457
  const t = activeTransition;
441
- const i = this.k;
458
+ const i = this.m;
442
459
  i !== t && i.yt.push(...t.yt);
443
460
  this.restoreQueues(t.bt);
444
461
  transitions.delete(t);
@@ -449,9 +466,9 @@ class GlobalQueue extends Queue {
449
466
  const e2 = createBatch();
450
467
  e2.yt = i.yt;
451
468
  e2.Ke = i.Ke;
452
- e2.m = i.m;
453
- e2.cn = i.cn;
454
- currentBatch = this.k = e2;
469
+ e2.A = i.A;
470
+ e2.Tn = i.Tn;
471
+ currentBatch = this.m = e2;
455
472
  }
456
473
  } else {
457
474
  if (canUseSimpleSyncFlush(this)) {
@@ -468,9 +485,9 @@ class GlobalQueue extends Queue {
468
485
  }
469
486
  clock++;
470
487
  scheduled = dirtyQueue.EE >= dirtyQueue.xe;
471
- activeLanes.size && GlobalQueue.dn(EFFECT_RENDER);
488
+ activeLanes.size && GlobalQueue._n(EFFECT_RENDER);
472
489
  this.run(EFFECT_RENDER);
473
- activeLanes.size && GlobalQueue.dn(EFFECT_USER);
490
+ activeLanes.size && GlobalQueue._n(EFFECT_USER);
474
491
  this.run(EFFECT_USER);
475
492
  if (false)
476
493
  ;
@@ -479,14 +496,14 @@ class GlobalQueue extends Queue {
479
496
  if (false)
480
497
  ;
481
498
  } finally {
482
- this.sn = false;
499
+ this.En = false;
483
500
  }
484
501
  }
485
502
  notify(e, t, i, n) {
486
503
  if (t & STATUS_PENDING) {
487
504
  if (i & STATUS_PENDING) {
488
505
  const t2 = n !== undefined ? n : e.o?._;
489
- if (t2?.i)
506
+ if (t2?.l)
490
507
  return true;
491
508
  if (activeTransition && t2) {
492
509
  const i2 = t2.source;
@@ -497,7 +514,7 @@ class GlobalQueue extends Queue {
497
514
  n2.add(e);
498
515
  if (n2.size !== s) {
499
516
  schedule();
500
- GlobalQueue.wt?.(activeTransition);
517
+ GlobalQueue.jt?.(activeTransition);
501
518
  }
502
519
  }
503
520
  }
@@ -522,7 +539,7 @@ class GlobalQueue extends Queue {
522
539
  }
523
540
  transitions.add(activeTransition);
524
541
  activeTransition.Te = clock;
525
- const t = this.k;
542
+ const t = this.m;
526
543
  if (t !== activeTransition) {
527
544
  for (let e2 = 0;e2 < t.yt.length; e2++) {
528
545
  const i = t.yt[e2];
@@ -534,16 +551,16 @@ class GlobalQueue extends Queue {
534
551
  i._e = activeTransition;
535
552
  activeTransition.Ke.push(i);
536
553
  }
537
- if (t.m.length)
538
- activeTransition.m.push(...t.m);
539
- for (const e2 of t.cn)
540
- activeTransition.cn.add(e2);
541
- if (t.ln.size) {
542
- for (const e2 of t.ln)
543
- activeTransition.ln.add(e2);
544
- t.ln.clear();
554
+ if (t.A.length)
555
+ activeTransition.A.push(...t.A);
556
+ for (const e2 of t.Tn)
557
+ activeTransition.Tn.add(e2);
558
+ if (t.cn.size) {
559
+ for (const e2 of t.cn)
560
+ activeTransition.cn.add(e2);
561
+ t.cn.clear();
545
562
  }
546
- currentBatch = this.k = activeTransition;
563
+ currentBatch = this.m = activeTransition;
547
564
  }
548
565
  for (const e2 of activeLanes) {
549
566
  if (!e2._e)
@@ -565,11 +582,11 @@ function insertSubs(e, t = false) {
565
582
  const n = (i & CONFIG_HAS_LANE ? e.o?.Be : undefined) || currentOptimisticLane;
566
583
  const s = (i & CONFIG_HAS_SNAPSHOT) !== 0 && e.o?.Qe !== undefined;
567
584
  const o = reaskArmed;
568
- for (let i2 = e.u;i2 !== null; i2 = i2.fe) {
569
- const e2 = i2.ae;
585
+ for (let i2 = e.u;i2 !== null; i2 = i2.ae) {
586
+ const e2 = i2.ce;
570
587
  if (o)
571
588
  e2.ie &= ~REACTIVE_REASK;
572
- if (e2.ie & REACTIVE_RECOMPUTING_DEPS && i2.ll === e2.Ze && i2 !== e2.Ye)
589
+ if (e2.ie & REACTIVE_RECOMPUTING_DEPS && i2.nn === e2.Ze && i2 !== e2.Ye)
573
590
  e2.ie |= REACTIVE_MISSED_WAKE;
574
591
  if (s && e2.T & CONFIG_IN_SNAPSHOT_SCOPE) {
575
592
  e2.ie |= REACTIVE_SNAPSHOT_STALE;
@@ -588,7 +605,7 @@ function insertSubs(e, t = false) {
588
605
  }
589
606
  function commitPendingNode(e) {
590
607
  const t = e;
591
- if (!t.Se) {
608
+ if (!t.oe) {
592
609
  if (e.Pe !== NOT_PENDING) {
593
610
  e.be = e.Pe;
594
611
  e.Pe = NOT_PENDING;
@@ -616,6 +633,7 @@ var storeCommitHook = null;
616
633
  function setStoreCommitHook(e) {
617
634
  storeCommitHook = e;
618
635
  }
636
+ var patchCommitHook = null;
619
637
  function commitPendingNodes() {
620
638
  const e = currentBatch.yt;
621
639
  for (let t = 0;t < e.length; t++) {
@@ -623,6 +641,7 @@ function commitPendingNodes() {
623
641
  }
624
642
  e.length = 0;
625
643
  storeCommitHook?.();
644
+ patchCommitHook?.(currentBatch);
626
645
  }
627
646
  function finalizePureQueue(e = null, t = false) {
628
647
  const i = !t;
@@ -636,28 +655,28 @@ function finalizePureQueue(e = null, t = false) {
636
655
  if (i) {
637
656
  if (n)
638
657
  commitPendingNodes();
639
- const t2 = e ?? globalQueue.k;
658
+ const t2 = e ?? globalQueue.m;
640
659
  if (t2.Ke.length)
641
- GlobalQueue.fn(t2.Ke);
642
- if (t2.ln.size) {
643
- for (const e2 of t2.ln) {
660
+ GlobalQueue.dn(t2.Ke);
661
+ if (t2.cn.size) {
662
+ for (const e2 of t2.cn) {
644
663
  if (e2.ie & REACTIVE_DISPOSED)
645
664
  continue;
646
665
  enqueueSub(e2);
647
666
  }
648
- t2.ln.clear();
667
+ t2.cn.clear();
649
668
  schedule();
650
669
  }
651
- if (t2.m.length) {
652
- GlobalQueue.M(t2.m);
670
+ if (t2.A.length) {
671
+ GlobalQueue.G(t2.A);
653
672
  if (globalQueue.Qt.length)
654
673
  checkBoundaryChildren(globalQueue);
655
674
  }
656
- if (t2.cn.size)
657
- GlobalQueue.Vt(t2.cn, e);
675
+ if (t2.Tn.size)
676
+ GlobalQueue.Bt(t2.Tn, e);
658
677
  sweepTransientStoreNodes();
659
678
  if (activeLanes.size)
660
- GlobalQueue.Tn(e);
679
+ GlobalQueue.Nn(e);
661
680
  }
662
681
  }
663
682
  function checkBoundaryChildren(e) {
@@ -672,7 +691,7 @@ function reassignPendingTransition(e) {
672
691
  }
673
692
  }
674
693
  var globalQueue = new GlobalQueue;
675
- var currentBatch = globalQueue.k;
694
+ var currentBatch = globalQueue.m;
676
695
  function flush(e) {
677
696
  if (e) {
678
697
  syncDepth++;
@@ -686,7 +705,7 @@ function flush(e) {
686
705
  }
687
706
  }
688
707
  }
689
- if (globalQueue.sn) {
708
+ if (globalQueue.En) {
690
709
  return;
691
710
  }
692
711
  if (halted)
@@ -709,15 +728,15 @@ function reporterBlocksSource(e, t) {
709
728
  while (e2) {
710
729
  if (e2 === t || e2.lt === t)
711
730
  return true;
712
- e2 = e2.o?.It;
731
+ e2 = e2.o?.Et;
713
732
  }
714
733
  }
715
734
  return !!(e.S & STATUS_PENDING && e.o?._ instanceof NotReadyError && e.o?._.source === t);
716
735
  }
717
736
  function transitionComplete(e) {
718
- if (e.an)
737
+ if (e.fn)
719
738
  return true;
720
- if (e.oe.length)
739
+ if (e.ue.length)
721
740
  return false;
722
741
  let t = true;
723
742
  for (const [i, n] of e.Ne) {
@@ -736,14 +755,14 @@ function transitionComplete(e) {
736
755
  break;
737
756
  }
738
757
  }
739
- if (t && GlobalQueue.En?.(e))
758
+ if (t && GlobalQueue.In?.(e))
740
759
  t = false;
741
- t && (e.an = true);
760
+ t && (e.fn = true);
742
761
  return t;
743
762
  }
744
763
  function currentTransition(e) {
745
- while (e.an && typeof e.an === "object")
746
- e = e.an;
764
+ while (e.fn && typeof e.fn === "object")
765
+ e = e.fn;
747
766
  return e;
748
767
  }
749
768
  function runInTransition(e, t) {
@@ -756,7 +775,7 @@ function runInTransition(e, t) {
756
775
  }
757
776
  }
758
777
 
759
- // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.3/node_modules/@solidjs/signals/dist/prod/core/heap.js
778
+ // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.4/node_modules/@solidjs/signals/dist/prod/core/heap.js
760
779
  function queueFor(e) {
761
780
  return e.ie & REACTIVE_ZOMBIE ? zombieQueue : dirtyQueue;
762
781
  }
@@ -775,7 +794,7 @@ function enqueueSub(e) {
775
794
  insertIntoHeap(e, E);
776
795
  }
777
796
  function actualInsertIntoHeap(e, E) {
778
- const t = (e.ve?.Ct ? e.ve.Ot?.Le : e.ve?.Le) ?? -1;
797
+ const t = (e.ke?.Ct ? e.ke.Ot?.Le : e.ke?.Le) ?? -1;
779
798
  if (t >= e.Le)
780
799
  e.Le = t + 1;
781
800
  const n = e.Le;
@@ -849,13 +868,13 @@ function markNode(e, E = REACTIVE_DIRTY) {
849
868
  if ((t & (REACTIVE_CHECK | REACTIVE_DIRTY)) >= E)
850
869
  return;
851
870
  e.ie = t & -4 | E;
852
- for (let E2 = e.u;E2 !== null; E2 = E2.fe) {
853
- markNode(E2.ae, REACTIVE_CHECK);
871
+ for (let E2 = e.u;E2 !== null; E2 = E2.ae) {
872
+ markNode(E2.ce, REACTIVE_CHECK);
854
873
  }
855
874
  if (e.T & CONFIG_FW_CHILDREN) {
856
- for (let E2 = e.o.l;E2 !== null; E2 = E2.ce) {
857
- for (let e2 = E2.u;e2 !== null; e2 = e2.fe) {
858
- markNode(e2.ae, REACTIVE_CHECK);
875
+ for (let E2 = e.o.i;E2 !== null; E2 = E2.Se) {
876
+ for (let e2 = E2.u;e2 !== null; e2 = e2.ae) {
877
+ markNode(e2.ce, REACTIVE_CHECK);
859
878
  }
860
879
  }
861
880
  }
@@ -880,21 +899,21 @@ function adjustHeight(e, E) {
880
899
  for (let E2 = e.nt;E2; E2 = E2.it) {
881
900
  const e2 = E2.ut;
882
901
  const n = e2.lt || e2;
883
- if (n.Se && n.Le >= t)
902
+ if (n.oe && n.Le >= t)
884
903
  t = n.Le + 1;
885
904
  }
886
905
  if (e.Le !== t) {
887
906
  e.Le = t;
888
- for (let E2 = e.u;E2 !== null; E2 = E2.fe) {
889
- insertIntoHeapHeight(E2.ae, queueFor(E2.ae));
907
+ for (let E2 = e.u;E2 !== null; E2 = E2.ae) {
908
+ insertIntoHeapHeight(E2.ce, queueFor(E2.ce));
890
909
  }
891
910
  }
892
911
  }
893
912
 
894
- // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.3/node_modules/@solidjs/signals/dist/prod/core/owner.js
913
+ // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.4/node_modules/@solidjs/signals/dist/prod/core/owner.js
895
914
  var PENDING_OWNER = {};
896
915
  function markDisposal(e) {
897
- let t = e.ke;
916
+ let t = e.ve;
898
917
  while (t) {
899
918
  const e2 = t.ie;
900
919
  t.ie = e2 | REACTIVE_ZOMBIE;
@@ -919,9 +938,9 @@ function disposeChildren(e, t = false, n) {
919
938
  if (t2.o?.Ge || t2.o?.ge)
920
939
  GlobalQueue.un(t2);
921
940
  }
922
- if (t && e.Se && e.o !== null)
941
+ if (t && e.oe && e.o !== null)
923
942
  e.o.Ee = null;
924
- let o = n ? e.o?.qe ?? null : e.ke;
943
+ let o = n ? e.o?.qe ?? null : e.ve;
925
944
  while (o) {
926
945
  const e2 = o.Ve;
927
946
  const t2 = o;
@@ -935,16 +954,16 @@ function disposeChildren(e, t = false, n) {
935
954
  if (e.o !== null)
936
955
  e.o.qe = null;
937
956
  } else {
938
- e.ke = null;
957
+ e.ve = null;
939
958
  e.Me = 0;
940
959
  }
941
- if (t && !n && !(i & REACTIVE_ZOMBIE) && e.ve !== null && !(e.ve.ie & REACTIVE_DISPOSED)) {
960
+ if (t && !n && !(i & REACTIVE_ZOMBIE) && e.ke !== null && !(e.ke.ie & REACTIVE_DISPOSED)) {
942
961
  const t2 = e.ct;
943
962
  const n2 = e.Ve;
944
963
  if (t2 !== null)
945
964
  t2.Ve = n2;
946
965
  else
947
- e.ve.ke = n2;
966
+ e.ke.ve = n2;
948
967
  if (n2 !== null)
949
968
  n2.ct = t2;
950
969
  e.ct = null;
@@ -976,8 +995,8 @@ function runDisposal(e, t) {
976
995
  }
977
996
  function childId(e, t) {
978
997
  let n = e;
979
- while (n.T & CONFIG_TRANSPARENT && n.ve)
980
- n = n.ve;
998
+ while (n.T & CONFIG_TRANSPARENT && n.ke)
999
+ n = n.ke;
981
1000
  if (n.id != null)
982
1001
  return formatId(n.id, t ? n.Me++ : n.Me);
983
1002
  throw new Error("");
@@ -1022,7 +1041,7 @@ function createOwner(e) {
1022
1041
  T: n ? CONFIG_TRANSPARENT : 0,
1023
1042
  Ct: true,
1024
1043
  Ot: t?.Ct ? t.Ot : t,
1025
- ke: null,
1044
+ ve: null,
1026
1045
  Ve: null,
1027
1046
  ct: null,
1028
1047
  he: null,
@@ -1030,17 +1049,17 @@ function createOwner(e) {
1030
1049
  we: t?.we || defaultContext,
1031
1050
  Me: 0,
1032
1051
  o: null,
1033
- ve: t,
1052
+ ke: t,
1034
1053
  dispose: disposeRootSelf
1035
1054
  };
1036
1055
  if (t) {
1037
- const e2 = t.ke;
1056
+ const e2 = t.ve;
1038
1057
  if (e2 === null) {
1039
- t.ke = i;
1058
+ t.ve = i;
1040
1059
  } else {
1041
1060
  i.Ve = e2;
1042
1061
  e2.ct = i;
1043
- t.ke = i;
1062
+ t.ve = i;
1044
1063
  }
1045
1064
  }
1046
1065
  return i;
@@ -1050,48 +1069,48 @@ function createRoot(e, t) {
1050
1069
  return runWithOwner(n, () => e(() => n.dispose()));
1051
1070
  }
1052
1071
 
1053
- // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.3/node_modules/@solidjs/signals/dist/prod/core/graph.js
1072
+ // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.4/node_modules/@solidjs/signals/dist/prod/core/graph.js
1054
1073
  function unlinkSubs(e) {
1055
- const l = e.ut;
1056
- const n = e.it;
1057
- const u = e.fe;
1058
- const s = e.el;
1059
- if (u !== null)
1060
- u.el = s;
1074
+ const n = e.ut;
1075
+ const l = e.it;
1076
+ const o = e.ae;
1077
+ const u = e.en;
1078
+ if (o !== null)
1079
+ o.en = u;
1061
1080
  else
1062
- l.rt = s;
1063
- if (s !== null)
1064
- s.fe = u;
1081
+ n.rt = u;
1082
+ if (u !== null)
1083
+ u.ae = o;
1065
1084
  else {
1066
- l.u = u;
1067
- if (u === null) {
1068
- l.o?.ft?.();
1069
- const e2 = l;
1070
- e2.Se && e2.T & CONFIG_AUTO_DISPOSE && !(e2.ie & REACTIVE_ZOMBIE) && !(e2.S & STATUS_PENDING) && unobserved(e2);
1085
+ n.u = o;
1086
+ if (o === null) {
1087
+ n.o?.ft?.();
1088
+ const e2 = n;
1089
+ e2.oe && e2.T & CONFIG_AUTO_DISPOSE && !(e2.ie & REACTIVE_ZOMBIE) && !(e2.S & STATUS_PENDING) && unobserved(e2);
1071
1090
  }
1072
1091
  }
1073
- return n;
1092
+ return l;
1074
1093
  }
1075
1094
  function trimStaleDeps(e) {
1076
- const l = e.Ye;
1077
- let n = l !== null ? l.it : e.nt;
1078
- if (n !== null) {
1095
+ const n = e.Ye;
1096
+ let l = n !== null ? n.it : e.nt;
1097
+ if (l !== null) {
1079
1098
  do {
1080
- n = unlinkSubs(n);
1081
- } while (n !== null);
1082
- if (l !== null)
1083
- l.it = null;
1099
+ l = unlinkSubs(l);
1100
+ } while (l !== null);
1101
+ if (n !== null)
1102
+ n.it = null;
1084
1103
  else
1085
1104
  e.nt = null;
1086
1105
  }
1087
1106
  }
1088
1107
  function clearDeps(e) {
1089
- let l = e.nt;
1090
- if (!l)
1108
+ let n = e.nt;
1109
+ if (!n)
1091
1110
  return;
1092
1111
  do {
1093
- l = unlinkSubs(l);
1094
- } while (l !== null);
1112
+ n = unlinkSubs(n);
1113
+ } while (n !== null);
1095
1114
  e.nt = null;
1096
1115
  e.Ye = null;
1097
1116
  }
@@ -1100,52 +1119,63 @@ function unobserved(e) {
1100
1119
  clearDeps(e);
1101
1120
  disposeChildren(e, true);
1102
1121
  }
1103
- function link(e, l, n = false) {
1104
- const u = l.Ye;
1105
- if (u !== null && u.ut === e) {
1106
- u.me &&= n;
1122
+ var dormantNodes = new Set;
1123
+ function sweepDormant() {
1124
+ if (dormantNodes.size === 0)
1107
1125
  return;
1126
+ for (const e of dormantNodes) {
1127
+ if (!e.u && e.T & CONFIG_AUTO_DISPOSE && !(e.S & STATUS_PENDING) && !(e.ie & (REACTIVE_DISPOSED | REACTIVE_ZOMBIE))) {
1128
+ unobserved(e);
1129
+ }
1108
1130
  }
1109
- let s = null;
1110
- const o = l.ie & REACTIVE_RECOMPUTING_DEPS;
1111
- if (o) {
1112
- s = u !== null ? u.it : l.nt;
1113
- if (s !== null && s.ut === e) {
1114
- s.ll = l.Ze;
1115
- l.Ye = s;
1116
- s.me = n;
1131
+ dormantNodes.clear();
1132
+ }
1133
+ function link(e, n, l = false) {
1134
+ const o = n.Ye;
1135
+ if (o !== null && o.ut === e) {
1136
+ o.me &&= l;
1137
+ return;
1138
+ }
1139
+ let u = null;
1140
+ const t = n.ie & REACTIVE_RECOMPUTING_DEPS;
1141
+ if (t) {
1142
+ u = o !== null ? o.it : n.nt;
1143
+ if (u !== null && u.ut === e) {
1144
+ u.nn = n.Ze;
1145
+ n.Ye = u;
1146
+ u.me = l;
1117
1147
  return;
1118
1148
  }
1119
1149
  }
1120
- const t = e.rt;
1121
- if (t !== null && t.ae === l && (!o || t.ll === l.Ze)) {
1122
- if (o)
1123
- t.me &&= n;
1150
+ const s = e.rt;
1151
+ if (s !== null && s.ce === n && (!t || s.nn === n.Ze)) {
1152
+ if (t)
1153
+ s.me &&= l;
1124
1154
  else
1125
- t.me = n;
1155
+ s.me = l;
1126
1156
  return;
1127
1157
  }
1128
- const i = l.Ye = e.rt = {
1158
+ const r = n.Ye = e.rt = {
1129
1159
  ut: e,
1130
- ae: l,
1131
- it: s,
1132
- el: t,
1133
- fe: null,
1134
- ll: l.Ze,
1135
- me: n
1136
- };
1137
- if (u !== null)
1138
- u.it = i;
1160
+ ce: n,
1161
+ it: u,
1162
+ en: s,
1163
+ ae: null,
1164
+ nn: n.Ze,
1165
+ me: l
1166
+ };
1167
+ if (o !== null)
1168
+ o.it = r;
1139
1169
  else
1140
- l.nt = i;
1141
- if (t !== null)
1142
- t.fe = i;
1170
+ n.nt = r;
1171
+ if (s !== null)
1172
+ s.ae = r;
1143
1173
  else
1144
- e.u = i;
1174
+ e.u = r;
1145
1175
  bumpNotifyEpoch();
1146
1176
  }
1147
1177
 
1148
- // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.3/node_modules/@solidjs/signals/dist/prod/core/async.js
1178
+ // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.4/node_modules/@solidjs/signals/dist/prod/core/async.js
1149
1179
  function addPendingSource(e, n) {
1150
1180
  if (e.o?.le?.has(n))
1151
1181
  return false;
@@ -1167,7 +1197,7 @@ function clearPendingSources(e) {
1167
1197
  e.o.le = undefined;
1168
1198
  }
1169
1199
  function parkLoadingWindow(e, n) {
1170
- ext(e).ue = true;
1200
+ ext(e).fe = true;
1171
1201
  if (n.source)
1172
1202
  addPendingSource(e, n.source);
1173
1203
  if (!(e.S & STATUS_ERROR))
@@ -1189,15 +1219,15 @@ function setPendingError(e, n, t) {
1189
1219
  }
1190
1220
  }
1191
1221
  function forEachDependent(e, n) {
1192
- for (let t = e.u;t !== null; t = t.fe)
1193
- n(t.ae, t);
1194
- for (let t = e.o?.l ?? null;t !== null; t = t.ce) {
1195
- for (let e2 = t.u;e2 !== null; e2 = e2.fe)
1196
- n(e2.ae, e2);
1222
+ for (let t = e.u;t !== null; t = t.ae)
1223
+ n(t.ce, t);
1224
+ for (let t = e.o?.i ?? null;t !== null; t = t.Se) {
1225
+ for (let e2 = t.u;e2 !== null; e2 = e2.ae)
1226
+ n(e2.ce, e2);
1197
1227
  }
1198
1228
  }
1199
1229
  function releaseIfSettledUnobserved(e) {
1200
- e.Se && e.T & CONFIG_AUTO_DISPOSE && !e.u && !(e.ie & REACTIVE_ZOMBIE) && !(e.S & STATUS_PENDING) && unobserved(e);
1230
+ e.oe && e.T & CONFIG_AUTO_DISPOSE && !e.u && !(e.ie & REACTIVE_ZOMBIE) && !(e.S & STATUS_PENDING) && unobserved(e);
1201
1231
  }
1202
1232
  function releaseSettledDependents(e) {
1203
1233
  let n;
@@ -1242,23 +1272,23 @@ function settlePendingSource(e) {
1242
1272
  return;
1243
1273
  r.add(l);
1244
1274
  l.Te = clock;
1245
- const u = l.o?.le?.values().next().value;
1246
- const i = l.S & STATUS_ERROR;
1247
- if (u) {
1248
- if (!i)
1249
- setPendingError(l, u);
1275
+ const i = l.o?.le?.values().next().value;
1276
+ const u = l.S & STATUS_ERROR;
1277
+ if (i) {
1278
+ if (!u)
1279
+ setPendingError(l, i);
1250
1280
  o !== null && o(l);
1251
1281
  } else {
1252
1282
  l.S &= ~STATUS_PENDING;
1253
- if (!i)
1283
+ if (!u)
1254
1284
  setPendingError(l);
1255
1285
  o !== null && o(l);
1256
- if (l.o?.ue) {
1286
+ if (l.o?.fe) {
1257
1287
  enqueueSub(l);
1258
1288
  n = true;
1259
1289
  }
1260
1290
  if (l.o !== null)
1261
- l.o.ue = false;
1291
+ l.o.fe = false;
1262
1292
  if (!l.u && l.T & CONFIG_AUTO_DISPOSE)
1263
1293
  (t ??= []).push(l);
1264
1294
  }
@@ -1325,9 +1355,9 @@ function handleAsync(e, n, t) {
1325
1355
  const l2 = !!(e.S & STATUS_UNINITIALIZED);
1326
1356
  trimStaleDeps(e);
1327
1357
  clearStatus(e);
1328
- const u2 = resolveLane(e);
1329
- if (u2)
1330
- u2.Ae.delete(e);
1358
+ const i2 = resolveLane(e);
1359
+ if (i2)
1360
+ i2.Ae.delete(e);
1331
1361
  if (t) {
1332
1362
  t(r2);
1333
1363
  if (l2)
@@ -1341,7 +1371,7 @@ function handleAsync(e, n, t) {
1341
1371
  insertSubs(e);
1342
1372
  }
1343
1373
  e.Te = clock;
1344
- } else if (u2) {
1374
+ } else if (i2) {
1345
1375
  const n2 = e.Re;
1346
1376
  const t2 = e.be;
1347
1377
  const o3 = e.Ue;
@@ -1378,13 +1408,13 @@ function handleAsync(e, n, t) {
1378
1408
  };
1379
1409
  const consumeIterator = (t2, r2) => {
1380
1410
  const o2 = t2[Symbol.asyncIterator]();
1381
- let u2 = false;
1382
- let i = false;
1411
+ let i2 = false;
1412
+ let u = false;
1383
1413
  let s = !r2;
1384
1414
  const close = () => {
1385
- if (i)
1415
+ if (u)
1386
1416
  return;
1387
- i = true;
1417
+ u = true;
1388
1418
  try {
1389
1419
  const e2 = o2.return?.();
1390
1420
  if (isThenable(e2))
@@ -1407,15 +1437,15 @@ function handleAsync(e, n, t) {
1407
1437
  t3 = r4;
1408
1438
  f2 = true;
1409
1439
  if (r4.done)
1410
- i = true;
1440
+ u = true;
1411
1441
  } else if (e.o?.Ee !== n) {
1412
1442
  return;
1413
1443
  } else if (!r4.done) {
1414
- u2 = true;
1444
+ i2 = true;
1415
1445
  asyncWrite(r4.value, iterateOrRelease);
1416
1446
  } else {
1417
- i = true;
1418
- if (u2) {
1447
+ u = true;
1448
+ if (i2) {
1419
1449
  schedule();
1420
1450
  flush();
1421
1451
  } else {
@@ -1428,14 +1458,14 @@ function handleAsync(e, n, t) {
1428
1458
  r3 = t4;
1429
1459
  a = true;
1430
1460
  } else if (e.o?.Ee === n) {
1431
- i = true;
1461
+ u = true;
1432
1462
  handleError(t4);
1433
1463
  settleAutodispose();
1434
1464
  }
1435
1465
  });
1436
1466
  c = false;
1437
1467
  if (a) {
1438
- i = true;
1468
+ u = true;
1439
1469
  handleError(r3);
1440
1470
  if (s)
1441
1471
  throw r3;
@@ -1443,16 +1473,16 @@ function handleAsync(e, n, t) {
1443
1473
  }
1444
1474
  if (f2 && !t3.done) {
1445
1475
  l = t3.value;
1446
- u2 = true;
1476
+ i2 = true;
1447
1477
  return iterate();
1448
1478
  }
1449
1479
  return f2 && t3.done;
1450
1480
  };
1451
1481
  const f = iterate();
1452
1482
  s = false;
1453
- return u2 || f;
1483
+ return i2 || f;
1454
1484
  };
1455
- let u = null;
1485
+ let i = null;
1456
1486
  const flattenIfIterable = (e2, n2) => {
1457
1487
  let t2 = false;
1458
1488
  if (typeof e2 === "object" && e2 !== null) {
@@ -1464,11 +1494,11 @@ function handleAsync(e, n, t) {
1464
1494
  return false;
1465
1495
  const r2 = consumeIterator(e2, n2);
1466
1496
  if (!n2)
1467
- u = r2;
1497
+ i = r2;
1468
1498
  return true;
1469
1499
  };
1470
1500
  if (o) {
1471
- let t2 = false, r2 = false, o2, u2 = true;
1501
+ let t2 = false, r2 = false, o2, i2 = true;
1472
1502
  const registerDeferredClose = (n2) => {
1473
1503
  if (!e.he)
1474
1504
  e.he = n2;
@@ -1478,7 +1508,7 @@ function handleAsync(e, n, t) {
1478
1508
  e.he = [e.he, n2];
1479
1509
  };
1480
1510
  n.then((r3) => {
1481
- if (u2) {
1511
+ if (i2) {
1482
1512
  l = r3;
1483
1513
  t2 = true;
1484
1514
  } else if (e.o?.Ee === n && !(e.ie & REACTIVE_DISPOSED) && flattenIfIterable(r3, registerDeferredClose))
@@ -1488,7 +1518,7 @@ function handleAsync(e, n, t) {
1488
1518
  settleAutodispose();
1489
1519
  }
1490
1520
  }, (e2) => {
1491
- if (u2) {
1521
+ if (i2) {
1492
1522
  o2 = e2;
1493
1523
  r2 = true;
1494
1524
  } else {
@@ -1496,7 +1526,7 @@ function handleAsync(e, n, t) {
1496
1526
  settleAutodispose();
1497
1527
  }
1498
1528
  });
1499
- u2 = false;
1529
+ i2 = false;
1500
1530
  if (r2) {
1501
1531
  handleError(o2);
1502
1532
  throw o2;
@@ -1511,8 +1541,8 @@ function handleAsync(e, n, t) {
1511
1541
  }
1512
1542
  if (r)
1513
1543
  flattenIfIterable(n);
1514
- if (u !== null) {
1515
- if (!u) {
1544
+ if (i !== null) {
1545
+ if (!i) {
1516
1546
  if (e.Ie)
1517
1547
  return e.be;
1518
1548
  globalQueue.initTransition(resolveTransition(e));
@@ -1525,9 +1555,9 @@ function handleAsync(e, n, t) {
1525
1555
  function clearStatus(e, n = false) {
1526
1556
  if (e.o?.le)
1527
1557
  clearPendingSources(e);
1528
- if (e.o?.ue) {
1558
+ if (e.o?.fe) {
1529
1559
  if (e.o !== null)
1530
- e.o.ue = false;
1560
+ e.o.fe = false;
1531
1561
  }
1532
1562
  if (e.o !== null)
1533
1563
  e.o.pe = false;
@@ -1536,18 +1566,19 @@ function clearStatus(e, n = false) {
1536
1566
  setPendingError(e);
1537
1567
  if (e.o?.Ge || e.o?.ge)
1538
1568
  GlobalQueue.de(e);
1539
- if (e.o?.l && e.T & CONFIG_CHILD_COMPANIONS && GlobalQueue.ye !== null)
1569
+ if (e.o?.i && e.T & CONFIG_CHILD_COMPANIONS && GlobalQueue.ye !== null)
1540
1570
  GlobalQueue.ye(e);
1541
- if (e.o?.A)
1542
- e.o.A.call(e);
1571
+ const t = statusNotifierOf(e);
1572
+ if (t)
1573
+ t.call(e);
1543
1574
  }
1544
1575
  function notifyStatus(e, n, t, r, o) {
1545
1576
  if (n === STATUS_ERROR && !(t instanceof StatusError) && !(t instanceof NotReadyError))
1546
1577
  t = new StatusError(e, t);
1547
1578
  const l = n === STATUS_PENDING && t instanceof NotReadyError ? t.source : undefined;
1548
- const u = l === e;
1549
- const i = n === STATUS_PENDING && e.o?.De !== undefined && !u;
1550
- const s = i && hasActiveOverride(e);
1579
+ const i = l === e;
1580
+ const u = n === STATUS_PENDING && e.o?.De !== undefined && !i;
1581
+ const s = u && hasActiveOverride(e);
1551
1582
  if (!r) {
1552
1583
  if (n === STATUS_PENDING && l) {
1553
1584
  addPendingSource(e, l);
@@ -1559,22 +1590,23 @@ function notifyStatus(e, n, t, r, o) {
1559
1590
  ext(e)._ = t;
1560
1591
  }
1561
1592
  GlobalQueue.de !== null && GlobalQueue.de(e);
1562
- if (e.o?.l && e.T & CONFIG_CHILD_COMPANIONS && GlobalQueue.ye !== null)
1593
+ if (e.o?.i && e.T & CONFIG_CHILD_COMPANIONS && GlobalQueue.ye !== null)
1563
1594
  GlobalQueue.ye(e);
1564
1595
  }
1565
1596
  if (o && !r) {
1566
1597
  assignOrMergeLane(e, o);
1567
1598
  }
1568
1599
  const f = r || s;
1569
- const a = r || i ? undefined : o;
1570
- if (e.o?.A) {
1600
+ const a = r || u ? undefined : o;
1601
+ const c = statusNotifierOf(e);
1602
+ if (c) {
1571
1603
  if (r && n === STATUS_PENDING) {
1572
1604
  return;
1573
1605
  }
1574
1606
  if (f) {
1575
- e.o.A.call(e, n, t);
1607
+ c.call(e, n, t);
1576
1608
  } else {
1577
- e.o.A.call(e);
1609
+ c.call(e);
1578
1610
  }
1579
1611
  return;
1580
1612
  }
@@ -1593,10 +1625,13 @@ function notifyStatus(e, n, t, r, o) {
1593
1625
  });
1594
1626
  }
1595
1627
 
1596
- // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.3/node_modules/@solidjs/signals/dist/prod/core/core.js
1628
+ // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.4/node_modules/@solidjs/signals/dist/prod/core/core.js
1597
1629
  GlobalQueue.Ce = recompute;
1598
1630
  GlobalQueue.Fe = disposeChildren;
1599
1631
  var tracking = false;
1632
+ function setLatestReadActive(e) {
1633
+ latestReadActive = e;
1634
+ }
1600
1635
  var stale = false;
1601
1636
  var pendingCheckActive = false;
1602
1637
  var latestReadActive = false;
@@ -1608,7 +1643,7 @@ function ownerInSnapshotScope(e) {
1608
1643
  while (e) {
1609
1644
  if (e.He)
1610
1645
  return true;
1611
- e = e.ve;
1646
+ e = e.ke;
1612
1647
  }
1613
1648
  return false;
1614
1649
  }
@@ -1623,13 +1658,13 @@ function recompute(e, t = false) {
1623
1658
  e.o.Ee = null;
1624
1659
  if (e._e || n === EFFECT_TRACKED)
1625
1660
  disposeChildren(e);
1626
- else if (e.ke !== null || e.he !== null) {
1661
+ else if (e.ve !== null || e.he !== null) {
1627
1662
  markDisposal(e);
1628
1663
  const t2 = ext(e);
1629
1664
  t2.We = e.he;
1630
- t2.qe = e.ke;
1665
+ t2.qe = e.ve;
1631
1666
  e.he = null;
1632
- e.ke = null;
1667
+ e.ve = null;
1633
1668
  e.Me = 0;
1634
1669
  }
1635
1670
  }
@@ -1648,10 +1683,10 @@ function recompute(e, t = false) {
1648
1683
  let c = e.Pe === NOT_PENDING ? e.be : e.Pe;
1649
1684
  let _ = e.Le;
1650
1685
  let f = false;
1651
- let E = tracking;
1652
- let I = currentOptimisticLane;
1686
+ let N = tracking;
1687
+ let E = currentOptimisticLane;
1653
1688
  tracking = true;
1654
- const N = latestReadActive;
1689
+ const I = latestReadActive;
1655
1690
  latestReadActive = false;
1656
1691
  if (i) {
1657
1692
  const t2 = GlobalQueue.je(e, true);
@@ -1666,19 +1701,19 @@ function recompute(e, t = false) {
1666
1701
  currentOptimisticLane = t2;
1667
1702
  }
1668
1703
  }
1669
- const T = n && n !== EFFECT_USER;
1670
- const d = stale;
1671
- if (T)
1704
+ const d = n && n !== EFFECT_USER;
1705
+ const T = stale;
1706
+ if (d)
1672
1707
  stale = true;
1673
1708
  try {
1674
1709
  if (e.T & CONFIG_SYNC) {
1675
- c = e.Se(c);
1710
+ c = e.oe(c);
1676
1711
  if (e.o !== null)
1677
1712
  e.o.Ee = null;
1678
1713
  e.Ie = false;
1679
1714
  } else {
1680
1715
  const t2 = e.o?.Ee;
1681
- const n2 = e.Se(c);
1716
+ const n2 = e.oe(c);
1682
1717
  const i2 = typeof n2 === "object" && n2 !== null;
1683
1718
  const u2 = e.o?.Ee !== t2;
1684
1719
  c = u2 || !i2 ? n2 : handleAsync(e, n2);
@@ -1701,19 +1736,19 @@ function recompute(e, t = false) {
1701
1736
  GlobalQueue.$e(e);
1702
1737
  let i2 = false;
1703
1738
  if (n2) {
1704
- ext(e).ue = true;
1739
+ ext(e).fe = true;
1705
1740
  if (GlobalQueue.Je !== null)
1706
1741
  i2 = GlobalQueue.Je(e, s);
1707
1742
  }
1708
1743
  notifyStatus(e, n2 ? STATUS_PENDING : STATUS_ERROR, t2, undefined, n2 ? e.o?.Be : undefined);
1709
1744
  if (i2)
1710
- GlobalQueue.p(e);
1745
+ GlobalQueue.k(e);
1711
1746
  }
1712
1747
  } finally {
1713
- tracking = E;
1714
- latestReadActive = N;
1715
- if (T)
1716
- stale = d;
1748
+ tracking = N;
1749
+ latestReadActive = I;
1750
+ if (d)
1751
+ stale = T;
1717
1752
  f = (e.ie & REACTIVE_MISSED_WAKE) !== 0;
1718
1753
  e.ie = REACTIVE_NONE | (t ? e.ie & REACTIVE_SNAPSHOT_STALE : 0);
1719
1754
  context = r;
@@ -1758,14 +1793,14 @@ function recompute(e, t = false) {
1758
1793
  if (a)
1759
1794
  e.Ie = true;
1760
1795
  } else if (e.Le != _) {
1761
- for (let t2 = e.u;t2 !== null; t2 = t2.fe) {
1762
- insertIntoHeapHeight(t2.ae, queueFor(t2.ae));
1796
+ for (let t2 = e.u;t2 !== null; t2 = t2.ae) {
1797
+ insertIntoHeapHeight(t2.ce, queueFor(t2.ce));
1763
1798
  }
1764
1799
  }
1765
1800
  if (o !== undefined && !r2 && !e.o?._)
1766
1801
  settleErroredDependents(e, o);
1767
1802
  }
1768
- currentOptimisticLane = I;
1803
+ currentOptimisticLane = E;
1769
1804
  const S = e.Pe !== NOT_PENDING || e.o !== null && (e.o.qe !== null || e.o.We !== null) || (e.S & (STATUS_PENDING | STATUS_UNINITIALIZED)) !== 0;
1770
1805
  S && (!t || e.S & STATUS_PENDING) && (!e._e || u) && queuePendingNode(e);
1771
1806
  e._e && n && activeTransition !== e._e && runInTransition(e._e, () => recompute(e));
@@ -1781,7 +1816,7 @@ function updateIfNecessary(e) {
1781
1816
  for (let t = e.nt;t; t = t.it) {
1782
1817
  const n = t.ut;
1783
1818
  const i = n.lt || n;
1784
- if (i.Se) {
1819
+ if (i.oe) {
1785
1820
  updateIfNecessary(i);
1786
1821
  }
1787
1822
  if (e.ie & REACTIVE_DIRTY) {
@@ -1805,7 +1840,7 @@ function computed(e, t) {
1805
1840
  C: context?.C ?? globalQueue,
1806
1841
  we: context?.we ?? defaultContext,
1807
1842
  Me: 0,
1808
- Se: e,
1843
+ oe: e,
1809
1844
  be: i ? t.loadingValue : undefined,
1810
1845
  Le: 0,
1811
1846
  ot: undefined,
@@ -1815,10 +1850,10 @@ function computed(e, t) {
1815
1850
  Ze: 0,
1816
1851
  u: null,
1817
1852
  rt: null,
1818
- ve: context,
1853
+ ke: context,
1819
1854
  Ve: null,
1820
1855
  ct: null,
1821
- ke: null,
1856
+ ve: null,
1822
1857
  ie: t?.lazy ? REACTIVE_LAZY : REACTIVE_NONE,
1823
1858
  S: i ? 0 : STATUS_UNINITIALIZED,
1824
1859
  Te: clock,
@@ -1836,37 +1871,37 @@ function computed(e, t) {
1836
1871
  function ext(e) {
1837
1872
  return e.o ??= {
1838
1873
  De: undefined,
1839
- Et: undefined,
1874
+ Nt: undefined,
1840
1875
  Be: undefined,
1841
1876
  Ge: undefined,
1842
1877
  ge: undefined,
1843
- It: undefined,
1878
+ Et: undefined,
1844
1879
  t: 0,
1845
1880
  Ee: null,
1846
1881
  _: undefined,
1847
- ue: undefined,
1882
+ fe: undefined,
1848
1883
  le: undefined,
1849
- A: undefined,
1884
+ h: undefined,
1850
1885
  pe: false,
1851
- l: null,
1886
+ i: null,
1852
1887
  ft: undefined,
1853
1888
  Qe: undefined,
1854
1889
  We: null,
1855
1890
  qe: null,
1856
- Nt: undefined
1891
+ It: undefined
1857
1892
  };
1858
1893
  }
1859
- function createEffectNode(e, t, n, i, u, l) {
1860
- const o = l?.transparent ?? false;
1861
- const s = {
1862
- id: inheritId(l, o, context),
1863
- T: (o ? CONFIG_TRANSPARENT : 0) | (l?.ownedWrite ? CONFIG_OWNED_WRITE : 0) | (l?.sync ? CONFIG_SYNC : 0) | (snapshotCaptureActive && ownerInSnapshotScope(context) ? CONFIG_IN_SNAPSHOT_SCOPE : 0),
1894
+ function createEffectNode(e, t, n, i, u) {
1895
+ const l = u?.transparent ?? false;
1896
+ const o = {
1897
+ id: inheritId(u, l, context),
1898
+ T: (l ? CONFIG_TRANSPARENT : 0) | (u?.ownedWrite ? CONFIG_OWNED_WRITE : 0) | (u?.sync ? CONFIG_SYNC : 0) | (snapshotCaptureActive && ownerInSnapshotScope(context) ? CONFIG_IN_SNAPSHOT_SCOPE : 0),
1864
1899
  Ue: false,
1865
1900
  he: null,
1866
1901
  C: context?.C ?? globalQueue,
1867
1902
  we: context?.we ?? defaultContext,
1868
1903
  Me: 0,
1869
- Se: e,
1904
+ oe: e,
1870
1905
  be: undefined,
1871
1906
  Le: 0,
1872
1907
  ot: undefined,
@@ -1876,10 +1911,10 @@ function createEffectNode(e, t, n, i, u, l) {
1876
1911
  Ze: 0,
1877
1912
  u: null,
1878
1913
  rt: null,
1879
- ve: context,
1914
+ ke: context,
1880
1915
  Ve: null,
1881
1916
  ct: null,
1882
- ke: null,
1917
+ ve: null,
1883
1918
  ie: REACTIVE_LAZY,
1884
1919
  S: STATUS_UNINITIALIZED,
1885
1920
  Te: clock,
@@ -1888,19 +1923,28 @@ function createEffectNode(e, t, n, i, u, l) {
1888
1923
  _t: -1,
1889
1924
  Ie: false,
1890
1925
  Xe: false,
1891
- Tt: undefined,
1892
- dt: t,
1926
+ dt: undefined,
1927
+ Tt: t,
1893
1928
  St: n,
1894
1929
  At: undefined,
1895
1930
  Re: i,
1896
1931
  o: null
1897
1932
  };
1898
- if (u !== undefined)
1899
- ext(s).A = u;
1900
- if (l?.unobserved)
1901
- ext(s).ft = l.unobserved;
1902
- setupComputedNode(s, lazyOptions);
1903
- return s;
1933
+ if (u?.unobserved)
1934
+ ext(o).ft = u.unobserved;
1935
+ setupComputedNode(o, lazyOptions);
1936
+ return o;
1937
+ }
1938
+ var effectStatusNotify = null;
1939
+ function setEffectStatusNotify(e) {
1940
+ effectStatusNotify = e;
1941
+ }
1942
+ function statusNotifierOf(e) {
1943
+ const t = e.o;
1944
+ const n = t !== null && t !== undefined ? t.h : undefined;
1945
+ if (n !== undefined)
1946
+ return n;
1947
+ return e.Re ? effectStatusNotify ?? undefined : undefined;
1904
1948
  }
1905
1949
  var lazyOptions = {
1906
1950
  lazy: true
@@ -1909,13 +1953,13 @@ function setupComputedNode(e, t) {
1909
1953
  e.st = e;
1910
1954
  const n = context?.Ct ? context.Ot : context;
1911
1955
  if (context) {
1912
- const t2 = context.ke;
1956
+ const t2 = context.ve;
1913
1957
  if (t2 === null) {
1914
- context.ke = e;
1958
+ context.ve = e;
1915
1959
  } else {
1916
1960
  e.Ve = t2;
1917
1961
  t2.ct = e;
1918
- context.ke = e;
1962
+ context.ve = e;
1919
1963
  }
1920
1964
  }
1921
1965
  if (n)
@@ -1940,7 +1984,7 @@ function signal(e, t, n = null) {
1940
1984
  rt: null,
1941
1985
  Te: clock,
1942
1986
  lt: n,
1943
- ce: n?.o?.l || null,
1987
+ Se: n?.o?.i || null,
1944
1988
  Pe: NOT_PENDING,
1945
1989
  _e: null,
1946
1990
  _t: -1,
@@ -1949,7 +1993,7 @@ function signal(e, t, n = null) {
1949
1993
  if (t?.unobserved)
1950
1994
  ext(i).ft = t.unobserved;
1951
1995
  if (n) {
1952
- ext(n).l = i;
1996
+ ext(n).i = i;
1953
1997
  n.T |= CONFIG_FW_CHILDREN;
1954
1998
  }
1955
1999
  if (snapshotCaptureActive && !(i.T & CONFIG_NO_SNAPSHOT) && !((n?.S ?? 0) & STATUS_PENDING)) {
@@ -1988,7 +2032,7 @@ function prepareComputed(e, t) {
1988
2032
  }
1989
2033
  var READ_SLOW = Symbol("read-slow");
1990
2034
  function readNodeFast(e) {
1991
- if (latestReadActive || pendingCheckActive || e.Se || e.lt || e.o?.De !== undefined || e.o?.Qe !== undefined || activeTransition !== null || currentOptimisticLane !== null || snapshotCaptureActive || false)
2035
+ if (latestReadActive || pendingCheckActive || e.oe || e.lt || e.o?.De !== undefined || e.o?.Qe !== undefined || activeTransition !== null || currentOptimisticLane !== null || snapshotCaptureActive || false)
1992
2036
  return READ_SLOW;
1993
2037
  let t = context;
1994
2038
  if (t?.Ct)
@@ -2008,17 +2052,17 @@ function read(e) {
2008
2052
  const u = i || e;
2009
2053
  if (pendingCheckActive) {
2010
2054
  GlobalQueue.Dt(e, t, u, i);
2011
- } else if (typeof n.Se === "function") {
2055
+ } else if (typeof n.oe === "function") {
2012
2056
  prepareComputed(e, false);
2013
2057
  }
2014
- if (!n.Se && u === e && e.o?.De === undefined && e.o?.Qe === undefined && activeTransition === null && currentOptimisticLane === null && !snapshotCaptureActive && true) {
2058
+ if (!n.oe && u === e && e.o?.De === undefined && e.o?.Qe === undefined && activeTransition === null && currentOptimisticLane === null && !snapshotCaptureActive && true) {
2015
2059
  if (t && tracking)
2016
2060
  link(e, t);
2017
2061
  return !t || e.Pe === NOT_PENDING || t.T & CONFIG_CHILDREN_FORBIDDEN ? e.be : e.Pe;
2018
2062
  }
2019
2063
  if (t && tracking) {
2020
2064
  link(e, t, pendingCheckActive);
2021
- if (u.Se) {
2065
+ if (u.oe) {
2022
2066
  const n2 = queueFor(e);
2023
2067
  if (u.Le >= n2.xe) {
2024
2068
  markNode(t);
@@ -2026,7 +2070,7 @@ function read(e) {
2026
2070
  updateIfNecessary(u);
2027
2071
  }
2028
2072
  const i2 = u.Le;
2029
- if (i2 >= t.Le && e.ve !== t) {
2073
+ if (i2 >= t.Le && e.ke !== t) {
2030
2074
  t.Le = i2 + 1;
2031
2075
  }
2032
2076
  }
@@ -2046,7 +2090,7 @@ function read(e) {
2046
2090
  throw u.o?._;
2047
2091
  }
2048
2092
  }
2049
- if (u.Se && u.S & STATUS_ERROR) {
2093
+ if (u.oe && u.S & STATUS_ERROR) {
2050
2094
  if (tracking && !pendingCheckActive && u.Te < clock) {
2051
2095
  recompute(u);
2052
2096
  return read(e);
@@ -2072,8 +2116,9 @@ function read(e) {
2072
2116
  const l = !t || currentOptimisticLane !== null && GlobalQueue.gt(e, u, t) || e.Pe === NOT_PENDING || t.T & CONFIG_CHILDREN_FORBIDDEN || stale && e._e && activeTransition !== e._e ? e.be : e.Pe;
2073
2117
  if (pendingCheckActive)
2074
2118
  GlobalQueue.Ht(e, l);
2075
- if (!t && u === e && typeof n.Se === "function" && e.T & CONFIG_AUTO_DISPOSE && !(u.S & STATUS_PENDING) && !e.u) {
2076
- unobserved(e);
2119
+ if (!t && u === e && typeof n.oe === "function" && e.T & CONFIG_AUTO_DISPOSE && !(u.S & STATUS_PENDING) && !e.u) {
2120
+ dormantNodes.add(e);
2121
+ schedule();
2077
2122
  }
2078
2123
  return l;
2079
2124
  }
@@ -2081,7 +2126,7 @@ function setSignal(e, t) {
2081
2126
  if (e._e && activeTransition !== e._e)
2082
2127
  globalQueue.initTransition(e._e);
2083
2128
  if (e.T & CONFIG_OPTIMISTIC && !projectionWriteActive)
2084
- return GlobalQueue.vt(e, t);
2129
+ return GlobalQueue.kt(e, t);
2085
2130
  const n = e.Pe === NOT_PENDING ? e.be : e.Pe;
2086
2131
  if (typeof t === "function")
2087
2132
  t = t(n);
@@ -2093,7 +2138,7 @@ function setSignal(e, t) {
2093
2138
  queuePendingNode(e);
2094
2139
  e.Pe = t;
2095
2140
  e.T & CONFIG_HAS_COMPANIONS && GlobalQueue.Oe !== null && GlobalQueue.Oe(e, t);
2096
- if (e.Se !== undefined)
2141
+ if (e.oe !== undefined)
2097
2142
  e.Te = clock;
2098
2143
  if (u && e._t === notifyEpoch && currentOptimisticLane === null && !reaskArmed)
2099
2144
  return t;
@@ -2108,7 +2153,7 @@ function suppressComputedRecompute(e) {
2108
2153
  schedule();
2109
2154
  }
2110
2155
  e.ie = e.ie & -4 | REACTIVE_MANUAL_WRITE;
2111
- e.kt = clock;
2156
+ e.vt = clock;
2112
2157
  }
2113
2158
  function setMemo(e, t) {
2114
2159
  const n = setSignal(e, t);
@@ -2136,7 +2181,7 @@ function staleValues(e, t = true) {
2136
2181
  stale = n;
2137
2182
  }
2138
2183
  }
2139
- // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.3/node_modules/@solidjs/signals/dist/prod/core/context.js
2184
+ // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.4/node_modules/@solidjs/signals/dist/prod/core/context.js
2140
2185
  function createContext(e, t) {
2141
2186
  return {
2142
2187
  id: Symbol(t),
@@ -2168,16 +2213,16 @@ function hasContext(e, t) {
2168
2213
  function isUndefined(e) {
2169
2214
  return typeof e === "undefined";
2170
2215
  }
2171
- // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.3/node_modules/@solidjs/signals/dist/prod/core/effect.js
2172
- function effect(t, e, E, R) {
2173
- const r = !!R?.user;
2174
- const f = createEffectNode(t, e, E, r ? EFFECT_USER : EFFECT_RENDER, notifyEffectStatus, R);
2175
- recompute(f, true);
2176
- !R?.defer && (f.Re === EFFECT_USER || R?.schedule ? f.C.enqueue(f.Re, runEffect.bind(null, f)) : runEffect(f));
2216
+ // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.4/node_modules/@solidjs/signals/dist/prod/core/effect.js
2217
+ function effect(t, e, E, f) {
2218
+ const r = !!f?.user;
2219
+ const R = createEffectNode(t, e, E, r ? EFFECT_USER : EFFECT_RENDER, f);
2220
+ recompute(R, true);
2221
+ !f?.defer && (R.Re === EFFECT_USER || f?.schedule ? R.C.enqueue(R.Re, runEffect.bind(null, R)) : runEffect(R));
2177
2222
  }
2178
2223
  function notifyEffectStatus(t, e) {
2179
2224
  const E = t !== undefined ? t : this.S;
2180
- const R = e !== undefined ? e : this.o?._;
2225
+ const f = e !== undefined ? e : this.o?._;
2181
2226
  if (E & STATUS_ERROR) {
2182
2227
  this.C.notify(this, STATUS_PENDING, 0);
2183
2228
  if (this.Re === EFFECT_USER) {
@@ -2188,11 +2233,11 @@ function notifyEffectStatus(t, e) {
2188
2233
  return;
2189
2234
  }
2190
2235
  if (!this.C.notify(this, STATUS_ERROR, STATUS_ERROR)) {
2191
- haltReactivity(unwrapStatusError(R));
2192
- throw R;
2236
+ haltReactivity(unwrapStatusError(f));
2237
+ throw f;
2193
2238
  }
2194
2239
  } else if (this.Re === EFFECT_RENDER) {
2195
- this.C.notify(this, STATUS_PENDING | STATUS_ERROR, E, R);
2240
+ this.C.notify(this, STATUS_PENDING | STATUS_ERROR, E, f);
2196
2241
  }
2197
2242
  }
2198
2243
  function runEffect(t) {
@@ -2200,7 +2245,7 @@ function runEffect(t) {
2200
2245
  return;
2201
2246
  if (t.S & STATUS_ERROR && t.Re === EFFECT_USER) {
2202
2247
  const e2 = unwrapStatusError(t.o?._);
2203
- t.Tt = t.be;
2248
+ t.dt = t.be;
2204
2249
  t.Xe = false;
2205
2250
  try {
2206
2251
  t.St ? t.St(e2, () => {
@@ -2220,7 +2265,7 @@ function runEffect(t) {
2220
2265
  t.At = undefined;
2221
2266
  try {
2222
2267
  e?.();
2223
- const E = t.dt(t.be, t.Tt);
2268
+ const E = t.Tt(t.be, t.dt);
2224
2269
  if (false)
2225
2270
  ;
2226
2271
  t.At = E;
@@ -2232,7 +2277,7 @@ function runEffect(t) {
2232
2277
  throw e2;
2233
2278
  }
2234
2279
  } finally {
2235
- t.Tt = t.be;
2280
+ t.dt = t.be;
2236
2281
  t.Xe = false;
2237
2282
  }
2238
2283
  }
@@ -2250,8 +2295,8 @@ function trackedEffect(t, e) {
2250
2295
  const e2 = E.At;
2251
2296
  E.At = undefined;
2252
2297
  e2?.();
2253
- const R = staleValues(t);
2254
- E.At = R;
2298
+ const f = staleValues(t);
2299
+ E.At = f;
2255
2300
  }, {
2256
2301
  ...e,
2257
2302
  lazy: true
@@ -2260,22 +2305,12 @@ function trackedEffect(t, e) {
2260
2305
  E.T = E.T & ~CONFIG_AUTO_DISPOSE | CONFIG_CHILDREN_FORBIDDEN;
2261
2306
  E.Xe = true;
2262
2307
  E.Re = EFFECT_TRACKED;
2263
- ext(E).A = (t2, e2) => {
2264
- const R = t2 !== undefined ? t2 : E.S;
2265
- if (R & STATUS_ERROR) {
2266
- E.C.notify(E, STATUS_PENDING, 0);
2267
- const t3 = e2 !== undefined ? e2 : E.o?._;
2268
- if (!E.C.notify(E, STATUS_ERROR, STATUS_ERROR)) {
2269
- haltReactivity(unwrapStatusError(t3));
2270
- throw t3;
2271
- }
2272
- }
2273
- };
2274
2308
  E.Ut = run;
2275
2309
  E.C.enqueue(EFFECT_USER, run);
2276
2310
  }
2311
+ setEffectStatusNotify(notifyEffectStatus);
2277
2312
 
2278
- // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.3/node_modules/@solidjs/signals/dist/prod/signals.js
2313
+ // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.4/node_modules/@solidjs/signals/dist/prod/signals.js
2279
2314
  function onCleanup(e) {
2280
2315
  return cleanup(e);
2281
2316
  }
@@ -2314,15 +2349,22 @@ function onSettled(e) {
2314
2349
  e();
2315
2350
  });
2316
2351
  }
2317
- // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.3/node_modules/@solidjs/signals/dist/prod/store/next/target.js
2352
+ // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.4/node_modules/@solidjs/signals/dist/prod/store/next/target.js
2318
2353
  var ownedRaw = new WeakSet;
2319
2354
  var storeNextLookup = new WeakMap;
2320
- function devAssertNeverUserMutation(o) {
2355
+ function devAssertNeverUserMutation(e) {
2321
2356
  return;
2322
2357
  }
2323
2358
  var optHooks = null;
2359
+ function markDescendants(e) {
2360
+ let t = e;
2361
+ while (t && !t.d) {
2362
+ t.d = true;
2363
+ t = t.u;
2364
+ }
2365
+ }
2324
2366
 
2325
- // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.3/node_modules/@solidjs/signals/dist/prod/store/store.js
2367
+ // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.4/node_modules/@solidjs/signals/dist/prod/store/store.js
2326
2368
  var $TRACK = Symbol(0);
2327
2369
  var $TARGET = Symbol(0);
2328
2370
  var $PROXY = Symbol(0);
@@ -2381,7 +2423,7 @@ function ownEnumerableKeys(e) {
2381
2423
  function inheritAffectsMarks(e, t, o) {
2382
2424
  for (const [r, s] of affectsScopes) {
2383
2425
  if (r.o?.t && s.scope.has(t) && (s.key === undefined || s.key === o)) {
2384
- GlobalQueue.h(e);
2426
+ GlobalQueue.M(e);
2385
2427
  s.inherited.push(e);
2386
2428
  }
2387
2429
  }
@@ -2397,7 +2439,7 @@ function affectsScopesLive() {
2397
2439
  function witnessAffectsMark(e, t) {
2398
2440
  const o = e[STORE_NODE]?.[$AFFECTS];
2399
2441
  if (o?.o?.t)
2400
- GlobalQueue.Bt(o);
2442
+ GlobalQueue.wt(o);
2401
2443
  if (affectsScopes.size) {
2402
2444
  let r = e[STORE_VALUE];
2403
2445
  for (const [e2, s] of affectsScopes) {
@@ -2405,7 +2447,7 @@ function witnessAffectsMark(e, t) {
2405
2447
  let t2 = r;
2406
2448
  for (;; ) {
2407
2449
  if (s.scope.has(t2)) {
2408
- GlobalQueue.Bt(e2);
2450
+ GlobalQueue.wt(e2);
2409
2451
  break;
2410
2452
  }
2411
2453
  const o2 = t2?.[$TARGET];
@@ -2421,7 +2463,11 @@ function witnessAffectsMark(e, t) {
2421
2463
  }
2422
2464
  }
2423
2465
 
2424
- // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.3/node_modules/@solidjs/signals/dist/prod/store/next/store.js
2466
+ // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.4/node_modules/@solidjs/signals/dist/prod/store/next/patch-hooks.js
2467
+ var patchHooks = null;
2468
+ var rowHooks = null;
2469
+
2470
+ // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.4/node_modules/@solidjs/signals/dist/prod/store/next/store.js
2425
2471
  function TargetShape() {
2426
2472
  this.v = undefined;
2427
2473
  this.ch = undefined;
@@ -2442,9 +2488,21 @@ function TargetShape() {
2442
2488
  this.s = undefined;
2443
2489
  this.ovl = undefined;
2444
2490
  this.del = undefined;
2445
- this.wk = undefined;
2491
+ this.pc = undefined;
2492
+ this.hv = undefined;
2493
+ this.ht = undefined;
2446
2494
  }
2447
2495
  TargetShape.prototype = Object.prototype;
2496
+ function pcOf(e) {
2497
+ return e.pc ?? (e.pc = {
2498
+ sp: null,
2499
+ p: null,
2500
+ ro: null,
2501
+ wk: null,
2502
+ qa: null,
2503
+ qe: null
2504
+ });
2505
+ }
2448
2506
  function createTarget(e, t, n, r = t?.fam ?? null) {
2449
2507
  const i = Array.isArray(e) ? [] : new TargetShape;
2450
2508
  i.v = e;
@@ -2454,6 +2512,7 @@ function createTarget(e, t, n, r = t?.fam ?? null) {
2454
2512
  i.h = null;
2455
2513
  i.k = null;
2456
2514
  i.dk = null;
2515
+ i.pc = null;
2457
2516
  i.u = t;
2458
2517
  i.pk = n;
2459
2518
  i.px = null;
@@ -2466,7 +2525,8 @@ function createTarget(e, t, n, r = t?.fam ?? null) {
2466
2525
  i.s = false;
2467
2526
  i.ovl = false;
2468
2527
  i.del = null;
2469
- i.wk = null;
2528
+ i.hv = null;
2529
+ i.ht = null;
2470
2530
  i.px = new Proxy(i, traps);
2471
2531
  i[$PROXY] = i.px;
2472
2532
  (r?.map ?? storeNextLookup).set(e, i);
@@ -2584,13 +2644,6 @@ function bumpDeep(e) {
2584
2644
  if (e.dk !== null)
2585
2645
  setSignal(e.dk, 1);
2586
2646
  }
2587
- function markDescendants(e) {
2588
- let t = e;
2589
- while (t && !t.d) {
2590
- t.d = true;
2591
- t = t.u;
2592
- }
2593
- }
2594
2647
  var foldOlds = new Map;
2595
2648
  var hookInstalled = false;
2596
2649
  function cloneRaw(e, t) {
@@ -2643,6 +2696,8 @@ function materializePB(e) {
2643
2696
  e.ovl = false;
2644
2697
  }
2645
2698
  function ensurePB(e) {
2699
+ if (activeTransition !== null)
2700
+ foldBatches.set(e, activeTransition);
2646
2701
  let t = e.pb;
2647
2702
  if (t === null) {
2648
2703
  if (e.fam === null && !Array.isArray(e.v) && (e.sc ? !e.a : scanAccessorsOnce(e))) {
@@ -2674,33 +2729,57 @@ function ensurePB(e) {
2674
2729
  }
2675
2730
  return t;
2676
2731
  }
2732
+ var PLAIN_HOLD = Symbol("plainHold");
2733
+ var latestPullActive = false;
2734
+ function heldMaskView(e) {
2735
+ const t = e.ht;
2736
+ if (t === null)
2737
+ return null;
2738
+ if (t !== PLAIN_HOLD && currentTransition(t)?.fn === true)
2739
+ return e.ht = e.hv = null;
2740
+ return e.hv;
2741
+ }
2677
2742
  function adoptPB(e, t, n = false) {
2678
2743
  if (!n) {
2679
2744
  queueFold(e);
2680
2745
  e.adopted = true;
2746
+ if (e.fam?.opt !== true) {
2747
+ if (getWriteOverride()) {
2748
+ e.ht = e.hv = null;
2749
+ } else if (activeTransition !== null || latestPullActive) {
2750
+ if (heldMaskView(e) === null)
2751
+ e.hv = e.v;
2752
+ e.ht = activeTransition ?? PLAIN_HOLD;
2753
+ }
2754
+ }
2681
2755
  }
2682
2756
  e.pb = null;
2683
2757
  e.ovl = false;
2684
2758
  e.del = null;
2685
- e.wk = null;
2686
2759
  e.sc = false;
2687
2760
  e.a = false;
2761
+ if (e.pc !== null)
2762
+ e.pc.wk = null;
2688
2763
  e.v = t;
2689
2764
  e.ch = t[$TARGET] !== undefined;
2690
2765
  (e.fam?.map ?? storeNextLookup).set(t, e);
2691
2766
  }
2767
+ var WK_ALL = new Set;
2768
+ var plainProto = (e) => {
2769
+ const t = Object.getPrototypeOf(e);
2770
+ return t === Object.prototype || t === Array.prototype || t === null;
2771
+ };
2692
2772
  function queueFold(e) {
2693
2773
  if (foldOlds.has(e))
2694
2774
  return;
2695
- if (foldOlds.size === 0) {
2696
- if (!hookInstalled) {
2697
- hookInstalled = true;
2698
- setStoreCommitHook(drainFolds);
2699
- }
2700
- schedule();
2775
+ if (!hookInstalled) {
2776
+ hookInstalled = true;
2777
+ setStoreCommitHook(drainFolds);
2701
2778
  }
2779
+ schedule();
2702
2780
  foldOlds.set(e, e.v);
2703
2781
  }
2782
+ var foldBatches = new WeakMap;
2704
2783
  function privatizeCommitted(e) {
2705
2784
  if (ownedRaw.has(e.v))
2706
2785
  return;
@@ -2721,53 +2800,77 @@ function drainFolds() {
2721
2800
  const e = [...foldOlds];
2722
2801
  foldOlds.clear();
2723
2802
  for (const [t, n] of e) {
2803
+ if (t.ht === PLAIN_HOLD)
2804
+ t.ht = t.hv = null;
2805
+ const e2 = t.pb === null;
2724
2806
  if (t.pb !== null) {
2725
- let e2 = false;
2726
- const r = t.pb;
2727
- const i = t.n;
2728
- if (i !== null) {
2729
- const n2 = t.wk;
2730
- const o = n2 === null || n2 === WK_ALL || t.a === true || !plainProto(t.ovl ? t.v : r) ? Reflect.ownKeys(i) : n2;
2731
- for (const t2 of o) {
2732
- const n3 = i[t2];
2733
- if (n3 !== undefined && n3.Pe !== NOT_PENDING) {
2734
- e2 = true;
2807
+ const e3 = foldBatches.get(t);
2808
+ if (e3 !== undefined) {
2809
+ if (currentTransition(e3).fn === false) {
2810
+ foldOlds.set(t, n);
2811
+ continue;
2812
+ }
2813
+ foldBatches.delete(t);
2814
+ }
2815
+ let r = false;
2816
+ const i = t.pb;
2817
+ const o = t.n;
2818
+ if (o !== null) {
2819
+ const e4 = t.pc !== null ? t.pc.wk : null;
2820
+ const n2 = e4 === null || e4 === WK_ALL || t.a === true || !plainProto(t.ovl ? t.v : i) ? Reflect.ownKeys(o) : e4;
2821
+ for (const e5 of n2) {
2822
+ const t2 = o[e5];
2823
+ if (t2 !== undefined && t2.Pe !== NOT_PENDING) {
2824
+ r = true;
2735
2825
  break;
2736
2826
  }
2737
2827
  }
2738
2828
  }
2739
- if (e2) {
2829
+ if (r) {
2740
2830
  foldOlds.set(t, n);
2741
2831
  continue;
2742
2832
  }
2743
2833
  if (t.ovl) {
2744
2834
  privatizeCommitted(t);
2745
- const e3 = t.v;
2746
- for (const t2 of Reflect.ownKeys(r)) {
2747
- const n2 = Object.getOwnPropertyDescriptor(r, t2);
2835
+ const e4 = t.v;
2836
+ for (const t2 of Reflect.ownKeys(i)) {
2837
+ const n2 = Object.getOwnPropertyDescriptor(i, t2);
2748
2838
  if (n2.get || n2.set || !n2.enumerable || !n2.writable || !n2.configurable)
2749
- Object.defineProperty(e3, t2, n2);
2839
+ Object.defineProperty(e4, t2, n2);
2750
2840
  else
2751
- e3[t2] = n2.value;
2841
+ e4[t2] = n2.value;
2752
2842
  }
2753
2843
  if (t.del !== null) {
2754
2844
  for (const n2 of t.del)
2755
- delete e3[n2];
2845
+ delete e4[n2];
2756
2846
  t.del = null;
2757
2847
  }
2758
- (t.fam?.map ?? storeNextLookup).delete(r);
2848
+ (t.fam?.map ?? storeNextLookup).delete(i);
2759
2849
  t.pb = null;
2760
2850
  t.ovl = false;
2761
- t.wk = null;
2851
+ if (t.pc !== null)
2852
+ t.pc.wk = null;
2762
2853
  } else {
2763
- t.v = r;
2854
+ if (t.pc !== null && t.pc.ro !== null && !t.adopted && t.fam?.opt !== true && Array.isArray(i) && Array.isArray(t.v))
2855
+ rowHooks.emitSetterRowOps(t, t.v, i);
2856
+ t.v = i;
2764
2857
  t.ch = false;
2765
2858
  t.pb = null;
2766
- t.wk = null;
2859
+ if (t.pc !== null)
2860
+ t.pc.wk = null;
2767
2861
  }
2768
2862
  }
2769
- if (t.v === n)
2863
+ if (t.v === n) {
2864
+ t.adopted = false;
2770
2865
  continue;
2866
+ }
2867
+ if (t.pc !== null && (t.fam !== null || t.adopted)) {
2868
+ if (t.pc.ro !== null && t.fam?.opt !== true && (t.fam !== null ? e2 && !t.adopted : t.adopted) && Array.isArray(t.v) && Array.isArray(n))
2869
+ rowHooks.emitSetterRowOps(t, n, t.v);
2870
+ if (t.pc.p !== null) {
2871
+ patchHooks.emitPatchLocal(t, t.v, n);
2872
+ }
2873
+ }
2771
2874
  if (t.u && t.u.v[t.pk] === n) {
2772
2875
  privatizeCommitted(t.u);
2773
2876
  devAssertNeverUserMutation(t.u.v);
@@ -2779,11 +2882,6 @@ function drainFolds() {
2779
2882
  }
2780
2883
  }
2781
2884
  }
2782
- var WK_ALL = new Set;
2783
- var plainProto = (e) => {
2784
- const t = Object.getPrototypeOf(e);
2785
- return t === Object.prototype || t === Array.prototype || t === null;
2786
- };
2787
2885
  function notifyWrites(e) {
2788
2886
  let t = e.pb;
2789
2887
  if (t === null)
@@ -2805,7 +2903,7 @@ function notifyWrites(e) {
2805
2903
  }
2806
2904
  const n = e.v;
2807
2905
  const r = e.n;
2808
- const i = e.wk;
2906
+ const i = e.pc !== null ? e.pc.wk : null;
2809
2907
  const o = i === WK_ALL || e.a === true || !plainProto(e.ovl ? e.v : t) ? null : i;
2810
2908
  if (r !== null) {
2811
2909
  const i2 = o ?? Reflect.ownKeys(r);
@@ -2832,14 +2930,18 @@ function notifyWrites(e) {
2832
2930
  }
2833
2931
  const f = e.h;
2834
2932
  if (f !== null) {
2835
- for (const n2 of Reflect.ownKeys(f))
2836
- setSignal(f[n2], n2 in t && !(e.del !== null && e.del.has(n2)));
2933
+ const n2 = o ?? Reflect.ownKeys(f);
2934
+ for (const r2 of n2) {
2935
+ const n3 = f[r2];
2936
+ if (n3 !== undefined)
2937
+ setSignal(n3, r2 in t && !(e.del !== null && e.del.has(r2)));
2938
+ }
2837
2939
  }
2838
2940
  if (e.dk !== null) {
2839
2941
  if (e.del !== null && e.del.size !== 0)
2840
2942
  bumpDeep(e);
2841
2943
  else
2842
- for (const r2 of Reflect.ownKeys(t)) {
2944
+ for (const r2 of o ?? Reflect.ownKeys(t)) {
2843
2945
  const i2 = t[r2];
2844
2946
  const o2 = n[r2];
2845
2947
  if (i2 !== null && typeof i2 === "object" ? !targetsEqual(o2, i2) : !isEqual(o2, i2)) {
@@ -2866,10 +2968,13 @@ function notifyWrites(e) {
2866
2968
  if (r2)
2867
2969
  setSignal(e.k, (e2) => e2 + 1);
2868
2970
  }
2971
+ if (e.fam === null && patchHooks !== null && patchHooks.hasPatches())
2972
+ patchHooks.emitPatch(e, t, n);
2869
2973
  if (e.fam !== null && e.pb !== null && getWriteOverride()) {
2974
+ if (e.ht !== null)
2975
+ e.ht = e.hv = null;
2870
2976
  const n2 = e.v;
2871
2977
  e.pb = null;
2872
- e.wk = null;
2873
2978
  e.v = t;
2874
2979
  e.ch = false;
2875
2980
  if (e.u && e.u.v[e.pk] === n2) {
@@ -2917,9 +3022,9 @@ function notifyKeyDiff(e, t, n, r, i = true) {
2917
3022
  return;
2918
3023
  }
2919
3024
  const f = i2?.value;
2920
- const u = o?.value;
2921
- if (!isEqual(f, u) && !targetsEqual(f, u))
2922
- setSignal(e, typeof u === "function" ? () => u : u);
3025
+ const l = o?.value;
3026
+ if (!isEqual(f, l) && !targetsEqual(f, l))
3027
+ setSignal(e, typeof l === "function" ? () => l : l);
2923
3028
  } else {
2924
3029
  const i2 = n[t];
2925
3030
  const o = r[t];
@@ -3014,19 +3119,31 @@ function inOwnerContext() {
3014
3119
  const t = e.Ct ? e.Ot : e;
3015
3120
  return t != null && !(t.T & CONFIG_CHILDREN_FORBIDDEN);
3016
3121
  }
3122
+ function inForbiddenScope() {
3123
+ const e = getOwner();
3124
+ if (e === null)
3125
+ return false;
3126
+ const t = e.Ct ? e.Ot : e;
3127
+ return t != null && !!(t.T & CONFIG_CHILDREN_FORBIDDEN);
3128
+ }
3017
3129
  function foldHeld(e) {
3018
3130
  const t = e.n;
3019
3131
  if (t === null)
3020
3132
  return false;
3021
3133
  for (const e2 of Reflect.ownKeys(t)) {
3022
3134
  const n = t[e2];
3023
- if (n.Pe !== NOT_PENDING && n._e != null && n._e.an !== true)
3135
+ if (n.Pe !== NOT_PENDING && n._e != null && n._e.fn !== true)
3024
3136
  return true;
3025
3137
  }
3026
3138
  return false;
3027
3139
  }
3028
3140
  function readSource(e) {
3029
- if (e.pb !== null && (inDraft(e) || getWriteOverride() || inOwnerContext() || e.fam !== null && !foldHeld(e)))
3141
+ if (e.ht !== null && !latestReadActive && !inDraft(e) && !getWriteOverride() && !inOwnerContext()) {
3142
+ const t = heldMaskView(e);
3143
+ if (t !== null)
3144
+ return t;
3145
+ }
3146
+ if (e.pb !== null && (inDraft(e) || getWriteOverride() || inOwnerContext() || e.fam !== null && !foldHeld(e) && !inForbiddenScope()))
3030
3147
  return e.pb;
3031
3148
  return e.v;
3032
3149
  }
@@ -3040,7 +3157,7 @@ function hasActiveOverride2(e) {
3040
3157
  return e.o?.De !== undefined && e.o?.De !== NOT_PENDING;
3041
3158
  }
3042
3159
  function nodeValue(e, t) {
3043
- const n = hasActiveOverride2(e) ? unwrapOverride(e.o?.De) : e.Pe !== NOT_PENDING && inOwnerContext() ? e.Pe : t;
3160
+ const n = hasActiveOverride2(e) ? unwrapOverride(e.o?.De) : e.Pe !== NOT_PENDING && (latestReadActive || inOwnerContext()) ? e.Pe : t;
3044
3161
  return n === FORCE ? t : n;
3045
3162
  }
3046
3163
  function serveDataKey(e, t, n, r, i) {
@@ -3102,6 +3219,21 @@ function firewallGate(e) {
3102
3219
  if (t != null && t.S & (STATUS_UNINITIALIZED | STATUS_ERROR))
3103
3220
  read(t);
3104
3221
  }
3222
+ function pullProjectionForLatest(e) {
3223
+ const t = e.fam.node;
3224
+ if (t == null)
3225
+ return;
3226
+ const n = latestReadActive;
3227
+ setLatestReadActive(false);
3228
+ const r = latestPullActive;
3229
+ latestPullActive = true;
3230
+ try {
3231
+ prepareComputed(t, true);
3232
+ } finally {
3233
+ latestPullActive = r;
3234
+ setLatestReadActive(n);
3235
+ }
3236
+ }
3105
3237
  var traps = {
3106
3238
  get(e, t, n) {
3107
3239
  if (typeof t !== "string") {
@@ -3129,6 +3261,8 @@ var traps = {
3129
3261
  witnessAffectsMark(e, t);
3130
3262
  if (e.fam !== null && getObserver() === null && !inDraft(e))
3131
3263
  firewallGate(e);
3264
+ if (e.fam !== null && latestReadActive && !inDraft(e) && !getWriteOverride())
3265
+ pullProjectionForLatest(e);
3132
3266
  const r = readSource(e);
3133
3267
  if (e.del !== null && r === e.pb && e.del.has(t)) {
3134
3268
  if (!inDraft(e) && getObserver() !== null)
@@ -3306,16 +3440,17 @@ var traps = {
3306
3440
  const o = e.s ? n : unwrapValue(n);
3307
3441
  const f = ensurePB(e);
3308
3442
  pendingNotify.add(e);
3443
+ const l = pcOf(e);
3309
3444
  if (Array.isArray(f)) {
3310
3445
  if (t === "length")
3311
- e.wk = WK_ALL;
3312
- else if (e.wk !== WK_ALL) {
3313
- const n2 = e.wk ??= new Set;
3314
- n2.add(t);
3315
- n2.add("length");
3316
- }
3317
- } else if (e.wk !== WK_ALL)
3318
- (e.wk ??= new Set).add(t);
3446
+ l.wk = WK_ALL;
3447
+ else if (l.wk !== WK_ALL) {
3448
+ const e2 = l.wk ??= new Set;
3449
+ e2.add(t);
3450
+ e2.add("length");
3451
+ }
3452
+ } else if (l.wk !== WK_ALL)
3453
+ (l.wk ??= new Set).add(t);
3319
3454
  if (UNSAFE_KEYS.has(t)) {
3320
3455
  Object.defineProperty(f, t, {
3321
3456
  value: o,
@@ -3351,8 +3486,11 @@ var traps = {
3351
3486
  return true;
3352
3487
  if (t === "__proto__")
3353
3488
  return true;
3354
- if (n.get || n.set)
3489
+ if (n.get || n.set) {
3355
3490
  e.a = true;
3491
+ if (e.pc !== null && e.pc.p !== null)
3492
+ patchHooks.demoteToEffects(e);
3493
+ }
3356
3494
  if ("value" in n)
3357
3495
  n = {
3358
3496
  ...n,
@@ -3360,8 +3498,9 @@ var traps = {
3360
3498
  };
3361
3499
  const o = ensurePB(e);
3362
3500
  pendingNotify.add(e);
3363
- if (e.wk !== WK_ALL)
3364
- (e.wk ??= new Set).add(t);
3501
+ const f = pcOf(e);
3502
+ if (f.wk !== WK_ALL)
3503
+ (f.wk ??= new Set).add(t);
3365
3504
  Object.defineProperty(o, t, n);
3366
3505
  if (e.del !== null)
3367
3506
  e.del.delete(t);
@@ -3376,8 +3515,9 @@ var traps = {
3376
3515
  return true;
3377
3516
  const i = ensurePB(e);
3378
3517
  pendingNotify.add(e);
3379
- if (e.wk !== WK_ALL)
3380
- (e.wk ??= new Set).add(t);
3518
+ const o = pcOf(e);
3519
+ if (o.wk !== WK_ALL)
3520
+ (o.wk ??= new Set).add(t);
3381
3521
  delete i[t];
3382
3522
  if (e.ovl && hasOwn.call(e.v, t))
3383
3523
  (e.del ??= new Set).add(t);
@@ -3424,27 +3564,27 @@ function createStoreNext(e, t = false) {
3424
3564
  return [n, setter];
3425
3565
  }
3426
3566
 
3427
- // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.3/node_modules/@solidjs/signals/dist/prod/map.js
3567
+ // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.4/node_modules/@solidjs/signals/dist/prod/map.js
3428
3568
  function mapArray(t, s, i) {
3429
3569
  const e = typeof i?.keyed === "function" ? i.keyed : undefined;
3430
3570
  const r = s.length > 1;
3431
3571
  const n = s;
3432
3572
  const h = {
3433
- jt: createOwner(),
3434
- Wt: 0,
3435
- xt: t,
3436
- Kt: [],
3437
- $t: n,
3438
- qt: [],
3573
+ Wt: createOwner(),
3574
+ xt: 0,
3575
+ Kt: t,
3576
+ $t: [],
3577
+ qt: n,
3439
3578
  zt: [],
3440
- Jt: e,
3441
- Xt: e || i?.keyed === false ? [] : undefined,
3442
- Yt: r && i?.keyed !== false ? [] : undefined,
3443
- Zt: i?.keyed === false,
3444
- ts: i?.fallback
3579
+ Jt: [],
3580
+ Xt: e,
3581
+ Yt: e || i?.keyed === false ? [] : undefined,
3582
+ Zt: r && i?.keyed !== false ? [] : undefined,
3583
+ ts: i?.keyed === false,
3584
+ ss: i?.fallback
3445
3585
  };
3446
3586
  const o = computed(updateKeyedMap.bind(h));
3447
- h.jt.Ot = o;
3587
+ h.Wt.Ot = o;
3448
3588
  o.T &= ~CONFIG_AUTO_DISPOSE;
3449
3589
  return accessor(o);
3450
3590
  }
@@ -3452,43 +3592,43 @@ var pureOptions = {
3452
3592
  ownedWrite: true
3453
3593
  };
3454
3594
  function updateKeyedMap() {
3455
- const t = this.xt() || [], s = t.length;
3595
+ const t = this.Kt() || [], s = t.length;
3456
3596
  t[$TRACK];
3457
- runWithOwner(this.jt, () => {
3458
- let i, e, r, n, h = this.Xt ? this.Zt ? () => {
3597
+ runWithOwner(this.Wt, () => {
3598
+ let i, e, r, n, h = this.Yt ? this.ts ? () => {
3459
3599
  r[e] = signal(t[e], pureOptions);
3460
- return this.$t(accessor(r[e]), e);
3600
+ return this.qt(accessor(r[e]), e);
3461
3601
  } : () => {
3462
3602
  r[e] = signal(t[e], pureOptions);
3463
3603
  n && (n[e] = signal(e, pureOptions));
3464
- return this.$t(accessor(r[e]), n ? accessor(n[e]) : undefined);
3465
- } : this.Yt ? () => {
3604
+ return this.qt(accessor(r[e]), n ? accessor(n[e]) : undefined);
3605
+ } : this.Zt ? () => {
3466
3606
  const s2 = t[e];
3467
3607
  n[e] = signal(e, pureOptions);
3468
- return this.$t(s2, accessor(n[e]));
3608
+ return this.qt(s2, accessor(n[e]));
3469
3609
  } : () => {
3470
3610
  const s2 = t[e];
3471
- return this.$t(s2);
3611
+ return this.qt(s2);
3472
3612
  };
3473
3613
  if (s === 0) {
3474
- if (this.Wt !== 0) {
3475
- this.jt.dispose(false);
3614
+ if (this.xt !== 0) {
3615
+ this.Wt.dispose(false);
3616
+ this.Jt = [];
3617
+ this.$t = [];
3476
3618
  this.zt = [];
3477
- this.Kt = [];
3478
- this.qt = [];
3479
- this.Wt = 0;
3480
- this.Xt && (this.Xt = []);
3619
+ this.xt = 0;
3481
3620
  this.Yt && (this.Yt = []);
3621
+ this.Zt && (this.Zt = []);
3482
3622
  }
3483
- if (this.ts && !this.qt[0]) {
3484
- this.zt[0]?.dispose();
3485
- this.qt[0] = runWithOwner(this.zt[0] = createOwner(), this.ts);
3623
+ if (this.ss && !this.zt[0]) {
3624
+ this.Jt[0]?.dispose();
3625
+ this.zt[0] = runWithOwner(this.Jt[0] = createOwner(), this.ss);
3486
3626
  }
3487
- } else if (this.Wt === 0) {
3627
+ } else if (this.xt === 0) {
3488
3628
  const o = new Array(s);
3489
3629
  const c = new Array(s);
3490
- r = this.Xt && new Array(s);
3491
- n = this.Yt && new Array(s);
3630
+ r = this.Yt && new Array(s);
3631
+ n = this.Zt && new Array(s);
3492
3632
  try {
3493
3633
  for (e = 0;e < s; e++)
3494
3634
  o[e] = runWithOwner(c[e] = createOwner(), h);
@@ -3497,53 +3637,53 @@ function updateKeyedMap() {
3497
3637
  c[i]?.dispose();
3498
3638
  throw t2;
3499
3639
  }
3500
- if (this.zt[0])
3501
- this.zt[0].dispose();
3502
- this.qt = o;
3503
- this.zt = c;
3504
- r && (this.Xt = r);
3505
- n && (this.Yt = n);
3506
- this.Kt = t.slice(0);
3507
- this.Wt = s;
3640
+ if (this.Jt[0])
3641
+ this.Jt[0].dispose();
3642
+ this.zt = o;
3643
+ this.Jt = c;
3644
+ r && (this.Yt = r);
3645
+ n && (this.Zt = n);
3646
+ this.$t = t.slice(0);
3647
+ this.xt = s;
3508
3648
  } else {
3509
3649
  let o, c, a, f, u, p, w, l, d;
3510
- for (o = 0, c = Math.min(this.Wt, s);o < c && (this.Kt[o] === t[o] || this.Xt && compare(this.Jt, this.Kt[o], t[o])); o++) {
3511
- if (this.Xt)
3512
- setSignal(this.Xt[o], t[o]);
3650
+ for (o = 0, c = Math.min(this.xt, s);o < c && (this.$t[o] === t[o] || this.Yt && compare(this.Xt, this.$t[o], t[o])); o++) {
3651
+ if (this.Yt)
3652
+ setSignal(this.Yt[o], t[o]);
3513
3653
  }
3514
- for (c = this.Wt - 1, a = s - 1;c >= o && a >= o && (this.Kt[c] === t[a] || this.Xt && compare(this.Jt, this.Kt[c], t[a])); c--, a--)
3654
+ for (c = this.xt - 1, a = s - 1;c >= o && a >= o && (this.$t[c] === t[a] || this.Yt && compare(this.Xt, this.$t[c], t[a])); c--, a--)
3515
3655
  ;
3516
- if (o === s && this.Wt === s) {
3517
- this.Kt = t.slice(0);
3656
+ if (o === s && this.xt === s) {
3657
+ this.$t = t.slice(0);
3518
3658
  return;
3519
3659
  }
3520
- const O = s - this.Wt;
3660
+ const O = s - this.xt;
3521
3661
  const m = new Array(s);
3522
3662
  const _ = new Array(s);
3523
- r = this.Xt ? new Array(s) : undefined;
3524
- n = this.Yt ? new Array(s) : undefined;
3663
+ r = this.Yt ? new Array(s) : undefined;
3664
+ n = this.Zt ? new Array(s) : undefined;
3525
3665
  p = new Map;
3526
3666
  w = new Array(a + 1);
3527
3667
  for (e = a;e >= o; e--) {
3528
3668
  f = t[e];
3529
- u = this.Jt ? this.Jt(f) : f;
3669
+ u = this.Xt ? this.Xt(f) : f;
3530
3670
  i = p.get(u);
3531
3671
  w[e] = i === undefined ? -1 : i;
3532
3672
  p.set(u, e);
3533
3673
  }
3534
3674
  for (i = o;i <= c; i++) {
3535
- f = this.Kt[i];
3536
- u = this.Jt ? this.Jt(f) : f;
3675
+ f = this.$t[i];
3676
+ u = this.Xt ? this.Xt(f) : f;
3537
3677
  e = p.get(u);
3538
3678
  if (e !== undefined && e !== -1) {
3539
- m[e] = this.qt[i];
3540
- _[e] = this.zt[i];
3541
- r && (r[e] = this.Xt[i]);
3542
- n && (n[e] = this.Yt[i]);
3679
+ m[e] = this.zt[i];
3680
+ _[e] = this.Jt[i];
3681
+ r && (r[e] = this.Yt[i]);
3682
+ n && (n[e] = this.Zt[i]);
3543
3683
  e = w[e];
3544
3684
  p.set(u, e);
3545
3685
  } else
3546
- (l ??= []).push(this.zt[i]);
3686
+ (l ??= []).push(this.Jt[i]);
3547
3687
  }
3548
3688
  try {
3549
3689
  for (e = o;e <= a; e++) {
@@ -3559,10 +3699,10 @@ function updateKeyedMap() {
3559
3699
  throw t2;
3560
3700
  }
3561
3701
  for (i = 0;i < o; i++) {
3562
- m[i] = this.qt[i];
3563
- _[i] = this.zt[i];
3564
- r && (r[i] = this.Xt[i]);
3565
- n && (n[i] = this.Yt[i]);
3702
+ m[i] = this.zt[i];
3703
+ _[i] = this.Jt[i];
3704
+ r && (r[i] = this.Yt[i]);
3705
+ n && (n[i] = this.Zt[i]);
3566
3706
  }
3567
3707
  for (e = o;e <= a; e++) {
3568
3708
  if (r)
@@ -3571,261 +3711,377 @@ function updateKeyedMap() {
3571
3711
  setSignal(n[e], e);
3572
3712
  }
3573
3713
  for (e = a + 1;e < s; e++) {
3574
- m[e] = this.qt[e - O];
3575
- _[e] = this.zt[e - O];
3714
+ m[e] = this.zt[e - O];
3715
+ _[e] = this.Jt[e - O];
3576
3716
  if (r) {
3577
- r[e] = this.Xt[e - O];
3717
+ r[e] = this.Yt[e - O];
3578
3718
  setSignal(r[e], t[e]);
3579
3719
  }
3580
3720
  if (n) {
3581
- n[e] = this.Yt[e - O];
3721
+ n[e] = this.Zt[e - O];
3582
3722
  if (O !== 0)
3583
3723
  setSignal(n[e], e);
3584
3724
  }
3585
3725
  }
3586
- this.qt = m;
3587
- this.zt = _;
3588
- r && (this.Xt = r);
3589
- n && (this.Yt = n);
3590
- this.Wt = s;
3591
- this.Kt = t.slice(0);
3726
+ this.zt = m;
3727
+ this.Jt = _;
3728
+ r && (this.Yt = r);
3729
+ n && (this.Zt = n);
3730
+ this.xt = s;
3731
+ this.$t = t.slice(0);
3592
3732
  if (l)
3593
3733
  for (i = 0;i < l.length; i++)
3594
3734
  l[i].dispose();
3595
3735
  }
3596
3736
  });
3597
- return this.qt;
3737
+ return this.zt;
3598
3738
  }
3599
3739
  function compare(t, s, i) {
3600
3740
  return t ? t(s) === t(i) : true;
3601
3741
  }
3602
- // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.3/node_modules/@solidjs/signals/dist/prod/store/next/reconcile.js
3603
- function reconcileNextState(e, t, n, o = false) {
3604
- if (t == null)
3742
+ // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.4/node_modules/@solidjs/signals/dist/prod/store/next/reconcile.js
3743
+ function reconcileNextState(e, n, t, o = false) {
3744
+ if (n == null)
3605
3745
  throw new Error("");
3606
- const l = t?.[$TARGET];
3607
- if (l === undefined || l.px !== t)
3746
+ const l = n?.[$TARGET];
3747
+ if (l === undefined || l.px !== n)
3608
3748
  throw new Error("");
3609
3749
  if (l.ovl)
3610
3750
  materializePB(l);
3611
- let f = n === null ? null : typeof n === "string" ? (e2) => e2?.[n] : n;
3612
- if (o && e !== t && e?.[$TARGET] !== undefined) {
3613
- const t2 = l.pb ?? l.v;
3614
- if (t2 === e)
3751
+ let i = t === null ? null : typeof t === "string" ? (e2) => e2?.[t] : t;
3752
+ if (o && e !== n && e?.[$TARGET] !== undefined) {
3753
+ const n2 = l.pb ?? l.v;
3754
+ if (n2 === e)
3615
3755
  return;
3616
3756
  adoptPB(l, e);
3617
3757
  return;
3618
3758
  }
3619
- const i = unwrapValue(e);
3620
- if (f) {
3759
+ const u = unwrapValue(e);
3760
+ if (i) {
3621
3761
  const e2 = l.pb ?? l.v;
3622
- const t2 = f(e2);
3623
- if (t2 !== undefined && f(i) !== t2) {
3762
+ const n2 = i(e2);
3763
+ if (n2 !== undefined && !sameKey(i(u), n2)) {
3624
3764
  if (!o)
3625
3765
  throw new Error("");
3626
3766
  (l.fam?.map ?? storeNextLookup).delete(l.pb ?? l.v);
3627
- adoptPB(l, i);
3767
+ adoptPB(l, u);
3628
3768
  return;
3629
3769
  }
3630
3770
  }
3631
3771
  if (l.fam?.opt === true && !projectionWriteActive && !getWriteOverride()) {
3632
- optHooks.applyTentative(l, i, f);
3772
+ optHooks.applyTentative(l, u, i);
3633
3773
  return;
3634
3774
  }
3635
- applyAdopt(l, i, f, o);
3775
+ applyAdopt(l, u, i, o);
3636
3776
  }
3637
- function applyAdopt(e, t, n, o = false) {
3777
+ function applyAdopt(e, n, t, o = false) {
3638
3778
  const l = e.pb ?? e.v;
3639
- if (t === l && !ownedRaw.has(l))
3779
+ if (n === l && !ownedRaw.has(l))
3640
3780
  return;
3641
- const f = e.fam;
3642
- const i = f?.opt === true ? optHooks.optimisticView(e, l) : l;
3643
- const r = Array.isArray(t);
3644
- const u = f === null;
3645
- const s = e.s === true;
3646
- const a = e.v;
3647
- adoptPB(e, t, u);
3648
- if (s)
3649
- markRawIngest(t);
3650
- if (Array.isArray(i) !== r) {
3651
- if (u)
3652
- notifyFold(e, a, t);
3781
+ const i = e.fam;
3782
+ const u = i?.opt === true ? optHooks.optimisticView(e, l) : l;
3783
+ const f = Array.isArray(n);
3784
+ const s = i === null;
3785
+ const r = e.s === true;
3786
+ const c = e.v;
3787
+ adoptPB(e, n, s);
3788
+ if (patchHooks !== null && s && e.pc !== null && e.pc.p !== null) {
3789
+ {
3790
+ patchHooks.emitPatchLocal(e, n, c);
3791
+ }
3792
+ }
3793
+ if (r)
3794
+ markRawIngest(n);
3795
+ if (Array.isArray(u) !== f) {
3796
+ if (s)
3797
+ notifyFold(e, c, n);
3653
3798
  return;
3654
3799
  }
3655
- if (r) {
3656
- const l2 = i;
3657
- const r2 = t;
3658
- const c = u ? e.n : null;
3800
+ if (f) {
3801
+ const l2 = u;
3802
+ const f2 = n;
3803
+ const a = s ? e.n : null;
3659
3804
  let p = 0;
3660
- if (n && !s) {
3661
- const i2 = l2.length;
3662
- const u2 = r2.length;
3663
- let s2 = false;
3805
+ if (t && !r) {
3806
+ const u2 = l2.length;
3807
+ const s2 = f2.length;
3808
+ let r2 = false;
3664
3809
  let d = 0;
3665
- for (const y2 = Math.min(i2, u2);d < y2; d++) {
3666
- const i3 = r2[d];
3667
- const u3 = l2[d];
3668
- if (u3 !== i3 && !(u3 !== null && typeof u3 === "object" && i3 !== null && typeof i3 === "object" && n(u3) === n(i3)))
3810
+ for (const y2 = Math.min(u2, s2);d < y2; d++) {
3811
+ const u3 = f2[d];
3812
+ const s3 = l2[d];
3813
+ if (s3 !== u3 && !(s3 !== null && typeof s3 === "object" && u3 !== null && typeof u3 === "object" && sameKey(t(s3), t(u3))))
3669
3814
  break;
3670
- if ((u3 !== i3 || i3 !== null && typeof i3 === "object" && ownedRaw.has(i3)) && i3 !== null && typeof i3 === "object")
3671
- descend(unwrapValue(u3), i3, n, f, o);
3672
- if (e.dk !== null && !s2 && !(i3 !== null && typeof i3 === "object" ? targetsEqual(u3, i3) : isEqual(u3, i3))) {
3815
+ if ((s3 !== u3 || u3 !== null && typeof u3 === "object" && ownedRaw.has(u3)) && u3 !== null && typeof u3 === "object")
3816
+ descend(unwrapValue(s3), u3, t, i, o);
3817
+ if (e.dk !== null && !r2 && !(u3 !== null && typeof u3 === "object" ? targetsEqual(s3, u3) : isEqual(s3, u3))) {
3673
3818
  bumpDeep(e);
3674
- s2 = true;
3819
+ r2 = true;
3675
3820
  }
3676
- if (c !== null) {
3677
- const e2 = c[d];
3821
+ if (a !== null) {
3822
+ const e2 = a[d];
3678
3823
  if (e2 !== undefined) {
3679
3824
  p++;
3680
- notifyKeyValue(e2, d, a[d], i3, a, t);
3825
+ notifyKeyValue(e2, d, c[d], u3, c, n);
3681
3826
  }
3682
3827
  }
3683
3828
  }
3684
- if (e.dk !== null && !s2 && d < r2.length)
3829
+ if (e.dk !== null && !r2 && d < f2.length)
3685
3830
  bumpDeep(e);
3686
- let y = null;
3687
- for (;d < r2.length; d++) {
3688
- const e2 = r2[d];
3831
+ const y = d;
3832
+ let w = null;
3833
+ for (;d < f2.length; d++) {
3834
+ const e2 = f2[d];
3689
3835
  if (e2 !== null && typeof e2 === "object") {
3690
- const t2 = n(e2);
3691
- let i3;
3692
- if (t2 !== undefined) {
3693
- if (y === null) {
3694
- y = new Map;
3695
- for (let e3 = 0;e3 < l2.length; e3++) {
3696
- const t3 = unwrapValue(l2[e3]);
3697
- if (t3 !== null && typeof t3 === "object") {
3698
- const e4 = n(t3);
3699
- if (e4 !== undefined && !y.has(e4))
3700
- y.set(e4, t3);
3836
+ const n2 = t(e2);
3837
+ let u3;
3838
+ if (n2 !== undefined) {
3839
+ if (w === null) {
3840
+ w = new Map;
3841
+ for (let e4 = y;e4 < l2.length; e4++) {
3842
+ const n3 = unwrapValue(l2[e4]);
3843
+ if (n3 !== null && typeof n3 === "object") {
3844
+ const o2 = t(n3);
3845
+ if (o2 === undefined)
3846
+ continue;
3847
+ const l3 = w.get(o2);
3848
+ if (l3 === undefined)
3849
+ w.set(o2, e4);
3850
+ else if (Array.isArray(l3))
3851
+ l3.push(e4);
3852
+ else
3853
+ w.set(o2, [l3, e4]);
3701
3854
  }
3702
3855
  }
3703
3856
  }
3704
- i3 = y.get(t2);
3857
+ const e3 = w.get(n2);
3858
+ if (e3 === undefined)
3859
+ u3 = undefined;
3860
+ else if (Array.isArray(e3)) {
3861
+ u3 = unwrapValue(l2[e3.shift()]);
3862
+ if (e3.length === 1)
3863
+ w.set(n2, e3[0]);
3864
+ } else {
3865
+ u3 = unwrapValue(l2[e3]);
3866
+ w.delete(n2);
3867
+ }
3705
3868
  } else {
3706
- i3 = unwrapValue(l2[d]);
3869
+ u3 = unwrapValue(l2[d]);
3707
3870
  }
3708
- descend(i3, e2, n, f, o);
3871
+ descend(u3, e2, t, i, o);
3709
3872
  }
3710
- if (c !== null) {
3711
- const e3 = c[d];
3873
+ if (a !== null) {
3874
+ const e3 = a[d];
3712
3875
  if (e3 !== undefined) {
3713
3876
  p++;
3714
- notifyKeyDiff(e3, d, a, t, false);
3877
+ notifyKeyDiff(e3, d, c, n, false);
3715
3878
  }
3716
3879
  }
3717
3880
  }
3881
+ if (rowHooks !== null && e.pc !== null && e.pc.ro !== null && (y < s2 || u2 !== s2))
3882
+ buildAndEmitRowOps(e, l2, f2, y, t);
3718
3883
  } else {
3719
- const i2 = Math.min(l2.length, r2.length);
3720
- const u2 = r2.length;
3884
+ const u2 = Math.min(l2.length, f2.length);
3885
+ const s2 = f2.length;
3721
3886
  let d = false;
3722
- for (let y = 0;y < u2; y++) {
3723
- const u3 = r2[y];
3724
- if (!s && y < i2 && u3 !== null && typeof u3 === "object")
3725
- descend(unwrapValue(l2[y]), u3, n, f, o);
3726
- if (e.dk !== null && !d && !(u3 !== null && typeof u3 === "object" ? targetsEqual(l2[y], u3) : isEqual(l2[y], u3))) {
3887
+ const y = rowHooks !== null && e.pc !== null ? e.pc.sp : null;
3888
+ const w = rowHooks !== null && e.pc !== null ? e.pc.ro : null;
3889
+ let b = t !== null && (w !== null || y !== null);
3890
+ let m = 0;
3891
+ for (let w2 = 0;w2 < s2; w2++) {
3892
+ const s3 = f2[w2];
3893
+ if (b && w2 < u2) {
3894
+ const e2 = l2[w2];
3895
+ if (e2 !== null && typeof e2 === "object" && s3 !== null && typeof s3 === "object" && sameKey(t(e2), t(s3)))
3896
+ m++;
3897
+ else
3898
+ b = false;
3899
+ }
3900
+ if (y !== null && w2 < u2 && (t === null || b)) {
3901
+ const n2 = l2[w2];
3902
+ if (n2 !== s3)
3903
+ rowHooks.emitSlotPatch(e, w2, s3, n2);
3904
+ }
3905
+ if (!r && w2 < u2 && s3 !== null && typeof s3 === "object")
3906
+ descend(unwrapValue(l2[w2]), s3, t, i, o);
3907
+ if (e.dk !== null && !d && !(s3 !== null && typeof s3 === "object" ? targetsEqual(l2[w2], s3) : isEqual(l2[w2], s3))) {
3727
3908
  bumpDeep(e);
3728
3909
  d = true;
3729
3910
  }
3730
- if (c !== null) {
3731
- const e2 = c[y];
3911
+ if (a !== null) {
3912
+ const e2 = a[w2];
3732
3913
  if (e2 !== undefined) {
3733
3914
  p++;
3734
- notifyKeyDiff(e2, y, a, t, false);
3915
+ notifyKeyDiff(e2, w2, c, n, false);
3735
3916
  }
3736
3917
  }
3737
3918
  }
3919
+ if (w !== null) {
3920
+ const n2 = l2.length;
3921
+ if (t !== null) {
3922
+ if (m < s2 || n2 !== s2)
3923
+ buildAndEmitRowOps(e, l2, f2, m, t);
3924
+ } else if (n2 !== s2) {
3925
+ buildAndEmitRowOps(e, l2, f2, u2, null);
3926
+ }
3927
+ }
3738
3928
  }
3739
- if (u) {
3740
- if (c !== null && p < e.nc) {
3741
- for (const e2 of Reflect.ownKeys(c)) {
3742
- const n2 = typeof e2 === "string" ? +e2 : NaN;
3743
- if (!(n2 >= 0 && n2 < r2.length))
3744
- notifyKeyDiff(c[e2], e2, a, t, false);
3929
+ if (s) {
3930
+ if (a !== null && p < e.nc) {
3931
+ for (const e2 of Reflect.ownKeys(a)) {
3932
+ const t2 = typeof e2 === "string" ? +e2 : NaN;
3933
+ if (!(t2 >= 0 && t2 < f2.length))
3934
+ notifyKeyDiff(a[e2], e2, c, n, false);
3745
3935
  }
3746
3936
  }
3747
- notifyFoldTail(e, a, t);
3937
+ notifyFoldTail(e, c, n);
3748
3938
  }
3749
3939
  return;
3750
3940
  } else {
3751
- const l2 = u ? e.n : null;
3752
- let r2 = 0;
3753
- let c = false;
3754
- for (const u2 in t) {
3755
- const p2 = t[u2];
3756
- const d = a[u2];
3941
+ if (e.pc !== null && e.pc.p !== null && s && e.n === null && e.h === null && e.k === null && e.dk === null && i === null) {
3942
+ return;
3943
+ }
3944
+ const l2 = s ? e.n : null;
3945
+ let f2 = 0;
3946
+ let a = false;
3947
+ for (const s2 in n) {
3948
+ const p2 = n[s2];
3949
+ const d = c[s2];
3757
3950
  const y = p2 !== null && typeof p2 === "object";
3758
- if (d === p2 && (!y || !ownedRaw.has(p2)) && (l2 === null || l2[u2] === undefined || !hasAccessorFlag(l2[u2]))) {
3759
- if (l2 !== null && l2[u2] !== undefined)
3760
- r2++;
3951
+ if (d === p2 && (!y || !ownedRaw.has(p2)) && (l2 === null || l2[s2] === undefined || !hasAccessorFlag(l2[s2]))) {
3952
+ if (l2 !== null && l2[s2] !== undefined)
3953
+ f2++;
3761
3954
  continue;
3762
3955
  }
3763
- if (y && !s)
3764
- descend(unwrapValue(i[u2]), p2, n, f, o);
3765
- if (e.dk !== null && !c && !(y ? targetsEqual(d, p2) : isEqual(d, p2))) {
3956
+ if (y && !r)
3957
+ descend(unwrapValue(u[s2]), p2, t, i, o);
3958
+ if (e.dk !== null && !a && !(y ? targetsEqual(d, p2) : isEqual(d, p2))) {
3766
3959
  bumpDeep(e);
3767
- c = true;
3960
+ a = true;
3768
3961
  }
3769
3962
  if (l2 !== null) {
3770
- const e2 = l2[u2];
3963
+ const e2 = l2[s2];
3771
3964
  if (e2 !== undefined) {
3772
- r2++;
3773
- notifyKeyValue(e2, u2, d, p2, a, t);
3965
+ f2++;
3966
+ notifyKeyValue(e2, s2, d, p2, c, n);
3774
3967
  }
3775
3968
  }
3776
3969
  }
3777
- const p = Object.getOwnPropertySymbols(t);
3970
+ const p = Object.getOwnPropertySymbols(n);
3778
3971
  for (let e2 = 0;e2 < p.length; e2++) {
3779
- const u2 = p[e2];
3780
- const c2 = t[u2];
3781
- if (!s && c2 !== null && typeof c2 === "object")
3782
- descend(unwrapValue(i[u2]), c2, n, f, o);
3972
+ const s2 = p[e2];
3973
+ const a2 = n[s2];
3974
+ if (!r && a2 !== null && typeof a2 === "object")
3975
+ descend(unwrapValue(u[s2]), a2, t, i, o);
3783
3976
  if (l2 !== null) {
3784
- const e3 = l2[u2];
3977
+ const e3 = l2[s2];
3785
3978
  if (e3 !== undefined) {
3786
- r2++;
3787
- notifyKeyValue(e3, u2, a[u2], c2, a, t);
3979
+ f2++;
3980
+ notifyKeyValue(e3, s2, c[s2], a2, c, n);
3788
3981
  }
3789
3982
  }
3790
3983
  }
3791
- if (u) {
3792
- if (l2 !== null && r2 < e.nc) {
3984
+ if (s) {
3985
+ if (l2 !== null && f2 < e.nc) {
3793
3986
  for (const e2 of Reflect.ownKeys(l2)) {
3794
- if (!hasOwnP.call(t, e2))
3795
- notifyKeyDiff(l2[e2], e2, a, t, false);
3987
+ if (!hasOwnP.call(n, e2))
3988
+ notifyKeyDiff(l2[e2], e2, c, n, false);
3796
3989
  }
3797
3990
  }
3798
- notifyFoldTail(e, a, t);
3991
+ notifyFoldTail(e, c, n);
3799
3992
  }
3800
3993
  return;
3801
3994
  }
3802
3995
  }
3803
3996
  var hasOwnP = Object.prototype.hasOwnProperty;
3804
- function descend(e, t, n, o, l = false) {
3805
- if (e === null || typeof e !== "object" || t === null || typeof t !== "object")
3997
+ function sameKey(e, n) {
3998
+ return e === n || e !== e && n !== n;
3999
+ }
4000
+ function buildAndEmitRowOps(e, n, t, o, l) {
4001
+ rowHooks.emitRowOps(e, t, buildRowOps(n, t, o, l));
4002
+ }
4003
+ function buildRowOps(e, n, t, o) {
4004
+ const l = e.length;
4005
+ const i = n.length;
4006
+ const u = new Array(i - t);
4007
+ let f = null;
4008
+ if (o !== null && t < l) {
4009
+ f = new Map;
4010
+ for (let n2 = t;n2 < l; n2++) {
4011
+ const t2 = unwrapValue(e[n2]);
4012
+ if (t2 !== null && typeof t2 === "object") {
4013
+ const e2 = o(t2);
4014
+ if (e2 === undefined)
4015
+ continue;
4016
+ const l2 = f.get(e2);
4017
+ if (l2 === undefined)
4018
+ f.set(e2, n2);
4019
+ else if (Array.isArray(l2))
4020
+ l2.push(n2);
4021
+ else
4022
+ f.set(e2, [l2, n2]);
4023
+ }
4024
+ }
4025
+ }
4026
+ const s = f !== null ? new Set : null;
4027
+ for (let e2 = t;e2 < i; e2++) {
4028
+ const l2 = n[e2];
4029
+ let i2 = -1;
4030
+ if (l2 !== null && typeof l2 === "object" && f !== null) {
4031
+ const e3 = o(l2);
4032
+ if (e3 !== undefined) {
4033
+ const n2 = f.get(e3);
4034
+ if (n2 !== undefined) {
4035
+ if (Array.isArray(n2)) {
4036
+ i2 = n2.shift();
4037
+ if (n2.length === 1)
4038
+ f.set(e3, n2[0]);
4039
+ } else {
4040
+ i2 = n2;
4041
+ f.delete(e3);
4042
+ }
4043
+ s.add(i2);
4044
+ }
4045
+ }
4046
+ }
4047
+ u[e2 - t] = i2;
4048
+ }
4049
+ const r = [];
4050
+ for (let n2 = t;n2 < l; n2++) {
4051
+ if (s === null || !s.has(n2))
4052
+ r.push(unwrapValue(e[n2]));
4053
+ }
4054
+ return {
4055
+ prefix: t,
4056
+ sources: u,
4057
+ removed: r
4058
+ };
4059
+ }
4060
+ function descend(e, n, t, o, l = false) {
4061
+ if (e === null || typeof e !== "object" || n === null || typeof n !== "object")
3806
4062
  return;
3807
- const f = (o?.map ?? storeNextLookup).get(e);
3808
- if (f === undefined)
4063
+ const i = (o?.map ?? storeNextLookup).get(e);
4064
+ if (i === undefined)
3809
4065
  return;
3810
- if (!isWrappable(t))
4066
+ if (!isWrappable(n))
3811
4067
  return;
3812
- if (rawValuesUsed && isRawValue(t))
4068
+ if (rawValuesUsed && isRawValue(n))
3813
4069
  return;
3814
- t = unwrapValue(t);
3815
- if (Array.isArray(e) !== Array.isArray(t))
4070
+ n = unwrapValue(n);
4071
+ if (Array.isArray(e) !== Array.isArray(n))
3816
4072
  return;
3817
- if (n) {
3818
- const o2 = n(e);
3819
- const l2 = n(t);
3820
- if (o2 !== undefined && l2 !== undefined && o2 !== l2)
4073
+ if (t) {
4074
+ const o2 = t(e);
4075
+ const l2 = t(n);
4076
+ if (o2 !== undefined && l2 !== undefined && !sameKey(o2, l2))
3821
4077
  return;
3822
4078
  }
3823
- if (!l && n !== null && !f.d)
4079
+ if (!l && t !== null && !i.d)
3824
4080
  return;
3825
- applyAdopt(f, t, n, l);
4081
+ applyAdopt(i, n, t, l);
3826
4082
  }
3827
4083
 
3828
- // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.3/node_modules/@solidjs/signals/dist/prod/store/next/projection.js
4084
+ // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.4/node_modules/@solidjs/signals/dist/prod/store/next/projection.js
3829
4085
  function wrapDraft(e, t, r) {
3830
4086
  const i = {
3831
4087
  get(i2, o) {
@@ -3989,18 +4245,18 @@ function runProjectionComputedNext(e, t, r, i, o) {
3989
4245
  return n;
3990
4246
  }
3991
4247
 
3992
- // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.3/node_modules/@solidjs/signals/dist/prod/store/index.js
4248
+ // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.4/node_modules/@solidjs/signals/dist/prod/store/index.js
3993
4249
  function createStore(e, t, r) {
3994
4250
  if (typeof e === "function")
3995
4251
  return createStoreDerivedNext(e, t, r);
3996
4252
  return createStoreNext(e, !!t?.shallow);
3997
4253
  }
3998
- // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.3/node_modules/@solidjs/signals/dist/prod/boundaries.js
4254
+ // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.4/node_modules/@solidjs/signals/dist/prod/boundaries.js
3999
4255
  function boundaryComputed(e, t) {
4000
4256
  const r = computed(e, {
4001
4257
  lazy: true
4002
4258
  });
4003
- ext(r).A = (e2, t2) => {
4259
+ ext(r).h = (e2, t2) => {
4004
4260
  const n = e2 !== undefined ? e2 : r.S;
4005
4261
  const s = t2 !== undefined ? t2 : r.o?._;
4006
4262
  r.S &= ~r.R;
@@ -4039,13 +4295,13 @@ class CollectionQueue extends Queue {
4039
4295
  ee;
4040
4296
  v = new Set;
4041
4297
  te;
4042
- N = true;
4043
- I = signal(false, {
4298
+ U = true;
4299
+ D = signal(false, {
4044
4300
  ownedWrite: true,
4045
4301
  H: true
4046
4302
  });
4047
4303
  _;
4048
- D = signal(false, {
4304
+ P = signal(false, {
4049
4305
  ownedWrite: true,
4050
4306
  H: true
4051
4307
  });
@@ -4058,7 +4314,7 @@ class CollectionQueue extends Queue {
4058
4314
  this.ee = e;
4059
4315
  }
4060
4316
  run(e) {
4061
- if (!e || read(this.I) && (!_revealUsed || read(this.D)))
4317
+ if (!e || read(this.D) && (!_revealUsed || read(this.P)))
4062
4318
  return;
4063
4319
  return super.run(e);
4064
4320
  }
@@ -4082,13 +4338,13 @@ class CollectionQueue extends Queue {
4082
4338
  if (this.ee & STATUS_PENDING && this.L)
4083
4339
  return super.notify(e, t, r, n);
4084
4340
  if (r & this.ee) {
4085
- this.N = true;
4341
+ this.U = true;
4086
4342
  const t2 = n?.source || e.o?._?.source;
4087
4343
  if (t2) {
4088
4344
  const e2 = this.v.size === 0;
4089
4345
  this.v.add(t2);
4090
4346
  if (e2)
4091
- setSignal(this.I, true);
4347
+ setSignal(this.D, true);
4092
4348
  if (this.ee & STATUS_ERROR) {
4093
4349
  setSignal(this._, unwrapStatusError(t2.o?._));
4094
4350
  }
@@ -4103,13 +4359,13 @@ class CollectionQueue extends Queue {
4103
4359
  this.v.delete(e);
4104
4360
  }
4105
4361
  if (!this.v.size) {
4106
- if (this.ee & STATUS_PENDING && this.N && !this.L && this.te) {
4107
- this.N = !!(this.te.S & this.ee);
4362
+ if (this.ee & STATUS_PENDING && this.U && !this.L && this.te) {
4363
+ this.U = !!(this.te.S & this.ee);
4108
4364
  } else {
4109
- this.N = false;
4365
+ this.U = false;
4110
4366
  }
4111
- if (!this.N) {
4112
- setSignal(this.I, false);
4367
+ if (!this.U) {
4368
+ setSignal(this.D, false);
4113
4369
  if (this.re) {
4114
4370
  try {
4115
4371
  this.ne = untrack(() => this.re());
@@ -4144,7 +4400,7 @@ function createCollectionBoundary(e, t, r, n) {
4144
4400
  else
4145
4401
  throw e2;
4146
4402
  }
4147
- i.N = t2 || !!(o.S & e) || o.o?._ instanceof NotReadyError;
4403
+ i.U = t2 || !!(o.S & e) || o.o?._ instanceof NotReadyError;
4148
4404
  });
4149
4405
  const l = _revealUsed && e === STATUS_PENDING ? getContext(RevealControllerContext) : null;
4150
4406
  if (l) {
@@ -4153,12 +4409,12 @@ function createCollectionBoundary(e, t, r, n) {
4153
4409
  cleanup(() => l.$(i));
4154
4410
  }
4155
4411
  return accessor(computed(() => {
4156
- if (!read(i.I)) {
4412
+ if (!read(i.D)) {
4157
4413
  const e2 = read(o);
4158
- if (!untrack(() => read(i.I)))
4414
+ if (!untrack(() => read(i.D)))
4159
4415
  return i.L = true, e2;
4160
4416
  }
4161
- if (_revealUsed && read(i.D))
4417
+ if (_revealUsed && read(i.P))
4162
4418
  return;
4163
4419
  return r(i);
4164
4420
  }, {
@@ -4170,8 +4426,10 @@ function createLoadingBoundary(e, t, r) {
4170
4426
  }
4171
4427
  function createErrorBoundary(e, t) {
4172
4428
  return createCollectionBoundary(STATUS_ERROR, e, (e2) => t(accessor(e2._), () => {
4173
- for (const t2 of e2.v)
4174
- recompute(t2);
4429
+ for (const t2 of e2.v) {
4430
+ if (t2.oe !== undefined)
4431
+ recompute(t2);
4432
+ }
4175
4433
  schedule();
4176
4434
  }));
4177
4435
  }
@@ -4231,7 +4489,7 @@ function flattenArray(e, t = [], r) {
4231
4489
  throw n;
4232
4490
  return s;
4233
4491
  }
4234
- // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.3/node_modules/@solidjs/signals/dist/prod/store/utils.js
4492
+ // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.4/node_modules/@solidjs/signals/dist/prod/store/utils.js
4235
4493
  function trueFn() {
4236
4494
  return true;
4237
4495
  }
@@ -4350,7 +4608,7 @@ function merge(...e) {
4350
4608
  u[$SOURCES] = t;
4351
4609
  return u;
4352
4610
  }
4353
- // ../../../node_modules/.bun/solid-js@2.0.0-rc.3/node_modules/solid-js/dist/solid.js
4611
+ // ../../../node_modules/.bun/solid-js@2.0.0-rc.4/node_modules/solid-js/dist/solid.js
4354
4612
  var IS_DEV = false;
4355
4613
  var $DEVCOMP = Symbol(0);
4356
4614
  function createContext2(defaultValue, options) {
@@ -4390,6 +4648,7 @@ var _createMemo;
4390
4648
  var _createErrorBoundary;
4391
4649
  var _createRenderEffect;
4392
4650
  var _createLoadingBoundary;
4651
+ var latchedOnce = new WeakSet;
4393
4652
  var LIVE_SOURCE = Symbol.for("solid.LiveSource");
4394
4653
  var createMemo2 = (...args) => {
4395
4654
  return (_createMemo || createMemo)(...args);
@@ -4412,7 +4671,20 @@ function For(props) {
4412
4671
  } : {
4413
4672
  keyed: props.keyed
4414
4673
  };
4415
- return mapArray(() => props.each, props.children, options);
4674
+ const owner = getOwner();
4675
+ let mapped;
4676
+ const list = () => {
4677
+ if (mapped === undefined)
4678
+ mapped = runWithOwner(owner, () => mapArray(() => props.each, props.children, options));
4679
+ return mapped();
4680
+ };
4681
+ if (props.keyed !== false && !("fallback" in props) && props.children.length < 2)
4682
+ list.$ll = {
4683
+ each: () => props.each,
4684
+ row: props.children,
4685
+ keyed: props.keyed
4686
+ };
4687
+ return list;
4416
4688
  }
4417
4689
  function Show(props) {
4418
4690
  const keyed = props.keyed;
@@ -4450,7 +4722,7 @@ function Loading(props) {
4450
4722
  return createLoadingBoundary2(() => props.children, () => props.fallback, onOpt);
4451
4723
  }
4452
4724
 
4453
- // ../../../node_modules/.bun/@solidjs+universal@2.0.0-rc.3+9a75f4285017533e/node_modules/@solidjs/universal/dist/universal.js
4725
+ // ../../../node_modules/.bun/@solidjs+universal@2.0.0-rc.4+4eb2d79516b92ebc/node_modules/@solidjs/universal/dist/universal.js
4454
4726
  var transparentOptions = {
4455
4727
  transparent: true,
4456
4728
  sync: true
@@ -5441,8 +5713,8 @@ function scanForOrphans(now) {
5441
5713
  return;
5442
5714
  for (let [type] of fresh)
5443
5715
  warnedLeakTypes.add(type);
5444
- let list = fresh.map(([type, n]) => `<${type}> x${n}`).join(", ");
5445
- console.warn(`Leak sentinel: ${total} nodes are unreachable and will never be freed: ${list}. ` + `The usual cause is reading an element-valued prop more than once (every read ` + `builds a new subtree); read it once where it mounts, or resolve it with ` + `children(). If these nodes are intentionally kept for later mounting, ignore ` + `this. Element types already reported are not reported again.`);
5716
+ let list = [...counts].map(([type, n]) => `<${type}> x${n}`).join(", ");
5717
+ console.warn(`Leak sentinel: ${total} nodes are unreachable and will never be freed: ${list}. ` + `The usual cause is reading an element-valued prop more than once (every read ` + `builds a new subtree); read it once where it mounts, or resolve it with ` + `children(). If these nodes are intentionally kept for later mounting, ignore ` + `this. The next warning comes when a new element type joins the list.`);
5446
5718
  }
5447
5719
  var warnedRejectedProps = new Set;
5448
5720
  function setTreeProperty(node, name, value) {
@@ -5523,6 +5795,10 @@ var renderer = createRenderer({
5523
5795
  insertNode: (parent, node, anchor) => {
5524
5796
  if (!node)
5525
5797
  return;
5798
+ if (typeof node !== "object" || node.id === undefined) {
5799
+ let what = typeof node === "function" ? "a signal accessor" : `a ${typeof node}`;
5800
+ throw new Error(`insertNode received ${what} instead of an element under <${parent?.elementType ?? "?"}>; ` + `resolve the children with children() or return one root element from the component.`);
5801
+ }
5526
5802
  pendingDestroy.delete(node.id);
5527
5803
  if (parent) {
5528
5804
  if (anchor)