@txnlab/use-wallet-ui-react 1.2.1 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -14,7 +14,7 @@ var Dr = (e, t, r, n) => ({
14
14
  import { jsx as $, Fragment as et, jsxs as re } from "react/jsx-runtime";
15
15
  import * as q from "react";
16
16
  import K, { useState as ie, useEffect as pe, useContext as me, createContext as Oe, useMemo as he, useCallback as ne, useRef as ee, useLayoutEffect as Hs, forwardRef as Ia, isValidElement as ro, cloneElement as Us, createElement as Na, Fragment as Rr, useId as Gt, useSyncExternalStore as $a } from "react";
17
- import { F as no, u as Ws, a as zs, b as Gs, c as Ma, d as qs, e as An, f as Da, g as La, h as Vs, i as ja, j as pr, k as Ba, o as oo, l as un, m as dn, n as Ha, r as Ua, s as Qs, p as _s, q as Wa, t as Ks } from "./chunks/floating-ui.react-Co7v2aHO.js";
17
+ import { F as no, u as Ws, a as zs, b as Gs, c as Ma, d as qs, e as An, f as Da, g as La, h as Vs, i as ja, j as pr, k as Ba, o as oo, l as un, m as dn, n as Ha, r as Ua, s as Qs, p as _s, q as Wa, t as Ks } from "./chunks/floating-ui.react-CxJSDrxv.js";
18
18
  import { useWallet as Ot, useNetwork as Ys } from "@txnlab/use-wallet-react";
19
19
  import * as Tn from "react-dom";
20
20
  import { flushSync as Kr, createPortal as Xs } from "react-dom";
@@ -232,16 +232,16 @@ const Va = (e, t) => {
232
232
  P === "[" ? i++ : P === "]" ? i-- : P === "(" ? l++ : P === ")" && l--;
233
233
  }
234
234
  const g = s.length === 0 ? o : o.slice(c);
235
- let x = g, h = !1;
236
- g.endsWith(Pn) ? (x = g.slice(0, -1), h = !0) : (
235
+ let w = g, h = !1;
236
+ g.endsWith(Pn) ? (w = g.slice(0, -1), h = !0) : (
237
237
  /**
238
238
  * In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
239
239
  * @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
240
240
  */
241
- g.startsWith(Pn) && (x = g.slice(1), h = !0)
241
+ g.startsWith(Pn) && (w = g.slice(1), h = !0)
242
242
  );
243
243
  const O = d && d > c ? d - c : void 0;
244
- return Io(s, h, x, O);
244
+ return Io(s, h, w, O);
245
245
  };
246
246
  if (t) {
247
247
  const o = t + Ro, s = n;
@@ -291,13 +291,13 @@ const Va = (e, t) => {
291
291
  let d = "";
292
292
  for (let m = c.length - 1; m >= 0; m -= 1) {
293
293
  const g = c[m], {
294
- isExternal: x,
294
+ isExternal: w,
295
295
  modifiers: h,
296
296
  hasImportantModifier: O,
297
297
  baseClassName: k,
298
298
  maybePostfixModifierPosition: P
299
299
  } = r(g);
300
- if (x) {
300
+ if (w) {
301
301
  d = g + (d.length > 0 ? " " + d : d);
302
302
  continue;
303
303
  }
@@ -372,7 +372,7 @@ const Va = (e, t) => {
372
372
  const n = oi.exec(e);
373
373
  return n ? n[1] ? t(n[1]) : r : !1;
374
374
  }, ii = (e) => e === "position" || e === "percentage", ai = (e) => e === "image" || e === "url", li = (e) => e === "length" || e === "size" || e === "bg-size", ci = (e) => e === "length", $l = (e) => e === "number", ui = (e) => e === "family-name", di = (e) => e === "number" || e === "weight", fi = (e) => e === "shadow", Ml = () => {
375
- const e = ve("color"), t = ve("font"), r = ve("text"), n = ve("font-weight"), o = ve("tracking"), s = ve("leading"), i = ve("breakpoint"), l = ve("container"), c = ve("spacing"), d = ve("radius"), m = ve("shadow"), g = ve("inset-shadow"), x = ve("text-shadow"), h = ve("drop-shadow"), O = ve("blur"), k = ve("perspective"), P = ve("aspect"), I = ve("ease"), E = ve("animate"), N = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], M = () => [
375
+ const e = ve("color"), t = ve("font"), r = ve("text"), n = ve("font-weight"), o = ve("tracking"), s = ve("leading"), i = ve("breakpoint"), l = ve("container"), c = ve("spacing"), d = ve("radius"), m = ve("shadow"), g = ve("inset-shadow"), w = ve("text-shadow"), h = ve("drop-shadow"), O = ve("blur"), k = ve("perspective"), P = ve("aspect"), I = ve("ease"), E = ve("animate"), N = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], M = () => [
376
376
  "center",
377
377
  "top",
378
378
  "bottom",
@@ -390,7 +390,7 @@ const Va = (e, t) => {
390
390
  "bottom-left",
391
391
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
392
392
  "left-bottom"
393
- ], j = () => [...M(), z, W], H = () => ["auto", "hidden", "clip", "visible", "scroll"], V = () => ["auto", "contain", "none"], a = () => [z, W, c], u = () => [dt, "full", "auto", ...a()], f = () => [_e, "none", "subgrid", z, W], w = () => ["auto", {
393
+ ], j = () => [...M(), z, W], H = () => ["auto", "hidden", "clip", "visible", "scroll"], V = () => ["auto", "contain", "none"], a = () => [z, W, c], u = () => [dt, "full", "auto", ...a()], f = () => [_e, "none", "subgrid", z, W], x = () => ["auto", {
394
394
  span: ["full", _e, z, W]
395
395
  }, _e, z, W], b = () => [_e, "auto", z, W], S = () => ["auto", "min", "max", "fr", z, W], C = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], p = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], y = () => ["auto", ...a()], T = () => [dt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...a()], A = () => [dt, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...a()], F = () => [dt, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...a()], R = () => [e, z, W], U = () => [...M(), Mo, $o, {
396
396
  position: [z, W]
@@ -763,7 +763,7 @@ const Va = (e, t) => {
763
763
  * @see https://tailwindcss.com/docs/grid-column
764
764
  */
765
765
  "col-start-end": [{
766
- col: w()
766
+ col: x()
767
767
  }],
768
768
  /**
769
769
  * Grid Column Start
@@ -791,7 +791,7 @@ const Va = (e, t) => {
791
791
  * @see https://tailwindcss.com/docs/grid-row
792
792
  */
793
793
  "row-start-end": [{
794
- row: w()
794
+ row: x()
795
795
  }],
796
796
  /**
797
797
  * Grid Row Start
@@ -1996,7 +1996,7 @@ const Va = (e, t) => {
1996
1996
  * @see https://tailwindcss.com/docs/text-shadow
1997
1997
  */
1998
1998
  "text-shadow": [{
1999
- "text-shadow": ["none", x, jr, Lr]
1999
+ "text-shadow": ["none", w, jr, Lr]
2000
2000
  }],
2001
2001
  /**
2002
2002
  * Text Shadow Color
@@ -3260,17 +3260,17 @@ function Rn(e, t, r = 0) {
3260
3260
  const s = (n ? e : Object.keys(e)).length, i = n ? t : Object.keys(t), l = i.length, c = n ? new Array(l) : {};
3261
3261
  let d = 0;
3262
3262
  for (let m = 0; m < l; m++) {
3263
- const g = n ? m : i[m], x = e[g], h = t[g];
3264
- if (x === h) {
3265
- c[g] = x, (n ? m < s : Gl.call(e, g)) && d++;
3263
+ const g = n ? m : i[m], w = e[g], h = t[g];
3264
+ if (w === h) {
3265
+ c[g] = w, (n ? m < s : Gl.call(e, g)) && d++;
3266
3266
  continue;
3267
3267
  }
3268
- if (x === null || h === null || typeof x != "object" || typeof h != "object") {
3268
+ if (w === null || h === null || typeof w != "object" || typeof h != "object") {
3269
3269
  c[g] = h;
3270
3270
  continue;
3271
3271
  }
3272
- const O = Rn(x, h, r + 1);
3273
- c[g] = O, O === x && d++;
3272
+ const O = Rn(w, h, r + 1);
3273
+ c[g] = O, O === w && d++;
3274
3274
  }
3275
3275
  return s === l && d === s ? e : c;
3276
3276
  }
@@ -3493,7 +3493,7 @@ function vi(e) {
3493
3493
  var P;
3494
3494
  if (!s()) {
3495
3495
  const I = new Dn(k);
3496
- x(I), (P = e.onCancel) == null || P.call(e, I);
3496
+ w(I), (P = e.onCancel) == null || P.call(e, I);
3497
3497
  }
3498
3498
  }, l = () => {
3499
3499
  t = !0;
@@ -3501,7 +3501,7 @@ function vi(e) {
3501
3501
  t = !1;
3502
3502
  }, d = () => lo.isFocused() && (e.networkMode === "always" || Jr.isOnline()) && e.canRun(), m = () => gi(e.networkMode) && e.canRun(), g = (k) => {
3503
3503
  s() || (n == null || n(), o.resolve(k));
3504
- }, x = (k) => {
3504
+ }, w = (k) => {
3505
3505
  s() || (n == null || n(), o.reject(k));
3506
3506
  }, h = () => new Promise((k) => {
3507
3507
  var P;
@@ -3527,11 +3527,11 @@ function vi(e) {
3527
3527
  return;
3528
3528
  const E = e.retry ?? (Sr.isServer() ? 0 : 3), N = e.retryDelay ?? Jl, M = typeof N == "function" ? N(r, I) : N, j = E === !0 || typeof E == "number" && r < E || typeof E == "function" && E(r, I);
3529
3529
  if (t || !j) {
3530
- x(I);
3530
+ w(I);
3531
3531
  return;
3532
3532
  }
3533
3533
  r++, (H = e.onFail) == null || H.call(e, r, I), ql(M).then(() => d() ? void 0 : h()).then(() => {
3534
- t ? x(I) : O();
3534
+ t ? w(I) : O();
3535
3535
  });
3536
3536
  });
3537
3537
  };
@@ -3571,8 +3571,8 @@ var Mt, Ns, bi = (Ns = class {
3571
3571
  function Zl(e) {
3572
3572
  return {
3573
3573
  onFetch: (t, r) => {
3574
- var m, g, x, h, O;
3575
- const n = t.options, o = (x = (g = (m = t.fetchOptions) == null ? void 0 : m.meta) == null ? void 0 : g.fetchMore) == null ? void 0 : x.direction, s = ((h = t.state.data) == null ? void 0 : h.pages) || [], i = ((O = t.state.data) == null ? void 0 : O.pageParams) || [];
3574
+ var m, g, w, h, O;
3575
+ const n = t.options, o = (w = (g = (m = t.fetchOptions) == null ? void 0 : m.meta) == null ? void 0 : g.fetchMore) == null ? void 0 : w.direction, s = ((h = t.state.data) == null ? void 0 : h.pages) || [], i = ((O = t.state.data) == null ? void 0 : O.pageParams) || [];
3576
3576
  let l = { pages: [], pageParams: [] }, c = 0;
3577
3577
  const d = async () => {
3578
3578
  let k = !1;
@@ -3588,14 +3588,14 @@ function Zl(e) {
3588
3588
  if (M == null && N.pages.length)
3589
3589
  return Promise.resolve(N);
3590
3590
  const V = (() => {
3591
- const w = {
3591
+ const x = {
3592
3592
  client: t.client,
3593
3593
  queryKey: t.queryKey,
3594
3594
  pageParam: M,
3595
3595
  direction: j ? "backward" : "forward",
3596
3596
  meta: t.options.meta
3597
3597
  };
3598
- return P(w), w;
3598
+ return P(x), x;
3599
3599
  })(), a = await I(V), { maxPages: u } = t.options, f = j ? Ql : Vl;
3600
3600
  return {
3601
3601
  pages: f(N.pages, a, u),
@@ -3757,7 +3757,7 @@ var Jt, Dt, Zt, He, Lt, be, Cr, jt, Ne, yi, it, $s, tc = ($s = class extends bi
3757
3757
  this.state.isInvalidated || J(this, Ne, it).call(this, { type: "invalidate" });
3758
3758
  }
3759
3759
  async fetch(t, r) {
3760
- var d, m, g, x, h, O, k, P, I, E, N;
3760
+ var d, m, g, w, h, O, k, P, I, E, N;
3761
3761
  if (this.state.fetchStatus !== "idle" && // If the promise in the retryer is already rejected, we have to definitely
3762
3762
  // re-start the fetch; there is a chance that the query is still in a
3763
3763
  // pending state when that happens
@@ -3835,7 +3835,7 @@ var Jt, Dt, Zt, He, Lt, be, Cr, jt, Ne, yi, it, $s, tc = ($s = class extends bi
3835
3835
  throw process.env.NODE_ENV !== "production" && console.error(
3836
3836
  `Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`
3837
3837
  ), new Error(`${this.queryHash} data is undefined`);
3838
- return this.setData(M), (h = (x = v(this, He).config).onSuccess) == null || h.call(x, M, this), (k = (O = v(this, He).config).onSettled) == null || k.call(
3838
+ return this.setData(M), (h = (w = v(this, He).config).onSuccess) == null || h.call(w, M, this), (k = (O = v(this, He).config).onSettled) == null || k.call(
3839
3839
  O,
3840
3840
  M,
3841
3841
  this.state.error,
@@ -4087,10 +4087,10 @@ var Pe, Z, Ar, Ce, Bt, er, at, gt, Tr, tr, rr, Ht, Ut, vt, nr, oe, mr, Ln, jn, B
4087
4087
  createResult(t, r) {
4088
4088
  var u;
4089
4089
  const n = v(this, Z), o = this.options, s = v(this, Ce), i = v(this, Bt), l = v(this, er), d = t !== n ? t.state : v(this, Ar), { state: m } = t;
4090
- let g = { ...m }, x = !1, h;
4090
+ let g = { ...m }, w = !1, h;
4091
4091
  if (r._optimisticResults) {
4092
- const f = this.hasListeners(), w = !f && zo(t, r), b = f && Go(t, n, r, o);
4093
- (w || b) && (g = {
4092
+ const f = this.hasListeners(), x = !f && zo(t, r), b = f && Go(t, n, r, o);
4093
+ (x || b) && (g = {
4094
4094
  ...g,
4095
4095
  ...wi(m.data, t.options)
4096
4096
  }), r._optimisticResults === "isRestoring" && (g.fetchStatus = "idle");
@@ -4107,7 +4107,7 @@ var Pe, Z, Ar, Ce, Bt, er, at, gt, Tr, tr, rr, Ht, Ut, vt, nr, oe, mr, Ln, jn, B
4107
4107
  s == null ? void 0 : s.data,
4108
4108
  f,
4109
4109
  r
4110
- ), x = !0);
4110
+ ), w = !0);
4111
4111
  }
4112
4112
  if (r.select && h !== void 0 && !I)
4113
4113
  if (s && h === (i == null ? void 0 : i.data) && r.select === v(this, Tr))
@@ -4140,7 +4140,7 @@ var Pe, Z, Ar, Ce, Bt, er, at, gt, Tr, tr, rr, Ht, Ut, vt, nr, oe, mr, Ln, jn, B
4140
4140
  isRefetching: E && !N,
4141
4141
  isLoadingError: M && !H,
4142
4142
  isPaused: g.fetchStatus === "paused",
4143
- isPlaceholderData: x,
4143
+ isPlaceholderData: w,
4144
4144
  isRefetchError: M && H,
4145
4145
  isStale: uo(t, r),
4146
4146
  refetch: this.refetch,
@@ -4148,8 +4148,8 @@ var Pe, Z, Ar, Ce, Bt, er, at, gt, Tr, tr, rr, Ht, Ut, vt, nr, oe, mr, Ln, jn, B
4148
4148
  isEnabled: $e(r.enabled, t) !== !1
4149
4149
  };
4150
4150
  if (this.options.experimental_prefetchInRender) {
4151
- const f = a.data !== void 0, w = a.status === "error" && !f, b = (p) => {
4152
- w ? p.reject(a.error) : f && p.resolve(a.data);
4151
+ const f = a.data !== void 0, x = a.status === "error" && !f, b = (p) => {
4152
+ x ? p.reject(a.error) : f && p.resolve(a.data);
4153
4153
  }, S = () => {
4154
4154
  const p = B(this, at, a.promise = Mn());
4155
4155
  b(p);
@@ -4159,10 +4159,10 @@ var Pe, Z, Ar, Ce, Bt, er, at, gt, Tr, tr, rr, Ht, Ut, vt, nr, oe, mr, Ln, jn, B
4159
4159
  t.queryHash === n.queryHash && b(C);
4160
4160
  break;
4161
4161
  case "fulfilled":
4162
- (w || a.data !== C.value) && S();
4162
+ (x || a.data !== C.value) && S();
4163
4163
  break;
4164
4164
  case "rejected":
4165
- (!w || a.error !== C.reason) && S();
4165
+ (!x || a.error !== C.reason) && S();
4166
4166
  break;
4167
4167
  }
4168
4168
  }
@@ -4300,7 +4300,7 @@ var Pr, Xe, Ee, Wt, Je, ht, Ds, sc = (Ds = class extends bi {
4300
4300
  this.execute(this.state.variables);
4301
4301
  }
4302
4302
  async execute(t) {
4303
- var i, l, c, d, m, g, x, h, O, k, P, I, E, N, M, j, H, V;
4303
+ var i, l, c, d, m, g, w, h, O, k, P, I, E, N, M, j, H, V;
4304
4304
  const r = () => {
4305
4305
  J(this, Je, ht).call(this, { type: "continue" });
4306
4306
  }, n = {
@@ -4358,8 +4358,8 @@ var Pr, Xe, Ee, Wt, Je, ht, Ds, sc = (Ds = class extends bi {
4358
4358
  t,
4359
4359
  this.state.context,
4360
4360
  n
4361
- )), await ((h = (x = v(this, Ee).config).onSettled) == null ? void 0 : h.call(
4362
- x,
4361
+ )), await ((h = (w = v(this, Ee).config).onSettled) == null ? void 0 : h.call(
4362
+ w,
4363
4363
  a,
4364
4364
  null,
4365
4365
  this.state.variables,
@@ -4932,14 +4932,14 @@ var hc = q.createContext(fc()), pc = () => q.useContext(hc), mc = (e, t, r) => {
4932
4932
  r.clearReset();
4933
4933
  });
4934
4934
  function xc(e, t, r) {
4935
- var x, h, O, k;
4935
+ var w, h, O, k;
4936
4936
  if (process.env.NODE_ENV !== "production" && (typeof e != "object" || Array.isArray(e)))
4937
4937
  throw new Error(
4938
4938
  'Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object'
4939
4939
  );
4940
4940
  const n = dc(), o = pc(), s = Si(), i = s.defaultQueryOptions(e);
4941
- (h = (x = s.getDefaultOptions().queries) == null ? void 0 : x._experimental_beforeQuery) == null || h.call(
4942
- x,
4941
+ (h = (w = s.getDefaultOptions().queries) == null ? void 0 : w._experimental_beforeQuery) == null || h.call(
4942
+ w,
4943
4943
  i
4944
4944
  );
4945
4945
  const l = s.getQueryCache().get(i.queryHash);
@@ -5119,7 +5119,7 @@ function Tc({
5119
5119
  closeDialog: l
5120
5120
  }),
5121
5121
  [t, i, l]
5122
- ), x = he(
5122
+ ), w = he(
5123
5123
  () => ({
5124
5124
  menuItemsBySlot: c,
5125
5125
  dialogs: d,
@@ -5141,7 +5141,7 @@ function Tc({
5141
5141
  g
5142
5142
  ]
5143
5143
  );
5144
- return /* @__PURE__ */ $(Oi.Provider, { value: x, children: /* @__PURE__ */ $(Cc, { plugins: n, ctx: g, children: r }) });
5144
+ return /* @__PURE__ */ $(Oi.Provider, { value: w, children: /* @__PURE__ */ $(Cc, { plugins: n, ctx: g, children: r }) });
5145
5145
  }
5146
5146
  function Pc() {
5147
5147
  const { dialogs: e, openDialogs: t, closeDialog: r, renderContext: n } = rn(), { queryClient: o, theme: s } = Nr(), i = s === "system" ? void 0 : s;
@@ -5184,10 +5184,10 @@ function Fc() {
5184
5184
  if (i && o && t.activeAddress && o !== t.activeAddress) {
5185
5185
  for (const g of e)
5186
5186
  if ((m = g.lifecycle) != null && m.onAccountChange) {
5187
- const x = t.activeAddress, h = o;
5187
+ const w = t.activeAddress, h = o;
5188
5188
  hn(
5189
5189
  g,
5190
- () => g.lifecycle.onAccountChange(x, h, t)
5190
+ () => g.lifecycle.onAccountChange(w, h, t)
5191
5191
  );
5192
5192
  }
5193
5193
  }
@@ -5298,11 +5298,11 @@ function $c({
5298
5298
  const d = o.accounts.map((m) => m.address);
5299
5299
  if (d.length > 0) {
5300
5300
  const g = [];
5301
- for (let x = 0; x < d.length; x += 20)
5302
- g.push(d.slice(x, x + 20));
5303
- g.forEach(async (x) => {
5301
+ for (let w = 0; w < d.length; w += 20)
5302
+ g.push(d.slice(w, w + 20));
5303
+ g.forEach(async (w) => {
5304
5304
  const O = i === "testnet" ? "https://api.testnet.nf.domains" : "https://api.nf.domains", k = new URLSearchParams();
5305
- x.forEach((P) => {
5305
+ w.forEach((P) => {
5306
5306
  k.append("address", P);
5307
5307
  }), k.append("view", t);
5308
5308
  try {
@@ -5320,7 +5320,7 @@ function $c({
5320
5320
  `NFD prefetch lookup failed: ${P.statusText}`
5321
5321
  );
5322
5322
  const I = P.status === 404 ? {} : await P.json();
5323
- x.forEach((E) => {
5323
+ w.forEach((E) => {
5324
5324
  const N = I[E] || null;
5325
5325
  r.setQueryData(
5326
5326
  ["nfd", E, i, t],
@@ -5442,50 +5442,50 @@ function Dc({ wallets: e, handleWalletClick: t }) {
5442
5442
  ] });
5443
5443
  }
5444
5444
  function Lc({ children: e }) {
5445
- const [t, r] = ie(!1), [n, o] = ie(null), { wallets: s, activeAddress: i } = Ot(), { theme: l } = Nr(), c = l === "system" ? void 0 : l, { refs: d, context: m } = Ws({
5445
+ const [t, r] = ie(!1), [n, o] = ie(null), { wallets: s, availableWallets: i, activeAddress: l } = Ot(), { theme: c } = Nr(), d = i ?? s, m = c === "system" ? void 0 : c, { refs: g, context: w } = Ws({
5446
5446
  open: t,
5447
- onOpenChange: (a) => {
5448
- a && i || (a ? (r(!0), o("starting"), requestAnimationFrame(() => {
5447
+ onOpenChange: (f) => {
5448
+ f && l || (f ? (r(!0), o("starting"), requestAnimationFrame(() => {
5449
5449
  o("entered");
5450
5450
  })) : (o("exiting"), setTimeout(() => {
5451
5451
  r(!1), o(null);
5452
5452
  }, 150)));
5453
5453
  }
5454
- }), g = zs(m), x = Gs(m, { outsidePressEvent: "mousedown" }), h = Ma(m, { role: "dialog" }), { getReferenceProps: O, getFloatingProps: k } = qs([
5455
- g,
5456
- x,
5457
- h
5458
- ]), P = An(), I = An(), E = async (a) => {
5454
+ }), h = zs(w), O = Gs(w, { outsidePressEvent: "mousedown" }), k = Ma(w, { role: "dialog" }), { getReferenceProps: P, getFloatingProps: I } = qs([
5455
+ h,
5456
+ O,
5457
+ k
5458
+ ]), E = An(), N = An(), M = async (f) => {
5459
5459
  try {
5460
- await a.connect(), m.onOpenChange(!1);
5461
- } catch (u) {
5462
- console.error(`Error connecting to ${a.metadata.name}:`, u), m.onOpenChange(!1);
5460
+ await f.connect(), w.onOpenChange(!1);
5461
+ } catch (x) {
5462
+ console.error(`Error connecting to ${f.metadata.name}:`, x), w.onOpenChange(!1);
5463
5463
  }
5464
- }, N = (a) => {
5465
- i || m.onOpenChange(!0);
5466
- }, M = e || /* @__PURE__ */ $(ao, {}), j = Da([
5467
- d.setReference,
5468
- M.ref || null
5469
- ]), H = {
5470
- ...O(),
5471
- ref: j,
5472
- onClick: N
5473
- }, V = K.cloneElement(M, H);
5464
+ }, j = (f) => {
5465
+ l || w.onOpenChange(!0);
5466
+ }, H = e || /* @__PURE__ */ $(ao, {}), V = Da([
5467
+ g.setReference,
5468
+ H.ref || null
5469
+ ]), a = {
5470
+ ...P(),
5471
+ ref: V,
5472
+ onClick: j
5473
+ }, u = K.cloneElement(H, a);
5474
5474
  return /* @__PURE__ */ re(et, { children: [
5475
- V,
5476
- /* @__PURE__ */ $(no, { id: "wallet-dialog-portal", children: t && /* @__PURE__ */ $("div", { "data-wallet-theme": !0, "data-wallet-ui": !0, "data-theme": c, children: /* @__PURE__ */ $(
5475
+ u,
5476
+ /* @__PURE__ */ $(no, { id: "wallet-dialog-portal", children: t && /* @__PURE__ */ $("div", { "data-wallet-theme": !0, "data-wallet-ui": !0, "data-theme": m, children: /* @__PURE__ */ $(
5477
5477
  La,
5478
5478
  {
5479
5479
  className: "grid place-items-center px-4 z-50 transition-opacity duration-150 ease-in-out bg-[var(--wui-color-overlay)] data-[state=starting]:opacity-0 data-[state=exiting]:opacity-0 data-[state=entered]:opacity-100",
5480
5480
  "data-state": n,
5481
5481
  lockScroll: !0,
5482
- children: /* @__PURE__ */ $(Vs, { context: m, modal: !0, children: /* @__PURE__ */ re(
5482
+ children: /* @__PURE__ */ $(Vs, { context: w, modal: !0, children: /* @__PURE__ */ re(
5483
5483
  "div",
5484
5484
  {
5485
- ref: d.setFloating,
5486
- ...k({
5487
- "aria-labelledby": P,
5488
- "aria-describedby": I
5485
+ ref: g.setFloating,
5486
+ ...I({
5487
+ "aria-labelledby": E,
5488
+ "aria-describedby": N
5489
5489
  }),
5490
5490
  role: "dialog",
5491
5491
  "data-state": n,
@@ -5498,7 +5498,7 @@ function Lc({ children: e }) {
5498
5498
  /* @__PURE__ */ $(
5499
5499
  "h2",
5500
5500
  {
5501
- id: P,
5501
+ id: E,
5502
5502
  className: "text-xl font-bold text-[var(--wui-color-text)] wallet-custom-font",
5503
5503
  children: "Connect a Wallet"
5504
5504
  }
@@ -5506,7 +5506,7 @@ function Lc({ children: e }) {
5506
5506
  /* @__PURE__ */ $(
5507
5507
  "button",
5508
5508
  {
5509
- onClick: () => m.onOpenChange(!1),
5509
+ onClick: () => w.onOpenChange(!1),
5510
5510
  className: "absolute right-4 rounded-full bg-[var(--wui-color-bg-tertiary)] p-2 text-[var(--wui-color-text-secondary)] hover:brightness-90 transition-all",
5511
5511
  "aria-label": "Close dialog",
5512
5512
  children: /* @__PURE__ */ $(
@@ -5532,8 +5532,8 @@ function Lc({ children: e }) {
5532
5532
  /* @__PURE__ */ $("div", { className: "px-4 pb-3", children: /* @__PURE__ */ $(
5533
5533
  Dc,
5534
5534
  {
5535
- wallets: s,
5536
- handleWalletClick: E
5535
+ wallets: d,
5536
+ handleWalletClick: M
5537
5537
  }
5538
5538
  ) }),
5539
5539
  /* @__PURE__ */ re("div", { className: "px-6 py-5 border-t border-[var(--wui-color-border)] flex items-center justify-between", children: [
@@ -5558,7 +5558,7 @@ function Lc({ children: e }) {
5558
5558
  }
5559
5559
  var jc = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, mn = Math.ceil, je = Math.floor, Te = "[BigNumber Error] ", _o = Te + "Number primitive has more than 15 significant digits: ", ze = 1e14, _ = 14, Ko = 9007199254740991, gn = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], ft = 1e7, Ie = 1e9;
5560
5560
  function Ci(e) {
5561
- var t, r, n, o = E.prototype = { constructor: E, toString: null, valueOf: null }, s = new E(1), i = 20, l = 4, c = -7, d = 21, m = -1e7, g = 1e7, x = !1, h = 1, O = 0, k = {
5561
+ var t, r, n, o = E.prototype = { constructor: E, toString: null, valueOf: null }, s = new E(1), i = 20, l = 4, c = -7, d = 21, m = -1e7, g = 1e7, w = !1, h = 1, O = 0, k = {
5562
5562
  prefix: "",
5563
5563
  groupSize: 3,
5564
5564
  secondaryGroupSize: 0,
@@ -5570,7 +5570,7 @@ function Ci(e) {
5570
5570
  suffix: ""
5571
5571
  }, P = "0123456789abcdefghijklmnopqrstuvwxyz", I = !0;
5572
5572
  function E(a, u) {
5573
- var f, w, b, S, C, p, y, T, A = this;
5573
+ var f, x, b, S, C, p, y, T, A = this;
5574
5574
  if (!(A instanceof E)) return new E(a, u);
5575
5575
  if (u == null) {
5576
5576
  if (a && a._isBigNumber === !0) {
@@ -5599,8 +5599,8 @@ function Ci(e) {
5599
5599
  } else
5600
5600
  A.s = T.charCodeAt(0) === 45 ? (T = T.slice(1), -1) : 1;
5601
5601
  for (f = P.slice(0, u), S = C = 0, y = T.length; C < y; C++)
5602
- if (f.indexOf(w = T.charAt(C)) < 0) {
5603
- if (w == ".") {
5602
+ if (f.indexOf(x = T.charAt(C)) < 0) {
5603
+ if (x == ".") {
5604
5604
  if (C > S) {
5605
5605
  S = y;
5606
5606
  continue;
@@ -5650,11 +5650,11 @@ function Ci(e) {
5650
5650
  if (f = a[u], f === !!f)
5651
5651
  if (f)
5652
5652
  if (typeof crypto < "u" && crypto && (crypto.getRandomValues || crypto.randomBytes))
5653
- x = f;
5653
+ w = f;
5654
5654
  else
5655
- throw x = !f, Error(Te + "crypto unavailable");
5655
+ throw w = !f, Error(Te + "crypto unavailable");
5656
5656
  else
5657
- x = f;
5657
+ w = f;
5658
5658
  else
5659
5659
  throw Error(Te + u + " not true or false: " + f);
5660
5660
  if (a.hasOwnProperty(u = "MODULO_MODE") && (f = a[u], ce(f, 0, 9, u), h = f), a.hasOwnProperty(u = "POW_PRECISION") && (f = a[u], ce(f, 0, Ie, u), O = f), a.hasOwnProperty(u = "FORMAT"))
@@ -5672,7 +5672,7 @@ function Ci(e) {
5672
5672
  ROUNDING_MODE: l,
5673
5673
  EXPONENTIAL_AT: [c, d],
5674
5674
  RANGE: [m, g],
5675
- CRYPTO: x,
5675
+ CRYPTO: w,
5676
5676
  MODULO_MODE: h,
5677
5677
  POW_PRECISION: O,
5678
5678
  FORMAT: k,
@@ -5681,20 +5681,20 @@ function Ci(e) {
5681
5681
  }, E.isBigNumber = function(a) {
5682
5682
  if (!a || a._isBigNumber !== !0) return !1;
5683
5683
  if (!E.DEBUG) return !0;
5684
- var u, f, w = a.c, b = a.e, S = a.s;
5685
- e: if ({}.toString.call(w) == "[object Array]") {
5684
+ var u, f, x = a.c, b = a.e, S = a.s;
5685
+ e: if ({}.toString.call(x) == "[object Array]") {
5686
5686
  if ((S === 1 || S === -1) && b >= -1e9 && b <= Ie && b === je(b)) {
5687
- if (w[0] === 0) {
5688
- if (b === 0 && w.length === 1) return !0;
5687
+ if (x[0] === 0) {
5688
+ if (b === 0 && x.length === 1) return !0;
5689
5689
  break e;
5690
5690
  }
5691
- if (u = (b + 1) % _, u < 1 && (u += _), String(w[0]).length == u) {
5692
- for (u = 0; u < w.length; u++)
5693
- if (f = w[u], f < 0 || f >= ze || f !== je(f)) break e;
5691
+ if (u = (b + 1) % _, u < 1 && (u += _), String(x[0]).length == u) {
5692
+ for (u = 0; u < x.length; u++)
5693
+ if (f = x[u], f < 0 || f >= ze || f !== je(f)) break e;
5694
5694
  if (f !== 0) return !0;
5695
5695
  }
5696
5696
  }
5697
- } else if (w === null && b === null && (S === null || S === 1 || S === -1))
5697
+ } else if (x === null && b === null && (S === null || S === 1 || S === -1))
5698
5698
  return !0;
5699
5699
  throw Error(Te + "Invalid BigNumber: " + a);
5700
5700
  }, E.maximum = E.max = function() {
@@ -5708,19 +5708,19 @@ function Ci(e) {
5708
5708
  return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0);
5709
5709
  };
5710
5710
  return function(f) {
5711
- var w, b, S, C, p, y = 0, T = [], A = new E(s);
5712
- if (f == null ? f = i : ce(f, 0, Ie), C = mn(f / _), x)
5711
+ var x, b, S, C, p, y = 0, T = [], A = new E(s);
5712
+ if (f == null ? f = i : ce(f, 0, Ie), C = mn(f / _), w)
5713
5713
  if (crypto.getRandomValues) {
5714
- for (w = crypto.getRandomValues(new Uint32Array(C *= 2)); y < C; )
5715
- p = w[y] * 131072 + (w[y + 1] >>> 11), p >= 9e15 ? (b = crypto.getRandomValues(new Uint32Array(2)), w[y] = b[0], w[y + 1] = b[1]) : (T.push(p % 1e14), y += 2);
5714
+ for (x = crypto.getRandomValues(new Uint32Array(C *= 2)); y < C; )
5715
+ p = x[y] * 131072 + (x[y + 1] >>> 11), p >= 9e15 ? (b = crypto.getRandomValues(new Uint32Array(2)), x[y] = b[0], x[y + 1] = b[1]) : (T.push(p % 1e14), y += 2);
5716
5716
  y = C / 2;
5717
5717
  } else if (crypto.randomBytes) {
5718
- for (w = crypto.randomBytes(C *= 7); y < C; )
5719
- p = (w[y] & 31) * 281474976710656 + w[y + 1] * 1099511627776 + w[y + 2] * 4294967296 + w[y + 3] * 16777216 + (w[y + 4] << 16) + (w[y + 5] << 8) + w[y + 6], p >= 9e15 ? crypto.randomBytes(7).copy(w, y) : (T.push(p % 1e14), y += 7);
5718
+ for (x = crypto.randomBytes(C *= 7); y < C; )
5719
+ p = (x[y] & 31) * 281474976710656 + x[y + 1] * 1099511627776 + x[y + 2] * 4294967296 + x[y + 3] * 16777216 + (x[y + 4] << 16) + (x[y + 5] << 8) + x[y + 6], p >= 9e15 ? crypto.randomBytes(7).copy(x, y) : (T.push(p % 1e14), y += 7);
5720
5720
  y = C / 7;
5721
5721
  } else
5722
- throw x = !1, Error(Te + "crypto unavailable");
5723
- if (!x)
5722
+ throw w = !1, Error(Te + "crypto unavailable");
5723
+ if (!w)
5724
5724
  for (; y < C; )
5725
5725
  p = u(), p < 9e15 && (T[y++] = p % 1e14);
5726
5726
  for (C = T[--y], f %= _, C && f && (p = gn[_ - f], T[y] = je(C / p) * p); T[y] === 0; T.pop(), y--) ;
@@ -5738,22 +5738,22 @@ function Ci(e) {
5738
5738
  return f;
5739
5739
  }, r = /* @__PURE__ */ (function() {
5740
5740
  var a = "0123456789";
5741
- function u(f, w, b, S) {
5741
+ function u(f, x, b, S) {
5742
5742
  for (var C, p = [0], y, T = 0, A = f.length; T < A; ) {
5743
- for (y = p.length; y--; p[y] *= w) ;
5743
+ for (y = p.length; y--; p[y] *= x) ;
5744
5744
  for (p[0] += S.indexOf(f.charAt(T++)), C = 0; C < p.length; C++)
5745
5745
  p[C] > b - 1 && (p[C + 1] == null && (p[C + 1] = 0), p[C + 1] += p[C] / b | 0, p[C] %= b);
5746
5746
  }
5747
5747
  return p.reverse();
5748
5748
  }
5749
- return function(f, w, b, S, C) {
5749
+ return function(f, x, b, S, C) {
5750
5750
  var p, y, T, A, F, R, U, G, X = f.indexOf("."), se = i, L = l;
5751
- for (X >= 0 && (A = O, O = 0, f = f.replace(".", ""), G = new E(w), R = G.pow(f.length - X), O = A, G.c = u(
5751
+ for (X >= 0 && (A = O, O = 0, f = f.replace(".", ""), G = new E(x), R = G.pow(f.length - X), O = A, G.c = u(
5752
5752
  st(De(R.c), R.e, "0"),
5753
5753
  10,
5754
5754
  b,
5755
5755
  a
5756
- ), G.e = G.c.length), U = u(f, w, b, C ? (p = P, a) : (p = a, P)), T = A = U.length; U[--A] == 0; U.pop()) ;
5756
+ ), G.e = G.c.length), U = u(f, x, b, C ? (p = P, a) : (p = a, P)), T = A = U.length; U[--A] == 0; U.pop()) ;
5757
5757
  if (!U[0]) return p.charAt(0);
5758
5758
  if (X < 0 ? --T : (R.c = U, R.e = T, R.s = S, R = t(R, G, se, L, b), U = R.c, F = R.r, T = R.e), y = T + se + 1, X = U[y], A = b / 2, F = F || y < 0 || U[y + 1] != null, F = L < 4 ? (X != null || F) && (L == 0 || L == (R.s < 0 ? 3 : 2)) : X > A || X == A && (L == 4 || F || L == 6 && U[y - 1] & 1 || L == (R.s < 0 ? 8 : 7)), y < 1 || !U[0])
5759
5759
  f = F ? st(p.charAt(1), -se, p.charAt(0)) : p.charAt(0);
@@ -5768,40 +5768,40 @@ function Ci(e) {
5768
5768
  return f;
5769
5769
  };
5770
5770
  })(), t = /* @__PURE__ */ (function() {
5771
- function a(w, b, S) {
5772
- var C, p, y, T, A = 0, F = w.length, R = b % ft, U = b / ft | 0;
5773
- for (w = w.slice(); F--; )
5774
- y = w[F] % ft, T = w[F] / ft | 0, C = U * y + T * R, p = R * y + C % ft * ft + A, A = (p / S | 0) + (C / ft | 0) + U * T, w[F] = p % S;
5775
- return A && (w = [A].concat(w)), w;
5771
+ function a(x, b, S) {
5772
+ var C, p, y, T, A = 0, F = x.length, R = b % ft, U = b / ft | 0;
5773
+ for (x = x.slice(); F--; )
5774
+ y = x[F] % ft, T = x[F] / ft | 0, C = U * y + T * R, p = R * y + C % ft * ft + A, A = (p / S | 0) + (C / ft | 0) + U * T, x[F] = p % S;
5775
+ return A && (x = [A].concat(x)), x;
5776
5776
  }
5777
- function u(w, b, S, C) {
5777
+ function u(x, b, S, C) {
5778
5778
  var p, y;
5779
5779
  if (S != C)
5780
5780
  y = S > C ? 1 : -1;
5781
5781
  else
5782
5782
  for (p = y = 0; p < S; p++)
5783
- if (w[p] != b[p]) {
5784
- y = w[p] > b[p] ? 1 : -1;
5783
+ if (x[p] != b[p]) {
5784
+ y = x[p] > b[p] ? 1 : -1;
5785
5785
  break;
5786
5786
  }
5787
5787
  return y;
5788
5788
  }
5789
- function f(w, b, S, C) {
5789
+ function f(x, b, S, C) {
5790
5790
  for (var p = 0; S--; )
5791
- w[S] -= p, p = w[S] < b[S] ? 1 : 0, w[S] = p * C + w[S] - b[S];
5792
- for (; !w[0] && w.length > 1; w.splice(0, 1)) ;
5791
+ x[S] -= p, p = x[S] < b[S] ? 1 : 0, x[S] = p * C + x[S] - b[S];
5792
+ for (; !x[0] && x.length > 1; x.splice(0, 1)) ;
5793
5793
  }
5794
- return function(w, b, S, C, p) {
5795
- var y, T, A, F, R, U, G, X, se, L, D, te, We, le, Vt, ke, Qe, xe = w.s == b.s ? 1 : -1, ge = w.c, ue = b.c;
5794
+ return function(x, b, S, C, p) {
5795
+ var y, T, A, F, R, U, G, X, se, L, D, te, We, le, Vt, ke, Qe, xe = x.s == b.s ? 1 : -1, ge = x.c, ue = b.c;
5796
5796
  if (!ge || !ge[0] || !ue || !ue[0])
5797
5797
  return new E(
5798
5798
  // Return NaN if either NaN, or both Infinity or 0.
5799
- !w.s || !b.s || (ge ? ue && ge[0] == ue[0] : !ue) ? NaN : (
5799
+ !x.s || !b.s || (ge ? ue && ge[0] == ue[0] : !ue) ? NaN : (
5800
5800
  // Return ±0 if x is ±0 or y is ±Infinity, or return ±Infinity as y is ±0.
5801
5801
  ge && ge[0] == 0 || !ue ? xe * 0 : xe / 0
5802
5802
  )
5803
5803
  );
5804
- for (X = new E(xe), se = X.c = [], T = w.e - b.e, xe = S + T + 1, p || (p = ze, T = Be(w.e / _) - Be(b.e / _), xe = xe / _ | 0), A = 0; ue[A] == (ge[A] || 0); A++) ;
5804
+ for (X = new E(xe), se = X.c = [], T = x.e - b.e, xe = S + T + 1, p || (p = ze, T = Be(x.e / _) - Be(b.e / _), xe = xe / _ | 0), A = 0; ue[A] == (ge[A] || 0); A++) ;
5805
5805
  if (ue[A] > (ge[A] || 0) && T--, xe < 0)
5806
5806
  se.push(1), F = !0;
5807
5807
  else {
@@ -5830,12 +5830,12 @@ function Ci(e) {
5830
5830
  return X;
5831
5831
  };
5832
5832
  })();
5833
- function N(a, u, f, w) {
5833
+ function N(a, u, f, x) {
5834
5834
  var b, S, C, p, y;
5835
5835
  if (f == null ? f = l : ce(f, 0, 8), !a.c) return a.toString();
5836
5836
  if (b = a.c[0], C = a.e, u == null)
5837
- y = De(a.c), y = w == 1 || w == 2 && (C <= c || C >= d) ? Ur(y, C) : st(y, C, "0");
5838
- else if (a = H(new E(a), u, f), S = a.e, y = De(a.c), p = y.length, w == 1 || w == 2 && (u <= S || S <= c)) {
5837
+ y = De(a.c), y = x == 1 || x == 2 && (C <= c || C >= d) ? Ur(y, C) : st(y, C, "0");
5838
+ else if (a = H(new E(a), u, f), S = a.e, y = De(a.c), p = y.length, x == 1 || x == 2 && (u <= S || S <= c)) {
5839
5839
  for (; p < u; y += "0", p++) ;
5840
5840
  y = Ur(y, S);
5841
5841
  } else if (u -= C, y = st(y, S, "0"), S + 1 > p) {
@@ -5845,20 +5845,20 @@ function Ci(e) {
5845
5845
  return a.s < 0 && b ? "-" + y : y;
5846
5846
  }
5847
5847
  function M(a, u) {
5848
- for (var f, w, b = 1, S = new E(a[0]); b < a.length; b++)
5849
- w = new E(a[b]), (!w.s || (f = Tt(S, w)) === u || f === 0 && S.s === u) && (S = w);
5848
+ for (var f, x, b = 1, S = new E(a[0]); b < a.length; b++)
5849
+ x = new E(a[b]), (!x.s || (f = Tt(S, x)) === u || f === 0 && S.s === u) && (S = x);
5850
5850
  return S;
5851
5851
  }
5852
5852
  function j(a, u, f) {
5853
- for (var w = 1, b = u.length; !u[--b]; u.pop()) ;
5854
- for (b = u[0]; b >= 10; b /= 10, w++) ;
5855
- return (f = w + f * _ - 1) > g ? a.c = a.e = null : f < m ? a.c = [a.e = 0] : (a.e = f, a.c = u), a;
5853
+ for (var x = 1, b = u.length; !u[--b]; u.pop()) ;
5854
+ for (b = u[0]; b >= 10; b /= 10, x++) ;
5855
+ return (f = x + f * _ - 1) > g ? a.c = a.e = null : f < m ? a.c = [a.e = 0] : (a.e = f, a.c = u), a;
5856
5856
  }
5857
5857
  n = /* @__PURE__ */ (function() {
5858
- var a = /^(-?)0([xbo])(?=\w[\w.]*$)/i, u = /^([^.]+)\.$/, f = /^\.([^.]+)$/, w = /^-?(Infinity|NaN)$/, b = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
5858
+ var a = /^(-?)0([xbo])(?=\w[\w.]*$)/i, u = /^([^.]+)\.$/, f = /^\.([^.]+)$/, x = /^-?(Infinity|NaN)$/, b = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
5859
5859
  return function(S, C, p, y) {
5860
5860
  var T, A = p ? C : C.replace(b, "");
5861
- if (w.test(A))
5861
+ if (x.test(A))
5862
5862
  S.s = isNaN(A) ? null : A < 0 ? -1 : 1;
5863
5863
  else {
5864
5864
  if (!p && (A = A.replace(a, function(F, R, U) {
@@ -5872,7 +5872,7 @@ function Ci(e) {
5872
5872
  S.c = S.e = null;
5873
5873
  };
5874
5874
  })();
5875
- function H(a, u, f, w) {
5875
+ function H(a, u, f, x) {
5876
5876
  var b, S, C, p, y, T, A, F = a.c, R = gn;
5877
5877
  if (F) {
5878
5878
  e: {
@@ -5880,7 +5880,7 @@ function Ci(e) {
5880
5880
  if (S = u - b, S < 0)
5881
5881
  S += _, C = u, y = F[T = 0], A = je(y / R[b - C - 1] % 10);
5882
5882
  else if (T = mn((S + 1) / _), T >= F.length)
5883
- if (w) {
5883
+ if (x) {
5884
5884
  for (; F.length <= T; F.push(0)) ;
5885
5885
  y = A = 0, b = 1, S %= _, C = S - _ + 1;
5886
5886
  } else
@@ -5889,13 +5889,13 @@ function Ci(e) {
5889
5889
  for (y = p = F[T], b = 1; p >= 10; p /= 10, b++) ;
5890
5890
  S %= _, C = S - _ + b, A = C < 0 ? 0 : je(y / R[b - C - 1] % 10);
5891
5891
  }
5892
- if (w = w || u < 0 || // Are there any non-zero digits after the rounding digit?
5892
+ if (x = x || u < 0 || // Are there any non-zero digits after the rounding digit?
5893
5893
  // The expression n % pows10[d - j - 1] returns all digits of n to the right
5894
5894
  // of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714.
5895
- F[T + 1] != null || (C < 0 ? y : y % R[b - C - 1]), w = f < 4 ? (A || w) && (f == 0 || f == (a.s < 0 ? 3 : 2)) : A > 5 || A == 5 && (f == 4 || w || f == 6 && // Check whether the digit to the left of the rounding digit is odd.
5895
+ F[T + 1] != null || (C < 0 ? y : y % R[b - C - 1]), x = f < 4 ? (A || x) && (f == 0 || f == (a.s < 0 ? 3 : 2)) : A > 5 || A == 5 && (f == 4 || x || f == 6 && // Check whether the digit to the left of the rounding digit is odd.
5896
5896
  (S > 0 ? C > 0 ? y / R[b - C] : 0 : F[T - 1]) % 10 & 1 || f == (a.s < 0 ? 8 : 7)), u < 1 || !F[0])
5897
- return F.length = 0, w ? (u -= a.e + 1, F[0] = R[(_ - u % _) % _], a.e = -u || 0) : F[0] = a.e = 0, a;
5898
- if (S == 0 ? (F.length = T, p = 1, T--) : (F.length = T + 1, p = R[_ - S], F[T] = C > 0 ? je(y / R[b - C] % R[C]) * p : 0), w)
5897
+ return F.length = 0, x ? (u -= a.e + 1, F[0] = R[(_ - u % _) % _], a.e = -u || 0) : F[0] = a.e = 0, a;
5898
+ if (S == 0 ? (F.length = T, p = 1, T--) : (F.length = T + 1, p = R[_ - S], F[T] = C > 0 ? je(y / R[b - C] % R[C]) * p : 0), x)
5899
5899
  for (; ; )
5900
5900
  if (T == 0) {
5901
5901
  for (S = 1, C = F[0]; C >= 10; C /= 10, S++) ;
@@ -5922,25 +5922,25 @@ function Ci(e) {
5922
5922
  }, o.comparedTo = function(a, u) {
5923
5923
  return Tt(this, new E(a, u));
5924
5924
  }, o.decimalPlaces = o.dp = function(a, u) {
5925
- var f, w, b, S = this;
5925
+ var f, x, b, S = this;
5926
5926
  if (a != null)
5927
5927
  return ce(a, 0, Ie), u == null ? u = l : ce(u, 0, 8), H(new E(S), a + S.e + 1, u);
5928
5928
  if (!(f = S.c)) return null;
5929
- if (w = ((b = f.length - 1) - Be(this.e / _)) * _, b = f[b]) for (; b % 10 == 0; b /= 10, w--) ;
5930
- return w < 0 && (w = 0), w;
5929
+ if (x = ((b = f.length - 1) - Be(this.e / _)) * _, b = f[b]) for (; b % 10 == 0; b /= 10, x--) ;
5930
+ return x < 0 && (x = 0), x;
5931
5931
  }, o.dividedBy = o.div = function(a, u) {
5932
5932
  return t(this, new E(a, u), i, l);
5933
5933
  }, o.dividedToIntegerBy = o.idiv = function(a, u) {
5934
5934
  return t(this, new E(a, u), 0, 1);
5935
5935
  }, o.exponentiatedBy = o.pow = function(a, u) {
5936
- var f, w, b, S, C, p, y, T, A, F = this;
5936
+ var f, x, b, S, C, p, y, T, A, F = this;
5937
5937
  if (a = new E(a), a.c && !a.isInteger())
5938
5938
  throw Error(Te + "Exponent not an integer: " + V(a));
5939
5939
  if (u != null && (u = new E(u)), p = a.e > 14, !F.c || !F.c[0] || F.c[0] == 1 && !F.e && F.c.length == 1 || !a.c || !a.c[0])
5940
5940
  return A = new E(Math.pow(+V(F), p ? a.s * (2 - Hr(a)) : +V(a))), u ? A.mod(u) : A;
5941
5941
  if (y = a.s < 0, u) {
5942
5942
  if (u.c ? !u.c[0] : !u.s) return new E(NaN);
5943
- w = !y && F.isInteger() && u.isInteger(), w && (F = F.mod(u));
5943
+ x = !y && F.isInteger() && u.isInteger(), x && (F = F.mod(u));
5944
5944
  } else {
5945
5945
  if (a.e > 9 && (F.e > 0 || F.e < -1 || (F.e == 0 ? F.c[0] > 1 || p && F.c[1] >= 24e7 : F.c[0] < 8e13 || p && F.c[0] <= 9999975e7)))
5946
5946
  return S = F.s < 0 && Hr(a) ? -0 : 0, F.e > -1 && (S = 1 / S), new E(y ? 1 / S : S);
@@ -5949,7 +5949,7 @@ function Ci(e) {
5949
5949
  for (p ? (f = new E(0.5), y && (a.s = 1), T = Hr(a)) : (b = Math.abs(+V(a)), T = b % 2), A = new E(s); ; ) {
5950
5950
  if (T) {
5951
5951
  if (A = A.times(F), !A.c) break;
5952
- S ? A.c.length > S && (A.c.length = S) : w && (A = A.mod(u));
5952
+ S ? A.c.length > S && (A.c.length = S) : x && (A = A.mod(u));
5953
5953
  }
5954
5954
  if (b) {
5955
5955
  if (b = je(b / 2), b === 0) break;
@@ -5960,9 +5960,9 @@ function Ci(e) {
5960
5960
  if (b = +V(a), b === 0) break;
5961
5961
  T = b % 2;
5962
5962
  }
5963
- F = F.times(F), S ? F.c && F.c.length > S && (F.c.length = S) : w && (F = F.mod(u));
5963
+ F = F.times(F), S ? F.c && F.c.length > S && (F.c.length = S) : x && (F = F.mod(u));
5964
5964
  }
5965
- return w ? A : (y && (A = s.div(A)), u ? A.mod(u) : S ? H(A, O, l, C) : A);
5965
+ return x ? A : (y && (A = s.div(A)), u ? A.mod(u) : S ? H(A, O, l, C) : A);
5966
5966
  }, o.integerValue = function(a) {
5967
5967
  var u = new E(this);
5968
5968
  return a == null ? a = l : ce(a, 0, 8), H(u, u.e + 1, a);
@@ -5989,7 +5989,7 @@ function Ci(e) {
5989
5989
  }, o.isZero = function() {
5990
5990
  return !!this.c && this.c[0] == 0;
5991
5991
  }, o.minus = function(a, u) {
5992
- var f, w, b, S, C = this, p = C.s;
5992
+ var f, x, b, S, C = this, p = C.s;
5993
5993
  if (a = new E(a, u), u = a.s, !p || !u) return new E(NaN);
5994
5994
  if (p != u)
5995
5995
  return a.s = -u, C.plus(a);
@@ -6006,47 +6006,47 @@ function Ci(e) {
6006
6006
  for ((S = p < 0) ? (p = -p, b = A) : (T = y, b = F), b.reverse(), u = p; u--; b.push(0)) ;
6007
6007
  b.reverse();
6008
6008
  } else
6009
- for (w = (S = (p = A.length) < (u = F.length)) ? p : u, p = u = 0; u < w; u++)
6009
+ for (x = (S = (p = A.length) < (u = F.length)) ? p : u, p = u = 0; u < x; u++)
6010
6010
  if (A[u] != F[u]) {
6011
6011
  S = A[u] < F[u];
6012
6012
  break;
6013
6013
  }
6014
- if (S && (b = A, A = F, F = b, a.s = -a.s), u = (w = F.length) - (f = A.length), u > 0) for (; u--; A[f++] = 0) ;
6015
- for (u = ze - 1; w > p; ) {
6016
- if (A[--w] < F[w]) {
6017
- for (f = w; f && !A[--f]; A[f] = u) ;
6018
- --A[f], A[w] += ze;
6014
+ if (S && (b = A, A = F, F = b, a.s = -a.s), u = (x = F.length) - (f = A.length), u > 0) for (; u--; A[f++] = 0) ;
6015
+ for (u = ze - 1; x > p; ) {
6016
+ if (A[--x] < F[x]) {
6017
+ for (f = x; f && !A[--f]; A[f] = u) ;
6018
+ --A[f], A[x] += ze;
6019
6019
  }
6020
- A[w] -= F[w];
6020
+ A[x] -= F[x];
6021
6021
  }
6022
6022
  for (; A[0] == 0; A.splice(0, 1), --T) ;
6023
6023
  return A[0] ? j(a, A, T) : (a.s = l == 3 ? -1 : 1, a.c = [a.e = 0], a);
6024
6024
  }, o.modulo = o.mod = function(a, u) {
6025
- var f, w, b = this;
6026
- return a = new E(a, u), !b.c || !a.s || a.c && !a.c[0] ? new E(NaN) : !a.c || b.c && !b.c[0] ? new E(b) : (h == 9 ? (w = a.s, a.s = 1, f = t(b, a, 0, 3), a.s = w, f.s *= w) : f = t(b, a, 0, h), a = b.minus(f.times(a)), !a.c[0] && h == 1 && (a.s = b.s), a);
6025
+ var f, x, b = this;
6026
+ return a = new E(a, u), !b.c || !a.s || a.c && !a.c[0] ? new E(NaN) : !a.c || b.c && !b.c[0] ? new E(b) : (h == 9 ? (x = a.s, a.s = 1, f = t(b, a, 0, 3), a.s = x, f.s *= x) : f = t(b, a, 0, h), a = b.minus(f.times(a)), !a.c[0] && h == 1 && (a.s = b.s), a);
6027
6027
  }, o.multipliedBy = o.times = function(a, u) {
6028
- var f, w, b, S, C, p, y, T, A, F, R, U, G, X, se, L = this, D = L.c, te = (a = new E(a, u)).c;
6028
+ var f, x, b, S, C, p, y, T, A, F, R, U, G, X, se, L = this, D = L.c, te = (a = new E(a, u)).c;
6029
6029
  if (!D || !te || !D[0] || !te[0])
6030
6030
  return !L.s || !a.s || D && !D[0] && !te || te && !te[0] && !D ? a.c = a.e = a.s = null : (a.s *= L.s, !D || !te ? a.c = a.e = null : (a.c = [0], a.e = 0)), a;
6031
- for (w = Be(L.e / _) + Be(a.e / _), a.s *= L.s, y = D.length, F = te.length, y < F && (G = D, D = te, te = G, b = y, y = F, F = b), b = y + F, G = []; b--; G.push(0)) ;
6031
+ for (x = Be(L.e / _) + Be(a.e / _), a.s *= L.s, y = D.length, F = te.length, y < F && (G = D, D = te, te = G, b = y, y = F, F = b), b = y + F, G = []; b--; G.push(0)) ;
6032
6032
  for (X = ze, se = ft, b = F; --b >= 0; ) {
6033
6033
  for (f = 0, R = te[b] % se, U = te[b] / se | 0, C = y, S = b + C; S > b; )
6034
6034
  T = D[--C] % se, A = D[C] / se | 0, p = U * T + A * R, T = R * T + p % se * se + G[S] + f, f = (T / X | 0) + (p / se | 0) + U * A, G[S--] = T % X;
6035
6035
  G[S] = f;
6036
6036
  }
6037
- return f ? ++w : G.splice(0, 1), j(a, G, w);
6037
+ return f ? ++x : G.splice(0, 1), j(a, G, x);
6038
6038
  }, o.negated = function() {
6039
6039
  var a = new E(this);
6040
6040
  return a.s = -a.s || null, a;
6041
6041
  }, o.plus = function(a, u) {
6042
- var f, w = this, b = w.s;
6042
+ var f, x = this, b = x.s;
6043
6043
  if (a = new E(a, u), u = a.s, !b || !u) return new E(NaN);
6044
6044
  if (b != u)
6045
- return a.s = -u, w.minus(a);
6046
- var S = w.e / _, C = a.e / _, p = w.c, y = a.c;
6045
+ return a.s = -u, x.minus(a);
6046
+ var S = x.e / _, C = a.e / _, p = x.c, y = a.c;
6047
6047
  if (!S || !C) {
6048
6048
  if (!p || !y) return new E(b / 0);
6049
- if (!p[0] || !y[0]) return y[0] ? a : new E(p[0] ? w : b * 0);
6049
+ if (!p[0] || !y[0]) return y[0] ? a : new E(p[0] ? x : b * 0);
6050
6050
  }
6051
6051
  if (S = Be(S), C = Be(C), p = p.slice(), b = S - C) {
6052
6052
  for (b > 0 ? (C = S, f = y) : (b = -b, f = p), f.reverse(); b--; f.push(0)) ;
@@ -6056,30 +6056,30 @@ function Ci(e) {
6056
6056
  b = (p[--u] = p[u] + y[u] + b) / ze | 0, p[u] = ze === p[u] ? 0 : p[u] % ze;
6057
6057
  return b && (p = [b].concat(p), ++C), j(a, p, C);
6058
6058
  }, o.precision = o.sd = function(a, u) {
6059
- var f, w, b, S = this;
6059
+ var f, x, b, S = this;
6060
6060
  if (a != null && a !== !!a)
6061
6061
  return ce(a, 1, Ie), u == null ? u = l : ce(u, 0, 8), H(new E(S), a, u);
6062
6062
  if (!(f = S.c)) return null;
6063
- if (b = f.length - 1, w = b * _ + 1, b = f[b]) {
6064
- for (; b % 10 == 0; b /= 10, w--) ;
6065
- for (b = f[0]; b >= 10; b /= 10, w++) ;
6063
+ if (b = f.length - 1, x = b * _ + 1, b = f[b]) {
6064
+ for (; b % 10 == 0; b /= 10, x--) ;
6065
+ for (b = f[0]; b >= 10; b /= 10, x++) ;
6066
6066
  }
6067
- return a && S.e + 1 > w && (w = S.e + 1), w;
6067
+ return a && S.e + 1 > x && (x = S.e + 1), x;
6068
6068
  }, o.shiftedBy = function(a) {
6069
6069
  return ce(a, -9007199254740991, Ko), this.times("1e" + a);
6070
6070
  }, o.squareRoot = o.sqrt = function() {
6071
- var a, u, f, w, b, S = this, C = S.c, p = S.s, y = S.e, T = i + 4, A = new E("0.5");
6071
+ var a, u, f, x, b, S = this, C = S.c, p = S.s, y = S.e, T = i + 4, A = new E("0.5");
6072
6072
  if (p !== 1 || !C || !C[0])
6073
6073
  return new E(!p || p < 0 && (!C || C[0]) ? NaN : C ? S : 1 / 0);
6074
6074
  if (p = Math.sqrt(+V(S)), p == 0 || p == 1 / 0 ? (u = De(C), (u.length + y) % 2 == 0 && (u += "0"), p = Math.sqrt(+u), y = Be((y + 1) / 2) - (y < 0 || y % 2), p == 1 / 0 ? u = "5e" + y : (u = p.toExponential(), u = u.slice(0, u.indexOf("e") + 1) + y), f = new E(u)) : f = new E(p + ""), f.c[0]) {
6075
6075
  for (y = f.e, p = y + T, p < 3 && (p = 0); ; )
6076
6076
  if (b = f, f = A.times(b.plus(t(S, b, T, 1))), De(b.c).slice(0, p) === (u = De(f.c)).slice(0, p))
6077
- if (f.e < y && --p, u = u.slice(p - 3, p + 1), u == "9999" || !w && u == "4999") {
6078
- if (!w && (H(b, b.e + i + 2, 0), b.times(b).eq(S))) {
6077
+ if (f.e < y && --p, u = u.slice(p - 3, p + 1), u == "9999" || !x && u == "4999") {
6078
+ if (!x && (H(b, b.e + i + 2, 0), b.times(b).eq(S))) {
6079
6079
  f = b;
6080
6080
  break;
6081
6081
  }
6082
- T += 4, p += 4, w = 1;
6082
+ T += 4, p += 4, x = 1;
6083
6083
  } else {
6084
6084
  (!+u || !+u.slice(1) && u.charAt(0) == "5") && (H(f, f.e + i + 2, 1), a = !f.times(f).eq(S));
6085
6085
  break;
@@ -6091,40 +6091,40 @@ function Ci(e) {
6091
6091
  }, o.toFixed = function(a, u) {
6092
6092
  return a != null && (ce(a, 0, Ie), a = a + this.e + 1), N(this, a, u);
6093
6093
  }, o.toFormat = function(a, u, f) {
6094
- var w, b = this;
6094
+ var x, b = this;
6095
6095
  if (f == null)
6096
6096
  a != null && u && typeof u == "object" ? (f = u, u = null) : a && typeof a == "object" ? (f = a, a = u = null) : f = k;
6097
6097
  else if (typeof f != "object")
6098
6098
  throw Error(Te + "Argument not an object: " + f);
6099
- if (w = b.toFixed(a, u), b.c) {
6100
- var S, C = w.split("."), p = +f.groupSize, y = +f.secondaryGroupSize, T = f.groupSeparator || "", A = C[0], F = C[1], R = b.s < 0, U = R ? A.slice(1) : A, G = U.length;
6099
+ if (x = b.toFixed(a, u), b.c) {
6100
+ var S, C = x.split("."), p = +f.groupSize, y = +f.secondaryGroupSize, T = f.groupSeparator || "", A = C[0], F = C[1], R = b.s < 0, U = R ? A.slice(1) : A, G = U.length;
6101
6101
  if (y && (S = p, p = y, y = S, G -= S), p > 0 && G > 0) {
6102
6102
  for (S = G % p || p, A = U.substr(0, S); S < G; S += p) A += T + U.substr(S, p);
6103
6103
  y > 0 && (A += T + U.slice(S)), R && (A = "-" + A);
6104
6104
  }
6105
- w = F ? A + (f.decimalSeparator || "") + ((y = +f.fractionGroupSize) ? F.replace(
6105
+ x = F ? A + (f.decimalSeparator || "") + ((y = +f.fractionGroupSize) ? F.replace(
6106
6106
  new RegExp("\\d{" + y + "}\\B", "g"),
6107
6107
  "$&" + (f.fractionGroupSeparator || "")
6108
6108
  ) : F) : A;
6109
6109
  }
6110
- return (f.prefix || "") + w + (f.suffix || "");
6110
+ return (f.prefix || "") + x + (f.suffix || "");
6111
6111
  }, o.toFraction = function(a) {
6112
- var u, f, w, b, S, C, p, y, T, A, F, R, U = this, G = U.c;
6112
+ var u, f, x, b, S, C, p, y, T, A, F, R, U = this, G = U.c;
6113
6113
  if (a != null && (p = new E(a), !p.isInteger() && (p.c || p.s !== 1) || p.lt(s)))
6114
6114
  throw Error(Te + "Argument " + (p.isInteger() ? "out of range: " : "not an integer: ") + V(p));
6115
6115
  if (!G) return new E(U);
6116
- for (u = new E(s), T = f = new E(s), w = y = new E(s), R = De(G), S = u.e = R.length - U.e - 1, u.c[0] = gn[(C = S % _) < 0 ? _ + C : C], a = !a || p.comparedTo(u) > 0 ? S > 0 ? u : T : p, C = g, g = 1 / 0, p = new E(R), y.c[0] = 0; A = t(p, u, 0, 1), b = f.plus(A.times(w)), b.comparedTo(a) != 1; )
6117
- f = w, w = b, T = y.plus(A.times(b = T)), y = b, u = p.minus(A.times(b = u)), p = b;
6118
- return b = t(a.minus(f), w, 0, 1), y = y.plus(b.times(T)), f = f.plus(b.times(w)), y.s = T.s = U.s, S = S * 2, F = t(T, w, S, l).minus(U).abs().comparedTo(
6116
+ for (u = new E(s), T = f = new E(s), x = y = new E(s), R = De(G), S = u.e = R.length - U.e - 1, u.c[0] = gn[(C = S % _) < 0 ? _ + C : C], a = !a || p.comparedTo(u) > 0 ? S > 0 ? u : T : p, C = g, g = 1 / 0, p = new E(R), y.c[0] = 0; A = t(p, u, 0, 1), b = f.plus(A.times(x)), b.comparedTo(a) != 1; )
6117
+ f = x, x = b, T = y.plus(A.times(b = T)), y = b, u = p.minus(A.times(b = u)), p = b;
6118
+ return b = t(a.minus(f), x, 0, 1), y = y.plus(b.times(T)), f = f.plus(b.times(x)), y.s = T.s = U.s, S = S * 2, F = t(T, x, S, l).minus(U).abs().comparedTo(
6119
6119
  t(y, f, S, l).minus(U).abs()
6120
- ) < 1 ? [T, w] : [y, f], g = C, F;
6120
+ ) < 1 ? [T, x] : [y, f], g = C, F;
6121
6121
  }, o.toNumber = function() {
6122
6122
  return +V(this);
6123
6123
  }, o.toPrecision = function(a, u) {
6124
6124
  return a != null && ce(a, 1, Ie), N(this, a, u, 2);
6125
6125
  }, o.toString = function(a) {
6126
- var u, f = this, w = f.s, b = f.e;
6127
- return b === null ? w ? (u = "Infinity", w < 0 && (u = "-" + u)) : u = "NaN" : (a == null ? u = b <= c || b >= d ? Ur(De(f.c), b) : st(De(f.c), b, "0") : a === 10 && I ? (f = H(new E(f), i + b + 1, l), u = st(De(f.c), f.e, "0")) : (ce(a, 2, P.length, "Base"), u = r(st(De(f.c), b, "0"), 10, a, w, !0)), w < 0 && f.c[0] && (u = "-" + u)), u;
6126
+ var u, f = this, x = f.s, b = f.e;
6127
+ return b === null ? x ? (u = "Infinity", x < 0 && (u = "-" + u)) : u = "NaN" : (a == null ? u = b <= c || b >= d ? Ur(De(f.c), b) : st(De(f.c), b, "0") : a === 10 && I ? (f = H(new E(f), i + b + 1, l), u = st(De(f.c), f.e, "0")) : (ce(a, 2, P.length, "Base"), u = r(st(De(f.c), b, "0"), 10, a, x, !0)), x < 0 && f.c[0] && (u = "-" + u)), u;
6128
6128
  }, o.valueOf = o.toJSON = function() {
6129
6129
  return V(this);
6130
6130
  }, o._isBigNumber = !0, o[Symbol.toStringTag] = "BigNumber", o[Symbol.for("nodejs.util.inspect.custom")] = o.valueOf, e != null && E.set(e), E;
@@ -6188,20 +6188,20 @@ const Bc = 100000n, Hc = (e, t = {}) => {
6188
6188
  });
6189
6189
  if (!c)
6190
6190
  return m ? g.format(Yo(d)) : g.format(i);
6191
- const x = [
6191
+ const w = [
6192
6192
  { threshold: 1e12, suffix: "T", divisor: 1e12 },
6193
6193
  { threshold: 1e9, suffix: "B", divisor: 1e9 },
6194
6194
  { threshold: 1e6, suffix: "M", divisor: 1e6 },
6195
6195
  { threshold: 1e3, suffix: "K", divisor: 1e3 }
6196
6196
  ].find((h) => l >= h.threshold);
6197
- if (x) {
6197
+ if (w) {
6198
6198
  const h = new Intl.NumberFormat("en-US", {
6199
6199
  style: r,
6200
6200
  ...r === "currency" && { currency: "USD" },
6201
6201
  maximumFractionDigits: o ?? 1,
6202
6202
  minimumFractionDigits: o ?? 1
6203
- }), O = Number(i) / x.divisor;
6204
- return h.format(O) + x.suffix;
6203
+ }), O = Number(i) / w.divisor;
6204
+ return h.format(O) + w.suffix;
6205
6205
  }
6206
6206
  return m ? g.format(Yo(d)) : g.format(i);
6207
6207
  };
@@ -6318,8 +6318,8 @@ function Pi({
6318
6318
  fallback: o,
6319
6319
  lightOnly: s = !1
6320
6320
  }) {
6321
- var m, g, x, h;
6322
- const i = ((g = (m = e == null ? void 0 : e.properties) == null ? void 0 : m.userDefined) == null ? void 0 : g.avatar) || ((h = (x = e == null ? void 0 : e.properties) == null ? void 0 : x.verified) == null ? void 0 : h.avatar) || null, l = t || (e == null ? void 0 : e.name) || "NFD Avatar", { data: c, isLoading: d } = ho({
6321
+ var m, g, w, h;
6322
+ const i = ((g = (m = e == null ? void 0 : e.properties) == null ? void 0 : m.userDefined) == null ? void 0 : g.avatar) || ((h = (w = e == null ? void 0 : e.properties) == null ? void 0 : w.verified) == null ? void 0 : h.avatar) || null, l = t || (e == null ? void 0 : e.name) || "NFD Avatar", { data: c, isLoading: d } = ho({
6323
6323
  queryKey: ["nfd-avatar", i],
6324
6324
  queryFn: async () => i ? i.startsWith("https://") && !i.includes("/ipfs/") ? i : i.startsWith("ipfs://") || i.includes("/ipfs/") ? await Ti(i) : i : null,
6325
6325
  enabled: !!i,
@@ -6739,13 +6739,13 @@ function uu(e) {
6739
6739
  l
6740
6740
  ]), d = Mi(c), m = ne((g) => {
6741
6741
  if (!g.currentTarget.contains(g.target)) return;
6742
- const x = Ct(g.target), h = qn(x);
6742
+ const w = Ct(g.target), h = qn(w);
6743
6743
  if (!s.current.isFocusWithin && h === Ii(g.nativeEvent)) {
6744
6744
  n && n(g), o && o(!0), s.current.isFocusWithin = !0, d(g);
6745
6745
  let O = g.currentTarget;
6746
- i(x, "focus", (k) => {
6746
+ i(w, "focus", (k) => {
6747
6747
  if (s.current.isFocusWithin && !Ri(O, k.target)) {
6748
- let P = new x.defaultView.FocusEvent("blur", {
6748
+ let P = new w.defaultView.FocusEvent("blur", {
6749
6749
  relatedTarget: k.target
6750
6750
  });
6751
6751
  tu(P, O);
@@ -6800,7 +6800,7 @@ function fu(e) {
6800
6800
  }).current;
6801
6801
  pe(du, []);
6802
6802
  let { addGlobalListener: c, removeAllGlobalListeners: d } = Ni(), { hoverProps: m, triggerHoverEnd: g } = he(() => {
6803
- let x = (k, P) => {
6803
+ let w = (k, P) => {
6804
6804
  if (l.pointerType = P, o || P === "touch" || l.isHovered || !k.currentTarget.contains(k.target)) return;
6805
6805
  l.isHovered = !0;
6806
6806
  let I = k.currentTarget;
@@ -6822,13 +6822,13 @@ function fu(e) {
6822
6822
  }), r && r(!1), i(!1));
6823
6823
  }, O = {};
6824
6824
  return typeof PointerEvent < "u" ? (O.onPointerEnter = (k) => {
6825
- en && k.pointerType === "mouse" || x(k, k.pointerType);
6825
+ en && k.pointerType === "mouse" || w(k, k.pointerType);
6826
6826
  }, O.onPointerLeave = (k) => {
6827
6827
  !o && k.currentTarget.contains(k.target) && h(k, k.pointerType);
6828
6828
  }) : process.env.NODE_ENV === "test" && (O.onTouchStart = () => {
6829
6829
  l.ignoreEmulatedMouseEvents = !0;
6830
6830
  }, O.onMouseEnter = (k) => {
6831
- !l.ignoreEmulatedMouseEvents && !en && x(k, "mouse"), l.ignoreEmulatedMouseEvents = !1;
6831
+ !l.ignoreEmulatedMouseEvents && !en && w(k, "mouse"), l.ignoreEmulatedMouseEvents = !1;
6832
6832
  }, O.onMouseLeave = (k) => {
6833
6833
  !o && k.currentTarget.contains(k.target) && h(k, "mouse");
6834
6834
  }), {
@@ -6872,14 +6872,14 @@ function hu(e = {}) {
6872
6872
  let { focusProps: g } = cu({
6873
6873
  isDisabled: n,
6874
6874
  onFocusChange: m
6875
- }), { focusWithinProps: x } = uu({
6875
+ }), { focusWithinProps: w } = uu({
6876
6876
  isDisabled: !n,
6877
6877
  onFocusWithinChange: m
6878
6878
  });
6879
6879
  return {
6880
6880
  isFocused: s,
6881
6881
  isFocusVisible: l,
6882
- focusProps: n ? x : g
6882
+ focusProps: n ? w : g
6883
6883
  };
6884
6884
  }
6885
6885
  var pu = Object.defineProperty, mu = (e, t, r) => t in e ? pu(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, bn = (e, t, r) => (mu(e, typeof t != "symbol" ? t + "" : t, r), r);
@@ -7058,20 +7058,20 @@ function Wr(e, t = {}, r, n, o) {
7058
7058
  m = qi(m), "className" in c && c.className && typeof c.className == "function" && (c.className = c.className(t)), c["aria-labelledby"] && c["aria-labelledby"] === c.id && (c["aria-labelledby"] = void 0);
7059
7059
  let g = {};
7060
7060
  if (t) {
7061
- let x = !1, h = [];
7062
- for (let [O, k] of Object.entries(t)) typeof k == "boolean" && (x = !0), k === !0 && h.push(O.replace(/([A-Z])/g, (P) => `-${P.toLowerCase()}`));
7063
- if (x) {
7061
+ let w = !1, h = [];
7062
+ for (let [O, k] of Object.entries(t)) typeof k == "boolean" && (w = !0), k === !0 && h.push(O.replace(/([A-Z])/g, (P) => `-${P.toLowerCase()}`));
7063
+ if (w) {
7064
7064
  g["data-headlessui-state"] = h.join(" ");
7065
7065
  for (let O of h) g[`data-${O}`] = "";
7066
7066
  }
7067
7067
  }
7068
7068
  if (Vr(s) && (Object.keys(Pt(c)).length > 0 || Object.keys(Pt(g)).length > 0)) if (!ro(m) || Array.isArray(m) && m.length > 1 || Au(m)) {
7069
- if (Object.keys(Pt(c)).length > 0) throw new Error(['Passing props on "Fragment"!', "", `The current component <${n} /> is rendering a "Fragment".`, "However we need to passthrough the following props:", Object.keys(Pt(c)).concat(Object.keys(Pt(g))).map((x) => ` - ${x}`).join(`
7070
- `), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".', "Render a single element as the child so that we can forward the props onto that element."].map((x) => ` - ${x}`).join(`
7069
+ if (Object.keys(Pt(c)).length > 0) throw new Error(['Passing props on "Fragment"!', "", `The current component <${n} /> is rendering a "Fragment".`, "However we need to passthrough the following props:", Object.keys(Pt(c)).concat(Object.keys(Pt(g))).map((w) => ` - ${w}`).join(`
7070
+ `), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".', "Render a single element as the child so that we can forward the props onto that element."].map((w) => ` - ${w}`).join(`
7071
7071
  `)].join(`
7072
7072
  `));
7073
7073
  } else {
7074
- let x = m.props, h = x == null ? void 0 : x.className, O = typeof h == "function" ? (...I) => es(h(...I), c.className) : es(h, c.className), k = O ? { className: O } : {}, P = zi(m.props, Pt(yn(c, ["ref"])));
7074
+ let w = m.props, h = w == null ? void 0 : w.className, O = typeof h == "function" ? (...I) => es(h(...I), c.className) : es(h, c.className), k = O ? { className: O } : {}, P = zi(m.props, Pt(yn(c, ["ref"])));
7075
7075
  for (let I in g) I in P && delete g[I];
7076
7076
  return Us(m, Object.assign({}, P, g, d, { ref: o(Cu(m), d.ref) }, k));
7077
7077
  }
@@ -7336,7 +7336,7 @@ function Xu(e, t) {
7336
7336
  var r;
7337
7337
  let n = Gt(), o = ra(), s = Yi(), i = yo(), { id: l = `headlessui-label-${n}`, htmlFor: c = s ?? ((r = o.props) == null ? void 0 : r.htmlFor), passive: d = !1, ...m } = e, g = nt(t);
7338
7338
  Ae(() => o.register(l), [l, o.register]);
7339
- let x = ae((k) => {
7339
+ let w = ae((k) => {
7340
7340
  let P = k.currentTarget;
7341
7341
  if (!(k.target !== k.currentTarget && Wu(k.target)) && (ts(P) && k.preventDefault(), o.props && "onClick" in o.props && typeof o.props.onClick == "function" && o.props.onClick(k), ts(P))) {
7342
7342
  let I = document.getElementById(P.htmlFor);
@@ -7348,7 +7348,7 @@ function Xu(e, t) {
7348
7348
  (Ji(I) && (I.type === "file" || I.type === "radio" || I.type === "checkbox") || I.role === "radio" || I.role === "checkbox" || I.role === "switch") && I.click(), I.focus({ preventScroll: !0 });
7349
7349
  }
7350
7350
  }
7351
- }), h = St({ ...o.slot, disabled: i || !1 }), O = { ref: g, ...o.props, id: l, htmlFor: c, onClick: x };
7351
+ }), h = St({ ...o.slot, disabled: i || !1 }), O = { ref: g, ...o.props, id: l, htmlFor: c, onClick: w };
7352
7352
  return d && ("onClick" in O && (delete O.htmlFor, delete O.onClick), "onClick" in m && delete m.onClick), qe()({ ourProps: O, theirProps: m, slot: h, defaultTag: c ? Yu : "div", name: o.name || "Label" });
7353
7353
  }
7354
7354
  let Ju = Ve(Xu), oa = Object.assign(Ju, {});
@@ -7512,7 +7512,7 @@ function ud() {
7512
7512
  return c === d && (c !== 0 || 1 / c === 1 / d) || c !== c && d !== d;
7513
7513
  }
7514
7514
  var r = typeof Object.is == "function" ? Object.is : t, n = e.useSyncExternalStore, o = e.useRef, s = e.useEffect, i = e.useMemo, l = e.useDebugValue;
7515
- return Sn.useSyncExternalStoreWithSelector = function(c, d, m, g, x) {
7515
+ return Sn.useSyncExternalStoreWithSelector = function(c, d, m, g, w) {
7516
7516
  var h = o(null);
7517
7517
  if (h.current === null) {
7518
7518
  var O = { hasValue: !1, value: null };
@@ -7522,16 +7522,16 @@ function ud() {
7522
7522
  function() {
7523
7523
  function P(j) {
7524
7524
  if (!I) {
7525
- if (I = !0, E = j, j = g(j), x !== void 0 && O.hasValue) {
7525
+ if (I = !0, E = j, j = g(j), w !== void 0 && O.hasValue) {
7526
7526
  var H = O.value;
7527
- if (x(H, j))
7527
+ if (w(H, j))
7528
7528
  return N = H;
7529
7529
  }
7530
7530
  return N = j;
7531
7531
  }
7532
7532
  if (H = N, r(E, j)) return H;
7533
7533
  var V = g(j);
7534
- return x !== void 0 && x(H, V) ? (E = j, H) : (E = j, N = V);
7534
+ return w !== void 0 && w(H, V) ? (E = j, H) : (E = j, N = V);
7535
7535
  }
7536
7536
  var I = !1, E, N, M = m === void 0 ? null : m;
7537
7537
  return [
@@ -7543,7 +7543,7 @@ function ud() {
7543
7543
  }
7544
7544
  ];
7545
7545
  },
7546
- [d, m, g, x]
7546
+ [d, m, g, w]
7547
7547
  );
7548
7548
  var k = n(c, h[0], h[1]);
7549
7549
  return s(
@@ -7572,7 +7572,7 @@ function dd() {
7572
7572
  }
7573
7573
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
7574
7574
  var t = K, r = typeof Object.is == "function" ? Object.is : e, n = t.useSyncExternalStore, o = t.useRef, s = t.useEffect, i = t.useMemo, l = t.useDebugValue;
7575
- On.useSyncExternalStoreWithSelector = function(c, d, m, g, x) {
7575
+ On.useSyncExternalStoreWithSelector = function(c, d, m, g, w) {
7576
7576
  var h = o(null);
7577
7577
  if (h.current === null) {
7578
7578
  var O = { hasValue: !1, value: null };
@@ -7582,9 +7582,9 @@ function dd() {
7582
7582
  function() {
7583
7583
  function P(j) {
7584
7584
  if (!I) {
7585
- if (I = !0, E = j, j = g(j), x !== void 0 && O.hasValue) {
7585
+ if (I = !0, E = j, j = g(j), w !== void 0 && O.hasValue) {
7586
7586
  var H = O.value;
7587
- if (x(H, j))
7587
+ if (w(H, j))
7588
7588
  return N = H;
7589
7589
  }
7590
7590
  return N = j;
@@ -7592,7 +7592,7 @@ function dd() {
7592
7592
  if (H = N, r(E, j))
7593
7593
  return H;
7594
7594
  var V = g(j);
7595
- return x !== void 0 && x(H, V) ? (E = j, H) : (E = j, N = V);
7595
+ return w !== void 0 && w(H, V) ? (E = j, H) : (E = j, N = V);
7596
7596
  }
7597
7597
  var I = !1, E, N, M = m === void 0 ? null : m;
7598
7598
  return [
@@ -7604,7 +7604,7 @@ function dd() {
7604
7604
  }
7605
7605
  ];
7606
7606
  },
7607
- [d, m, g, x]
7607
+ [d, m, g, w]
7608
7608
  );
7609
7609
  var k = n(c, h[0], h[1]);
7610
7610
  return s(
@@ -7660,7 +7660,7 @@ function md(e, { allowed: t, disallowed: r } = {}) {
7660
7660
  if (!d) continue;
7661
7661
  let m = c.parentElement;
7662
7662
  for (; m && m !== d.body; ) {
7663
- for (let g of m.children) l.some((x) => g.contains(x)) || i.add(us(g));
7663
+ for (let g of m.children) l.some((w) => g.contains(w)) || i.add(us(g));
7664
7664
  m = m.parentElement;
7665
7665
  }
7666
7666
  }
@@ -7745,7 +7745,7 @@ function kd(e, t, { sorted: r = !0, relativeTo: n = null, skipElements: o = [] }
7745
7745
  if (t & 4) return Math.max(0, i.indexOf(n)) + 1;
7746
7746
  if (t & 8) return i.length - 1;
7747
7747
  throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
7748
- })(), d = t & 32 ? { preventScroll: !0 } : {}, m = 0, g = i.length, x;
7748
+ })(), d = t & 32 ? { preventScroll: !0 } : {}, m = 0, g = i.length, w;
7749
7749
  do {
7750
7750
  if (m >= g || m + g <= 0) return 0;
7751
7751
  let h = c + m;
@@ -7754,9 +7754,9 @@ function kd(e, t, { sorted: r = !0, relativeTo: n = null, skipElements: o = [] }
7754
7754
  if (h < 0) return 3;
7755
7755
  if (h >= g) return 1;
7756
7756
  }
7757
- x = i[h], x == null || x.focus(d), m += l;
7758
- } while (x !== Ui(x));
7759
- return t & 6 && Sd(x) && x.select(), 2;
7757
+ w = i[h], w == null || w.focus(d), m += l;
7758
+ } while (w !== Ui(w));
7759
+ return t & 6 && Sd(w) && w.select(), 2;
7760
7760
  }
7761
7761
  function ga() {
7762
7762
  return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
@@ -7793,8 +7793,8 @@ function Td(e, t, r) {
7793
7793
  if (l.defaultPrevented) return;
7794
7794
  let d = c(l);
7795
7795
  if (d === null || !d.getRootNode().contains(d) || !d.isConnected) return;
7796
- let m = (function g(x) {
7797
- return typeof x == "function" ? g(x()) : Array.isArray(x) || x instanceof Set ? x : [x];
7796
+ let m = (function g(w) {
7797
+ return typeof w == "function" ? g(w()) : Array.isArray(w) || w instanceof Set ? w : [w];
7798
7798
  })(t);
7799
7799
  for (let g of m) if (g !== null && (g.contains(d) || l.composed && l.composedPath().includes(g))) return;
7800
7800
  return !pa(d, So.Loose) && d.tabIndex !== -1 && l.preventDefault(), n.current(l, d);
@@ -7828,12 +7828,12 @@ function Rd(e, { trigger: t, action: r, close: n, select: o }) {
7828
7828
  var d, m;
7829
7829
  let g = s.current;
7830
7830
  if (g === null || (s.current = null, !Qt(c.target)) || Math.abs(c.x - ((d = i.current) != null ? d : c.x)) < ps && Math.abs(c.y - ((m = l.current) != null ? m : c.y)) < ps) return;
7831
- let x = r(c);
7832
- switch (x.kind) {
7831
+ let w = r(c);
7832
+ switch (w.kind) {
7833
7833
  case 0:
7834
7834
  return;
7835
7835
  case 1: {
7836
- c.timeStamp - g > Fd && (o(x.target), n());
7836
+ c.timeStamp - g > Fd && (o(w.target), n());
7837
7837
  break;
7838
7838
  }
7839
7839
  case 2: {
@@ -8000,13 +8000,13 @@ function zd(e) {
8000
8000
  function Gd(e, t, r, n) {
8001
8001
  let [o, s] = ie(r), { hasFlag: i, addFlag: l, removeFlag: c } = Ud(e && o ? 3 : 0), d = ee(!1), m = ee(!1), g = cr();
8002
8002
  return Ae(() => {
8003
- var x;
8003
+ var w;
8004
8004
  if (e) {
8005
8005
  if (r && s(!0), !t) {
8006
8006
  r && l(3);
8007
8007
  return;
8008
8008
  }
8009
- return (x = void 0) == null || x.call(n, r), qd(t, { inFlight: d, prepare() {
8009
+ return (w = void 0) == null || w.call(n, r), qd(t, { inFlight: d, prepare() {
8010
8010
  m.current ? m.current = !1 : m.current = d.current, d.current = !0, !m.current && (r ? (l(3), c(4)) : (l(4), c(2)));
8011
8011
  }, run() {
8012
8012
  m.current ? r ? (c(3), l(4)) : (c(4), l(3)) : r ? c(1) : l(1);
@@ -8151,7 +8151,7 @@ function df(e) {
8151
8151
  }), r == null || r(h, O, k);
8152
8152
  }), g = q.useMemo(() => ({
8153
8153
  setPositionReference: d
8154
- }), []), x = q.useMemo(() => ({
8154
+ }), []), w = q.useMemo(() => ({
8155
8155
  reference: c || n.reference || null,
8156
8156
  floating: n.floating || null,
8157
8157
  domReference: n.reference
@@ -8160,11 +8160,11 @@ function df(e) {
8160
8160
  dataRef: s,
8161
8161
  open: t,
8162
8162
  onOpenChange: m,
8163
- elements: x,
8163
+ elements: w,
8164
8164
  events: i,
8165
8165
  floatingId: o,
8166
8166
  refs: g
8167
- }), [t, m, x, i, o, g]);
8167
+ }), [t, m, w, i, o, g]);
8168
8168
  }
8169
8169
  function ff(e) {
8170
8170
  e === void 0 && (e = {});
@@ -8177,7 +8177,7 @@ function ff(e) {
8177
8177
  floating: null,
8178
8178
  ...e.elements
8179
8179
  }
8180
- }), n = e.rootContext || r, o = n.elements, [s, i] = q.useState(null), [l, c] = q.useState(null), m = (o == null ? void 0 : o.domReference) || s, g = q.useRef(null), x = cf();
8180
+ }), n = e.rootContext || r, o = n.elements, [s, i] = q.useState(null), [l, c] = q.useState(null), m = (o == null ? void 0 : o.domReference) || s, g = q.useRef(null), w = cf();
8181
8181
  to(() => {
8182
8182
  m && (g.current = m);
8183
8183
  }, [m]);
@@ -8217,7 +8217,7 @@ function ff(e) {
8217
8217
  }), [h, P, I, t, n]);
8218
8218
  return to(() => {
8219
8219
  n.dataRef.current.floatingContext = E;
8220
- const N = x == null ? void 0 : x.nodesRef.current.find((M) => M.id === t);
8220
+ const N = w == null ? void 0 : w.nodesRef.current.find((M) => M.id === t);
8221
8221
  N && (N.context = E);
8222
8222
  }), q.useMemo(() => ({
8223
8223
  ...h,
@@ -8254,9 +8254,9 @@ function kn(e, t, r) {
8254
8254
  if (n.has(d) || n.set(d, []), typeof m == "function") {
8255
8255
  var g;
8256
8256
  (g = n.get(d)) == null || g.push(m), i[d] = function() {
8257
- for (var x, h = arguments.length, O = new Array(h), k = 0; k < h; k++)
8257
+ for (var w, h = arguments.length, O = new Array(h), k = 0; k < h; k++)
8258
8258
  O[k] = arguments[k];
8259
- return (x = n.get(d)) == null ? void 0 : x.map((P) => P(...O)).find((P) => P !== void 0);
8259
+ return (w = n.get(d)) == null ? void 0 : w.map((P) => P(...O)).find((P) => P !== void 0);
8260
8260
  };
8261
8261
  }
8262
8262
  } else
@@ -8314,26 +8314,26 @@ const pf = (e) => ({
8314
8314
  } = Ba(e, t), {
8315
8315
  rects: g,
8316
8316
  elements: {
8317
- floating: x
8317
+ floating: w
8318
8318
  }
8319
- } = t, h = r.current[i], O = (d == null ? void 0 : d.current) || x, k = x.clientTop || O.clientTop, P = x.clientTop !== 0, I = O.clientTop !== 0, E = x === O;
8319
+ } = t, h = r.current[i], O = (d == null ? void 0 : d.current) || w, k = w.clientTop || O.clientTop, P = w.clientTop !== 0, I = O.clientTop !== 0, E = w === O;
8320
8320
  if (process.env.NODE_ENV !== "production" && (t.placement.startsWith("bottom") || rf('`placement` side must be "bottom" when using the `inner`', "middleware.")), !h)
8321
8321
  return {};
8322
8322
  const N = {
8323
8323
  ...t,
8324
- ...await oo(-h.offsetTop - x.clientTop - g.reference.height / 2 - h.offsetHeight / 2 - s).fn(t)
8325
- }, M = await un(Ss(N, O.scrollHeight + k + x.clientTop), m), j = await un(N, {
8324
+ ...await oo(-h.offsetTop - w.clientTop - g.reference.height / 2 - h.offsetHeight / 2 - s).fn(t)
8325
+ }, M = await un(Ss(N, O.scrollHeight + k + w.clientTop), m), j = await un(N, {
8326
8326
  ...m,
8327
8327
  elementContext: "reference"
8328
- }), H = dn(0, M.top), V = N.y + H, f = (O.scrollHeight > O.clientHeight ? (w) => w : Ua)(dn(0, O.scrollHeight + (P && E || I ? k * 2 : 0) - H - dn(0, M.bottom)));
8328
+ }), H = dn(0, M.top), V = N.y + H, f = (O.scrollHeight > O.clientHeight ? (x) => x : Ua)(dn(0, O.scrollHeight + (P && E || I ? k * 2 : 0) - H - dn(0, M.bottom)));
8329
8329
  if (O.style.maxHeight = f + "px", O.scrollTop = H, o) {
8330
- const w = O.offsetHeight < h.offsetHeight * Ha(l, r.current.length) - 1 || j.top >= -c || j.bottom >= -c;
8331
- Tn.flushSync(() => o(w));
8330
+ const x = O.offsetHeight < h.offsetHeight * Ha(l, r.current.length) - 1 || j.top >= -c || j.bottom >= -c;
8331
+ Tn.flushSync(() => o(x));
8332
8332
  }
8333
8333
  return n && (n.current = await un(Ss({
8334
8334
  ...N,
8335
8335
  y: V
8336
- }, O.offsetHeight + k + x.clientTop), m)), {
8336
+ }, O.offsetHeight + k + w.clientTop), m)), {
8337
8337
  y: V
8338
8338
  };
8339
8339
  }
@@ -8368,7 +8368,7 @@ function mf(e, t) {
8368
8368
  m.current = null, g.current = null, O.removeEventListener("wheel", h);
8369
8369
  };
8370
8370
  }, [o, r, n.floating, s, i, c]);
8371
- const x = q.useMemo(() => ({
8371
+ const w = q.useMemo(() => ({
8372
8372
  onKeyDown() {
8373
8373
  d.current = !0;
8374
8374
  },
@@ -8392,8 +8392,8 @@ function mf(e, t) {
8392
8392
  }
8393
8393
  }), [n.floating, c, s, i]);
8394
8394
  return q.useMemo(() => o ? {
8395
- floating: x
8396
- } : {}, [o, x]);
8395
+ floating: w
8396
+ } : {}, [o, w]);
8397
8397
  }
8398
8398
  let dr = Oe({ styles: void 0, setReference: () => {
8399
8399
  }, setFloating: () => {
@@ -8430,13 +8430,13 @@ let Os = 4;
8430
8430
  function xf({ children: e, enabled: t = !0 }) {
8431
8431
  let [r, n] = ie(null), [o, s] = ie(0), i = ee(null), [l, c] = ie(null);
8432
8432
  Ef(l);
8433
- let d = t && r !== null && l !== null, { to: m = "bottom", gap: g = 0, offset: x = 0, padding: h = 0, inner: O } = Sf(r, l), [k, P = "center"] = m.split(" ");
8433
+ let d = t && r !== null && l !== null, { to: m = "bottom", gap: g = 0, offset: w = 0, padding: h = 0, inner: O } = Sf(r, l), [k, P = "center"] = m.split(" ");
8434
8434
  Ae(() => {
8435
8435
  d && s(0);
8436
8436
  }, [d]);
8437
- let { refs: I, floatingStyles: E, context: N } = ff({ open: d, placement: k === "selection" ? P === "center" ? "bottom" : `bottom-${P}` : P === "center" ? `${k}` : `${k}-${P}`, strategy: "absolute", transform: !1, middleware: [oo({ mainAxis: k === "selection" ? 0 : g, crossAxis: x }), Qs({ padding: h }), k !== "selection" && _s({ padding: h }), k === "selection" && O ? pf({ ...O, padding: h, overflowRef: i, offset: o, minItemsVisible: Os, referenceOverflowThreshold: h, onFallbackChange(w) {
8437
+ let { refs: I, floatingStyles: E, context: N } = ff({ open: d, placement: k === "selection" ? P === "center" ? "bottom" : `bottom-${P}` : P === "center" ? `${k}` : `${k}-${P}`, strategy: "absolute", transform: !1, middleware: [oo({ mainAxis: k === "selection" ? 0 : g, crossAxis: w }), Qs({ padding: h }), k !== "selection" && _s({ padding: h }), k === "selection" && O ? pf({ ...O, padding: h, overflowRef: i, offset: o, minItemsVisible: Os, referenceOverflowThreshold: h, onFallbackChange(x) {
8438
8438
  var b, S;
8439
- if (!w) return;
8439
+ if (!x) return;
8440
8440
  let C = N.elements.floating;
8441
8441
  if (!C) return;
8442
8442
  let p = parseFloat(getComputedStyle(C).scrollPaddingBottom) || 0, y = Math.min(Os, C.childElementCount), T = 0, A = 0;
@@ -8452,12 +8452,12 @@ function xf({ children: e, enabled: t = !0 }) {
8452
8452
  let R = T * y - A + p;
8453
8453
  return F >= R ? F : R;
8454
8454
  });
8455
- } }) : null, Wa({ padding: h, apply({ availableWidth: w, availableHeight: b, elements: S }) {
8456
- Object.assign(S.floating.style, { overflow: "auto", maxWidth: `${w}px`, maxHeight: `min(var(--anchor-max-height, 100vh), ${b}px)` });
8455
+ } }) : null, Wa({ padding: h, apply({ availableWidth: x, availableHeight: b, elements: S }) {
8456
+ Object.assign(S.floating.style, { overflow: "auto", maxWidth: `${x}px`, maxHeight: `min(var(--anchor-max-height, 100vh), ${b}px)` });
8457
8457
  } })].filter(Boolean), whileElementsMounted: Ks }), [M = k, j = P] = N.placement.split("-");
8458
8458
  k === "selection" && (M = "selection");
8459
- let H = he(() => ({ anchor: [M, j].filter(Boolean).join(" ") }), [M, j]), V = mf(N, { overflowRef: i, onChange: s }), { getReferenceProps: a, getFloatingProps: u } = hf([V]), f = ae((w) => {
8460
- c(w), I.setFloating(w);
8459
+ let H = he(() => ({ anchor: [M, j].filter(Boolean).join(" ") }), [M, j]), V = mf(N, { overflowRef: i, onChange: s }), { getReferenceProps: a, getFloatingProps: u } = hf([V]), f = ae((x) => {
8460
+ c(x), I.setFloating(x);
8461
8461
  });
8462
8462
  return q.createElement(Oo.Provider, { value: n }, q.createElement(dr.Provider, { value: { setFloating: f, setReference: I.setReference, styles: E, getReferenceProps: a, getFloatingProps: u, slot: H } }, e));
8463
8463
  }
@@ -8488,13 +8488,13 @@ function Cn(e, t, r = void 0) {
8488
8488
  if (!d) return [r, null];
8489
8489
  let m = ks(c, d);
8490
8490
  return [m, (g) => {
8491
- let x = ya(c);
8491
+ let w = ya(c);
8492
8492
  {
8493
- let h = x.map((O) => window.getComputedStyle(d).getPropertyValue(O));
8493
+ let h = w.map((O) => window.getComputedStyle(d).getPropertyValue(O));
8494
8494
  n.requestAnimationFrame(function O() {
8495
8495
  n.nextFrame(O);
8496
8496
  let k = !1;
8497
- for (let [I, E] of x.entries()) {
8497
+ for (let [I, E] of w.entries()) {
8498
8498
  let N = window.getComputedStyle(d).getPropertyValue(E);
8499
8499
  if (h[I] !== N) {
8500
8500
  h[I] = N, k = !0;
@@ -8629,13 +8629,13 @@ function If(e) {
8629
8629
  let Ea = Rr, Nf = Ve(function(e, t) {
8630
8630
  let { ownerDocument: r = null, ...n } = e, o = ee(null), s = nt(Gu((h) => {
8631
8631
  o.current = h;
8632
- }), t), i = eo(o.current), l = r ?? i, c = If(l), d = me(Lf), m = cr(), g = Pf(), x = qe();
8632
+ }), t), i = eo(o.current), l = r ?? i, c = If(l), d = me(Lf), m = cr(), g = Pf(), w = qe();
8633
8633
  return xa(() => {
8634
8634
  var h;
8635
8635
  c && c.childNodes.length <= 0 && ((h = c.parentElement) == null || h.removeChild(c));
8636
8636
  }), !c || !g ? null : Xs(K.createElement("div", { "data-headlessui-portal": "", ref: (h) => {
8637
8637
  m.dispose(), d && h && m.add(d.register(h));
8638
- } }, x({ ourProps: { ref: s }, theirProps: n, slot: {}, defaultTag: Ea, name: "Portal" })), c);
8638
+ } }, w({ ourProps: { ref: s }, theirProps: n, slot: {}, defaultTag: Ea, name: "Portal" })), c);
8639
8639
  });
8640
8640
  function $f(e, t) {
8641
8641
  let r = nt(t), { enabled: n = !0, ownerDocument: o, ...s } = e, i = qe();
@@ -8722,19 +8722,19 @@ let Vf = { 1(e) {
8722
8722
  if (t.focus === fe.Previous) {
8723
8723
  let m = e.activeOptionIndex;
8724
8724
  if (m !== null) {
8725
- let g = e.options[m].dataRef.current.domRef, x = qr(t, { resolveItems: () => e.options, resolveActiveIndex: () => e.activeOptionIndex, resolveId: (h) => h.id, resolveDisabled: (h) => h.dataRef.current.disabled });
8726
- if (x !== null) {
8727
- let h = e.options[x].dataRef.current.domRef;
8728
- if (((n = g.current) == null ? void 0 : n.previousElementSibling) === h.current || ((o = h.current) == null ? void 0 : o.previousElementSibling) === null) return { ...l, activeOptionIndex: x };
8725
+ let g = e.options[m].dataRef.current.domRef, w = qr(t, { resolveItems: () => e.options, resolveActiveIndex: () => e.activeOptionIndex, resolveId: (h) => h.id, resolveDisabled: (h) => h.dataRef.current.disabled });
8726
+ if (w !== null) {
8727
+ let h = e.options[w].dataRef.current.domRef;
8728
+ if (((n = g.current) == null ? void 0 : n.previousElementSibling) === h.current || ((o = h.current) == null ? void 0 : o.previousElementSibling) === null) return { ...l, activeOptionIndex: w };
8729
8729
  }
8730
8730
  }
8731
8731
  } else if (t.focus === fe.Next) {
8732
8732
  let m = e.activeOptionIndex;
8733
8733
  if (m !== null) {
8734
- let g = e.options[m].dataRef.current.domRef, x = qr(t, { resolveItems: () => e.options, resolveActiveIndex: () => e.activeOptionIndex, resolveId: (h) => h.id, resolveDisabled: (h) => h.dataRef.current.disabled });
8735
- if (x !== null) {
8736
- let h = e.options[x].dataRef.current.domRef;
8737
- if (((s = g.current) == null ? void 0 : s.nextElementSibling) === h.current || ((i = h.current) == null ? void 0 : i.nextElementSibling) === null) return { ...l, activeOptionIndex: x };
8734
+ let g = e.options[m].dataRef.current.domRef, w = qr(t, { resolveItems: () => e.options, resolveActiveIndex: () => e.activeOptionIndex, resolveId: (h) => h.id, resolveDisabled: (h) => h.dataRef.current.disabled });
8735
+ if (w !== null) {
8736
+ let h = e.options[w].dataRef.current.domRef;
8737
+ if (((s = g.current) == null ? void 0 : s.nextElementSibling) === h.current || ((i = h.current) == null ? void 0 : i.nextElementSibling) === null) return { ...l, activeOptionIndex: w };
8738
8738
  }
8739
8739
  }
8740
8740
  }
@@ -8883,24 +8883,24 @@ function Mr(e) {
8883
8883
  }
8884
8884
  let Qf = Rr;
8885
8885
  function _f(e, t) {
8886
- let r = Gt(), n = yo(), { value: o, defaultValue: s, form: i, name: l, onChange: c, by: d, invalid: m = !1, disabled: g = n || !1, horizontal: x = !1, multiple: h = !1, __demoMode: O = !1, ...k } = e;
8887
- const P = x ? "horizontal" : "vertical";
8886
+ let r = Gt(), n = yo(), { value: o, defaultValue: s, form: i, name: l, onChange: c, by: d, invalid: m = !1, disabled: g = n || !1, horizontal: w = !1, multiple: h = !1, __demoMode: O = !1, ...k } = e;
8887
+ const P = w ? "horizontal" : "vertical";
8888
8888
  let I = nt(t), E = Pu(s), [N = h ? [] : void 0, M] = Tu(o, c, E), j = Aa({ id: r, __demoMode: O }), H = ee({ static: !1, hold: !1 }), V = ee(/* @__PURE__ */ new Map()), a = ed(d), u = ne((G) => rt(f.mode, { [xt.Multi]: () => N.some((X) => a(X, G)), [xt.Single]: () => a(N, G) }), [N]), f = St({ value: N, disabled: g, invalid: m, mode: h ? xt.Multi : xt.Single, orientation: P, onChange: M, compare: a, isSelected: u, optionsPropsRef: H, listRef: V });
8889
8889
  Ae(() => {
8890
8890
  j.state.dataRef.current = f;
8891
8891
  }, [f]);
8892
- let w = Re(j, (G) => G.listboxState), b = Eo.get(null), S = Re(b, ne((G) => b.selectors.isTop(G, r), [b, r])), [C, p] = Re(j, (G) => [G.buttonElement, G.optionsElement]);
8892
+ let x = Re(j, (G) => G.listboxState), b = Eo.get(null), S = Re(b, ne((G) => b.selectors.isTop(G, r), [b, r])), [C, p] = Re(j, (G) => [G.buttonElement, G.optionsElement]);
8893
8893
  Td(S, [C, p], (G, X) => {
8894
8894
  j.send({ type: ka.CloseListbox }), pa(X, So.Loose) || (G.preventDefault(), C == null || C.focus());
8895
8895
  });
8896
- let y = St({ open: w === Se.Open, disabled: g, invalid: m, value: N }), [T, A] = Ku({ inherit: !0 }), F = { ref: I }, R = ne(() => {
8896
+ let y = St({ open: x === Se.Open, disabled: g, invalid: m, value: N }), [T, A] = Ku({ inherit: !0 }), F = { ref: I }, R = ne(() => {
8897
8897
  if (E !== void 0) return M == null ? void 0 : M(E);
8898
8898
  }, [M, E]), U = qe();
8899
- return K.createElement(A, { value: T, props: { htmlFor: C == null ? void 0 : C.id }, slot: { open: w === Se.Open, disabled: g } }, K.createElement(xf, null, K.createElement(Ca.Provider, { value: j }, K.createElement(ln.Provider, { value: f }, K.createElement(Cf, { value: rt(w, { [Se.Open]: kr.Open, [Se.Closed]: kr.Closed }) }, l != null && N != null && K.createElement(Du, { disabled: g, data: { [l]: N }, form: i, onReset: R }), U({ ourProps: F, theirProps: k, slot: y, defaultTag: Qf, name: "Listbox" }))))));
8899
+ return K.createElement(A, { value: T, props: { htmlFor: C == null ? void 0 : C.id }, slot: { open: x === Se.Open, disabled: g } }, K.createElement(xf, null, K.createElement(Ca.Provider, { value: j }, K.createElement(ln.Provider, { value: f }, K.createElement(Cf, { value: rt(x, { [Se.Open]: kr.Open, [Se.Closed]: kr.Closed }) }, l != null && N != null && K.createElement(Du, { disabled: g, data: { [l]: N }, form: i, onReset: R }), U({ ourProps: F, theirProps: k, slot: y, defaultTag: Qf, name: "Listbox" }))))));
8900
8900
  }
8901
8901
  let Kf = "button";
8902
8902
  function Yf(e, t) {
8903
- let r = Gt(), n = Yi(), o = Mr("Listbox.Button"), s = Ao("Listbox.Button"), { id: i = n || `headlessui-listbox-button-${r}`, disabled: l = o.disabled || !1, autoFocus: c = !1, ...d } = e, m = nt(t, vf(), s.actions.setButtonElement), g = bf(), [x, h, O] = Re(s, (p) => [p.listboxState, p.buttonElement, p.optionsElement]), k = x === Se.Open;
8903
+ let r = Gt(), n = Yi(), o = Mr("Listbox.Button"), s = Ao("Listbox.Button"), { id: i = n || `headlessui-listbox-button-${r}`, disabled: l = o.disabled || !1, autoFocus: c = !1, ...d } = e, m = nt(t, vf(), s.actions.setButtonElement), g = bf(), [w, h, O] = Re(s, (p) => [p.listboxState, p.buttonElement, p.optionsElement]), k = w === Se.Open;
8904
8904
  Rd(k, { trigger: h, action: ne((p) => {
8905
8905
  if (h != null && h.contains(p.target)) return Gr.Ignore;
8906
8906
  let y = p.target.closest('[role="option"]:not([data-disabled])');
@@ -8928,20 +8928,20 @@ function Yf(e, t) {
8928
8928
  }), E = rd((p) => {
8929
8929
  var y;
8930
8930
  s.state.listboxState === Se.Open ? (Kr(() => s.actions.closeListbox()), (y = s.state.buttonElement) == null || y.focus({ preventScroll: !0 })) : (p.preventDefault(), s.actions.openListbox({ focus: fe.Nothing }));
8931
- }), N = ae((p) => p.preventDefault()), M = na([i]), j = qu(), { isFocusVisible: H, focusProps: V } = hu({ autoFocus: c }), { isHovered: a, hoverProps: u } = fu({ isDisabled: l }), { pressed: f, pressProps: w } = wu({ disabled: l }), b = St({ open: x === Se.Open, active: f || x === Se.Open, disabled: l, invalid: o.invalid, value: o.value, hover: a, focus: H, autofocus: c }), S = Re(s, (p) => p.listboxState === Se.Open), C = Gi(g(), { ref: m, id: i, type: Id(e, h), "aria-haspopup": "listbox", "aria-controls": O == null ? void 0 : O.id, "aria-expanded": S, "aria-labelledby": M, "aria-describedby": j, disabled: l || void 0, autoFocus: c, onKeyDown: P, onKeyUp: I, onKeyPress: N }, E, V, u, w);
8931
+ }), N = ae((p) => p.preventDefault()), M = na([i]), j = qu(), { isFocusVisible: H, focusProps: V } = hu({ autoFocus: c }), { isHovered: a, hoverProps: u } = fu({ isDisabled: l }), { pressed: f, pressProps: x } = wu({ disabled: l }), b = St({ open: w === Se.Open, active: f || w === Se.Open, disabled: l, invalid: o.invalid, value: o.value, hover: a, focus: H, autofocus: c }), S = Re(s, (p) => p.listboxState === Se.Open), C = Gi(g(), { ref: m, id: i, type: Id(e, h), "aria-haspopup": "listbox", "aria-controls": O == null ? void 0 : O.id, "aria-expanded": S, "aria-labelledby": M, "aria-describedby": j, disabled: l || void 0, autoFocus: c, onKeyDown: P, onKeyUp: I, onKeyPress: N }, E, V, u, x);
8932
8932
  return qe()({ ourProps: C, theirProps: d, slot: b, defaultTag: Kf, name: "Listbox.Button" });
8933
8933
  }
8934
8934
  let Ta = Oe(!1), Xf = "div", Jf = Yn.RenderStrategy | Yn.Static;
8935
8935
  function Zf(e, t) {
8936
8936
  let r = Gt(), { id: n = `headlessui-listbox-options-${r}`, anchor: o, portal: s = !1, modal: i = !0, transition: l = !1, ...c } = e, d = gf(o), [m, g] = ie(null);
8937
8937
  d && (s = !0);
8938
- let x = Mr("Listbox.Options"), h = Ao("Listbox.Options"), [O, k, P, I] = Re(h, (D) => [D.listboxState, D.buttonElement, D.optionsElement, D.__demoMode]), E = eo(k), N = eo(P), M = kf(), [j, H] = Gd(l, m, M !== null ? (M & kr.Open) === kr.Open : O === Se.Open);
8938
+ let w = Mr("Listbox.Options"), h = Ao("Listbox.Options"), [O, k, P, I] = Re(h, (D) => [D.listboxState, D.buttonElement, D.optionsElement, D.__demoMode]), E = eo(k), N = eo(P), M = kf(), [j, H] = Gd(l, m, M !== null ? (M & kr.Open) === kr.Open : O === Se.Open);
8939
8939
  gd(j, k, h.actions.closeListbox);
8940
8940
  let V = I ? !1 : i && O === Se.Open;
8941
8941
  Bd(V, N);
8942
8942
  let a = I ? !1 : i && O === Se.Open;
8943
8943
  md(a, { allowed: ne(() => [k, P], [k, P]) });
8944
- let u = Re(h, h.selectors.didButtonMove) ? !1 : j, f = Re(h, h.selectors.hasFrozenValue) && !e.static, w = wa(f, x.value), b = ne((D) => x.compare(w, D), [x.compare, w]), S = Re(h, (D) => {
8944
+ let u = Re(h, h.selectors.didButtonMove) ? !1 : j, f = Re(h, h.selectors.hasFrozenValue) && !e.static, x = wa(f, w.value), b = ne((D) => w.compare(x, D), [w.compare, x]), S = Re(h, (D) => {
8945
8945
  var te;
8946
8946
  if (d == null || !((te = d == null ? void 0 : d.to) != null && te.includes("selection"))) return null;
8947
8947
  let We = D.options.findIndex((le) => b(le.dataRef.current.value));
@@ -8949,7 +8949,7 @@ function Zf(e, t) {
8949
8949
  }), C = (() => {
8950
8950
  if (d == null) return;
8951
8951
  if (S === null) return { ...d, inner: void 0 };
8952
- let D = Array.from(x.listRef.current.values());
8952
+ let D = Array.from(w.listRef.current.values());
8953
8953
  return { ...d, inner: { listRef: { current: D }, index: S } };
8954
8954
  })(), [p, y] = wf(C), T = yf(), A = nt(t, d ? p : null, h.actions.setOptionsElement, g), F = cr();
8955
8955
  pe(() => {
@@ -8964,9 +8964,9 @@ function Zf(e, t) {
8964
8964
  case ye.Enter:
8965
8965
  D.preventDefault(), D.stopPropagation(), h.actions.selectActiveOption();
8966
8966
  break;
8967
- case rt(x.orientation, { vertical: ye.ArrowDown, horizontal: ye.ArrowRight }):
8967
+ case rt(w.orientation, { vertical: ye.ArrowDown, horizontal: ye.ArrowRight }):
8968
8968
  return D.preventDefault(), D.stopPropagation(), h.actions.goToOption({ focus: fe.Next });
8969
- case rt(x.orientation, { vertical: ye.ArrowUp, horizontal: ye.ArrowLeft }):
8969
+ case rt(w.orientation, { vertical: ye.ArrowUp, horizontal: ye.ArrowLeft }):
8970
8970
  return D.preventDefault(), D.stopPropagation(), h.actions.goToOption({ focus: fe.Previous });
8971
8971
  case ye.Home:
8972
8972
  case ye.PageUp:
@@ -8987,22 +8987,22 @@ function Zf(e, t) {
8987
8987
  }), U = Re(h, (D) => {
8988
8988
  var te;
8989
8989
  return (te = D.buttonElement) == null ? void 0 : te.id;
8990
- }), G = St({ open: O === Se.Open }), X = Gi(d ? T() : {}, { id: n, ref: A, "aria-activedescendant": Re(h, h.selectors.activeDescendantId), "aria-multiselectable": x.mode === xt.Multi ? !0 : void 0, "aria-labelledby": U, "aria-orientation": x.orientation, onKeyDown: R, role: "listbox", tabIndex: O === Se.Open ? 0 : void 0, style: { ...c.style, ...y, "--button-width": td(j, k, !0).width }, ...zd(H) }), se = qe(), L = he(() => x.mode === xt.Multi ? x : { ...x, isSelected: b }, [x, b]);
8990
+ }), G = St({ open: O === Se.Open }), X = Gi(d ? T() : {}, { id: n, ref: A, "aria-activedescendant": Re(h, h.selectors.activeDescendantId), "aria-multiselectable": w.mode === xt.Multi ? !0 : void 0, "aria-labelledby": U, "aria-orientation": w.orientation, onKeyDown: R, role: "listbox", tabIndex: O === Se.Open ? 0 : void 0, style: { ...c.style, ...y, "--button-width": td(j, k, !0).width }, ...zd(H) }), se = qe(), L = he(() => w.mode === xt.Multi ? w : { ...w, isSelected: b }, [w, b]);
8991
8991
  return K.createElement(Hf, { enabled: s ? e.static || j : !1, ownerDocument: E }, K.createElement(ln.Provider, { value: L }, se({ ourProps: X, theirProps: c, slot: G, defaultTag: Xf, features: Jf, visible: u, name: "Listbox.Options" })));
8992
8992
  }
8993
8993
  let eh = "div";
8994
8994
  function th(e, t) {
8995
- let r = Gt(), { id: n = `headlessui-listbox-option-${r}`, disabled: o = !1, value: s, ...i } = e, l = me(Ta) === !0, c = Mr("Listbox.Option"), d = Ao("Listbox.Option"), m = Re(d, (f) => d.selectors.isActive(f, n)), g = c.isSelected(s), x = ee(null), h = zf(x), O = ur({ disabled: o, value: s, domRef: x, get textValue() {
8995
+ let r = Gt(), { id: n = `headlessui-listbox-option-${r}`, disabled: o = !1, value: s, ...i } = e, l = me(Ta) === !0, c = Mr("Listbox.Option"), d = Ao("Listbox.Option"), m = Re(d, (f) => d.selectors.isActive(f, n)), g = c.isSelected(s), w = ee(null), h = zf(w), O = ur({ disabled: o, value: s, domRef: w, get textValue() {
8996
8996
  return h();
8997
- } }), k = nt(t, x, (f) => {
8997
+ } }), k = nt(t, w, (f) => {
8998
8998
  f ? c.listRef.current.set(n, f) : c.listRef.current.delete(n);
8999
8999
  }), P = Re(d, (f) => d.selectors.shouldScrollIntoView(f, n));
9000
9000
  Ae(() => {
9001
9001
  if (P) return Me().requestAnimationFrame(() => {
9002
- var f, w;
9003
- (w = (f = x.current) == null ? void 0 : f.scrollIntoView) == null || w.call(f, { block: "nearest" });
9002
+ var f, x;
9003
+ (x = (f = w.current) == null ? void 0 : f.scrollIntoView) == null || x.call(f, { block: "nearest" });
9004
9004
  });
9005
- }, [P, x]), Ae(() => {
9005
+ }, [P, w]), Ae(() => {
9006
9006
  if (!l) return d.actions.registerOption(n, O), () => d.actions.unregisterOption(n);
9007
9007
  }, [O, n, l]);
9008
9008
  let I = ae((f) => {
@@ -9066,7 +9066,7 @@ function ch({ className: e, scale: t = 0.85 }) {
9066
9066
  }
9067
9067
  function uh({ children: e }) {
9068
9068
  var se;
9069
- const { activeAddress: t, activeWallet: r } = Ot(), { theme: n, resolvedTheme: o } = Nr(), { openDialog: s, closeDialog: i, panels: l } = rn(), [c, d] = ie(!1), [m, g] = ie(null), [x, h] = ie(!1), [O, k] = ie(() => {
9069
+ const { activeAddress: t, activeWallet: r } = Ot(), { theme: n, resolvedTheme: o } = Nr(), { openDialog: s, closeDialog: i, panels: l } = rn(), [c, d] = ie(!1), [m, g] = ie(null), [w, h] = ie(!1), [O, k] = ie(() => {
9070
9070
  const L = localStorage.getItem("uwui:balance-preference");
9071
9071
  return L ? L === "available" : !1;
9072
9072
  }), P = n === "system" ? void 0 : n, I = Ai({ enabled: !!t }), E = ((se = I.data) == null ? void 0 : se.name) ?? null, { data: N } = lh({ enabled: !!t }), M = K.useMemo(() => !N || N.amount === void 0 ? null : Number(N.amount) / 1e6, [N]), j = K.useMemo(() => {
@@ -9082,9 +9082,9 @@ function uh({ children: e }) {
9082
9082
  placement: "bottom-end",
9083
9083
  middleware: [oo(8), _s(), Qs()],
9084
9084
  whileElementsMounted: Ks
9085
- }), f = zs(u), w = Gs(u, { outsidePressEvent: "mousedown" }), { getReferenceProps: b, getFloatingProps: S } = qs([
9085
+ }), f = zs(u), x = Gs(u, { outsidePressEvent: "mousedown" }), { getReferenceProps: b, getFloatingProps: S } = qs([
9086
9086
  f,
9087
- w
9087
+ x
9088
9088
  ]), C = An(), p = () => {
9089
9089
  t && (navigator.clipboard.writeText(t), h(!0), setTimeout(() => h(!1), 2e3));
9090
9090
  }, y = async () => {
@@ -9388,7 +9388,7 @@ function uh({ children: e }) {
9388
9388
  onClick: p,
9389
9389
  className: "flex-1 py-2 px-4 bg-[var(--wui-color-bg-tertiary)] text-[var(--wui-color-text-secondary)] font-medium rounded-xl hover:brightness-90 transition-all text-sm flex items-center justify-center",
9390
9390
  title: "Copy address",
9391
- children: x ? /* @__PURE__ */ re(et, { children: [
9391
+ children: w ? /* @__PURE__ */ re(et, { children: [
9392
9392
  /* @__PURE__ */ $(
9393
9393
  "svg",
9394
9394
  {