@signaldb/oby 1.0.0 → 2.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +445 -468
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +5 -3
package/dist/index.mjs
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import { createReactivityAdapter as
|
|
2
|
-
const
|
|
1
|
+
import { createReactivityAdapter as At } from "@signaldb/core";
|
|
2
|
+
const Ee = /* @__PURE__ */ Symbol("Cached"), te = /* @__PURE__ */ Symbol("Observable"), Je = /* @__PURE__ */ Symbol("Observable.Boolean"), Ye = /* @__PURE__ */ Symbol("Observable.Frozen"), we = /* @__PURE__ */ Symbol("Observable.Readable"), Oe = /* @__PURE__ */ Symbol("Observable.Writable"), X = /* @__PURE__ */ Symbol("Store"), Fe = /* @__PURE__ */ Symbol("Store.Keys"), Ve = /* @__PURE__ */ Symbol("Store.Observable"), ce = /* @__PURE__ */ Symbol("Store.Target"), Re = /* @__PURE__ */ Symbol("Store.Values"), _e = /* @__PURE__ */ Symbol("Store.Untracked"), q = /* @__PURE__ */ Symbol("Suspense"), ze = /* @__PURE__ */ Symbol("Uncached"), me = /* @__PURE__ */ Symbol("Untracked"), He = /* @__PURE__ */ Symbol("Untracked.Unwrapped"), dt = (e) => K(e) ? e : [e], pt = (e) => e instanceof Error ? e : typeof e == "string" ? new Error(e) : new Error("Unknown error"), { is: J } = Object, { isArray: K } = Array, bt = (e, t) => {
|
|
3
3
|
if (e.length !== t.length)
|
|
4
4
|
return !1;
|
|
5
5
|
for (let s = 0, n = e.length; s < n; s++) {
|
|
6
6
|
const r = e[s], i = t[s];
|
|
7
|
-
if (!
|
|
7
|
+
if (!J(r, i))
|
|
8
8
|
return !1;
|
|
9
9
|
}
|
|
10
10
|
return !0;
|
|
11
|
-
},
|
|
12
|
-
},
|
|
13
|
-
function
|
|
11
|
+
}, E = (e) => typeof e == "function", Me = (e) => e !== null && typeof e == "object", St = (e) => typeof e == "symbol", xe = () => {
|
|
12
|
+
}, Ge = () => !1;
|
|
13
|
+
function gt() {
|
|
14
14
|
if (arguments.length)
|
|
15
15
|
throw new Error("A readonly Observable can not be updated");
|
|
16
16
|
return this;
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function yt() {
|
|
19
19
|
if (arguments.length)
|
|
20
20
|
throw new Error("A readonly Observable can not be updated");
|
|
21
21
|
return this.get();
|
|
22
22
|
}
|
|
23
|
-
function
|
|
24
|
-
return arguments.length ?
|
|
23
|
+
function Et(e) {
|
|
24
|
+
return arguments.length ? E(e) ? this.C(e) : this.set(e) : this.get();
|
|
25
25
|
}
|
|
26
|
-
const
|
|
27
|
-
const t =
|
|
28
|
-
return t[
|
|
29
|
-
},
|
|
30
|
-
const t =
|
|
31
|
-
return t[
|
|
32
|
-
},
|
|
33
|
-
const t =
|
|
34
|
-
return t[
|
|
35
|
-
},
|
|
26
|
+
const P = (e) => {
|
|
27
|
+
const t = gt.bind(e);
|
|
28
|
+
return t[te] = !0, t[Ye] = !0, t;
|
|
29
|
+
}, D = (e) => {
|
|
30
|
+
const t = yt.bind(e);
|
|
31
|
+
return t[te] = !0, t[we] = e, t;
|
|
32
|
+
}, $e = (e) => {
|
|
33
|
+
const t = Et.bind(e);
|
|
34
|
+
return t[te] = !0, t[Oe] = e, t;
|
|
35
|
+
}, Ke = 0, oe = 1, ue = 2, le = 3, je = P(!1), wt = P(!0), Te = new Proxy({}, new Proxy({}, { get() {
|
|
36
36
|
throw new Error("Unavailable value");
|
|
37
|
-
} })),
|
|
38
|
-
},
|
|
37
|
+
} })), We = function() {
|
|
38
|
+
}, Se = (e, t) => {
|
|
39
39
|
if (e instanceof Array)
|
|
40
40
|
for (let s = 0, n = e.length; s < n; s++)
|
|
41
41
|
t(e[s]);
|
|
42
42
|
else e && t(e);
|
|
43
|
-
},
|
|
43
|
+
}, re = (e, t) => {
|
|
44
44
|
if (e instanceof Array)
|
|
45
45
|
for (let s = e.length - 1; s >= 0; s--)
|
|
46
46
|
t(e[s]);
|
|
47
47
|
else e && t(e);
|
|
48
|
-
},
|
|
48
|
+
}, se = (e, t, s) => {
|
|
49
49
|
const n = e[t];
|
|
50
50
|
n instanceof Array ? n.push(s) : n ? e[t] = [n, s] : e[t] = s;
|
|
51
|
-
},
|
|
51
|
+
}, U = (e, t, s) => {
|
|
52
52
|
const n = e[t];
|
|
53
53
|
if (n instanceof Set)
|
|
54
54
|
n.add(s);
|
|
@@ -59,70 +59,65 @@ const C = (e) => {
|
|
|
59
59
|
}
|
|
60
60
|
} else
|
|
61
61
|
e[t] = s;
|
|
62
|
-
},
|
|
62
|
+
}, v = (e, t, s) => {
|
|
63
63
|
const n = e[t];
|
|
64
64
|
n instanceof Set ? n.delete(s) : n === s && (e[t] = void 0);
|
|
65
|
-
},
|
|
65
|
+
}, Z = (e, t) => {
|
|
66
66
|
if (e instanceof Set)
|
|
67
67
|
for (const s of e)
|
|
68
68
|
t(s);
|
|
69
69
|
else e && t(e);
|
|
70
|
-
},
|
|
71
|
-
class
|
|
70
|
+
}, Ot = (e) => e.call(e), ge = (e) => e.Q(!0);
|
|
71
|
+
class ne {
|
|
72
72
|
constructor() {
|
|
73
73
|
this.disposed = !1, this.B = void 0, this.S = void 0, this.D = void 0, this.K = void 0, this.T = void 0, this.U = void 0;
|
|
74
74
|
}
|
|
75
75
|
/* API */
|
|
76
76
|
catch(t, s) {
|
|
77
|
-
var r;
|
|
78
77
|
const { S: n } = this;
|
|
79
78
|
if (n)
|
|
80
79
|
return n(t), !0;
|
|
81
|
-
if (
|
|
80
|
+
if (this.parent?.catch(t, !0))
|
|
82
81
|
return !0;
|
|
83
82
|
if (s)
|
|
84
83
|
return !1;
|
|
85
84
|
throw t;
|
|
86
85
|
}
|
|
87
86
|
Q(t) {
|
|
88
|
-
|
|
87
|
+
re(this.D, ge), re(this.K, ge), re(this.U, ge), re(this.B, Ot), this.B = void 0, this.disposed = t, this.S = void 0, this.K = void 0, this.U = void 0;
|
|
89
88
|
}
|
|
90
89
|
get(t) {
|
|
91
|
-
|
|
92
|
-
return (s = this.context) == null ? void 0 : s[t];
|
|
90
|
+
return this.context?.[t];
|
|
93
91
|
}
|
|
94
92
|
E(t, s, n) {
|
|
95
|
-
const r =
|
|
96
|
-
|
|
93
|
+
const r = A, i = H;
|
|
94
|
+
ve(s), he(n);
|
|
97
95
|
try {
|
|
98
96
|
return t();
|
|
99
|
-
} catch (
|
|
100
|
-
return this.catch(
|
|
97
|
+
} catch (c) {
|
|
98
|
+
return this.catch(pt(c), !1), Te;
|
|
101
99
|
} finally {
|
|
102
|
-
|
|
100
|
+
ve(r), he(i);
|
|
103
101
|
}
|
|
104
102
|
}
|
|
105
103
|
}
|
|
106
|
-
class
|
|
104
|
+
class Xe extends ne {
|
|
107
105
|
constructor() {
|
|
108
106
|
super(...arguments), this.context = {};
|
|
109
107
|
}
|
|
110
108
|
}
|
|
111
|
-
let
|
|
112
|
-
const
|
|
113
|
-
let
|
|
114
|
-
const
|
|
115
|
-
|
|
109
|
+
let F, Ze = new Xe(), H, A = Ze;
|
|
110
|
+
const Ue = (e) => F = e, he = (e) => H = e, ve = (e) => A = e;
|
|
111
|
+
let ie = 0, De = xe;
|
|
112
|
+
const Rt = async (e) => {
|
|
113
|
+
ie || Ue(new Promise((t) => De = t));
|
|
116
114
|
try {
|
|
117
|
-
return
|
|
115
|
+
return ie += 1, await e();
|
|
118
116
|
} finally {
|
|
119
|
-
|
|
117
|
+
ie -= 1, ie || (Ue(void 0), De());
|
|
120
118
|
}
|
|
121
|
-
},
|
|
122
|
-
|
|
123
|
-
return _(e) && ($e in e || !!((s = (t = e[Te]) == null ? void 0 : t.parent) != null && s.disposed));
|
|
124
|
-
}, Ue = (e) => _(e) && (Ne in e || Ze in e);
|
|
125
|
-
let Pt = class {
|
|
119
|
+
}, ke = (e) => E(e) && Je in e, k = (e) => E(e) && (Ye in e || !!e[we]?.parent?.disposed), Be = (e) => E(e) && (me in e || He in e);
|
|
120
|
+
let _t = class {
|
|
126
121
|
constructor() {
|
|
127
122
|
this.A1 = [], this.M = 0, this.A2 = !1, this.N = () => {
|
|
128
123
|
if (!this.A2 && !this.M && this.A1.length)
|
|
@@ -145,31 +140,30 @@ let Pt = class {
|
|
|
145
140
|
};
|
|
146
141
|
}
|
|
147
142
|
};
|
|
148
|
-
const
|
|
149
|
-
class
|
|
143
|
+
const j = new _t();
|
|
144
|
+
class T {
|
|
150
145
|
/* CONSTRUCTOR */
|
|
151
146
|
constructor(t, s, n) {
|
|
152
|
-
this.K = /* @__PURE__ */ new Set(), this.value = t, n && (this.parent = n),
|
|
147
|
+
this.K = /* @__PURE__ */ new Set(), this.value = t, n && (this.parent = n), s?.equals !== void 0 && (this.equals = s.equals || Ge);
|
|
153
148
|
}
|
|
154
149
|
/* API */
|
|
155
150
|
get() {
|
|
156
|
-
|
|
157
|
-
return (t = this.parent) != null && t.disposed || ((s = this.parent) == null || s.C(), Y == null || Y.A.L(this)), this.value;
|
|
151
|
+
return this.parent?.disposed || (this.parent?.C(), H?.A.L(this)), this.value;
|
|
158
152
|
}
|
|
159
153
|
set(t) {
|
|
160
|
-
const s = this.equals ||
|
|
161
|
-
return (this.value ===
|
|
154
|
+
const s = this.equals || J;
|
|
155
|
+
return (this.value === We || !s(t, this.value)) && (this.value = t, j.M += 1, this.I(le), j.M -= 1, j.N()), t;
|
|
162
156
|
}
|
|
163
157
|
I(t) {
|
|
164
158
|
for (const s of this.K)
|
|
165
|
-
(s.J !==
|
|
159
|
+
(s.J !== oe || s.A.has(this)) && (s.sync ? (s.J = Math.max(s.J, t), j.F(s)) : s.I(t));
|
|
166
160
|
}
|
|
167
161
|
C(t) {
|
|
168
162
|
const s = t(this.value);
|
|
169
163
|
return this.set(s);
|
|
170
164
|
}
|
|
171
165
|
}
|
|
172
|
-
class
|
|
166
|
+
class mt {
|
|
173
167
|
/* CONSTRUCTOR */
|
|
174
168
|
constructor(t) {
|
|
175
169
|
this.observer = t, this.A = [], this.P = 0;
|
|
@@ -205,21 +199,20 @@ class It {
|
|
|
205
199
|
this.P += 1;
|
|
206
200
|
return;
|
|
207
201
|
}
|
|
208
|
-
const
|
|
209
|
-
if (
|
|
202
|
+
const c = n.indexOf(t);
|
|
203
|
+
if (c >= 0 && c < r)
|
|
210
204
|
return;
|
|
211
205
|
r < i - 1 ? this.R() : r === i - 1 && n[r].K.delete(s);
|
|
212
206
|
}
|
|
213
|
-
t.K.add(s), n[this.P++] = t, r === 128 && (s.A = new
|
|
207
|
+
t.K.add(s), n[this.P++] = t, r === 128 && (s.A = new Mt(s, n));
|
|
214
208
|
}
|
|
215
209
|
C() {
|
|
216
|
-
var s;
|
|
217
210
|
const { A: t } = this;
|
|
218
|
-
for (let
|
|
219
|
-
|
|
211
|
+
for (let s = 0, n = t.length; s < n; s++)
|
|
212
|
+
t[s].parent?.C();
|
|
220
213
|
}
|
|
221
214
|
}
|
|
222
|
-
class
|
|
215
|
+
class Mt {
|
|
223
216
|
/* CONSTRUCTOR */
|
|
224
217
|
constructor(t, s) {
|
|
225
218
|
this.observer = t, this.A = new Set(s);
|
|
@@ -244,22 +237,21 @@ class Nt {
|
|
|
244
237
|
r !== i && n.add(t);
|
|
245
238
|
}
|
|
246
239
|
C() {
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
(t = s.parent) == null || t.C();
|
|
240
|
+
for (const t of this.A)
|
|
241
|
+
t.parent?.C();
|
|
250
242
|
}
|
|
251
243
|
}
|
|
252
|
-
class
|
|
244
|
+
class Pe extends ne {
|
|
253
245
|
/* CONSTRUCTOR */
|
|
254
246
|
constructor() {
|
|
255
|
-
super(), this.parent =
|
|
247
|
+
super(), this.parent = A, this.context = A.context, this.J = le, this.A = new mt(this), A !== Ze && se(this.parent, "K", this);
|
|
256
248
|
}
|
|
257
249
|
/* API */
|
|
258
250
|
Q(t) {
|
|
259
251
|
this.A.Q(t), super.Q(t);
|
|
260
252
|
}
|
|
261
253
|
H(t) {
|
|
262
|
-
this.Q(!1), this.J =
|
|
254
|
+
this.Q(!1), this.J = oe;
|
|
263
255
|
try {
|
|
264
256
|
return this.E(t, this, this);
|
|
265
257
|
} finally {
|
|
@@ -273,66 +265,66 @@ class ve extends le {
|
|
|
273
265
|
throw new Error("Abstract method");
|
|
274
266
|
}
|
|
275
267
|
C() {
|
|
276
|
-
this.disposed || (this.J ===
|
|
268
|
+
this.disposed || (this.J === ue && this.A.C(), this.J === le ? (this.J = oe, this.run(), this.J === oe ? this.J = Ke : this.C()) : this.J = Ke);
|
|
277
269
|
}
|
|
278
270
|
}
|
|
279
|
-
class
|
|
271
|
+
class xt extends Pe {
|
|
280
272
|
/* CONSTRUCTOR */
|
|
281
273
|
constructor(t, s) {
|
|
282
|
-
super(), this.fn = t, this.observable = new
|
|
274
|
+
super(), this.fn = t, this.observable = new T(We, s, this), s?.sync === !0 && (this.sync = !0, this.C());
|
|
283
275
|
}
|
|
284
276
|
/* API */
|
|
285
277
|
run() {
|
|
286
278
|
const t = super.H(this.fn);
|
|
287
|
-
!this.disposed && this.A.empty() && (this.disposed = !0), t !==
|
|
279
|
+
!this.disposed && this.A.empty() && (this.disposed = !0), t !== Te && this.observable.set(t);
|
|
288
280
|
}
|
|
289
281
|
I(t) {
|
|
290
282
|
const s = this.J;
|
|
291
|
-
s >= t || (this.J = t, s !==
|
|
283
|
+
s >= t || (this.J = t, s !== ue && this.observable.I(ue));
|
|
292
284
|
}
|
|
293
285
|
}
|
|
294
|
-
const
|
|
295
|
-
if (
|
|
286
|
+
const B = (e, t) => {
|
|
287
|
+
if (k(e))
|
|
296
288
|
return e;
|
|
297
|
-
if (
|
|
298
|
-
return
|
|
289
|
+
if (Be(e))
|
|
290
|
+
return P(e());
|
|
299
291
|
{
|
|
300
|
-
const s = new
|
|
301
|
-
return
|
|
292
|
+
const s = new xt(e, t);
|
|
293
|
+
return D(s.observable);
|
|
302
294
|
}
|
|
303
|
-
},
|
|
304
|
-
if (
|
|
305
|
-
if (
|
|
295
|
+
}, Ie = (e) => {
|
|
296
|
+
if (E(e)) {
|
|
297
|
+
if (k(e) || Be(e))
|
|
306
298
|
return !!e();
|
|
307
|
-
if (
|
|
299
|
+
if (ke(e))
|
|
308
300
|
return e;
|
|
309
301
|
{
|
|
310
|
-
const t =
|
|
311
|
-
return t[
|
|
302
|
+
const t = B(() => !!e());
|
|
303
|
+
return t[Je] = !0, t;
|
|
312
304
|
}
|
|
313
305
|
} else
|
|
314
306
|
return !!e;
|
|
315
|
-
},
|
|
316
|
-
|
|
307
|
+
}, C = (e) => {
|
|
308
|
+
se(A, "B", e);
|
|
317
309
|
};
|
|
318
|
-
class
|
|
310
|
+
class Tt extends ne {
|
|
319
311
|
/* CONSTRUCTOR */
|
|
320
312
|
constructor(t) {
|
|
321
|
-
super(), this.parent =
|
|
313
|
+
super(), this.parent = A, this.context = { ...A.context, ...t }, se(this.parent, "D", this);
|
|
322
314
|
}
|
|
323
315
|
/* API */
|
|
324
316
|
E(t) {
|
|
325
317
|
return super.E(t, this, void 0);
|
|
326
318
|
}
|
|
327
319
|
}
|
|
328
|
-
function
|
|
329
|
-
return
|
|
320
|
+
function Bt(e, t) {
|
|
321
|
+
return St(e) ? A.context[e] : new Tt(e).E(t || xe);
|
|
330
322
|
}
|
|
331
|
-
const
|
|
332
|
-
const e = new
|
|
333
|
-
return
|
|
323
|
+
const Pt = () => {
|
|
324
|
+
const e = new T(!1);
|
|
325
|
+
return C(() => e.set(!0)), D(e);
|
|
334
326
|
};
|
|
335
|
-
class
|
|
327
|
+
class It {
|
|
336
328
|
constructor() {
|
|
337
329
|
this.A1 = [], this.A2 = !1, this.A3 = !1, this.N = () => {
|
|
338
330
|
if (!this.A2 && this.A1.length)
|
|
@@ -353,7 +345,7 @@ class vt {
|
|
|
353
345
|
}, this.resolve = () => {
|
|
354
346
|
queueMicrotask(() => {
|
|
355
347
|
queueMicrotask(() => {
|
|
356
|
-
|
|
348
|
+
F ? F.finally(this.resolve) : (this.A3 = !1, this.N());
|
|
357
349
|
});
|
|
358
350
|
});
|
|
359
351
|
}, this.F = (t) => {
|
|
@@ -361,70 +353,68 @@ class vt {
|
|
|
361
353
|
};
|
|
362
354
|
}
|
|
363
355
|
}
|
|
364
|
-
const
|
|
365
|
-
class
|
|
356
|
+
const fe = new It();
|
|
357
|
+
class et extends Pe {
|
|
366
358
|
/* CONSTRUCTOR */
|
|
367
359
|
constructor(t, s) {
|
|
368
|
-
if (super(), this.fn = t,
|
|
369
|
-
const n = this.get(
|
|
360
|
+
if (super(), this.fn = t, s?.suspense !== !1) {
|
|
361
|
+
const n = this.get(q);
|
|
370
362
|
n && (this.suspense = n);
|
|
371
363
|
}
|
|
372
|
-
|
|
364
|
+
s?.sync === !0 && (this.sync = !0), s?.sync === "init" ? (this.init = !0, this.C()) : this.F();
|
|
373
365
|
}
|
|
374
366
|
/* API */
|
|
375
367
|
run() {
|
|
376
368
|
const t = super.H(this.fn);
|
|
377
|
-
|
|
369
|
+
E(t) && se(this, "B", t);
|
|
378
370
|
}
|
|
379
371
|
F() {
|
|
380
|
-
|
|
381
|
-
(t = this.suspense) != null && t.suspended || (this.sync ? this.C() : pe.F(this));
|
|
372
|
+
this.suspense?.suspended || (this.sync ? this.C() : fe.F(this));
|
|
382
373
|
}
|
|
383
374
|
I(t) {
|
|
384
375
|
const s = this.J;
|
|
385
376
|
s >= t || (this.J = t, (!this.sync || s !== 2 && s !== 3) && this.F());
|
|
386
377
|
}
|
|
387
378
|
C() {
|
|
388
|
-
|
|
389
|
-
(t = this.suspense) != null && t.suspended || super.C();
|
|
379
|
+
this.suspense?.suspended || super.C();
|
|
390
380
|
}
|
|
391
381
|
}
|
|
392
|
-
const
|
|
393
|
-
const s = new
|
|
382
|
+
const Ae = (e, t) => {
|
|
383
|
+
const s = new et(e, t);
|
|
394
384
|
return () => s.Q(!0);
|
|
395
385
|
};
|
|
396
|
-
function
|
|
397
|
-
if (
|
|
398
|
-
return
|
|
386
|
+
function S(e) {
|
|
387
|
+
if (E(e))
|
|
388
|
+
return He in e ? S(e()) : me in e ? P(S(e())) : te in e ? e : B(() => S(e()));
|
|
399
389
|
if (e instanceof Array) {
|
|
400
390
|
const t = new Array(e.length);
|
|
401
391
|
for (let s = 0, n = t.length; s < n; s++)
|
|
402
|
-
t[s] =
|
|
392
|
+
t[s] = S(e[s]);
|
|
403
393
|
return t;
|
|
404
394
|
} else
|
|
405
395
|
return e;
|
|
406
396
|
}
|
|
407
|
-
class
|
|
397
|
+
class de extends ne {
|
|
408
398
|
/* CONSTRUCTOR */
|
|
409
399
|
constructor(t) {
|
|
410
|
-
super(), this.parent =
|
|
400
|
+
super(), this.parent = A, this.context = A.context, t && this.get(q) && (this.A0 = !0, U(this.parent, "T", this));
|
|
411
401
|
}
|
|
412
402
|
/* API */
|
|
413
403
|
Q(t) {
|
|
414
|
-
this.A0 &&
|
|
404
|
+
this.A0 && v(this.parent, "T", this), super.Q(t);
|
|
415
405
|
}
|
|
416
406
|
E(t) {
|
|
417
407
|
const s = () => this.Q(!0), n = () => t(s);
|
|
418
408
|
return super.E(n, this, void 0);
|
|
419
409
|
}
|
|
420
410
|
}
|
|
421
|
-
const
|
|
422
|
-
let
|
|
411
|
+
const Nt = P(-1);
|
|
412
|
+
let Lt = class extends de {
|
|
423
413
|
};
|
|
424
|
-
class
|
|
414
|
+
class Ct {
|
|
425
415
|
/* CONSTRUCTOR */
|
|
426
416
|
constructor(t) {
|
|
427
|
-
this.parent =
|
|
417
|
+
this.parent = A, this.suspense = A.get(q), this.A5 = /* @__PURE__ */ new Map(), this.A6 = !1, this.A7 = 0, this.A8 = 0, this.A9 = 0, this.cleanup = () => {
|
|
428
418
|
if (!this.A7 || this.A7 === this.A8)
|
|
429
419
|
return;
|
|
430
420
|
const { A5: s, A6: n } = this;
|
|
@@ -434,62 +424,59 @@ class qt {
|
|
|
434
424
|
r.Q(!0);
|
|
435
425
|
}), this.A5 = /* @__PURE__ */ new Map()));
|
|
436
426
|
}, this.Q = () => {
|
|
437
|
-
this.suspense &&
|
|
427
|
+
this.suspense && v(this.parent, "T", this.T), this.A7 = this.A5.size, this.A8 = 0, this.A9 = 0, this.cleanup();
|
|
438
428
|
}, this.AA = () => {
|
|
439
429
|
this.A6 = !this.A6, this.A8 = 0, this.A9 = 0;
|
|
440
430
|
}, this.O = (s) => {
|
|
441
431
|
this.A9 = s.length, this.cleanup(), this.A7 = this.A9, this.A8 = 0;
|
|
442
432
|
}, this.map = (s) => {
|
|
443
|
-
var A;
|
|
444
433
|
this.AA();
|
|
445
|
-
const { A5: n, A6: r, fn: i, AB:
|
|
446
|
-
let
|
|
447
|
-
for (let
|
|
448
|
-
const
|
|
449
|
-
if (
|
|
450
|
-
|
|
434
|
+
const { A5: n, A6: r, fn: i, AB: c } = this, u = new Array(s.length);
|
|
435
|
+
let o = !0, l = !0, p = 0;
|
|
436
|
+
for (let a = 0, d = s.length; a < d; a++) {
|
|
437
|
+
const g = s[a], h = n.get(g);
|
|
438
|
+
if (h && h.A6 !== r)
|
|
439
|
+
l = !1, p += 1, h.A6 = r, h.index?.set(a), u[a] = h.G;
|
|
451
440
|
else {
|
|
452
|
-
|
|
453
|
-
const
|
|
454
|
-
|
|
455
|
-
let y =
|
|
456
|
-
|
|
457
|
-
const
|
|
458
|
-
|
|
441
|
+
o = !1;
|
|
442
|
+
const w = new Lt(!1);
|
|
443
|
+
h && C(() => w.Q(!0)), w.E(() => {
|
|
444
|
+
let y = Nt;
|
|
445
|
+
c && (w.index = new T(a), y = D(w.index));
|
|
446
|
+
const _ = u[a] = S(i(g, y));
|
|
447
|
+
w.A6 = r, w.G = _, h || n.set(g, w);
|
|
459
448
|
});
|
|
460
449
|
}
|
|
461
450
|
}
|
|
462
|
-
return this.A8 =
|
|
463
|
-
}, this.T = () => Array.from(this.A5.values()), this.fn = t, this.AB = t.length > 1, this.suspense &&
|
|
451
|
+
return this.A8 = p, this.O(s), o && (u[Ee] = !0), l && (u[ze] = !0), u;
|
|
452
|
+
}, this.T = () => Array.from(this.A5.values()), this.fn = t, this.AB = t.length > 1, this.suspense && U(this.parent, "T", this.T);
|
|
464
453
|
}
|
|
465
454
|
}
|
|
466
|
-
const
|
|
467
|
-
function
|
|
468
|
-
return (t ?
|
|
455
|
+
const Ne = (e) => E(e) && te in e;
|
|
456
|
+
function V(e, t = !0) {
|
|
457
|
+
return (t ? E : Ne)(e) ? e() : e;
|
|
469
458
|
}
|
|
470
|
-
class
|
|
459
|
+
class tt extends ne {
|
|
471
460
|
/* CONSTRUCTOR */
|
|
472
461
|
constructor() {
|
|
473
|
-
|
|
474
|
-
super(), this.parent = g, this.context = { ...g.context, [H]: this }, ue(this.parent, "U", this), this.suspended = ((t = g.get(H)) == null ? void 0 : t.suspended) || 0;
|
|
462
|
+
super(), this.parent = A, this.context = { ...A.context, [q]: this }, se(this.parent, "U", this), this.suspended = A.get(q)?.suspended || 0;
|
|
475
463
|
}
|
|
476
464
|
/* API */
|
|
477
465
|
A4(t) {
|
|
478
|
-
var c;
|
|
479
466
|
if (!this.suspended && !t)
|
|
480
467
|
return;
|
|
481
468
|
const s = this.suspended, n = s + (t ? 1 : -1);
|
|
482
469
|
if (this.suspended = n, !!s == !!n)
|
|
483
470
|
return;
|
|
484
|
-
|
|
485
|
-
const r = (
|
|
486
|
-
|
|
487
|
-
}, i = (
|
|
488
|
-
|
|
489
|
-
},
|
|
490
|
-
|
|
491
|
-
}, u = (
|
|
492
|
-
|
|
471
|
+
this.observable?.set(!!n);
|
|
472
|
+
const r = (o) => {
|
|
473
|
+
Se(o.D, r), Se(o.K, i), Se(o.U, u), Z(o.T, c);
|
|
474
|
+
}, i = (o) => {
|
|
475
|
+
o instanceof et && (o.J === ue || o.J === le) && (o.init ? o.C() : o.F()), r(o);
|
|
476
|
+
}, c = (o) => {
|
|
477
|
+
E(o) ? o().forEach(r) : r(o);
|
|
478
|
+
}, u = (o) => {
|
|
479
|
+
o.A4(t);
|
|
493
480
|
};
|
|
494
481
|
r(this);
|
|
495
482
|
}
|
|
@@ -497,136 +484,134 @@ class ct extends le {
|
|
|
497
484
|
return super.E(t, this, void 0);
|
|
498
485
|
}
|
|
499
486
|
}
|
|
500
|
-
const
|
|
501
|
-
const s = new
|
|
502
|
-
return
|
|
503
|
-
},
|
|
504
|
-
class
|
|
487
|
+
const st = (e, t) => {
|
|
488
|
+
const s = new tt(), n = Ie(e);
|
|
489
|
+
return Ae(() => s.A4(V(n)), { sync: !0 }), s.E(t);
|
|
490
|
+
}, Kt = P(-1);
|
|
491
|
+
class Ut extends de {
|
|
505
492
|
}
|
|
506
|
-
class
|
|
493
|
+
class vt {
|
|
507
494
|
/* CONSTRUCTOR */
|
|
508
495
|
constructor(t, s) {
|
|
509
|
-
this.parent =
|
|
496
|
+
this.parent = A, this.suspense = A.get(q), this.A5 = /* @__PURE__ */ new Map(), this.AC = [], this.AD = 0, this.cleanup = () => {
|
|
510
497
|
let n = 0, r = Math.max(0, this.pooled ? this.AD - this.AC.length : 0);
|
|
511
498
|
this.A5.forEach((i) => {
|
|
512
|
-
|
|
513
|
-
r > 0 && n++ < r ? ((o = i.suspended) == null || o.set(!0), this.AC.push(i)) : i.Q(!0);
|
|
499
|
+
r > 0 && n++ < r ? (i.suspended?.set(!0), this.AC.push(i)) : i.Q(!0);
|
|
514
500
|
});
|
|
515
501
|
}, this.Q = () => {
|
|
516
|
-
this.suspense &&
|
|
502
|
+
this.suspense && v(this.parent, "T", this.T), this.A5.forEach((n) => {
|
|
517
503
|
n.Q(!0);
|
|
518
504
|
}), this.AC.forEach((n) => {
|
|
519
505
|
n.Q(!0);
|
|
520
506
|
});
|
|
521
507
|
}, this.map = (n) => {
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
let A = !0, f = !0, S = [];
|
|
508
|
+
const { A5: r, fn: i, AB: c } = this, u = /* @__PURE__ */ new Map(), o = new Array(n.length), l = this.AC, p = this.pooled;
|
|
509
|
+
let a = !0, d = !0, g = [];
|
|
525
510
|
if (r.size)
|
|
526
|
-
for (let
|
|
527
|
-
const
|
|
528
|
-
|
|
511
|
+
for (let h = 0, w = n.length; h < w; h++) {
|
|
512
|
+
const y = n[h], _ = r.get(y);
|
|
513
|
+
_ ? (d = !1, r.delete(y), u.set(y, _), _.index?.set(h), o[h] = _.G) : g.push(h);
|
|
529
514
|
}
|
|
530
515
|
else
|
|
531
|
-
|
|
532
|
-
e: for (let
|
|
533
|
-
const
|
|
534
|
-
if (!
|
|
535
|
-
for (const [
|
|
536
|
-
r.delete(
|
|
516
|
+
g = new Array(o.length);
|
|
517
|
+
e: for (let h = 0, w = g.length; h < w; h++) {
|
|
518
|
+
const y = g[h] || h, _ = n[y], Le = u.has(_);
|
|
519
|
+
if (!Le)
|
|
520
|
+
for (const [G, Q] of r.entries()) {
|
|
521
|
+
r.delete(G), u.set(_, Q), Q.index?.set(y), Q.value?.set(_), o[y] = Q.G;
|
|
537
522
|
continue e;
|
|
538
523
|
}
|
|
539
|
-
|
|
540
|
-
let
|
|
541
|
-
|
|
542
|
-
let
|
|
543
|
-
|
|
544
|
-
const
|
|
545
|
-
|
|
546
|
-
})),
|
|
524
|
+
a = !1;
|
|
525
|
+
let O;
|
|
526
|
+
p && l.length ? (O = l.pop(), O.index?.set(y), O.value?.set(_), O.suspended?.set(!1), o[y] = O.G) : (O = new Ut(!1), O.E(() => {
|
|
527
|
+
let G = Kt;
|
|
528
|
+
c && (O.index = new T(y), G = D(O.index));
|
|
529
|
+
const Q = O.value = new T(_), be = p ? new T(!1) : void 0, Ce = B(() => V(Q.get())), at = o[y] = be ? st(() => be.get(), () => S(i(Ce, G))) : S(i(Ce, G));
|
|
530
|
+
O.value = Q, O.G = at, O.suspended = be;
|
|
531
|
+
})), Le ? C(() => O.Q(!0)) : u.set(_, O);
|
|
547
532
|
}
|
|
548
|
-
return this.AD = Math.max(this.AD,
|
|
549
|
-
}, this.T = () => [...this.A5.values(), ...this.AC.values()], this.fn = t, this.AB = t.length > 1, this.pooled = s, this.suspense &&
|
|
533
|
+
return this.AD = Math.max(this.AD, o.length), this.cleanup(), this.A5 = u, a && (o[Ee] = !0), d && (o[ze] = !0), o;
|
|
534
|
+
}, this.T = () => [...this.A5.values(), ...this.AC.values()], this.fn = t, this.AB = t.length > 1, this.pooled = s, this.suspense && U(this.parent, "T", this.T);
|
|
550
535
|
}
|
|
551
536
|
}
|
|
552
|
-
const
|
|
553
|
-
function
|
|
554
|
-
if (
|
|
555
|
-
const t =
|
|
537
|
+
const m = (e) => Me(e) && X in e;
|
|
538
|
+
function I(e) {
|
|
539
|
+
if (E(e)) {
|
|
540
|
+
const t = H;
|
|
556
541
|
if (t)
|
|
557
542
|
try {
|
|
558
|
-
return
|
|
543
|
+
return he(void 0), e();
|
|
559
544
|
} finally {
|
|
560
|
-
|
|
545
|
+
he(t);
|
|
561
546
|
}
|
|
562
547
|
else
|
|
563
548
|
return e();
|
|
564
549
|
} else
|
|
565
550
|
return e;
|
|
566
551
|
}
|
|
567
|
-
function
|
|
568
|
-
if (
|
|
569
|
-
const r = !!
|
|
570
|
-
return
|
|
552
|
+
function Dt(e, t, s = [], n) {
|
|
553
|
+
if (K(e) && !m(e)) {
|
|
554
|
+
const r = !!n?.unkeyed;
|
|
555
|
+
return P(I(() => e.length ? e.map((i, c) => S(t(r && !Ne(i) ? P(i) : i, c))) : S(s)));
|
|
571
556
|
} else {
|
|
572
|
-
const { Q: r, map: i } = n
|
|
573
|
-
|
|
574
|
-
const
|
|
575
|
-
equals: (u,
|
|
557
|
+
const { Q: r, map: i } = n?.unkeyed ? new vt(t, !!n.pooled) : new Ct(t);
|
|
558
|
+
C(r);
|
|
559
|
+
const c = B(() => V(e) ?? [], {
|
|
560
|
+
equals: (u, o) => !!u && !!o && !u.length && !o.length && !m(u) && !m(o)
|
|
576
561
|
});
|
|
577
|
-
return
|
|
578
|
-
const u =
|
|
579
|
-
return
|
|
580
|
-
const
|
|
581
|
-
return
|
|
562
|
+
return B(() => {
|
|
563
|
+
const u = c();
|
|
564
|
+
return m(u) && u[Re], I(() => {
|
|
565
|
+
const o = i(u);
|
|
566
|
+
return o?.length ? o : S(s);
|
|
582
567
|
});
|
|
583
568
|
}, {
|
|
584
|
-
equals: (u,
|
|
569
|
+
equals: (u, o) => K(u) && !!u[Ee] && K(o) && bt(u, o)
|
|
585
570
|
});
|
|
586
571
|
}
|
|
587
572
|
}
|
|
588
|
-
const
|
|
573
|
+
const nt = (e) => (I(e), e), ye = (e, t, s) => {
|
|
589
574
|
for (let n = 0, r = t.length; n < r; n++) {
|
|
590
575
|
const i = t[n];
|
|
591
576
|
if (i.length === 1)
|
|
592
577
|
return i[0];
|
|
593
|
-
if (
|
|
578
|
+
if (J(i[0], e))
|
|
594
579
|
return i[1];
|
|
595
580
|
}
|
|
596
581
|
return s;
|
|
597
582
|
};
|
|
598
|
-
function
|
|
599
|
-
if (
|
|
600
|
-
if (
|
|
601
|
-
return
|
|
602
|
-
const r =
|
|
603
|
-
return
|
|
583
|
+
function rt(e, t, s) {
|
|
584
|
+
if (E(e) && !k(e) && !Be(e)) {
|
|
585
|
+
if (ke(e))
|
|
586
|
+
return B(() => S(ye(e(), t, s)));
|
|
587
|
+
const r = nt(B(() => ye(e(), t, s)));
|
|
588
|
+
return k(r) ? P(S(r())) : B(() => S(V(r)));
|
|
604
589
|
} else {
|
|
605
|
-
const r =
|
|
606
|
-
return
|
|
590
|
+
const r = ye(V(e), t, s);
|
|
591
|
+
return P(S(r));
|
|
607
592
|
}
|
|
608
593
|
}
|
|
609
|
-
const
|
|
610
|
-
const n =
|
|
611
|
-
return
|
|
594
|
+
const it = (e, t, s) => {
|
|
595
|
+
const n = Ie(e);
|
|
596
|
+
return rt(n, [[!0, t], [s]]);
|
|
612
597
|
};
|
|
613
|
-
function
|
|
614
|
-
return
|
|
598
|
+
function Qt(e, t, s) {
|
|
599
|
+
return it(e, t, s);
|
|
615
600
|
}
|
|
616
|
-
const
|
|
617
|
-
function
|
|
618
|
-
return
|
|
601
|
+
const ot = () => !!F || fe.A3 || fe.A2 || j.A2;
|
|
602
|
+
function ct(e, t) {
|
|
603
|
+
return $e(new T(e, t));
|
|
619
604
|
}
|
|
620
|
-
const
|
|
621
|
-
const e =
|
|
605
|
+
const ut = () => {
|
|
606
|
+
const e = A instanceof Xe, t = A instanceof de, s = A instanceof tt, n = A instanceof Pe;
|
|
622
607
|
return { isSuperRoot: e, isRoot: t, isSuspense: s, isComputation: n };
|
|
623
|
-
},
|
|
624
|
-
class
|
|
608
|
+
}, qt = (e) => E(e) && Oe in e, Jt = (e) => E(e) ? e[we] || e[Oe] || Te : e, Yt = (e) => qt(e) ? D(Jt(e)) : e, Ft = (e) => new de(!0).E(e);
|
|
609
|
+
class Vt extends Map {
|
|
625
610
|
constructor() {
|
|
626
611
|
super(...arguments), this.disposed = !1;
|
|
627
612
|
}
|
|
628
613
|
}
|
|
629
|
-
class
|
|
614
|
+
class zt extends T {
|
|
630
615
|
constructor() {
|
|
631
616
|
super(...arguments), this.AE = 1;
|
|
632
617
|
}
|
|
@@ -635,34 +620,33 @@ class Xt extends N {
|
|
|
635
620
|
this.AF.disposed || (this.AE -= 1, !this.AE && this.AF.delete(this.AG));
|
|
636
621
|
}
|
|
637
622
|
}
|
|
638
|
-
const
|
|
639
|
-
if (e =
|
|
640
|
-
const r =
|
|
641
|
-
return (i) => i === r ?
|
|
642
|
-
}
|
|
643
|
-
let t = new
|
|
644
|
-
return
|
|
645
|
-
var o, u;
|
|
623
|
+
const Ht = (e) => {
|
|
624
|
+
if (e = nt(B(e)), k(e)) {
|
|
625
|
+
const r = I(e);
|
|
626
|
+
return (i) => i === r ? wt : je;
|
|
627
|
+
}
|
|
628
|
+
let t = new Vt(), s = I(e);
|
|
629
|
+
return Ae(() => {
|
|
646
630
|
const r = s, i = e();
|
|
647
|
-
|
|
648
|
-
}, { suspense: !1, sync: !0 }),
|
|
631
|
+
J(r, i) || (s = i, t.get(r)?.set(!1), t.get(i)?.set(!0));
|
|
632
|
+
}, { suspense: !1, sync: !0 }), C(() => {
|
|
649
633
|
t.disposed = !0;
|
|
650
634
|
}), (r) => {
|
|
651
635
|
let i = t.get(r);
|
|
652
|
-
return i ? i.AE += 1 : (i = new
|
|
636
|
+
return i ? i.AE += 1 : (i = new zt(r === s), i.AF = t, i.AG = r, t.set(r, i)), C(i), D(i);
|
|
653
637
|
};
|
|
654
638
|
};
|
|
655
|
-
class
|
|
639
|
+
class N extends Map {
|
|
656
640
|
AH(t, s) {
|
|
657
641
|
return super.set(t, s), s;
|
|
658
642
|
}
|
|
659
643
|
}
|
|
660
|
-
class
|
|
644
|
+
class pe {
|
|
661
645
|
constructor() {
|
|
662
646
|
this.AE = 0;
|
|
663
647
|
}
|
|
664
648
|
listen() {
|
|
665
|
-
this.AE += 1,
|
|
649
|
+
this.AE += 1, C(this);
|
|
666
650
|
}
|
|
667
651
|
call() {
|
|
668
652
|
this.AE -= 1, !this.AE && this.Q();
|
|
@@ -670,7 +654,7 @@ class ye {
|
|
|
670
654
|
Q() {
|
|
671
655
|
}
|
|
672
656
|
}
|
|
673
|
-
class
|
|
657
|
+
class Gt extends pe {
|
|
674
658
|
constructor(t, s) {
|
|
675
659
|
super(), this.parent = t, this.observable = s;
|
|
676
660
|
}
|
|
@@ -678,7 +662,7 @@ class kt extends ye {
|
|
|
678
662
|
this.parent.keys = void 0;
|
|
679
663
|
}
|
|
680
664
|
}
|
|
681
|
-
class
|
|
665
|
+
class $t extends pe {
|
|
682
666
|
constructor(t, s) {
|
|
683
667
|
super(), this.parent = t, this.observable = s;
|
|
684
668
|
}
|
|
@@ -686,33 +670,31 @@ class es extends ye {
|
|
|
686
670
|
this.parent.values = void 0;
|
|
687
671
|
}
|
|
688
672
|
}
|
|
689
|
-
class
|
|
673
|
+
class jt extends pe {
|
|
690
674
|
constructor(t, s, n) {
|
|
691
675
|
super(), this.parent = t, this.key = s, this.observable = n;
|
|
692
676
|
}
|
|
693
677
|
Q() {
|
|
694
|
-
|
|
695
|
-
(t = this.parent.has) == null || t.delete(this.key);
|
|
678
|
+
this.parent.has?.delete(this.key);
|
|
696
679
|
}
|
|
697
680
|
}
|
|
698
|
-
class
|
|
681
|
+
class Wt extends pe {
|
|
699
682
|
constructor(t, s, n, r) {
|
|
700
683
|
super(), this.parent = t, this.key = s, this.observable = n, this.AI = r;
|
|
701
684
|
}
|
|
702
685
|
Q() {
|
|
703
|
-
|
|
704
|
-
(t = this.parent.AJ) == null || t.delete(this.key);
|
|
686
|
+
this.parent.AJ?.delete(this.key);
|
|
705
687
|
}
|
|
706
688
|
}
|
|
707
|
-
const
|
|
689
|
+
const R = {
|
|
708
690
|
/* VARIABLES */
|
|
709
691
|
AK: 0,
|
|
710
692
|
AL: /* @__PURE__ */ new Set(),
|
|
711
693
|
AM: /* @__PURE__ */ new Set(),
|
|
712
694
|
/* API */
|
|
713
695
|
AN: () => {
|
|
714
|
-
const { AL: e, AM: t } =
|
|
715
|
-
s.has(r) || (s.add(r),
|
|
696
|
+
const { AL: e, AM: t } = R, s = /* @__PURE__ */ new Set(), n = (r) => {
|
|
697
|
+
s.has(r) || (s.add(r), Z(r.AO, n), Z(r.AP, (i) => {
|
|
716
698
|
e.add(i);
|
|
717
699
|
}));
|
|
718
700
|
};
|
|
@@ -723,378 +705,373 @@ const m = {
|
|
|
723
705
|
};
|
|
724
706
|
},
|
|
725
707
|
V: (e) => {
|
|
726
|
-
|
|
708
|
+
R.AM.add(e), x.F();
|
|
727
709
|
},
|
|
728
710
|
reset: () => {
|
|
729
|
-
|
|
711
|
+
R.AL = /* @__PURE__ */ new Set(), R.AM = /* @__PURE__ */ new Set();
|
|
730
712
|
}
|
|
731
|
-
},
|
|
713
|
+
}, b = {
|
|
732
714
|
/* VARIABLES */
|
|
733
715
|
AK: 0,
|
|
734
716
|
AM: /* @__PURE__ */ new Map(),
|
|
735
717
|
/* API */
|
|
736
718
|
AN: () => {
|
|
737
|
-
const { AM: e } =
|
|
719
|
+
const { AM: e } = b;
|
|
738
720
|
return () => {
|
|
739
721
|
e.forEach((t, s) => {
|
|
740
722
|
const n = Array.from(t);
|
|
741
|
-
|
|
723
|
+
Z(s.AQ, (r) => {
|
|
742
724
|
r(n);
|
|
743
725
|
});
|
|
744
726
|
});
|
|
745
727
|
};
|
|
746
728
|
},
|
|
747
729
|
V: (e, t) => {
|
|
748
|
-
const s =
|
|
749
|
-
s.add(t),
|
|
730
|
+
const s = b.AM.get(e) || /* @__PURE__ */ new Set();
|
|
731
|
+
s.add(t), b.AM.set(e, s), x.F();
|
|
750
732
|
},
|
|
751
733
|
AR: (e, t, s) => {
|
|
752
734
|
if (t.AO) {
|
|
753
735
|
const n = /* @__PURE__ */ new Set(), r = (i) => {
|
|
754
|
-
n.has(i) || (n.add(i),
|
|
755
|
-
|
|
736
|
+
n.has(i) || (n.add(i), Z(i.AO, (c) => {
|
|
737
|
+
c.AO || b.V(c, i.store), r(c);
|
|
756
738
|
}));
|
|
757
739
|
};
|
|
758
740
|
r(e || t);
|
|
759
741
|
} else {
|
|
760
|
-
const n =
|
|
761
|
-
|
|
742
|
+
const n = e?.store || I(() => t.store[s]);
|
|
743
|
+
b.V(t, n);
|
|
762
744
|
}
|
|
763
745
|
},
|
|
764
746
|
reset: () => {
|
|
765
|
-
|
|
747
|
+
b.AM = /* @__PURE__ */ new Map();
|
|
766
748
|
}
|
|
767
|
-
},
|
|
749
|
+
}, x = {
|
|
768
750
|
/* VARIABLES */
|
|
769
751
|
AK: !1,
|
|
770
752
|
/* API */
|
|
771
753
|
N: () => {
|
|
772
|
-
const e =
|
|
773
|
-
|
|
754
|
+
const e = R.AN(), t = b.AN();
|
|
755
|
+
x.reset(), e(), t();
|
|
774
756
|
},
|
|
775
757
|
AS: () => {
|
|
776
|
-
|
|
758
|
+
ot() ? F ? F.finally(x.AS) : setTimeout(x.AS, 0) : x.N();
|
|
777
759
|
},
|
|
778
760
|
reset: () => {
|
|
779
|
-
|
|
761
|
+
x.AK = !1, R.reset(), b.reset();
|
|
780
762
|
},
|
|
781
763
|
F: () => {
|
|
782
|
-
|
|
764
|
+
x.AK || (x.AK = !0, queueMicrotask(x.AS));
|
|
783
765
|
}
|
|
784
|
-
},
|
|
766
|
+
}, z = /* @__PURE__ */ new WeakMap(), Xt = /* @__PURE__ */ new Set([X, Fe, Ve, ce, Re]), Zt = /* @__PURE__ */ new Set(["__proto__", "__defineGetter__", "__defineSetter__", "__lookupGetter__", "__lookupSetter__", "prototype", "constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toSource", "toString", "valueOf"]), lt = {
|
|
785
767
|
/* API */
|
|
786
768
|
get: (e, t) => {
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
if (t === ne)
|
|
769
|
+
if (Xt.has(t)) {
|
|
770
|
+
if (t === X)
|
|
790
771
|
return !0;
|
|
791
|
-
if (t ===
|
|
772
|
+
if (t === ce)
|
|
792
773
|
return e;
|
|
793
|
-
if (t ===
|
|
794
|
-
if (
|
|
795
|
-
const
|
|
796
|
-
|
|
774
|
+
if (t === Fe) {
|
|
775
|
+
if ($()) {
|
|
776
|
+
const o = M(e);
|
|
777
|
+
o.keys || (o.keys = Qe(o)), o.keys.listen(), o.keys.observable.get();
|
|
797
778
|
}
|
|
798
779
|
return;
|
|
799
780
|
}
|
|
800
|
-
if (t ===
|
|
801
|
-
if (
|
|
802
|
-
const
|
|
803
|
-
|
|
781
|
+
if (t === Re) {
|
|
782
|
+
if ($()) {
|
|
783
|
+
const o = M(e);
|
|
784
|
+
o.values || (o.values = es(o)), o.values.listen(), o.values.observable.get();
|
|
804
785
|
}
|
|
805
786
|
return;
|
|
806
787
|
}
|
|
807
|
-
if (t ===
|
|
808
|
-
return (
|
|
809
|
-
|
|
810
|
-
l =
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
return d.observable || (d.observable = oe(A, S, b)), F(d.observable);
|
|
788
|
+
if (t === Ve)
|
|
789
|
+
return (o) => {
|
|
790
|
+
o = typeof o == "number" ? String(o) : o;
|
|
791
|
+
const l = M(e), p = l.AT?.get(o);
|
|
792
|
+
if (p)
|
|
793
|
+
return p.bind(l.store);
|
|
794
|
+
l.AJ || (l.AJ = new N());
|
|
795
|
+
const a = e[o], d = l.AJ.get(o) || l.AJ.AH(o, qe(l, o, a)), g = l.equals ? { equals: l.equals } : void 0;
|
|
796
|
+
return d.observable || (d.observable = ee(l, a, g)), D(d.observable);
|
|
817
797
|
};
|
|
818
798
|
}
|
|
819
|
-
if (
|
|
799
|
+
if (Zt.has(t))
|
|
820
800
|
return e[t];
|
|
821
|
-
const s =
|
|
822
|
-
s.AJ || (s.AJ = new
|
|
823
|
-
const i =
|
|
824
|
-
if (u
|
|
825
|
-
const
|
|
826
|
-
u.listen(), u.observable || (u.observable =
|
|
801
|
+
const s = M(e), n = s.AT?.get(t), r = n || e[t];
|
|
802
|
+
s.AJ || (s.AJ = new N());
|
|
803
|
+
const i = $(), c = W(r), u = i || c ? s.AJ.get(t) || s.AJ.AH(t, qe(s, t, r)) : void 0;
|
|
804
|
+
if (u?.AI && U(u.AI, "AO", s), u && i) {
|
|
805
|
+
const o = s.equals ? { equals: s.equals } : void 0;
|
|
806
|
+
u.listen(), u.observable || (u.observable = ee(s, r, o)), u.observable.get();
|
|
827
807
|
}
|
|
828
808
|
return n ? n.call(s.store) : typeof r == "function" && r === Array.prototype[t] ? function() {
|
|
829
809
|
return r.apply(s.store, arguments);
|
|
830
|
-
} :
|
|
810
|
+
} : u?.AI?.store || r;
|
|
831
811
|
},
|
|
832
812
|
set: (e, t, s) => {
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
const n = P(e), r = (i = n.AU) == null ? void 0 : i.get(t);
|
|
813
|
+
s = L(s);
|
|
814
|
+
const n = M(e), r = n.AU?.get(t);
|
|
836
815
|
if (r)
|
|
837
816
|
r.call(n.store, s);
|
|
838
817
|
else {
|
|
839
|
-
const
|
|
840
|
-
if (
|
|
818
|
+
const i = K(e), c = e[t], u = !!c || t in e, o = n.equals || J;
|
|
819
|
+
if (u && o(s, c) && (t !== "length" || !i))
|
|
841
820
|
return !0;
|
|
842
|
-
const
|
|
821
|
+
const l = i && e.length;
|
|
843
822
|
e[t] = s;
|
|
844
|
-
const
|
|
845
|
-
|
|
846
|
-
const
|
|
847
|
-
if (
|
|
848
|
-
const
|
|
849
|
-
for (let
|
|
850
|
-
|
|
823
|
+
const p = i && e.length;
|
|
824
|
+
i && t !== "length" && l !== p && n.AJ?.get("length")?.observable?.set(p), n.values?.observable.set(0), u || (n.keys?.observable.set(0), n.has?.get(t)?.observable.set(!0));
|
|
825
|
+
const a = n.AJ?.get(t);
|
|
826
|
+
if (a?.AI && v(a.AI, "AO", n), a && (a.observable?.set(s), a.AI = W(s) ? z.get(s) || ae(s, t, n) : void 0), a?.AI && U(a.AI, "AO", n), b.AK && b.AR(a?.AI, n, t), R.AK && R.V(n), i && t === "length") {
|
|
827
|
+
const d = Number(c), g = Number(s);
|
|
828
|
+
for (let h = g; h < d; h++)
|
|
829
|
+
h in e || lt.deleteProperty(e, `${h}`, !0);
|
|
851
830
|
}
|
|
852
831
|
}
|
|
853
832
|
return !0;
|
|
854
833
|
},
|
|
855
834
|
deleteProperty: (e, t, s) => {
|
|
856
|
-
var u, c, h, l, A, f, S, d;
|
|
857
835
|
const n = t in e;
|
|
858
836
|
if (!s && !n)
|
|
859
837
|
return !0;
|
|
860
838
|
if (!Reflect.deleteProperty(e, t))
|
|
861
839
|
return !1;
|
|
862
|
-
const i =
|
|
863
|
-
|
|
864
|
-
const
|
|
865
|
-
return
|
|
840
|
+
const i = M(e);
|
|
841
|
+
i.AT?.delete(t), i.AU?.delete(t), i.keys?.observable.set(0), i.values?.observable.set(0), i.has?.get(t)?.observable.set(!1);
|
|
842
|
+
const c = i.AJ?.get(t);
|
|
843
|
+
return b.AK && b.AR(c?.AI, i, t), c?.AI && v(c.AI, "AO", i), c && (c.observable?.set(void 0), c.AI = void 0), R.AK && R.V(i), !0;
|
|
866
844
|
},
|
|
867
845
|
defineProperty: (e, t, s) => {
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
if ("value" in s && B(s.value) && (s = { ...s, value: v(s.value) }), o && fs(o, s, r))
|
|
846
|
+
const n = M(e), r = n.equals || J, i = t in e, c = Reflect.getOwnPropertyDescriptor(e, t);
|
|
847
|
+
if ("value" in s && m(s.value) && (s = { ...s, value: L(s.value) }), c && is(c, s, r))
|
|
871
848
|
return !0;
|
|
872
849
|
if (!Reflect.defineProperty(e, t, s))
|
|
873
850
|
return !1;
|
|
874
|
-
s.get ? s.get && (n.AT || (n.AT = new
|
|
875
|
-
const
|
|
876
|
-
if (
|
|
851
|
+
s.get ? s.get && (n.AT || (n.AT = new N()), n.AT.set(t, s.get)) : n.AT?.delete(t), s.set ? s.set && (n.AU || (n.AU = new N()), n.AU.set(t, s.set)) : n.AU?.delete(t), i !== !!s.enumerable && n.keys?.observable.set(0), n.has?.get(t)?.observable.set(!0);
|
|
852
|
+
const o = n.AJ?.get(t);
|
|
853
|
+
if (b.AK && b.AR(o?.AI, n, t), o?.AI && v(o.AI, "AO", n), o)
|
|
877
854
|
if ("get" in s)
|
|
878
|
-
|
|
855
|
+
o.observable?.set(s.get), o.AI = void 0;
|
|
879
856
|
else {
|
|
880
|
-
const
|
|
881
|
-
|
|
857
|
+
const l = s.value;
|
|
858
|
+
o.observable?.set(l), o.AI = W(l) ? z.get(l) || ae(l, t, n) : void 0;
|
|
882
859
|
}
|
|
883
|
-
return
|
|
860
|
+
return o?.AI && U(o.AI, "AO", n), b.AK && b.AR(o?.AI, n, t), R.AK && R.V(n), !0;
|
|
884
861
|
},
|
|
885
862
|
has: (e, t) => {
|
|
886
|
-
if (t ===
|
|
863
|
+
if (t === X || t === ce)
|
|
887
864
|
return !0;
|
|
888
865
|
const s = t in e;
|
|
889
|
-
if (
|
|
890
|
-
const n =
|
|
891
|
-
n.has || (n.has = new
|
|
892
|
-
const r = n.has.get(t) || n.has.AH(t,
|
|
866
|
+
if ($()) {
|
|
867
|
+
const n = M(e);
|
|
868
|
+
n.has || (n.has = new N());
|
|
869
|
+
const r = n.has.get(t) || n.has.AH(t, ts(n, t, s));
|
|
893
870
|
r.listen(), r.observable.get();
|
|
894
871
|
}
|
|
895
872
|
return s;
|
|
896
873
|
},
|
|
897
874
|
ownKeys: (e) => {
|
|
898
875
|
const t = Reflect.ownKeys(e);
|
|
899
|
-
if (
|
|
900
|
-
const s =
|
|
901
|
-
s.keys || (s.keys =
|
|
876
|
+
if ($()) {
|
|
877
|
+
const s = M(e);
|
|
878
|
+
s.keys || (s.keys = Qe(s)), s.keys.listen(), s.keys.observable.get();
|
|
902
879
|
}
|
|
903
880
|
return t;
|
|
904
881
|
}
|
|
905
|
-
},
|
|
882
|
+
}, kt = {
|
|
906
883
|
/* API */
|
|
907
|
-
has: (e, t) => t ===
|
|
908
|
-
},
|
|
909
|
-
if (
|
|
910
|
-
return
|
|
911
|
-
const r =
|
|
884
|
+
has: (e, t) => t === _e ? !0 : t in e
|
|
885
|
+
}, ae = (e, t, s, n) => {
|
|
886
|
+
if (m(e))
|
|
887
|
+
return M(L(e));
|
|
888
|
+
const r = os(e, t, s) ? e : new Proxy(e, lt), i = ss(e), c = { AO: s, store: r };
|
|
912
889
|
if (i) {
|
|
913
|
-
const { AT: u, AU:
|
|
914
|
-
u && (
|
|
890
|
+
const { AT: u, AU: o } = i;
|
|
891
|
+
u && (c.AT = u), o && (c.AU = o);
|
|
915
892
|
}
|
|
916
|
-
return n === !1 ?
|
|
917
|
-
},
|
|
918
|
-
const t =
|
|
893
|
+
return n === !1 ? c.equals = Ge : n ? c.equals = n : s?.equals && (c.equals = s.equals), z.set(e, c), c;
|
|
894
|
+
}, M = (e) => {
|
|
895
|
+
const t = z.get(e);
|
|
919
896
|
if (!t)
|
|
920
897
|
throw new Error("Impossible");
|
|
921
898
|
return t;
|
|
922
|
-
},
|
|
923
|
-
const t =
|
|
924
|
-
return new
|
|
925
|
-
},
|
|
926
|
-
const t =
|
|
927
|
-
return new
|
|
928
|
-
},
|
|
929
|
-
const n =
|
|
930
|
-
return new
|
|
931
|
-
},
|
|
932
|
-
const r =
|
|
933
|
-
return e.AJ || (e.AJ = new
|
|
934
|
-
},
|
|
935
|
-
if (
|
|
899
|
+
}, ht = (e) => M(L(e)), Qe = (e) => {
|
|
900
|
+
const t = ee(e, 0, { equals: !1 });
|
|
901
|
+
return new Gt(e, t);
|
|
902
|
+
}, es = (e) => {
|
|
903
|
+
const t = ee(e, 0, { equals: !1 });
|
|
904
|
+
return new $t(e, t);
|
|
905
|
+
}, ts = (e, t, s) => {
|
|
906
|
+
const n = ee(e, s);
|
|
907
|
+
return new jt(e, t, n);
|
|
908
|
+
}, ee = (e, t, s) => new T(t, s), qe = (e, t, s) => {
|
|
909
|
+
const r = W(s) ? z.get(s) || ae(s, t, e) : void 0, i = new Wt(e, t, void 0, r);
|
|
910
|
+
return e.AJ || (e.AJ = new N()), e.AJ.set(t, i), i;
|
|
911
|
+
}, ss = (e) => {
|
|
912
|
+
if (K(e))
|
|
936
913
|
return;
|
|
937
914
|
let t, s;
|
|
938
915
|
const n = Object.keys(e);
|
|
939
916
|
for (let r = 0, i = n.length; r < i; r++) {
|
|
940
|
-
const
|
|
917
|
+
const c = n[r], u = Object.getOwnPropertyDescriptor(e, c);
|
|
941
918
|
if (!u)
|
|
942
919
|
continue;
|
|
943
|
-
const { get:
|
|
944
|
-
|
|
920
|
+
const { get: o, set: l } = u;
|
|
921
|
+
o && (t || (t = new N()), t.set(c, o)), l && (s || (s = new N()), s.set(c, l)), o && !l && (s || (s = new N()), s.set(c, cs));
|
|
945
922
|
}
|
|
946
923
|
if (!(!t && !s))
|
|
947
924
|
return { AT: t, AU: s };
|
|
948
|
-
},
|
|
925
|
+
}, ns = (e, t) => m(e) ? e : (z.get(e) || ae(e, void 0, void 0, t?.equals)).store, L = (e) => m(e) ? e[ce] : e, rs = (e) => !Me(e) || ft(e) ? e : new Proxy(e, kt), is = (e, t, s) => !!e.configurable == !!t.configurable && !!e.enumerable == !!t.enumerable && !!e.writable == !!t.writable && s(e.value, t.value) && e.get === t.get && e.set === t.set, os = (e, t, s) => {
|
|
949
926
|
if (Object.isFrozen(e))
|
|
950
927
|
return !0;
|
|
951
928
|
if (!s || t === void 0)
|
|
952
929
|
return !1;
|
|
953
|
-
const n =
|
|
954
|
-
return !(r
|
|
955
|
-
},
|
|
930
|
+
const n = Y.unwrap(s.store), r = Reflect.getOwnPropertyDescriptor(n, t);
|
|
931
|
+
return !(r?.configurable || r?.writable);
|
|
932
|
+
}, $ = () => !!H, W = (e) => {
|
|
956
933
|
if (e === null || typeof e != "object")
|
|
957
934
|
return !1;
|
|
958
|
-
if (
|
|
935
|
+
if (X in e)
|
|
959
936
|
return !0;
|
|
960
|
-
if (
|
|
937
|
+
if (_e in e)
|
|
961
938
|
return !1;
|
|
962
|
-
if (
|
|
939
|
+
if (K(e))
|
|
963
940
|
return !0;
|
|
964
941
|
const t = Object.getPrototypeOf(e);
|
|
965
942
|
return t === null ? !0 : Object.getPrototypeOf(t) === null;
|
|
966
|
-
},
|
|
943
|
+
}, ft = (e) => e === null || typeof e != "object" ? !1 : _e in e, cs = () => {
|
|
967
944
|
throw new TypeError("Cannot set property value of #<Object> which has only a getter");
|
|
968
|
-
},
|
|
969
|
-
|
|
970
|
-
const s =
|
|
971
|
-
|
|
972
|
-
const i = n.map((
|
|
945
|
+
}, Y = (e, t) => !Me(e) || ft(e) ? e : ns(e, t);
|
|
946
|
+
Y.on = (e, t) => {
|
|
947
|
+
const s = m(e) ? [e] : dt(e), n = s.filter(E), r = s.filter(m).map(ht);
|
|
948
|
+
R.AK += 1;
|
|
949
|
+
const i = n.map((c) => {
|
|
973
950
|
let u = !1;
|
|
974
|
-
return
|
|
975
|
-
u && (
|
|
951
|
+
return Ae(() => {
|
|
952
|
+
u && (R.AL.add(t), x.F()), u = !0, c();
|
|
976
953
|
}, { suspense: !1, sync: !0 });
|
|
977
954
|
});
|
|
978
|
-
return r.forEach((
|
|
979
|
-
|
|
955
|
+
return r.forEach((c) => {
|
|
956
|
+
U(c, "AP", t);
|
|
980
957
|
}), () => {
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
}), r.forEach((
|
|
984
|
-
|
|
958
|
+
R.AK -= 1, i.forEach((c) => {
|
|
959
|
+
c();
|
|
960
|
+
}), r.forEach((c) => {
|
|
961
|
+
v(c, "AP", t);
|
|
985
962
|
});
|
|
986
963
|
};
|
|
987
964
|
};
|
|
988
|
-
|
|
989
|
-
if (!
|
|
990
|
-
return
|
|
991
|
-
const s =
|
|
965
|
+
Y._onRoots = (e, t) => {
|
|
966
|
+
if (!m(e))
|
|
967
|
+
return xe;
|
|
968
|
+
const s = ht(e);
|
|
992
969
|
if (s.AO)
|
|
993
970
|
throw new Error("Only top-level stores are supported");
|
|
994
|
-
return
|
|
995
|
-
|
|
971
|
+
return b.AK += 1, U(s, "AQ", t), () => {
|
|
972
|
+
b.AK -= 1, v(s, "AQ", t);
|
|
996
973
|
};
|
|
997
974
|
};
|
|
998
|
-
|
|
999
|
-
const e = (r) =>
|
|
1000
|
-
const
|
|
975
|
+
Y.reconcile = /* @__PURE__ */ (() => {
|
|
976
|
+
const e = (r) => K(r) ? 1 : W(r) ? 2 : 0, t = (r, i) => {
|
|
977
|
+
const c = L(r), u = L(i);
|
|
1001
978
|
s(r, i);
|
|
1002
|
-
const
|
|
1003
|
-
return (
|
|
979
|
+
const o = e(c), l = e(u);
|
|
980
|
+
return (o === 1 || l === 1) && (r.length = i.length), r;
|
|
1004
981
|
}, s = (r, i) => {
|
|
1005
|
-
const
|
|
1006
|
-
for (let
|
|
1007
|
-
const
|
|
1008
|
-
if (
|
|
1009
|
-
|
|
982
|
+
const c = L(r), u = L(i), o = Object.keys(c), l = Object.keys(u);
|
|
983
|
+
for (let p = 0, a = l.length; p < a; p++) {
|
|
984
|
+
const d = l[p], g = c[d], h = u[d];
|
|
985
|
+
if (J(g, h))
|
|
986
|
+
g === void 0 && !(d in c) && (r[d] = void 0);
|
|
1010
987
|
else {
|
|
1011
|
-
const
|
|
1012
|
-
|
|
988
|
+
const w = e(g), y = e(h);
|
|
989
|
+
w && w === y ? (s(r[d], h), w === 1 && (r[d].length = h.length)) : r[d] = h;
|
|
1013
990
|
}
|
|
1014
991
|
}
|
|
1015
|
-
for (let
|
|
1016
|
-
const
|
|
1017
|
-
|
|
992
|
+
for (let p = 0, a = o.length; p < a; p++) {
|
|
993
|
+
const d = o[p];
|
|
994
|
+
d in u || delete r[d];
|
|
1018
995
|
}
|
|
1019
996
|
return r;
|
|
1020
997
|
};
|
|
1021
|
-
return (r, i) =>
|
|
998
|
+
return (r, i) => I(() => t(r, i));
|
|
1022
999
|
})();
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
const
|
|
1026
|
-
const e =
|
|
1000
|
+
Y.untrack = (e) => rs(e);
|
|
1001
|
+
Y.unwrap = (e) => L(e);
|
|
1002
|
+
const us = () => {
|
|
1003
|
+
const e = A.get(q);
|
|
1027
1004
|
if (!e)
|
|
1028
|
-
return
|
|
1029
|
-
const t = e.observable || (e.observable = new
|
|
1030
|
-
return
|
|
1031
|
-
},
|
|
1032
|
-
|
|
1033
|
-
},
|
|
1034
|
-
const s =
|
|
1035
|
-
return
|
|
1005
|
+
return je;
|
|
1006
|
+
const t = e.observable || (e.observable = new T(!!e.suspended));
|
|
1007
|
+
return D(t);
|
|
1008
|
+
}, ls = () => {
|
|
1009
|
+
fe.N();
|
|
1010
|
+
}, hs = (e, t) => {
|
|
1011
|
+
const s = ct();
|
|
1012
|
+
return B(() => {
|
|
1036
1013
|
const n = s();
|
|
1037
|
-
return n ?
|
|
1014
|
+
return n ? S(t({ error: n, reset: () => s(void 0) })) : (A.S = s, S(e));
|
|
1038
1015
|
});
|
|
1039
1016
|
};
|
|
1040
|
-
function
|
|
1041
|
-
const t =
|
|
1042
|
-
return t[
|
|
1017
|
+
function fs(e) {
|
|
1018
|
+
const t = E(e) ? (...s) => I(() => e(...s)) : () => e;
|
|
1019
|
+
return t[me] = !0, t;
|
|
1043
1020
|
}
|
|
1044
|
-
const
|
|
1045
|
-
const e =
|
|
1021
|
+
const as = () => {
|
|
1022
|
+
const e = A, t = H;
|
|
1046
1023
|
return (s) => e.E(() => s(), e, t);
|
|
1047
1024
|
};
|
|
1048
|
-
function
|
|
1049
|
-
return
|
|
1025
|
+
function f(e, t) {
|
|
1026
|
+
return $e(new T(e, t));
|
|
1050
1027
|
}
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
const
|
|
1028
|
+
f.batch = Rt;
|
|
1029
|
+
f.boolean = Ie;
|
|
1030
|
+
f.cleanup = C;
|
|
1031
|
+
f.context = Bt;
|
|
1032
|
+
f.disposed = Pt;
|
|
1033
|
+
f.effect = Ae;
|
|
1034
|
+
f.for = Dt;
|
|
1035
|
+
f.get = V;
|
|
1036
|
+
f.if = Qt;
|
|
1037
|
+
f.isBatching = ot;
|
|
1038
|
+
f.isObservable = Ne;
|
|
1039
|
+
f.isStore = m;
|
|
1040
|
+
f.memo = B;
|
|
1041
|
+
f.observable = ct;
|
|
1042
|
+
f.owner = ut;
|
|
1043
|
+
f.readonly = Yt;
|
|
1044
|
+
f.resolve = S;
|
|
1045
|
+
f.root = Ft;
|
|
1046
|
+
f.selector = Ht;
|
|
1047
|
+
f.store = Y;
|
|
1048
|
+
f.suspended = us;
|
|
1049
|
+
f.suspense = st;
|
|
1050
|
+
f.switch = rt;
|
|
1051
|
+
f.ternary = it;
|
|
1052
|
+
f.tick = ls;
|
|
1053
|
+
f.tryCatch = hs;
|
|
1054
|
+
f.untrack = I;
|
|
1055
|
+
f.untracked = fs;
|
|
1056
|
+
f.with = as;
|
|
1057
|
+
const bs = At({
|
|
1081
1058
|
create: () => {
|
|
1082
|
-
const e =
|
|
1059
|
+
const e = f(0);
|
|
1083
1060
|
return {
|
|
1084
1061
|
depend: () => {
|
|
1085
1062
|
e();
|
|
1086
1063
|
},
|
|
1087
1064
|
notify: () => {
|
|
1088
|
-
e(
|
|
1065
|
+
e(I(() => e() + 1));
|
|
1089
1066
|
}
|
|
1090
1067
|
};
|
|
1091
1068
|
},
|
|
1092
|
-
isInScope: () => !!
|
|
1069
|
+
isInScope: () => !!ut(),
|
|
1093
1070
|
onDispose: (e) => {
|
|
1094
|
-
|
|
1071
|
+
C(e);
|
|
1095
1072
|
}
|
|
1096
1073
|
});
|
|
1097
1074
|
export {
|
|
1098
|
-
|
|
1075
|
+
bs as default
|
|
1099
1076
|
};
|
|
1100
1077
|
//# sourceMappingURL=index.mjs.map
|