@dxos/shell 0.4.10-main.f635fb0 → 0.4.10-main.f937af6

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.
@@ -4,7 +4,7 @@ import * as $7SXl2$reactdom from "react-dom";
4
4
  import $7SXl2$reactdom__default, { flushSync } from "react-dom";
5
5
  import { CaretDown, CaretRight, Minus, Check, Database, Power, Plus, Copy, ImageSquare, Palette, Compass, Desktop, Robot, DeviceMobile, Devices, DotsThree, Intersect, X, Placeholder, Warning, PlugsConnected, Plugs, CopySimple, QrCode, Textbox, UserPlus, UsersThree, Planet } from "@phosphor-icons/react";
6
6
  import { SpaceMember as SpaceMember$1, useMembers, useSpaceInvitations, useSpace } from "@dxos/react-client/echo";
7
- import { useClient as useClient$1, useAgentHostingProviderClient, AlreadyJoinedError, useMulticastObservable, useConfig, ShellLayout as ShellLayout$1, ShellDisplay as ShellDisplay$1, ClientServicesProxy as ClientServicesProxy$1, Client, ClientContext as ClientContext$1, SystemStatus as SystemStatus$1, Config as Config$1 } from "@dxos/react-client";
7
+ import { useClient as useClient$1, useAgentHostingProviderClient, AlreadyJoinedError, useMulticastObservable as useMulticastObservable$1, useConfig, ShellLayout as ShellLayout$1, ShellDisplay as ShellDisplay$1, ClientServicesProxy as ClientServicesProxy$1, Client, ClientContext as ClientContext$1, SystemStatus as SystemStatus$1, Config as Config$1 } from "@dxos/react-client";
8
8
  import { DeviceKind as DeviceKind$1, Device as Device$1, DeviceType, useHaloInvitations, useDevices, useIdentity } from "@dxos/react-client/halo";
9
9
  import { InvitationEncoder, clientServiceBundle, DEFAULT_VAULT_URL, DEFAULT_INTERNAL_CHANNEL, PROXY_CONNECTION_TIMEOUT, DEFAULT_SHELL_CHANNEL, getProfilePath, DX_RUNTIME, shellServiceBundle, appServiceBundle, DEFAULT_CLIENT_CHANNEL } from "@dxos/client-protocol";
10
10
  import "@dxos/client";
