@dxos/shell 0.4.10-main.c42bfdb → 0.4.10-main.ccba876

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.
Files changed (28) hide show
  1. package/dist/bundle/{index-Ba36DtoM.mjs → index-DY0hiAob.mjs} +2 -2
  2. package/dist/bundle/{index-Ba36DtoM.mjs.map → index-DY0hiAob.mjs.map} +1 -1
  3. package/dist/bundle/{index-CnChDHv2.mjs → index-_bedgWKd.mjs} +897 -846
  4. package/dist/bundle/{index-CnChDHv2.mjs.map → index-_bedgWKd.mjs.map} +1 -1
  5. package/dist/bundle/shell.mjs +1 -1
  6. package/dist/bundle/shell.umd.js +25 -25
  7. package/dist/bundle/shell.umd.js.map +1 -1
  8. package/dist/bundle/style.css +1 -1
  9. package/dist/lib/browser/meta.json +1 -1
  10. package/dist/lib/browser/react.mjs +33 -31
  11. package/dist/lib/browser/react.mjs.map +3 -3
  12. package/dist/types/src/components/InvitationList/InvitationListItem.js +5 -5
  13. package/dist/types/src/components/InvitationList/InvitationListItem.js.map +1 -1
  14. package/dist/types/src/panels/IdentityPanel/useAgentHandlers.d.ts.map +1 -1
  15. package/dist/types/src/panels/IdentityPanel/useAgentHandlers.js +5 -1
  16. package/dist/types/src/panels/IdentityPanel/useAgentHandlers.js.map +1 -1
  17. package/dist/types/src/panels/SpacePanel/steps/SpaceManager.d.ts.map +1 -1
  18. package/dist/types/src/panels/SpacePanel/steps/SpaceManager.js +3 -1
  19. package/dist/types/src/panels/SpacePanel/steps/SpaceManager.js.map +1 -1
  20. package/dist/types/src/steps/InvitationManager.d.ts +1 -1
  21. package/dist/types/src/steps/InvitationManager.d.ts.map +1 -1
  22. package/dist/types/src/steps/InvitationManager.js +3 -4
  23. package/dist/types/src/steps/InvitationManager.js.map +1 -1
  24. package/package.json +20 -19
  25. package/src/components/InvitationList/InvitationListItem.tsx +5 -5
  26. package/src/panels/IdentityPanel/useAgentHandlers.ts +5 -1
  27. package/src/panels/SpacePanel/steps/SpaceManager.tsx +3 -1
  28. package/src/steps/InvitationManager.tsx +4 -4
