@instantdb/react 0.22.59-experimental.patch-open.19551821164.1 → 0.22.59-experimental.topifeffectfix.19553620207.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.
@@ -1,4 +1,4 @@
1
- import ci, { useRef as kt, useCallback as ge, useSyncExternalStore as nn, useEffect as je, useMemo as rn, useState as di, createElement as ks } from "react";
1
+ import ci, { useRef as at, useCallback as ge, useSyncExternalStore as nn, useEffect as we, 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__"), mt = Symbol.iterator, ne = {
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 ut(t, e, n) {
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) {
@@ -127,7 +127,7 @@ function sn(t) {
127
127
  for (; t.finalities.revoke.length > 0; )
128
128
  t.finalities.revoke.pop()();
129
129
  }
130
- function Ae(t, e) {
130
+ function ke(t, e) {
131
131
  return e ? t : [""].concat(t).map((n) => {
132
132
  const r = `${n}`;
133
133
  return r.indexOf("/") === -1 && r.indexOf("~") === -1 ? r : r.replace(/~/g, "~0").replace(/\//g, "~1");
@@ -225,7 +225,7 @@ function Je(t) {
225
225
  e[n] = Je(t[n]);
226
226
  return e;
227
227
  }
228
- function vt(t) {
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
- ut(r ? i : t, s, d);
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)), ut(u, e, d);
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;
@@ -351,32 +351,32 @@ function Rs(t, e, n, r, i) {
351
351
  u.length < s.length && ([s, u] = [u, s], [n, r] = [r, n]);
352
352
  for (let d = 0; d < s.length; d += 1)
353
353
  if (o.get(d.toString()) && u[d] !== s[d]) {
354
- const c = e.concat([d]), f = Ae(c, i);
354
+ const c = e.concat([d]), f = ke(c, i);
355
355
  n.push({
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: vt(u[d])
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: vt(s[d])
364
+ value: St(s[d])
365
365
  });
366
366
  }
367
367
  for (let d = s.length; d < u.length; d += 1) {
368
- const c = e.concat([d]), f = Ae(c, i);
368
+ const c = e.concat([d]), f = ke(c, i);
369
369
  n.push({
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: vt(u[d])
373
+ value: St(u[d])
374
374
  });
375
375
  }
376
376
  if (s.length < u.length) {
377
377
  const { arrayLengthAssignment: d = !0 } = a.enablePatches;
378
378
  if (d) {
379
- const c = e.concat(["length"]), f = Ae(c, i);
379
+ const c = e.concat(["length"]), f = ke(c, i);
380
380
  r.push({
381
381
  op: U.Replace,
382
382
  path: f,
@@ -384,7 +384,7 @@ function Rs(t, e, n, r, i) {
384
384
  });
385
385
  } else
386
386
  for (let c = u.length; s.length < c; c -= 1) {
387
- const f = e.concat([c - 1]), l = Ae(f, i);
387
+ const f = e.concat([c - 1]), l = ke(f, i);
388
388
  r.push({
389
389
  op: U.Remove,
390
390
  path: l
@@ -394,10 +394,10 @@ 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 = vt(be(e, u)), f = a ? nt(t, u) ? U.Replace : U.Add : U.Remove;
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
- const l = r.concat(u), p = Ae(l, o);
400
+ const l = r.concat(u), p = ke(l, o);
401
401
  i.push(f === U.Remove ? { op: f, path: p } : { op: f, path: p, value: c }), s.push(f === U.Add ? { op: U.Remove, path: p } : f === U.Remove ? { op: U.Add, path: p, value: d } : { op: U.Replace, path: p, value: d });
402
402
  });
403
403
  }
@@ -405,7 +405,7 @@ function $s({ original: t, copy: e }, n, r, i, s) {
405
405
  let o = 0;
406
406
  t.forEach((a) => {
407
407
  if (!e.has(a)) {
408
- const u = n.concat([o]), d = Ae(u, s);
408
+ const u = n.concat([o]), d = ke(u, s);
409
409
  r.push({
410
410
  op: U.Remove,
411
411
  path: d,
@@ -419,7 +419,7 @@ function $s({ original: t, copy: e }, n, r, i, s) {
419
419
  o += 1;
420
420
  }), o = 0, e.forEach((a) => {
421
421
  if (!t.has(a)) {
422
- const u = n.concat([o]), d = Ae(u, s);
422
+ const u = n.concat([o]), d = ke(u, s);
423
423
  r.push({
424
424
  op: U.Add,
425
425
  path: d,
@@ -433,7 +433,7 @@ function $s({ original: t, copy: e }, n, r, i, s) {
433
433
  o += 1;
434
434
  });
435
435
  }
436
- function at(t, e, n, r) {
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, at)), this;
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
- [mt]: () => this.values(),
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
- [mt]: () => this.entries(),
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
- [mt]() {
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, at)), this;
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
- [mt]() {
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, at)), !0);
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, at, 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)), ut(_, r, m);
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, at, f, l);
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
- ut(a, s, d);
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(), ut(i, o, u));
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);
@@ -909,12 +909,12 @@ const Ns = (t) => function e(n, r, i) {
909
909
  throw new Error("Either the value is returned as a new non-draft value, or only the draft is modified without returning any value.");
910
910
  const q = S == null ? void 0 : S[js];
911
911
  if (q) {
912
- const Te = q[0];
912
+ const me = q[0];
913
913
  return _.strict && typeof S == "object" && S !== null && cn({
914
914
  rootDraft: I,
915
915
  value: S,
916
916
  useRawReturn: !0
917
- }), w([Te]);
917
+ }), w([me]);
918
918
  }
919
919
  if (S !== void 0)
920
920
  return typeof S == "object" && S !== null && cn({ rootDraft: I, value: S }), w([S]);
@@ -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 St(t, e) {
945
- return typeof t != "object" || typeof e != "object" || t === null || e === null ? t === e : gi(t, e) ? Object.keys(t).every((n) => St(t[n], e[n])) : !1;
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 Ot(t.attrs, t.triples, t.cardinalityInference, t.linkIndex, t.useDateObjects);
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 Ot(t, e, n, r, i) {
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 ct(t, e) {
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 = ct(t, e);
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 = ct(t, e);
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 = ct(t, e);
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 = ct(t, [i]);
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 _t(t, e, n) {
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 ? _t(t, a, r) : [];
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(..._t(t, d, r));
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(..._t(t, d, r));
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(..._t(t, d, r));
1657
+ a.push(...gt(t, d, r));
1658
1658
  return a;
1659
1659
  }
1660
1660
  default:
@@ -1671,7 +1671,7 @@ function bo(t, e, n) {
1671
1671
  }
1672
1672
  return i;
1673
1673
  }
1674
- function we(t, e, n) {
1674
+ function Te(t, e, n) {
1675
1675
  var r;
1676
1676
  return (r = t.attrIndexes.forwardIdents.get(e)) === null || r === void 0 ? void 0 : r.get(n);
1677
1677
  }
@@ -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 = ct(t, e);
1691
+ const n = dt(t, e);
1692
1692
  if (!n)
1693
1693
  return;
1694
1694
  const [r, i, s] = n;
@@ -1876,7 +1876,7 @@ function zo(t, e, n) {
1876
1876
  return t.map((r) => r === e ? n : r);
1877
1877
  }
1878
1878
  function Ri(t, e, n, r, i) {
1879
- const s = we(e, n, i), o = Pi(e, n, i), a = s || o;
1879
+ const s = Te(e, n, i), o = Pi(e, n, i), a = s || o;
1880
1880
  if (!a)
1881
1881
  throw new Ke(`Could not find attr for ${[n, i]}`);
1882
1882
  if (a["value-type"] !== "ref")
@@ -1965,11 +1965,11 @@ function Vo(t, e) {
1965
1965
  return e;
1966
1966
  }
1967
1967
  function Bo(t, e, n, r, i, s) {
1968
- const o = we(e, n, i), a = Pi(e, n, i), u = o || a;
1968
+ const o = Te(e, n, i), a = Pi(e, n, i), u = o || a;
1969
1969
  if (!u)
1970
1970
  throw new Ke(`No attr for etype = ${n} label = ${i}`);
1971
1971
  if (s != null && s.hasOwnProperty("$isNull")) {
1972
- const d = we(e, n, "id");
1972
+ const d = Te(e, n, "id");
1973
1973
  if (!d)
1974
1974
  throw new Ke(`No attr for etype = ${n} label = id`);
1975
1975
  return [
@@ -2119,7 +2119,7 @@ function sa(t, e) {
2119
2119
  }
2120
2120
  function oa(t, e, n) {
2121
2121
  const r = Object.keys(n)[0];
2122
- return we(t, e, r);
2122
+ return Te(t, e, r);
2123
2123
  }
2124
2124
  function aa(t, e, n, r) {
2125
2125
  if (n)
@@ -2133,11 +2133,11 @@ function ua(t, e, n) {
2133
2133
  return _o(t, e);
2134
2134
  const s = /* @__PURE__ */ new Map();
2135
2135
  for (const o of n.fields) {
2136
- const a = we(t, e, o), u = (r = a == null ? void 0 : a["forward-identity"]) === null || r === void 0 ? void 0 : r[2];
2136
+ const a = Te(t, e, o), u = (r = a == null ? void 0 : a["forward-identity"]) === null || r === void 0 ? void 0 : r[2];
2137
2137
  u && qn(a) && s.set(u, a);
2138
2138
  }
2139
2139
  if (!s.has("id")) {
2140
- const o = we(t, e, "id"), a = (i = o == null ? void 0 : o["forward-identity"]) === null || i === void 0 ? void 0 : i[2];
2140
+ const o = Te(t, e, "id"), a = (i = o == null ? void 0 : o["forward-identity"]) === null || i === void 0 ? void 0 : i[2];
2141
2141
  a && s.set(a, o);
2142
2142
  }
2143
2143
  return s;
@@ -2325,7 +2325,7 @@ function B(t, e, n) {
2325
2325
  return s === e && o === n;
2326
2326
  });
2327
2327
  }
2328
- function ke(t, e, n) {
2328
+ function je(t, e, n) {
2329
2329
  return Object.values(t).find((r) => {
2330
2330
  const i = r["reverse-identity"];
2331
2331
  if (!i)
@@ -2356,7 +2356,7 @@ function _n(t) {
2356
2356
  function Ta(t, e, n) {
2357
2357
  if (!bn(t, e, n))
2358
2358
  return B(t, e, n);
2359
- const r = _n(n), i = B(t, e, r) || ke(t, e, r);
2359
+ const r = _n(n), i = B(t, e, r) || je(t, e, r);
2360
2360
  if (i && i["value-type"] !== "ref")
2361
2361
  throw new Error(`${n} does not reference a valid link attribute.`);
2362
2362
  return i;
@@ -2384,7 +2384,7 @@ function Fi(t, e, n, r) {
2384
2384
  }
2385
2385
  function ma({ attrs: t }, [e, n, r]) {
2386
2386
  const i = Object.entries(r).flatMap(([s, o]) => {
2387
- const a = Array.isArray(o) ? o : [o], u = B(t, e, s), d = ke(t, e, s);
2387
+ const a = Array.isArray(o) ? o : [o], u = B(t, e, s), d = je(t, e, s);
2388
2388
  return a.map((c) => u ? [
2389
2389
  "add-triple",
2390
2390
  ee(t, e, n),
@@ -2401,7 +2401,7 @@ function ma({ attrs: t }, [e, n, r]) {
2401
2401
  }
2402
2402
  function va({ attrs: t }, [e, n, r]) {
2403
2403
  const i = Object.entries(r).flatMap(([s, o]) => {
2404
- const a = Array.isArray(o) ? o : [o], u = B(t, e, s), d = ke(t, e, s);
2404
+ const a = Array.isArray(o) ? o : [o], u = B(t, e, s), d = je(t, e, s);
2405
2405
  return a.map((c) => u ? [
2406
2406
  "retract-triple",
2407
2407
  ee(t, e, n),
@@ -2539,7 +2539,7 @@ function Ma(t, e, n) {
2539
2539
  "checked-data-type": u
2540
2540
  };
2541
2541
  }
2542
- function gt(t, e, n, r) {
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
  }
@@ -2602,7 +2602,7 @@ function Ka({ attrs: t, schema: e }, n) {
2602
2602
  f != null && f.isUnsynced && !s.has(f.id) && (a.push(["add-attr", f]), s.add(f.id));
2603
2603
  }
2604
2604
  function c(f, l) {
2605
- const p = B(o, f, l), y = ke(o, f, l);
2605
+ const p = B(o, f, l), y = je(o, f, l);
2606
2606
  d(p), d(y), !p && !y && u(Rr(e, f, l, Fa));
2607
2607
  }
2608
2608
  for (const f of n)
@@ -2610,31 +2610,31 @@ function Ka({ attrs: t, schema: e }, n) {
2610
2610
  const b = p[0];
2611
2611
  if (y) {
2612
2612
  c(l, y);
2613
- const _ = B(o, l, y), T = ke(o, l, y);
2613
+ const _ = B(o, l, y), T = je(o, l, y);
2614
2614
  d(_), d(T);
2615
2615
  const w = ((r = _ == null ? void 0 : _["reverse-identity"]) === null || r === void 0 ? void 0 : r[1]) || ((i = T == null ? void 0 : T["forward-identity"]) === null || i === void 0 ? void 0 : i[1]) || y;
2616
2616
  if (bn(o, w, b))
2617
2617
  c(w, _n(b));
2618
2618
  else {
2619
2619
  const m = B(o, w, b);
2620
- m || u(gt(e, w, b, wn)), d(m);
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(gt(e, l, b, wn)), d(_);
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(gt(e, p, "id", { "unique?": !0 }));
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(gt(e, p, T, T === "id" ? { "unique?": !0 } : null))), Da.has(l)) {
2637
- const m = ke(o, p, T);
2636
+ if (d(w), Ua.has(l) && (w || u(wt(e, p, T, T === "id" ? { "unique?": !0 } : null))), Da.has(l)) {
2637
+ const m = je(o, p, T);
2638
2638
  !w && !m && u(Rr(e, p, T)), d(m);
2639
2639
  }
2640
2640
  }
@@ -3377,7 +3377,7 @@ function ru(t) {
3377
3377
  });
3378
3378
  });
3379
3379
  }
3380
- var dt = function(t, e, n, r) {
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 dt(this, arguments, void 0, function* ({ apiURI: e, appId: n, path: r, file: i, refreshToken: s, contentType: o, contentDisposition: a }) {
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 dt(this, arguments, void 0, function* ({ apiURI: e, appId: n, path: r, refreshToken: i }) {
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 dt(this, arguments, void 0, function* ({ apiURI: e, appId: n, fileName: r, refreshToken: i, metadata: s = {} }) {
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 dt(this, void 0, void 0, function* () {
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 dt(this, arguments, void 0, function* ({ apiURI: e, appId: n, path: r, refreshToken: i }) {
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.59-experimental.patch-open.19551821164.1";
3549
+ const Gn = "v0.22.59-experimental.topifeffectfix.19553620207.1";
3550
3550
  function fu(t, e) {
3551
3551
  return {
3552
3552
  info: t ? (...n) => console.info(...n, e()) : () => {
@@ -4090,7 +4090,7 @@ function Zt(t, e) {
4090
4090
  }
4091
4091
  function Yr(t, e, n) {
4092
4092
  var r;
4093
- const i = (r = we(e, t.table, "id")) === null || r === void 0 ? void 0 : r.id;
4093
+ const i = (r = Te(e, t.table, "id")) === null || r === void 0 ? void 0 : r.id;
4094
4094
  if (!i)
4095
4095
  return -1;
4096
4096
  const s = ze(e.eav, [n, i, n]);
@@ -4128,7 +4128,7 @@ function Eu(t, e) {
4128
4128
  }
4129
4129
  return o;
4130
4130
  }
4131
- function wt(t, e) {
4131
+ function Tt(t, e) {
4132
4132
  return { [t.table]: e.map((n) => n.entity) };
4133
4133
  }
4134
4134
  function Au(t, e) {
@@ -4148,10 +4148,10 @@ function Au(t, e) {
4148
4148
  return Xe(o.entity.id, o.entity[r], s.entity.id, s.entity[r], n);
4149
4149
  });
4150
4150
  }
4151
- var Se;
4151
+ var Oe;
4152
4152
  (function(t) {
4153
4153
  t.InitialSyncBatch = "InitialSyncBatch", t.InitialSyncComplete = "InitialSyncComplete", t.LoadFromStorage = "LoadFromStorage", t.SyncTransaction = "SyncTransaction", t.Error = "Error";
4154
- })(Se || (Se = {}));
4154
+ })(Oe || (Oe = {}));
4155
4155
  class ku {
4156
4156
  constructor(e, n, r, i, s) {
4157
4157
  this.callbacks = {}, this.idToHash = {}, this.trySend = e, this.config = r, this.log = i, this.createStore = s, this.subs = new Tn({
@@ -4221,12 +4221,12 @@ class ku {
4221
4221
  const d = this.subs.currentValue[n];
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
- type: Se.LoadFromStorage,
4225
- data: wt(d, (s = d.values) === null || s === void 0 ? void 0 : s.entities)
4224
+ type: Oe.LoadFromStorage,
4225
+ data: Tt(d, (s = d.values) === null || s === void 0 ? void 0 : s.entities)
4226
4226
  }));
4227
4227
  return;
4228
4228
  }
4229
- const c = Object.keys(e)[0], f = ((a = (o = e[c]) === null || o === void 0 ? void 0 : o.$) === null || a === void 0 ? void 0 : a.order) || { serverCreatedAt: "asc" }, [l, p] = Object.entries(f)[0], y = l === "serverCreatedAt" ? "number" : (u = we(this.createStore([]), c, l)) === null || u === void 0 ? void 0 : u["checked-data-type"];
4229
+ const c = Object.keys(e)[0], f = ((a = (o = e[c]) === null || o === void 0 ? void 0 : o.$) === null || a === void 0 ? void 0 : a.order) || { serverCreatedAt: "asc" }, [l, p] = Object.entries(f)[0], y = l === "serverCreatedAt" ? "number" : (u = Te(this.createStore([]), c, l)) === null || u === void 0 ? void 0 : u["checked-data-type"];
4230
4230
  this.subs.updateInPlace((b) => {
4231
4231
  b[n] = {
4232
4232
  query: e,
@@ -4297,8 +4297,8 @@ class ku {
4297
4297
  this.subs.updateInPlace((c) => {
4298
4298
  c[s] = a, c[s].updatedAt = Date.now();
4299
4299
  }), a.values && this.notifyCbs(s, {
4300
- type: Se.InitialSyncBatch,
4301
- data: wt(a, a.values.entities),
4300
+ type: Oe.InitialSyncBatch,
4301
+ data: Tt(a, a.values.entities),
4302
4302
  batch: o
4303
4303
  });
4304
4304
  }
@@ -4322,8 +4322,8 @@ class ku {
4322
4322
  });
4323
4323
  const s = this.subs.currentValue[i];
4324
4324
  s && this.notifyCbs(i, {
4325
- type: Se.InitialSyncComplete,
4326
- data: wt(s, ((n = s.values) === null || n === void 0 ? void 0 : n.entities) || [])
4325
+ type: Oe.InitialSyncComplete,
4326
+ data: Tt(s, ((n = s.values) === null || n === void 0 ? void 0 : n.entities) || [])
4327
4327
  });
4328
4328
  }
4329
4329
  onSyncUpdateTriples(e) {
@@ -4363,8 +4363,8 @@ class ku {
4363
4363
  if (oo(E.store, T)) {
4364
4364
  Jr(E.store, w);
4365
4365
  const S = Zt(a, E.store), I = Eu(E.store, w)[T];
4366
- for (const [x, { oldValue: q, newValue: Te }] of Object.entries(I || {}))
4367
- q === Te && delete I[x];
4366
+ for (const [x, { oldValue: q, newValue: me }] of Object.entries(I || {}))
4367
+ q === me && delete I[x];
4368
4368
  S ? (y.push({
4369
4369
  oldEntity: E.entity,
4370
4370
  newEntity: S,
@@ -4395,8 +4395,8 @@ class ku {
4395
4395
  for (const T of c.sort().reverse())
4396
4396
  _.push(p[T].entity), p.splice(T, 1);
4397
4397
  Au(a, p), this.notifyCbs(o, {
4398
- type: Se.SyncTransaction,
4399
- data: wt(a, (i = a.values) === null || i === void 0 ? void 0 : i.entities),
4398
+ type: Oe.SyncTransaction,
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
@@ -4425,7 +4425,7 @@ class ku {
4425
4425
  hint: e.hint
4426
4426
  }, i = Object.keys(e["original-event"].q)[0];
4427
4427
  this.notifyCbs(n, {
4428
- type: Se.Error,
4428
+ type: Oe.Error,
4429
4429
  data: { [i]: [] },
4430
4430
  error: r
4431
4431
  });
@@ -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 && (St(y, p) || l.forEach((b) => b.cb(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) => Ot(this.attrs, d, this.config.enableCardinalityInference, this._linkIndex, this.config.useDateObjects)), this._oauthCallbackResponse = this._oauthLoginInit(), this.getCurrentUser(), r.getIsOnline().then((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 = Ot(this.attrs, T, d, this._linkIndex, this.config.useDateObjects);
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), ft = Nr(q), Ft = Ot(this.attrs, ft, d, this._linkIndex, this.config.useDateObjects), Nt = this._applyOptimisticUpdates(Ft, _, y), lt = (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: lt, aggregate: ce };
4836
+ const x = w["instaql-query"], q = w["instaql-result"], me = 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: me, 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) => {
@@ -5047,7 +5047,7 @@ class Nu {
5047
5047
  return B(e, l, p);
5048
5048
  }, s = (c) => {
5049
5049
  const [f, l, p] = c["forward-identity"];
5050
- return ke(e, l, p);
5050
+ return je(e, l, p);
5051
5051
  }, o = { attrIdMap: {}, refSwapAttrIds: /* @__PURE__ */ new Set() };
5052
5052
  let a = !1;
5053
5053
  const u = (c, f) => {
@@ -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 || St(i, n) || e(i);
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 (!St(r, e)) {
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 Tt;
5826
+ let mt;
5827
5827
  function Yu(t, e) {
5828
- Tt == null || Tt.dispose();
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), Tt = {
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, ft;
6215
- ft = Symbol.for("react.module.reference");
6214
+ var S = !1, I = !1, x = !1, q = !1, me = !1, lt;
6215
+ lt = Symbol.for("react.module.reference");
6216
6216
  function Ft(h) {
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
6217
+ return !!(typeof h == "string" || typeof h == "function" || h === i || h === o || me || 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 === ft || h.getModuleId !== void 0));
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 lt(h) {
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 lt(g) + ".Consumer";
6258
+ return ht(g) + ".Consumer";
6259
6259
  case a:
6260
6260
  var v = h;
6261
- return lt(v._context) + ".Provider";
6261
+ return ht(v._context) + ".Provider";
6262
6262
  case d:
6263
6263
  return Nt(h, h.render, "ForwardRef");
6264
6264
  case l:
@@ -6275,7 +6275,7 @@ function pc() {
6275
6275
  }
6276
6276
  return null;
6277
6277
  }
6278
- var me = Object.assign, Be = 0, Yn, Jn, Zn, Xn, er, tr, nr;
6278
+ var ve = Object.assign, Be = 0, Yn, Jn, Zn, Xn, er, tr, nr;
6279
6279
  function rr() {
6280
6280
  }
6281
6281
  rr.__reactDisabledLog = !0;
@@ -6311,25 +6311,25 @@ function pc() {
6311
6311
  writable: !0
6312
6312
  };
6313
6313
  Object.defineProperties(console, {
6314
- log: me({}, h, {
6314
+ log: ve({}, h, {
6315
6315
  value: Yn
6316
6316
  }),
6317
- info: me({}, h, {
6317
+ info: ve({}, h, {
6318
6318
  value: Jn
6319
6319
  }),
6320
- warn: me({}, h, {
6320
+ warn: ve({}, h, {
6321
6321
  value: Zn
6322
6322
  }),
6323
- error: me({}, h, {
6323
+ error: ve({}, h, {
6324
6324
  value: Xn
6325
6325
  }),
6326
- group: me({}, h, {
6326
+ group: ve({}, h, {
6327
6327
  value: er
6328
6328
  }),
6329
- groupCollapsed: me({}, h, {
6329
+ groupCollapsed: ve({}, h, {
6330
6330
  value: tr
6331
6331
  }),
6332
- groupEnd: me({}, h, {
6332
+ groupEnd: ve({}, h, {
6333
6333
  value: nr
6334
6334
  })
6335
6335
  });
@@ -6338,7 +6338,7 @@ function pc() {
6338
6338
  }
6339
6339
  }
6340
6340
  var Kt = w.ReactCurrentDispatcher, qt;
6341
- function ht(h, g, v) {
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, pt;
6354
+ var Wt = !1, yt;
6355
6355
  {
6356
6356
  var ns = typeof WeakMap == "function" ? WeakMap : Map;
6357
- pt = new ns();
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 = pt.get(h);
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" && pt.set(h, re), re;
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 ? ht(Me) : "";
6428
- return typeof h == "function" && pt.set(h, ve), ve;
6427
+ var Me = h ? h.displayName || h.name : "", Se = Me ? pt(Me) : "";
6428
+ return typeof h == "function" && yt.set(h, Se), Se;
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 yt(h, g, v) {
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 ht(h);
6443
+ return pt(h);
6444
6444
  switch (h) {
6445
6445
  case c:
6446
- return ht("Suspense");
6446
+ return pt("Suspense");
6447
6447
  case f:
6448
- return ht("SuspenseList");
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 yt(h.type, g, v);
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 yt(M(P), g, v);
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 bt(h) {
6467
+ function _t(h) {
6468
6468
  if (h) {
6469
- var g = h._owner, v = yt(h.type, h._source, g ? g.type : null);
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) && (bt(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), bt(null)), k instanceof Error && !(k.message in sr) && (sr[k.message] = !0, bt(P), m("Failed %s type: %s", v, k.message), bt(null));
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 = yt(h.type, h._source, g ? g.type : null);
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);
@@ -6747,17 +6747,17 @@ Check the top-level render call using <` + v + ">.");
6747
6747
  br(re, h);
6748
6748
  }
6749
6749
  if (Ge.call(g, "key")) {
6750
- var ve = ce(h), Y = Object.keys(g).filter(function(As) {
6750
+ var Se = ce(h), Y = Object.keys(g).filter(function(As) {
6751
6751
  return As !== "key";
6752
6752
  }), Qt = Y.length > 0 ? "{key: someKey, " + Y.join(": ..., ") + ": ...}" : "{key: someKey}";
6753
- if (!_r[ve + Qt]) {
6753
+ if (!_r[Se + Qt]) {
6754
6754
  var Es = Y.length > 0 ? "{" + Y.join(": ..., ") + ": ...}" : "{}";
6755
6755
  m(`A props object containing a "key" prop is being spread into JSX:
6756
6756
  let props = %s;
6757
6757
  <%s {...props} />
6758
6758
  React keys must be passed directly to JSX without using spread:
6759
6759
  let props = %s;
6760
- <%s key={someKey} {...props} />`, Qt, ve, Es, ve), _r[ve + Qt] = !0;
6760
+ <%s key={someKey} {...props} />`, Qt, Se, Es, Se), _r[Se + Qt] = !0;
6761
6761
  }
6762
6762
  }
6763
6763
  return h === i ? Ts(L) : ws(L), L;
@@ -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 = kt(ri(t._reactor.getPreviousResult(r))), o = ge(
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,8 +6798,8 @@ 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 = kt(null);
6802
- je(() => {
6801
+ const t = at(null);
6802
+ we(() => {
6803
6803
  n();
6804
6804
  }, []);
6805
6805
  function e(r, i) {
@@ -6812,12 +6812,15 @@ function gc() {
6812
6812
  }
6813
6813
  const wc = 1e3;
6814
6814
  function Tc(t, e, n) {
6815
- je(() => t.core._reactor.subscribeTopic(t.id, e, (i, s) => {
6816
- n(i, s);
6815
+ const r = at(n);
6816
+ we(() => {
6817
+ r.current = n;
6818
+ }, [n]), we(() => t.core._reactor.subscribeTopic(t.id, e, (s, o) => {
6819
+ r.current(s, o);
6817
6820
  }), [t.id, e]);
6818
6821
  }
6819
6822
  function mc(t, e) {
6820
- return je(() => t.core._reactor.joinRoom(t.id), [t.id]), ge((r) => {
6823
+ return we(() => t.core._reactor.joinRoom(t.id), [t.id]), ge((r) => {
6821
6824
  t.core._reactor.publishTopic({
6822
6825
  roomType: t.type,
6823
6826
  roomId: t.id,
@@ -6835,7 +6838,7 @@ function vc(t, e = {}) {
6835
6838
  isLoading: !0
6836
6839
  };
6837
6840
  });
6838
- je(() => t.core._reactor.subscribePresence(t.type, t.id, e, (d) => {
6841
+ we(() => t.core._reactor.subscribePresence(t.type, t.id, e, (d) => {
6839
6842
  s(d);
6840
6843
  }), [t.id, e.user, (n = e.peers) === null || n === void 0 ? void 0 : n.join(), (r = e.keys) === null || r === void 0 ? void 0 : r.join()]);
6841
6844
  const o = ge((u) => {
@@ -6844,10 +6847,10 @@ function vc(t, e = {}) {
6844
6847
  return rn(() => Object.assign(Object.assign({}, i), { publishPresence: o }), [i, o]);
6845
6848
  }
6846
6849
  function Sc(t, e, n) {
6847
- je(() => t.core._reactor.joinRoom(t.id, e), [t.id]), je(() => t.core._reactor.publishPresence(t.type, t.id, e), [t.type, t.id, n ?? JSON.stringify(e)]);
6850
+ we(() => t.core._reactor.joinRoom(t.id, e), [t.id]), we(() => t.core._reactor.publishPresence(t.type, t.id, e), [t.type, t.id, n ?? JSON.stringify(e)]);
6848
6851
  }
6849
6852
  function Oc(t, e, n = {}) {
6850
- const r = gc(), i = Oe.usePresence(t, {
6853
+ const r = gc(), i = Ee.usePresence(t, {
6851
6854
  keys: [e]
6852
6855
  }), s = rn(() => {
6853
6856
  var c;
@@ -6874,7 +6877,7 @@ function Oc(t, e, n = {}) {
6874
6877
  inputProps: d
6875
6878
  };
6876
6879
  }
6877
- const Oe = {
6880
+ const Ee = {
6878
6881
  useTopicEffect: Tc,
6879
6882
  usePublishTopic: mc,
6880
6883
  usePresence: vc,
@@ -6884,8 +6887,8 @@ const Oe = {
6884
6887
  class Ec {
6885
6888
  constructor(e, n, r) {
6886
6889
  this.useTopicEffect = (i, s) => {
6887
- Oe.useTopicEffect(this, i, s);
6888
- }, this.usePublishTopic = (i) => Oe.usePublishTopic(this, i), this.usePresence = (i = {}) => Oe.usePresence(this, i), this.useSyncPresence = (i, s) => Oe.useSyncPresence(this, i, s), this.useTypingIndicator = (i, s = {}) => Oe.useTypingIndicator(this, i, s), this.core = e, this._core = this.core, this.type = n, this.id = r;
6890
+ Ee.useTopicEffect(this, i, s);
6891
+ }, this.usePublishTopic = (i) => Ee.usePublishTopic(this, i), this.usePresence = (i = {}) => Ee.usePresence(this, i), this.useSyncPresence = (i, s) => Ee.useSyncPresence(this, i, s), this.useTypingIndicator = (i, s = {}) => Ee.useTypingIndicator(this, i, s), this.core = e, this._core = this.core, this.type = n, this.id = r;
6889
6892
  }
6890
6893
  }
6891
6894
  var Ac = function(t, e, n, r) {
@@ -6924,14 +6927,14 @@ class jc {
6924
6927
  constructor(e, n) {
6925
6928
  this.tx = Vn(), this.getLocalId = (r) => this.core.getLocalId(r), this.useLocalId = (r) => {
6926
6929
  const [i, s] = di(null);
6927
- return je(() => {
6930
+ return we(() => {
6928
6931
  Ac(this, void 0, void 0, function* () {
6929
6932
  const a = yield this.getLocalId(r);
6930
6933
  s(a);
6931
6934
  });
6932
6935
  }, [r]), i;
6933
- }, 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 = kt(this.core._reactor._currentUserCached), i = ge((o) => this.core.subscribeAuth((u) => {
6936
+ }, this.rooms = Ee, this.transact = (r) => this.core.transact(r), this.useQuery = (r, i) => _c(this.core, r, i).state, this.useAuth = () => {
6937
+ const r = at(this.core._reactor._currentUserCached), i = ge((o) => this.core.subscribeAuth((u) => {
6935
6938
  r.current = Object.assign({ isLoading: !1 }, u), o();
6936
6939
  }), []);
6937
6940
  return nn(i, () => r.current, () => kc);
@@ -6941,7 +6944,7 @@ class jc {
6941
6944
  throw new qe("useUser must be used within an auth-protected route");
6942
6945
  return r;
6943
6946
  }, this.useConnectionStatus = () => {
6944
- const r = kt(this.core._reactor.status), i = ge((o) => this.core.subscribeConnectionStatus((u) => {
6947
+ const r = at(this.core._reactor.status), i = ge((o) => this.core.subscribeConnectionStatus((u) => {
6945
6948
  u !== r.current && (r.current = u, o());
6946
6949
  }), []);
6947
6950
  return nn(
@@ -7158,11 +7161,11 @@ function oi(t) {
7158
7161
  }
7159
7162
  var Xi = (t) => {
7160
7163
  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, Et, Rt, st, Ue, ot, _e, $e, Fe, De, et, se, En, An, kn, ai, jn, Cn, tt, Pn, In;
7162
- class At extends EventTarget {
7164
+ }, 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, Ae, xe, At, Rt, st, Ue, ot, _e, $e, Fe, De, et, se, En, An, kn, ai, jn, Cn, tt, Pn, In;
7165
+ class kt extends EventTarget {
7163
7166
  constructor(e, n) {
7164
7167
  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, Et), 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) => {
7168
+ super(), N(this, se), this.CONNECTING = 0, this.OPEN = 1, this.CLOSED = 2, N(this, J), N(this, Ae), 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
7169
  var o;
7167
7170
  A(this, $e).reset();
7168
7171
  const { body: a, redirected: u, status: d, headers: c } = s;
@@ -7198,7 +7201,7 @@ class At extends EventTarget {
7198
7201
  typeof s.id == "string" && $(this, ot, s.id);
7199
7202
  const o = new MessageEvent(s.event || "message", {
7200
7203
  data: s.data,
7201
- origin: A(this, xe) ? A(this, xe).origin : A(this, Ee).origin,
7204
+ origin: A(this, xe) ? A(this, xe).origin : A(this, Ae).origin,
7202
7205
  lastEventId: s.id || ""
7203
7206
  });
7204
7207
  A(this, De) && (!s.event || s.event === "message") && A(this, De).call(this, o), this.dispatchEvent(o);
@@ -7209,9 +7212,9 @@ class At extends EventTarget {
7209
7212
  });
7210
7213
  try {
7211
7214
  if (e instanceof URL)
7212
- $(this, Ee, e);
7215
+ $(this, Ae, e);
7213
7216
  else if (typeof e == "string")
7214
- $(this, Ee, new URL(e, Mc()));
7217
+ $(this, Ae, new URL(e, Mc()));
7215
7218
  else
7216
7219
  throw new Error("Invalid URL");
7217
7220
  } catch {
@@ -7220,7 +7223,7 @@ class At extends EventTarget {
7220
7223
  $(this, $e, Cc({
7221
7224
  onEvent: A(this, jn),
7222
7225
  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, Et, (i = n == null ? void 0 : n.withCredentials) != null ? i : !1), he(this, se, En).call(this);
7226
+ })), $(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
7227
  }
7225
7228
  /**
7226
7229
  * Returns the state of this EventSource object's connection. It can have the values described below.
@@ -7243,7 +7246,7 @@ class At extends EventTarget {
7243
7246
  * @public
7244
7247
  */
7245
7248
  get url() {
7246
- return A(this, Ee).href;
7249
+ return A(this, Ae).href;
7247
7250
  }
7248
7251
  /**
7249
7252
  * Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise.
@@ -7251,7 +7254,7 @@ class At extends EventTarget {
7251
7254
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/withCredentials)
7252
7255
  */
7253
7256
  get withCredentials() {
7254
- return A(this, Et);
7257
+ return A(this, At);
7255
7258
  }
7256
7259
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/error_event) */
7257
7260
  get onerror() {
@@ -7293,13 +7296,13 @@ class At extends EventTarget {
7293
7296
  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
7297
  }
7295
7298
  }
7296
- J = /* @__PURE__ */ new WeakMap(), Ee = /* @__PURE__ */ new WeakMap(), xe = /* @__PURE__ */ new WeakMap(), Et = /* @__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(), /**
7299
+ J = /* @__PURE__ */ new WeakMap(), Ae = /* @__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
7300
  * Connect to the given URL and start receiving events
7298
7301
  *
7299
7302
  * @internal
7300
7303
  */
7301
7304
  En = function() {
7302
- $(this, J, this.CONNECTING), $(this, _e, new AbortController()), A(this, Rt)(A(this, Ee), he(this, se, ai).call(this)).then(A(this, An)).catch(A(this, kn));
7305
+ $(this, J, this.CONNECTING), $(this, _e, new AbortController()), A(this, Rt)(A(this, Ae), he(this, se, ai).call(this)).then(A(this, An)).catch(A(this, kn));
7303
7306
  }, An = /* @__PURE__ */ new WeakMap(), kn = /* @__PURE__ */ new WeakMap(), /**
7304
7307
  * Get request options for the `fetch()` request
7305
7308
  *
@@ -7349,24 +7352,24 @@ Pn = function(t, e) {
7349
7352
  *
7350
7353
  * @public
7351
7354
  */
7352
- At.CONNECTING = 0, /**
7355
+ kt.CONNECTING = 0, /**
7353
7356
  * ReadyState representing an EventSource connection that is open (eg connected)
7354
7357
  *
7355
7358
  * @public
7356
7359
  */
7357
- At.OPEN = 1, /**
7360
+ kt.OPEN = 1, /**
7358
7361
  * ReadyState representing an EventSource connection that is closed (eg disconnected)
7359
7362
  *
7360
7363
  * @public
7361
7364
  */
7362
- At.CLOSED = 2;
7365
+ kt.CLOSED = 2;
7363
7366
  function Mc() {
7364
7367
  const t = "document" in globalThis ? globalThis.document : void 0;
7365
7368
  return t && typeof t == "object" && "baseURI" in t && typeof t.baseURI == "string" ? t.baseURI : void 0;
7366
7369
  }
7367
7370
  const Hn = class Hn extends jc {
7368
7371
  };
7369
- Hn.EventSourceImpl = At;
7372
+ Hn.EventSourceImpl = kt;
7370
7373
  let Mn = Hn;
7371
7374
  function Rc(t) {
7372
7375
  return new Mn(
@@ -7540,7 +7543,7 @@ export {
7540
7543
  Dt as InstantAPIError,
7541
7544
  jc as InstantReactAbstractDatabase,
7542
7545
  Mn as InstantReactWebDatabase,
7543
- Se as SyncTableCallbackEventType,
7546
+ Oe as SyncTableCallbackEventType,
7544
7547
  Nc as i,
7545
7548
  K as id,
7546
7549
  Rc as init,