@framework-m/ui 0.4.0 → 0.5.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/index.js CHANGED
@@ -1,12 +1,12 @@
1
- var Fi = Object.defineProperty;
2
- var Vi = (e, t, n) => t in e ? Fi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var Mr = (e, t, n) => Vi(e, typeof t != "symbol" ? t + "" : t, n);
1
+ var Vi = Object.defineProperty;
2
+ var Pi = (e, t, n) => t in e ? Vi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var Mr = (e, t, n) => Pi(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import { jsx as y, jsxs as se, Fragment as Fn } from "react/jsx-runtime";
5
5
  import * as Eo from "react";
6
- import Z, { createContext as nn, useState as _t, useEffect as tt, useContext as Vn, useCallback as ws, useLayoutEffect as Pi, useRef as kt, useSyncExternalStore as Ns, useId as xs, Children as Tn, isValidElement as Jo, cloneElement as _n, forwardRef as Ts, memo as zi, useMemo as $o } from "react";
6
+ import Z, { createContext as nn, useState as _t, useEffect as nt, useContext as Vn, useCallback as Ns, useLayoutEffect as Wi, useRef as kt, useSyncExternalStore as xs, useId as Ts, Children as Tn, isValidElement as Jo, cloneElement as _n, forwardRef as _s, memo as zi, useMemo as $o } from "react";
7
7
  import { createPortal as Li } from "react-dom";
8
- const _s = nn(null), wo = "framework-m-theme";
9
- function Wi() {
8
+ const Cs = nn(null), wo = "framework-m-theme";
9
+ function Bi() {
10
10
  const e = localStorage.getItem(wo);
11
11
  return e === "light" || e === "dark" ? e : window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
12
12
  }
@@ -14,11 +14,11 @@ function Ir(e) {
14
14
  const t = document.documentElement;
15
15
  e === "dark" ? t.classList.add("dark") : t.classList.remove("dark");
16
16
  }
17
- function Au({ children: e }) {
18
- const [t, n] = _t(Wi);
19
- tt(() => {
17
+ function Ru({ children: e }) {
18
+ const [t, n] = _t(Bi);
19
+ nt(() => {
20
20
  Ir(t);
21
- }, [t]), tt(() => {
21
+ }, [t]), nt(() => {
22
22
  const i = window.matchMedia("(prefers-color-scheme: dark)"), a = (l) => {
23
23
  localStorage.getItem(wo) || n(l.matches ? "dark" : "light");
24
24
  };
@@ -29,15 +29,15 @@ function Au({ children: e }) {
29
29
  }, s = { theme: t, setTheme: o, toggleTheme: () => {
30
30
  o(t === "light" ? "dark" : "light");
31
31
  } };
32
- return /* @__PURE__ */ y(_s.Provider, { value: s, children: e });
32
+ return /* @__PURE__ */ y(Cs.Provider, { value: s, children: e });
33
33
  }
34
- function Cs() {
35
- const e = Vn(_s);
34
+ function Os() {
35
+ const e = Vn(Cs);
36
36
  if (!e)
37
37
  throw new Error("useTheme must be used within ThemeProvider");
38
38
  return e;
39
39
  }
40
- function Bi() {
40
+ function ji() {
41
41
  return /* @__PURE__ */ se(
42
42
  "svg",
43
43
  {
@@ -64,7 +64,7 @@ function Bi() {
64
64
  }
65
65
  );
66
66
  }
67
- function ji() {
67
+ function Hi() {
68
68
  return /* @__PURE__ */ y(
69
69
  "svg",
70
70
  {
@@ -81,8 +81,8 @@ function ji() {
81
81
  }
82
82
  );
83
83
  }
84
- function Ru() {
85
- const { theme: e, toggleTheme: t } = Cs();
84
+ function ku() {
85
+ const { theme: e, toggleTheme: t } = Os();
86
86
  return /* @__PURE__ */ se(
87
87
  "button",
88
88
  {
@@ -92,7 +92,7 @@ function Ru() {
92
92
  title: `Current theme: ${e}`,
93
93
  type: "button",
94
94
  children: [
95
- e === "light" ? /* @__PURE__ */ y(ji, {}) : /* @__PURE__ */ y(Bi, {}),
95
+ e === "light" ? /* @__PURE__ */ y(Hi, {}) : /* @__PURE__ */ y(ji, {}),
96
96
  /* @__PURE__ */ y("style", { children: `
97
97
  .theme-toggle {
98
98
  display: flex;
@@ -181,12 +181,12 @@ const ut = {
181
181
  name: "exit",
182
182
  priority: 5
183
183
  }
184
- }, Hi = Object.keys(Me).length, er = (e, t) => {
184
+ }, Ui = Object.keys(Me).length, er = (e, t) => {
185
185
  const n = {};
186
186
  for (const o in e) o in t || (n[o] = e[o]);
187
- for (const o in t) Os(n, e, t, o);
187
+ for (const o in t) As(n, e, t, o);
188
188
  return n;
189
- }, Ui = (e, t, n) => {
189
+ }, Ki = (e, t, n) => {
190
190
  let o = null;
191
191
  if (!e && !t) return [n, o];
192
192
  if (e && !t) return [er(e, n), o];
@@ -197,10 +197,10 @@ const ut = {
197
197
  const i = t[s];
198
198
  i !== void 0 && (r[s] = i);
199
199
  }
200
- for (const s in n) Os(r, e, n, s), t && s in t && (o || (o = {}), o[s] = n[s]);
200
+ for (const s in n) As(r, e, n, s), t && s in t && (o || (o = {}), o[s] = n[s]);
201
201
  return [r, o];
202
202
  };
203
- function Os(e, t, n, o) {
203
+ function As(e, t, n, o) {
204
204
  let r = n[o];
205
205
  if (t && o in t && (o in Me || o[0] === "$") && r && typeof r == "object") {
206
206
  const s = t[o];
@@ -223,7 +223,7 @@ function No(e) {
223
223
  }
224
224
  return t;
225
225
  }
226
- const to = /* @__PURE__ */ new WeakMap(), Ki = (e, t = "") => {
226
+ const to = /* @__PURE__ */ new WeakMap(), Gi = (e, t = "") => {
227
227
  "use no memo";
228
228
  const n = Z.createContext, o = Z.useMemo, r = Z.useContext, s = n(e), i = s.Provider, a = s, l = /* @__PURE__ */ new Map(), d = n(t);
229
229
  function u(b) {
@@ -251,7 +251,7 @@ const to = /* @__PURE__ */ new WeakMap(), Ki = (e, t = "") => {
251
251
  return r(h);
252
252
  };
253
253
  return a.Provider = m, a.props = e, a.context = s, a.useStyledContext = f, a;
254
- }, Sn = Ki({
254
+ }, Sn = Gi({
255
255
  disableSSR: void 0,
256
256
  inText: !1,
257
257
  language: null,
@@ -259,8 +259,8 @@ const to = /* @__PURE__ */ new WeakMap(), Ki = (e, t = "") => {
259
259
  setParentFocusState: null,
260
260
  insets: null
261
261
  }), Dr = nn(null);
262
- function Gi(e, t) {
263
- return ws((n) => {
262
+ function Yi(e, t) {
263
+ return Ns((n) => {
264
264
  e((o) => {
265
265
  const r = typeof n == "function" ? n(o) : n, s = xo(o, r);
266
266
  return process.env.NODE_ENV === "development" && t && s !== o && (console.groupCollapsed("setStateShallow CHANGE", "=>", s), console.info("previously", o), console.trace(), console.groupEnd()), s;
@@ -268,52 +268,52 @@ function Gi(e, t) {
268
268
  }, [e, t]);
269
269
  }
270
270
  function xo(e, t) {
271
- return !e || !t || As(e, t) ? e || t : {
271
+ return !e || !t || Rs(e, t) ? e || t : {
272
272
  ...e,
273
273
  ...t
274
274
  };
275
275
  }
276
- function As(e, t) {
276
+ function Rs(e, t) {
277
277
  for (const n in t) if (e[n] !== t[n]) return !1;
278
278
  return !0;
279
279
  }
280
- const At = !0, Rs = typeof window < "u", Pn = !Rs, Ct = Rs, ke = Pn ? tt : Pi;
280
+ const At = !0, ks = typeof window < "u", Pn = !ks, Ct = ks, ke = Pn ? nt : Wi;
281
281
  process.env.TEST_NATIVE_PLATFORM;
282
- const ks = "web", Ms = "t_", qt = process.env.NODE_ENV === "development" ? `Can't find Tamagui configuration.
282
+ const Ms = "web", Is = "t_", qt = process.env.NODE_ENV === "development" ? `Can't find Tamagui configuration.
283
283
 
284
284
  Most of the time this is due to having mis-matched versions of Tamagui dependencies, or bundlers somehow duplicating them.
285
285
  First step is to ensure every "tamagui" and "@tamagui/*" dependency is on the same version, we have a CLI tool to help:
286
286
 
287
287
  npx @tamagui/cli check
288
288
  ` : "Missing theme.";
289
- let Is, Ds = !1;
290
- const Yi = process.env.NODE_ENV === "development" ? `
289
+ let Ds, Fs = !1;
290
+ const Xi = process.env.NODE_ENV === "development" ? `
291
291
  Haven't called createTamagui yet. ${qt}
292
- ` : "❌ Error 001", tr = () => Is || (globalThis.__tamaguiConfig ? (process.env.NODE_ENV === "development" && !globalThis.__tamaguiHasWarnedGlobalFallback && !globalThis.__tamaguiPendingCheck && (globalThis.__tamaguiPendingCheck = !0, setTimeout(() => {
293
- !Ds && !globalThis.__tamaguiHasWarnedGlobalFallback && (globalThis.__tamaguiHasWarnedGlobalFallback = !0, console.warn("Tamagui: Using global config fallback. This may indicate duplicate tamagui instances (e.g., from Vite SSR bundling). This is handled automatically, but may cause issues.")), globalThis.__tamaguiPendingCheck = !1;
292
+ ` : "❌ Error 001", tr = () => Ds || (globalThis.__tamaguiConfig ? (process.env.NODE_ENV === "development" && !globalThis.__tamaguiHasWarnedGlobalFallback && !globalThis.__tamaguiPendingCheck && (globalThis.__tamaguiPendingCheck = !0, setTimeout(() => {
293
+ !Fs && !globalThis.__tamaguiHasWarnedGlobalFallback && (globalThis.__tamaguiHasWarnedGlobalFallback = !0, console.warn("Tamagui: Using global config fallback. This may indicate duplicate tamagui instances (e.g., from Vite SSR bundling). This is handled automatically, but may cause issues.")), globalThis.__tamaguiPendingCheck = !1;
294
294
  }, 500)), globalThis.__tamaguiConfig) : null), Ce = (e) => {
295
295
  const t = tr();
296
- if (process.env.NODE_ENV === "development" && !t) throw new Error(Yi);
296
+ if (process.env.NODE_ENV === "development" && !t) throw new Error(Xi);
297
297
  return t.settings[e] ?? // @ts-expect-error
298
298
  t[e];
299
- }, Xi = (e) => {
300
- Ds = !0, Is = e, globalThis.__tamaguiConfig = e;
299
+ }, Zi = (e) => {
300
+ Fs = !0, Ds = e, globalThis.__tamaguiConfig = e;
301
301
  }, ze = () => {
302
302
  const e = tr();
303
303
  if (!e) throw new Error(process.env.NODE_ENV !== "production" ? "Missing tamagui config, you either have a duplicate config, or haven't set it up. Be sure createTamagui is called before rendering. Also, make sure all of your tamagui dependencies are on the same version (`tamagui`, `@tamagui/package-name`, etc.) not just in your package.json, but in your lockfile." : "Err0");
304
304
  return e;
305
- }, Fs = () => tr();
306
- function Zi(e) {
305
+ }, Vs = () => tr();
306
+ function qi(e) {
307
307
  return e.replace(/[A-Z]/g, (t) => `-${t.toLowerCase()}`).toLowerCase();
308
308
  }
309
309
  const no = /* @__PURE__ */ new WeakMap();
310
- function Vs(e) {
310
+ function Ps(e) {
311
311
  if (typeof e == "string") return e;
312
312
  if (no.has(e)) return no.get(e);
313
- const t = Object.entries(e).map(([n, o]) => (n = Zi(n), typeof o == "string" ? `(${n}: ${o})` : (typeof o == "number" && /[height|width]$/.test(n) && (o = `${o}px`), `(${n}: ${o})`))).join(" and ");
313
+ const t = Object.entries(e).map(([n, o]) => (n = qi(n), typeof o == "string" ? `(${n}: ${o})` : (typeof o == "number" && /[height|width]$/.test(n) && (o = `${o}px`), `(${n}: ${o})`))).join(" and ");
314
314
  return no.set(e, t), t;
315
315
  }
316
- let zn = (
316
+ let Wn = (
317
317
  // development only safeguard
318
318
  process.env.NODE_ENV === "development" ? new Proxy({}, {
319
319
  get(e, t) {
@@ -323,19 +323,19 @@ let zn = (
323
323
  }
324
324
  }) : {}
325
325
  );
326
- const qi = (e) => {
327
- zn = e;
328
- }, Jt = {}, nt = () => zn, nr = /* @__PURE__ */ new Set();
329
- function Ji(e) {
326
+ const Ji = (e) => {
327
+ Wn = e;
328
+ }, Jt = {}, ot = () => Wn, nr = /* @__PURE__ */ new Set();
329
+ function Qi(e) {
330
330
  return e.replace(/-([a-z])/g, (t, n) => n.toUpperCase());
331
331
  }
332
- function Qi(e) {
333
- return e ? Ji(e) in Qo : !1;
332
+ function ea(e) {
333
+ return e ? Qi(e) in Qo : !1;
334
334
  }
335
- function Ps(e) {
336
- const t = nt(), [n, o, r, s, i] = e.split("-"), a = r && s ? `${r}-${s}` : "", l = a && a in t && a || r && r in t && r || void 0;
335
+ function Ws(e) {
336
+ const t = ot(), [n, o, r, s, i] = e.split("-"), a = r && s ? `${r}-${s}` : "", l = a && a in t && a || r && r in t && r || void 0;
337
337
  let d = l ? l === a ? i : s ? `${s}${i ? `-${i}` : ""}` : void 0 : r ? `${r}${s ? `-${s}` : ""}${i ? `-${i}` : ""}` : void 0;
338
- return d && !Qi(d) && (process.env.NODE_ENV === "development" && console.warn(`Unknown group prop part "${d}" in "${e}". If this is a media query, ensure it's defined in your tamagui config.`), d = void 0), {
338
+ return d && !ea(d) && (process.env.NODE_ENV === "development" && console.warn(`Unknown group prop part "${d}" in "${e}". If this is a media query, ensure it's defined in your tamagui config.`), d = void 0), {
339
339
  name: o,
340
340
  pseudo: d,
341
341
  media: l
@@ -343,45 +343,45 @@ function Ps(e) {
343
343
  }
344
344
  const Fr = "_";
345
345
  let To = null, vn = null;
346
- function ea() {
346
+ function ta() {
347
347
  To = null, vn = null;
348
348
  }
349
- const ta = {
349
+ const na = {
350
350
  press: "active",
351
351
  focusVisible: "focus-visible",
352
352
  focusWithin: "focus-within"
353
353
  }, Vr = new Array(12).fill(0).map((e, t) => new Array(t).fill(":root").join(""));
354
- function na(e, t, n, o, r = !1, s = "") {
355
- const i = t.lastIndexOf(":root") + 5, a = t.lastIndexOf("{"), l = t.slice(i, a), d = Ce("addThemeClassName") !== !1 && r ? "" : " ", u = o.pseudo ? ta[o.pseudo] || o.pseudo : void 0, c = u ? `:${u}` : "", m = `:root${s}${d}`, f = `.t_${n ? "group_" : ""}${e}${c}`;
354
+ function oa(e, t, n, o, r = !1, s = "") {
355
+ const i = t.lastIndexOf(":root") + 5, a = t.lastIndexOf("{"), l = t.slice(i, a), d = Ce("addThemeClassName") !== !1 && r ? "" : " ", u = o.pseudo ? na[o.pseudo] || o.pseudo : void 0, c = u ? `:${u}` : "", m = `:root${s}${d}`, f = `.t_${n ? "group_" : ""}${e}${c}`;
356
356
  return [l, `${m}${f} ${l.replaceAll(":root", "")}`];
357
357
  }
358
- const oa = (e, t, n, o, r, s) => {
358
+ const ra = (e, t, n, o, r, s) => {
359
359
  const [i, , a, l, d] = e, u = o === "theme", c = o === "platform", m = o === "group", f = u || c || m, b = "", p = a.slice(0, a.indexOf("-") + 1), g = `${p}${Fr}${t.replace("-", "")}${b}${Fr}`;
360
360
  let h = "", E = "", x, S, T = a.replace(p, g), P = d.map((R) => R.replaceAll(a, T)).join(";"), K = !1;
361
361
  if (f) {
362
362
  let R = (s || 0) + (m || c ? 1 : 0);
363
363
  if (u || m) {
364
- const k = Ps(u ? "theme-" + t : t), {
364
+ const k = Ws(u ? "theme-" + t : t), {
365
365
  name: _,
366
366
  media: v,
367
367
  pseudo: $
368
368
  } = k;
369
369
  x = v, m && (S = _), ($ === "press" || l === "active") && (R += 2), $ === "hover" && (K = !0);
370
- const [C, M] = na(_, P, m, k, u, Vr[R]);
370
+ const [C, M] = oa(_, P, m, k, u, Vr[R]);
371
371
  h = P.replace(C, M);
372
372
  } else h = `${Vr[R]}${P}`;
373
373
  }
374
374
  if (!f || x) {
375
375
  if (!vn) {
376
376
  const C = Object.keys(n);
377
- vn = Object.fromEntries(C.map((M) => [M, Vs(n[M])])), To = Object.fromEntries(C.map((M, ie) => [M, new Array(ie + 1).fill(":root").join("")]));
377
+ vn = Object.fromEntries(C.map((M) => [M, Ps(n[M])])), To = Object.fromEntries(C.map((M, ie) => [M, new Array(ie + 1).fill(":root").join("")]));
378
378
  }
379
379
  const R = x || t, k = vn[R], _ = `${k}`, v = x ? E : To[R], $ = x ? `@container ${S}` : "@media";
380
380
  x && (P = h), P.includes($) ? h = P.replace("{", ` and ${_} {`).replace("and screen and", "and") : h = `${$} ${_}{${v}${P}}`, x && (h = `@supports (contain: ${Ce("webContainerType") || "inline-size"}) {${h}}`);
381
381
  }
382
382
  return K && (h = `@media (hover:hover){${h}}`), [i, void 0, T, void 0, [h]];
383
- }, ra = typeof window < "u" && window.matchMedia || sa;
384
- function sa(e) {
383
+ }, sa = typeof window < "u" && window.matchMedia || ia;
384
+ function ia(e) {
385
385
  return {
386
386
  match: (t, n) => !1,
387
387
  addListener() {
@@ -391,46 +391,46 @@ function sa(e) {
391
391
  matches: !1
392
392
  };
393
393
  }
394
- const zs = /\$(platform|theme|group)-/, ia = (e) => e[0] !== "$" ? !1 : !!(nr.has(e) || zs.test(e)), Pr = (e) => {
394
+ const zs = /\$(platform|theme|group)-/, aa = (e) => e[0] !== "$" ? !1 : !!(nr.has(e) || zs.test(e)), Pr = (e) => {
395
395
  if (e[0] !== "$") return !1;
396
396
  if (nr.has(e)) return !0;
397
397
  const t = e.match(zs);
398
398
  return t ? t[1] : !1;
399
399
  };
400
- let Ls, Ws;
401
- const aa = (e) => {
400
+ let Ls, Bs;
401
+ const la = (e) => {
402
402
  if (process.env.NODE_ENV === "development" && e[0] === "$") throw new Error("use short key");
403
- return Ws.indexOf(e) + 100;
403
+ return Bs.indexOf(e) + 100;
404
404
  }, _o = /* @__PURE__ */ new Set();
405
405
  let Co = 0;
406
- const la = (e) => {
406
+ const ca = (e) => {
407
407
  const {
408
408
  media: t
409
409
  } = e, n = Ce("mediaQueryDefaultActive");
410
410
  if (t) {
411
- Co++, ea();
412
- for (const o in t) nt()[o] = (n == null ? void 0 : n[o]) || !1, nr.add(`$${o}`);
411
+ Co++, ta();
412
+ for (const o in t) ot()[o] = (n == null ? void 0 : n[o]) || !1, nr.add(`$${o}`);
413
413
  Object.assign(Jt, t), Ls = {
414
- ...nt()
415
- }, Ws = Object.keys(t), ua();
414
+ ...ot()
415
+ }, Bs = Object.keys(t), da();
416
416
  }
417
417
  };
418
- function ca() {
418
+ function ua() {
419
419
  _o.forEach((e) => e()), _o.clear();
420
420
  }
421
- let zr = -1;
422
- function ua() {
423
- if (!Pn && !process.env.IS_STATIC && zr !== Co) {
424
- zr = Co, ca();
421
+ let Wr = -1;
422
+ function da() {
423
+ if (!Pn && !process.env.IS_STATIC && Wr !== Co) {
424
+ Wr = Co, ua();
425
425
  for (const e in Jt) {
426
426
  let t = function() {
427
427
  const s = !!o().matches;
428
- s !== nt()[e] && (qi({
429
- ...nt(),
428
+ s !== ot()[e] && (Ji({
429
+ ...ot(),
430
430
  [e]: s
431
- }), Bs());
431
+ }), js());
432
432
  };
433
- const n = Vs(Jt[e]), o = () => ra(n), r = o();
433
+ const n = Ps(Jt[e]), o = () => sa(n), r = o();
434
434
  if (!r) throw new Error("⚠️ No match");
435
435
  r.addListener(t), _o.add(() => {
436
436
  r.removeListener(t);
@@ -439,11 +439,11 @@ function ua() {
439
439
  }
440
440
  }
441
441
  const Oo = /* @__PURE__ */ new Set();
442
- function Bs() {
443
- Oo.forEach((e) => e(nt()));
442
+ function js() {
443
+ Oo.forEach((e) => e(ot()));
444
444
  }
445
445
  const Ao = /* @__PURE__ */ new WeakMap();
446
- function da(e, t, n) {
446
+ function fa(e, t, n) {
447
447
  const o = Ao.get(e);
448
448
  (!o || o.enabled !== t || n) && Ao.set(e, {
449
449
  ...o,
@@ -451,58 +451,58 @@ function da(e, t, n) {
451
451
  keys: n
452
452
  });
453
453
  }
454
- function fa(e) {
454
+ function ma(e) {
455
455
  return Oo.add(e), () => {
456
456
  Oo.delete(e);
457
457
  };
458
458
  }
459
- function ma(e, t) {
459
+ function ha(e, t) {
460
460
  "use no memo";
461
461
  const n = e ? Ao.get(e) : null, o = kt(null);
462
462
  o.current || (o.current = {
463
463
  keys: /* @__PURE__ */ new Set(),
464
- lastState: nt()
464
+ lastState: ot()
465
465
  }), o.current.pendingState && (o.current.lastState = o.current.pendingState, o.current.pendingState = void 0);
466
466
  const {
467
467
  keys: r
468
468
  } = o.current;
469
469
  r.size && r.clear();
470
- const s = Ns(fa, () => {
470
+ const s = xs(ma, () => {
471
471
  const i = (n == null ? void 0 : n.keys) || r, {
472
472
  lastState: a,
473
473
  pendingState: l
474
474
  } = o.current;
475
475
  if (!i.size) return a;
476
- const d = nt();
476
+ const d = ot();
477
477
  for (const u of i) if (d[u] !== (l || a)[u]) return process.env.NODE_ENV === "development" && t && console.warn("useMedia() ✍️", u, a[u], "=>", d[u]), e != null && e.mediaEmit ? (e.mediaEmit(d), o.current.pendingState = d, a) : (o.current.lastState = d, d);
478
478
  return a;
479
- }, ha);
479
+ }, pa);
480
480
  return new Proxy(s, {
481
481
  get(i, a) {
482
482
  return !Cn && typeof a == "string" && r.add(a), Reflect.get(s, a);
483
483
  }
484
484
  });
485
485
  }
486
- const ha = () => Ls;
486
+ const pa = () => Ls;
487
487
  let Cn = !1;
488
- function Lr(e) {
488
+ function zr(e) {
489
489
  Cn = e;
490
490
  }
491
- function pa(e, t) {
491
+ function ga(e, t) {
492
492
  Cn = !0;
493
493
  let n;
494
494
  try {
495
- n = Object.fromEntries([...e].map((o) => [o, js(o, t)]));
495
+ n = Object.fromEntries([...e].map((o) => [o, Hs(o, t)]));
496
496
  } finally {
497
497
  Cn = !1;
498
498
  }
499
499
  return n;
500
500
  }
501
- const ga = (e, t, n, o) => {
502
- const r = o ? aa(e) : Hi, s = n.usedKeys;
501
+ const ba = (e, t, n, o) => {
502
+ const r = o ? la(e) : Ui, s = n.usedKeys;
503
503
  return !s[t] || r > s[t] ? r : null;
504
504
  };
505
- function js(e, t) {
505
+ function Hs(e, t) {
506
506
  const n = Jt[e];
507
507
  return Object.keys(n).every((o) => {
508
508
  const r = +n[o], s = o.startsWith("max"), i = o.endsWith("Width"), a = t[i ? "width" : "height"];
@@ -524,17 +524,17 @@ const It = (e, t = 10) => {
524
524
  r += "--";
525
525
  continue;
526
526
  }
527
- if (ya(d)) {
527
+ if (Sa(d)) {
528
528
  s++, r += n[l];
529
529
  continue;
530
530
  }
531
531
  }
532
- o = ba(o, n[l]);
532
+ o = ya(o, n[l]);
533
533
  }
534
534
  const a = r + (o ? Math.abs(o) : "");
535
535
  return oo > 1e4 && (mn.clear(), oo = 0), mn.set(e, a), oo++, a;
536
- }, ba = (e, t) => Math.imul(31, e) + t.charCodeAt(0) | 0;
537
- function ya(e) {
536
+ }, ya = (e, t) => Math.imul(31, e) + t.charCodeAt(0) | 0;
537
+ function Sa(e) {
538
538
  return (
539
539
  // A-Z
540
540
  e >= 65 && e <= 90 || // a-z
@@ -544,7 +544,7 @@ function ya(e) {
544
544
  e >= 48 && e <= 57
545
545
  );
546
546
  }
547
- function Sa(e, [t, n]) {
547
+ function va(e, [t, n]) {
548
548
  return Math.min(n, Math.max(t, e));
549
549
  }
550
550
  function or(e, t, {
@@ -555,15 +555,15 @@ function or(e, t, {
555
555
  "defaultPrevented" in o && !o.defaultPrevented) return t == null ? void 0 : t(o);
556
556
  };
557
557
  }
558
- const Ut = 0, va = 1, pt = 2, Hs = 3, Ln = 4, Us = ["web", "android", "ios"];
559
- function Ea(e) {
558
+ const Ut = 0, Ea = 1, pt = 2, Us = 3, zn = 4, Ks = ["web", "android", "ios"];
559
+ function $a(e) {
560
560
  if (!e) return null;
561
- const t = $a(e);
562
- for (const n of Us) if (n === ks && t.has(n)) return n;
561
+ const t = wa(e);
562
+ for (const n of Ks) if (n === Ms && t.has(n)) return n;
563
563
  return null;
564
564
  }
565
- function $a(e) {
566
- const t = e === !0 ? Us : e === !1 ? [] : Array.isArray(e) ? e : [e], n = new Set(t);
565
+ function wa(e) {
566
+ const t = e === !0 ? Ks : e === !1 ? [] : Array.isArray(e) ? e : [e], n = new Set(t);
567
567
  return n.has("mobile") && (n.add("android"), n.add("ios"), n.delete("mobile")), n;
568
568
  }
569
569
  const rr = {
@@ -605,7 +605,7 @@ const rr = {
605
605
  wordWrap: !0,
606
606
  textOverflow: !0,
607
607
  WebkitBoxOrient: !0
608
- }, Ks = {
608
+ }, Gs = {
609
609
  ...rr,
610
610
  transition: !0,
611
611
  backdropFilter: !0,
@@ -632,12 +632,12 @@ const rr = {
632
632
  objectPosition: !0,
633
633
  textEmphasis: !0,
634
634
  userSelect: !0
635
- }, Gs = {
635
+ }, Ys = {
636
636
  ...sr,
637
637
  textDecorationDistance: !0,
638
638
  // cursor: now cross-platform - in stylePropsView
639
639
  WebkitLineClamp: !0
640
- }, Ys = {
640
+ }, Xs = {
641
641
  // border longhands
642
642
  borderWidth: !0,
643
643
  borderStyle: !0,
@@ -659,7 +659,7 @@ const rr = {
659
659
  outlineStyle: !0,
660
660
  outlineColor: !0,
661
661
  outlineOffset: !0
662
- }, Xs = {
662
+ }, Zs = {
663
663
  color: !0,
664
664
  textDecorationColor: !0,
665
665
  textShadowColor: !0
@@ -709,12 +709,12 @@ const rr = {
709
709
  borderEndColor: !0,
710
710
  borderStartColor: !0,
711
711
  shadowColor: !0,
712
- ...Xs,
712
+ ...Zs,
713
713
  // outlineColor is supported on RN 0.77+ (New Architecture)
714
714
  outlineColor: !0,
715
715
  caretColor: !0
716
716
  }
717
- }, Zs = {
717
+ }, qs = {
718
718
  alignContent: !0,
719
719
  alignItems: !0,
720
720
  alignSelf: !0,
@@ -739,30 +739,30 @@ const rr = {
739
739
  outlineStyle: !0,
740
740
  overflow: !0,
741
741
  position: !0
742
- }, qs = {
742
+ }, Js = {
743
743
  fontFamily: !0,
744
744
  fontStyle: !0,
745
745
  fontVariant: !0,
746
746
  textTransform: !0
747
- }, Js = {
747
+ }, Qs = {
748
748
  textAlign: !0,
749
749
  textDecorationLine: !0,
750
750
  textDecorationStyle: !0,
751
751
  userSelect: !0
752
- }, Qs = {
752
+ }, ei = {
753
753
  WebkitLineClamp: !0,
754
754
  lineClamp: !0,
755
755
  gridTemplateColumns: !0,
756
756
  gridTemplateAreas: !0
757
- }, ei = {
758
- ...Zs,
757
+ }, ti = {
759
758
  ...qs,
760
759
  ...Js,
761
760
  ...Qs,
761
+ ...ei,
762
762
  ...rr,
763
763
  ...sr
764
764
  }, ir = {
765
- ...Qs,
765
+ ...ei,
766
766
  animationIterationCount: !0,
767
767
  aspectRatio: !0,
768
768
  borderImageOutset: !0,
@@ -811,7 +811,7 @@ const rr = {
811
811
  rotateX: !0,
812
812
  rotateZ: !0
813
813
  }, ar = {
814
- ...Zs,
814
+ ...qs,
815
815
  borderBottomEndRadius: !0,
816
816
  borderBottomStartRadius: !0,
817
817
  borderBottomWidth: !0,
@@ -897,27 +897,27 @@ const rr = {
897
897
  outlineOffset: !0,
898
898
  outlineWidth: !0,
899
899
  // web-only for convenience - tree-shaken on native
900
- ...Ks
901
- }, wa = {
902
- ...qs,
900
+ ...Gs
901
+ }, Na = {
902
+ ...Js,
903
903
  fontSize: !0,
904
904
  fontWeight: !0,
905
905
  letterSpacing: !0,
906
906
  lineHeight: !0
907
907
  }, lr = {
908
- ...wa,
909
- ...Js,
910
- ...Xs,
908
+ ...Na,
909
+ ...Qs,
910
+ ...Zs,
911
911
  textShadow: !0,
912
912
  textShadowOffset: !0,
913
913
  textShadowRadius: !0,
914
914
  verticalAlign: !0,
915
915
  // web-only text props - tree-shaken on native
916
- ...Gs
916
+ ...Ys
917
917
  }, cr = {
918
918
  ...ar,
919
919
  ...lr
920
- }, ti = cr, On = {
920
+ }, ni = cr, On = {
921
921
  enterStyle: !0,
922
922
  exitStyle: !0,
923
923
  hoverStyle: !0,
@@ -926,22 +926,22 @@ const rr = {
926
926
  disabledStyle: !0,
927
927
  focusWithinStyle: !0,
928
928
  focusVisibleStyle: !0
929
- }, Wn = ar, Na = /* @__PURE__ */ Symbol(), xa = (e, t) => (Object.assign(e, t), e[Na] = !0, e), Ta = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
929
+ }, Ln = ar, xa = /* @__PURE__ */ Symbol(), Ta = (e, t) => (Object.assign(e, t), e[xa] = !0, e), _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
930
930
  __proto__: null,
931
931
  StyleObjectIdentifier: pt,
932
932
  StyleObjectProperty: Ut,
933
- StyleObjectPseudo: Hs,
934
- StyleObjectRules: Ln,
935
- StyleObjectValue: va,
936
- clamp: Sa,
933
+ StyleObjectPseudo: Us,
934
+ StyleObjectRules: zn,
935
+ StyleObjectValue: Ea,
936
+ clamp: va,
937
937
  composeEventHandlers: or,
938
- cssShorthandLonghands: Ys,
939
- nonAnimatableStyleProps: ei,
938
+ cssShorthandLonghands: Xs,
939
+ nonAnimatableStyleProps: ti,
940
940
  nonAnimatableWebTextProps: sr,
941
941
  nonAnimatableWebViewProps: rr,
942
- shouldRenderNativePlatform: Ea,
942
+ shouldRenderNativePlatform: $a,
943
943
  simpleHash: It,
944
- stylePropsAll: ti,
944
+ stylePropsAll: ni,
945
945
  stylePropsText: cr,
946
946
  stylePropsTextOnly: lr,
947
947
  stylePropsTransform: on,
@@ -949,12 +949,12 @@ const rr = {
949
949
  stylePropsView: ar,
950
950
  tokenCategories: gt,
951
951
  validPseudoKeys: On,
952
- validStyles: Wn,
953
- webOnlyStylePropsText: Gs,
954
- webOnlyStylePropsView: Ks,
955
- withStaticProperties: xa
952
+ validStyles: Ln,
953
+ webOnlyStylePropsText: Ys,
954
+ webOnlyStylePropsView: Gs,
955
+ withStaticProperties: Ta
956
956
  }, Symbol.toStringTag, { value: "Module" }));
957
- function ni(e) {
957
+ function oi(e) {
958
958
  return `var(--${process.env.TAMAGUI_CSS_VARIABLE_PREFIX || ""}${e})`;
959
959
  }
960
960
  const Qt = (e, t = !1) => {
@@ -969,7 +969,7 @@ const Qt = (e, t = !1) => {
969
969
  key: n,
970
970
  name: t ? o : It(o, 40),
971
971
  val: r,
972
- variable: t ? ni(o) : ri(o)
972
+ variable: t ? oi(o) : si(o)
973
973
  };
974
974
  };
975
975
  function Rt(e, t = !1) {
@@ -978,34 +978,34 @@ function Rt(e, t = !1) {
978
978
  function xe(e) {
979
979
  return e && typeof e == "object" && "isVar" in e;
980
980
  }
981
- function _a(e, t = "size") {
981
+ function Ca(e, t = "size") {
982
982
  var o;
983
983
  if (e != null && e.dynamic) return e;
984
984
  if (ur(!0), xe(e)) return Rt(e);
985
985
  const n = ze().tokensParsed;
986
986
  return Rt(((o = n[t]) == null ? void 0 : o[e]) ?? e);
987
987
  }
988
- let oi = !1;
989
- const ur = (e) => oi = e, Ca = () => oi;
988
+ let ri = !1;
989
+ const ur = (e) => ri = e, Oa = () => ri;
990
990
  function An(e, t) {
991
991
  return xe(e) ? (ur(!0), e.val) : e;
992
992
  }
993
- function Oa(e) {
993
+ function Aa(e) {
994
994
  return xe(e) ? e.variable : e;
995
995
  }
996
- const ri = (e, t = !0) => {
996
+ const si = (e, t = !0) => {
997
997
  if (process.env.NODE_ENV === "development" && (!e || typeof e != "string")) throw new Error(`createCSSVariable expected string, got: ${e}`);
998
998
  const n = It(e, 60);
999
- return t ? ni(n) : n;
999
+ return t ? oi(n) : n;
1000
1000
  }, ro = /* @__PURE__ */ new Map();
1001
- let zt, Lt, Wr, Wt;
1002
- const Aa = {};
1003
- function Ra(e, t, n, o) {
1004
- if (!(t != null && t.theme)) return Aa;
1005
- if (zt = n, Lt = o, Wr = e, Wt = t, ro.has(Wt.theme)) return ro.get(Wt.theme);
1001
+ let Wt, zt, Lr, Lt;
1002
+ const Ra = {};
1003
+ function ka(e, t, n, o) {
1004
+ if (!(t != null && t.theme)) return Ra;
1005
+ if (Wt = n, zt = o, Lr = e, Lt = t, ro.has(Lt.theme)) return ro.get(Lt.theme);
1006
1006
  ze();
1007
1007
  function r(i, a = !1) {
1008
- zt && (zt.current || (zt.current = /* @__PURE__ */ new Set()), zt.current.add(i), a && Lt && (Lt.current || (Lt.current = /* @__PURE__ */ new Set()), Lt.current.add(i)), process.env.NODE_ENV === "development" && Wr.debug && console.info(` 🎨 useTheme() tracking key: ${i} schemeOptimized=${a}`));
1008
+ Wt && (Wt.current || (Wt.current = /* @__PURE__ */ new Set()), Wt.current.add(i), a && zt && (zt.current || (zt.current = /* @__PURE__ */ new Set()), zt.current.add(i)), process.env.NODE_ENV === "development" && Lr.debug && console.info(` 🎨 useTheme() tracking key: ${i} schemeOptimized=${a}`));
1009
1009
  }
1010
1010
  const s = Object.fromEntries(Object.entries(t.theme).flatMap(([i, a]) => {
1011
1011
  const l = {
@@ -1014,11 +1014,11 @@ function Ra(e, t, n, o) {
1014
1014
  return globalThis.tamaguiAvoidTracking || r(i, !1), a.val;
1015
1015
  },
1016
1016
  get(d) {
1017
- if (!Wt) return;
1018
- const u = _a(a), {
1017
+ if (!Lt) return;
1018
+ const u = Ca(a), {
1019
1019
  name: c,
1020
1020
  scheme: m
1021
- } = Wt;
1021
+ } = Lt;
1022
1022
  return u;
1023
1023
  }
1024
1024
  };
@@ -1026,15 +1026,15 @@ function Ra(e, t, n, o) {
1026
1026
  }));
1027
1027
  return ro.set(t.theme, s), s;
1028
1028
  }
1029
- const si = nn(""), Ro = /* @__PURE__ */ new Map(), Kt = {}, so = /* @__PURE__ */ new WeakMap(), io = /* @__PURE__ */ new WeakMap(), Bt = /* @__PURE__ */ new Map(), mt = /* @__PURE__ */ new Map(), ao = /* @__PURE__ */ new Map(), ii = (e) => mt.get(e);
1029
+ const ii = nn(""), Ro = /* @__PURE__ */ new Map(), Kt = {}, so = /* @__PURE__ */ new WeakMap(), io = /* @__PURE__ */ new WeakMap(), Bt = /* @__PURE__ */ new Map(), mt = /* @__PURE__ */ new Map(), ao = /* @__PURE__ */ new Map(), ai = (e) => mt.get(e);
1030
1030
  let Br = 0;
1031
1031
  const wt = /* @__PURE__ */ new Map();
1032
1032
  let jr = -1, lo = null;
1033
- const ka = (e, t = !1, n, o) => {
1033
+ const Ma = (e, t = !1, n, o) => {
1034
1034
  "use no memo";
1035
1035
  const {
1036
1036
  disable: r
1037
- } = e, s = Vn(si);
1037
+ } = e, s = Vn(ii);
1038
1038
  if (!s && !t) throw new Error(process.env.NODE_ENV === "development" ? `${qt}
1039
1039
 
1040
1040
  Looked for theme${e.name ? ` "${e.name}"` : ""}${e.componentName ? ` (component: ${e.componentName})` : ""}, but no parent theme context was found (parentId: ${s}).` : qt);
@@ -1044,16 +1044,16 @@ Looked for theme${e.name ? ` "${e.name}"` : ""}${e.componentName ? ` (component:
1044
1044
  theme: ze().themes.light
1045
1045
  // inverses: 0,
1046
1046
  };
1047
- const i = xs(), a = ws((c) => (Kt[s] = Kt[s] || /* @__PURE__ */ new Set(), Kt[s].add(i), Ro.set(i, () => {
1047
+ const i = Ts(), a = Ns((c) => (Kt[s] = Kt[s] || /* @__PURE__ */ new Set(), Kt[s].add(i), Ro.set(i, () => {
1048
1048
  Bt.set(i, !0), c();
1049
1049
  }), () => {
1050
1050
  Ro.delete(i), Kt[s].delete(i), ao.delete(i), mt.delete(i), Bt.delete(i);
1051
- }), [i, s]), l = Da(e), d = () => {
1051
+ }), [i, s]), l = Fa(e), d = () => {
1052
1052
  var S, T, P, K;
1053
1053
  let c = ao.get(i);
1054
1054
  const m = mt.get(s);
1055
1055
  if (c && !Bt.has(i) && m && c._parentName === m.name && c._propsKey === l) return c;
1056
- const f = !1, b = ((S = n == null ? void 0 : n.current) == null ? void 0 : S.size) ?? 0, p = (((T = o == null ? void 0 : o.current) == null ? void 0 : T.size) ?? 0) === b && b > 0, g = f, h = e.passThrough ? !1 : t || e.name === "light" || e.name === "dark" || e.name === null ? !0 : so.get(n) ? (P = n == null ? void 0 : n.current) != null && P.size ? !0 : (K = e.needsUpdate) == null ? void 0 : K.call(e) : !0, [E, x] = Ma(c, e, l, t, i, s, h, Bt.get(i));
1056
+ const f = !1, b = ((S = n == null ? void 0 : n.current) == null ? void 0 : S.size) ?? 0, p = (((T = o == null ? void 0 : o.current) == null ? void 0 : T.size) ?? 0) === b && b > 0, g = f, h = e.passThrough ? !1 : t || e.name === "light" || e.name === "dark" || e.name === null ? !0 : so.get(n) ? (P = n == null ? void 0 : n.current) != null && P.size ? !0 : (K = e.needsUpdate) == null ? void 0 : K.call(e) : !0, [E, x] = Ia(c, e, l, t, i, s, h, Bt.get(i));
1057
1057
  return Bt.delete(i), (!c || E) && (c = {
1058
1058
  ...x
1059
1059
  }, ao.set(i, c)), process.env.NODE_ENV === "development" && e.debug === "verbose" && (console.groupCollapsed(` ${i} getSnapshot ${E}`, c.name, ">", x.name), console.info({
@@ -1070,7 +1070,7 @@ Looked for theme${e.name ? ` "${e.name}"` : ""}${e.componentName ? ` (component:
1070
1070
  }), console.groupEnd()), x !== c && (Object.assign(c, x), c.id = i), c._parentName = m == null ? void 0 : m.name, c._propsKey = l, mt.set(i, x), c;
1071
1071
  };
1072
1072
  process.env.NODE_ENV === "development" && globalThis.time && globalThis.time`theme-prep-uses`;
1073
- const u = Ns(a, d, d);
1073
+ const u = xs(a, d, d);
1074
1074
  return ke(() => {
1075
1075
  var c;
1076
1076
  if (!so.get(n)) {
@@ -1083,7 +1083,7 @@ Looked for theme${e.name ? ` "${e.name}"` : ""}${e.componentName ? ` (component:
1083
1083
  }
1084
1084
  process.env.NODE_ENV === "development" && e.debug === "verbose" && console.warn(` · useTheme(${i}) scheduleUpdate`, l, (c = mt.get(i)) == null ? void 0 : c.name), Hr(i), io.set(n, !0);
1085
1085
  }, [n, l]), u;
1086
- }, Ma = (e, t, n, o = !1, r, s, i, a) => {
1086
+ }, Ia = (e, t, n, o = !1, r, s, i, a) => {
1087
1087
  const {
1088
1088
  debug: l
1089
1089
  } = t, d = mt.get(s);
@@ -1091,7 +1091,7 @@ Looked for theme${e.name ? ` "${e.name}"` : ""}${e.componentName ? ` (component:
1091
1091
  name: ""
1092
1092
  }];
1093
1093
  lo || (lo = ze().themes);
1094
- const u = !n && (!e || !(e != null && e.isNew)) ? null : Ia(d == null ? void 0 : d.name, t, a === "force" ? !0 : !!i), c = d && (!u || u === d.name), m = !!(a === "force" || i && (a || (e == null ? void 0 : e.name) !== (d == null ? void 0 : d.name)));
1094
+ const u = !n && (!e || !(e != null && e.isNew)) ? null : Da(d == null ? void 0 : d.name, t, a === "force" ? !0 : !!i), c = d && (!u || u === d.name), m = !!(a === "force" || i && (a || (e == null ? void 0 : e.name) !== (d == null ? void 0 : d.name)));
1095
1095
  if (process.env.NODE_ENV === "development" && l === "verbose") {
1096
1096
  const h = ` · useTheme(${r}) getNextState => ${u} needsUpdate ${i} shouldRerender ${m}`;
1097
1097
  console.groupCollapsed(h), console.trace({
@@ -1148,14 +1148,14 @@ function Hr(e) {
1148
1148
  (r = Ro.get(o)) == null || r();
1149
1149
  });
1150
1150
  }
1151
- const ai = {
1151
+ const li = {
1152
1152
  light: "light",
1153
1153
  dark: "dark"
1154
1154
  };
1155
1155
  function ko(e) {
1156
- return ai[e.split("_")[0]];
1156
+ return li[e.split("_")[0]];
1157
1157
  }
1158
- function Ia(e = "", t, n = !1) {
1158
+ function Da(e = "", t, n = !1) {
1159
1159
  const {
1160
1160
  name: o,
1161
1161
  reset: r
@@ -1221,25 +1221,25 @@ function Ia(e = "", t, n = !1) {
1221
1221
  }
1222
1222
  return !n && c === e && // if its a scheme only sub-theme, we always consider it "new" because it likely inverses
1223
1223
  // and we want to avoid reparenting
1224
- !ai[c] ? (wt.set(i, null), null) : (wt.set(i, c), c);
1224
+ !li[c] ? (wt.set(i, null), null) : (wt.set(i, c), c);
1225
1225
  }
1226
- const Da = ({
1226
+ const Fa = ({
1227
1227
  name: e,
1228
1228
  reset: t,
1229
1229
  forceClassName: n,
1230
1230
  componentName: o
1231
- }) => `${e || ""}${t || ""}${n || ""}${o || ""}`, Fa = (e) => "name" in e || "reset" in e || "forceClassName" in e, li = (e, t = !1) => {
1231
+ }) => `${e || ""}${t || ""}${n || ""}${o || ""}`, Va = (e) => "name" in e || "reset" in e || "forceClassName" in e, ci = (e, t = !1) => {
1232
1232
  "use no memo";
1233
- const n = kt(null), o = kt(null), r = ka(e, t, n, o);
1233
+ const n = kt(null), o = kt(null), r = Ma(e, t, n, o);
1234
1234
  return process.env.NODE_ENV === "development" && !e.passThrough && !(r != null && r.theme) && process.env.TAMAGUI_DISABLE_NO_THEME_WARNING !== "1" && console.error(`[tamagui] No theme found, this could be due to an invalid theme name (given theme props ${JSON.stringify(e)}).
1235
1235
 
1236
- If this is intended and you are using Tamagui without any themes, you can disable this warning by setting the environment variable TAMAGUI_DISABLE_NO_THEME_WARNING=1`), [e.passThrough ? {} : Ra(e, r, n, o), r];
1236
+ If this is intended and you are using Tamagui without any themes, you can disable this warning by setting the environment variable TAMAGUI_DISABLE_NO_THEME_WARNING=1`), [e.passThrough ? {} : ka(e, r, n, o), r];
1237
1237
  };
1238
- function Va(e, t) {
1238
+ function Pa(e, t) {
1239
1239
  typeof e == "function" ? e(t) : e && (e.current = t);
1240
1240
  }
1241
1241
  function dr(...e) {
1242
- return (t) => e.forEach((n) => Va(n, t));
1242
+ return (t) => e.forEach((n) => Pa(n, t));
1243
1243
  }
1244
1244
  const Mo = (() => {
1245
1245
  if (process.env.NODE_ENV === "development") try {
@@ -1259,7 +1259,7 @@ const Mo = (() => {
1259
1259
  }, Io = {
1260
1260
  ...fr,
1261
1261
  unmounted: !1
1262
- }, Pa = {
1262
+ }, Wa = {
1263
1263
  ...fr,
1264
1264
  unmounted: "should-enter"
1265
1265
  };
@@ -1330,13 +1330,13 @@ const Ur = {
1330
1330
  // TODO: need to add borderBlock and borderInline here, but they are alot and might impact performance
1331
1331
  }, La = (e, t) => {
1332
1332
  if (e) return typeof e != "string" ? e : e === "transparent" ? "rgba(0, 0, 0, 0)" : typeof t == "number" && t < 1 ? `color-mix(in srgb, ${e} ${Math.round(t * 100)}%, transparent)` : e;
1333
- }, Wa = {
1334
- ...ti,
1333
+ }, Ba = {
1334
+ ...ni,
1335
1335
  translateX: !0,
1336
1336
  translateY: !0
1337
1337
  };
1338
1338
  function _e(e, t = "") {
1339
- if (ir[t] || t && !Wa[t] || typeof e == "boolean") return e;
1339
+ if (ir[t] || t && !Ba[t] || typeof e == "boolean") return e;
1340
1340
  if (e && typeof e == "object") if (typeof e.__getValue == "function") e = e.__getValue();
1341
1341
  else return e;
1342
1342
  let n = e;
@@ -1360,8 +1360,8 @@ function uo(e) {
1360
1360
  for (const n in e) {
1361
1361
  if (n === "$$css") continue;
1362
1362
  const o = e[n];
1363
- if (n in Me) o && t.push(...ci(o, Me[n]));
1364
- else if (ia(n)) for (const r in o) {
1363
+ if (n in Me) o && t.push(...ui(o, Me[n]));
1364
+ else if (aa(n)) for (const r in o) {
1365
1365
  const s = Fo(o, r);
1366
1366
  s && (s[0] = n, t.push(s));
1367
1367
  }
@@ -1372,7 +1372,7 @@ function uo(e) {
1372
1372
  }
1373
1373
  return t;
1374
1374
  }
1375
- const ci = (e, t) => {
1375
+ const ui = (e, t) => {
1376
1376
  pr(e);
1377
1377
  const n = [];
1378
1378
  for (const o in e) {
@@ -1387,10 +1387,10 @@ const Fo = (e, t, n) => {
1387
1387
  if (o == null) return;
1388
1388
  t === "transform" && Array.isArray(e.transform) && (o = hr(o));
1389
1389
  const r = _e(o, t), s = It(typeof r == "string" ? r : `${r}`), i = n ? `0${n.name}-` : "";
1390
- hn || (hn = Fs());
1390
+ hn || (hn = Vs());
1391
1391
  let a = `_${(hn == null ? void 0 : hn.inverseShorthands[t]) || t}-${i}${s}`;
1392
1392
  t === "pointerEvents" && !n && (r === "box-none" ? a = "_pe-boxnone" : r === "box-only" && (a = "_pe-boxonly"));
1393
- const l = Ua(a, t, r, n);
1393
+ const l = Ka(a, t, r, n);
1394
1394
  return [
1395
1395
  // array for performance
1396
1396
  t,
@@ -1434,14 +1434,14 @@ function pr(e) {
1434
1434
  }
1435
1435
  function pn(e, t = !1) {
1436
1436
  let n = "";
1437
- for (const [o, r] of e) n += `${ja(o)}:${r}${t ? " !important" : ""};`;
1437
+ for (const [o, r] of e) n += `${Ha(o)}:${r}${t ? " !important" : ""};`;
1438
1438
  return `{${n}}`;
1439
1439
  }
1440
- const fo = {}, Ba = (e) => `-${e.toLowerCase()}`, ja = (e) => {
1440
+ const fo = {}, ja = (e) => `-${e.toLowerCase()}`, Ha = (e) => {
1441
1441
  if (e in fo) return fo[e];
1442
- const t = e.replace(/[A-Z]/g, Ba);
1442
+ const t = e.replace(/[A-Z]/g, ja);
1443
1443
  return fo[e] = t, t;
1444
- }, Ha = (() => {
1444
+ }, Ua = (() => {
1445
1445
  const e = {};
1446
1446
  for (const t in Me) {
1447
1447
  const n = Me[t];
@@ -1449,9 +1449,9 @@ const fo = {}, Ba = (e) => `-${e.toLowerCase()}`, ja = (e) => {
1449
1449
  }
1450
1450
  return e;
1451
1451
  })();
1452
- function Ua(e, t, n, o) {
1453
- const r = o ? o.name === "disabled" ? "[aria-disabled]" : `:${o.name}` : "", s = o == null ? void 0 : o.selector, i = t in Ys ? `.${e}.${e}` : `.${e}`;
1454
- let a = o ? s ? `${s} ${i}` : `${Ha[o.name]} ${i}${r}` : `:root ${i}`;
1452
+ function Ka(e, t, n, o) {
1453
+ const r = o ? o.name === "disabled" ? "[aria-disabled]" : `:${o.name}` : "", s = o == null ? void 0 : o.selector, i = t in Xs ? `.${e}.${e}` : `.${e}`;
1454
+ let a = o ? s ? `${s} ${i}` : `${Ua[o.name]} ${i}${r}` : `:root ${i}`;
1455
1455
  s === Me.enterStyle.selector && (a = `${a}, .${e}${s}`);
1456
1456
  const l = !!o;
1457
1457
  let d = [];
@@ -1485,9 +1485,9 @@ function Ua(e, t, n, o) {
1485
1485
  }
1486
1486
  return (o == null ? void 0 : o.name) === "hover" && (d = d.map((u) => `@media (hover) {${u}}`)), d;
1487
1487
  }
1488
- const Kr = /* @__PURE__ */ new WeakMap(), Vo = /* @__PURE__ */ new Map(), ui = {}, Po = {}, Ka = () => ui, zo = () => process.env.TAMAGUI_DID_OUTPUT_CSS ? [] : Object.keys(Po).sort().map((e) => Po[e]);
1488
+ const Kr = /* @__PURE__ */ new WeakMap(), Vo = /* @__PURE__ */ new Map(), di = {}, Po = {}, Ga = () => di, Wo = () => process.env.TAMAGUI_DID_OUTPUT_CSS ? [] : Object.keys(Po).sort().map((e) => Po[e]);
1489
1489
  let Gr = null;
1490
- function Ga(e = !1, t) {
1490
+ function Ya(e = !1, t) {
1491
1491
  if (!process.env.TAMAGUI_DID_OUTPUT_CSS) {
1492
1492
  if (process.env.NODE_ENV === "test") return;
1493
1493
  let n;
@@ -1500,11 +1500,11 @@ function Ga(e = !1, t) {
1500
1500
  return n;
1501
1501
  }
1502
1502
  }
1503
- function Ya(e) {
1503
+ function Xa(e) {
1504
1504
  const t = (Vo.get(e) || 0) + 1;
1505
1505
  return Vo.set(e, t), t;
1506
1506
  }
1507
- const Yr = process.env.TAMAGUI_BAIL_AFTER_SCANNING_X_CSS_RULES, Xa = Yr ? +Yr : 8e3;
1507
+ const Yr = process.env.TAMAGUI_BAIL_AFTER_SCANNING_X_CSS_RULES, Za = Yr ? +Yr : 8e3;
1508
1508
  function Xr(e, t = !1, n = !1, o) {
1509
1509
  var f, b;
1510
1510
  let r;
@@ -1524,12 +1524,12 @@ function Xr(e, t = !1, n = !1, o) {
1524
1524
  const h = En(g, n);
1525
1525
  if (h) u = 0;
1526
1526
  else {
1527
- if (u++, u > Xa) return;
1527
+ if (u++, u > Za) return;
1528
1528
  continue;
1529
1529
  }
1530
1530
  const [E, x, S] = h;
1531
1531
  if (S) {
1532
- const T = Za(x, o);
1532
+ const T = qa(x, o);
1533
1533
  if (T) {
1534
1534
  for (const P of T.names) m[P] ? (Object.apply(m[P], T.theme), T.names = T.names.filter((K) => K !== P)) : m[P] = T.theme;
1535
1535
  c || (c = []), c.push(T);
@@ -1540,7 +1540,7 @@ function Xr(e, t = !1, n = !1, o) {
1540
1540
  return Kr.set(e, a), c;
1541
1541
  }
1542
1542
  let Nt, Zr = null;
1543
- function Za(e, t) {
1543
+ function qa(e, t) {
1544
1544
  const n = e.selectorText.split(",");
1545
1545
  if (!n.length) return;
1546
1546
  if (t != null && t.color && !Nt) {
@@ -1585,7 +1585,7 @@ function En(e, t = !1) {
1585
1585
  if (e instanceof CSSStyleRule) {
1586
1586
  const n = e.selectorText;
1587
1587
  if (n[0] === ":" && n[1] === "r" && qr.test(n)) {
1588
- const o = qa(
1588
+ const o = Ja(
1589
1589
  // next.js minifies it so its in front
1590
1590
  n.replace(qr, "")
1591
1591
  );
@@ -1593,28 +1593,28 @@ function En(e, t = !1) {
1593
1593
  }
1594
1594
  } else if (e instanceof CSSMediaRule) return e.cssRules.length > 1 ? void 0 : En(e.cssRules[0]);
1595
1595
  }
1596
- const qa = (e) => {
1596
+ const Ja = (e) => {
1597
1597
  const t = e.indexOf(":");
1598
1598
  return t > -1 ? e.slice(7, t) : e.slice(7);
1599
1599
  };
1600
- let jt = null, di = !0;
1601
- function Ja() {
1602
- di = !1;
1600
+ let jt = null, fi = !0;
1601
+ function Qa() {
1602
+ fi = !1;
1603
1603
  }
1604
- function fi(e, t) {
1605
- return di && (Po[e] = t.join(" ")), !0;
1604
+ function mi(e, t) {
1605
+ return fi && (Po[e] = t.join(" ")), !0;
1606
1606
  }
1607
- function Qa(e) {
1607
+ function el(e) {
1608
1608
  if (!jt && document.head) {
1609
1609
  const t = document.createElement("style");
1610
1610
  t.id = "_tamagui-styles", jt = document.head.appendChild(t).sheet;
1611
1611
  }
1612
1612
  if (jt) for (const t in e) {
1613
1613
  const n = e[t], o = n[pt];
1614
- if (!mi(o)) continue;
1615
- const r = n[Ln];
1616
- ui[o] = r.join(`
1617
- `), Ya(o), fi(o, r);
1614
+ if (!hi(o)) continue;
1615
+ const r = n[zn];
1616
+ di[o] = r.join(`
1617
+ `), Xa(o), mi(o, r);
1618
1618
  try {
1619
1619
  for (const s of r) jt.insertRule(s, jt.cssRules.length);
1620
1620
  } catch {
@@ -1622,39 +1622,39 @@ function Qa(e) {
1622
1622
  }
1623
1623
  }
1624
1624
  }
1625
- const el = process.env.TAMAGUI_INSERT_SELECTOR_TRIES ? +process.env.TAMAGUI_INSERT_SELECTOR_TRIES : 1;
1626
- function mi(e) {
1625
+ const tl = process.env.TAMAGUI_INSERT_SELECTOR_TRIES ? +process.env.TAMAGUI_INSERT_SELECTOR_TRIES : 1;
1626
+ function hi(e) {
1627
1627
  if (process.env.IS_STATIC === "is_static") return !0;
1628
1628
  const t = Vo.get(e) || 0;
1629
- return process.env.NODE_ENV === "development" && t > +(process.env.TAMAGUI_STYLE_INSERTION_WARNING_LIMIT || 10) && console.warn('Warning: inserting many CSS rules, you may be animating something and generating many CSS insertions, which can degrade performance. Instead, try using the "disableClassName" property on elements that change styles often. To disable this warning set TAMAGUI_STYLE_INSERTION_WARNING_LIMIT from 50000 to something higher'), t < el;
1629
+ return process.env.NODE_ENV === "development" && t > +(process.env.TAMAGUI_STYLE_INSERTION_WARNING_LIMIT || 10) && console.warn('Warning: inserting many CSS rules, you may be animating something and generating many CSS insertions, which can degrade performance. Instead, try using the "disableClassName" property on elements that change styles often. To disable this warning set TAMAGUI_STYLE_INSERTION_WARNING_LIMIT from 50000 to something higher'), t < tl;
1630
1630
  }
1631
1631
  function mo(e) {
1632
1632
  if (!e.startsWith("$platform")) return !0;
1633
1633
  const t = e.slice(10);
1634
1634
  return (
1635
1635
  // web, ios, android
1636
- t === ks || // web, native
1636
+ t === Ms || // web, native
1637
1637
  t === "web"
1638
1638
  );
1639
1639
  }
1640
- function tl(e, t) {
1640
+ function nl(e, t) {
1641
1641
  if (e.startsWith("$theme-")) return e.slice(7).startsWith(t);
1642
1642
  }
1643
1643
  function U(...e) {
1644
1644
  if (process.env.NODE_ENV !== "production") {
1645
- Lr(!0);
1645
+ zr(!0);
1646
1646
  try {
1647
1647
  return console.info(...e);
1648
1648
  } catch (t) {
1649
1649
  console.error(t);
1650
1650
  } finally {
1651
- Lr(!1);
1651
+ zr(!1);
1652
1652
  }
1653
1653
  }
1654
1654
  }
1655
- const nl = [["flexGrow", 0], ["flexShrink", 1], ["flexBasis", "auto"]];
1656
- function hi(e, t) {
1657
- if (e === "flex") return t === -1 ? nl : [["flexGrow", t], ["flexShrink", 1], ["flexBasis", Ce("styleCompat") === "legacy" ? "auto" : 0]];
1655
+ const ol = [["flexGrow", 0], ["flexShrink", 1], ["flexBasis", "auto"]];
1656
+ function pi(e, t) {
1657
+ if (e === "flex") return t === -1 ? ol : [["flexGrow", t], ["flexShrink", 1], ["flexBasis", Ce("styleCompat") === "legacy" ? "auto" : 0]];
1658
1658
  switch (e) {
1659
1659
  case "writingDirection":
1660
1660
  return [["direction", t]];
@@ -1680,12 +1680,12 @@ const Jr = ["Top", "Right", "Bottom", "Left"], Qr = ["Right", "Left"], es = ["To
1680
1680
  overflow: ts,
1681
1681
  overscrollBehavior: ts
1682
1682
  };
1683
- var $s;
1683
+ var ws;
1684
1684
  for (const e in Yt) {
1685
- const t = e.slice(0, (($s = /[A-Z]/.exec(e)) == null ? void 0 : $s.index) ?? e.length);
1685
+ const t = e.slice(0, ((ws = /[A-Z]/.exec(e)) == null ? void 0 : ws.index) ?? e.length);
1686
1686
  Yt[e] = Yt[e].map((n) => `${t}${n}`);
1687
1687
  }
1688
- const ho = /* @__PURE__ */ new WeakMap(), ol = (e) => {
1688
+ const ho = /* @__PURE__ */ new WeakMap(), rl = (e) => {
1689
1689
  if (ho.has(e)) return ho.get(e);
1690
1690
  const {
1691
1691
  props: t,
@@ -1695,7 +1695,7 @@ const ho = /* @__PURE__ */ new WeakMap(), ol = (e) => {
1695
1695
  styleProps: s
1696
1696
  } = e, i = s.styledContext;
1697
1697
  let a = n.fontsParsed;
1698
- o != null && o.language && (a = Lo(n.fontsParsed, o.language));
1698
+ o != null && o.language && (a = zo(n.fontsParsed, o.language));
1699
1699
  const l = {
1700
1700
  fonts: a,
1701
1701
  tokens: n.tokensParsed,
@@ -1711,7 +1711,7 @@ const ho = /* @__PURE__ */ new WeakMap(), ol = (e) => {
1711
1711
  };
1712
1712
  return ho.set(e, l), l;
1713
1713
  }, po = /* @__PURE__ */ new WeakMap();
1714
- function Lo(e, t) {
1714
+ function zo(e, t) {
1715
1715
  if (po.has(t)) return po.get(t);
1716
1716
  const n = {
1717
1717
  ...e,
@@ -1723,16 +1723,16 @@ function Lo(e, t) {
1723
1723
  };
1724
1724
  return po.set(t, n), n;
1725
1725
  }
1726
- const rl = {
1726
+ const sl = {
1727
1727
  fontSize: "size",
1728
1728
  fontWeight: "weight"
1729
1729
  };
1730
- let ns = !1, pi = null;
1731
- function sl() {
1732
- return pi;
1730
+ let ns = !1, gi = null;
1731
+ function il() {
1732
+ return gi;
1733
1733
  }
1734
1734
  function gr(e) {
1735
- pi = e;
1735
+ gi = e;
1736
1736
  }
1737
1737
  const en = (e, t, n, o) => {
1738
1738
  var p, g, h, E, x, S;
@@ -1759,7 +1759,7 @@ const en = (e, t, n, o) => {
1759
1759
  else {
1760
1760
  switch (e) {
1761
1761
  case "fontFamily": {
1762
- m = ((h = (a != null && a.language ? Lo(i.fontsParsed, a.language) : i.fontsParsed)[t]) == null ? void 0 : h.family) || t, gr(t), f = !0;
1762
+ m = ((h = (a != null && a.language ? zo(i.fontsParsed, a.language) : i.fontsParsed)[t]) == null ? void 0 : h.family) || t, gr(t), f = !0;
1763
1763
  break;
1764
1764
  }
1765
1765
  case "fontSize":
@@ -1768,8 +1768,8 @@ const en = (e, t, n, o) => {
1768
1768
  case "fontWeight": {
1769
1769
  const T = l || i.defaultFontToken;
1770
1770
  if (T) {
1771
- const P = a != null && a.language ? Lo(i.fontsParsed, a.language) : i.fontsParsed;
1772
- m = ((x = (E = P[T] || P[i.defaultFontToken]) == null ? void 0 : E[rl[e] || e]) == null ? void 0 : x[t]) || t, f = !0;
1771
+ const P = a != null && a.language ? zo(i.fontsParsed, a.language) : i.fontsParsed;
1772
+ m = ((x = (E = P[T] || P[i.defaultFontToken]) == null ? void 0 : E[sl[e] || e]) == null ? void 0 : x[t]) || t, f = !0;
1773
1773
  }
1774
1774
  break;
1775
1775
  }
@@ -1802,29 +1802,29 @@ function br(e, t, n) {
1802
1802
  return t;
1803
1803
  }
1804
1804
  const jn = (e) => e && !Array.isArray(e) && typeof e == "object";
1805
- function gi(e, t = !1) {
1805
+ function bi(e, t = !1) {
1806
1806
  const n = {};
1807
1807
  for (let o in e) {
1808
1808
  const r = e[o];
1809
1809
  if (r == null) continue;
1810
1810
  if (o in Me || // this should capture all parent-based styles like media, group, etc
1811
1811
  o[0] === "$" && jn(r)) {
1812
- n[o] = gi(r, t);
1812
+ n[o] = bi(r, t);
1813
1813
  continue;
1814
1814
  }
1815
- const s = t ? r : _e(r, o), i = hi(o, s);
1815
+ const s = t ? r : _e(r, o), i = pi(o, s);
1816
1816
  i ? Object.assign(n, Object.fromEntries(i)) : n[o] = s;
1817
1817
  }
1818
1818
  return Bn(n), n;
1819
1819
  }
1820
- const il = /(\$[\w.-]+)/g;
1821
- function al(e, t, n, o) {
1822
- return t.replace(il, (r) => {
1820
+ const al = /(\$[\w.-]+)/g;
1821
+ function ll(e, t, n, o) {
1822
+ return t.replace(al, (r) => {
1823
1823
  let s = en("size", r, n, o);
1824
1824
  return s == null && (s = en("color", r, n, o)), s != null ? String(s) : r;
1825
1825
  });
1826
1826
  }
1827
- const ll = {
1827
+ const cl = {
1828
1828
  boxShadow: !0,
1829
1829
  textShadow: !0,
1830
1830
  filter: !0,
@@ -1832,13 +1832,13 @@ const ll = {
1832
1832
  border: !0,
1833
1833
  outline: !0
1834
1834
  };
1835
- function bi(e, t, n, o) {
1836
- return !t.includes("$") || !ll[e] ? t : al(e, t, n, o);
1835
+ function yi(e, t, n, o) {
1836
+ return !t.includes("$") || !cl[e] ? t : ll(e, t, n, o);
1837
1837
  }
1838
- function Wo(e) {
1838
+ function Lo(e) {
1839
1839
  return typeof e == "string" && e.includes("rem");
1840
1840
  }
1841
- const cl = {
1841
+ const ul = {
1842
1842
  accessibilityElementsHidden: 1,
1843
1843
  accessibilityIgnoresInvertColors: 1,
1844
1844
  accessibilityLanguage: 1,
@@ -1889,8 +1889,8 @@ const cl = {
1889
1889
  animatePresence: 1
1890
1890
  };
1891
1891
  process.env.NODE_ENV === "test" && (bt["data-test-renders"] = 1);
1892
- Object.assign(bt, cl);
1893
- const yi = (e, t, n, o, r) => {
1892
+ Object.assign(bt, ul);
1893
+ const Si = (e, t, n, o, r) => {
1894
1894
  if (o) return r(e, t);
1895
1895
  if (gr(null), e === "elevationAndroid") return;
1896
1896
  const {
@@ -1901,7 +1901,7 @@ const yi = (e, t, n, o, r) => {
1901
1901
  variants: l
1902
1902
  } = a;
1903
1903
  if (!i.noExpand && l && e in l) {
1904
- const u = Si(e, t, i, n, "");
1904
+ const u = vi(e, t, i, n, "");
1905
1905
  if (u) {
1906
1906
  u.forEach(([c, m]) => r(c, m));
1907
1907
  return;
@@ -1912,14 +1912,14 @@ const yi = (e, t, n, o, r) => {
1912
1912
  if (t != null) if (typeof t == "string")
1913
1913
  if (t[0] === "$") t = en(e, t, i, n);
1914
1914
  else {
1915
- const u = bi(e, t, i, n);
1916
- t = u !== t ? u : Wo(t) ? t : t;
1915
+ const u = yi(e, t, i, n);
1916
+ t = u !== t ? u : Lo(t) ? t : t;
1917
1917
  }
1918
- else xe(t) ? t = br(e, t, i.resolveValues) : Wo(t) && (t = t);
1918
+ else xe(t) ? t = br(e, t, i.resolveValues) : Lo(t) && (t = t);
1919
1919
  if (t != null) {
1920
- const u = sl();
1920
+ const u = il();
1921
1921
  e === "fontFamily" && u && (n.fontFamily = u);
1922
- const c = i.noExpand ? null : hi(e, t);
1922
+ const c = i.noExpand ? null : pi(e, t);
1923
1923
  if (c) {
1924
1924
  const m = c.length;
1925
1925
  for (let f = 0; f < m; f++) {
@@ -1928,7 +1928,7 @@ const yi = (e, t, n, o, r) => {
1928
1928
  }
1929
1929
  } else r(e, t, d);
1930
1930
  }
1931
- }, Si = (e, t, n, o, r) => {
1931
+ }, vi = (e, t, n, o, r) => {
1932
1932
  const {
1933
1933
  staticConfig: s,
1934
1934
  conf: i,
@@ -1937,7 +1937,7 @@ const yi = (e, t, n, o, r) => {
1937
1937
  variants: l
1938
1938
  } = s;
1939
1939
  if (!l) return;
1940
- let d = fl(l[e], t, i, o);
1940
+ let d = ml(l[e], t, i, o);
1941
1941
  if (process.env.NODE_ENV === "development" && a === "verbose" && (console.groupCollapsed(`♦️♦️♦️ resolve variant ${e}`), console.info({
1942
1942
  key: e,
1943
1943
  value: t,
@@ -1951,7 +1951,7 @@ const yi = (e, t, n, o, r) => {
1951
1951
  return;
1952
1952
  }
1953
1953
  if (typeof d == "function") {
1954
- const c = d, m = ol(o);
1954
+ const c = d, m = rl(o);
1955
1955
  d = c(t, m), process.env.NODE_ENV === "development" && a === "verbose" && (console.groupCollapsed(" expanded functional variant", e), console.info({
1956
1956
  fn: c,
1957
1957
  variantValue: d,
@@ -1961,16 +1961,16 @@ const yi = (e, t, n, o, r) => {
1961
1961
  let u;
1962
1962
  if (jn(d)) {
1963
1963
  const c = d.fontFamily || d[i.inverseShorthands.fontFamily];
1964
- c && (u = ul(c, i), o.fontFamily = u, process.env.NODE_ENV === "development" && a === "verbose" && console.info(" updating font family", u)), d = vi(e, d, n, o, r);
1964
+ c && (u = dl(c, i), o.fontFamily = u, process.env.NODE_ENV === "development" && a === "verbose" && console.info(" updating font family", u)), d = Ei(e, d, n, o, r);
1965
1965
  }
1966
1966
  if (d) {
1967
- const c = gi(d, !!n.noNormalize);
1967
+ const c = bi(d, !!n.noNormalize);
1968
1968
  process.env.NODE_ENV === "development" && a === "verbose" && console.info(" expanding styles from ", d, "to", c);
1969
1969
  const m = Object.entries(c);
1970
1970
  return u && u[0] === "$" && gr(An(u)), m;
1971
1971
  }
1972
1972
  };
1973
- function ul(e, t) {
1973
+ function dl(e, t) {
1974
1974
  if (xe(e)) {
1975
1975
  const n = os.get(e);
1976
1976
  if (n) return n;
@@ -1980,7 +1980,7 @@ function ul(e, t) {
1980
1980
  }
1981
1981
  } else if (typeof e == "string" && e[0] === "$") return e;
1982
1982
  }
1983
- const os = /* @__PURE__ */ new WeakMap(), vi = (e, t, n, o, r) => {
1983
+ const os = /* @__PURE__ */ new WeakMap(), Ei = (e, t, n, o, r) => {
1984
1984
  var c, m, f, b;
1985
1985
  const {
1986
1986
  conf: s,
@@ -2002,7 +2002,7 @@ const os = /* @__PURE__ */ new WeakMap(), vi = (e, t, n, o, r) => {
2002
2002
  else if (d && g in d) {
2003
2003
  if (r && r === e) u[g] = h[0] === "$" ? en(g, h, n, o) : h;
2004
2004
  else {
2005
- const E = Si(g, h, n, o, e);
2005
+ const E = vi(g, h, n, o, e);
2006
2006
  if (E) for (const [x, S] of E) S != null && (x in Me ? (u[x] ?? (u[x] = {}), Object.assign(u[x], S)) : u[x] = S);
2007
2007
  }
2008
2008
  continue;
@@ -2012,23 +2012,23 @@ const os = /* @__PURE__ */ new WeakMap(), vi = (e, t, n, o, r) => {
2012
2012
  continue;
2013
2013
  }
2014
2014
  if (typeof h == "string") {
2015
- const E = h[0] === "$" ? en(g, h, n, o) : bi(g, h, n, o);
2016
- u[g] = E === h && Wo(h) ? h : E;
2015
+ const E = h[0] === "$" ? en(g, h, n, o) : yi(g, h, n, o);
2016
+ u[g] = E === h && Lo(h) ? h : E;
2017
2017
  continue;
2018
2018
  }
2019
2019
  if (jn(h)) {
2020
- const E = vi(g, h, n, o, e);
2020
+ const E = Ei(g, h, n, o, e);
2021
2021
  process.env.NODE_ENV === "development" && a === "verbose" && console.info("object", g, E), u[g] ?? (u[g] = {}), Object.assign(u[g], E);
2022
2022
  } else u[g] = h;
2023
2023
  process.env.NODE_ENV === "development" && a && ((b = u[g]) == null ? void 0 : b[0]) === "$" && console.warn(`⚠️ Missing token in theme ${l.name}:`, g, u[g], l);
2024
2024
  }
2025
2025
  }
2026
2026
  return u;
2027
- }, dl = ["size", "color", "radius", "space", "zIndex"].map((e) => ({
2027
+ }, fl = ["size", "color", "radius", "space", "zIndex"].map((e) => ({
2028
2028
  name: e,
2029
2029
  spreadName: `...${e}`
2030
2030
  }));
2031
- function fl(e, t, n, {
2031
+ function ml(e, t, n, {
2032
2032
  theme: o
2033
2033
  }) {
2034
2034
  if (!e) return;
@@ -2042,13 +2042,13 @@ function fl(e, t, n, {
2042
2042
  for (const {
2043
2043
  name: a,
2044
2044
  spreadName: l
2045
- } of dl) if (l in e && (a in s && t in s[a] || a === "color" && o && typeof t == "string" && t[0] === "$" && t.slice(1) in o)) return e[l];
2045
+ } of fl) if (l in e && (a in s && t in s[a] || a === "color" && o && typeof t == "string" && t[0] === "$" && t.slice(1) in o)) return e[l];
2046
2046
  const i = e["...fontSize"];
2047
2047
  if (i && n.fontSizeTokens.has(t)) return i;
2048
2048
  }
2049
2049
  return e[`:${typeof t}`] || e["..."];
2050
2050
  }
2051
- const Ei = (e, t) => e < t ? -1 : e > t ? 1 : 0;
2051
+ const $i = (e, t) => e < t ? -1 : e > t ? 1 : 0;
2052
2052
  let ct;
2053
2053
  const Xt = /* @__PURE__ */ new WeakMap(), rs = "-";
2054
2054
  function ss(e, t) {
@@ -2065,7 +2065,7 @@ function ss(e, t) {
2065
2065
  function is(e, t, n) {
2066
2066
  return e in t ? !0 : n && e in n;
2067
2067
  }
2068
- const $i = (e, t, n, o, r, s, i, a, l, d, u, c, m) => {
2068
+ const wi = (e, t, n, o, r, s, i, a, l, d, u, c, m) => {
2069
2069
  var st, St, Dt;
2070
2070
  ct = ct || ze();
2071
2071
  const f = m || (a == null ? void 0 : a.animationDriver) || ct.animations;
@@ -2083,10 +2083,10 @@ const $i = (e, t, n, o, r, s, i, a, l, d, u, c, m) => {
2083
2083
  inlineWhenUnflattened: T,
2084
2084
  parentStaticConfig: P,
2085
2085
  acceptsClassName: K
2086
- } = t, R = {}, k = s.mediaState || zn, _ = K && At && !s.noClass, v = {}, $ = {};
2086
+ } = t, R = {}, k = s.mediaState || Wn, _ = K && At && !s.noClass, v = {}, $ = {};
2087
2087
  e.space;
2088
2088
  let C = null, M = !1, ie, le, G, me = e.className || "", Te = 0;
2089
- const je = t.validStyles || (t.isText || t.isInput ? cr : Wn);
2089
+ const He = t.validStyles || (t.isText || t.isInput ? cr : Ln);
2090
2090
  process.env.NODE_ENV === "development" && (c === "profile" || globalThis.time) && time`split-styles-setup`;
2091
2091
  const N = {
2092
2092
  classNames: $,
@@ -2109,8 +2109,8 @@ const $i = (e, t, n, o, r, s, i, a, l, d, u, c, m) => {
2109
2109
  fallbackProps: V
2110
2110
  } = s;
2111
2111
  V && (N.props = new Proxy(e, {
2112
- get(O, z, ne) {
2113
- return Reflect.has(e, z) ? Reflect.get(e, z) : Reflect.get(V, z);
2112
+ get(O, W, ne) {
2113
+ return Reflect.has(e, W) ? Reflect.get(e, W) : Reflect.get(V, W);
2114
2114
  }
2115
2115
  }));
2116
2116
  }
@@ -2127,74 +2127,74 @@ const $i = (e, t, n, o, r, s, i, a, l, d, u, c, m) => {
2127
2127
  }
2128
2128
  }));
2129
2129
  const {
2130
- asChild: He
2130
+ asChild: Ue
2131
2131
  } = e, {
2132
2132
  accept: $e
2133
2133
  } = t, {
2134
2134
  noSkip: Y,
2135
2135
  disableExpandShorthands: I,
2136
- noExpand: Xe,
2136
+ noExpand: Ze,
2137
2137
  styledContext: Un
2138
2138
  } = s, {
2139
2139
  webContainerType: yt
2140
2140
  } = ct.settings, rt = P == null ? void 0 : P.variants;
2141
2141
  for (const V in e) {
2142
- let O = V, z = e[O];
2142
+ let O = V, W = e[O];
2143
2143
  if (O === "children") {
2144
- R[O] = z;
2144
+ R[O] = W;
2145
2145
  continue;
2146
2146
  }
2147
2147
  if (process.env.NODE_ENV === "development" && (c === "profile" || globalThis.time) && time`before-prop-${O}`, process.env.NODE_ENV === "test" && O === "jestAnimatedStyle") continue;
2148
2148
  if ($e) {
2149
2149
  const D = $e[O];
2150
- if ((D === "style" || D === "textStyle") && z && typeof z == "object") {
2151
- R[O] = Gt(N, O, z, s.noClass);
2150
+ if ((D === "style" || D === "textStyle") && W && typeof W == "object") {
2151
+ R[O] = Gt(N, O, W, s.noClass);
2152
2152
  continue;
2153
2153
  }
2154
2154
  }
2155
2155
  if (I || O in b && (O = b[O]), O === "className") continue;
2156
- if (He) {
2156
+ if (Ue) {
2157
2157
  const D = mr(t);
2158
2158
  if (D) {
2159
2159
  const ee = D[V] ?? D[O];
2160
- if (ee !== void 0 && z === ee) continue;
2160
+ if (ee !== void 0 && W === ee) continue;
2161
2161
  }
2162
2162
  }
2163
2163
  if (O in bt && !Y && !p) {
2164
2164
  if (O === "group") {
2165
- const D = `t_group_${z}`, ee = ["continer", void 0, D, void 0, [`.${D} { container-name: ${z}; container-type: ${yt || "inline-size"}; }`]];
2165
+ const D = `t_group_${W}`, ee = ["continer", void 0, D, void 0, [`.${D} { container-name: ${W}; container-type: ${yt || "inline-size"}; }`]];
2166
2166
  Ht(v, ee);
2167
2167
  }
2168
2168
  continue;
2169
2169
  }
2170
- let ne = is(O, je, $e);
2170
+ let ne = is(O, He, $e);
2171
2171
  if (t.isReactNative && O.startsWith("data-")) {
2172
- O = O.replace("data-", ""), R.dataSet || (R.dataSet = {}), R.dataSet[O] = z;
2172
+ O = O.replace("data-", ""), R.dataSet || (R.dataSet = {}), R.dataSet[O] = W;
2173
2173
  continue;
2174
2174
  }
2175
- if (!Xe) {
2176
- if (O === "disabled" && z === !0 && (R["aria-disabled"] = !0, (d === "button" || d === "form" || d === "input" || d === "select" || d === "textarea") && (R.disabled = !0), !(E != null && E.disabled))) continue;
2175
+ if (!Ze) {
2176
+ if (O === "disabled" && W === !0 && (R["aria-disabled"] = !0, (d === "button" || d === "form" || d === "input" || d === "select" || d === "textarea") && (R.disabled = !0), !(E != null && E.disabled))) continue;
2177
2177
  if (O === "testID") {
2178
- x ? R.testID = z : (R["data-testid"] = z, s.isAnimated && (f != null && f.isReactNative) && (R.testID = z));
2178
+ x ? R.testID = W : (R["data-testid"] = W, s.isAnimated && (f != null && f.isReactNative) && (R.testID = W));
2179
2179
  continue;
2180
2180
  }
2181
2181
  if (O === "id") {
2182
- R.id = z;
2182
+ R.id = W;
2183
2183
  continue;
2184
2184
  }
2185
2185
  }
2186
2186
  let oe = !ne && E && O in E;
2187
- const Ue = ne || oe;
2188
- let ce = O in On, ae = !Ue && !ce ? Pr(O) : !1, ue = !!(ae || ce);
2187
+ const Ke = ne || oe;
2188
+ let ce = O in On, ae = !Ke && !ce ? Pr(O) : !1, ue = !!(ae || ce);
2189
2189
  ue && ae === "group" && (O = ss(O, l));
2190
- const De = ne || ue || oe && !Xe;
2191
- if (De && (He === "except-style" || He === "except-style-web")) continue;
2192
- const L = !De && p || // is in parent variants
2193
- p && rt && O in rt || (S == null ? void 0 : S.has(O)), it = rt == null ? void 0 : rt[O], vt = !!(p && (ne || ue || it || O in bt)), we = L || vt;
2190
+ const Fe = ne || ue || oe && !Ze;
2191
+ if (Fe && (Ue === "except-style" || Ue === "except-style-web")) continue;
2192
+ const z = !Fe && p || // is in parent variants
2193
+ p && rt && O in rt || (S == null ? void 0 : S.has(O)), it = rt == null ? void 0 : rt[O], vt = !!(p && (ne || ue || it || O in bt)), we = z || vt;
2194
2194
  if (process.env.NODE_ENV === "development" && c === "verbose" && (console.groupCollapsed(` 🔑 ${V}${O !== V ? ` (shorthand for ${O})` : ""} ${we ? "(pass)" : ""}`), U({
2195
2195
  isVariant: oe,
2196
- valInit: z,
2197
- shouldPassProp: L
2196
+ valInit: W,
2197
+ shouldPassProp: z
2198
2198
  }), Ct && U({
2199
2199
  variants: E,
2200
2200
  variant: E == null ? void 0 : E[O],
@@ -2204,22 +2204,22 @@ const $i = (e, t, n, o, r, s, i, a, l, d, u, c, m) => {
2204
2204
  ...N.usedKeys
2205
2205
  },
2206
2206
  parentStaticConfig: P
2207
- })), we && (as(R, O, z, ue), process.env.NODE_ENV === "development" && c === "verbose" && console.groupEnd(), !oe)) continue;
2207
+ })), we && (as(R, O, W, ue), process.env.NODE_ENV === "development" && c === "verbose" && console.groupEnd(), !oe)) continue;
2208
2208
  if (!Y && O in bt) {
2209
2209
  process.env.NODE_ENV === "development" && c === "verbose" && console.groupEnd();
2210
2210
  continue;
2211
2211
  }
2212
- (g || h) && z && (O === "fontFamily" || O === b.fontFamily) && z in ct.fontsParsed && (N.fontFamily = z);
2213
- const sn = ue || !Ue;
2214
- if (yi(O, z, N, sn, (D, ee, Ft) => {
2215
- var re, Ze, ln, at;
2212
+ (g || h) && W && (O === "fontFamily" || O === b.fontFamily) && W in ct.fontsParsed && (N.fontFamily = W);
2213
+ const sn = ue || !Ke;
2214
+ if (Si(O, W, N, sn, (D, ee, Ft) => {
2215
+ var re, qe, ln, at;
2216
2216
  const an = Un && D in Un;
2217
2217
  if (!p && sn && !an && !ue) {
2218
2218
  R[D] = ee;
2219
2219
  return;
2220
2220
  }
2221
2221
  if (process.env.NODE_ENV === "development" && c === "verbose" && (console.groupCollapsed(" 💠 expanded", O, "=>", D), U(ee), console.groupEnd()), ee != null) {
2222
- if (!p && is(D, je, $e)) {
2222
+ if (!p && is(D, He, $e)) {
2223
2223
  tn(N, D, ee, 1, !1, Ft);
2224
2224
  return;
2225
2225
  }
@@ -2239,34 +2239,34 @@ const $i = (e, t, n, o, r, s, i, a, l, d, u, c, m) => {
2239
2239
  Object.assign(C[D], te);
2240
2240
  return;
2241
2241
  }
2242
- const Fe = Me[D], Ne = D === "enterStyle", Ae = D === "exitStyle";
2243
- if (!Fe) return;
2242
+ const Ve = Me[D], Ne = D === "enterStyle", Ae = D === "exitStyle";
2243
+ if (!Ve) return;
2244
2244
  if (_ && !Ae) {
2245
- const ve = ci(te, Fe);
2245
+ const ve = ui(te, Ve);
2246
2246
  process.env.NODE_ENV === "development" && c === "verbose" && console.info("pseudo:", D, te, ve);
2247
2247
  for (const q of ve) {
2248
- const de = `${q[Ut]}${rs}${Fe.name}`;
2248
+ const de = `${q[Ut]}${rs}${Ve.name}`;
2249
2249
  Ht(v, q), $[de] = q[pt];
2250
2250
  }
2251
2251
  }
2252
2252
  if (!_ || Ae || Ne) {
2253
- const ve = Fe.stateKey || Fe.name;
2253
+ const ve = Ve.stateKey || Ve.name;
2254
2254
  let q = r[ve] === !1;
2255
2255
  Ae && (q = !s.isExiting), Ne && r.unmounted === !1 && (q = !0), process.env.NODE_ENV === "development" && c === "verbose" && (console.groupCollapsed("pseudo", D, {
2256
2256
  isDisabled: q
2257
2257
  }), U({
2258
2258
  pseudoStyleObject: te,
2259
2259
  isDisabled: q,
2260
- descriptor: Fe,
2260
+ descriptor: Ve,
2261
2261
  componentState: r
2262
2262
  }), console.groupEnd());
2263
- const de = Fe.priority, ge = Xt.get(te);
2263
+ const de = Ve.priority, ge = Xt.get(te);
2264
2264
  for (const j in te) {
2265
2265
  const J = te[j];
2266
2266
  if (q) go(j, N);
2267
2267
  else {
2268
- const be = N.usedKeys[j] || 0, We = de >= be;
2269
- We && (process.env.IS_STATIC === "is_static" && (C || (C = {}), C[D] || (C[D] = {}), C[D][j] = J), tn(N, j, J, de, !1, ge == null ? void 0 : ge[j])), process.env.NODE_ENV === "development" && c === "verbose" && U(" subKey", j, We, {
2268
+ const be = N.usedKeys[j] || 0, Le = de >= be;
2269
+ Le && (process.env.IS_STATIC === "is_static" && (C || (C = {}), C[D] || (C[D] = {}), C[D][j] = J), tn(N, j, J, de, !1, ge == null ? void 0 : ge[j])), process.env.NODE_ENV === "development" && c === "verbose" && U(" subKey", j, Le, {
2270
2270
  importance: de,
2271
2271
  curImportance: be,
2272
2272
  pkey: j,
@@ -2294,20 +2294,20 @@ const $i = (e, t, n, o, r, s, i, a, l, d, u, c, m) => {
2294
2294
  componentState: r,
2295
2295
  mediaState: k
2296
2296
  });
2297
- const Fe = Te;
2297
+ const Ve = Te;
2298
2298
  if (Te += 1, _) {
2299
2299
  const Ne = Gt(N, D, ee, !1), Ae = uo(Ne);
2300
2300
  for (const ve of Ae) {
2301
2301
  const q = ve[Ut], de = q[0] === "$";
2302
2302
  if (de && !mo(q)) continue;
2303
- const ge = oa(ve, te, Jt, ae, !1, Fe);
2303
+ const ge = ra(ve, te, Jt, ae, !1, Ve);
2304
2304
  process.env.NODE_ENV === "development" && c === "verbose" && U("📺 media style:", ge);
2305
- const j = de ? ve[2] : "", J = `${ve[Ut]}${j}${rs}${te}${ve[Hs] || ""}`;
2305
+ const j = de ? ve[2] : "", J = `${ve[Ut]}${j}${rs}${te}${ve[Us] || ""}`;
2306
2306
  Ht(v, ge), $[J] = ge[pt];
2307
2307
  }
2308
2308
  } else {
2309
2309
  let Ne = function(j, J, be) {
2310
- N.style || (N.style = {}), yl(N, te, j, J, k[te], de, c, be) && j === "fontFamily" && (N.fontFamily = q.fontFamily);
2310
+ N.style || (N.style = {}), Sl(N, te, j, J, k[te], de, c, be) && j === "fontFamily" && (N.fontFamily = q.fontFamily);
2311
2311
  };
2312
2312
  const Ae = ae === "theme", ve = ae === "group";
2313
2313
  if (!Ae && ae !== "platform" && !ve) {
@@ -2322,32 +2322,32 @@ const $i = (e, t, n, o, r, s, i, a, l, d, u, c, m) => {
2322
2322
  if (Ae) {
2323
2323
  if (ie = !0, !(o === te || o.startsWith(te))) return;
2324
2324
  } else if (ve) {
2325
- const j = Ps(te), J = j.name, be = (Ze = l == null ? void 0 : l[J]) == null ? void 0 : Ze.state, We = j.pseudo, Ve = j.media;
2325
+ const j = Ws(te), J = j.name, be = (qe = l == null ? void 0 : l[J]) == null ? void 0 : qe.state, Le = j.pseudo, Pe = j.media;
2326
2326
  if (!be) {
2327
2327
  process.env.NODE_ENV === "development" && c && U(`No parent with group prop, skipping styles: ${J}`), le || (le = /* @__PURE__ */ new Set());
2328
2328
  return;
2329
2329
  }
2330
- const Ke = (ln = r.group) == null ? void 0 : ln[J];
2331
- if (Ve) {
2332
- G || (G = /* @__PURE__ */ new Set()), G.add(Ve);
2333
- const ye = Ke == null ? void 0 : Ke.media;
2334
- let Re = ye == null ? void 0 : ye[Ve];
2335
- if (!ye && be.layout && (Re = js(Ve, be.layout)), process.env.NODE_ENV === "development" && c === "verbose" && U(` 🏘️ GROUP media ${Ve} active? ${Re}`, {
2330
+ const Ge = (ln = r.group) == null ? void 0 : ln[J];
2331
+ if (Pe) {
2332
+ G || (G = /* @__PURE__ */ new Set()), G.add(Pe);
2333
+ const ye = Ge == null ? void 0 : Ge.media;
2334
+ let Re = ye == null ? void 0 : ye[Pe];
2335
+ if (!ye && be.layout && (Re = Hs(Pe, be.layout)), process.env.NODE_ENV === "development" && c === "verbose" && U(` 🏘️ GROUP media ${Pe} active? ${Re}`, {
2336
2336
  ...ye,
2337
2337
  usedKeys: {
2338
2338
  ...N.usedKeys
2339
2339
  }
2340
2340
  }), !Re) {
2341
- for (const Ge in q) go(Ge, N);
2341
+ for (const Ye in q) go(Ye, N);
2342
2342
  return;
2343
2343
  }
2344
2344
  de = 2;
2345
2345
  }
2346
- if (We) {
2346
+ if (Le) {
2347
2347
  le || (le = /* @__PURE__ */ new Set()), le.add(J);
2348
- const ye = (at = Ke || // fallback to context initially
2349
- (l == null ? void 0 : l[J].state)) == null ? void 0 : at.pseudo, Re = ye == null ? void 0 : ye[We], Ge = Qo[We];
2350
- if (process.env.NODE_ENV === "development" && c === "verbose" && U(` 🏘️ GROUP pseudo ${Ve} active? ${Re}, priority ${Ge}`, {
2348
+ const ye = (at = Ge || // fallback to context initially
2349
+ (l == null ? void 0 : l[J].state)) == null ? void 0 : at.pseudo, Re = ye == null ? void 0 : ye[Le], Ye = Qo[Le];
2350
+ if (process.env.NODE_ENV === "development" && c === "verbose" && U(` 🏘️ GROUP pseudo ${Pe} active? ${Re}, priority ${Ye}`, {
2351
2351
  componentGroupPseudoState: {
2352
2352
  ...ye
2353
2353
  },
@@ -2358,13 +2358,13 @@ const $i = (e, t, n, o, r, s, i, a, l, d, u, c, m) => {
2358
2358
  for (const Et in q) go(Et, N);
2359
2359
  return;
2360
2360
  }
2361
- de = Ge;
2361
+ de = Ye;
2362
2362
  }
2363
2363
  }
2364
2364
  const ge = Xt.get(q);
2365
2365
  ve && q.transition && (N.pseudoTransitions || (N.pseudoTransitions = {}), N.pseudoTransitions[`$${te}`] = q.transition);
2366
2366
  for (const j in q) if (j !== "space") if (j[0] === "$") {
2367
- if (!mo(j) || !tl(j, o)) continue;
2367
+ if (!mo(j) || !nl(j, o)) continue;
2368
2368
  const J = Xt.get(q[j]);
2369
2369
  for (const be in q[j]) Ne(be, q[j][be], J == null ? void 0 : J[be]);
2370
2370
  } else Ne(j, q[j], ge == null ? void 0 : ge[j]);
@@ -2390,13 +2390,13 @@ const $i = (e, t, n, o, r, s, i, a, l, d, u, c, m) => {
2390
2390
  console.groupEnd();
2391
2391
  }
2392
2392
  }
2393
- if (process.env.NODE_ENV === "development" && (c === "profile" || globalThis.time) && time`split-styles-propsend`, s.noNormalize !== !1 && (N.style && (Bn(N.style), !s.noExpand && !s.noMergeStyle && At && (!x || (f == null ? void 0 : f.inputStyle) !== "css") && pr(N.style)), N.flatTransforms && (N.style || (N.style = {}), wi(N.style, N.flatTransforms))), !s.noNormalize && !t.isReactNative && !t.isHOC && (!s.isAnimated || (f == null ? void 0 : f.inputStyle) === "css") && Array.isArray((st = N.style) == null ? void 0 : st.transform) && (N.style.transform = hr(N.style.transform)), !s.noMergeStyle && N.style && _) {
2393
+ if (process.env.NODE_ENV === "development" && (c === "profile" || globalThis.time) && time`split-styles-propsend`, s.noNormalize !== !1 && (N.style && (Bn(N.style), !s.noExpand && !s.noMergeStyle && At && (!x || (f == null ? void 0 : f.inputStyle) !== "css") && pr(N.style)), N.flatTransforms && (N.style || (N.style = {}), Ni(N.style, N.flatTransforms))), !s.noNormalize && !t.isReactNative && !t.isHOC && (!s.isAnimated || (f == null ? void 0 : f.inputStyle) === "css") && Array.isArray((st = N.style) == null ? void 0 : st.transform) && (N.style.transform = hr(N.style.transform)), !s.noMergeStyle && N.style && _) {
2394
2394
  let V, O = !1;
2395
2395
  if (!N.style.$$css) {
2396
- const z = uo(N.style);
2397
- for (const ne of z) {
2398
- const [oe, Ue, ce] = ne, ae = s.isAnimated && s.noClass && ((St = e.animateOnly) == null ? void 0 : St.includes(oe)), ue = !ae && !s.isAnimated && Ct && (f == null ? void 0 : f.outputStyle) === "css" && ((Dt = e.animateOnly) == null ? void 0 : Dt.includes(oe));
2399
- ae ? (V || (V = {}), V[oe] = N.style[oe]) : ue ? (V || (V = {}), V[oe] = Ue, O = !0) : (Ht(v, ne), $[oe] = ce);
2396
+ const W = uo(N.style);
2397
+ for (const ne of W) {
2398
+ const [oe, Ke, ce] = ne, ae = s.isAnimated && s.noClass && ((St = e.animateOnly) == null ? void 0 : St.includes(oe)), ue = !ae && !s.isAnimated && Ct && (f == null ? void 0 : f.outputStyle) === "css" && ((Dt = e.animateOnly) == null ? void 0 : Dt.includes(oe));
2399
+ ae ? (V || (V = {}), V[oe] = N.style[oe]) : ue ? (V || (V = {}), V[oe] = Ke, O = !0) : (Ht(v, ne), $[oe] = ce);
2400
2400
  }
2401
2401
  process.env.NODE_ENV === "development" && e.debug === "verbose" && (console.groupCollapsed("🔹 getSplitStyles final style object"), console.info(N.style), console.info("retainedStyles", V), console.groupEnd()), (O || process.env.IS_STATIC !== "is_static") && (N.style = V || {});
2402
2402
  }
@@ -2405,18 +2405,18 @@ const $i = (e, t, n, o, r, s, i, a, l, d, u, c, m) => {
2405
2405
  const V = {};
2406
2406
  let O = !1;
2407
2407
  e.animateOnly;
2408
- for (const z in N.style) z in ei && (V[z] = N.style[z], delete N.style[z], O = !0);
2408
+ for (const W in N.style) W in ti && (V[W] = N.style[W], delete N.style[W], O = !0);
2409
2409
  if (O) {
2410
- const z = uo(V);
2411
- for (const ne of z) Ht(v, ne), $[ne[Ut]] = ne[pt];
2410
+ const W = uo(V);
2411
+ for (const ne of W) Ht(v, ne), $[ne[Ut]] = ne[pt];
2412
2412
  }
2413
2413
  }
2414
- const Ie = e.style;
2415
- if (!s.noMergeStyle && Ie) if (p) R.style = ls(Ie);
2414
+ const De = e.style;
2415
+ if (!s.noMergeStyle && De) if (p) R.style = ls(De);
2416
2416
  else {
2417
- const V = Array.isArray(Ie), O = V ? Ie.length : 1;
2418
- for (let z = 0; z < O; z++) {
2419
- const ne = V ? Ie[z] : Ie;
2417
+ const V = Array.isArray(De), O = V ? De.length : 1;
2418
+ for (let W = 0; W < O; W++) {
2419
+ const ne = V ? De[W] : De;
2420
2420
  ne && (ne.$$css ? Object.assign(N.classNames, ne) : (N.style || (N.style = {}), Object.assign(N.style, ls(ne))));
2421
2421
  }
2422
2422
  }
@@ -2434,23 +2434,23 @@ const $i = (e, t, n, o, r, s, i, a, l, d, u, c, m) => {
2434
2434
  mediaGroups: G,
2435
2435
  overriddenContextProps: N.overriddenContextProps,
2436
2436
  pseudoTransitions: N.pseudoTransitions
2437
- }, pe = He === "except-style" || He === "except-style-web";
2437
+ }, pe = Ue === "except-style" || Ue === "except-style-web";
2438
2438
  if (!s.noMergeStyle && !pe) {
2439
2439
  const V = N.style;
2440
2440
  {
2441
2441
  let O = g || h ? N.fontFamily : null;
2442
2442
  O && O[0] === "$" && (O = O.slice(1));
2443
- const z = O ? `font_${O}` : "", ne = e.group ? `t_group_${e.group}` : "", oe = e.componentName || t.componentName, Ue = e.asChild || !oe || oe === "Text" ? "" : `is_${oe}`;
2443
+ const W = O ? `font_${O}` : "", ne = e.group ? `t_group_${e.group}` : "", oe = e.componentName || t.componentName, Ke = e.asChild || !oe || oe === "Text" ? "" : `is_${oe}`;
2444
2444
  let ce = [];
2445
- Ue && ce.push(Ue), g ? ce.push("is_Text") : ce.push("is_View"), z && ce.push(z), $ && ce.push(Object.values($).join(" ")), ne && ce.push(ne), e.className && ce.push(e.className);
2445
+ Ke && ce.push(Ke), g ? ce.push("is_Text") : ce.push("is_View"), W && ce.push(W), $ && ce.push(Object.values($).join(" ")), ne && ce.push(ne), e.className && ce.push(e.className);
2446
2446
  const ae = ce.join(" "), ue = x || s.isAnimated && (f == null ? void 0 : f.isReactNative);
2447
2447
  if (s.isAnimated && (f == null ? void 0 : f.inputStyle) === "css") R.className = ae, V && (R.style = V);
2448
2448
  else if (ue) {
2449
- let De;
2450
- for (const L of ae.split(" ")) De || (De = {
2449
+ let Fe;
2450
+ for (const z of ae.split(" ")) Fe || (Fe = {
2451
2451
  $$css: !0
2452
- }), De[L] = L;
2453
- R.style = De ? [...Array.isArray(V) ? V : [V], De] : [V];
2452
+ }), Fe[z] = z;
2453
+ R.style = Fe ? [...Array.isArray(V) ? V : [V], Fe] : [V];
2454
2454
  } else ae && (R.className = ae), V && (R.style = V);
2455
2455
  }
2456
2456
  }
@@ -2472,8 +2472,8 @@ const $i = (e, t, n, o, r, s, i, a, l, d, u, c, m) => {
2472
2472
  }
2473
2473
  return process.env.NODE_ENV === "development" && (c === "profile" || globalThis.time) && time`split-styles-done`, Oe;
2474
2474
  };
2475
- function wi(e, t) {
2476
- Object.entries(t).sort(([n], [o]) => Ei(n, o)).forEach(([n, o]) => {
2475
+ function Ni(e, t) {
2476
+ Object.entries(t).sort(([n], [o]) => $i(n, o)).forEach(([n, o]) => {
2477
2477
  kn(e, n, o, !0);
2478
2478
  });
2479
2479
  }
@@ -2522,7 +2522,7 @@ const Gt = (e, t, n, o) => {
2522
2522
  }
2523
2523
  continue;
2524
2524
  }
2525
- !r.isHOC && c in bt && !i.noSkip || yi(c, m, e, !1, (f, b, p) => {
2525
+ !r.isHOC && c in bt && !i.noSkip || Si(c, m, e, !1, (f, b, p) => {
2526
2526
  p !== void 0 && (l || (l = {}), l[f] = p), f in On && (b = Gt(e, f, b, o)), !o && f in on ? kn(a, f, b) : a[f] = i.noNormalize ? b : _e(b, c);
2527
2527
  });
2528
2528
  }
@@ -2554,24 +2554,24 @@ const Gt = (e, t, n, o) => {
2554
2554
  }
2555
2555
  kn(a, p, m[p]);
2556
2556
  }
2557
- } else m && wi(a, m);
2557
+ } else m && Ni(a, m);
2558
2558
  }
2559
2559
  return i.noNormalize || Bn(a), l && Xt.set(a, l), a;
2560
- }, ml = Z.useInsertionEffect || ke, hl = (e, t, n, o, r, s, i, a, l, d, u, c, m) => {
2560
+ }, hl = Z.useInsertionEffect || ke, pl = (e, t, n, o, r, s, i, a, l, d, u, c, m) => {
2561
2561
  "use no memo";
2562
- const f = $i(e, t, n, o, r, s, i, a, l, d, u, c, m);
2563
- return ml(() => {
2564
- f && Qa(f.rulesToInsert);
2562
+ const f = wi(e, t, n, o, r, s, i, a, l, d, u, c, m);
2563
+ return hl(() => {
2564
+ f && el(f.rulesToInsert);
2565
2565
  }, [f == null ? void 0 : f.rulesToInsert]), f;
2566
2566
  };
2567
2567
  function Ht(e, t) {
2568
2568
  {
2569
2569
  const n = t[pt];
2570
- mi(n) && (fi(n, t[Ln]), e[n] = t);
2570
+ hi(n) && (mi(n, t[zn]), e[n] = t);
2571
2571
  }
2572
2572
  }
2573
- const pl = process.env.TAMAGUI_DEFAULT_COLOR || "rgba(0,0,0,0)", gl = {
2574
- ...Object.fromEntries(Object.entries(gt.color).map(([e, t]) => [e, pl])),
2573
+ const gl = process.env.TAMAGUI_DEFAULT_COLOR || "rgba(0,0,0,0)", bl = {
2574
+ ...Object.fromEntries(Object.entries(gt.color).map(([e, t]) => [e, gl])),
2575
2575
  opacity: 1,
2576
2576
  scale: 1,
2577
2577
  scaleX: 1,
@@ -2587,9 +2587,9 @@ const pl = process.env.TAMAGUI_DEFAULT_COLOR || "rgba(0,0,0,0)", gl = {
2587
2587
  borderRadius: 0
2588
2588
  }, kn = (e, t, n, o = !1) => {
2589
2589
  typeof e.transform != "string" && (e.transform || (e.transform = []), e.transform[o ? "unshift" : "push"]({
2590
- [bl[t] || t]: n
2590
+ [yl[t] || t]: n
2591
2591
  }));
2592
- }, bl = {
2592
+ }, yl = {
2593
2593
  x: "translateX",
2594
2594
  y: "translateY"
2595
2595
  };
@@ -2602,9 +2602,9 @@ function as(e, t, n, o = !1) {
2602
2602
  delete e[t], e[t] = r;
2603
2603
  } else e[t] = n;
2604
2604
  }
2605
- function yl(e, t, n, o, r, s, i, a) {
2605
+ function Sl(e, t, n, o, r, s, i, a) {
2606
2606
  const l = e.usedKeys;
2607
- let d = ga(t, n, e, r);
2607
+ let d = ba(t, n, e, r);
2608
2608
  if (s && (d = (d || 0) + s), process.env.NODE_ENV === "development" && i === "verbose" && U(`mergeMediaByImportance ${n} importance usedKey ${l[n]} next ${d}`), d === null) return !1;
2609
2609
  if (n in Me) {
2610
2610
  const u = Me[n], c = u.stateKey || u.name;
@@ -2623,22 +2623,22 @@ function ls(e) {
2623
2623
  return Array.isArray(t.transform) && (t.transform = hr(t.transform)), Bn(t), t;
2624
2624
  }
2625
2625
  function go(e, t) {
2626
- const n = gl[e];
2626
+ const n = bl[e];
2627
2627
  n != null && !(e in t.usedKeys) && (!t.style || !(e in t.style)) && tn(t, e, n, 1);
2628
2628
  }
2629
- const Sl = /^on[A-Z]/;
2630
- function Ni(e, t) {
2629
+ const vl = /^on[A-Z]/;
2630
+ function xi(e, t) {
2631
2631
  for (const n in t) {
2632
2632
  const o = e[n], r = t[n];
2633
2633
  r !== void 0 && (n === "style" ? e.style = o && r ? {
2634
2634
  ...o,
2635
2635
  ...r
2636
- } : r || o : n === "className" ? e.className = o && r ? `${o} ${r}` : r || o : n === "ref" ? e.ref = o && r ? dr(o, r) : r || o : Sl.test(n) && typeof o == "function" && typeof r == "function" ? e[n] = or(o, r) : e[n] = r);
2636
+ } : r || o : n === "className" ? e.className = o && r ? `${o} ${r}` : r || o : n === "ref" ? e.ref = o && r ? dr(o, r) : r || o : vl.test(n) && typeof o == "function" && typeof r == "function" ? e[n] = or(o, r) : e[n] = r);
2637
2637
  }
2638
2638
  return e;
2639
2639
  }
2640
- function vl(e, t, n) {
2641
- const o = Ni({
2640
+ function El(e, t, n) {
2641
+ const o = xi({
2642
2642
  ...e
2643
2643
  }, t);
2644
2644
  return o.children = n, o;
@@ -2681,14 +2681,14 @@ function us(e) {
2681
2681
  groups: t
2682
2682
  };
2683
2683
  }
2684
- const Ye = {};
2685
- function El(e) {
2686
- Object.assign(Ye, e);
2684
+ const Xe = {};
2685
+ function $l(e) {
2686
+ Object.assign(Xe, e);
2687
2687
  }
2688
- const $l = (e) => {
2688
+ const wl = (e) => {
2689
2689
  var t;
2690
- (t = Ye.setElementProps) == null || t.call(Ye, e);
2691
- }, wl = (e) => {
2690
+ (t = Xe.setElementProps) == null || t.call(Xe, e);
2691
+ }, Nl = (e) => {
2692
2692
  const {
2693
2693
  pseudoGroups: t,
2694
2694
  mediaGroups: n,
@@ -2726,7 +2726,7 @@ const $l = (e) => {
2726
2726
  if (l && (n != null && n.has(e))) c.pseudo || (c.pseudo = {}), xo(c.pseudo, l) !== c.pseudo && (Object.assign(c.pseudo, l), u = !0);
2727
2727
  else if (a && o) {
2728
2728
  c.media || (c.media = {});
2729
- const f = pa(o, a), b = xo(c.media, f);
2729
+ const f = ga(o, a), b = xo(c.media, f);
2730
2730
  b !== c.media && (Object.assign(c.media, b), u = !0);
2731
2731
  }
2732
2732
  return u ? {
@@ -2742,7 +2742,7 @@ const $l = (e) => {
2742
2742
  group: {}
2743
2743
  });
2744
2744
  };
2745
- }, Mn = nn(!1), Nl = ({
2745
+ }, Mn = nn(!1), xl = ({
2746
2746
  children: e,
2747
2747
  enabled: t
2748
2748
  }) => {
@@ -2751,24 +2751,24 @@ const $l = (e) => {
2751
2751
  value: t ?? n,
2752
2752
  children: e
2753
2753
  });
2754
- }, xl = () => Eo.useContext(Mn);
2755
- function xi() {
2756
- return Eo.useContext(Mn) ? !0 : Eo.useSyncExternalStore(Tl, () => !0, () => !1);
2754
+ }, Tl = () => Eo.useContext(Mn);
2755
+ function Ti() {
2756
+ return Eo.useContext(Mn) ? !0 : Eo.useSyncExternalStore(_l, () => !0, () => !1);
2757
2757
  }
2758
- const Tl = () => () => {
2758
+ const _l = () => () => {
2759
2759
  };
2760
2760
  let Ee;
2761
- function Ti({
2761
+ function _i({
2762
2762
  themeState: e,
2763
2763
  themeProps: t,
2764
2764
  children: n
2765
2765
  }) {
2766
2766
  if (process.env.NODE_ENV === "development") {
2767
- const o = xi();
2768
- if (process.env.NODE_ENV === "development" && typeof document < "u" && (Ee || (Ee = document.createElement("div"), Ee.style.height = "200px", Ee.style.overflowY = "scroll", Ee.style.position = "fixed", Ee.style.zIndex = 1e7, Ee.style.bottom = "30px", Ee.style.left = "30px", Ee.style.right = "30px", Ee.style.display = "flex", Ee.style.border = "1px solid #888", Ee.style.flexDirection = "row", Ee.style.background = "var(--background)")), tt(() => {
2767
+ const o = Ti();
2768
+ if (process.env.NODE_ENV === "development" && typeof document < "u" && (Ee || (Ee = document.createElement("div"), Ee.style.height = "200px", Ee.style.overflowY = "scroll", Ee.style.position = "fixed", Ee.style.zIndex = 1e7, Ee.style.bottom = "30px", Ee.style.left = "30px", Ee.style.right = "30px", Ee.style.display = "flex", Ee.style.border = "1px solid #888", Ee.style.flexDirection = "row", Ee.style.background = "var(--background)")), nt(() => {
2769
2769
  document.body.appendChild(Ee);
2770
2770
  }, []), t["disable-child-theme"] || !o) return n;
2771
- const r = e.parentId ? ii(e.parentId) : null;
2771
+ const r = e.parentId ? ai(e.parentId) : null;
2772
2772
  return /* @__PURE__ */ se(Fn, {
2773
2773
  children: [Li(/* @__PURE__ */ se("code", {
2774
2774
  style: {
@@ -2803,13 +2803,13 @@ function Ti({
2803
2803
  }
2804
2804
  return n;
2805
2805
  }
2806
- Ti.displayName = "ThemeDebug";
2807
- const rn = Ts(function(e, t) {
2806
+ _i.displayName = "ThemeDebug";
2807
+ const rn = _s(function(e, t) {
2808
2808
  "use no memo";
2809
2809
  if (e.disable) return e.children;
2810
2810
  const {
2811
2811
  passThrough: n
2812
- } = e, o = !!e._isRoot, [r, s] = li(e, o);
2812
+ } = e, o = !!e._isRoot, [r, s] = ci(e, o);
2813
2813
  let i = e["disable-child-theme"] ? Tn.map(e.children, (l) => n || !Jo(l) ? l : _n(l, {
2814
2814
  "data-disable-theme": !0
2815
2815
  })) : e.children;
@@ -2822,21 +2822,21 @@ const rn = Ts(function(e, t) {
2822
2822
  const a = kt({
2823
2823
  hasEverThemed: !1
2824
2824
  });
2825
- return _i(s, i, e, o, a, n);
2825
+ return Ci(s, i, e, o, a, n);
2826
2826
  });
2827
2827
  rn.avoidForwardRef = !0;
2828
- function _i(e, t, n, o = !1, r, s = !1) {
2828
+ function Ci(e, t, n, o = !1, r, s = !1) {
2829
2829
  const {
2830
2830
  shallow: i,
2831
2831
  forceClassName: a
2832
2832
  } = n, l = r.current;
2833
- let d = l.hasEverThemed || e.isNew || o || Fa(n);
2834
- if (process.env.NODE_ENV === "development" && n.debug === "visualize" && (t = /* @__PURE__ */ y(Ti, {
2833
+ let d = l.hasEverThemed || e.isNew || o || Va(n);
2834
+ if (process.env.NODE_ENV === "development" && n.debug === "visualize" && (t = /* @__PURE__ */ y(_i, {
2835
2835
  themeState: e,
2836
2836
  themeProps: n,
2837
2837
  children: t
2838
2838
  })), !d) return t;
2839
- t = /* @__PURE__ */ y(si.Provider, {
2839
+ t = /* @__PURE__ */ y(ii.Provider, {
2840
2840
  value: e.id,
2841
2841
  children: t
2842
2842
  });
@@ -2847,7 +2847,7 @@ function _i(e, t, n, o = !1, r, s = !1) {
2847
2847
  if (l.hasEverThemed || (l.hasEverThemed = !0), (m || // if the theme is exactly dark or light, its likely to change between dark/light
2848
2848
  // and that would require wrapping which would re-parent, so to avoid re-parenting do this
2849
2849
  e.name === "dark" || e.name === "light") && (l.hasEverThemed = "wrapped"), i && e.parentId) {
2850
- const f = ii(e.isNew ? e.id : e.parentId);
2850
+ const f = ai(e.isNew ? e.id : e.parentId);
2851
2851
  if (!f) throw new Error("‼️010");
2852
2852
  t = Tn.toArray(t).map((b) => Jo(b) ? s ? b : _n(b, void 0, /* @__PURE__ */ y(rn, {
2853
2853
  name: f.name,
@@ -2862,7 +2862,7 @@ function _i(e, t, n, o = !1, r, s = !1) {
2862
2862
  themeSpanProps: fs(e, n, o)
2863
2863
  }), a === !1) return t;
2864
2864
  {
2865
- const f = n.contain ? Cl : _l, {
2865
+ const f = n.contain ? Ol : Cl, {
2866
2866
  className: b = "",
2867
2867
  color: p
2868
2868
  } = s ? {} : fs(e, n, o);
@@ -2883,18 +2883,18 @@ function _i(e, t, n, o = !1, r, s = !1) {
2883
2883
  return t;
2884
2884
  }
2885
2885
  }
2886
- const _l = {
2886
+ const Cl = {
2887
2887
  display: "contents"
2888
- }, Cl = {
2888
+ }, Ol = {
2889
2889
  display: "contents",
2890
2890
  contain: "strict"
2891
- }, Ol = {
2891
+ }, Al = {
2892
2892
  className: "",
2893
2893
  color: void 0
2894
2894
  };
2895
2895
  function fs(e, t, n = !1) {
2896
- if (!e.isNew && !t.forceClassName) return Ol;
2897
- const o = e != null && e.theme && e.isNew ? Rt(e.theme.color) : "", r = e.name.replace(Al, ""), s = r.split("_");
2896
+ if (!e.isNew && !t.forceClassName) return Al;
2897
+ const o = e != null && e.theme && e.isNew ? Rt(e.theme.color) : "", r = e.name.replace(Rl, ""), s = r.split("_");
2898
2898
  let i = `t_${r}`;
2899
2899
  if (s.length > 1) {
2900
2900
  const l = [];
@@ -2907,8 +2907,8 @@ function fs(e, t, n = !1) {
2907
2907
  className: a
2908
2908
  };
2909
2909
  }
2910
- const Al = /^(dark|light)_/;
2911
- function Rl(e, t, n = !1) {
2910
+ const Rl = /^(dark|light)_/;
2911
+ function kl(e, t, n = !1) {
2912
2912
  const o = Z.forwardRef(function(r, s) {
2913
2913
  "use no memo";
2914
2914
  const i = mr(t, r.componentName), a = i == null ? void 0 : i.theme, l = i == null ? void 0 : i.themeReset, {
@@ -2951,7 +2951,7 @@ function Rl(e, t, n = !1) {
2951
2951
  });
2952
2952
  return o.displayName = `Themed(${(e == null ? void 0 : e.displayName) || (e == null ? void 0 : e.name) || "Anonymous"})`, o;
2953
2953
  }
2954
- function kl(e) {
2954
+ function Ml(e) {
2955
2955
  if (e.length) return /* @__PURE__ */ y(Fn, {
2956
2956
  children: e.map((t) => {
2957
2957
  const n = t[pt];
@@ -2959,16 +2959,16 @@ function kl(e) {
2959
2959
  href: `t_${n}`,
2960
2960
  precedence: "default",
2961
2961
  suppressHydrationWarning: !0,
2962
- children: t[Ln].join(`
2962
+ children: t[zn].join(`
2963
2963
  `)
2964
2964
  }, n);
2965
2965
  })
2966
2966
  });
2967
2967
  }
2968
- const Ml = (e, t, n, o) => {
2968
+ const Il = (e, t, n, o) => {
2969
2969
  "use no memo";
2970
2970
  var ie;
2971
- const r = xi(), s = !xl(), i = t != null && t.isStub || t == null ? void 0 : t.useAnimations, {
2971
+ const r = Ti(), s = !Tl(), i = t != null && t.isStub || t == null ? void 0 : t.useAnimations, {
2972
2972
  isHOC: a
2973
2973
  } = n, l = kt(
2974
2974
  // performance: avoid creating object every render
@@ -2977,7 +2977,7 @@ const Ml = (e, t, n, o) => {
2977
2977
  l.current || (l.current = {
2978
2978
  startedUnhydrated: s && !r
2979
2979
  });
2980
- const d = !!(!a && "transition" in e || e.style && Il(e.style)), u = (t == null ? void 0 : t.inputStyle) ?? "css", c = (t == null ? void 0 : t.outputStyle) ?? "css", m = l.current;
2980
+ const d = !!(!a && "transition" in e || e.style && Dl(e.style)), u = (t == null ? void 0 : t.inputStyle) ?? "css", c = (t == null ? void 0 : t.outputStyle) ?? "css", m = l.current;
2981
2981
  !s && d && (m.hasAnimated = !0);
2982
2982
  const f = !!(d && !a && i || m.hasAnimated), b = !Pn && f;
2983
2983
  b && !m.hasAnimated && (m.hasAnimated = !0);
@@ -2991,8 +2991,8 @@ const Ml = (e, t, n, o) => {
2991
2991
  // without flickers of the wrong colors.
2992
2992
  // but once we do that initial hydration and we are in client side rendering mode,
2993
2993
  // we can avoid the extra re-render on mount
2994
- S || x ? Pa : fr
2995
- ) : Io, K = Dl(e);
2994
+ S || x ? Wa : fr
2995
+ ) : Io, K = Fl(e);
2996
2996
  K != null && (P.disabled = K);
2997
2997
  const R = _t(P), k = e.forceStyle ? {
2998
2998
  ...R[0],
@@ -3002,7 +3002,7 @@ const Ml = (e, t, n, o) => {
3002
3002
  T && !n.isHOC && !r && (v = !1, m.willHydrate = !0), K !== k.disabled && (K && Object.assign(k, Io), k.disabled = K, _((le) => ({
3003
3003
  ...k
3004
3004
  })));
3005
- const $ = e.group, C = Gi(_, e.debug);
3005
+ const $ = e.group, C = Yi(_, e.debug);
3006
3006
  if (h && v && r && n.variants) {
3007
3007
  process.env.NODE_ENV === "development" && e.debug === "verbose" && console.warn(`has presenceState ${JSON.stringify(h)}`);
3008
3008
  const {
@@ -3012,8 +3012,8 @@ const Ml = (e, t, n, o) => {
3012
3012
  custom: Te
3013
3013
  } = h;
3014
3014
  jn(Te) && Object.assign(e, Te);
3015
- const je = G ?? me, N = le ?? me;
3016
- k.unmounted && N && n.variants[N] ? (process.env.NODE_ENV === "development" && e.debug === "verbose" && console.warn(`Animating presence ENTER "${N}"`), e[N] = !0) : E && je && (process.env.NODE_ENV === "development" && e.debug === "verbose" && console.warn(`Animating presence EXIT "${je}"`), e[je] = G !== me);
3015
+ const He = G ?? me, N = le ?? me;
3016
+ k.unmounted && N && n.variants[N] ? (process.env.NODE_ENV === "development" && e.debug === "verbose" && console.warn(`Animating presence ENTER "${N}"`), e[N] = !0) : E && He && (process.env.NODE_ENV === "development" && e.debug === "verbose" && console.warn(`Animating presence EXIT "${He}"`), e[He] = G !== me);
3017
3017
  }
3018
3018
  let M = !!e.forceStyle;
3019
3019
  if (!r) M = !1;
@@ -3048,22 +3048,22 @@ const Ml = (e, t, n, o) => {
3048
3048
  willBeAnimatedClient: f
3049
3049
  };
3050
3050
  };
3051
- function Il(e) {
3051
+ function Dl(e) {
3052
3052
  return Object.keys(e).some((t) => {
3053
3053
  const n = e[t];
3054
3054
  return n && typeof n == "object" && "_animation" in n;
3055
3055
  });
3056
3056
  }
3057
- const Dl = (e) => {
3057
+ const Fl = (e) => {
3058
3058
  var t;
3059
3059
  return e.disabled || e.passThrough || ((t = e.accessibilityState) == null ? void 0 : t.disabled) || e["aria-disabled"] || e.accessibilityDisabled || !1;
3060
- }, Fl = zi(Ts(function(e, t) {
3060
+ }, Vl = zi(_s(function(e, t) {
3061
3061
  const {
3062
3062
  children: n,
3063
3063
  ...o
3064
3064
  } = e;
3065
3065
  if (Jo(n)) {
3066
- const r = Vl(n, o);
3066
+ const r = Pl(n, o);
3067
3067
  return _n(n, n.type.avoidForwardRef ? r : {
3068
3068
  ...r,
3069
3069
  ref: dr(t, n.props.ref)
@@ -3075,15 +3075,15 @@ const Dl = (e) => {
3075
3075
  onPressOut: "onMouseUp",
3076
3076
  onPressIn: "onMouseDown"
3077
3077
  };
3078
- function Vl(e, t) {
3078
+ function Pl(e, t) {
3079
3079
  const n = e.props, o = typeof e.type == "string";
3080
3080
  if (o) for (const s in gn) s in t && (t[gn[s]] = t[s], delete t[s]);
3081
- const r = Ni(t, n);
3081
+ const r = xi(t, n);
3082
3082
  if (o) for (const s in gn) s in r && (r[gn[s]] = r[s], delete r[s]);
3083
3083
  return r;
3084
3084
  }
3085
3085
  let F, xt, $n;
3086
- const Ot = /* @__PURE__ */ new Set(), Pl = /* @__PURE__ */ new Set(["hover", "press", "pressIn", "group", "focus", "focusWithin", "media", "group"]);
3086
+ const Ot = /* @__PURE__ */ new Set(), Wl = /* @__PURE__ */ new Set(["hover", "press", "pressIn", "group", "focus", "focusWithin", "media", "group"]);
3087
3087
  if (typeof window < "u") {
3088
3088
  const e = () => {
3089
3089
  Ot.forEach((n) => n((o) => o.press || o.pressIn ? {
@@ -3136,10 +3136,10 @@ function Hn(e) {
3136
3136
  const E = Z.useContext(Sn), x = !!(o && E.inText);
3137
3137
  !process.env.TAMAGUI_IS_CORE_NODE && process.env.NODE_ENV === "development" && p === "profile" && !F && (F = require("@tamagui/timer").timer().start(), globalThis.time = F), process.env.NODE_ENV === "development" && !F && globalThis.time && (F = globalThis.time), process.env.NODE_ENV === "development" && F && F`non-tamagui time (ignore)`;
3138
3138
  let S = u;
3139
- const T = S.componentName || e.componentName, P = mr(e, S.componentName), [K, R] = Ui(P, g, u);
3139
+ const T = S.componentName || e.componentName, P = mr(e, S.componentName), [K, R] = Ki(P, g, u);
3140
3140
  S = K, h = R, process.env.NODE_ENV === "development" && Ct && Z.useEffect(() => {
3141
3141
  let w, A = null;
3142
- const W = () => {
3142
+ const L = () => {
3143
3143
  var H;
3144
3144
  if (A) try {
3145
3145
  (H = A.parentNode) == null || H.removeChild(A), A = null;
@@ -3150,13 +3150,13 @@ function Hn(e) {
3150
3150
  A || (A = document.createElement("span"), A.style.inset = "0px", A.style.zIndex = "1000000", A.style.position = "absolute", A.style.borderColor = "red", A.style.borderWidth = "1px", A.style.borderStyle = "dotted");
3151
3151
  const Q = w.getAttribute("data-at") || "", lt = w.getAttribute("data-in") || "", fe = document.createElement("span");
3152
3152
  fe.style.position = "absolute", fe.style.top = "0px", fe.style.left = "0px", fe.style.padding = "3px", fe.style.background = "rgba(0,0,0,0.75)", fe.style.color = "rgba(255,255,255,1)", fe.style.fontSize = "12px", fe.style.lineHeight = "12px", fe.style.fontFamily = "monospace", fe.innerText = `${T || ""} ${Q} ${lt}`.trim(), A.appendChild(fe), w.appendChild(A);
3153
- } else W();
3153
+ } else L();
3154
3154
  };
3155
3155
  return xt = xt || /* @__PURE__ */ new Set(), xt.add(B), () => {
3156
- W(), xt == null || xt.delete(B);
3156
+ L(), xt == null || xt.delete(B);
3157
3157
  };
3158
3158
  }, [T]);
3159
- const k = Z.useContext(Dr), _ = S.animatedBy && t ? t.animationDrivers ? t.animationDrivers[S.animatedBy] ?? t.animations : S.animatedBy === "default" ? t.animations : null : Rn(E.animationDriver) ?? Rn(t == null ? void 0 : t.animations) ?? null, v = _ == null ? void 0 : _.useAnimations, $ = Ml(S, _ != null && _.isStub ? null : _, e), {
3159
+ const k = Z.useContext(Dr), _ = S.animatedBy && t ? t.animationDrivers ? t.animationDrivers[S.animatedBy] ?? t.animations : S.animatedBy === "default" ? t.animations : null : Rn(E.animationDriver) ?? Rn(t == null ? void 0 : t.animations) ?? null, v = _ == null ? void 0 : _.useAnimations, $ = Il(S, _ != null && _.isStub ? null : _, e), {
3160
3160
  disabled: C,
3161
3161
  groupName: M,
3162
3162
  hasAnimationProp: ie,
@@ -3164,27 +3164,27 @@ function Hn(e) {
3164
3164
  isAnimated: G,
3165
3165
  isExiting: me,
3166
3166
  isHydrated: Te,
3167
- presence: je,
3167
+ presence: He,
3168
3168
  presenceState: N,
3169
- setState: He,
3169
+ setState: Ue,
3170
3170
  noClass: $e,
3171
3171
  state: Y,
3172
3172
  stateRef: I,
3173
- inputStyle: Xe,
3173
+ inputStyle: Ze,
3174
3174
  outputStyle: Un,
3175
3175
  willBeAnimated: yt,
3176
3176
  willBeAnimatedClient: rt,
3177
- startedUnhydrated: Ie
3177
+ startedUnhydrated: De
3178
3178
  } = $;
3179
3179
  ie && (_ != null && _.avoidReRenders) && ke(() => {
3180
3180
  const w = I.current.nextState;
3181
3181
  w && (I.current.nextState = void 0, $.setStateShallow(w));
3182
3182
  });
3183
3183
  const Oe = $o(() => {
3184
- var A, W;
3184
+ var A, L;
3185
3185
  if (!M || S.passThrough) return k;
3186
3186
  const w = /* @__PURE__ */ new Set();
3187
- return (W = (A = I.current.group) == null ? void 0 : A.listeners) == null || W.clear(), I.current.group = {
3187
+ return (L = (A = I.current.group) == null ? void 0 : A.listeners) == null || L.clear(), I.current.group = {
3188
3188
  listeners: w,
3189
3189
  emit(B) {
3190
3190
  w.forEach((H) => H(B));
@@ -3221,32 +3221,32 @@ function Hn(e) {
3221
3221
  _ && G && _.needsCustomComponent && (V = _[o ? "Text" : "View"] || V);
3222
3222
  const O = S["data-disable-theme"] || r;
3223
3223
  process.env.NODE_ENV === "development" && F && F`theme-props`;
3224
- const z = {
3224
+ const W = {
3225
3225
  componentName: T,
3226
3226
  disable: O,
3227
3227
  shallow: S.themeShallow,
3228
3228
  debug: p,
3229
3229
  unstyled: S.unstyled
3230
3230
  };
3231
- if ("theme" in S && (z.name = S.theme), z.needsUpdate = () => !!I.current.isListeningToTheme, process.env.NODE_ENV === "development" && p && p !== "profile") {
3232
- const w = `${T || (n == null ? void 0 : n.displayName) || (n == null ? void 0 : n.name) || "[Unnamed Component]"}`, A = (le ? "(hasEnter)" : " ") + (G ? "(animated)" : " ") + (b ? "(rnw)" : " ") + ($e ? "(noClass)" : " ") + (Y.press || Y.pressIn ? "(PRESSED)" : " ") + (Y.hover ? "(HOVERED)" : " ") + (Y.focus ? "(FOCUSED)" : " ") + (Y.focusWithin ? "(WITHIN FOCUSED)" : " ") + ((N == null ? void 0 : N.isPresent) === !1 ? "(EXIT)" : ""), W = u["data-is"] || "", B = `<${w} /> ${m} ${W ? ` ${W}` : ""} ${A.trim()} (hydrated: ${Te}) (unmounted: ${Y.unmounted})`, H = u.children;
3231
+ if ("theme" in S && (W.name = S.theme), W.needsUpdate = () => !!I.current.isListeningToTheme, process.env.NODE_ENV === "development" && p && p !== "profile") {
3232
+ const w = `${T || (n == null ? void 0 : n.displayName) || (n == null ? void 0 : n.name) || "[Unnamed Component]"}`, A = (le ? "(hasEnter)" : " ") + (G ? "(animated)" : " ") + (b ? "(rnw)" : " ") + ($e ? "(noClass)" : " ") + (Y.press || Y.pressIn ? "(PRESSED)" : " ") + (Y.hover ? "(HOVERED)" : " ") + (Y.focus ? "(FOCUSED)" : " ") + (Y.focusWithin ? "(WITHIN FOCUSED)" : " ") + ((N == null ? void 0 : N.isPresent) === !1 ? "(EXIT)" : ""), L = u["data-is"] || "", B = `<${w} /> ${m} ${L ? ` ${L}` : ""} ${A.trim()} (hydrated: ${Te}) (unmounted: ${Y.unmounted})`, H = u.children;
3233
3233
  let Q = typeof H == "string" ? H.length > 4 ? H.slice(0, 4) + "..." : H : "";
3234
3234
  Q.length && (Q = `(children: ${Q})`), console.info(`%c ${B}`, "background: green; color: white;"), Pn ? U({
3235
3235
  noClass: $e,
3236
3236
  isAnimated: G,
3237
3237
  isWeb: At,
3238
- inputStyle: Xe
3238
+ inputStyle: Ze
3239
3239
  }) : (console.groupEnd(), console.groupCollapsed(`${Q} [inspect props, state, context 👇]`), U("props in:", u), U("final props:", S, Object.keys(S)), U({
3240
3240
  state: Y,
3241
3241
  staticConfig: e,
3242
3242
  elementType: V,
3243
- themeStateProps: z
3243
+ themeStateProps: W
3244
3244
  }), U({
3245
3245
  context: f,
3246
3246
  overriddenContextProps: h,
3247
3247
  componentContext: E
3248
3248
  }), U({
3249
- presence: je,
3249
+ presence: He,
3250
3250
  isAnimated: G,
3251
3251
  isHOC: r,
3252
3252
  hasAnimationProp: ie,
@@ -3254,13 +3254,13 @@ function Hn(e) {
3254
3254
  }), console.groupEnd());
3255
3255
  }
3256
3256
  process.env.NODE_ENV === "development" && F && F`pre-theme-media`;
3257
- const [ne, oe] = li(z);
3257
+ const [ne, oe] = ci(W);
3258
3258
  process.env.NODE_ENV === "development" && F && F`theme`, V = St || V;
3259
- const Ue = typeof V == "string", ce = ma(E, p);
3259
+ const Ke = typeof V == "string", ce = ha(E, p);
3260
3260
  ur(!1), process.env.NODE_ENV === "development" && F && F`media`;
3261
3261
  const ae = (
3262
3262
  // if HOC + mounted + has animation prop, resolve as value so it passes non-variable to child
3263
- G && Xe !== "css" || r && Y.unmounted == !1 && ie ? "value" : "auto"
3263
+ G && Ze !== "css" || r && Y.unmounted == !1 && ie ? "value" : "auto"
3264
3264
  ), ue = {
3265
3265
  mediaState: ce,
3266
3266
  noClass: $e,
@@ -3269,14 +3269,14 @@ function Hn(e) {
3269
3269
  isAnimated: G,
3270
3270
  willBeAnimated: yt,
3271
3271
  styledContext: g
3272
- }, De = (oe == null ? void 0 : oe.name) || "";
3272
+ }, Fe = (oe == null ? void 0 : oe.name) || "";
3273
3273
  process.env.NODE_ENV === "development" && F && F`split-styles-prepare`;
3274
- const L = hl(S, e, ne, De, Y, ue, null, E, Oe, V, Ie, p, _), it = !L;
3274
+ const z = pl(S, e, ne, Fe, Y, ue, null, E, Oe, V, De, p, _), it = !z;
3275
3275
  let vt = e.context;
3276
- if (L != null && L.overriddenContextProps) {
3276
+ if (z != null && z.overriddenContextProps) {
3277
3277
  const w = e.context || ((Cr = e.parentStaticConfig) == null ? void 0 : Cr.context);
3278
3278
  if (w) {
3279
- for (const A in L.overriddenContextProps) h = h || {}, h[A] = L.overriddenContextProps[A];
3279
+ for (const A in z.overriddenContextProps) h = h || {}, h[A] = z.overriddenContextProps[A];
3280
3280
  e.context || (vt = w);
3281
3281
  }
3282
3282
  }
@@ -3284,15 +3284,15 @@ function Hn(e) {
3284
3284
  if (!it && we && // avoids onLayout if we don't need it
3285
3285
  S.containerType !== "normal") {
3286
3286
  const w = we == null ? void 0 : we.state;
3287
- w && w.layout === void 0 && ((Or = L.style) != null && Or.width || (Ar = L.style) != null && Ar.height) && (w.layout = {
3288
- width: ms(L.style.width),
3289
- height: ms(L.style.height)
3287
+ w && w.layout === void 0 && ((Or = z.style) != null && Or.width || (Ar = z.style) != null && Ar.height) && (w.layout = {
3288
+ width: ms(z.style.width),
3289
+ height: ms(z.style.height)
3290
3290
  });
3291
3291
  }
3292
3292
  const sn = S.transition && typeof S.transition == "object" && !Array.isArray(S.transition) && ("enter" in S.transition || "exit" in S.transition);
3293
3293
  if (!it && (ie || M) && (_ != null && _.avoidReRenders) && !sn) {
3294
3294
  let w = function() {
3295
- const W = I.current.nextState;
3295
+ const L = I.current.nextState;
3296
3296
  if (we) {
3297
3297
  const {
3298
3298
  group: B,
@@ -3300,40 +3300,40 @@ function Hn(e) {
3300
3300
  unmounted: Q,
3301
3301
  transition: lt,
3302
3302
  ...fe
3303
- } = W;
3303
+ } = L;
3304
3304
  i(we, I.current.group || null, fe);
3305
3305
  }
3306
3306
  };
3307
3307
  const A = pe;
3308
3308
  if (I.current.updateStyleListener = () => {
3309
- const W = I.current.useStyleListener;
3310
- if (!W) {
3309
+ const L = I.current.useStyleListener;
3310
+ if (!L) {
3311
3311
  const fe = I.current.nextState;
3312
3312
  fe && (I.current.nextState = void 0, A(fe));
3313
3313
  return;
3314
3314
  }
3315
- const B = I.current.nextState || Y, H = I.current.nextMedia, Q = $i(S, e, ne, De, B, H ? {
3315
+ const B = I.current.nextState || Y, H = I.current.nextMedia, Q = wi(S, e, ne, Fe, B, H ? {
3316
3316
  ...ue,
3317
3317
  mediaState: H
3318
- } : ue, null, E, Oe, V, Ie, p, _), lt = cs(I.current.prevPseudoState, B, Q == null ? void 0 : Q.pseudoTransitions, S.transition);
3319
- I.current.prevPseudoState = us(B), W((Q == null ? void 0 : Q.style) || {}, lt);
3318
+ } : ue, null, E, Oe, V, De, p, _), lt = cs(I.current.prevPseudoState, B, Q == null ? void 0 : Q.pseudoTransitions, S.transition);
3319
+ I.current.prevPseudoState = us(B), L((Q == null ? void 0 : Q.style) || {}, lt);
3320
3320
  }, E.mediaEmitListeners = E.mediaEmitListeners || /* @__PURE__ */ new Set(), !I.current.mediaEmitCleanup) {
3321
- const W = (B) => {
3321
+ const L = (B) => {
3322
3322
  var H, Q;
3323
3323
  I.current.nextMedia = B, (Q = (H = I.current).updateStyleListener) == null || Q.call(H);
3324
3324
  };
3325
- E.mediaEmitListeners.add(W), I.current.mediaEmitCleanup = () => {
3325
+ E.mediaEmitListeners.add(L), I.current.mediaEmitCleanup = () => {
3326
3326
  var B;
3327
- (B = E.mediaEmitListeners) == null || B.delete(W);
3327
+ (B = E.mediaEmitListeners) == null || B.delete(L);
3328
3328
  };
3329
3329
  }
3330
- E.mediaEmit = E.mediaEmit || ((W) => {
3331
- for (const B of E.mediaEmitListeners) B(W);
3332
- }), I.current.setStateShallow = (W) => {
3330
+ E.mediaEmit = E.mediaEmit || ((L) => {
3331
+ for (const B of E.mediaEmitListeners) B(L);
3332
+ }), I.current.setStateShallow = (L) => {
3333
3333
  var fe, kr;
3334
- const B = I.current.nextState || Y, H = typeof W == "function" ? W(B) : W;
3335
- if (H === B || As(B, H)) return;
3336
- const Q = Object.keys(H).every((Di) => Pl.has(Di)), lt = {
3334
+ const B = I.current.nextState || Y, H = typeof L == "function" ? L(B) : L;
3335
+ if (H === B || Rs(B, H)) return;
3336
+ const Q = Object.keys(H).every((Fi) => Wl.has(Fi)), lt = {
3337
3337
  ...B,
3338
3338
  ...H
3339
3339
  };
@@ -3344,22 +3344,22 @@ function Hn(e) {
3344
3344
  canAvoidReRender: Q,
3345
3345
  next: H
3346
3346
  }), A(H));
3347
- }, pe = (W) => {
3347
+ }, pe = (L) => {
3348
3348
  var B, H;
3349
- (H = (B = I.current).setStateShallow) == null || H.call(B, W);
3349
+ (H = (B = I.current).setStateShallow) == null || H.call(B, L);
3350
3350
  };
3351
3351
  }
3352
- process.env.NODE_ENV === "development" && F && F`split-styles`, L && (S.group && S.untilMeasured === "hide" && !I.current.hasMeasured && (L.style = L.style || {}, L.style.opacity = 0), L.dynamicThemeAccess != null && (I.current.isListeningToTheme = L.dynamicThemeAccess));
3353
- const D = (L == null ? void 0 : L.hasMedia) && L.hasMedia !== !0, ee = Ca() || D || $e && (L == null ? void 0 : L.hasMedia) === !0, Ft = D ? L.hasMedia : null;
3354
- process.env.NODE_ENV === "development" && p === "verbose" && console.info("useMedia() createComponent", ee, Ft), da(E, ee, Ft);
3352
+ process.env.NODE_ENV === "development" && F && F`split-styles`, z && (S.group && S.untilMeasured === "hide" && !I.current.hasMeasured && (z.style = z.style || {}, z.style.opacity = 0), z.dynamicThemeAccess != null && (I.current.isListeningToTheme = z.dynamicThemeAccess));
3353
+ const D = (z == null ? void 0 : z.hasMedia) && z.hasMedia !== !0, ee = Oa() || D || $e && (z == null ? void 0 : z.hasMedia) === !0, Ft = D ? z.hasMedia : null;
3354
+ process.env.NODE_ENV === "development" && p === "verbose" && console.info("useMedia() createComponent", ee, Ft), fa(E, ee, Ft);
3355
3355
  const {
3356
3356
  viewProps: an,
3357
3357
  pseudos: re,
3358
- style: Ze,
3358
+ style: qe,
3359
3359
  classNames: ln,
3360
3360
  pseudoGroups: at,
3361
3361
  mediaGroups: te
3362
- } = L || {}, Fe = S, {
3362
+ } = z || {}, Ve = S, {
3363
3363
  asChild: Ne,
3364
3364
  children: Ae,
3365
3365
  themeShallow: ve,
@@ -3369,17 +3369,17 @@ function Hn(e) {
3369
3369
  onPressIn: j,
3370
3370
  onPressOut: J,
3371
3371
  onHoverIn: be,
3372
- onHoverOut: We,
3373
- onMouseUp: Ve,
3374
- onMouseDown: Ke,
3372
+ onHoverOut: Le,
3373
+ onMouseUp: Pe,
3374
+ onMouseDown: Ge,
3375
3375
  onMouseEnter: ye,
3376
3376
  onMouseLeave: Re,
3377
- onFocus: Ge,
3377
+ onFocus: Ye,
3378
3378
  onBlur: Et,
3379
- separator: Nu,
3379
+ separator: xu,
3380
3380
  // ignore from here on out
3381
3381
  passThrough: $r,
3382
- forceStyle: xu,
3382
+ forceStyle: Tu,
3383
3383
  // @ts-ignore for next/link compat etc
3384
3384
  onClick: cn,
3385
3385
  theme: wr,
@@ -3388,49 +3388,49 @@ function Hn(e) {
3388
3388
  let he = Vt;
3389
3389
  S.forceStyle && (he.forceStyle = S.forceStyle), r && (typeof wr < "u" && (he.theme = wr), typeof $r < "u" && (he.passThrough = $r));
3390
3390
  let Kn;
3391
- const Ii = (
3391
+ const Di = (
3392
3392
  // if it supports css vars we run it on server too to get matching initial style
3393
- (Xe === "css" ? rt : yt) && v && !r
3393
+ (Ze === "css" ? rt : yt) && v && !r
3394
3394
  );
3395
3395
  let Nr;
3396
- if (Ii) {
3396
+ if (Di) {
3397
3397
  const w = _ != null && _.avoidReRenders ? (B) => {
3398
3398
  I.current.useStyleListener = B;
3399
- } : void 0, A = cs(I.current.prevPseudoState, Y, L == null ? void 0 : L.pseudoTransitions, S.transition);
3400
- L && (L.effectiveTransition = A), I.current.prevPseudoState = us(Y);
3401
- const W = v({
3402
- props: Fe,
3399
+ } : void 0, A = cs(I.current.prevPseudoState, Y, z == null ? void 0 : z.pseudoTransitions, S.transition);
3400
+ z && (z.effectiveTransition = A), I.current.prevPseudoState = us(Y);
3401
+ const L = v({
3402
+ props: Ve,
3403
3403
  // clone style to prevent animation driver mutations from leaking to viewProps
3404
3404
  // during SSR/pre-hydration (CSS driver mutates style.transition in place)
3405
- style: Te ? Ze || {} : {
3406
- ...Ze
3405
+ style: Te ? qe || {} : {
3406
+ ...qe
3407
3407
  },
3408
3408
  // @ts-ignore
3409
- styleState: L,
3409
+ styleState: z,
3410
3410
  useStyleEmitter: w,
3411
- presence: je,
3411
+ presence: He,
3412
3412
  componentState: Y,
3413
3413
  styleProps: ue,
3414
3414
  theme: ne,
3415
- themeName: De,
3415
+ themeName: Fe,
3416
3416
  pseudos: re || null,
3417
3417
  staticConfig: e,
3418
3418
  stateRef: I
3419
3419
  });
3420
- W && (W.ref && (Nr = W.ref), Te && W && (Kn = W.style, he.style = Kn, W.className && (he.className = `${Y.unmounted === "should-enter" ? "t_unmounted " : ""}${he.className || ""} ${W.className}`))), process.env.NODE_ENV === "development" && F && F`animations`;
3420
+ L && (L.ref && (Nr = L.ref), Te && L && (Kn = L.style, he.style = Kn, L.className && (he.className = `${Y.unmounted === "should-enter" ? "t_unmounted " : ""}${he.className || ""} ${L.className}`))), process.env.NODE_ENV === "development" && F && F`animations`;
3421
3421
  }
3422
3422
  process.env.NODE_ENV === "development" && S.untilMeasured && !S.group && console.warn(`You set the untilMeasured prop without setting group. This doesn't work, be sure to set untilMeasured on the parent that sets group, not the children that use the $group- prop.
3423
3423
 
3424
3424
  If you meant to do this, you can disable this warning - either change untilMeasured and group at the same time, or do group={conditional ? 'name' : undefined}`), process.env.NODE_ENV === "development" && F && F`destructure`, !it && we && // avoids onLayout if we don't need it
3425
3425
  S.containerType !== "normal" && (Vt.onLayout = or(Vt.onLayout, (w) => {
3426
- var W;
3426
+ var L;
3427
3427
  const A = w.nativeEvent.layout;
3428
- we.state.layout = A, (W = I.current.group) == null || W.emit({
3428
+ we.state.layout = A, (L = I.current.group) == null || L.emit({
3429
3429
  layout: A
3430
- }), !I.current.hasMeasured && S.untilMeasured === "hide" && He((B) => ({
3430
+ }), !I.current.hasMeasured && S.untilMeasured === "hide" && Ue((B) => ({
3431
3431
  ...B
3432
3432
  })), I.current.hasMeasured = !0;
3433
- })), he = ((Rr = Ye.usePropsTransform) == null ? void 0 : Rr.call(Ye, V, Vt, I, I.current.willHydrate)) || Vt, I.current.composedRef || (I.current.composedRef = dr((w) => I.current.host = w, c, $l, Nr)), he.ref = I.current.composedRef, process.env.NODE_ENV === "development" && !b && !o && At && !r && Z.Children.toArray(S.children).forEach((w) => {
3433
+ })), he = ((Rr = Xe.usePropsTransform) == null ? void 0 : Rr.call(Xe, V, Vt, I, I.current.willHydrate)) || Vt, I.current.composedRef || (I.current.composedRef = dr((w) => I.current.host = w, c, wl, Nr)), he.ref = I.current.composedRef, process.env.NODE_ENV === "development" && !b && !o && At && !r && Z.Children.toArray(S.children).forEach((w) => {
3434
3434
  typeof w == "string" && w !== `
3435
3435
  ` && console.error(`Unexpected text node: ${w}. A text node cannot be a child of a <${e.componentName || u.tag || "View"}>.`, S);
3436
3436
  }), process.env.NODE_ENV === "development" && F && F`events-hooks`;
@@ -3442,11 +3442,11 @@ If you meant to do this, you can disable this warning - either change untilMeasu
3442
3442
  };
3443
3443
  process.env.NODE_ENV === "development" && At && ke(() => {
3444
3444
  if (p === "verbose") {
3445
- let w = function(W) {
3445
+ let w = function(L) {
3446
3446
  const B = {};
3447
- for (let H = 0; H < W.length; H++) {
3448
- let Q = W[H];
3449
- B[Q] = W.getPropertyValue(Q);
3447
+ for (let H = 0; H < L.length; H++) {
3448
+ let Q = L[H];
3449
+ B[Q] = L.getPropertyValue(Q);
3450
3450
  }
3451
3451
  return B;
3452
3452
  };
@@ -3461,7 +3461,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
3461
3461
  return;
3462
3462
  }
3463
3463
  if (Y.unmounted) {
3464
- if (Xe === "css") {
3464
+ if (Ze === "css") {
3465
3465
  let w = !1;
3466
3466
  return requestAnimationFrame(() => {
3467
3467
  w || requestAnimationFrame(() => {
@@ -3479,10 +3479,10 @@ If you meant to do this, you can disable this warning - either change untilMeasu
3479
3479
  }
3480
3480
  return () => {
3481
3481
  var w, A;
3482
- Ot.delete(He), (A = (w = I.current).mediaEmitCleanup) == null || A.call(w);
3482
+ Ot.delete(Ue), (A = (w = I.current).mediaEmitCleanup) == null || A.call(w);
3483
3483
  };
3484
- }, [Y.unmounted, Xe]), ke(() => {
3485
- if (!C && !(!at && !te) && Oe) return wl({
3484
+ }, [Y.unmounted, Ze]), ke(() => {
3485
+ if (!C && !(!at && !te) && Oe) return Nl({
3486
3486
  groupContext: Oe,
3487
3487
  setStateShallow: pe,
3488
3488
  mediaGroups: te,
@@ -3493,13 +3493,13 @@ If you meant to do this, you can disable this warning - either change untilMeasu
3493
3493
  ke(() => {
3494
3494
  !we || !Gn || i(we, Gn, Y);
3495
3495
  }, [we, Gn, Y]);
3496
- const Pt = !C && $e && (re == null ? void 0 : re.pressStyle), Yn = !C && $e && (re == null ? void 0 : re.focusStyle), Tr = !C && $e && (re == null ? void 0 : re.focusVisibleStyle), Xn = !!(Pt || Yn || Tr || Ge || Et || E.setParentFocusState), un = !!(M && Y.hasDynGroupChildren), qe = !!(un || Pt || de || J || j || Ke || Ve || ge || cn || re != null && re.focusVisibleStyle), Zn = !C && $e && (re == null ? void 0 : re.hoverStyle), dn = !!(un || Zn), fn = !!(un || dn || ye || Re), qn = !C && !S.asChild && !!(Xn || qe || fn || Pt || Zn || Yn), Jn = !!(un || Pt);
3496
+ const Pt = !C && $e && (re == null ? void 0 : re.pressStyle), Yn = !C && $e && (re == null ? void 0 : re.focusStyle), Tr = !C && $e && (re == null ? void 0 : re.focusVisibleStyle), Xn = !!(Pt || Yn || Tr || Ye || Et || E.setParentFocusState), un = !!(M && Y.hasDynGroupChildren), Je = !!(un || Pt || de || J || j || Ge || Pe || ge || cn || re != null && re.focusVisibleStyle), Zn = !C && $e && (re == null ? void 0 : re.hoverStyle), dn = !!(un || Zn), fn = !!(un || dn || ye || Re), qn = !C && !S.asChild && !!(Xn || Je || fn || Pt || Zn || Yn), Jn = !!(un || Pt);
3497
3497
  process.env.NODE_ENV === "development" && F && F`events-setup`, process.env.NODE_ENV === "development" && p === "verbose" && U("🪩 events()", {
3498
3498
  runtimeFocusStyle: Yn,
3499
3499
  runtimePressStyle: Pt,
3500
3500
  runtimeHoverStyle: Zn,
3501
3501
  runtimeFocusVisibleStyle: Tr,
3502
- attachPress: qe,
3502
+ attachPress: Je,
3503
3503
  attachFocus: Xn,
3504
3504
  attachHover: fn,
3505
3505
  shouldAttach: qn,
@@ -3507,32 +3507,32 @@ If you meant to do this, you can disable this warning - either change untilMeasu
3507
3507
  pseudos: re
3508
3508
  });
3509
3509
  const $t = qn ? {
3510
- onPressOut: qe ? (w) => {
3511
- xr(), J == null || J(w), Ve == null || Ve(w);
3510
+ onPressOut: Je ? (w) => {
3511
+ xr(), J == null || J(w), Pe == null || Pe(w);
3512
3512
  } : void 0,
3513
- ...(fn || qe) && {
3513
+ ...(fn || Je) && {
3514
3514
  onMouseEnter: (w) => {
3515
3515
  const A = {};
3516
3516
  dn && !Bo.value && (A.hover = !0), Jn && Y.pressIn && (A.press = !0), pe(A), be == null || be(w), ye == null || ye(w);
3517
3517
  },
3518
3518
  onMouseLeave: (w) => {
3519
3519
  const A = {};
3520
- dn && (A.hover = !1), Jn && (A.press = !1, A.pressIn = !1), pe(A), We == null || We(w), Re == null || Re(w);
3520
+ dn && (A.hover = !1), Jn && (A.press = !1, A.pressIn = !1), pe(A), Le == null || Le(w), Re == null || Re(w);
3521
3521
  }
3522
3522
  },
3523
- onPressIn: qe ? (w) => {
3523
+ onPressIn: Je ? (w) => {
3524
3524
  Jn && pe({
3525
3525
  press: !0,
3526
3526
  pressIn: !0
3527
- }), j == null || j(w), Ke == null || Ke(w), Ot.add(He);
3527
+ }), j == null || j(w), Ge == null || Ge(w), Ot.add(Ue);
3528
3528
  } : void 0,
3529
- onPress: qe ? (w) => {
3529
+ onPress: Je ? (w) => {
3530
3530
  xr(), cn == null || cn(w), de == null || de(w), ge == null || ge(w);
3531
3531
  } : void 0,
3532
3532
  ...Xn && {
3533
3533
  onFocus: (w) => {
3534
3534
  const A = {};
3535
- E.setParentFocusState && (A.focusWithin = !0), re != null && re.focusVisibleStyle && dt.value ? A.focusVisible = !0 : A.focus = !0, pe(A), Ge == null || Ge(w);
3535
+ E.setParentFocusState && (A.focusWithin = !0), re != null && re.focusVisibleStyle && dt.value ? A.focusVisible = !0 : A.focus = !0, pe(A), Ye == null || Ye(w);
3536
3536
  },
3537
3537
  onBlur: (w) => {
3538
3538
  E.setParentFocusState && E.setParentFocusState({
@@ -3548,9 +3548,9 @@ If you meant to do this, you can disable this warning - either change untilMeasu
3548
3548
  if ($t && !b && Object.assign(he, co($t)), process.env.NODE_ENV === "development" && F && F`events`, process.env.NODE_ENV === "development" && p === "verbose" && U("events", {
3549
3549
  events: $t,
3550
3550
  attachHover: fn,
3551
- attachPress: qe
3551
+ attachPress: Je
3552
3552
  }), process.env.NODE_ENV === "development" && F && F`hooks`, Ne) {
3553
- V = Fl;
3553
+ V = Vl;
3554
3554
  {
3555
3555
  const w = co({
3556
3556
  onPress: de,
@@ -3570,7 +3570,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
3570
3570
  }
3571
3571
  }, u.children);
3572
3572
  else {
3573
- Ye.useChildren && (X = Ye.useChildren(V, X || Ae, he));
3573
+ Xe.useChildren && (X = Xe.useChildren(V, X || Ae, he));
3574
3574
  const w = typeof st == "string";
3575
3575
  if (st && !w) {
3576
3576
  const A = zl(st, X || Ae, he, $);
@@ -3580,7 +3580,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
3580
3580
  }
3581
3581
  const Qn = _ == null ? void 0 : _.ResetPresence, eo = !!// not when passing down to child
3582
3582
  (!Ne && // not when passThrough
3583
- L && // not when HOC
3583
+ z && // not when HOC
3584
3584
  !r && Qn && yt && (le || N)), _r = I.current.hasEverResetPresence;
3585
3585
  if (eo && !_r && (I.current.hasEverResetPresence = !0), (eo || _r) && Qn && (X = /* @__PURE__ */ y(Qn, {
3586
3586
  disabled: !eo,
@@ -3596,7 +3596,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
3596
3596
  ...E,
3597
3597
  inText: !0,
3598
3598
  children: X
3599
- })), process.env.NODE_ENV === "development" && F && F`group-context`, X = O || !L ? X : _i(oe, X, z, !1, I), process.env.NODE_ENV === "development" && F && F`themed-children`, b && !Ne && (X = /* @__PURE__ */ y("span", {
3599
+ })), process.env.NODE_ENV === "development" && F && F`group-context`, X = O || !z ? X : Ci(oe, X, W, !1, I), process.env.NODE_ENV === "development" && F && F`themed-children`, b && !Ne && (X = /* @__PURE__ */ y("span", {
3600
3600
  className: "_dsp_contents",
3601
3601
  ...!it && Te && $t && co($t),
3602
3602
  children: X
@@ -3609,8 +3609,8 @@ If you meant to do this, you can disable this warning - either change untilMeasu
3609
3609
  children: X
3610
3610
  });
3611
3611
  }
3612
- if (process.env.NODE_ENV === "development" && F && F`context-override`, Ie && L && (X = /* @__PURE__ */ se(Fn, {
3613
- children: [X, Te ? null : kl(Object.values(L.rulesToInsert))]
3612
+ if (process.env.NODE_ENV === "development" && F && F`context-override`, De && z && (X = /* @__PURE__ */ se(Fn, {
3613
+ children: [X, Te ? null : Ml(Object.values(z.rulesToInsert))]
3614
3614
  })), process.env.NODE_ENV === "development" && F && F`style-tags`, process.env.NODE_ENV === "development" && p && p !== "profile") {
3615
3615
  const w = `render <${typeof V == "string" ? V : "Component"} /> (${m}) with props`;
3616
3616
  if (Ct) {
@@ -3619,7 +3619,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
3619
3619
  U("viewProps", he), U("children", X), typeof window < "u" && U({
3620
3620
  propsIn: u,
3621
3621
  props: S,
3622
- attachPress: qe,
3622
+ attachPress: Je,
3623
3623
  animationStyles: Kn,
3624
3624
  classNames: ln,
3625
3625
  content: X,
@@ -3627,14 +3627,14 @@ If you meant to do this, you can disable this warning - either change untilMeasu
3627
3627
  events: $t,
3628
3628
  isAnimated: G,
3629
3629
  hasRuntimeMediaKeys: D,
3630
- isStringElement: Ue,
3630
+ isStringElement: Ke,
3631
3631
  mediaListeningKeys: Ft,
3632
3632
  pseudos: re,
3633
3633
  shouldAttach: qn,
3634
3634
  noClass: $e,
3635
3635
  shouldListenForMedia: ee,
3636
- splitStyles: L,
3637
- splitStylesStyle: Ze,
3636
+ splitStyles: z,
3637
+ splitStylesStyle: qe,
3638
3638
  state: Y,
3639
3639
  stateRef: I,
3640
3640
  staticConfig: e,
@@ -3642,7 +3642,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
3642
3642
  themeState: oe,
3643
3643
  viewProps: he,
3644
3644
  willBeAnimated: yt,
3645
- startedUnhydrated: Ie
3645
+ startedUnhydrated: De
3646
3646
  });
3647
3647
  } catch {
3648
3648
  } finally {
@@ -3650,7 +3650,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
3650
3650
  }
3651
3651
  } else {
3652
3652
  U(w), U("state: ", Y), Mo && U("viewProps", he), U("final styles:");
3653
- for (const A in Ze) U(A, Ze[A]);
3653
+ for (const A in qe) U(A, qe[A]);
3654
3654
  }
3655
3655
  }
3656
3656
  return process.env.NODE_ENV === "development" && F && (F`rest`, globalThis.willPrint || (globalThis.willPrint = !0, setTimeout(() => {
@@ -3680,13 +3680,13 @@ If you meant to do this, you can disable this warning - either change untilMeasu
3680
3680
  function d(u, c) {
3681
3681
  let m = typeof u == "function" && u.length === 1 ? u : Z.forwardRef(u);
3682
3682
  const f = l(c == null ? void 0 : c.staticConfig);
3683
- return m = c != null && c.disableTheme ? m : Rl(m, f, !0), (f.memo || process.env.TAMAGUI_MEMOIZE_STYLEABLE) && (m = Z.memo(m)), m.staticConfig = f, m.styleable = d, m;
3683
+ return m = c != null && c.disableTheme ? m : kl(m, f, !0), (f.memo || process.env.TAMAGUI_MEMOIZE_STYLEABLE) && (m = Z.memo(m)), m.staticConfig = f, m.styleable = d, m;
3684
3684
  }
3685
3685
  return a.styleable = d, a;
3686
3686
  }
3687
3687
  const ms = (e) => typeof e == "number" ? e : typeof e == "string" ? +e.replace("px", "") : 0, zl = (e, t, n, o) => {
3688
3688
  if (typeof e == "function" && (e = e(n, o)), e && typeof e == "object" && Z.isValidElement(e) && e) {
3689
- const r = e.props, s = r ? vl(r, n, t) : n;
3689
+ const r = e.props, s = r ? El(r, n, t) : n;
3690
3690
  return {
3691
3691
  elementType: e.type,
3692
3692
  viewProps: s
@@ -3694,9 +3694,9 @@ const ms = (e) => typeof e == "number" ? e : typeof e == "string" ? +e.replace("
3694
3694
  }
3695
3695
  }, jo = (e) => {
3696
3696
  process.env.TAMAGUI_DID_OUTPUT_CSS || wn.set(An(e), e);
3697
- }, Ho = (e, t = !1) => process.env.TAMAGUI_DID_OUTPUT_CSS ? "" : `--${process.env.TAMAGUI_CSS_VARIABLE_PREFIX || ""}${ri(e.name, !1)}:${!t && typeof e.val == "number" ? `${e.val}px` : e.val}`, wn = /* @__PURE__ */ new Map();
3697
+ }, Ho = (e, t = !1) => process.env.TAMAGUI_DID_OUTPUT_CSS ? "" : `--${process.env.TAMAGUI_CSS_VARIABLE_PREFIX || ""}${si(e.name, !1)}:${!t && typeof e.val == "number" ? `${e.val}px` : e.val}`, wn = /* @__PURE__ */ new Map();
3698
3698
  let Ll = 0;
3699
- const Uo = [], Wl = (e) => {
3699
+ const Uo = [], Bl = (e) => {
3700
3700
  if (wn.has(e)) return wn.get(e);
3701
3701
  const t = `t${Ll++}`, n = `var(--${t})`, o = {
3702
3702
  val: e,
@@ -3705,26 +3705,26 @@ const Uo = [], Wl = (e) => {
3705
3705
  };
3706
3706
  return wn.set(e, o), Uo.push(o), o;
3707
3707
  };
3708
- let Bl = 1e4;
3709
- const bo = /* @__PURE__ */ new Map(), jl = (e) => {
3708
+ let jl = 1e4;
3709
+ const bo = /* @__PURE__ */ new Map(), Hl = (e) => {
3710
3710
  if (bo.has(e)) return bo.get(e);
3711
- const t = `t${Bl++}`, n = `var(--${t})`, o = {
3711
+ const t = `t${jl++}`, n = `var(--${t})`, o = {
3712
3712
  val: e,
3713
3713
  name: t,
3714
3714
  variable: n
3715
3715
  };
3716
3716
  return bo.set(e, o), o;
3717
- }, Hl = ["dark", "light"], Ul = ["light", "dark"];
3718
- function Kl(e) {
3717
+ }, Ul = ["dark", "light"], Kl = ["light", "dark"];
3718
+ function Gl(e) {
3719
3719
  if (!process.env.TAMAGUI_DID_OUTPUT_CSS && (!process.env.TAMAGUI_DOES_SSR_CSS || process.env.TAMAGUI_DOES_SSR_CSS === "mutates-themes" || process.env.TAMAGUI_DOES_SSR_CSS === "false")) {
3720
3720
  const t = [], {
3721
3721
  config: n,
3722
3722
  themeName: o,
3723
3723
  theme: r,
3724
3724
  names: s
3725
- } = e, i = e.hasDarkLight ?? (n.themes && ("light" in n.themes || "dark" in n.themes)), a = `.${Ms}`;
3725
+ } = e, i = e.hasDarkLight ?? (n.themes && ("light" in n.themes || "dark" in n.themes)), a = `.${Is}`;
3726
3726
  let l = "";
3727
- const d = e.useMutatedVariables ? jl : Wl;
3727
+ const d = e.useMutatedVariables ? Hl : Bl;
3728
3728
  for (const h in r) {
3729
3729
  const E = r[h], x = d(E.val).variable;
3730
3730
  l += `--${process.env.TAMAGUI_CSS_VARIABLE_PREFIX || ""}${It(h, 40)}:${x};`;
@@ -3736,7 +3736,7 @@ function Kl(e) {
3736
3736
  f.add(`${a}${h}`);
3737
3737
  continue;
3738
3738
  }
3739
- const S = `${a}${h.replace(/^(dark|light)_/, "")}`, T = E ? Hl : Ul, [P, K] = T, R = Math.round(2 * 1.5);
3739
+ const S = `${a}${h.replace(/^(dark|light)_/, "")}`, T = E ? Ul : Kl, [P, K] = T, R = Math.round(2 * 1.5);
3740
3740
  for (let k = 0; k < R; k++) {
3741
3741
  const _ = k % 2 === 1;
3742
3742
  if (_ && k < 3) continue;
@@ -3750,9 +3750,9 @@ function Kl(e) {
3750
3750
  f.add(`${ie} ${M}`);
3751
3751
  }
3752
3752
  }
3753
- const b = [...f].sort(Ei), p = `${b.map((h) => {
3753
+ const b = [...f].sort($i), p = `${b.map((h) => {
3754
3754
  const E = Ce("addThemeClassName");
3755
- return Gl(h) && (E === "html" || E === "body") ? `${E === "body" ? "body" : ":root"}${h}` : `:root ${h}`;
3755
+ return Yl(h) && (E === "html" || E === "body") ? `${E === "body" ? "body" : ":root"}${h}` : `:root ${h}`;
3756
3756
  }).join(", ") + ", .tm_xxt"} {${l}}`;
3757
3757
  if (t.push(p), Ce("shouldAddPrefersColorThemes")) {
3758
3758
  const h = o.startsWith("dark"), E = h ? "dark" : "light", x = b.map((R) => {
@@ -3785,28 +3785,28 @@ function Kl(e) {
3785
3785
  }
3786
3786
  return [];
3787
3787
  }
3788
- const Ko = ".t_dark", Go = ".t_light", Gl = (e) => e === Ko || e === Go || e.startsWith(".t_dark ") || e.startsWith(".t_light "), Ci = {};
3789
- function Yl(e) {
3788
+ const Ko = ".t_dark", Go = ".t_light", Yl = (e) => e === Ko || e === Go || e.startsWith(".t_dark ") || e.startsWith(".t_light "), Oi = {};
3789
+ function Xl(e) {
3790
3790
  for (const {
3791
3791
  names: n,
3792
3792
  theme: o
3793
- } of e) for (const r of n) Ci[r] = o;
3793
+ } of e) for (const r of n) Oi[r] = o;
3794
3794
  const t = {};
3795
3795
  for (const {
3796
3796
  names: n,
3797
3797
  theme: o
3798
3798
  } of e) for (const r of n) {
3799
- const s = Xl(r, o);
3799
+ const s = Zl(r, o);
3800
3800
  t[r] = s;
3801
3801
  }
3802
3802
  return t;
3803
3803
  }
3804
- function Xl(e, t) {
3804
+ function Zl(e, t) {
3805
3805
  const n = {}, o = [], r = e.split("_").slice(0, -1).map((s) => (o.push(s), o.join("_")));
3806
- for (const s of r) Object.assign(n, Ci[s]);
3806
+ for (const s of r) Object.assign(n, Oi[s]);
3807
3807
  return Object.assign(n, t), n;
3808
3808
  }
3809
- function Zl(e, t) {
3809
+ function ql(e, t) {
3810
3810
  const n = e[t];
3811
3811
  xe(n) ? n.name !== t && (e[t] = Qt({
3812
3812
  key: n.name,
@@ -3818,7 +3818,7 @@ function Zl(e, t) {
3818
3818
  val: n
3819
3819
  });
3820
3820
  }
3821
- const ql = ["100", "200", "300", "400", "500", "600", "700", "800", "900"], Jl = (e, t, n) => {
3821
+ const Jl = ["100", "200", "300", "400", "500", "600", "700", "800", "900"], Ql = (e, t, n) => {
3822
3822
  if (typeof e == "string") return e;
3823
3823
  const o = Object.keys(e);
3824
3824
  let r = e[o[0]];
@@ -3826,8 +3826,8 @@ const ql = ["100", "200", "300", "400", "500", "600", "700", "800", "900"], Jl =
3826
3826
  const i = e[s] ?? n ?? r;
3827
3827
  return r = i, n = i, [s, i];
3828
3828
  }));
3829
- }, Oi = (e) => {
3830
- const t = Object.keys(e.size || {}), n = Object.fromEntries(Object.entries(e).map(([o, r]) => [o, Jl(r, o === "face" ? ql : t, o === "face" ? {
3829
+ }, Ai = (e) => {
3830
+ const t = Object.keys(e.size || {}), n = Object.fromEntries(Object.entries(e).map(([o, r]) => [o, Ql(r, o === "face" ? Jl : t, o === "face" ? {
3831
3831
  normal: e.family
3832
3832
  } : void 0)]));
3833
3833
  return Object.freeze(n);
@@ -3869,7 +3869,7 @@ const ql = ["100", "200", "300", "400", "500", "600", "700", "800", "900"], Jl =
3869
3869
  return hs.set(o, !0), o;
3870
3870
  }, Tt = (e) => {
3871
3871
  console.warn(`No animation driver configured. To use ${e}, you must pass \`animations\` to createTamagui. See: https://tamagui.dev/docs/core/animations`);
3872
- }, Ql = () => ({
3872
+ }, ec = () => ({
3873
3873
  isReactNative: !1,
3874
3874
  inputStyle: "css",
3875
3875
  outputStyle: "css",
@@ -3881,11 +3881,11 @@ const ql = ["100", "200", "300", "400", "500", "600", "700", "800", "900"], Jl =
3881
3881
  useAnimatedNumber: () => Tt("useAnimatedNumber"),
3882
3882
  useAnimatedNumberStyle: () => Tt("useAnimatedNumberStyle"),
3883
3883
  useAnimatedNumberReaction: () => Tt("useAnimatedNumberReaction")
3884
- }), ec = Ql();
3885
- function tc(e, t = "$true") {
3884
+ }), tc = ec();
3885
+ function nc(e, t = "$true") {
3886
3886
  const n = ["font-family: var(--f-family)"], o = (l) => {
3887
3887
  const d = l == null ? void 0 : l[t];
3888
- if (xe(d)) return Oa(d);
3888
+ if (xe(d)) return Aa(d);
3889
3889
  }, r = o(e.letterSpacing);
3890
3890
  r && n.push(`letter-spacing: ${r}`);
3891
3891
  const s = o(e.lineHeight);
@@ -3895,7 +3895,7 @@ function tc(e, t = "$true") {
3895
3895
  const a = o(e.weight);
3896
3896
  return a && n.push(`font-weight: ${a}`), n;
3897
3897
  }
3898
- function nc(e, t) {
3898
+ function oc(e, t) {
3899
3899
  if (!process.env.TAMAGUI_DID_OUTPUT_CSS) {
3900
3900
  const n = [], o = Object.keys(e).sort();
3901
3901
  for (const r of o) {
@@ -3913,7 +3913,7 @@ function nc(e, t) {
3913
3913
  }
3914
3914
  return [];
3915
3915
  }
3916
- function oc(e, t) {
3916
+ function rc(e, t) {
3917
3917
  if (!process.env.TAMAGUI_DID_OUTPUT_CSS) {
3918
3918
  const n = {};
3919
3919
  if (!e) return n;
@@ -3931,7 +3931,7 @@ function oc(e, t) {
3931
3931
  }
3932
3932
  return {};
3933
3933
  }
3934
- function rc(e, t, n = "$true") {
3934
+ function sc(e, t, n = "$true") {
3935
3935
  if (!process.env.TAMAGUI_DID_OUTPUT_CSS) {
3936
3936
  let o = function(a, l = "") {
3937
3937
  return `:root${l} { ${[...a].join("; ")}
@@ -3953,7 +3953,7 @@ function rc(e, t, n = "$true") {
3953
3953
  if (s.length) {
3954
3954
  const a = t[i[0]];
3955
3955
  if (a != null && a.fontParsed) {
3956
- const l = tc(a.fontParsed, n), d = [...s, ".is_View"].join(", ");
3956
+ const l = nc(a.fontParsed, n), d = [...s, ".is_View"].join(", ");
3957
3957
  r.push(`${d} {${l.join("; ")}}`);
3958
3958
  }
3959
3959
  }
@@ -3961,14 +3961,14 @@ function rc(e, t, n = "$true") {
3961
3961
  }
3962
3962
  return [];
3963
3963
  }
3964
- function sc(e, t) {
3964
+ function ic(e, t) {
3965
3965
  if (!process.env.TAMAGUI_DID_OUTPUT_CSS) {
3966
3966
  let n = [];
3967
3967
  for (const {
3968
3968
  names: o,
3969
3969
  theme: r
3970
3970
  } of e) {
3971
- const s = Kl({
3971
+ const s = Gl({
3972
3972
  config: t,
3973
3973
  themeName: o[0],
3974
3974
  names: o,
@@ -3980,7 +3980,7 @@ function sc(e, t) {
3980
3980
  }
3981
3981
  return [];
3982
3982
  }
3983
- function ic(e, t = {}, n) {
3983
+ function ac(e, t = {}, n) {
3984
3984
  if (!process.env.TAMAGUI_DID_OUTPUT_CSS) {
3985
3985
  const {
3986
3986
  separator: o = `
@@ -3989,11 +3989,11 @@ function ic(e, t = {}, n) {
3989
3989
  exclude: s
3990
3990
  } = t;
3991
3991
  if (r && n.value >= 0) {
3992
- const l = zo(), d = l.slice(n.value);
3992
+ const l = Wo(), d = l.slice(n.value);
3993
3993
  return n.value = l.length, d.join(o);
3994
3994
  }
3995
3995
  n.value = 0;
3996
- const i = zo().join(o);
3996
+ const i = Wo().join(o);
3997
3997
  if (s === "design-system") return i;
3998
3998
  const a = s ? "" : e.getThemeRulesSets().join(o);
3999
3999
  return `${`._ovs-contain {overscroll-behavior:contain;}
@@ -4017,7 +4017,7 @@ ${i}`;
4017
4017
  }
4018
4018
  return "";
4019
4019
  }
4020
- function ac(e) {
4020
+ function lc(e) {
4021
4021
  var n;
4022
4022
  const t = {};
4023
4023
  for (const o in e) {
@@ -4033,7 +4033,7 @@ function ac(e) {
4033
4033
  }
4034
4034
  return t;
4035
4035
  }
4036
- function lc(e) {
4036
+ function cc(e) {
4037
4037
  if (!process.env.TAMAGUI_DID_OUTPUT_CSS) {
4038
4038
  const t = [];
4039
4039
  for (const n in e) if (n !== "face") {
@@ -4049,39 +4049,39 @@ function lc(e) {
4049
4049
  }
4050
4050
  return [];
4051
4051
  }
4052
- const cc = (() => {
4052
+ const uc = (() => {
4053
4053
  if (process.env.NODE_ENV === "development") {
4054
4054
  class e {
4055
4055
  constructor() {
4056
- Mr(this, "Helpers", Ta);
4056
+ Mr(this, "Helpers", _a);
4057
4057
  }
4058
4058
  get mediaState() {
4059
4059
  return {
4060
- ...zn
4060
+ ...Wn
4061
4061
  };
4062
4062
  }
4063
4063
  get config() {
4064
4064
  return ze();
4065
4065
  }
4066
4066
  get insertedRules() {
4067
- return zo();
4067
+ return Wo();
4068
4068
  }
4069
4069
  get allSelectors() {
4070
- return Ka();
4070
+ return Ga();
4071
4071
  }
4072
4072
  get identifierToValue() {
4073
- return uc;
4073
+ return dc;
4074
4074
  }
4075
4075
  }
4076
4076
  return new e();
4077
4077
  }
4078
- })(), uc = /* @__PURE__ */ new Map();
4079
- function dc(e) {
4078
+ })(), dc = /* @__PURE__ */ new Map();
4079
+ function fc(e) {
4080
4080
  return (/* @__PURE__ */ new Set(["size", "space", "radius"])).has(e);
4081
4081
  }
4082
- function fc(e) {
4082
+ function mc(e) {
4083
4083
  var P, K, R;
4084
- const t = Fs();
4084
+ const t = Vs();
4085
4085
  t && (e = {
4086
4086
  ...t,
4087
4087
  ...e
@@ -4101,7 +4101,7 @@ function fc(e) {
4101
4101
  let r;
4102
4102
  if (e.themes) {
4103
4103
  const k = Object.keys(e.themes).length === 0;
4104
- k && !process.env.TAMAGUI_DID_OUTPUT_CSS && (r = Ga(k, n));
4104
+ k && !process.env.TAMAGUI_DID_OUTPUT_CSS && (r = Ya(k, n));
4105
4105
  }
4106
4106
  let s = null, i;
4107
4107
  if (e.fonts) {
@@ -4109,7 +4109,7 @@ function fc(e) {
4109
4109
  i = (() => {
4110
4110
  const _ = {};
4111
4111
  for (const v in k) {
4112
- const $ = k[v], C = ac($);
4112
+ const $ = k[v], C = lc($);
4113
4113
  _[`$${v}`] = C, !s && C.size && (s = new Set(Object.keys(C.size)));
4114
4114
  }
4115
4115
  return _;
@@ -4125,20 +4125,20 @@ function fc(e) {
4125
4125
  ${JSON.stringify(me, null, 2)}`);
4126
4126
  }
4127
4127
  }
4128
- const _ = nc(o, dc), v = oc(i, lc), $ = rc(_, v), C = e.themes, M = r ?? mc(C, o.color);
4128
+ const _ = oc(o, fc), v = rc(i, cc), $ = sc(_, v), C = e.themes, M = r ?? hc(C, o.color);
4129
4129
  return {
4130
- themes: Yl(M),
4130
+ themes: Xl(M),
4131
4131
  cssRuleSets: $,
4132
4132
  getThemeRulesSets() {
4133
- return sc(M, e);
4133
+ return ic(M, e);
4134
4134
  }
4135
4135
  };
4136
4136
  })(), d = e.shorthands || {}, u = {
4137
- ...hc,
4137
+ ...pc,
4138
4138
  ...d
4139
4139
  }, c = {
4140
4140
  value: -1
4141
- }, m = (k = {}) => ic(l, k, c), f = (k) => m({
4141
+ }, m = (k = {}) => ac(l, k, c), f = (k) => m({
4142
4142
  ...k,
4143
4143
  sinceLastCall: !0
4144
4144
  }), b = (P = e.settings) == null ? void 0 : P.defaultFont, p = (() => {
@@ -4156,7 +4156,7 @@ ${JSON.stringify(me, null, 2)}`);
4156
4156
  media: {},
4157
4157
  ...e,
4158
4158
  // normalized animations (resolved from multi-driver format if needed)
4159
- animations: S ?? x ?? ec,
4159
+ animations: S ?? x ?? tc,
4160
4160
  animationDrivers: S !== null && S !== x ? x : void 0,
4161
4161
  defaultProps: h,
4162
4162
  settings: {
@@ -4182,9 +4182,9 @@ ${JSON.stringify(me, null, 2)}`);
4182
4182
  // const tokens = [...getToken(tokens.size[0])]
4183
4183
  // .spacer-sm + ._dsp_contents._dsp-sm-hidden { margin-left: -var(--${}) }
4184
4184
  };
4185
- return Xi(T), la(T), process.env.NODE_ENV === "development" && ((R = process.env.DEBUG) != null && R.startsWith("tamagui") && console.info("Tamagui config:", T), globalThis.Tamagui || (globalThis.Tamagui = cc)), T;
4185
+ return Zi(T), ca(T), process.env.NODE_ENV === "development" && ((R = process.env.DEBUG) != null && R.startsWith("tamagui") && console.info("Tamagui config:", T), globalThis.Tamagui || (globalThis.Tamagui = uc)), T;
4186
4186
  }
4187
- function mc(e, t) {
4187
+ function hc(e, t) {
4188
4188
  const n = [], o = /* @__PURE__ */ new Map(), r = Object.keys(e).sort();
4189
4189
  for (const s of r) {
4190
4190
  const i = s.startsWith("dark") ? "dark" : s.startsWith("light") ? "light" : "", a = e[s], l = i + JSON.stringify(a);
@@ -4196,7 +4196,7 @@ function mc(e, t) {
4196
4196
  ...t,
4197
4197
  ...a
4198
4198
  };
4199
- for (const c in d) Zl(d, c);
4199
+ for (const c in d) ql(d, c);
4200
4200
  const u = {
4201
4201
  names: [s],
4202
4202
  theme: d
@@ -4205,7 +4205,7 @@ function mc(e, t) {
4205
4205
  }
4206
4206
  return n;
4207
4207
  }
4208
- const hc = {
4208
+ const pc = {
4209
4209
  bblr: "borderBottomLeftRadius",
4210
4210
  bbrr: "borderBottomRightRadius",
4211
4211
  bbs: "borderBottomStyle",
@@ -4250,13 +4250,13 @@ const hc = {
4250
4250
  ws: "whiteSpace",
4251
4251
  ww: "wordWrap"
4252
4252
  };
4253
- function pc(e) {
4253
+ function gc(e) {
4254
4254
  return In(e, process.env.TAMAGUI_TOKEN_PREFIX ?? "t");
4255
4255
  }
4256
- const gc = /* @__PURE__ */ new WeakMap();
4257
- function bc(e) {
4256
+ const bc = /* @__PURE__ */ new WeakMap();
4257
+ function yc(e) {
4258
4258
  var t;
4259
- if (e) return e.getSize && e.prefetch ? bn.Image : e.displayName === "Text" && e.render ? bn.Text : e.render && (e.displayName === "ScrollView" || e.displayName === "View") ? bn.default : (t = e.State) != null && t.blurTextInput ? bn.TextInput : gc.get(e);
4259
+ if (e) return e.getSize && e.prefetch ? bn.Image : e.displayName === "Text" && e.render ? bn.Text : e.render && (e.displayName === "ScrollView" || e.displayName === "View") ? bn.default : (t = e.State) != null && t.blurTextInput ? bn.TextInput : bc.get(e);
4260
4260
  }
4261
4261
  const bn = {
4262
4262
  Image: {
@@ -4275,11 +4275,11 @@ const bn = {
4275
4275
  default: {
4276
4276
  isReactNative: !0
4277
4277
  }
4278
- }, Ai = (e, t, n = 0) => {
4278
+ }, Ri = (e, t, n = 0) => {
4279
4279
  const o = {};
4280
4280
  for (const r in t) {
4281
4281
  const s = e == null ? void 0 : e[r], i = t[r];
4282
- !s || typeof i == "function" ? o[r] = i : s && !i ? o[r] = s[r] : n === 0 ? o[r] = Ai(s, i, n + 1) : o[r] = {
4282
+ !s || typeof i == "function" ? o[r] = i : s && !i ? o[r] = s[r] : n === 0 ? o[r] = Ri(s, i, n + 1) : o[r] = {
4283
4283
  ...s,
4284
4284
  ...i
4285
4285
  };
@@ -4288,9 +4288,9 @@ const bn = {
4288
4288
  ...e,
4289
4289
  ...o
4290
4290
  };
4291
- }, yc = /* @__PURE__ */ new Set(["a", "abbr", "b", "bdi", "bdo", "cite", "code", "data", "del", "dfn", "em", "i", "ins", "kbd", "label", "mark", "q", "s", "samp", "small", "span", "strong", "sub", "sup", "time", "u", "var"]);
4292
- function Sc(e, t) {
4293
- const n = yc.has(e), {
4291
+ }, Sc = /* @__PURE__ */ new Set(["a", "abbr", "b", "bdi", "bdo", "cite", "code", "data", "del", "dfn", "em", "i", "ins", "kbd", "label", "mark", "q", "s", "samp", "small", "span", "strong", "sub", "sup", "time", "u", "var"]);
4292
+ function vc(e, t) {
4293
+ const n = Sc.has(e), {
4294
4294
  variants: o,
4295
4295
  name: r,
4296
4296
  defaultVariants: s,
@@ -4309,11 +4309,11 @@ function Sc(e, t) {
4309
4309
  };
4310
4310
  return (a.children || i) && (l.neverFlatten = !0), Hn(l);
4311
4311
  }
4312
- function vc(e, t, n) {
4312
+ function Ec(e, t, n) {
4313
4313
  if (process.env.NODE_ENV !== "production" && !e) throw new Error("No component given to styled()");
4314
4314
  const o = e.staticConfig, r = !!o && !(o.isReactNative || o.isHOC);
4315
4315
  let s = o != null && o.isHOC && !(o != null && o.isStyledHOC) || r ? e : (o == null ? void 0 : o.Component) || e;
4316
- const i = o ? void 0 : bc(s), a = !!(i || n != null && n.isReactNative || o != null && o.isReactNative), l = (() => {
4316
+ const i = o ? void 0 : yc(s), a = !!(i || n != null && n.isReactNative || o != null && o.isReactNative), l = (() => {
4317
4317
  let {
4318
4318
  variants: u,
4319
4319
  name: c,
@@ -4327,7 +4327,7 @@ function vc(e, t, n) {
4327
4327
  const P = S[T];
4328
4328
  o.defaultVariants && T in o.defaultVariants && (!m || !(T in m)) && (p || (p = {}), p[T] = P), !(T in b) && (!m || !(T in m)) && (g || (g = {}), g[T] = S[T]);
4329
4329
  }
4330
- o.variants && (u = Ai(o.variants, u));
4330
+ o.variants && (u = Ri(o.variants, u));
4331
4331
  }
4332
4332
  (g || m || p) && (b = {
4333
4333
  ...g,
@@ -4359,16 +4359,16 @@ function vc(e, t, n) {
4359
4359
  for (const u in e) u !== "propTypes" && (u in d || (d[u] = e[u]));
4360
4360
  return d;
4361
4361
  }
4362
- const Le = new Proxy(vc, {
4362
+ const Ie = new Proxy(Ec, {
4363
4363
  get(e, t) {
4364
- return t in e ? e[t] : (n) => Sc(t, n);
4364
+ return t in e ? e[t] : (n) => vc(t, n);
4365
4365
  }
4366
- }), Ec = Hn({
4366
+ }), $c = Hn({
4367
4367
  acceptsClassName: !0,
4368
- validStyles: Wn
4368
+ validStyles: Ln
4369
4369
  });
4370
4370
  let yo = "";
4371
- function $c({
4371
+ function wc({
4372
4372
  children: e,
4373
4373
  theme: t,
4374
4374
  isRootRoot: n,
@@ -4395,12 +4395,12 @@ function $c({
4395
4395
  children: a
4396
4396
  });
4397
4397
  }
4398
- const wc = (e) => {
4398
+ const Nc = (e) => {
4399
4399
  "use no memo";
4400
4400
  const t = Ce("addThemeClassName");
4401
4401
  ke(() => {
4402
4402
  if (t === !1) return;
4403
- const o = `${Ms}${e.defaultTheme}`, r = Ce("addThemeClassName") === "html" ? document.documentElement : document.body;
4403
+ const o = `${Is}${e.defaultTheme}`, r = Ce("addThemeClassName") === "html" ? document.documentElement : document.body;
4404
4404
  return r.classList.add(o), () => {
4405
4405
  r.classList.remove(o);
4406
4406
  };
@@ -4410,11 +4410,11 @@ const wc = (e) => {
4410
4410
  className: e.className,
4411
4411
  name: e.defaultTheme,
4412
4412
  forceClassName: n,
4413
- _isRoot: xs,
4413
+ _isRoot: Ts,
4414
4414
  children: e.children
4415
4415
  });
4416
4416
  };
4417
- function Nc({
4417
+ function xc({
4418
4418
  children: e,
4419
4419
  disableInjectCSS: t,
4420
4420
  config: n,
@@ -4424,28 +4424,28 @@ function Nc({
4424
4424
  insets: i
4425
4425
  }) {
4426
4426
  ke(() => {
4427
- Ja(), Bs();
4427
+ Qa(), js();
4428
4428
  }, []);
4429
4429
  const a = Z.useMemo(() => i, [i == null ? void 0 : i.top, i == null ? void 0 : i.right, i == null ? void 0 : i.bottom, i == null ? void 0 : i.left]), l = Z.useMemo(() => Rn(n == null ? void 0 : n.animations), [n == null ? void 0 : n.animations]);
4430
- tt(() => {
4430
+ nt(() => {
4431
4431
  var u;
4432
4432
  (u = l == null ? void 0 : l.onMount) == null || u.call(l);
4433
4433
  }, []);
4434
4434
  let d = /* @__PURE__ */ y(Sn.Provider, {
4435
4435
  animationDriver: l,
4436
4436
  insets: a,
4437
- children: /* @__PURE__ */ y(wc, {
4437
+ children: /* @__PURE__ */ y(Nc, {
4438
4438
  defaultTheme: r,
4439
4439
  reset: s,
4440
4440
  className: o,
4441
- children: /* @__PURE__ */ y($c, {
4441
+ children: /* @__PURE__ */ y(wc, {
4442
4442
  theme: r,
4443
4443
  isRootRoot: !0,
4444
4444
  children: e
4445
4445
  })
4446
4446
  })
4447
4447
  });
4448
- return Ce("disableSSR") && (d = /* @__PURE__ */ y(Nl, {
4448
+ return Ce("disableSSR") && (d = /* @__PURE__ */ y(xl, {
4449
4449
  enabled: !0,
4450
4450
  children: d
4451
4451
  })), /* @__PURE__ */ se(Fn, {
@@ -4461,7 +4461,7 @@ const ps = {
4461
4461
  overflow: "hidden",
4462
4462
  textOverflow: "ellipsis",
4463
4463
  whiteSpace: "nowrap"
4464
- }, xc = Hn({
4464
+ }, Tc = Hn({
4465
4465
  componentName: "Text",
4466
4466
  acceptsClassName: !0,
4467
4467
  isText: !0,
@@ -4482,24 +4482,24 @@ const ps = {
4482
4482
  }
4483
4483
  },
4484
4484
  validStyles: {
4485
- ...Wn,
4485
+ ...Ln,
4486
4486
  ...lr
4487
4487
  }
4488
- }), Dn = /* @__PURE__ */ new WeakMap(), yr = /* @__PURE__ */ new WeakMap(), Zt = /* @__PURE__ */ new Set(), Mt = /* @__PURE__ */ new WeakMap(), Tc = () => globalThis.__TAMAGUI_ONLAYOUT_PRETRANSFORM === !0 || process.env.TAMAGUI_ONLAYOUT_PRETRANSFORM === "1";
4488
+ }), Dn = /* @__PURE__ */ new WeakMap(), yr = /* @__PURE__ */ new WeakMap(), Zt = /* @__PURE__ */ new Set(), Mt = /* @__PURE__ */ new WeakMap(), _c = () => globalThis.__TAMAGUI_ONLAYOUT_PRETRANSFORM === !0 || process.env.TAMAGUI_ONLAYOUT_PRETRANSFORM === "1";
4489
4489
  let So;
4490
4490
  function Yo() {
4491
4491
  return So === void 0 && (So = typeof window < "u" && new URLSearchParams(window.location.search).has("__tamaDebugLayout")), So;
4492
4492
  }
4493
- const _c = {}, Cc = nn(""), Ri = typeof IntersectionObserver < "u";
4494
- let et = null, Oc = "async";
4493
+ const Cc = {}, Oc = nn(""), ki = typeof IntersectionObserver < "u";
4494
+ let tt = null, Ac = "async";
4495
4495
  const ht = /* @__PURE__ */ new WeakMap();
4496
4496
  let Xo = !0;
4497
4497
  const Nn = /* @__PURE__ */ new Map();
4498
- function Ac() {
4498
+ function Rc() {
4499
4499
  Xo && (Xo = !1, Nn && (Nn.forEach((e) => e()), Nn.clear()));
4500
4500
  }
4501
4501
  function gs() {
4502
- !Ri || et || (et = new IntersectionObserver((e) => {
4502
+ !ki || tt || (tt = new IntersectionObserver((e) => {
4503
4503
  for (let t = 0; t < e.length; t++) {
4504
4504
  const n = e[t], o = n.target;
4505
4505
  Mt.get(o) !== n.isIntersecting && Mt.set(o, n.isIntersecting);
@@ -4511,7 +4511,7 @@ function gs() {
4511
4511
  function bs(e, t) {
4512
4512
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
4513
4513
  }
4514
- if (Ri) {
4514
+ if (ki) {
4515
4515
  let e = function() {
4516
4516
  return n || (n = new IntersectionObserver((b) => {
4517
4517
  s = Math.round(performance.now() - r);
@@ -4550,7 +4550,7 @@ if (Ri) {
4550
4550
  a ? a(f) : setTimeout(f, 16);
4551
4551
  return;
4552
4552
  }
4553
- if (m >= Number.MAX_SAFE_INTEGER && (m = 0), Oc !== "off") {
4553
+ if (m >= Number.MAX_SAFE_INTEGER && (m = 0), Ac !== "off") {
4554
4554
  const b = [], p = /* @__PURE__ */ new Set();
4555
4555
  for (const g of Zt) {
4556
4556
  const h = g.parentElement;
@@ -4559,7 +4559,7 @@ if (Ri) {
4559
4559
  continue;
4560
4560
  }
4561
4561
  const E = yr.get(g);
4562
- E && _c[E] === !0 || Mt.get(g) !== !1 && (b.push(g), p.add(h));
4562
+ E && Cc[E] === !0 || Mt.get(g) !== !1 && (b.push(g), p.add(h));
4563
4563
  }
4564
4564
  if (b.length > 0) {
4565
4565
  const g = e();
@@ -4581,21 +4581,21 @@ if (Ri) {
4581
4581
  }
4582
4582
  const Zo = (e, t, n) => ({
4583
4583
  nativeEvent: {
4584
- layout: ki(e, t, n),
4584
+ layout: Mi(e, t, n),
4585
4585
  target: e
4586
4586
  },
4587
4587
  timeStamp: Date.now()
4588
- }), Rc = (e) => ({
4588
+ }), kc = (e) => ({
4589
4589
  width: e.offsetWidth,
4590
4590
  height: e.offsetHeight
4591
- }), ki = (e, t, n) => {
4591
+ }), Mi = (e, t, n) => {
4592
4592
  const {
4593
4593
  left: o,
4594
4594
  top: r
4595
4595
  } = e, s = o - t.left, i = r - t.top, {
4596
4596
  width: a,
4597
4597
  height: l
4598
- } = Tc() && n ? Rc(n) : {
4598
+ } = _c() && n ? kc(n) : {
4599
4599
  width: e.width,
4600
4600
  height: e.height
4601
4601
  };
@@ -4609,18 +4609,18 @@ const Zo = (e, t, n) => ({
4609
4609
  };
4610
4610
  };
4611
4611
  function xn(e) {
4612
- Zt.delete(e), Dn.delete(e), yr.delete(e), ht.delete(e), Mt.delete(e), et && et.unobserve(e);
4612
+ Zt.delete(e), Dn.delete(e), yr.delete(e), ht.delete(e), Mt.delete(e), tt && tt.unobserve(e);
4613
4613
  }
4614
4614
  const yn = /* @__PURE__ */ new WeakMap();
4615
- function kc(e, t) {
4615
+ function Mc(e, t) {
4616
4616
  var r;
4617
- const n = Vn(Cc), o = ys((r = e.current) == null ? void 0 : r.host);
4617
+ const n = Vn(Oc), o = ys((r = e.current) == null ? void 0 : r.host);
4618
4618
  o && t && (Dn.set(o, t), yr.set(o, n)), ke(() => {
4619
4619
  var c;
4620
4620
  if (!t) return;
4621
4621
  const s = ys((c = e.current) == null ? void 0 : c.host), i = yn.get(e);
4622
4622
  if (s === i || (i && xn(i), yn.set(e, s), !s)) return;
4623
- Zt.add(s), gs(), et && (et.observe(s), Mt.set(s, !0));
4623
+ Zt.add(s), gs(), tt && (tt.observe(s), Mt.set(s, !0));
4624
4624
  const a = Dn.get(s);
4625
4625
  if (typeof a != "function") return;
4626
4626
  const l = s.parentElement;
@@ -4632,7 +4632,7 @@ function kc(e, t) {
4632
4632
  if (!t) return;
4633
4633
  const s = (a = e.current) == null ? void 0 : a.host;
4634
4634
  if (!s) return;
4635
- Zt.add(s), gs(), et && (et.observe(s), Mt.set(s, !0)), process.env.NODE_ENV === "development" && Yo() && console.log("[useElementLayout] register", {
4635
+ Zt.add(s), gs(), tt && (tt.observe(s), Mt.set(s, !0)), process.env.NODE_ENV === "development" && Yo() && console.log("[useElementLayout] register", {
4636
4636
  tag: s.tagName,
4637
4637
  id: s.id || void 0,
4638
4638
  className: (s.className || "").slice(0, 60) || void 0,
@@ -4659,38 +4659,38 @@ const Ss = (e) => new Promise((t) => {
4659
4659
  const n = t || (e == null ? void 0 : e.parentElement);
4660
4660
  if (n instanceof HTMLElement) {
4661
4661
  const [o, r] = await Promise.all([Ss(e), Ss(n)]);
4662
- if (r && o) return ki(o, r, e);
4662
+ if (r && o) return Mi(o, r, e);
4663
4663
  }
4664
4664
  return null;
4665
- }, Mc = async (e, t) => {
4665
+ }, Ic = async (e, t) => {
4666
4666
  const n = await Sr(e, e.parentNode instanceof HTMLElement ? e.parentNode : null);
4667
4667
  return n && (t == null || t(n.x, n.y, n.width, n.height, n.pageX, n.pageY)), n;
4668
4668
  };
4669
- function Ic(e) {
4670
- return (t) => Mc(e, t);
4669
+ function Dc(e) {
4670
+ return (t) => Ic(e, t);
4671
4671
  }
4672
- const Dc = async (e, t) => {
4672
+ const Fc = async (e, t) => {
4673
4673
  const n = await Sr(e, null);
4674
4674
  return n && (t == null || t(n.pageX, n.pageY, n.width, n.height)), n;
4675
- }, Fc = (e) => (t) => Dc(e, t), Vc = async (e, t, n) => {
4675
+ }, Vc = (e) => (t) => Fc(e, t), Pc = async (e, t, n) => {
4676
4676
  const o = await Sr(e, t);
4677
4677
  return o && (n == null || n(o.x, o.y, o.width, o.height, o.pageX, o.pageY)), o;
4678
4678
  };
4679
- function Pc(e) {
4680
- return (t, n) => Vc(e, t, n);
4679
+ function Wc(e) {
4680
+ return (t, n) => Pc(e, t, n);
4681
4681
  }
4682
4682
  function zc() {
4683
4683
  return null;
4684
4684
  }
4685
4685
  const Lc = (e) => (ke(() => {
4686
- Ac();
4687
- }, []), /* @__PURE__ */ y(Nc, {
4686
+ Rc();
4687
+ }, []), /* @__PURE__ */ y(xc, {
4688
4688
  ...e
4689
- })), Wc = (e) => fc(e);
4690
- El({
4689
+ })), Bc = (e) => mc(e);
4690
+ $l({
4691
4691
  getBaseViews: zc,
4692
4692
  setElementProps: (e) => {
4693
- e && !e.measure && (e.measure || (e.measure = Ic(e)), e.measureInWindow || (e.measureInWindow = Fc(e)), e.measureLayout || (e.measureLayout = Pc(e)));
4693
+ e && !e.measure && (e.measure || (e.measure = Dc(e)), e.measureInWindow || (e.measureInWindow = Vc(e)), e.measureLayout || (e.measureLayout = Wc(e)));
4694
4694
  },
4695
4695
  usePropsTransform(e, t, n, o) {
4696
4696
  {
@@ -4722,7 +4722,7 @@ El({
4722
4722
  hrefAttrs: _,
4723
4723
  ...v
4724
4724
  } = t;
4725
- if ((o || r) && kc(n, r ? k : void 0), r) {
4725
+ if ((o || r) && Mc(n, r ? k : void 0), r) {
4726
4726
  if (v.href && _) {
4727
4727
  const {
4728
4728
  download: $,
@@ -4736,20 +4736,20 @@ El({
4736
4736
  }
4737
4737
  }
4738
4738
  });
4739
- const ot = Ec, vr = xc, Bc = { violet: { 50: "#F5F3FF", 100: "#EDE9FE", 200: "#DDD6FE", 300: "#C4B5FD", 400: "#A78BFA", 500: "#8B5CF6", 600: "#7C3AED", 700: "#6D28D9", 800: "#5B21B6", 900: "#4C1D95", 950: "#2E1065" }, navy: { 50: "#E8EDF4", 100: "#C5D0E0", 200: "#9EAFCA", 300: "#778EB4", 400: "#5975A3", 500: "#3B5C93", 600: "#2F4A78", 700: "#1E3358", 800: "#0F1F3A", 900: "#021526", 950: "#01101E" } }, jc = { light: { primary: "#8B5CF6", primaryHover: "#7C3AED", primaryActive: "#6D28D9", bg: "#FFFFFF", bgSecondary: "#F8FAFC", bgTertiary: "#F1F5F9", border: "#E2E8F0", text: "#0F172A", textSecondary: "#64748B", textMuted: "#94A3B8", sidebarBg: "#021526", sidebarText: "#E2E8F0", sidebarTextMuted: "rgba(255, 255, 255, 0.65)", sidebarHover: "rgba(139, 92, 246, 0.15)", sidebarSearchBg: "rgba(255, 255, 255, 0.1)", sidebarItemActiveBg: "rgba(139, 92, 246, 0.3)", success: "#22C55E", warning: "#F59E0B", error: "#EF4444", errorBg: "#FFF2F0", errorBorder: "#FFCCC7", focusRing: "rgba(139, 92, 246, 0.25)", secondary: "#0F172A", borderColorMuted: "rgba(226, 232, 240, 0.4)" }, dark: { primary: "#A78BFA", primaryHover: "#8B5CF6", primaryActive: "#7C3AED", bg: "#021526", bgSecondary: "#0F1F3A", bgTertiary: "#1E3358", border: "#1E3358", text: "#F1F5F9", textSecondary: "#CBD5E1", textMuted: "#94A3B8", sidebarBg: "#01101E", sidebarText: "#E2E8F0", sidebarTextMuted: "#94A3B8", sidebarHover: "rgba(167, 139, 250, 0.15)", sidebarSearchBg: "rgba(255, 255, 255, 0.05)", sidebarItemActiveBg: "rgba(167, 139, 250, 0.2)", success: "#22C55E", warning: "#F59E0B", error: "#EF4444", errorBg: "rgba(239, 68, 68, 0.1)", errorBorder: "rgba(239, 68, 68, 0.3)", focusRing: "rgba(167, 139, 250, 0.3)", secondary: "#F1F5F9", borderColorMuted: "rgba(30, 51, 88, 0.4)" } }, qo = {
4740
- brand: Bc,
4741
- semantic: jc
4742
- }, Hc = { sans: "'Google Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif", mono: "'JetBrains Mono', 'Fira Code', monospace" }, Uc = { xs: "0.75rem", sm: "0.875rem", base: "0.875rem", md: "1rem", lg: "1.125rem", xl: "1.375rem", "2xl": "1.75rem", "3xl": "2rem" }, Kc = { normal: 400, medium: 500, semibold: 600, bold: 700 }, Gc = { tight: 1.3, normal: 1.5, relaxed: 1.6 }, Er = {
4743
- fontFamily: Hc,
4744
- fontSize: Uc,
4745
- fontWeight: Kc,
4746
- lineHeight: Gc
4747
- }, Yc = { xs: "0.25rem", sm: "0.5rem", md: "1rem", lg: "1.5rem", xl: "2rem", "2xl": "3rem" }, Xc = { sm: "4px", md: "6px", lg: "8px", xl: "12px", full: "9999px" }, Zc = { sm: "0 1px 2px 0 rgb(0 0 0 / 0.05)", md: "0 4px 6px -1px rgb(0 0 0 / 0.1)", lg: "0 10px 15px -3px rgb(0 0 0 / 0.1)" }, Mi = {
4748
- spacing: Yc,
4749
- borderRadius: Xc,
4750
- shadow: Zc
4739
+ const je = $c, vr = Tc, jc = { violet: { 50: "#F5F3FF", 100: "#EDE9FE", 200: "#DDD6FE", 300: "#C4B5FD", 400: "#A78BFA", 500: "#8B5CF6", 600: "#7C3AED", 700: "#6D28D9", 800: "#5B21B6", 900: "#4C1D95", 950: "#2E1065" }, navy: { 50: "#E8EDF4", 100: "#C5D0E0", 200: "#9EAFCA", 300: "#778EB4", 400: "#5975A3", 500: "#3B5C93", 600: "#2F4A78", 700: "#1E3358", 800: "#0F1F3A", 900: "#021526", 950: "#01101E" } }, Hc = { light: { primary: "#8B5CF6", primaryHover: "#7C3AED", primaryActive: "#6D28D9", bg: "#FFFFFF", bgSecondary: "#F8FAFC", bgTertiary: "#F1F5F9", border: "#E2E8F0", text: "#0F172A", textSecondary: "#64748B", textMuted: "#94A3B8", sidebarBg: "#021526", sidebarText: "#E2E8F0", sidebarTextMuted: "rgba(255, 255, 255, 0.65)", sidebarHover: "rgba(139, 92, 246, 0.15)", sidebarSearchBg: "rgba(255, 255, 255, 0.1)", sidebarItemActiveBg: "rgba(139, 92, 246, 0.3)", success: "#22C55E", warning: "#F59E0B", error: "#EF4444", errorBg: "#FFF2F0", errorBorder: "#FFCCC7", focusRing: "rgba(139, 92, 246, 0.25)", secondary: "#0F172A", borderColorMuted: "rgba(226, 232, 240, 0.4)" }, dark: { primary: "#A78BFA", primaryHover: "#8B5CF6", primaryActive: "#7C3AED", bg: "#021526", bgSecondary: "#0F1F3A", bgTertiary: "#1E3358", border: "#1E3358", text: "#F1F5F9", textSecondary: "#CBD5E1", textMuted: "#94A3B8", sidebarBg: "#01101E", sidebarText: "#E2E8F0", sidebarTextMuted: "#94A3B8", sidebarHover: "rgba(167, 139, 250, 0.15)", sidebarSearchBg: "rgba(255, 255, 255, 0.05)", sidebarItemActiveBg: "rgba(167, 139, 250, 0.2)", success: "#22C55E", warning: "#F59E0B", error: "#EF4444", errorBg: "rgba(239, 68, 68, 0.1)", errorBorder: "rgba(239, 68, 68, 0.3)", focusRing: "rgba(167, 139, 250, 0.3)", secondary: "#F1F5F9", borderColorMuted: "rgba(30, 51, 88, 0.4)" } }, qo = {
4740
+ brand: jc,
4741
+ semantic: Hc
4742
+ }, Uc = { sans: "'Google Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif", mono: "'JetBrains Mono', 'Fira Code', monospace" }, Kc = { xs: "0.75rem", sm: "0.875rem", base: "0.875rem", md: "1rem", lg: "1.125rem", xl: "1.375rem", "2xl": "1.75rem", "3xl": "2rem" }, Gc = { normal: 400, medium: 500, semibold: 600, bold: 700 }, Yc = { tight: 1.3, normal: 1.5, relaxed: 1.6 }, Er = {
4743
+ fontFamily: Uc,
4744
+ fontSize: Kc,
4745
+ fontWeight: Gc,
4746
+ lineHeight: Yc
4747
+ }, Xc = { xs: "0.25rem", sm: "0.5rem", md: "1rem", lg: "1.5rem", xl: "2rem", "2xl": "3rem" }, Zc = { sm: "4px", md: "6px", lg: "8px", xl: "12px", full: "9999px" }, qc = { sm: "0 1px 2px 0 rgb(0 0 0 / 0.05)", md: "0 4px 6px -1px rgb(0 0 0 / 0.1)", lg: "0 10px 15px -3px rgb(0 0 0 / 0.1)" }, Ii = {
4748
+ spacing: Xc,
4749
+ borderRadius: Zc,
4750
+ shadow: qc
4751
4751
  };
4752
- function qc() {
4752
+ function Jc() {
4753
4753
  return {
4754
4754
  primary: qo.semantic.light.primary,
4755
4755
  secondary: qo.semantic.light.secondary,
@@ -4758,7 +4758,7 @@ function qc() {
4758
4758
  transparent: "transparent"
4759
4759
  };
4760
4760
  }
4761
- function Jc() {
4761
+ function Qc() {
4762
4762
  const e = {};
4763
4763
  return Object.entries(Er.fontSize).forEach(([t, n]) => {
4764
4764
  const o = parseFloat(n.toString());
@@ -4789,27 +4789,27 @@ function vs(e) {
4789
4789
  }, {})
4790
4790
  };
4791
4791
  }
4792
- function Qc() {
4792
+ function eu() {
4793
4793
  const e = {};
4794
- return Object.entries(Mi.spacing).forEach(([t, n]) => {
4794
+ return Object.entries(Ii.spacing).forEach(([t, n]) => {
4795
4795
  const o = parseFloat(n.toString());
4796
4796
  e[t] = isNaN(o) ? 0 : o * 16;
4797
4797
  }), e;
4798
4798
  }
4799
- function eu() {
4799
+ function tu() {
4800
4800
  const e = {};
4801
- return Object.entries(Mi.borderRadius).forEach(([t, n]) => {
4801
+ return Object.entries(Ii.borderRadius).forEach(([t, n]) => {
4802
4802
  const o = parseFloat(n.toString());
4803
4803
  e[t] = isNaN(o) ? 0 : o;
4804
4804
  }), e.full = 9999, e.pill = 9999, e.round = 8, e;
4805
4805
  }
4806
- function tu() {
4806
+ function nu() {
4807
4807
  return {
4808
4808
  tokens: {
4809
- color: qc(),
4810
- space: Qc(),
4811
- size: Jc(),
4812
- radius: eu(),
4809
+ color: Jc(),
4810
+ space: eu(),
4811
+ size: Qc(),
4812
+ radius: tu(),
4813
4813
  zIndex: {
4814
4814
  base: 0,
4815
4815
  dropdown: 100,
@@ -4823,15 +4823,15 @@ function tu() {
4823
4823
  }
4824
4824
  };
4825
4825
  }
4826
- const Qe = tu(), nu = pc({
4827
- color: Qe.tokens.color,
4828
- space: Qe.tokens.space,
4829
- size: Qe.tokens.size,
4830
- radius: Qe.tokens.radius,
4831
- zIndex: Qe.tokens.zIndex
4832
- }), ou = Oi({
4826
+ const et = nu(), ou = gc({
4827
+ color: et.tokens.color,
4828
+ space: et.tokens.space,
4829
+ size: et.tokens.size,
4830
+ radius: et.tokens.radius,
4831
+ zIndex: et.tokens.zIndex
4832
+ }), ru = Ai({
4833
4833
  family: Er.fontFamily.sans,
4834
- size: Qe.tokens.size,
4834
+ size: et.tokens.size,
4835
4835
  lineHeight: {
4836
4836
  tight: 1.3,
4837
4837
  normal: 1.5
@@ -4846,9 +4846,9 @@ const Qe = tu(), nu = pc({
4846
4846
  base: 0,
4847
4847
  lg: -0.2
4848
4848
  }
4849
- }), ru = Oi({
4849
+ }), su = Ai({
4850
4850
  family: Er.fontFamily.sans,
4851
- size: Qe.tokens.size,
4851
+ size: et.tokens.size,
4852
4852
  lineHeight: {
4853
4853
  tight: 1.3,
4854
4854
  normal: 1.5
@@ -4859,21 +4859,36 @@ const Qe = tu(), nu = pc({
4859
4859
  semibold: "600",
4860
4860
  bold: "700"
4861
4861
  }
4862
- }), su = Wc({
4863
- tokens: nu,
4864
- themes: Qe.themes,
4862
+ }), iu = Bc({
4863
+ tokens: ou,
4864
+ themes: et.themes,
4865
4865
  fonts: {
4866
- heading: ou,
4867
- body: ru
4866
+ heading: ru,
4867
+ body: su
4868
4868
  },
4869
- defaultTheme: "light"
4869
+ defaultTheme: "light",
4870
+ media: {
4871
+ xs: { maxWidth: 659 },
4872
+ sm: { maxWidth: 800 },
4873
+ md: { maxWidth: 1024 },
4874
+ lg: { maxWidth: 1280 },
4875
+ xl: { maxWidth: 1420 },
4876
+ gtXs: { minWidth: 660 },
4877
+ gtSm: { minWidth: 801 },
4878
+ gtMd: { minWidth: 1025 },
4879
+ gtLg: { minWidth: 1281 },
4880
+ short: { maxHeight: 820 },
4881
+ tall: { minHeight: 821 },
4882
+ hoverNone: { hover: "none" },
4883
+ pointerCoarse: { pointer: "coarse" }
4884
+ }
4870
4885
  });
4871
- function ku({ children: e }) {
4872
- const { theme: t } = Cs();
4886
+ function Mu({ children: e }) {
4887
+ const { theme: t } = Os();
4873
4888
  return /* @__PURE__ */ y(
4874
4889
  Lc,
4875
4890
  {
4876
- config: su,
4891
+ config: iu,
4877
4892
  defaultTheme: t,
4878
4893
  children: e
4879
4894
  }
@@ -4890,12 +4905,12 @@ const vo = {
4890
4905
  on_hold: { bg: "#fff3cd", text: "#856404" },
4891
4906
  default: { bg: "#e9ecef", text: "#495057" }
4892
4907
  };
4893
- function iu(e) {
4908
+ function au(e) {
4894
4909
  if (!e) return vo.default;
4895
4910
  const t = e.toLowerCase().replace(/\s+/g, "_");
4896
4911
  return vo[t] ?? vo.default;
4897
4912
  }
4898
- function Mu({
4913
+ function Iu({
4899
4914
  state: e,
4900
4915
  docstatus: t,
4901
4916
  className: n,
@@ -4903,7 +4918,7 @@ function Mu({
4903
4918
  }) {
4904
4919
  const r = e ?? (t === 0 ? "Draft" : t === 1 ? "Submitted" : t === 2 ? "Cancelled" : void 0);
4905
4920
  if (!r) return null;
4906
- const s = iu(r);
4921
+ const s = au(r);
4907
4922
  return /* @__PURE__ */ y(
4908
4923
  "span",
4909
4924
  {
@@ -4923,17 +4938,17 @@ function Mu({
4923
4938
  }
4924
4939
  );
4925
4940
  }
4926
- const au = [
4941
+ const lu = [
4927
4942
  { code: "en", label: "English" },
4928
4943
  { code: "hi", label: "हिन्दी" },
4929
4944
  { code: "ta", label: "தமிழ்" },
4930
4945
  { code: "es", label: "Español" },
4931
4946
  { code: "fr", label: "Français" }
4932
4947
  ];
4933
- function Iu({
4948
+ function Du({
4934
4949
  language: e,
4935
4950
  onChangeLanguage: t,
4936
- locales: n = au
4951
+ locales: n = lu
4937
4952
  }) {
4938
4953
  return /* @__PURE__ */ se("div", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
4939
4954
  /* @__PURE__ */ y(
@@ -4966,32 +4981,67 @@ function Iu({
4966
4981
  )
4967
4982
  ] });
4968
4983
  }
4969
- function Du({
4970
- variant: e = "text",
4971
- width: t,
4972
- height: n,
4973
- className: o = "",
4974
- count: r = 1
4975
- }) {
4976
- const s = `skeleton-${e}`, i = {};
4977
- return t && (i.width = typeof t == "number" ? `${t}px` : t), n && (i.height = typeof n == "number" ? `${n}px` : n), r > 1 ? /* @__PURE__ */ y("div", { "aria-busy": "true", "aria-label": "Loading content", children: Array.from({ length: r }, (a, l) => /* @__PURE__ */ y(
4978
- "div",
4984
+ const Es = Ie(je, {
4985
+ name: "Skeleton",
4986
+ backgroundColor: "$colorBgTertiary",
4987
+ borderRadius: "$md",
4988
+ display: "flex",
4989
+ variants: {
4990
+ variant: {
4991
+ text: {
4992
+ height: 14,
4993
+ width: "80%",
4994
+ marginBottom: "$sm"
4995
+ },
4996
+ "text-short": {
4997
+ height: 14,
4998
+ width: "40%",
4999
+ marginBottom: "$sm"
5000
+ },
5001
+ heading: {
5002
+ height: 24,
5003
+ width: "60%",
5004
+ marginBottom: "$md"
5005
+ },
5006
+ avatar: {
5007
+ width: 40,
5008
+ height: 40,
5009
+ borderRadius: 1e3
5010
+ },
5011
+ button: {
5012
+ height: 36,
5013
+ width: 100,
5014
+ borderRadius: "$md"
5015
+ }
5016
+ }
5017
+ },
5018
+ defaultVariants: {
5019
+ variant: "text"
5020
+ }
5021
+ }), Fu = ({
5022
+ count: e = 1,
5023
+ className: t = "",
5024
+ ...n
5025
+ }) => {
5026
+ const o = `skeleton ${t}`.trim();
5027
+ return e > 1 ? /* @__PURE__ */ y(je, { "aria-busy": !0, "aria-label": "Loading content", children: Array.from({ length: e }, (r, s) => /* @__PURE__ */ y(
5028
+ Es,
4979
5029
  {
4980
- className: `skeleton ${s} ${o}`,
4981
- style: l === r - 1 ? { ...i, width: "60%" } : i
5030
+ className: o,
5031
+ ...n,
5032
+ ...s === e - 1 && n.variant === "text" ? { width: "60%" } : {}
4982
5033
  },
4983
- l
5034
+ s
4984
5035
  )) }) : /* @__PURE__ */ y(
4985
- "div",
5036
+ Es,
4986
5037
  {
4987
- className: `skeleton ${s} ${o}`,
4988
- style: i,
4989
- "aria-busy": "true",
4990
- "aria-label": "Loading"
5038
+ className: o,
5039
+ "aria-busy": !0,
5040
+ "aria-label": "Loading",
5041
+ ...n
4991
5042
  }
4992
5043
  );
4993
- }
4994
- const Es = Le(ot, {
5044
+ }, $s = Ie(je, {
4995
5045
  name: "MStack",
4996
5046
  display: "flex",
4997
5047
  flexDirection: "column",
@@ -5009,7 +5059,7 @@ const Es = Le(ot, {
5009
5059
  }
5010
5060
  }
5011
5061
  }
5012
- }), lu = Le(ot, {
5062
+ }), cu = Ie(je, {
5013
5063
  name: "XStack",
5014
5064
  display: "flex",
5015
5065
  flexDirection: "row",
@@ -5027,7 +5077,7 @@ const Es = Le(ot, {
5027
5077
  }
5028
5078
  }
5029
5079
  }
5030
- }), Je = lu, cu = Le(ot, {
5080
+ }), Qe = cu, uu = Ie(je, {
5031
5081
  name: "YStack",
5032
5082
  display: "flex",
5033
5083
  flexDirection: "column",
@@ -5045,7 +5095,7 @@ const Es = Le(ot, {
5045
5095
  }
5046
5096
  }
5047
5097
  }
5048
- }), Be = cu, uu = Le(ot, {
5098
+ }), Be = uu, du = Ie(je, {
5049
5099
  name: "ZStack",
5050
5100
  display: "flex",
5051
5101
  position: "relative",
@@ -5063,7 +5113,7 @@ const Es = Le(ot, {
5063
5113
  }
5064
5114
  }
5065
5115
  }
5066
- }), Fu = uu, du = Le(vr, {
5116
+ }), Vu = du, fu = Ie(vr, {
5067
5117
  name: "MText",
5068
5118
  fontFamily: "$body",
5069
5119
  display: "inline-flex",
@@ -5082,7 +5132,7 @@ const Es = Le(ot, {
5082
5132
  muted: { color: "$colorMuted" }
5083
5133
  }
5084
5134
  }
5085
- }), Se = du, fu = Le(vr, {
5135
+ }), Se = fu, mu = Ie(vr, {
5086
5136
  name: "Paragraph",
5087
5137
  fontFamily: "$body",
5088
5138
  display: "inline-flex",
@@ -5097,7 +5147,7 @@ const Es = Le(ot, {
5097
5147
  $xxl: { fontSize: "$xxl" }
5098
5148
  }
5099
5149
  }
5100
- }), Vu = fu, mu = Le(vr, {
5150
+ }), Pu = mu, hu = Ie(vr, {
5101
5151
  name: "Heading",
5102
5152
  fontFamily: "$body",
5103
5153
  fontWeight: "800",
@@ -5113,7 +5163,7 @@ const Es = Le(ot, {
5113
5163
  $xxl: { fontSize: "$xxl" }
5114
5164
  }
5115
5165
  }
5116
- }), Pu = mu, hu = Le(ot, {
5166
+ }), Wu = hu, pu = Ie(je, {
5117
5167
  name: "Button",
5118
5168
  flexDirection: "row",
5119
5169
  alignItems: "center",
@@ -5197,7 +5247,7 @@ const Es = Le(ot, {
5197
5247
  size: "md"
5198
5248
  }
5199
5249
  });
5200
- function Pe({
5250
+ function We({
5201
5251
  children: e,
5202
5252
  variant: t = "default",
5203
5253
  size: n = "md",
@@ -5207,7 +5257,7 @@ function Pe({
5207
5257
  ...i
5208
5258
  }) {
5209
5259
  return /* @__PURE__ */ y(
5210
- hu,
5260
+ pu,
5211
5261
  {
5212
5262
  tag: s,
5213
5263
  type: i.type,
@@ -5228,7 +5278,7 @@ function Pe({
5228
5278
  }
5229
5279
  );
5230
5280
  }
5231
- const pu = Le(ot, {
5281
+ const gu = Ie(je, {
5232
5282
  name: "Card",
5233
5283
  flexDirection: "column",
5234
5284
  backgroundColor: "$background",
@@ -5264,7 +5314,7 @@ const pu = Le(ot, {
5264
5314
  elevated: !0,
5265
5315
  padded: "md"
5266
5316
  }
5267
- }), gu = pu, bu = Le("input", {
5317
+ }), bu = gu, yu = Ie("input", {
5268
5318
  name: "Input",
5269
5319
  backgroundColor: "$backgroundSecondary",
5270
5320
  borderRadius: "$round",
@@ -5318,7 +5368,7 @@ const pu = Le(ot, {
5318
5368
  value: n,
5319
5369
  ...o
5320
5370
  }, r) => /* @__PURE__ */ y(
5321
- bu,
5371
+ yu,
5322
5372
  {
5323
5373
  ref: r,
5324
5374
  ...n !== void 0 ? { value: n } : {},
@@ -5329,7 +5379,7 @@ const pu = Le(ot, {
5329
5379
  }
5330
5380
  ));
5331
5381
  ft.displayName = "Input";
5332
- const yu = Z.forwardRef(({
5382
+ const Su = Z.forwardRef(({
5333
5383
  value: e,
5334
5384
  onChange: t,
5335
5385
  onChangeText: n,
@@ -5345,9 +5395,9 @@ const yu = Z.forwardRef(({
5345
5395
  const v = new Date(e);
5346
5396
  return isNaN(v.getTime()) ? /* @__PURE__ */ new Date() : v;
5347
5397
  }, [e]), [g, h] = _t(new Date(p));
5348
- tt(() => {
5398
+ nt(() => {
5349
5399
  h(new Date(p));
5350
- }, [p]), tt(() => {
5400
+ }, [p]), nt(() => {
5351
5401
  const v = ($) => {
5352
5402
  f.current && !f.current.contains($.target) && (l(!1), u(!1), m(!1));
5353
5403
  };
@@ -5381,7 +5431,7 @@ const yu = Z.forwardRef(({
5381
5431
  position: "relative",
5382
5432
  width: "100%",
5383
5433
  children: [
5384
- /* @__PURE__ */ se(Je, { alignItems: "center", position: "relative", children: [
5434
+ /* @__PURE__ */ se(Qe, { alignItems: "center", position: "relative", children: [
5385
5435
  /* @__PURE__ */ y(
5386
5436
  ft,
5387
5437
  {
@@ -5395,7 +5445,7 @@ const yu = Z.forwardRef(({
5395
5445
  }
5396
5446
  ),
5397
5447
  /* @__PURE__ */ y(
5398
- Je,
5448
+ Qe,
5399
5449
  {
5400
5450
  position: "absolute",
5401
5451
  right: 12,
@@ -5411,7 +5461,7 @@ const yu = Z.forwardRef(({
5411
5461
  )
5412
5462
  ] }),
5413
5463
  a && /* @__PURE__ */ se(
5414
- gu,
5464
+ bu,
5415
5465
  {
5416
5466
  elevated: !0,
5417
5467
  position: "absolute",
@@ -5425,9 +5475,9 @@ const yu = Z.forwardRef(({
5425
5475
  borderColor: "$borderColor",
5426
5476
  borderWidth: 1,
5427
5477
  children: [
5428
- /* @__PURE__ */ se(Je, { justifyContent: "space-between", alignItems: "center", marginBottom: "$3", children: [
5478
+ /* @__PURE__ */ se(Qe, { justifyContent: "space-between", alignItems: "center", marginBottom: "$3", children: [
5429
5479
  /* @__PURE__ */ y(
5430
- Pe,
5480
+ We,
5431
5481
  {
5432
5482
  size: "sm",
5433
5483
  borderRadius: 100,
@@ -5438,7 +5488,7 @@ const yu = Z.forwardRef(({
5438
5488
  children: /* @__PURE__ */ y(Se, { fontSize: 12, position: "relative", left: -1, children: "<" })
5439
5489
  }
5440
5490
  ),
5441
- /* @__PURE__ */ se(Je, { alignItems: "center", cursor: "pointer", children: [
5491
+ /* @__PURE__ */ se(Qe, { alignItems: "center", cursor: "pointer", children: [
5442
5492
  /* @__PURE__ */ y(Be, { onDoubleClick: () => m(!0), children: c ? /* @__PURE__ */ y(
5443
5493
  ft,
5444
5494
  {
@@ -5455,7 +5505,7 @@ const yu = Z.forwardRef(({
5455
5505
  }
5456
5506
  }
5457
5507
  ) : /* @__PURE__ */ y(Se, { fontSize: 12, fontWeight: "700", color: "$primary", children: _[g.getMonth()] }) }),
5458
- /* @__PURE__ */ y(ot, { width: 12 }),
5508
+ /* @__PURE__ */ y(je, { width: 12 }),
5459
5509
  /* @__PURE__ */ y(Be, { onDoubleClick: () => u(!0), children: d ? /* @__PURE__ */ y(
5460
5510
  ft,
5461
5511
  {
@@ -5474,7 +5524,7 @@ const yu = Z.forwardRef(({
5474
5524
  ) : /* @__PURE__ */ y(Se, { fontWeight: "700", color: "$primary", children: g.getFullYear() }) })
5475
5525
  ] }),
5476
5526
  /* @__PURE__ */ y(
5477
- Pe,
5527
+ We,
5478
5528
  {
5479
5529
  size: "sm",
5480
5530
  borderRadius: 100,
@@ -5486,12 +5536,12 @@ const yu = Z.forwardRef(({
5486
5536
  }
5487
5537
  )
5488
5538
  ] }),
5489
- /* @__PURE__ */ se(Je, { flexWrap: "wrap", gap: 2, marginBottom: "$2", children: [
5490
- /* @__PURE__ */ y(Je, { width: "100%", justifyContent: "space-around", children: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map((v) => /* @__PURE__ */ y(Es, { width: 36, alignItems: "center", children: /* @__PURE__ */ y(Se, { fontSize: 10, color: "muted", fontWeight: "600", children: v }) }, v)) }),
5539
+ /* @__PURE__ */ se(Qe, { flexWrap: "wrap", gap: 2, marginBottom: "$2", children: [
5540
+ /* @__PURE__ */ y(Qe, { width: "100%", justifyContent: "space-around", children: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map((v) => /* @__PURE__ */ y($s, { width: 36, alignItems: "center", children: /* @__PURE__ */ y(Se, { fontSize: 10, color: "muted", fontWeight: "600", children: v }) }, v)) }),
5491
5541
  k.map((v, $) => {
5492
5542
  const C = v === p.getDate() && g.getMonth() === p.getMonth() && g.getFullYear() === p.getFullYear();
5493
5543
  return /* @__PURE__ */ y(
5494
- Es,
5544
+ $s,
5495
5545
  {
5496
5546
  width: 36,
5497
5547
  height: 36,
@@ -5509,9 +5559,9 @@ const yu = Z.forwardRef(({
5509
5559
  })
5510
5560
  ] }),
5511
5561
  o === "datetime-local" && /* @__PURE__ */ se(Be, { marginTop: "$2", paddingTop: "$3", borderTopWidth: 1, borderColor: "$borderColor", gap: "$2", children: [
5512
- /* @__PURE__ */ se(Je, { justifyContent: "space-around", alignItems: "center", children: [
5562
+ /* @__PURE__ */ se(Qe, { justifyContent: "space-around", alignItems: "center", children: [
5513
5563
  /* @__PURE__ */ se(Be, { alignItems: "center", gap: "$1", children: [
5514
- /* @__PURE__ */ y(Pe, { size: "sm", variant: "ghost", padding: 0, onPress: () => S(1, 0, 0), children: /* @__PURE__ */ y(Se, { fontSize: 16, children: "+" }) }),
5564
+ /* @__PURE__ */ y(We, { size: "sm", variant: "ghost", padding: 0, onPress: () => S(1, 0, 0), children: /* @__PURE__ */ y(Se, { fontSize: 16, children: "+" }) }),
5515
5565
  /* @__PURE__ */ y(
5516
5566
  ft,
5517
5567
  {
@@ -5531,11 +5581,11 @@ const yu = Z.forwardRef(({
5531
5581
  }
5532
5582
  }
5533
5583
  ),
5534
- /* @__PURE__ */ y(Pe, { size: "sm", variant: "ghost", padding: 0, onPress: () => S(-1, 0, 0), children: /* @__PURE__ */ y(Se, { fontSize: 16, children: "-" }) })
5584
+ /* @__PURE__ */ y(We, { size: "sm", variant: "ghost", padding: 0, onPress: () => S(-1, 0, 0), children: /* @__PURE__ */ y(Se, { fontSize: 16, children: "-" }) })
5535
5585
  ] }),
5536
5586
  /* @__PURE__ */ y(Se, { fontSize: 16, color: "muted", marginTop: 10, position: "relative", top: -2, children: ":" }),
5537
5587
  /* @__PURE__ */ se(Be, { alignItems: "center", gap: "$1", children: [
5538
- /* @__PURE__ */ y(Pe, { size: "sm", variant: "ghost", padding: 0, onPress: () => S(0, 5, 0), children: /* @__PURE__ */ y(Se, { fontSize: 16, children: "+" }) }),
5588
+ /* @__PURE__ */ y(We, { size: "sm", variant: "ghost", padding: 0, onPress: () => S(0, 5, 0), children: /* @__PURE__ */ y(Se, { fontSize: 16, children: "+" }) }),
5539
5589
  /* @__PURE__ */ y(
5540
5590
  ft,
5541
5591
  {
@@ -5554,11 +5604,11 @@ const yu = Z.forwardRef(({
5554
5604
  }
5555
5605
  }
5556
5606
  ),
5557
- /* @__PURE__ */ y(Pe, { size: "sm", variant: "ghost", padding: 0, onPress: () => S(0, -5, 0), children: /* @__PURE__ */ y(Se, { fontSize: 16, children: "-" }) })
5607
+ /* @__PURE__ */ y(We, { size: "sm", variant: "ghost", padding: 0, onPress: () => S(0, -5, 0), children: /* @__PURE__ */ y(Se, { fontSize: 16, children: "-" }) })
5558
5608
  ] }),
5559
5609
  /* @__PURE__ */ y(Se, { fontSize: 16, color: "muted", marginTop: 10, position: "relative", top: -2, children: ":" }),
5560
5610
  /* @__PURE__ */ se(Be, { alignItems: "center", gap: "$1", children: [
5561
- /* @__PURE__ */ y(Pe, { size: "sm", variant: "ghost", padding: 0, onPress: () => S(0, 0, 10), children: /* @__PURE__ */ y(Se, { fontSize: 16, children: "+" }) }),
5611
+ /* @__PURE__ */ y(We, { size: "sm", variant: "ghost", padding: 0, onPress: () => S(0, 0, 10), children: /* @__PURE__ */ y(Se, { fontSize: 16, children: "+" }) }),
5562
5612
  /* @__PURE__ */ y(
5563
5613
  ft,
5564
5614
  {
@@ -5577,10 +5627,10 @@ const yu = Z.forwardRef(({
5577
5627
  }
5578
5628
  }
5579
5629
  ),
5580
- /* @__PURE__ */ y(Pe, { size: "sm", variant: "ghost", padding: 0, onPress: () => S(0, 0, -10), children: /* @__PURE__ */ y(Se, { fontSize: 16, children: "-" }) })
5630
+ /* @__PURE__ */ y(We, { size: "sm", variant: "ghost", padding: 0, onPress: () => S(0, 0, -10), children: /* @__PURE__ */ y(Se, { fontSize: 16, children: "-" }) })
5581
5631
  ] }),
5582
5632
  /* @__PURE__ */ y(Be, { justifyContent: "center", marginTop: 10, position: "relative", top: -2, children: /* @__PURE__ */ y(
5583
- Pe,
5633
+ We,
5584
5634
  {
5585
5635
  size: "sm",
5586
5636
  variant: "primary",
@@ -5593,9 +5643,9 @@ const yu = Z.forwardRef(({
5593
5643
  }
5594
5644
  ) })
5595
5645
  ] }),
5596
- /* @__PURE__ */ se(Je, { marginTop: "$1", children: [
5646
+ /* @__PURE__ */ se(Qe, { marginTop: "$1", children: [
5597
5647
  /* @__PURE__ */ y(
5598
- Pe,
5648
+ We,
5599
5649
  {
5600
5650
  variant: "default",
5601
5651
  size: "sm",
@@ -5604,9 +5654,9 @@ const yu = Z.forwardRef(({
5604
5654
  children: "Now"
5605
5655
  }
5606
5656
  ),
5607
- /* @__PURE__ */ y(ot, { width: 8 }),
5657
+ /* @__PURE__ */ y(je, { width: 8 }),
5608
5658
  /* @__PURE__ */ y(
5609
- Pe,
5659
+ We,
5610
5660
  {
5611
5661
  variant: "primary",
5612
5662
  size: "sm",
@@ -5624,8 +5674,8 @@ const yu = Z.forwardRef(({
5624
5674
  }
5625
5675
  );
5626
5676
  });
5627
- yu.displayName = "DatePicker";
5628
- const Su = Le("select", {
5677
+ Su.displayName = "DatePicker";
5678
+ const vu = Ie("select", {
5629
5679
  name: "Select",
5630
5680
  backgroundColor: "$backgroundSecondary",
5631
5681
  borderRadius: "$round",
@@ -5670,7 +5720,7 @@ const Su = Le("select", {
5670
5720
  defaultVariants: {
5671
5721
  size: "md"
5672
5722
  }
5673
- }), vu = Z.forwardRef(({
5723
+ }), Eu = Z.forwardRef(({
5674
5724
  error: e,
5675
5725
  size: t = "md",
5676
5726
  value: n,
@@ -5692,7 +5742,7 @@ const Su = Le("select", {
5692
5742
  pointerEvents: "box-none",
5693
5743
  children: [
5694
5744
  /* @__PURE__ */ se(
5695
- Su,
5745
+ vu,
5696
5746
  {
5697
5747
  ref: u,
5698
5748
  ...c ? { value: n } : {},
@@ -5733,25 +5783,25 @@ const Su = Le("select", {
5733
5783
  }
5734
5784
  );
5735
5785
  });
5736
- vu.displayName = "Select";
5737
- const Eu = {
5786
+ Eu.displayName = "Select";
5787
+ const $u = {
5738
5788
  success: { borderLeft: "3px solid var(--color-success)" },
5739
5789
  error: { borderLeft: "3px solid var(--color-error)" },
5740
5790
  warning: { borderLeft: "3px solid var(--color-warning)" },
5741
5791
  info: { borderLeft: "3px solid var(--color-primary)" }
5742
- }, $u = {
5792
+ }, wu = {
5743
5793
  success: "✓",
5744
5794
  error: "✕",
5745
5795
  warning: "⚠",
5746
5796
  info: "ℹ"
5747
5797
  };
5748
- function wu({
5798
+ function Nu({
5749
5799
  message: e,
5750
5800
  variant: t = "info",
5751
5801
  duration: n = 4e3,
5752
5802
  onDismiss: o
5753
5803
  }) {
5754
- return tt(() => {
5804
+ return nt(() => {
5755
5805
  if (n > 0 && o) {
5756
5806
  const r = setTimeout(o, n);
5757
5807
  return () => clearTimeout(r);
@@ -5763,7 +5813,7 @@ function wu({
5763
5813
  role: "alert",
5764
5814
  "aria-live": "assertive",
5765
5815
  "aria-atomic": "true",
5766
- style: Eu[t],
5816
+ style: $u[t],
5767
5817
  children: /* @__PURE__ */ se(
5768
5818
  "div",
5769
5819
  {
@@ -5773,7 +5823,7 @@ function wu({
5773
5823
  gap: "var(--spacing-sm)"
5774
5824
  },
5775
5825
  children: [
5776
- /* @__PURE__ */ y("span", { "aria-hidden": "true", style: { fontWeight: 600 }, children: $u[t] }),
5826
+ /* @__PURE__ */ y("span", { "aria-hidden": "true", style: { fontWeight: 600 }, children: wu[t] }),
5777
5827
  /* @__PURE__ */ y("span", { children: e }),
5778
5828
  o && /* @__PURE__ */ y(
5779
5829
  "button",
@@ -5816,36 +5866,36 @@ function zu({
5816
5866
  gap: "var(--spacing-sm)",
5817
5867
  pointerEvents: "none"
5818
5868
  },
5819
- children: e.map((n) => /* @__PURE__ */ y("div", { style: { pointerEvents: "auto" }, children: /* @__PURE__ */ y(wu, { ...n, onDismiss: () => t(n.id) }) }, n.id))
5869
+ children: e.map((n) => /* @__PURE__ */ y("div", { style: { pointerEvents: "auto" }, children: /* @__PURE__ */ y(Nu, { ...n, onDismiss: () => t(n.id) }) }, n.id))
5820
5870
  }
5821
5871
  );
5822
5872
  }
5823
5873
  export {
5824
- Pe as Button,
5825
- gu as Card,
5826
- yu as DatePicker,
5827
- Pu as Heading,
5874
+ We as Button,
5875
+ bu as Card,
5876
+ Su as DatePicker,
5877
+ Wu as Heading,
5828
5878
  ft as Input,
5829
- Iu as LocaleSwitcher,
5830
- ku as MProvider,
5831
- Es as MStack,
5879
+ Du as LocaleSwitcher,
5880
+ Mu as MProvider,
5881
+ $s as MStack,
5832
5882
  Se as MText,
5833
- Vu as Paragraph,
5834
- vu as Select,
5835
- Du as Skeleton,
5836
- Mu as StateBadge,
5837
- Au as ThemeProvider,
5838
- Ru as ThemeToggle,
5839
- wu as Toast,
5883
+ Pu as Paragraph,
5884
+ Eu as Select,
5885
+ Fu as Skeleton,
5886
+ Iu as StateBadge,
5887
+ Ru as ThemeProvider,
5888
+ ku as ThemeToggle,
5889
+ Nu as Toast,
5840
5890
  zu as ToastContainer,
5841
- Je as XStack,
5891
+ Qe as XStack,
5842
5892
  Be as YStack,
5843
- Fu as ZStack,
5893
+ Vu as ZStack,
5844
5894
  qo as colors,
5845
- tu as generateMDesignConfig,
5846
- su as mThemeConfig,
5847
- Mi as spacing,
5895
+ nu as generateMDesignConfig,
5896
+ iu as mThemeConfig,
5897
+ Ii as spacing,
5848
5898
  Er as typography,
5849
- Cs as useTheme
5899
+ Os as useTheme
5850
5900
  };
5851
5901
  //# sourceMappingURL=index.js.map