@@ -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, Le) {
1687
- var Ye = at && Le !== ce ? Le : qe;
1686
+ var Re = function(be, ye, Me) {
1687
+ var Ye = at && Me !== ce ? Me : 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, [Le, 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, [Me, 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: Le,
6257
+ zIndex: Me,
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(Lt) {
7662
- return String(Lt);
7661
+ var Bt = dt.map(function(Mt) {
7662
+ return String(Mt);
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, Lt = Rt._init;
7721
+ var Rt = Ne, Bt = Rt._payload, Mt = Rt._init;
7722
7722
  try {
7723
- return Be(Lt(Bt));
7723
+ return Be(Mt(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 Lt = function() {
7828
+ var Mt = function() {
7829
7829
  throw Error();
7830
7830
  };
7831
- if (Object.defineProperty(Lt.prototype, "props", {
7831
+ if (Object.defineProperty(Mt.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(Lt, []);
7837
+ Reflect.construct(Mt, []);
7838
7838
  } catch (dn) {
7839
7839
  Et = dn;
7840
7840
  }
7841
- Reflect.construct(Ne, [], Lt);
7841
+ Reflect.construct(Ne, [], Mt);
7842
7842
  } else {
7843
7843
  try {
7844
- Lt.call();
7844
+ Mt.call();
7845
7845
  } catch (dn) {
7846
7846
  Et = dn;
7847
7847
  }
7848
- Ne.call(Lt.prototype);
7848
+ Ne.call(Mt.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 Le(Ne, ot, dt) {
7883
+ function Me(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 Le(Ne.render);
7906
+ return Me(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 Lt in Ne)
7931
- if (Bt(Ne, Lt)) {
7930
+ for (var Mt in Ne)
7931
+ if (Bt(Ne, Mt)) {
7932
7932
  var Ot = void 0;
7933
7933
  try {
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`.");
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`.");
7936
7936
  throw Zt.name = "Invariant Violation", Zt;
7937
7937
  }
7938
- Ot = Ne[Lt](ot, Lt, Et, dt, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
7938
+ Ot = Ne[Mt](ot, Mt, 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, 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));
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));
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, Lt) {
8021
+ var Pt = function(Ne, ot, dt, Et, Rt, Bt, Mt) {
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: Lt,
8029
+ props: Mt,
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, Lt = {}, Ot = null, Zt = null;
8052
+ var Bt, Mt = {}, 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) && (Lt[Bt] = ot[Bt]);
8055
+ ut.call(ot, Bt) && !ie.hasOwnProperty(Bt) && (Mt[Bt] = ot[Bt]);
8056
8056
  if (Ne && Ne.defaultProps) {
8057
8057
  var Qt = Ne.defaultProps;
8058
8058
  for (Bt in Qt)
8059
- Lt[Bt] === void 0 && (Lt[Bt] = Qt[Bt]);
8059
+ Mt[Bt] === void 0 && (Mt[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(Lt, Yt), Zt && Tt(Lt, Yt);
8063
+ Ot && Dt(Mt, Yt), Zt && Tt(Mt, Yt);
8064
8064
  }
8065
- return Pt(Ne, Ot, Zt, Rt, Et, de.current, Lt);
8065
+ return Pt(Ne, Ot, Zt, Rt, Et, de.current, Mt);
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), Lt; !(Lt = Bt.next()).done; )
8145
- Tn(Lt.value) && Nn(Lt.value, ot);
8144
+ for (var Bt = Rt.call(Ne), Mt; !(Mt = Bt.next()).done; )
8145
+ Tn(Mt.value) && Nn(Mt.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 Lt = Ce(Ne);
8189
- if (!Lt) {
8188
+ var Mt = Ce(Ne);
8189
+ if (!Mt) {
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 (Lt) {
8200
+ if (Mt) {
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 Le(it) {
10839
+ function Me(it) {
10840
10840
  return ae(it, ee);
10841
10841
  }
10842
- $.isStringObject = Le;
10842
+ $.isStringObject = Me;
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) || Le(it) || Ye(it) || ct(it) || ut(it);
10856
+ return ye(it) || Me(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 Le = qe.name ? ": " + qe.name : "";
11039
- Te = " [Function" + Le + "]";
11038
+ var Me = qe.name ? ": " + qe.name : "";
11039
+ Te = " [Function" + Me + "]";
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, Le(ie, "offset");
12001
+ ie = ie >>> 0, Me(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, Le(ie, "offset");
12007
+ ie = ie >>> 0, Me(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, Le(ie, "offset");
12039
+ ie = ie >>> 0, Me(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, Le(ie, "offset");
12045
+ ie = ie >>> 0, Me(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
- Le(ie, "offset"), (de[ie] === void 0 || de[ie + oe] === void 0) && Ye(ie, de.length - (oe + 1));
12271
+ Me(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 Le(de, ie) {
12281
+ function Me(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 ? (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(
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(
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 Le(we, Me, Ze) {
12438
+ function Me(we, Le, Ze) {
12439
12439
  switch (Ze.length) {
12440
12440
  case 0:
12441
- return we.call(Me);
12441
+ return we.call(Le);
12442
12442
  case 1:
12443
- return we.call(Me, Ze[0]);
12443
+ return we.call(Le, Ze[0]);
12444
12444
  case 2:
12445
- return we.call(Me, Ze[0], Ze[1]);
12445
+ return we.call(Le, Ze[0], Ze[1]);
12446
12446
  case 3:
12447
- return we.call(Me, Ze[0], Ze[1], Ze[2]);
12447
+ return we.call(Le, Ze[0], Ze[1], Ze[2]);
12448
12448
  }
12449
- return we.apply(Me, Ze);
12449
+ return we.apply(Le, Ze);
12450
12450
  }
12451
- function Ye(we, Me) {
12451
+ function Ye(we, Le) {
12452
12452
  for (var Ze = -1, $t = Array(we); ++Ze < we; )
12453
- $t[Ze] = Me(Ze);
12453
+ $t[Ze] = Le(Ze);
12454
12454
  return $t;
12455
12455
  }
12456
12456
  function ct(we) {
12457
- return function(Me) {
12458
- return we(Me);
12457
+ return function(Le) {
12458
+ return we(Le);
12459
12459
  };
12460
12460
  }
12461
- function ut(we, Me) {
12462
- return we == null ? void 0 : we[Me];
12461
+ function ut(we, Le) {
12462
+ return we == null ? void 0 : we[Le];
12463
12463
  }
12464
- function wt(we, Me) {
12464
+ function wt(we, Le) {
12465
12465
  return function(Ze) {
12466
- return we(Me(Ze));
12466
+ return we(Le(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(Me) {
12484
- if (!en(Me))
12483
+ return function(Le) {
12484
+ if (!en(Le))
12485
12485
  return {};
12486
12486
  if (De)
12487
- return De(Me);
12488
- we.prototype = Me;
12487
+ return De(Le);
12488
+ we.prototype = Le;
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 Me = -1, Ze = we == null ? 0 : we.length;
12495
- for (this.clear(); ++Me < Ze; ) {
12496
- var $t = we[Me];
12494
+ var Le = -1, Ze = we == null ? 0 : we.length;
12495
+ for (this.clear(); ++Le < Ze; ) {
12496
+ var $t = we[Le];
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 Me = this.has(we) && delete this.__data__[we];
12505
- return this.size -= Me ? 1 : 0, Me;
12504
+ var Le = this.has(we) && delete this.__data__[we];
12505
+ return this.size -= Le ? 1 : 0, Le;
12506
12506
  }
12507
12507
  function Vn(we) {
12508
- var Me = this.__data__;
12508
+ var Le = this.__data__;
12509
12509
  if (mn) {
12510
- var Ze = Me[we];
12510
+ var Ze = Le[we];
12511
12511
  return Ze === q ? void 0 : Ze;
12512
12512
  }
12513
- return Ht.call(Me, we) ? Me[we] : void 0;
12513
+ return Ht.call(Le, we) ? Le[we] : void 0;
12514
12514
  }
12515
12515
  function Nn(we) {
12516
- var Me = this.__data__;
12517
- return mn ? Me[we] !== void 0 : Ht.call(Me, we);
12516
+ var Le = this.__data__;
12517
+ return mn ? Le[we] !== void 0 : Ht.call(Le, we);
12518
12518
  }
12519
- function Fn(we, Me) {
12519
+ function Fn(we, Le) {
12520
12520
  var Ze = this.__data__;
12521
- return this.size += this.has(we) ? 0 : 1, Ze[we] = mn && Me === void 0 ? q : Me, this;
12521
+ return this.size += this.has(we) ? 0 : 1, Ze[we] = mn && Le === void 0 ? q : Le, 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 Me = -1, Ze = we == null ? 0 : we.length;
12526
- for (this.clear(); ++Me < Ze; ) {
12527
- var $t = we[Me];
12525
+ var Le = -1, Ze = we == null ? 0 : we.length;
12526
+ for (this.clear(); ++Le < Ze; ) {
12527
+ var $t = we[Le];
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 Me = this.__data__, Ze = dn(Me, we);
12535
+ var Le = this.__data__, Ze = dn(Le, we);
12536
12536
  if (Ze < 0)
12537
12537
  return !1;
12538
- var $t = Me.length - 1;
12539
- return Ze == $t ? Me.pop() : Dt.call(Me, Ze, 1), --this.size, !0;
12538
+ var $t = Le.length - 1;
12539
+ return Ze == $t ? Le.pop() : Dt.call(Le, Ze, 1), --this.size, !0;
12540
12540
  }
12541
12541
  function Kn(we) {
12542
- var Me = this.__data__, Ze = dn(Me, we);
12543
- return Ze < 0 ? void 0 : Me[Ze][1];
12542
+ var Le = this.__data__, Ze = dn(Le, we);
12543
+ return Ze < 0 ? void 0 : Le[Ze][1];
12544
12544
  }
12545
12545
  function We(we) {
12546
12546
  return dn(this.__data__, we) > -1;
12547
12547
  }
12548
- function vt(we, Me) {
12548
+ function vt(we, Le) {
12549
12549
  var Ze = this.__data__, $t = dn(Ze, we);
12550
- return $t < 0 ? (++this.size, Ze.push([we, Me])) : Ze[$t][1] = Me, this;
12550
+ return $t < 0 ? (++this.size, Ze.push([we, Le])) : Ze[$t][1] = Le, 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 Me = -1, Ze = we == null ? 0 : we.length;
12555
- for (this.clear(); ++Me < Ze; ) {
12556
- var $t = we[Me];
12554
+ var Le = -1, Ze = we == null ? 0 : we.length;
12555
+ for (this.clear(); ++Le < Ze; ) {
12556
+ var $t = we[Le];
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 Me = bt(this, we).delete(we);
12569
- return this.size -= Me ? 1 : 0, Me;
12568
+ var Le = bt(this, we).delete(we);
12569
+ return this.size -= Le ? 1 : 0, Le;
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, Me) {
12577
+ function Rt(we, Le) {
12578
12578
  var Ze = bt(this, we), $t = Ze.size;
12579
- return Ze.set(we, Me), this.size += Ze.size == $t ? 0 : 1, this;
12579
+ return Ze.set(we, Le), 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 Me = this.__data__ = new ln(we);
12584
- this.size = Me.size;
12583
+ var Le = this.__data__ = new ln(we);
12584
+ this.size = Le.size;
12585
12585
  }
12586
- function Lt() {
12586
+ function Mt() {
12587
12587
  this.__data__ = new ln(), this.size = 0;
12588
12588
  }
12589
12589
  function Ot(we) {
12590
- var Me = this.__data__, Ze = Me.delete(we);
12591
- return this.size = Me.size, Ze;
12590
+ var Le = this.__data__, Ze = Le.delete(we);
12591
+ return this.size = Le.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, Me) {
12599
+ function Yt(we, Le) {
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, Me]), this.size = ++Ze.size, this;
12604
+ return $t.push([we, Le]), this.size = ++Ze.size, this;
12605
12605
  Ze = this.__data__ = new xt($t);
12606
12606
  }
12607
- return Ze.set(we, Me), this.size = Ze.size, this;
12607
+ return Ze.set(we, Le), this.size = Ze.size, this;
12608
12608
  }
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) {
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) {
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
- (Me || Ht.call(we, En)) && !(Vt && // Safari 9 has enumerable `arguments.length` in strict mode.
12613
+ (Le || 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, Me, Ze) {
12621
- (Ze !== void 0 && !Fe(we[Me], Ze) || Ze === void 0 && !(Me in we)) && Bn(we, Me, Ze);
12620
+ function xn(we, Le, Ze) {
12621
+ (Ze !== void 0 && !Fe(we[Le], Ze) || Ze === void 0 && !(Le in we)) && Bn(we, Le, Ze);
12622
12622
  }
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);
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);
12626
12626
  }
12627
- function dn(we, Me) {
12627
+ function dn(we, Le) {
12628
12628
  for (var Ze = we.length; Ze--; )
12629
- if (Fe(we[Ze][0], Me))
12629
+ if (Fe(we[Ze][0], Le))
12630
12630
  return Ze;
12631
12631
  return -1;
12632
12632
  }
12633
- function Bn(we, Me, Ze) {
12634
- Me == "__proto__" && Pt ? Pt(we, Me, {
12633
+ function Bn(we, Le, Ze) {
12634
+ Le == "__proto__" && Pt ? Pt(we, Le, {
12635
12635
  configurable: !0,
12636
12636
  enumerable: !0,
12637
12637
  value: Ze,
12638
12638
  writable: !0
12639
- }) : we[Me] = Ze;
12639
+ }) : we[Le] = 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) ? Mt(we) : Zn(we);
12643
+ return we == null ? we === void 0 ? ge : le : Tt && Tt in Object(we) ? Lt(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 Me = pn(we) ? de : tt;
12652
- return Me.test(qn(we));
12651
+ var Le = pn(we) ? de : tt;
12652
+ return Le.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 Me = wn(we), Ze = [];
12660
+ var Le = wn(we), Ze = [];
12661
12661
  for (var $t in we)
12662
- $t == "constructor" && (Me || !Ht.call(we, $t)) || Ze.push($t);
12662
+ $t == "constructor" && (Le || !Ht.call(we, $t)) || Ze.push($t);
12663
12663
  return Ze;
12664
12664
  }
12665
- function zn(we, Me, Ze, $t, jt) {
12666
- we !== Me && jn(Me, function(Ft, Vt) {
12665
+ function zn(we, Le, Ze, $t, jt) {
12666
+ we !== Le && jn(Le, function(Ft, Vt) {
12667
12667
  if (jt || (jt = new Bt()), en(Ft))
12668
- ir(we, Me, Vt, Ze, zn, $t, jt);
12668
+ ir(we, Le, Vt, Ze, zn, $t, jt);
12669
12669
  else {
12670
- var Gt = $t ? $t(Mn(we, Vt), Ft, Vt + "", we, Me, jt) : void 0;
12670
+ var Gt = $t ? $t(Ln(we, Vt), Ft, Vt + "", we, Le, 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, Me, Ze, $t, jt, Ft, Vt) {
12676
- var Gt = Mn(we, Ze), Xt = Mn(Me, Ze), En = Vt.get(Xt);
12675
+ function ir(we, Le, Ze, $t, jt, Ft, Vt) {
12676
+ var Gt = Ln(we, Ze), Xt = Ln(Le, 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, Me, Vt) : void 0, er = Rn === void 0;
12681
+ var Rn = Ft ? Ft(Gt, Xt, Ze + "", we, Le, 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, Me) {
12689
- return sr(Wn(we, Me, Pe), we + "");
12688
+ function tr(we, Le) {
12689
+ return sr(Wn(we, Le, Pe), we + "");
12690
12690
  }
12691
- var Ae = Pt ? function(we, Me) {
12691
+ var Ae = Pt ? function(we, Le) {
12692
12692
  return Pt(we, "toString", {
12693
12693
  configurable: !0,
12694
12694
  enumerable: !1,
12695
- value: Dn(Me),
12695
+ value: Dn(Le),
12696
12696
  writable: !0
12697
12697
  });
12698
12698
  } : Pe;
12699
- function Ve(we, Me) {
12700
- if (Me)
12699
+ function Ve(we, Le) {
12700
+ if (Le)
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 Me = new we.constructor(we.byteLength);
12707
- return new pe(Me).set(new pe(we)), Me;
12706
+ var Le = new we.constructor(we.byteLength);
12707
+ return new pe(Le).set(new pe(we)), Le;
12708
12708
  }
12709
- function Je(we, Me) {
12710
- var Ze = Me ? Oe(we.buffer) : we.buffer;
12709
+ function Je(we, Le) {
12710
+ var Ze = Le ? Oe(we.buffer) : we.buffer;
12711
12711
  return new we.constructor(Ze, we.byteOffset, we.length);
12712
12712
  }
12713
- function Qe(we, Me) {
12713
+ function Qe(we, Le) {
12714
12714
  var Ze = -1, $t = we.length;
12715
- for (Me || (Me = Array($t)); ++Ze < $t; )
12716
- Me[Ze] = we[Ze];
12717
- return Me;
12715
+ for (Le || (Le = Array($t)); ++Ze < $t; )
12716
+ Le[Ze] = we[Ze];
12717
+ return Le;
12718
12718
  }
12719
- function Ke(we, Me, Ze, $t) {
12719
+ function Ke(we, Le, Ze, $t) {
12720
12720
  var jt = !Ze;
12721
12721
  Ze || (Ze = {});
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;
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;
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(Me, Ze) {
12729
+ return tr(function(Le, 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), Me = Object(Me); ++$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), Le = Object(Le); ++$t < jt; ) {
12732
12732
  var Gt = Ze[$t];
12733
- Gt && we(Me, Gt, $t, Ft);
12733
+ Gt && we(Le, Gt, $t, Ft);
12734
12734
  }
12735
- return Me;
12735
+ return Le;
12736
12736
  });
12737
12737
  }
12738
12738
  function pt(we) {
12739
- return function(Me, Ze, $t) {
12740
- for (var jt = -1, Ft = Object(Me), Vt = $t(Me), Gt = Vt.length; Gt--; ) {
12739
+ return function(Le, Ze, $t) {
12740
+ for (var jt = -1, Ft = Object(Le), Vt = $t(Le), 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 Me;
12745
+ return Le;
12746
12746
  };
12747
12747
  }
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;
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;
12750
12750
  }
12751
- function bt(we, Me) {
12751
+ function bt(we, Le) {
12752
12752
  var Ze = we.__data__;
12753
- return fn(Me) ? Ze[typeof Me == "string" ? "string" : "hash"] : Ze.map;
12753
+ return fn(Le) ? Ze[typeof Le == "string" ? "string" : "hash"] : Ze.map;
12754
12754
  }
12755
- function kt(we, Me) {
12756
- var Ze = ut(we, Me);
12755
+ function kt(we, Le) {
12756
+ var Ze = ut(we, Le);
12757
12757
  return Xn(Ze) ? Ze : void 0;
12758
12758
  }
12759
- function Mt(we) {
12760
- var Me = Ht.call(we, Tt), Ze = we[Tt];
12759
+ function Lt(we) {
12760
+ var Le = 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 && (Me ? we[Tt] = Ze : delete we[Tt]), jt;
12767
+ return $t && (Le ? 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, Me) {
12772
+ function Jt(we, Le) {
12773
12773
  var Ze = typeof we;
12774
- return Me = Me ?? Y, !!Me && (Ze == "number" || Ze != "symbol" && ze.test(we)) && we > -1 && we % 1 == 0 && we < Me;
12774
+ return Le = Le ?? Y, !!Le && (Ze == "number" || Ze != "symbol" && ze.test(we)) && we > -1 && we % 1 == 0 && we < Le;
12775
12775
  }
12776
- function tn(we, Me, Ze) {
12776
+ function tn(we, Le, Ze) {
12777
12777
  if (!en(Ze))
12778
12778
  return !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;
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;
12781
12781
  }
12782
12782
  function fn(we) {
12783
- var Me = typeof we;
12784
- return Me == "string" || Me == "number" || Me == "symbol" || Me == "boolean" ? we !== "__proto__" : we === null;
12783
+ var Le = typeof we;
12784
+ return Le == "string" || Le == "number" || Le == "symbol" || Le == "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 Me = we && we.constructor, Ze = typeof Me == "function" && Me.prototype || Ut;
12790
+ var Le = we && we.constructor, Ze = typeof Le == "function" && Le.prototype || Ut;
12791
12791
  return we === Ze;
12792
12792
  }
12793
12793
  function Hn(we) {
12794
- var Me = [];
12794
+ var Le = [];
12795
12795
  if (we != null)
12796
12796
  for (var Ze in Object(we))
12797
- Me.push(Ze);
12798
- return Me;
12797
+ Le.push(Ze);
12798
+ return Le;
12799
12799
  }
12800
12800
  function Zn(we) {
12801
12801
  return Ct.call(we);
12802
12802
  }
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];
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];
12807
12807
  jt = -1;
12808
- for (var Gt = Array(Me + 1); ++jt < Me; )
12808
+ for (var Gt = Array(Le + 1); ++jt < Le; )
12809
12809
  Gt[jt] = $t[jt];
12810
- return Gt[Me] = Ze(Vt), Le(we, this, Gt);
12810
+ return Gt[Le] = Ze(Vt), Me(we, this, Gt);
12811
12811
  };
12812
12812
  }
12813
- function Mn(we, Me) {
12814
- if (!(Me === "constructor" && typeof we[Me] == "function") && Me != "__proto__")
12815
- return we[Me];
12813
+ function Ln(we, Le) {
12814
+ if (!(Le === "constructor" && typeof we[Le] == "function") && Le != "__proto__")
12815
+ return we[Le];
12816
12816
  }
12817
12817
  var sr = ar(Ae);
12818
12818
  function ar(we) {
12819
- var Me = 0, Ze = 0;
12819
+ var Le = 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 (++Me >= G)
12823
+ if (++Le >= G)
12824
12824
  return arguments[0];
12825
12825
  } else
12826
- Me = 0;
12826
+ Le = 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, Me) {
12844
- return we === Me || we !== we && Me !== Me;
12843
+ function Fe(we, Le) {
12844
+ return we === Le || we !== we && Le !== Le;
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 Me = An(we);
12862
- return Me == re || Me == ae || Me == Q || Me == ue;
12861
+ var Le = An(we);
12862
+ return Le == re || Le == ae || Le == Q || Le == 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 Me = typeof we;
12869
- return we != null && (Me == "object" || Me == "function");
12868
+ var Le = typeof we;
12869
+ return we != null && (Le == "object" || Le == "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 Me = Se(we);
12878
- if (Me === null)
12877
+ var Le = Se(we);
12878
+ if (Le === null)
12879
12879
  return !0;
12880
- var Ze = Ht.call(Me, "constructor") && Me.constructor;
12880
+ var Ze = Ht.call(Le, "constructor") && Le.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), Le(Ln, void 0, we);
12888
+ return we.push(void 0, gt), Me(Mn, void 0, we);
12889
12889
  });
12890
12890
  function Cn(we) {
12891
12891
  return Nt(we) ? sn(we, !0) : rr(we);
12892
12892
  }
12893
- var Ln = ft(function(we, Me, Ze, $t) {
12894
- zn(we, Me, Ze, $t);
12893
+ var Mn = ft(function(we, Le, Ze, $t) {
12894
+ zn(we, Le, Ze, $t);
12895
12895
  });
12896
12896
  function Dn(we) {
12897
12897
  return function() {
@@ -13356,6 +13356,9 @@ var equalsSymbol = Symbol.for("dxos.common.equals"), __require$1 = /* @__PURE__
13356
13356
  toJSON() {
13357
13357
  return this.toHex();
13358
13358
  }
13359
+ toJSONL() {
13360
+ return this.truncate();
13361
+ }
13359
13362
  get length() {
13360
13363
  return this._value.length;
13361
13364
  }
@@ -14085,8 +14088,8 @@ var equalsSymbol = Symbol.for("dxos.common.equals"), __require$1 = /* @__PURE__
14085
14088
  };
14086
14089
  let G = setTimeout(q, U);
14087
14090
  return () => clearTimeout(G);
14088
- }, arrayToBuffer = ($) => export_Buffer.from($.buffer, $.byteOffset, $.byteLength), MAX_DEPTH = 5, jsonify = ($, I = 0, U = /* @__PURE__ */ new WeakSet()) => {
14089
- if (I > MAX_DEPTH)
14091
+ }, arrayToBuffer = ($) => export_Buffer.from($.buffer, $.byteOffset, $.byteLength), LOG_MAX_DEPTH = 7, jsonlogify = ($, I = 0, U = /* @__PURE__ */ new WeakSet()) => {
14092
+ if (I > LOG_MAX_DEPTH)
14090
14093
  return null;
14091
14094
  if (typeof $ == "function")
14092
14095
  return null;
@@ -14098,13 +14101,15 @@ var equalsSymbol = Symbol.for("dxos.common.equals"), __require$1 = /* @__PURE__
14098
14101
  if ($ instanceof Uint8Array)
14099
14102
  return arrayToBuffer($).toString("hex");
14100
14103
  if (Array.isArray($))
14101
- return $.map((q) => jsonify(q, I + 1, U));
14104
+ return $.map((q) => jsonlogify(q, I + 1, U));
14105
+ if (typeof $.toJSONL == "function")
14106
+ return $.toJSONL();
14102
14107
  if (typeof $.toJSON == "function")
14103
14108
  return $.toJSON();
14104
14109
  {
14105
14110
  const q = {};
14106
14111
  for (const G of Object.keys($))
14107
- q[G] = jsonify($[G], I + 1, U);
14112
+ q[G] = jsonlogify($[G], I + 1, U);
14108
14113
  return q;
14109
14114
  }
14110
14115
  } finally {
@@ -14399,6 +14404,8 @@ var logInfoProperties = Symbol("logInfoProperties"), logInfo = ($, I, U) => {
14399
14404
  const J = Y.value, Z = K;
14400
14405
  Y.value = function(...Q) {
14401
14406
  const ee = {
14407
+ F: "",
14408
+ L: 0,
14402
14409
  ...q ?? {},
14403
14410
  S: this
14404
14411
  }, te = Q.map((ne) => export_inspect(ne, !1, 1, !0)).join(", ");
@@ -14515,10 +14522,16 @@ var logInfoProperties = Symbol("logInfoProperties"), logInfo = ($, I, U) => {
14515
14522
  ]);
14516
14523
  const J = Y[I.level] ?? console.log;
14517
14524
  typeof ((ee = I.meta) == null ? void 0 : ee.C) == "function" ? I.meta.C(J, q) : J(...q);
14518
- }, BROWSER_PROCESSOR = CONFIG.useTestProcessor ? TEST_BROWSER_PROCESSOR : APP_BROWSER_PROCESSOR, EAGAIN_MAX_DURATION = 1e3, createFileProcessor = ({ pathOrFd: $, levels: I, filters: U }) => {
14525
+ }, BROWSER_PROCESSOR = CONFIG.useTestProcessor ? TEST_BROWSER_PROCESSOR : APP_BROWSER_PROCESSOR, getRelativeFilename2 = ($) => {
14526
+ const I = $.match(/.+\/(packages\/.+\/.+)/);
14527
+ if (I) {
14528
+ const [, U] = I;
14529
+ return U;
14530
+ }
14531
+ return $;
14532
+ }, EAGAIN_MAX_DURATION = 1e3, createFileProcessor = ({ pathOrFd: $, levels: I, filters: U }) => {
14519
14533
  let q;
14520
14534
  return (G, K) => {
14521
- var Z, Q;
14522
14535
  if (I.length > 0 && !I.includes(K.level) || !shouldLog(K, U))
14523
14536
  return;
14524
14537
  if (typeof $ == "number")
@@ -14533,24 +14546,26 @@ var logInfoProperties = Symbol("logInfoProperties"), logInfo = ($, I, U) => {
14533
14546
  const Y = {
14534
14547
  ...K,
14535
14548
  timestamp: Date.now(),
14536
- meta: {
14537
- file: (Z = K.meta) == null ? void 0 : Z.F,
14538
- line: (Q = K.meta) == null ? void 0 : Q.L
14539
- },
14540
- context: jsonify(getContextFromEntry(K))
14549
+ ...K.meta ? {
14550
+ meta: {
14551
+ file: getRelativeFilename2(K.meta.F),
14552
+ line: K.meta.L
14553
+ }
14554
+ } : {},
14555
+ context: jsonlogify(getContextFromEntry(K))
14541
14556
  };
14542
14557
  let J = 0;
14543
14558
  for (; ; )
14544
14559
  try {
14545
14560
  return appendFileSync(q, JSON.stringify(Y) + `
14546
14561
  `);
14547
- } catch (ee) {
14548
- if (ee.code !== "EAGAIN")
14549
- throw ee;
14562
+ } catch (Z) {
14563
+ if (Z.code !== "EAGAIN")
14564
+ throw Z;
14550
14565
  if (J === 0)
14551
14566
  J = performance.now();
14552
14567
  else if (performance.now() - J > EAGAIN_MAX_DURATION)
14553
- throw console.log(`could not write after ${EAGAIN_MAX_DURATION}ms of EAGAIN failures, giving up`), ee;
14568
+ throw console.log(`could not write after ${EAGAIN_MAX_DURATION}ms of EAGAIN failures, giving up`), Z;
14554
14569
  }
14555
14570
  };
14556
14571
  }, logFilePath, getLogFilePath = () => (logFilePath ?? (logFilePath = process.env.LOG_FILE ?? (process.env.HOME ? `${process.env.HOME}/.dxlog/${(/* @__PURE__ */ new Date()).toISOString()}.log` : void 0)), logFilePath);
@@ -16018,7 +16033,7 @@ const arrow$1 = ($) => {
16018
16033
  Re,
16019
16034
  ye
16020
16035
  ]);
16021
- 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();
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();
16022
16037
  $9f79659886946c16$export$e5c5a5f917a5871c$1(() => {
16023
16038
  _e && wt(window.getComputedStyle(_e).zIndex);
16024
16039
  }, [
@@ -16078,7 +16093,7 @@ const arrow$1 = ($) => {
16078
16093
  scope: ee,
16079
16094
  placedSide: Te,
16080
16095
  onArrowChange: xe,
16081
- arrowX: Le,
16096
+ arrowX: Me,
16082
16097
  arrowY: Ye,
16083
16098
  shouldHideArrow: ct
16084
16099
  }, Ut ? /* @__PURE__ */ createElement($cf1ac5d9fe0e8206$var$PositionContextProvider, {
@@ -17837,12 +17852,13 @@ var Message$1 = {
17837
17852
  className: q("scrollArea.viewport", "scroll-area", {}, $),
17838
17853
  ref: U
17839
17854
  });
17840
- }), ScrollAreaScrollbar = /* @__PURE__ */ forwardRef(({ classNames: $, ...I }, U) => {
17841
- const { tx: q } = useThemeContext();
17855
+ }), ScrollAreaScrollbar = /* @__PURE__ */ forwardRef(({ classNames: $, variant: I = "fine", ...U }, q) => {
17856
+ const { tx: G } = useThemeContext();
17842
17857
  return /* @__PURE__ */ React__default.createElement($57acba87d6e25586$export$9a4e88b92edfce6b, {
17843
- ...I,
17844
- className: q("scrollArea.scrollbar", "scroll-area__scrollbar", {}, $),
17845
- ref: U
17858
+ "data-variant": I,
17859
+ ...U,
17860
+ className: G("scrollArea.scrollbar", "scroll-area__scrollbar", {}, $),
17861
+ ref: q
17846
17862
  });
17847
17863
  }), ScrollAreaThumb = /* @__PURE__ */ forwardRef(({ classNames: $, ...I }, U) => {
17848
17864
  const { tx: q } = useThemeContext();
@@ -20184,7 +20200,7 @@ lodash_merge.exports;
20184
20200
  } catch {
20185
20201
  }
20186
20202
  }(), ye = be && be.isTypedArray;
20187
- function Le(Pe, Xe, we) {
20203
+ function Me(Pe, Xe, we) {
20188
20204
  switch (we.length) {
20189
20205
  case 0:
20190
20206
  return Pe.call(Xe);
@@ -20198,9 +20214,9 @@ lodash_merge.exports;
20198
20214
  return Pe.apply(Xe, we);
20199
20215
  }
20200
20216
  function Ye(Pe, Xe) {
20201
- for (var we = -1, Me = Array(Pe); ++we < Pe; )
20202
- Me[we] = Xe(we);
20203
- return Me;
20217
+ for (var we = -1, Le = Array(Pe); ++we < Pe; )
20218
+ Le[we] = Xe(we);
20219
+ return Le;
20204
20220
  }
20205
20221
  function ct(Pe) {
20206
20222
  return function(Xe) {
@@ -20242,8 +20258,8 @@ lodash_merge.exports;
20242
20258
  function un(Pe) {
20243
20259
  var Xe = -1, we = Pe == null ? 0 : Pe.length;
20244
20260
  for (this.clear(); ++Xe < we; ) {
20245
- var Me = Pe[Xe];
20246
- this.set(Me[0], Me[1]);
20261
+ var Le = Pe[Xe];
20262
+ this.set(Le[0], Le[1]);
20247
20263
  }
20248
20264
  }
20249
20265
  function Pn() {
@@ -20273,8 +20289,8 @@ lodash_merge.exports;
20273
20289
  function ln(Pe) {
20274
20290
  var Xe = -1, we = Pe == null ? 0 : Pe.length;
20275
20291
  for (this.clear(); ++Xe < we; ) {
20276
- var Me = Pe[Xe];
20277
- this.set(Me[0], Me[1]);
20292
+ var Le = Pe[Xe];
20293
+ this.set(Le[0], Le[1]);
20278
20294
  }
20279
20295
  }
20280
20296
  function Gn() {
@@ -20284,8 +20300,8 @@ lodash_merge.exports;
20284
20300
  var Xe = this.__data__, we = dn(Xe, Pe);
20285
20301
  if (we < 0)
20286
20302
  return !1;
20287
- var Me = Xe.length - 1;
20288
- return we == Me ? Xe.pop() : Dt.call(Xe, we, 1), --this.size, !0;
20303
+ var Le = Xe.length - 1;
20304
+ return we == Le ? Xe.pop() : Dt.call(Xe, we, 1), --this.size, !0;
20289
20305
  }
20290
20306
  function Kn(Pe) {
20291
20307
  var Xe = this.__data__, we = dn(Xe, Pe);
@@ -20295,15 +20311,15 @@ lodash_merge.exports;
20295
20311
  return dn(this.__data__, Pe) > -1;
20296
20312
  }
20297
20313
  function vt(Pe, Xe) {
20298
- var we = this.__data__, Me = dn(we, Pe);
20299
- return Me < 0 ? (++this.size, we.push([Pe, Xe])) : we[Me][1] = Xe, this;
20314
+ var we = this.__data__, Le = dn(we, Pe);
20315
+ return Le < 0 ? (++this.size, we.push([Pe, Xe])) : we[Le][1] = Xe, this;
20300
20316
  }
20301
20317
  ln.prototype.clear = Gn, ln.prototype.delete = _n, ln.prototype.get = Kn, ln.prototype.has = We, ln.prototype.set = vt;
20302
20318
  function xt(Pe) {
20303
20319
  var Xe = -1, we = Pe == null ? 0 : Pe.length;
20304
20320
  for (this.clear(); ++Xe < we; ) {
20305
- var Me = Pe[Xe];
20306
- this.set(Me[0], Me[1]);
20321
+ var Le = Pe[Xe];
20322
+ this.set(Le[0], Le[1]);
20307
20323
  }
20308
20324
  }
20309
20325
  function Ne() {
@@ -20324,15 +20340,15 @@ lodash_merge.exports;
20324
20340
  return gt(this, Pe).has(Pe);
20325
20341
  }
20326
20342
  function Rt(Pe, Xe) {
20327
- var we = gt(this, Pe), Me = we.size;
20328
- return we.set(Pe, Xe), this.size += we.size == Me ? 0 : 1, this;
20343
+ var we = gt(this, Pe), Le = we.size;
20344
+ return we.set(Pe, Xe), this.size += we.size == Le ? 0 : 1, this;
20329
20345
  }
20330
20346
  xt.prototype.clear = Ne, xt.prototype.delete = ot, xt.prototype.get = dt, xt.prototype.has = Et, xt.prototype.set = Rt;
20331
20347
  function Bt(Pe) {
20332
20348
  var Xe = this.__data__ = new ln(Pe);
20333
20349
  this.size = Xe.size;
20334
20350
  }
20335
- function Lt() {
20351
+ function Mt() {
20336
20352
  this.__data__ = new ln(), this.size = 0;
20337
20353
  }
20338
20354
  function Ot(Pe) {
@@ -20348,16 +20364,16 @@ lodash_merge.exports;
20348
20364
  function Yt(Pe, Xe) {
20349
20365
  var we = this.__data__;
20350
20366
  if (we instanceof ln) {
20351
- var Me = we.__data__;
20352
- if (!vn || Me.length < U - 1)
20353
- return Me.push([Pe, Xe]), this.size = ++we.size, this;
20354
- we = this.__data__ = new xt(Me);
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);
20355
20371
  }
20356
20372
  return we.set(Pe, Xe), this.size = we.size, this;
20357
20373
  }
20358
- Bt.prototype.clear = Lt, Bt.prototype.delete = Ot, Bt.prototype.get = Zt, Bt.prototype.has = Qt, Bt.prototype.set = Yt;
20374
+ Bt.prototype.clear = Mt, Bt.prototype.delete = Ot, Bt.prototype.get = Zt, Bt.prototype.has = Qt, Bt.prototype.set = Yt;
20359
20375
  function sn(Pe, Xe) {
20360
- 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;
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;
20361
20377
  for (var Gt in Pe)
20362
20378
  (Xe || Ht.call(Pe, Gt)) && !(jt && // Safari 9 has enumerable `arguments.length` in strict mode.
20363
20379
  (Gt == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
@@ -20370,8 +20386,8 @@ lodash_merge.exports;
20370
20386
  (we !== void 0 && !qn(Pe[Xe], we) || we === void 0 && !(Xe in Pe)) && Bn(Pe, Xe, we);
20371
20387
  }
20372
20388
  function Yn(Pe, Xe, we) {
20373
- var Me = Pe[Xe];
20374
- (!(Ht.call(Pe, Xe) && qn(Me, we)) || we === void 0 && !(Xe in Pe)) && Bn(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);
20375
20391
  }
20376
20392
  function dn(Pe, Xe) {
20377
20393
  for (var we = Pe.length; we--; )
@@ -20407,21 +20423,21 @@ lodash_merge.exports;
20407
20423
  if (!an(Pe))
20408
20424
  return wn(Pe);
20409
20425
  var Xe = cn(Pe), we = [];
20410
- for (var Me in Pe)
20411
- Me == "constructor" && (Xe || !Ht.call(Pe, Me)) || we.push(Me);
20426
+ for (var Le in Pe)
20427
+ Le == "constructor" && (Xe || !Ht.call(Pe, Le)) || we.push(Le);
20412
20428
  return we;
20413
20429
  }
20414
- function zn(Pe, Xe, we, Me, Ze) {
20430
+ function zn(Pe, Xe, we, Le, Ze) {
20415
20431
  Pe !== Xe && jn(Xe, function($t, jt) {
20416
20432
  if (Ze || (Ze = new Bt()), an($t))
20417
- ir(Pe, Xe, jt, we, zn, Me, Ze);
20433
+ ir(Pe, Xe, jt, we, zn, Le, Ze);
20418
20434
  else {
20419
- var Ft = Me ? Me(Wn(Pe, jt), $t, jt + "", Pe, Xe, Ze) : void 0;
20435
+ var Ft = Le ? Le(Wn(Pe, jt), $t, jt + "", Pe, Xe, Ze) : void 0;
20420
20436
  Ft === void 0 && (Ft = $t), xn(Pe, jt, Ft);
20421
20437
  }
20422
20438
  }, gn);
20423
20439
  }
20424
- function ir(Pe, Xe, we, Me, Ze, $t, jt) {
20440
+ function ir(Pe, Xe, we, Le, Ze, $t, jt) {
20425
20441
  var Ft = Wn(Pe, we), Vt = Wn(Xe, we), Gt = jt.get(Vt);
20426
20442
  if (Gt) {
20427
20443
  xn(Pe, we, Gt);
@@ -20430,12 +20446,12 @@ lodash_merge.exports;
20430
20446
  var Xt = $t ? $t(Ft, Vt, we + "", Pe, Xe, jt) : void 0, En = Xt === void 0;
20431
20447
  if (En) {
20432
20448
  var Rn = et(Vt), er = !Rn && nn(Vt), cr = !Rn && !er && yn(Vt);
20433
- 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;
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;
20434
20450
  }
20435
- En && (jt.set(Vt, Xt), Ze(Xt, Vt, Me, $t, jt), jt.delete(Vt)), xn(Pe, we, Xt);
20451
+ En && (jt.set(Vt, Xt), Ze(Xt, Vt, Le, $t, jt), jt.delete(Vt)), xn(Pe, we, Xt);
20436
20452
  }
20437
20453
  function tr(Pe, Xe) {
20438
- return Mn(Zn(Pe, Xe, Ln), Pe + "");
20454
+ return Ln(Zn(Pe, Xe, Mn), Pe + "");
20439
20455
  }
20440
20456
  var Ae = Pt ? function(Pe, Xe) {
20441
20457
  return Pt(Pe, "toString", {
@@ -20444,12 +20460,12 @@ lodash_merge.exports;
20444
20460
  value: Cn(Xe),
20445
20461
  writable: !0
20446
20462
  });
20447
- } : Ln;
20463
+ } : Mn;
20448
20464
  function Ve(Pe, Xe) {
20449
20465
  if (Xe)
20450
20466
  return Pe.slice();
20451
- var we = Pe.length, Me = ke ? ke(we) : new Pe.constructor(we);
20452
- return Pe.copy(Me), Me;
20467
+ var we = Pe.length, Le = ke ? ke(we) : new Pe.constructor(we);
20468
+ return Pe.copy(Le), Le;
20453
20469
  }
20454
20470
  function Oe(Pe) {
20455
20471
  var Xe = new Pe.constructor(Pe.byteLength);
@@ -20460,33 +20476,33 @@ lodash_merge.exports;
20460
20476
  return new Pe.constructor(we, Pe.byteOffset, Pe.length);
20461
20477
  }
20462
20478
  function Qe(Pe, Xe) {
20463
- var we = -1, Me = Pe.length;
20464
- for (Xe || (Xe = Array(Me)); ++we < Me; )
20479
+ var we = -1, Le = Pe.length;
20480
+ for (Xe || (Xe = Array(Le)); ++we < Le; )
20465
20481
  Xe[we] = Pe[we];
20466
20482
  return Xe;
20467
20483
  }
20468
- function Ke(Pe, Xe, we, Me) {
20484
+ function Ke(Pe, Xe, we, Le) {
20469
20485
  var Ze = !we;
20470
20486
  we || (we = {});
20471
20487
  for (var $t = -1, jt = Xe.length; ++$t < jt; ) {
20472
- var Ft = Xe[$t], Vt = Me ? Me(we[Ft], Pe[Ft], Ft, we, Pe) : void 0;
20488
+ var Ft = Xe[$t], Vt = Le ? Le(we[Ft], Pe[Ft], Ft, we, Pe) : void 0;
20473
20489
  Vt === void 0 && (Vt = Pe[Ft]), Ze ? Bn(we, Ft, Vt) : Yn(we, Ft, Vt);
20474
20490
  }
20475
20491
  return we;
20476
20492
  }
20477
20493
  function ft(Pe) {
20478
20494
  return tr(function(Xe, we) {
20479
- var Me = -1, Ze = we.length, $t = Ze > 1 ? we[Ze - 1] : void 0, jt = Ze > 2 ? we[2] : void 0;
20480
- 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; ) {
20481
- var Ft = we[Me];
20482
- Ft && Pe(Xe, Ft, Me, $t);
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);
20483
20499
  }
20484
20500
  return Xe;
20485
20501
  });
20486
20502
  }
20487
20503
  function pt(Pe) {
20488
- return function(Xe, we, Me) {
20489
- for (var Ze = -1, $t = Object(Xe), jt = Me(Xe), Ft = jt.length; Ft--; ) {
20504
+ return function(Xe, we, Le) {
20505
+ for (var Ze = -1, $t = Object(Xe), jt = Le(Xe), Ft = jt.length; Ft--; ) {
20490
20506
  var Vt = jt[Pe ? Ft : ++Ze];
20491
20507
  if (we($t[Vt], Vt, $t) === !1)
20492
20508
  break;
@@ -20506,13 +20522,13 @@ lodash_merge.exports;
20506
20522
  var Xe = Ht.call(Pe, Tt), we = Pe[Tt];
20507
20523
  try {
20508
20524
  Pe[Tt] = void 0;
20509
- var Me = !0;
20525
+ var Le = !0;
20510
20526
  } catch {
20511
20527
  }
20512
20528
  var Ze = Ct.call(Pe);
20513
- return Me && (Xe ? Pe[Tt] = we : delete Pe[Tt]), Ze;
20529
+ return Le && (Xe ? Pe[Tt] = we : delete Pe[Tt]), Ze;
20514
20530
  }
20515
- function Mt(Pe) {
20531
+ function Lt(Pe) {
20516
20532
  return typeof Pe.constructor == "function" && !cn(Pe) ? Tn(Se(Pe)) : {};
20517
20533
  }
20518
20534
  function Wt(Pe, Xe) {
@@ -20522,8 +20538,8 @@ lodash_merge.exports;
20522
20538
  function Jt(Pe, Xe, we) {
20523
20539
  if (!an(we))
20524
20540
  return !1;
20525
- var Me = typeof Xe;
20526
- return (Me == "number" ? yt(we) && Wt(Xe, we.length) : Me == "string" && Xe in we) ? qn(we[Xe], Pe) : !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;
20527
20543
  }
20528
20544
  function tn(Pe) {
20529
20545
  var Xe = typeof Pe;
@@ -20548,24 +20564,24 @@ lodash_merge.exports;
20548
20564
  }
20549
20565
  function Zn(Pe, Xe, we) {
20550
20566
  return Xe = Sn(Xe === void 0 ? Pe.length - 1 : Xe, 0), function() {
20551
- for (var Me = arguments, Ze = -1, $t = Sn(Me.length - Xe, 0), jt = Array($t); ++Ze < $t; )
20552
- jt[Ze] = Me[Xe + Ze];
20567
+ for (var Le = arguments, Ze = -1, $t = Sn(Le.length - Xe, 0), jt = Array($t); ++Ze < $t; )
20568
+ jt[Ze] = Le[Xe + Ze];
20553
20569
  Ze = -1;
20554
20570
  for (var Ft = Array(Xe + 1); ++Ze < Xe; )
20555
- Ft[Ze] = Me[Ze];
20556
- return Ft[Xe] = we(jt), Le(Pe, this, Ft);
20571
+ Ft[Ze] = Le[Ze];
20572
+ return Ft[Xe] = we(jt), Me(Pe, this, Ft);
20557
20573
  };
20558
20574
  }
20559
20575
  function Wn(Pe, Xe) {
20560
20576
  if (!(Xe === "constructor" && typeof Pe[Xe] == "function") && Xe != "__proto__")
20561
20577
  return Pe[Xe];
20562
20578
  }
20563
- var Mn = sr(Ae);
20579
+ var Ln = sr(Ae);
20564
20580
  function sr(Pe) {
20565
20581
  var Xe = 0, we = 0;
20566
20582
  return function() {
20567
- var Me = bn(), Ze = K - (Me - we);
20568
- if (we = Me, Ze > 0) {
20583
+ var Le = bn(), Ze = K - (Le - we);
20584
+ if (we = Le, Ze > 0) {
20569
20585
  if (++Xe >= G)
20570
20586
  return arguments[0];
20571
20587
  } else
@@ -20641,7 +20657,7 @@ lodash_merge.exports;
20641
20657
  return Pe;
20642
20658
  };
20643
20659
  }
20644
- function Ln(Pe) {
20660
+ function Mn(Pe) {
20645
20661
  return Pe;
20646
20662
  }
20647
20663
  function Dn() {
@@ -24362,7 +24378,7 @@ var hueTheme = {
24362
24378
  text: ({ hue: $ }) => hueTokenThemes[$].text,
24363
24379
  textHover: ({ hue: $ }) => hueTokenThemes[$].textHover,
24364
24380
  fill: ({ hue: $ }) => hueTokenThemes[$].fill
24365
- }, bounceLayout = "fixed inset-0 z-0 overflow-auto overscroll-auto scroll-smooth", popperMotion = "will-change-[opacity,transform] data-[side=top]:animate-slideDownAndFade data-[side=right]:animate-slideLeftAndFade data-[side=bottom]:animate-slideUpAndFade data-[side=left]:animate-slideRightAndFade", dialogMotion = "will-change-[opacity,transform] animate-slideUpAndFade", separatorBorderColor = "separator-separator", inlineSeparator = "self-stretch border-ie", blockSeparator = "self-stretch border-be", ghostHighlighted = "data-[highlighted]:bg-primary-100 dark:data-[highlighted]:bg-primary-850 hover:data-[highlighted]:bg-primary-150 hover:dark:data-[highlighted]:bg-primary-800", fixedSurface = "base-surface md:fixed-surface backdrop-blur-md dark:backdrop-blur-lg", fixedBorder = "separator-separator", groupBorder = "separator-separator", modalSurface = "modal-surface", getLength = () => [
24381
+ }, bounceLayout = "fixed inset-0 z-0 overflow-auto overscroll-auto", popperMotion = "will-change-[opacity,transform] data-[side=top]:animate-slideDownAndFade data-[side=right]:animate-slideLeftAndFade data-[side=bottom]:animate-slideUpAndFade data-[side=left]:animate-slideRightAndFade", dialogMotion = "will-change-[opacity,transform] animate-slideUpAndFade", separatorBorderColor = "separator-separator", inlineSeparator = "self-stretch border-ie", blockSeparator = "self-stretch border-be", ghostHighlighted = "data-[highlighted]:bg-primary-100 dark:data-[highlighted]:bg-primary-850 hover:data-[highlighted]:bg-primary-150 hover:dark:data-[highlighted]:bg-primary-800", fixedSurface = "base-surface md:fixed-surface backdrop-blur-md dark:backdrop-blur-lg", fixedBorder = "separator-separator", groupBorder = "separator-separator", modalSurface = "modal-surface", getLength = () => [
24366
24382
  validators.isLength
24367
24383
  ], getLengthWithAuto = () => [
24368
24384
  "auto",
@@ -25233,7 +25249,7 @@ var hueTheme = {
25233
25249
  content: popoverContent,
25234
25250
  viewport: popoverViewport,
25235
25251
  arrow: popoverArrow
25236
- }, scrollAreaRoot = ($, ...I) => mx("overflow-hidden", ...I), scrollAreaViewport = ($, ...I) => mx("is-full bs-full scroll-smooth", "[&>div]:table-fixed [&>div]:w-full", ...I), scrollAreaScrollbar = ($, ...I) => mx("flex select-none touch-none p-0.5 ease-out", "data-[orientation=vertical]:is-1.5 data-[orientation=horizontal]:flex-col data-[orientation=horizontal]:bs-1.5", ...I), scrollAreaThumb = ($, ...I) => mx("bg-neutral-500/50 flex-1 rounded-lg relative", "before:content-[''] before:absolute before:top-1/2 before:left-1/2 before:-translate-x-1/2 before:-translate-y-1/2 before:w-full before:h-full before:min-w-[6px] before:min-h-[6px]", ...I), scrollAreaCorner = ($, ...I) => mx(...I), scrollAreaTheme = {
25252
+ }, scrollAreaRoot = ($, ...I) => mx("overflow-hidden", ...I), scrollAreaViewport = ($, ...I) => mx("is-full bs-full [&>div]:table-fixed [&>div]:is-full", ...I), scrollAreaScrollbar = ($, ...I) => mx("flex select-none touch-none p-0.5 ease-out", "data-[orientation=vertical]:is-1.5 sm:data-[orientation=vertical]:data-[variant=coarse]:is-3", "data-[orientation=horizontal]:flex-col data-[orientation=horizontal]:bs-1.5 sm:data-[orientation=horizontal]:data-[variant=coarse]:bs-3", "sm:data-[variant=coarse]:surface-separator rounded-full", "[&>div]:surface-unAccent sm:[&[data-variant=coarse]>div]:surface-attention", ...I), scrollAreaThumb = ($, ...I) => mx("flex-1 rounded-full relative", "before:content-[''] before:absolute before:top-1/2 before:left-1/2 before:-translate-x-1/2 before:-translate-y-1/2 before:w-full before:h-full before:min-w-[6px] before:min-h-[6px]", ...I), scrollAreaCorner = ($, ...I) => mx(...I), scrollAreaTheme = {
25237
25253
  root: scrollAreaRoot,
25238
25254
  viewport: scrollAreaViewport,
25239
25255
  scrollbar: scrollAreaScrollbar,
@@ -69541,11 +69557,11 @@ var CreateEpochRequest;
69541
69557
  var Invitation;
69542
69558
  (function($) {
69543
69559
  (function(I) {
69544
- I[I.INTERACTIVE = 0] = "INTERACTIVE", I[I.OFFLINE = 1] = "OFFLINE", I[I.MULTIUSE = 2] = "MULTIUSE";
69560
+ I[I.INTERACTIVE = 0] = "INTERACTIVE", I[I.DELEGATED = 1] = "DELEGATED", I[I.MULTIUSE = 2] = "MULTIUSE";
69545
69561
  })($.Type || ($.Type = {})), function(I) {
69546
69562
  I[I.DEVICE = 0] = "DEVICE", I[I.SPACE = 1] = "SPACE";
69547
69563
  }($.Kind || ($.Kind = {})), function(I) {
69548
- I[I.NONE = 0] = "NONE", I[I.SHARED_SECRET = 1] = "SHARED_SECRET";
69564
+ I[I.NONE = 0] = "NONE", I[I.SHARED_SECRET = 1] = "SHARED_SECRET", I[I.KNOWN_PUBLIC_KEY = 2] = "KNOWN_PUBLIC_KEY";
69549
69565
  }($.AuthMethod || ($.AuthMethod = {})), function(I) {
69550
69566
  I[I.INIT = 0] = "INIT", I[I.CONNECTING = 1] = "CONNECTING", I[I.CONNECTED = 2] = "CONNECTED", I[I.READY_FOR_AUTHENTICATION = 3] = "READY_FOR_AUTHENTICATION", I[I.AUTHENTICATING = 4] = "AUTHENTICATING", I[I.SUCCESS = 5] = "SUCCESS", I[I.CANCELLED = 6] = "CANCELLED", I[I.TIMEOUT = 7] = "TIMEOUT", I[I.ERROR = 8] = "ERROR", I[I.EXPIRED = 9] = "EXPIRED";
69551
69567
  }($.State || ($.State = {}));
@@ -70959,13 +70975,13 @@ ieee754.write = function($, I, U, q, G, K) {
70959
70975
  }, J.prototype.readUint32BE = J.prototype.readUInt32BE = function(ie, oe) {
70960
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]);
70961
70977
  }, J.prototype.readBigUInt64LE = Ct(function(ie) {
70962
- ie = ie >>> 0, Le(ie, "offset");
70978
+ ie = ie >>> 0, Me(ie, "offset");
70963
70979
  const oe = this[ie], pe = this[ie + 7];
70964
70980
  (oe === void 0 || pe === void 0) && Ye(ie, this.length - 8);
70965
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;
70966
70982
  return BigInt(ke) + (BigInt(Se) << BigInt(32));
70967
70983
  }), J.prototype.readBigUInt64BE = Ct(function(ie) {
70968
- ie = ie >>> 0, Le(ie, "offset");
70984
+ ie = ie >>> 0, Me(ie, "offset");
70969
70985
  const oe = this[ie], pe = this[ie + 7];
70970
70986
  (oe === void 0 || pe === void 0) && Ye(ie, this.length - 8);
70971
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;
@@ -70997,13 +71013,13 @@ ieee754.write = function($, I, U, q, G, K) {
70997
71013
  }, J.prototype.readInt32BE = function(ie, oe) {
70998
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];
70999
71015
  }, J.prototype.readBigInt64LE = Ct(function(ie) {
71000
- ie = ie >>> 0, Le(ie, "offset");
71016
+ ie = ie >>> 0, Me(ie, "offset");
71001
71017
  const oe = this[ie], pe = this[ie + 7];
71002
71018
  (oe === void 0 || pe === void 0) && Ye(ie, this.length - 8);
71003
71019
  const ke = this[ie + 4] + this[ie + 5] * 2 ** 8 + this[ie + 6] * 2 ** 16 + (pe << 24);
71004
71020
  return (BigInt(ke) << BigInt(32)) + BigInt(oe + this[++ie] * 2 ** 8 + this[++ie] * 2 ** 16 + this[++ie] * 2 ** 24);
71005
71021
  }), J.prototype.readBigInt64BE = Ct(function(ie) {
71006
- ie = ie >>> 0, Le(ie, "offset");
71022
+ ie = ie >>> 0, Me(ie, "offset");
71007
71023
  const oe = this[ie], pe = this[ie + 7];
71008
71024
  (oe === void 0 || pe === void 0) && Ye(ie, this.length - 8);
71009
71025
  const ke = (oe << 24) + // Overflow
@@ -71229,7 +71245,7 @@ ieee754.write = function($, I, U, q, G, K) {
71229
71245
  return `${de.slice(0, oe)}${ie}`;
71230
71246
  }
71231
71247
  function be(de, ie, oe) {
71232
- Le(ie, "offset"), (de[ie] === void 0 || de[ie + oe] === void 0) && Ye(ie, de.length - (oe + 1));
71248
+ Me(ie, "offset"), (de[ie] === void 0 || de[ie + oe] === void 0) && Ye(ie, de.length - (oe + 1));
71233
71249
  }
71234
71250
  function ye(de, ie, oe, pe, ke, Se) {
71235
71251
  if (de > oe || de < ie) {
@@ -71239,12 +71255,12 @@ ieee754.write = function($, I, U, q, G, K) {
71239
71255
  }
71240
71256
  be(pe, ke, Se);
71241
71257
  }
71242
- function Le(de, ie) {
71258
+ function Me(de, ie) {
71243
71259
  if (typeof de != "number")
71244
71260
  throw new Ie.ERR_INVALID_ARG_TYPE(ie, "number", de);
71245
71261
  }
71246
71262
  function Ye(de, ie, oe) {
71247
- 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(
71263
+ 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(
71248
71264
  oe || "offset",
71249
71265
  `>= ${oe ? 1 : 0} and <= ${ie}`,
71250
71266
  de
@@ -71787,8 +71803,8 @@ function require_stream_writable() {
71787
71803
  var ye = Ee(He, Re, Te);
71788
71804
  Re !== ye && (Ie = !0, Te = "buffer", Re = ye);
71789
71805
  }
71790
- var Le = He.objectMode ? 1 : Re.length;
71791
- He.length += Le;
71806
+ var Me = He.objectMode ? 1 : Re.length;
71807
+ He.length += Me;
71792
71808
  var Ye = He.length < He.highWaterMark;
71793
71809
  if (Ye || (He.needDrain = !0), He.writing || He.corked) {
71794
71810
  var ct = He.lastBufferedRequest;
@@ -71800,7 +71816,7 @@ function require_stream_writable() {
71800
71816
  next: null
71801
71817
  }, ct ? ct.next = He.lastBufferedRequest : He.bufferedRequest = He.lastBufferedRequest, He.bufferedRequestCount += 1;
71802
71818
  } else
71803
- Be(Ue, He, !1, Le, Re, Te, be);
71819
+ Be(Ue, He, !1, Me, Re, Te, be);
71804
71820
  return Ye;
71805
71821
  }
71806
71822
  function Be(Ue, He, Ie, Re, Te, be, ye) {
@@ -71835,9 +71851,9 @@ function require_stream_writable() {
71835
71851
  if (Ue._writev && Ie && Ie.next) {
71836
71852
  var Re = He.bufferedRequestCount, Te = new Array(Re), be = He.corkedRequestsFree;
71837
71853
  be.entry = Ie;
71838
- for (var ye = 0, Le = !0; Ie; )
71839
- Te[ye] = Ie, Ie.isBuf || (Le = !1), Ie = Ie.next, ye += 1;
71840
- 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;
71854
+ for (var ye = 0, Me = !0; Ie; )
71855
+ Te[ye] = Ie, Ie.isBuf || (Me = !1), Ie = Ie.next, ye += 1;
71856
+ 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;
71841
71857
  } else {
71842
71858
  for (; Ie; ) {
71843
71859
  var Ye = Ie.chunk, ct = Ie.encoding, ut = Ie.callback, wt = He.objectMode ? 1 : Ye.length;
@@ -72343,8 +72359,8 @@ function require_stream_readable() {
72343
72359
  hasRequired_stream_readable = 1, _stream_readable = $e;
72344
72360
  var $;
72345
72361
  $e.ReadableState = _e, eventsExports.EventEmitter;
72346
- var I = function(ye, Le) {
72347
- return ye.listeners(Le).length;
72362
+ var I = function(ye, Me) {
72363
+ return ye.listeners(Me).length;
72348
72364
  }, U = streamBrowser, q = buffer.Buffer, G = commonjsGlobal.Uint8Array || function() {
72349
72365
  };
72350
72366
  function K(be) {
@@ -72359,13 +72375,13 @@ function require_stream_readable() {
72359
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;
72360
72376
  inherits_browserExports($e, U);
72361
72377
  var ve = ee.errorOrDestroy, me = ["error", "close", "destroy", "pause", "resume"];
72362
- function ge(be, ye, Le) {
72378
+ function ge(be, ye, Me) {
72363
72379
  if (typeof be.prependListener == "function")
72364
- return be.prependListener(ye, Le);
72365
- !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]];
72380
+ return be.prependListener(ye, Me);
72381
+ !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]];
72366
72382
  }
72367
- function _e(be, ye, Le) {
72368
- $ = $ || 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);
72383
+ function _e(be, ye, Me) {
72384
+ $ = $ || 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);
72369
72385
  }
72370
72386
  function $e(be) {
72371
72387
  if ($ = $ || require_stream_duplex(), !(this instanceof $e))
@@ -72387,12 +72403,12 @@ function require_stream_readable() {
72387
72403
  }), $e.prototype.destroy = ee.destroy, $e.prototype._undestroy = ee.undestroy, $e.prototype._destroy = function(be, ye) {
72388
72404
  ye(be);
72389
72405
  }, $e.prototype.push = function(be, ye) {
72390
- var Le = this._readableState, Ye;
72391
- 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);
72406
+ var Me = this._readableState, Ye;
72407
+ 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);
72392
72408
  }, $e.prototype.unshift = function(be) {
72393
72409
  return Ce(this, be, null, !0, !1);
72394
72410
  };
72395
- function Ce(be, ye, Le, Ye, ct) {
72411
+ function Ce(be, ye, Me, Ye, ct) {
72396
72412
  Z("readableAddChunk", ye);
72397
72413
  var ut = be._readableState;
72398
72414
  if (ye === null)
@@ -72409,19 +72425,19 @@ function require_stream_readable() {
72409
72425
  else {
72410
72426
  if (ut.destroyed)
72411
72427
  return !1;
72412
- 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);
72428
+ 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);
72413
72429
  }
72414
72430
  else
72415
72431
  Ye || (ut.reading = !1, at(be, ut));
72416
72432
  }
72417
72433
  return !ut.ended && (ut.length < ut.highWaterMark || ut.length === 0);
72418
72434
  }
72419
- function Ee(be, ye, Le, Ye) {
72420
- 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);
72435
+ function Ee(be, ye, Me, Ye) {
72436
+ 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);
72421
72437
  }
72422
72438
  function xe(be, ye) {
72423
- var Le;
72424
- return !Y(ye) && typeof ye != "string" && ye !== void 0 && !be.objectMode && (Le = new ae("chunk", ["string", "Buffer", "Uint8Array"], ye)), Le;
72439
+ var Me;
72440
+ return !Y(ye) && typeof ye != "string" && ye !== void 0 && !be.objectMode && (Me = new ae("chunk", ["string", "Buffer", "Uint8Array"], ye)), Me;
72425
72441
  }
72426
72442
  $e.prototype.isPaused = function() {
72427
72443
  return this._readableState.flowing === !1;
@@ -72429,8 +72445,8 @@ function require_stream_readable() {
72429
72445
  ce || (ce = requireString_decoder().StringDecoder);
72430
72446
  var ye = new ce(be);
72431
72447
  this._readableState.decoder = ye, this._readableState.encoding = this._readableState.decoder.encoding;
72432
- for (var Le = this._readableState.buffer.head, Ye = ""; Le !== null; )
72433
- Ye += ye.write(Le.data), Le = Le.next;
72448
+ for (var Me = this._readableState.buffer.head, Ye = ""; Me !== null; )
72449
+ Ye += ye.write(Me.data), Me = Me.next;
72434
72450
  return this._readableState.buffer.clear(), Ye !== "" && this._readableState.buffer.push(Ye), this._readableState.length = Ye.length, this;
72435
72451
  };
72436
72452
  var Be = 1073741824;
@@ -72442,21 +72458,21 @@ function require_stream_readable() {
72442
72458
  }
72443
72459
  $e.prototype.read = function(be) {
72444
72460
  Z("read", be), be = parseInt(be, 10);
72445
- var ye = this._readableState, Le = be;
72461
+ var ye = this._readableState, Me = be;
72446
72462
  if (be !== 0 && (ye.emittedReadable = !1), be === 0 && ye.needReadable && ((ye.highWaterMark !== 0 ? ye.length >= ye.highWaterMark : ye.length > 0) || ye.ended))
72447
72463
  return Z("read: emitReadable", ye.length, ye.ended), ye.length === 0 && ye.ended ? Ie(this) : st(this), null;
72448
72464
  if (be = Ge(be, ye), be === 0 && ye.ended)
72449
72465
  return ye.length === 0 && Ie(this), null;
72450
72466
  var Ye = ye.needReadable;
72451
- 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)));
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(Me, ye)));
72452
72468
  var ct;
72453
- 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;
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), Me !== be && ye.ended && Ie(this)), ct !== null && this.emit("data", ct), ct;
72454
72470
  };
72455
72471
  function rt(be, ye) {
72456
72472
  if (Z("onEofChunk"), !ye.ended) {
72457
72473
  if (ye.decoder) {
72458
- var Le = ye.decoder.end();
72459
- Le && Le.length && (ye.buffer.push(Le), ye.length += ye.objectMode ? 1 : Le.length);
72474
+ var Me = ye.decoder.end();
72475
+ Me && Me.length && (ye.buffer.push(Me), ye.length += ye.objectMode ? 1 : Me.length);
72460
72476
  }
72461
72477
  ye.ended = !0, ye.sync ? st(be) : (ye.needReadable = !1, ye.emittedReadable || (ye.emittedReadable = !0, lt(be)));
72462
72478
  }
@@ -72474,8 +72490,8 @@ function require_stream_readable() {
72474
72490
  }
72475
72491
  function ht(be, ye) {
72476
72492
  for (; !ye.reading && !ye.ended && (ye.length < ye.highWaterMark || ye.flowing && ye.length === 0); ) {
72477
- var Le = ye.length;
72478
- if (Z("maybeReadMore read 0"), be.read(0), Le === ye.length)
72493
+ var Me = ye.length;
72494
+ if (Z("maybeReadMore read 0"), be.read(0), Me === ye.length)
72479
72495
  break;
72480
72496
  }
72481
72497
  ye.readingMore = !1;
@@ -72483,7 +72499,7 @@ function require_stream_readable() {
72483
72499
  $e.prototype._read = function(be) {
72484
72500
  ve(this, new fe("_read()"));
72485
72501
  }, $e.prototype.pipe = function(be, ye) {
72486
- var Le = this, Ye = this._readableState;
72502
+ var Me = this, Ye = this._readableState;
72487
72503
  switch (Ye.pipesCount) {
72488
72504
  case 0:
72489
72505
  Ye.pipes = be;
@@ -72497,24 +72513,24 @@ function require_stream_readable() {
72497
72513
  }
72498
72514
  Ye.pipesCount += 1, Z("pipe count=%d opts=%j", Ye.pipesCount, ye);
72499
72515
  var ct = (!ye || ye.end !== !1) && be !== process.stdout && be !== process.stderr, ut = ct ? St : zt;
72500
- Ye.endEmitted ? process.nextTick(ut) : Le.once("end", ut), be.on("unpipe", wt);
72516
+ Ye.endEmitted ? process.nextTick(ut) : Me.once("end", ut), be.on("unpipe", wt);
72501
72517
  function wt(de, ie) {
72502
- Z("onunpipe"), de === Le && ie && ie.hasUnpiped === !1 && (ie.hasUnpiped = !0, Kt());
72518
+ Z("onunpipe"), de === Me && ie && ie.hasUnpiped === !1 && (ie.hasUnpiped = !0, Kt());
72503
72519
  }
72504
72520
  function St() {
72505
72521
  Z("onend"), be.end();
72506
72522
  }
72507
- var it = tt(Le);
72523
+ var it = tt(Me);
72508
72524
  be.on("drain", it);
72509
72525
  var Ut = !1;
72510
72526
  function Kt() {
72511
- 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();
72527
+ 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();
72512
72528
  }
72513
- Le.on("data", It);
72529
+ Me.on("data", It);
72514
72530
  function It(de) {
72515
72531
  Z("ondata");
72516
72532
  var ie = be.write(de);
72517
- 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());
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++), Me.pause());
72518
72534
  }
72519
72535
  function Ht(de) {
72520
72536
  Z("onerror", de), zt(), be.removeListener("error", Ht), I(be, "error") === 0 && ve(be, de);
@@ -72529,24 +72545,24 @@ function require_stream_readable() {
72529
72545
  }
72530
72546
  be.once("finish", Ct);
72531
72547
  function zt() {
72532
- Z("unpipe"), Le.unpipe(be);
72548
+ Z("unpipe"), Me.unpipe(be);
72533
72549
  }
72534
- return be.emit("pipe", Le), Ye.flowing || (Z("pipe resume"), Le.resume()), be;
72550
+ return be.emit("pipe", Me), Ye.flowing || (Z("pipe resume"), Me.resume()), be;
72535
72551
  };
72536
72552
  function tt(be) {
72537
72553
  return function() {
72538
- var Le = be._readableState;
72539
- Z("pipeOnDrain", Le.awaitDrain), Le.awaitDrain && Le.awaitDrain--, Le.awaitDrain === 0 && I(be, "data") && (Le.flowing = !0, Ue(be));
72554
+ var Me = be._readableState;
72555
+ Z("pipeOnDrain", Me.awaitDrain), Me.awaitDrain && Me.awaitDrain--, Me.awaitDrain === 0 && I(be, "data") && (Me.flowing = !0, Ue(be));
72540
72556
  };
72541
72557
  }
72542
72558
  $e.prototype.unpipe = function(be) {
72543
- var ye = this._readableState, Le = {
72559
+ var ye = this._readableState, Me = {
72544
72560
  hasUnpiped: !1
72545
72561
  };
72546
72562
  if (ye.pipesCount === 0)
72547
72563
  return this;
72548
72564
  if (ye.pipesCount === 1)
72549
- 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);
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, Me), this);
72550
72566
  if (!be) {
72551
72567
  var Ye = ye.pipes, ct = ye.pipesCount;
72552
72568
  ye.pipes = null, ye.pipesCount = 0, ye.flowing = !1;
@@ -72557,13 +72573,13 @@ function require_stream_readable() {
72557
72573
  return this;
72558
72574
  }
72559
72575
  var wt = Te(ye.pipes, be);
72560
- 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);
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, Me), this);
72561
72577
  }, $e.prototype.on = function(be, ye) {
72562
- var Le = U.prototype.on.call(this, be, ye), Ye = this._readableState;
72563
- 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;
72578
+ var Me = 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)), Me;
72564
72580
  }, $e.prototype.addListener = $e.prototype.on, $e.prototype.removeListener = function(be, ye) {
72565
- var Le = U.prototype.removeListener.call(this, be, ye);
72566
- return be === "readable" && process.nextTick(ze, this), Le;
72581
+ var Me = U.prototype.removeListener.call(this, be, ye);
72582
+ return be === "readable" && process.nextTick(ze, this), Me;
72567
72583
  }, $e.prototype.removeAllListeners = function(be) {
72568
72584
  var ye = U.prototype.removeAllListeners.apply(this, arguments);
72569
72585
  return (be === "readable" || be === void 0) && process.nextTick(ze, this), ye;
@@ -72594,15 +72610,15 @@ function require_stream_readable() {
72594
72610
  ;
72595
72611
  }
72596
72612
  $e.prototype.wrap = function(be) {
72597
- var ye = this, Le = this._readableState, Ye = !1;
72613
+ var ye = this, Me = this._readableState, Ye = !1;
72598
72614
  be.on("end", function() {
72599
- if (Z("wrapped end"), Le.decoder && !Le.ended) {
72600
- var wt = Le.decoder.end();
72615
+ if (Z("wrapped end"), Me.decoder && !Me.ended) {
72616
+ var wt = Me.decoder.end();
72601
72617
  wt && wt.length && ye.push(wt);
72602
72618
  }
72603
72619
  ye.push(null);
72604
72620
  }), be.on("data", function(wt) {
72605
- if (Z("wrapped data"), Le.decoder && (wt = Le.decoder.write(wt)), !(Le.objectMode && wt == null) && !(!Le.objectMode && (!wt || !wt.length))) {
72621
+ if (Z("wrapped data"), Me.decoder && (wt = Me.decoder.write(wt)), !(Me.objectMode && wt == null) && !(!Me.objectMode && (!wt || !wt.length))) {
72606
72622
  var St = ye.push(wt);
72607
72623
  St || (Ye = !0, be.pause());
72608
72624
  }
@@ -72659,8 +72675,8 @@ function require_stream_readable() {
72659
72675
  function He(be, ye) {
72660
72676
  if (ye.length === 0)
72661
72677
  return null;
72662
- var Le;
72663
- 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;
72678
+ var Me;
72679
+ 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;
72664
72680
  }
72665
72681
  function Ie(be) {
72666
72682
  var ye = be._readableState;
@@ -72668,17 +72684,17 @@ function require_stream_readable() {
72668
72684
  }
72669
72685
  function Re(be, ye) {
72670
72686
  if (Z("endReadableNT", be.endEmitted, be.length), !be.endEmitted && be.length === 0 && (be.endEmitted = !0, ye.readable = !1, ye.emit("end"), be.autoDestroy)) {
72671
- var Le = ye._writableState;
72672
- (!Le || Le.autoDestroy && Le.finished) && ye.destroy();
72687
+ var Me = ye._writableState;
72688
+ (!Me || Me.autoDestroy && Me.finished) && ye.destroy();
72673
72689
  }
72674
72690
  }
72675
72691
  typeof Symbol == "function" && ($e.from = function(be, ye) {
72676
72692
  return he === void 0 && (he = requireFromBrowser()), he($e, be, ye);
72677
72693
  });
72678
72694
  function Te(be, ye) {
72679
- for (var Le = 0, Ye = be.length; Le < Ye; Le++)
72680
- if (be[Le] === ye)
72681
- return Le;
72695
+ for (var Me = 0, Ye = be.length; Me < Ye; Me++)
72696
+ if (be[Me] === ye)
72697
+ return Me;
72682
72698
  return -1;
72683
72699
  }
72684
72700
  return _stream_readable;
@@ -73331,7 +73347,7 @@ var DeferredTask = class {
73331
73347
  action: J
73332
73348
  }, {
73333
73349
  F: __dxlog_file$6,
73334
- L: 79,
73350
+ L: 81,
73335
73351
  S: void 0,
73336
73352
  C: (Z, Q) => Z(...Q)
73337
73353
  }), {
@@ -73413,7 +73429,7 @@ var DeferredTask = class {
73413
73429
  authCode: Y
73414
73430
  }, {
73415
73431
  F: __dxlog_file$6,
73416
- L: 163,
73432
+ L: 165,
73417
73433
  S: void 0,
73418
73434
  C: (J, Z) => J(...Z)
73419
73435
  }), I.observable.authenticate(Y)), [
@@ -73436,6 +73452,7 @@ var DeferredTask = class {
73436
73452
  connect: q,
73437
73453
  authenticate: G,
73438
73454
  id: Y == null ? void 0 : Y.invitationId,
73455
+ multiUse: Y == null ? void 0 : Y.multiUse,
73439
73456
  invitationCode: Y ? InvitationEncoder.encode(Y) : void 0,
73440
73457
  authCode: Y == null ? void 0 : Y.authCode,
73441
73458
  authMethod: Y == null ? void 0 : Y.authMethod,
@@ -73520,7 +73537,7 @@ const AuthCode = ($) => {
73520
73537
  reverseEffects: K,
73521
73538
  ...Y
73522
73539
  }) => {
73523
- const { t: J } = useTranslation("os"), { cancel: Z, status: Q, invitationCode: ee, authCode: te, type: ne } = I, re = !([Invitation.State.ERROR, Invitation.State.TIMEOUT, Invitation.State.CANCELLED].indexOf(Q) >= 0), ae = ne === Invitation.Type.MULTIUSE || [Invitation.State.INIT, Invitation.State.CONNECTING, Invitation.State.CONNECTED].indexOf(Q) >= 0, se = Q === Invitation.State.READY_FOR_AUTHENTICATION, fe = useCallback(() => q == null ? void 0 : q($), [$, q]), le = ee && G(ee), ce = $ == null ? void 0 : $.get().invitationId, ue = $ == null ? void 0 : $.get().lifetime, he = $ != null && $.expiry ? formatDistanceToNow($ == null ? void 0 : $.expiry, { addSuffix: !0 }) : void 0, ve = [
73540
+ const { t: J } = useTranslation("os"), { cancel: Z, status: Q, invitationCode: ee, authCode: te, multiUse: ne } = I, re = !([Invitation.State.ERROR, Invitation.State.TIMEOUT, Invitation.State.CANCELLED].indexOf(Q) >= 0), ae = ne || [Invitation.State.INIT, Invitation.State.CONNECTING, Invitation.State.CONNECTED].indexOf(Q) >= 0, se = Q === Invitation.State.READY_FOR_AUTHENTICATION, fe = useCallback(() => q == null ? void 0 : q($), [$, q]), le = ee && G(ee), ce = $ == null ? void 0 : $.get().invitationId, ue = $ == null ? void 0 : $.get().lifetime, he = $ != null && $.expiry ? formatDistanceToNow($ == null ? void 0 : $.expiry, { addSuffix: !0 }) : void 0, ve = [
73524
73541
  Invitation.State.INIT,
73525
73542
  Invitation.State.CONNECTING,
73526
73543
  Invitation.State.CONNECTED,
@@ -73541,9 +73558,9 @@ const AuthCode = ($) => {
73541
73558
  ...Y,
73542
73559
  classNames: ["flex gap-2 pis-3 pie-1 items-center relative", Y.classNames]
73543
73560
  },
73544
- /* @__PURE__ */ React__default.createElement(ListItem.Heading, { classNames: "sr-only" }, J(ne === Invitation.Type.MULTIUSE ? "invite many list item label" : "invite one list item label")),
73545
- ne === Invitation.Type.MULTIUSE && /* @__PURE__ */ React__default.createElement(AvatarStackEffect, { status: _e, animation: ve, reverseEffects: K }),
73546
- /* @__PURE__ */ React__default.createElement(Tooltip.Root, null, /* @__PURE__ */ React__default.createElement(Avatar.Root, { ...avatarProps, animation: ve, status: _e }, /* @__PURE__ */ React__default.createElement(Tooltip.Trigger, { asChild: !0 }, /* @__PURE__ */ React__default.createElement(Avatar.Frame, { tabIndex: 0, classNames: [focusRing, "relative rounded-full place-self-center"] }, /* @__PURE__ */ React__default.createElement(Avatar.Fallback, { text: hexToEmoji(ce) })))), /* @__PURE__ */ React__default.createElement(Tooltip.Portal, null, /* @__PURE__ */ React__default.createElement(Tooltip.Content, { side: "left", classNames: "z-[70]" }, J(ne === Invitation.Type.MULTIUSE ? "invite many qr label" : "invite one qr label"), /* @__PURE__ */ React__default.createElement(Tooltip.Arrow, null)))),
73561
+ /* @__PURE__ */ React__default.createElement(ListItem.Heading, { classNames: "sr-only" }, J(ne ? "invite many list item label" : "invite one list item label")),
73562
+ ne && /* @__PURE__ */ React__default.createElement(AvatarStackEffect, { status: _e, animation: ve, reverseEffects: K }),
73563
+ /* @__PURE__ */ React__default.createElement(Tooltip.Root, null, /* @__PURE__ */ React__default.createElement(Avatar.Root, { ...avatarProps, animation: ve, status: _e }, /* @__PURE__ */ React__default.createElement(Tooltip.Trigger, { asChild: !0 }, /* @__PURE__ */ React__default.createElement(Avatar.Frame, { tabIndex: 0, classNames: [focusRing, "relative rounded-full place-self-center"] }, /* @__PURE__ */ React__default.createElement(Avatar.Fallback, { text: hexToEmoji(ce) })))), /* @__PURE__ */ React__default.createElement(Tooltip.Portal, null, /* @__PURE__ */ React__default.createElement(Tooltip.Content, { side: "left", classNames: "z-[70]" }, J(ne ? "invite many qr label" : "invite one qr label"), /* @__PURE__ */ React__default.createElement(Tooltip.Arrow, null)))),
73547
73564
  ae && le ? /* @__PURE__ */ React__default.createElement(Tooltip.Root, null, /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(Tooltip.Trigger, { asChild: !0 }, /* @__PURE__ */ React__default.createElement(
73548
73565
  Button,
73549
73566
  {
@@ -78239,8 +78256,8 @@ function parse($, I, U) {
78239
78256
  function xe(Re, Te, be) {
78240
78257
  var ye = G.line;
78241
78258
  if (Re && (typeof Re.comment != "string" && (Re.comment = Q()), Re.filename = parse.filename), Z("{", !0)) {
78242
- for (var Le; (Le = K()) !== "}"; )
78243
- Te(Le);
78259
+ for (var Me; (Me = K()) !== "}"; )
78260
+ Te(Me);
78244
78261
  Z(";", !0);
78245
78262
  } else
78246
78263
  be && be(), Z(";"), Re && (typeof Re.comment != "string" || q) && (Re.comment = Q(ye) || Re.comment);
@@ -78249,21 +78266,21 @@ function parse($, I, U) {
78249
78266
  if (!nameRe.test(Te = K()))
78250
78267
  throw ce(Te, "type name");
78251
78268
  var be = new Type(Te);
78252
- xe(be, function(Le) {
78253
- if (!Ee(be, Le))
78254
- switch (Le) {
78269
+ xe(be, function(Me) {
78270
+ if (!Ee(be, Me))
78271
+ switch (Me) {
78255
78272
  case "map":
78256
78273
  rt(be);
78257
78274
  break;
78258
78275
  case "required":
78259
78276
  case "repeated":
78260
- je(be, Le);
78277
+ je(be, Me);
78261
78278
  break;
78262
78279
  case "optional":
78263
78280
  se ? je(be, "proto3_optional") : je(be, "optional");
78264
78281
  break;
78265
78282
  case "oneof":
78266
- st(be, Le);
78283
+ st(be, Me);
78267
78284
  break;
78268
78285
  case "extensions":
78269
78286
  ve(be.extensions || (be.extensions = []));
@@ -78272,9 +78289,9 @@ function parse($, I, U) {
78272
78289
  ve(be.reserved || (be.reserved = []), !0);
78273
78290
  break;
78274
78291
  default:
78275
- if (!se || !typeRefRe.test(Le))
78276
- throw ce(Le);
78277
- Y(Le), je(be, "optional");
78292
+ if (!se || !typeRefRe.test(Me))
78293
+ throw ce(Me);
78294
+ Y(Me), je(be, "optional");
78278
78295
  break;
78279
78296
  }
78280
78297
  }), Re.add(be);
@@ -78287,11 +78304,11 @@ function parse($, I, U) {
78287
78304
  }
78288
78305
  if (!typeRefRe.test(ye))
78289
78306
  throw ce(ye, "type");
78290
- var Le = K();
78291
- if (!nameRe.test(Le))
78292
- throw ce(Le, "name");
78293
- Le = le(Le), Z("=");
78294
- var Ye = new Field(Le, ge(K()), ye, Te, be);
78307
+ var Me = K();
78308
+ if (!nameRe.test(Me))
78309
+ throw ce(Me, "name");
78310
+ Me = le(Me), Z("=");
78311
+ var Ye = new Field(Me, ge(K()), ye, Te, be);
78295
78312
  if (xe(Ye, function(wt) {
78296
78313
  if (wt === "option")
78297
78314
  ht(Ye, wt), Z(";");
@@ -78300,7 +78317,7 @@ function parse($, I, U) {
78300
78317
  }, function() {
78301
78318
  nt(Ye);
78302
78319
  }), Te === "proto3_optional") {
78303
- var ct = new OneOf("_" + Le);
78320
+ var ct = new OneOf("_" + Me);
78304
78321
  Ye.setOption("proto3_optional", !0), ct.add(Ye), Re.add(ct);
78305
78322
  } else
78306
78323
  Re.add(Ye);
@@ -78317,9 +78334,9 @@ function parse($, I, U) {
78317
78334
  throw ce(be, "name");
78318
78335
  var ye = util.lcFirst(be);
78319
78336
  be === ye && (be = util.ucFirst(be)), Z("=");
78320
- var Le = ge(K()), Ye = new Type(be);
78337
+ var Me = ge(K()), Ye = new Type(be);
78321
78338
  Ye.group = !0;
78322
- var ct = new Field(ye, Le, be, Te);
78339
+ var ct = new Field(ye, Me, be, Te);
78323
78340
  ct.filename = parse.filename, xe(Ye, function(wt) {
78324
78341
  switch (wt) {
78325
78342
  case "option":
@@ -78357,38 +78374,38 @@ function parse($, I, U) {
78357
78374
  if (!nameRe.test(ye))
78358
78375
  throw ce(ye, "name");
78359
78376
  Z("=");
78360
- var Le = new MapField(le(ye), ge(K()), Te, be);
78361
- xe(Le, function(ct) {
78377
+ var Me = new MapField(le(ye), ge(K()), Te, be);
78378
+ xe(Me, function(ct) {
78362
78379
  if (ct === "option")
78363
- ht(Le, ct), Z(";");
78380
+ ht(Me, ct), Z(";");
78364
78381
  else
78365
78382
  throw ce(ct);
78366
78383
  }, function() {
78367
- nt(Le);
78368
- }), Re.add(Le);
78384
+ nt(Me);
78385
+ }), Re.add(Me);
78369
78386
  }
78370
78387
  function st(Re, Te) {
78371
78388
  if (!nameRe.test(Te = K()))
78372
78389
  throw ce(Te, "name");
78373
78390
  var be = new OneOf(le(Te));
78374
- xe(be, function(Le) {
78375
- Le === "option" ? (ht(be, Le), Z(";")) : (Y(Le), je(be, "optional"));
78391
+ xe(be, function(Me) {
78392
+ Me === "option" ? (ht(be, Me), Z(";")) : (Y(Me), je(be, "optional"));
78376
78393
  }), Re.add(be);
78377
78394
  }
78378
78395
  function lt(Re, Te) {
78379
78396
  if (!nameRe.test(Te = K()))
78380
78397
  throw ce(Te, "name");
78381
78398
  var be = new Enum(Te);
78382
- xe(be, function(Le) {
78383
- switch (Le) {
78399
+ xe(be, function(Me) {
78400
+ switch (Me) {
78384
78401
  case "option":
78385
- ht(be, Le), Z(";");
78402
+ ht(be, Me), Z(";");
78386
78403
  break;
78387
78404
  case "reserved":
78388
78405
  ve(be.reserved || (be.reserved = []), !0);
78389
78406
  break;
78390
78407
  default:
78391
- at(be, Le);
78408
+ at(be, Me);
78392
78409
  }
78393
78410
  }), Re.add(be);
78394
78411
  }
@@ -78399,8 +78416,8 @@ function parse($, I, U) {
78399
78416
  var be = ge(K(), !0), ye = {
78400
78417
  options: void 0
78401
78418
  };
78402
- ye.setOption = function(Le, Ye) {
78403
- this.options === void 0 && (this.options = {}), this.options[Le] = Ye;
78419
+ ye.setOption = function(Me, Ye) {
78420
+ this.options === void 0 && (this.options = {}), this.options[Me] = Ye;
78404
78421
  }, xe(ye, function(Ye) {
78405
78422
  if (Ye === "option")
78406
78423
  ht(ye, Ye), Z(";");
@@ -78414,17 +78431,17 @@ function parse($, I, U) {
78414
78431
  var be = Z("(", !0);
78415
78432
  if (!typeRefRe.test(Te = K()))
78416
78433
  throw ce(Te, "name");
78417
- var ye = Te, Le = ye, Ye;
78418
- be && (Z(")"), ye = "(" + ye + ")", Le = ye, Te = J(), fqTypeRefRe.test(Te) && (Ye = Te.slice(1), ye += Te, K())), Z("=");
78434
+ var ye = Te, Me = ye, Ye;
78435
+ be && (Z(")"), ye = "(" + ye + ")", Me = ye, Te = J(), fqTypeRefRe.test(Te) && (Ye = Te.slice(1), ye += Te, K())), Z("=");
78419
78436
  var ct = tt(Re, ye);
78420
- qe(Re, Le, ct, Ye);
78437
+ qe(Re, Me, ct, Ye);
78421
78438
  }
78422
78439
  function tt(Re, Te) {
78423
78440
  if (Z("{", !0)) {
78424
78441
  for (var be = {}; !Z("}", !0); ) {
78425
78442
  if (!nameRe.test(Ie = K()))
78426
78443
  throw ce(Ie, "name");
78427
- var ye, Le = Ie;
78444
+ var ye, Me = Ie;
78428
78445
  if (Z(":", !0), J() === "{")
78429
78446
  ye = tt(Re, Te + "." + Ie);
78430
78447
  else if (J() === "[") {
@@ -78438,8 +78455,8 @@ function parse($, I, U) {
78438
78455
  }
78439
78456
  } else
78440
78457
  ye = he(!0), ze(Re, Te + "." + Ie, ye);
78441
- var ct = be[Le];
78442
- ct && (ye = [].concat(ct).concat(ye)), be[Le] = ye, Z(",", !0), Z(";", !0);
78458
+ var ct = be[Me];
78459
+ ct && (ye = [].concat(ct).concat(ye)), be[Me] = ye, Z(",", !0), Z(";", !0);
78443
78460
  }
78444
78461
  return be;
78445
78462
  }
@@ -78465,23 +78482,23 @@ function parse($, I, U) {
78465
78482
  if (!nameRe.test(Te = K()))
78466
78483
  throw ce(Te, "service name");
78467
78484
  var be = new Service(Te);
78468
- xe(be, function(Le) {
78469
- if (!Ee(be, Le))
78470
- if (Le === "rpc")
78471
- Ue(be, Le);
78485
+ xe(be, function(Me) {
78486
+ if (!Ee(be, Me))
78487
+ if (Me === "rpc")
78488
+ Ue(be, Me);
78472
78489
  else
78473
- throw ce(Le);
78490
+ throw ce(Me);
78474
78491
  }), Re.add(be);
78475
78492
  }
78476
78493
  function Ue(Re, Te) {
78477
78494
  var be = Q(), ye = Te;
78478
78495
  if (!nameRe.test(Te = K()))
78479
78496
  throw ce(Te, "name");
78480
- var Le = Te, Ye, ct, ut, wt;
78497
+ var Me = Te, Ye, ct, ut, wt;
78481
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())))
78482
78499
  throw ce(Te);
78483
78500
  ut = Te, Z(")");
78484
- var St = new Method(Le, ye, Ye, ut, ct, wt);
78501
+ var St = new Method(Me, ye, Ye, ut, ct, wt);
78485
78502
  St.comment = be, xe(St, function(Ut) {
78486
78503
  if (Ut === "option")
78487
78504
  ht(St, Ut), Z(";");
@@ -78493,19 +78510,19 @@ function parse($, I, U) {
78493
78510
  if (!typeRefRe.test(Te = K()))
78494
78511
  throw ce(Te, "reference");
78495
78512
  var be = Te;
78496
- xe(null, function(Le) {
78497
- switch (Le) {
78513
+ xe(null, function(Me) {
78514
+ switch (Me) {
78498
78515
  case "required":
78499
78516
  case "repeated":
78500
- je(Re, Le, be);
78517
+ je(Re, Me, be);
78501
78518
  break;
78502
78519
  case "optional":
78503
78520
  se ? je(Re, "proto3_optional", be) : je(Re, "optional", be);
78504
78521
  break;
78505
78522
  default:
78506
- if (!se || !typeRefRe.test(Le))
78507
- throw ce(Le);
78508
- Y(Le), je(Re, "optional", be);
78523
+ if (!se || !typeRefRe.test(Me))
78524
+ throw ce(Me);
78525
+ Y(Me), je(Re, "optional", be);
78509
78526
  break;
78510
78527
  }
78511
78528
  });
@@ -79921,7 +79938,7 @@ lodash_ismatch.exports;
79921
79938
  Nt[yt] = et(yt);
79922
79939
  return Nt;
79923
79940
  }
79924
- function Le(Fe) {
79941
+ function Me(Fe) {
79925
79942
  return function(et) {
79926
79943
  return Fe(et);
79927
79944
  };
@@ -80043,10 +80060,10 @@ lodash_ismatch.exports;
80043
80060
  function Bt(Fe) {
80044
80061
  return Je(this, Fe).has(Fe);
80045
80062
  }
80046
- function Lt(Fe, et) {
80063
+ function Mt(Fe, et) {
80047
80064
  return Je(this, Fe).set(Fe, et), this;
80048
80065
  }
80049
- ot.prototype.clear = dt, ot.prototype.delete = Et, ot.prototype.get = Rt, ot.prototype.has = Bt, ot.prototype.set = Lt;
80066
+ ot.prototype.clear = dt, ot.prototype.delete = Et, ot.prototype.get = Rt, ot.prototype.has = Bt, ot.prototype.set = Mt;
80050
80067
  function Ot(Fe) {
80051
80068
  var et = -1, yt = Fe ? Fe.length : 0;
80052
80069
  for (this.__data__ = new ot(); ++et < yt; )
@@ -80101,7 +80118,7 @@ lodash_ismatch.exports;
80101
80118
  return zt.call(Fe);
80102
80119
  }
80103
80120
  function Xn(Fe, et, yt, Nt, nn) {
80104
- return Fe === et ? !0 : Fe == null || et == null || !Wn(Fe) && !Mn(et) ? Fe !== Fe && et !== et : nr(Fe, et, Xn, yt, Nt, nn);
80121
+ return Fe === et ? !0 : Fe == null || et == null || !Wn(Fe) && !Ln(et) ? Fe !== Fe && et !== et : nr(Fe, et, Xn, yt, Nt, nn);
80105
80122
  }
80106
80123
  function nr(Fe, et, yt, Nt, nn, qt) {
80107
80124
  var pn = fn(Fe), an = fn(et), en = Z, hn = Z;
@@ -80112,8 +80129,8 @@ lodash_ismatch.exports;
80112
80129
  if (!(nn & K)) {
80113
80130
  var In = yn && Ct.call(Fe, "__wrapped__"), Cn = kn && Ct.call(et, "__wrapped__");
80114
80131
  if (In || Cn) {
80115
- var Ln = In ? Fe.value() : Fe, Dn = Cn ? et.value() : et;
80116
- return qt || (qt = new Yt()), yt(Ln, Dn, Nt, nn, qt);
80132
+ var Mn = In ? Fe.value() : Fe, Dn = Cn ? et.value() : et;
80133
+ return qt || (qt = new Yt()), yt(Mn, Dn, Nt, nn, qt);
80117
80134
  }
80118
80135
  }
80119
80136
  return gn ? (qt || (qt = new Yt()), Oe(Fe, et, yt, Nt, nn, qt)) : !1;
@@ -80150,7 +80167,7 @@ lodash_ismatch.exports;
80150
80167
  return et.test(Wt(Fe));
80151
80168
  }
80152
80169
  function ir(Fe) {
80153
- return Mn(Fe) && Zn(Fe.length) && !!tt[zt.call(Fe)];
80170
+ return Ln(Fe) && Zn(Fe.length) && !!tt[zt.call(Fe)];
80154
80171
  }
80155
80172
  function tr(Fe) {
80156
80173
  if (!kt(Fe))
@@ -80171,9 +80188,9 @@ lodash_ismatch.exports;
80171
80188
  for (qt.set(Fe, et), qt.set(et, Fe); ++yn < an; ) {
80172
80189
  var In = Fe[yn], Cn = et[yn];
80173
80190
  if (Nt)
80174
- var Ln = pn ? Nt(Cn, In, yn, et, Fe, qt) : Nt(In, Cn, yn, Fe, et, qt);
80175
- if (Ln !== void 0) {
80176
- if (Ln)
80191
+ var Mn = pn ? Nt(Cn, In, yn, et, Fe, qt) : Nt(In, Cn, yn, Fe, et, qt);
80192
+ if (Mn !== void 0) {
80193
+ if (Mn)
80177
80194
  continue;
80178
80195
  kn = !1;
80179
80196
  break;
@@ -80242,7 +80259,7 @@ lodash_ismatch.exports;
80242
80259
  return In == et;
80243
80260
  var Cn = !0;
80244
80261
  qt.set(Fe, et), qt.set(et, Fe);
80245
- for (var Ln = pn; ++kn < en; ) {
80262
+ for (var Mn = pn; ++kn < en; ) {
80246
80263
  gn = an[kn];
80247
80264
  var Dn = Fe[gn], Pe = et[gn];
80248
80265
  if (Nt)
@@ -80251,11 +80268,11 @@ lodash_ismatch.exports;
80251
80268
  Cn = !1;
80252
80269
  break;
80253
80270
  }
80254
- Ln || (Ln = gn == "constructor");
80271
+ Mn || (Mn = gn == "constructor");
80255
80272
  }
80256
- if (Cn && !Ln) {
80257
- var we = Fe.constructor, Me = et.constructor;
80258
- we != Me && "constructor" in Fe && "constructor" in et && !(typeof we == "function" && we instanceof we && typeof Me == "function" && Me instanceof Me) && (Cn = !1);
80273
+ if (Cn && !Mn) {
80274
+ var we = Fe.constructor, Le = et.constructor;
80275
+ we != Le && "constructor" in Fe && "constructor" in et && !(typeof we == "function" && we instanceof we && typeof Le == "function" && Le instanceof Le) && (Cn = !1);
80259
80276
  }
80260
80277
  return qt.delete(Fe), qt.delete(et), Cn;
80261
80278
  }
@@ -80266,7 +80283,7 @@ lodash_ismatch.exports;
80266
80283
  function Qe(Fe) {
80267
80284
  for (var et = qn(Fe), yt = et.length; yt--; ) {
80268
80285
  var Nt = et[yt], nn = Fe[Nt];
80269
- et[yt] = [Nt, nn, Mt(nn)];
80286
+ et[yt] = [Nt, nn, Lt(nn)];
80270
80287
  }
80271
80288
  return et;
80272
80289
  }
@@ -80306,7 +80323,7 @@ lodash_ismatch.exports;
80306
80323
  var et = Fe && Fe.constructor, yt = typeof et == "function" && et.prototype || Kt;
80307
80324
  return Fe === yt;
80308
80325
  }
80309
- function Mt(Fe) {
80326
+ function Lt(Fe) {
80310
80327
  return Fe === Fe && !Wn(Fe);
80311
80328
  }
80312
80329
  function Wt(Fe) {
@@ -80333,7 +80350,7 @@ lodash_ismatch.exports;
80333
80350
  return Fe != null && Zn(Fe.length) && !Hn(Fe);
80334
80351
  }
80335
80352
  function wn(Fe) {
80336
- return Mn(Fe) && cn(Fe);
80353
+ return Ln(Fe) && cn(Fe);
80337
80354
  }
80338
80355
  function Hn(Fe) {
80339
80356
  var et = Wn(Fe) ? zt.call(Fe) : "";
@@ -80346,13 +80363,13 @@ lodash_ismatch.exports;
80346
80363
  var et = typeof Fe;
80347
80364
  return !!Fe && (et == "object" || et == "function");
80348
80365
  }
80349
- function Mn(Fe) {
80366
+ function Ln(Fe) {
80350
80367
  return !!Fe && typeof Fe == "object";
80351
80368
  }
80352
80369
  function sr(Fe, et) {
80353
80370
  return Fe === et || rr(Fe, et, Qe(et));
80354
80371
  }
80355
- var ar = Te ? Le(Te) : ir;
80372
+ var ar = Te ? Me(Te) : ir;
80356
80373
  function qn(Fe) {
80357
80374
  return cn(Fe) ? jn(Fe) : tr(Fe);
80358
80375
  }
@@ -81050,8 +81067,8 @@ var localforage = { exports: {} };
81050
81067
  return Oe.db = kt, Ge(Oe, Ve._defaultConfig.version) ? je(Oe) : kt;
81051
81068
  }).then(function(kt) {
81052
81069
  Oe.db = Qe.db = kt, Ve._dbInfo = Oe;
81053
- for (var Mt = 0; Mt < bt.length; Mt++) {
81054
- var Wt = bt[Mt];
81070
+ for (var Lt = 0; Lt < bt.length; Lt++) {
81071
+ var Wt = bt[Lt];
81055
81072
  Wt !== Ve && (Wt._dbInfo.db = Oe.db, Wt._dbInfo.version = Oe.version);
81056
81073
  }
81057
81074
  });
@@ -81089,19 +81106,19 @@ var localforage = { exports: {} };
81089
81106
  try {
81090
81107
  var gt = pt.objectStore(Oe._dbInfo.storeName), bt = gt.openCursor(), kt = 1;
81091
81108
  bt.onsuccess = function() {
81092
- var Mt = bt.result;
81093
- if (Mt) {
81094
- var Wt = Mt.value;
81109
+ var Lt = bt.result;
81110
+ if (Lt) {
81111
+ var Wt = Lt.value;
81095
81112
  lt(Wt) && (Wt = st(Wt));
81096
- var Jt = Ae(Wt, Mt.key, kt++);
81097
- Jt !== void 0 ? Qe(Jt) : Mt.continue();
81113
+ var Jt = Ae(Wt, Lt.key, kt++);
81114
+ Jt !== void 0 ? Qe(Jt) : Lt.continue();
81098
81115
  } else
81099
81116
  Qe();
81100
81117
  }, bt.onerror = function() {
81101
81118
  Ke(bt.error);
81102
81119
  };
81103
- } catch (Mt) {
81104
- Ke(Mt);
81120
+ } catch (Lt) {
81121
+ Ke(Lt);
81105
81122
  }
81106
81123
  });
81107
81124
  }).catch(Ke);
@@ -81122,9 +81139,9 @@ var localforage = { exports: {} };
81122
81139
  if (bt)
81123
81140
  return ft(bt);
81124
81141
  try {
81125
- var Mt = kt.objectStore(Je._dbInfo.storeName);
81142
+ var Lt = kt.objectStore(Je._dbInfo.storeName);
81126
81143
  gt === null && (gt = void 0);
81127
- var Wt = Mt.put(gt, Ae);
81144
+ var Wt = Lt.put(gt, Ae);
81128
81145
  kt.oncomplete = function() {
81129
81146
  gt === void 0 && (gt = null), Ke(gt);
81130
81147
  }, kt.onabort = kt.onerror = function() {
@@ -81221,17 +81238,17 @@ var localforage = { exports: {} };
81221
81238
  try {
81222
81239
  var gt = pt.objectStore(Oe._dbInfo.storeName), bt = !1, kt = gt.openKeyCursor();
81223
81240
  kt.onsuccess = function() {
81224
- var Mt = kt.result;
81225
- if (!Mt) {
81241
+ var Lt = kt.result;
81242
+ if (!Lt) {
81226
81243
  Qe(null);
81227
81244
  return;
81228
81245
  }
81229
- Ae === 0 || bt ? Qe(Mt.key) : (bt = !0, Mt.advance(Ae));
81246
+ Ae === 0 || bt ? Qe(Lt.key) : (bt = !0, Lt.advance(Ae));
81230
81247
  }, kt.onerror = function() {
81231
81248
  Ke(kt.error);
81232
81249
  };
81233
- } catch (Mt) {
81234
- Ke(Mt);
81250
+ } catch (Lt) {
81251
+ Ke(Lt);
81235
81252
  }
81236
81253
  });
81237
81254
  }).catch(Ke);
@@ -81285,8 +81302,8 @@ var localforage = { exports: {} };
81285
81302
  $e(Ae);
81286
81303
  var bt = ce[Ae.name], kt = bt.forages;
81287
81304
  pt.close();
81288
- for (var Mt = 0; Mt < kt.length; Mt++) {
81289
- var Wt = kt[Mt];
81305
+ for (var Lt = 0; Lt < kt.length; Lt++) {
81306
+ var Wt = kt[Lt];
81290
81307
  Wt._dbInfo.db = null, Wt._dbInfo.version = gt;
81291
81308
  }
81292
81309
  var Jt = new te(function(tn, fn) {
@@ -81318,8 +81335,8 @@ var localforage = { exports: {} };
81318
81335
  var gt = ce[Ae.name], bt = gt.forages;
81319
81336
  pt.close();
81320
81337
  for (var kt = 0; kt < bt.length; kt++) {
81321
- var Mt = bt[kt];
81322
- Mt._dbInfo.db = null;
81338
+ var Lt = bt[kt];
81339
+ Lt._dbInfo.db = null;
81323
81340
  }
81324
81341
  var Wt = new te(function(Jt, tn) {
81325
81342
  var fn = Z.deleteDatabase(Ae.name);
@@ -81347,7 +81364,7 @@ var localforage = { exports: {} };
81347
81364
  }
81348
81365
  return ne(Qe, Ve), Qe;
81349
81366
  }
81350
- var Le = {
81367
+ var Me = {
81351
81368
  _driver: "asyncStorage",
81352
81369
  _initStorage: qe,
81353
81370
  _support: Q(),
@@ -81498,7 +81515,7 @@ var localforage = { exports: {} };
81498
81515
  var ft = Oe._dbInfo;
81499
81516
  ft.db.transaction(function(pt) {
81500
81517
  bn(pt, ft, "SELECT * FROM " + ft.storeName, [], function(gt, bt) {
81501
- for (var kt = bt.rows, Mt = kt.length, Wt = 0; Wt < Mt; Wt++) {
81518
+ for (var kt = bt.rows, Lt = kt.length, Wt = 0; Wt < Lt; Wt++) {
81502
81519
  var Jt = kt.item(Wt), tn = Jt.value;
81503
81520
  if (tn && (tn = ft.serializer.deserialize(tn)), tn = Ae(tn, Jt.key, Wt + 1), tn !== void 0) {
81504
81521
  Qe(tn);
@@ -81521,8 +81538,8 @@ var localforage = { exports: {} };
81521
81538
  Qe.ready().then(function() {
81522
81539
  Ve === void 0 && (Ve = null);
81523
81540
  var gt = Ve, bt = Qe._dbInfo;
81524
- bt.serializer.serialize(Ve, function(kt, Mt) {
81525
- Mt ? pt(Mt) : bt.db.transaction(function(Wt) {
81541
+ bt.serializer.serialize(Ve, function(kt, Lt) {
81542
+ Lt ? pt(Lt) : bt.db.transaction(function(Wt) {
81526
81543
  bn(Wt, bt, "INSERT OR REPLACE INTO " + bt.storeName + " (key, value) VALUES (?, ?)", [Ae, kt], function() {
81527
81544
  ft(gt);
81528
81545
  }, function(Jt, tn) {
@@ -81667,8 +81684,8 @@ var localforage = { exports: {} };
81667
81684
  });
81668
81685
  });
81669
81686
  }
81670
- for (var kt = [], Mt = 0, Wt = Ke.storeNames.length; Mt < Wt; Mt++)
81671
- kt.push(bt(Ke.storeNames[Mt]));
81687
+ for (var kt = [], Lt = 0, Wt = Ke.storeNames.length; Lt < Wt; Lt++)
81688
+ kt.push(bt(Ke.storeNames[Lt]));
81672
81689
  te.all(kt).then(function() {
81673
81690
  ft();
81674
81691
  }).catch(function(Jt) {
@@ -81747,9 +81764,9 @@ var localforage = { exports: {} };
81747
81764
  for (var Qe = Oe._dbInfo, Ke = Qe.keyPrefix, ft = Ke.length, pt = localStorage.length, gt = 1, bt = 0; bt < pt; bt++) {
81748
81765
  var kt = localStorage.key(bt);
81749
81766
  if (kt.indexOf(Ke) === 0) {
81750
- var Mt = localStorage.getItem(kt);
81751
- if (Mt && (Mt = Qe.serializer.deserialize(Mt)), Mt = Ae(Mt, kt.substring(ft), gt++), Mt !== void 0)
81752
- return Mt;
81767
+ var Lt = localStorage.getItem(kt);
81768
+ if (Lt && (Lt = Qe.serializer.deserialize(Lt)), Lt = Ae(Lt, kt.substring(ft), gt++), Lt !== void 0)
81769
+ return Lt;
81753
81770
  }
81754
81771
  }
81755
81772
  });
@@ -81777,7 +81794,7 @@ var localforage = { exports: {} };
81777
81794
  });
81778
81795
  return ne(Oe, Ae), Oe;
81779
81796
  }
81780
- function Lt(Ae) {
81797
+ function Mt(Ae) {
81781
81798
  var Ve = this, Oe = Ve.keys().then(function(Je) {
81782
81799
  return Je.length;
81783
81800
  });
@@ -81806,8 +81823,8 @@ var localforage = { exports: {} };
81806
81823
  else
81807
81824
  try {
81808
81825
  localStorage.setItem(gt.keyPrefix + Ae, bt), ft(Ke);
81809
- } catch (Mt) {
81810
- (Mt.name === "QuotaExceededError" || Mt.name === "NS_ERROR_DOM_QUOTA_REACHED") && pt(Mt), pt(Mt);
81826
+ } catch (Lt) {
81827
+ (Lt.name === "QuotaExceededError" || Lt.name === "NS_ERROR_DOM_QUOTA_REACHED") && pt(Lt), pt(Lt);
81811
81828
  }
81812
81829
  });
81813
81830
  });
@@ -81838,7 +81855,7 @@ var localforage = { exports: {} };
81838
81855
  setItem: Zt,
81839
81856
  removeItem: Ot,
81840
81857
  clear: ot,
81841
- length: Lt,
81858
+ length: Mt,
81842
81859
  key: Rt,
81843
81860
  keys: Bt,
81844
81861
  dropInstance: Qt
@@ -81854,7 +81871,7 @@ var localforage = { exports: {} };
81854
81871
  }, Yn = Array.isArray || function(Ae) {
81855
81872
  return Object.prototype.toString.call(Ae) === "[object Array]";
81856
81873
  }, dn = {}, Bn = {}, jn = {
81857
- INDEXEDDB: Le,
81874
+ INDEXEDDB: Me,
81858
81875
  WEBSQL: _n,
81859
81876
  LOCALSTORAGE: Yt
81860
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 = {
@@ -81915,8 +81932,8 @@ var localforage = { exports: {} };
81915
81932
  pt(bt);
81916
81933
  return;
81917
81934
  }
81918
- for (var kt = Xn.concat("_initStorage"), Mt = 0, Wt = kt.length; Mt < Wt; Mt++) {
81919
- var Jt = kt[Mt], tn = !xn(Un, Jt);
81935
+ for (var kt = Xn.concat("_initStorage"), Lt = 0, Wt = kt.length; Lt < Wt; Lt++) {
81936
+ var Jt = kt[Lt], tn = !xn(Un, Jt);
81920
81937
  if ((tn || Oe[Jt]) && typeof Oe[Jt] != "function") {
81921
81938
  pt(bt);
81922
81939
  return;
@@ -81929,8 +81946,8 @@ var localforage = { exports: {} };
81929
81946
  return ne(Fe, arguments[arguments.length - 1]), Fe;
81930
81947
  };
81931
81948
  }, Zn = 0, Wn = Un.length; Zn < Wn; Zn++) {
81932
- var Mn = Un[Zn];
81933
- Oe[Mn] || (Oe[Mn] = Hn(Mn));
81949
+ var Ln = Un[Zn];
81950
+ Oe[Ln] || (Oe[Ln] = Hn(Ln));
81934
81951
  }
81935
81952
  };
81936
81953
  fn();
@@ -81963,15 +81980,15 @@ var localforage = { exports: {} };
81963
81980
  function pt() {
81964
81981
  Ke._config.driver = Ke.driver();
81965
81982
  }
81966
- function gt(Mt) {
81967
- return Ke._extend(Mt), pt(), Ke._ready = Ke._initStorage(Ke._config), Ke._ready;
81983
+ function gt(Lt) {
81984
+ return Ke._extend(Lt), pt(), Ke._ready = Ke._initStorage(Ke._config), Ke._ready;
81968
81985
  }
81969
- function bt(Mt) {
81986
+ function bt(Lt) {
81970
81987
  return function() {
81971
81988
  var Wt = 0;
81972
81989
  function Jt() {
81973
- for (; Wt < Mt.length; ) {
81974
- var tn = Mt[Wt];
81990
+ for (; Wt < Lt.length; ) {
81991
+ var tn = Lt[Wt];
81975
81992
  return Wt++, Ke._dbInfo = null, Ke._ready = null, Ke.getDriver(tn).then(gt).catch(Jt);
81976
81993
  }
81977
81994
  pt();
@@ -81985,14 +82002,14 @@ var localforage = { exports: {} };
81985
82002
  return te.resolve();
81986
82003
  }) : te.resolve();
81987
82004
  return this._driverSet = kt.then(function() {
81988
- var Mt = ft[0];
81989
- return Ke._dbInfo = null, Ke._ready = null, Ke.getDriver(Mt).then(function(Wt) {
82005
+ var Lt = ft[0];
82006
+ return Ke._dbInfo = null, Ke._ready = null, Ke.getDriver(Lt).then(function(Wt) {
81990
82007
  Ke._driver = Wt._driver, pt(), Ke._wrapLibraryMethodsWithReady(), Ke._initDriver = bt(ft);
81991
82008
  });
81992
82009
  }).catch(function() {
81993
82010
  pt();
81994
- var Mt = new Error("No available storage method found.");
81995
- return Ke._driverSet = te.reject(Mt), Ke._driverSet;
82011
+ var Lt = new Error("No available storage method found.");
82012
+ return Ke._driverSet = te.reject(Lt), Ke._driverSet;
81996
82013
  }), re(this._driverSet, Je, Qe), this._driverSet;
81997
82014
  }, Ae.prototype.supports = function(Oe) {
81998
82015
  return !!Bn[Oe];
@@ -83096,7 +83113,7 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
83096
83113
  async sendMessage($) {
83097
83114
  this._performance.sentMessages++, await this._clientReady.wait(), invariant(this._state === SignalState.CONNECTED, "Not connected to Signal Server", {
83098
83115
  F: __dxlog_file3$3,
83099
- L: 225,
83116
+ L: 224,
83100
83117
  S: this,
83101
83118
  A: [
83102
83119
  "this._state === SignalState.CONNECTED",
@@ -83109,7 +83126,7 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
83109
83126
  peerId: $
83110
83127
  }, {
83111
83128
  F: __dxlog_file3$3,
83112
- L: 230,
83129
+ L: 229,
83113
83130
  S: this,
83114
83131
  C: (I, U) => I(...U)
83115
83132
  }), this._subscribedMessages.add({
@@ -83122,7 +83139,7 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
83122
83139
  peerId: $
83123
83140
  }, {
83124
83141
  F: __dxlog_file3$3,
83125
- L: 236,
83142
+ L: 235,
83126
83143
  S: this,
83127
83144
  C: (U, q) => U(...q)
83128
83145
  }), this._subscribedMessages.delete({
@@ -83139,7 +83156,7 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
83139
83156
  status: this.getStatus()
83140
83157
  }, {
83141
83158
  F: __dxlog_file3$3,
83142
- L: 255,
83159
+ L: 254,
83143
83160
  S: this,
83144
83161
  C: (I, U) => I(...U)
83145
83162
  }), this.statusChanged.emit(this.getStatus());
@@ -83150,12 +83167,12 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
83150
83167
  state: this._state
83151
83168
  }, {
83152
83169
  F: __dxlog_file3$3,
83153
- L: 260,
83170
+ L: 259,
83154
83171
  S: this,
83155
83172
  C: ($, I) => $(...I)
83156
83173
  }), invariant(!this._client, "Client already created", {
83157
83174
  F: __dxlog_file3$3,
83158
- L: 261,
83175
+ L: 260,
83159
83176
  S: this,
83160
83177
  A: [
83161
83178
  "!this._client",
@@ -83164,7 +83181,7 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
83164
83181
  }), this._connectionStarted = /* @__PURE__ */ new Date(), this._connectionCtx = this._ctx.derive(), this._connectionCtx.onDispose(async () => {
83165
83182
  log$2("connection context disposed", void 0, {
83166
83183
  F: __dxlog_file3$3,
83167
- L: 268,
83184
+ L: 267,
83168
83185
  S: this,
83169
83186
  C: ($, I) => $(...I)
83170
83187
  }), 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();
@@ -83176,7 +83193,7 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
83176
83193
  onConnected: () => {
83177
83194
  log$2("socket connected", void 0, {
83178
83195
  F: __dxlog_file3$3,
83179
- L: 280,
83196
+ L: 279,
83180
83197
  S: this,
83181
83198
  C: ($, I) => $(...I)
83182
83199
  }), this._lastError = void 0, this._reconnectAfter = DEFAULT_RECONNECT_TIMEOUT, this._setState(SignalState.CONNECTED), this._clientReady.wake(), this._reconcileTask.schedule();
@@ -83186,7 +83203,7 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
83186
83203
  state: this._state
83187
83204
  }, {
83188
83205
  F: __dxlog_file3$3,
83189
- L: 289,
83206
+ L: 288,
83190
83207
  S: this,
83191
83208
  C: ($, I) => $(...I)
83192
83209
  }), this._state === SignalState.ERROR) {
@@ -83201,7 +83218,7 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
83201
83218
  state: this._state
83202
83219
  }, {
83203
83220
  F: __dxlog_file3$3,
83204
- L: 304,
83221
+ L: 303,
83205
83222
  S: this,
83206
83223
  C: (I, U) => I(...U)
83207
83224
  }), this._lastError = $, this._state !== SignalState.CONNECTED && this._state !== SignalState.CONNECTING && this._incrementReconnectTimeout(), this._setState(SignalState.ERROR), this._reconnectTask.schedule();
@@ -83222,13 +83239,13 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
83222
83239
  state: this._state
83223
83240
  }, {
83224
83241
  F: __dxlog_file3$3,
83225
- L: 332,
83242
+ L: 331,
83226
83243
  S: this,
83227
83244
  C: (U, q) => U(...q)
83228
83245
  }), this._performance.reconnectCounter++, this._state === SignalState.RECONNECTING) {
83229
83246
  log$2.warn("Signal api already reconnecting.", void 0, {
83230
83247
  F: __dxlog_file3$3,
83231
- L: 336,
83248
+ L: 335,
83232
83249
  S: this,
83233
83250
  C: (U, q) => U(...q)
83234
83251
  });
@@ -83243,7 +83260,7 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
83243
83260
  const $ = this._client;
83244
83261
  invariant(this._state === SignalState.CONNECTED, "Not connected to Signal Server", {
83245
83262
  F: __dxlog_file3$3,
83246
- L: 361,
83263
+ L: 360,
83247
83264
  S: this,
83248
83265
  A: [
83249
83266
  "this._state === SignalState.CONNECTED",
@@ -83276,7 +83293,7 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
83276
83293
  swarmEvent: K
83277
83294
  }, {
83278
83295
  F: __dxlog_file3$3,
83279
- L: 388,
83296
+ L: 387,
83280
83297
  S: this,
83281
83298
  C: (Y, J) => Y(...J)
83282
83299
  }), await this._onSwarmEvent({
@@ -83295,7 +83312,7 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
83295
83312
  const $ = this._client;
83296
83313
  invariant(this._state === SignalState.CONNECTED, "Not connected to Signal Server", {
83297
83314
  F: __dxlog_file3$3,
83298
- L: 401,
83315
+ L: 400,
83299
83316
  S: this,
83300
83317
  A: [
83301
83318
  "this._state === SignalState.CONNECTED",
@@ -85702,13 +85719,13 @@ var Connection = class {
85702
85719
  stream: this._protocol.stream,
85703
85720
  sendSignal: async ($) => this._sendSignal($),
85704
85721
  sessionId: this.sessionId
85705
- }), this._transport.connected.once(async () => {
85722
+ }), await this._transport.open(), this._transport.connected.once(async () => {
85706
85723
  var $, I;
85707
85724
  this._changeState("CONNECTED"), await this.connectedTimeoutContext.dispose(), (I = ($ = this._callbacks) == null ? void 0 : $.onConnected) == null || I.call($), scheduleTaskInterval(this._ctx, async () => this._emitTransportStats(), TRANSPORT_STATS_INTERVAL);
85708
85725
  }), this._transport.closed.once(() => {
85709
85726
  this._transport = void 0, log$2("abort triggered by transport close", void 0, {
85710
85727
  F: __dxlog_file$2,
85711
- L: 216,
85728
+ L: 218,
85712
85729
  S: this,
85713
85730
  C: ($, I) => $(...I)
85714
85731
  }), this.abort().catch(($) => this.errors.raise($));
@@ -85717,35 +85734,35 @@ var Connection = class {
85717
85734
  err: $
85718
85735
  }, {
85719
85736
  F: __dxlog_file$2,
85720
- L: 221,
85737
+ L: 223,
85721
85738
  S: this,
85722
85739
  C: (I, U) => I(...U)
85723
85740
  }), this.closeReason || (this.closeReason = $ == null ? void 0 : $.message), $ instanceof ConnectionResetError ? (log$2.info("aborting due to transport ConnectionResetError", void 0, {
85724
85741
  F: __dxlog_file$2,
85725
- L: 228,
85742
+ L: 230,
85726
85743
  S: this,
85727
85744
  C: (I, U) => I(...U)
85728
85745
  }), this.abort().catch((I) => this.errors.raise(I))) : $ instanceof ConnectivityError ? (log$2.info("aborting due to transport ConnectivityError", void 0, {
85729
85746
  F: __dxlog_file$2,
85730
- L: 231,
85747
+ L: 233,
85731
85748
  S: this,
85732
85749
  C: (I, U) => I(...U)
85733
85750
  }), this.abort().catch((I) => this.errors.raise(I))) : $ instanceof UnknownProtocolError && log$2.warn("unsure what to do with UnknownProtocolError, will keep on truckin", {
85734
85751
  err: $
85735
85752
  }, {
85736
85753
  F: __dxlog_file$2,
85737
- L: 234,
85754
+ L: 236,
85738
85755
  S: this,
85739
85756
  C: (I, U) => I(...U)
85740
85757
  }), this._state !== "CLOSED" && this._state !== "CLOSING" && (await this.connectedTimeoutContext.dispose(), this.errors.raise($));
85741
85758
  });
85742
85759
  for (const $ of this._incomingSignalBuffer)
85743
- this._transport.signal($);
85760
+ this._transport.onSignal($);
85744
85761
  this._incomingSignalBuffer = [], log$2.trace("dxos.mesh.connection.open-connection", trace$1.end({
85745
85762
  id: this._instanceId
85746
85763
  }), {
85747
85764
  F: __dxlog_file$2,
85748
- L: 250,
85765
+ L: 252,
85749
85766
  S: this,
85750
85767
  C: ($, I) => $(...I)
85751
85768
  });
@@ -85756,13 +85773,13 @@ var Connection = class {
85756
85773
  err: $
85757
85774
  }, {
85758
85775
  F: __dxlog_file$2,
85759
- L: 257,
85776
+ L: 259,
85760
85777
  S: this,
85761
85778
  C: (G, K) => G(...K)
85762
85779
  }), this._state === "CLOSED" || this._state === "ABORTED") {
85763
85780
  log$2(`abort ignored: already ${this._state}`, this.closeReason, {
85764
85781
  F: __dxlog_file$2,
85765
- L: 259,
85782
+ L: 261,
85766
85783
  S: this,
85767
85784
  C: (G, K) => G(...K)
85768
85785
  });
@@ -85772,24 +85789,24 @@ var Connection = class {
85772
85789
  try {
85773
85790
  log$2("aborting protocol... ", void 0, {
85774
85791
  F: __dxlog_file$2,
85775
- L: 273,
85792
+ L: 275,
85776
85793
  S: this,
85777
85794
  C: (G, K) => G(...K)
85778
85795
  }), await this._protocol.abort();
85779
85796
  } catch (G) {
85780
85797
  log$2.catch(G, void 0, {
85781
85798
  F: __dxlog_file$2,
85782
- L: 276,
85799
+ L: 278,
85783
85800
  S: this,
85784
85801
  C: (K, Y) => K(...Y)
85785
85802
  });
85786
85803
  }
85787
85804
  try {
85788
- await ((I = this._transport) == null ? void 0 : I.destroy());
85805
+ await ((I = this._transport) == null ? void 0 : I.close());
85789
85806
  } catch (G) {
85790
85807
  log$2.catch(G, void 0, {
85791
85808
  F: __dxlog_file$2,
85792
- L: 283,
85809
+ L: 285,
85793
85810
  S: this,
85794
85811
  C: (K, Y) => K(...Y)
85795
85812
  });
@@ -85799,7 +85816,7 @@ var Connection = class {
85799
85816
  } catch (G) {
85800
85817
  log$2.catch(G, void 0, {
85801
85818
  F: __dxlog_file$2,
85802
- L: 289,
85819
+ L: 291,
85803
85820
  S: this,
85804
85821
  C: (K, Y) => K(...Y)
85805
85822
  });
@@ -85815,7 +85832,7 @@ var Connection = class {
85815
85832
  peerId: this.ownId
85816
85833
  }, {
85817
85834
  F: __dxlog_file$2,
85818
- L: 314,
85835
+ L: 316,
85819
85836
  S: this,
85820
85837
  C: (Y, J) => Y(...J)
85821
85838
  }), I === "CONNECTED") {
@@ -85824,17 +85841,17 @@ var Connection = class {
85824
85841
  } catch (Y) {
85825
85842
  log$2.catch(Y, void 0, {
85826
85843
  F: __dxlog_file$2,
85827
- L: 321,
85844
+ L: 323,
85828
85845
  S: this,
85829
85846
  C: (J, Z) => J(...Z)
85830
85847
  });
85831
85848
  }
85832
85849
  try {
85833
- await ((U = this._transport) == null ? void 0 : U.destroy());
85850
+ await ((U = this._transport) == null ? void 0 : U.close());
85834
85851
  } catch (Y) {
85835
85852
  log$2.catch(Y, void 0, {
85836
85853
  F: __dxlog_file$2,
85837
- L: 328,
85854
+ L: 330,
85838
85855
  S: this,
85839
85856
  C: (J, Z) => J(...Z)
85840
85857
  });
@@ -85842,7 +85859,7 @@ var Connection = class {
85842
85859
  } else {
85843
85860
  log$2.info(`graceful close requested when we were in ${I} state? aborting`, void 0, {
85844
85861
  F: __dxlog_file$2,
85845
- L: 331,
85862
+ L: 333,
85846
85863
  S: this,
85847
85864
  C: (Y, J) => Y(...J)
85848
85865
  });
@@ -85851,17 +85868,17 @@ var Connection = class {
85851
85868
  } catch (Y) {
85852
85869
  log$2.catch(Y, void 0, {
85853
85870
  F: __dxlog_file$2,
85854
- L: 335,
85871
+ L: 337,
85855
85872
  S: this,
85856
85873
  C: (J, Z) => J(...Z)
85857
85874
  });
85858
85875
  }
85859
85876
  try {
85860
- await ((q = this._transport) == null ? void 0 : q.destroy());
85877
+ await ((q = this._transport) == null ? void 0 : q.close());
85861
85878
  } catch (Y) {
85862
85879
  log$2.catch(Y, void 0, {
85863
85880
  F: __dxlog_file$2,
85864
- L: 340,
85881
+ L: 342,
85865
85882
  S: this,
85866
85883
  C: (J, Z) => J(...Z)
85867
85884
  });
@@ -85871,7 +85888,7 @@ var Connection = class {
85871
85888
  peerId: this.ownId
85872
85889
  }, {
85873
85890
  F: __dxlog_file$2,
85874
- L: 344,
85891
+ L: 346,
85875
85892
  S: this,
85876
85893
  C: (Y, J) => Y(...J)
85877
85894
  }), this._changeState("CLOSED"), (K = (G = this._callbacks) == null ? void 0 : G.onClosed) == null || K.call(G, $);
@@ -85905,7 +85922,7 @@ var Connection = class {
85905
85922
  err: I
85906
85923
  }, {
85907
85924
  F: __dxlog_file$2,
85908
- L: 382,
85925
+ L: 384,
85909
85926
  S: this,
85910
85927
  C: (U, q) => U(...q)
85911
85928
  }), await this.close(new ConnectivityError("signal message failed to deliver", I));
@@ -85918,7 +85935,7 @@ var Connection = class {
85918
85935
  var U, q;
85919
85936
  if (invariant($.sessionId, void 0, {
85920
85937
  F: __dxlog_file$2,
85921
- L: 391,
85938
+ L: 393,
85922
85939
  S: this,
85923
85940
  A: [
85924
85941
  "msg.sessionId",
@@ -85927,7 +85944,7 @@ var Connection = class {
85927
85944
  }), !$.sessionId.equals(this.sessionId)) {
85928
85945
  log$2("dropping signal for incorrect session id", void 0, {
85929
85946
  F: __dxlog_file$2,
85930
- L: 393,
85947
+ L: 395,
85931
85948
  S: this,
85932
85949
  C: (G, K) => G(...K)
85933
85950
  });
@@ -85935,7 +85952,7 @@ var Connection = class {
85935
85952
  }
85936
85953
  invariant($.data.signal || $.data.signalBatch, void 0, {
85937
85954
  F: __dxlog_file$2,
85938
- L: 396,
85955
+ L: 398,
85939
85956
  S: this,
85940
85957
  A: [
85941
85958
  "msg.data.signal || msg.data.signalBatch",
@@ -85943,7 +85960,7 @@ var Connection = class {
85943
85960
  ]
85944
85961
  }), invariant((U = $.author) == null ? void 0 : U.equals(this.remoteId), void 0, {
85945
85962
  F: __dxlog_file$2,
85946
- L: 397,
85963
+ L: 399,
85947
85964
  S: this,
85948
85965
  A: [
85949
85966
  "msg.author?.equals(this.remoteId)",
@@ -85951,7 +85968,7 @@ var Connection = class {
85951
85968
  ]
85952
85969
  }), invariant((q = $.recipient) == null ? void 0 : q.equals(this.ownId), void 0, {
85953
85970
  F: __dxlog_file$2,
85954
- L: 398,
85971
+ L: 400,
85955
85972
  S: this,
85956
85973
  A: [
85957
85974
  "msg.recipient?.equals(this.ownId)",
@@ -85971,12 +85988,12 @@ var Connection = class {
85971
85988
  msg: $.data
85972
85989
  }, {
85973
85990
  F: __dxlog_file$2,
85974
- L: 407,
85991
+ L: 409,
85975
85992
  S: this,
85976
85993
  C: (K, Y) => K(...Y)
85977
85994
  }), this._incomingSignalBuffer.push(G)) : (invariant(this._transport, "Connection not ready to accept signals.", {
85978
85995
  F: __dxlog_file$2,
85979
- L: 410,
85996
+ L: 412,
85980
85997
  S: this,
85981
85998
  A: [
85982
85999
  "this._transport",
@@ -85988,10 +86005,10 @@ var Connection = class {
85988
86005
  msg: $.data
85989
86006
  }, {
85990
86007
  F: __dxlog_file$2,
85991
- L: 411,
86008
+ L: 413,
85992
86009
  S: this,
85993
86010
  C: (K, Y) => K(...Y)
85994
- }), await this._transport.signal(G)));
86011
+ }), await this._transport.onSignal(G)));
85995
86012
  }
85996
86013
  initiate() {
85997
86014
  this._changeState("INITIAL");
@@ -86003,12 +86020,12 @@ var Connection = class {
86003
86020
  peerId: this.ownId
86004
86021
  }, {
86005
86022
  F: __dxlog_file$2,
86006
- L: 422,
86023
+ L: 424,
86007
86024
  S: this,
86008
86025
  C: (I, U) => I(...U)
86009
86026
  }), invariant($ !== this._state, "Already in this state.", {
86010
86027
  F: __dxlog_file$2,
86011
- L: 423,
86028
+ L: 425,
86012
86029
  S: this,
86013
86030
  A: [
86014
86031
  "state !== this._state",
@@ -86247,7 +86264,6 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
86247
86264
  super("Connection displaced by remote initiator.");
86248
86265
  }
86249
86266
  }, CONNECTION_COUNTS_STABLE_AFTER = 5e3, Peer = class {
86250
- // TODO(burdon): Convert to map?
86251
86267
  constructor($, I, U, q, G, K, Y, J) {
86252
86268
  this.id = $, this.topic = I, this.localPeerId = U, this._signalMessaging = q, this._protocolProvider = G, this._transportFactory = K, this._connectionLimiter = Y, this._callbacks = J, this._availableAfter = 0, this.availableToConnect = !0, this._ctx = new Context(), this.advertizing = !1, this.initiating = !1, this.connectionDisplaced = new Event$1();
86253
86269
  }
@@ -86264,7 +86280,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
86264
86280
  ].includes(this.connection.state))
86265
86281
  return log$2.info(`received offer when connection already in ${this.connection.state} state`, void 0, {
86266
86282
  F: __dxlog_file3$1,
86267
- L: 115,
86283
+ L: 114,
86268
86284
  S: this,
86269
86285
  C: (q, G) => q(...G)
86270
86286
  }), {
@@ -86279,7 +86295,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
86279
86295
  sessionId: (U = this.connection) == null ? void 0 : U.sessionId
86280
86296
  }, {
86281
86297
  F: __dxlog_file3$1,
86282
- L: 124,
86298
+ L: 123,
86283
86299
  S: this,
86284
86300
  C: (q, G) => q(...G)
86285
86301
  }), this.connection && await this.closeConnection(new ConnectionDisplacedError());
@@ -86290,7 +86306,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
86290
86306
  if (await this._callbacks.onOffer(I) && !this.connection) {
86291
86307
  invariant($.sessionId, void 0, {
86292
86308
  F: __dxlog_file3$1,
86293
- L: 144,
86309
+ L: 143,
86294
86310
  S: this,
86295
86311
  A: [
86296
86312
  "message.sessionId",
@@ -86308,7 +86324,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
86308
86324
  err: G
86309
86325
  }, {
86310
86326
  F: __dxlog_file3$1,
86311
- L: 154,
86327
+ L: 153,
86312
86328
  S: this,
86313
86329
  C: (K, Y) => K(...Y)
86314
86330
  }), await this.closeConnection(G);
@@ -86327,7 +86343,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
86327
86343
  async initiateConnection() {
86328
86344
  invariant(!this.initiating, "Initiation in progress.", {
86329
86345
  F: __dxlog_file3$1,
86330
- L: 171,
86346
+ L: 170,
86331
86347
  S: this,
86332
86348
  A: [
86333
86349
  "!this.initiating",
@@ -86335,7 +86351,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
86335
86351
  ]
86336
86352
  }), invariant(!this.connection, "Already connected.", {
86337
86353
  F: __dxlog_file3$1,
86338
- L: 172,
86354
+ L: 171,
86339
86355
  S: this,
86340
86356
  A: [
86341
86357
  "!this.connection",
@@ -86350,7 +86366,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
86350
86366
  sessionId: $
86351
86367
  }, {
86352
86368
  F: __dxlog_file3$1,
86353
- L: 174,
86369
+ L: 173,
86354
86370
  S: this,
86355
86371
  C: (q, G) => q(...G)
86356
86372
  });
@@ -86373,13 +86389,13 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
86373
86389
  remoteId: this.id
86374
86390
  }, {
86375
86391
  F: __dxlog_file3$1,
86376
- L: 191,
86392
+ L: 190,
86377
86393
  S: this,
86378
86394
  C: (q, G) => q(...G)
86379
86395
  }), I.state !== ConnectionState.INITIAL) {
86380
86396
  log$2("ignoring response", void 0, {
86381
86397
  F: __dxlog_file3$1,
86382
- L: 193,
86398
+ L: 192,
86383
86399
  S: this,
86384
86400
  C: (q, G) => q(...G)
86385
86401
  });
@@ -86393,7 +86409,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
86393
86409
  remoteId: this.id
86394
86410
  }, {
86395
86411
  F: __dxlog_file3$1,
86396
- L: 197,
86412
+ L: 196,
86397
86413
  S: this,
86398
86414
  C: (G, K) => G(...K)
86399
86415
  }), await I.abort(q), q;
@@ -86413,7 +86429,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
86413
86429
  remoteId: this.id
86414
86430
  }, {
86415
86431
  F: __dxlog_file3$1,
86416
- L: 210,
86432
+ L: 209,
86417
86433
  S: this,
86418
86434
  C: (G, K) => G(...K)
86419
86435
  }), await I.abort(q), q;
@@ -86423,7 +86439,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
86423
86439
  try {
86424
86440
  log$2("opening connection as initiator", void 0, {
86425
86441
  F: __dxlog_file3$1,
86426
- L: 223,
86442
+ L: 222,
86427
86443
  S: this,
86428
86444
  C: (q, G) => q(...G)
86429
86445
  }), await I.openConnection(), this._callbacks.onAccepted();
@@ -86435,14 +86451,14 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
86435
86451
  remoteId: this.id
86436
86452
  }, {
86437
86453
  F: __dxlog_file3$1,
86438
- L: 227,
86454
+ L: 226,
86439
86455
  S: this,
86440
86456
  C: (G, K) => G(...K)
86441
86457
  }), log$2.warn("closing connection due to unhandled error on openConnection", {
86442
86458
  err: q
86443
86459
  }, {
86444
86460
  F: __dxlog_file3$1,
86445
- L: 234,
86461
+ L: 233,
86446
86462
  S: this,
86447
86463
  C: (G, K) => G(...K)
86448
86464
  }), await this.closeConnection(q), q;
@@ -86464,12 +86480,12 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
86464
86480
  sessionId: I
86465
86481
  }, {
86466
86482
  F: __dxlog_file3$1,
86467
- L: 248,
86483
+ L: 247,
86468
86484
  S: this,
86469
86485
  C: (G, K) => G(...K)
86470
86486
  }), invariant(!this.connection, "Already connected.", {
86471
86487
  F: __dxlog_file3$1,
86472
- L: 255,
86488
+ L: 254,
86473
86489
  S: this,
86474
86490
  A: [
86475
86491
  "!this.connection",
@@ -86501,7 +86517,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
86501
86517
  initiator: $
86502
86518
  }, {
86503
86519
  F: __dxlog_file3$1,
86504
- L: 274,
86520
+ L: 273,
86505
86521
  S: this,
86506
86522
  C: (G, K) => G(...K)
86507
86523
  });
@@ -86514,12 +86530,12 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
86514
86530
  initiator: $
86515
86531
  }, {
86516
86532
  F: __dxlog_file3$1,
86517
- L: 283,
86533
+ L: 282,
86518
86534
  S: this,
86519
86535
  C: (K, Y) => K(...Y)
86520
86536
  }), this._connectionLimiter.doneConnecting(I), invariant(this.connection === U, "Connection mismatch (race condition).", {
86521
86537
  F: __dxlog_file3$1,
86522
- L: 288,
86538
+ L: 287,
86523
86539
  S: this,
86524
86540
  A: [
86525
86541
  "this.connection === connection",
@@ -86533,7 +86549,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
86533
86549
  initiator: $
86534
86550
  }, {
86535
86551
  F: __dxlog_file3$1,
86536
- L: 290,
86552
+ L: 289,
86537
86553
  S: this,
86538
86554
  C: (K, Y) => K(...Y)
86539
86555
  }), G instanceof ConnectionDisplacedError ? this.connectionDisplaced.emit(this.connection) : (this._lastConnectionTime && this._lastConnectionTime + CONNECTION_COUNTS_STABLE_AFTER < Date.now() ? this._availableAfter = 0 : (this.availableToConnect = !1, this._availableAfter = increaseInterval(this._availableAfter)), this._callbacks.onDisconnected(), scheduleTask(this._connectionCtx, () => {
@@ -86551,7 +86567,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
86551
86567
  err: G
86552
86568
  }, {
86553
86569
  F: __dxlog_file3$1,
86554
- L: 330,
86570
+ L: 329,
86555
86571
  S: this,
86556
86572
  C: (K, Y) => K(...Y)
86557
86573
  }), log$2.trace("dxos.mesh.connection.error", {
@@ -86563,7 +86579,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
86563
86579
  err: G
86564
86580
  }, {
86565
86581
  F: __dxlog_file3$1,
86566
- L: 337,
86582
+ L: 336,
86567
86583
  S: this,
86568
86584
  C: (K, Y) => K(...Y)
86569
86585
  }), this.closeConnection(G);
@@ -86578,7 +86594,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
86578
86594
  sessionId: I.sessionId
86579
86595
  }, {
86580
86596
  F: __dxlog_file3$1,
86581
- L: 362,
86597
+ L: 361,
86582
86598
  S: this,
86583
86599
  C: (U, q) => U(...q)
86584
86600
  }), await I.close($), log$2("closed", {
@@ -86586,7 +86602,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
86586
86602
  sessionId: I.sessionId
86587
86603
  }, {
86588
86604
  F: __dxlog_file3$1,
86589
- L: 368,
86605
+ L: 367,
86590
86606
  S: this,
86591
86607
  C: (U, q) => U(...q)
86592
86608
  });
@@ -86597,7 +86613,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
86597
86613
  message: $
86598
86614
  }, {
86599
86615
  F: __dxlog_file3$1,
86600
- L: 373,
86616
+ L: 372,
86601
86617
  S: this,
86602
86618
  C: (I, U) => I(...U)
86603
86619
  });
@@ -86612,7 +86628,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
86612
86628
  topic: this.topic
86613
86629
  }, {
86614
86630
  F: __dxlog_file3$1,
86615
- L: 383,
86631
+ L: 382,
86616
86632
  S: this,
86617
86633
  C: (U, q) => U(...q)
86618
86634
  }), await ((I = this == null ? void 0 : this.connection) == null ? void 0 : I.close($));
@@ -87040,88 +87056,88 @@ var __dxlog_file11 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-man
87040
87056
  }
87041
87057
  }), Qn, MemoryTransport = (Qn = class {
87042
87058
  constructor(I) {
87043
- this.options = I, this.closed = new Event$1(), this.connected = new Event$1(), this.errors = new ErrorStream(), this._instanceId = PublicKey.random(), this._remote = new Trigger(), this._outgoingDelay = createStreamDelay(MEMORY_TRANSPORT_DELAY), this._incomingDelay = createStreamDelay(MEMORY_TRANSPORT_DELAY), this._destroyed = !1, log$2("creating", void 0, {
87059
+ this._options = I, this._instanceId = PublicKey.random(), this._remote = new Trigger(), this._outgoingDelay = createStreamDelay(MEMORY_TRANSPORT_DELAY), this._incomingDelay = createStreamDelay(MEMORY_TRANSPORT_DELAY), this._closed = !1, this.closed = new Event$1(), this.connected = new Event$1(), this.errors = new ErrorStream(), invariant(!Qn._connections.has(this._instanceId), "Duplicate memory connection", {
87044
87060
  F: __dxlog_file11,
87045
87061
  L: 64,
87046
87062
  S: this,
87047
- C: (U, q) => U(...q)
87048
- }), invariant(!Qn._connections.has(this._instanceId), "Duplicate memory connection", {
87049
- F: __dxlog_file11,
87050
- L: 66,
87051
- S: this,
87052
87063
  A: [
87053
87064
  "!MemoryTransport._connections.has(this._instanceId)",
87054
87065
  "'Duplicate memory connection'"
87055
87066
  ]
87056
- }), Qn._connections.set(this._instanceId, this), this.options.initiator ? setTimeout(async () => {
87067
+ }), Qn._connections.set(this._instanceId, this);
87068
+ }
87069
+ get isOpen() {
87070
+ return !this._closed;
87071
+ }
87072
+ async open() {
87073
+ if (log$2("opening...", void 0, {
87074
+ F: __dxlog_file11,
87075
+ L: 74,
87076
+ S: this,
87077
+ C: (I, U) => I(...U)
87078
+ }), this._options.initiator) {
87057
87079
  log$2("sending signal", void 0, {
87058
87080
  F: __dxlog_file11,
87059
- L: 73,
87081
+ L: 78,
87060
87082
  S: this,
87061
- C: (U, q) => U(...q)
87062
- }), this.options.sendSignal({
87063
- payload: {
87064
- transportId: this._instanceId.toHex()
87065
- }
87066
- }).catch((U) => {
87067
- this._destroyed || this.errors.raise(U);
87083
+ C: (I, U) => I(...U)
87068
87084
  });
87069
- }) : this._remote.wait({
87070
- timeout: this.options.timeout ?? 1e3
87071
- }).then((U) => {
87072
- if (!this._destroyed) {
87073
- if (this._remoteInstanceId = U, this._remoteConnection = Qn._connections.get(this._remoteInstanceId), !this._remoteConnection) {
87074
- this._destroyed = !0, this.closed.emit();
87075
- return;
87076
- }
87077
- invariant(!this._remoteConnection._remoteConnection, `Remote already connected: ${this._remoteInstanceId}`, {
87078
- F: __dxlog_file11,
87079
- L: 99,
87080
- S: this,
87081
- A: [
87082
- "!this._remoteConnection._remoteConnection",
87083
- "`Remote already connected: ${this._remoteInstanceId}`"
87084
- ]
87085
- }), this._remoteConnection._remoteConnection = this, this._remoteConnection._remoteInstanceId = this._instanceId, log$2("connected", void 0, {
87086
- F: __dxlog_file11,
87087
- L: 103,
87088
- S: this,
87089
- C: (q, G) => q(...G)
87090
- }), this.options.stream.pipe(this._outgoingDelay).pipe(this._remoteConnection.options.stream).pipe(this._incomingDelay).pipe(this.options.stream), this.connected.emit(), this._remoteConnection.connected.emit();
87085
+ try {
87086
+ await this._options.sendSignal({
87087
+ payload: {
87088
+ transportId: this._instanceId.toHex()
87089
+ }
87090
+ });
87091
+ } catch (I) {
87092
+ this._closed || this.errors.raise(toError(I));
87091
87093
  }
87092
- }).catch((U) => {
87093
- this._destroyed || this.errors.raise(U);
87094
- });
87094
+ } else
87095
+ this._remote.wait({
87096
+ timeout: this._options.timeout ?? 1e3
87097
+ }).then((I) => {
87098
+ if (!this._closed) {
87099
+ if (this._remoteInstanceId = I, this._remoteConnection = Qn._connections.get(this._remoteInstanceId), !this._remoteConnection) {
87100
+ this._closed = !0, this.closed.emit();
87101
+ return;
87102
+ }
87103
+ invariant(!this._remoteConnection._remoteConnection, `Remote already connected: ${this._remoteInstanceId}`, {
87104
+ F: __dxlog_file11,
87105
+ L: 104,
87106
+ S: this,
87107
+ A: [
87108
+ "!this._remoteConnection._remoteConnection",
87109
+ "`Remote already connected: ${this._remoteInstanceId}`"
87110
+ ]
87111
+ }), this._remoteConnection._remoteConnection = this, this._remoteConnection._remoteInstanceId = this._instanceId, log$2("connected", void 0, {
87112
+ F: __dxlog_file11,
87113
+ L: 108,
87114
+ S: this,
87115
+ C: (U, q) => U(...q)
87116
+ }), this._options.stream.pipe(this._outgoingDelay).pipe(this._remoteConnection._options.stream).pipe(this._incomingDelay).pipe(this._options.stream), this.connected.emit(), this._remoteConnection.connected.emit();
87117
+ }
87118
+ }).catch((I) => {
87119
+ this._closed || this.errors.raise(I);
87120
+ });
87095
87121
  }
87096
- async destroy() {
87097
- log$2("closing", void 0, {
87098
- F: __dxlog_file11,
87099
- L: 124,
87100
- S: this,
87101
- C: (I, U) => I(...U)
87102
- }), this._destroyed = !0, Qn._connections.delete(this._instanceId), this._remoteConnection && (log$2("closing", void 0, {
87122
+ async close() {
87123
+ log$2("closing...", void 0, {
87103
87124
  F: __dxlog_file11,
87104
87125
  L: 129,
87105
87126
  S: this,
87106
87127
  C: (I, U) => I(...U)
87107
- }), this._remoteConnection._destroyed = !0, Qn._connections.delete(this._remoteInstanceId), this.options.stream.unpipe(this._incomingDelay), this._incomingDelay.unpipe(this._remoteConnection.options.stream), this._remoteConnection.options.stream.unpipe(this._outgoingDelay), this._outgoingDelay.unpipe(this.options.stream), this.options.stream.unpipe(this._outgoingDelay), this._remoteConnection.closed.emit(), this._remoteConnection._remoteConnection = void 0, this._remoteConnection = void 0, log$2("closed", void 0, {
87128
+ }), this._closed = !0, Qn._connections.delete(this._instanceId), this._remoteConnection && (this._remoteConnection._closed = !0, Qn._connections.delete(this._remoteInstanceId), this._options.stream.unpipe(this._incomingDelay), this._incomingDelay.unpipe(this._remoteConnection._options.stream), this._remoteConnection._options.stream.unpipe(this._outgoingDelay), this._outgoingDelay.unpipe(this._options.stream), this._options.stream.unpipe(this._outgoingDelay), this._remoteConnection.closed.emit(), this._remoteConnection._remoteConnection = void 0, this._remoteConnection = void 0), this.closed.emit(), log$2("closed", void 0, {
87108
87129
  F: __dxlog_file11,
87109
- L: 150,
87110
- S: this,
87111
- C: (I, U) => I(...U)
87112
- })), this.closed.emit(), log$2("closed", void 0, {
87113
- F: __dxlog_file11,
87114
- L: 154,
87130
+ L: 157,
87115
87131
  S: this,
87116
87132
  C: (I, U) => I(...U)
87117
87133
  });
87118
87134
  }
87119
- signal({ payload: I }) {
87135
+ async onSignal({ payload: I }) {
87120
87136
  if (log$2("received signal", {
87121
87137
  payload: I
87122
87138
  }, {
87123
87139
  F: __dxlog_file11,
87124
- L: 158,
87140
+ L: 161,
87125
87141
  S: this,
87126
87142
  C: (q, G) => q(...G)
87127
87143
  }), !(I != null && I.transportId))
@@ -87150,9 +87166,9 @@ _ts_decorate4$1([
87150
87166
  _ts_decorate4$1([
87151
87167
  logInfo
87152
87168
  ], MemoryTransport.prototype, "_remoteInstanceId", void 0);
87153
- var TransportKind;
87169
+ var toError = ($) => $ instanceof Error ? $ : new Error(String($)), TransportKind;
87154
87170
  (function($) {
87155
- $.SIMPLE_PEER = "SIMPLE_PEER", $.LIBDATACHANNEL = "LIBDATACHANNEL", $.SIMPLE_PEER_PROXY = "SIMPLE_PEER_PROXY", $.MEMORY = "MEMORY", $.TCP = "TCP";
87171
+ $.SIMPLE_PEER = "SIMPLE_PEER", $.SIMPLE_PEER_PROXY = "SIMPLE_PEER_PROXY", $.LIBDATACHANNEL = "LIBDATACHANNEL", $.MEMORY = "MEMORY", $.TCP = "TCP";
87156
87172
  })(TransportKind || (TransportKind = {}));
87157
87173
  var wrtc = null;
87158
87174
  try {
@@ -87170,115 +87186,146 @@ function _ts_decorate5$1($, I, U, q) {
87170
87186
  }
87171
87187
  var __dxlog_file15 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/transport/libdatachannel-transport.ts", DATACHANNEL_LABEL = "dxos.mesh.transport", MAX_BUFFERED_AMOUNT = 64 * 1024, MAX_MESSAGE_SIZE = 64 * 1024, or, LibDataChannelTransport = (or = class {
87172
87188
  constructor(I) {
87173
- this.params = I, this._closed = !1, this.closed = new Event$1(), this._connected = !1, this.connected = new Event$1(), this.errors = new ErrorStream(), this._readyForCandidates = new Trigger(), this._writeCallback = null, this._peer = (async () => {
87174
- const { RTCPeerConnection: U } = (await importESM("node-datachannel/polyfill")).default;
87175
- this._closed && this.errors.raise(new Error("connection already closed")), I.webrtcConfig ? I.webrtcConfig.iceServers = I.webrtcConfig.iceServers ?? [] : I.webrtcConfig = {
87176
- iceServers: []
87177
- };
87178
- const q = new U(I.webrtcConfig);
87179
- return or._instanceCount++, q.onicecandidateerror = (G) => {
87180
- log$2.error("peer.onicecandidateerror", {
87181
- event: G
87182
- }, {
87183
- F: __dxlog_file15,
87184
- L: 63,
87185
- S: this,
87186
- C: (K, Y) => K(...Y)
87187
- });
87188
- }, q.onconnectionstatechange = (G) => {
87189
- log$2.debug("peer.onconnectionstatechange", {
87190
- event: G,
87191
- peerConnectionState: q.connectionState,
87192
- transportConnectionState: this._connected
87193
- }, {
87194
- F: __dxlog_file15,
87195
- L: 67,
87196
- S: this,
87197
- C: (K, Y) => K(...Y)
87198
- });
87199
- }, q.onicecandidate = async (G) => {
87200
- if (log$2.debug("peer.onicecandidate", {
87201
- event: G
87202
- }, {
87203
- F: __dxlog_file15,
87204
- L: 76,
87205
- S: this,
87206
- C: (K, Y) => K(...Y)
87207
- }), G.candidate)
87208
- try {
87209
- await I.sendSignal({
87210
- payload: {
87211
- data: {
87212
- type: "candidate",
87213
- candidate: {
87214
- candidate: G.candidate.candidate,
87215
- // these fields never seem to be not null, but connecting to Chrome doesn't work if they are
87216
- sdpMLineIndex: G.candidate.sdpMLineIndex ?? 0,
87217
- sdpMid: G.candidate.sdpMid ?? 0
87218
- }
87189
+ this._options = I, this._closed = !1, this._connected = !1, this._writeCallback = null, this._readyForCandidates = new Trigger(), this.closed = new Event$1(), this.connected = new Event$1(), this.errors = new ErrorStream();
87190
+ }
87191
+ get isOpen() {
87192
+ return !!this._peer && !this._closed;
87193
+ }
87194
+ async open() {
87195
+ this._closed && this.errors.raise(new Error("connection already closed"));
87196
+ const { RTCPeerConnection: I } = (await importESM("node-datachannel/polyfill")).default;
87197
+ this._options.webrtcConfig ? this._options.webrtcConfig.iceServers = this._options.webrtcConfig.iceServers ?? [] : this._options.webrtcConfig = {
87198
+ iceServers: []
87199
+ }, this._peer = new I(this._options.webrtcConfig), this._peer.onicecandidateerror = (U) => {
87200
+ log$2.error("peer.onicecandidateerror", {
87201
+ event: U
87202
+ }, {
87203
+ F: __dxlog_file15,
87204
+ L: 77,
87205
+ S: this,
87206
+ C: (q, G) => q(...G)
87207
+ });
87208
+ }, this._peer.onconnectionstatechange = (U) => {
87209
+ var q;
87210
+ log$2.debug("peer.onconnectionstatechange", {
87211
+ event: U,
87212
+ peerConnectionState: (q = this._peer) == null ? void 0 : q.connectionState,
87213
+ transportConnectionState: this._connected
87214
+ }, {
87215
+ F: __dxlog_file15,
87216
+ L: 81,
87217
+ S: this,
87218
+ C: (G, K) => G(...K)
87219
+ });
87220
+ }, this._peer.onicecandidate = async (U) => {
87221
+ if (log$2.debug("peer.onicecandidate", {
87222
+ event: U
87223
+ }, {
87224
+ F: __dxlog_file15,
87225
+ L: 91,
87226
+ S: this,
87227
+ C: (q, G) => q(...G)
87228
+ }), U.candidate)
87229
+ try {
87230
+ await this._options.sendSignal({
87231
+ payload: {
87232
+ data: {
87233
+ type: "candidate",
87234
+ candidate: {
87235
+ candidate: U.candidate.candidate,
87236
+ // These fields never seem to be not null, but connecting to Chrome doesn't work if they are.
87237
+ sdpMLineIndex: U.candidate.sdpMLineIndex ?? 0,
87238
+ sdpMid: U.candidate.sdpMid ?? 0
87219
87239
  }
87220
87240
  }
87221
- });
87222
- } catch (K) {
87223
- log$2.info("signaling errror", {
87224
- err: K
87225
- }, {
87226
- F: __dxlog_file15,
87227
- L: 93,
87228
- S: this,
87229
- C: (Y, J) => Y(...J)
87230
- });
87231
- }
87232
- }, I.initiator ? (q.createOffer().then(async (G) => {
87233
- if (!this._closed)
87234
- return q.connectionState !== "connecting" && (log$2.error("i am initiator but peer not in state connecting", {
87235
- peer: q
87236
- }, {
87237
- F: __dxlog_file15,
87238
- L: 106,
87239
- S: this,
87240
- C: (K, Y) => K(...Y)
87241
- }), this.errors.raise(new Error("invalid state: peer is initiator, but other peer not in state connecting"))), log$2.debug(`im the initiator, creating offer, peer is in state ${q.connectionState}`, {
87242
- offer: G
87241
+ }
87242
+ });
87243
+ } catch (q) {
87244
+ log$2.info("signaling error", {
87245
+ err: q
87243
87246
  }, {
87244
87247
  F: __dxlog_file15,
87245
- L: 109,
87248
+ L: 108,
87246
87249
  S: this,
87247
- C: (K, Y) => K(...Y)
87248
- }), await q.setLocalDescription(G), await I.sendSignal({
87249
- payload: {
87250
- data: {
87251
- type: G.type,
87252
- sdp: G.sdp
87253
- }
87254
- }
87255
- }), G;
87256
- }).catch((G) => {
87257
- this.errors.raise(G);
87258
- }), this.handleChannel(q.createDataChannel(DATACHANNEL_LABEL)), log$2.debug("created data channel", void 0, {
87250
+ C: (G, K) => G(...K)
87251
+ });
87252
+ }
87253
+ }, this._options.initiator ? (invariant(this._peer, "not open", {
87254
+ F: __dxlog_file15,
87255
+ L: 114,
87256
+ S: this,
87257
+ A: [
87258
+ "this._peer",
87259
+ "'not open'"
87260
+ ]
87261
+ }), this._peer.createOffer().then(async (U) => {
87262
+ var q;
87263
+ this._closed || (((q = this._peer) == null ? void 0 : q.connectionState) !== "connecting" && (log$2.error("peer not connecting", {
87264
+ peer: this._peer
87265
+ }, {
87259
87266
  F: __dxlog_file15,
87260
- L: 118,
87267
+ L: 125,
87261
87268
  S: this,
87262
87269
  C: (G, K) => G(...K)
87263
- }), q.ondatachannel = (G) => {
87264
- this.errors.raise(new Error("got ondatachannel when i am the initiator?"));
87265
- }) : q.ondatachannel = (G) => {
87266
- log$2.debug("peer.ondatachannel (non-initiator)", {
87267
- event: G
87268
- }, {
87269
- F: __dxlog_file15,
87270
- L: 124,
87271
- S: this,
87272
- C: (K, Y) => K(...Y)
87273
- }), G.channel.label !== DATACHANNEL_LABEL && this.errors.raise(new Error(`unexpected channel label ${G.channel.label}`)), this.handleChannel(G.channel);
87274
- }, q;
87275
- })();
87270
+ }), this.errors.raise(new Error("invalid state: peer is initiator, but other peer not in state connecting"))), log$2.debug("creating offer", {
87271
+ peer: this._peer,
87272
+ offer: U
87273
+ }, {
87274
+ F: __dxlog_file15,
87275
+ L: 129,
87276
+ S: this,
87277
+ C: (G, K) => G(...K)
87278
+ }), await this._peer.setLocalDescription(U), await this._options.sendSignal({
87279
+ payload: {
87280
+ data: {
87281
+ type: U.type,
87282
+ sdp: U.sdp
87283
+ }
87284
+ }
87285
+ }));
87286
+ }).catch((U) => {
87287
+ this.errors.raise(U);
87288
+ }), this._handleChannel(this._peer.createDataChannel(DATACHANNEL_LABEL)), log$2.debug("created data channel", void 0, {
87289
+ F: __dxlog_file15,
87290
+ L: 139,
87291
+ S: this,
87292
+ C: (U, q) => U(...q)
87293
+ }), this._peer.ondatachannel = () => {
87294
+ this.errors.raise(new Error("unexpected ondatachannel event for initiator"));
87295
+ }) : this._peer.ondatachannel = (U) => {
87296
+ log$2.debug("peer.ondatachannel (non-initiator)", {
87297
+ event: U
87298
+ }, {
87299
+ F: __dxlog_file15,
87300
+ L: 145,
87301
+ S: this,
87302
+ C: (q, G) => q(...G)
87303
+ }), U.channel.label !== DATACHANNEL_LABEL && this.errors.raise(new Error(`unexpected channel label ${U.channel.label}`)), this._handleChannel(U.channel);
87304
+ }, or._instanceCount++;
87276
87305
  }
87277
- handleChannel(I) {
87306
+ async close() {
87307
+ await this._close(), --or._instanceCount === 0 && (await importESM("node-datachannel")).cleanup();
87308
+ }
87309
+ async _close() {
87310
+ var I;
87311
+ if (!this._closed) {
87312
+ await this._disconnectStreams();
87313
+ try {
87314
+ (I = this._peer) == null || I.close();
87315
+ } catch (U) {
87316
+ this.errors.raise(U);
87317
+ }
87318
+ this._peer = void 0, this._closed = !0, this.closed.emit();
87319
+ }
87320
+ }
87321
+ /**
87322
+ * Handle data channel events.
87323
+ */
87324
+ _handleChannel(I) {
87278
87325
  this._channel = I, this._channel.onopen = () => {
87279
- log$2.debug("dataChannel.onopen", void 0, {
87326
+ log$2.debug("channel.onopen", void 0, {
87280
87327
  F: __dxlog_file15,
87281
- L: 140,
87328
+ L: 190,
87282
87329
  S: this,
87283
87330
  C: (q, G) => q(...G)
87284
87331
  });
@@ -87292,146 +87339,131 @@ var __dxlog_file15 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-man
87292
87339
  } catch (Y) {
87293
87340
  this.errors.raise(Y), await this._close();
87294
87341
  }
87295
- this._channel.bufferedAmount > MAX_BUFFERED_AMOUNT ? (this._writeCallback !== null && log$2.error("consumer trying to write before we're ready for more data", void 0, {
87342
+ this._channel.bufferedAmount > MAX_BUFFERED_AMOUNT ? (this._writeCallback !== null && log$2.error("consumer trying to write before we are ready for more data", void 0, {
87296
87343
  F: __dxlog_file15,
87297
- L: 157,
87344
+ L: 207,
87298
87345
  S: this,
87299
87346
  C: (Y, J) => Y(...J)
87300
87347
  }), this._writeCallback = K) : K();
87301
87348
  }
87302
87349
  });
87303
- U.pipe(this.params.stream).pipe(U), this._stream = U, this._connected = !0, this.connected.emit();
87304
- }, this._channel.onerror = async (U) => {
87305
- this.errors.raise(new Error("channel error: " + U.toString())), await this._close();
87350
+ U.pipe(this._options.stream).pipe(U), this._stream = U, this._connected = !0, this.connected.emit();
87306
87351
  }, this._channel.onclose = async (U) => {
87307
- log$2.info("channel onclose", {
87352
+ log$2.info("channel.onclose", {
87308
87353
  err: U
87309
87354
  }, {
87310
87355
  F: __dxlog_file15,
87311
- L: 177,
87356
+ L: 223,
87312
87357
  S: this,
87313
87358
  C: (q, G) => q(...G)
87314
87359
  }), await this._close();
87315
- }, this._channel.onmessage = (U) => {
87316
- let q = U.data;
87317
- q instanceof ArrayBuffer && (q = export_Buffer.from(q)), this._stream.push(q);
87360
+ }, this._channel.onerror = async (U) => {
87361
+ this.errors.raise(new Error("channel error: " + U.toString())), await this._close();
87318
87362
  }, this._channel.onbufferedamountlow = () => {
87319
87363
  const U = this._writeCallback;
87320
87364
  this._writeCallback = null, U == null || U();
87365
+ }, this._channel.onmessage = (U) => {
87366
+ let q = U.data;
87367
+ q instanceof ArrayBuffer && (q = export_Buffer.from(q)), this._stream.push(q);
87321
87368
  };
87322
87369
  }
87323
- async _close() {
87324
- if (this._closed)
87325
- return;
87326
- await this._disconnectStreams();
87327
- const I = await this._peer;
87370
+ async onSignal(I) {
87371
+ invariant(this._peer, "not open", {
87372
+ F: __dxlog_file15,
87373
+ L: 249,
87374
+ S: this,
87375
+ A: [
87376
+ "this._peer",
87377
+ "'not open'"
87378
+ ]
87379
+ });
87328
87380
  try {
87329
- I.close();
87330
- } catch (U) {
87331
- this.errors.raise(U);
87332
- }
87333
- this._closed = !0, this.closed.emit();
87334
- }
87335
- signal(I) {
87336
- this._peer.then(async (U) => {
87337
- const q = I.payload.data;
87338
- switch (q.type) {
87381
+ const U = I.payload.data;
87382
+ switch (U.type) {
87339
87383
  case "offer": {
87340
- if ((await this._peer).connectionState !== "new") {
87384
+ if (this._peer.connectionState !== "new") {
87341
87385
  log$2.error("received offer but peer not in state new", {
87342
- peer: U
87386
+ peer: this._peer
87343
87387
  }, {
87344
87388
  F: __dxlog_file15,
87345
- L: 218,
87389
+ L: 256,
87346
87390
  S: this,
87347
- C: (G, K) => G(...K)
87391
+ C: (q, G) => q(...G)
87348
87392
  }), this.errors.raise(new Error("invalid signalling state: received offer when peer is not in state new"));
87349
87393
  break;
87350
87394
  }
87351
87395
  try {
87352
- await U.setRemoteDescription({
87353
- type: q.type,
87354
- sdp: q.sdp
87396
+ await this._peer.setRemoteDescription({
87397
+ type: U.type,
87398
+ sdp: U.sdp
87355
87399
  });
87356
- const G = await U.createAnswer();
87357
- await U.setLocalDescription(G), await this.params.sendSignal({
87400
+ const q = await this._peer.createAnswer();
87401
+ await this._peer.setLocalDescription(q), await this._options.sendSignal({
87358
87402
  payload: {
87359
87403
  data: {
87360
- type: G.type,
87361
- sdp: G.sdp
87404
+ type: q.type,
87405
+ sdp: q.sdp
87362
87406
  }
87363
87407
  }
87364
87408
  }), this._readyForCandidates.wake();
87365
- } catch (G) {
87366
- log$2.error("can't handle offer from signalling server", {
87367
- err: G
87409
+ } catch (q) {
87410
+ log$2.error("cannot handle offer from signalling server", {
87411
+ err: q
87368
87412
  }, {
87369
87413
  F: __dxlog_file15,
87370
- L: 229,
87414
+ L: 268,
87371
87415
  S: this,
87372
- C: (K, Y) => K(...Y)
87416
+ C: (G, K) => G(...K)
87373
87417
  }), this.errors.raise(new Error("error handling offer"));
87374
87418
  }
87375
87419
  break;
87376
87420
  }
87377
87421
  case "answer":
87378
87422
  try {
87379
- await U.setRemoteDescription({
87380
- type: q.type,
87381
- sdp: q.sdp
87423
+ await this._peer.setRemoteDescription({
87424
+ type: U.type,
87425
+ sdp: U.sdp
87382
87426
  }), this._readyForCandidates.wake();
87383
- } catch (G) {
87384
- log$2.error("can't handle answer from signalling server", {
87385
- err: G
87427
+ } catch (q) {
87428
+ log$2.error("cannot handle answer from signalling server", {
87429
+ err: q
87386
87430
  }, {
87387
87431
  F: __dxlog_file15,
87388
- L: 240,
87432
+ L: 279,
87389
87433
  S: this,
87390
- C: (K, Y) => K(...Y)
87434
+ C: (G, K) => G(...K)
87391
87435
  }), this.errors.raise(new Error("error handling answer"));
87392
87436
  }
87393
87437
  break;
87394
87438
  case "candidate":
87395
- await this._readyForCandidates.wait(), await U.addIceCandidate({
87396
- candidate: q.candidate.candidate
87439
+ await this._readyForCandidates.wait(), await this._peer.addIceCandidate({
87440
+ candidate: U.candidate.candidate
87397
87441
  });
87398
87442
  break;
87399
87443
  default:
87400
87444
  log$2.error("unhandled signal type", {
87401
- type: q.type,
87445
+ type: U.type,
87402
87446
  signal: I
87403
87447
  }, {
87404
87448
  F: __dxlog_file15,
87405
- L: 251,
87449
+ L: 290,
87406
87450
  S: this,
87407
- C: (G, K) => G(...K)
87408
- }), this.errors.raise(new Error(`unhandled signal type ${q.type}`));
87451
+ C: (q, G) => q(...G)
87452
+ }), this.errors.raise(new Error(`unhandled signal type ${U.type}`));
87409
87453
  }
87410
- }).catch((U) => {
87454
+ } catch (U) {
87411
87455
  log$2.catch(U, void 0, {
87412
87456
  F: __dxlog_file15,
87413
- L: 256,
87457
+ L: 294,
87414
87458
  S: this,
87415
87459
  C: (q, G) => q(...G)
87416
87460
  });
87417
- });
87461
+ }
87418
87462
  }
87419
87463
  async getDetails() {
87420
87464
  const I = await this._getStats(), U = I == null ? void 0 : I.remoteCandidate;
87421
87465
  return U ? U.candidateType === "relay" ? `${U.ip}:${U.port} relay for ${U.relatedAddress}:${U.relatedPort}` : `${U.ip}:${U.port} ${U.candidateType}` : "unavailable";
87422
87466
  }
87423
- async _getStats() {
87424
- return this._peer.then(async (I) => {
87425
- const U = await I.getStats(), q = Array.from(U.entries()), G = q.filter((Z) => Z[1].type === "transport")[0][1], K = q.filter((Z) => Z[0] === G.selectedCandidatePairId);
87426
- let Y, J;
87427
- return K.length > 0 && (Y = K[0][1], J = q.filter((Z) => Z[0] === Y.remoteCandidateId)[0][1]), {
87428
- transport: G,
87429
- selectedCandidatePair: Y,
87430
- remoteCandidate: J,
87431
- raw: Object.fromEntries(U)
87432
- };
87433
- });
87434
- }
87435
87467
  async getStats() {
87436
87468
  const I = await this._getStats();
87437
87469
  return I ? {
@@ -87448,12 +87480,28 @@ var __dxlog_file15 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-man
87448
87480
  rawStats: {}
87449
87481
  };
87450
87482
  }
87451
- async destroy() {
87452
- await this._close(), --or._instanceCount === 0 && (await importESM("node-datachannel")).cleanup();
87483
+ async _getStats() {
87484
+ invariant(this._peer, "not open", {
87485
+ F: __dxlog_file15,
87486
+ L: 334,
87487
+ S: this,
87488
+ A: [
87489
+ "this._peer",
87490
+ "'not open'"
87491
+ ]
87492
+ });
87493
+ const I = await this._peer.getStats(), U = Array.from(I.entries()), q = U.filter((J) => J[1].type === "transport")[0][1], G = U.filter((J) => J[0] === q.selectedCandidatePairId);
87494
+ let K, Y;
87495
+ return G.length > 0 && (K = G[0][1], Y = U.filter((J) => J[0] === K.remoteCandidateId)[0][1]), {
87496
+ transport: q,
87497
+ selectedCandidatePair: K,
87498
+ remoteCandidate: Y,
87499
+ raw: Object.fromEntries(I)
87500
+ };
87453
87501
  }
87454
87502
  async _disconnectStreams() {
87455
87503
  var I, U, q, G;
87456
- (G = (q = (U = (I = this.params.stream).unpipe) == null ? void 0 : U.call(I, this._stream)) == null ? void 0 : q.unpipe) == null || G.call(q, this.params.stream);
87504
+ (G = (q = (U = (I = this._options.stream).unpipe) == null ? void 0 : U.call(I, this._stream)) == null ? void 0 : q.unpipe) == null || G.call(q, this._options.stream);
87457
87505
  }
87458
87506
  }, or._instanceCount = 0, or);
87459
87507
  _ts_decorate5$1([
@@ -87471,7 +87519,7 @@ var importESM = Function("path", "return import(path)"), uaParser = { exports: {
87471
87519
  for (var zt = {}, de = 0; de < Ct.length; de++)
87472
87520
  zt[Ct[de].toUpperCase()] = Ct[de];
87473
87521
  return zt;
87474
- }, Le = function(Ct, zt) {
87522
+ }, Me = function(Ct, zt) {
87475
87523
  return typeof Ct === ee ? Ye(zt).indexOf(Ye(Ct)) !== -1 : !1;
87476
87524
  }, Ye = function(Ct) {
87477
87525
  return Ct.toLowerCase();
@@ -87493,9 +87541,9 @@ var importESM = Function("path", "return import(path)"), uaParser = { exports: {
87493
87541
  for (var de in zt)
87494
87542
  if (typeof zt[de] === Q && zt[de].length > 0) {
87495
87543
  for (var ie = 0; ie < zt[de].length; ie++)
87496
- if (Le(zt[de][ie], Ct))
87544
+ if (Me(zt[de][ie], Ct))
87497
87545
  return de === Y ? q : de;
87498
- } else if (Le(zt[de], Ct))
87546
+ } else if (Me(zt[de], Ct))
87499
87547
  return de === Y ? q : de;
87500
87548
  return Ct;
87501
87549
  }, it = {
@@ -88710,7 +88758,7 @@ var __dxlog_file = "/home/runner/work/dxos/dxos/packages/sdk/client/src/services
88710
88758
  return this._client.rpc;
88711
88759
  }
88712
88760
  async open() {
88713
- const { WebsocketRpcClient: $ } = await import("./index-Ba36DtoM.mjs");
88761
+ const { WebsocketRpcClient: $ } = await import("./index-DY0hiAob.mjs");
88714
88762
  this._client = new $({
88715
88763
  url: getUnixSocket(this._profile, "ws+unix"),
88716
88764
  requested: clientServiceBundle,
@@ -89591,11 +89639,8 @@ function requireUseSyncExternalStoreShim_development() {
89591
89639
  useSyncExternalStoreShim_development.useSyncExternalStore = ce, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
89592
89640
  }()), useSyncExternalStoreShim_development;
89593
89641
  }
89594
- var hasRequiredShim;
89595
- function requireShim() {
89596
- return hasRequiredShim || (hasRequiredShim = 1, process.env.NODE_ENV === "production" ? shim.exports = requireUseSyncExternalStoreShim_production_min() : shim.exports = requireUseSyncExternalStoreShim_development()), shim.exports;
89597
- }
89598
- var shimExports = requireShim(), jsxDevRuntime = { exports: {} }, reactJsxDevRuntime_production_min = {};
89642
+ process.env.NODE_ENV === "production" ? shim.exports = requireUseSyncExternalStoreShim_production_min() : shim.exports = requireUseSyncExternalStoreShim_development();
89643
+ var shimExports = shim.exports, jsxDevRuntime = { exports: {} }, reactJsxDevRuntime_production_min = {};
89599
89644
  /**
89600
89645
  * @license React
89601
89646
  * react-jsx-dev-runtime.production.min.js
@@ -89846,18 +89891,18 @@ function requireReactJsxDevRuntime_development() {
89846
89891
  if (sn && Ne && typeof sn.stack == "string") {
89847
89892
  for (var Rt = sn.stack.split(`
89848
89893
  `), Bt = Ne.stack.split(`
89849
- `), Lt = Rt.length - 1, Ot = Bt.length - 1; Lt >= 1 && Ot >= 0 && Rt[Lt] !== Bt[Ot]; )
89894
+ `), Mt = Rt.length - 1, Ot = Bt.length - 1; Mt >= 1 && Ot >= 0 && Rt[Mt] !== Bt[Ot]; )
89850
89895
  Ot--;
89851
- for (; Lt >= 1 && Ot >= 0; Lt--, Ot--)
89852
- if (Rt[Lt] !== Bt[Ot]) {
89853
- if (Lt !== 1 || Ot !== 1)
89896
+ for (; Mt >= 1 && Ot >= 0; Mt--, Ot--)
89897
+ if (Rt[Mt] !== Bt[Ot]) {
89898
+ if (Mt !== 1 || Ot !== 1)
89854
89899
  do
89855
- if (Lt--, Ot--, Ot < 0 || Rt[Lt] !== Bt[Ot]) {
89900
+ if (Mt--, Ot--, Ot < 0 || Rt[Mt] !== Bt[Ot]) {
89856
89901
  var Zt = `
89857
- ` + Rt[Lt].replace(" at new ", " at ");
89902
+ ` + Rt[Mt].replace(" at new ", " at ");
89858
89903
  return We.displayName && Zt.includes("<anonymous>") && (Zt = Zt.replace("<anonymous>", We.displayName)), typeof We == "function" && Te.set(We, Zt), Zt;
89859
89904
  }
89860
- while (Lt >= 1 && Ot >= 0);
89905
+ while (Mt >= 1 && Ot >= 0);
89861
89906
  break;
89862
89907
  }
89863
89908
  }
@@ -89867,7 +89912,7 @@ function requireReactJsxDevRuntime_development() {
89867
89912
  var Qt = We ? We.displayName || We.name : "", Yt = Qt ? Ie(Qt) : "";
89868
89913
  return typeof We == "function" && Te.set(We, Yt), Yt;
89869
89914
  }
89870
- function Le(We, vt, xt) {
89915
+ function Me(We, vt, xt) {
89871
89916
  return ye(We, !1);
89872
89917
  }
89873
89918
  function Ye(We) {
@@ -89890,7 +89935,7 @@ function requireReactJsxDevRuntime_development() {
89890
89935
  if (typeof We == "object")
89891
89936
  switch (We.$$typeof) {
89892
89937
  case Z:
89893
- return Le(We.render);
89938
+ return Me(We.render);
89894
89939
  case te:
89895
89940
  return ct(We.type, vt, xt);
89896
89941
  case ne: {
@@ -89923,8 +89968,8 @@ function requireReactJsxDevRuntime_development() {
89923
89968
  throw Bt.name = "Invariant Violation", Bt;
89924
89969
  }
89925
89970
  Rt = We[Et](vt, Et, Ne, xt, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
89926
- } catch (Lt) {
89927
- Rt = Lt;
89971
+ } catch (Mt) {
89972
+ Rt = Mt;
89928
89973
  }
89929
89974
  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));
89930
89975
  }
@@ -90041,9 +90086,9 @@ function requireReactJsxDevRuntime_development() {
90041
90086
  for (dt in vt)
90042
90087
  ut.call(vt, dt) && !ie.hasOwnProperty(dt) && (Et[dt] = vt[dt]);
90043
90088
  if (We && We.defaultProps) {
90044
- var Lt = We.defaultProps;
90045
- for (dt in Lt)
90046
- Et[dt] === void 0 && (Et[dt] = Lt[dt]);
90089
+ var Mt = We.defaultProps;
90090
+ for (dt in Mt)
90091
+ Et[dt] === void 0 && (Et[dt] = Mt[dt]);
90047
90092
  }
90048
90093
  if (Rt || Bt) {
90049
90094
  var Ot = typeof We == "function" ? We.displayName || We.name || "Unknown" : We;
@@ -90178,8 +90223,8 @@ Check the top-level render call using <` + xt + ">.");
90178
90223
  (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.");
90179
90224
  var Bt = Pn(ot);
90180
90225
  Bt ? Rt += Bt : Rt += un();
90181
- var Lt;
90182
- 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);
90226
+ var Mt;
90227
+ 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);
90183
90228
  }
90184
90229
  var Ot = At(We, vt, xt, ot, dt);
90185
90230
  if (Ot == null)
@@ -90346,7 +90391,7 @@ function requireWithSelector_production_min() {
90346
90391
  if (hasRequiredWithSelector_production_min)
90347
90392
  return withSelector_production_min;
90348
90393
  hasRequiredWithSelector_production_min = 1;
90349
- var $ = React__default, I = requireShim();
90394
+ var $ = React__default, I = shimExports;
90350
90395
  function U(Q, ee) {
90351
90396
  return Q === ee && (Q !== 0 || 1 / Q === 1 / ee) || Q !== Q && ee !== ee;
90352
90397
  }
@@ -90400,7 +90445,7 @@ var hasRequiredWithSelector_development;
90400
90445
  function requireWithSelector_development() {
90401
90446
  return hasRequiredWithSelector_development || (hasRequiredWithSelector_development = 1, process.env.NODE_ENV !== "production" && function() {
90402
90447
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
90403
- var $ = React__default, I = requireShim();
90448
+ var $ = React__default, I = shimExports;
90404
90449
  function U(ee, te) {
90405
90450
  return ee === te && (ee !== 0 || 1 / ee === 1 / te) || ee !== ee && te !== te;
90406
90451
  }
@@ -93631,7 +93676,11 @@ const identityMachine = createMachine(
93631
93676
  }
93632
93677
  }, []);
93633
93678
  return { onAgentCreate: async () => {
93634
- I.forEach((ae) => ae.cancel()), $.halo.share({ type: Invitation.Type.MULTIUSE, authMethod: Invitation.AuthMethod.NONE }).subscribe(ee);
93679
+ I.forEach((ae) => ae.cancel()), $.halo.share({
93680
+ type: Invitation.Type.INTERACTIVE,
93681
+ authMethod: Invitation.AuthMethod.NONE,
93682
+ multiUse: !0
93683
+ }).subscribe(ee);
93635
93684
  }, onAgentDestroy: async () => {
93636
93685
  const re = $.halo.identity.get();
93637
93686
  invariant(re, "Identity not found");
@@ -93650,8 +93699,8 @@ var qrcode = { exports: {} };
93650
93699
  xe = $e * 4 + 17, Ee = function(Te) {
93651
93700
  for (var be = new Array(Te), ye = 0; ye < Te; ye += 1) {
93652
93701
  be[ye] = new Array(Te);
93653
- for (var Le = 0; Le < Te; Le += 1)
93654
- be[ye][Le] = null;
93702
+ for (var Me = 0; Me < Te; Me += 1)
93703
+ be[ye][Me] = null;
93655
93704
  }
93656
93705
  return be;
93657
93706
  }(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);
@@ -93677,9 +93726,9 @@ var qrcode = { exports: {} };
93677
93726
  for (var Te = 0; Te < Ie.length; Te += 1) {
93678
93727
  var be = Ie[Re], ye = Ie[Te];
93679
93728
  if (Ee[be][ye] == null)
93680
- for (var Le = -2; Le <= 2; Le += 1)
93729
+ for (var Me = -2; Me <= 2; Me += 1)
93681
93730
  for (var Ye = -2; Ye <= 2; Ye += 1)
93682
- Le == -2 || Le == 2 || Ye == -2 || Ye == 2 || Le == 0 && Ye == 0 ? Ee[be + Le][ye + Ye] = !0 : Ee[be + Le][ye + Ye] = !1;
93731
+ Me == -2 || Me == 2 || Ye == -2 || Ye == 2 || Me == 0 && Ye == 0 ? Ee[be + Me][ye + Ye] = !0 : Ee[be + Me][ye + Ye] = !1;
93683
93732
  }
93684
93733
  }, tt = function(Ie) {
93685
93734
  for (var Re = J.getBCHTypeNumber($e), Te = 0; Te < 18; Te += 1) {
@@ -93692,23 +93741,23 @@ var qrcode = { exports: {} };
93692
93741
  }
93693
93742
  }, ze = function(Ie, Re) {
93694
93743
  for (var Te = Ce << 3 | Re, be = J.getBCHTypeInfo(Te), ye = 0; ye < 15; ye += 1) {
93695
- var Le = !Ie && (be >> ye & 1) == 1;
93696
- ye < 6 ? Ee[ye][8] = Le : ye < 8 ? Ee[ye + 1][8] = Le : Ee[xe - 15 + ye][8] = Le;
93744
+ var Me = !Ie && (be >> ye & 1) == 1;
93745
+ ye < 6 ? Ee[ye][8] = Me : ye < 8 ? Ee[ye + 1][8] = Me : Ee[xe - 15 + ye][8] = Me;
93697
93746
  }
93698
93747
  for (var ye = 0; ye < 15; ye += 1) {
93699
- var Le = !Ie && (be >> ye & 1) == 1;
93700
- ye < 8 ? Ee[8][xe - ye - 1] = Le : ye < 9 ? Ee[8][15 - ye - 1 + 1] = Le : Ee[8][15 - ye - 1] = Le;
93748
+ var Me = !Ie && (be >> ye & 1) == 1;
93749
+ ye < 8 ? Ee[8][xe - ye - 1] = Me : ye < 9 ? Ee[8][15 - ye - 1 + 1] = Me : Ee[8][15 - ye - 1] = Me;
93701
93750
  }
93702
93751
  Ee[xe - 8][8] = !Ie;
93703
93752
  }, qe = function(Ie, Re) {
93704
- for (var Te = -1, be = xe - 1, ye = 7, Le = 0, Ye = J.getMaskFunction(Re), ct = xe - 1; ct > 0; ct -= 2)
93753
+ for (var Te = -1, be = xe - 1, ye = 7, Me = 0, Ye = J.getMaskFunction(Re), ct = xe - 1; ct > 0; ct -= 2)
93705
93754
  for (ct == 6 && (ct -= 1); ; ) {
93706
93755
  for (var ut = 0; ut < 2; ut += 1)
93707
93756
  if (Ee[be][ct - ut] == null) {
93708
93757
  var wt = !1;
93709
- Le < Ie.length && (wt = (Ie[Le] >>> ye & 1) == 1);
93758
+ Me < Ie.length && (wt = (Ie[Me] >>> ye & 1) == 1);
93710
93759
  var St = Ye(be, ct - ut);
93711
- St && (wt = !wt), Ee[be][ct - ut] = wt, ye -= 1, ye == -1 && (Le += 1, ye = 7);
93760
+ St && (wt = !wt), Ee[be][ct - ut] = wt, ye -= 1, ye == -1 && (Me += 1, ye = 7);
93712
93761
  }
93713
93762
  if (be += Te, be < 0 || xe <= be) {
93714
93763
  be -= Te, Te = -Te;
@@ -93716,13 +93765,13 @@ var qrcode = { exports: {} };
93716
93765
  }
93717
93766
  }
93718
93767
  }, nt = function(Ie, Re) {
93719
- 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) {
93768
+ 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) {
93720
93769
  var ut = Re[ct].dataCount, wt = Re[ct].totalCount - ut;
93721
- be = Math.max(be, ut), ye = Math.max(ye, wt), Le[ct] = new Array(ut);
93722
- for (var St = 0; St < Le[ct].length; St += 1)
93723
- Le[ct][St] = 255 & Ie.getBuffer()[St + Te];
93770
+ be = Math.max(be, ut), ye = Math.max(ye, wt), Me[ct] = new Array(ut);
93771
+ for (var St = 0; St < Me[ct].length; St += 1)
93772
+ Me[ct][St] = 255 & Ie.getBuffer()[St + Te];
93724
93773
  Te += ut;
93725
- var it = J.getErrorCorrectPolynomial(wt), Ut = Q(Le[ct], it.getLength() - 1), Kt = Ut.mod(it);
93774
+ var it = J.getErrorCorrectPolynomial(wt), Ut = Q(Me[ct], it.getLength() - 1), Kt = Ut.mod(it);
93726
93775
  Ye[ct] = new Array(it.getLength() - 1);
93727
93776
  for (var St = 0; St < Ye[ct].length; St += 1) {
93728
93777
  var It = St + Kt.getLength() - Ye[ct].length;
@@ -93733,18 +93782,18 @@ var qrcode = { exports: {} };
93733
93782
  Ht += Re[St].totalCount;
93734
93783
  for (var rn = new Array(Ht), Ct = 0, St = 0; St < be; St += 1)
93735
93784
  for (var ct = 0; ct < Re.length; ct += 1)
93736
- St < Le[ct].length && (rn[Ct] = Le[ct][St], Ct += 1);
93785
+ St < Me[ct].length && (rn[Ct] = Me[ct][St], Ct += 1);
93737
93786
  for (var St = 0; St < ye; St += 1)
93738
93787
  for (var ct = 0; ct < Re.length; ct += 1)
93739
93788
  St < Ye[ct].length && (rn[Ct] = Ye[ct][St], Ct += 1);
93740
93789
  return rn;
93741
93790
  }, mt = function(Ie, Re, Te) {
93742
- for (var be = ee.getRSBlocks(Ie, Re), ye = te(), Le = 0; Le < Te.length; Le += 1) {
93743
- var Ye = Te[Le];
93791
+ for (var be = ee.getRSBlocks(Ie, Re), ye = te(), Me = 0; Me < Te.length; Me += 1) {
93792
+ var Ye = Te[Me];
93744
93793
  ye.put(Ye.getMode(), 4), ye.put(Ye.getLength(), J.getLengthInBits(Ye.getMode(), Ie)), Ye.write(ye);
93745
93794
  }
93746
- for (var ct = 0, Le = 0; Le < be.length; Le += 1)
93747
- ct += be[Le].dataCount;
93795
+ for (var ct = 0, Me = 0; Me < be.length; Me += 1)
93796
+ ct += be[Me].dataCount;
93748
93797
  if (ye.getLengthInBits() > ct * 8)
93749
93798
  throw "code length overflow. (" + ye.getLengthInBits() + ">" + ct * 8 + ")";
93750
93799
  for (ye.getLengthInBits() + 4 <= ct * 8 && ye.put(0, 4); ye.getLengthInBits() % 8 != 0; )
@@ -93786,9 +93835,9 @@ var qrcode = { exports: {} };
93786
93835
  var ye = je[be];
93787
93836
  Te.put(ye.getMode(), 4), Te.put(ye.getLength(), J.getLengthInBits(ye.getMode(), Ie)), ye.write(Te);
93788
93837
  }
93789
- for (var Le = 0, be = 0; be < Re.length; be++)
93790
- Le += Re[be].dataCount;
93791
- if (Te.getLengthInBits() <= Le * 8)
93838
+ for (var Me = 0, be = 0; be < Re.length; be++)
93839
+ Me += Re[be].dataCount;
93840
+ if (Te.getLengthInBits() <= Me * 8)
93792
93841
  break;
93793
93842
  }
93794
93843
  $e = Ie;
@@ -93808,17 +93857,17 @@ var qrcode = { exports: {} };
93808
93857
  }, Ge.createSvgTag = function(Ie, Re, Te, be) {
93809
93858
  var ye = {};
93810
93859
  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;
93811
- var Le = Ge.getModuleCount() * Ie + Re * 2, Ye, ct, ut, wt, St = "", it;
93812
- 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)
93860
+ var Me = Ge.getModuleCount() * Ie + Re * 2, Ye, ct, ut, wt, St = "", it;
93861
+ 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)
93813
93862
  for (wt = ut * Ie + Re, Ye = 0; Ye < Ge.getModuleCount(); Ye += 1)
93814
93863
  Ge.isDark(ut, Ye) && (ct = Ye * Ie + Re, St += "M" + ct + "," + wt + it);
93815
93864
  return St += '" stroke="transparent" fill="black"/>', St += "</svg>", St;
93816
93865
  }, Ge.createDataURL = function(Ie, Re) {
93817
93866
  Ie = Ie || 2, Re = typeof Re > "u" ? Ie * 4 : Re;
93818
93867
  var Te = Ge.getModuleCount() * Ie + Re * 2, be = Re, ye = Te - Re;
93819
- return he(Te, Te, function(Le, Ye) {
93820
- if (be <= Le && Le < ye && be <= Ye && Ye < ye) {
93821
- var ct = Math.floor((Le - be) / Ie), ut = Math.floor((Ye - be) / Ie);
93868
+ return he(Te, Te, function(Me, Ye) {
93869
+ if (be <= Me && Me < ye && be <= Ye && Ye < ye) {
93870
+ var ct = Math.floor((Me - be) / Ie), ut = Math.floor((Ye - be) / Ie);
93822
93871
  return Ge.isDark(ut, ct) ? 0 : 1;
93823
93872
  } else
93824
93873
  return 1;
@@ -93853,7 +93902,7 @@ var qrcode = { exports: {} };
93853
93902
  }, He = function(Ie) {
93854
93903
  var Re = 1;
93855
93904
  Ie = typeof Ie > "u" ? Re * 2 : Ie;
93856
- var Te = Ge.getModuleCount() * Re + Ie * 2, be = Ie, ye = Te - Ie, Le, Ye, ct, ut, wt, St = {
93905
+ var Te = Ge.getModuleCount() * Re + Ie * 2, be = Ie, ye = Te - Ie, Me, Ye, ct, ut, wt, St = {
93857
93906
  "██": "█",
93858
93907
  "█ ": "▀",
93859
93908
  " █": "▄",
@@ -93864,9 +93913,9 @@ var qrcode = { exports: {} };
93864
93913
  " █": " ",
93865
93914
  " ": " "
93866
93915
  }, Ut = "";
93867
- for (Le = 0; Le < Te; Le += 2) {
93868
- for (ct = Math.floor((Le - be) / Re), ut = Math.floor((Le + 1 - be) / Re), Ye = 0; Ye < Te; Ye += 1)
93869
- 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];
93916
+ for (Me = 0; Me < Te; Me += 2) {
93917
+ for (ct = Math.floor((Me - be) / Re), ut = Math.floor((Me + 1 - be) / Re), Ye = 0; Ye < Te; Ye += 1)
93918
+ 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];
93870
93919
  Ut += `
93871
93920
  `;
93872
93921
  }
@@ -93876,10 +93925,10 @@ var qrcode = { exports: {} };
93876
93925
  if (Ie = Ie || 1, Ie < 2)
93877
93926
  return He(Re);
93878
93927
  Ie -= 1, Re = typeof Re > "u" ? Ie * 2 : Re;
93879
- 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 = "";
93880
- for (Le = 0; Le < Te; Le += 1) {
93881
- for (ct = Math.floor((Le - be) / Ie), Ut = "", Ye = 0; Ye < Te; Ye += 1)
93882
- ut = 1, be <= Ye && Ye < ye && be <= Le && Le < ye && Ge.isDark(ct, Math.floor((Ye - be) / Ie)) && (ut = 0), Ut += ut ? wt : St;
93928
+ 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 = "";
93929
+ for (Me = 0; Me < Te; Me += 1) {
93930
+ for (ct = Math.floor((Me - be) / Ie), Ut = "", Ye = 0; Ye < Te; Ye += 1)
93931
+ ut = 1, be <= Ye && Ye < ye && be <= Me && Me < ye && Ge.isDark(ct, Math.floor((Ye - be) / Ie)) && (ut = 0), Ut += ut ? wt : St;
93883
93932
  for (ct = 0; ct < Ie; ct += 1)
93884
93933
  it += Ut + `
93885
93934
  `;
@@ -94821,11 +94870,11 @@ const invitationStatusValue = /* @__PURE__ */ new Map([
94821
94870
  active: I,
94822
94871
  send: U,
94823
94872
  status: q,
94824
- type: G,
94873
+ multiUse: G,
94825
94874
  authCode: K,
94826
94875
  id: Y = "0"
94827
94876
  }) => {
94828
- const { t: J } = useTranslation("os"), Z = useId("invitation-manager__qr-code"), Q = G === Invitation.Type.MULTIUSE ? 0 : invitationStatusValue.get(q) ?? 0, ee = Q === 3, te = hexToEmoji(Y), ne = useMemo(() => {
94877
+ const { t: J } = useTranslation("os"), Z = useId("invitation-manager__qr-code"), Q = G ? 0 : invitationStatusValue.get(q) ?? 0, ee = Q === 3, te = hexToEmoji(Y), ne = useMemo(() => {
94829
94878
  switch (!0) {
94830
94879
  case Q === 5:
94831
94880
  case Q < 0:
@@ -94836,7 +94885,7 @@ const invitationStatusValue = /* @__PURE__ */ new Map([
94836
94885
  return "showing qr";
94837
94886
  }
94838
94887
  }, [Q]);
94839
- return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(Viewport.Root, { activeView: ne, classNames: "grow plb-1" }, /* @__PURE__ */ React__default.createElement(Viewport.Views, null, /* @__PURE__ */ React__default.createElement(InvitationManagerView, { id: "showing qr", emoji: te }, /* @__PURE__ */ React__default.createElement("p", { className: "text-sm mlb-1 font-normal text-center" }, J(G === Invitation.Type.MULTIUSE ? "invite many qr label" : "invite one qr label")), /* @__PURE__ */ React__default.createElement("div", { role: "none", className: mx(descriptionText, "is-full max-is-[14rem] relative") }, /* @__PURE__ */ React__default.createElement(
94888
+ return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(Viewport.Root, { activeView: ne, classNames: "grow plb-1" }, /* @__PURE__ */ React__default.createElement(Viewport.Views, null, /* @__PURE__ */ React__default.createElement(InvitationManagerView, { id: "showing qr", emoji: te }, /* @__PURE__ */ React__default.createElement("p", { className: "text-sm mlb-1 font-normal text-center" }, J(G ? "invite many qr label" : "invite one qr label")), /* @__PURE__ */ React__default.createElement("div", { role: "none", className: mx(descriptionText, "is-full max-is-[14rem] relative") }, /* @__PURE__ */ React__default.createElement(
94840
94889
  QR,
94841
94890
  {
94842
94891
  rounding: 100,
@@ -96096,6 +96145,7 @@ const invitationStatusValue = /* @__PURE__ */ new Map([
96096
96145
  const Z = (Q = I.share) == null ? void 0 : Q.call(I, {
96097
96146
  type: Invitation.Type.INTERACTIVE,
96098
96147
  authMethod: Invitation.AuthMethod.SHARED_SECRET,
96148
+ multiUse: !1,
96099
96149
  target: U
96100
96150
  });
96101
96151
  Z && ((ne = (te = (ee = G.values.runtime) == null ? void 0 : ee.app) == null ? void 0 : te.env) == null ? void 0 : ne.DX_ENVIRONMENT) !== "production" && Z.subscribe(Y);
@@ -96108,8 +96158,9 @@ const invitationStatusValue = /* @__PURE__ */ new Map([
96108
96158
  onClick: useCallback(() => {
96109
96159
  var Q, ee, te, ne;
96110
96160
  const Z = (Q = I.share) == null ? void 0 : Q.call(I, {
96111
- type: Invitation.Type.MULTIUSE,
96161
+ type: Invitation.Type.INTERACTIVE,
96112
96162
  authMethod: Invitation.AuthMethod.NONE,
96163
+ multiUse: !0,
96113
96164
  target: U
96114
96165
  });
96115
96166
  Z && ((ne = (te = (ee = G.values.runtime) == null ? void 0 : ee.app) == null ? void 0 : te.env) == null ? void 0 : ne.DX_ENVIRONMENT) !== "production" && Z.subscribe(Y);
@@ -96550,4 +96601,4 @@ export {
96550
96601
  log$2 as l,
96551
96602
  runShell as r
96552
96603
  };
96553
- //# sourceMappingURL=index-CnChDHv2.mjs.map
96604
+ //# sourceMappingURL=index-_bedgWKd.mjs.map