@tanstack/solid-query-devtools 6.0.0-alpha.0 → 6.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.jsx CHANGED
@@ -1,8 +1,8 @@
1
- // ../../node_modules/.pnpm/@solidjs+web@2.0.0-beta.2_@solidjs+signals@0.12.0_solid-js@2.0.0-beta.2/node_modules/@solidjs/web/dist/web.js
1
+ // ../../node_modules/.pnpm/@solidjs+web@2.0.0-beta.4_@solidjs+signals@0.13.6_solid-js@2.0.0-beta.4/node_modules/@solidjs/web/dist/web.js
2
2
  import { createRenderEffect, createMemo as createMemo$1, sharedConfig, untrack as untrack2, runWithOwner, flatten, createRoot, omit, enableHydration } from "solid-js";
3
3
  import { Errored, For, Hydration, Loading, Match, NoHydration, Show, Switch, createComponent, getOwner, merge, untrack as untrack3 } from "solid-js";
4
4
 
5
- // ../../node_modules/.pnpm/@solidjs+signals@0.12.0/node_modules/@solidjs/signals/dist/prod.js
5
+ // ../../node_modules/.pnpm/@solidjs+signals@0.13.6/node_modules/@solidjs/signals/dist/prod.js
6
6
  var NotReadyError = class extends Error {
7
7
  source;
8
8
  constructor(e) {
@@ -82,12 +82,12 @@ function deleteFromHeap(e, t) {
82
82
  }
83
83
  function runHeap(e, t) {
84
84
  e._ = false;
85
- for (e.N = 0; e.N <= e.R; e.N++) {
86
- let n = e.l[e.N];
85
+ for (e.P = 0; e.P <= e.R; e.P++) {
86
+ let n = e.l[e.P];
87
87
  while (n !== void 0) {
88
88
  if (n.O & REACTIVE_IN_HEAP) t(n);
89
89
  else adjustHeight(n, e);
90
- n = e.l[e.N];
90
+ n = e.l[e.P];
91
91
  }
92
92
  }
93
93
  e.R = 0;
@@ -96,8 +96,8 @@ function adjustHeight(e, t) {
96
96
  deleteFromHeap(e, t);
97
97
  let n = e.o;
98
98
  for (let t2 = e.C; t2; t2 = t2.D) {
99
- const e2 = t2.V;
100
- const i = e2.m || e2;
99
+ const e2 = t2.m;
100
+ const i = e2.V || e2;
101
101
  if (i.L && i.o >= n) n = i.o + 1;
102
102
  }
103
103
  if (e.o !== n) {
@@ -108,40 +108,100 @@ function adjustHeight(e, t) {
108
108
  }
109
109
  }
110
110
  var transitions = /* @__PURE__ */ new Set();
111
- var dirtyQueue = { l: new Array(2e3).fill(void 0), _: false, N: 0, R: 0 };
112
- var zombieQueue = { l: new Array(2e3).fill(void 0), _: false, N: 0, R: 0 };
111
+ var dirtyQueue = { l: new Array(2e3).fill(void 0), _: false, P: 0, R: 0 };
112
+ var zombieQueue = { l: new Array(2e3).fill(void 0), _: false, P: 0, R: 0 };
113
113
  var clock = 0;
114
114
  var activeTransition = null;
115
115
  var scheduled = false;
116
116
  var projectionWriteActive = false;
117
+ var stashedOptimisticReads = null;
117
118
  function runLaneEffects(e) {
118
119
  for (const t of activeLanes) {
119
- if (t.k || t.U.size > 0) continue;
120
- const n = t.W[e - 1];
120
+ if (t.U || t.k.size > 0) continue;
121
+ const n = t.G[e - 1];
121
122
  if (n.length) {
122
- t.W[e - 1] = [];
123
+ t.G[e - 1] = [];
123
124
  runQueue(n, e);
124
125
  }
125
126
  }
126
127
  }
128
+ function queueStashedOptimisticEffects(e) {
129
+ for (let t = e.I; t !== null; t = t.p) {
130
+ const e2 = t.h;
131
+ if (!e2.W) continue;
132
+ if (e2.W === EFFECT_TRACKED) {
133
+ if (!e2.H) {
134
+ e2.H = true;
135
+ e2.F.enqueue(EFFECT_USER, e2.M);
136
+ }
137
+ continue;
138
+ }
139
+ const n = e2.O & REACTIVE_ZOMBIE ? zombieQueue : dirtyQueue;
140
+ if (n.P > e2.o) n.P = e2.o;
141
+ insertIntoHeap(e2, n);
142
+ }
143
+ }
144
+ function mergeTransitionState(e, t) {
145
+ t.$ = e;
146
+ e.j.push(...t.j);
147
+ for (const n of activeLanes) {
148
+ if (n.K === t) n.K = e;
149
+ }
150
+ e.Y.push(...t.Y);
151
+ for (const n of t.Z) e.Z.add(n);
152
+ for (const n of t.B) {
153
+ if (!e.B.includes(n)) e.B.push(n);
154
+ }
155
+ }
156
+ function resolveOptimisticNodes(e) {
157
+ for (let t = 0; t < e.length; t++) {
158
+ const n = e[t];
159
+ n.q = void 0;
160
+ if (n.X !== NOT_PENDING) {
161
+ n.J = n.X;
162
+ n.X = NOT_PENDING;
163
+ }
164
+ const i = n.ee;
165
+ n.ee = NOT_PENDING;
166
+ if (i !== NOT_PENDING && n.J !== i) insertSubs(n, true);
167
+ n.K = null;
168
+ }
169
+ e.length = 0;
170
+ }
171
+ function cleanupCompletedLanes(e) {
172
+ for (const t of activeLanes) {
173
+ const n = e ? t.K === e : !t.K;
174
+ if (!n) continue;
175
+ if (!t.U) {
176
+ if (t.G[0].length) runQueue(t.G[0], EFFECT_RENDER);
177
+ if (t.G[1].length) runQueue(t.G[1], EFFECT_USER);
178
+ }
179
+ if (t.te.q === t) t.te.q = void 0;
180
+ t.k.clear();
181
+ t.G[0].length = 0;
182
+ t.G[1].length = 0;
183
+ activeLanes.delete(t);
184
+ signalLanes.delete(t.te);
185
+ }
186
+ }
127
187
  function schedule() {
128
188
  if (scheduled) return;
129
189
  scheduled = true;
130
- if (!globalQueue.H && !projectionWriteActive) queueMicrotask(flush);
190
+ if (!globalQueue.ne && !projectionWriteActive) queueMicrotask(flush);
131
191
  }
132
192
  var Queue = class {
133
193
  i = null;
134
- G = [[], []];
135
- M = [];
194
+ ie = [[], []];
195
+ re = [];
136
196
  created = clock;
137
197
  addChild(e) {
138
- this.M.push(e);
198
+ this.re.push(e);
139
199
  e.i = this;
140
200
  }
141
201
  removeChild(e) {
142
- const t = this.M.indexOf(e);
202
+ const t = this.re.indexOf(e);
143
203
  if (t >= 0) {
144
- this.M.splice(t, 1);
204
+ this.re.splice(t, 1);
145
205
  e.i = null;
146
206
  }
147
207
  }
@@ -150,107 +210,123 @@ var Queue = class {
150
210
  return false;
151
211
  }
152
212
  run(e) {
153
- if (this.G[e - 1].length) {
154
- const t = this.G[e - 1];
155
- this.G[e - 1] = [];
213
+ if (this.ie[e - 1].length) {
214
+ const t = this.ie[e - 1];
215
+ this.ie[e - 1] = [];
156
216
  runQueue(t, e);
157
217
  }
158
- for (let t = 0; t < this.M.length; t++) this.M[t].run?.(e);
218
+ for (let t = 0; t < this.re.length; t++) this.re[t].run?.(e);
159
219
  }
160
220
  enqueue(e, t) {
161
221
  if (e) {
162
222
  if (currentOptimisticLane) {
163
223
  const n = findLane(currentOptimisticLane);
164
- n.W[e - 1].push(t);
224
+ n.G[e - 1].push(t);
165
225
  } else {
166
- this.G[e - 1].push(t);
226
+ this.ie[e - 1].push(t);
167
227
  }
168
228
  }
169
229
  schedule();
170
230
  }
171
231
  stashQueues(e) {
172
- e.G[0].push(...this.G[0]);
173
- e.G[1].push(...this.G[1]);
174
- this.G = [[], []];
175
- for (let t = 0; t < this.M.length; t++) {
176
- let n = this.M[t];
177
- let i = e.M[t];
232
+ e.ie[0].push(...this.ie[0]);
233
+ e.ie[1].push(...this.ie[1]);
234
+ this.ie = [[], []];
235
+ for (let t = 0; t < this.re.length; t++) {
236
+ let n = this.re[t];
237
+ let i = e.re[t];
178
238
  if (!i) {
179
- i = { G: [[], []], M: [] };
180
- e.M[t] = i;
239
+ i = { ie: [[], []], re: [] };
240
+ e.re[t] = i;
181
241
  }
182
242
  n.stashQueues(i);
183
243
  }
184
244
  }
185
245
  restoreQueues(e) {
186
- this.G[0].push(...e.G[0]);
187
- this.G[1].push(...e.G[1]);
188
- for (let t = 0; t < e.M.length; t++) {
189
- const n = e.M[t];
190
- let i = this.M[t];
246
+ this.ie[0].push(...e.ie[0]);
247
+ this.ie[1].push(...e.ie[1]);
248
+ for (let t = 0; t < e.re.length; t++) {
249
+ const n = e.re[t];
250
+ let i = this.re[t];
191
251
  if (i) i.restoreQueues(n);
192
252
  }
193
253
  }
194
254
  };
195
255
  var GlobalQueue = class _GlobalQueue extends Queue {
196
- H = false;
197
- F = [];
198
- $ = [];
199
- j = /* @__PURE__ */ new Set();
200
- static K;
201
- static Y;
202
- static Z = null;
256
+ ne = false;
257
+ se = [];
258
+ Y = [];
259
+ Z = /* @__PURE__ */ new Set();
260
+ static oe;
261
+ static ue;
262
+ static ce = null;
203
263
  flush() {
204
- if (this.H) return;
205
- this.H = true;
264
+ if (this.ne) return;
265
+ this.ne = true;
206
266
  try {
207
- runHeap(dirtyQueue, _GlobalQueue.K);
267
+ runHeap(dirtyQueue, _GlobalQueue.oe);
208
268
  if (activeTransition) {
209
269
  const e = transitionComplete(activeTransition);
210
270
  if (!e) {
211
- let e2 = activeTransition;
212
- runHeap(zombieQueue, _GlobalQueue.K);
213
- this.F = [];
214
- this.$ = [];
215
- this.j = /* @__PURE__ */ new Set();
271
+ const e2 = activeTransition;
272
+ runHeap(zombieQueue, _GlobalQueue.oe);
273
+ this.se = [];
274
+ this.Y = [];
275
+ this.Z = /* @__PURE__ */ new Set();
216
276
  runLaneEffects(EFFECT_RENDER);
217
277
  runLaneEffects(EFFECT_USER);
218
- this.stashQueues(activeTransition.B);
278
+ this.stashQueues(e2.ae);
219
279
  clock++;
220
- scheduled = dirtyQueue.R >= dirtyQueue.N;
221
- reassignPendingTransition(activeTransition.F);
280
+ scheduled = dirtyQueue.R >= dirtyQueue.P;
281
+ reassignPendingTransition(e2.se);
222
282
  activeTransition = null;
223
- finalizePureQueue(null, true);
283
+ if (!e2.j.length && e2.Y.length) {
284
+ stashedOptimisticReads = /* @__PURE__ */ new Set();
285
+ for (let t2 = 0; t2 < e2.Y.length; t2++) {
286
+ const n = e2.Y[t2];
287
+ if (n.L || n.fe) continue;
288
+ stashedOptimisticReads.add(n);
289
+ queueStashedOptimisticEffects(n);
290
+ }
291
+ }
292
+ try {
293
+ finalizePureQueue(null, true);
294
+ } finally {
295
+ stashedOptimisticReads = null;
296
+ }
224
297
  return;
225
298
  }
226
- this.F !== activeTransition.F && this.F.push(...activeTransition.F);
227
- this.restoreQueues(activeTransition.B);
299
+ this.se !== activeTransition.se && this.se.push(...activeTransition.se);
300
+ this.restoreQueues(activeTransition.ae);
228
301
  transitions.delete(activeTransition);
229
302
  const t = activeTransition;
230
303
  activeTransition = null;
231
- reassignPendingTransition(this.F);
304
+ reassignPendingTransition(this.se);
232
305
  finalizePureQueue(t);
233
306
  } else {
234
- if (transitions.size) runHeap(zombieQueue, _GlobalQueue.K);
307
+ if (transitions.size) runHeap(zombieQueue, _GlobalQueue.oe);
235
308
  finalizePureQueue();
236
309
  }
237
310
  clock++;
238
- scheduled = dirtyQueue.R >= dirtyQueue.N;
311
+ scheduled = dirtyQueue.R >= dirtyQueue.P;
239
312
  runLaneEffects(EFFECT_RENDER);
240
313
  this.run(EFFECT_RENDER);
241
314
  runLaneEffects(EFFECT_USER);
242
315
  this.run(EFFECT_USER);
243
316
  } finally {
244
- this.H = false;
317
+ this.ne = false;
245
318
  }
246
319
  }
247
320
  notify(e, t, n, i) {
248
321
  if (t & STATUS_PENDING) {
249
322
  if (n & STATUS_PENDING) {
250
- const t2 = i !== void 0 ? i : e.X;
251
- if (activeTransition && t2 && !activeTransition.q.includes(t2.source)) {
252
- activeTransition.q.push(t2.source);
253
- schedule();
323
+ const t2 = i !== void 0 ? i : e.le;
324
+ if (activeTransition && t2) {
325
+ const e2 = t2.source;
326
+ if (!activeTransition.B.includes(e2)) {
327
+ activeTransition.B.push(e2);
328
+ schedule();
329
+ }
254
330
  }
255
331
  }
256
332
  return true;
@@ -260,58 +336,56 @@ var GlobalQueue = class _GlobalQueue extends Queue {
260
336
  initTransition(e) {
261
337
  if (e) e = currentTransition(e);
262
338
  if (e && e === activeTransition) return;
263
- if (!e && activeTransition && activeTransition.J === clock) return;
339
+ if (!e && activeTransition && activeTransition.Ee === clock) return;
264
340
  if (!activeTransition) {
265
341
  activeTransition = e ?? {
266
- J: clock,
267
- F: [],
268
- q: [],
269
- $: [],
270
- j: /* @__PURE__ */ new Set(),
271
- ee: [],
272
- B: { G: [[], []], M: [] },
273
- te: false
342
+ Ee: clock,
343
+ se: [],
344
+ B: [],
345
+ Y: [],
346
+ Z: /* @__PURE__ */ new Set(),
347
+ j: [],
348
+ ae: { ie: [[], []], re: [] },
349
+ $: false
274
350
  };
275
351
  } else if (e) {
276
352
  const t = activeTransition;
277
- t.te = e;
278
- e.ee.push(...t.ee);
279
- for (const n of activeLanes) {
280
- if (n.ne === t) n.ne = e;
281
- }
282
- e.$.push(...t.$);
283
- for (const n of t.j) {
284
- e.j.add(n);
285
- }
353
+ mergeTransitionState(e, t);
286
354
  transitions.delete(t);
287
355
  activeTransition = e;
288
356
  }
289
357
  transitions.add(activeTransition);
290
- activeTransition.J = clock;
291
- for (let e2 = 0; e2 < this.F.length; e2++) {
292
- const t = this.F[e2];
293
- t.ne = activeTransition;
294
- activeTransition.F.push(t);
358
+ activeTransition.Ee = clock;
359
+ if (this.se !== activeTransition.se) {
360
+ for (let e2 = 0; e2 < this.se.length; e2++) {
361
+ const t = this.se[e2];
362
+ t.K = activeTransition;
363
+ activeTransition.se.push(t);
364
+ }
365
+ this.se = activeTransition.se;
295
366
  }
296
- this.F = activeTransition.F;
297
- for (let e2 = 0; e2 < this.$.length; e2++) {
298
- const t = this.$[e2];
299
- t.ne = activeTransition;
300
- activeTransition.$.push(t);
367
+ if (this.Y !== activeTransition.Y) {
368
+ for (let e2 = 0; e2 < this.Y.length; e2++) {
369
+ const t = this.Y[e2];
370
+ t.K = activeTransition;
371
+ activeTransition.Y.push(t);
372
+ }
373
+ this.Y = activeTransition.Y;
301
374
  }
302
- this.$ = activeTransition.$;
303
375
  for (const e2 of activeLanes) {
304
- if (!e2.ne) e2.ne = activeTransition;
376
+ if (!e2.K) e2.K = activeTransition;
377
+ }
378
+ if (this.Z !== activeTransition.Z) {
379
+ for (const e2 of this.Z) activeTransition.Z.add(e2);
380
+ this.Z = activeTransition.Z;
305
381
  }
306
- for (const e2 of this.j) activeTransition.j.add(e2);
307
- this.j = activeTransition.j;
308
382
  }
309
383
  };
310
384
  function insertSubs(e, t = false) {
311
- const n = e.ie || currentOptimisticLane;
312
- const i = e.re !== void 0;
385
+ const n = e.q || currentOptimisticLane;
386
+ const i = e.Te !== void 0;
313
387
  for (let r = e.I; r !== null; r = r.p) {
314
- if (i && r.h.se) {
388
+ if (i && r.h.de) {
315
389
  r.h.O |= REACTIVE_SNAPSHOT_STALE;
316
390
  continue;
317
391
  }
@@ -320,89 +394,71 @@ function insertSubs(e, t = false) {
320
394
  assignOrMergeLane(r.h, n);
321
395
  } else if (t) {
322
396
  r.h.O |= REACTIVE_OPTIMISTIC_DIRTY;
323
- r.h.ie = void 0;
397
+ r.h.q = void 0;
324
398
  }
325
399
  const e2 = r.h;
326
- if (e2.oe === EFFECT_TRACKED) {
327
- if (!e2.ue) {
328
- e2.ue = true;
329
- e2.ce.enqueue(EFFECT_USER, e2.le);
400
+ if (e2.W === EFFECT_TRACKED) {
401
+ if (!e2.H) {
402
+ e2.H = true;
403
+ e2.F.enqueue(EFFECT_USER, e2.M);
330
404
  }
331
405
  continue;
332
406
  }
333
407
  const s = r.h.O & REACTIVE_ZOMBIE ? zombieQueue : dirtyQueue;
334
- if (s.N > r.h.o) s.N = r.h.o;
408
+ if (s.P > r.h.o) s.P = r.h.o;
335
409
  insertIntoHeap(r.h, s);
336
410
  }
337
411
  }
412
+ function commitPendingNodes() {
413
+ const e = globalQueue.se;
414
+ for (let t = 0; t < e.length; t++) {
415
+ const n = e[t];
416
+ if (n.X !== NOT_PENDING) {
417
+ n.J = n.X;
418
+ n.X = NOT_PENDING;
419
+ if (n.W && n.W !== EFFECT_TRACKED) n.H = true;
420
+ }
421
+ if (!(n.Se & STATUS_PENDING)) n.Se &= ~STATUS_UNINITIALIZED;
422
+ if (n.L) GlobalQueue.ue(n, false, true);
423
+ }
424
+ e.length = 0;
425
+ }
338
426
  function finalizePureQueue(e = null, t = false) {
339
- let n = !t;
427
+ const n = !t;
428
+ if (n) commitPendingNodes();
340
429
  if (!t) checkBoundaryChildren(globalQueue);
341
- if (dirtyQueue.R >= dirtyQueue.N) runHeap(dirtyQueue, GlobalQueue.K);
430
+ if (dirtyQueue.R >= dirtyQueue.P) runHeap(dirtyQueue, GlobalQueue.oe);
342
431
  if (n) {
343
- const t2 = globalQueue.F;
344
- for (let e2 = 0; e2 < t2.length; e2++) {
345
- const n3 = t2[e2];
346
- if (n3.ae !== NOT_PENDING) {
347
- n3.fe = n3.ae;
348
- n3.ae = NOT_PENDING;
349
- if (n3.oe && n3.oe !== EFFECT_TRACKED) n3.ue = true;
350
- }
351
- if (!(n3.Ee & STATUS_PENDING)) n3.Ee &= ~STATUS_UNINITIALIZED;
352
- if (n3.L) GlobalQueue.Y(n3, false, true);
353
- }
354
- t2.length = 0;
355
- const n2 = e ? e.$ : globalQueue.$;
356
- for (let e2 = 0; e2 < n2.length; e2++) {
357
- const t3 = n2[e2];
358
- const i2 = t3.ae;
359
- t3.ie = void 0;
360
- if (i2 !== NOT_PENDING && t3.fe !== i2) {
361
- t3.fe = i2;
362
- insertSubs(t3, true);
363
- }
364
- t3.ae = NOT_PENDING;
365
- t3.ne = null;
366
- }
367
- n2.length = 0;
368
- const i = e ? e.j : globalQueue.j;
369
- if (GlobalQueue.Z && i.size) {
370
- for (const e2 of i) {
371
- GlobalQueue.Z(e2);
432
+ commitPendingNodes();
433
+ resolveOptimisticNodes(e ? e.Y : globalQueue.Y);
434
+ const t2 = e ? e.Z : globalQueue.Z;
435
+ if (GlobalQueue.ce && t2.size) {
436
+ for (const e2 of t2) {
437
+ GlobalQueue.ce(e2);
372
438
  }
373
- i.clear();
439
+ t2.clear();
374
440
  schedule();
375
441
  }
376
- for (const t3 of activeLanes) {
377
- const n3 = e ? t3.ne === e : !t3.ne;
378
- if (!n3) continue;
379
- if (!t3.k) {
380
- if (t3.W[0].length) runQueue(t3.W[0], EFFECT_RENDER);
381
- if (t3.W[1].length) runQueue(t3.W[1], EFFECT_USER);
382
- }
383
- if (t3.Te.ie === t3) t3.Te.ie = void 0;
384
- t3.U.clear();
385
- t3.W[0].length = 0;
386
- t3.W[1].length = 0;
387
- activeLanes.delete(t3);
388
- signalLanes.delete(t3.Te);
389
- }
442
+ cleanupCompletedLanes(e);
390
443
  }
391
444
  }
392
445
  function checkBoundaryChildren(e) {
393
- for (const t of e.M) {
446
+ for (const t of e.re) {
394
447
  t.checkSources?.();
395
448
  checkBoundaryChildren(t);
396
449
  }
397
450
  }
398
451
  function reassignPendingTransition(e) {
399
452
  for (let t = 0; t < e.length; t++) {
400
- e[t].ne = activeTransition;
453
+ e[t].K = activeTransition;
401
454
  }
402
455
  }
403
456
  var globalQueue = new GlobalQueue();
404
457
  function flush() {
405
- while (scheduled) {
458
+ if (globalQueue.ne) {
459
+ return;
460
+ }
461
+ while (scheduled || activeTransition) {
406
462
  globalQueue.flush();
407
463
  }
408
464
  }
@@ -410,21 +466,30 @@ function runQueue(e, t) {
410
466
  for (let n = 0; n < e.length; n++) e[n](t);
411
467
  }
412
468
  function transitionComplete(e) {
413
- if (e.te) return true;
414
- if (e.ee.length) return false;
469
+ if (e.$) return true;
470
+ if (e.j.length) return false;
415
471
  let t = true;
416
- for (let n = 0; n < e.q.length; n++) {
417
- const i = e.q[n];
418
- if (i.Ee & STATUS_PENDING && i.X?.source === i) {
472
+ for (let n = 0; n < e.B.length; n++) {
473
+ const i = e.B[n];
474
+ if (i.Se & STATUS_PENDING && i.le?.source === i) {
419
475
  t = false;
420
476
  break;
421
477
  }
422
478
  }
423
- t && (e.te = true);
479
+ if (t) {
480
+ for (let n = 0; n < e.Y.length; n++) {
481
+ const i = e.Y[n];
482
+ if (hasActiveOverride(i) && "Se" in i && i.Se & STATUS_PENDING && i.le instanceof NotReadyError && i.le.source !== i) {
483
+ t = false;
484
+ break;
485
+ }
486
+ }
487
+ }
488
+ t && (e.$ = true);
424
489
  return t;
425
490
  }
426
491
  function currentTransition(e) {
427
- while (e.te && typeof e.te === "object") e = e.te;
492
+ while (e.$ && typeof e.$ === "object") e = e.$;
428
493
  return e;
429
494
  }
430
495
  function runInTransition(e, t) {
@@ -443,106 +508,199 @@ function getOrCreateLane(e) {
443
508
  if (t) {
444
509
  return findLane(t);
445
510
  }
446
- const n = e.de;
447
- const i = n?.ie ? findLane(n.ie) : null;
448
- t = { Te: e, U: /* @__PURE__ */ new Set(), W: [[], []], k: null, ne: activeTransition, Se: i };
511
+ const n = e.Re;
512
+ const i = n?.q ? findLane(n.q) : null;
513
+ t = { te: e, k: /* @__PURE__ */ new Set(), G: [[], []], U: null, K: activeTransition, Oe: i };
449
514
  signalLanes.set(e, t);
450
515
  activeLanes.add(t);
451
- e.Re = e.Oe || 0;
516
+ e._e = false;
452
517
  return t;
453
518
  }
454
519
  function findLane(e) {
455
- while (e.k) e = e.k;
520
+ while (e.U) e = e.U;
456
521
  return e;
457
522
  }
458
523
  function mergeLanes(e, t) {
459
524
  e = findLane(e);
460
525
  t = findLane(t);
461
526
  if (e === t) return e;
462
- t.k = e;
463
- for (const n of t.U) e.U.add(n);
464
- e.W[0].push(...t.W[0]);
465
- e.W[1].push(...t.W[1]);
527
+ t.U = e;
528
+ for (const n of t.k) e.k.add(n);
529
+ e.G[0].push(...t.G[0]);
530
+ e.G[1].push(...t.G[1]);
466
531
  return e;
467
532
  }
468
533
  function resolveLane(e) {
469
- const t = e.ie;
534
+ const t = e.q;
470
535
  if (!t) return void 0;
471
536
  const n = findLane(t);
472
537
  if (activeLanes.has(n)) return n;
473
- e.ie = void 0;
538
+ e.q = void 0;
474
539
  return void 0;
475
540
  }
541
+ function resolveTransition(e) {
542
+ return resolveLane(e)?.K ?? e.K;
543
+ }
476
544
  function hasActiveOverride(e) {
477
- return !!(e._e && e.ae !== NOT_PENDING);
545
+ return !!(e.ee !== void 0 && e.ee !== NOT_PENDING);
478
546
  }
479
547
  function assignOrMergeLane(e, t) {
480
548
  const n = findLane(t);
481
- const i = e.ie;
549
+ const i = e.q;
482
550
  if (i) {
483
- if (i.k) {
484
- e.ie = t;
551
+ if (i.U) {
552
+ e.q = t;
485
553
  return;
486
554
  }
487
555
  const r = findLane(i);
488
556
  if (activeLanes.has(r)) {
489
557
  if (r !== n && !hasActiveOverride(e)) {
490
- if (n.Se && findLane(n.Se) === r) {
491
- e.ie = t;
492
- } else if (r.Se && findLane(r.Se) === n) ;
558
+ if (n.Oe && findLane(n.Oe) === r) {
559
+ e.q = t;
560
+ } else if (r.Oe && findLane(r.Oe) === n) ;
493
561
  else mergeLanes(n, r);
494
562
  }
495
563
  return;
496
564
  }
497
565
  }
498
- e.ie = t;
566
+ e.q = t;
567
+ }
568
+ function addPendingSource(e, t) {
569
+ if (e.Ie === t || e.pe?.has(t)) return false;
570
+ if (!e.Ie) {
571
+ e.Ie = t;
572
+ return true;
573
+ }
574
+ if (!e.pe) {
575
+ e.pe = /* @__PURE__ */ new Set([e.Ie, t]);
576
+ } else {
577
+ e.pe.add(t);
578
+ }
579
+ e.Ie = void 0;
580
+ return true;
581
+ }
582
+ function removePendingSource(e, t) {
583
+ if (e.Ie) {
584
+ if (e.Ie !== t) return false;
585
+ e.Ie = void 0;
586
+ return true;
587
+ }
588
+ if (!e.pe?.delete(t)) return false;
589
+ if (e.pe.size === 1) {
590
+ e.Ie = e.pe.values().next().value;
591
+ e.pe = void 0;
592
+ } else if (e.pe.size === 0) {
593
+ e.pe = void 0;
594
+ }
595
+ return true;
596
+ }
597
+ function clearPendingSources(e) {
598
+ e.Ie = void 0;
599
+ e.pe?.clear();
600
+ e.pe = void 0;
601
+ }
602
+ function setPendingError(e, t, n) {
603
+ if (!t) {
604
+ e.le = null;
605
+ return;
606
+ }
607
+ if (n instanceof NotReadyError && n.source === t) {
608
+ e.le = n;
609
+ return;
610
+ }
611
+ const i = e.le;
612
+ if (!(i instanceof NotReadyError) || i.source !== t) {
613
+ e.le = new NotReadyError(t);
614
+ }
615
+ }
616
+ function forEachDependent(e, t) {
617
+ for (let n = e.I; n !== null; n = n.p) t(n.h);
618
+ for (let n = e.A; n !== null; n = n.N) {
619
+ for (let e2 = n.I; e2 !== null; e2 = e2.p) t(e2.h);
620
+ }
621
+ }
622
+ function settlePendingSource(e) {
623
+ let t = false;
624
+ const n = /* @__PURE__ */ new Set();
625
+ const settle = (i) => {
626
+ if (n.has(i) || !removePendingSource(i, e)) return;
627
+ n.add(i);
628
+ i.Ee = clock;
629
+ const r = i.Ie ?? i.pe?.values().next().value;
630
+ if (r) {
631
+ setPendingError(i, r);
632
+ updatePendingSignal(i);
633
+ } else {
634
+ i.Se &= ~STATUS_PENDING;
635
+ setPendingError(i);
636
+ updatePendingSignal(i);
637
+ if (i.he) {
638
+ if (i.W === EFFECT_TRACKED) {
639
+ const e2 = i;
640
+ if (!e2.H) {
641
+ e2.H = true;
642
+ e2.F.enqueue(EFFECT_USER, e2.M);
643
+ }
644
+ } else {
645
+ const e2 = i.O & REACTIVE_ZOMBIE ? zombieQueue : dirtyQueue;
646
+ if (e2.P > i.o) e2.P = i.o;
647
+ insertIntoHeap(i, e2);
648
+ }
649
+ t = true;
650
+ }
651
+ i.he = false;
652
+ }
653
+ forEachDependent(i, settle);
654
+ };
655
+ forEachDependent(e, settle);
656
+ if (t) schedule();
499
657
  }
500
658
  function handleAsync(e, t, n) {
501
659
  const i = typeof t === "object" && t !== null;
502
660
  const r = i && untrack(() => t[Symbol.asyncIterator]);
503
661
  const s = !r && i && untrack(() => typeof t.then === "function");
504
662
  if (!s && !r) {
505
- e.Ie = null;
663
+ e.Ae = null;
506
664
  return t;
507
665
  }
508
- e.Ie = t;
666
+ e.Ae = t;
509
667
  let o;
510
668
  const handleError = (n2) => {
511
- if (e.Ie !== t) return;
512
- globalQueue.initTransition(e.ne);
669
+ if (e.Ae !== t) return;
670
+ globalQueue.initTransition(resolveTransition(e));
513
671
  notifyStatus(e, n2 instanceof NotReadyError ? STATUS_PENDING : STATUS_ERROR, n2);
514
- e.J = clock;
672
+ e.Ee = clock;
515
673
  };
516
674
  const asyncWrite = (i2, r2) => {
517
- if (e.Ie !== t) return;
675
+ if (e.Ae !== t) return;
518
676
  if (e.O & (REACTIVE_DIRTY | REACTIVE_OPTIMISTIC_DIRTY)) return;
519
- globalQueue.initTransition(e.ne);
677
+ globalQueue.initTransition(resolveTransition(e));
520
678
  clearStatus(e);
521
679
  const s2 = resolveLane(e);
522
- if (s2) s2.U.delete(e);
680
+ if (s2) s2.k.delete(e);
523
681
  if (n) n(i2);
524
- else if (e._e) {
525
- const t2 = e.ae !== NOT_PENDING;
526
- if (e.L) e.ae = i2;
527
- if (!t2) {
528
- e.fe = i2;
682
+ else if (e.ee !== void 0) {
683
+ if (e.ee !== void 0 && e.ee !== NOT_PENDING) e.X = i2;
684
+ else {
685
+ e.J = i2;
529
686
  insertSubs(e);
530
687
  }
531
- e.J = clock;
688
+ e.Ee = clock;
532
689
  } else if (s2) {
533
- const t2 = e.fe;
534
- const n2 = e.pe;
690
+ const t2 = e.J;
691
+ const n2 = e.Ne;
535
692
  if (!n2 || !n2(i2, t2)) {
536
- e.fe = i2;
537
- e.J = clock;
538
- if (e.he) {
539
- setSignal(e.he, i2);
693
+ e.J = i2;
694
+ e.Ee = clock;
695
+ if (e.Pe) {
696
+ setSignal(e.Pe, i2);
540
697
  }
541
698
  insertSubs(e, true);
542
699
  }
543
700
  } else {
544
701
  setSignal(e, () => i2);
545
702
  }
703
+ settlePendingSource(e);
546
704
  schedule();
547
705
  flush();
548
706
  r2?.();
@@ -562,7 +720,7 @@ function handleAsync(e, t, n) {
562
720
  );
563
721
  i2 = false;
564
722
  if (!n2) {
565
- globalQueue.initTransition(e.ne);
723
+ globalQueue.initTransition(resolveTransition(e));
566
724
  throw new NotReadyError(context);
567
725
  }
568
726
  }
@@ -596,93 +754,66 @@ function handleAsync(e, t, n) {
596
754
  };
597
755
  const r2 = iterate();
598
756
  if (!i2 && !r2) {
599
- globalQueue.initTransition(e.ne);
757
+ globalQueue.initTransition(resolveTransition(e));
600
758
  throw new NotReadyError(context);
601
759
  }
602
760
  }
603
761
  return o;
604
762
  }
605
- function clearStatus(e) {
606
- e.Ee = e.Ee & STATUS_UNINITIALIZED;
607
- e.X = null;
763
+ function clearStatus(e, t = false) {
764
+ clearPendingSources(e);
765
+ e.he = false;
766
+ e.Se = t ? 0 : e.Se & STATUS_UNINITIALIZED;
767
+ setPendingError(e);
608
768
  updatePendingSignal(e);
609
- e.Ae?.();
769
+ e.ge?.();
610
770
  }
611
771
  function notifyStatus(e, t, n, i, r) {
612
772
  if (t === STATUS_ERROR && !(n instanceof StatusError) && !(n instanceof NotReadyError))
613
773
  n = new StatusError(e, n);
614
- const s = n instanceof NotReadyError && n.source === e;
615
- const o = t === STATUS_PENDING && e._e && !s;
616
- const u = o && hasActiveOverride(e);
774
+ const s = t === STATUS_PENDING && n instanceof NotReadyError ? n.source : void 0;
775
+ const o = s === e;
776
+ const u = t === STATUS_PENDING && e.ee !== void 0 && !o;
777
+ const c = u && hasActiveOverride(e);
617
778
  if (!i) {
618
- e.Ee = t | (t !== STATUS_ERROR ? e.Ee & STATUS_UNINITIALIZED : 0);
619
- e.X = n;
779
+ if (t === STATUS_PENDING && s) {
780
+ addPendingSource(e, s);
781
+ e.Se = STATUS_PENDING | e.Se & STATUS_UNINITIALIZED;
782
+ setPendingError(e, s, n);
783
+ } else {
784
+ clearPendingSources(e);
785
+ e.Se = t | (t !== STATUS_ERROR ? e.Se & STATUS_UNINITIALIZED : 0);
786
+ e.le = n;
787
+ }
620
788
  updatePendingSignal(e);
621
789
  }
622
790
  if (r && !i) {
623
791
  assignOrMergeLane(e, r);
624
792
  }
625
- if (u && activeTransition && n instanceof NotReadyError) {
626
- const e2 = n.source;
627
- if (!activeTransition.q.includes(e2)) {
628
- activeTransition.q.push(e2);
793
+ const a = i || c;
794
+ const f = i || u ? void 0 : r;
795
+ if (e.ge) {
796
+ if (i && t === STATUS_PENDING) {
797
+ return;
629
798
  }
630
- }
631
- const c = i || u;
632
- const l = i || o ? void 0 : r;
633
- if (e.Ae) {
634
- if (c) {
635
- e.Ae(t, n);
799
+ if (a) {
800
+ e.ge(t, n);
636
801
  } else {
637
- e.Ae();
802
+ e.ge();
638
803
  }
639
804
  return;
640
805
  }
641
- for (let i2 = e.I; i2 !== null; i2 = i2.p) {
642
- i2.h.J = clock;
643
- if (i2.h.X !== n) {
644
- !i2.h.ne && globalQueue.F.push(i2.h);
645
- notifyStatus(i2.h, t, n, c, l);
646
- }
647
- }
648
- for (let i2 = e.A; i2 !== null; i2 = i2.P) {
649
- for (let e2 = i2.I; e2 !== null; e2 = e2.p) {
650
- e2.h.J = clock;
651
- if (e2.h.X !== n) {
652
- !e2.h.ne && globalQueue.F.push(e2.h);
653
- notifyStatus(e2.h, t, n, c, l);
654
- }
655
- }
656
- }
657
- }
658
- function unlinkSubs(e) {
659
- const t = e.V;
660
- const n = e.D;
661
- const i = e.p;
662
- const r = e.Pe;
663
- if (i !== null) i.Pe = r;
664
- else t.Ne = r;
665
- if (r !== null) r.p = i;
666
- else {
667
- t.I = i;
668
- if (i === null) {
669
- t.ge?.();
670
- t.L && !t.Ce && !(t.O & REACTIVE_ZOMBIE) && unobserved(t);
806
+ forEachDependent(e, (e2) => {
807
+ e2.Ee = clock;
808
+ if (t === STATUS_PENDING && s && e2.Ie !== s && !e2.pe?.has(s) || t !== STATUS_PENDING && (e2.le !== n || e2.Ie || e2.pe)) {
809
+ if (!a && !e2.K) globalQueue.se.push(e2);
810
+ notifyStatus(e2, t, n, a, f);
671
811
  }
672
- }
673
- return n;
674
- }
675
- function unobserved(e) {
676
- deleteFromHeap(e, e.O & REACTIVE_ZOMBIE ? zombieQueue : dirtyQueue);
677
- let t = e.C;
678
- while (t !== null) {
679
- t = unlinkSubs(t);
680
- }
681
- e.C = null;
682
- disposeChildren(e, true);
812
+ });
683
813
  }
814
+ var externalSourceConfig = null;
684
815
  function markDisposal(e) {
685
- let t = e.De;
816
+ let t = e.Ce;
686
817
  while (t) {
687
818
  t.O |= REACTIVE_ZOMBIE;
688
819
  if (t.O & REACTIVE_IN_HEAP) {
@@ -690,15 +821,15 @@ function markDisposal(e) {
690
821
  insertIntoHeap(t, zombieQueue);
691
822
  }
692
823
  markDisposal(t);
693
- t = t.ve;
824
+ t = t.De;
694
825
  }
695
826
  }
696
827
  function disposeChildren(e, t = false, n) {
697
828
  if (e.O & REACTIVE_DISPOSED) return;
698
829
  if (t) e.O = REACTIVE_DISPOSED;
699
- let i = n ? e.be : e.De;
830
+ let i = n ? e.me : e.Ce;
700
831
  while (i) {
701
- const e2 = i.ve;
832
+ const e2 = i.De;
702
833
  if (i.C) {
703
834
  const e3 = i;
704
835
  deleteFromHeap(e3, e3.O & REACTIVE_ZOMBIE ? zombieQueue : dirtyQueue);
@@ -713,16 +844,15 @@ function disposeChildren(e, t = false, n) {
713
844
  i = e2;
714
845
  }
715
846
  if (n) {
716
- e.be = null;
847
+ e.me = null;
717
848
  } else {
718
- e.De = null;
719
- e.ve = null;
720
- e.we = 0;
849
+ e.Ce = null;
850
+ e.ve = 0;
721
851
  }
722
852
  runDisposal(e, n);
723
853
  }
724
854
  function runDisposal(e, t) {
725
- let n = t ? e.Ve : e.me;
855
+ let n = t ? e.we : e.be;
726
856
  if (!n) return;
727
857
  if (Array.isArray(n)) {
728
858
  for (let e2 = 0; e2 < n.length; e2++) {
@@ -732,41 +862,67 @@ function runDisposal(e, t) {
732
862
  } else {
733
863
  n.call(n);
734
864
  }
735
- t ? e.Ve = null : e.me = null;
865
+ t ? e.we = null : e.be = null;
736
866
  }
737
- GlobalQueue.K = recompute;
738
- GlobalQueue.Y = disposeChildren;
867
+ function unlinkSubs(e) {
868
+ const t = e.m;
869
+ const n = e.D;
870
+ const i = e.p;
871
+ const r = e.Ue;
872
+ if (i !== null) i.Ue = r;
873
+ else t.ke = r;
874
+ if (r !== null) r.p = i;
875
+ else {
876
+ t.I = i;
877
+ if (i === null) {
878
+ t.Ge?.();
879
+ t.L && !t.xe && !(t.O & REACTIVE_ZOMBIE) && unobserved(t);
880
+ }
881
+ }
882
+ return n;
883
+ }
884
+ function unobserved(e) {
885
+ deleteFromHeap(e, e.O & REACTIVE_ZOMBIE ? zombieQueue : dirtyQueue);
886
+ let t = e.C;
887
+ while (t !== null) {
888
+ t = unlinkSubs(t);
889
+ }
890
+ e.C = null;
891
+ disposeChildren(e, true);
892
+ }
893
+ GlobalQueue.oe = recompute;
894
+ GlobalQueue.ue = disposeChildren;
739
895
  var tracking = false;
740
896
  var context = null;
741
897
  var currentOptimisticLane = null;
742
898
  function recompute(e, t = false) {
743
- const n = e.oe;
899
+ const n = e.W;
744
900
  if (!t) {
745
- if (e.ne && (!n || activeTransition) && activeTransition !== e.ne)
746
- globalQueue.initTransition(e.ne);
901
+ if (e.K && (!n || activeTransition) && activeTransition !== e.K)
902
+ globalQueue.initTransition(e.K);
747
903
  deleteFromHeap(e, e.O & REACTIVE_ZOMBIE ? zombieQueue : dirtyQueue);
748
- if (e.ne || n === EFFECT_TRACKED) disposeChildren(e);
904
+ if (e.K || n === EFFECT_TRACKED) disposeChildren(e);
749
905
  else {
750
906
  markDisposal(e);
751
- e.Ve = e.me;
752
- e.be = e.De;
753
- e.me = null;
754
- e.De = null;
755
- e.we = 0;
907
+ e.we = e.be;
908
+ e.me = e.Ce;
909
+ e.be = null;
910
+ e.Ce = null;
911
+ e.ve = 0;
756
912
  }
757
913
  }
758
914
  const i = !!(e.O & REACTIVE_OPTIMISTIC_DIRTY);
759
- const r = hasActiveOverride(e);
760
- const s = !!(e.Ee & STATUS_PENDING);
915
+ const r = e.ee !== void 0 && e.ee !== NOT_PENDING;
916
+ const s = !!(e.Se & STATUS_PENDING);
761
917
  const o = context;
762
918
  context = e;
763
919
  e.ye = null;
764
920
  e.O = REACTIVE_RECOMPUTING_DEPS;
765
- e.J = clock;
766
- let u = e.ae === NOT_PENDING ? e.fe : e.ae;
921
+ e.Ee = clock;
922
+ let u = e.X === NOT_PENDING ? e.J : e.X;
767
923
  let c = e.o;
768
- let l = tracking;
769
- let a = currentOptimisticLane;
924
+ let a = tracking;
925
+ let f = currentOptimisticLane;
770
926
  tracking = true;
771
927
  if (i) {
772
928
  const t2 = resolveLane(e);
@@ -774,148 +930,153 @@ function recompute(e, t = false) {
774
930
  }
775
931
  try {
776
932
  u = handleAsync(e, e.L(u));
777
- clearStatus(e);
778
- const t2 = resolveLane(e);
779
- if (t2) {
780
- t2.U.delete(e);
781
- updatePendingSignal(t2.Te);
933
+ clearStatus(e, t);
934
+ const n2 = resolveLane(e);
935
+ if (n2) {
936
+ n2.k.delete(e);
937
+ updatePendingSignal(n2.te);
782
938
  }
783
939
  } catch (t2) {
784
940
  if (t2 instanceof NotReadyError && currentOptimisticLane) {
785
941
  const t3 = findLane(currentOptimisticLane);
786
- if (t3.Te !== e) {
787
- t3.U.add(e);
788
- e.ie = t3;
789
- updatePendingSignal(t3.Te);
942
+ if (t3.te !== e) {
943
+ t3.k.add(e);
944
+ e.q = t3;
945
+ updatePendingSignal(t3.te);
790
946
  }
791
947
  }
948
+ if (t2 instanceof NotReadyError) e.he = true;
792
949
  notifyStatus(
793
950
  e,
794
951
  t2 instanceof NotReadyError ? STATUS_PENDING : STATUS_ERROR,
795
952
  t2,
796
953
  void 0,
797
- t2 instanceof NotReadyError ? e.ie : void 0
954
+ t2 instanceof NotReadyError ? e.q : void 0
798
955
  );
799
956
  } finally {
800
- tracking = l;
957
+ tracking = a;
801
958
  e.O = REACTIVE_NONE | (t ? e.O & REACTIVE_SNAPSHOT_STALE : 0);
802
959
  context = o;
803
960
  }
804
- if (!e.X) {
961
+ if (!e.le) {
805
962
  const o2 = e.ye;
806
- let l2 = o2 !== null ? o2.D : e.C;
807
- if (l2 !== null) {
963
+ let a2 = o2 !== null ? o2.D : e.C;
964
+ if (a2 !== null) {
808
965
  do {
809
- l2 = unlinkSubs(l2);
810
- } while (l2 !== null);
966
+ a2 = unlinkSubs(a2);
967
+ } while (a2 !== null);
811
968
  if (o2 !== null) o2.D = null;
812
969
  else e.C = null;
813
970
  }
814
- const a2 = r ? e.fe : e.ae === NOT_PENDING ? e.fe : e.ae;
815
- const f = !e.pe || !e.pe(a2, u);
816
- if (f) {
817
- const o3 = r ? e.fe : void 0;
818
- if (t || n && activeTransition !== e.ne || i) e.fe = u;
819
- else e.ae = u;
820
- if (r && !i && s) {
821
- const t2 = e.Oe || 0;
822
- const n2 = e.Re || 0;
823
- if (t2 <= n2) e.fe = u;
824
- }
825
- if (!r || i || e.fe !== o3) {
826
- insertSubs(e, i || r);
827
- }
971
+ const f2 = r ? e.ee : e.X === NOT_PENDING ? e.J : e.X;
972
+ const l = !e.Ne || !e.Ne(f2, u);
973
+ if (l) {
974
+ const o3 = r ? e.ee : void 0;
975
+ if (t || n && activeTransition !== e.K || i) {
976
+ e.J = u;
977
+ if (r && i) {
978
+ e.ee = u;
979
+ e.X = u;
980
+ }
981
+ } else e.X = u;
982
+ if (r && !i && s && !e._e) e.ee = u;
983
+ if (!r || i || e.ee !== o3) insertSubs(e, i || r);
828
984
  } else if (r) {
829
- e.ae = u;
985
+ e.X = u;
830
986
  } else if (e.o != c) {
831
987
  for (let t2 = e.I; t2 !== null; t2 = t2.p) {
832
988
  insertIntoHeapHeight(t2.h, t2.h.O & REACTIVE_ZOMBIE ? zombieQueue : dirtyQueue);
833
989
  }
834
990
  }
835
991
  }
836
- currentOptimisticLane = a;
837
- (!t || e.Ee & STATUS_PENDING) && !e.ne && !(activeTransition && e._e) && globalQueue.F.push(e);
838
- e.ne && n && activeTransition !== e.ne && runInTransition(e.ne, () => recompute(e));
992
+ currentOptimisticLane = f;
993
+ (!t || e.Se & STATUS_PENDING) && !e.K && !(activeTransition && r) && globalQueue.se.push(e);
994
+ e.K && n && activeTransition !== e.K && runInTransition(e.K, () => recompute(e));
839
995
  }
840
996
  function untrack(e, t) {
841
- if (!tracking && true) return e();
997
+ if (!externalSourceConfig && !tracking && true) return e();
842
998
  const n = tracking;
843
999
  tracking = false;
844
1000
  try {
1001
+ if (externalSourceConfig) return externalSourceConfig.untrack(e);
845
1002
  return e();
846
1003
  } finally {
847
1004
  tracking = n;
848
1005
  }
849
1006
  }
850
1007
  function setSignal(e, t) {
851
- if (e.ne && activeTransition !== e.ne) globalQueue.initTransition(e.ne);
852
- const n = e._e && !projectionWriteActive;
853
- const i = n ? e.fe : e.ae === NOT_PENDING ? e.fe : e.ae;
854
- if (typeof t === "function") t = t(i);
855
- const r = !e.pe || !e.pe(i, t) || !!(e.Ee & STATUS_UNINITIALIZED);
856
- if (!r) {
857
- if (n && e.ae !== NOT_PENDING && e.L) {
1008
+ if (e.K && activeTransition !== e.K) globalQueue.initTransition(e.K);
1009
+ const n = e.ee !== void 0 && !projectionWriteActive;
1010
+ const i = e.ee !== void 0 && e.ee !== NOT_PENDING;
1011
+ const r = n ? i ? e.ee : e.J : e.X === NOT_PENDING ? e.J : e.X;
1012
+ if (typeof t === "function") t = t(r);
1013
+ const s = !e.Ne || !e.Ne(r, t) || !!(e.Se & STATUS_UNINITIALIZED);
1014
+ if (!s) {
1015
+ if (n && i && e.L) {
858
1016
  insertSubs(e, true);
859
1017
  schedule();
860
1018
  }
861
1019
  return t;
862
1020
  }
863
1021
  if (n) {
864
- const n2 = globalQueue.$.includes(e);
865
- if (e.ne && n2) {
866
- globalQueue.initTransition(e.ne);
867
- }
868
- if (e.ae === NOT_PENDING) {
869
- e.ae = e.fe;
870
- }
871
- if (!n2) {
872
- globalQueue.$.push(e);
1022
+ const n2 = e.ee === NOT_PENDING;
1023
+ if (!n2) globalQueue.initTransition(resolveTransition(e));
1024
+ if (n2) {
1025
+ e.X = e.J;
1026
+ globalQueue.Y.push(e);
873
1027
  }
874
- e.Oe = (e.Oe || 0) + 1;
1028
+ e._e = true;
875
1029
  const i2 = getOrCreateLane(e);
876
- e.ie = i2;
877
- e.fe = t;
1030
+ e.q = i2;
1031
+ e.ee = t;
878
1032
  } else {
879
- if (e.ae === NOT_PENDING) globalQueue.F.push(e);
880
- e.ae = t;
1033
+ if (e.X === NOT_PENDING) globalQueue.se.push(e);
1034
+ e.X = t;
881
1035
  }
882
1036
  updatePendingSignal(e);
883
- if (e.he) {
884
- setSignal(e.he, t);
1037
+ if (e.Pe) {
1038
+ setSignal(e.Pe, t);
885
1039
  }
886
- e.J = clock;
1040
+ e.Ee = clock;
887
1041
  insertSubs(e, n);
888
1042
  schedule();
889
1043
  return t;
890
1044
  }
891
1045
  function computePendingState(e) {
892
1046
  const t = e;
893
- if (e._e && e.ae !== NOT_PENDING) {
894
- if (t.Ee & STATUS_PENDING && !(t.Ee & STATUS_UNINITIALIZED)) return true;
895
- if (e.de) {
896
- const t2 = e.ie ? findLane(e.ie) : null;
897
- return !!(t2 && t2.U.size > 0);
1047
+ const n = e.V;
1048
+ if (n && e.X !== NOT_PENDING) {
1049
+ return !n.Ae && !(n.Se & STATUS_PENDING);
1050
+ }
1051
+ if (e.ee !== void 0 && e.ee !== NOT_PENDING) {
1052
+ if (t.Se & STATUS_PENDING && !(t.Se & STATUS_UNINITIALIZED)) return true;
1053
+ if (e.Re) {
1054
+ const t2 = e.q ? findLane(e.q) : null;
1055
+ return !!(t2 && t2.k.size > 0);
898
1056
  }
899
1057
  return true;
900
1058
  }
901
- if (e.ae !== NOT_PENDING && !(t.Ee & STATUS_UNINITIALIZED)) return true;
902
- return !!(t.Ee & STATUS_PENDING && !(t.Ee & STATUS_UNINITIALIZED));
1059
+ if (e.ee !== void 0 && e.ee === NOT_PENDING && !e.Re) {
1060
+ return false;
1061
+ }
1062
+ if (e.X !== NOT_PENDING && !(t.Se & STATUS_UNINITIALIZED)) return true;
1063
+ return !!(t.Se & STATUS_PENDING && !(t.Se & STATUS_UNINITIALIZED));
903
1064
  }
904
1065
  function updatePendingSignal(e) {
905
- if (e.Me) {
1066
+ if (e.Qe) {
906
1067
  const t = computePendingState(e);
907
- const n = e.Me;
1068
+ const n = e.Qe;
908
1069
  setSignal(n, t);
909
- if (!t && n.ie) {
1070
+ if (!t && n.q) {
910
1071
  const t2 = resolveLane(e);
911
- if (t2 && t2.U.size > 0) {
912
- const e2 = findLane(n.ie);
1072
+ if (t2 && t2.k.size > 0) {
1073
+ const e2 = findLane(n.q);
913
1074
  if (e2 !== t2) {
914
1075
  mergeLanes(t2, e2);
915
1076
  }
916
1077
  }
917
1078
  signalLanes.delete(n);
918
- n.ie = void 0;
1079
+ n.q = void 0;
919
1080
  }
920
1081
  }
921
1082
  }
@@ -984,7 +1145,7 @@ var storePath = Object.assign(
984
1145
  { DELETE }
985
1146
  );
986
1147
 
987
- // ../../node_modules/.pnpm/@solidjs+web@2.0.0-beta.2_@solidjs+signals@0.12.0_solid-js@2.0.0-beta.2/node_modules/@solidjs/web/dist/web.js
1148
+ // ../../node_modules/.pnpm/@solidjs+web@2.0.0-beta.4_@solidjs+signals@0.13.6_solid-js@2.0.0-beta.4/node_modules/@solidjs/web/dist/web.js
988
1149
  var isServer = false;
989
1150
  var isDev = false;
990
1151
 
@@ -1018,10 +1179,10 @@ function clientOnly(fn) {
1018
1179
  }
1019
1180
 
1020
1181
  // src/index.tsx
1021
- var SolidQueryDevtools = isDev ? clientOnly(() => import("./devtools/MU7AYS7J.jsx")) : function() {
1182
+ var SolidQueryDevtools = isDev ? clientOnly(() => import("./devtools/R2AGYIME.jsx")) : function() {
1022
1183
  return null;
1023
1184
  };
1024
- var SolidQueryDevtoolsPanel = isDev ? clientOnly(() => import("./devtoolsPanel/NLCUKFXJ.jsx")) : function() {
1185
+ var SolidQueryDevtoolsPanel = isDev ? clientOnly(() => import("./devtoolsPanel/QZBU22C7.jsx")) : function() {
1025
1186
  return null;
1026
1187
  };
1027
1188
  export {