@instantdb/react 0.22.59 → 0.22.60-experimental.drewh-explorer-export.19554409376.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/standalone/index.js +104 -103
- package/dist/standalone/index.umd.cjs +2 -2
- package/package.json +4 -4
package/dist/standalone/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import ci, { useRef as
|
|
1
|
+
import ci, { useRef as at, useCallback as ge, useSyncExternalStore as nn, useEffect as je, useMemo as rn, useState as di, createElement as ks } from "react";
|
|
2
2
|
function V(t) {
|
|
3
3
|
if (typeof t == "number")
|
|
4
4
|
return (Math.abs(t * 2654435761) >>> 0).toString(16);
|
|
@@ -41,7 +41,7 @@ const U = {
|
|
|
41
41
|
Remove: "remove",
|
|
42
42
|
Replace: "replace",
|
|
43
43
|
Add: "add"
|
|
44
|
-
}, fi = Symbol.for("__MUTATIVE_PROXY_DRAFT__"), js = Symbol("__MUTATIVE_RAW_RETURN_SYMBOL__"),
|
|
44
|
+
}, fi = Symbol.for("__MUTATIVE_PROXY_DRAFT__"), js = Symbol("__MUTATIVE_RAW_RETURN_SYMBOL__"), vt = Symbol.iterator, ne = {
|
|
45
45
|
mutable: "mutable",
|
|
46
46
|
immutable: "immutable"
|
|
47
47
|
}, Rn = {};
|
|
@@ -112,7 +112,7 @@ function Pe(t) {
|
|
|
112
112
|
function be(t, e) {
|
|
113
113
|
return Pe(t) === 2 ? t.get(e) : t[e];
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function ct(t, e, n) {
|
|
116
116
|
Pe(t) === 2 ? t.set(e, n) : t[e] = n;
|
|
117
117
|
}
|
|
118
118
|
function Ht(t, e) {
|
|
@@ -225,7 +225,7 @@ function Je(t) {
|
|
|
225
225
|
e[n] = Je(t[n]);
|
|
226
226
|
return e;
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function St(t) {
|
|
229
229
|
return Ce(t) ? Je(t) : t;
|
|
230
230
|
}
|
|
231
231
|
function fe(t) {
|
|
@@ -304,7 +304,7 @@ function pi(t, e, n) {
|
|
|
304
304
|
const u = j(o);
|
|
305
305
|
Q(u);
|
|
306
306
|
const d = !((a = u.assignedMap) === null || a === void 0) && a.size || u.operated ? u.copy : u.original;
|
|
307
|
-
|
|
307
|
+
ct(r ? i : t, s, d);
|
|
308
308
|
} else
|
|
309
309
|
pi(o, e, n);
|
|
310
310
|
}), i) {
|
|
@@ -339,7 +339,7 @@ function Ln(t, e, n, r) {
|
|
|
339
339
|
const u = t.type === 3 ? t.setMap : t.copy;
|
|
340
340
|
if (ye(be(u, e), n)) {
|
|
341
341
|
let d = i.original;
|
|
342
|
-
i.copy && (d = i.copy), on(t), an(t, r, s, o), t.options.enableAutoFreeze && (t.options.updatedValues = (a = t.options.updatedValues) !== null && a !== void 0 ? a : /* @__PURE__ */ new WeakMap(), t.options.updatedValues.set(d, i.original)),
|
|
342
|
+
i.copy && (d = i.copy), on(t), an(t, r, s, o), t.options.enableAutoFreeze && (t.options.updatedValues = (a = t.options.updatedValues) !== null && a !== void 0 ? a : /* @__PURE__ */ new WeakMap(), t.options.updatedValues.set(d, i.original)), ct(u, e, d);
|
|
343
343
|
}
|
|
344
344
|
}), t.options.enableAutoFreeze && i.finalities !== t.finalities && (t.options.enableAutoFreeze = !1)), ae(n, t.options) && t.finalities.draft.push(() => {
|
|
345
345
|
const s = t.type === 3 ? t.setMap : t.copy;
|
|
@@ -356,12 +356,12 @@ function Rs(t, e, n, r, i) {
|
|
|
356
356
|
op: U.Replace,
|
|
357
357
|
path: f,
|
|
358
358
|
// If it is a draft, it needs to be deep cloned, and it may also be non-draft.
|
|
359
|
-
value:
|
|
359
|
+
value: St(u[d])
|
|
360
360
|
}), r.push({
|
|
361
361
|
op: U.Replace,
|
|
362
362
|
path: f,
|
|
363
363
|
// If it is a draft, it needs to be deep cloned, and it may also be non-draft.
|
|
364
|
-
value:
|
|
364
|
+
value: St(s[d])
|
|
365
365
|
});
|
|
366
366
|
}
|
|
367
367
|
for (let d = s.length; d < u.length; d += 1) {
|
|
@@ -370,7 +370,7 @@ function Rs(t, e, n, r, i) {
|
|
|
370
370
|
op: U.Add,
|
|
371
371
|
path: f,
|
|
372
372
|
// If it is a draft, it needs to be deep cloned, and it may also be non-draft.
|
|
373
|
-
value:
|
|
373
|
+
value: St(u[d])
|
|
374
374
|
});
|
|
375
375
|
}
|
|
376
376
|
if (s.length < u.length) {
|
|
@@ -394,7 +394,7 @@ function Rs(t, e, n, r, i) {
|
|
|
394
394
|
}
|
|
395
395
|
function xs({ original: t, copy: e, assignedMap: n }, r, i, s, o) {
|
|
396
396
|
n.forEach((a, u) => {
|
|
397
|
-
const d = be(t, u), c =
|
|
397
|
+
const d = be(t, u), c = St(be(e, u)), f = a ? nt(t, u) ? U.Replace : U.Add : U.Remove;
|
|
398
398
|
if (ye(d, c) && f === U.Replace)
|
|
399
399
|
return;
|
|
400
400
|
const l = r.concat(u), p = Ae(l, o);
|
|
@@ -433,7 +433,7 @@ function $s({ original: t, copy: e }, n, r, i, s) {
|
|
|
433
433
|
o += 1;
|
|
434
434
|
});
|
|
435
435
|
}
|
|
436
|
-
function
|
|
436
|
+
function ut(t, e, n, r) {
|
|
437
437
|
const { pathAsArray: i = !0 } = t.options.enablePatches;
|
|
438
438
|
switch (t.type) {
|
|
439
439
|
case 0:
|
|
@@ -457,7 +457,7 @@ const jt = (t, e, n = !1) => {
|
|
|
457
457
|
},
|
|
458
458
|
set(t, e) {
|
|
459
459
|
const n = j(this), r = te(n);
|
|
460
|
-
return (!r.has(t) || !ye(r.get(t), e)) && (Q(n), fe(n), n.assignedMap.set(t, !0), n.copy.set(t, e), Ln(n, t, e,
|
|
460
|
+
return (!r.has(t) || !ye(r.get(t), e)) && (Q(n), fe(n), n.assignedMap.set(t, !0), n.copy.set(t, e), Ln(n, t, e, ut)), this;
|
|
461
461
|
},
|
|
462
462
|
delete(t) {
|
|
463
463
|
if (!this.has(t))
|
|
@@ -500,7 +500,7 @@ const jt = (t, e, n = !1) => {
|
|
|
500
500
|
values() {
|
|
501
501
|
const t = this.keys();
|
|
502
502
|
return {
|
|
503
|
-
[
|
|
503
|
+
[vt]: () => this.values(),
|
|
504
504
|
next: () => {
|
|
505
505
|
const e = t.next();
|
|
506
506
|
return e.done ? e : {
|
|
@@ -513,7 +513,7 @@ const jt = (t, e, n = !1) => {
|
|
|
513
513
|
entries() {
|
|
514
514
|
const t = this.keys();
|
|
515
515
|
return {
|
|
516
|
-
[
|
|
516
|
+
[vt]: () => this.entries(),
|
|
517
517
|
next: () => {
|
|
518
518
|
const e = t.next();
|
|
519
519
|
if (e.done)
|
|
@@ -526,7 +526,7 @@ const jt = (t, e, n = !1) => {
|
|
|
526
526
|
}
|
|
527
527
|
};
|
|
528
528
|
},
|
|
529
|
-
[
|
|
529
|
+
[vt]() {
|
|
530
530
|
return this.entries();
|
|
531
531
|
}
|
|
532
532
|
}, Ds = Reflect.ownKeys(un), mr = (t, e, { isValuesIterator: n }) => () => {
|
|
@@ -565,7 +565,7 @@ const jt = (t, e, n = !1) => {
|
|
|
565
565
|
},
|
|
566
566
|
add(t) {
|
|
567
567
|
const e = j(this);
|
|
568
|
-
return this.has(t) || (Q(e), fe(e), e.assignedMap.set(t, !0), e.setMap.set(t, t), Ln(e, t, t,
|
|
568
|
+
return this.has(t) || (Q(e), fe(e), e.assignedMap.set(t, !0), e.setMap.set(t, t), Ln(e, t, t, ut)), this;
|
|
569
569
|
},
|
|
570
570
|
delete(t) {
|
|
571
571
|
if (!this.has(t))
|
|
@@ -607,7 +607,7 @@ const jt = (t, e, n = !1) => {
|
|
|
607
607
|
keys() {
|
|
608
608
|
return this.values();
|
|
609
609
|
},
|
|
610
|
-
[
|
|
610
|
+
[vt]() {
|
|
611
611
|
return this.values();
|
|
612
612
|
},
|
|
613
613
|
forEach(t, e) {
|
|
@@ -705,7 +705,7 @@ const Us = Reflect.ownKeys(Ct), yi = /* @__PURE__ */ new WeakSet(), bi = {
|
|
|
705
705
|
if (s != null && s.set)
|
|
706
706
|
return s.set.call(t.proxy, n), !0;
|
|
707
707
|
const o = Ht(te(t), e), a = j(o);
|
|
708
|
-
return a && ye(a.original, n) ? (t.copy[e] = n, t.assignedMap = (r = t.assignedMap) !== null && r !== void 0 ? r : /* @__PURE__ */ new Map(), t.assignedMap.set(e, !1), !0) : (ye(n, o) && (n !== void 0 || nt(t.original, e)) || (Q(t), fe(t), nt(t.original, e) && ye(n, t.original[e]) ? t.assignedMap.delete(e) : t.assignedMap.set(e, !0), t.copy[e] = n, Ln(t, e, n,
|
|
708
|
+
return a && ye(a.original, n) ? (t.copy[e] = n, t.assignedMap = (r = t.assignedMap) !== null && r !== void 0 ? r : /* @__PURE__ */ new Map(), t.assignedMap.set(e, !1), !0) : (ye(n, o) && (n !== void 0 || nt(t.original, e)) || (Q(t), fe(t), nt(t.original, e) && ye(n, t.original[e]) ? t.assignedMap.delete(e) : t.assignedMap.set(e, !0), t.copy[e] = n, Ln(t, e, n, ut)), !0);
|
|
709
709
|
},
|
|
710
710
|
has(t, e) {
|
|
711
711
|
return e in te(t);
|
|
@@ -760,7 +760,7 @@ function Fn(t) {
|
|
|
760
760
|
const T = be(_, r), w = j(T);
|
|
761
761
|
if (w) {
|
|
762
762
|
let m = w.original;
|
|
763
|
-
w.operated && (m = Dn(T)), on(w), an(w,
|
|
763
|
+
w.operated && (m = Dn(T)), on(w), an(w, ut, f, l), c.options.enableAutoFreeze && (c.options.updatedValues = (p = c.options.updatedValues) !== null && p !== void 0 ? p : /* @__PURE__ */ new WeakMap(), c.options.updatedValues.set(m, w.original)), ct(_, r, m);
|
|
764
764
|
}
|
|
765
765
|
(y = b.callbacks) === null || y === void 0 || y.forEach((m) => {
|
|
766
766
|
m(f, l);
|
|
@@ -769,7 +769,7 @@ function Fn(t) {
|
|
|
769
769
|
} else {
|
|
770
770
|
const c = j(u);
|
|
771
771
|
c.finalities.draft.push((f, l) => {
|
|
772
|
-
on(c), an(c,
|
|
772
|
+
on(c), an(c, ut, f, l);
|
|
773
773
|
});
|
|
774
774
|
}
|
|
775
775
|
return u;
|
|
@@ -822,7 +822,7 @@ function cn(t) {
|
|
|
822
822
|
const c = Array.from(a);
|
|
823
823
|
a.clear(), c.forEach((f) => a.add(s === f ? d : f));
|
|
824
824
|
} else
|
|
825
|
-
|
|
825
|
+
ct(a, s, d);
|
|
826
826
|
} else typeof o == "object" && o !== null && (t.value = o, t.isRoot = !1, cn(t));
|
|
827
827
|
}), i && (t.isContainDraft || console.warn("The return value does not contain any draft, please use 'rawReturn()' to wrap the return value to improve performance."), r && console.warn("The return value contains drafts, please don't use 'rawReturn()' to wrap the return value."));
|
|
828
828
|
}
|
|
@@ -851,7 +851,7 @@ function _i(t) {
|
|
|
851
851
|
if (n && ye(be(n.original, o), a))
|
|
852
852
|
return;
|
|
853
853
|
const u = _i(a);
|
|
854
|
-
u !== a && (i === t && s(),
|
|
854
|
+
u !== a && (i === t && s(), ct(i, o, u));
|
|
855
855
|
}), r === 3) {
|
|
856
856
|
const o = (e = n == null ? void 0 : n.original) !== null && e !== void 0 ? e : i;
|
|
857
857
|
return xn(o) ? new Set(i) : new (Object.getPrototypeOf(o)).constructor(i);
|
|
@@ -941,8 +941,8 @@ function gi(t, e) {
|
|
|
941
941
|
function Sr(t, e) {
|
|
942
942
|
return Object.keys(t).length === Object.keys(e).length && Object.keys(t).every((n) => e.hasOwnProperty(n) && t[n] === e[n]);
|
|
943
943
|
}
|
|
944
|
-
function
|
|
945
|
-
return typeof t != "object" || typeof e != "object" || t === null || e === null ? t === e : gi(t, e) ? Object.keys(t).every((n) =>
|
|
944
|
+
function Ot(t, e) {
|
|
945
|
+
return typeof t != "object" || typeof e != "object" || t === null || e === null ? t === e : gi(t, e) ? Object.keys(t).every((n) => Ot(t[n], e[n])) : !1;
|
|
946
946
|
}
|
|
947
947
|
function Nn(t) {
|
|
948
948
|
if (!Ze(t))
|
|
@@ -1393,7 +1393,7 @@ function Si(t) {
|
|
|
1393
1393
|
};
|
|
1394
1394
|
}
|
|
1395
1395
|
function Oi(t) {
|
|
1396
|
-
return
|
|
1396
|
+
return Et(t.attrs, t.triples, t.cardinalityInference, t.linkIndex, t.useDateObjects);
|
|
1397
1397
|
}
|
|
1398
1398
|
function oo(t, e) {
|
|
1399
1399
|
return ze(t.eav, [e]) !== void 0;
|
|
@@ -1401,11 +1401,11 @@ function oo(t, e) {
|
|
|
1401
1401
|
function Wn(t) {
|
|
1402
1402
|
t.attrIndexes = vi(t.attrs);
|
|
1403
1403
|
}
|
|
1404
|
-
function
|
|
1404
|
+
function Et(t, e, n, r, i) {
|
|
1405
1405
|
const s = mi(t, e, i);
|
|
1406
1406
|
return s.useDateObjects = i, s.attrs = t, s.attrIndexes = vi(t), s.cardinalityInference = n, s.linkIndex = r, s.__type = "store", s;
|
|
1407
1407
|
}
|
|
1408
|
-
function
|
|
1408
|
+
function dt(t, e) {
|
|
1409
1409
|
var n, r;
|
|
1410
1410
|
let i;
|
|
1411
1411
|
if (Array.isArray(e[0])) {
|
|
@@ -1433,7 +1433,7 @@ function ct(t, e) {
|
|
|
1433
1433
|
}
|
|
1434
1434
|
}
|
|
1435
1435
|
function Ei(t, e) {
|
|
1436
|
-
const n =
|
|
1436
|
+
const n = dt(t, e);
|
|
1437
1437
|
if (!n)
|
|
1438
1438
|
return;
|
|
1439
1439
|
const [r, i, s] = n, o = We(t.attrs, i);
|
|
@@ -1448,7 +1448,7 @@ function Ai(t, e, n) {
|
|
|
1448
1448
|
}
|
|
1449
1449
|
function ki(t, e) {
|
|
1450
1450
|
var n;
|
|
1451
|
-
const r =
|
|
1451
|
+
const r = dt(t, e);
|
|
1452
1452
|
if (!r)
|
|
1453
1453
|
return;
|
|
1454
1454
|
let [i, s, o] = r;
|
|
@@ -1461,7 +1461,7 @@ function ki(t, e) {
|
|
|
1461
1461
|
}
|
|
1462
1462
|
function uo(t, e) {
|
|
1463
1463
|
var n;
|
|
1464
|
-
const r =
|
|
1464
|
+
const r = dt(t, e);
|
|
1465
1465
|
if (!r)
|
|
1466
1466
|
return;
|
|
1467
1467
|
const [i, s, o] = r, a = We(t.attrs, s);
|
|
@@ -1485,7 +1485,7 @@ function uo(t, e) {
|
|
|
1485
1485
|
}
|
|
1486
1486
|
function fn(t, e) {
|
|
1487
1487
|
var n, r;
|
|
1488
|
-
const [i, s] = e, o =
|
|
1488
|
+
const [i, s] = e, o = dt(t, [i]);
|
|
1489
1489
|
if (!o)
|
|
1490
1490
|
return;
|
|
1491
1491
|
const [a] = o, u = t.eav.get(a);
|
|
@@ -1576,7 +1576,7 @@ function X(t, e, n = []) {
|
|
|
1576
1576
|
X(r, e - 1, n);
|
|
1577
1577
|
return n;
|
|
1578
1578
|
}
|
|
1579
|
-
function
|
|
1579
|
+
function gt(t, e, n) {
|
|
1580
1580
|
var r, i;
|
|
1581
1581
|
const s = [];
|
|
1582
1582
|
if (n != null && n.hasOwnProperty("$not")) {
|
|
@@ -1626,7 +1626,7 @@ function yo(t, [e, n, r]) {
|
|
|
1626
1626
|
}
|
|
1627
1627
|
case "eav": {
|
|
1628
1628
|
const a = (s = t.eav.get(e)) === null || s === void 0 ? void 0 : s.get(n);
|
|
1629
|
-
return a ?
|
|
1629
|
+
return a ? gt(t, a, r) : [];
|
|
1630
1630
|
}
|
|
1631
1631
|
case "ev": {
|
|
1632
1632
|
const a = t.eav.get(e);
|
|
@@ -1634,7 +1634,7 @@ function yo(t, [e, n, r]) {
|
|
|
1634
1634
|
return [];
|
|
1635
1635
|
const u = [];
|
|
1636
1636
|
for (const d of a.values())
|
|
1637
|
-
u.push(...
|
|
1637
|
+
u.push(...gt(t, d, r));
|
|
1638
1638
|
return u;
|
|
1639
1639
|
}
|
|
1640
1640
|
case "a": {
|
|
@@ -1647,14 +1647,14 @@ function yo(t, [e, n, r]) {
|
|
|
1647
1647
|
return [];
|
|
1648
1648
|
const u = [];
|
|
1649
1649
|
for (const d of a.values())
|
|
1650
|
-
u.push(...
|
|
1650
|
+
u.push(...gt(t, d, r));
|
|
1651
1651
|
return u;
|
|
1652
1652
|
}
|
|
1653
1653
|
case "v": {
|
|
1654
1654
|
const a = [];
|
|
1655
1655
|
for (const u of t.eav.values())
|
|
1656
1656
|
for (const d of u.values())
|
|
1657
|
-
a.push(...
|
|
1657
|
+
a.push(...gt(t, d, r));
|
|
1658
1658
|
return a;
|
|
1659
1659
|
}
|
|
1660
1660
|
default:
|
|
@@ -1688,7 +1688,7 @@ function Ii(t, e) {
|
|
|
1688
1688
|
return r || ((n = t.attrIndexes.forwardIdents.get(e)) === null || n === void 0 ? void 0 : n.get("id"));
|
|
1689
1689
|
}
|
|
1690
1690
|
function go(t, e) {
|
|
1691
|
-
const n =
|
|
1691
|
+
const n = dt(t, e);
|
|
1692
1692
|
if (!n)
|
|
1693
1693
|
return;
|
|
1694
1694
|
const [r, i, s] = n;
|
|
@@ -2539,7 +2539,7 @@ function Ma(t, e, n) {
|
|
|
2539
2539
|
"checked-data-type": u
|
|
2540
2540
|
};
|
|
2541
2541
|
}
|
|
2542
|
-
function
|
|
2542
|
+
function wt(t, e, n, r) {
|
|
2543
2543
|
const i = t ? Ma(t, e, n) : null, s = K(), a = [K(), e, n];
|
|
2544
2544
|
return Object.assign(Object.assign({ id: s, "forward-identity": a, "value-type": "blob", cardinality: "one", "unique?": !1, "index?": !1, isUnsynced: !0 }, i || {}), r || {});
|
|
2545
2545
|
}
|
|
@@ -2617,23 +2617,23 @@ function Ka({ attrs: t, schema: e }, n) {
|
|
|
2617
2617
|
c(w, _n(b));
|
|
2618
2618
|
else {
|
|
2619
2619
|
const m = B(o, w, b);
|
|
2620
|
-
m || u(
|
|
2620
|
+
m || u(wt(e, w, b, wn)), d(m);
|
|
2621
2621
|
}
|
|
2622
2622
|
} else if (bn(o, l, b))
|
|
2623
2623
|
c(l, _n(b));
|
|
2624
2624
|
else {
|
|
2625
2625
|
const _ = B(o, l, b);
|
|
2626
|
-
_ || u(
|
|
2626
|
+
_ || u(wt(e, l, b, wn)), d(_);
|
|
2627
2627
|
}
|
|
2628
2628
|
}
|
|
2629
2629
|
for (const f of n) {
|
|
2630
2630
|
const [l, p, y, b] = f;
|
|
2631
2631
|
if ($a.has(l)) {
|
|
2632
2632
|
const _ = B(o, p, "id");
|
|
2633
|
-
d(_), _ || u(
|
|
2633
|
+
d(_), _ || u(wt(e, p, "id", { "unique?": !0 }));
|
|
2634
2634
|
for (const T of Object.keys(b)) {
|
|
2635
2635
|
const w = B(o, p, T);
|
|
2636
|
-
if (d(w), Ua.has(l) && (w || u(
|
|
2636
|
+
if (d(w), Ua.has(l) && (w || u(wt(e, p, T, T === "id" ? { "unique?": !0 } : null))), Da.has(l)) {
|
|
2637
2637
|
const m = ke(o, p, T);
|
|
2638
2638
|
!w && !m && u(Rr(e, p, T)), d(m);
|
|
2639
2639
|
}
|
|
@@ -3377,7 +3377,7 @@ function ru(t) {
|
|
|
3377
3377
|
});
|
|
3378
3378
|
});
|
|
3379
3379
|
}
|
|
3380
|
-
var
|
|
3380
|
+
var ft = function(t, e, n, r) {
|
|
3381
3381
|
function i(s) {
|
|
3382
3382
|
return s instanceof n ? s : new n(function(o) {
|
|
3383
3383
|
o(s);
|
|
@@ -3405,7 +3405,7 @@ var dt = function(t, e, n, r) {
|
|
|
3405
3405
|
});
|
|
3406
3406
|
};
|
|
3407
3407
|
function iu(t) {
|
|
3408
|
-
return
|
|
3408
|
+
return ft(this, arguments, void 0, function* ({ apiURI: e, appId: n, path: r, file: i, refreshToken: s, contentType: o, contentDisposition: a }) {
|
|
3409
3409
|
const u = {
|
|
3410
3410
|
app_id: n,
|
|
3411
3411
|
path: r,
|
|
@@ -3420,7 +3420,7 @@ function iu(t) {
|
|
|
3420
3420
|
});
|
|
3421
3421
|
}
|
|
3422
3422
|
function su(t) {
|
|
3423
|
-
return
|
|
3423
|
+
return ft(this, arguments, void 0, function* ({ apiURI: e, appId: n, path: r, refreshToken: i }) {
|
|
3424
3424
|
const { data: s } = yield ue(`${e}/storage/files?app_id=${n}&filename=${encodeURIComponent(r)}`, {
|
|
3425
3425
|
method: "DELETE",
|
|
3426
3426
|
headers: {
|
|
@@ -3432,7 +3432,7 @@ function su(t) {
|
|
|
3432
3432
|
});
|
|
3433
3433
|
}
|
|
3434
3434
|
function ou(t) {
|
|
3435
|
-
return
|
|
3435
|
+
return ft(this, arguments, void 0, function* ({ apiURI: e, appId: n, fileName: r, refreshToken: i, metadata: s = {} }) {
|
|
3436
3436
|
const { data: o } = yield ue(`${e}/storage/signed-upload-url`, {
|
|
3437
3437
|
method: "POST",
|
|
3438
3438
|
headers: {
|
|
@@ -3448,7 +3448,7 @@ function ou(t) {
|
|
|
3448
3448
|
});
|
|
3449
3449
|
}
|
|
3450
3450
|
function au(t, e) {
|
|
3451
|
-
return
|
|
3451
|
+
return ft(this, void 0, void 0, function* () {
|
|
3452
3452
|
return (yield fetch(t, {
|
|
3453
3453
|
method: "PUT",
|
|
3454
3454
|
body: e,
|
|
@@ -3459,7 +3459,7 @@ function au(t, e) {
|
|
|
3459
3459
|
});
|
|
3460
3460
|
}
|
|
3461
3461
|
function uu(t) {
|
|
3462
|
-
return
|
|
3462
|
+
return ft(this, arguments, void 0, function* ({ apiURI: e, appId: n, path: r, refreshToken: i }) {
|
|
3463
3463
|
const { data: s } = yield ue(`${e}/storage/signed-download-url?app_id=${n}&filename=${encodeURIComponent(r)}`, {
|
|
3464
3464
|
method: "GET",
|
|
3465
3465
|
headers: {
|
|
@@ -3546,7 +3546,7 @@ function Kr(t) {
|
|
|
3546
3546
|
}, e;
|
|
3547
3547
|
}, {});
|
|
3548
3548
|
}
|
|
3549
|
-
const Gn = "v0.22.
|
|
3549
|
+
const Gn = "v0.22.60-experimental.drewh-explorer-export.19554409376.1";
|
|
3550
3550
|
function fu(t, e) {
|
|
3551
3551
|
return {
|
|
3552
3552
|
info: t ? (...n) => console.info(...n, e()) : () => {
|
|
@@ -4128,7 +4128,7 @@ function Eu(t, e) {
|
|
|
4128
4128
|
}
|
|
4129
4129
|
return o;
|
|
4130
4130
|
}
|
|
4131
|
-
function
|
|
4131
|
+
function Tt(t, e) {
|
|
4132
4132
|
return { [t.table]: e.map((n) => n.entity) };
|
|
4133
4133
|
}
|
|
4134
4134
|
function Au(t, e) {
|
|
@@ -4222,7 +4222,7 @@ class ku {
|
|
|
4222
4222
|
if (d && d.state && d.state.txId) {
|
|
4223
4223
|
this.sendResync(d, d.state), !((i = d.values) === null || i === void 0) && i.entities && r && (Object.keys(e)[0], r({
|
|
4224
4224
|
type: Se.LoadFromStorage,
|
|
4225
|
-
data:
|
|
4225
|
+
data: Tt(d, (s = d.values) === null || s === void 0 ? void 0 : s.entities)
|
|
4226
4226
|
}));
|
|
4227
4227
|
return;
|
|
4228
4228
|
}
|
|
@@ -4298,7 +4298,7 @@ class ku {
|
|
|
4298
4298
|
c[s] = a, c[s].updatedAt = Date.now();
|
|
4299
4299
|
}), a.values && this.notifyCbs(s, {
|
|
4300
4300
|
type: Se.InitialSyncBatch,
|
|
4301
|
-
data:
|
|
4301
|
+
data: Tt(a, a.values.entities),
|
|
4302
4302
|
batch: o
|
|
4303
4303
|
});
|
|
4304
4304
|
}
|
|
@@ -4323,7 +4323,7 @@ class ku {
|
|
|
4323
4323
|
const s = this.subs.currentValue[i];
|
|
4324
4324
|
s && this.notifyCbs(i, {
|
|
4325
4325
|
type: Se.InitialSyncComplete,
|
|
4326
|
-
data:
|
|
4326
|
+
data: Tt(s, ((n = s.values) === null || n === void 0 ? void 0 : n.entities) || [])
|
|
4327
4327
|
});
|
|
4328
4328
|
}
|
|
4329
4329
|
onSyncUpdateTriples(e) {
|
|
@@ -4396,7 +4396,7 @@ class ku {
|
|
|
4396
4396
|
_.push(p[T].entity), p.splice(T, 1);
|
|
4397
4397
|
Au(a, p), this.notifyCbs(o, {
|
|
4398
4398
|
type: Se.SyncTransaction,
|
|
4399
|
-
data:
|
|
4399
|
+
data: Tt(a, (i = a.values) === null || i === void 0 ? void 0 : i.entities),
|
|
4400
4400
|
added: b,
|
|
4401
4401
|
removed: _,
|
|
4402
4402
|
updated: y
|
|
@@ -4562,7 +4562,7 @@ class Nu {
|
|
|
4562
4562
|
}, this.notifyOne = (d) => {
|
|
4563
4563
|
var c, f;
|
|
4564
4564
|
const l = (c = this.queryCbs[d]) !== null && c !== void 0 ? c : [], p = (f = this._dataForQueryCache[d]) === null || f === void 0 ? void 0 : f.data, y = this.dataForQuery(d);
|
|
4565
|
-
y && (
|
|
4565
|
+
y && (Ot(y, p) || l.forEach((b) => b.cb(y)));
|
|
4566
4566
|
}, this.notifyOneQueryOnce = (d) => {
|
|
4567
4567
|
var c;
|
|
4568
4568
|
const f = (c = this.queryOnceDfds[d]) !== null && c !== void 0 ? c : [], l = this.dataForQuery(d);
|
|
@@ -4676,7 +4676,7 @@ class Nu {
|
|
|
4676
4676
|
}
|
|
4677
4677
|
}))), this._initStorage(n), this._syncTable = new ku(this._trySendAuthed.bind(this), new n(this.config.appId, "syncSubs"), {
|
|
4678
4678
|
useDateObjects: this.config.useDateObjects
|
|
4679
|
-
}, this._log, (d) =>
|
|
4679
|
+
}, this._log, (d) => Et(this.attrs, d, this.config.enableCardinalityInference, this._linkIndex, this.config.useDateObjects)), this._oauthCallbackResponse = this._oauthLoginInit(), this.getCurrentUser(), r.getIsOnline().then((d) => {
|
|
4680
4680
|
this._isOnline = d, this._startSocket(), r.listen((c) => {
|
|
4681
4681
|
c !== this._isOnline && (this._log.info("[network] online =", c), this._isOnline = c, this._isOnline ? this._startSocket() : (this._log.info("Changing status from", this.status, "to", le.CLOSED), this._setStatus(le.CLOSED)));
|
|
4682
4682
|
});
|
|
@@ -4793,7 +4793,7 @@ class Nu {
|
|
|
4793
4793
|
const { q: l, result: p } = n, y = V(l);
|
|
4794
4794
|
if (!this._hasQueryListeners() && !this.querySubs.currentValue[y])
|
|
4795
4795
|
break;
|
|
4796
|
-
const b = (o = (s = p == null ? void 0 : p[0]) === null || s === void 0 ? void 0 : s.data) === null || o === void 0 ? void 0 : o["page-info"], _ = (u = (a = p == null ? void 0 : p[0]) === null || a === void 0 ? void 0 : a.data) === null || u === void 0 ? void 0 : u.aggregate, T = Nr(p), w =
|
|
4796
|
+
const b = (o = (s = p == null ? void 0 : p[0]) === null || s === void 0 ? void 0 : s.data) === null || o === void 0 ? void 0 : o["page-info"], _ = (u = (a = p == null ? void 0 : p[0]) === null || a === void 0 ? void 0 : a.data) === null || u === void 0 ? void 0 : u.aggregate, T = Nr(p), w = Et(this.attrs, T, d, this._linkIndex, this.config.useDateObjects);
|
|
4797
4797
|
this.querySubs.updateInPlace((m) => {
|
|
4798
4798
|
if (!m[y]) {
|
|
4799
4799
|
this._log.info("Missing value in querySubs", { hash: y, q: l });
|
|
@@ -4833,8 +4833,8 @@ class Nu {
|
|
|
4833
4833
|
});
|
|
4834
4834
|
const _ = Xr(b.entries()), T = l.map((w) => {
|
|
4835
4835
|
var m, E, S, I;
|
|
4836
|
-
const x = w["instaql-query"], q = w["instaql-result"], Te = V(x),
|
|
4837
|
-
return { q: x, hash: Te, store: Nt, pageInfo:
|
|
4836
|
+
const x = w["instaql-query"], q = w["instaql-result"], Te = V(x), lt = Nr(q), Ft = Et(this.attrs, lt, d, this._linkIndex, this.config.useDateObjects), Nt = this._applyOptimisticUpdates(Ft, _, y), ht = (E = (m = q == null ? void 0 : q[0]) === null || m === void 0 ? void 0 : m.data) === null || E === void 0 ? void 0 : E["page-info"], ce = (I = (S = q == null ? void 0 : q[0]) === null || S === void 0 ? void 0 : S.data) === null || I === void 0 ? void 0 : I.aggregate;
|
|
4837
|
+
return { q: x, hash: Te, store: Nt, pageInfo: ht, aggregate: ce };
|
|
4838
4838
|
});
|
|
4839
4839
|
T.forEach(({ hash: w, q: m, store: E, pageInfo: S, aggregate: I }) => {
|
|
4840
4840
|
this.querySubs.updateInPlace((x) => {
|
|
@@ -5334,7 +5334,7 @@ class Nu {
|
|
|
5334
5334
|
n.isLoading || e(this._currentUserCached);
|
|
5335
5335
|
let r = !1;
|
|
5336
5336
|
return this.getCurrentUser().then((i) => {
|
|
5337
|
-
r ||
|
|
5337
|
+
r || Ot(i, n) || e(i);
|
|
5338
5338
|
}), () => {
|
|
5339
5339
|
r = !0, this.authCbs = this.authCbs.filter((i) => i !== e);
|
|
5340
5340
|
};
|
|
@@ -5417,7 +5417,7 @@ class Nu {
|
|
|
5417
5417
|
return F(this, void 0, void 0, function* () {
|
|
5418
5418
|
var n;
|
|
5419
5419
|
const { user: r } = yield this.getCurrentUser();
|
|
5420
|
-
if (!
|
|
5420
|
+
if (!Ot(r, e)) {
|
|
5421
5421
|
yield this.setCurrentUser(e), this.updateUser(e);
|
|
5422
5422
|
try {
|
|
5423
5423
|
(n = this._broadcastChannel) === null || n === void 0 || n.postMessage({ type: "auth" });
|
|
@@ -5823,9 +5823,9 @@ const Nc = {
|
|
|
5823
5823
|
json: Gu,
|
|
5824
5824
|
any: Qu
|
|
5825
5825
|
};
|
|
5826
|
-
let
|
|
5826
|
+
let mt;
|
|
5827
5827
|
function Yu(t, e) {
|
|
5828
|
-
|
|
5828
|
+
mt == null || mt.dispose();
|
|
5829
5829
|
const n = nc(e), r = Xu(e, a), i = Zu(Ju(t));
|
|
5830
5830
|
function s(c) {
|
|
5831
5831
|
var f;
|
|
@@ -5842,7 +5842,7 @@ function Yu(t, e) {
|
|
|
5842
5842
|
n.element.remove(), r.element.remove(), removeEventListener("keydown", o), removeEventListener("message", s);
|
|
5843
5843
|
}
|
|
5844
5844
|
function d() {
|
|
5845
|
-
document.body.appendChild(n.element), document.body.appendChild(r.element), addEventListener("keydown", o), addEventListener("message", s),
|
|
5845
|
+
document.body.appendChild(n.element), document.body.appendChild(r.element), addEventListener("keydown", o), addEventListener("message", s), mt = {
|
|
5846
5846
|
dispose: u
|
|
5847
5847
|
};
|
|
5848
5848
|
}
|
|
@@ -6211,14 +6211,14 @@ function pc() {
|
|
|
6211
6211
|
M.unshift("Warning: " + g), Function.prototype.apply.call(console[h], console, M);
|
|
6212
6212
|
}
|
|
6213
6213
|
}
|
|
6214
|
-
var S = !1, I = !1, x = !1, q = !1, Te = !1,
|
|
6215
|
-
|
|
6214
|
+
var S = !1, I = !1, x = !1, q = !1, Te = !1, lt;
|
|
6215
|
+
lt = Symbol.for("react.module.reference");
|
|
6216
6216
|
function Ft(h) {
|
|
6217
6217
|
return !!(typeof h == "string" || typeof h == "function" || h === i || h === o || Te || h === s || h === c || h === f || q || h === y || S || I || x || typeof h == "object" && h !== null && (h.$$typeof === p || h.$$typeof === l || h.$$typeof === a || h.$$typeof === u || h.$$typeof === d || // This needs to include all possible module reference object
|
|
6218
6218
|
// types supported by any Flight configuration anywhere since
|
|
6219
6219
|
// we don't know which Flight build this will end up being used
|
|
6220
6220
|
// with.
|
|
6221
|
-
h.$$typeof ===
|
|
6221
|
+
h.$$typeof === lt || h.getModuleId !== void 0));
|
|
6222
6222
|
}
|
|
6223
6223
|
function Nt(h, g, v) {
|
|
6224
6224
|
var O = h.displayName;
|
|
@@ -6227,7 +6227,7 @@ function pc() {
|
|
|
6227
6227
|
var P = g.displayName || g.name || "";
|
|
6228
6228
|
return P !== "" ? v + "(" + P + ")" : v;
|
|
6229
6229
|
}
|
|
6230
|
-
function
|
|
6230
|
+
function ht(h) {
|
|
6231
6231
|
return h.displayName || "Context";
|
|
6232
6232
|
}
|
|
6233
6233
|
function ce(h) {
|
|
@@ -6255,10 +6255,10 @@ function pc() {
|
|
|
6255
6255
|
switch (h.$$typeof) {
|
|
6256
6256
|
case u:
|
|
6257
6257
|
var g = h;
|
|
6258
|
-
return
|
|
6258
|
+
return ht(g) + ".Consumer";
|
|
6259
6259
|
case a:
|
|
6260
6260
|
var v = h;
|
|
6261
|
-
return
|
|
6261
|
+
return ht(v._context) + ".Provider";
|
|
6262
6262
|
case d:
|
|
6263
6263
|
return Nt(h, h.render, "ForwardRef");
|
|
6264
6264
|
case l:
|
|
@@ -6338,7 +6338,7 @@ function pc() {
|
|
|
6338
6338
|
}
|
|
6339
6339
|
}
|
|
6340
6340
|
var Kt = w.ReactCurrentDispatcher, qt;
|
|
6341
|
-
function
|
|
6341
|
+
function pt(h, g, v) {
|
|
6342
6342
|
{
|
|
6343
6343
|
if (qt === void 0)
|
|
6344
6344
|
try {
|
|
@@ -6351,16 +6351,16 @@ function pc() {
|
|
|
6351
6351
|
` + qt + h;
|
|
6352
6352
|
}
|
|
6353
6353
|
}
|
|
6354
|
-
var Wt = !1,
|
|
6354
|
+
var Wt = !1, yt;
|
|
6355
6355
|
{
|
|
6356
6356
|
var ns = typeof WeakMap == "function" ? WeakMap : Map;
|
|
6357
|
-
|
|
6357
|
+
yt = new ns();
|
|
6358
6358
|
}
|
|
6359
6359
|
function ir(h, g) {
|
|
6360
6360
|
if (!h || Wt)
|
|
6361
6361
|
return "";
|
|
6362
6362
|
{
|
|
6363
|
-
var v =
|
|
6363
|
+
var v = yt.get(h);
|
|
6364
6364
|
if (v !== void 0)
|
|
6365
6365
|
return v;
|
|
6366
6366
|
}
|
|
@@ -6415,7 +6415,7 @@ function pc() {
|
|
|
6415
6415
|
if (D--, L--, L < 0 || k[D] !== G[L]) {
|
|
6416
6416
|
var re = `
|
|
6417
6417
|
` + k[D].replace(" at new ", " at ");
|
|
6418
|
-
return h.displayName && re.includes("<anonymous>") && (re = re.replace("<anonymous>", h.displayName)), typeof h == "function" &&
|
|
6418
|
+
return h.displayName && re.includes("<anonymous>") && (re = re.replace("<anonymous>", h.displayName)), typeof h == "function" && yt.set(h, re), re;
|
|
6419
6419
|
}
|
|
6420
6420
|
while (D >= 1 && L >= 0);
|
|
6421
6421
|
break;
|
|
@@ -6424,8 +6424,8 @@ function pc() {
|
|
|
6424
6424
|
} finally {
|
|
6425
6425
|
Wt = !1, Kt.current = M, ts(), Error.prepareStackTrace = P;
|
|
6426
6426
|
}
|
|
6427
|
-
var Me = h ? h.displayName || h.name : "", ve = Me ?
|
|
6428
|
-
return typeof h == "function" &&
|
|
6427
|
+
var Me = h ? h.displayName || h.name : "", ve = Me ? pt(Me) : "";
|
|
6428
|
+
return typeof h == "function" && yt.set(h, ve), ve;
|
|
6429
6429
|
}
|
|
6430
6430
|
function rs(h, g, v) {
|
|
6431
6431
|
return ir(h, !1);
|
|
@@ -6434,29 +6434,29 @@ function pc() {
|
|
|
6434
6434
|
var g = h.prototype;
|
|
6435
6435
|
return !!(g && g.isReactComponent);
|
|
6436
6436
|
}
|
|
6437
|
-
function
|
|
6437
|
+
function bt(h, g, v) {
|
|
6438
6438
|
if (h == null)
|
|
6439
6439
|
return "";
|
|
6440
6440
|
if (typeof h == "function")
|
|
6441
6441
|
return ir(h, is(h));
|
|
6442
6442
|
if (typeof h == "string")
|
|
6443
|
-
return
|
|
6443
|
+
return pt(h);
|
|
6444
6444
|
switch (h) {
|
|
6445
6445
|
case c:
|
|
6446
|
-
return
|
|
6446
|
+
return pt("Suspense");
|
|
6447
6447
|
case f:
|
|
6448
|
-
return
|
|
6448
|
+
return pt("SuspenseList");
|
|
6449
6449
|
}
|
|
6450
6450
|
if (typeof h == "object")
|
|
6451
6451
|
switch (h.$$typeof) {
|
|
6452
6452
|
case d:
|
|
6453
6453
|
return rs(h.render);
|
|
6454
6454
|
case l:
|
|
6455
|
-
return
|
|
6455
|
+
return bt(h.type, g, v);
|
|
6456
6456
|
case p: {
|
|
6457
6457
|
var O = h, P = O._payload, M = O._init;
|
|
6458
6458
|
try {
|
|
6459
|
-
return
|
|
6459
|
+
return bt(M(P), g, v);
|
|
6460
6460
|
} catch {
|
|
6461
6461
|
}
|
|
6462
6462
|
}
|
|
@@ -6464,9 +6464,9 @@ function pc() {
|
|
|
6464
6464
|
return "";
|
|
6465
6465
|
}
|
|
6466
6466
|
var Ge = Object.prototype.hasOwnProperty, sr = {}, or = w.ReactDebugCurrentFrame;
|
|
6467
|
-
function
|
|
6467
|
+
function _t(h) {
|
|
6468
6468
|
if (h) {
|
|
6469
|
-
var g = h._owner, v =
|
|
6469
|
+
var g = h._owner, v = bt(h.type, h._source, g ? g.type : null);
|
|
6470
6470
|
or.setExtraStackFrame(v);
|
|
6471
6471
|
} else
|
|
6472
6472
|
or.setExtraStackFrame(null);
|
|
@@ -6486,7 +6486,7 @@ function pc() {
|
|
|
6486
6486
|
} catch (D) {
|
|
6487
6487
|
k = D;
|
|
6488
6488
|
}
|
|
6489
|
-
k && !(k instanceof Error) && (
|
|
6489
|
+
k && !(k instanceof Error) && (_t(P), m("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", O || "React class", v, C, typeof k), _t(null)), k instanceof Error && !(k.message in sr) && (sr[k.message] = !0, _t(P), m("Failed %s type: %s", v, k.message), _t(null));
|
|
6490
6490
|
}
|
|
6491
6491
|
}
|
|
6492
6492
|
}
|
|
@@ -6611,7 +6611,7 @@ function pc() {
|
|
|
6611
6611
|
var Vt = w.ReactCurrentOwner, lr = w.ReactDebugCurrentFrame;
|
|
6612
6612
|
function Ie(h) {
|
|
6613
6613
|
if (h) {
|
|
6614
|
-
var g = h._owner, v =
|
|
6614
|
+
var g = h._owner, v = bt(h.type, h._source, g ? g.type : null);
|
|
6615
6615
|
lr.setExtraStackFrame(v);
|
|
6616
6616
|
} else
|
|
6617
6617
|
lr.setExtraStackFrame(null);
|
|
@@ -6787,7 +6787,7 @@ function ri(t) {
|
|
|
6787
6787
|
}
|
|
6788
6788
|
function _c(t, e, n) {
|
|
6789
6789
|
e && n && "ruleParams" in n && (e = Object.assign({ $$ruleParams: n.ruleParams }, e));
|
|
6790
|
-
const r = e ? uc(e) : null, i = V(r), s =
|
|
6790
|
+
const r = e ? uc(e) : null, i = V(r), s = at(ri(t._reactor.getPreviousResult(r))), o = ge(
|
|
6791
6791
|
(u) => (s.current = ri(t._reactor.getPreviousResult(r)), r ? t.subscribeQuery(r, (c) => {
|
|
6792
6792
|
s.current = Object.assign({ isLoading: !c, data: void 0, pageInfo: void 0, error: void 0 }, c), u();
|
|
6793
6793
|
}) : () => {
|
|
@@ -6798,7 +6798,7 @@ function _c(t, e, n) {
|
|
|
6798
6798
|
return { state: nn(o, () => s.current, () => bc), query: r };
|
|
6799
6799
|
}
|
|
6800
6800
|
function gc() {
|
|
6801
|
-
const t =
|
|
6801
|
+
const t = at(null);
|
|
6802
6802
|
je(() => {
|
|
6803
6803
|
n();
|
|
6804
6804
|
}, []);
|
|
@@ -6812,8 +6812,9 @@ function gc() {
|
|
|
6812
6812
|
}
|
|
6813
6813
|
const wc = 1e3;
|
|
6814
6814
|
function Tc(t, e, n) {
|
|
6815
|
-
|
|
6816
|
-
|
|
6815
|
+
const r = at(n);
|
|
6816
|
+
r.current = n, je(() => t.core._reactor.subscribeTopic(t.id, e, (s, o) => {
|
|
6817
|
+
r.current(s, o);
|
|
6817
6818
|
}), [t.id, e]);
|
|
6818
6819
|
}
|
|
6819
6820
|
function mc(t, e) {
|
|
@@ -6931,7 +6932,7 @@ class jc {
|
|
|
6931
6932
|
});
|
|
6932
6933
|
}, [r]), i;
|
|
6933
6934
|
}, this.rooms = Oe, this.transact = (r) => this.core.transact(r), this.useQuery = (r, i) => _c(this.core, r, i).state, this.useAuth = () => {
|
|
6934
|
-
const r =
|
|
6935
|
+
const r = at(this.core._reactor._currentUserCached), i = ge((o) => this.core.subscribeAuth((u) => {
|
|
6935
6936
|
r.current = Object.assign({ isLoading: !1 }, u), o();
|
|
6936
6937
|
}), []);
|
|
6937
6938
|
return nn(i, () => r.current, () => kc);
|
|
@@ -6941,7 +6942,7 @@ class jc {
|
|
|
6941
6942
|
throw new qe("useUser must be used within an auth-protected route");
|
|
6942
6943
|
return r;
|
|
6943
6944
|
}, this.useConnectionStatus = () => {
|
|
6944
|
-
const r =
|
|
6945
|
+
const r = at(this.core._reactor.status), i = ge((o) => this.core.subscribeConnectionStatus((u) => {
|
|
6945
6946
|
u !== r.current && (r.current = u, o());
|
|
6946
6947
|
}), []);
|
|
6947
6948
|
return nn(
|
|
@@ -7158,11 +7159,11 @@ function oi(t) {
|
|
|
7158
7159
|
}
|
|
7159
7160
|
var Xi = (t) => {
|
|
7160
7161
|
throw TypeError(t);
|
|
7161
|
-
}, Qn = (t, e, n) => e.has(t) || Xi("Cannot " + n), A = (t, e, n) => (Qn(t, e, "read from private field"), n ? n.call(t) : e.get(t)), N = (t, e, n) => e.has(t) ? Xi("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), $ = (t, e, n, r) => (Qn(t, e, "write to private field"), e.set(t, n), n), he = (t, e, n) => (Qn(t, e, "access private method"), n), J, Ee, xe,
|
|
7162
|
-
class
|
|
7162
|
+
}, Qn = (t, e, n) => e.has(t) || Xi("Cannot " + n), A = (t, e, n) => (Qn(t, e, "read from private field"), n ? n.call(t) : e.get(t)), N = (t, e, n) => e.has(t) ? Xi("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), $ = (t, e, n, r) => (Qn(t, e, "write to private field"), e.set(t, n), n), he = (t, e, n) => (Qn(t, e, "access private method"), n), J, Ee, xe, At, Rt, st, Ue, ot, _e, $e, Fe, De, et, se, En, An, kn, ai, jn, Cn, tt, Pn, In;
|
|
7163
|
+
class kt extends EventTarget {
|
|
7163
7164
|
constructor(e, n) {
|
|
7164
7165
|
var r, i;
|
|
7165
|
-
super(), N(this, se), this.CONNECTING = 0, this.OPEN = 1, this.CLOSED = 2, N(this, J), N(this, Ee), N(this, xe), N(this,
|
|
7166
|
+
super(), N(this, se), this.CONNECTING = 0, this.OPEN = 1, this.CLOSED = 2, N(this, J), N(this, Ee), N(this, xe), N(this, At), N(this, Rt), N(this, st), N(this, Ue), N(this, ot, null), N(this, _e), N(this, $e), N(this, Fe, null), N(this, De, null), N(this, et, null), N(this, An, async (s) => {
|
|
7166
7167
|
var o;
|
|
7167
7168
|
A(this, $e).reset();
|
|
7168
7169
|
const { body: a, redirected: u, status: d, headers: c } = s;
|
|
@@ -7220,7 +7221,7 @@ class At extends EventTarget {
|
|
|
7220
7221
|
$(this, $e, Cc({
|
|
7221
7222
|
onEvent: A(this, jn),
|
|
7222
7223
|
onRetry: A(this, Cn)
|
|
7223
|
-
})), $(this, J, this.CONNECTING), $(this, st, 3e3), $(this, Rt, (r = n == null ? void 0 : n.fetch) != null ? r : globalThis.fetch), $(this,
|
|
7224
|
+
})), $(this, J, this.CONNECTING), $(this, st, 3e3), $(this, Rt, (r = n == null ? void 0 : n.fetch) != null ? r : globalThis.fetch), $(this, At, (i = n == null ? void 0 : n.withCredentials) != null ? i : !1), he(this, se, En).call(this);
|
|
7224
7225
|
}
|
|
7225
7226
|
/**
|
|
7226
7227
|
* Returns the state of this EventSource object's connection. It can have the values described below.
|
|
@@ -7251,7 +7252,7 @@ class At extends EventTarget {
|
|
|
7251
7252
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/withCredentials)
|
|
7252
7253
|
*/
|
|
7253
7254
|
get withCredentials() {
|
|
7254
|
-
return A(this,
|
|
7255
|
+
return A(this, At);
|
|
7255
7256
|
}
|
|
7256
7257
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/error_event) */
|
|
7257
7258
|
get onerror() {
|
|
@@ -7293,7 +7294,7 @@ class At extends EventTarget {
|
|
|
7293
7294
|
A(this, Ue) && clearTimeout(A(this, Ue)), A(this, J) !== this.CLOSED && (A(this, _e) && A(this, _e).abort(), $(this, J, this.CLOSED), $(this, _e, void 0));
|
|
7294
7295
|
}
|
|
7295
7296
|
}
|
|
7296
|
-
J = /* @__PURE__ */ new WeakMap(), Ee = /* @__PURE__ */ new WeakMap(), xe = /* @__PURE__ */ new WeakMap(),
|
|
7297
|
+
J = /* @__PURE__ */ new WeakMap(), Ee = /* @__PURE__ */ new WeakMap(), xe = /* @__PURE__ */ new WeakMap(), At = /* @__PURE__ */ new WeakMap(), Rt = /* @__PURE__ */ new WeakMap(), st = /* @__PURE__ */ new WeakMap(), Ue = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), _e = /* @__PURE__ */ new WeakMap(), $e = /* @__PURE__ */ new WeakMap(), Fe = /* @__PURE__ */ new WeakMap(), De = /* @__PURE__ */ new WeakMap(), et = /* @__PURE__ */ new WeakMap(), se = /* @__PURE__ */ new WeakSet(), /**
|
|
7297
7298
|
* Connect to the given URL and start receiving events
|
|
7298
7299
|
*
|
|
7299
7300
|
* @internal
|
|
@@ -7349,24 +7350,24 @@ Pn = function(t, e) {
|
|
|
7349
7350
|
*
|
|
7350
7351
|
* @public
|
|
7351
7352
|
*/
|
|
7352
|
-
|
|
7353
|
+
kt.CONNECTING = 0, /**
|
|
7353
7354
|
* ReadyState representing an EventSource connection that is open (eg connected)
|
|
7354
7355
|
*
|
|
7355
7356
|
* @public
|
|
7356
7357
|
*/
|
|
7357
|
-
|
|
7358
|
+
kt.OPEN = 1, /**
|
|
7358
7359
|
* ReadyState representing an EventSource connection that is closed (eg disconnected)
|
|
7359
7360
|
*
|
|
7360
7361
|
* @public
|
|
7361
7362
|
*/
|
|
7362
|
-
|
|
7363
|
+
kt.CLOSED = 2;
|
|
7363
7364
|
function Mc() {
|
|
7364
7365
|
const t = "document" in globalThis ? globalThis.document : void 0;
|
|
7365
7366
|
return t && typeof t == "object" && "baseURI" in t && typeof t.baseURI == "string" ? t.baseURI : void 0;
|
|
7366
7367
|
}
|
|
7367
7368
|
const Hn = class Hn extends jc {
|
|
7368
7369
|
};
|
|
7369
|
-
Hn.EventSourceImpl =
|
|
7370
|
+
Hn.EventSourceImpl = kt;
|
|
7370
7371
|
let Mn = Hn;
|
|
7371
7372
|
function Rc(t) {
|
|
7372
7373
|
return new Mn(
|