@tanstack/solid-query-devtools 6.0.0-beta.3 → 6.0.0-beta.5
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/_tsup-dts-rollup.d.cts +5 -15
- package/build/_tsup-dts-rollup.d.ts +5 -15
- package/build/chunk/5YUDKRGO.js +57 -0
- package/build/chunk/OIFXIFGE.js +59 -0
- package/build/dev.cjs +67 -1272
- package/build/dev.js +3 -3
- package/build/dev.jsx +7 -1218
- package/build/devtools/{R2AGYIME.jsx → 7WZM3IT7.jsx} +15 -13
- package/build/devtools/{BS6AII4K.js → FNDI35UR.js} +20 -20
- package/build/devtools/{IWG4ZJJU.js → T3N3FX25.js} +20 -20
- package/build/devtoolsPanel/{VZGSCV56.js → 5CAQ2WGQ.js} +24 -24
- package/build/devtoolsPanel/{NAMW3JP3.js → DXOBITS6.js} +24 -24
- package/build/devtoolsPanel/{QZBU22C7.jsx → FQC5JHFZ.jsx} +15 -13
- package/build/index.cjs +57 -1228
- package/build/index.js +3 -3
- package/build/index.jsx +7 -1181
- package/package.json +8 -8
- package/src/clientOnly.tsx +2 -1
- package/src/devtools.tsx +21 -17
- package/src/devtoolsPanel.tsx +20 -16
- package/build/chunk/P6IZ7GTW.js +0 -1224
- package/build/chunk/ZANDWIFD.js +0 -1260
package/build/index.jsx
CHANGED
|
@@ -1,1180 +1,6 @@
|
|
|
1
|
-
// ../../node_modules/.pnpm/@solidjs+web@2.0.0-beta.
|
|
2
|
-
import { createRenderEffect, createMemo
|
|
3
|
-
import { Errored, For, Hydration, Loading, Match, NoHydration, Show, Switch, createComponent, getOwner
|
|
4
|
-
|
|
5
|
-
// ../../node_modules/.pnpm/@solidjs+signals@0.13.9/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.P = 0; e.P <= e.R; e.P++) {
|
|
86
|
-
let n = e.l[e.P];
|
|
87
|
-
while (n !== void 0) {
|
|
88
|
-
if (n.O & REACTIVE_IN_HEAP) t(n);
|
|
89
|
-
else adjustHeight(n, e);
|
|
90
|
-
n = e.l[e.P];
|
|
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.m;
|
|
100
|
-
const i = e2.V || 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, P: 0, R: 0 };
|
|
112
|
-
var zombieQueue = { l: new Array(2e3).fill(void 0), _: false, P: 0, R: 0 };
|
|
113
|
-
var clock = 0;
|
|
114
|
-
var activeTransition = null;
|
|
115
|
-
var scheduled = false;
|
|
116
|
-
var projectionWriteActive = false;
|
|
117
|
-
var stashedOptimisticReads = null;
|
|
118
|
-
function runLaneEffects(e) {
|
|
119
|
-
for (const t of activeLanes) {
|
|
120
|
-
if (t.U || t.k.size > 0) continue;
|
|
121
|
-
const n = t.G[e - 1];
|
|
122
|
-
if (n.length) {
|
|
123
|
-
t.G[e - 1] = [];
|
|
124
|
-
runQueue(n, e);
|
|
125
|
-
}
|
|
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
|
-
}
|
|
187
|
-
function schedule() {
|
|
188
|
-
if (scheduled) return;
|
|
189
|
-
scheduled = true;
|
|
190
|
-
if (!globalQueue.ne && !projectionWriteActive) queueMicrotask(flush);
|
|
191
|
-
}
|
|
192
|
-
var Queue = class {
|
|
193
|
-
i = null;
|
|
194
|
-
ie = [[], []];
|
|
195
|
-
re = [];
|
|
196
|
-
created = clock;
|
|
197
|
-
addChild(e) {
|
|
198
|
-
this.re.push(e);
|
|
199
|
-
e.i = this;
|
|
200
|
-
}
|
|
201
|
-
removeChild(e) {
|
|
202
|
-
const t = this.re.indexOf(e);
|
|
203
|
-
if (t >= 0) {
|
|
204
|
-
this.re.splice(t, 1);
|
|
205
|
-
e.i = null;
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
notify(e, t, n, i) {
|
|
209
|
-
if (this.i) return this.i.notify(e, t, n, i);
|
|
210
|
-
return false;
|
|
211
|
-
}
|
|
212
|
-
run(e) {
|
|
213
|
-
if (this.ie[e - 1].length) {
|
|
214
|
-
const t = this.ie[e - 1];
|
|
215
|
-
this.ie[e - 1] = [];
|
|
216
|
-
runQueue(t, e);
|
|
217
|
-
}
|
|
218
|
-
for (let t = 0; t < this.re.length; t++) this.re[t].run?.(e);
|
|
219
|
-
}
|
|
220
|
-
enqueue(e, t) {
|
|
221
|
-
if (e) {
|
|
222
|
-
if (currentOptimisticLane) {
|
|
223
|
-
const n = findLane(currentOptimisticLane);
|
|
224
|
-
n.G[e - 1].push(t);
|
|
225
|
-
} else {
|
|
226
|
-
this.ie[e - 1].push(t);
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
schedule();
|
|
230
|
-
}
|
|
231
|
-
stashQueues(e) {
|
|
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];
|
|
238
|
-
if (!i) {
|
|
239
|
-
i = { ie: [[], []], re: [] };
|
|
240
|
-
e.re[t] = i;
|
|
241
|
-
}
|
|
242
|
-
n.stashQueues(i);
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
restoreQueues(e) {
|
|
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];
|
|
251
|
-
if (i) i.restoreQueues(n);
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
};
|
|
255
|
-
var GlobalQueue = class _GlobalQueue extends Queue {
|
|
256
|
-
ne = false;
|
|
257
|
-
se = [];
|
|
258
|
-
Y = [];
|
|
259
|
-
Z = /* @__PURE__ */ new Set();
|
|
260
|
-
static oe;
|
|
261
|
-
static ue;
|
|
262
|
-
static ce = null;
|
|
263
|
-
flush() {
|
|
264
|
-
if (this.ne) return;
|
|
265
|
-
this.ne = true;
|
|
266
|
-
try {
|
|
267
|
-
runHeap(dirtyQueue, _GlobalQueue.oe);
|
|
268
|
-
if (activeTransition) {
|
|
269
|
-
const e = transitionComplete(activeTransition);
|
|
270
|
-
if (!e) {
|
|
271
|
-
const e2 = activeTransition;
|
|
272
|
-
runHeap(zombieQueue, _GlobalQueue.oe);
|
|
273
|
-
this.se = [];
|
|
274
|
-
this.Y = [];
|
|
275
|
-
this.Z = /* @__PURE__ */ new Set();
|
|
276
|
-
runLaneEffects(EFFECT_RENDER);
|
|
277
|
-
runLaneEffects(EFFECT_USER);
|
|
278
|
-
this.stashQueues(e2.ae);
|
|
279
|
-
clock++;
|
|
280
|
-
scheduled = dirtyQueue.R >= dirtyQueue.P;
|
|
281
|
-
reassignPendingTransition(e2.se);
|
|
282
|
-
activeTransition = null;
|
|
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
|
-
}
|
|
297
|
-
return;
|
|
298
|
-
}
|
|
299
|
-
this.se !== activeTransition.se && this.se.push(...activeTransition.se);
|
|
300
|
-
this.restoreQueues(activeTransition.ae);
|
|
301
|
-
transitions.delete(activeTransition);
|
|
302
|
-
const t = activeTransition;
|
|
303
|
-
activeTransition = null;
|
|
304
|
-
reassignPendingTransition(this.se);
|
|
305
|
-
finalizePureQueue(t);
|
|
306
|
-
} else {
|
|
307
|
-
if (transitions.size) runHeap(zombieQueue, _GlobalQueue.oe);
|
|
308
|
-
finalizePureQueue();
|
|
309
|
-
}
|
|
310
|
-
clock++;
|
|
311
|
-
scheduled = dirtyQueue.R >= dirtyQueue.P;
|
|
312
|
-
runLaneEffects(EFFECT_RENDER);
|
|
313
|
-
this.run(EFFECT_RENDER);
|
|
314
|
-
runLaneEffects(EFFECT_USER);
|
|
315
|
-
this.run(EFFECT_USER);
|
|
316
|
-
} finally {
|
|
317
|
-
this.ne = false;
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
notify(e, t, n, i) {
|
|
321
|
-
if (t & STATUS_PENDING) {
|
|
322
|
-
if (n & STATUS_PENDING) {
|
|
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
|
-
}
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
return true;
|
|
333
|
-
}
|
|
334
|
-
return false;
|
|
335
|
-
}
|
|
336
|
-
initTransition(e) {
|
|
337
|
-
if (e) e = currentTransition(e);
|
|
338
|
-
if (e && e === activeTransition) return;
|
|
339
|
-
if (!e && activeTransition && activeTransition.Ee === clock) return;
|
|
340
|
-
if (!activeTransition) {
|
|
341
|
-
activeTransition = e ?? {
|
|
342
|
-
Ee: clock,
|
|
343
|
-
se: [],
|
|
344
|
-
B: [],
|
|
345
|
-
Y: [],
|
|
346
|
-
Z: /* @__PURE__ */ new Set(),
|
|
347
|
-
j: [],
|
|
348
|
-
ae: { ie: [[], []], re: [] },
|
|
349
|
-
$: false
|
|
350
|
-
};
|
|
351
|
-
} else if (e) {
|
|
352
|
-
const t = activeTransition;
|
|
353
|
-
mergeTransitionState(e, t);
|
|
354
|
-
transitions.delete(t);
|
|
355
|
-
activeTransition = e;
|
|
356
|
-
}
|
|
357
|
-
transitions.add(activeTransition);
|
|
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;
|
|
366
|
-
}
|
|
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;
|
|
374
|
-
}
|
|
375
|
-
for (const e2 of activeLanes) {
|
|
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;
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
};
|
|
384
|
-
function insertSubs(e, t = false) {
|
|
385
|
-
const n = e.q || currentOptimisticLane;
|
|
386
|
-
const i = e.Te !== void 0;
|
|
387
|
-
for (let r = e.I; r !== null; r = r.p) {
|
|
388
|
-
if (i && r.h.de) {
|
|
389
|
-
r.h.O |= REACTIVE_SNAPSHOT_STALE;
|
|
390
|
-
continue;
|
|
391
|
-
}
|
|
392
|
-
if (t && n) {
|
|
393
|
-
r.h.O |= REACTIVE_OPTIMISTIC_DIRTY;
|
|
394
|
-
assignOrMergeLane(r.h, n);
|
|
395
|
-
} else if (t) {
|
|
396
|
-
r.h.O |= REACTIVE_OPTIMISTIC_DIRTY;
|
|
397
|
-
r.h.q = void 0;
|
|
398
|
-
}
|
|
399
|
-
const e2 = r.h;
|
|
400
|
-
if (e2.W === EFFECT_TRACKED) {
|
|
401
|
-
if (!e2.H) {
|
|
402
|
-
e2.H = true;
|
|
403
|
-
e2.F.enqueue(EFFECT_USER, e2.M);
|
|
404
|
-
}
|
|
405
|
-
continue;
|
|
406
|
-
}
|
|
407
|
-
const s = r.h.O & REACTIVE_ZOMBIE ? zombieQueue : dirtyQueue;
|
|
408
|
-
if (s.P > r.h.o) s.P = r.h.o;
|
|
409
|
-
insertIntoHeap(r.h, s);
|
|
410
|
-
}
|
|
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
|
-
}
|
|
426
|
-
function finalizePureQueue(e = null, t = false) {
|
|
427
|
-
const n = !t;
|
|
428
|
-
if (n) commitPendingNodes();
|
|
429
|
-
if (!t) checkBoundaryChildren(globalQueue);
|
|
430
|
-
if (dirtyQueue.R >= dirtyQueue.P) runHeap(dirtyQueue, GlobalQueue.oe);
|
|
431
|
-
if (n) {
|
|
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);
|
|
438
|
-
}
|
|
439
|
-
t2.clear();
|
|
440
|
-
schedule();
|
|
441
|
-
}
|
|
442
|
-
cleanupCompletedLanes(e);
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
function checkBoundaryChildren(e) {
|
|
446
|
-
for (const t of e.re) {
|
|
447
|
-
t.checkSources?.();
|
|
448
|
-
checkBoundaryChildren(t);
|
|
449
|
-
}
|
|
450
|
-
}
|
|
451
|
-
function reassignPendingTransition(e) {
|
|
452
|
-
for (let t = 0; t < e.length; t++) {
|
|
453
|
-
e[t].K = activeTransition;
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
var globalQueue = new GlobalQueue();
|
|
457
|
-
function flush() {
|
|
458
|
-
if (globalQueue.ne) {
|
|
459
|
-
return;
|
|
460
|
-
}
|
|
461
|
-
while (scheduled || activeTransition) {
|
|
462
|
-
globalQueue.flush();
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
function runQueue(e, t) {
|
|
466
|
-
for (let n = 0; n < e.length; n++) e[n](t);
|
|
467
|
-
}
|
|
468
|
-
function transitionComplete(e) {
|
|
469
|
-
if (e.$) return true;
|
|
470
|
-
if (e.j.length) return false;
|
|
471
|
-
let t = true;
|
|
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) {
|
|
475
|
-
t = false;
|
|
476
|
-
break;
|
|
477
|
-
}
|
|
478
|
-
}
|
|
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);
|
|
489
|
-
return t;
|
|
490
|
-
}
|
|
491
|
-
function currentTransition(e) {
|
|
492
|
-
while (e.$ && typeof e.$ === "object") e = e.$;
|
|
493
|
-
return e;
|
|
494
|
-
}
|
|
495
|
-
function runInTransition(e, t) {
|
|
496
|
-
const n = activeTransition;
|
|
497
|
-
try {
|
|
498
|
-
activeTransition = currentTransition(e);
|
|
499
|
-
return t();
|
|
500
|
-
} finally {
|
|
501
|
-
activeTransition = n;
|
|
502
|
-
}
|
|
503
|
-
}
|
|
504
|
-
var signalLanes = /* @__PURE__ */ new WeakMap();
|
|
505
|
-
var activeLanes = /* @__PURE__ */ new Set();
|
|
506
|
-
function getOrCreateLane(e) {
|
|
507
|
-
let t = signalLanes.get(e);
|
|
508
|
-
if (t) {
|
|
509
|
-
return findLane(t);
|
|
510
|
-
}
|
|
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 };
|
|
514
|
-
signalLanes.set(e, t);
|
|
515
|
-
activeLanes.add(t);
|
|
516
|
-
e._e = false;
|
|
517
|
-
return t;
|
|
518
|
-
}
|
|
519
|
-
function findLane(e) {
|
|
520
|
-
while (e.U) e = e.U;
|
|
521
|
-
return e;
|
|
522
|
-
}
|
|
523
|
-
function mergeLanes(e, t) {
|
|
524
|
-
e = findLane(e);
|
|
525
|
-
t = findLane(t);
|
|
526
|
-
if (e === t) return e;
|
|
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]);
|
|
531
|
-
return e;
|
|
532
|
-
}
|
|
533
|
-
function resolveLane(e) {
|
|
534
|
-
const t = e.q;
|
|
535
|
-
if (!t) return void 0;
|
|
536
|
-
const n = findLane(t);
|
|
537
|
-
if (activeLanes.has(n)) return n;
|
|
538
|
-
e.q = void 0;
|
|
539
|
-
return void 0;
|
|
540
|
-
}
|
|
541
|
-
function resolveTransition(e) {
|
|
542
|
-
return resolveLane(e)?.K ?? e.K;
|
|
543
|
-
}
|
|
544
|
-
function hasActiveOverride(e) {
|
|
545
|
-
return !!(e.ee !== void 0 && e.ee !== NOT_PENDING);
|
|
546
|
-
}
|
|
547
|
-
function assignOrMergeLane(e, t) {
|
|
548
|
-
const n = findLane(t);
|
|
549
|
-
const i = e.q;
|
|
550
|
-
if (i) {
|
|
551
|
-
if (i.U) {
|
|
552
|
-
e.q = t;
|
|
553
|
-
return;
|
|
554
|
-
}
|
|
555
|
-
const r = findLane(i);
|
|
556
|
-
if (activeLanes.has(r)) {
|
|
557
|
-
if (r !== n && !hasActiveOverride(e)) {
|
|
558
|
-
if (n.Oe && findLane(n.Oe) === r) {
|
|
559
|
-
e.q = t;
|
|
560
|
-
} else if (r.Oe && findLane(r.Oe) === n) ;
|
|
561
|
-
else mergeLanes(n, r);
|
|
562
|
-
}
|
|
563
|
-
return;
|
|
564
|
-
}
|
|
565
|
-
}
|
|
566
|
-
e.q = t;
|
|
567
|
-
}
|
|
568
|
-
function unlinkSubs(e) {
|
|
569
|
-
const t = e.m;
|
|
570
|
-
const n = e.D;
|
|
571
|
-
const i = e.p;
|
|
572
|
-
const r = e.Ie;
|
|
573
|
-
if (i !== null) i.Ie = r;
|
|
574
|
-
else t.pe = r;
|
|
575
|
-
if (r !== null) r.p = i;
|
|
576
|
-
else {
|
|
577
|
-
t.I = i;
|
|
578
|
-
if (i === null) {
|
|
579
|
-
t.he?.();
|
|
580
|
-
t.L && !t.Ae && !(t.O & REACTIVE_ZOMBIE) && unobserved(t);
|
|
581
|
-
}
|
|
582
|
-
}
|
|
583
|
-
return n;
|
|
584
|
-
}
|
|
585
|
-
function unobserved(e) {
|
|
586
|
-
deleteFromHeap(e, e.O & REACTIVE_ZOMBIE ? zombieQueue : dirtyQueue);
|
|
587
|
-
let t = e.C;
|
|
588
|
-
while (t !== null) {
|
|
589
|
-
t = unlinkSubs(t);
|
|
590
|
-
}
|
|
591
|
-
e.C = null;
|
|
592
|
-
disposeChildren(e, true);
|
|
593
|
-
}
|
|
594
|
-
function markDisposal(e) {
|
|
595
|
-
let t = e.Pe;
|
|
596
|
-
while (t) {
|
|
597
|
-
t.O |= REACTIVE_ZOMBIE;
|
|
598
|
-
if (t.O & REACTIVE_IN_HEAP) {
|
|
599
|
-
deleteFromHeap(t, dirtyQueue);
|
|
600
|
-
insertIntoHeap(t, zombieQueue);
|
|
601
|
-
}
|
|
602
|
-
markDisposal(t);
|
|
603
|
-
t = t.ge;
|
|
604
|
-
}
|
|
605
|
-
}
|
|
606
|
-
function disposeChildren(e, t = false, n) {
|
|
607
|
-
if (e.O & REACTIVE_DISPOSED) return;
|
|
608
|
-
if (t) e.O = REACTIVE_DISPOSED;
|
|
609
|
-
if (t && e.L) e.Ce = null;
|
|
610
|
-
let i = n ? e.De : e.Pe;
|
|
611
|
-
while (i) {
|
|
612
|
-
const e2 = i.ge;
|
|
613
|
-
if (i.C) {
|
|
614
|
-
const e3 = i;
|
|
615
|
-
deleteFromHeap(e3, e3.O & REACTIVE_ZOMBIE ? zombieQueue : dirtyQueue);
|
|
616
|
-
let t2 = e3.C;
|
|
617
|
-
do {
|
|
618
|
-
t2 = unlinkSubs(t2);
|
|
619
|
-
} while (t2 !== null);
|
|
620
|
-
e3.C = null;
|
|
621
|
-
e3.Ne = null;
|
|
622
|
-
}
|
|
623
|
-
disposeChildren(i, true);
|
|
624
|
-
i = e2;
|
|
625
|
-
}
|
|
626
|
-
if (n) {
|
|
627
|
-
e.De = null;
|
|
628
|
-
} else {
|
|
629
|
-
e.Pe = null;
|
|
630
|
-
e.ye = 0;
|
|
631
|
-
}
|
|
632
|
-
runDisposal(e, n);
|
|
633
|
-
}
|
|
634
|
-
function runDisposal(e, t) {
|
|
635
|
-
let n = t ? e.ve : e.me;
|
|
636
|
-
if (!n) return;
|
|
637
|
-
if (Array.isArray(n)) {
|
|
638
|
-
for (let e2 = 0; e2 < n.length; e2++) {
|
|
639
|
-
const t2 = n[e2];
|
|
640
|
-
t2.call(t2);
|
|
641
|
-
}
|
|
642
|
-
} else {
|
|
643
|
-
n.call(n);
|
|
644
|
-
}
|
|
645
|
-
t ? e.ve = null : e.me = null;
|
|
646
|
-
}
|
|
647
|
-
function cleanup(e) {
|
|
648
|
-
if (!context) return e;
|
|
649
|
-
if (!context.me) context.me = e;
|
|
650
|
-
else if (Array.isArray(context.me)) context.me.push(e);
|
|
651
|
-
else context.me = [context.me, e];
|
|
652
|
-
return e;
|
|
653
|
-
}
|
|
654
|
-
function addPendingSource(e, t) {
|
|
655
|
-
if (e.be === t || e.Le?.has(t)) return false;
|
|
656
|
-
if (!e.be) {
|
|
657
|
-
e.be = t;
|
|
658
|
-
return true;
|
|
659
|
-
}
|
|
660
|
-
if (!e.Le) {
|
|
661
|
-
e.Le = /* @__PURE__ */ new Set([e.be, t]);
|
|
662
|
-
} else {
|
|
663
|
-
e.Le.add(t);
|
|
664
|
-
}
|
|
665
|
-
e.be = void 0;
|
|
666
|
-
return true;
|
|
667
|
-
}
|
|
668
|
-
function removePendingSource(e, t) {
|
|
669
|
-
if (e.be) {
|
|
670
|
-
if (e.be !== t) return false;
|
|
671
|
-
e.be = void 0;
|
|
672
|
-
return true;
|
|
673
|
-
}
|
|
674
|
-
if (!e.Le?.delete(t)) return false;
|
|
675
|
-
if (e.Le.size === 1) {
|
|
676
|
-
e.be = e.Le.values().next().value;
|
|
677
|
-
e.Le = void 0;
|
|
678
|
-
} else if (e.Le.size === 0) {
|
|
679
|
-
e.Le = void 0;
|
|
680
|
-
}
|
|
681
|
-
return true;
|
|
682
|
-
}
|
|
683
|
-
function clearPendingSources(e) {
|
|
684
|
-
e.be = void 0;
|
|
685
|
-
e.Le?.clear();
|
|
686
|
-
e.Le = void 0;
|
|
687
|
-
}
|
|
688
|
-
function setPendingError(e, t, n) {
|
|
689
|
-
if (!t) {
|
|
690
|
-
e.le = null;
|
|
691
|
-
return;
|
|
692
|
-
}
|
|
693
|
-
if (n instanceof NotReadyError && n.source === t) {
|
|
694
|
-
e.le = n;
|
|
695
|
-
return;
|
|
696
|
-
}
|
|
697
|
-
const i = e.le;
|
|
698
|
-
if (!(i instanceof NotReadyError) || i.source !== t) {
|
|
699
|
-
e.le = new NotReadyError(t);
|
|
700
|
-
}
|
|
701
|
-
}
|
|
702
|
-
function forEachDependent(e, t) {
|
|
703
|
-
for (let n = e.I; n !== null; n = n.p) t(n.h);
|
|
704
|
-
for (let n = e.A; n !== null; n = n.N) {
|
|
705
|
-
for (let e2 = n.I; e2 !== null; e2 = e2.p) t(e2.h);
|
|
706
|
-
}
|
|
707
|
-
}
|
|
708
|
-
function settlePendingSource(e) {
|
|
709
|
-
let t = false;
|
|
710
|
-
const n = /* @__PURE__ */ new Set();
|
|
711
|
-
const settle = (i) => {
|
|
712
|
-
if (n.has(i) || !removePendingSource(i, e)) return;
|
|
713
|
-
n.add(i);
|
|
714
|
-
i.Ee = clock;
|
|
715
|
-
const r = i.be ?? i.Le?.values().next().value;
|
|
716
|
-
if (r) {
|
|
717
|
-
setPendingError(i, r);
|
|
718
|
-
updatePendingSignal(i);
|
|
719
|
-
} else {
|
|
720
|
-
i.Se &= ~STATUS_PENDING;
|
|
721
|
-
setPendingError(i);
|
|
722
|
-
updatePendingSignal(i);
|
|
723
|
-
if (i.Ue) {
|
|
724
|
-
if (i.W === EFFECT_TRACKED) {
|
|
725
|
-
const e2 = i;
|
|
726
|
-
if (!e2.H) {
|
|
727
|
-
e2.H = true;
|
|
728
|
-
e2.F.enqueue(EFFECT_USER, e2.M);
|
|
729
|
-
}
|
|
730
|
-
} else {
|
|
731
|
-
const e2 = i.O & REACTIVE_ZOMBIE ? zombieQueue : dirtyQueue;
|
|
732
|
-
if (e2.P > i.o) e2.P = i.o;
|
|
733
|
-
insertIntoHeap(i, e2);
|
|
734
|
-
}
|
|
735
|
-
t = true;
|
|
736
|
-
}
|
|
737
|
-
i.Ue = false;
|
|
738
|
-
}
|
|
739
|
-
forEachDependent(i, settle);
|
|
740
|
-
};
|
|
741
|
-
forEachDependent(e, settle);
|
|
742
|
-
if (t) schedule();
|
|
743
|
-
}
|
|
744
|
-
function handleAsync(e, t, n) {
|
|
745
|
-
const i = typeof t === "object" && t !== null;
|
|
746
|
-
const r = i && untrack(() => t[Symbol.asyncIterator]);
|
|
747
|
-
const s = !r && i && untrack(() => typeof t.then === "function");
|
|
748
|
-
if (!s && !r) {
|
|
749
|
-
e.Ce = null;
|
|
750
|
-
return t;
|
|
751
|
-
}
|
|
752
|
-
e.Ce = t;
|
|
753
|
-
let o;
|
|
754
|
-
const handleError = (n2) => {
|
|
755
|
-
if (e.Ce !== t) return;
|
|
756
|
-
globalQueue.initTransition(resolveTransition(e));
|
|
757
|
-
notifyStatus(e, n2 instanceof NotReadyError ? STATUS_PENDING : STATUS_ERROR, n2);
|
|
758
|
-
e.Ee = clock;
|
|
759
|
-
};
|
|
760
|
-
const asyncWrite = (i2, r2) => {
|
|
761
|
-
if (e.Ce !== t) return;
|
|
762
|
-
if (e.O & (REACTIVE_DIRTY | REACTIVE_OPTIMISTIC_DIRTY)) return;
|
|
763
|
-
globalQueue.initTransition(resolveTransition(e));
|
|
764
|
-
clearStatus(e);
|
|
765
|
-
const s2 = resolveLane(e);
|
|
766
|
-
if (s2) s2.k.delete(e);
|
|
767
|
-
if (n) n(i2);
|
|
768
|
-
else if (e.ee !== void 0) {
|
|
769
|
-
if (e.ee !== void 0 && e.ee !== NOT_PENDING) e.X = i2;
|
|
770
|
-
else {
|
|
771
|
-
e.J = i2;
|
|
772
|
-
insertSubs(e);
|
|
773
|
-
}
|
|
774
|
-
e.Ee = clock;
|
|
775
|
-
} else if (s2) {
|
|
776
|
-
const t2 = e.J;
|
|
777
|
-
const n2 = e.ke;
|
|
778
|
-
if (!n2 || !n2(i2, t2)) {
|
|
779
|
-
e.J = i2;
|
|
780
|
-
e.Ee = clock;
|
|
781
|
-
if (e.Ge) {
|
|
782
|
-
setSignal(e.Ge, i2);
|
|
783
|
-
}
|
|
784
|
-
insertSubs(e, true);
|
|
785
|
-
}
|
|
786
|
-
} else {
|
|
787
|
-
setSignal(e, () => i2);
|
|
788
|
-
}
|
|
789
|
-
settlePendingSource(e);
|
|
790
|
-
schedule();
|
|
791
|
-
flush();
|
|
792
|
-
r2?.();
|
|
793
|
-
};
|
|
794
|
-
if (s) {
|
|
795
|
-
let n2 = false, i2 = true;
|
|
796
|
-
t.then(
|
|
797
|
-
(e2) => {
|
|
798
|
-
if (i2) {
|
|
799
|
-
o = e2;
|
|
800
|
-
n2 = true;
|
|
801
|
-
} else asyncWrite(e2);
|
|
802
|
-
},
|
|
803
|
-
(e2) => {
|
|
804
|
-
if (!i2) handleError(e2);
|
|
805
|
-
}
|
|
806
|
-
);
|
|
807
|
-
i2 = false;
|
|
808
|
-
if (!n2) {
|
|
809
|
-
globalQueue.initTransition(resolveTransition(e));
|
|
810
|
-
throw new NotReadyError(context);
|
|
811
|
-
}
|
|
812
|
-
}
|
|
813
|
-
if (r) {
|
|
814
|
-
const n2 = t[Symbol.asyncIterator]();
|
|
815
|
-
let i2 = false;
|
|
816
|
-
let r2 = false;
|
|
817
|
-
cleanup(() => {
|
|
818
|
-
if (r2) return;
|
|
819
|
-
r2 = true;
|
|
820
|
-
try {
|
|
821
|
-
const e2 = n2.return?.();
|
|
822
|
-
if (e2 && typeof e2.then === "function") {
|
|
823
|
-
e2.then(void 0, () => {
|
|
824
|
-
});
|
|
825
|
-
}
|
|
826
|
-
} catch {
|
|
827
|
-
}
|
|
828
|
-
});
|
|
829
|
-
const iterate = () => {
|
|
830
|
-
let s3, u = false, c = true;
|
|
831
|
-
n2.next().then(
|
|
832
|
-
(n3) => {
|
|
833
|
-
if (c) {
|
|
834
|
-
s3 = n3;
|
|
835
|
-
u = true;
|
|
836
|
-
if (n3.done) r2 = true;
|
|
837
|
-
} else if (e.Ce !== t) {
|
|
838
|
-
return;
|
|
839
|
-
} else if (!n3.done) asyncWrite(n3.value, iterate);
|
|
840
|
-
else {
|
|
841
|
-
r2 = true;
|
|
842
|
-
schedule();
|
|
843
|
-
flush();
|
|
844
|
-
}
|
|
845
|
-
},
|
|
846
|
-
(n3) => {
|
|
847
|
-
if (!c && e.Ce === t) {
|
|
848
|
-
r2 = true;
|
|
849
|
-
handleError(n3);
|
|
850
|
-
}
|
|
851
|
-
}
|
|
852
|
-
);
|
|
853
|
-
c = false;
|
|
854
|
-
if (u && !s3.done) {
|
|
855
|
-
o = s3.value;
|
|
856
|
-
i2 = true;
|
|
857
|
-
return iterate();
|
|
858
|
-
}
|
|
859
|
-
return u && s3.done;
|
|
860
|
-
};
|
|
861
|
-
const s2 = iterate();
|
|
862
|
-
if (!i2 && !s2) {
|
|
863
|
-
globalQueue.initTransition(resolveTransition(e));
|
|
864
|
-
throw new NotReadyError(context);
|
|
865
|
-
}
|
|
866
|
-
}
|
|
867
|
-
return o;
|
|
868
|
-
}
|
|
869
|
-
function clearStatus(e, t = false) {
|
|
870
|
-
clearPendingSources(e);
|
|
871
|
-
e.Ue = false;
|
|
872
|
-
e.Se = t ? 0 : e.Se & STATUS_UNINITIALIZED;
|
|
873
|
-
setPendingError(e);
|
|
874
|
-
updatePendingSignal(e);
|
|
875
|
-
e.xe?.();
|
|
876
|
-
}
|
|
877
|
-
function notifyStatus(e, t, n, i, r) {
|
|
878
|
-
if (t === STATUS_ERROR && !(n instanceof StatusError) && !(n instanceof NotReadyError))
|
|
879
|
-
n = new StatusError(e, n);
|
|
880
|
-
const s = t === STATUS_PENDING && n instanceof NotReadyError ? n.source : void 0;
|
|
881
|
-
const o = s === e;
|
|
882
|
-
const u = t === STATUS_PENDING && e.ee !== void 0 && !o;
|
|
883
|
-
const c = u && hasActiveOverride(e);
|
|
884
|
-
if (!i) {
|
|
885
|
-
if (t === STATUS_PENDING && s) {
|
|
886
|
-
addPendingSource(e, s);
|
|
887
|
-
e.Se = STATUS_PENDING | e.Se & STATUS_UNINITIALIZED;
|
|
888
|
-
setPendingError(e, s, n);
|
|
889
|
-
} else {
|
|
890
|
-
clearPendingSources(e);
|
|
891
|
-
e.Se = t | (t !== STATUS_ERROR ? e.Se & STATUS_UNINITIALIZED : 0);
|
|
892
|
-
e.le = n;
|
|
893
|
-
}
|
|
894
|
-
updatePendingSignal(e);
|
|
895
|
-
}
|
|
896
|
-
if (r && !i) {
|
|
897
|
-
assignOrMergeLane(e, r);
|
|
898
|
-
}
|
|
899
|
-
const a = i || c;
|
|
900
|
-
const f = i || u ? void 0 : r;
|
|
901
|
-
if (e.xe) {
|
|
902
|
-
if (i && t === STATUS_PENDING) {
|
|
903
|
-
return;
|
|
904
|
-
}
|
|
905
|
-
if (a) {
|
|
906
|
-
e.xe(t, n);
|
|
907
|
-
} else {
|
|
908
|
-
e.xe();
|
|
909
|
-
}
|
|
910
|
-
return;
|
|
911
|
-
}
|
|
912
|
-
forEachDependent(e, (e2) => {
|
|
913
|
-
e2.Ee = clock;
|
|
914
|
-
if (t === STATUS_PENDING && s && e2.be !== s && !e2.Le?.has(s) || t !== STATUS_PENDING && (e2.le !== n || e2.be || e2.Le)) {
|
|
915
|
-
if (!a && !e2.K) globalQueue.se.push(e2);
|
|
916
|
-
notifyStatus(e2, t, n, a, f);
|
|
917
|
-
}
|
|
918
|
-
});
|
|
919
|
-
}
|
|
920
|
-
var externalSourceConfig = null;
|
|
921
|
-
GlobalQueue.oe = recompute;
|
|
922
|
-
GlobalQueue.ue = disposeChildren;
|
|
923
|
-
var tracking = false;
|
|
924
|
-
var context = null;
|
|
925
|
-
var currentOptimisticLane = null;
|
|
926
|
-
function recompute(e, t = false) {
|
|
927
|
-
const n = e.W;
|
|
928
|
-
if (!t) {
|
|
929
|
-
if (e.K && (!n || activeTransition) && activeTransition !== e.K)
|
|
930
|
-
globalQueue.initTransition(e.K);
|
|
931
|
-
deleteFromHeap(e, e.O & REACTIVE_ZOMBIE ? zombieQueue : dirtyQueue);
|
|
932
|
-
e.Ce = null;
|
|
933
|
-
if (e.K || n === EFFECT_TRACKED) disposeChildren(e);
|
|
934
|
-
else {
|
|
935
|
-
markDisposal(e);
|
|
936
|
-
e.ve = e.me;
|
|
937
|
-
e.De = e.Pe;
|
|
938
|
-
e.me = null;
|
|
939
|
-
e.Pe = null;
|
|
940
|
-
e.ye = 0;
|
|
941
|
-
}
|
|
942
|
-
}
|
|
943
|
-
const i = !!(e.O & REACTIVE_OPTIMISTIC_DIRTY);
|
|
944
|
-
const r = e.ee !== void 0 && e.ee !== NOT_PENDING;
|
|
945
|
-
const s = !!(e.Se & STATUS_PENDING);
|
|
946
|
-
const o = context;
|
|
947
|
-
context = e;
|
|
948
|
-
e.Ne = null;
|
|
949
|
-
e.O = REACTIVE_RECOMPUTING_DEPS;
|
|
950
|
-
e.Ee = clock;
|
|
951
|
-
let u = e.X === NOT_PENDING ? e.J : e.X;
|
|
952
|
-
let c = e.o;
|
|
953
|
-
let a = tracking;
|
|
954
|
-
let f = currentOptimisticLane;
|
|
955
|
-
tracking = true;
|
|
956
|
-
if (i) {
|
|
957
|
-
const t2 = resolveLane(e);
|
|
958
|
-
if (t2) currentOptimisticLane = t2;
|
|
959
|
-
}
|
|
960
|
-
try {
|
|
961
|
-
u = handleAsync(e, e.L(u));
|
|
962
|
-
clearStatus(e, t);
|
|
963
|
-
const n2 = resolveLane(e);
|
|
964
|
-
if (n2) {
|
|
965
|
-
n2.k.delete(e);
|
|
966
|
-
updatePendingSignal(n2.te);
|
|
967
|
-
}
|
|
968
|
-
} catch (t2) {
|
|
969
|
-
if (t2 instanceof NotReadyError && currentOptimisticLane) {
|
|
970
|
-
const t3 = findLane(currentOptimisticLane);
|
|
971
|
-
if (t3.te !== e) {
|
|
972
|
-
t3.k.add(e);
|
|
973
|
-
e.q = t3;
|
|
974
|
-
updatePendingSignal(t3.te);
|
|
975
|
-
}
|
|
976
|
-
}
|
|
977
|
-
if (t2 instanceof NotReadyError) e.Ue = true;
|
|
978
|
-
notifyStatus(
|
|
979
|
-
e,
|
|
980
|
-
t2 instanceof NotReadyError ? STATUS_PENDING : STATUS_ERROR,
|
|
981
|
-
t2,
|
|
982
|
-
void 0,
|
|
983
|
-
t2 instanceof NotReadyError ? e.q : void 0
|
|
984
|
-
);
|
|
985
|
-
} finally {
|
|
986
|
-
tracking = a;
|
|
987
|
-
e.O = REACTIVE_NONE | (t ? e.O & REACTIVE_SNAPSHOT_STALE : 0);
|
|
988
|
-
context = o;
|
|
989
|
-
}
|
|
990
|
-
if (!e.le) {
|
|
991
|
-
const o2 = e.Ne;
|
|
992
|
-
let a2 = o2 !== null ? o2.D : e.C;
|
|
993
|
-
if (a2 !== null) {
|
|
994
|
-
do {
|
|
995
|
-
a2 = unlinkSubs(a2);
|
|
996
|
-
} while (a2 !== null);
|
|
997
|
-
if (o2 !== null) o2.D = null;
|
|
998
|
-
else e.C = null;
|
|
999
|
-
}
|
|
1000
|
-
const f2 = r ? e.ee : e.X === NOT_PENDING ? e.J : e.X;
|
|
1001
|
-
const l = !e.ke || !e.ke(f2, u);
|
|
1002
|
-
if (l) {
|
|
1003
|
-
const o3 = r ? e.ee : void 0;
|
|
1004
|
-
if (t || n && activeTransition !== e.K || i) {
|
|
1005
|
-
e.J = u;
|
|
1006
|
-
if (r && i) {
|
|
1007
|
-
e.ee = u;
|
|
1008
|
-
e.X = u;
|
|
1009
|
-
}
|
|
1010
|
-
} else e.X = u;
|
|
1011
|
-
if (r && !i && s && !e._e) e.ee = u;
|
|
1012
|
-
if (!r || i || e.ee !== o3) insertSubs(e, i || r);
|
|
1013
|
-
} else if (r) {
|
|
1014
|
-
e.X = u;
|
|
1015
|
-
} else if (e.o != c) {
|
|
1016
|
-
for (let t2 = e.I; t2 !== null; t2 = t2.p) {
|
|
1017
|
-
insertIntoHeapHeight(t2.h, t2.h.O & REACTIVE_ZOMBIE ? zombieQueue : dirtyQueue);
|
|
1018
|
-
}
|
|
1019
|
-
}
|
|
1020
|
-
}
|
|
1021
|
-
currentOptimisticLane = f;
|
|
1022
|
-
(!t || e.Se & STATUS_PENDING) && !e.K && !(activeTransition && r) && globalQueue.se.push(e);
|
|
1023
|
-
e.K && n && activeTransition !== e.K && runInTransition(e.K, () => recompute(e));
|
|
1024
|
-
}
|
|
1025
|
-
function untrack(e, t) {
|
|
1026
|
-
if (!externalSourceConfig && !tracking && true) return e();
|
|
1027
|
-
const n = tracking;
|
|
1028
|
-
tracking = false;
|
|
1029
|
-
try {
|
|
1030
|
-
if (externalSourceConfig) return externalSourceConfig.untrack(e);
|
|
1031
|
-
return e();
|
|
1032
|
-
} finally {
|
|
1033
|
-
tracking = n;
|
|
1034
|
-
}
|
|
1035
|
-
}
|
|
1036
|
-
function setSignal(e, t) {
|
|
1037
|
-
if (e.K && activeTransition !== e.K) globalQueue.initTransition(e.K);
|
|
1038
|
-
const n = e.ee !== void 0 && !projectionWriteActive;
|
|
1039
|
-
const i = e.ee !== void 0 && e.ee !== NOT_PENDING;
|
|
1040
|
-
const r = n ? i ? e.ee : e.J : e.X === NOT_PENDING ? e.J : e.X;
|
|
1041
|
-
if (typeof t === "function") t = t(r);
|
|
1042
|
-
const s = !e.ke || !e.ke(r, t) || !!(e.Se & STATUS_UNINITIALIZED);
|
|
1043
|
-
if (!s) {
|
|
1044
|
-
if (n && i && e.L) {
|
|
1045
|
-
insertSubs(e, true);
|
|
1046
|
-
schedule();
|
|
1047
|
-
}
|
|
1048
|
-
return t;
|
|
1049
|
-
}
|
|
1050
|
-
if (n) {
|
|
1051
|
-
const n2 = e.ee === NOT_PENDING;
|
|
1052
|
-
if (!n2) globalQueue.initTransition(resolveTransition(e));
|
|
1053
|
-
if (n2) {
|
|
1054
|
-
e.X = e.J;
|
|
1055
|
-
globalQueue.Y.push(e);
|
|
1056
|
-
}
|
|
1057
|
-
e._e = true;
|
|
1058
|
-
const i2 = getOrCreateLane(e);
|
|
1059
|
-
e.q = i2;
|
|
1060
|
-
e.ee = t;
|
|
1061
|
-
} else {
|
|
1062
|
-
if (e.X === NOT_PENDING) globalQueue.se.push(e);
|
|
1063
|
-
e.X = t;
|
|
1064
|
-
}
|
|
1065
|
-
updatePendingSignal(e);
|
|
1066
|
-
if (e.Ge) {
|
|
1067
|
-
setSignal(e.Ge, t);
|
|
1068
|
-
}
|
|
1069
|
-
e.Ee = clock;
|
|
1070
|
-
insertSubs(e, n);
|
|
1071
|
-
schedule();
|
|
1072
|
-
return t;
|
|
1073
|
-
}
|
|
1074
|
-
function computePendingState(e) {
|
|
1075
|
-
const t = e;
|
|
1076
|
-
const n = e.V;
|
|
1077
|
-
if (n && e.X !== NOT_PENDING) {
|
|
1078
|
-
return !n.Ce && !(n.Se & STATUS_PENDING);
|
|
1079
|
-
}
|
|
1080
|
-
if (e.ee !== void 0 && e.ee !== NOT_PENDING) {
|
|
1081
|
-
if (t.Se & STATUS_PENDING && !(t.Se & STATUS_UNINITIALIZED)) return true;
|
|
1082
|
-
if (e.Re) {
|
|
1083
|
-
const t2 = e.q ? findLane(e.q) : null;
|
|
1084
|
-
return !!(t2 && t2.k.size > 0);
|
|
1085
|
-
}
|
|
1086
|
-
return true;
|
|
1087
|
-
}
|
|
1088
|
-
if (e.ee !== void 0 && e.ee === NOT_PENDING && !e.Re) {
|
|
1089
|
-
return false;
|
|
1090
|
-
}
|
|
1091
|
-
if (e.X !== NOT_PENDING && !(t.Se & STATUS_UNINITIALIZED)) return true;
|
|
1092
|
-
return !!(t.Se & STATUS_PENDING && !(t.Se & STATUS_UNINITIALIZED));
|
|
1093
|
-
}
|
|
1094
|
-
function updatePendingSignal(e) {
|
|
1095
|
-
if (e.Qe) {
|
|
1096
|
-
const t = computePendingState(e);
|
|
1097
|
-
const n = e.Qe;
|
|
1098
|
-
setSignal(n, t);
|
|
1099
|
-
if (!t && n.q) {
|
|
1100
|
-
const t2 = resolveLane(e);
|
|
1101
|
-
if (t2 && t2.k.size > 0) {
|
|
1102
|
-
const e2 = findLane(n.q);
|
|
1103
|
-
if (e2 !== t2) {
|
|
1104
|
-
mergeLanes(t2, e2);
|
|
1105
|
-
}
|
|
1106
|
-
}
|
|
1107
|
-
signalLanes.delete(n);
|
|
1108
|
-
n.q = void 0;
|
|
1109
|
-
}
|
|
1110
|
-
}
|
|
1111
|
-
}
|
|
1112
|
-
function isWrappable(e) {
|
|
1113
|
-
return e != null && typeof e === "object" && !Object.isFrozen(e) && !(typeof Node !== "undefined" && e instanceof Node);
|
|
1114
|
-
}
|
|
1115
|
-
var DELETE = /* @__PURE__ */ Symbol(0);
|
|
1116
|
-
function updatePath(e, t, n = 0) {
|
|
1117
|
-
let i, r = e;
|
|
1118
|
-
if (n < t.length - 1) {
|
|
1119
|
-
i = t[n];
|
|
1120
|
-
const s2 = typeof i;
|
|
1121
|
-
const o = Array.isArray(e);
|
|
1122
|
-
if (Array.isArray(i)) {
|
|
1123
|
-
for (let r2 = 0; r2 < i.length; r2++) {
|
|
1124
|
-
t[n] = i[r2];
|
|
1125
|
-
updatePath(e, t, n);
|
|
1126
|
-
}
|
|
1127
|
-
t[n] = i;
|
|
1128
|
-
return;
|
|
1129
|
-
} else if (o && s2 === "function") {
|
|
1130
|
-
for (let r2 = 0; r2 < e.length; r2++) {
|
|
1131
|
-
if (i(e[r2], r2)) {
|
|
1132
|
-
t[n] = r2;
|
|
1133
|
-
updatePath(e, t, n);
|
|
1134
|
-
}
|
|
1135
|
-
}
|
|
1136
|
-
t[n] = i;
|
|
1137
|
-
return;
|
|
1138
|
-
} else if (o && s2 === "object") {
|
|
1139
|
-
const { from: r2 = 0, to: s3 = e.length - 1, by: o2 = 1 } = i;
|
|
1140
|
-
for (let i2 = r2; i2 <= s3; i2 += o2) {
|
|
1141
|
-
t[n] = i2;
|
|
1142
|
-
updatePath(e, t, n);
|
|
1143
|
-
}
|
|
1144
|
-
t[n] = i;
|
|
1145
|
-
return;
|
|
1146
|
-
} else if (n < t.length - 2) {
|
|
1147
|
-
updatePath(e[i], t, n + 1);
|
|
1148
|
-
return;
|
|
1149
|
-
}
|
|
1150
|
-
r = e[i];
|
|
1151
|
-
}
|
|
1152
|
-
let s = t[t.length - 1];
|
|
1153
|
-
if (typeof s === "function") {
|
|
1154
|
-
s = s(r);
|
|
1155
|
-
if (s === r) return;
|
|
1156
|
-
}
|
|
1157
|
-
if (i === void 0 && s == void 0) return;
|
|
1158
|
-
if (s === DELETE) {
|
|
1159
|
-
delete e[i];
|
|
1160
|
-
} else if (i === void 0 || isWrappable(r) && isWrappable(s) && !Array.isArray(s)) {
|
|
1161
|
-
const t2 = i !== void 0 ? e[i] : e;
|
|
1162
|
-
const n2 = Object.keys(s);
|
|
1163
|
-
for (let e2 = 0; e2 < n2.length; e2++) t2[n2[e2]] = s[n2[e2]];
|
|
1164
|
-
} else {
|
|
1165
|
-
e[i] = s;
|
|
1166
|
-
}
|
|
1167
|
-
}
|
|
1168
|
-
var storePath = Object.assign(
|
|
1169
|
-
function storePath2(...e) {
|
|
1170
|
-
return (t) => {
|
|
1171
|
-
updatePath(t, e);
|
|
1172
|
-
};
|
|
1173
|
-
},
|
|
1174
|
-
{ DELETE }
|
|
1175
|
-
);
|
|
1176
|
-
|
|
1177
|
-
// ../../node_modules/.pnpm/@solidjs+web@2.0.0-beta.4_@solidjs+signals@0.13.9_solid-js@2.0.0-beta.5/node_modules/@solidjs/web/dist/web.js
|
|
1
|
+
// ../../node_modules/.pnpm/@solidjs+web@2.0.0-beta.15_solid-js@2.0.0-beta.15/node_modules/@solidjs/web/dist/web.js
|
|
2
|
+
import { createRenderEffect, createMemo, sharedConfig, untrack, runWithOwner, flatten, createRoot, merge, createComponent, omit, getOwner, createEffect, enableHydration, flush } from "solid-js";
|
|
3
|
+
import { Errored, For, Hydration, Loading, Match, NoHydration, Repeat, Reveal, Show, Switch, createComponent as createComponent2, getOwner as getOwner2, untrack as untrack2 } from "solid-js";
|
|
1178
4
|
var isServer = false;
|
|
1179
5
|
var isDev = false;
|
|
1180
6
|
|
|
@@ -1185,7 +11,7 @@ import {
|
|
|
1185
11
|
omit as omit2,
|
|
1186
12
|
onSettled,
|
|
1187
13
|
sharedConfig as sharedConfig2,
|
|
1188
|
-
untrack as
|
|
14
|
+
untrack as untrack3
|
|
1189
15
|
} from "solid-js";
|
|
1190
16
|
function clientOnly(fn) {
|
|
1191
17
|
if (isServer)
|
|
@@ -1202,16 +28,16 @@ function clientOnly(fn) {
|
|
|
1202
28
|
setMounted(true);
|
|
1203
29
|
});
|
|
1204
30
|
return createMemo2(
|
|
1205
|
-
() => (Comp = comp(), m = mounted(),
|
|
31
|
+
() => (Comp = comp(), m = mounted(), untrack3(() => Comp && m ? Comp(rest) : props.fallback))
|
|
1206
32
|
);
|
|
1207
33
|
};
|
|
1208
34
|
}
|
|
1209
35
|
|
|
1210
36
|
// src/index.tsx
|
|
1211
|
-
var SolidQueryDevtools = isDev ? clientOnly(() => import("./devtools/
|
|
37
|
+
var SolidQueryDevtools = isDev ? clientOnly(() => import("./devtools/7WZM3IT7.jsx")) : function() {
|
|
1212
38
|
return null;
|
|
1213
39
|
};
|
|
1214
|
-
var SolidQueryDevtoolsPanel = isDev ? clientOnly(() => import("./devtoolsPanel/
|
|
40
|
+
var SolidQueryDevtoolsPanel = isDev ? clientOnly(() => import("./devtoolsPanel/FQC5JHFZ.jsx")) : function() {
|
|
1215
41
|
return null;
|
|
1216
42
|
};
|
|
1217
43
|
export {
|