fiboui 2.4.0 → 2.4.2

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.
@@ -1,26 +1,26 @@
1
1
  "use client";
2
- var ko = Object.defineProperty;
3
- var yo = (t, o, i) => o in t ? ko(t, o, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[o] = i;
4
- var a = (t, o, i) => yo(t, typeof o != "symbol" ? o + "" : o, i);
5
- import g, { useRef as _, createContext as F, useContext as A, useCallback as N, useSyncExternalStore as j, useEffect as M, useState as oo, cloneElement as _o } from "react";
6
- import { jsx as S, Fragment as V } from "react/jsx-runtime";
7
- import { r as zo, f as $o, b as So } from "./themeData-CmTJt3dU.js";
8
- class io {
2
+ var So = Object.defineProperty;
3
+ var Co = (t, o, i) => o in t ? So(t, o, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[o] = i;
4
+ var a = (t, o, i) => Co(t, typeof o != "symbol" ? o + "" : o, i);
5
+ import g, { useRef as _, createContext as M, useContext as D, useCallback as N, useSyncExternalStore as V, useEffect as Y, useState as fo, cloneElement as $o } from "react";
6
+ import { jsx as C, Fragment as W } from "react/jsx-runtime";
7
+ import { r as To, f as No, b as Eo } from "./themeData-CmTJt3dU.js";
8
+ class ro {
9
9
  constructor() {
10
10
  a(this, "activeEffect", null);
11
11
  }
12
12
  }
13
- const to = new io(), X = [to];
14
- function eo() {
15
- return new io();
13
+ const no = new ro(), X = [no];
14
+ function so() {
15
+ return new ro();
16
16
  }
17
- function fo() {
18
- return X[X.length - 1] ?? to;
17
+ function ao() {
18
+ return X[X.length - 1] ?? no;
19
19
  }
20
- function Y() {
21
- return fo().activeEffect;
20
+ function B() {
21
+ return ao().activeEffect;
22
22
  }
23
- function Co(t, o) {
23
+ function Ro(t, o) {
24
24
  X.push(t);
25
25
  try {
26
26
  return o();
@@ -28,22 +28,22 @@ function Co(t, o) {
28
28
  X.pop();
29
29
  }
30
30
  }
31
- function T(t) {
32
- const o = fo(), i = o.activeEffect;
31
+ function E(t) {
32
+ const o = ao(), i = o.activeEffect;
33
33
  return o.activeEffect = t, i;
34
34
  }
35
- class Eo {
35
+ class Io {
36
36
  constructor(o) {
37
37
  a(this, "dependencies", /* @__PURE__ */ new Set());
38
38
  a(this, "_onDispose");
39
39
  this.fn = o, this.run();
40
40
  }
41
41
  run() {
42
- const o = T(this);
42
+ const o = E(this);
43
43
  try {
44
44
  this.cleanup(), this.fn();
45
45
  } finally {
46
- T(o);
46
+ E(o);
47
47
  }
48
48
  }
49
49
  track(o) {
@@ -60,17 +60,17 @@ class Eo {
60
60
  this.cleanup(), (o = this._onDispose) == null || o.call(this);
61
61
  }
62
62
  }
63
- class No {
63
+ class Fo {
64
64
  constructor(o) {
65
65
  a(this, "dependencies", /* @__PURE__ */ new Set());
66
66
  this._onInvalidate = o;
67
67
  }
68
68
  execute(o) {
69
- const i = T(this);
69
+ const i = E(this);
70
70
  try {
71
71
  return this.cleanup(), o();
72
72
  } finally {
73
- T(i);
73
+ E(i);
74
74
  }
75
75
  }
76
76
  track(o) {
@@ -86,14 +86,14 @@ class No {
86
86
  this.cleanup();
87
87
  }
88
88
  }
89
- class R {
89
+ class I {
90
90
  constructor(o) {
91
91
  a(this, "listeners", /* @__PURE__ */ new Set());
92
92
  a(this, "effects", /* @__PURE__ */ new Set());
93
93
  this._value = o;
94
94
  }
95
95
  get value() {
96
- const o = Y();
96
+ const o = B();
97
97
  return o && o.track(this), this._value;
98
98
  }
99
99
  set value(o) {
@@ -113,28 +113,28 @@ class R {
113
113
  o.forEach((e) => e.trigger()), i.forEach((e) => e(this._value));
114
114
  }
115
115
  }
116
- function Ii(t) {
117
- return new R(t);
116
+ function Oi(t) {
117
+ return new I(t);
118
118
  }
119
- class To {
119
+ class Xo {
120
120
  constructor(o) {
121
121
  a(this, "listeners", /* @__PURE__ */ new Set());
122
122
  a(this, "effects", /* @__PURE__ */ new Set());
123
123
  a(this, "_value");
124
124
  a(this, "_dirty", !0);
125
125
  a(this, "internalEffect");
126
- this.fn = o, this.internalEffect = new Eo(() => {
126
+ this.fn = o, this.internalEffect = new Io(() => {
127
127
  this._dirty || (this._dirty = !0, this.notify());
128
128
  });
129
129
  }
130
130
  get value() {
131
- const o = Y();
131
+ const o = B();
132
132
  if (o && o.track(this), this._dirty) {
133
- const i = T(this.internalEffect);
133
+ const i = E(this.internalEffect);
134
134
  try {
135
135
  this.internalEffect.cleanup(), this._value = this.fn(), this._dirty = !1;
136
136
  } finally {
137
- T(i);
137
+ E(i);
138
138
  }
139
139
  }
140
140
  return this._value;
@@ -153,17 +153,17 @@ class To {
153
153
  o.forEach((e) => e.trigger()), i.forEach((e) => e(this._value));
154
154
  }
155
155
  }
156
- function Ri(t) {
157
- return new To(t);
156
+ function Ai(t) {
157
+ return new Xo(t);
158
158
  }
159
- class Io {
159
+ class Mo {
160
160
  constructor(o) {
161
161
  a(this, "listeners", /* @__PURE__ */ new Set());
162
162
  a(this, "effects", /* @__PURE__ */ new Set());
163
163
  this._value = o;
164
164
  }
165
165
  get() {
166
- const o = Y();
166
+ const o = B();
167
167
  return o && o.track(this), this._value;
168
168
  }
169
169
  set(o) {
@@ -182,17 +182,17 @@ class Io {
182
182
  Array.from(this.effects).forEach((o) => o.trigger()), Array.from(this.listeners).forEach((o) => o(this._value));
183
183
  }
184
184
  }
185
- function Xi(t) {
186
- return new Io(t);
185
+ function Pi(t) {
186
+ return new Mo(t);
187
187
  }
188
- class Ro {
188
+ class Yo {
189
189
  constructor(o) {
190
190
  a(this, "listeners", /* @__PURE__ */ new Set());
191
191
  a(this, "effects", /* @__PURE__ */ new Set());
192
192
  this.state = o;
193
193
  }
194
194
  getState() {
195
- const o = Y();
195
+ const o = B();
196
196
  return o && o.track(this), this.state;
197
197
  }
198
198
  setState(o) {
@@ -212,47 +212,47 @@ class Ro {
212
212
  Array.from(this.effects).forEach((o) => o.trigger()), Array.from(this.listeners).forEach((o) => o(this.state));
213
213
  }
214
214
  }
215
- function Fi(t) {
216
- return new Ro(t);
215
+ function ji(t) {
216
+ return new Yo(t);
217
217
  }
218
- const Xo = eo(), ro = F(Xo);
219
- function Fo() {
220
- return A(ro);
218
+ const Bo = so(), co = M(Bo);
219
+ function Lo() {
220
+ return D(co);
221
221
  }
222
- function Mi({ children: t, scope: o }) {
223
- const i = _(o ?? eo()).current;
224
- return /* @__PURE__ */ S(ro.Provider, { value: i, children: t });
222
+ function Di({ children: t, scope: o }) {
223
+ const i = _(o ?? so()).current;
224
+ return /* @__PURE__ */ C(co.Provider, { value: i, children: t });
225
225
  }
226
- function Mo({ children: t }) {
226
+ function Oo({ children: t }) {
227
227
  const o = _(0), i = _(/* @__PURE__ */ new Set()), e = _(null);
228
- e.current || (e.current = new No(() => {
228
+ e.current || (e.current = new Fo(() => {
229
229
  o.current += 1, i.current.forEach((c) => c());
230
230
  }));
231
231
  const r = N((c) => (i.current.add(c), () => {
232
232
  i.current.delete(c);
233
233
  }), []), f = N(() => o.current, []);
234
- j(r, f, f), M(() => () => {
234
+ V(r, f, f), Y(() => () => {
235
235
  var c;
236
236
  (c = e.current) == null || c.dispose();
237
237
  }, []);
238
- const n = Fo();
238
+ const n = Lo();
239
239
  let s = null;
240
240
  try {
241
- s = Co(n, () => e.current.execute(t));
241
+ s = Ro(n, () => e.current.execute(t));
242
242
  } catch {
243
243
  s = null;
244
244
  }
245
- return /* @__PURE__ */ S(V, { children: s });
245
+ return /* @__PURE__ */ C(W, { children: s });
246
246
  }
247
- const Yo = F(/* @__PURE__ */ new Map()), no = F(null);
248
- function Yi(t) {
249
- const o = A(no);
247
+ const Ao = M(/* @__PURE__ */ new Map()), bo = M(null);
248
+ function Vi(t) {
249
+ const o = D(bo);
250
250
  if (!o)
251
251
  throw new Error("useBuilderState must be used under a builder that called .state()");
252
252
  return [o.get(t), (i) => o.set(t, i)];
253
253
  }
254
- function Bo({ stateMap: t = /* @__PURE__ */ new Map(), children: o }) {
255
- const [i, e] = oo(() => new Map(t)), r = {
254
+ function Po({ stateMap: t = /* @__PURE__ */ new Map(), children: o }) {
255
+ const [i, e] = fo(() => new Map(t)), r = {
256
256
  map: i,
257
257
  get: (f) => i.get(f),
258
258
  set: (f, n) => {
@@ -264,9 +264,9 @@ function Bo({ stateMap: t = /* @__PURE__ */ new Map(), children: o }) {
264
264
  });
265
265
  }
266
266
  };
267
- return /* @__PURE__ */ S(no.Provider, { value: r, children: /* @__PURE__ */ S(Yo.Provider, { value: i, children: o }) });
267
+ return /* @__PURE__ */ C(bo.Provider, { value: r, children: /* @__PURE__ */ C(Ao.Provider, { value: i, children: o }) });
268
268
  }
269
- function Lo({ observables: t, children: o }) {
269
+ function jo({ observables: t, children: o }) {
270
270
  const i = _(0), e = N((f) => {
271
271
  const n = Array.from(t).map(
272
272
  (s) => s.subscribe(() => {
@@ -275,9 +275,9 @@ function Lo({ observables: t, children: o }) {
275
275
  );
276
276
  return () => n.forEach((s) => s());
277
277
  }, [t]), r = N(() => i.current, []);
278
- return j(e, r, r), /* @__PURE__ */ S(V, { children: typeof o == "function" ? o() : o });
278
+ return V(e, r, r), /* @__PURE__ */ C(W, { children: typeof o == "function" ? o() : o });
279
279
  }
280
- function Oo({ signals: t, children: o }) {
280
+ function Do({ signals: t, children: o }) {
281
281
  const i = _(0), e = N((f) => {
282
282
  const n = Array.from(t).map(
283
283
  (s) => s.subscribe(() => {
@@ -286,67 +286,67 @@ function Oo({ signals: t, children: o }) {
286
286
  );
287
287
  return () => n.forEach((s) => s());
288
288
  }, [t]), r = N(() => i.current, []);
289
- return j(e, r, r), /* @__PURE__ */ S(V, { children: typeof o == "function" ? o() : o });
289
+ return V(e, r, r), /* @__PURE__ */ C(W, { children: typeof o == "function" ? o() : o });
290
290
  }
291
- const so = F(/* @__PURE__ */ new Map());
292
- function Bi(t) {
293
- const o = A(so);
291
+ const uo = M(/* @__PURE__ */ new Map());
292
+ function Wi(t) {
293
+ const o = D(uo);
294
294
  return o == null ? void 0 : o.get(t);
295
295
  }
296
- function Po({ providers: t = /* @__PURE__ */ new Map(), children: o }) {
297
- return /* @__PURE__ */ S(so.Provider, { value: t, children: o });
296
+ function Vo({ providers: t = /* @__PURE__ */ new Map(), children: o }) {
297
+ return /* @__PURE__ */ C(uo.Provider, { value: t, children: o });
298
298
  }
299
- function Ao(t) {
299
+ function Wo(t) {
300
300
  return !!t && typeof t == "object" && "build" in t && typeof t.build == "function";
301
301
  }
302
- function jo(t) {
303
- return g.isValidElement(t) ? t : Ao(t) ? t.build() : t;
302
+ function Ho(t) {
303
+ return g.isValidElement(t) ? t : Wo(t) ? t.build() : t;
304
304
  }
305
- function D(t) {
305
+ function H(t) {
306
306
  return typeof t == "string" || typeof t == "number";
307
307
  }
308
- function Vo(t, o) {
309
- return g.isValidElement(t) && D(t.key) && t.key !== "" ? t.key : `.$fibo-${o}`;
308
+ function Uo(t, o) {
309
+ return g.isValidElement(t) && H(t.key) && t.key !== "" ? t.key : `.$fibo-${o}`;
310
310
  }
311
- function Do(t, o) {
312
- return !g.isValidElement(t) || D(t.key) && t.key !== "" ? t : g.cloneElement(t, { key: Vo(t, o) });
311
+ function Go(t, o) {
312
+ return !g.isValidElement(t) || H(t.key) && t.key !== "" ? t : g.cloneElement(t, { key: Uo(t, o) });
313
313
  }
314
- function H(t) {
314
+ function G(t) {
315
315
  if (t == null)
316
316
  return [];
317
317
  const o = typeof t == "function" ? t() : t;
318
- return (Array.isArray(o) ? o : [o]).map((e, r) => Do(jo(e), r));
318
+ return (Array.isArray(o) ? o : [o]).map((e, r) => Go(Ho(e), r));
319
319
  }
320
- const U = /* @__PURE__ */ new Map(), Wo = {
320
+ const K = /* @__PURE__ */ new Map(), Ko = {
321
321
  easeIn: "ease-in",
322
322
  easeOut: "ease-out",
323
323
  easeInOut: "ease-in-out",
324
324
  linear: "linear",
325
325
  ease: "ease"
326
326
  };
327
- function ao(t = {}) {
328
- const o = t.stiffness ?? 170, i = t.damping ?? 26, e = t.mass ?? 1, r = `${o}:${i}:${e}`, f = U.get(r);
327
+ function lo(t = {}) {
328
+ const o = t.stiffness ?? 170, i = t.damping ?? 26, e = t.mass ?? 1, r = `${o}:${i}:${e}`, f = K.get(r);
329
329
  if (f) return f;
330
330
  const n = 1 / 60, s = 1;
331
331
  let c = 0, h = 0;
332
332
  const b = [0];
333
333
  for (let d = 0; d < 180; d += 1) {
334
- const k = -o * (c - s) - i * h;
335
- if (h += k / e * n, c += h * n, b.push(c), d > 8 && Math.abs(c - s) < 2e-3 && Math.abs(h) < 2e-3) break;
334
+ const y = -o * (c - s) - i * h;
335
+ if (h += y / e * n, c += h * n, b.push(c), d > 8 && Math.abs(c - s) < 2e-3 && Math.abs(h) < 2e-3) break;
336
336
  }
337
337
  b[b.length - 1] !== 1 && b.push(1);
338
338
  const x = Math.max(1, Math.floor((b.length - 1) / 24)), p = [];
339
339
  for (let d = 0; d < b.length; d += x) {
340
- const k = d / (b.length - 1), z = Math.round(b[d] * 1e4) / 1e4;
341
- p.push(d === 0 ? `${z}` : `${z} ${Math.round(k * 1e4) / 100}%`);
340
+ const y = d / (b.length - 1), z = Math.round(b[d] * 1e4) / 1e4;
341
+ p.push(d === 0 ? `${z}` : `${z} ${Math.round(y * 1e4) / 100}%`);
342
342
  }
343
343
  const m = `linear(${p.join(", ")})`;
344
- return U.set(r, m), m;
344
+ return K.set(r, m), m;
345
345
  }
346
- function $(t, o) {
347
- return t === "spring" ? ao(o) : Wo[t] ?? t;
346
+ function S(t, o) {
347
+ return t === "spring" ? lo(o) : Ko[t] ?? t;
348
348
  }
349
- const G = [
349
+ const Z = [
350
350
  "fadeIn",
351
351
  "fadeOut",
352
352
  "fade",
@@ -362,35 +362,35 @@ const G = [
362
362
  "blur",
363
363
  "pop",
364
364
  "bounce"
365
- ], Ho = {
365
+ ], Zo = {
366
366
  fade: "fadeIn",
367
367
  scale: "scaleIn",
368
368
  blur: "blurIn"
369
369
  };
370
- function Uo(t) {
370
+ function qo(t) {
371
371
  if (!t || typeof t != "object") return !1;
372
372
  const o = t;
373
373
  return typeof o.from == "object" && o.from !== null && typeof o.to == "object" && o.to !== null;
374
374
  }
375
- function K(t) {
375
+ function q(t) {
376
376
  const o = /* @__PURE__ */ new Set(["opacity", "zIndex", "z-index", "flex", "fontWeight", "lineHeight"]);
377
377
  return Object.entries(t).map(([i, e]) => {
378
378
  const r = i.replace(/[A-Z]/g, (n) => `-${n.toLowerCase()}`), f = typeof e == "number" && !o.has(i) ? `${e}px` : String(e);
379
379
  return `${r}: ${f}`;
380
380
  }).join("; ");
381
381
  }
382
- function Go(t) {
382
+ function Qo(t) {
383
383
  let o = 5381;
384
384
  for (let i = 0; i < t.length; i += 1) o = (o << 5) + o ^ t.charCodeAt(i);
385
385
  return (o >>> 0).toString(36);
386
386
  }
387
- function Ko(t) {
388
- const o = Ho[t] ?? t;
389
- if (!G.includes(o))
390
- throw new Error(`Unknown motion preset "${t}". Use: ${G.join(", ")}`);
387
+ function Jo(t) {
388
+ const o = Zo[t] ?? t;
389
+ if (!Z.includes(o))
390
+ throw new Error(`Unknown motion preset "${t}". Use: ${Z.join(", ")}`);
391
391
  return o;
392
392
  }
393
- const P = `
393
+ const j = `
394
394
  .fibo-anim {
395
395
  animation-duration: var(--fibo-dur, 300ms);
396
396
  animation-timing-function: var(--fibo-ease, ease);
@@ -532,13 +532,13 @@ const P = `
532
532
  }
533
533
  }
534
534
  `.trim();
535
- function Z(t) {
535
+ function Q(t) {
536
536
  let o = 5381;
537
537
  for (let i = 0; i < t.length; i += 1)
538
538
  o = (o << 5) + o ^ t.charCodeAt(i);
539
539
  return (o >>> 0).toString(36);
540
540
  }
541
- const y = class y {
541
+ const k = class k {
542
542
  constructor() {
543
543
  a(this, "sheet", null);
544
544
  a(this, "cache", /* @__PURE__ */ new Map());
@@ -547,14 +547,14 @@ const y = class y {
547
547
  this.attachSheet(), this.ensureDefaults();
548
548
  }
549
549
  static getInstance() {
550
- return y.instance || (y.instance = new y()), y.instance;
550
+ return k.instance || (k.instance = new k()), k.instance;
551
551
  }
552
552
  /** Test-only: empty cache/sheet so a simulated client starts cold. */
553
553
  reset() {
554
554
  this.cache.clear(), this.extras = [], this.defaultsReady = !1, this.sheet = null, this.attachSheet(), this.ensureDefaults();
555
555
  }
556
556
  static resetForTests() {
557
- y.getInstance().reset();
557
+ k.getInstance().reset();
558
558
  }
559
559
  attachSheet() {
560
560
  if (typeof document > "u") return;
@@ -572,12 +572,12 @@ const y = class y {
572
572
  const r = `@media ${o}|${i}:${e}`;
573
573
  if (this.cache.has(r))
574
574
  return this.cache.get(r);
575
- const f = `fibo-mq-${Z(r)}`, n = `@media ${o} { .${f} { ${i}: ${e} !important; } }`;
575
+ const f = `fibo-mq-${Q(r)}`, n = `@media ${o} { .${f} { ${i}: ${e} !important; } }`;
576
576
  return this.insert(n), this.cache.set(r, f), f;
577
577
  }
578
578
  ensureDefaults() {
579
579
  var o;
580
- this.defaultsReady || (this.defaultsReady = !0, this.sheet && !((o = this.sheet.textContent) != null && o.includes("fibo-fadeIn")) && this.sheet.appendChild(document.createTextNode(P)));
580
+ this.defaultsReady || (this.defaultsReady = !0, this.sheet && !((o = this.sheet.textContent) != null && o.includes("fibo-fadeIn")) && this.sheet.appendChild(document.createTextNode(j)));
581
581
  }
582
582
  /**
583
583
  * Append a large static CSS blob once (keyed). Used by interaction-effect presets.
@@ -590,7 +590,7 @@ const y = class y {
590
590
  getCss() {
591
591
  this.ensureDefaults();
592
592
  const o = [...this.extras].sort();
593
- return [P, ...o].filter(Boolean).join(`
593
+ return [j, ...o].filter(Boolean).join(`
594
594
  `);
595
595
  }
596
596
  registerKeyframes(o, i, e) {
@@ -635,83 +635,83 @@ const y = class y {
635
635
  const f = `${r ? "group:" : ""}${o}:${i}:${e}`;
636
636
  if (this.cache.has(f))
637
637
  return this.cache.get(f);
638
- const n = `fibo-ps-${Z(f)}`, s = r ? `.group:${o} .${n} { ${i}: ${e} !important; }` : `.${n}:${o} { ${i}: ${e} !important; }`;
638
+ const n = `fibo-ps-${Q(f)}`, s = r ? `.group:${o} .${n} { ${i}: ${e} !important; }` : `.${n}:${o} { ${i}: ${e} !important; }`;
639
639
  return this.insert(s), this.cache.set(f, n), n;
640
640
  }
641
641
  registerGroupPseudo(o, i, e, r) {
642
642
  return this.registerPseudo(i, e, r, !0);
643
643
  }
644
644
  };
645
- a(y, "instance");
646
- let C = y;
647
- const u = C.getInstance();
645
+ a(k, "instance");
646
+ let $ = k;
647
+ const u = $.getInstance();
648
648
  function w() {
649
- C.getInstance().ensureDefaults();
649
+ $.getInstance().ensureDefaults();
650
650
  }
651
- function Li() {
652
- return C.getInstance().getCss();
651
+ function Hi() {
652
+ return $.getInstance().getCss();
653
653
  }
654
- function co() {
655
- return C.getInstance().getCss();
654
+ function ho() {
655
+ return $.getInstance().getCss();
656
656
  }
657
- function Oi() {
658
- return `<style id="fibo-dynamic-styles" data-fibo="1">${co().replace(/<\/style/gi, "<\\/style")}</style>`;
657
+ function Ui() {
658
+ return `<style id="fibo-dynamic-styles" data-fibo="1">${ho().replace(/<\/style/gi, "<\\/style")}</style>`;
659
659
  }
660
- function Pi() {
660
+ function Gi() {
661
661
  return w(), g.createElement("style", {
662
662
  id: "fibo-dynamic-styles",
663
663
  "data-fibo": "1",
664
664
  suppressHydrationWarning: !0,
665
- dangerouslySetInnerHTML: { __html: co() }
665
+ dangerouslySetInnerHTML: { __html: ho() }
666
666
  });
667
667
  }
668
- function Zo() {
668
+ function oi() {
669
669
  return w(), g.createElement("style", {
670
670
  id: "fibo-motion-presets",
671
671
  "data-fibo-motion": "1",
672
- dangerouslySetInnerHTML: { __html: P }
672
+ dangerouslySetInnerHTML: { __html: j }
673
673
  });
674
674
  }
675
- const bo = {
675
+ const xo = {
676
676
  sm: 640,
677
677
  md: 768,
678
678
  lg: 1024,
679
679
  xl: 1280
680
680
  };
681
- function qo(t) {
682
- return t in bo;
681
+ function ii(t) {
682
+ return t in xo;
683
683
  }
684
- function Qo(t) {
685
- if (qo(t))
686
- return `(min-width: ${bo[t]}px)`;
684
+ function ti(t) {
685
+ if (ii(t))
686
+ return `(min-width: ${xo[t]}px)`;
687
687
  const o = t.trim();
688
688
  return o.startsWith("@media") ? o.replace(/^@media\s+/, "") : o;
689
689
  }
690
- function uo(t) {
690
+ function po(t) {
691
691
  var o, i, e = "";
692
692
  if (typeof t == "string" || typeof t == "number") e += t;
693
693
  else if (typeof t == "object") if (Array.isArray(t)) {
694
694
  var r = t.length;
695
- for (o = 0; o < r; o++) t[o] && (i = uo(t[o])) && (e && (e += " "), e += i);
695
+ for (o = 0; o < r; o++) t[o] && (i = po(t[o])) && (e && (e += " "), e += i);
696
696
  } else for (i in t) t[i] && (e && (e += " "), e += i);
697
697
  return e;
698
698
  }
699
- function Jo() {
700
- for (var t, o, i = 0, e = "", r = arguments.length; i < r; i++) (t = arguments[i]) && (o = uo(t)) && (e && (e += " "), e += o);
699
+ function ei() {
700
+ for (var t, o, i = 0, e = "", r = arguments.length; i < r; i++) (t = arguments[i]) && (o = po(t)) && (e && (e += " "), e += o);
701
701
  return e;
702
702
  }
703
- function oi(t) {
703
+ function fi(t) {
704
704
  const o = t.match(/oklch\(\s*([\d.]+)\s+([\d.]+)\s+([\d.]+)\s*\)/);
705
705
  if (!o)
706
706
  return t;
707
- const [, i, e, r] = o, f = parseFloat(i), n = parseFloat(e), s = parseFloat(r), c = n * Math.cos(s * Math.PI / 180), h = n * Math.sin(s * Math.PI / 180), b = f + 0.3963377774 * c + 0.2158037573 * h, l = f - 0.1055613458 * c - 0.0638541728 * h, x = f - 0.0894841775 * c - 1.291485548 * h, p = b * b * b, m = l * l * l, d = x * x * x, k = 4.0767416621 * p - 3.3077115913 * m + 0.2309699292 * d, z = -1.2684380046 * p + 2.6097574011 * m - 0.3413193965 * d, go = -0.0041960863 * p - 0.7034186147 * m + 1.707614701 * d, B = (I) => I >= 31308e-7 ? 1.055 * I ** (1 / 2.4) - 0.055 : 12.92 * I, mo = Math.max(0, Math.min(1, B(k))), vo = Math.max(0, Math.min(1, B(z))), wo = Math.max(0, Math.min(1, B(go))), L = (I) => {
708
- var W;
709
- const O = (W = Math.round(I * 255).toString(16)) == null ? void 0 : W.toUpperCase();
710
- return O.length === 1 ? `0${O}` : O;
707
+ const [, i, e, r] = o, f = parseFloat(i), n = parseFloat(e), s = parseFloat(r), c = n * Math.cos(s * Math.PI / 180), h = n * Math.sin(s * Math.PI / 180), b = f + 0.3963377774 * c + 0.2158037573 * h, l = f - 0.1055613458 * c - 0.0638541728 * h, x = f - 0.0894841775 * c - 1.291485548 * h, p = b * b * b, m = l * l * l, d = x * x * x, y = 4.0767416621 * p - 3.3077115913 * m + 0.2309699292 * d, z = -1.2684380046 * p + 2.6097574011 * m - 0.3413193965 * d, yo = -0.0041960863 * p - 0.7034186147 * m + 1.707614701 * d, L = (R) => R >= 31308e-7 ? 1.055 * R ** (1 / 2.4) - 0.055 : 12.92 * R, ko = Math.max(0, Math.min(1, L(y))), _o = Math.max(0, Math.min(1, L(z))), zo = Math.max(0, Math.min(1, L(yo))), O = (R) => {
708
+ var U;
709
+ const A = (U = Math.round(R * 255).toString(16)) == null ? void 0 : U.toUpperCase();
710
+ return A.length === 1 ? `0${A}` : A;
711
711
  };
712
- return `#${L(mo)}${L(vo)}${L(wo)}`;
712
+ return `#${O(ko)}${O(_o)}${O(zo)}`;
713
713
  }
714
- function ii(t) {
714
+ function ri(t) {
715
715
  const o = {}, i = {}, e = t.split(`
716
716
  `);
717
717
  for (const r of e) {
@@ -720,7 +720,7 @@ function ii(t) {
720
720
  continue;
721
721
  const n = f.match(/^--color-([a-z0-9\-]+): (oklch\([^)]+\));?$/), s = f.match(/^--color-([a-z0-9\-]+): (#[a-fA-F0-9]{3,6});?$/);
722
722
  if (n) {
723
- const [, c, h] = n, b = oi(h);
723
+ const [, c, h] = n, b = fi(h);
724
724
  o[b.toLowerCase()] = `bg-${c}`, i[b.toLowerCase()] = `text-${c}`;
725
725
  } else if (s) {
726
726
  const [, c, h] = s;
@@ -729,13 +729,13 @@ function ii(t) {
729
729
  }
730
730
  return { background: o, text: i };
731
731
  }
732
- const ti = (t) => {
732
+ const ni = (t) => {
733
733
  if (t !== void 0)
734
734
  return typeof t == "number" ? `${t}px` : t.toString();
735
- }, E = (t, o) => {
736
- const i = ti(o);
735
+ }, T = (t, o) => {
736
+ const i = ni(o);
737
737
  return i === void 0 ? "" : `${t}-[${i}]`;
738
- }, ei = `
738
+ }, si = `
739
739
  --color-red-50: oklch(0.971 0.013 17.38);
740
740
  --color-red-100: oklch(0.936 0.032 17.717);
741
741
  --color-red-200: oklch(0.885 0.062 18.334);
@@ -980,7 +980,7 @@ const ti = (t) => {
980
980
  --color-stone-950: oklch(0.147 0.004 49.25);
981
981
  --color-black: #000;
982
982
  --color-white: #fff;
983
- `, fi = ii(ei), lo = {
983
+ `, ai = ri(si), go = {
984
984
  borderRadius: {
985
985
  0: "rounded-none",
986
986
  "0px": "rounded-none",
@@ -1077,7 +1077,7 @@ const ti = (t) => {
1077
1077
  fixed: "fixed",
1078
1078
  sticky: "sticky"
1079
1079
  }
1080
- }, ri = (t, o) => ({
1080
+ }, ci = (t, o) => ({
1081
1081
  // 背景色
1082
1082
  backgroundColor: (i) => i.backgroundColor ? [t.background[i.backgroundColor.toLowerCase()] || `bg-[${i.backgroundColor}]`] : [],
1083
1083
  // 文字色
@@ -1086,14 +1086,14 @@ const ti = (t) => {
1086
1086
  borderRadius: (i) => {
1087
1087
  if (!i.borderRadius)
1088
1088
  return [];
1089
- const e = lo.borderRadius[i.borderRadius] || E("rounded", i.borderRadius);
1089
+ const e = go.borderRadius[i.borderRadius] || T("rounded", i.borderRadius);
1090
1090
  return e ? [e] : [];
1091
1091
  },
1092
1092
  // 外边距
1093
1093
  margin: (i) => {
1094
1094
  const e = [];
1095
1095
  if (i.margin !== void 0) {
1096
- const f = E("m", i.margin);
1096
+ const f = T("m", i.margin);
1097
1097
  return f ? [f] : [];
1098
1098
  }
1099
1099
  return [
@@ -1105,7 +1105,7 @@ const ti = (t) => {
1105
1105
  { prop: i.marginY, dir: "my" }
1106
1106
  ].forEach(({ prop: f, dir: n }) => {
1107
1107
  if (f !== void 0) {
1108
- const s = E(n, f);
1108
+ const s = T(n, f);
1109
1109
  s && e.push(s);
1110
1110
  }
1111
1111
  }), e;
@@ -1114,7 +1114,7 @@ const ti = (t) => {
1114
1114
  padding: (i) => {
1115
1115
  const e = [];
1116
1116
  if (i.padding !== void 0) {
1117
- const f = E("p", i.padding);
1117
+ const f = T("p", i.padding);
1118
1118
  return f ? [f] : [];
1119
1119
  }
1120
1120
  return [
@@ -1126,7 +1126,7 @@ const ti = (t) => {
1126
1126
  { prop: i.paddingY, dir: "py" }
1127
1127
  ].forEach(({ prop: f, dir: n }) => {
1128
1128
  if (f !== void 0) {
1129
- const s = E(n, f);
1129
+ const s = T(n, f);
1130
1130
  s && e.push(s);
1131
1131
  }
1132
1132
  }), e;
@@ -1211,7 +1211,7 @@ const ti = (t) => {
1211
1211
  f && e.push(f);
1212
1212
  }
1213
1213
  if (i.gap) {
1214
- const r = E("gap", i.gap);
1214
+ const r = T("gap", i.gap);
1215
1215
  r && e.push(r);
1216
1216
  }
1217
1217
  return e;
@@ -1233,7 +1233,7 @@ const ti = (t) => {
1233
1233
  },
1234
1234
  // 自定义类名
1235
1235
  className: (i) => i.className ? [i.className] : []
1236
- }), ni = {
1236
+ }), bi = {
1237
1237
  backgroundColor: "backgroundColor",
1238
1238
  color: "color",
1239
1239
  borderRadius: "borderRadius",
@@ -1267,10 +1267,10 @@ const ti = (t) => {
1267
1267
  position: "position",
1268
1268
  opacity: "opacity",
1269
1269
  className: "className"
1270
- }, si = (t, o) => {
1271
- const i = (o == null ? void 0 : o.colorMaps) || fi, e = (o == null ? void 0 : o.styleMaps) || lo, r = ri(i, e), f = [], n = /* @__PURE__ */ new Set();
1270
+ }, ui = (t, o) => {
1271
+ const i = (o == null ? void 0 : o.colorMaps) || ai, e = (o == null ? void 0 : o.styleMaps) || go, r = ci(i, e), f = [], n = /* @__PURE__ */ new Set();
1272
1272
  return Object.keys(t).forEach((s) => {
1273
- const c = ni[s];
1273
+ const c = bi[s];
1274
1274
  if (c && !n.has(c)) {
1275
1275
  const h = r[c];
1276
1276
  if (h) {
@@ -1280,17 +1280,17 @@ const ti = (t) => {
1280
1280
  }
1281
1281
  }), f.filter(Boolean).join(" ");
1282
1282
  };
1283
- function ai(t) {
1283
+ function li(t) {
1284
1284
  const o = {};
1285
1285
  return t.forEach((i, e) => {
1286
1286
  o[e] = i.value;
1287
1287
  }), o;
1288
1288
  }
1289
- function ci({ animatedProps: t, animationConfig: o, children: i }) {
1290
- const [e, r] = oo(
1291
- () => ai(t)
1289
+ function hi({ animatedProps: t, animationConfig: o, children: i }) {
1290
+ const [e, r] = fo(
1291
+ () => li(t)
1292
1292
  );
1293
- M(() => {
1293
+ Y(() => {
1294
1294
  const c = [];
1295
1295
  return t.forEach((h, b) => {
1296
1296
  const l = (x) => {
@@ -1308,16 +1308,16 @@ function ci({ animatedProps: t, animationConfig: o, children: i }) {
1308
1308
  e.translateX !== void 0 && f.push(`translateX(${e.translateX}px)`), e.translateY !== void 0 && f.push(`translateY(${e.translateY}px)`), e.scale !== void 0 && f.push(`scale(${e.scale})`), e.rotate !== void 0 && f.push(`rotate(${e.rotate}deg)`);
1309
1309
  const n = {};
1310
1310
  if (f.length > 0 && (n.transform = f.join(" ")), o) {
1311
- const { duration: c = 300, curve: h = "easeOut", stiffness: b, damping: l } = o, x = $(h, { stiffness: b, damping: l });
1311
+ const { duration: c = 300, curve: h = "easeOut", stiffness: b, damping: l } = o, x = S(h, { stiffness: b, damping: l });
1312
1312
  n.transition = `transform ${c}ms ${x}`;
1313
1313
  }
1314
1314
  const s = {
1315
1315
  ...i.props.style,
1316
1316
  ...n
1317
1317
  };
1318
- return _o(i, { style: s });
1318
+ return $o(i, { style: s });
1319
1319
  }
1320
- const ho = [
1320
+ const mo = [
1321
1321
  // —— 2D Transitions ——
1322
1322
  "grow",
1323
1323
  "shrink",
@@ -1437,7 +1437,7 @@ const ho = [
1437
1437
  "curlTopRight",
1438
1438
  "curlBottomRight",
1439
1439
  "curlBottomLeft"
1440
- ], q = {
1440
+ ], J = {
1441
1441
  "pulse-grow": "pulseGrow",
1442
1442
  "pulse-shrink": "pulseShrink",
1443
1443
  "bounce-in": "bounceIn",
@@ -1534,29 +1534,29 @@ const ho = [
1534
1534
  "hvr-float": "float",
1535
1535
  "hvr-sweep-to-right": "sweepToRight"
1536
1536
  };
1537
- function bi(t) {
1537
+ function xi(t) {
1538
1538
  return t.replace(/[A-Z]/g, (o) => `-${o.toLowerCase()}`);
1539
1539
  }
1540
- function Q(t) {
1541
- return ho.includes(t);
1540
+ function oo(t) {
1541
+ return mo.includes(t);
1542
1542
  }
1543
- function ui(t) {
1544
- const o = t.trim(), i = q[o] ?? q[o.toLowerCase()];
1543
+ function pi(t) {
1544
+ const o = t.trim(), i = J[o] ?? J[o.toLowerCase()];
1545
1545
  if (i) return i;
1546
- if (Q(o)) return o;
1546
+ if (oo(o)) return o;
1547
1547
  const e = o.replace(/-([a-z])/g, (r, f) => f.toUpperCase());
1548
- if (Q(e)) return e;
1548
+ if (oo(e)) return e;
1549
1549
  throw new Error(
1550
- `Unknown interaction effect "${t}". Use one of ${ho.length} presets — see INTERACTION_EFFECTS.`
1550
+ `Unknown interaction effect "${t}". Use one of ${mo.length} presets — see INTERACTION_EFFECTS.`
1551
1551
  );
1552
1552
  }
1553
- function li(t, o = !1) {
1553
+ function gi(t, o = !1) {
1554
1554
  return o ? `fibo-fx-on-group-${t}` : `fibo-fx-on-${t}`;
1555
1555
  }
1556
- function hi(t) {
1557
- return `fibo-fx-${bi(t)}`;
1556
+ function di(t) {
1557
+ return `fibo-fx-${xi(t)}`;
1558
1558
  }
1559
- const xi = `
1559
+ const mi = `
1560
1560
  @keyframes fibo-fx-pulse { 25% { transform: scale(1.1); } 75% { transform: scale(0.9); } }
1561
1561
  @keyframes fibo-fx-pulse-grow { to { transform: scale(1.1); } }
1562
1562
  @keyframes fibo-fx-pulse-shrink { to { transform: scale(0.9); } }
@@ -1650,7 +1650,8 @@ const xi = `
1650
1650
 
1651
1651
  .fibo-fx {
1652
1652
  -webkit-tap-highlight-color: transparent;
1653
- transform: perspective(1px) translateZ(0);
1653
+ /* Do NOT set a resting transform — hover/active replace transform and would jump. */
1654
+ backface-visibility: hidden;
1654
1655
  box-shadow: 0 0 1px rgba(0,0,0,0);
1655
1656
  }
1656
1657
  .fibo-fx[class*="fibo-fx-sweep"],
@@ -1945,7 +1946,7 @@ const xi = `
1945
1946
  .group:active .fibo-fx-backward.fibo-fx-on-group-active,
1946
1947
  .group:focus-within .fibo-fx-backward.fibo-fx-on-group-focus-within { transform:translateX(-8px); }
1947
1948
 
1948
- .fibo-fx-nudge { transition-duration:.2s;transition-property:transform;transition-timing-function:ease-out; }
1949
+ .fibo-fx-nudge { transition-duration:.24s;transition-property:transform;transition-timing-function:ease-out; }
1949
1950
  .fibo-fx-nudge.fibo-fx-on-hover:hover,
1950
1951
  .fibo-fx-nudge.fibo-fx-on-active:active,
1951
1952
  .fibo-fx-nudge.fibo-fx-on-focus:focus,
@@ -1953,7 +1954,7 @@ const xi = `
1953
1954
  .fibo-fx-nudge.fibo-fx-on-focus-within:focus-within,
1954
1955
  .group:hover .fibo-fx-nudge.fibo-fx-on-group-hover,
1955
1956
  .group:active .fibo-fx-nudge.fibo-fx-on-group-active,
1956
- .group:focus-within .fibo-fx-nudge.fibo-fx-on-group-focus-within { transform:translateX(3px); }
1957
+ .group:focus-within .fibo-fx-nudge.fibo-fx-on-group-focus-within { transform:translate3d(3px,0,0); }
1957
1958
 
1958
1959
  .fibo-fx-fade { transition-duration:.3s;transition-property:background-color,color,opacity; }
1959
1960
  .fibo-fx-fade.fibo-fx-on-hover:hover,
@@ -2846,13 +2847,58 @@ const xi = `
2846
2847
  }
2847
2848
  }
2848
2849
  `.trim();
2849
- let J = !1;
2850
- function pi() {
2851
- if (J) return;
2852
- J = !0;
2853
- const t = C.getInstance();
2854
- t.ensureDefaults(), t.injectExtra(xi, "fibo-interaction-fx");
2850
+ let io = !1;
2851
+ function vi() {
2852
+ if (io) return;
2853
+ io = !0;
2854
+ const t = $.getInstance();
2855
+ t.ensureDefaults(), t.injectExtra(mi, "fibo-interaction-fx");
2856
+ }
2857
+ function F(t, o, i, e = 0) {
2858
+ const r = (Array.isArray(t) ? t : [t]).map((s) => s.trim()).filter(Boolean);
2859
+ r.length === 0 && r.push("all");
2860
+ const f = `${o}ms`, n = e > 0 ? ` ${e}ms` : "";
2861
+ return r.map((s) => `${s} ${f} ${i}${n}`).join(", ");
2862
+ }
2863
+ function P(t) {
2864
+ const o = { ...t };
2865
+ let i = !1;
2866
+ const e = o.background;
2867
+ typeof e == "string" && e.trim() && o.backgroundColor == null && yi(e) && (o.backgroundColor = e, delete o.background, i = !0);
2868
+ const r = o.border;
2869
+ if (typeof r == "string" && r.trim()) {
2870
+ const f = ki(r);
2871
+ f && (o.borderWidth == null && f.width != null && (o.borderWidth = f.width), o.borderStyle == null && f.style != null && (o.borderStyle = f.style), o.borderColor == null && f.color != null && (o.borderColor = f.color), delete o.border, i = !0);
2872
+ }
2873
+ return i ? o : t;
2874
+ }
2875
+ const wi = "translate3d(0, 0, 0)";
2876
+ function to(t) {
2877
+ return t.transform != null && String(t.transform).trim() !== "" ? t : { ...t, transform: wi };
2878
+ }
2879
+ function eo(t, o) {
2880
+ const i = typeof o == "number" ? `${o}px` : o;
2881
+ return t === "x" ? `translate3d(${i}, 0, 0)` : `translate3d(0, ${i}, 0)`;
2882
+ }
2883
+ function yi(t) {
2884
+ const o = t.trim().toLowerCase();
2885
+ return !(!o || o.includes("gradient(") || o.includes("url(") || o.includes("image(") || o.includes("element(") || o.startsWith("repeat") || o.includes(" / "));
2886
+ }
2887
+ function ki(t) {
2888
+ const o = t.trim();
2889
+ if (!o) return null;
2890
+ const i = o.match(/^(\S+)\s+(\S+)\s+(.+)$/);
2891
+ return i ? { width: i[1], style: i[2], color: i[3] } : null;
2855
2892
  }
2893
+ const _i = {
2894
+ "background-color": ["background-color"],
2895
+ "border-color": ["border-color"],
2896
+ color: ["color"],
2897
+ opacity: ["opacity"],
2898
+ transform: ["transform"],
2899
+ "box-shadow": ["box-shadow"],
2900
+ "border-radius": ["border-radius"]
2901
+ };
2856
2902
  class v {
2857
2903
  constructor(o, i, e = !1) {
2858
2904
  a(this, "pseudoState");
@@ -2871,10 +2917,10 @@ class v {
2871
2917
  * Stamps CSS classes; sheet is fiboui-owned (not a Hover.css vendor).
2872
2918
  */
2873
2919
  effect(o) {
2874
- const i = ui(o);
2875
- return pi(), this.parentBuilder.addClassName("fibo-fx"), this.parentBuilder.addClassName(hi(i)), this.parentBuilder.addClassName(
2876
- li(this.pseudoState, this.isGroup)
2877
- ), this.parentBuilder.ensureEffectTransition([
2920
+ const i = pi(o);
2921
+ return vi(), this.parentBuilder.addClassName("fibo-fx"), this.parentBuilder.addClassName(di(i)), this.parentBuilder.addClassName(
2922
+ gi(this.pseudoState, this.isGroup)
2923
+ ), this.parentBuilder.prepareSmoothInteraction([
2878
2924
  "transform",
2879
2925
  "opacity",
2880
2926
  "box-shadow",
@@ -2906,12 +2952,10 @@ class v {
2906
2952
  return this.transforms.set("scale", `scale(${o})`), this.flushTransform();
2907
2953
  }
2908
2954
  translateX(o) {
2909
- const i = typeof o == "number" ? `${o}px` : o;
2910
- return this.transforms.set("translateX", `translateX(${i})`), this.flushTransform();
2955
+ return this.transforms.set("translateX", eo("x", o)), this.flushTransform();
2911
2956
  }
2912
2957
  translateY(o) {
2913
- const i = typeof o == "number" ? `${o}px` : o;
2914
- return this.transforms.set("translateY", `translateY(${i})`), this.flushTransform();
2958
+ return this.transforms.set("translateY", eo("y", o)), this.flushTransform();
2915
2959
  }
2916
2960
  rotate(o) {
2917
2961
  return this.transforms.set("rotate", `rotate(${o}deg)`), this.flushTransform();
@@ -2925,14 +2969,17 @@ class v {
2925
2969
  transition(o, i, e, r) {
2926
2970
  if (typeof o == "string" && i === void 0)
2927
2971
  return this.set("transition", o);
2928
- const f = Array.isArray(o) ? o.join(", ") : o, n = `${i || this.transitionDuration}ms`, s = $(e || this.transitionEasing), c = r ? `${r}ms` : "0ms";
2929
- return this.set("transition", `${f} ${n} ${s} ${c}`);
2972
+ const f = Array.isArray(o) ? o : [o], n = S(e || this.transitionEasing);
2973
+ return this.set(
2974
+ "transition",
2975
+ F(f, i || this.transitionDuration, n, r || 0)
2976
+ );
2930
2977
  }
2931
2978
  duration(o) {
2932
2979
  return this.transitionDuration = o, this.applyTransition(), this;
2933
2980
  }
2934
2981
  easing(o) {
2935
- return this.transitionEasing = $(o), this.applyTransition(), this;
2982
+ return this.transitionEasing = S(o), this.applyTransition(), this;
2936
2983
  }
2937
2984
  ease(o) {
2938
2985
  return this.easing(o);
@@ -2944,21 +2991,30 @@ class v {
2944
2991
  return this.transitionProperties = o, this.applyTransition(), this;
2945
2992
  }
2946
2993
  applyTransition() {
2947
- const o = this.transitionProperties.join(", "), i = `${this.transitionDuration}ms`, e = this.transitionEasing, r = this.transitionDelay > 0 ? `${this.transitionDelay}ms` : "0ms";
2948
- this.set("transition", `${o} ${i} ${e} ${r}`);
2994
+ this.set(
2995
+ "transition",
2996
+ F(
2997
+ this.transitionProperties,
2998
+ this.transitionDuration,
2999
+ this.transitionEasing,
3000
+ this.transitionDelay
3001
+ )
3002
+ );
2949
3003
  }
2950
3004
  flushTransform() {
2951
3005
  return this.set("transform", [...this.transforms.values()].join(" "));
2952
3006
  }
2953
3007
  set(o, i) {
2954
- const e = u.registerPseudo(this.pseudoState, o, i, this.isGroup);
2955
- return this.parentBuilder.addClassName(e), this;
3008
+ const e = _i[o];
3009
+ e && this.parentBuilder.prepareSmoothInteraction(e);
3010
+ const r = u.registerPseudo(this.pseudoState, o, i, this.isGroup);
3011
+ return this.parentBuilder.addClassName(r), this;
2956
3012
  }
2957
3013
  end() {
2958
3014
  return this.parentBuilder;
2959
3015
  }
2960
3016
  }
2961
- function Ai(t, o) {
3017
+ function Ki(t, o) {
2962
3018
  if (typeof document > "u") return;
2963
3019
  const i = typeof t == "string" ? t : null, e = (i == null ? void 0 : i.replace(/^#/, "")) ?? null;
2964
3020
  o != null && o.hash && e && typeof window < "u" && (window.location.hash = e);
@@ -2968,7 +3024,7 @@ function Ai(t, o) {
2968
3024
  block: (o == null ? void 0 : o.block) ?? "start"
2969
3025
  });
2970
3026
  }
2971
- function ji(t) {
3027
+ function Zi(t) {
2972
3028
  const o = typeof document < "u" ? document : void 0, i = o == null ? void 0 : o.startViewTransition;
2973
3029
  if (typeof i == "function") {
2974
3030
  i.call(o, t);
@@ -2976,13 +3032,13 @@ function ji(t) {
2976
3032
  }
2977
3033
  t();
2978
3034
  }
2979
- function gi() {
3035
+ function zi() {
2980
3036
  return typeof CSS > "u" || typeof CSS.supports != "function" ? !1 : CSS.supports("animation-timeline", "view()");
2981
3037
  }
2982
- function di() {
3038
+ function Si() {
2983
3039
  return typeof CSS > "u" || typeof CSS.supports != "function" ? !1 : CSS.supports("animation-timeline", "scroll()");
2984
3040
  }
2985
- function mi({
3041
+ function Ci({
2986
3042
  preset: t = "fadeUp",
2987
3043
  once: o = !0,
2988
3044
  rootMargin: i = "0px 0px -8% 0px",
@@ -2992,11 +3048,11 @@ function mi({
2992
3048
  children: n
2993
3049
  }) {
2994
3050
  const s = _(null);
2995
- M(() => {
3051
+ Y(() => {
2996
3052
  w();
2997
3053
  const h = s.current;
2998
3054
  if (!h) return;
2999
- if (f && gi()) {
3055
+ if (f && zi()) {
3000
3056
  h.classList.add("fibo-inview");
3001
3057
  return;
3002
3058
  }
@@ -3022,10 +3078,10 @@ function mi({
3022
3078
  ].filter(Boolean).join(" ");
3023
3079
  return g.createElement("div", { ref: s, className: c, "data-fibo-reveal": t }, n);
3024
3080
  }
3025
- function vi({ children: t }) {
3081
+ function $i({ children: t }) {
3026
3082
  const o = _(null);
3027
- return M(() => {
3028
- if (w(), di()) return;
3083
+ return Y(() => {
3084
+ if (w(), Si()) return;
3029
3085
  const i = () => {
3030
3086
  var f, n;
3031
3087
  return ((f = o.current) == null ? void 0 : f.querySelector(".fibo-scroll-progress")) ?? ((n = o.current) == null ? void 0 : n.firstElementChild);
@@ -3044,8 +3100,8 @@ function vi({ children: t }) {
3044
3100
  t
3045
3101
  );
3046
3102
  }
3047
- const xo = 64, wi = `${xo}px`;
3048
- class Vi {
3103
+ const vo = 64, Ti = `${vo}px`;
3104
+ class qi {
3049
3105
  constructor() {
3050
3106
  /** @internal Extra DOM props forwarded to the host element. */
3051
3107
  a(this, "_props", {});
@@ -3068,6 +3124,12 @@ class Vi {
3068
3124
  /** True while transition class was auto-managed for hover/effect presets (expandable). */
3069
3125
  a(this, "_autoEffectTransition", !1);
3070
3126
  a(this, "_effectTransitionProps", []);
3127
+ /**
3128
+ * When true, getStyle() promotes background/border shorthands to longhands and
3129
+ * (optionally) stamps a resting translate3d so pseudo transforms ease cleanly.
3130
+ */
3131
+ a(this, "_smoothSurface", !1);
3132
+ a(this, "_smoothNeedsRestTransform", !1);
3071
3133
  a(this, "_motionClass");
3072
3134
  a(this, "_staggerMs");
3073
3135
  a(this, "_reveal");
@@ -3305,8 +3367,8 @@ class Vi {
3305
3367
  }, e = (f) => f.startsWith("#") || f.startsWith("rgb") || f.startsWith("hsl") || ["red", "blue", "green", "yellow", "purple", "pink", "orange", "white", "black", "gray"].some((n) => f.includes(n)), r = (f, n, s, c) => {
3306
3368
  let l = s || "rgba(0, 0, 0, " + (c ?? 0.1) + ")";
3307
3369
  if (s && s.startsWith("#") && c !== void 0) {
3308
- const m = parseInt(s.slice(1, 3), 16), d = parseInt(s.slice(3, 5), 16), k = parseInt(s.slice(5, 7), 16);
3309
- l = `rgba(${m}, ${d}, ${k}, ${c})`;
3370
+ const m = parseInt(s.slice(1, 3), 16), d = parseInt(s.slice(3, 5), 16), y = parseInt(s.slice(5, 7), 16);
3371
+ l = `rgba(${m}, ${d}, ${y}, ${c})`;
3310
3372
  }
3311
3373
  const p = {
3312
3374
  sm: "2px",
@@ -3378,7 +3440,7 @@ class Vi {
3378
3440
  * @example Box().padding(8).media('md', { padding: 16 }).media('(prefers-color-scheme: dark)', { backgroundColor: '#111' })
3379
3441
  */
3380
3442
  media(o, i) {
3381
- return this.registerMediaStyles(Qo(o), i), this;
3443
+ return this.registerMediaStyles(ti(o), i), this;
3382
3444
  }
3383
3445
  registerMediaStyles(o, i) {
3384
3446
  if (!i) return;
@@ -3591,16 +3653,16 @@ class Vi {
3591
3653
  return this._signals.add(o), this;
3592
3654
  }
3593
3655
  translateX(o) {
3594
- return o instanceof R ? this._animatedProps.set("translateX", o) : this._transforms.push(`translateX(${o}px)`), this;
3656
+ return o instanceof I ? this._animatedProps.set("translateX", o) : this._transforms.push(`translateX(${o}px)`), this;
3595
3657
  }
3596
3658
  translateY(o) {
3597
- return o instanceof R ? this._animatedProps.set("translateY", o) : this._transforms.push(`translateY(${o}px)`), this;
3659
+ return o instanceof I ? this._animatedProps.set("translateY", o) : this._transforms.push(`translateY(${o}px)`), this;
3598
3660
  }
3599
3661
  scale(o) {
3600
- return o instanceof R ? this._animatedProps.set("scale", o) : this._transforms.push(`scale(${o})`), this;
3662
+ return o instanceof I ? this._animatedProps.set("scale", o) : this._transforms.push(`scale(${o})`), this;
3601
3663
  }
3602
3664
  rotate(o) {
3603
- return o instanceof R ? this._animatedProps.set("rotate", o) : this._transforms.push(`rotate(${o}deg)`), this;
3665
+ return o instanceof I ? this._animatedProps.set("rotate", o) : this._transforms.push(`rotate(${o}deg)`), this;
3604
3666
  }
3605
3667
  gesture(o) {
3606
3668
  return this._gesture = o, this;
@@ -3629,8 +3691,13 @@ class Vi {
3629
3691
  transition(o, i, e, r) {
3630
3692
  if (this._autoEffectTransition = !1, this._effectTransitionProps = [], typeof o == "string" && i === void 0)
3631
3693
  return this.replaceTransitionClass(u.register("transition", o)), this;
3632
- const f = Array.isArray(o) ? o.join(", ") : o, n = `${i || this._transitionDuration}ms`, s = $(e || this._transitionEasing), c = r ? `${r}ms` : "0ms";
3633
- return this.replaceTransitionClass(u.register("transition", `${f} ${n} ${s} ${c}`)), this;
3694
+ const f = Array.isArray(o) ? o : [o], n = S(e || this._transitionEasing);
3695
+ return this.replaceTransitionClass(
3696
+ u.register(
3697
+ "transition",
3698
+ F(f, i || this._transitionDuration, n, r || 0)
3699
+ )
3700
+ ), this;
3634
3701
  }
3635
3702
  /**
3636
3703
  * Set transition duration in milliseconds
@@ -3644,7 +3711,7 @@ class Vi {
3644
3711
  * Example: .easing('ease-in-out')
3645
3712
  */
3646
3713
  easing(o) {
3647
- return this._transitionEasing = $(o), this._motionClass ? (this._style["--fibo-ease"] = this._transitionEasing, this) : (this._applyTransition(), this);
3714
+ return this._transitionEasing = S(o), this._motionClass ? (this._style["--fibo-ease"] = this._transitionEasing, this) : (this._applyTransition(), this);
3648
3715
  }
3649
3716
  /** Alias of `.easing()`. `'spring'` becomes CSS `linear()`. */
3650
3717
  ease(o) {
@@ -3668,16 +3735,24 @@ class Vi {
3668
3735
  * Apply the built transition to the element
3669
3736
  */
3670
3737
  _applyTransition() {
3671
- this._autoEffectTransition = !1, this._effectTransitionProps = [];
3672
- const o = this._transitionProperties.join(", "), i = `${this._transitionDuration}ms`, e = this._transitionEasing, r = this._transitionDelay > 0 ? `${this._transitionDelay}ms` : "0ms";
3673
- this.replaceTransitionClass(u.register("transition", `${o} ${i} ${e} ${r}`));
3738
+ this._autoEffectTransition = !1, this._effectTransitionProps = [], this.replaceTransitionClass(
3739
+ u.register(
3740
+ "transition",
3741
+ F(
3742
+ this._transitionProperties,
3743
+ this._transitionDuration,
3744
+ this._transitionEasing,
3745
+ this._transitionDelay
3746
+ )
3747
+ )
3748
+ );
3674
3749
  }
3675
3750
  replaceTransitionClass(o) {
3676
3751
  this._transitionClass && (this._classNames = this._classNames.filter((i) => i !== this._transitionClass)), this._transitionClass = o, this._classNames.push(o);
3677
3752
  }
3678
3753
  animate(o, i) {
3679
3754
  w(), this._usesCssMotion = !0, this._motionClass && (this._classNames = this._classNames.filter((b) => b !== this._motionClass));
3680
- const e = Uo(o), r = (e ? o.duration : i == null ? void 0 : i.duration) ?? this._transitionDuration, f = (e ? o.delay : i == null ? void 0 : i.delay) ?? this._transitionDelay;
3755
+ const e = qo(o), r = (e ? o.duration : i == null ? void 0 : i.duration) ?? this._transitionDuration, f = (e ? o.delay : i == null ? void 0 : i.delay) ?? this._transitionDelay;
3681
3756
  let n = e ? o.ease : i == null ? void 0 : i.ease;
3682
3757
  const s = {
3683
3758
  stiffness: (e ? o.stiffness : i == null ? void 0 : i.stiffness) ?? void 0,
@@ -3685,20 +3760,20 @@ class Vi {
3685
3760
  mass: (e ? o.mass : i == null ? void 0 : i.mass) ?? void 0
3686
3761
  };
3687
3762
  if (e) {
3688
- const b = K(o.from), l = K(o.to), x = u.registerKeyframes(Go(`${b}=>${l}`), b, l);
3763
+ const b = q(o.from), l = q(o.to), x = u.registerKeyframes(Qo(`${b}=>${l}`), b, l);
3689
3764
  this._motionClass = `fibo-anim ${x}`, this._props["data-fibo-anim"] = "custom";
3690
3765
  } else {
3691
- const b = Ko(o);
3766
+ const b = Jo(o);
3692
3767
  this._motionClass = `fibo-anim fibo-anim-${b}`, this._props["data-fibo-anim"] = b, (i == null ? void 0 : i.from) !== void 0 && (this._style["--fibo-from"] = typeof i.from == "number" ? `${i.from}px` : i.from), !n && b === "pop" && (n = "spring");
3693
3768
  }
3694
- const c = $(n ?? "ease", s);
3769
+ const c = S(n ?? "ease", s);
3695
3770
  this._classNames.push(this._motionClass);
3696
3771
  const h = this._style;
3697
3772
  return h["--fibo-dur"] = `${r}ms`, h["--fibo-ease"] = c, h["--fibo-delay"] = `${f}ms`, this._reducedMotion === "never" && !this._classNames.includes("fibo-motion-force") && this._classNames.push("fibo-motion-force"), this;
3698
3773
  }
3699
3774
  /** CSS `linear()` spring. Works on `.animate()` and `.transition()` / `.hover()`. */
3700
3775
  spring(o) {
3701
- const i = ao(o);
3776
+ const i = lo(o);
3702
3777
  return this._transitionEasing = i, this._motionClass ? (this._style["--fibo-ease"] = i, this) : (this._applyTransition(), this);
3703
3778
  }
3704
3779
  reducedMotion(o = "reduce") {
@@ -3786,7 +3861,7 @@ class Vi {
3786
3861
  this._classNames.push(u.register("position", "sticky"));
3787
3862
  const i = o === !0 ? "0px" : typeof o == "number" ? `${o}px` : o;
3788
3863
  this._classNames.push(u.register("top", i));
3789
- const e = o === !0 || o === 0 ? wi : typeof o == "number" ? `${Math.max(o, xo)}px` : o;
3864
+ const e = o === !0 || o === 0 ? Ti : typeof o == "number" ? `${Math.max(o, vo)}px` : o;
3790
3865
  return this.publishStickyOffset(e), this;
3791
3866
  }
3792
3867
  /**
@@ -3807,7 +3882,7 @@ class Vi {
3807
3882
  }), this;
3808
3883
  }
3809
3884
  ensureInteractiveTransition() {
3810
- this.ensureEffectTransition([
3885
+ this._smoothSurface = !0, this.promoteSurfaceLonghands(), this.ensureEffectTransition([
3811
3886
  "transform",
3812
3887
  "opacity",
3813
3888
  "box-shadow",
@@ -3815,6 +3890,23 @@ class Vi {
3815
3890
  "border-color"
3816
3891
  ]);
3817
3892
  }
3893
+ /**
3894
+ * Prepare resting styles + transition so pseudo-state longhands (bg/border/transform)
3895
+ * interpolate instead of snapping. Safe to call repeatedly from PseudoStateBuilder.
3896
+ * @internal
3897
+ */
3898
+ prepareSmoothInteraction(o) {
3899
+ this._smoothSurface = !0, o.some((i) => i === "transform") && (this._smoothNeedsRestTransform = !0), this.promoteSurfaceLonghands(), this._smoothNeedsRestTransform && this.ensureRestTransform(), this.ensureEffectTransition(o);
3900
+ }
3901
+ /** @internal Convert inline background/border shorthands → longhands. */
3902
+ promoteSurfaceLonghands() {
3903
+ this._style = P(this._style), this._cssStyles = P(this._cssStyles);
3904
+ }
3905
+ /** @internal Stamp translate3d(0,0,0) when no resting transform exists. */
3906
+ ensureRestTransform() {
3907
+ const o = to(this._style);
3908
+ o !== this._style && (this._style = o);
3909
+ }
3818
3910
  /**
3819
3911
  * Ensure the base element transitions the properties an interaction effect needs.
3820
3912
  * Expands an auto-managed transition; no-ops if the caller set `.transition(...)`
@@ -3824,11 +3916,13 @@ class Vi {
3824
3916
  ensureEffectTransition(o) {
3825
3917
  if (this._motionClass || this._transitionClass && !this._autoEffectTransition) return;
3826
3918
  const i = new Set(this._effectTransitionProps);
3827
- for (const e of o) i.add(e);
3828
- i.add("transform"), i.add("opacity"), this._effectTransitionProps = [...i], this._autoEffectTransition = !0, this.replaceTransitionClass(
3919
+ for (const f of o) i.add(f);
3920
+ i.add("transform"), i.add("opacity"), this._effectTransitionProps = [...i], this._autoEffectTransition = !0;
3921
+ const e = this._transitionEasing === "ease-in-out" ? "ease-out" : this._transitionEasing, r = this._transitionDuration === 200 ? 240 : this._transitionDuration;
3922
+ this.replaceTransitionClass(
3829
3923
  u.register(
3830
3924
  "transition",
3831
- `${this._effectTransitionProps.join(", ")} ${this._transitionDuration}ms ${this._transitionEasing}`
3925
+ F(this._effectTransitionProps, r, e)
3832
3926
  )
3833
3927
  );
3834
3928
  }
@@ -3838,8 +3932,8 @@ class Vi {
3838
3932
  * SSR-safe: class + inline vars on first paint (no useEffect).
3839
3933
  */
3840
3934
  theme(o) {
3841
- const i = zo(o);
3842
- return this._theme = i, this.addClassName($o(i)), this;
3935
+ const i = To(o);
3936
+ return this._theme = i, this.addClassName(No(i)), this;
3843
3937
  }
3844
3938
  /** Prefer dark/light system chrome for native controls under this subtree. */
3845
3939
  colorScheme(o) {
@@ -3898,16 +3992,16 @@ class Vi {
3898
3992
  return this._classNames.push("group"), this;
3899
3993
  }
3900
3994
  children(o) {
3901
- return typeof o == "function" ? (this._childFunction = o, this._children = []) : (this._children = H(o), this._childFunction = void 0), this;
3995
+ return typeof o == "function" ? (this._childFunction = o, this._children = []) : (this._children = G(o), this._childFunction = void 0), this;
3902
3996
  }
3903
3997
  getClassName() {
3904
3998
  let o;
3905
- return Object.keys(this._cssStyles).length > 0 && (o = si(this._cssStyles) || void 0), Jo(this._classNames, o);
3999
+ return Object.keys(this._cssStyles).length > 0 && (o = ui(this._cssStyles) || void 0), ei(this._classNames, o);
3906
4000
  }
3907
4001
  getStyle() {
3908
4002
  let o = { ...this._style, ...this._cssStyles };
3909
- if (this._theme && (o = {
3910
- ...So(this._theme),
4003
+ if (this._smoothSurface && (o = P(o), this._smoothNeedsRestTransform && (o = to(o))), this._theme && (o = {
4004
+ ...Eo(this._theme),
3911
4005
  ...o,
3912
4006
  backgroundColor: o.backgroundColor ?? this._theme.colors.background,
3913
4007
  color: o.color ?? this._theme.colors.onBackground,
@@ -3917,18 +4011,18 @@ class Vi {
3917
4011
  o.transform = i ? `${i} ${this._transforms.join(" ")}` : this._transforms.join(" ");
3918
4012
  }
3919
4013
  if (this._animationConfig && this._animatedProps.size === 0) {
3920
- const { duration: i = 300, curve: e = "easeOut", stiffness: r, damping: f } = this._animationConfig, n = $(e, { stiffness: r, damping: f });
4014
+ const { duration: i = 300, curve: e = "easeOut", stiffness: r, damping: f } = this._animationConfig, n = S(e, { stiffness: r, damping: f });
3921
4015
  o.transition = `all ${i}ms ${n}`;
3922
4016
  }
3923
4017
  return o;
3924
4018
  }
3925
4019
  processChildren() {
3926
- const o = this._childFunction ? H(this._childFunction) : this._children;
4020
+ const o = this._childFunction ? G(this._childFunction) : this._children;
3927
4021
  return this._staggerMs == null ? o : o.map(
3928
4022
  (i, e) => g.createElement(
3929
4023
  "span",
3930
4024
  {
3931
- key: g.isValidElement(i) && D(i.key) ? i.key : `fibo-stagger-${e}`,
4025
+ key: g.isValidElement(i) && H(i.key) ? i.key : `fibo-stagger-${e}`,
3932
4026
  className: "fibo-stagger-item",
3933
4027
  style: { "--fibo-i": String(e) }
3934
4028
  },
@@ -3940,7 +4034,7 @@ class Vi {
3940
4034
  return this._childFunction;
3941
4035
  }
3942
4036
  }
3943
- const ki = /* @__PURE__ */ new Set([
4037
+ const Ni = /* @__PURE__ */ new Set([
3944
4038
  "$$typeof",
3945
4039
  "type",
3946
4040
  "props",
@@ -3953,25 +4047,25 @@ const ki = /* @__PURE__ */ new Set([
3953
4047
  "_debugTask",
3954
4048
  "_debugInfo"
3955
4049
  ]);
3956
- function yi(t) {
4050
+ function Ei(t) {
3957
4051
  var i;
3958
4052
  const o = (i = t._props) == null ? void 0 : i.key;
3959
4053
  if (!(o == null || o === ""))
3960
4054
  return o;
3961
4055
  }
3962
- function _i(t) {
3963
- const o = t._isObserver, i = t._signals, e = t._observers, r = t._state, f = t._providers, n = yi(t), s = () => {
4056
+ function Ri(t) {
4057
+ const o = t._isObserver, i = t._signals, e = t._observers, r = t._state, f = t._providers, n = Ei(t), s = () => {
3964
4058
  var z;
3965
4059
  let x = t.build();
3966
4060
  const p = t._animatedProps, m = t._animationConfig;
3967
- p && p.size > 0 && (x = g.createElement(ci, {
4061
+ p && p.size > 0 && (x = g.createElement(hi, {
3968
4062
  key: n,
3969
4063
  animatedProps: p,
3970
4064
  animationConfig: m,
3971
4065
  children: x
3972
4066
  }));
3973
4067
  const d = t._reveal;
3974
- d && (x = g.createElement(mi, {
4068
+ d && (x = g.createElement(Ci, {
3975
4069
  key: n,
3976
4070
  preset: d.preset,
3977
4071
  once: d.once,
@@ -3980,38 +4074,38 @@ function _i(t) {
3980
4074
  forceMotion: t._reducedMotion === "never",
3981
4075
  preferTimeline: (z = t._classNames) == null ? void 0 : z.includes("fibo-view-timeline"),
3982
4076
  children: x
3983
- })), t._scrollProgress && (x = g.createElement(vi, { key: n, children: x })), t._usesCssMotion && (x = g.createElement(
4077
+ })), t._scrollProgress && (x = g.createElement($i, { key: n, children: x })), t._usesCssMotion && (x = g.createElement(
3984
4078
  g.Fragment,
3985
4079
  { key: n },
3986
- g.createElement(Zo),
4080
+ g.createElement(oi),
3987
4081
  x
3988
4082
  ));
3989
- const k = t._gesture;
3990
- return k && (x = k.wrap(x)), x;
3991
- }, c = typeof t.hasStateManagement == "function" ? t.hasStateManagement() : !!(o || i && i.size || e && e.size || r && r.size || f && f.size), h = o ? g.createElement(Mo, {
4083
+ const y = t._gesture;
4084
+ return y && (x = y.wrap(x)), x;
4085
+ }, c = typeof t.hasStateManagement == "function" ? t.hasStateManagement() : !!(o || i && i.size || e && e.size || r && r.size || f && f.size), h = o ? g.createElement(Oo, {
3992
4086
  key: n,
3993
4087
  children: s
3994
4088
  }) : null, b = () => h ?? s();
3995
4089
  let l = b();
3996
- return c && i && i.size > 0 ? l = g.createElement(Oo, {
4090
+ return c && i && i.size > 0 ? l = g.createElement(Do, {
3997
4091
  key: n,
3998
4092
  signals: i,
3999
4093
  children: b
4000
- }) : c && e && e.size > 0 && (l = g.createElement(Lo, {
4094
+ }) : c && e && e.size > 0 && (l = g.createElement(jo, {
4001
4095
  key: n,
4002
4096
  observables: e,
4003
4097
  children: b
4004
- })), c && r && r.size > 0 && (l = g.createElement(Bo, {
4098
+ })), c && r && r.size > 0 && (l = g.createElement(Po, {
4005
4099
  key: n,
4006
4100
  stateMap: r,
4007
4101
  children: l
4008
- })), c && f && f.size > 0 && (l = g.createElement(Po, {
4102
+ })), c && f && f.size > 0 && (l = g.createElement(Vo, {
4009
4103
  key: n,
4010
4104
  providers: f,
4011
4105
  children: l
4012
4106
  })), l;
4013
4107
  }
4014
- function po(t, o, i) {
4108
+ function wo(t, o, i) {
4015
4109
  const e = function() {
4016
4110
  return o();
4017
4111
  };
@@ -4028,10 +4122,10 @@ function po(t, o, i) {
4028
4122
  writable: !0
4029
4123
  }), t.ref = r.ref ?? null, t.__fiboElementProps = r.props ?? {}, r._owner !== void 0 && (t._owner = r._owner), t._store = { validated: 1 };
4030
4124
  }
4031
- function Di(t) {
4125
+ function Qi(t) {
4032
4126
  return (...o) => {
4033
- const i = new t(...o), e = t.name.replace(/Builder$/, "") || "Fibo", r = () => _i(i);
4034
- return po(i, r, e), new Proxy(i, {
4127
+ const i = new t(...o), e = t.name.replace(/Builder$/, "") || "Fibo", r = () => Ri(i);
4128
+ return wo(i, r, e), new Proxy(i, {
4035
4129
  get(f, n, s) {
4036
4130
  var c, h;
4037
4131
  if (n === "build")
@@ -4053,7 +4147,7 @@ function Di(t) {
4053
4147
  }, x = Object.getPrototypeOf(f).props;
4054
4148
  return typeof x == "function" ? Object.assign((m) => (x.call(f, m), s), l) : l;
4055
4149
  }
4056
- return ki.has(n) || Reflect.has(f, n) ? Reflect.get(f, n, s) : (b) => {
4150
+ return Ni.has(n) || Reflect.has(f, n) ? Reflect.get(f, n, s) : (b) => {
4057
4151
  const l = n.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), p = ["opacity", "z-index", "flex", "flex-grow", "flex-shrink", "order", "font-weight", "line-height"].includes(l), m = typeof b == "number" && !p ? `${b}px` : String(b), d = u.register(l, m);
4058
4152
  return f.className(d), s;
4059
4153
  };
@@ -4061,7 +4155,7 @@ function Di(t) {
4061
4155
  });
4062
4156
  };
4063
4157
  }
4064
- const zi = ({
4158
+ const Ii = ({
4065
4159
  signal: t,
4066
4160
  builder: o,
4067
4161
  loading: i,
@@ -4073,13 +4167,13 @@ const zi = ({
4073
4167
  () => t.value
4074
4168
  ), f = r == null ? void 0 : r.error;
4075
4169
  return f && e ? e(f) : ((r == null ? void 0 : r.isLoading) || (r == null ? void 0 : r.loading)) === !0 && i ? i() : o ? o(r) : null;
4076
- }, $i = g.memo(zi);
4077
- class Si {
4170
+ }, Fi = g.memo(Ii);
4171
+ class Xi {
4078
4172
  constructor(o) {
4079
4173
  a(this, "_loading");
4080
4174
  a(this, "_error");
4081
4175
  a(this, "_builder");
4082
- this._signal = o, po(this, () => this.build(), "ValueBuilder");
4176
+ this._signal = o, wo(this, () => this.build(), "ValueBuilder");
4083
4177
  }
4084
4178
  loading(o) {
4085
4179
  return this._loading = typeof o == "function" ? o : () => o, this;
@@ -4094,7 +4188,7 @@ class Si {
4094
4188
  return this._builder = o, this;
4095
4189
  }
4096
4190
  build() {
4097
- return g.createElement($i, {
4191
+ return g.createElement(Fi, {
4098
4192
  signal: this._signal,
4099
4193
  builder: this._builder,
4100
4194
  loading: this._loading,
@@ -4102,59 +4196,59 @@ class Si {
4102
4196
  });
4103
4197
  }
4104
4198
  }
4105
- function Wi(t) {
4106
- return new Si(t);
4199
+ function Ji(t) {
4200
+ return new Xi(t);
4107
4201
  }
4108
4202
  export {
4109
- Oi as A,
4110
- Di as B,
4111
- To as C,
4112
- Vi as D,
4113
- Fo as E,
4114
- xi as F,
4115
- Eo as G,
4203
+ Ui as A,
4204
+ Qi as B,
4205
+ Xo as C,
4206
+ qi as D,
4207
+ Lo as E,
4208
+ mi as F,
4209
+ Io as G,
4116
4210
  w as H,
4117
- ho as I,
4118
- Ko as J,
4119
- Bo as K,
4120
- Ao as L,
4121
- G as M,
4122
- jo as N,
4123
- Io as O,
4124
- Po as P,
4125
- Vo as Q,
4126
- Mi as R,
4127
- R as S,
4128
- H as T,
4129
- Z as U,
4130
- Wi as V,
4131
- P as W,
4132
- bo as X,
4133
- Qo as Y,
4134
- Fi as a,
4135
- eo as b,
4136
- Ri as c,
4137
- Mo as d,
4138
- Bi as e,
4139
- mi as f,
4140
- fo as g,
4141
- vi as h,
4142
- Ai as i,
4143
- ji as j,
4144
- gi as k,
4145
- di as l,
4146
- ao as m,
4147
- $ as n,
4148
- Xi as o,
4149
- ui as p,
4150
- hi as q,
4151
- Co as r,
4152
- Ii as s,
4153
- bi as t,
4154
- Yi as u,
4155
- pi as v,
4156
- Zo as w,
4157
- Pi as x,
4158
- Li as y,
4159
- co as z
4211
+ mo as I,
4212
+ Jo as J,
4213
+ Po as K,
4214
+ Wo as L,
4215
+ Z as M,
4216
+ Ho as N,
4217
+ Mo as O,
4218
+ Vo as P,
4219
+ Uo as Q,
4220
+ Di as R,
4221
+ I as S,
4222
+ G as T,
4223
+ Q as U,
4224
+ Ji as V,
4225
+ j as W,
4226
+ xo as X,
4227
+ ti as Y,
4228
+ ji as a,
4229
+ so as b,
4230
+ Ai as c,
4231
+ Oo as d,
4232
+ Wi as e,
4233
+ Ci as f,
4234
+ ao as g,
4235
+ $i as h,
4236
+ Ki as i,
4237
+ Zi as j,
4238
+ zi as k,
4239
+ Si as l,
4240
+ lo as m,
4241
+ S as n,
4242
+ Pi as o,
4243
+ pi as p,
4244
+ di as q,
4245
+ Ro as r,
4246
+ Oi as s,
4247
+ xi as t,
4248
+ Vi as u,
4249
+ vi as v,
4250
+ oi as w,
4251
+ Gi as x,
4252
+ Hi as y,
4253
+ ho as z
4160
4254
  };