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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.jsx CHANGED
@@ -1,16 +1,1002 @@
1
- // src/index.tsx
2
- import { isDev } from "solid-js/web";
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
2
+ import { createRenderEffect, createMemo as createMemo$1, sharedConfig, untrack as untrack2, runWithOwner, flatten, createRoot, omit, enableHydration } from "solid-js";
3
+ import { Errored, For, Hydration, Loading, Match, NoHydration, Show, Switch, createComponent, getOwner, merge, untrack as untrack3 } from "solid-js";
4
+
5
+ // ../../node_modules/.pnpm/@solidjs+signals@0.12.0/node_modules/@solidjs/signals/dist/prod.js
6
+ var NotReadyError = class extends Error {
7
+ source;
8
+ constructor(e) {
9
+ super();
10
+ this.source = e;
11
+ }
12
+ };
13
+ var StatusError = class extends Error {
14
+ source;
15
+ constructor(e, t) {
16
+ super(t instanceof Error ? t.message : String(t), { cause: t });
17
+ this.source = e;
18
+ }
19
+ };
20
+ var REACTIVE_NONE = 0;
21
+ var REACTIVE_CHECK = 1 << 0;
22
+ var REACTIVE_DIRTY = 1 << 1;
23
+ var REACTIVE_RECOMPUTING_DEPS = 1 << 2;
24
+ var REACTIVE_IN_HEAP = 1 << 3;
25
+ var REACTIVE_IN_HEAP_HEIGHT = 1 << 4;
26
+ var REACTIVE_ZOMBIE = 1 << 5;
27
+ var REACTIVE_DISPOSED = 1 << 6;
28
+ var REACTIVE_OPTIMISTIC_DIRTY = 1 << 7;
29
+ var REACTIVE_SNAPSHOT_STALE = 1 << 8;
30
+ var REACTIVE_LAZY = 1 << 9;
31
+ var STATUS_PENDING = 1 << 0;
32
+ var STATUS_ERROR = 1 << 1;
33
+ var STATUS_UNINITIALIZED = 1 << 2;
34
+ var EFFECT_RENDER = 1;
35
+ var EFFECT_USER = 2;
36
+ var EFFECT_TRACKED = 3;
37
+ var NOT_PENDING = {};
38
+ function actualInsertIntoHeap(e, t) {
39
+ const n = (e.i?.t ? e.i.u?.o : e.i?.o) ?? -1;
40
+ if (n >= e.o) e.o = n + 1;
41
+ const i = e.o;
42
+ const r = t.l[i];
43
+ if (r === void 0) t.l[i] = e;
44
+ else {
45
+ const t2 = r.T;
46
+ t2.S = e;
47
+ e.T = t2;
48
+ r.T = e;
49
+ }
50
+ if (i > t.R) t.R = i;
51
+ }
52
+ function insertIntoHeap(e, t) {
53
+ let n = e.O;
54
+ if (n & (REACTIVE_IN_HEAP | REACTIVE_RECOMPUTING_DEPS)) return;
55
+ if (n & REACTIVE_CHECK) {
56
+ e.O = n & -4 | REACTIVE_DIRTY | REACTIVE_IN_HEAP;
57
+ } else e.O = n | REACTIVE_IN_HEAP;
58
+ if (!(n & REACTIVE_IN_HEAP_HEIGHT)) actualInsertIntoHeap(e, t);
59
+ }
60
+ function insertIntoHeapHeight(e, t) {
61
+ let n = e.O;
62
+ if (n & (REACTIVE_IN_HEAP | REACTIVE_RECOMPUTING_DEPS | REACTIVE_IN_HEAP_HEIGHT)) return;
63
+ e.O = n | REACTIVE_IN_HEAP_HEIGHT;
64
+ actualInsertIntoHeap(e, t);
65
+ }
66
+ function deleteFromHeap(e, t) {
67
+ const n = e.O;
68
+ if (!(n & (REACTIVE_IN_HEAP | REACTIVE_IN_HEAP_HEIGHT))) return;
69
+ e.O = n & -25;
70
+ const i = e.o;
71
+ if (e.T === e) t.l[i] = void 0;
72
+ else {
73
+ const n2 = e.S;
74
+ const r = t.l[i];
75
+ const s = n2 ?? r;
76
+ if (e === r) t.l[i] = n2;
77
+ else e.T.S = n2;
78
+ s.T = e.T;
79
+ }
80
+ e.T = e;
81
+ e.S = void 0;
82
+ }
83
+ function runHeap(e, t) {
84
+ e._ = false;
85
+ for (e.N = 0; e.N <= e.R; e.N++) {
86
+ let n = e.l[e.N];
87
+ while (n !== void 0) {
88
+ if (n.O & REACTIVE_IN_HEAP) t(n);
89
+ else adjustHeight(n, e);
90
+ n = e.l[e.N];
91
+ }
92
+ }
93
+ e.R = 0;
94
+ }
95
+ function adjustHeight(e, t) {
96
+ deleteFromHeap(e, t);
97
+ let n = e.o;
98
+ for (let t2 = e.C; t2; t2 = t2.D) {
99
+ const e2 = t2.V;
100
+ const i = e2.m || e2;
101
+ if (i.L && i.o >= n) n = i.o + 1;
102
+ }
103
+ if (e.o !== n) {
104
+ e.o = n;
105
+ for (let n2 = e.I; n2 !== null; n2 = n2.p) {
106
+ insertIntoHeapHeight(n2.h, t);
107
+ }
108
+ }
109
+ }
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 };
113
+ var clock = 0;
114
+ var activeTransition = null;
115
+ var scheduled = false;
116
+ var projectionWriteActive = false;
117
+ function runLaneEffects(e) {
118
+ for (const t of activeLanes) {
119
+ if (t.k || t.U.size > 0) continue;
120
+ const n = t.W[e - 1];
121
+ if (n.length) {
122
+ t.W[e - 1] = [];
123
+ runQueue(n, e);
124
+ }
125
+ }
126
+ }
127
+ function schedule() {
128
+ if (scheduled) return;
129
+ scheduled = true;
130
+ if (!globalQueue.H && !projectionWriteActive) queueMicrotask(flush);
131
+ }
132
+ var Queue = class {
133
+ i = null;
134
+ G = [[], []];
135
+ M = [];
136
+ created = clock;
137
+ addChild(e) {
138
+ this.M.push(e);
139
+ e.i = this;
140
+ }
141
+ removeChild(e) {
142
+ const t = this.M.indexOf(e);
143
+ if (t >= 0) {
144
+ this.M.splice(t, 1);
145
+ e.i = null;
146
+ }
147
+ }
148
+ notify(e, t, n, i) {
149
+ if (this.i) return this.i.notify(e, t, n, i);
150
+ return false;
151
+ }
152
+ run(e) {
153
+ if (this.G[e - 1].length) {
154
+ const t = this.G[e - 1];
155
+ this.G[e - 1] = [];
156
+ runQueue(t, e);
157
+ }
158
+ for (let t = 0; t < this.M.length; t++) this.M[t].run?.(e);
159
+ }
160
+ enqueue(e, t) {
161
+ if (e) {
162
+ if (currentOptimisticLane) {
163
+ const n = findLane(currentOptimisticLane);
164
+ n.W[e - 1].push(t);
165
+ } else {
166
+ this.G[e - 1].push(t);
167
+ }
168
+ }
169
+ schedule();
170
+ }
171
+ 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];
178
+ if (!i) {
179
+ i = { G: [[], []], M: [] };
180
+ e.M[t] = i;
181
+ }
182
+ n.stashQueues(i);
183
+ }
184
+ }
185
+ 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];
191
+ if (i) i.restoreQueues(n);
192
+ }
193
+ }
194
+ };
195
+ 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;
203
+ flush() {
204
+ if (this.H) return;
205
+ this.H = true;
206
+ try {
207
+ runHeap(dirtyQueue, _GlobalQueue.K);
208
+ if (activeTransition) {
209
+ const e = transitionComplete(activeTransition);
210
+ if (!e) {
211
+ let e2 = activeTransition;
212
+ runHeap(zombieQueue, _GlobalQueue.K);
213
+ this.F = [];
214
+ this.$ = [];
215
+ this.j = /* @__PURE__ */ new Set();
216
+ runLaneEffects(EFFECT_RENDER);
217
+ runLaneEffects(EFFECT_USER);
218
+ this.stashQueues(activeTransition.B);
219
+ clock++;
220
+ scheduled = dirtyQueue.R >= dirtyQueue.N;
221
+ reassignPendingTransition(activeTransition.F);
222
+ activeTransition = null;
223
+ finalizePureQueue(null, true);
224
+ return;
225
+ }
226
+ this.F !== activeTransition.F && this.F.push(...activeTransition.F);
227
+ this.restoreQueues(activeTransition.B);
228
+ transitions.delete(activeTransition);
229
+ const t = activeTransition;
230
+ activeTransition = null;
231
+ reassignPendingTransition(this.F);
232
+ finalizePureQueue(t);
233
+ } else {
234
+ if (transitions.size) runHeap(zombieQueue, _GlobalQueue.K);
235
+ finalizePureQueue();
236
+ }
237
+ clock++;
238
+ scheduled = dirtyQueue.R >= dirtyQueue.N;
239
+ runLaneEffects(EFFECT_RENDER);
240
+ this.run(EFFECT_RENDER);
241
+ runLaneEffects(EFFECT_USER);
242
+ this.run(EFFECT_USER);
243
+ } finally {
244
+ this.H = false;
245
+ }
246
+ }
247
+ notify(e, t, n, i) {
248
+ if (t & STATUS_PENDING) {
249
+ 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();
254
+ }
255
+ }
256
+ return true;
257
+ }
258
+ return false;
259
+ }
260
+ initTransition(e) {
261
+ if (e) e = currentTransition(e);
262
+ if (e && e === activeTransition) return;
263
+ if (!e && activeTransition && activeTransition.J === clock) return;
264
+ if (!activeTransition) {
265
+ activeTransition = e ?? {
266
+ J: clock,
267
+ F: [],
268
+ q: [],
269
+ $: [],
270
+ j: /* @__PURE__ */ new Set(),
271
+ ee: [],
272
+ B: { G: [[], []], M: [] },
273
+ te: false
274
+ };
275
+ } else if (e) {
276
+ 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
+ }
286
+ transitions.delete(t);
287
+ activeTransition = e;
288
+ }
289
+ 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);
295
+ }
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);
301
+ }
302
+ this.$ = activeTransition.$;
303
+ for (const e2 of activeLanes) {
304
+ if (!e2.ne) e2.ne = activeTransition;
305
+ }
306
+ for (const e2 of this.j) activeTransition.j.add(e2);
307
+ this.j = activeTransition.j;
308
+ }
309
+ };
310
+ function insertSubs(e, t = false) {
311
+ const n = e.ie || currentOptimisticLane;
312
+ const i = e.re !== void 0;
313
+ for (let r = e.I; r !== null; r = r.p) {
314
+ if (i && r.h.se) {
315
+ r.h.O |= REACTIVE_SNAPSHOT_STALE;
316
+ continue;
317
+ }
318
+ if (t && n) {
319
+ r.h.O |= REACTIVE_OPTIMISTIC_DIRTY;
320
+ assignOrMergeLane(r.h, n);
321
+ } else if (t) {
322
+ r.h.O |= REACTIVE_OPTIMISTIC_DIRTY;
323
+ r.h.ie = void 0;
324
+ }
325
+ 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);
330
+ }
331
+ continue;
332
+ }
333
+ const s = r.h.O & REACTIVE_ZOMBIE ? zombieQueue : dirtyQueue;
334
+ if (s.N > r.h.o) s.N = r.h.o;
335
+ insertIntoHeap(r.h, s);
336
+ }
337
+ }
338
+ function finalizePureQueue(e = null, t = false) {
339
+ let n = !t;
340
+ if (!t) checkBoundaryChildren(globalQueue);
341
+ if (dirtyQueue.R >= dirtyQueue.N) runHeap(dirtyQueue, GlobalQueue.K);
342
+ 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);
372
+ }
373
+ i.clear();
374
+ schedule();
375
+ }
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
+ }
390
+ }
391
+ }
392
+ function checkBoundaryChildren(e) {
393
+ for (const t of e.M) {
394
+ t.checkSources?.();
395
+ checkBoundaryChildren(t);
396
+ }
397
+ }
398
+ function reassignPendingTransition(e) {
399
+ for (let t = 0; t < e.length; t++) {
400
+ e[t].ne = activeTransition;
401
+ }
402
+ }
403
+ var globalQueue = new GlobalQueue();
404
+ function flush() {
405
+ while (scheduled) {
406
+ globalQueue.flush();
407
+ }
408
+ }
409
+ function runQueue(e, t) {
410
+ for (let n = 0; n < e.length; n++) e[n](t);
411
+ }
412
+ function transitionComplete(e) {
413
+ if (e.te) return true;
414
+ if (e.ee.length) return false;
415
+ 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) {
419
+ t = false;
420
+ break;
421
+ }
422
+ }
423
+ t && (e.te = true);
424
+ return t;
425
+ }
426
+ function currentTransition(e) {
427
+ while (e.te && typeof e.te === "object") e = e.te;
428
+ return e;
429
+ }
430
+ function runInTransition(e, t) {
431
+ const n = activeTransition;
432
+ try {
433
+ activeTransition = currentTransition(e);
434
+ return t();
435
+ } finally {
436
+ activeTransition = n;
437
+ }
438
+ }
439
+ var signalLanes = /* @__PURE__ */ new WeakMap();
440
+ var activeLanes = /* @__PURE__ */ new Set();
441
+ function getOrCreateLane(e) {
442
+ let t = signalLanes.get(e);
443
+ if (t) {
444
+ return findLane(t);
445
+ }
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 };
449
+ signalLanes.set(e, t);
450
+ activeLanes.add(t);
451
+ e.Re = e.Oe || 0;
452
+ return t;
453
+ }
454
+ function findLane(e) {
455
+ while (e.k) e = e.k;
456
+ return e;
457
+ }
458
+ function mergeLanes(e, t) {
459
+ e = findLane(e);
460
+ t = findLane(t);
461
+ 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]);
466
+ return e;
467
+ }
468
+ function resolveLane(e) {
469
+ const t = e.ie;
470
+ if (!t) return void 0;
471
+ const n = findLane(t);
472
+ if (activeLanes.has(n)) return n;
473
+ e.ie = void 0;
474
+ return void 0;
475
+ }
476
+ function hasActiveOverride(e) {
477
+ return !!(e._e && e.ae !== NOT_PENDING);
478
+ }
479
+ function assignOrMergeLane(e, t) {
480
+ const n = findLane(t);
481
+ const i = e.ie;
482
+ if (i) {
483
+ if (i.k) {
484
+ e.ie = t;
485
+ return;
486
+ }
487
+ const r = findLane(i);
488
+ if (activeLanes.has(r)) {
489
+ 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) ;
493
+ else mergeLanes(n, r);
494
+ }
495
+ return;
496
+ }
497
+ }
498
+ e.ie = t;
499
+ }
500
+ function handleAsync(e, t, n) {
501
+ const i = typeof t === "object" && t !== null;
502
+ const r = i && untrack(() => t[Symbol.asyncIterator]);
503
+ const s = !r && i && untrack(() => typeof t.then === "function");
504
+ if (!s && !r) {
505
+ e.Ie = null;
506
+ return t;
507
+ }
508
+ e.Ie = t;
509
+ let o;
510
+ const handleError = (n2) => {
511
+ if (e.Ie !== t) return;
512
+ globalQueue.initTransition(e.ne);
513
+ notifyStatus(e, n2 instanceof NotReadyError ? STATUS_PENDING : STATUS_ERROR, n2);
514
+ e.J = clock;
515
+ };
516
+ const asyncWrite = (i2, r2) => {
517
+ if (e.Ie !== t) return;
518
+ if (e.O & (REACTIVE_DIRTY | REACTIVE_OPTIMISTIC_DIRTY)) return;
519
+ globalQueue.initTransition(e.ne);
520
+ clearStatus(e);
521
+ const s2 = resolveLane(e);
522
+ if (s2) s2.U.delete(e);
523
+ 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;
529
+ insertSubs(e);
530
+ }
531
+ e.J = clock;
532
+ } else if (s2) {
533
+ const t2 = e.fe;
534
+ const n2 = e.pe;
535
+ if (!n2 || !n2(i2, t2)) {
536
+ e.fe = i2;
537
+ e.J = clock;
538
+ if (e.he) {
539
+ setSignal(e.he, i2);
540
+ }
541
+ insertSubs(e, true);
542
+ }
543
+ } else {
544
+ setSignal(e, () => i2);
545
+ }
546
+ schedule();
547
+ flush();
548
+ r2?.();
549
+ };
550
+ if (s) {
551
+ let n2 = false, i2 = true;
552
+ t.then(
553
+ (e2) => {
554
+ if (i2) {
555
+ o = e2;
556
+ n2 = true;
557
+ } else asyncWrite(e2);
558
+ },
559
+ (e2) => {
560
+ if (!i2) handleError(e2);
561
+ }
562
+ );
563
+ i2 = false;
564
+ if (!n2) {
565
+ globalQueue.initTransition(e.ne);
566
+ throw new NotReadyError(context);
567
+ }
568
+ }
569
+ if (r) {
570
+ const n2 = t[Symbol.asyncIterator]();
571
+ let i2 = false;
572
+ const iterate = () => {
573
+ let e2, t2 = false, r3 = true;
574
+ n2.next().then(
575
+ (n3) => {
576
+ if (r3) {
577
+ e2 = n3;
578
+ t2 = true;
579
+ } else if (!n3.done) asyncWrite(n3.value, iterate);
580
+ else {
581
+ schedule();
582
+ flush();
583
+ }
584
+ },
585
+ (e3) => {
586
+ if (!r3) handleError(e3);
587
+ }
588
+ );
589
+ r3 = false;
590
+ if (t2 && !e2.done) {
591
+ o = e2.value;
592
+ i2 = true;
593
+ return iterate();
594
+ }
595
+ return t2 && e2.done;
596
+ };
597
+ const r2 = iterate();
598
+ if (!i2 && !r2) {
599
+ globalQueue.initTransition(e.ne);
600
+ throw new NotReadyError(context);
601
+ }
602
+ }
603
+ return o;
604
+ }
605
+ function clearStatus(e) {
606
+ e.Ee = e.Ee & STATUS_UNINITIALIZED;
607
+ e.X = null;
608
+ updatePendingSignal(e);
609
+ e.Ae?.();
610
+ }
611
+ function notifyStatus(e, t, n, i, r) {
612
+ if (t === STATUS_ERROR && !(n instanceof StatusError) && !(n instanceof NotReadyError))
613
+ 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);
617
+ if (!i) {
618
+ e.Ee = t | (t !== STATUS_ERROR ? e.Ee & STATUS_UNINITIALIZED : 0);
619
+ e.X = n;
620
+ updatePendingSignal(e);
621
+ }
622
+ if (r && !i) {
623
+ assignOrMergeLane(e, r);
624
+ }
625
+ if (u && activeTransition && n instanceof NotReadyError) {
626
+ const e2 = n.source;
627
+ if (!activeTransition.q.includes(e2)) {
628
+ activeTransition.q.push(e2);
629
+ }
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);
636
+ } else {
637
+ e.Ae();
638
+ }
639
+ return;
640
+ }
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);
671
+ }
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);
683
+ }
684
+ function markDisposal(e) {
685
+ let t = e.De;
686
+ while (t) {
687
+ t.O |= REACTIVE_ZOMBIE;
688
+ if (t.O & REACTIVE_IN_HEAP) {
689
+ deleteFromHeap(t, dirtyQueue);
690
+ insertIntoHeap(t, zombieQueue);
691
+ }
692
+ markDisposal(t);
693
+ t = t.ve;
694
+ }
695
+ }
696
+ function disposeChildren(e, t = false, n) {
697
+ if (e.O & REACTIVE_DISPOSED) return;
698
+ if (t) e.O = REACTIVE_DISPOSED;
699
+ let i = n ? e.be : e.De;
700
+ while (i) {
701
+ const e2 = i.ve;
702
+ if (i.C) {
703
+ const e3 = i;
704
+ deleteFromHeap(e3, e3.O & REACTIVE_ZOMBIE ? zombieQueue : dirtyQueue);
705
+ let t2 = e3.C;
706
+ do {
707
+ t2 = unlinkSubs(t2);
708
+ } while (t2 !== null);
709
+ e3.C = null;
710
+ e3.ye = null;
711
+ }
712
+ disposeChildren(i, true);
713
+ i = e2;
714
+ }
715
+ if (n) {
716
+ e.be = null;
717
+ } else {
718
+ e.De = null;
719
+ e.ve = null;
720
+ e.we = 0;
721
+ }
722
+ runDisposal(e, n);
723
+ }
724
+ function runDisposal(e, t) {
725
+ let n = t ? e.Ve : e.me;
726
+ if (!n) return;
727
+ if (Array.isArray(n)) {
728
+ for (let e2 = 0; e2 < n.length; e2++) {
729
+ const t2 = n[e2];
730
+ t2.call(t2);
731
+ }
732
+ } else {
733
+ n.call(n);
734
+ }
735
+ t ? e.Ve = null : e.me = null;
736
+ }
737
+ GlobalQueue.K = recompute;
738
+ GlobalQueue.Y = disposeChildren;
739
+ var tracking = false;
740
+ var context = null;
741
+ var currentOptimisticLane = null;
742
+ function recompute(e, t = false) {
743
+ const n = e.oe;
744
+ if (!t) {
745
+ if (e.ne && (!n || activeTransition) && activeTransition !== e.ne)
746
+ globalQueue.initTransition(e.ne);
747
+ deleteFromHeap(e, e.O & REACTIVE_ZOMBIE ? zombieQueue : dirtyQueue);
748
+ if (e.ne || n === EFFECT_TRACKED) disposeChildren(e);
749
+ else {
750
+ markDisposal(e);
751
+ e.Ve = e.me;
752
+ e.be = e.De;
753
+ e.me = null;
754
+ e.De = null;
755
+ e.we = 0;
756
+ }
757
+ }
758
+ const i = !!(e.O & REACTIVE_OPTIMISTIC_DIRTY);
759
+ const r = hasActiveOverride(e);
760
+ const s = !!(e.Ee & STATUS_PENDING);
761
+ const o = context;
762
+ context = e;
763
+ e.ye = null;
764
+ e.O = REACTIVE_RECOMPUTING_DEPS;
765
+ e.J = clock;
766
+ let u = e.ae === NOT_PENDING ? e.fe : e.ae;
767
+ let c = e.o;
768
+ let l = tracking;
769
+ let a = currentOptimisticLane;
770
+ tracking = true;
771
+ if (i) {
772
+ const t2 = resolveLane(e);
773
+ if (t2) currentOptimisticLane = t2;
774
+ }
775
+ try {
776
+ 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);
782
+ }
783
+ } catch (t2) {
784
+ if (t2 instanceof NotReadyError && currentOptimisticLane) {
785
+ const t3 = findLane(currentOptimisticLane);
786
+ if (t3.Te !== e) {
787
+ t3.U.add(e);
788
+ e.ie = t3;
789
+ updatePendingSignal(t3.Te);
790
+ }
791
+ }
792
+ notifyStatus(
793
+ e,
794
+ t2 instanceof NotReadyError ? STATUS_PENDING : STATUS_ERROR,
795
+ t2,
796
+ void 0,
797
+ t2 instanceof NotReadyError ? e.ie : void 0
798
+ );
799
+ } finally {
800
+ tracking = l;
801
+ e.O = REACTIVE_NONE | (t ? e.O & REACTIVE_SNAPSHOT_STALE : 0);
802
+ context = o;
803
+ }
804
+ if (!e.X) {
805
+ const o2 = e.ye;
806
+ let l2 = o2 !== null ? o2.D : e.C;
807
+ if (l2 !== null) {
808
+ do {
809
+ l2 = unlinkSubs(l2);
810
+ } while (l2 !== null);
811
+ if (o2 !== null) o2.D = null;
812
+ else e.C = null;
813
+ }
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
+ }
828
+ } else if (r) {
829
+ e.ae = u;
830
+ } else if (e.o != c) {
831
+ for (let t2 = e.I; t2 !== null; t2 = t2.p) {
832
+ insertIntoHeapHeight(t2.h, t2.h.O & REACTIVE_ZOMBIE ? zombieQueue : dirtyQueue);
833
+ }
834
+ }
835
+ }
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));
839
+ }
840
+ function untrack(e, t) {
841
+ if (!tracking && true) return e();
842
+ const n = tracking;
843
+ tracking = false;
844
+ try {
845
+ return e();
846
+ } finally {
847
+ tracking = n;
848
+ }
849
+ }
850
+ 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) {
858
+ insertSubs(e, true);
859
+ schedule();
860
+ }
861
+ return t;
862
+ }
863
+ 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);
873
+ }
874
+ e.Oe = (e.Oe || 0) + 1;
875
+ const i2 = getOrCreateLane(e);
876
+ e.ie = i2;
877
+ e.fe = t;
878
+ } else {
879
+ if (e.ae === NOT_PENDING) globalQueue.F.push(e);
880
+ e.ae = t;
881
+ }
882
+ updatePendingSignal(e);
883
+ if (e.he) {
884
+ setSignal(e.he, t);
885
+ }
886
+ e.J = clock;
887
+ insertSubs(e, n);
888
+ schedule();
889
+ return t;
890
+ }
891
+ function computePendingState(e) {
892
+ 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);
898
+ }
899
+ return true;
900
+ }
901
+ if (e.ae !== NOT_PENDING && !(t.Ee & STATUS_UNINITIALIZED)) return true;
902
+ return !!(t.Ee & STATUS_PENDING && !(t.Ee & STATUS_UNINITIALIZED));
903
+ }
904
+ function updatePendingSignal(e) {
905
+ if (e.Me) {
906
+ const t = computePendingState(e);
907
+ const n = e.Me;
908
+ setSignal(n, t);
909
+ if (!t && n.ie) {
910
+ const t2 = resolveLane(e);
911
+ if (t2 && t2.U.size > 0) {
912
+ const e2 = findLane(n.ie);
913
+ if (e2 !== t2) {
914
+ mergeLanes(t2, e2);
915
+ }
916
+ }
917
+ signalLanes.delete(n);
918
+ n.ie = void 0;
919
+ }
920
+ }
921
+ }
922
+ function isWrappable(e) {
923
+ return e != null && typeof e === "object" && !Object.isFrozen(e);
924
+ }
925
+ var DELETE = /* @__PURE__ */ Symbol(0);
926
+ function updatePath(e, t, n = 0) {
927
+ let i, r = e;
928
+ if (n < t.length - 1) {
929
+ i = t[n];
930
+ const s2 = typeof i;
931
+ const o = Array.isArray(e);
932
+ if (Array.isArray(i)) {
933
+ for (let r2 = 0; r2 < i.length; r2++) {
934
+ t[n] = i[r2];
935
+ updatePath(e, t, n);
936
+ }
937
+ t[n] = i;
938
+ return;
939
+ } else if (o && s2 === "function") {
940
+ for (let r2 = 0; r2 < e.length; r2++) {
941
+ if (i(e[r2], r2)) {
942
+ t[n] = r2;
943
+ updatePath(e, t, n);
944
+ }
945
+ }
946
+ t[n] = i;
947
+ return;
948
+ } else if (o && s2 === "object") {
949
+ const { from: r2 = 0, to: s3 = e.length - 1, by: o2 = 1 } = i;
950
+ for (let i2 = r2; i2 <= s3; i2 += o2) {
951
+ t[n] = i2;
952
+ updatePath(e, t, n);
953
+ }
954
+ t[n] = i;
955
+ return;
956
+ } else if (n < t.length - 2) {
957
+ updatePath(e[i], t, n + 1);
958
+ return;
959
+ }
960
+ r = e[i];
961
+ }
962
+ let s = t[t.length - 1];
963
+ if (typeof s === "function") {
964
+ s = s(r);
965
+ if (s === r) return;
966
+ }
967
+ if (i === void 0 && s == void 0) return;
968
+ if (s === DELETE) {
969
+ delete e[i];
970
+ } else if (i === void 0 || isWrappable(r) && isWrappable(s) && !Array.isArray(s)) {
971
+ const t2 = i !== void 0 ? e[i] : e;
972
+ const n2 = Object.keys(s);
973
+ for (let e2 = 0; e2 < n2.length; e2++) t2[n2[e2]] = s[n2[e2]];
974
+ } else {
975
+ e[i] = s;
976
+ }
977
+ }
978
+ var storePath = Object.assign(
979
+ function storePath2(...e) {
980
+ return (t) => {
981
+ updatePath(t, e);
982
+ };
983
+ },
984
+ { DELETE }
985
+ );
986
+
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
988
+ var isServer = false;
989
+ var isDev = false;
3
990
 
