@instantdb/react-common 1.0.63-branch-codex-indexeddb-explicit-commit.31419272329.1 → 1.0.63-branch-codex-indexeddb-explicit-commit.31419410889.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.
@@ -41,14 +41,14 @@ function Ys() {
41
41
  * LICENSE file in the root directory of this source tree.
42
42
  */
43
43
  return n.NODE_ENV !== "production" && function() {
44
- var e = Rr, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), c = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), y = Symbol.for("react.offscreen"), g = Symbol.iterator, m = "@@iterator";
44
+ var e = Rr, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), c = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), y = Symbol.for("react.offscreen"), g = Symbol.iterator, _ = "@@iterator";
45
45
  function S(d) {
46
46
  if (d === null || typeof d != "object")
47
47
  return null;
48
- var w = g && d[g] || d[m];
48
+ var w = g && d[g] || d[_];
49
49
  return typeof w == "function" ? w : null;
50
50
  }
51
- var _ = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
+ var m = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
52
52
  function T(d) {
53
53
  {
54
54
  for (var w = arguments.length, v = new Array(w > 1 ? w - 1 : 0), I = 1; I < w; I++)
@@ -58,7 +58,7 @@ function Ys() {
58
58
  }
59
59
  function C(d, w, v) {
60
60
  {
61
- var I = _.ReactDebugCurrentFrame, W = I.getStackAddendum();
61
+ var I = m.ReactDebugCurrentFrame, W = I.getStackAddendum();
62
62
  W !== "" && (w += "%s", v = v.concat([W]));
63
63
  var V = v.map(function(F) {
64
64
  return String(F);
@@ -192,7 +192,7 @@ function Ys() {
192
192
  $ < 0 && T("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
193
193
  }
194
194
  }
195
- var ge = _.ReactCurrentDispatcher, jt;
195
+ var ge = m.ReactCurrentDispatcher, jt;
196
196
  function lt(d, w, v) {
197
197
  {
198
198
  if (jt === void 0)
@@ -318,7 +318,7 @@ function Ys() {
318
318
  }
319
319
  return "";
320
320
  }
321
- var He = Object.prototype.hasOwnProperty, Pn = {}, Rn = _.ReactDebugCurrentFrame;
321
+ var He = Object.prototype.hasOwnProperty, Pn = {}, Rn = m.ReactDebugCurrentFrame;
322
322
  function ht(d) {
323
323
  if (d) {
324
324
  var w = d._owner, v = dt(d.type, d._source, w ? w.type : null);
@@ -369,7 +369,7 @@ function Ys() {
369
369
  if (Is(d))
370
370
  return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Cs(d)), Mn(d);
371
371
  }
372
- var $n = _.ReactCurrentOwner, Ps = {
372
+ var $n = m.ReactCurrentOwner, Ps = {
373
373
  key: !0,
374
374
  ref: !0,
375
375
  __self: !0,
@@ -463,7 +463,7 @@ function Ys() {
463
463
  return Ds(d, D, ae, W, I, $n.current, F);
464
464
  }
465
465
  }
466
- var Dt = _.ReactCurrentOwner, Un = _.ReactDebugCurrentFrame;
466
+ var Dt = m.ReactCurrentOwner, Un = m.ReactDebugCurrentFrame;
467
467
  function Ue(d) {
468
468
  if (d) {
469
469
  var w = d._owner, v = dt(d.type, d._source, w ? w.type : null);
@@ -1421,11 +1421,11 @@ function Tn(n) {
1421
1421
  l.finalities.draft.push((f, h) => {
1422
1422
  var b, y;
1423
1423
  const g = U(c);
1424
- let m = l.type === 3 ? l.setMap : l.copy;
1425
- const S = ke(m, r), _ = U(S);
1426
- if (_) {
1427
- let T = _.original;
1428
- _.operated && (T = mn(S)), Xt(_), en(_, at, f, h), l.options.enableAutoFreeze && (l.options.updatedValues = (b = l.options.updatedValues) !== null && b !== void 0 ? b : /* @__PURE__ */ new WeakMap(), l.options.updatedValues.set(T, _.original)), ct(m, r, T);
1424
+ let _ = l.type === 3 ? l.setMap : l.copy;
1425
+ const S = ke(_, r), m = U(S);
1426
+ if (m) {
1427
+ let T = m.original;
1428
+ m.operated && (T = mn(S)), Xt(m), en(m, at, f, h), l.options.enableAutoFreeze && (l.options.updatedValues = (b = l.options.updatedValues) !== null && b !== void 0 ? b : /* @__PURE__ */ new WeakMap(), l.options.updatedValues.set(T, m.original)), ct(_, r, T);
1429
1429
  }
1430
1430
  (y = g.callbacks) === null || y === void 0 || y.forEach((T) => {
1431
1431
  T(f, h);
@@ -1547,19 +1547,19 @@ const fi = (n) => function e(t, r, s) {
1547
1547
  if (P)
1548
1548
  return P;
1549
1549
  }
1550
- } : l.mark, b = (i = l.enablePatches) !== null && i !== void 0 ? i : !1, y = (o = l.strict) !== null && o !== void 0 ? o : !1, m = {
1550
+ } : l.mark, b = (i = l.enablePatches) !== null && i !== void 0 ? i : !1, y = (o = l.strict) !== null && o !== void 0 ? o : !1, _ = {
1551
1551
  enableAutoFreeze: (a = l.enableAutoFreeze) !== null && a !== void 0 ? a : !1,
1552
1552
  mark: h,
1553
1553
  strict: y,
1554
1554
  enablePatches: b
1555
1555
  };
1556
- if (!me(f, m) && typeof f == "object" && f !== null)
1556
+ if (!me(f, _) && typeof f == "object" && f !== null)
1557
1557
  throw new Error("Invalid base state: create() only supports plain objects, arrays, Set, Map or using mark() to mark the state as immutable.");
1558
- const [S, _] = li(f, m);
1558
+ const [S, m] = li(f, _);
1559
1559
  if (typeof r != "function") {
1560
- if (!me(f, m))
1560
+ if (!me(f, _))
1561
1561
  throw new Error("Invalid base state: create() only supports plain objects, arrays, Set, Map or using mark() to mark the state as immutable.");
1562
- return [S, _];
1562
+ return [S, m];
1563
1563
  }
1564
1564
  let T;
1565
1565
  try {
@@ -1575,24 +1575,24 @@ const fi = (n) => function e(t, r, s) {
1575
1575
  const P = O == null ? void 0 : O[Xs];
1576
1576
  if (P) {
1577
1577
  const G = P[0];
1578
- return m.strict && typeof O == "object" && O !== null && nn({
1578
+ return _.strict && typeof O == "object" && O !== null && nn({
1579
1579
  rootDraft: M,
1580
1580
  value: O,
1581
1581
  useRawReturn: !0
1582
- }), _([G]);
1582
+ }), m([G]);
1583
1583
  }
1584
1584
  if (O !== void 0)
1585
- return typeof O == "object" && O !== null && nn({ rootDraft: M, value: O }), _([O]);
1585
+ return typeof O == "object" && O !== null && nn({ rootDraft: M, value: O }), m([O]);
1586
1586
  }
1587
1587
  if (O === S || O === void 0)
1588
- return _([]);
1588
+ return m([]);
1589
1589
  const R = U(O);
1590
- if (m === R.options) {
1590
+ if (_ === R.options) {
1591
1591
  if (R.operated)
1592
1592
  throw new Error("Cannot return a modified child draft.");
1593
- return _([Hn(O)]);
1593
+ return m([Hn(O)]);
1594
1594
  }
1595
- return _([O]);
1595
+ return m([O]);
1596
1596
  };
1597
1597
  return T instanceof Promise ? T.then(C, (O) => {
1598
1598
  throw Zt(U(S)), O;
@@ -2230,8 +2230,8 @@ function sn(n, e, t) {
2230
2230
  for (const f of a.keys()) {
2231
2231
  const h = e.getAttr(f);
2232
2232
  h && h["on-delete-reverse"] === "cascade" && fe(a.get(f), 1).forEach(([b, y, g]) => {
2233
- var m;
2234
- return sn(n, e, [g, (m = h["reverse-identity"]) == null ? void 0 : m[1]]);
2233
+ var _;
2234
+ return sn(n, e, [g, (_ = h["reverse-identity"]) == null ? void 0 : _[1]]);
2235
2235
  }), // Fall back to deleting everything if we've rehydrated tx-steps from
2236
2236
  // the store that didn't set `etype` in deleteEntity
2237
2237
  (!s || // If we don't know about the attr, let's just get rid of it
@@ -2242,9 +2242,9 @@ function sn(n, e, t) {
2242
2242
  }
2243
2243
  const c = n.vae.get(o) && fe(n.vae.get(o), 2);
2244
2244
  c && c.forEach((f) => {
2245
- var m, S, _;
2245
+ var _, S, m;
2246
2246
  const [h, b, y] = f, g = e.getAttr(b);
2247
- (!s || !g || ((m = g["reverse-identity"]) == null ? void 0 : m[1]) === s) && (_e(n.eav, [h, b, y]), _e(n.aev, [b, h, y]), _e(n.vae, [y, b, h])), g && g["on-delete"] === "cascade" && ((S = g["reverse-identity"]) == null ? void 0 : S[1]) === s && sn(n, e, [h, (_ = g["forward-identity"]) == null ? void 0 : _[1]]);
2247
+ (!s || !g || ((_ = g["reverse-identity"]) == null ? void 0 : _[1]) === s) && (_e(n.eav, [h, b, y]), _e(n.aev, [b, h, y]), _e(n.vae, [y, b, h])), g && g["on-delete"] === "cascade" && ((S = g["reverse-identity"]) == null ? void 0 : S[1]) === s && sn(n, e, [h, (m = g["forward-identity"]) == null ? void 0 : m[1]]);
2248
2248
  }), ((l = n.vae.get(o)) == null ? void 0 : l.size) === 0 && _e(n.vae, [o]);
2249
2249
  }
2250
2250
  function Jr(n, e, t) {
@@ -2822,20 +2822,20 @@ function Io(n, e, t, { etype: r, level: s, form: i }, o) {
2822
2822
  const a = Object.keys(i).filter((c) => c !== "$");
2823
2823
  return a.length ? Object.entries(o).map(function([u, l]) {
2824
2824
  return a.map(function(b) {
2825
- var g, m, S;
2826
- const y = !!(e.cardinalityInference && ((S = (m = (g = t.linkIndex) == null ? void 0 : g[r]) == null ? void 0 : m[b]) != null && S.isSingular));
2825
+ var g, _, S;
2826
+ const y = !!(e.cardinalityInference && ((S = (_ = (g = t.linkIndex) == null ? void 0 : g[r]) == null ? void 0 : _[b]) != null && S.isSingular));
2827
2827
  try {
2828
- const [_, T, C] = Co(n, t, r, s, b, u), O = ss(e, t, {
2829
- etype: _,
2828
+ const [m, T, C] = Co(n, t, r, s, b, u), O = ss(e, t, {
2829
+ etype: m,
2830
2830
  level: T,
2831
2831
  form: i[b],
2832
2832
  join: C
2833
2833
  }), M = y ? O[0] : O;
2834
2834
  return { [b]: M };
2835
- } catch (_) {
2836
- if (_ instanceof Qe)
2835
+ } catch (m) {
2836
+ if (m instanceof Qe)
2837
2837
  return { [b]: y ? void 0 : [] };
2838
- throw _;
2838
+ throw m;
2839
2839
  }
2840
2840
  }).reduce(function(b, y) {
2841
2841
  return { ...b, ...y };
@@ -2900,31 +2900,31 @@ function Do(n, e, t) {
2900
2900
  return r;
2901
2901
  }
2902
2902
  function Uo(n, e, { etype: t, pageInfo: r, dq: s, form: i }) {
2903
- var g, m;
2903
+ var g, _;
2904
2904
  const o = (g = i == null ? void 0 : i.$) == null ? void 0 : g.order, a = rs(i), c = Lo(i);
2905
2905
  let u = Xi(n, s);
2906
2906
  const l = r == null ? void 0 : r["start-cursor"], f = r == null ? void 0 : r["end-cursor"], h = xo(e, t, l, o);
2907
- if (h && ((m = h == null ? void 0 : h["forward-identity"]) == null ? void 0 : m[2]) !== "id") {
2908
- const S = h["checked-data-type"] === "date", _ = h.id;
2907
+ if (h && ((_ = h == null ? void 0 : h["forward-identity"]) == null ? void 0 : _[2]) !== "id") {
2908
+ const S = h["checked-data-type"] === "date", m = h.id;
2909
2909
  u = u.map(([T]) => {
2910
2910
  var O, M, R, P, G;
2911
- let C = (G = (P = (R = (M = (O = n.eav.get(T)) == null ? void 0 : O.get(_)) == null ? void 0 : M.values()) == null ? void 0 : R.next()) == null ? void 0 : P.value) == null ? void 0 : G[2];
2911
+ let C = (G = (P = (R = (M = (O = n.eav.get(T)) == null ? void 0 : O.get(m)) == null ? void 0 : M.values()) == null ? void 0 : R.next()) == null ? void 0 : P.value) == null ? void 0 : G[2];
2912
2912
  return S && (C = cn(C)), [T, C];
2913
2913
  });
2914
2914
  }
2915
- u.sort(c === "asc" ? function(_, T) {
2916
- return Ct(_, T, h == null ? void 0 : h["checked-data-type"]);
2917
- } : function(_, T) {
2918
- return Ct(T, _, h == null ? void 0 : h["checked-data-type"]);
2915
+ u.sort(c === "asc" ? function(m, T) {
2916
+ return Ct(m, T, h == null ? void 0 : h["checked-data-type"]);
2917
+ } : function(m, T) {
2918
+ return Ct(T, m, h == null ? void 0 : h["checked-data-type"]);
2919
2919
  });
2920
2920
  let b = {};
2921
2921
  const y = Do(e, t, s);
2922
2922
  for (const S of u) {
2923
- const [_] = S;
2924
- if (b[_] || !a && l && h && Ro(l, h, c, S) || !a && f && h && Mo(f, h, c, S))
2923
+ const [m] = S;
2924
+ if (b[m] || !a && l && h && Ro(l, h, c, S) || !a && f && h && Mo(f, h, c, S))
2925
2925
  continue;
2926
- const T = Ki(n, y, _);
2927
- T && (b[_] = T);
2926
+ const T = Ki(n, y, m);
2927
+ T && (b[m] = T);
2928
2928
  }
2929
2929
  return b;
2930
2930
  }
@@ -2939,7 +2939,7 @@ function rs(n) {
2939
2939
  return !e && !t && !r;
2940
2940
  }
2941
2941
  function Fo(n, e, { etype: t, level: r, form: s, join: i, pageInfo: o }) {
2942
- var h, b, y, g, m;
2942
+ var h, b, y, g, _;
2943
2943
  if (!rs(s) && (!o || !o["start-cursor"]))
2944
2944
  return [];
2945
2945
  const a = So(Eo(e, t, r, (h = s.$) == null ? void 0 : h.where), i), c = ko(Rt, t, r), u = (b = s.$) == null ? void 0 : b.fields, l = Uo(n, e, {
@@ -2947,7 +2947,7 @@ function Fo(n, e, { etype: t, level: r, form: s, join: i, pageInfo: o }) {
2947
2947
  pageInfo: o,
2948
2948
  form: s,
2949
2949
  dq: { where: a, find: c, fields: u }
2950
- }), f = ((y = s.$) == null ? void 0 : y.limit) || ((g = s.$) == null ? void 0 : g.first) || ((m = s.$) == null ? void 0 : m.last);
2950
+ }), f = ((y = s.$) == null ? void 0 : y.limit) || ((g = s.$) == null ? void 0 : g.first) || ((_ = s.$) == null ? void 0 : _.last);
2951
2951
  if (f != null) {
2952
2952
  r > 0 && ho && console.warn("WARNING: Limits in child queries are only run client-side. Data returned from the server will not have a limit.");
2953
2953
  const S = Object.entries(l);
@@ -3377,12 +3377,12 @@ function ga({ attrsStore: n, schema: e }, t) {
3377
3377
  var h, b;
3378
3378
  const r = /* @__PURE__ */ new Set(), s = [], i = [];
3379
3379
  function o(y, g) {
3380
- return ne(n, y, g) || s.find((m) => m["forward-identity"][1] === y && m["forward-identity"][2] === g);
3380
+ return ne(n, y, g) || s.find((_) => _["forward-identity"][1] === y && _["forward-identity"][2] === g);
3381
3381
  }
3382
3382
  function a(y, g) {
3383
- return De(n, y, g) || s.find((m) => {
3384
- var S, _;
3385
- return ((S = m["reverse-identity"]) == null ? void 0 : S[1]) === y && ((_ = m["reverse-identity"]) == null ? void 0 : _[2]) === g;
3383
+ return De(n, y, g) || s.find((_) => {
3384
+ var S, m;
3385
+ return ((S = _["reverse-identity"]) == null ? void 0 : S[1]) === y && ((m = _["reverse-identity"]) == null ? void 0 : m[2]) === g;
3386
3386
  });
3387
3387
  }
3388
3388
  function c(y) {
@@ -3397,40 +3397,40 @@ function ga({ attrsStore: n, schema: e }, t) {
3397
3397
  !o(y, g);
3398
3398
  }
3399
3399
  function f(y, g) {
3400
- const m = o(y, g), S = a(y, g);
3401
- u(m), u(S), !m && !S && c(or(e, y, g, ya));
3400
+ const _ = o(y, g), S = a(y, g);
3401
+ u(_), u(S), !_ && !S && c(or(e, y, g, ya));
3402
3402
  }
3403
3403
  for (const y of t)
3404
- for (const { etype: g, lookupPair: m, linkLabel: S } of ba(y)) {
3405
- const _ = m[0];
3404
+ for (const { etype: g, lookupPair: _, linkLabel: S } of ba(y)) {
3405
+ const m = _[0];
3406
3406
  if (S) {
3407
3407
  f(g, S);
3408
3408
  const T = o(g, S), C = a(g, S);
3409
3409
  u(T), u(C);
3410
3410
  const O = ((h = T == null ? void 0 : T["reverse-identity"]) == null ? void 0 : h[1]) || ((b = C == null ? void 0 : C["forward-identity"]) == null ? void 0 : b[1]) || S;
3411
- if (l(O, _))
3412
- f(O, ln(_));
3411
+ if (l(O, m))
3412
+ f(O, ln(m));
3413
3413
  else {
3414
- const M = o(O, _);
3415
- M || c(bt(e, O, _, dn)), u(M);
3414
+ const M = o(O, m);
3415
+ M || c(bt(e, O, m, dn)), u(M);
3416
3416
  }
3417
- } else if (l(g, _))
3418
- f(g, ln(_));
3417
+ } else if (l(g, m))
3418
+ f(g, ln(m));
3419
3419
  else {
3420
- const T = o(g, _);
3421
- T || c(bt(e, g, _, dn)), u(T);
3420
+ const T = o(g, m);
3421
+ T || c(bt(e, g, m, dn)), u(T);
3422
3422
  }
3423
3423
  }
3424
3424
  for (const y of t) {
3425
- const [g, m, S, _] = y;
3425
+ const [g, _, S, m] = y;
3426
3426
  if (fa.has(g)) {
3427
- const T = o(m, "id");
3428
- u(T), T || c(bt(e, m, "id", { "unique?": !0 }));
3429
- for (const C of Object.keys(_)) {
3430
- const O = o(m, C);
3431
- if (u(O), ha.has(g) && (O || c(bt(e, m, C, C === "id" ? { "unique?": !0 } : null))), da.has(g)) {
3432
- const M = a(m, C);
3433
- !O && !M && c(or(e, m, C)), u(M);
3427
+ const T = o(_, "id");
3428
+ u(T), T || c(bt(e, _, "id", { "unique?": !0 }));
3429
+ for (const C of Object.keys(m)) {
3430
+ const O = o(_, C);
3431
+ if (u(O), ha.has(g) && (O || c(bt(e, _, C, C === "id" ? { "unique?": !0 } : null))), da.has(g)) {
3432
+ const M = a(_, C);
3433
+ !O && !M && c(or(e, _, C)), u(M);
3434
3434
  }
3435
3435
  }
3436
3436
  }
@@ -3744,8 +3744,8 @@ async function Aa(n, e, t) {
3744
3744
  };
3745
3745
  a[b] = S;
3746
3746
  }
3747
- const m = t.put(g, b);
3748
- s.add(m);
3747
+ const _ = t.put(g, b);
3748
+ s.add(_);
3749
3749
  }
3750
3750
  const c = { objects: a }, u = t.put(c, We);
3751
3751
  s.add(u);
@@ -3764,50 +3764,49 @@ async function cr(n, e, t) {
3764
3764
  });
3765
3765
  }
3766
3766
  async function Oa(n, e) {
3767
- var f;
3768
3767
  const t = await va(`instant_${n}_5`);
3769
3768
  if (!t)
3770
3769
  return;
3771
- const r = await new Promise((h, b) => {
3772
- const m = t.transaction(["kv"], "readonly").objectStore("kv").openCursor();
3773
- m.onerror = (_) => {
3774
- b(_);
3770
+ const r = await new Promise((l, f) => {
3771
+ const y = t.transaction(["kv"], "readonly").objectStore("kv").openCursor();
3772
+ y.onerror = (_) => {
3773
+ f(_);
3775
3774
  };
3776
- const S = [];
3777
- m.onsuccess = () => {
3778
- const _ = m.result;
3775
+ const g = [];
3776
+ y.onsuccess = () => {
3777
+ const _ = y.result;
3779
3778
  if (_) {
3780
- const T = _.key, C = _.value;
3781
- S.push([T, C]), _.continue();
3779
+ const S = _.key, m = _.value;
3780
+ g.push([S, m]), _.continue();
3782
3781
  } else
3783
- h(S);
3784
- }, m.onerror = (_) => {
3785
- b(_);
3782
+ l(g);
3783
+ }, y.onerror = (_) => {
3784
+ f(_);
3786
3785
  };
3787
- }), s = e.transaction(["kv", "querySubs"], "readwrite"), i = s.objectStore("kv"), o = s.objectStore("querySubs"), a = new Promise((h, b) => {
3788
- s.oncomplete = (y) => h(y), s.onerror = (y) => b(y), s.onabort = (y) => b(y);
3789
- }), c = [], u = { objects: {} };
3790
- for (const [h, b] of r)
3791
- switch (h) {
3786
+ }), s = e.transaction(["kv", "querySubs"], "readwrite"), i = s.objectStore("kv"), o = s.objectStore("querySubs"), a = [], c = { objects: {} };
3787
+ for (const [l, f] of r)
3788
+ switch (l) {
3792
3789
  case "querySubs": {
3793
- const y = Aa(h, b, o);
3794
- c.push(y);
3790
+ const h = Aa(l, f, o);
3791
+ a.push(h);
3795
3792
  break;
3796
3793
  }
3797
3794
  default: {
3798
- const y = cr(h, b, i);
3799
- c.push(y);
3800
- const g = {
3795
+ const h = cr(l, f, i);
3796
+ a.push(h);
3797
+ const b = {
3801
3798
  createdAt: Date.now(),
3802
3799
  updatedAt: Date.now(),
3803
3800
  size: 0
3804
3801
  };
3805
- u.objects[h] = g;
3802
+ c.objects[l] = b;
3806
3803
  break;
3807
3804
  }
3808
3805
  }
3809
- const l = cr(We, u, i);
3810
- c.push(l), (f = s.commit) == null || f.call(s), await Promise.all([Promise.all(c), a]);
3806
+ const u = cr(We, c, i);
3807
+ a.push(u), await Promise.all(a), await new Promise((l, f) => {
3808
+ s.oncomplete = (h) => l(h), s.onerror = (h) => f(h), s.onabort = (h) => f(h);
3809
+ });
3811
3810
  }
3812
3811
  const ur = /* @__PURE__ */ new Map();
3813
3812
  class cs extends ma {
@@ -4172,7 +4171,7 @@ function pr(n) {
4172
4171
  }, e;
4173
4172
  }, {});
4174
4173
  }
4175
- const hs = "v1.0.63-branch-codex-indexeddb-explicit-commit.31419272329.1";
4174
+ const hs = "v1.0.63-branch-codex-indexeddb-explicit-commit.31419410889.1";
4176
4175
  function Fa(n, e, t = console) {
4177
4176
  return {
4178
4177
  info: n ? (...r) => t.info(...r, e()) : () => {
@@ -4945,9 +4944,9 @@ class nc {
4945
4944
  continue;
4946
4945
  i.txId = a["tx-id"];
4947
4946
  const c = [], u = {};
4948
- for (const m of a.changes) {
4949
- const S = u[m.triple[0]] ?? [];
4950
- u[m.triple[0]] = S, S.push(m);
4947
+ for (const _ of a.changes) {
4948
+ const S = u[_.triple[0]] ?? [];
4949
+ u[_.triple[0]] = S, S.push(_);
4951
4950
  }
4952
4951
  const l = s.values ?? {
4953
4952
  entities: [],
@@ -4955,42 +4954,42 @@ class nc {
4955
4954
  }, f = l.entities;
4956
4955
  s.values = l;
4957
4956
  const h = [];
4958
- e: for (const [m, S] of Object.entries(u))
4959
- for (let _ = 0; _ < f.length; _++) {
4960
- const T = f[_];
4961
- if (Mi(T.store, m)) {
4957
+ e: for (const [_, S] of Object.entries(u))
4958
+ for (let m = 0; m < f.length; m++) {
4959
+ const T = f[m];
4960
+ if (Mi(T.store, _)) {
4962
4961
  Sr(T.store, l.attrsStore, S);
4963
- const C = zt(s, T.store, l.attrsStore), O = Xa(T.store, l.attrsStore, S)[m];
4962
+ const C = zt(s, T.store, l.attrsStore), O = Xa(T.store, l.attrsStore, S)[_];
4964
4963
  C ? (h.push({
4965
4964
  oldEntity: T.entity,
4966
4965
  newEntity: C,
4967
4966
  changedFields: O || {}
4968
- }), T.entity = C) : c.push(_), delete u[m];
4967
+ }), T.entity = C) : c.push(m), delete u[_];
4969
4968
  continue e;
4970
4969
  }
4971
4970
  }
4972
4971
  const b = [];
4973
- for (const [m, S] of Object.entries(u)) {
4974
- const _ = this.createStore([]);
4975
- Sr(_, l.attrsStore, S);
4976
- const T = zt(s, _, l.attrsStore);
4972
+ for (const [_, S] of Object.entries(u)) {
4973
+ const m = this.createStore([]);
4974
+ Sr(m, l.attrsStore, S);
4975
+ const T = zt(s, m, l.attrsStore);
4977
4976
  if (!T) {
4978
4977
  this.log.error("No entity found after applying change", {
4979
4978
  sub: s,
4980
4979
  changes: S,
4981
- store: _
4980
+ store: m
4982
4981
  });
4983
4982
  continue;
4984
4983
  }
4985
4984
  f.push({
4986
- store: _,
4985
+ store: m,
4987
4986
  entity: T,
4988
- serverCreatedAt: wr(s, _, l.attrsStore, T.id)
4987
+ serverCreatedAt: wr(s, m, l.attrsStore, T.id)
4989
4988
  }), b.push(T);
4990
4989
  }
4991
4990
  const y = [];
4992
- for (const m of c.sort().reverse())
4993
- y.push(f[m].entity), f.splice(m, 1);
4991
+ for (const _ of c.sort().reverse())
4992
+ y.push(f[_].entity), f.splice(_, 1);
4994
4993
  const g = ec(s, this.getAttrs);
4995
4994
  tc(s, g, f), this.notifyCbs(r, {
4996
4995
  type: Ie.SyncTransaction,
@@ -5039,8 +5038,8 @@ function rc({ WStream: n, opts: e, startStream: t, appendStream: r, registerStre
5039
5038
  const u = J();
5040
5039
  let l = !1, f = !1;
5041
5040
  const h = [], b = [], y = [];
5042
- let g = !1, m = 0, S = 0;
5043
- const _ = [], T = new TextEncoder();
5041
+ let g = !1, _ = 0, S = 0;
5042
+ const m = [], T = new TextEncoder();
5044
5043
  function C() {
5045
5044
  f = !0;
5046
5045
  for (const A of h)
@@ -5083,14 +5082,14 @@ function rc({ WStream: n, opts: e, startStream: t, appendStream: r, registerStre
5083
5082
  g = !0;
5084
5083
  }
5085
5084
  function B(A) {
5086
- let k = m, K = 0, H = 0;
5087
- for (const { byteLen: Y } of _) {
5085
+ let k = _, K = 0, H = 0;
5086
+ for (const { byteLen: Y } of m) {
5088
5087
  const oe = k + Y;
5089
5088
  if (oe > A)
5090
5089
  break;
5091
5090
  k = oe, K++, H += Y;
5092
5091
  }
5093
- K > 0 && (m += H, S -= H, _.splice(0, K));
5092
+ K > 0 && (_ += H, S -= H, m.splice(0, K));
5094
5093
  }
5095
5094
  function z(A, k) {
5096
5095
  a = k, C(), A.error(k), R();
@@ -5104,10 +5103,10 @@ function rc({ WStream: n, opts: e, startStream: t, appendStream: r, registerStre
5104
5103
  switch (A.type) {
5105
5104
  case "ok": {
5106
5105
  const { streamId: k, offset: K } = A;
5107
- o = k, B(K), _.length && r({
5106
+ o = k, B(K), m.length && r({
5108
5107
  streamId: k,
5109
- chunks: _.map((H) => H.chunk),
5110
- offset: m
5108
+ chunks: m.map((H) => H.chunk),
5109
+ offset: _
5111
5110
  }), g = !1;
5112
5111
  break;
5113
5112
  }
@@ -5203,8 +5202,8 @@ function rc({ WStream: n, opts: e, startStream: t, appendStream: r, registerStre
5203
5202
  const K = $(k);
5204
5203
  if (K) {
5205
5204
  const H = T.encode(A).length;
5206
- _.push({ chunk: A, byteLen: H });
5207
- const Y = m + S;
5205
+ m.push({ chunk: A, byteLen: H });
5206
+ const Y = _ + S;
5208
5207
  S += H, g || r({ streamId: K, chunks: [A], offset: Y });
5209
5208
  }
5210
5209
  },
@@ -5212,7 +5211,7 @@ function rc({ WStream: n, opts: e, startStream: t, appendStream: r, registerStre
5212
5211
  o ? r({
5213
5212
  streamId: o,
5214
5213
  chunks: [],
5215
- offset: m + S,
5214
+ offset: _ + S,
5216
5215
  isDone: !0
5217
5216
  }) : R(), C();
5218
5217
  },
@@ -5220,7 +5219,7 @@ function rc({ WStream: n, opts: e, startStream: t, appendStream: r, registerStre
5220
5219
  o ? r({
5221
5220
  streamId: o,
5222
5221
  chunks: [],
5223
- offset: m + S,
5222
+ offset: _ + S,
5224
5223
  isDone: !0,
5225
5224
  abortReason: A
5226
5225
  }) : R(), C();
@@ -5283,7 +5282,7 @@ function ic({ RStream: n, opts: e, startStream: t, cancelStream: r }) {
5283
5282
  P !== -1 && l.splice(P, 1);
5284
5283
  };
5285
5284
  }
5286
- function m(R) {
5285
+ function _(R) {
5287
5286
  return f.push(R), h && R(h), () => {
5288
5287
  const P = f.indexOf(R);
5289
5288
  P !== -1 && f.splice(P, 1);
@@ -5292,7 +5291,7 @@ function ic({ RStream: n, opts: e, startStream: t, cancelStream: r }) {
5292
5291
  function S(R, P) {
5293
5292
  b = P, R.error(P), y(P);
5294
5293
  }
5295
- let _ = 0;
5294
+ let m = 0;
5296
5295
  async function T(R, P) {
5297
5296
  c = J();
5298
5297
  const G = { ...R || {}, eventId: c };
@@ -5321,7 +5320,7 @@ function ic({ RStream: n, opts: e, startStream: t, cancelStream: r }) {
5321
5320
  for (let q = 0; q < L.files.length; q++) {
5322
5321
  const E = L.files[q + 1], j = await ee;
5323
5322
  if (E && (ee = fetch(E.url, { signal: z.signal })), !j.ok) {
5324
- if (_++, _ > 10) {
5323
+ if (m++, m > 10) {
5325
5324
  S(P, new re("Unable to process stream."));
5326
5325
  return;
5327
5326
  }
@@ -5363,7 +5362,7 @@ function ic({ RStream: n, opts: e, startStream: t, cancelStream: r }) {
5363
5362
  }
5364
5363
  }
5365
5364
  }
5366
- if (_ = 0, L.content) {
5365
+ if (m = 0, L.content) {
5367
5366
  let z = L.content, ee = a.encode(L.content);
5368
5367
  if (B > 0) {
5369
5368
  const q = ee.subarray(B);
@@ -5405,7 +5404,7 @@ function ic({ RStream: n, opts: e, startStream: t, cancelStream: r }) {
5405
5404
  }, ee = (q) => {
5406
5405
  G(q || new re("Stream is closed.")), B();
5407
5406
  };
5408
- L.push(m(z)), L.push(g(ee));
5407
+ L.push(_(z)), L.push(g(ee));
5409
5408
  });
5410
5409
  }
5411
5410
  }
@@ -6058,8 +6057,8 @@ class wc {
6058
6057
  case "init-ok": {
6059
6058
  this._setStatus(Se.AUTHENTICATED), this._reconnectTimeoutMs = 0, this._setAppStatus(((s = t["app-status"]) == null ? void 0 : s.status) ?? "active"), this._setAttrs(t.attrs), this._flushPendingMessages(), this._sessionId = t["session-id"];
6060
6059
  for (const y of Object.keys(this._rooms)) {
6061
- const g = (o = (i = this._presence[y]) == null ? void 0 : i.result) == null ? void 0 : o.user, m = (a = this._rooms[y]) == null ? void 0 : a.roomType;
6062
- this._tryJoinRoom(m, y, g);
6060
+ const g = (o = (i = this._presence[y]) == null ? void 0 : i.result) == null ? void 0 : o.user, _ = (a = this._rooms[y]) == null ? void 0 : a.roomType;
6061
+ this._tryJoinRoom(_, y, g);
6063
6062
  }
6064
6063
  break;
6065
6064
  }
@@ -6068,23 +6067,23 @@ class wc {
6068
6067
  break;
6069
6068
  }
6070
6069
  case "add-query-ok": {
6071
- const { q: y, result: g } = t, m = ie(y);
6072
- if (!this._hasQueryListeners() && !this.querySubs.currentValue[m])
6070
+ const { q: y, result: g } = t, _ = ie(y);
6071
+ if (!this._hasQueryListeners() && !this.querySubs.currentValue[_])
6073
6072
  break;
6074
- const S = (u = (c = g == null ? void 0 : g[0]) == null ? void 0 : c.data) == null ? void 0 : u["page-info"], _ = (f = (l = g == null ? void 0 : g[0]) == null ? void 0 : l.data) == null ? void 0 : f.aggregate, T = hr(g), C = this.ensureAttrs(), O = tt(C, T, r, this.config.useDateObjects);
6073
+ const S = (u = (c = g == null ? void 0 : g[0]) == null ? void 0 : c.data) == null ? void 0 : u["page-info"], m = (f = (l = g == null ? void 0 : g[0]) == null ? void 0 : l.data) == null ? void 0 : f.aggregate, T = hr(g), C = this.ensureAttrs(), O = tt(C, T, r, this.config.useDateObjects);
6075
6074
  this.querySubs.updateInPlace((M) => {
6076
- if (!M[m]) {
6077
- this._log.info("Missing value in querySubs", { hash: m, q: y });
6075
+ if (!M[_]) {
6076
+ this._log.info("Missing value in querySubs", { hash: _, q: y });
6078
6077
  return;
6079
6078
  }
6080
- M[m].result = {
6079
+ M[_].result = {
6081
6080
  store: O,
6082
6081
  attrsStore: C,
6083
6082
  pageInfo: S,
6084
- aggregate: _,
6083
+ aggregate: m,
6085
6084
  processedTxId: t["processed-tx-id"]
6086
6085
  };
6087
- }), this._cleanupPendingMutationsQueries(), this.notifyOne(m), this.notifyOneQueryOnce(m), this._cleanupPendingMutationsTimeout();
6086
+ }), this._cleanupPendingMutationsQueries(), this.notifyOne(_), this.notifyOneQueryOnce(_), this._cleanupPendingMutationsTimeout();
6088
6087
  break;
6089
6088
  }
6090
6089
  case "start-sync-ok": {
@@ -6120,15 +6119,15 @@ class wc {
6120
6119
  break;
6121
6120
  }
6122
6121
  case "refresh-ok": {
6123
- const { computations: y, attrs: g } = t, m = t["processed-tx-id"];
6122
+ const { computations: y, attrs: g } = t, _ = t["processed-tx-id"];
6124
6123
  g && this._setAttrs(g), this._cleanupPendingMutationsTimeout();
6125
- const S = this._rewriteMutations(this.ensureAttrs(), this._pendingMutations(), m);
6124
+ const S = this._rewriteMutations(this.ensureAttrs(), this._pendingMutations(), _);
6126
6125
  S !== this._pendingMutations() && this.kv.updateInPlace((C) => {
6127
6126
  C.pendingMutations = S;
6128
6127
  });
6129
- const _ = Bt(S.entries()), T = y.map((C) => {
6128
+ const m = Bt(S.entries()), T = y.map((C) => {
6130
6129
  var E, $, j, x;
6131
- const O = C["instaql-query"], M = C["instaql-result"], R = ie(O), P = hr(M), G = this.ensureAttrs(), L = tt(G, P, r, this.config.useDateObjects), { store: B, attrsStore: z } = this._applyOptimisticUpdates(L, G, _, m), ee = ($ = (E = M == null ? void 0 : M[0]) == null ? void 0 : E.data) == null ? void 0 : $["page-info"], q = (x = (j = M == null ? void 0 : M[0]) == null ? void 0 : j.data) == null ? void 0 : x.aggregate;
6130
+ const O = C["instaql-query"], M = C["instaql-result"], R = ie(O), P = hr(M), G = this.ensureAttrs(), L = tt(G, P, r, this.config.useDateObjects), { store: B, attrsStore: z } = this._applyOptimisticUpdates(L, G, m, _), ee = ($ = (E = M == null ? void 0 : M[0]) == null ? void 0 : E.data) == null ? void 0 : $["page-info"], q = (x = (j = M == null ? void 0 : M[0]) == null ? void 0 : j.data) == null ? void 0 : x.aggregate;
6132
6131
  return {
6133
6132
  q: O,
6134
6133
  hash: R,
@@ -6149,7 +6148,7 @@ class wc {
6149
6148
  attrsStore: R,
6150
6149
  pageInfo: P,
6151
6150
  aggregate: G,
6152
- processedTxId: m
6151
+ processedTxId: _
6153
6152
  };
6154
6153
  });
6155
6154
  }), this._cleanupPendingMutationsQueries(), T.forEach(({ hash: C }) => {
@@ -6170,15 +6169,15 @@ class wc {
6170
6169
  confirmed: Date.now()
6171
6170
  });
6172
6171
  });
6173
- const _ = [];
6172
+ const m = [];
6174
6173
  for (const T of S["tx-steps"])
6175
6174
  if (T[0] === "add-attr") {
6176
6175
  const C = T[1];
6177
- _.push(C);
6176
+ m.push(C);
6178
6177
  }
6179
- if (_.length) {
6178
+ if (m.length) {
6180
6179
  const T = Object.values(this.ensureAttrs().attrs);
6181
- this._setAttrs([...T, ..._]);
6180
+ this._setAttrs([...T, ...m]);
6182
6181
  }
6183
6182
  this._finishTransaction("synced", y), this._cleanupPendingMutationsTimeout();
6184
6183
  break;
@@ -6219,7 +6218,7 @@ class wc {
6219
6218
  message: "This app is currently disabled.",
6220
6219
  hint: { status: "disabled" }
6221
6220
  };
6222
- Object.keys(this.queryCbs).forEach((m) => this.notifyQueryError(m, g));
6221
+ Object.keys(this.queryCbs).forEach((_) => this.notifyQueryError(_, g));
6223
6222
  }
6224
6223
  y === "disabled" && t.status !== "disabled" && this._startSocket();
6225
6224
  break;
@@ -6277,16 +6276,16 @@ class wc {
6277
6276
  message: e.message || "Uh-oh, something went wrong. Ping Joe & Stopa."
6278
6277
  };
6279
6278
  if (e.hint && (s.hint = e.hint), e["trace-id"] || (a = e["original-event"]) != null && a["trace-id"]) {
6280
- const m = [e["trace-id"], (c = e["original-event"]) == null ? void 0 : c["trace-id"]].filter(Boolean).join(",");
6281
- s.traceId = m;
6279
+ const _ = [e["trace-id"], (c = e["original-event"]) == null ? void 0 : c["trace-id"]].filter(Boolean).join(",");
6280
+ s.traceId = _;
6282
6281
  }
6283
6282
  if (r) {
6284
6283
  this._handleMutationError("error", t, s);
6285
6284
  return;
6286
6285
  }
6287
6286
  if ((u = e["original-event"]) != null && u.hasOwnProperty("q") && ((l = e["original-event"]) == null ? void 0 : l.op) === "add-query") {
6288
- const g = (f = e["original-event"]) == null ? void 0 : f.q, m = ie(g);
6289
- this.notifyQueryError(ie(g), s), this.notifyQueryOnceError(g, m, t, s);
6287
+ const g = (f = e["original-event"]) == null ? void 0 : f.q, _ = ie(g);
6288
+ this.notifyQueryError(ie(g), s), this.notifyQueryOnceError(g, _, t, s);
6290
6289
  return;
6291
6290
  }
6292
6291
  if (((h = e["original-event"]) == null ? void 0 : h.op) === "init") {
@@ -6432,9 +6431,9 @@ class wc {
6432
6431
  for (const b of l) {
6433
6432
  const [y] = b;
6434
6433
  if (y === "add-attr") {
6435
- const [m, S] = b, _ = s(S);
6436
- if (_ && S.id !== _.id) {
6437
- o.attrIdMap[S.id] = _.id, a = !0;
6434
+ const [_, S] = b, m = s(S);
6435
+ if (m && S.id !== m.id) {
6436
+ o.attrIdMap[S.id] = m.id, a = !0;
6438
6437
  continue;
6439
6438
  }
6440
6439
  if (S["value-type"] === "ref") {
@@ -6502,10 +6501,10 @@ class wc {
6502
6501
  if (l && s === l.querySubVersion && o === l.pendingMutationsVersion)
6503
6502
  return l;
6504
6503
  let f = u.store, h = u.attrsStore;
6505
- const { pageInfo: b, aggregate: y, processedTxId: g } = u, m = this._rewriteMutationsSorted(h, a);
6504
+ const { pageInfo: b, aggregate: y, processedTxId: g } = u, _ = this._rewriteMutationsSorted(h, a);
6506
6505
  if (t) {
6507
- const _ = this._applyOptimisticUpdates(f, h, m, g);
6508
- f = _.store, h = _.attrsStore;
6506
+ const m = this._applyOptimisticUpdates(f, h, _, g);
6507
+ f = m.store, h = m.attrsStore;
6509
6508
  }
6510
6509
  return { data: is({ store: f, attrsStore: h, pageInfo: b, aggregate: y }, c), querySubVersion: s, pendingMutationsVersion: o };
6511
6510
  }
@@ -7368,7 +7367,7 @@ const Cc = (n) => JSON.stringify(n), rt = (n, e = !1) => JSON.stringify([n, e]),
7368
7367
  var B, z, ee, q;
7369
7368
  const { entityName: s, entityQuery: i } = Ss(e), o = ((B = i.$) == null ? void 0 : B.limit) || 10, a = s, c = ws((z = i.$) == null ? void 0 : z.order), u = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Map();
7370
7369
  let h = !1, b = !0, y = null, g = null;
7371
- const m = (E) => {
7370
+ const _ = (E) => {
7372
7371
  t({ error: E, data: void 0, canLoadNextPage: !1 });
7373
7372
  }, S = () => {
7374
7373
  if (!b)
@@ -7380,7 +7379,7 @@ const Cc = (n) => JSON.stringify(n), rt = (n, e = !1) => JSON.stringify([n, e]),
7380
7379
  chunks: E,
7381
7380
  canLoadNextPage: Pc(u)
7382
7381
  });
7383
- }, _ = (E, $) => {
7382
+ }, m = (E, $) => {
7384
7383
  u.set(rt(E, $.afterInclusive), $), S();
7385
7384
  }, T = (E, $) => {
7386
7385
  l.set(rt(E), $), P(), S();
@@ -7402,7 +7401,7 @@ const Cc = (n) => JSON.stringify(n), rt = (n, e = !1) => JSON.stringify([n, e]),
7402
7401
  }
7403
7402
  }, (K) => {
7404
7403
  if (K.error)
7405
- return m(K.error);
7404
+ return _(K.error);
7406
7405
  const H = K.data[a], Y = K.pageInfo[a];
7407
7406
  Ze(H && Y, "Expected query subscription to contain rows and pageInfo"), T(j, {
7408
7407
  data: H,
@@ -7427,7 +7426,7 @@ const Cc = (n) => JSON.stringify(n), rt = (n, e = !1) => JSON.stringify([n, e]),
7427
7426
  }
7428
7427
  }, (N) => {
7429
7428
  if (N.error)
7430
- return m(N.error);
7429
+ return _(N.error);
7431
7430
  const A = N.data[a], k = N.pageInfo[a];
7432
7431
  Ze(A && k, "Expected rows and pageInfo"), T(E, {
7433
7432
  data: A,
@@ -7453,9 +7452,9 @@ const Cc = (n) => JSON.stringify(n), rt = (n, e = !1) => JSON.stringify([n, e]),
7453
7452
  }
7454
7453
  }, (A) => {
7455
7454
  if (A.error)
7456
- return m(A.error);
7455
+ return _(A.error);
7457
7456
  const k = A.data[a], K = A.pageInfo[a];
7458
- Ze(k && K, "Page info and rows"), _(E, {
7457
+ Ze(k && K, "Page info and rows"), m(E, {
7459
7458
  data: k,
7460
7459
  status: "bootstrapping",
7461
7460
  hasMore: K.hasNextPage,
@@ -7486,9 +7485,9 @@ const Cc = (n) => JSON.stringify(n), rt = (n, e = !1) => JSON.stringify([n, e]),
7486
7485
  }
7487
7486
  }, (H) => {
7488
7487
  if (H.error)
7489
- return m(H.error);
7488
+ return _(H.error);
7490
7489
  const Y = H.data[a], oe = H.pageInfo[a];
7491
- Ze(Y && oe, "Expected rows and pageInfo"), _(E, {
7490
+ Ze(Y && oe, "Expected rows and pageInfo"), m(E, {
7492
7491
  data: Y,
7493
7492
  status: "frozen",
7494
7493
  hasMore: oe.hasNextPage,
@@ -7531,10 +7530,10 @@ const Cc = (n) => JSON.stringify(n), rt = (n, e = !1) => JSON.stringify([n, e]),
7531
7530
  if (h)
7532
7531
  return;
7533
7532
  if (E.error)
7534
- return m(E.error);
7533
+ return _(E.error);
7535
7534
  const $ = E.pageInfo[a], j = (N = E == null ? void 0 : E.data) == null ? void 0 : N[a];
7536
7535
  if (Ze(j && $, "Expected rows and pageInfo"), j.length < o) {
7537
- _(Gt, {
7536
+ m(Gt, {
7538
7537
  data: j,
7539
7538
  status: "pre-bootstrap"
7540
7539
  });
@@ -7542,7 +7541,7 @@ const Cc = (n) => JSON.stringify(n), rt = (n, e = !1) => JSON.stringify([n, e]),
7542
7541
  }
7543
7542
  const x = $.startCursor;
7544
7543
  if (!x) {
7545
- _(Gt, {
7544
+ m(Gt, {
7546
7545
  data: j,
7547
7546
  status: "pre-bootstrap"
7548
7547
  });