@@ -1683,8 +1683,8 @@ var checkedLoadedFor = {}, Translator = function($) {
1683
1683
  Ue.push(He[Ie]);
1684
1684
  else
1685
1685
  this.options.saveMissingTo === "all" ? Ue = this.languageUtils.toResolveHierarchy(K.lng || this.language) : Ue.push(K.lng || this.language);
1686
- var Re = function(be, ye, Me) {
1687
- var Ye = at && Me !== ce ? Me : qe;
1686
+ var Re = function(be, ye, Le) {
1687
+ var Ye = at && Le !== ce ? Le : qe;
1688
1688
  J.options.missingKeyHandler ? J.options.missingKeyHandler(be, re, ye, Ye, nt, K) : J.backendConnector && J.backendConnector.saveMissing && J.backendConnector.saveMissing(be, re, ye, Ye, nt, K), J.emit("missingKey", be, re, ye, ce);
1689
1689
  };
1690
1690
  this.options.saveMissing && (this.options.saveMissingPlurals && lt ? Ue.forEach(function(Te) {
@@ -6241,7 +6241,7 @@ const $cf1ac5d9fe0e8206$var$POPPER_NAME$1 = "Popper", [$cf1ac5d9fe0e8206$var$cre
6241
6241
  mt,
6242
6242
  Re
6243
6243
  ]);
6244
- const Te = (G = Ue.arrow) === null || G === void 0 ? void 0 : G.x, be = (K = Ue.arrow) === null || K === void 0 ? void 0 : K.y, ye = ((Y = Ue.arrow) === null || Y === void 0 ? void 0 : Y.centerOffset) !== 0, [Me, Ye] = useState();
6244
+ const Te = (G = Ue.arrow) === null || G === void 0 ? void 0 : G.x, be = (K = Ue.arrow) === null || K === void 0 ? void 0 : K.y, ye = ((Y = Ue.arrow) === null || Y === void 0 ? void 0 : Y.centerOffset) !== 0, [Le, Ye] = useState();
6245
6245
  return $9f79659886946c16$export$e5c5a5f917a5871c(() => {
6246
6246
  $e && Ye(window.getComputedStyle($e).zIndex);
6247
6247
  }, [
@@ -6254,7 +6254,7 @@ const $cf1ac5d9fe0e8206$var$POPPER_NAME$1 = "Popper", [$cf1ac5d9fe0e8206$var$cre
6254
6254
  transform: mt ? qe.transform : "translate(0, -200%)",
6255
6255
  // keep off the page when measuring
6256
6256
  minWidth: "max-content",
6257
- zIndex: Me,
6257
+ zIndex: Le,
6258
6258
  "--radix-popper-transform-origin": [
6259
6259
  (J = Ue.transformOrigin) === null || J === void 0 ? void 0 : J.x,
6260
6260
  (Z = Ue.transformOrigin) === null || Z === void 0 ? void 0 : Z.y
@@ -7658,8 +7658,8 @@ function requireReactJsxRuntime_development() {
7658
7658
  {
7659
7659
  var Et = le.ReactDebugCurrentFrame, Rt = Et.getStackAddendum();
7660
7660
  Rt !== "" && (ot += "%s", dt = dt.concat([Rt]));
7661
- var Bt = dt.map(function(Mt) {
7662
- return String(Mt);
7661
+ var Bt = dt.map(function(Lt) {
7662
+ return String(Lt);
7663
7663
  });
7664
7664
  Bt.unshift("Warning: " + ot), Function.prototype.apply.call(console[Ne], console, Bt);
7665
7665
  }
@@ -7718,9 +7718,9 @@ function requireReactJsxRuntime_development() {
7718
7718
  var Et = Ne.displayName || null;
7719
7719
  return Et !== null ? Et : Be(Ne.type) || "Memo";
7720
7720
  case ne: {
7721
- var Rt = Ne, Bt = Rt._payload, Mt = Rt._init;
7721
+ var Rt = Ne, Bt = Rt._payload, Lt = Rt._init;
7722
7722
  try {
7723
- return Be(Mt(Bt));
7723
+ return Be(Lt(Bt));
7724
7724
  } catch {
7725
7725
  return null;
7726
7726
  }
@@ -7825,27 +7825,27 @@ function requireReactJsxRuntime_development() {
7825
7825
  Bt = Ue.current, Ue.current = null, nt();
7826
7826
  try {
7827
7827
  if (ot) {
7828
- var Mt = function() {
7828
+ var Lt = function() {
7829
7829
  throw Error();
7830
7830
  };
7831
- if (Object.defineProperty(Mt.prototype, "props", {
7831
+ if (Object.defineProperty(Lt.prototype, "props", {
7832
7832
  set: function() {
7833
7833
  throw Error();
7834
7834
  }
7835
7835
  }), typeof Reflect == "object" && Reflect.construct) {
7836
7836
  try {
7837
- Reflect.construct(Mt, []);
7837
+ Reflect.construct(Lt, []);
7838
7838
  } catch (dn) {
7839
7839
  Et = dn;
7840
7840
  }
7841
- Reflect.construct(Ne, [], Mt);
7841
+ Reflect.construct(Ne, [], Lt);
7842
7842
  } else {
7843
7843
  try {
7844
- Mt.call();
7844
+ Lt.call();
7845
7845
  } catch (dn) {
7846
7846
  Et = dn;
7847
7847
  }
7848
- Ne.call(Mt.prototype);
7848
+ Ne.call(Lt.prototype);
7849
7849
  }
7850
7850
  } else {
7851
7851
  try {
@@ -7880,7 +7880,7 @@ function requireReactJsxRuntime_development() {
7880
7880
  var xn = Ne ? Ne.displayName || Ne.name : "", Yn = xn ? Ie(xn) : "";
7881
7881
  return typeof Ne == "function" && Te.set(Ne, Yn), Yn;
7882
7882
  }
7883
- function Me(Ne, ot, dt) {
7883
+ function Le(Ne, ot, dt) {
7884
7884
  return ye(Ne, !1);
7885
7885
  }
7886
7886
  function Ye(Ne) {
@@ -7903,7 +7903,7 @@ function requireReactJsxRuntime_development() {
7903
7903
  if (typeof Ne == "object")
7904
7904
  switch (Ne.$$typeof) {
7905
7905
  case Z:
7906
- return Me(Ne.render);
7906
+ return Le(Ne.render);
7907
7907
  case te:
7908
7908
  return ct(Ne.type, ot, dt);
7909
7909
  case ne: {
@@ -7927,19 +7927,19 @@ function requireReactJsxRuntime_development() {
7927
7927
  function Ut(Ne, ot, dt, Et, Rt) {
7928
7928
  {
7929
7929
  var Bt = Function.call.bind(ut);
7930
- for (var Mt in Ne)
7931
- if (Bt(Ne, Mt)) {
7930
+ for (var Lt in Ne)
7931
+ if (Bt(Ne, Lt)) {
7932
7932
  var Ot = void 0;
7933
7933
  try {
7934
- if (typeof Ne[Mt] != "function") {
7935
- var Zt = Error((Et || "React class") + ": " + dt + " type `" + Mt + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof Ne[Mt] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
7934
+ if (typeof Ne[Lt] != "function") {
7935
+ var Zt = Error((Et || "React class") + ": " + dt + " type `" + Lt + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof Ne[Lt] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
7936
7936
  throw Zt.name = "Invariant Violation", Zt;
7937
7937
  }
7938
- Ot = Ne[Mt](ot, Mt, Et, dt, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
7938
+ Ot = Ne[Lt](ot, Lt, Et, dt, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
7939
7939
  } catch (Qt) {
7940
7940
  Ot = Qt;
7941
7941
  }
7942
- Ot && !(Ot instanceof Error) && (it(Rt), ce("%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).", Et || "React class", dt, Mt, typeof Ot), it(null)), Ot instanceof Error && !(Ot.message in wt) && (wt[Ot.message] = !0, it(Rt), ce("Failed %s type: %s", dt, Ot.message), it(null));
7942
+ Ot && !(Ot instanceof Error) && (it(Rt), ce("%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).", Et || "React class", dt, Lt, typeof Ot), it(null)), Ot instanceof Error && !(Ot.message in wt) && (wt[Ot.message] = !0, it(Rt), ce("Failed %s type: %s", dt, Ot.message), it(null));
7943
7943
  }
7944
7944
  }
7945
7945
  }
@@ -8018,7 +8018,7 @@ function requireReactJsxRuntime_development() {
8018
8018
  });
8019
8019
  }
8020
8020
  }
8021
- var Pt = function(Ne, ot, dt, Et, Rt, Bt, Mt) {
8021
+ var Pt = function(Ne, ot, dt, Et, Rt, Bt, Lt) {
8022
8022
  var Ot = {
8023
8023
  // This tag allows us to uniquely identify this as a React Element
8024
8024
  $$typeof: I,
@@ -8026,7 +8026,7 @@ function requireReactJsxRuntime_development() {
8026
8026
  type: Ne,
8027
8027
  key: ot,
8028
8028
  ref: dt,
8029
- props: Mt,
8029
+ props: Lt,
8030
8030
  // Record the component responsible for creating this element.
8031
8031
  _owner: Bt
8032
8032
  };
@@ -8049,20 +8049,20 @@ function requireReactJsxRuntime_development() {
8049
8049
  };
8050
8050
  function At(Ne, ot, dt, Et, Rt) {
8051
8051
  {
8052
- var Bt, Mt = {}, Ot = null, Zt = null;
8052
+ var Bt, Lt = {}, Ot = null, Zt = null;
8053
8053
  dt !== void 0 && (zt(dt), Ot = "" + dt), De(ot) && (zt(ot.key), Ot = "" + ot.key), Se(ot) && (Zt = ot.ref, _t(ot, Rt));
8054
8054
  for (Bt in ot)
8055
- ut.call(ot, Bt) && !ie.hasOwnProperty(Bt) && (Mt[Bt] = ot[Bt]);
8055
+ ut.call(ot, Bt) && !ie.hasOwnProperty(Bt) && (Lt[Bt] = ot[Bt]);
8056
8056
  if (Ne && Ne.defaultProps) {
8057
8057
  var Qt = Ne.defaultProps;
8058
8058
  for (Bt in Qt)
8059
- Mt[Bt] === void 0 && (Mt[Bt] = Qt[Bt]);
8059
+ Lt[Bt] === void 0 && (Lt[Bt] = Qt[Bt]);
8060
8060
  }
8061
8061
  if (Ot || Zt) {
8062
8062
  var Yt = typeof Ne == "function" ? Ne.displayName || Ne.name || "Unknown" : Ne;
8063
- Ot && Dt(Mt, Yt), Zt && Tt(Mt, Yt);
8063
+ Ot && Dt(Lt, Yt), Zt && Tt(Lt, Yt);
8064
8064
  }
8065
- return Pt(Ne, Ot, Zt, Rt, Et, de.current, Mt);
8065
+ return Pt(Ne, Ot, Zt, Rt, Et, de.current, Lt);
8066
8066
  }
8067
8067
  }
8068
8068
  var Sn = le.ReactCurrentOwner, bn = le.ReactDebugCurrentFrame;
@@ -8141,8 +8141,8 @@ Check the top-level render call using <` + dt + ">.");
8141
8141
  else if (Ne) {
8142
8142
  var Rt = fe(Ne);
8143
8143
  if (typeof Rt == "function" && Rt !== Ne.entries)
8144
- for (var Bt = Rt.call(Ne), Mt; !(Mt = Bt.next()).done; )
8145
- Tn(Mt.value) && Nn(Mt.value, ot);
8144
+ for (var Bt = Rt.call(Ne), Lt; !(Lt = Bt.next()).done; )
8145
+ Tn(Lt.value) && Nn(Lt.value, ot);
8146
8146
  }
8147
8147
  }
8148
8148
  }
@@ -8185,8 +8185,8 @@ Check the top-level render call using <` + dt + ">.");
8185
8185
  }
8186
8186
  function _n(Ne, ot, dt, Et, Rt, Bt) {
8187
8187
  {
8188
- var Mt = Ce(Ne);
8189
- if (!Mt) {
8188
+ var Lt = Ce(Ne);
8189
+ if (!Lt) {
8190
8190
  var Ot = "";
8191
8191
  (Ne === void 0 || typeof Ne == "object" && Ne !== null && Object.keys(Ne).length === 0) && (Ot += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
8192
8192
  var Zt = Pn(Rt);
@@ -8197,7 +8197,7 @@ Check the top-level render call using <` + dt + ">.");
8197
8197
  var Yt = At(Ne, ot, dt, Rt, Bt);
8198
8198
  if (Yt == null)
8199
8199
  return Yt;
8200
- if (Mt) {
8200
+ if (Lt) {
8201
8201
  var sn = ot.children;
8202
8202
  if (sn !== void 0)
8203
8203
  if (Et)
@@ -10836,10 +10836,10 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
10836
10836
  return ae(it, Q);
10837
10837
  }
10838
10838
  $.isNumberObject = ye;
10839
- function Me(it) {
10839
+ function Le(it) {
10840
10840
  return ae(it, ee);
10841
10841
  }
10842
- $.isStringObject = Me;
10842
+ $.isStringObject = Le;
10843
10843
  function Ye(it) {
10844
10844
  return ae(it, te);
10845
10845
  }
@@ -10853,7 +10853,7 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
10853
10853
  }
10854
10854
  $.isSymbolObject = ut;
10855
10855
  function wt(it) {
10856
- return ye(it) || Me(it) || Ye(it) || ct(it) || ut(it);
10856
+ return ye(it) || Le(it) || Ye(it) || ct(it) || ut(it);
10857
10857
  }
10858
10858
  $.isBoxedPrimitive = wt;
10859
10859
  function St(it) {
@@ -11035,8 +11035,8 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
11035
11035
  }
11036
11036
  var Te = "", be = !1, ye = ["{", "}"];
11037
11037
  if (fe(qe) && (be = !0, ye = ["[", "]"]), xe(qe)) {
11038
- var Me = qe.name ? ": " + qe.name : "";
11039
- Te = " [Function" + Me + "]";
11038
+ var Le = qe.name ? ": " + qe.name : "";
11039
+ Te = " [Function" + Le + "]";
11040
11040
  }
11041
11041
  if (_e(qe) && (Te = " " + RegExp.prototype.toString.call(qe)), Ce(qe) && (Te = " " + Date.prototype.toUTCString.call(qe)), Ee(qe) && (Te = " " + ne(qe)), He.length === 0 && (!be || qe.length == 0))
11042
11042
  return ye[0] + Te + ye[1];
@@ -11998,13 +11998,13 @@ var require_base64_js = __commonJS({
11998
11998
  }, J.prototype.readUint32BE = J.prototype.readUInt32BE = function(ie, oe) {
11999
11999
  return ie = ie >>> 0, oe || tt(ie, 4, this.length), this[ie] * 16777216 + (this[ie + 1] << 16 | this[ie + 2] << 8 | this[ie + 3]);
12000
12000
  }, J.prototype.readBigUInt64LE = Ct(function(ie) {
12001
- ie = ie >>> 0, Me(ie, "offset");
12001
+ ie = ie >>> 0, Le(ie, "offset");
12002
12002
  const oe = this[ie], pe = this[ie + 7];
12003
12003
  (oe === void 0 || pe === void 0) && Ye(ie, this.length - 8);
12004
12004
  const ke = oe + this[++ie] * 2 ** 8 + this[++ie] * 2 ** 16 + this[++ie] * 2 ** 24, Se = this[++ie] + this[++ie] * 2 ** 8 + this[++ie] * 2 ** 16 + pe * 2 ** 24;
12005
12005
  return BigInt(ke) + (BigInt(Se) << BigInt(32));
12006
12006
  }), J.prototype.readBigUInt64BE = Ct(function(ie) {
12007
- ie = ie >>> 0, Me(ie, "offset");
12007
+ ie = ie >>> 0, Le(ie, "offset");
12008
12008
  const oe = this[ie], pe = this[ie + 7];
12009
12009
  (oe === void 0 || pe === void 0) && Ye(ie, this.length - 8);
12010
12010
  const ke = oe * 2 ** 24 + this[++ie] * 2 ** 16 + this[++ie] * 2 ** 8 + this[++ie], Se = this[++ie] * 2 ** 24 + this[++ie] * 2 ** 16 + this[++ie] * 2 ** 8 + pe;
@@ -12036,13 +12036,13 @@ var require_base64_js = __commonJS({
12036
12036
  }, J.prototype.readInt32BE = function(ie, oe) {
12037
12037
  return ie = ie >>> 0, oe || tt(ie, 4, this.length), this[ie] << 24 | this[ie + 1] << 16 | this[ie + 2] << 8 | this[ie + 3];
12038
12038
  }, J.prototype.readBigInt64LE = Ct(function(ie) {
12039
- ie = ie >>> 0, Me(ie, "offset");
12039
+ ie = ie >>> 0, Le(ie, "offset");
12040
12040
  const oe = this[ie], pe = this[ie + 7];
12041
12041
  (oe === void 0 || pe === void 0) && Ye(ie, this.length - 8);
12042
12042
  const ke = this[ie + 4] + this[ie + 5] * 2 ** 8 + this[ie + 6] * 2 ** 16 + (pe << 24);
12043
12043
  return (BigInt(ke) << BigInt(32)) + BigInt(oe + this[++ie] * 2 ** 8 + this[++ie] * 2 ** 16 + this[++ie] * 2 ** 24);
12044
12044
  }), J.prototype.readBigInt64BE = Ct(function(ie) {
12045
- ie = ie >>> 0, Me(ie, "offset");
12045
+ ie = ie >>> 0, Le(ie, "offset");
12046
12046
  const oe = this[ie], pe = this[ie + 7];
12047
12047
  (oe === void 0 || pe === void 0) && Ye(ie, this.length - 8);
12048
12048
  const ke = (oe << 24) + // Overflow
@@ -12268,7 +12268,7 @@ var require_base64_js = __commonJS({
12268
12268
  return `${de.slice(0, oe)}${ie}`;
12269
12269
  }
12270
12270
  function be(de, ie, oe) {
12271
- Me(ie, "offset"), (de[ie] === void 0 || de[ie + oe] === void 0) && Ye(ie, de.length - (oe + 1));
12271
+ Le(ie, "offset"), (de[ie] === void 0 || de[ie + oe] === void 0) && Ye(ie, de.length - (oe + 1));
12272
12272
  }
12273
12273
  function ye(de, ie, oe, pe, ke, Se) {
12274
12274
  if (de > oe || de < ie) {
@@ -12278,12 +12278,12 @@ var require_base64_js = __commonJS({
12278
12278
  }
12279
12279
  be(pe, ke, Se);
12280
12280
  }
12281
- function Me(de, ie) {
12281
+ function Le(de, ie) {
12282
12282
  if (typeof de != "number")
12283
12283
  throw new Ie.ERR_INVALID_ARG_TYPE(ie, "number", de);
12284
12284
  }
12285
12285
  function Ye(de, ie, oe) {
12286
- throw Math.floor(de) !== de ? (Me(de, oe), new Ie.ERR_OUT_OF_RANGE(oe || "offset", "an integer", de)) : ie < 0 ? new Ie.ERR_BUFFER_OUT_OF_BOUNDS() : new Ie.ERR_OUT_OF_RANGE(
12286
+ throw Math.floor(de) !== de ? (Le(de, oe), new Ie.ERR_OUT_OF_RANGE(oe || "offset", "an integer", de)) : ie < 0 ? new Ie.ERR_BUFFER_OUT_OF_BOUNDS() : new Ie.ERR_OUT_OF_RANGE(
12287
12287
  oe || "offset",
12288
12288
  `>= ${oe ? 1 : 0} and <= ${ie}`,
12289
12289
  de
@@ -12435,35 +12435,35 @@ lodash_defaultsdeep.exports;
12435
12435
  } catch {
12436
12436
  }
12437
12437
  }(), ye = be && be.isTypedArray;
12438
- function Me(we, Le, Ze) {
12438
+ function Le(we, Me, Ze) {
12439
12439
  switch (Ze.length) {
12440
12440
  case 0:
12441
- return we.call(Le);
12441
+ return we.call(Me);
12442
12442
  case 1:
12443
- return we.call(Le, Ze[0]);
12443
+ return we.call(Me, Ze[0]);
12444
12444
  case 2:
12445
- return we.call(Le, Ze[0], Ze[1]);
12445
+ return we.call(Me, Ze[0], Ze[1]);
12446
12446
  case 3:
12447
- return we.call(Le, Ze[0], Ze[1], Ze[2]);
12447
+ return we.call(Me, Ze[0], Ze[1], Ze[2]);
12448
12448
  }
12449
- return we.apply(Le, Ze);
12449
+ return we.apply(Me, Ze);
12450
12450
  }
12451
- function Ye(we, Le) {
12451
+ function Ye(we, Me) {
12452
12452
  for (var Ze = -1, $t = Array(we); ++Ze < we; )
12453
- $t[Ze] = Le(Ze);
12453
+ $t[Ze] = Me(Ze);
12454
12454
  return $t;
12455
12455
  }
12456
12456
  function ct(we) {
12457
- return function(Le) {
12458
- return we(Le);
12457
+ return function(Me) {
12458
+ return we(Me);
12459
12459
  };
12460
12460
  }
12461
- function ut(we, Le) {
12462
- return we == null ? void 0 : we[Le];
12461
+ function ut(we, Me) {
12462
+ return we == null ? void 0 : we[Me];
12463
12463
  }
12464
- function wt(we, Le) {
12464
+ function wt(we, Me) {
12465
12465
  return function(Ze) {
12466
- return we(Le(Ze));
12466
+ return we(Me(Ze));
12467
12467
  };
12468
12468
  }
12469
12469
  var St = Array.prototype, it = Function.prototype, Ut = Object.prototype, Kt = Ue["__core-js_shared__"], It = it.toString, Ht = Ut.hasOwnProperty, rn = function() {
@@ -12480,20 +12480,20 @@ lodash_defaultsdeep.exports;
12480
12480
  }(), At = ie ? ie.isBuffer : void 0, Sn = Math.max, bn = Date.now, vn = kt(Ue, "Map"), mn = kt(Object, "create"), Tn = /* @__PURE__ */ function() {
12481
12481
  function we() {
12482
12482
  }
12483
- return function(Le) {
12484
- if (!en(Le))
12483
+ return function(Me) {
12484
+ if (!en(Me))
12485
12485
  return {};
12486
12486
  if (De)
12487
- return De(Le);
12488
- we.prototype = Le;
12487
+ return De(Me);
12488
+ we.prototype = Me;
12489
12489
  var Ze = new we();
12490
12490
  return we.prototype = void 0, Ze;
12491
12491
  };
12492
12492
  }();
12493
12493
  function un(we) {
12494
- var Le = -1, Ze = we == null ? 0 : we.length;
12495
- for (this.clear(); ++Le < Ze; ) {
12496
- var $t = we[Le];
12494
+ var Me = -1, Ze = we == null ? 0 : we.length;
12495
+ for (this.clear(); ++Me < Ze; ) {
12496
+ var $t = we[Me];
12497
12497
  this.set($t[0], $t[1]);
12498
12498
  }
12499
12499
  }
@@ -12501,30 +12501,30 @@ lodash_defaultsdeep.exports;
12501
12501
  this.__data__ = mn ? mn(null) : {}, this.size = 0;
12502
12502
  }
12503
12503
  function $n(we) {
12504
- var Le = this.has(we) && delete this.__data__[we];
12505
- return this.size -= Le ? 1 : 0, Le;
12504
+ var Me = this.has(we) && delete this.__data__[we];
12505
+ return this.size -= Me ? 1 : 0, Me;
12506
12506
  }
12507
12507
  function Vn(we) {
12508
- var Le = this.__data__;
12508
+ var Me = this.__data__;
12509
12509
  if (mn) {
12510
- var Ze = Le[we];
12510
+ var Ze = Me[we];
12511
12511
  return Ze === q ? void 0 : Ze;
12512
12512
  }
12513
- return Ht.call(Le, we) ? Le[we] : void 0;
12513
+ return Ht.call(Me, we) ? Me[we] : void 0;
12514
12514
  }
12515
12515
  function Nn(we) {
12516
- var Le = this.__data__;
12517
- return mn ? Le[we] !== void 0 : Ht.call(Le, we);
12516
+ var Me = this.__data__;
12517
+ return mn ? Me[we] !== void 0 : Ht.call(Me, we);
12518
12518
  }
12519
- function Fn(we, Le) {
12519
+ function Fn(we, Me) {
12520
12520
  var Ze = this.__data__;
12521
- return this.size += this.has(we) ? 0 : 1, Ze[we] = mn && Le === void 0 ? q : Le, this;
12521
+ return this.size += this.has(we) ? 0 : 1, Ze[we] = mn && Me === void 0 ? q : Me, this;
12522
12522
  }
12523
12523
  un.prototype.clear = Pn, un.prototype.delete = $n, un.prototype.get = Vn, un.prototype.has = Nn, un.prototype.set = Fn;
12524
12524
  function ln(we) {
12525
- var Le = -1, Ze = we == null ? 0 : we.length;
12526
- for (this.clear(); ++Le < Ze; ) {
12527
- var $t = we[Le];
12525
+ var Me = -1, Ze = we == null ? 0 : we.length;
12526
+ for (this.clear(); ++Me < Ze; ) {
12527
+ var $t = we[Me];
12528
12528
  this.set($t[0], $t[1]);
12529
12529
  }
12530
12530
  }
@@ -12532,28 +12532,28 @@ lodash_defaultsdeep.exports;
12532
12532
  this.__data__ = [], this.size = 0;
12533
12533
  }
12534
12534
  function _n(we) {
12535
- var Le = this.__data__, Ze = dn(Le, we);
12535
+ var Me = this.__data__, Ze = dn(Me, we);
12536
12536
  if (Ze < 0)
12537
12537
  return !1;
12538
- var $t = Le.length - 1;
12539
- return Ze == $t ? Le.pop() : Dt.call(Le, Ze, 1), --this.size, !0;
12538
+ var $t = Me.length - 1;
12539
+ return Ze == $t ? Me.pop() : Dt.call(Me, Ze, 1), --this.size, !0;
12540
12540
  }
12541
12541
  function Kn(we) {
12542
- var Le = this.__data__, Ze = dn(Le, we);
12543
- return Ze < 0 ? void 0 : Le[Ze][1];
12542
+ var Me = this.__data__, Ze = dn(Me, we);
12543
+ return Ze < 0 ? void 0 : Me[Ze][1];
12544
12544
  }
12545
12545
  function We(we) {
12546
12546
  return dn(this.__data__, we) > -1;
12547
12547
  }
12548
- function vt(we, Le) {
12548
+ function vt(we, Me) {
12549
12549
  var Ze = this.__data__, $t = dn(Ze, we);
12550
- return $t < 0 ? (++this.size, Ze.push([we, Le])) : Ze[$t][1] = Le, this;
12550
+ return $t < 0 ? (++this.size, Ze.push([we, Me])) : Ze[$t][1] = Me, this;
12551
12551
  }
12552
12552
  ln.prototype.clear = Gn, ln.prototype.delete = _n, ln.prototype.get = Kn, ln.prototype.has = We, ln.prototype.set = vt;
12553
12553
  function xt(we) {
12554
- var Le = -1, Ze = we == null ? 0 : we.length;
12555
- for (this.clear(); ++Le < Ze; ) {
12556
- var $t = we[Le];
12554
+ var Me = -1, Ze = we == null ? 0 : we.length;
12555
+ for (this.clear(); ++Me < Ze; ) {
12556
+ var $t = we[Me];
12557
12557
  this.set($t[0], $t[1]);
12558
12558
  }
12559
12559
  }
@@ -12565,8 +12565,8 @@ lodash_defaultsdeep.exports;
12565
12565
  };
12566
12566
  }
12567
12567
  function ot(we) {
12568
- var Le = bt(this, we).delete(we);
12569
- return this.size -= Le ? 1 : 0, Le;
12568
+ var Me = bt(this, we).delete(we);
12569
+ return this.size -= Me ? 1 : 0, Me;
12570
12570
  }
12571
12571
  function dt(we) {
12572
12572
  return bt(this, we).get(we);
@@ -12574,21 +12574,21 @@ lodash_defaultsdeep.exports;
12574
12574
  function Et(we) {
12575
12575
  return bt(this, we).has(we);
12576
12576
  }
12577
- function Rt(we, Le) {
12577
+ function Rt(we, Me) {
12578
12578
  var Ze = bt(this, we), $t = Ze.size;
12579
- return Ze.set(we, Le), this.size += Ze.size == $t ? 0 : 1, this;
12579
+ return Ze.set(we, Me), this.size += Ze.size == $t ? 0 : 1, this;
12580
12580
  }
12581
12581
  xt.prototype.clear = Ne, xt.prototype.delete = ot, xt.prototype.get = dt, xt.prototype.has = Et, xt.prototype.set = Rt;
12582
12582
  function Bt(we) {
12583
- var Le = this.__data__ = new ln(we);
12584
- this.size = Le.size;
12583
+ var Me = this.__data__ = new ln(we);
12584
+ this.size = Me.size;
12585
12585
  }
12586
- function Mt() {
12586
+ function Lt() {
12587
12587
  this.__data__ = new ln(), this.size = 0;
12588
12588
  }
12589
12589
  function Ot(we) {
12590
- var Le = this.__data__, Ze = Le.delete(we);
12591
- return this.size = Le.size, Ze;
12590
+ var Me = this.__data__, Ze = Me.delete(we);
12591
+ return this.size = Me.size, Ze;
12592
12592
  }
12593
12593
  function Zt(we) {
12594
12594
  return this.__data__.get(we);
@@ -12596,51 +12596,51 @@ lodash_defaultsdeep.exports;
12596
12596
  function Qt(we) {
12597
12597
  return this.__data__.has(we);
12598
12598
  }
12599
- function Yt(we, Le) {
12599
+ function Yt(we, Me) {
12600
12600
  var Ze = this.__data__;
12601
12601
  if (Ze instanceof ln) {
12602
12602
  var $t = Ze.__data__;
12603
12603
  if (!vn || $t.length < U - 1)
12604
- return $t.push([we, Le]), this.size = ++Ze.size, this;
12604
+ return $t.push([we, Me]), this.size = ++Ze.size, this;
12605
12605
  Ze = this.__data__ = new xt($t);
12606
12606
  }
12607
- return Ze.set(we, Le), this.size = Ze.size, this;
12607
+ return Ze.set(we, Me), this.size = Ze.size, this;
12608
12608
  }
12609
- Bt.prototype.clear = Mt, Bt.prototype.delete = Ot, Bt.prototype.get = Zt, Bt.prototype.has = Qt, Bt.prototype.set = Yt;
12610
- function sn(we, Le) {
12609
+ Bt.prototype.clear = Lt, Bt.prototype.delete = Ot, Bt.prototype.get = Zt, Bt.prototype.has = Qt, Bt.prototype.set = Yt;
12610
+ function sn(we, Me) {
12611
12611
  var Ze = yt(we), $t = !Ze && et(we), jt = !Ze && !$t && qt(we), Ft = !Ze && !$t && !jt && kn(we), Vt = Ze || $t || jt || Ft, Gt = Vt ? Ye(we.length, String) : [], Xt = Gt.length;
12612
12612
  for (var En in we)
12613
- (Le || Ht.call(we, En)) && !(Vt && // Safari 9 has enumerable `arguments.length` in strict mode.
12613
+ (Me || Ht.call(we, En)) && !(Vt && // Safari 9 has enumerable `arguments.length` in strict mode.
12614
12614
  (En == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
12615
12615
  jt && (En == "offset" || En == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
12616
12616
  Ft && (En == "buffer" || En == "byteLength" || En == "byteOffset") || // Skip index properties.
12617
12617
  Jt(En, Xt))) && Gt.push(En);
12618
12618
  return Gt;
12619
12619
  }
12620
- function xn(we, Le, Ze) {
12621
- (Ze !== void 0 && !Fe(we[Le], Ze) || Ze === void 0 && !(Le in we)) && Bn(we, Le, Ze);
12620
+ function xn(we, Me, Ze) {
12621
+ (Ze !== void 0 && !Fe(we[Me], Ze) || Ze === void 0 && !(Me in we)) && Bn(we, Me, Ze);
12622
12622
  }
12623
- function Yn(we, Le, Ze) {
12624
- var $t = we[Le];
12625
- (!(Ht.call(we, Le) && Fe($t, Ze)) || Ze === void 0 && !(Le in we)) && Bn(we, Le, Ze);
12623
+ function Yn(we, Me, Ze) {
12624
+ var $t = we[Me];
12625
+ (!(Ht.call(we, Me) && Fe($t, Ze)) || Ze === void 0 && !(Me in we)) && Bn(we, Me, Ze);
12626
12626
  }
12627
- function dn(we, Le) {
12627
+ function dn(we, Me) {
12628
12628
  for (var Ze = we.length; Ze--; )
12629
- if (Fe(we[Ze][0], Le))
12629
+ if (Fe(we[Ze][0], Me))
12630
12630
  return Ze;
12631
12631
  return -1;
12632
12632
  }
12633
- function Bn(we, Le, Ze) {
12634
- Le == "__proto__" && Pt ? Pt(we, Le, {
12633
+ function Bn(we, Me, Ze) {
12634
+ Me == "__proto__" && Pt ? Pt(we, Me, {
12635
12635
  configurable: !0,
12636
12636
  enumerable: !0,
12637
12637
  value: Ze,
12638
12638
  writable: !0
12639
- }) : we[Le] = Ze;
12639
+ }) : we[Me] = Ze;
12640
12640
  }
12641
12641
  var jn = pt();
12642
12642
  function An(we) {
12643
- return we == null ? we === void 0 ? ge : le : Tt && Tt in Object(we) ? Lt(we) : Zn(we);
12643
+ return we == null ? we === void 0 ? ge : le : Tt && Tt in Object(we) ? Mt(we) : Zn(we);
12644
12644
  }
12645
12645
  function Un(we) {
12646
12646
  return hn(we) && An(we) == J;
@@ -12648,8 +12648,8 @@ lodash_defaultsdeep.exports;
12648
12648
  function Xn(we) {
12649
12649
  if (!en(we) || cn(we))
12650
12650
  return !1;
12651
- var Le = pn(we) ? de : tt;
12652
- return Le.test(qn(we));
12651
+ var Me = pn(we) ? de : tt;
12652
+ return Me.test(qn(we));
12653
12653
  }
12654
12654
  function nr(we) {
12655
12655
  return hn(we) && an(we.length) && !!qe[An(we)];
@@ -12657,173 +12657,173 @@ lodash_defaultsdeep.exports;
12657
12657
  function rr(we) {
12658
12658
  if (!en(we))
12659
12659
  return Hn(we);
12660
- var Le = wn(we), Ze = [];
12660
+ var Me = wn(we), Ze = [];
12661
12661
  for (var $t in we)
12662
- $t == "constructor" && (Le || !Ht.call(we, $t)) || Ze.push($t);
12662
+ $t == "constructor" && (Me || !Ht.call(we, $t)) || Ze.push($t);
12663
12663
  return Ze;
12664
12664
  }
12665
- function zn(we, Le, Ze, $t, jt) {
12666
- we !== Le && jn(Le, function(Ft, Vt) {
12665
+ function zn(we, Me, Ze, $t, jt) {
12666
+ we !== Me && jn(Me, function(Ft, Vt) {
12667
12667
  if (jt || (jt = new Bt()), en(Ft))
12668
- ir(we, Le, Vt, Ze, zn, $t, jt);
12668
+ ir(we, Me, Vt, Ze, zn, $t, jt);
12669
12669
  else {
12670
- var Gt = $t ? $t(Ln(we, Vt), Ft, Vt + "", we, Le, jt) : void 0;
12670
+ var Gt = $t ? $t(Mn(we, Vt), Ft, Vt + "", we, Me, jt) : void 0;
12671
12671
  Gt === void 0 && (Gt = Ft), xn(we, Vt, Gt);
12672
12672
  }
12673
12673
  }, Cn);
12674
12674
  }
12675
- function ir(we, Le, Ze, $t, jt, Ft, Vt) {
12676
- var Gt = Ln(we, Ze), Xt = Ln(Le, Ze), En = Vt.get(Xt);
12675
+ function ir(we, Me, Ze, $t, jt, Ft, Vt) {
12676
+ var Gt = Mn(we, Ze), Xt = Mn(Me, Ze), En = Vt.get(Xt);
12677
12677
  if (En) {
12678
12678
  xn(we, Ze, En);
12679
12679
  return;
12680
12680
  }
12681
- var Rn = Ft ? Ft(Gt, Xt, Ze + "", we, Le, Vt) : void 0, er = Rn === void 0;
12681
+ var Rn = Ft ? Ft(Gt, Xt, Ze + "", we, Me, Vt) : void 0, er = Rn === void 0;
12682
12682
  if (er) {
12683
12683
  var cr = yt(Xt), hr = !cr && qt(Xt), mr = !cr && !hr && kn(Xt);
12684
12684
  Rn = Xt, cr || hr || mr ? yt(Gt) ? Rn = Gt : nn(Gt) ? Rn = Qe(Gt) : hr ? (er = !1, Rn = Ve(Xt, !0)) : mr ? (er = !1, Rn = Je(Xt, !0)) : Rn = [] : yn(Xt) || et(Xt) ? (Rn = Gt, et(Gt) ? Rn = gn(Gt) : (!en(Gt) || pn(Gt)) && (Rn = Wt(Xt))) : er = !1;
12685
12685
  }
12686
12686
  er && (Vt.set(Xt, Rn), jt(Rn, Xt, $t, Ft, Vt), Vt.delete(Xt)), xn(we, Ze, Rn);
12687
12687
  }
12688
- function tr(we, Le) {
12689
- return sr(Wn(we, Le, Pe), we + "");
12688
+ function tr(we, Me) {
12689
+ return sr(Wn(we, Me, Pe), we + "");
12690
12690
  }
12691
- var Ae = Pt ? function(we, Le) {
12691
+ var Ae = Pt ? function(we, Me) {
12692
12692
  return Pt(we, "toString", {
12693
12693
  configurable: !0,
12694
12694
  enumerable: !1,
12695
- value: Dn(Le),
12695
+ value: Dn(Me),
12696
12696
  writable: !0
12697
12697
  });
12698
12698
  } : Pe;
12699
- function Ve(we, Le) {
12700
- if (Le)
12699
+ function Ve(we, Me) {
12700
+ if (Me)
12701
12701
  return we.slice();
12702
12702
  var Ze = we.length, $t = ke ? ke(Ze) : new we.constructor(Ze);
12703
12703
  return we.copy($t), $t;
12704
12704
  }
12705
12705
  function Oe(we) {
12706
- var Le = new we.constructor(we.byteLength);
12707
- return new pe(Le).set(new pe(we)), Le;
12706
+ var Me = new we.constructor(we.byteLength);
12707
+ return new pe(Me).set(new pe(we)), Me;
12708
12708
  }
12709
- function Je(we, Le) {
12710
- var Ze = Le ? Oe(we.buffer) : we.buffer;
12709
+ function Je(we, Me) {
12710
+ var Ze = Me ? Oe(we.buffer) : we.buffer;
12711
12711
  return new we.constructor(Ze, we.byteOffset, we.length);
12712
12712
  }
12713
- function Qe(we, Le) {
12713
+ function Qe(we, Me) {
12714
12714
  var Ze = -1, $t = we.length;
12715
- for (Le || (Le = Array($t)); ++Ze < $t; )
12716
- Le[Ze] = we[Ze];
12717
- return Le;
12715
+ for (Me || (Me = Array($t)); ++Ze < $t; )
12716
+ Me[Ze] = we[Ze];
12717
+ return Me;
12718
12718
  }
12719
- function Ke(we, Le, Ze, $t) {
12719
+ function Ke(we, Me, Ze, $t) {
12720
12720
  var jt = !Ze;
12721
12721
  Ze || (Ze = {});
12722
- for (var Ft = -1, Vt = Le.length; ++Ft < Vt; ) {
12723
- var Gt = Le[Ft], Xt = $t ? $t(Ze[Gt], we[Gt], Gt, Ze, we) : void 0;
12722
+ for (var Ft = -1, Vt = Me.length; ++Ft < Vt; ) {
12723
+ var Gt = Me[Ft], Xt = $t ? $t(Ze[Gt], we[Gt], Gt, Ze, we) : void 0;
12724
12724
  Xt === void 0 && (Xt = we[Gt]), jt ? Bn(Ze, Gt, Xt) : Yn(Ze, Gt, Xt);
12725
12725
  }
12726
12726
  return Ze;
12727
12727
  }
12728
12728
  function ft(we) {
12729
- return tr(function(Le, Ze) {
12729
+ return tr(function(Me, Ze) {
12730
12730
  var $t = -1, jt = Ze.length, Ft = jt > 1 ? Ze[jt - 1] : void 0, Vt = jt > 2 ? Ze[2] : void 0;
12731
- for (Ft = we.length > 3 && typeof Ft == "function" ? (jt--, Ft) : void 0, Vt && tn(Ze[0], Ze[1], Vt) && (Ft = jt < 3 ? void 0 : Ft, jt = 1), Le = Object(Le); ++$t < jt; ) {
12731
+ for (Ft = we.length > 3 && typeof Ft == "function" ? (jt--, Ft) : void 0, Vt && tn(Ze[0], Ze[1], Vt) && (Ft = jt < 3 ? void 0 : Ft, jt = 1), Me = Object(Me); ++$t < jt; ) {
12732
12732
  var Gt = Ze[$t];
12733
- Gt && we(Le, Gt, $t, Ft);
12733
+ Gt && we(Me, Gt, $t, Ft);
12734
12734
  }
12735
- return Le;
12735
+ return Me;
12736
12736
  });
12737
12737
  }
12738
12738
  function pt(we) {
12739
- return function(Le, Ze, $t) {
12740
- for (var jt = -1, Ft = Object(Le), Vt = $t(Le), Gt = Vt.length; Gt--; ) {
12739
+ return function(Me, Ze, $t) {
12740
+ for (var jt = -1, Ft = Object(Me), Vt = $t(Me), Gt = Vt.length; Gt--; ) {
12741
12741
  var Xt = Vt[we ? Gt : ++jt];
12742
12742
  if (Ze(Ft[Xt], Xt, Ft) === !1)
12743
12743
  break;
12744
12744
  }
12745
- return Le;
12745
+ return Me;
12746
12746
  };
12747
12747
  }
12748
- function gt(we, Le, Ze, $t, jt, Ft) {
12749
- return en(we) && en(Le) && (Ft.set(Le, we), zn(we, Le, void 0, gt, Ft), Ft.delete(Le)), we;
12748
+ function gt(we, Me, Ze, $t, jt, Ft) {
12749
+ return en(we) && en(Me) && (Ft.set(Me, we), zn(we, Me, void 0, gt, Ft), Ft.delete(Me)), we;
12750
12750
  }
12751
- function bt(we, Le) {
12751
+ function bt(we, Me) {
12752
12752
  var Ze = we.__data__;
12753
- return fn(Le) ? Ze[typeof Le == "string" ? "string" : "hash"] : Ze.map;
12753
+ return fn(Me) ? Ze[typeof Me == "string" ? "string" : "hash"] : Ze.map;
12754
12754
  }
12755
- function kt(we, Le) {
12756
- var Ze = ut(we, Le);
12755
+ function kt(we, Me) {
12756
+ var Ze = ut(we, Me);
12757
12757
  return Xn(Ze) ? Ze : void 0;
12758
12758
  }
12759
- function Lt(we) {
12760
- var Le = Ht.call(we, Tt), Ze = we[Tt];
12759
+ function Mt(we) {
12760
+ var Me = Ht.call(we, Tt), Ze = we[Tt];
12761
12761
  try {
12762
12762
  we[Tt] = void 0;
12763
12763
  var $t = !0;
12764
12764
  } catch {
12765
12765
  }
12766
12766
  var jt = Ct.call(we);
12767
- return $t && (Le ? we[Tt] = Ze : delete we[Tt]), jt;
12767
+ return $t && (Me ? we[Tt] = Ze : delete we[Tt]), jt;
12768
12768
  }
12769
12769
  function Wt(we) {
12770
12770
  return typeof we.constructor == "function" && !wn(we) ? Tn(Se(we)) : {};
12771
12771
  }
12772
- function Jt(we, Le) {
12772
+ function Jt(we, Me) {
12773
12773
  var Ze = typeof we;
12774
- return Le = Le ?? Y, !!Le && (Ze == "number" || Ze != "symbol" && ze.test(we)) && we > -1 && we % 1 == 0 && we < Le;
12774
+ return Me = Me ?? Y, !!Me && (Ze == "number" || Ze != "symbol" && ze.test(we)) && we > -1 && we % 1 == 0 && we < Me;
12775
12775
  }
12776
- function tn(we, Le, Ze) {
12776
+ function tn(we, Me, Ze) {
12777
12777
  if (!en(Ze))
12778
12778
  return !1;
12779
- var $t = typeof Le;
12780
- return ($t == "number" ? Nt(Ze) && Jt(Le, Ze.length) : $t == "string" && Le in Ze) ? Fe(Ze[Le], we) : !1;
12779
+ var $t = typeof Me;
12780
+ return ($t == "number" ? Nt(Ze) && Jt(Me, Ze.length) : $t == "string" && Me in Ze) ? Fe(Ze[Me], we) : !1;
12781
12781
  }
12782
12782
  function fn(we) {
12783
- var Le = typeof we;
12784
- return Le == "string" || Le == "number" || Le == "symbol" || Le == "boolean" ? we !== "__proto__" : we === null;
12783
+ var Me = typeof we;
12784
+ return Me == "string" || Me == "number" || Me == "symbol" || Me == "boolean" ? we !== "__proto__" : we === null;
12785
12785
  }
12786
12786
  function cn(we) {
12787
12787
  return !!rn && rn in we;
12788
12788
  }
12789
12789
  function wn(we) {
12790
- var Le = we && we.constructor, Ze = typeof Le == "function" && Le.prototype || Ut;
12790
+ var Me = we && we.constructor, Ze = typeof Me == "function" && Me.prototype || Ut;
12791
12791
  return we === Ze;
12792
12792
  }
12793
12793
  function Hn(we) {
12794
- var Le = [];
12794
+ var Me = [];
12795
12795
  if (we != null)
12796
12796
  for (var Ze in Object(we))
12797
- Le.push(Ze);
12798
- return Le;
12797
+ Me.push(Ze);
12798
+ return Me;
12799
12799
  }
12800
12800
  function Zn(we) {
12801
12801
  return Ct.call(we);
12802
12802
  }
12803
- function Wn(we, Le, Ze) {
12804
- return Le = Sn(Le === void 0 ? we.length - 1 : Le, 0), function() {
12805
- for (var $t = arguments, jt = -1, Ft = Sn($t.length - Le, 0), Vt = Array(Ft); ++jt < Ft; )
12806
- Vt[jt] = $t[Le + jt];
12803
+ function Wn(we, Me, Ze) {
12804
+ return Me = Sn(Me === void 0 ? we.length - 1 : Me, 0), function() {
12805
+ for (var $t = arguments, jt = -1, Ft = Sn($t.length - Me, 0), Vt = Array(Ft); ++jt < Ft; )
12806
+ Vt[jt] = $t[Me + jt];
12807
12807
  jt = -1;
12808
- for (var Gt = Array(Le + 1); ++jt < Le; )
12808
+ for (var Gt = Array(Me + 1); ++jt < Me; )
12809
12809
  Gt[jt] = $t[jt];
12810
- return Gt[Le] = Ze(Vt), Me(we, this, Gt);
12810
+ return Gt[Me] = Ze(Vt), Le(we, this, Gt);
12811
12811
  };
12812
12812
  }
12813
- function Ln(we, Le) {
12814
- if (!(Le === "constructor" && typeof we[Le] == "function") && Le != "__proto__")
12815
- return we[Le];
12813
+ function Mn(we, Me) {
12814
+ if (!(Me === "constructor" && typeof we[Me] == "function") && Me != "__proto__")
12815
+ return we[Me];
12816
12816
  }
12817
12817
  var sr = ar(Ae);
12818
12818
  function ar(we) {
12819
- var Le = 0, Ze = 0;
12819
+ var Me = 0, Ze = 0;
12820
12820
  return function() {
12821
12821
  var $t = bn(), jt = K - ($t - Ze);
12822
12822
  if (Ze = $t, jt > 0) {
12823
- if (++Le >= G)
12823
+ if (++Me >= G)
12824
12824
  return arguments[0];
12825
12825
  } else
12826
- Le = 0;
12826
+ Me = 0;
12827
12827
  return we.apply(void 0, arguments);
12828
12828
  };
12829
12829
  }
@@ -12840,8 +12840,8 @@ lodash_defaultsdeep.exports;
12840
12840
  }
12841
12841
  return "";
12842
12842
  }
12843
- function Fe(we, Le) {
12844
- return we === Le || we !== we && Le !== Le;
12843
+ function Fe(we, Me) {
12844
+ return we === Me || we !== we && Me !== Me;
12845
12845
  }
12846
12846
  var et = Un(/* @__PURE__ */ function() {
12847
12847
  return arguments;
@@ -12858,15 +12858,15 @@ lodash_defaultsdeep.exports;
12858
12858
  function pn(we) {
12859
12859
  if (!en(we))
12860
12860
  return !1;
12861
- var Le = An(we);
12862
- return Le == re || Le == ae || Le == Q || Le == ue;
12861
+ var Me = An(we);
12862
+ return Me == re || Me == ae || Me == Q || Me == ue;
12863
12863
  }
12864
12864
  function an(we) {
12865
12865
  return typeof we == "number" && we > -1 && we % 1 == 0 && we <= Y;
12866
12866
  }
12867
12867
  function en(we) {
12868
- var Le = typeof we;
12869
- return we != null && (Le == "object" || Le == "function");
12868
+ var Me = typeof we;
12869
+ return we != null && (Me == "object" || Me == "function");
12870
12870
  }
12871
12871
  function hn(we) {
12872
12872
  return we != null && typeof we == "object";
@@ -12874,10 +12874,10 @@ lodash_defaultsdeep.exports;
12874
12874
  function yn(we) {
12875
12875
  if (!hn(we) || An(we) != ce)
12876
12876
  return !1;
12877
- var Le = Se(we);
12878
- if (Le === null)
12877
+ var Me = Se(we);
12878
+ if (Me === null)
12879
12879
  return !0;
12880
- var Ze = Ht.call(Le, "constructor") && Le.constructor;
12880
+ var Ze = Ht.call(Me, "constructor") && Me.constructor;
12881
12881
  return typeof Ze == "function" && Ze instanceof Ze && It.call(Ze) == zt;
12882
12882
  }
12883
12883
  var kn = ye ? ct(ye) : nr;
@@ -12885,13 +12885,13 @@ lodash_defaultsdeep.exports;
12885
12885
  return Ke(we, Cn(we));
12886
12886
  }
12887
12887
  var In = tr(function(we) {
12888
- return we.push(void 0, gt), Me(Mn, void 0, we);
12888
+ return we.push(void 0, gt), Le(Ln, void 0, we);
12889
12889
  });
12890
12890
  function Cn(we) {
12891
12891
  return Nt(we) ? sn(we, !0) : rr(we);
12892
12892
  }
12893
- var Mn = ft(function(we, Le, Ze, $t) {
12894
- zn(we, Le, Ze, $t);
12893
+ var Ln = ft(function(we, Me, Ze, $t) {
12894
+ zn(we, Me, Ze, $t);
12895
12895
  });
12896
12896
  function Dn(we) {
12897
12897
  return function() {
@@ -13460,10 +13460,10 @@ var equalsSymbol = Symbol.for("dxos.common.equals"), __require$1 = /* @__PURE__
13460
13460
  }, randomBytes$1 = ($) => {
13461
13461
  const I = globalThis.crypto ?? __require$1("@dxos/node-std/crypto").webcrypto, U = new Uint8Array($);
13462
13462
  return I.getRandomValues(U), U;
13463
- }, __dxlog_file3$5 = "/home/runner/work/dxos/dxos/packages/common/util/src/callback.ts", Callback = class {
13463
+ }, __dxlog_file3$4 = "/home/runner/work/dxos/dxos/packages/common/util/src/callback.ts", Callback = class {
13464
13464
  call(...$) {
13465
13465
  return invariant(this._callback, "Callback not set", {
13466
- F: __dxlog_file3$5,
13466
+ F: __dxlog_file3$4,
13467
13467
  L: 20,
13468
13468
  S: this,
13469
13469
  A: [
@@ -13478,7 +13478,7 @@ var equalsSymbol = Symbol.for("dxos.common.equals"), __require$1 = /* @__PURE__
13478
13478
  }
13479
13479
  set($) {
13480
13480
  invariant(!this._callback, "Callback already set", {
13481
- F: __dxlog_file3$5,
13481
+ F: __dxlog_file3$4,
13482
13482
  L: 29,
13483
13483
  S: this,
13484
13484
  A: [
@@ -16033,7 +16033,7 @@ const arrow$1 = ($) => {
16033
16033
  Re,
16034
16034
  ye
16035
16035
  ]);
16036
- const Me = (G = He.arrow) === null || G === void 0 ? void 0 : G.x, Ye = (K = He.arrow) === null || K === void 0 ? void 0 : K.y, ct = ((Y = He.arrow) === null || Y === void 0 ? void 0 : Y.centerOffset) !== 0, [ut, wt] = useState();
16036
+ const Le = (G = He.arrow) === null || G === void 0 ? void 0 : G.x, Ye = (K = He.arrow) === null || K === void 0 ? void 0 : K.y, ct = ((Y = He.arrow) === null || Y === void 0 ? void 0 : Y.centerOffset) !== 0, [ut, wt] = useState();
16037
16037
  $9f79659886946c16$export$e5c5a5f917a5871c$1(() => {
16038
16038
  _e && wt(window.getComputedStyle(_e).zIndex);
16039
16039
  }, [
@@ -16093,7 +16093,7 @@ const arrow$1 = ($) => {
16093
16093
  scope: ee,
16094
16094
  placedSide: Te,
16095
16095
  onArrowChange: xe,
16096
- arrowX: Me,
16096
+ arrowX: Le,
16097
16097
  arrowY: Ye,
16098
16098
  shouldHideArrow: ct
16099
16099
  }, Ut ? /* @__PURE__ */ createElement($cf1ac5d9fe0e8206$var$PositionContextProvider, {
@@ -20200,7 +20200,7 @@ lodash_merge.exports;
20200
20200
  } catch {
20201
20201
  }
20202
20202
  }(), ye = be && be.isTypedArray;
20203
- function Me(Pe, Xe, we) {
20203
+ function Le(Pe, Xe, we) {
20204
20204
  switch (we.length) {
20205
20205
  case 0:
20206
20206
  return Pe.call(Xe);
@@ -20214,9 +20214,9 @@ lodash_merge.exports;
20214
20214
  return Pe.apply(Xe, we);
20215
20215
  }
20216
20216
  function Ye(Pe, Xe) {
20217
- for (var we = -1, Le = Array(Pe); ++we < Pe; )
20218
- Le[we] = Xe(we);
20219
- return Le;
20217
+ for (var we = -1, Me = Array(Pe); ++we < Pe; )
20218
+ Me[we] = Xe(we);
20219
+ return Me;
20220
20220
  }
20221
20221
  function ct(Pe) {
20222
20222
  return function(Xe) {
@@ -20258,8 +20258,8 @@ lodash_merge.exports;
20258
20258
  function un(Pe) {
20259
20259
  var Xe = -1, we = Pe == null ? 0 : Pe.length;
20260
20260
  for (this.clear(); ++Xe < we; ) {
20261
- var Le = Pe[Xe];
20262
- this.set(Le[0], Le[1]);
20261
+ var Me = Pe[Xe];
20262
+ this.set(Me[0], Me[1]);
20263
20263
  }
20264
20264
  }
20265
20265
  function Pn() {
@@ -20289,8 +20289,8 @@ lodash_merge.exports;
20289
20289
  function ln(Pe) {
20290
20290
  var Xe = -1, we = Pe == null ? 0 : Pe.length;
20291
20291
  for (this.clear(); ++Xe < we; ) {
20292
- var Le = Pe[Xe];
20293
- this.set(Le[0], Le[1]);
20292
+ var Me = Pe[Xe];
20293
+ this.set(Me[0], Me[1]);
20294
20294
  }
20295
20295
  }
20296
20296
  function Gn() {
@@ -20300,8 +20300,8 @@ lodash_merge.exports;
20300
20300
  var Xe = this.__data__, we = dn(Xe, Pe);
20301
20301
  if (we < 0)
20302
20302
  return !1;
20303
- var Le = Xe.length - 1;
20304
- return we == Le ? Xe.pop() : Dt.call(Xe, we, 1), --this.size, !0;
20303
+ var Me = Xe.length - 1;
20304
+ return we == Me ? Xe.pop() : Dt.call(Xe, we, 1), --this.size, !0;
20305
20305
  }
20306
20306
  function Kn(Pe) {
20307
20307
  var Xe = this.__data__, we = dn(Xe, Pe);
@@ -20311,15 +20311,15 @@ lodash_merge.exports;
20311
20311
  return dn(this.__data__, Pe) > -1;
20312
20312
  }
20313
20313
  function vt(Pe, Xe) {
20314
- var we = this.__data__, Le = dn(we, Pe);
20315
- return Le < 0 ? (++this.size, we.push([Pe, Xe])) : we[Le][1] = Xe, this;
20314
+ var we = this.__data__, Me = dn(we, Pe);
20315
+ return Me < 0 ? (++this.size, we.push([Pe, Xe])) : we[Me][1] = Xe, this;
20316
20316
  }
20317
20317
  ln.prototype.clear = Gn, ln.prototype.delete = _n, ln.prototype.get = Kn, ln.prototype.has = We, ln.prototype.set = vt;
20318
20318
  function xt(Pe) {
20319
20319
  var Xe = -1, we = Pe == null ? 0 : Pe.length;
20320
20320
  for (this.clear(); ++Xe < we; ) {
20321
- var Le = Pe[Xe];
20322
- this.set(Le[0], Le[1]);
20321
+ var Me = Pe[Xe];
20322
+ this.set(Me[0], Me[1]);
20323
20323
  }
20324
20324
  }
20325
20325
  function Ne() {
@@ -20340,15 +20340,15 @@ lodash_merge.exports;
20340
20340
  return gt(this, Pe).has(Pe);
20341
20341
  }
20342
20342
  function Rt(Pe, Xe) {
20343
- var we = gt(this, Pe), Le = we.size;
20344
- return we.set(Pe, Xe), this.size += we.size == Le ? 0 : 1, this;
20343
+ var we = gt(this, Pe), Me = we.size;
20344
+ return we.set(Pe, Xe), this.size += we.size == Me ? 0 : 1, this;
20345
20345
  }
20346
20346
  xt.prototype.clear = Ne, xt.prototype.delete = ot, xt.prototype.get = dt, xt.prototype.has = Et, xt.prototype.set = Rt;
20347
20347
  function Bt(Pe) {
20348
20348
  var Xe = this.__data__ = new ln(Pe);
20349
20349
  this.size = Xe.size;
20350
20350
  }
20351
- function Mt() {
20351
+ function Lt() {
20352
20352
  this.__data__ = new ln(), this.size = 0;
20353
20353
  }
20354
20354
  function Ot(Pe) {
@@ -20364,16 +20364,16 @@ lodash_merge.exports;
20364
20364
  function Yt(Pe, Xe) {
20365
20365
  var we = this.__data__;
20366
20366
  if (we instanceof ln) {
20367
- var Le = we.__data__;
20368
- if (!vn || Le.length < U - 1)
20369
- return Le.push([Pe, Xe]), this.size = ++we.size, this;
20370
- we = this.__data__ = new xt(Le);
20367
+ var Me = we.__data__;
20368
+ if (!vn || Me.length < U - 1)
20369
+ return Me.push([Pe, Xe]), this.size = ++we.size, this;
20370
+ we = this.__data__ = new xt(Me);
20371
20371
  }
20372
20372
  return we.set(Pe, Xe), this.size = we.size, this;
20373
20373
  }
20374
- Bt.prototype.clear = Mt, Bt.prototype.delete = Ot, Bt.prototype.get = Zt, Bt.prototype.has = Qt, Bt.prototype.set = Yt;
20374
+ Bt.prototype.clear = Lt, Bt.prototype.delete = Ot, Bt.prototype.get = Zt, Bt.prototype.has = Qt, Bt.prototype.set = Yt;
20375
20375
  function sn(Pe, Xe) {
20376
- var we = et(Pe), Le = !we && Fe(Pe), Ze = !we && !Le && nn(Pe), $t = !we && !Le && !Ze && yn(Pe), jt = we || Le || Ze || $t, Ft = jt ? Ye(Pe.length, String) : [], Vt = Ft.length;
20376
+ var we = et(Pe), Me = !we && Fe(Pe), Ze = !we && !Me && nn(Pe), $t = !we && !Me && !Ze && yn(Pe), jt = we || Me || Ze || $t, Ft = jt ? Ye(Pe.length, String) : [], Vt = Ft.length;
20377
20377
  for (var Gt in Pe)
20378
20378
  (Xe || Ht.call(Pe, Gt)) && !(jt && // Safari 9 has enumerable `arguments.length` in strict mode.
20379
20379
  (Gt == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
@@ -20386,8 +20386,8 @@ lodash_merge.exports;
20386
20386
  (we !== void 0 && !qn(Pe[Xe], we) || we === void 0 && !(Xe in Pe)) && Bn(Pe, Xe, we);
20387
20387
  }
20388
20388
  function Yn(Pe, Xe, we) {
20389
- var Le = Pe[Xe];
20390
- (!(Ht.call(Pe, Xe) && qn(Le, we)) || we === void 0 && !(Xe in Pe)) && Bn(Pe, Xe, we);
20389
+ var Me = Pe[Xe];
20390
+ (!(Ht.call(Pe, Xe) && qn(Me, we)) || we === void 0 && !(Xe in Pe)) && Bn(Pe, Xe, we);
20391
20391
  }
20392
20392
  function dn(Pe, Xe) {
20393
20393
  for (var we = Pe.length; we--; )
@@ -20423,21 +20423,21 @@ lodash_merge.exports;
20423
20423
  if (!an(Pe))
20424
20424
  return wn(Pe);
20425
20425
  var Xe = cn(Pe), we = [];
20426
- for (var Le in Pe)
20427
- Le == "constructor" && (Xe || !Ht.call(Pe, Le)) || we.push(Le);
20426
+ for (var Me in Pe)
20427
+ Me == "constructor" && (Xe || !Ht.call(Pe, Me)) || we.push(Me);
20428
20428
  return we;
20429
20429
  }
20430
- function zn(Pe, Xe, we, Le, Ze) {
20430
+ function zn(Pe, Xe, we, Me, Ze) {
20431
20431
  Pe !== Xe && jn(Xe, function($t, jt) {
20432
20432
  if (Ze || (Ze = new Bt()), an($t))
20433
- ir(Pe, Xe, jt, we, zn, Le, Ze);
20433
+ ir(Pe, Xe, jt, we, zn, Me, Ze);
20434
20434
  else {
20435
- var Ft = Le ? Le(Wn(Pe, jt), $t, jt + "", Pe, Xe, Ze) : void 0;
20435
+ var Ft = Me ? Me(Wn(Pe, jt), $t, jt + "", Pe, Xe, Ze) : void 0;
20436
20436
  Ft === void 0 && (Ft = $t), xn(Pe, jt, Ft);
20437
20437
  }
20438
20438
  }, gn);
20439
20439
  }
20440
- function ir(Pe, Xe, we, Le, Ze, $t, jt) {
20440
+ function ir(Pe, Xe, we, Me, Ze, $t, jt) {
20441
20441
  var Ft = Wn(Pe, we), Vt = Wn(Xe, we), Gt = jt.get(Vt);
20442
20442
  if (Gt) {
20443
20443
  xn(Pe, we, Gt);
@@ -20446,12 +20446,12 @@ lodash_merge.exports;
20446
20446
  var Xt = $t ? $t(Ft, Vt, we + "", Pe, Xe, jt) : void 0, En = Xt === void 0;
20447
20447
  if (En) {
20448
20448
  var Rn = et(Vt), er = !Rn && nn(Vt), cr = !Rn && !er && yn(Vt);
20449
- Xt = Vt, Rn || er || cr ? et(Ft) ? Xt = Ft : Nt(Ft) ? Xt = Qe(Ft) : er ? (En = !1, Xt = Ve(Vt, !0)) : cr ? (En = !1, Xt = Je(Vt, !0)) : Xt = [] : hn(Vt) || Fe(Vt) ? (Xt = Ft, Fe(Ft) ? Xt = kn(Ft) : (!an(Ft) || qt(Ft)) && (Xt = Lt(Vt))) : En = !1;
20449
+ Xt = Vt, Rn || er || cr ? et(Ft) ? Xt = Ft : Nt(Ft) ? Xt = Qe(Ft) : er ? (En = !1, Xt = Ve(Vt, !0)) : cr ? (En = !1, Xt = Je(Vt, !0)) : Xt = [] : hn(Vt) || Fe(Vt) ? (Xt = Ft, Fe(Ft) ? Xt = kn(Ft) : (!an(Ft) || qt(Ft)) && (Xt = Mt(Vt))) : En = !1;
20450
20450
  }
20451
- En && (jt.set(Vt, Xt), Ze(Xt, Vt, Le, $t, jt), jt.delete(Vt)), xn(Pe, we, Xt);
20451
+ En && (jt.set(Vt, Xt), Ze(Xt, Vt, Me, $t, jt), jt.delete(Vt)), xn(Pe, we, Xt);
20452
20452
  }
20453
20453
  function tr(Pe, Xe) {
20454
- return Ln(Zn(Pe, Xe, Mn), Pe + "");
20454
+ return Mn(Zn(Pe, Xe, Ln), Pe + "");
20455
20455
  }
20456
20456
  var Ae = Pt ? function(Pe, Xe) {
20457
20457
  return Pt(Pe, "toString", {
@@ -20460,12 +20460,12 @@ lodash_merge.exports;
20460
20460
  value: Cn(Xe),
20461
20461
  writable: !0
20462
20462
  });
20463
- } : Mn;
20463
+ } : Ln;
20464
20464
  function Ve(Pe, Xe) {
20465
20465
  if (Xe)
20466
20466
  return Pe.slice();
20467
- var we = Pe.length, Le = ke ? ke(we) : new Pe.constructor(we);
20468
- return Pe.copy(Le), Le;
20467
+ var we = Pe.length, Me = ke ? ke(we) : new Pe.constructor(we);
20468
+ return Pe.copy(Me), Me;
20469
20469
  }
20470
20470
  function Oe(Pe) {
20471
20471
  var Xe = new Pe.constructor(Pe.byteLength);
@@ -20476,33 +20476,33 @@ lodash_merge.exports;
20476
20476
  return new Pe.constructor(we, Pe.byteOffset, Pe.length);
20477
20477
  }
20478
20478
  function Qe(Pe, Xe) {
20479
- var we = -1, Le = Pe.length;
20480
- for (Xe || (Xe = Array(Le)); ++we < Le; )
20479
+ var we = -1, Me = Pe.length;
20480
+ for (Xe || (Xe = Array(Me)); ++we < Me; )
20481
20481
  Xe[we] = Pe[we];
20482
20482
  return Xe;
20483
20483
  }
20484
- function Ke(Pe, Xe, we, Le) {
20484
+ function Ke(Pe, Xe, we, Me) {
20485
20485
  var Ze = !we;
20486
20486
  we || (we = {});
20487
20487
  for (var $t = -1, jt = Xe.length; ++$t < jt; ) {
20488
- var Ft = Xe[$t], Vt = Le ? Le(we[Ft], Pe[Ft], Ft, we, Pe) : void 0;
20488
+ var Ft = Xe[$t], Vt = Me ? Me(we[Ft], Pe[Ft], Ft, we, Pe) : void 0;
20489
20489
  Vt === void 0 && (Vt = Pe[Ft]), Ze ? Bn(we, Ft, Vt) : Yn(we, Ft, Vt);
20490
20490
  }
20491
20491
  return we;
20492
20492
  }
20493
20493
  function ft(Pe) {
20494
20494
  return tr(function(Xe, we) {
20495
- var Le = -1, Ze = we.length, $t = Ze > 1 ? we[Ze - 1] : void 0, jt = Ze > 2 ? we[2] : void 0;
20496
- for ($t = Pe.length > 3 && typeof $t == "function" ? (Ze--, $t) : void 0, jt && Jt(we[0], we[1], jt) && ($t = Ze < 3 ? void 0 : $t, Ze = 1), Xe = Object(Xe); ++Le < Ze; ) {
20497
- var Ft = we[Le];
20498
- Ft && Pe(Xe, Ft, Le, $t);
20495
+ var Me = -1, Ze = we.length, $t = Ze > 1 ? we[Ze - 1] : void 0, jt = Ze > 2 ? we[2] : void 0;
20496
+ for ($t = Pe.length > 3 && typeof $t == "function" ? (Ze--, $t) : void 0, jt && Jt(we[0], we[1], jt) && ($t = Ze < 3 ? void 0 : $t, Ze = 1), Xe = Object(Xe); ++Me < Ze; ) {
20497
+ var Ft = we[Me];
20498
+ Ft && Pe(Xe, Ft, Me, $t);
20499
20499
  }
20500
20500
  return Xe;
20501
20501
  });
20502
20502
  }
20503
20503
  function pt(Pe) {
20504
- return function(Xe, we, Le) {
20505
- for (var Ze = -1, $t = Object(Xe), jt = Le(Xe), Ft = jt.length; Ft--; ) {
20504
+ return function(Xe, we, Me) {
20505
+ for (var Ze = -1, $t = Object(Xe), jt = Me(Xe), Ft = jt.length; Ft--; ) {
20506
20506
  var Vt = jt[Pe ? Ft : ++Ze];
20507
20507
  if (we($t[Vt], Vt, $t) === !1)
20508
20508
  break;
@@ -20522,13 +20522,13 @@ lodash_merge.exports;
20522
20522
  var Xe = Ht.call(Pe, Tt), we = Pe[Tt];
20523
20523
  try {
20524
20524
  Pe[Tt] = void 0;
20525
- var Le = !0;
20525
+ var Me = !0;
20526
20526
  } catch {
20527
20527
  }
20528
20528
  var Ze = Ct.call(Pe);
20529
- return Le && (Xe ? Pe[Tt] = we : delete Pe[Tt]), Ze;
20529
+ return Me && (Xe ? Pe[Tt] = we : delete Pe[Tt]), Ze;
20530
20530
  }
20531
- function Lt(Pe) {
20531
+ function Mt(Pe) {
20532
20532
  return typeof Pe.constructor == "function" && !cn(Pe) ? Tn(Se(Pe)) : {};
20533
20533
  }
20534
20534
  function Wt(Pe, Xe) {
@@ -20538,8 +20538,8 @@ lodash_merge.exports;
20538
20538
  function Jt(Pe, Xe, we) {
20539
20539
  if (!an(we))
20540
20540
  return !1;
20541
- var Le = typeof Xe;
20542
- return (Le == "number" ? yt(we) && Wt(Xe, we.length) : Le == "string" && Xe in we) ? qn(we[Xe], Pe) : !1;
20541
+ var Me = typeof Xe;
20542
+ return (Me == "number" ? yt(we) && Wt(Xe, we.length) : Me == "string" && Xe in we) ? qn(we[Xe], Pe) : !1;
20543
20543
  }
20544
20544
  function tn(Pe) {
20545
20545
  var Xe = typeof Pe;
@@ -20564,24 +20564,24 @@ lodash_merge.exports;
20564
20564
  }
20565
20565
  function Zn(Pe, Xe, we) {
20566
20566
  return Xe = Sn(Xe === void 0 ? Pe.length - 1 : Xe, 0), function() {
20567
- for (var Le = arguments, Ze = -1, $t = Sn(Le.length - Xe, 0), jt = Array($t); ++Ze < $t; )
20568
- jt[Ze] = Le[Xe + Ze];
20567
+ for (var Me = arguments, Ze = -1, $t = Sn(Me.length - Xe, 0), jt = Array($t); ++Ze < $t; )
20568
+ jt[Ze] = Me[Xe + Ze];
20569
20569
  Ze = -1;
20570
20570
  for (var Ft = Array(Xe + 1); ++Ze < Xe; )
20571
- Ft[Ze] = Le[Ze];
20572
- return Ft[Xe] = we(jt), Me(Pe, this, Ft);
20571
+ Ft[Ze] = Me[Ze];
20572
+ return Ft[Xe] = we(jt), Le(Pe, this, Ft);
20573
20573
  };
20574
20574
  }
20575
20575
  function Wn(Pe, Xe) {
20576
20576
  if (!(Xe === "constructor" && typeof Pe[Xe] == "function") && Xe != "__proto__")
20577
20577
  return Pe[Xe];
20578
20578
  }
20579
- var Ln = sr(Ae);
20579
+ var Mn = sr(Ae);
20580
20580
  function sr(Pe) {
20581
20581
  var Xe = 0, we = 0;
20582
20582
  return function() {
20583
- var Le = bn(), Ze = K - (Le - we);
20584
- if (we = Le, Ze > 0) {
20583
+ var Me = bn(), Ze = K - (Me - we);
20584
+ if (we = Me, Ze > 0) {
20585
20585
  if (++Xe >= G)
20586
20586
  return arguments[0];
20587
20587
  } else
@@ -20657,7 +20657,7 @@ lodash_merge.exports;
20657
20657
  return Pe;
20658
20658
  };
20659
20659
  }
20660
- function Mn(Pe) {
20660
+ function Ln(Pe) {
20661
20661
  return Pe;
20662
20662
  }
20663
20663
  function Dn() {
@@ -24229,6 +24229,10 @@ var shadeNumbers = (
24229
24229
  light: "#ffffff",
24230
24230
  dark: "#ffffff"
24231
24231
  },
24232
+ transparent: {
24233
+ light: "transparent",
24234
+ dark: "transparent"
24235
+ },
24232
24236
  unavailable: {
24233
24237
  light: physicalColors.neutral[100],
24234
24238
  dark: physicalColors.neutral[600]
@@ -25225,16 +25229,16 @@ var hueTheme = {
25225
25229
  start: {
25226
25230
  width: "sm:data-[side=is]:is-[270px]",
25227
25231
  sidebar: "sm:data-[side=is]:-inline-start-[270px]",
25228
- content: "lg:data-[sidebar-inline-start-state=open]:pis-[270px]",
25232
+ content: "lg:data-[sidebar-inline-start-state=open]:pis-[270px] lg:data-[sidebar-inline-start-state=open]:scroll-ps-[270px]",
25229
25233
  notch: "max-is-[270px]"
25230
25234
  },
25231
25235
  // TODO(burdon): Maximal size for phone.
25232
25236
  end: {
25233
25237
  width: "sm:data-[side=ie]:is-[360px]",
25234
25238
  sidebar: "sm:data-[side=ie]:-inline-end-[360px]",
25235
- content: "lg:data-[sidebar-inline-end-state=open]:pie-[360px]"
25239
+ content: "lg:data-[sidebar-inline-end-state=open]:pie-[360px] lg:data-[sidebar-inline-end-state=open]:scroll-pe-[360px]"
25236
25240
  }
25237
- }, mainSidebar = ($, ...I) => mx("fixed block-start-0 block-end-0 is-[100vw] z-10 data-[side=ie]:z-20 overscroll-contain overflow-x-hidden overflow-y-auto", "transition-[inset-inline-start,inset-inline-end] duration-0 data-[resizing=false]:duration-200 ease-in-out", `data-[side=is]:-inline-start-[100vw] ${sidebarSlots.start.width} ${sidebarSlots.start.sidebar}`, `data-[side=ie]:-inline-end-[100vw] ${sidebarSlots.end.width} ${sidebarSlots.end.sidebar}`, "data-[side=is]:data-[state=open]:inline-start-0 data-[side=ie]:data-[state=open]:inline-end-0", "data-[side=is]:border-ie data-[side=ie]:border-is", fixedBorder, fixedSurface, ...I), mainContent = ({ bounce: $ }, ...I) => mx("transition-[padding-inline-start,padding-'inline-end'] duration-200 ease-in-out", `pis-0 ${sidebarSlots.start.content}`, `pie-0 ${sidebarSlots.end.content}`, $ && bounceLayout, ...I), mainOverlay = ($, ...I) => mx("fixed inset-0 z-[9] surface-scrim", "transition-opacity duration-200 ease-in-out", "opacity-0 data-[state=open]:opacity-100 lg:data-[state=open]:opacity-100", "hidden data-[state=open]:block lg:data-[state=open]:hidden", ...I), mainNotch = ($, ...I) => mx("fixed z-[11] block-end-0 inline-start-0 pbe-[env(safe-area-inset-bottom)] rounded-se-lg min-bs-[var(--rail-size)] is-fit separator-separator surface-base", "transition-[border-width] box-content border-bs border-ie data-[nav-sidebar-state=open]:border-bs-0 data-[nav-sidebar-state=open]:border-ie-0", "pli-1 grid grid-cols-[repeat(auto-fit,var(--rail-action))]", sidebarSlots.start.notch, ...I), mainTheme = {
25241
+ }, mainSidebar = ($, ...I) => mx("fixed block-start-0 block-end-0 is-[100vw] z-10 data-[side=ie]:z-20 overscroll-contain overflow-x-hidden overflow-y-auto", "transition-[inset-inline-start,inset-inline-end] duration-0 data-[resizing=false]:duration-200 ease-in-out", `data-[side=is]:-inline-start-[100vw] ${sidebarSlots.start.width} ${sidebarSlots.start.sidebar}`, `data-[side=ie]:-inline-end-[100vw] ${sidebarSlots.end.width} ${sidebarSlots.end.sidebar}`, "data-[side=is]:data-[state=open]:inline-start-0 data-[side=ie]:data-[state=open]:inline-end-0", "data-[side=is]:border-ie data-[side=ie]:border-is", fixedBorder, fixedSurface, ...I), mainContent = ({ bounce: $ }, ...I) => mx("transition-[padding-inline-start,padding-inline-end,scroll-padding-start,scroll-padding-end] duration-200 ease-in-out", `pis-0 scroll-ps-0 ${sidebarSlots.start.content}`, `pie-0 scroll-pe-0 ${sidebarSlots.end.content}`, $ && bounceLayout, ...I), mainOverlay = ($, ...I) => mx("fixed inset-0 z-[9] surface-scrim", "transition-opacity duration-200 ease-in-out", "opacity-0 data-[state=open]:opacity-100 lg:data-[state=open]:opacity-100", "hidden data-[state=open]:block lg:data-[state=open]:hidden", ...I), mainNotch = ($, ...I) => mx("fixed z-[11] block-end-0 inline-start-0 pbe-[env(safe-area-inset-bottom)] rounded-se-lg min-bs-[var(--rail-size)] is-fit separator-separator surface-base", "transition-[border-width] box-content border-bs border-ie data-[nav-sidebar-state=open]:border-bs-0 data-[nav-sidebar-state=open]:border-ie-0", "pli-1 grid grid-cols-[repeat(auto-fit,var(--rail-action))]", sidebarSlots.start.notch, ...I), mainTheme = {
25238
25242
  content: mainContent,
25239
25243
  sidebar: mainSidebar,
25240
25244
  overlay: mainOverlay,
@@ -69502,7 +69506,17 @@ function formatDistance($, I, U) {
69502
69506
  function formatDistanceToNow($, I) {
69503
69507
  return formatDistance($, Date.now(), I);
69504
69508
  }
69505
- var RPC_TIMEOUT = 2e4, SystemStatus;
69509
+ var RPC_TIMEOUT = 2e4, LogLevel;
69510
+ (function($) {
69511
+ $[$.TRACE = 5] = "TRACE", $[$.DEBUG = 10] = "DEBUG", $[$.INFO = 11] = "INFO", $[$.WARN = 12] = "WARN", $[$.ERROR = 13] = "ERROR";
69512
+ })(LogLevel || (LogLevel = {}));
69513
+ var QueryLogsRequest;
69514
+ (function($) {
69515
+ (function(I) {
69516
+ I[I.INCLUSIVE = 1] = "INCLUSIVE", I[I.EXPLICIT = 2] = "EXPLICIT";
69517
+ })($.MatchingOptions || ($.MatchingOptions = {}));
69518
+ })(QueryLogsRequest || (QueryLogsRequest = {}));
69519
+ var SystemStatus;
69506
69520
  (function($) {
69507
69521
  $[$.ACTIVE = 0] = "ACTIVE", $[$.INACTIVE = 1] = "INACTIVE";
69508
69522
  })(SystemStatus || (SystemStatus = {}));
@@ -69568,16 +69582,6 @@ var ConnectionState$2;
69568
69582
  (function($) {
69569
69583
  $[$.OFFLINE = 0] = "OFFLINE", $[$.ONLINE = 1] = "ONLINE";
69570
69584
  })(ConnectionState$2 || (ConnectionState$2 = {}));
69571
- var LogLevel;
69572
- (function($) {
69573
- $[$.TRACE = 5] = "TRACE", $[$.DEBUG = 10] = "DEBUG", $[$.INFO = 11] = "INFO", $[$.WARN = 12] = "WARN", $[$.ERROR = 13] = "ERROR";
69574
- })(LogLevel || (LogLevel = {}));
69575
- var QueryLogsRequest;
69576
- (function($) {
69577
- (function(I) {
69578
- I[I.INCLUSIVE = 1] = "INCLUSIVE", I[I.EXPLICIT = 2] = "EXPLICIT";
69579
- })($.MatchingOptions || ($.MatchingOptions = {}));
69580
- })(QueryLogsRequest || (QueryLogsRequest = {}));
69581
69585
  var ContextDisposedError = class extends Error {
69582
69586
  constructor() {
69583
69587
  super("Context disposed.");
@@ -70971,13 +70975,13 @@ ieee754.write = function($, I, U, q, G, K) {
70971
70975
  }, J.prototype.readUint32BE = J.prototype.readUInt32BE = function(ie, oe) {
70972
70976
  return ie = ie >>> 0, oe || tt(ie, 4, this.length), this[ie] * 16777216 + (this[ie + 1] << 16 | this[ie + 2] << 8 | this[ie + 3]);
70973
70977
  }, J.prototype.readBigUInt64LE = Ct(function(ie) {
70974
- ie = ie >>> 0, Me(ie, "offset");
70978
+ ie = ie >>> 0, Le(ie, "offset");
70975
70979
  const oe = this[ie], pe = this[ie + 7];
70976
70980
  (oe === void 0 || pe === void 0) && Ye(ie, this.length - 8);
70977
70981
  const ke = oe + this[++ie] * 2 ** 8 + this[++ie] * 2 ** 16 + this[++ie] * 2 ** 24, Se = this[++ie] + this[++ie] * 2 ** 8 + this[++ie] * 2 ** 16 + pe * 2 ** 24;
70978
70982
  return BigInt(ke) + (BigInt(Se) << BigInt(32));
70979
70983
  }), J.prototype.readBigUInt64BE = Ct(function(ie) {
70980
- ie = ie >>> 0, Me(ie, "offset");
70984
+ ie = ie >>> 0, Le(ie, "offset");
70981
70985
  const oe = this[ie], pe = this[ie + 7];
70982
70986
  (oe === void 0 || pe === void 0) && Ye(ie, this.length - 8);
70983
70987
  const ke = oe * 2 ** 24 + this[++ie] * 2 ** 16 + this[++ie] * 2 ** 8 + this[++ie], Se = this[++ie] * 2 ** 24 + this[++ie] * 2 ** 16 + this[++ie] * 2 ** 8 + pe;
@@ -71009,13 +71013,13 @@ ieee754.write = function($, I, U, q, G, K) {
71009
71013
  }, J.prototype.readInt32BE = function(ie, oe) {
71010
71014
  return ie = ie >>> 0, oe || tt(ie, 4, this.length), this[ie] << 24 | this[ie + 1] << 16 | this[ie + 2] << 8 | this[ie + 3];
71011
71015
  }, J.prototype.readBigInt64LE = Ct(function(ie) {
71012
- ie = ie >>> 0, Me(ie, "offset");
71016
+ ie = ie >>> 0, Le(ie, "offset");
71013
71017
  const oe = this[ie], pe = this[ie + 7];
71014
71018
  (oe === void 0 || pe === void 0) && Ye(ie, this.length - 8);
71015
71019
  const ke = this[ie + 4] + this[ie + 5] * 2 ** 8 + this[ie + 6] * 2 ** 16 + (pe << 24);
71016
71020
  return (BigInt(ke) << BigInt(32)) + BigInt(oe + this[++ie] * 2 ** 8 + this[++ie] * 2 ** 16 + this[++ie] * 2 ** 24);
71017
71021
  }), J.prototype.readBigInt64BE = Ct(function(ie) {
71018
- ie = ie >>> 0, Me(ie, "offset");
71022
+ ie = ie >>> 0, Le(ie, "offset");
71019
71023
  const oe = this[ie], pe = this[ie + 7];
71020
71024
  (oe === void 0 || pe === void 0) && Ye(ie, this.length - 8);
71021
71025
  const ke = (oe << 24) + // Overflow
@@ -71241,7 +71245,7 @@ ieee754.write = function($, I, U, q, G, K) {
71241
71245
  return `${de.slice(0, oe)}${ie}`;
71242
71246
  }
71243
71247
  function be(de, ie, oe) {
71244
- Me(ie, "offset"), (de[ie] === void 0 || de[ie + oe] === void 0) && Ye(ie, de.length - (oe + 1));
71248
+ Le(ie, "offset"), (de[ie] === void 0 || de[ie + oe] === void 0) && Ye(ie, de.length - (oe + 1));
71245
71249
  }
71246
71250
  function ye(de, ie, oe, pe, ke, Se) {
71247
71251
  if (de > oe || de < ie) {
@@ -71251,12 +71255,12 @@ ieee754.write = function($, I, U, q, G, K) {
71251
71255
  }
71252
71256
  be(pe, ke, Se);
71253
71257
  }
71254
- function Me(de, ie) {
71258
+ function Le(de, ie) {
71255
71259
  if (typeof de != "number")
71256
71260
  throw new Ie.ERR_INVALID_ARG_TYPE(ie, "number", de);
71257
71261
  }
71258
71262
  function Ye(de, ie, oe) {
71259
- throw Math.floor(de) !== de ? (Me(de, oe), new Ie.ERR_OUT_OF_RANGE(oe || "offset", "an integer", de)) : ie < 0 ? new Ie.ERR_BUFFER_OUT_OF_BOUNDS() : new Ie.ERR_OUT_OF_RANGE(
71263
+ throw Math.floor(de) !== de ? (Le(de, oe), new Ie.ERR_OUT_OF_RANGE(oe || "offset", "an integer", de)) : ie < 0 ? new Ie.ERR_BUFFER_OUT_OF_BOUNDS() : new Ie.ERR_OUT_OF_RANGE(
71260
71264
  oe || "offset",
71261
71265
  `>= ${oe ? 1 : 0} and <= ${ie}`,
71262
71266
  de
@@ -71799,8 +71803,8 @@ function require_stream_writable() {
71799
71803
  var ye = Ee(He, Re, Te);
71800
71804
  Re !== ye && (Ie = !0, Te = "buffer", Re = ye);
71801
71805
  }
71802
- var Me = He.objectMode ? 1 : Re.length;
71803
- He.length += Me;
71806
+ var Le = He.objectMode ? 1 : Re.length;
71807
+ He.length += Le;
71804
71808
  var Ye = He.length < He.highWaterMark;
71805
71809
  if (Ye || (He.needDrain = !0), He.writing || He.corked) {
71806
71810
  var ct = He.lastBufferedRequest;
@@ -71812,7 +71816,7 @@ function require_stream_writable() {
71812
71816
  next: null
71813
71817
  }, ct ? ct.next = He.lastBufferedRequest : He.bufferedRequest = He.lastBufferedRequest, He.bufferedRequestCount += 1;
71814
71818
  } else
71815
- Be(Ue, He, !1, Me, Re, Te, be);
71819
+ Be(Ue, He, !1, Le, Re, Te, be);
71816
71820
  return Ye;
71817
71821
  }
71818
71822
  function Be(Ue, He, Ie, Re, Te, be, ye) {
@@ -71847,9 +71851,9 @@ function require_stream_writable() {
71847
71851
  if (Ue._writev && Ie && Ie.next) {
71848
71852
  var Re = He.bufferedRequestCount, Te = new Array(Re), be = He.corkedRequestsFree;
71849
71853
  be.entry = Ie;
71850
- for (var ye = 0, Me = !0; Ie; )
71851
- Te[ye] = Ie, Ie.isBuf || (Me = !1), Ie = Ie.next, ye += 1;
71852
- Te.allBuffers = Me, Be(Ue, He, !0, He.length, Te, "", be.finish), He.pendingcb++, He.lastBufferedRequest = null, be.next ? (He.corkedRequestsFree = be.next, be.next = null) : He.corkedRequestsFree = new $(He), He.bufferedRequestCount = 0;
71854
+ for (var ye = 0, Le = !0; Ie; )
71855
+ Te[ye] = Ie, Ie.isBuf || (Le = !1), Ie = Ie.next, ye += 1;
71856
+ Te.allBuffers = Le, Be(Ue, He, !0, He.length, Te, "", be.finish), He.pendingcb++, He.lastBufferedRequest = null, be.next ? (He.corkedRequestsFree = be.next, be.next = null) : He.corkedRequestsFree = new $(He), He.bufferedRequestCount = 0;
71853
71857
  } else {
71854
71858
  for (; Ie; ) {
71855
71859
  var Ye = Ie.chunk, ct = Ie.encoding, ut = Ie.callback, wt = He.objectMode ? 1 : Ye.length;
@@ -72355,8 +72359,8 @@ function require_stream_readable() {
72355
72359
  hasRequired_stream_readable = 1, _stream_readable = $e;
72356
72360
  var $;
72357
72361
  $e.ReadableState = _e, eventsExports.EventEmitter;
72358
- var I = function(ye, Me) {
72359
- return ye.listeners(Me).length;
72362
+ var I = function(ye, Le) {
72363
+ return ye.listeners(Le).length;
72360
72364
  }, U = streamBrowser, q = buffer.Buffer, G = commonjsGlobal.Uint8Array || function() {
72361
72365
  };
72362
72366
  function K(be) {
@@ -72371,13 +72375,13 @@ function require_stream_readable() {
72371
72375
  var Q = requireBuffer_list(), ee = destroy_1, te = state, ne = te.getHighWaterMark, re = errorsBrowser.codes, ae = re.ERR_INVALID_ARG_TYPE, se = re.ERR_STREAM_PUSH_AFTER_EOF, fe = re.ERR_METHOD_NOT_IMPLEMENTED, le = re.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, ce, ue, he;
72372
72376
  inherits_browserExports($e, U);
72373
72377
  var ve = ee.errorOrDestroy, me = ["error", "close", "destroy", "pause", "resume"];
72374
- function ge(be, ye, Me) {
72378
+ function ge(be, ye, Le) {
72375
72379
  if (typeof be.prependListener == "function")
72376
- return be.prependListener(ye, Me);
72377
- !be._events || !be._events[ye] ? be.on(ye, Me) : Array.isArray(be._events[ye]) ? be._events[ye].unshift(Me) : be._events[ye] = [Me, be._events[ye]];
72380
+ return be.prependListener(ye, Le);
72381
+ !be._events || !be._events[ye] ? be.on(ye, Le) : Array.isArray(be._events[ye]) ? be._events[ye].unshift(Le) : be._events[ye] = [Le, be._events[ye]];
72378
72382
  }
72379
- function _e(be, ye, Me) {
72380
- $ = $ || require_stream_duplex(), be = be || {}, typeof Me != "boolean" && (Me = ye instanceof $), this.objectMode = !!be.objectMode, Me && (this.objectMode = this.objectMode || !!be.readableObjectMode), this.highWaterMark = ne(this, be, "readableHighWaterMark", Me), this.buffer = new Q(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.paused = !0, this.emitClose = be.emitClose !== !1, this.autoDestroy = !!be.autoDestroy, this.destroyed = !1, this.defaultEncoding = be.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, be.encoding && (ce || (ce = requireString_decoder().StringDecoder), this.decoder = new ce(be.encoding), this.encoding = be.encoding);
72383
+ function _e(be, ye, Le) {
72384
+ $ = $ || require_stream_duplex(), be = be || {}, typeof Le != "boolean" && (Le = ye instanceof $), this.objectMode = !!be.objectMode, Le && (this.objectMode = this.objectMode || !!be.readableObjectMode), this.highWaterMark = ne(this, be, "readableHighWaterMark", Le), this.buffer = new Q(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.paused = !0, this.emitClose = be.emitClose !== !1, this.autoDestroy = !!be.autoDestroy, this.destroyed = !1, this.defaultEncoding = be.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, be.encoding && (ce || (ce = requireString_decoder().StringDecoder), this.decoder = new ce(be.encoding), this.encoding = be.encoding);
72381
72385
  }
72382
72386
  function $e(be) {
72383
72387
  if ($ = $ || require_stream_duplex(), !(this instanceof $e))
@@ -72399,12 +72403,12 @@ function require_stream_readable() {
72399
72403
  }), $e.prototype.destroy = ee.destroy, $e.prototype._undestroy = ee.undestroy, $e.prototype._destroy = function(be, ye) {
72400
72404
  ye(be);
72401
72405
  }, $e.prototype.push = function(be, ye) {
72402
- var Me = this._readableState, Ye;
72403
- return Me.objectMode ? Ye = !0 : typeof be == "string" && (ye = ye || Me.defaultEncoding, ye !== Me.encoding && (be = q.from(be, ye), ye = ""), Ye = !0), Ce(this, be, ye, !1, Ye);
72406
+ var Le = this._readableState, Ye;
72407
+ return Le.objectMode ? Ye = !0 : typeof be == "string" && (ye = ye || Le.defaultEncoding, ye !== Le.encoding && (be = q.from(be, ye), ye = ""), Ye = !0), Ce(this, be, ye, !1, Ye);
72404
72408
  }, $e.prototype.unshift = function(be) {
72405
72409
  return Ce(this, be, null, !0, !1);
72406
72410
  };
72407
- function Ce(be, ye, Me, Ye, ct) {
72411
+ function Ce(be, ye, Le, Ye, ct) {
72408
72412
  Z("readableAddChunk", ye);
72409
72413
  var ut = be._readableState;
72410
72414
  if (ye === null)
@@ -72421,19 +72425,19 @@ function require_stream_readable() {
72421
72425
  else {
72422
72426
  if (ut.destroyed)
72423
72427
  return !1;
72424
- ut.reading = !1, ut.decoder && !Me ? (ye = ut.decoder.write(ye), ut.objectMode || ye.length !== 0 ? Ee(be, ut, ye, !1) : at(be, ut)) : Ee(be, ut, ye, !1);
72428
+ ut.reading = !1, ut.decoder && !Le ? (ye = ut.decoder.write(ye), ut.objectMode || ye.length !== 0 ? Ee(be, ut, ye, !1) : at(be, ut)) : Ee(be, ut, ye, !1);
72425
72429
  }
72426
72430
  else
72427
72431
  Ye || (ut.reading = !1, at(be, ut));
72428
72432
  }
72429
72433
  return !ut.ended && (ut.length < ut.highWaterMark || ut.length === 0);
72430
72434
  }
72431
- function Ee(be, ye, Me, Ye) {
72432
- ye.flowing && ye.length === 0 && !ye.sync ? (ye.awaitDrain = 0, be.emit("data", Me)) : (ye.length += ye.objectMode ? 1 : Me.length, Ye ? ye.buffer.unshift(Me) : ye.buffer.push(Me), ye.needReadable && st(be)), at(be, ye);
72435
+ function Ee(be, ye, Le, Ye) {
72436
+ ye.flowing && ye.length === 0 && !ye.sync ? (ye.awaitDrain = 0, be.emit("data", Le)) : (ye.length += ye.objectMode ? 1 : Le.length, Ye ? ye.buffer.unshift(Le) : ye.buffer.push(Le), ye.needReadable && st(be)), at(be, ye);
72433
72437
  }
72434
72438
  function xe(be, ye) {
72435
- var Me;
72436
- return !Y(ye) && typeof ye != "string" && ye !== void 0 && !be.objectMode && (Me = new ae("chunk", ["string", "Buffer", "Uint8Array"], ye)), Me;
72439
+ var Le;
72440
+ return !Y(ye) && typeof ye != "string" && ye !== void 0 && !be.objectMode && (Le = new ae("chunk", ["string", "Buffer", "Uint8Array"], ye)), Le;
72437
72441
  }
72438
72442
  $e.prototype.isPaused = function() {
72439
72443
  return this._readableState.flowing === !1;
@@ -72441,8 +72445,8 @@ function require_stream_readable() {
72441
72445
  ce || (ce = requireString_decoder().StringDecoder);
72442
72446
  var ye = new ce(be);
72443
72447
  this._readableState.decoder = ye, this._readableState.encoding = this._readableState.decoder.encoding;
72444
- for (var Me = this._readableState.buffer.head, Ye = ""; Me !== null; )
72445
- Ye += ye.write(Me.data), Me = Me.next;
72448
+ for (var Le = this._readableState.buffer.head, Ye = ""; Le !== null; )
72449
+ Ye += ye.write(Le.data), Le = Le.next;
72446
72450
  return this._readableState.buffer.clear(), Ye !== "" && this._readableState.buffer.push(Ye), this._readableState.length = Ye.length, this;
72447
72451
  };
72448
72452
  var Be = 1073741824;
@@ -72454,21 +72458,21 @@ function require_stream_readable() {
72454
72458
  }
72455
72459
  $e.prototype.read = function(be) {
72456
72460
  Z("read", be), be = parseInt(be, 10);
72457
- var ye = this._readableState, Me = be;
72461
+ var ye = this._readableState, Le = be;
72458
72462
  if (be !== 0 && (ye.emittedReadable = !1), be === 0 && ye.needReadable && ((ye.highWaterMark !== 0 ? ye.length >= ye.highWaterMark : ye.length > 0) || ye.ended))
72459
72463
  return Z("read: emitReadable", ye.length, ye.ended), ye.length === 0 && ye.ended ? Ie(this) : st(this), null;
72460
72464
  if (be = Ge(be, ye), be === 0 && ye.ended)
72461
72465
  return ye.length === 0 && Ie(this), null;
72462
72466
  var Ye = ye.needReadable;
72463
- Z("need readable", Ye), (ye.length === 0 || ye.length - be < ye.highWaterMark) && (Ye = !0, Z("length less than watermark", Ye)), ye.ended || ye.reading ? (Ye = !1, Z("reading or ended", Ye)) : Ye && (Z("do read"), ye.reading = !0, ye.sync = !0, ye.length === 0 && (ye.needReadable = !0), this._read(ye.highWaterMark), ye.sync = !1, ye.reading || (be = Ge(Me, ye)));
72467
+ Z("need readable", Ye), (ye.length === 0 || ye.length - be < ye.highWaterMark) && (Ye = !0, Z("length less than watermark", Ye)), ye.ended || ye.reading ? (Ye = !1, Z("reading or ended", Ye)) : Ye && (Z("do read"), ye.reading = !0, ye.sync = !0, ye.length === 0 && (ye.needReadable = !0), this._read(ye.highWaterMark), ye.sync = !1, ye.reading || (be = Ge(Le, ye)));
72464
72468
  var ct;
72465
- return be > 0 ? ct = He(be, ye) : ct = null, ct === null ? (ye.needReadable = ye.length <= ye.highWaterMark, be = 0) : (ye.length -= be, ye.awaitDrain = 0), ye.length === 0 && (ye.ended || (ye.needReadable = !0), Me !== be && ye.ended && Ie(this)), ct !== null && this.emit("data", ct), ct;
72469
+ return be > 0 ? ct = He(be, ye) : ct = null, ct === null ? (ye.needReadable = ye.length <= ye.highWaterMark, be = 0) : (ye.length -= be, ye.awaitDrain = 0), ye.length === 0 && (ye.ended || (ye.needReadable = !0), Le !== be && ye.ended && Ie(this)), ct !== null && this.emit("data", ct), ct;
72466
72470
  };
72467
72471
  function rt(be, ye) {
72468
72472
  if (Z("onEofChunk"), !ye.ended) {
72469
72473
  if (ye.decoder) {
72470
- var Me = ye.decoder.end();
72471
- Me && Me.length && (ye.buffer.push(Me), ye.length += ye.objectMode ? 1 : Me.length);
72474
+ var Le = ye.decoder.end();
72475
+ Le && Le.length && (ye.buffer.push(Le), ye.length += ye.objectMode ? 1 : Le.length);
72472
72476
  }
72473
72477
  ye.ended = !0, ye.sync ? st(be) : (ye.needReadable = !1, ye.emittedReadable || (ye.emittedReadable = !0, lt(be)));
72474
72478
  }
@@ -72486,8 +72490,8 @@ function require_stream_readable() {
72486
72490
  }
72487
72491
  function ht(be, ye) {
72488
72492
  for (; !ye.reading && !ye.ended && (ye.length < ye.highWaterMark || ye.flowing && ye.length === 0); ) {
72489
- var Me = ye.length;
72490
- if (Z("maybeReadMore read 0"), be.read(0), Me === ye.length)
72493
+ var Le = ye.length;
72494
+ if (Z("maybeReadMore read 0"), be.read(0), Le === ye.length)
72491
72495
  break;
72492
72496
  }
72493
72497
  ye.readingMore = !1;
@@ -72495,7 +72499,7 @@ function require_stream_readable() {
72495
72499
  $e.prototype._read = function(be) {
72496
72500
  ve(this, new fe("_read()"));
72497
72501
  }, $e.prototype.pipe = function(be, ye) {
72498
- var Me = this, Ye = this._readableState;
72502
+ var Le = this, Ye = this._readableState;
72499
72503
  switch (Ye.pipesCount) {
72500
72504
  case 0:
72501
72505
  Ye.pipes = be;
@@ -72509,24 +72513,24 @@ function require_stream_readable() {
72509
72513
  }
72510
72514
  Ye.pipesCount += 1, Z("pipe count=%d opts=%j", Ye.pipesCount, ye);
72511
72515
  var ct = (!ye || ye.end !== !1) && be !== process.stdout && be !== process.stderr, ut = ct ? St : zt;
72512
- Ye.endEmitted ? process.nextTick(ut) : Me.once("end", ut), be.on("unpipe", wt);
72516
+ Ye.endEmitted ? process.nextTick(ut) : Le.once("end", ut), be.on("unpipe", wt);
72513
72517
  function wt(de, ie) {
72514
- Z("onunpipe"), de === Me && ie && ie.hasUnpiped === !1 && (ie.hasUnpiped = !0, Kt());
72518
+ Z("onunpipe"), de === Le && ie && ie.hasUnpiped === !1 && (ie.hasUnpiped = !0, Kt());
72515
72519
  }
72516
72520
  function St() {
72517
72521
  Z("onend"), be.end();
72518
72522
  }
72519
- var it = tt(Me);
72523
+ var it = tt(Le);
72520
72524
  be.on("drain", it);
72521
72525
  var Ut = !1;
72522
72526
  function Kt() {
72523
- Z("cleanup"), be.removeListener("close", rn), be.removeListener("finish", Ct), be.removeListener("drain", it), be.removeListener("error", Ht), be.removeListener("unpipe", wt), Me.removeListener("end", St), Me.removeListener("end", zt), Me.removeListener("data", It), Ut = !0, Ye.awaitDrain && (!be._writableState || be._writableState.needDrain) && it();
72527
+ Z("cleanup"), be.removeListener("close", rn), be.removeListener("finish", Ct), be.removeListener("drain", it), be.removeListener("error", Ht), be.removeListener("unpipe", wt), Le.removeListener("end", St), Le.removeListener("end", zt), Le.removeListener("data", It), Ut = !0, Ye.awaitDrain && (!be._writableState || be._writableState.needDrain) && it();
72524
72528
  }
72525
- Me.on("data", It);
72529
+ Le.on("data", It);
72526
72530
  function It(de) {
72527
72531
  Z("ondata");
72528
72532
  var ie = be.write(de);
72529
- Z("dest.write", ie), ie === !1 && ((Ye.pipesCount === 1 && Ye.pipes === be || Ye.pipesCount > 1 && Te(Ye.pipes, be) !== -1) && !Ut && (Z("false write response, pause", Ye.awaitDrain), Ye.awaitDrain++), Me.pause());
72533
+ Z("dest.write", ie), ie === !1 && ((Ye.pipesCount === 1 && Ye.pipes === be || Ye.pipesCount > 1 && Te(Ye.pipes, be) !== -1) && !Ut && (Z("false write response, pause", Ye.awaitDrain), Ye.awaitDrain++), Le.pause());
72530
72534
  }
72531
72535
  function Ht(de) {
72532
72536
  Z("onerror", de), zt(), be.removeListener("error", Ht), I(be, "error") === 0 && ve(be, de);
@@ -72541,24 +72545,24 @@ function require_stream_readable() {
72541
72545
  }
72542
72546
  be.once("finish", Ct);
72543
72547
  function zt() {
72544
- Z("unpipe"), Me.unpipe(be);
72548
+ Z("unpipe"), Le.unpipe(be);
72545
72549
  }
72546
- return be.emit("pipe", Me), Ye.flowing || (Z("pipe resume"), Me.resume()), be;
72550
+ return be.emit("pipe", Le), Ye.flowing || (Z("pipe resume"), Le.resume()), be;
72547
72551
  };
72548
72552
  function tt(be) {
72549
72553
  return function() {
72550
- var Me = be._readableState;
72551
- Z("pipeOnDrain", Me.awaitDrain), Me.awaitDrain && Me.awaitDrain--, Me.awaitDrain === 0 && I(be, "data") && (Me.flowing = !0, Ue(be));
72554
+ var Le = be._readableState;
72555
+ Z("pipeOnDrain", Le.awaitDrain), Le.awaitDrain && Le.awaitDrain--, Le.awaitDrain === 0 && I(be, "data") && (Le.flowing = !0, Ue(be));
72552
72556
  };
72553
72557
  }
72554
72558
  $e.prototype.unpipe = function(be) {
72555
- var ye = this._readableState, Me = {
72559
+ var ye = this._readableState, Le = {
72556
72560
  hasUnpiped: !1
72557
72561
  };
72558
72562
  if (ye.pipesCount === 0)
72559
72563
  return this;
72560
72564
  if (ye.pipesCount === 1)
72561
- return be && be !== ye.pipes ? this : (be || (be = ye.pipes), ye.pipes = null, ye.pipesCount = 0, ye.flowing = !1, be && be.emit("unpipe", this, Me), this);
72565
+ return be && be !== ye.pipes ? this : (be || (be = ye.pipes), ye.pipes = null, ye.pipesCount = 0, ye.flowing = !1, be && be.emit("unpipe", this, Le), this);
72562
72566
  if (!be) {
72563
72567
  var Ye = ye.pipes, ct = ye.pipesCount;
72564
72568
  ye.pipes = null, ye.pipesCount = 0, ye.flowing = !1;
@@ -72569,13 +72573,13 @@ function require_stream_readable() {
72569
72573
  return this;
72570
72574
  }
72571
72575
  var wt = Te(ye.pipes, be);
72572
- return wt === -1 ? this : (ye.pipes.splice(wt, 1), ye.pipesCount -= 1, ye.pipesCount === 1 && (ye.pipes = ye.pipes[0]), be.emit("unpipe", this, Me), this);
72576
+ return wt === -1 ? this : (ye.pipes.splice(wt, 1), ye.pipesCount -= 1, ye.pipesCount === 1 && (ye.pipes = ye.pipes[0]), be.emit("unpipe", this, Le), this);
72573
72577
  }, $e.prototype.on = function(be, ye) {
72574
- var Me = U.prototype.on.call(this, be, ye), Ye = this._readableState;
72575
- return be === "data" ? (Ye.readableListening = this.listenerCount("readable") > 0, Ye.flowing !== !1 && this.resume()) : be === "readable" && !Ye.endEmitted && !Ye.readableListening && (Ye.readableListening = Ye.needReadable = !0, Ye.flowing = !1, Ye.emittedReadable = !1, Z("on readable", Ye.length, Ye.reading), Ye.length ? st(this) : Ye.reading || process.nextTick(qe, this)), Me;
72578
+ var Le = U.prototype.on.call(this, be, ye), Ye = this._readableState;
72579
+ return be === "data" ? (Ye.readableListening = this.listenerCount("readable") > 0, Ye.flowing !== !1 && this.resume()) : be === "readable" && !Ye.endEmitted && !Ye.readableListening && (Ye.readableListening = Ye.needReadable = !0, Ye.flowing = !1, Ye.emittedReadable = !1, Z("on readable", Ye.length, Ye.reading), Ye.length ? st(this) : Ye.reading || process.nextTick(qe, this)), Le;
72576
72580
  }, $e.prototype.addListener = $e.prototype.on, $e.prototype.removeListener = function(be, ye) {
72577
- var Me = U.prototype.removeListener.call(this, be, ye);
72578
- return be === "readable" && process.nextTick(ze, this), Me;
72581
+ var Le = U.prototype.removeListener.call(this, be, ye);
72582
+ return be === "readable" && process.nextTick(ze, this), Le;
72579
72583
  }, $e.prototype.removeAllListeners = function(be) {
72580
72584
  var ye = U.prototype.removeAllListeners.apply(this, arguments);
72581
72585
  return (be === "readable" || be === void 0) && process.nextTick(ze, this), ye;
@@ -72606,15 +72610,15 @@ function require_stream_readable() {
72606
72610
  ;
72607
72611
  }
72608
72612
  $e.prototype.wrap = function(be) {
72609
- var ye = this, Me = this._readableState, Ye = !1;
72613
+ var ye = this, Le = this._readableState, Ye = !1;
72610
72614
  be.on("end", function() {
72611
- if (Z("wrapped end"), Me.decoder && !Me.ended) {
72612
- var wt = Me.decoder.end();
72615
+ if (Z("wrapped end"), Le.decoder && !Le.ended) {
72616
+ var wt = Le.decoder.end();
72613
72617
  wt && wt.length && ye.push(wt);
72614
72618
  }
72615
72619
  ye.push(null);
72616
72620
  }), be.on("data", function(wt) {
72617
- if (Z("wrapped data"), Me.decoder && (wt = Me.decoder.write(wt)), !(Me.objectMode && wt == null) && !(!Me.objectMode && (!wt || !wt.length))) {
72621
+ if (Z("wrapped data"), Le.decoder && (wt = Le.decoder.write(wt)), !(Le.objectMode && wt == null) && !(!Le.objectMode && (!wt || !wt.length))) {
72618
72622
  var St = ye.push(wt);
72619
72623
  St || (Ye = !0, be.pause());
72620
72624
  }
@@ -72671,8 +72675,8 @@ function require_stream_readable() {
72671
72675
  function He(be, ye) {
72672
72676
  if (ye.length === 0)
72673
72677
  return null;
72674
- var Me;
72675
- return ye.objectMode ? Me = ye.buffer.shift() : !be || be >= ye.length ? (ye.decoder ? Me = ye.buffer.join("") : ye.buffer.length === 1 ? Me = ye.buffer.first() : Me = ye.buffer.concat(ye.length), ye.buffer.clear()) : Me = ye.buffer.consume(be, ye.decoder), Me;
72678
+ var Le;
72679
+ return ye.objectMode ? Le = ye.buffer.shift() : !be || be >= ye.length ? (ye.decoder ? Le = ye.buffer.join("") : ye.buffer.length === 1 ? Le = ye.buffer.first() : Le = ye.buffer.concat(ye.length), ye.buffer.clear()) : Le = ye.buffer.consume(be, ye.decoder), Le;
72676
72680
  }
72677
72681
  function Ie(be) {
72678
72682
  var ye = be._readableState;
@@ -72680,17 +72684,17 @@ function require_stream_readable() {
72680
72684
  }
72681
72685
  function Re(be, ye) {
72682
72686
  if (Z("endReadableNT", be.endEmitted, be.length), !be.endEmitted && be.length === 0 && (be.endEmitted = !0, ye.readable = !1, ye.emit("end"), be.autoDestroy)) {
72683
- var Me = ye._writableState;
72684
- (!Me || Me.autoDestroy && Me.finished) && ye.destroy();
72687
+ var Le = ye._writableState;
72688
+ (!Le || Le.autoDestroy && Le.finished) && ye.destroy();
72685
72689
  }
72686
72690
  }
72687
72691
  typeof Symbol == "function" && ($e.from = function(be, ye) {
72688
72692
  return he === void 0 && (he = requireFromBrowser()), he($e, be, ye);
72689
72693
  });
72690
72694
  function Te(be, ye) {
72691
- for (var Me = 0, Ye = be.length; Me < Ye; Me++)
72692
- if (be[Me] === ye)
72693
- return Me;
72695
+ for (var Le = 0, Ye = be.length; Le < Ye; Le++)
72696
+ if (be[Le] === ye)
72697
+ return Le;
72694
72698
  return -1;
72695
72699
  }
72696
72700
  return _stream_readable;
@@ -78252,8 +78256,8 @@ function parse($, I, U) {
78252
78256
  function xe(Re, Te, be) {
78253
78257
  var ye = G.line;
78254
78258
  if (Re && (typeof Re.comment != "string" && (Re.comment = Q()), Re.filename = parse.filename), Z("{", !0)) {
78255
- for (var Me; (Me = K()) !== "}"; )
78256
- Te(Me);
78259
+ for (var Le; (Le = K()) !== "}"; )
78260
+ Te(Le);
78257
78261
  Z(";", !0);
78258
78262
  } else
78259
78263
  be && be(), Z(";"), Re && (typeof Re.comment != "string" || q) && (Re.comment = Q(ye) || Re.comment);
@@ -78262,21 +78266,21 @@ function parse($, I, U) {
78262
78266
  if (!nameRe.test(Te = K()))
78263
78267
  throw ce(Te, "type name");
78264
78268
  var be = new Type(Te);
78265
- xe(be, function(Me) {
78266
- if (!Ee(be, Me))
78267
- switch (Me) {
78269
+ xe(be, function(Le) {
78270
+ if (!Ee(be, Le))
78271
+ switch (Le) {
78268
78272
  case "map":
78269
78273
  rt(be);
78270
78274
  break;
78271
78275
  case "required":
78272
78276
  case "repeated":
78273
- je(be, Me);
78277
+ je(be, Le);
78274
78278
  break;
78275
78279
  case "optional":
78276
78280
  se ? je(be, "proto3_optional") : je(be, "optional");
78277
78281
  break;
78278
78282
  case "oneof":
78279
- st(be, Me);
78283
+ st(be, Le);
78280
78284
  break;
78281
78285
  case "extensions":
78282
78286
  ve(be.extensions || (be.extensions = []));
@@ -78285,9 +78289,9 @@ function parse($, I, U) {
78285
78289
  ve(be.reserved || (be.reserved = []), !0);
78286
78290
  break;
78287
78291
  default:
78288
- if (!se || !typeRefRe.test(Me))
78289
- throw ce(Me);
78290
- Y(Me), je(be, "optional");
78292
+ if (!se || !typeRefRe.test(Le))
78293
+ throw ce(Le);
78294
+ Y(Le), je(be, "optional");
78291
78295
  break;
78292
78296
  }
78293
78297
  }), Re.add(be);
@@ -78300,11 +78304,11 @@ function parse($, I, U) {
78300
78304
  }
78301
78305
  if (!typeRefRe.test(ye))
78302
78306
  throw ce(ye, "type");
78303
- var Me = K();
78304
- if (!nameRe.test(Me))
78305
- throw ce(Me, "name");
78306
- Me = le(Me), Z("=");
78307
- var Ye = new Field(Me, ge(K()), ye, Te, be);
78307
+ var Le = K();
78308
+ if (!nameRe.test(Le))
78309
+ throw ce(Le, "name");
78310
+ Le = le(Le), Z("=");
78311
+ var Ye = new Field(Le, ge(K()), ye, Te, be);
78308
78312
  if (xe(Ye, function(wt) {
78309
78313
  if (wt === "option")
78310
78314
  ht(Ye, wt), Z(";");
@@ -78313,7 +78317,7 @@ function parse($, I, U) {
78313
78317
  }, function() {
78314
78318
  nt(Ye);
78315
78319
  }), Te === "proto3_optional") {
78316
- var ct = new OneOf("_" + Me);
78320
+ var ct = new OneOf("_" + Le);
78317
78321
  Ye.setOption("proto3_optional", !0), ct.add(Ye), Re.add(ct);
78318
78322
  } else
78319
78323
  Re.add(Ye);
@@ -78330,9 +78334,9 @@ function parse($, I, U) {
78330
78334
  throw ce(be, "name");
78331
78335
  var ye = util.lcFirst(be);
78332
78336
  be === ye && (be = util.ucFirst(be)), Z("=");
78333
- var Me = ge(K()), Ye = new Type(be);
78337
+ var Le = ge(K()), Ye = new Type(be);
78334
78338
  Ye.group = !0;
78335
- var ct = new Field(ye, Me, be, Te);
78339
+ var ct = new Field(ye, Le, be, Te);
78336
78340
  ct.filename = parse.filename, xe(Ye, function(wt) {
78337
78341
  switch (wt) {
78338
78342
  case "option":
@@ -78370,38 +78374,38 @@ function parse($, I, U) {
78370
78374
  if (!nameRe.test(ye))
78371
78375
  throw ce(ye, "name");
78372
78376
  Z("=");
78373
- var Me = new MapField(le(ye), ge(K()), Te, be);
78374
- xe(Me, function(ct) {
78377
+ var Le = new MapField(le(ye), ge(K()), Te, be);
78378
+ xe(Le, function(ct) {
78375
78379
  if (ct === "option")
78376
- ht(Me, ct), Z(";");
78380
+ ht(Le, ct), Z(";");
78377
78381
  else
78378
78382
  throw ce(ct);
78379
78383
  }, function() {
78380
- nt(Me);
78381
- }), Re.add(Me);
78384
+ nt(Le);
78385
+ }), Re.add(Le);
78382
78386
  }
78383
78387
  function st(Re, Te) {
78384
78388
  if (!nameRe.test(Te = K()))
78385
78389
  throw ce(Te, "name");
78386
78390
  var be = new OneOf(le(Te));
78387
- xe(be, function(Me) {
78388
- Me === "option" ? (ht(be, Me), Z(";")) : (Y(Me), je(be, "optional"));
78391
+ xe(be, function(Le) {
78392
+ Le === "option" ? (ht(be, Le), Z(";")) : (Y(Le), je(be, "optional"));
78389
78393
  }), Re.add(be);
78390
78394
  }
78391
78395
  function lt(Re, Te) {
78392
78396
  if (!nameRe.test(Te = K()))
78393
78397
  throw ce(Te, "name");
78394
78398
  var be = new Enum(Te);
78395
- xe(be, function(Me) {
78396
- switch (Me) {
78399
+ xe(be, function(Le) {
78400
+ switch (Le) {
78397
78401
  case "option":
78398
- ht(be, Me), Z(";");
78402
+ ht(be, Le), Z(";");
78399
78403
  break;
78400
78404
  case "reserved":
78401
78405
  ve(be.reserved || (be.reserved = []), !0);
78402
78406
  break;
78403
78407
  default:
78404
- at(be, Me);
78408
+ at(be, Le);
78405
78409
  }
78406
78410
  }), Re.add(be);
78407
78411
  }
@@ -78412,8 +78416,8 @@ function parse($, I, U) {
78412
78416
  var be = ge(K(), !0), ye = {
78413
78417
  options: void 0
78414
78418
  };
78415
- ye.setOption = function(Me, Ye) {
78416
- this.options === void 0 && (this.options = {}), this.options[Me] = Ye;
78419
+ ye.setOption = function(Le, Ye) {
78420
+ this.options === void 0 && (this.options = {}), this.options[Le] = Ye;
78417
78421
  }, xe(ye, function(Ye) {
78418
78422
  if (Ye === "option")
78419
78423
  ht(ye, Ye), Z(";");
@@ -78427,17 +78431,17 @@ function parse($, I, U) {
78427
78431
  var be = Z("(", !0);
78428
78432
  if (!typeRefRe.test(Te = K()))
78429
78433
  throw ce(Te, "name");
78430
- var ye = Te, Me = ye, Ye;
78431
- be && (Z(")"), ye = "(" + ye + ")", Me = ye, Te = J(), fqTypeRefRe.test(Te) && (Ye = Te.slice(1), ye += Te, K())), Z("=");
78434
+ var ye = Te, Le = ye, Ye;
78435
+ be && (Z(")"), ye = "(" + ye + ")", Le = ye, Te = J(), fqTypeRefRe.test(Te) && (Ye = Te.slice(1), ye += Te, K())), Z("=");
78432
78436
  var ct = tt(Re, ye);
78433
- qe(Re, Me, ct, Ye);
78437
+ qe(Re, Le, ct, Ye);
78434
78438
  }
78435
78439
  function tt(Re, Te) {
78436
78440
  if (Z("{", !0)) {
78437
78441
  for (var be = {}; !Z("}", !0); ) {
78438
78442
  if (!nameRe.test(Ie = K()))
78439
78443
  throw ce(Ie, "name");
78440
- var ye, Me = Ie;
78444
+ var ye, Le = Ie;
78441
78445
  if (Z(":", !0), J() === "{")
78442
78446
  ye = tt(Re, Te + "." + Ie);
78443
78447
  else if (J() === "[") {
@@ -78451,8 +78455,8 @@ function parse($, I, U) {
78451
78455
  }
78452
78456
  } else
78453
78457
  ye = he(!0), ze(Re, Te + "." + Ie, ye);
78454
- var ct = be[Me];
78455
- ct && (ye = [].concat(ct).concat(ye)), be[Me] = ye, Z(",", !0), Z(";", !0);
78458
+ var ct = be[Le];
78459
+ ct && (ye = [].concat(ct).concat(ye)), be[Le] = ye, Z(",", !0), Z(";", !0);
78456
78460
  }
78457
78461
  return be;
78458
78462
  }
@@ -78478,23 +78482,23 @@ function parse($, I, U) {
78478
78482
  if (!nameRe.test(Te = K()))
78479
78483
  throw ce(Te, "service name");
78480
78484
  var be = new Service(Te);
78481
- xe(be, function(Me) {
78482
- if (!Ee(be, Me))
78483
- if (Me === "rpc")
78484
- Ue(be, Me);
78485
+ xe(be, function(Le) {
78486
+ if (!Ee(be, Le))
78487
+ if (Le === "rpc")
78488
+ Ue(be, Le);
78485
78489
  else
78486
- throw ce(Me);
78490
+ throw ce(Le);
78487
78491
  }), Re.add(be);
78488
78492
  }
78489
78493
  function Ue(Re, Te) {
78490
78494
  var be = Q(), ye = Te;
78491
78495
  if (!nameRe.test(Te = K()))
78492
78496
  throw ce(Te, "name");
78493
- var Me = Te, Ye, ct, ut, wt;
78497
+ var Le = Te, Ye, ct, ut, wt;
78494
78498
  if (Z("("), Z("stream", !0) && (ct = !0), !typeRefRe.test(Te = K()) || (Ye = Te, Z(")"), Z("returns"), Z("("), Z("stream", !0) && (wt = !0), !typeRefRe.test(Te = K())))
78495
78499
  throw ce(Te);
78496
78500
  ut = Te, Z(")");
78497
- var St = new Method(Me, ye, Ye, ut, ct, wt);
78501
+ var St = new Method(Le, ye, Ye, ut, ct, wt);
78498
78502
  St.comment = be, xe(St, function(Ut) {
78499
78503
  if (Ut === "option")
78500
78504
  ht(St, Ut), Z(";");
@@ -78506,19 +78510,19 @@ function parse($, I, U) {
78506
78510
  if (!typeRefRe.test(Te = K()))
78507
78511
  throw ce(Te, "reference");
78508
78512
  var be = Te;
78509
- xe(null, function(Me) {
78510
- switch (Me) {
78513
+ xe(null, function(Le) {
78514
+ switch (Le) {
78511
78515
  case "required":
78512
78516
  case "repeated":
78513
- je(Re, Me, be);
78517
+ je(Re, Le, be);
78514
78518
  break;
78515
78519
  case "optional":
78516
78520
  se ? je(Re, "proto3_optional", be) : je(Re, "optional", be);
78517
78521
  break;
78518
78522
  default:
78519
- if (!se || !typeRefRe.test(Me))
78520
- throw ce(Me);
78521
- Y(Me), je(Re, "optional", be);
78523
+ if (!se || !typeRefRe.test(Le))
78524
+ throw ce(Le);
78525
+ Y(Le), je(Re, "optional", be);
78522
78526
  break;
78523
78527
  }
78524
78528
  });
@@ -79273,7 +79277,7 @@ dist$1.addValue = memory_1.addValue;
79273
79277
  var helpers_1 = helpers;
79274
79278
  dist$1.trimUndefined = helpers_1.trimUndefined;
79275
79279
  dist$1.trimUndefinedRecursively = helpers_1.trimUndefinedRecursively;
79276
- var __dxlog_file3$4 = "/home/runner/work/dxos/dxos/packages/common/codec-protobuf/src/stream.ts", Stream$1 = class dr {
79280
+ var __dxlog_file3$3 = "/home/runner/work/dxos/dxos/packages/common/codec-protobuf/src/stream.ts", Stream$1 = class dr {
79277
79281
  constructor(I) {
79278
79282
  this._messageHandler = void 0, this._closeHandler = void 0, this._readyHandler = void 0, this._isClosed = !1, this._closeError = void 0, this._producerCleanup = void 0, this._isReady = !1, this._buffer = [], this._readyPromise = new Promise((U) => {
79279
79283
  this._resolveReadyPromise = U;
@@ -79292,7 +79296,7 @@ var __dxlog_file3$4 = "/home/runner/work/dxos/dxos/packages/common/codec-protobu
79292
79296
  next: (q) => {
79293
79297
  if (this._isClosed) {
79294
79298
  log$2("Stream is closed, dropping message.", void 0, {
79295
- F: __dxlog_file3$4,
79299
+ F: __dxlog_file3$3,
79296
79300
  L: 207,
79297
79301
  S: this,
79298
79302
  C: (G, K) => G(...K)
@@ -79307,7 +79311,7 @@ var __dxlog_file3$4 = "/home/runner/work/dxos/dxos/packages/common/codec-protobu
79307
79311
  }
79308
79312
  else
79309
79313
  invariant(this._buffer, void 0, {
79310
- F: __dxlog_file3$4,
79314
+ F: __dxlog_file3$3,
79311
79315
  L: 221,
79312
79316
  S: this,
79313
79317
  A: [
@@ -79409,7 +79413,7 @@ var __dxlog_file3$4 = "/home/runner/work/dxos/dxos/packages/common/codec-protobu
79409
79413
  // TODO(burdon): Can this be cancelled?
79410
79414
  subscribe(I, U) {
79411
79415
  invariant(!this._messageHandler, "Stream is already subscribed to.", {
79412
- F: __dxlog_file3$4,
79416
+ F: __dxlog_file3$3,
79413
79417
  L: 262,
79414
79418
  S: this,
79415
79419
  A: [
@@ -79417,7 +79421,7 @@ var __dxlog_file3$4 = "/home/runner/work/dxos/dxos/packages/common/codec-protobu
79417
79421
  "'Stream is already subscribed to.'"
79418
79422
  ]
79419
79423
  }), invariant(!this._closeHandler, "Stream is already subscribed to.", {
79420
- F: __dxlog_file3$4,
79424
+ F: __dxlog_file3$3,
79421
79425
  L: 263,
79422
79426
  S: this,
79423
79427
  A: [
@@ -79425,7 +79429,7 @@ var __dxlog_file3$4 = "/home/runner/work/dxos/dxos/packages/common/codec-protobu
79425
79429
  "'Stream is already subscribed to.'"
79426
79430
  ]
79427
79431
  }), invariant(this._buffer, void 0, {
79428
- F: __dxlog_file3$4,
79432
+ F: __dxlog_file3$3,
79429
79433
  L: 264,
79430
79434
  S: this,
79431
79435
  A: [
@@ -79457,7 +79461,7 @@ var __dxlog_file3$4 = "/home/runner/work/dxos/dxos/packages/common/codec-protobu
79457
79461
  */
79458
79462
  onReady(I) {
79459
79463
  invariant(!this._readyHandler, "Stream already has a handler for the ready event.", {
79460
- F: __dxlog_file3$4,
79464
+ F: __dxlog_file3$3,
79461
79465
  L: 299,
79462
79466
  S: this,
79463
79467
  A: [
@@ -79934,7 +79938,7 @@ lodash_ismatch.exports;
79934
79938
  Nt[yt] = et(yt);
79935
79939
  return Nt;
79936
79940
  }
79937
- function Me(Fe) {
79941
+ function Le(Fe) {
79938
79942
  return function(et) {
79939
79943
  return Fe(et);
79940
79944
  };
@@ -80056,10 +80060,10 @@ lodash_ismatch.exports;
80056
80060
  function Bt(Fe) {
80057
80061
  return Je(this, Fe).has(Fe);
80058
80062
  }
80059
- function Mt(Fe, et) {
80063
+ function Lt(Fe, et) {
80060
80064
  return Je(this, Fe).set(Fe, et), this;
80061
80065
  }
80062
- ot.prototype.clear = dt, ot.prototype.delete = Et, ot.prototype.get = Rt, ot.prototype.has = Bt, ot.prototype.set = Mt;
80066
+ ot.prototype.clear = dt, ot.prototype.delete = Et, ot.prototype.get = Rt, ot.prototype.has = Bt, ot.prototype.set = Lt;
80063
80067
  function Ot(Fe) {
80064
80068
  var et = -1, yt = Fe ? Fe.length : 0;
80065
80069
  for (this.__data__ = new ot(); ++et < yt; )
@@ -80114,7 +80118,7 @@ lodash_ismatch.exports;
80114
80118
  return zt.call(Fe);
80115
80119
  }
80116
80120
  function Xn(Fe, et, yt, Nt, nn) {
80117
- return Fe === et ? !0 : Fe == null || et == null || !Wn(Fe) && !Ln(et) ? Fe !== Fe && et !== et : nr(Fe, et, Xn, yt, Nt, nn);
80121
+ return Fe === et ? !0 : Fe == null || et == null || !Wn(Fe) && !Mn(et) ? Fe !== Fe && et !== et : nr(Fe, et, Xn, yt, Nt, nn);
80118
80122
  }
80119
80123
  function nr(Fe, et, yt, Nt, nn, qt) {
80120
80124
  var pn = fn(Fe), an = fn(et), en = Z, hn = Z;
@@ -80125,8 +80129,8 @@ lodash_ismatch.exports;
80125
80129
  if (!(nn & K)) {
80126
80130
  var In = yn && Ct.call(Fe, "__wrapped__"), Cn = kn && Ct.call(et, "__wrapped__");
80127
80131
  if (In || Cn) {
80128
- var Mn = In ? Fe.value() : Fe, Dn = Cn ? et.value() : et;
80129
- return qt || (qt = new Yt()), yt(Mn, Dn, Nt, nn, qt);
80132
+ var Ln = In ? Fe.value() : Fe, Dn = Cn ? et.value() : et;
80133
+ return qt || (qt = new Yt()), yt(Ln, Dn, Nt, nn, qt);
80130
80134
  }
80131
80135
  }
80132
80136
  return gn ? (qt || (qt = new Yt()), Oe(Fe, et, yt, Nt, nn, qt)) : !1;
@@ -80163,7 +80167,7 @@ lodash_ismatch.exports;
80163
80167
  return et.test(Wt(Fe));
80164
80168
  }
80165
80169
  function ir(Fe) {
80166
- return Ln(Fe) && Zn(Fe.length) && !!tt[zt.call(Fe)];
80170
+ return Mn(Fe) && Zn(Fe.length) && !!tt[zt.call(Fe)];
80167
80171
  }
80168
80172
  function tr(Fe) {
80169
80173
  if (!kt(Fe))
@@ -80184,9 +80188,9 @@ lodash_ismatch.exports;
80184
80188
  for (qt.set(Fe, et), qt.set(et, Fe); ++yn < an; ) {
80185
80189
  var In = Fe[yn], Cn = et[yn];
80186
80190
  if (Nt)
80187
- var Mn = pn ? Nt(Cn, In, yn, et, Fe, qt) : Nt(In, Cn, yn, Fe, et, qt);
80188
- if (Mn !== void 0) {
80189
- if (Mn)
80191
+ var Ln = pn ? Nt(Cn, In, yn, et, Fe, qt) : Nt(In, Cn, yn, Fe, et, qt);
80192
+ if (Ln !== void 0) {
80193
+ if (Ln)
80190
80194
  continue;
80191
80195
  kn = !1;
80192
80196
  break;
@@ -80255,7 +80259,7 @@ lodash_ismatch.exports;
80255
80259
  return In == et;
80256
80260
  var Cn = !0;
80257
80261
  qt.set(Fe, et), qt.set(et, Fe);
80258
- for (var Mn = pn; ++kn < en; ) {
80262
+ for (var Ln = pn; ++kn < en; ) {
80259
80263
  gn = an[kn];
80260
80264
  var Dn = Fe[gn], Pe = et[gn];
80261
80265
  if (Nt)
@@ -80264,11 +80268,11 @@ lodash_ismatch.exports;
80264
80268
  Cn = !1;
80265
80269
  break;
80266
80270
  }
80267
- Mn || (Mn = gn == "constructor");
80271
+ Ln || (Ln = gn == "constructor");
80268
80272
  }
80269
- if (Cn && !Mn) {
80270
- var we = Fe.constructor, Le = et.constructor;
80271
- we != Le && "constructor" in Fe && "constructor" in et && !(typeof we == "function" && we instanceof we && typeof Le == "function" && Le instanceof Le) && (Cn = !1);
80273
+ if (Cn && !Ln) {
80274
+ var we = Fe.constructor, Me = et.constructor;
80275
+ we != Me && "constructor" in Fe && "constructor" in et && !(typeof we == "function" && we instanceof we && typeof Me == "function" && Me instanceof Me) && (Cn = !1);
80272
80276
  }
80273
80277
  return qt.delete(Fe), qt.delete(et), Cn;
80274
80278
  }
@@ -80279,7 +80283,7 @@ lodash_ismatch.exports;
80279
80283
  function Qe(Fe) {
80280
80284
  for (var et = qn(Fe), yt = et.length; yt--; ) {
80281
80285
  var Nt = et[yt], nn = Fe[Nt];
80282
- et[yt] = [Nt, nn, Lt(nn)];
80286
+ et[yt] = [Nt, nn, Mt(nn)];
80283
80287
  }
80284
80288
  return et;
80285
80289
  }
@@ -80319,7 +80323,7 @@ lodash_ismatch.exports;
80319
80323
  var et = Fe && Fe.constructor, yt = typeof et == "function" && et.prototype || Kt;
80320
80324
  return Fe === yt;
80321
80325
  }
80322
- function Lt(Fe) {
80326
+ function Mt(Fe) {
80323
80327
  return Fe === Fe && !Wn(Fe);
80324
80328
  }
80325
80329
  function Wt(Fe) {
@@ -80346,7 +80350,7 @@ lodash_ismatch.exports;
80346
80350
  return Fe != null && Zn(Fe.length) && !Hn(Fe);
80347
80351
  }
80348
80352
  function wn(Fe) {
80349
- return Ln(Fe) && cn(Fe);
80353
+ return Mn(Fe) && cn(Fe);
80350
80354
  }
80351
80355
  function Hn(Fe) {
80352
80356
  var et = Wn(Fe) ? zt.call(Fe) : "";
@@ -80359,13 +80363,13 @@ lodash_ismatch.exports;
80359
80363
  var et = typeof Fe;
80360
80364
  return !!Fe && (et == "object" || et == "function");
80361
80365
  }
80362
- function Ln(Fe) {
80366
+ function Mn(Fe) {
80363
80367
  return !!Fe && typeof Fe == "object";
80364
80368
  }
80365
80369
  function sr(Fe, et) {
80366
80370
  return Fe === et || rr(Fe, et, Qe(et));
80367
80371
  }
80368
- var ar = Te ? Me(Te) : ir;
80372
+ var ar = Te ? Le(Te) : ir;
80369
80373
  function qn(Fe) {
80370
80374
  return cn(Fe) ? jn(Fe) : tr(Fe);
80371
80375
  }
@@ -81063,8 +81067,8 @@ var localforage = { exports: {} };
81063
81067
  return Oe.db = kt, Ge(Oe, Ve._defaultConfig.version) ? je(Oe) : kt;
81064
81068
  }).then(function(kt) {
81065
81069
  Oe.db = Qe.db = kt, Ve._dbInfo = Oe;
81066
- for (var Lt = 0; Lt < bt.length; Lt++) {
81067
- var Wt = bt[Lt];
81070
+ for (var Mt = 0; Mt < bt.length; Mt++) {
81071
+ var Wt = bt[Mt];
81068
81072
  Wt !== Ve && (Wt._dbInfo.db = Oe.db, Wt._dbInfo.version = Oe.version);
81069
81073
  }
81070
81074
  });
@@ -81102,19 +81106,19 @@ var localforage = { exports: {} };
81102
81106
  try {
81103
81107
  var gt = pt.objectStore(Oe._dbInfo.storeName), bt = gt.openCursor(), kt = 1;
81104
81108
  bt.onsuccess = function() {
81105
- var Lt = bt.result;
81106
- if (Lt) {
81107
- var Wt = Lt.value;
81109
+ var Mt = bt.result;
81110
+ if (Mt) {
81111
+ var Wt = Mt.value;
81108
81112
  lt(Wt) && (Wt = st(Wt));
81109
- var Jt = Ae(Wt, Lt.key, kt++);
81110
- Jt !== void 0 ? Qe(Jt) : Lt.continue();
81113
+ var Jt = Ae(Wt, Mt.key, kt++);
81114
+ Jt !== void 0 ? Qe(Jt) : Mt.continue();
81111
81115
  } else
81112
81116
  Qe();
81113
81117
  }, bt.onerror = function() {
81114
81118
  Ke(bt.error);
81115
81119
  };
81116
- } catch (Lt) {
81117
- Ke(Lt);
81120
+ } catch (Mt) {
81121
+ Ke(Mt);
81118
81122
  }
81119
81123
  });
81120
81124
  }).catch(Ke);
@@ -81135,9 +81139,9 @@ var localforage = { exports: {} };
81135
81139
  if (bt)
81136
81140
  return ft(bt);
81137
81141
  try {
81138
- var Lt = kt.objectStore(Je._dbInfo.storeName);
81142
+ var Mt = kt.objectStore(Je._dbInfo.storeName);
81139
81143
  gt === null && (gt = void 0);
81140
- var Wt = Lt.put(gt, Ae);
81144
+ var Wt = Mt.put(gt, Ae);
81141
81145
  kt.oncomplete = function() {
81142
81146
  gt === void 0 && (gt = null), Ke(gt);
81143
81147
  }, kt.onabort = kt.onerror = function() {
@@ -81234,17 +81238,17 @@ var localforage = { exports: {} };
81234
81238
  try {
81235
81239
  var gt = pt.objectStore(Oe._dbInfo.storeName), bt = !1, kt = gt.openKeyCursor();
81236
81240
  kt.onsuccess = function() {
81237
- var Lt = kt.result;
81238
- if (!Lt) {
81241
+ var Mt = kt.result;
81242
+ if (!Mt) {
81239
81243
  Qe(null);
81240
81244
  return;
81241
81245
  }
81242
- Ae === 0 || bt ? Qe(Lt.key) : (bt = !0, Lt.advance(Ae));
81246
+ Ae === 0 || bt ? Qe(Mt.key) : (bt = !0, Mt.advance(Ae));
81243
81247
  }, kt.onerror = function() {
81244
81248
  Ke(kt.error);
81245
81249
  };
81246
- } catch (Lt) {
81247
- Ke(Lt);
81250
+ } catch (Mt) {
81251
+ Ke(Mt);
81248
81252
  }
81249
81253
  });
81250
81254
  }).catch(Ke);
@@ -81298,8 +81302,8 @@ var localforage = { exports: {} };
81298
81302
  $e(Ae);
81299
81303
  var bt = ce[Ae.name], kt = bt.forages;
81300
81304
  pt.close();
81301
- for (var Lt = 0; Lt < kt.length; Lt++) {
81302
- var Wt = kt[Lt];
81305
+ for (var Mt = 0; Mt < kt.length; Mt++) {
81306
+ var Wt = kt[Mt];
81303
81307
  Wt._dbInfo.db = null, Wt._dbInfo.version = gt;
81304
81308
  }
81305
81309
  var Jt = new te(function(tn, fn) {
@@ -81331,8 +81335,8 @@ var localforage = { exports: {} };
81331
81335
  var gt = ce[Ae.name], bt = gt.forages;
81332
81336
  pt.close();
81333
81337
  for (var kt = 0; kt < bt.length; kt++) {
81334
- var Lt = bt[kt];
81335
- Lt._dbInfo.db = null;
81338
+ var Mt = bt[kt];
81339
+ Mt._dbInfo.db = null;
81336
81340
  }
81337
81341
  var Wt = new te(function(Jt, tn) {
81338
81342
  var fn = Z.deleteDatabase(Ae.name);
@@ -81360,7 +81364,7 @@ var localforage = { exports: {} };
81360
81364
  }
81361
81365
  return ne(Qe, Ve), Qe;
81362
81366
  }
81363
- var Me = {
81367
+ var Le = {
81364
81368
  _driver: "asyncStorage",
81365
81369
  _initStorage: qe,
81366
81370
  _support: Q(),
@@ -81511,7 +81515,7 @@ var localforage = { exports: {} };
81511
81515
  var ft = Oe._dbInfo;
81512
81516
  ft.db.transaction(function(pt) {
81513
81517
  bn(pt, ft, "SELECT * FROM " + ft.storeName, [], function(gt, bt) {
81514
- for (var kt = bt.rows, Lt = kt.length, Wt = 0; Wt < Lt; Wt++) {
81518
+ for (var kt = bt.rows, Mt = kt.length, Wt = 0; Wt < Mt; Wt++) {
81515
81519
  var Jt = kt.item(Wt), tn = Jt.value;
81516
81520
  if (tn && (tn = ft.serializer.deserialize(tn)), tn = Ae(tn, Jt.key, Wt + 1), tn !== void 0) {
81517
81521
  Qe(tn);
@@ -81534,8 +81538,8 @@ var localforage = { exports: {} };
81534
81538
  Qe.ready().then(function() {
81535
81539
  Ve === void 0 && (Ve = null);
81536
81540
  var gt = Ve, bt = Qe._dbInfo;
81537
- bt.serializer.serialize(Ve, function(kt, Lt) {
81538
- Lt ? pt(Lt) : bt.db.transaction(function(Wt) {
81541
+ bt.serializer.serialize(Ve, function(kt, Mt) {
81542
+ Mt ? pt(Mt) : bt.db.transaction(function(Wt) {
81539
81543
  bn(Wt, bt, "INSERT OR REPLACE INTO " + bt.storeName + " (key, value) VALUES (?, ?)", [Ae, kt], function() {
81540
81544
  ft(gt);
81541
81545
  }, function(Jt, tn) {
@@ -81680,8 +81684,8 @@ var localforage = { exports: {} };
81680
81684
  });
81681
81685
  });
81682
81686
  }
81683
- for (var kt = [], Lt = 0, Wt = Ke.storeNames.length; Lt < Wt; Lt++)
81684
- kt.push(bt(Ke.storeNames[Lt]));
81687
+ for (var kt = [], Mt = 0, Wt = Ke.storeNames.length; Mt < Wt; Mt++)
81688
+ kt.push(bt(Ke.storeNames[Mt]));
81685
81689
  te.all(kt).then(function() {
81686
81690
  ft();
81687
81691
  }).catch(function(Jt) {
@@ -81760,9 +81764,9 @@ var localforage = { exports: {} };
81760
81764
  for (var Qe = Oe._dbInfo, Ke = Qe.keyPrefix, ft = Ke.length, pt = localStorage.length, gt = 1, bt = 0; bt < pt; bt++) {
81761
81765
  var kt = localStorage.key(bt);
81762
81766
  if (kt.indexOf(Ke) === 0) {
81763
- var Lt = localStorage.getItem(kt);
81764
- if (Lt && (Lt = Qe.serializer.deserialize(Lt)), Lt = Ae(Lt, kt.substring(ft), gt++), Lt !== void 0)
81765
- return Lt;
81767
+ var Mt = localStorage.getItem(kt);
81768
+ if (Mt && (Mt = Qe.serializer.deserialize(Mt)), Mt = Ae(Mt, kt.substring(ft), gt++), Mt !== void 0)
81769
+ return Mt;
81766
81770
  }
81767
81771
  }
81768
81772
  });
@@ -81790,7 +81794,7 @@ var localforage = { exports: {} };
81790
81794
  });
81791
81795
  return ne(Oe, Ae), Oe;
81792
81796
  }
81793
- function Mt(Ae) {
81797
+ function Lt(Ae) {
81794
81798
  var Ve = this, Oe = Ve.keys().then(function(Je) {
81795
81799
  return Je.length;
81796
81800
  });
@@ -81819,8 +81823,8 @@ var localforage = { exports: {} };
81819
81823
  else
81820
81824
  try {
81821
81825
  localStorage.setItem(gt.keyPrefix + Ae, bt), ft(Ke);
81822
- } catch (Lt) {
81823
- (Lt.name === "QuotaExceededError" || Lt.name === "NS_ERROR_DOM_QUOTA_REACHED") && pt(Lt), pt(Lt);
81826
+ } catch (Mt) {
81827
+ (Mt.name === "QuotaExceededError" || Mt.name === "NS_ERROR_DOM_QUOTA_REACHED") && pt(Mt), pt(Mt);
81824
81828
  }
81825
81829
  });
81826
81830
  });
@@ -81851,7 +81855,7 @@ var localforage = { exports: {} };
81851
81855
  setItem: Zt,
81852
81856
  removeItem: Ot,
81853
81857
  clear: ot,
81854
- length: Mt,
81858
+ length: Lt,
81855
81859
  key: Rt,
81856
81860
  keys: Bt,
81857
81861
  dropInstance: Qt
@@ -81867,7 +81871,7 @@ var localforage = { exports: {} };
81867
81871
  }, Yn = Array.isArray || function(Ae) {
81868
81872
  return Object.prototype.toString.call(Ae) === "[object Array]";
81869
81873
  }, dn = {}, Bn = {}, jn = {
81870
- INDEXEDDB: Me,
81874
+ INDEXEDDB: Le,
81871
81875
  WEBSQL: _n,
81872
81876
  LOCALSTORAGE: Yt
81873
81877
  }, An = [jn.INDEXEDDB._driver, jn.WEBSQL._driver, jn.LOCALSTORAGE._driver], Un = ["dropInstance"], Xn = ["clear", "getItem", "iterate", "key", "keys", "length", "removeItem", "setItem"].concat(Un), nr = {
@@ -81928,8 +81932,8 @@ var localforage = { exports: {} };
81928
81932
  pt(bt);
81929
81933
  return;
81930
81934
  }
81931
- for (var kt = Xn.concat("_initStorage"), Lt = 0, Wt = kt.length; Lt < Wt; Lt++) {
81932
- var Jt = kt[Lt], tn = !xn(Un, Jt);
81935
+ for (var kt = Xn.concat("_initStorage"), Mt = 0, Wt = kt.length; Mt < Wt; Mt++) {
81936
+ var Jt = kt[Mt], tn = !xn(Un, Jt);
81933
81937
  if ((tn || Oe[Jt]) && typeof Oe[Jt] != "function") {
81934
81938
  pt(bt);
81935
81939
  return;
@@ -81942,8 +81946,8 @@ var localforage = { exports: {} };
81942
81946
  return ne(Fe, arguments[arguments.length - 1]), Fe;
81943
81947
  };
81944
81948
  }, Zn = 0, Wn = Un.length; Zn < Wn; Zn++) {
81945
- var Ln = Un[Zn];
81946
- Oe[Ln] || (Oe[Ln] = Hn(Ln));
81949
+ var Mn = Un[Zn];
81950
+ Oe[Mn] || (Oe[Mn] = Hn(Mn));
81947
81951
  }
81948
81952
  };
81949
81953
  fn();
@@ -81976,15 +81980,15 @@ var localforage = { exports: {} };
81976
81980
  function pt() {
81977
81981
  Ke._config.driver = Ke.driver();
81978
81982
  }
81979
- function gt(Lt) {
81980
- return Ke._extend(Lt), pt(), Ke._ready = Ke._initStorage(Ke._config), Ke._ready;
81983
+ function gt(Mt) {
81984
+ return Ke._extend(Mt), pt(), Ke._ready = Ke._initStorage(Ke._config), Ke._ready;
81981
81985
  }
81982
- function bt(Lt) {
81986
+ function bt(Mt) {
81983
81987
  return function() {
81984
81988
  var Wt = 0;
81985
81989
  function Jt() {
81986
- for (; Wt < Lt.length; ) {
81987
- var tn = Lt[Wt];
81990
+ for (; Wt < Mt.length; ) {
81991
+ var tn = Mt[Wt];
81988
81992
  return Wt++, Ke._dbInfo = null, Ke._ready = null, Ke.getDriver(tn).then(gt).catch(Jt);
81989
81993
  }
81990
81994
  pt();
@@ -81998,14 +82002,14 @@ var localforage = { exports: {} };
81998
82002
  return te.resolve();
81999
82003
  }) : te.resolve();
82000
82004
  return this._driverSet = kt.then(function() {
82001
- var Lt = ft[0];
82002
- return Ke._dbInfo = null, Ke._ready = null, Ke.getDriver(Lt).then(function(Wt) {
82005
+ var Mt = ft[0];
82006
+ return Ke._dbInfo = null, Ke._ready = null, Ke.getDriver(Mt).then(function(Wt) {
82003
82007
  Ke._driver = Wt._driver, pt(), Ke._wrapLibraryMethodsWithReady(), Ke._initDriver = bt(ft);
82004
82008
  });
82005
82009
  }).catch(function() {
82006
82010
  pt();
82007
- var Lt = new Error("No available storage method found.");
82008
- return Ke._driverSet = te.reject(Lt), Ke._driverSet;
82011
+ var Mt = new Error("No available storage method found.");
82012
+ return Ke._driverSet = te.reject(Mt), Ke._driverSet;
82009
82013
  }), re(this._driverSet, Je, Qe), this._driverSet;
82010
82014
  }, Ae.prototype.supports = function(Oe) {
82011
82015
  return !!Bn[Oe];
@@ -82112,7 +82116,7 @@ var SignalState;
82112
82116
  var ws = null;
82113
82117
  typeof WebSocket < "u" ? ws = WebSocket : typeof MozWebSocket < "u" ? ws = MozWebSocket : typeof commonjsGlobal < "u" ? ws = commonjsGlobal.WebSocket || commonjsGlobal.MozWebSocket : typeof window < "u" ? ws = window.WebSocket || window.MozWebSocket : typeof self < "u" && (ws = self.WebSocket || self.MozWebSocket);
82114
82118
  var browser$3 = ws;
82115
- const WebSocket2 = /* @__PURE__ */ getDefaultExportFromCjs(browser$3);
82119
+ const WebSocket3 = /* @__PURE__ */ getDefaultExportFromCjs(browser$3);
82116
82120
  var MessageTrace;
82117
82121
  (function($) {
82118
82122
  (function(I) {
@@ -82796,7 +82800,7 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
82796
82800
  L: 55,
82797
82801
  S: this,
82798
82802
  C: (q, G) => q(...G)
82799
- }), this._url = $, this._callbacks = I, this._socket = new WebSocket2(this._url), this._rpc = createProtoRpcPeer({
82803
+ }), this._url = $, this._callbacks = I, this._socket = new WebSocket3(this._url), this._rpc = createProtoRpcPeer({
82800
82804
  requested: {
82801
82805
  Signal: schema.getService("dxos.mesh.signal.Signal")
82802
82806
  },
@@ -82883,7 +82887,7 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
82883
82887
  var $, I, U, q;
82884
82888
  await (($ = this._keepaliveCtx) == null ? void 0 : $.dispose()), this._closed = !0;
82885
82889
  try {
82886
- await ((I = this._rpc) == null ? void 0 : I.close()), (((U = this._socket) == null ? void 0 : U.readyState) === WebSocket2.OPEN || ((q = this._socket) == null ? void 0 : q.readyState) === WebSocket2.CONNECTING) && this._socket.close(), await this._closeComplete.wait({
82890
+ await ((I = this._rpc) == null ? void 0 : I.close()), (((U = this._socket) == null ? void 0 : U.readyState) === WebSocket3.OPEN || ((q = this._socket) == null ? void 0 : q.readyState) === WebSocket3.CONNECTING) && this._socket.close(), await this._closeComplete.wait({
82887
82891
  timeout: 1e3
82888
82892
  });
82889
82893
  } catch (G) {
@@ -82993,10 +82997,9 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
82993
82997
  metadata: (G = (q = this._callbacks) == null ? void 0 : q.getMetadata) == null ? void 0 : G.call(q)
82994
82998
  });
82995
82999
  }
82996
- }, __dxlog_file3$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/src/signal-client/signal-client.ts", DEFAULT_RECONNECT_TIMEOUT = 100, MAX_RECONNECT_TIMEOUT = 5e3, ERROR_RECONCILE_DELAY = 1e3, RECONCILE_INTERVAL = 5e3, SignalClient = class {
83000
+ }, __dxlog_file3$2 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/src/signal-client/signal-client.ts", DEFAULT_RECONNECT_TIMEOUT = 100, MAX_RECONNECT_TIMEOUT = 5e3, ERROR_RECONCILE_DELAY = 1e3, RECONCILE_INTERVAL = 5e3, SignalClient = class {
82997
83001
  /**
82998
83002
  * @param _host Signal server websocket URL.
82999
- * @param _onMessage
83000
83003
  */
83001
83004
  constructor($, I, U, q) {
83002
83005
  if (this._host = $, this._onMessage = I, this._onSwarmEvent = U, this._getMetadata = q, this._state = SignalState.CLOSED, this._reconnectAfter = DEFAULT_RECONNECT_TIMEOUT, this._connectionStarted = /* @__PURE__ */ new Date(), this._lastStateChange = /* @__PURE__ */ new Date(), this._clientReady = new Trigger(), this.statusChanged = new Event$1(), this.commandTrace = new Event$1(), this._swarmStreams = new ComplexMap(({ topic: G, peerId: K }) => G.toHex() + K.toHex()), this._joinedTopics = new ComplexSet(({ topic: G, peerId: K }) => G.toHex() + K.toHex()), this._messageStreams = new ComplexMap((G) => G.toHex()), this._subscribedMessages = new ComplexSet(({ peerId: G }) => G.toHex()), this._reconciled = new Event$1(), this._instanceId = PublicKey.random().toHex(), this._performance = {
@@ -83008,12 +83011,12 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
83008
83011
  }, !this._host.startsWith("wss://") && !this._host.startsWith("ws://"))
83009
83012
  throw new Error(`Signal server requires a websocket URL. Provided: ${this._host}`);
83010
83013
  }
83011
- open() {
83014
+ async open() {
83012
83015
  log$2.trace("dxos.mesh.signal-client.open", trace$1.begin({
83013
83016
  id: this._instanceId
83014
83017
  }), {
83015
- F: __dxlog_file3$3,
83016
- L: 136,
83018
+ F: __dxlog_file3$2,
83019
+ L: 128,
83017
83020
  S: this,
83018
83021
  C: ($, I) => $(...I)
83019
83022
  }), ![
@@ -83023,8 +83026,8 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
83023
83026
  onError: ($) => {
83024
83027
  var I;
83025
83028
  this._state === SignalState.CLOSED || (I = this._ctx) != null && I.disposed || (this._state === SignalState.CONNECTED && log$2.warn("SignalClient error:", $, {
83026
- F: __dxlog_file3$3,
83027
- L: 148,
83029
+ F: __dxlog_file3$2,
83030
+ L: 140,
83028
83031
  S: this,
83029
83032
  C: (U, q) => U(...q)
83030
83033
  }), this._scheduleReconcileAfterError());
@@ -83038,8 +83041,8 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
83038
83041
  }), this._setState(SignalState.CONNECTING), this._createClient(), log$2.trace("dxos.mesh.signal-client.open", trace$1.end({
83039
83042
  id: this._instanceId
83040
83043
  }), {
83041
- F: __dxlog_file3$3,
83042
- L: 177,
83044
+ F: __dxlog_file3$2,
83045
+ L: 169,
83043
83046
  S: this,
83044
83047
  C: ($, I) => $(...I)
83045
83048
  }));
@@ -83047,15 +83050,15 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
83047
83050
  async close() {
83048
83051
  var $, I;
83049
83052
  log$2("closing...", void 0, {
83050
- F: __dxlog_file3$3,
83051
- L: 181,
83053
+ F: __dxlog_file3$2,
83054
+ L: 173,
83052
83055
  S: this,
83053
83056
  C: (U, q) => U(...q)
83054
83057
  }), ![
83055
83058
  SignalState.CLOSED
83056
83059
  ].includes(this._state) && (await (($ = this._ctx) == null ? void 0 : $.dispose()), this._clientReady.reset(), await ((I = this._client) == null ? void 0 : I.close()), this._client = void 0, this._setState(SignalState.CLOSED), log$2("closed", void 0, {
83057
- F: __dxlog_file3$3,
83058
- L: 192,
83060
+ F: __dxlog_file3$2,
83061
+ L: 184,
83059
83062
  S: this,
83060
83063
  C: (U, q) => U(...q)
83061
83064
  }));
@@ -83076,8 +83079,8 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
83076
83079
  topic: $,
83077
83080
  peerId: I
83078
83081
  }, {
83079
- F: __dxlog_file3$3,
83080
- L: 207,
83082
+ F: __dxlog_file3$2,
83083
+ L: 199,
83081
83084
  S: this,
83082
83085
  C: (U, q) => U(...q)
83083
83086
  }), this._performance.joinCounter++, this._joinedTopics.add({
@@ -83091,8 +83094,8 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
83091
83094
  topic: $,
83092
83095
  peerId: I
83093
83096
  }, {
83094
- F: __dxlog_file3$3,
83095
- L: 215,
83097
+ F: __dxlog_file3$2,
83098
+ L: 207,
83096
83099
  S: this,
83097
83100
  C: (q, G) => q(...G)
83098
83101
  }), (U = this._swarmStreams.get({
@@ -83108,8 +83111,8 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
83108
83111
  }
83109
83112
  async sendMessage($) {
83110
83113
  this._performance.sentMessages++, await this._clientReady.wait(), invariant(this._state === SignalState.CONNECTED, "Not connected to Signal Server", {
83111
- F: __dxlog_file3$3,
83112
- L: 224,
83114
+ F: __dxlog_file3$2,
83115
+ L: 216,
83113
83116
  S: this,
83114
83117
  A: [
83115
83118
  "this._state === SignalState.CONNECTED",
@@ -83121,8 +83124,8 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
83121
83124
  log$2("subscribing to messages", {
83122
83125
  peerId: $
83123
83126
  }, {
83124
- F: __dxlog_file3$3,
83125
- L: 229,
83127
+ F: __dxlog_file3$2,
83128
+ L: 221,
83126
83129
  S: this,
83127
83130
  C: (I, U) => I(...U)
83128
83131
  }), this._subscribedMessages.add({
@@ -83134,8 +83137,8 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
83134
83137
  log$2("unsubscribing from messages", {
83135
83138
  peerId: $
83136
83139
  }, {
83137
- F: __dxlog_file3$3,
83138
- L: 235,
83140
+ F: __dxlog_file3$2,
83141
+ L: 227,
83139
83142
  S: this,
83140
83143
  C: (U, q) => U(...q)
83141
83144
  }), this._subscribedMessages.delete({
@@ -83151,8 +83154,8 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
83151
83154
  this._state = $, this._lastStateChange = /* @__PURE__ */ new Date(), log$2("signal state changed", {
83152
83155
  status: this.getStatus()
83153
83156
  }, {
83154
- F: __dxlog_file3$3,
83155
- L: 254,
83157
+ F: __dxlog_file3$2,
83158
+ L: 246,
83156
83159
  S: this,
83157
83160
  C: (I, U) => I(...U)
83158
83161
  }), this.statusChanged.emit(this.getStatus());
@@ -83162,13 +83165,13 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
83162
83165
  host: this._host,
83163
83166
  state: this._state
83164
83167
  }, {
83165
- F: __dxlog_file3$3,
83166
- L: 259,
83168
+ F: __dxlog_file3$2,
83169
+ L: 251,
83167
83170
  S: this,
83168
83171
  C: ($, I) => $(...I)
83169
83172
  }), invariant(!this._client, "Client already created", {
83170
- F: __dxlog_file3$3,
83171
- L: 260,
83173
+ F: __dxlog_file3$2,
83174
+ L: 252,
83172
83175
  S: this,
83173
83176
  A: [
83174
83177
  "!this._client",
@@ -83176,8 +83179,8 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
83176
83179
  ]
83177
83180
  }), this._connectionStarted = /* @__PURE__ */ new Date(), this._connectionCtx = this._ctx.derive(), this._connectionCtx.onDispose(async () => {
83178
83181
  log$2("connection context disposed", void 0, {
83179
- F: __dxlog_file3$3,
83180
- L: 267,
83182
+ F: __dxlog_file3$2,
83183
+ L: 259,
83181
83184
  S: this,
83182
83185
  C: ($, I) => $(...I)
83183
83186
  }), await Promise.all(Array.from(this._swarmStreams.values()).map(($) => $.close())), await Promise.all(Array.from(this._messageStreams.values()).map(($) => $.close())), this._swarmStreams.clear(), this._messageStreams.clear();
@@ -83188,8 +83191,8 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
83188
83191
  callbacks: {
83189
83192
  onConnected: () => {
83190
83193
  log$2("socket connected", void 0, {
83191
- F: __dxlog_file3$3,
83192
- L: 279,
83194
+ F: __dxlog_file3$2,
83195
+ L: 271,
83193
83196
  S: this,
83194
83197
  C: ($, I) => $(...I)
83195
83198
  }), this._lastError = void 0, this._reconnectAfter = DEFAULT_RECONNECT_TIMEOUT, this._setState(SignalState.CONNECTED), this._clientReady.wake(), this._reconcileTask.schedule();
@@ -83198,8 +83201,8 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
83198
83201
  if (log$2("socket disconnected", {
83199
83202
  state: this._state
83200
83203
  }, {
83201
- F: __dxlog_file3$3,
83202
- L: 288,
83204
+ F: __dxlog_file3$2,
83205
+ L: 280,
83203
83206
  S: this,
83204
83207
  C: ($, I) => $(...I)
83205
83208
  }), this._state === SignalState.ERROR) {
@@ -83213,8 +83216,8 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
83213
83216
  error: $,
83214
83217
  state: this._state
83215
83218
  }, {
83216
- F: __dxlog_file3$3,
83217
- L: 303,
83219
+ F: __dxlog_file3$2,
83220
+ L: 295,
83218
83221
  S: this,
83219
83222
  C: (I, U) => I(...U)
83220
83223
  }), this._lastError = $, this._state !== SignalState.CONNECTED && this._state !== SignalState.CONNECTING && this._incrementReconnectTimeout(), this._setState(SignalState.ERROR), this._reconnectTask.schedule();
@@ -83234,14 +83237,14 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
83234
83237
  if (log$2(`reconnecting in ${this._reconnectAfter}ms`, {
83235
83238
  state: this._state
83236
83239
  }, {
83237
- F: __dxlog_file3$3,
83238
- L: 331,
83240
+ F: __dxlog_file3$2,
83241
+ L: 323,
83239
83242
  S: this,
83240
83243
  C: (U, q) => U(...q)
83241
83244
  }), this._performance.reconnectCounter++, this._state === SignalState.RECONNECTING) {
83242
83245
  log$2.warn("Signal api already reconnecting.", void 0, {
83243
- F: __dxlog_file3$3,
83244
- L: 335,
83246
+ F: __dxlog_file3$2,
83247
+ L: 327,
83245
83248
  S: this,
83246
83249
  C: (U, q) => U(...q)
83247
83250
  });
@@ -83255,8 +83258,8 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
83255
83258
  await asyncTimeout(cancelWithContext(this._connectionCtx, this._clientReady.wait()), 5e3);
83256
83259
  const $ = this._client;
83257
83260
  invariant(this._state === SignalState.CONNECTED, "Not connected to Signal Server", {
83258
- F: __dxlog_file3$3,
83259
- L: 360,
83261
+ F: __dxlog_file3$2,
83262
+ L: 352,
83260
83263
  S: this,
83261
83264
  A: [
83262
83265
  "this._state === SignalState.CONNECTED",
@@ -83288,8 +83291,8 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
83288
83291
  log$2("swarm event", {
83289
83292
  swarmEvent: K
83290
83293
  }, {
83291
- F: __dxlog_file3$3,
83292
- L: 387,
83294
+ F: __dxlog_file3$2,
83295
+ L: 379,
83293
83296
  S: this,
83294
83297
  C: (Y, J) => Y(...J)
83295
83298
  }), await this._onSwarmEvent({
@@ -83307,8 +83310,8 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
83307
83310
  await asyncTimeout(cancelWithContext(this._connectionCtx, this._clientReady.wait()), 5e3);
83308
83311
  const $ = this._client;
83309
83312
  invariant(this._state === SignalState.CONNECTED, "Not connected to Signal Server", {
83310
- F: __dxlog_file3$3,
83311
- L: 400,
83313
+ F: __dxlog_file3$2,
83314
+ L: 392,
83312
83315
  S: this,
83313
83316
  A: [
83314
83317
  "this._state === SignalState.CONNECTED",
@@ -83348,7 +83351,7 @@ var __dxlog_file5$2 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
83348
83351
  hosts: this._hosts
83349
83352
  }, {
83350
83353
  F: __dxlog_file5$2,
83351
- L: 49,
83354
+ L: 51,
83352
83355
  S: this,
83353
83356
  C: (U, q) => U(...q)
83354
83357
  });
@@ -83364,14 +83367,14 @@ var __dxlog_file5$2 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
83364
83367
  hosts: this._hosts
83365
83368
  }, {
83366
83369
  F: __dxlog_file5$2,
83367
- L: 73,
83370
+ L: 78,
83368
83371
  S: this,
83369
83372
  C: ($, I) => $(...I)
83370
83373
  }), log$2.trace("dxos.mesh.websocket-signal-manager.open", trace$1.begin({
83371
83374
  id: this._instanceId
83372
83375
  }), {
83373
83376
  F: __dxlog_file5$2,
83374
- L: 74,
83377
+ L: 79,
83375
83378
  S: this,
83376
83379
  C: ($, I) => $(...I)
83377
83380
  }), this._initContext(), [
@@ -83380,7 +83383,7 @@ var __dxlog_file5$2 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
83380
83383
  id: this._instanceId
83381
83384
  }), {
83382
83385
  F: __dxlog_file5$2,
83383
- L: 81,
83386
+ L: 87,
83384
83387
  S: this,
83385
83388
  C: ($, I) => $(...I)
83386
83389
  }));
@@ -83389,16 +83392,16 @@ var __dxlog_file5$2 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
83389
83392
  this._opened && (this._opened = !1, await this._ctx.dispose(), await Promise.all(Array.from(this._servers.values()).map(($) => $.close())));
83390
83393
  }
83391
83394
  async restartServer($) {
83392
- log$2("Restarting server", {
83395
+ log$2("restarting server", {
83393
83396
  serverName: $
83394
83397
  }, {
83395
83398
  F: __dxlog_file5$2,
83396
- L: 97,
83399
+ L: 103,
83397
83400
  S: this,
83398
83401
  C: (U, q) => U(...q)
83399
83402
  }), invariant(this._opened, "server already closed", {
83400
83403
  F: __dxlog_file5$2,
83401
- L: 98,
83404
+ L: 104,
83402
83405
  S: this,
83403
83406
  A: [
83404
83407
  "this._opened",
@@ -83408,7 +83411,7 @@ var __dxlog_file5$2 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
83408
83411
  const I = this._servers.get($);
83409
83412
  invariant(I, "server not found", {
83410
83413
  F: __dxlog_file5$2,
83411
- L: 101,
83414
+ L: 107,
83412
83415
  S: this,
83413
83416
  A: [
83414
83417
  "server",
@@ -83420,17 +83423,17 @@ var __dxlog_file5$2 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
83420
83423
  return Array.from(this._servers.values()).map(($) => $.getStatus());
83421
83424
  }
83422
83425
  async join({ topic: $, peerId: I }) {
83423
- log$2("Join", {
83426
+ log$2("join", {
83424
83427
  topic: $,
83425
83428
  peerId: I
83426
83429
  }, {
83427
83430
  F: __dxlog_file5$2,
83428
- L: 114,
83431
+ L: 120,
83429
83432
  S: this,
83430
83433
  C: (U, q) => U(...q)
83431
83434
  }), invariant(this._opened, "Closed", {
83432
83435
  F: __dxlog_file5$2,
83433
- L: 115,
83436
+ L: 121,
83434
83437
  S: this,
83435
83438
  A: [
83436
83439
  "this._opened",
@@ -83447,12 +83450,12 @@ var __dxlog_file5$2 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
83447
83450
  peerId: I
83448
83451
  }, {
83449
83452
  F: __dxlog_file5$2,
83450
- L: 121,
83453
+ L: 127,
83451
83454
  S: this,
83452
83455
  C: (U, q) => U(...q)
83453
83456
  }), invariant(this._opened, "Closed", {
83454
83457
  F: __dxlog_file5$2,
83455
- L: 122,
83458
+ L: 128,
83456
83459
  S: this,
83457
83460
  A: [
83458
83461
  "this._opened",
@@ -83464,14 +83467,16 @@ var __dxlog_file5$2 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
83464
83467
  }));
83465
83468
  }
83466
83469
  async sendMessage({ author: $, recipient: I, payload: U }) {
83467
- log$2(`Signal ${I.truncate()}`, void 0, {
83470
+ log$2("signal", {
83471
+ recipient: I
83472
+ }, {
83468
83473
  F: __dxlog_file5$2,
83469
- L: 136,
83474
+ L: 142,
83470
83475
  S: this,
83471
83476
  C: (q, G) => q(...G)
83472
83477
  }), invariant(this._opened, "Closed", {
83473
83478
  F: __dxlog_file5$2,
83474
- L: 137,
83479
+ L: 143,
83475
83480
  S: this,
83476
83481
  A: [
83477
83482
  "this._opened",
@@ -83487,21 +83492,21 @@ var __dxlog_file5$2 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
83487
83492
  err: K
83488
83493
  }, {
83489
83494
  F: __dxlog_file5$2,
83490
- L: 142,
83495
+ L: 148,
83491
83496
  S: this,
83492
83497
  C: (Y, J) => Y(...J)
83493
83498
  }) : K instanceof TimeoutError$1 || K.constructor.name === "TimeoutError" ? (log$2.info("WSS sendMessage timeout", {
83494
83499
  err: K
83495
83500
  }, {
83496
83501
  F: __dxlog_file5$2,
83497
- L: 144,
83502
+ L: 150,
83498
83503
  S: this,
83499
83504
  C: (Y, J) => Y(...J)
83500
83505
  }), this.checkServerFailure(G)) : (log$2.info(`error sending to ${G}`, {
83501
83506
  err: K
83502
83507
  }, {
83503
83508
  F: __dxlog_file5$2,
83504
- L: 147,
83509
+ L: 153,
83505
83510
  S: this,
83506
83511
  C: (Y, J) => Y(...J)
83507
83512
  }), this.checkServerFailure(G));
@@ -83511,9 +83516,9 @@ var __dxlog_file5$2 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
83511
83516
  async checkServerFailure($) {
83512
83517
  const I = this.failureCount.get($) ?? 0;
83513
83518
  if (I > MAX_SERVER_FAILURES) {
83514
- log$2.warn(`Too many failures sending to ${$} (${I} > ${MAX_SERVER_FAILURES}), restarting`, void 0, {
83519
+ log$2.warn(`too many failures sending to ${$} (${I} > ${MAX_SERVER_FAILURES}), restarting`, void 0, {
83515
83520
  F: __dxlog_file5$2,
83516
- L: 158,
83521
+ L: 164,
83517
83522
  S: this,
83518
83523
  C: (U, q) => U(...q)
83519
83524
  }), await this.restartServer($), this.failureCount.set($, 0);
@@ -83522,14 +83527,16 @@ var __dxlog_file5$2 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
83522
83527
  this.failureCount.set($, (this.failureCount.get($) ?? 0) + 1);
83523
83528
  }
83524
83529
  async subscribeMessages($) {
83525
- log$2(`Subscribed for message stream peerId=${$}`, void 0, {
83530
+ log$2("subscribed for message stream", {
83531
+ peerId: $
83532
+ }, {
83526
83533
  F: __dxlog_file5$2,
83527
- L: 167,
83534
+ L: 174,
83528
83535
  S: this,
83529
83536
  C: (I, U) => I(...U)
83530
83537
  }), invariant(this._opened, "Closed", {
83531
83538
  F: __dxlog_file5$2,
83532
- L: 168,
83539
+ L: 175,
83533
83540
  S: this,
83534
83541
  A: [
83535
83542
  "this._opened",
@@ -83538,14 +83545,16 @@ var __dxlog_file5$2 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
83538
83545
  }), await this._forEachServer(async (I) => I.subscribeMessages($));
83539
83546
  }
83540
83547
  async unsubscribeMessages($) {
83541
- log$2(`Subscribed for message stream peerId=${$}`, void 0, {
83548
+ log$2("subscribed for message stream", {
83549
+ peerId: $
83550
+ }, {
83542
83551
  F: __dxlog_file5$2,
83543
- L: 174,
83552
+ L: 181,
83544
83553
  S: this,
83545
83554
  C: (I, U) => I(...U)
83546
83555
  }), invariant(this._opened, "Closed", {
83547
83556
  F: __dxlog_file5$2,
83548
- L: 175,
83557
+ L: 182,
83549
83558
  S: this,
83550
83559
  A: [
83551
83560
  "this._opened",
@@ -83557,7 +83566,7 @@ var __dxlog_file5$2 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
83557
83566
  this._ctx = new Context({
83558
83567
  onError: ($) => log$2.catch($, void 0, {
83559
83568
  F: __dxlog_file5$2,
83560
- L: 182,
83569
+ L: 189,
83561
83570
  S: this,
83562
83571
  C: (I, U) => I(...U)
83563
83572
  })
@@ -83582,14 +83591,14 @@ _ts_decorate$3([
83582
83591
  _ts_decorate$3([
83583
83592
  synchronized
83584
83593
  ], WebsocketSignalManager.prototype, "checkServerFailure", null);
83585
- var __dxlog_file6 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/src/signal-manager/utils.ts", setIdentityTags = ({ identityService: $, devicesService: I, setTag: U }) => {
83594
+ var __dxlog_file6$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/src/signal-manager/utils.ts", setIdentityTags = ({ identityService: $, devicesService: I, setTag: U }) => {
83586
83595
  $.queryIdentity().subscribe((q) => {
83587
83596
  var G;
83588
83597
  if (!((G = q == null ? void 0 : q.identity) != null && G.identityKey)) {
83589
83598
  log$2("empty response from identity service", {
83590
83599
  idqr: q
83591
83600
  }, {
83592
- F: __dxlog_file6,
83601
+ F: __dxlog_file6$1,
83593
83602
  L: 21,
83594
83603
  S: void 0,
83595
83604
  C: (K, Y) => K(...Y)
@@ -83602,7 +83611,7 @@ var __dxlog_file6 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/sr
83602
83611
  log$2("empty response from device service", {
83603
83612
  device: q
83604
83613
  }, {
83605
- F: __dxlog_file6,
83614
+ F: __dxlog_file6$1,
83606
83615
  L: 30,
83607
83616
  S: void 0,
83608
83617
  C: (K, Y) => K(...Y)
@@ -83610,7 +83619,7 @@ var __dxlog_file6 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/sr
83610
83619
  return;
83611
83620
  }
83612
83621
  invariant(q, "empty response from device service", {
83613
- F: __dxlog_file6,
83622
+ F: __dxlog_file6$1,
83614
83623
  L: 33,
83615
83624
  S: void 0,
83616
83625
  A: [
@@ -83623,7 +83632,7 @@ var __dxlog_file6 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/sr
83623
83632
  log$2("no current device", {
83624
83633
  device: q
83625
83634
  }, {
83626
- F: __dxlog_file6,
83635
+ F: __dxlog_file6$1,
83627
83636
  L: 37,
83628
83637
  S: void 0,
83629
83638
  C: (K, Y) => K(...Y)
@@ -84824,7 +84833,7 @@ var N1 = Math.pow(2, 7), N2 = Math.pow(2, 14), N3 = Math.pow(2, 21), N4 = Math.p
84824
84833
  }, encodeFrame = ($) => {
84825
84834
  const I = export_Buffer.allocUnsafe(FRAME_LENGTH_SIZE + $.length);
84826
84835
  return I.writeUInt16BE($.length, 0), I.set($, FRAME_LENGTH_SIZE), I;
84827
- }, __dxlog_file3$2 = "/home/runner/work/dxos/dxos/packages/core/mesh/teleport/src/muxing/balancer.ts", MAX_CHUNK_SIZE = 8192, Balancer = class {
84836
+ }, __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/teleport/src/muxing/balancer.ts", MAX_CHUNK_SIZE = 8192, Balancer = class {
84828
84837
  constructor($) {
84829
84838
  this._sysChannelId = $, this._lastCallerIndex = 0, this._channels = [], this._framer = new Framer(), this._sendBuffers = /* @__PURE__ */ new Map(), this._receiveBuffers = /* @__PURE__ */ new Map(), this._sending = !1, this.incomingData = new Event$1(), this.stream = this._framer.stream, this._channels.push($), this._framer.port.subscribe(this._processIncomingMessage.bind(this));
84830
84839
  }
@@ -84842,7 +84851,7 @@ var N1 = Math.pow(2, 7), N2 = Math.pow(2, 14), N3 = Math.pow(2, 21), N4 = Math.p
84842
84851
  }
84843
84852
  pushData($, I, U) {
84844
84853
  this._enqueueChunk($, I, U), this._sendChunks().catch((q) => log$2.catch(q, void 0, {
84845
- F: __dxlog_file3$2,
84854
+ F: __dxlog_file3$1,
84846
84855
  L: 75,
84847
84856
  S: this,
84848
84857
  C: (G, K) => G(...K)
@@ -84850,7 +84859,7 @@ var N1 = Math.pow(2, 7), N2 = Math.pow(2, 14), N3 = Math.pow(2, 21), N4 = Math.p
84850
84859
  }
84851
84860
  destroy() {
84852
84861
  this._sendBuffers.size !== 0 && log$2.info("destroying balancer with pending calls", void 0, {
84853
- F: __dxlog_file3$2,
84862
+ F: __dxlog_file3$1,
84854
84863
  L: 80,
84855
84864
  S: this,
84856
84865
  C: ($, I) => $(...I)
@@ -84917,12 +84926,12 @@ var N1 = Math.pow(2, 7), N2 = Math.pow(2, 14), N3 = Math.pow(2, 21), N4 = Math.p
84917
84926
  let $;
84918
84927
  for ($ = this._getNextChunk(); $; ) {
84919
84928
  this._framer.writable || (log$2("PAUSE for drain", void 0, {
84920
- F: __dxlog_file3$2,
84929
+ F: __dxlog_file3$1,
84921
84930
  L: 179,
84922
84931
  S: this,
84923
84932
  C: (q, G) => q(...G)
84924
84933
  }), await this._framer.drain.waitForCount(1), log$2("RESUME for drain", void 0, {
84925
- F: __dxlog_file3$2,
84934
+ F: __dxlog_file3$1,
84926
84935
  L: 181,
84927
84936
  S: this,
84928
84937
  C: (q, G) => q(...G)
@@ -84933,7 +84942,7 @@ var N1 = Math.pow(2, 7), N2 = Math.pow(2, 14), N3 = Math.pow(2, 21), N4 = Math.p
84933
84942
  log$2("Error sending chunk", {
84934
84943
  err: q
84935
84944
  }, {
84936
- F: __dxlog_file3$2,
84945
+ F: __dxlog_file3$1,
84937
84946
  L: 187,
84938
84947
  S: this,
84939
84948
  C: (G, K) => G(...K)
@@ -84942,7 +84951,7 @@ var N1 = Math.pow(2, 7), N2 = Math.pow(2, 14), N3 = Math.pow(2, 21), N4 = Math.p
84942
84951
  $ = this._getNextChunk();
84943
84952
  }
84944
84953
  invariant(this._sendBuffers.size === 0, "sendBuffers not empty", {
84945
- F: __dxlog_file3$2,
84954
+ F: __dxlog_file3$1,
84946
84955
  L: 192,
84947
84956
  S: this,
84948
84957
  A: [
@@ -86255,7 +86264,7 @@ function _ts_decorate2$1($, I, U, q) {
86255
86264
  (Y = $[J]) && (K = (G < 3 ? Y(K) : G > 3 ? Y(I, U, K) : Y(I, U)) || K);
86256
86265
  return G > 3 && K && Object.defineProperty(I, U, K), K;
86257
86266
  }
86258
- var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/peer.ts", ConnectionDisplacedError = class extends SystemError {
86267
+ var __dxlog_file3 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/peer.ts", ConnectionDisplacedError = class extends SystemError {
86259
86268
  constructor() {
86260
86269
  super("Connection displaced by remote initiator.");
86261
86270
  }
@@ -86275,7 +86284,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
86275
86284
  ConnectionState.CONNECTING
86276
86285
  ].includes(this.connection.state))
86277
86286
  return log$2.info(`received offer when connection already in ${this.connection.state} state`, void 0, {
86278
- F: __dxlog_file3$1,
86287
+ F: __dxlog_file3,
86279
86288
  L: 114,
86280
86289
  S: this,
86281
86290
  C: (q, G) => q(...G)
@@ -86290,7 +86299,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
86290
86299
  remotePeerId: this.localPeerId,
86291
86300
  sessionId: (U = this.connection) == null ? void 0 : U.sessionId
86292
86301
  }, {
86293
- F: __dxlog_file3$1,
86302
+ F: __dxlog_file3,
86294
86303
  L: 123,
86295
86304
  S: this,
86296
86305
  C: (q, G) => q(...G)
@@ -86301,7 +86310,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
86301
86310
  };
86302
86311
  if (await this._callbacks.onOffer(I) && !this.connection) {
86303
86312
  invariant($.sessionId, void 0, {
86304
- F: __dxlog_file3$1,
86313
+ F: __dxlog_file3,
86305
86314
  L: 143,
86306
86315
  S: this,
86307
86316
  A: [
@@ -86319,7 +86328,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
86319
86328
  remoteId: this.id,
86320
86329
  err: G
86321
86330
  }, {
86322
- F: __dxlog_file3$1,
86331
+ F: __dxlog_file3,
86323
86332
  L: 153,
86324
86333
  S: this,
86325
86334
  C: (K, Y) => K(...Y)
@@ -86338,7 +86347,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
86338
86347
  */
86339
86348
  async initiateConnection() {
86340
86349
  invariant(!this.initiating, "Initiation in progress.", {
86341
- F: __dxlog_file3$1,
86350
+ F: __dxlog_file3,
86342
86351
  L: 170,
86343
86352
  S: this,
86344
86353
  A: [
@@ -86346,7 +86355,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
86346
86355
  "'Initiation in progress.'"
86347
86356
  ]
86348
86357
  }), invariant(!this.connection, "Already connected.", {
86349
- F: __dxlog_file3$1,
86358
+ F: __dxlog_file3,
86350
86359
  L: 171,
86351
86360
  S: this,
86352
86361
  A: [
@@ -86361,7 +86370,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
86361
86370
  peerId: this.id,
86362
86371
  sessionId: $
86363
86372
  }, {
86364
- F: __dxlog_file3$1,
86373
+ F: __dxlog_file3,
86365
86374
  L: 173,
86366
86375
  S: this,
86367
86376
  C: (q, G) => q(...G)
@@ -86384,13 +86393,13 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
86384
86393
  ownId: this.localPeerId,
86385
86394
  remoteId: this.id
86386
86395
  }, {
86387
- F: __dxlog_file3$1,
86396
+ F: __dxlog_file3,
86388
86397
  L: 190,
86389
86398
  S: this,
86390
86399
  C: (q, G) => q(...G)
86391
86400
  }), I.state !== ConnectionState.INITIAL) {
86392
86401
  log$2("ignoring response", void 0, {
86393
- F: __dxlog_file3$1,
86402
+ F: __dxlog_file3,
86394
86403
  L: 192,
86395
86404
  S: this,
86396
86405
  C: (q, G) => q(...G)
@@ -86404,7 +86413,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
86404
86413
  peerId: this.localPeerId,
86405
86414
  remoteId: this.id
86406
86415
  }, {
86407
- F: __dxlog_file3$1,
86416
+ F: __dxlog_file3,
86408
86417
  L: 196,
86409
86418
  S: this,
86410
86419
  C: (G, K) => G(...K)
@@ -86424,7 +86433,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
86424
86433
  peerId: this.localPeerId,
86425
86434
  remoteId: this.id
86426
86435
  }, {
86427
- F: __dxlog_file3$1,
86436
+ F: __dxlog_file3,
86428
86437
  L: 209,
86429
86438
  S: this,
86430
86439
  C: (G, K) => G(...K)
@@ -86434,7 +86443,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
86434
86443
  }
86435
86444
  try {
86436
86445
  log$2("opening connection as initiator", void 0, {
86437
- F: __dxlog_file3$1,
86446
+ F: __dxlog_file3,
86438
86447
  L: 222,
86439
86448
  S: this,
86440
86449
  C: (q, G) => q(...G)
@@ -86446,14 +86455,14 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
86446
86455
  peerId: this.localPeerId,
86447
86456
  remoteId: this.id
86448
86457
  }, {
86449
- F: __dxlog_file3$1,
86458
+ F: __dxlog_file3,
86450
86459
  L: 226,
86451
86460
  S: this,
86452
86461
  C: (G, K) => G(...K)
86453
86462
  }), log$2.warn("closing connection due to unhandled error on openConnection", {
86454
86463
  err: q
86455
86464
  }, {
86456
- F: __dxlog_file3$1,
86465
+ F: __dxlog_file3,
86457
86466
  L: 233,
86458
86467
  S: this,
86459
86468
  C: (G, K) => G(...K)
@@ -86475,12 +86484,12 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
86475
86484
  initiator: $,
86476
86485
  sessionId: I
86477
86486
  }, {
86478
- F: __dxlog_file3$1,
86487
+ F: __dxlog_file3,
86479
86488
  L: 247,
86480
86489
  S: this,
86481
86490
  C: (G, K) => G(...K)
86482
86491
  }), invariant(!this.connection, "Already connected.", {
86483
- F: __dxlog_file3$1,
86492
+ F: __dxlog_file3,
86484
86493
  L: 254,
86485
86494
  S: this,
86486
86495
  A: [
@@ -86512,7 +86521,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
86512
86521
  sessionId: I,
86513
86522
  initiator: $
86514
86523
  }, {
86515
- F: __dxlog_file3$1,
86524
+ F: __dxlog_file3,
86516
86525
  L: 273,
86517
86526
  S: this,
86518
86527
  C: (G, K) => G(...K)
@@ -86525,12 +86534,12 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
86525
86534
  remoteId: this.id,
86526
86535
  initiator: $
86527
86536
  }, {
86528
- F: __dxlog_file3$1,
86537
+ F: __dxlog_file3,
86529
86538
  L: 282,
86530
86539
  S: this,
86531
86540
  C: (K, Y) => K(...Y)
86532
86541
  }), this._connectionLimiter.doneConnecting(I), invariant(this.connection === U, "Connection mismatch (race condition).", {
86533
- F: __dxlog_file3$1,
86542
+ F: __dxlog_file3,
86534
86543
  L: 287,
86535
86544
  S: this,
86536
86545
  A: [
@@ -86544,7 +86553,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
86544
86553
  sessionId: I,
86545
86554
  initiator: $
86546
86555
  }, {
86547
- F: __dxlog_file3$1,
86556
+ F: __dxlog_file3,
86548
86557
  L: 289,
86549
86558
  S: this,
86550
86559
  C: (K, Y) => K(...Y)
@@ -86562,7 +86571,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
86562
86571
  initiator: $,
86563
86572
  err: G
86564
86573
  }, {
86565
- F: __dxlog_file3$1,
86574
+ F: __dxlog_file3,
86566
86575
  L: 329,
86567
86576
  S: this,
86568
86577
  C: (K, Y) => K(...Y)
@@ -86574,7 +86583,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
86574
86583
  initiator: $,
86575
86584
  err: G
86576
86585
  }, {
86577
- F: __dxlog_file3$1,
86586
+ F: __dxlog_file3,
86578
86587
  L: 336,
86579
86588
  S: this,
86580
86589
  C: (K, Y) => K(...Y)
@@ -86589,7 +86598,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
86589
86598
  peerId: this.id,
86590
86599
  sessionId: I.sessionId
86591
86600
  }, {
86592
- F: __dxlog_file3$1,
86601
+ F: __dxlog_file3,
86593
86602
  L: 361,
86594
86603
  S: this,
86595
86604
  C: (U, q) => U(...q)
@@ -86597,7 +86606,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
86597
86606
  peerId: this.id,
86598
86607
  sessionId: I.sessionId
86599
86608
  }, {
86600
- F: __dxlog_file3$1,
86609
+ F: __dxlog_file3,
86601
86610
  L: 367,
86602
86611
  S: this,
86603
86612
  C: (U, q) => U(...q)
@@ -86608,7 +86617,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
86608
86617
  log$2("dropping signal message for non-existent connection", {
86609
86618
  message: $
86610
86619
  }, {
86611
- F: __dxlog_file3$1,
86620
+ F: __dxlog_file3,
86612
86621
  L: 372,
86613
86622
  S: this,
86614
86623
  C: (I, U) => I(...U)
@@ -86623,7 +86632,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
86623
86632
  peerId: this.id,
86624
86633
  topic: this.topic
86625
86634
  }, {
86626
- F: __dxlog_file3$1,
86635
+ F: __dxlog_file3,
86627
86636
  L: 382,
86628
86637
  S: this,
86629
86638
  C: (U, q) => U(...q)
@@ -87515,7 +87524,7 @@ var importESM = Function("path", "return import(path)"), uaParser = { exports: {
87515
87524
  for (var zt = {}, de = 0; de < Ct.length; de++)
87516
87525
  zt[Ct[de].toUpperCase()] = Ct[de];
87517
87526
  return zt;
87518
- }, Me = function(Ct, zt) {
87527
+ }, Le = function(Ct, zt) {
87519
87528
  return typeof Ct === ee ? Ye(zt).indexOf(Ye(Ct)) !== -1 : !1;
87520
87529
  }, Ye = function(Ct) {
87521
87530
  return Ct.toLowerCase();
@@ -87537,9 +87546,9 @@ var importESM = Function("path", "return import(path)"), uaParser = { exports: {
87537
87546
  for (var de in zt)
87538
87547
  if (typeof zt[de] === Q && zt[de].length > 0) {
87539
87548
  for (var ie = 0; ie < zt[de].length; ie++)
87540
- if (Me(zt[de][ie], Ct))
87549
+ if (Le(zt[de][ie], Ct))
87541
87550
  return de === Y ? q : de;
87542
- } else if (Me(zt[de], Ct))
87551
+ } else if (Le(zt[de], Ct))
87543
87552
  return de === Y ? q : de;
87544
87553
  return Ct;
87545
87554
  }, it = {
@@ -88754,12 +88763,14 @@ var __dxlog_file = "/home/runner/work/dxos/dxos/packages/sdk/client/src/services
88754
88763
  return this._client.rpc;
88755
88764
  }
88756
88765
  async open() {
88757
- const { WebsocketRpcClient: $ } = await import("./index-CDZGs6Fl.mjs");
88766
+ const { WebsocketRpcClient: $ } = await import("./index-Cms4wG79.mjs");
88758
88767
  this._client = new $({
88759
88768
  url: getUnixSocket(this._profile, "ws+unix"),
88760
88769
  requested: clientServiceBundle,
88761
88770
  exposed: {},
88762
88771
  handlers: {}
88772
+ }), this._client.error.on((I) => {
88773
+ this.closed.emit(I);
88763
88774
  }), await this._client.open();
88764
88775
  }
88765
88776
  async close() {
@@ -88769,7 +88780,7 @@ var __dxlog_file = "/home/runner/work/dxos/dxos/packages/sdk/client/src/services
88769
88780
  } catch (I) {
88770
88781
  log$2.warn("Failed to close", I, {
88771
88782
  F: __dxlog_file,
88772
- L: 69,
88783
+ L: 72,
88773
88784
  S: this,
88774
88785
  C: (U, q) => U(...q)
88775
88786
  });
@@ -88874,7 +88885,7 @@ var IFrameManager = class {
88874
88885
  var I;
88875
88886
  (I = this._onMessage) == null || I.call(this, $);
88876
88887
  }
88877
- }, __dxlog_file3 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/services/shell-manager.ts", shellStyles = Object.entries({
88888
+ }, __dxlog_file4 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/services/shell-manager.ts", shellStyles = Object.entries({
88878
88889
  display: "none",
88879
88890
  position: "fixed",
88880
88891
  top: 0,
@@ -88894,7 +88905,7 @@ var IFrameManager = class {
88894
88905
  async setLayout($) {
88895
88906
  var I;
88896
88907
  log$2("set layout", $, {
88897
- F: __dxlog_file3,
88908
+ F: __dxlog_file4,
88898
88909
  L: 51,
88899
88910
  S: this,
88900
88911
  C: (U, q) => U(...q)
@@ -88924,7 +88935,7 @@ var IFrameManager = class {
88924
88935
  AppService: {
88925
88936
  setContext: async (q) => {
88926
88937
  log$2("set context", q, {
88927
- F: __dxlog_file3,
88938
+ F: __dxlog_file4,
88928
88939
  L: 98,
88929
88940
  S: this,
88930
88941
  C: (G, K) => G(...K)
@@ -89017,13 +89028,13 @@ function _ts_decorate4($, I, U, q) {
89017
89028
  (Y = $[J]) && (K = (G < 3 ? Y(K) : G > 3 ? Y(I, U, K) : Y(I, U)) || K);
89018
89029
  return G > 3 && K && Object.defineProperty(I, U, K), K;
89019
89030
  }
89020
- var __dxlog_file4 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/services/service-proxy.ts", ClientServicesProxy = class {
89031
+ var __dxlog_file5 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/services/service-proxy.ts", ClientServicesProxy = class {
89021
89032
  constructor($, I = 3e4) {
89022
89033
  this._port = $, this._timeout = I, this.closed = new Event$1();
89023
89034
  }
89024
89035
  get proxy() {
89025
89036
  return invariant(this._proxy, "Client services not open", {
89026
- F: __dxlog_file4,
89037
+ F: __dxlog_file5,
89027
89038
  L: 30,
89028
89039
  S: this,
89029
89040
  A: [
@@ -89037,7 +89048,7 @@ var __dxlog_file4 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/service
89037
89048
  }
89038
89049
  get services() {
89039
89050
  return invariant(this._proxy, "Client services not open", {
89040
- F: __dxlog_file4,
89051
+ F: __dxlog_file5,
89041
89052
  L: 39,
89042
89053
  S: this,
89043
89054
  A: [
@@ -89074,7 +89085,7 @@ function _ts_decorate5($, I, U, q) {
89074
89085
  (Y = $[J]) && (K = (G < 3 ? Y(K) : G > 3 ? Y(I, U, K) : Y(I, U)) || K);
89075
89086
  return G > 3 && K && Object.defineProperty(I, U, K), K;
89076
89087
  }
89077
- var __dxlog_file5 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/services/iframe-service-proxy.ts", IFrameClientServicesProxy = class {
89088
+ var __dxlog_file6 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/services/iframe-service-proxy.ts", IFrameClientServicesProxy = class {
89078
89089
  constructor({ source: $ = DEFAULT_VAULT_URL, shell: I = DEFAULT_SHELL_CHANNEL, vault: U = DEFAULT_INTERNAL_CHANNEL, timeout: q = PROXY_CONNECTION_TIMEOUT, logFilter: G = "error,warn" } = {}) {
89079
89090
  this.closed = new Event$1(), this._instanceId = PublicKey.random().toHex(), this._source = $, this._shell = I, this._vault = U, this._logFilter = parseFilter(G), this._timeout = q;
89080
89091
  const K = new Trigger(), Y = new Trigger();
@@ -89113,7 +89124,7 @@ var __dxlog_file5 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/service
89113
89124
  this._clientServicesProxy || (log$2.trace("dxos.sdk.iframe-clientTraceices-proxy", trace$1.begin({
89114
89125
  id: this._instanceId
89115
89126
  }), {
89116
- F: __dxlog_file5,
89127
+ F: __dxlog_file6,
89117
89128
  L: 142,
89118
89129
  S: this,
89119
89130
  C: (I, U) => I(...U)
@@ -89125,7 +89136,7 @@ var __dxlog_file5 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/service
89125
89136
  switch (I.level) {
89126
89137
  case LogLevel.DEBUG:
89127
89138
  log$2.debug(`[vault] ${I.message}`, I.context, {
89128
- F: __dxlog_file5,
89139
+ F: __dxlog_file6,
89129
89140
  L: 157,
89130
89141
  S: this,
89131
89142
  C: (U, q) => U(...q)
@@ -89133,7 +89144,7 @@ var __dxlog_file5 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/service
89133
89144
  break;
89134
89145
  case LogLevel.INFO:
89135
89146
  log$2.info(`[vault] ${I.message}`, I.context, {
89136
- F: __dxlog_file5,
89147
+ F: __dxlog_file6,
89137
89148
  L: 160,
89138
89149
  S: this,
89139
89150
  C: (U, q) => U(...q)
@@ -89141,7 +89152,7 @@ var __dxlog_file5 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/service
89141
89152
  break;
89142
89153
  case LogLevel.WARN:
89143
89154
  log$2.warn(`[vault] ${I.message}`, I.context, {
89144
- F: __dxlog_file5,
89155
+ F: __dxlog_file6,
89145
89156
  L: 163,
89146
89157
  S: this,
89147
89158
  C: (U, q) => U(...q)
@@ -89149,7 +89160,7 @@ var __dxlog_file5 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/service
89149
89160
  break;
89150
89161
  case LogLevel.ERROR:
89151
89162
  log$2.error(`[vault] ${I.message}`, I.context, {
89152
- F: __dxlog_file5,
89163
+ F: __dxlog_file6,
89153
89164
  L: 166,
89154
89165
  S: this,
89155
89166
  C: (U, q) => U(...q)
@@ -89163,7 +89174,7 @@ var __dxlog_file5 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/service
89163
89174
  await (($ = this._shellManager) == null ? void 0 : $.close()), await this._iframeManager.close(), await ((I = this._loggingStream) == null ? void 0 : I.close()), await ((U = this._clientServicesProxy) == null ? void 0 : U.close()), this._clientServicesProxy = void 0, log$2.trace("dxos.sdk.iframe-clientTraceices-proxy", trace$1.end({
89164
89175
  id: this._instanceId
89165
89176
  }), {
89166
- F: __dxlog_file5,
89177
+ F: __dxlog_file6,
89167
89178
  L: 180,
89168
89179
  S: this,
89169
89180
  C: (q, G) => q(...G)
@@ -89182,7 +89193,7 @@ function _ts_decorate6($, I, U, q) {
89182
89193
  (Y = $[J]) && (K = (G < 3 ? Y(K) : G > 3 ? Y(I, U, K) : Y(I, U)) || K);
89183
89194
  return G > 3 && K && Object.defineProperty(I, U, K), K;
89184
89195
  }
89185
- var __dxlog_file7 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/services/worker-client-services.ts", WorkerClientServices = class {
89196
+ var __dxlog_file8 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/services/worker-client-services.ts", WorkerClientServices = class {
89186
89197
  constructor({ config: $, createWorker: I, logFilter: U = "error,warn", observabilityGroup: q, signalTelemetryEnabled: G }) {
89187
89198
  this.closed = new Event$1(), this.joinedSpace = new Event$1(), this._isOpen = !1, this._config = $, this._createWorker = I, this._logFilter = parseFilter(U), this._observabilityGroup = q, this._signalTelemetryEnabled = G ?? !1;
89188
89199
  }
@@ -89199,7 +89210,7 @@ var __dxlog_file7 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/service
89199
89210
  if (this._isOpen)
89200
89211
  return;
89201
89212
  log$2("opening...", void 0, {
89202
- F: __dxlog_file7,
89213
+ F: __dxlog_file8,
89203
89214
  L: 88,
89204
89215
  S: this,
89205
89216
  C: (K, Y) => K(...Y)
@@ -89225,7 +89236,7 @@ var __dxlog_file7 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/service
89225
89236
  port: G
89226
89237
  })), await this._services.open(), navigator.locks.request(LOCK_KEY, () => {
89227
89238
  log$2("terminated", void 0, {
89228
- F: __dxlog_file7,
89239
+ F: __dxlog_file8,
89229
89240
  L: 115,
89230
89241
  S: this,
89231
89242
  C: (K, Y) => K(...Y)
@@ -89250,7 +89261,7 @@ var __dxlog_file7 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/service
89250
89261
  break;
89251
89262
  }
89252
89263
  }), log$2("opened", void 0, {
89253
- F: __dxlog_file7,
89264
+ F: __dxlog_file8,
89254
89265
  L: 144,
89255
89266
  S: this,
89256
89267
  C: (K, Y) => K(...Y)
@@ -89259,12 +89270,12 @@ var __dxlog_file7 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/service
89259
89270
  async close() {
89260
89271
  var $;
89261
89272
  this._isOpen && (log$2("closing...", void 0, {
89262
- F: __dxlog_file7,
89273
+ F: __dxlog_file8,
89263
89274
  L: 154,
89264
89275
  S: this,
89265
89276
  C: (I, U) => I(...U)
89266
89277
  }), await (($ = this._loggingStream) == null ? void 0 : $.close()), await this._runtime.close(), await this._services.close(), log$2("closed", void 0, {
89267
- F: __dxlog_file7,
89278
+ F: __dxlog_file8,
89268
89279
  L: 159,
89269
89280
  S: this,
89270
89281
  C: (I, U) => I(...U)
@@ -89896,18 +89907,18 @@ function requireReactJsxDevRuntime_development() {
89896
89907
  if (sn && Ne && typeof sn.stack == "string") {
89897
89908
  for (var Rt = sn.stack.split(`
89898
89909
  `), Bt = Ne.stack.split(`
89899
- `), Mt = Rt.length - 1, Ot = Bt.length - 1; Mt >= 1 && Ot >= 0 && Rt[Mt] !== Bt[Ot]; )
89910
+ `), Lt = Rt.length - 1, Ot = Bt.length - 1; Lt >= 1 && Ot >= 0 && Rt[Lt] !== Bt[Ot]; )
89900
89911
  Ot--;
89901
- for (; Mt >= 1 && Ot >= 0; Mt--, Ot--)
89902
- if (Rt[Mt] !== Bt[Ot]) {
89903
- if (Mt !== 1 || Ot !== 1)
89912
+ for (; Lt >= 1 && Ot >= 0; Lt--, Ot--)
89913
+ if (Rt[Lt] !== Bt[Ot]) {
89914
+ if (Lt !== 1 || Ot !== 1)
89904
89915
  do
89905
- if (Mt--, Ot--, Ot < 0 || Rt[Mt] !== Bt[Ot]) {
89916
+ if (Lt--, Ot--, Ot < 0 || Rt[Lt] !== Bt[Ot]) {
89906
89917
  var Zt = `
89907
- ` + Rt[Mt].replace(" at new ", " at ");
89918
+ ` + Rt[Lt].replace(" at new ", " at ");
89908
89919
  return We.displayName && Zt.includes("<anonymous>") && (Zt = Zt.replace("<anonymous>", We.displayName)), typeof We == "function" && Te.set(We, Zt), Zt;
89909
89920
  }
89910
- while (Mt >= 1 && Ot >= 0);
89921
+ while (Lt >= 1 && Ot >= 0);
89911
89922
  break;
89912
89923
  }
89913
89924
  }
@@ -89917,7 +89928,7 @@ function requireReactJsxDevRuntime_development() {
89917
89928
  var Qt = We ? We.displayName || We.name : "", Yt = Qt ? Ie(Qt) : "";
89918
89929
  return typeof We == "function" && Te.set(We, Yt), Yt;
89919
89930
  }
89920
- function Me(We, vt, xt) {
89931
+ function Le(We, vt, xt) {
89921
89932
  return ye(We, !1);
89922
89933
  }
89923
89934
  function Ye(We) {
@@ -89940,7 +89951,7 @@ function requireReactJsxDevRuntime_development() {
89940
89951
  if (typeof We == "object")
89941
89952
  switch (We.$$typeof) {
89942
89953
  case Z:
89943
- return Me(We.render);
89954
+ return Le(We.render);
89944
89955
  case te:
89945
89956
  return ct(We.type, vt, xt);
89946
89957
  case ne: {
@@ -89973,8 +89984,8 @@ function requireReactJsxDevRuntime_development() {
89973
89984
  throw Bt.name = "Invariant Violation", Bt;
89974
89985
  }
89975
89986
  Rt = We[Et](vt, Et, Ne, xt, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
89976
- } catch (Mt) {
89977
- Rt = Mt;
89987
+ } catch (Lt) {
89988
+ Rt = Lt;
89978
89989
  }
89979
89990
  Rt && !(Rt instanceof Error) && (it(ot), ce("%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).", Ne || "React class", xt, Et, typeof Rt), it(null)), Rt instanceof Error && !(Rt.message in wt) && (wt[Rt.message] = !0, it(ot), ce("Failed %s type: %s", xt, Rt.message), it(null));
89980
89991
  }
@@ -90091,9 +90102,9 @@ function requireReactJsxDevRuntime_development() {
90091
90102
  for (dt in vt)
90092
90103
  ut.call(vt, dt) && !ie.hasOwnProperty(dt) && (Et[dt] = vt[dt]);
90093
90104
  if (We && We.defaultProps) {
90094
- var Mt = We.defaultProps;
90095
- for (dt in Mt)
90096
- Et[dt] === void 0 && (Et[dt] = Mt[dt]);
90105
+ var Lt = We.defaultProps;
90106
+ for (dt in Lt)
90107
+ Et[dt] === void 0 && (Et[dt] = Lt[dt]);
90097
90108
  }
90098
90109
  if (Rt || Bt) {
90099
90110
  var Ot = typeof We == "function" ? We.displayName || We.name || "Unknown" : We;
@@ -90228,8 +90239,8 @@ Check the top-level render call using <` + xt + ">.");
90228
90239
  (We === void 0 || typeof We == "object" && We !== null && Object.keys(We).length === 0) && (Rt += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
90229
90240
  var Bt = Pn(ot);
90230
90241
  Bt ? Rt += Bt : Rt += un();
90231
- var Mt;
90232
- We === null ? Mt = "null" : It(We) ? Mt = "array" : We !== void 0 && We.$$typeof === I ? (Mt = "<" + (Be(We.type) || "Unknown") + " />", Rt = " Did you accidentally export a JSX literal instead of a component?") : Mt = typeof We, ce("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Mt, Rt);
90242
+ var Lt;
90243
+ We === null ? Lt = "null" : It(We) ? Lt = "array" : We !== void 0 && We.$$typeof === I ? (Lt = "<" + (Be(We.type) || "Unknown") + " />", Rt = " Did you accidentally export a JSX literal instead of a component?") : Lt = typeof We, ce("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Lt, Rt);
90233
90244
  }
90234
90245
  var Ot = At(We, vt, xt, ot, dt);
90235
90246
  if (Ot == null)
@@ -90375,12 +90386,17 @@ Object.defineProperties(u.prototype, { $$typeof: { configurable: !0, value: h },
90375
90386
  var ClientContext = /* @__PURE__ */ createContext(void 0), useClient = () => {
90376
90387
  const { client: $ } = useContext(ClientContext) ?? raise$2(new Error("Missing ClientContext."));
90377
90388
  return $;
90389
+ }, useMulticastObservable = ($) => {
90390
+ const I = useMemo(() => (U) => {
90391
+ const q = $.subscribe(U);
90392
+ return () => q.unsubscribe();
90393
+ }, [
90394
+ $
90395
+ ]);
90396
+ return useSyncExternalStore(I, () => $.get());
90378
90397
  }, useNetworkStatus = () => {
90379
90398
  const $ = useClient();
90380
- return useSyncExternalStore((U) => {
90381
- const q = $.mesh.networkStatus.subscribe(U);
90382
- return () => q.unsubscribe();
90383
- }, () => $.mesh.networkStatus.get());
90399
+ return useMulticastObservable($.mesh.networkStatus);
90384
90400
  }, withSelector = { exports: {} }, withSelector_production_min = {};
90385
90401
  /**
90386
90402
  * @license React
@@ -93704,8 +93720,8 @@ var qrcode = { exports: {} };
93704
93720
  xe = $e * 4 + 17, Ee = function(Te) {
93705
93721
  for (var be = new Array(Te), ye = 0; ye < Te; ye += 1) {
93706
93722
  be[ye] = new Array(Te);
93707
- for (var Me = 0; Me < Te; Me += 1)
93708
- be[ye][Me] = null;
93723
+ for (var Le = 0; Le < Te; Le += 1)
93724
+ be[ye][Le] = null;
93709
93725
  }
93710
93726
  return be;
93711
93727
  }(xe), st(0, 0), st(xe - 7, 0), st(0, xe - 7), ht(), at(), ze(Ie, Re), $e >= 7 && tt(Ie), Be == null && (Be = mt($e, Ce, je)), qe(Be, Re);
@@ -93731,9 +93747,9 @@ var qrcode = { exports: {} };
93731
93747
  for (var Te = 0; Te < Ie.length; Te += 1) {
93732
93748
  var be = Ie[Re], ye = Ie[Te];
93733
93749
  if (Ee[be][ye] == null)
93734
- for (var Me = -2; Me <= 2; Me += 1)
93750
+ for (var Le = -2; Le <= 2; Le += 1)
93735
93751
  for (var Ye = -2; Ye <= 2; Ye += 1)
93736
- Me == -2 || Me == 2 || Ye == -2 || Ye == 2 || Me == 0 && Ye == 0 ? Ee[be + Me][ye + Ye] = !0 : Ee[be + Me][ye + Ye] = !1;
93752
+ Le == -2 || Le == 2 || Ye == -2 || Ye == 2 || Le == 0 && Ye == 0 ? Ee[be + Le][ye + Ye] = !0 : Ee[be + Le][ye + Ye] = !1;
93737
93753
  }
93738
93754
  }, tt = function(Ie) {
93739
93755
  for (var Re = J.getBCHTypeNumber($e), Te = 0; Te < 18; Te += 1) {
@@ -93746,23 +93762,23 @@ var qrcode = { exports: {} };
93746
93762
  }
93747
93763
  }, ze = function(Ie, Re) {
93748
93764
  for (var Te = Ce << 3 | Re, be = J.getBCHTypeInfo(Te), ye = 0; ye < 15; ye += 1) {
93749
- var Me = !Ie && (be >> ye & 1) == 1;
93750
- ye < 6 ? Ee[ye][8] = Me : ye < 8 ? Ee[ye + 1][8] = Me : Ee[xe - 15 + ye][8] = Me;
93765
+ var Le = !Ie && (be >> ye & 1) == 1;
93766
+ ye < 6 ? Ee[ye][8] = Le : ye < 8 ? Ee[ye + 1][8] = Le : Ee[xe - 15 + ye][8] = Le;
93751
93767
  }
93752
93768
  for (var ye = 0; ye < 15; ye += 1) {
93753
- var Me = !Ie && (be >> ye & 1) == 1;
93754
- ye < 8 ? Ee[8][xe - ye - 1] = Me : ye < 9 ? Ee[8][15 - ye - 1 + 1] = Me : Ee[8][15 - ye - 1] = Me;
93769
+ var Le = !Ie && (be >> ye & 1) == 1;
93770
+ ye < 8 ? Ee[8][xe - ye - 1] = Le : ye < 9 ? Ee[8][15 - ye - 1 + 1] = Le : Ee[8][15 - ye - 1] = Le;
93755
93771
  }
93756
93772
  Ee[xe - 8][8] = !Ie;
93757
93773
  }, qe = function(Ie, Re) {
93758
- for (var Te = -1, be = xe - 1, ye = 7, Me = 0, Ye = J.getMaskFunction(Re), ct = xe - 1; ct > 0; ct -= 2)
93774
+ for (var Te = -1, be = xe - 1, ye = 7, Le = 0, Ye = J.getMaskFunction(Re), ct = xe - 1; ct > 0; ct -= 2)
93759
93775
  for (ct == 6 && (ct -= 1); ; ) {
93760
93776
  for (var ut = 0; ut < 2; ut += 1)
93761
93777
  if (Ee[be][ct - ut] == null) {
93762
93778
  var wt = !1;
93763
- Me < Ie.length && (wt = (Ie[Me] >>> ye & 1) == 1);
93779
+ Le < Ie.length && (wt = (Ie[Le] >>> ye & 1) == 1);
93764
93780
  var St = Ye(be, ct - ut);
93765
- St && (wt = !wt), Ee[be][ct - ut] = wt, ye -= 1, ye == -1 && (Me += 1, ye = 7);
93781
+ St && (wt = !wt), Ee[be][ct - ut] = wt, ye -= 1, ye == -1 && (Le += 1, ye = 7);
93766
93782
  }
93767
93783
  if (be += Te, be < 0 || xe <= be) {
93768
93784
  be -= Te, Te = -Te;
@@ -93770,13 +93786,13 @@ var qrcode = { exports: {} };
93770
93786
  }
93771
93787
  }
93772
93788
  }, nt = function(Ie, Re) {
93773
- for (var Te = 0, be = 0, ye = 0, Me = new Array(Re.length), Ye = new Array(Re.length), ct = 0; ct < Re.length; ct += 1) {
93789
+ for (var Te = 0, be = 0, ye = 0, Le = new Array(Re.length), Ye = new Array(Re.length), ct = 0; ct < Re.length; ct += 1) {
93774
93790
  var ut = Re[ct].dataCount, wt = Re[ct].totalCount - ut;
93775
- be = Math.max(be, ut), ye = Math.max(ye, wt), Me[ct] = new Array(ut);
93776
- for (var St = 0; St < Me[ct].length; St += 1)
93777
- Me[ct][St] = 255 & Ie.getBuffer()[St + Te];
93791
+ be = Math.max(be, ut), ye = Math.max(ye, wt), Le[ct] = new Array(ut);
93792
+ for (var St = 0; St < Le[ct].length; St += 1)
93793
+ Le[ct][St] = 255 & Ie.getBuffer()[St + Te];
93778
93794
  Te += ut;
93779
- var it = J.getErrorCorrectPolynomial(wt), Ut = Q(Me[ct], it.getLength() - 1), Kt = Ut.mod(it);
93795
+ var it = J.getErrorCorrectPolynomial(wt), Ut = Q(Le[ct], it.getLength() - 1), Kt = Ut.mod(it);
93780
93796
  Ye[ct] = new Array(it.getLength() - 1);
93781
93797
  for (var St = 0; St < Ye[ct].length; St += 1) {
93782
93798
  var It = St + Kt.getLength() - Ye[ct].length;
@@ -93787,18 +93803,18 @@ var qrcode = { exports: {} };
93787
93803
  Ht += Re[St].totalCount;
93788
93804
  for (var rn = new Array(Ht), Ct = 0, St = 0; St < be; St += 1)
93789
93805
  for (var ct = 0; ct < Re.length; ct += 1)
93790
- St < Me[ct].length && (rn[Ct] = Me[ct][St], Ct += 1);
93806
+ St < Le[ct].length && (rn[Ct] = Le[ct][St], Ct += 1);
93791
93807
  for (var St = 0; St < ye; St += 1)
93792
93808
  for (var ct = 0; ct < Re.length; ct += 1)
93793
93809
  St < Ye[ct].length && (rn[Ct] = Ye[ct][St], Ct += 1);
93794
93810
  return rn;
93795
93811
  }, mt = function(Ie, Re, Te) {
93796
- for (var be = ee.getRSBlocks(Ie, Re), ye = te(), Me = 0; Me < Te.length; Me += 1) {
93797
- var Ye = Te[Me];
93812
+ for (var be = ee.getRSBlocks(Ie, Re), ye = te(), Le = 0; Le < Te.length; Le += 1) {
93813
+ var Ye = Te[Le];
93798
93814
  ye.put(Ye.getMode(), 4), ye.put(Ye.getLength(), J.getLengthInBits(Ye.getMode(), Ie)), Ye.write(ye);
93799
93815
  }
93800
- for (var ct = 0, Me = 0; Me < be.length; Me += 1)
93801
- ct += be[Me].dataCount;
93816
+ for (var ct = 0, Le = 0; Le < be.length; Le += 1)
93817
+ ct += be[Le].dataCount;
93802
93818
  if (ye.getLengthInBits() > ct * 8)
93803
93819
  throw "code length overflow. (" + ye.getLengthInBits() + ">" + ct * 8 + ")";
93804
93820
  for (ye.getLengthInBits() + 4 <= ct * 8 && ye.put(0, 4); ye.getLengthInBits() % 8 != 0; )
@@ -93840,9 +93856,9 @@ var qrcode = { exports: {} };
93840
93856
  var ye = je[be];
93841
93857
  Te.put(ye.getMode(), 4), Te.put(ye.getLength(), J.getLengthInBits(ye.getMode(), Ie)), ye.write(Te);
93842
93858
  }
93843
- for (var Me = 0, be = 0; be < Re.length; be++)
93844
- Me += Re[be].dataCount;
93845
- if (Te.getLengthInBits() <= Me * 8)
93859
+ for (var Le = 0, be = 0; be < Re.length; be++)
93860
+ Le += Re[be].dataCount;
93861
+ if (Te.getLengthInBits() <= Le * 8)
93846
93862
  break;
93847
93863
  }
93848
93864
  $e = Ie;
@@ -93862,17 +93878,17 @@ var qrcode = { exports: {} };
93862
93878
  }, Ge.createSvgTag = function(Ie, Re, Te, be) {
93863
93879
  var ye = {};
93864
93880
  typeof arguments[0] == "object" && (ye = arguments[0], Ie = ye.cellSize, Re = ye.margin, Te = ye.alt, be = ye.title), Ie = Ie || 2, Re = typeof Re > "u" ? Ie * 4 : Re, Te = typeof Te == "string" ? { text: Te } : Te || {}, Te.text = Te.text || null, Te.id = Te.text ? Te.id || "qrcode-description" : null, be = typeof be == "string" ? { text: be } : be || {}, be.text = be.text || null, be.id = be.text ? be.id || "qrcode-title" : null;
93865
- var Me = Ge.getModuleCount() * Ie + Re * 2, Ye, ct, ut, wt, St = "", it;
93866
- for (it = "l" + Ie + ",0 0," + Ie + " -" + Ie + ",0 0,-" + Ie + "z ", St += '<svg version="1.1" xmlns="http://www.w3.org/2000/svg"', St += ye.scalable ? "" : ' width="' + Me + 'px" height="' + Me + 'px"', St += ' viewBox="0 0 ' + Me + " " + Me + '" ', St += ' preserveAspectRatio="xMinYMin meet"', St += be.text || Te.text ? ' role="img" aria-labelledby="' + Ue([be.id, Te.id].join(" ").trim()) + '"' : "", St += ">", St += be.text ? '<title id="' + Ue(be.id) + '">' + Ue(be.text) + "</title>" : "", St += Te.text ? '<description id="' + Ue(Te.id) + '">' + Ue(Te.text) + "</description>" : "", St += '<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>', St += '<path d="', ut = 0; ut < Ge.getModuleCount(); ut += 1)
93881
+ var Le = Ge.getModuleCount() * Ie + Re * 2, Ye, ct, ut, wt, St = "", it;
93882
+ for (it = "l" + Ie + ",0 0," + Ie + " -" + Ie + ",0 0,-" + Ie + "z ", St += '<svg version="1.1" xmlns="http://www.w3.org/2000/svg"', St += ye.scalable ? "" : ' width="' + Le + 'px" height="' + Le + 'px"', St += ' viewBox="0 0 ' + Le + " " + Le + '" ', St += ' preserveAspectRatio="xMinYMin meet"', St += be.text || Te.text ? ' role="img" aria-labelledby="' + Ue([be.id, Te.id].join(" ").trim()) + '"' : "", St += ">", St += be.text ? '<title id="' + Ue(be.id) + '">' + Ue(be.text) + "</title>" : "", St += Te.text ? '<description id="' + Ue(Te.id) + '">' + Ue(Te.text) + "</description>" : "", St += '<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>', St += '<path d="', ut = 0; ut < Ge.getModuleCount(); ut += 1)
93867
93883
  for (wt = ut * Ie + Re, Ye = 0; Ye < Ge.getModuleCount(); Ye += 1)
93868
93884
  Ge.isDark(ut, Ye) && (ct = Ye * Ie + Re, St += "M" + ct + "," + wt + it);
93869
93885
  return St += '" stroke="transparent" fill="black"/>', St += "</svg>", St;
93870
93886
  }, Ge.createDataURL = function(Ie, Re) {
93871
93887
  Ie = Ie || 2, Re = typeof Re > "u" ? Ie * 4 : Re;
93872
93888
  var Te = Ge.getModuleCount() * Ie + Re * 2, be = Re, ye = Te - Re;
93873
- return he(Te, Te, function(Me, Ye) {
93874
- if (be <= Me && Me < ye && be <= Ye && Ye < ye) {
93875
- var ct = Math.floor((Me - be) / Ie), ut = Math.floor((Ye - be) / Ie);
93889
+ return he(Te, Te, function(Le, Ye) {
93890
+ if (be <= Le && Le < ye && be <= Ye && Ye < ye) {
93891
+ var ct = Math.floor((Le - be) / Ie), ut = Math.floor((Ye - be) / Ie);
93876
93892
  return Ge.isDark(ut, ct) ? 0 : 1;
93877
93893
  } else
93878
93894
  return 1;
@@ -93907,7 +93923,7 @@ var qrcode = { exports: {} };
93907
93923
  }, He = function(Ie) {
93908
93924
  var Re = 1;
93909
93925
  Ie = typeof Ie > "u" ? Re * 2 : Ie;
93910
- var Te = Ge.getModuleCount() * Re + Ie * 2, be = Ie, ye = Te - Ie, Me, Ye, ct, ut, wt, St = {
93926
+ var Te = Ge.getModuleCount() * Re + Ie * 2, be = Ie, ye = Te - Ie, Le, Ye, ct, ut, wt, St = {
93911
93927
  "██": "█",
93912
93928
  "█ ": "▀",
93913
93929
  " █": "▄",
@@ -93918,9 +93934,9 @@ var qrcode = { exports: {} };
93918
93934
  " █": " ",
93919
93935
  " ": " "
93920
93936
  }, Ut = "";
93921
- for (Me = 0; Me < Te; Me += 2) {
93922
- for (ct = Math.floor((Me - be) / Re), ut = Math.floor((Me + 1 - be) / Re), Ye = 0; Ye < Te; Ye += 1)
93923
- wt = "█", be <= Ye && Ye < ye && be <= Me && Me < ye && Ge.isDark(ct, Math.floor((Ye - be) / Re)) && (wt = " "), be <= Ye && Ye < ye && be <= Me + 1 && Me + 1 < ye && Ge.isDark(ut, Math.floor((Ye - be) / Re)) ? wt += " " : wt += "█", Ut += Ie < 1 && Me + 1 >= ye ? it[wt] : St[wt];
93937
+ for (Le = 0; Le < Te; Le += 2) {
93938
+ for (ct = Math.floor((Le - be) / Re), ut = Math.floor((Le + 1 - be) / Re), Ye = 0; Ye < Te; Ye += 1)
93939
+ wt = "█", be <= Ye && Ye < ye && be <= Le && Le < ye && Ge.isDark(ct, Math.floor((Ye - be) / Re)) && (wt = " "), be <= Ye && Ye < ye && be <= Le + 1 && Le + 1 < ye && Ge.isDark(ut, Math.floor((Ye - be) / Re)) ? wt += " " : wt += "█", Ut += Ie < 1 && Le + 1 >= ye ? it[wt] : St[wt];
93924
93940
  Ut += `
93925
93941
  `;
93926
93942
  }
@@ -93930,10 +93946,10 @@ var qrcode = { exports: {} };
93930
93946
  if (Ie = Ie || 1, Ie < 2)
93931
93947
  return He(Re);
93932
93948
  Ie -= 1, Re = typeof Re > "u" ? Ie * 2 : Re;
93933
- var Te = Ge.getModuleCount() * Ie + Re * 2, be = Re, ye = Te - Re, Me, Ye, ct, ut, wt = Array(Ie + 1).join("██"), St = Array(Ie + 1).join(" "), it = "", Ut = "";
93934
- for (Me = 0; Me < Te; Me += 1) {
93935
- for (ct = Math.floor((Me - be) / Ie), Ut = "", Ye = 0; Ye < Te; Ye += 1)
93936
- ut = 1, be <= Ye && Ye < ye && be <= Me && Me < ye && Ge.isDark(ct, Math.floor((Ye - be) / Ie)) && (ut = 0), Ut += ut ? wt : St;
93949
+ var Te = Ge.getModuleCount() * Ie + Re * 2, be = Re, ye = Te - Re, Le, Ye, ct, ut, wt = Array(Ie + 1).join("██"), St = Array(Ie + 1).join(" "), it = "", Ut = "";
93950
+ for (Le = 0; Le < Te; Le += 1) {
93951
+ for (ct = Math.floor((Le - be) / Ie), Ut = "", Ye = 0; Ye < Te; Ye += 1)
93952
+ ut = 1, be <= Ye && Ye < ye && be <= Le && Le < ye && Ge.isDark(ct, Math.floor((Ye - be) / Ie)) && (ut = 0), Ut += ut ? wt : St;
93937
93953
  for (ct = 0; ct < Ie; ct += 1)
93938
93954
  it += Ut + `
93939
93955
  `;
@@ -96021,7 +96037,7 @@ const invitationStatusValue = /* @__PURE__ */ new Map([
96021
96037
  Space: re.context.space.unredeemedCode
96022
96038
  }),
96023
96039
  [re]
96024
- ), ue = useMulticastObservable(Q.spaces), he = useMemo(
96040
+ ), ue = useMulticastObservable$1(Q.spaces), he = useMemo(
96025
96041
  () => ({
96026
96042
  Space: ue ? new Set(ue.map(({ key: Ce }) => Ce.toHex())) : void 0
96027
96043
  }),
@@ -96599,11 +96615,11 @@ createContext({});
96599
96615
  export {
96600
96616
  Event$1 as E,
96601
96617
  Trigger as T,
96602
- WebSocket2 as W,
96618
+ WebSocket3 as W,
96603
96619
  logInfo as a,
96604
96620
  createProtoRpcPeer as c,
96605
96621
  export_Buffer as e,
96606
96622
  log$2 as l,
96607
96623
  runShell as r
96608
96624
  };
96609
- //# sourceMappingURL=index-DJjWWEjX.mjs.map
96625
+ //# sourceMappingURL=index-DACjPI-n.mjs.map