4
991
  // src/clientOnly.tsx
5
992
  import {
6
- createMemo,
993
+ createMemo as createMemo2,
7
994
  createSignal,
8
- onMount,
9
- sharedConfig,
10
- splitProps,
11
- untrack
995
+ omit as omit2,
996
+ onSettled,
997
+ sharedConfig as sharedConfig2,
998
+ untrack as untrack4
12
999
  } from "solid-js";
13
- import { isServer } from "solid-js/web";
14
1000
  function clientOnly(fn) {
15
1001
  if (isServer)
16
1002
  return (props) => props.fallback;
@@ -19,21 +1005,23 @@ function clientOnly(fn) {
19
1005
  return (props) => {
20
1006
  let Comp;
21
1007
  let m;
22
- const [, rest] = splitProps(props, ["fallback"]);
23
- if ((Comp = comp()) && !sharedConfig.context) return Comp(rest);
24
- const [mounted, setMounted] = createSignal(!sharedConfig.context);
25
- onMount(() => setMounted(true));
26
- return createMemo(
27
- () => (Comp = comp(), m = mounted(), untrack(() => Comp && m ? Comp(rest) : props.fallback))
1008
+ const rest = omit2(props, "fallback");
1009
+ if ((Comp = comp()) && !sharedConfig2.hydrating) return Comp(rest);
1010
+ const [mounted, setMounted] = createSignal(!sharedConfig2.hydrating);
1011
+ onSettled(() => {
1012
+ setMounted(true);
1013
+ });
1014
+ return createMemo2(
1015
+ () => (Comp = comp(), m = mounted(), untrack4(() => Comp && m ? Comp(rest) : props.fallback))
28
1016
  );
29
1017
  };
30
1018
  }
31
1019
 
32
1020
  // src/index.tsx
33
- var SolidQueryDevtools = isDev ? clientOnly(() => import("./devtools/32HRKFKI.jsx")) : function() {
1021
+ var SolidQueryDevtools = isDev ? clientOnly(() => import("./devtools/MU7AYS7J.jsx")) : function() {
34
1022
  return null;
35
1023
  };
36
- var SolidQueryDevtoolsPanel = isDev ? clientOnly(() => import("./devtoolsPanel/NDFIDQLQ.jsx")) : function() {
1024
+ var SolidQueryDevtoolsPanel = isDev ? clientOnly(() => import("./devtoolsPanel/NLCUKFXJ.jsx")) : function() {
37
1025
  return null;
38
1026
  };
39
1027
  export {