@latte-macchiat-io/latte-vanilla-components 0.0.136 → 0.0.137
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.cjs.js +3 -3
- package/dist/index.es.js +96 -96
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -64,7 +64,7 @@ function K(t, e) {
|
|
64
64
|
function De(t, e, n) {
|
65
65
|
return t.slice(e, n);
|
66
66
|
}
|
67
|
-
function
|
67
|
+
function Pt(t) {
|
68
68
|
return t.length;
|
69
69
|
}
|
70
70
|
function xr(t) {
|
@@ -92,7 +92,7 @@ function Qa() {
|
|
92
92
|
function ft() {
|
93
93
|
return q = ut < zs ? K(me, ut++) : 0, ue++, q === 10 && (ue = 1, wn++), q;
|
94
94
|
}
|
95
|
-
function
|
95
|
+
function At() {
|
96
96
|
return K(me, ut);
|
97
97
|
}
|
98
98
|
function en() {
|
@@ -140,7 +140,7 @@ function Le(t) {
|
|
140
140
|
return 0;
|
141
141
|
}
|
142
142
|
function qs(t) {
|
143
|
-
return wn = ue = 1, zs =
|
143
|
+
return wn = ue = 1, zs = Pt(me = t), ut = 0, [];
|
144
144
|
}
|
145
145
|
function Gs(t) {
|
146
146
|
return me = "", t;
|
@@ -149,14 +149,14 @@ function nn(t) {
|
|
149
149
|
return Ws(Ue(ut - 1, Xn(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
|
150
150
|
}
|
151
151
|
function tl(t) {
|
152
|
-
for (; (q =
|
152
|
+
for (; (q = At()) && q < 33; )
|
153
153
|
ft();
|
154
154
|
return Le(t) > 2 || Le(q) > 3 ? "" : " ";
|
155
155
|
}
|
156
156
|
function el(t, e) {
|
157
157
|
for (; --e && ft() && !(q < 48 || q > 102 || q > 57 && q < 65 || q > 70 && q < 97); )
|
158
158
|
;
|
159
|
-
return Ue(t, en() + (e < 6 &&
|
159
|
+
return Ue(t, en() + (e < 6 && At() == 32 && ft() == 32));
|
160
160
|
}
|
161
161
|
function Xn(t) {
|
162
162
|
for (; ft(); )
|
@@ -182,12 +182,12 @@ function Xn(t) {
|
|
182
182
|
}
|
183
183
|
function nl(t, e) {
|
184
184
|
for (; ft() && t + q !== 57; )
|
185
|
-
if (t + q === 84 &&
|
185
|
+
if (t + q === 84 && At() === 47)
|
186
186
|
break;
|
187
187
|
return "/*" + Ue(e, ut - 1) + "*" + Sn(t === 47 ? t : ft());
|
188
188
|
}
|
189
189
|
function rl(t) {
|
190
|
-
for (; !Le(
|
190
|
+
for (; !Le(At()); )
|
191
191
|
ft();
|
192
192
|
return Ue(t, ut);
|
193
193
|
}
|
@@ -222,7 +222,7 @@ function rn(t, e, n, r, i, s, o, a, l) {
|
|
222
222
|
continue;
|
223
223
|
// /
|
224
224
|
case 47:
|
225
|
-
switch (
|
225
|
+
switch (At()) {
|
226
226
|
case 42:
|
227
227
|
case 47:
|
228
228
|
He(sl(nl(ft(), en()), e, n), l);
|
@@ -233,7 +233,7 @@ function rn(t, e, n, r, i, s, o, a, l) {
|
|
233
233
|
break;
|
234
234
|
// {
|
235
235
|
case 123 * g:
|
236
|
-
a[c++] =
|
236
|
+
a[c++] = Pt(E) * v;
|
237
237
|
// } ; \0
|
238
238
|
case 125 * g:
|
239
239
|
case 59:
|
@@ -245,7 +245,7 @@ function rn(t, e, n, r, i, s, o, a, l) {
|
|
245
245
|
x = 0;
|
246
246
|
// ;
|
247
247
|
case 59 + u:
|
248
|
-
v == -1 && (E = $(E, /\f/g, "")), h > 0 &&
|
248
|
+
v == -1 && (E = $(E, /\f/g, "")), h > 0 && Pt(E) - d && He(h > 32 ? ri(E + ";", r, n, d - 1) : ri($(E, " ", "") + ";", r, n, d - 2), l);
|
249
249
|
break;
|
250
250
|
// @ ;
|
251
251
|
case 59:
|
@@ -272,7 +272,7 @@ function rn(t, e, n, r, i, s, o, a, l) {
|
|
272
272
|
break;
|
273
273
|
// :
|
274
274
|
case 58:
|
275
|
-
d = 1 +
|
275
|
+
d = 1 + Pt(E), h = p;
|
276
276
|
default:
|
277
277
|
if (g < 1) {
|
278
278
|
if (S == 123)
|
@@ -287,15 +287,15 @@ function rn(t, e, n, r, i, s, o, a, l) {
|
|
287
287
|
break;
|
288
288
|
// ,
|
289
289
|
case 44:
|
290
|
-
a[c++] = (
|
290
|
+
a[c++] = (Pt(E) - 1) * v, v = 1;
|
291
291
|
break;
|
292
292
|
// @
|
293
293
|
case 64:
|
294
|
-
|
294
|
+
At() === 45 && (E += nn(ft())), f = At(), u = d = Pt(w = E += rl(en())), S++;
|
295
295
|
break;
|
296
296
|
// -
|
297
297
|
case 45:
|
298
|
-
p === 45 &&
|
298
|
+
p === 45 && Pt(E) == 2 && (g = 0);
|
299
299
|
}
|
300
300
|
}
|
301
301
|
return s;
|
@@ -331,7 +331,7 @@ function ol(t, e, n, r) {
|
|
331
331
|
case vr:
|
332
332
|
t.value = t.props.join(",");
|
333
333
|
}
|
334
|
-
return
|
334
|
+
return Pt(n = ce(t.children, r)) ? t.return = t.value + "{" + n + "}" : "";
|
335
335
|
}
|
336
336
|
function al(t) {
|
337
337
|
var e = xr(t);
|
@@ -353,7 +353,7 @@ function cl(t) {
|
|
353
353
|
};
|
354
354
|
}
|
355
355
|
var ul = function(e, n, r) {
|
356
|
-
for (var i = 0, s = 0; i = s, s =
|
356
|
+
for (var i = 0, s = 0; i = s, s = At(), i === 38 && s === 12 && (n[r] = 1), !Le(s); )
|
357
357
|
ft();
|
358
358
|
return Ue(e, ut);
|
359
359
|
}, dl = function(e, n) {
|
@@ -361,14 +361,14 @@ var ul = function(e, n, r) {
|
|
361
361
|
do
|
362
362
|
switch (Le(i)) {
|
363
363
|
case 0:
|
364
|
-
i === 38 &&
|
364
|
+
i === 38 && At() === 12 && (n[r] = 1), e[r] += ul(ut - 1, n, r);
|
365
365
|
break;
|
366
366
|
case 2:
|
367
367
|
e[r] += nn(i);
|
368
368
|
break;
|
369
369
|
case 4:
|
370
370
|
if (i === 44) {
|
371
|
-
e[++r] =
|
371
|
+
e[++r] = At() === 58 ? "&\f" : "", n[r] = e[r].length;
|
372
372
|
break;
|
373
373
|
}
|
374
374
|
// fallthrough
|
@@ -499,7 +499,7 @@ function Hs(t, e) {
|
|
499
499
|
case 5789:
|
500
500
|
case 5021:
|
501
501
|
case 4765:
|
502
|
-
if (
|
502
|
+
if (Pt(t) - 1 - e > 6) switch (K(t, e + 1)) {
|
503
503
|
// (m)ax-content, (m)in-content
|
504
504
|
case 109:
|
505
505
|
if (K(t, e + 4) !== 45) break;
|
@@ -516,7 +516,7 @@ function Hs(t, e) {
|
|
516
516
|
if (K(t, e + 1) !== 115) break;
|
517
517
|
// display: (flex|inline-flex)
|
518
518
|
case 6444:
|
519
|
-
switch (K(t,
|
519
|
+
switch (K(t, Pt(t) - 3 - (~Yn(t, "!important") && 10))) {
|
520
520
|
// stic(k)y
|
521
521
|
case 107:
|
522
522
|
return $(t, ":", ":" + L) + t;
|
@@ -740,17 +740,17 @@ function Sl() {
|
|
740
740
|
var ot = R.$$typeof;
|
741
741
|
switch (ot) {
|
742
742
|
case e:
|
743
|
-
var
|
744
|
-
switch (
|
743
|
+
var Tt = R.type;
|
744
|
+
switch (Tt) {
|
745
745
|
case l:
|
746
746
|
case c:
|
747
747
|
case r:
|
748
748
|
case s:
|
749
749
|
case i:
|
750
750
|
case d:
|
751
|
-
return
|
751
|
+
return Tt;
|
752
752
|
default:
|
753
|
-
var Ht =
|
753
|
+
var Ht = Tt && Tt.$$typeof;
|
754
754
|
switch (Ht) {
|
755
755
|
case a:
|
756
756
|
case u:
|
@@ -990,10 +990,10 @@ var Rl = {
|
|
990
990
|
case "animationName":
|
991
991
|
if (typeof n == "string")
|
992
992
|
return n.replace(Ml, function(r, i, s) {
|
993
|
-
return
|
993
|
+
return Ct = {
|
994
994
|
name: i,
|
995
995
|
styles: s,
|
996
|
-
next:
|
996
|
+
next: Ct
|
997
997
|
}, i;
|
998
998
|
});
|
999
999
|
}
|
@@ -1011,20 +1011,20 @@ function $e(t, e, n) {
|
|
1011
1011
|
case "object": {
|
1012
1012
|
var i = n;
|
1013
1013
|
if (i.anim === 1)
|
1014
|
-
return
|
1014
|
+
return Ct = {
|
1015
1015
|
name: i.name,
|
1016
1016
|
styles: i.styles,
|
1017
|
-
next:
|
1017
|
+
next: Ct
|
1018
1018
|
}, i.name;
|
1019
1019
|
var s = n;
|
1020
1020
|
if (s.styles !== void 0) {
|
1021
1021
|
var o = s.next;
|
1022
1022
|
if (o !== void 0)
|
1023
1023
|
for (; o !== void 0; )
|
1024
|
-
|
1024
|
+
Ct = {
|
1025
1025
|
name: o.name,
|
1026
1026
|
styles: o.styles,
|
1027
|
-
next:
|
1027
|
+
next: Ct
|
1028
1028
|
}, o = o.next;
|
1029
1029
|
var a = s.styles + ";";
|
1030
1030
|
return a;
|
@@ -1033,8 +1033,8 @@ function $e(t, e, n) {
|
|
1033
1033
|
}
|
1034
1034
|
case "function": {
|
1035
1035
|
if (t !== void 0) {
|
1036
|
-
var l =
|
1037
|
-
return
|
1036
|
+
var l = Ct, c = n(t);
|
1037
|
+
return Ct = l, $e(t, e, c);
|
1038
1038
|
}
|
1039
1039
|
break;
|
1040
1040
|
}
|
@@ -1071,12 +1071,12 @@ function kl(t, e, n) {
|
|
1071
1071
|
}
|
1072
1072
|
return r;
|
1073
1073
|
}
|
1074
|
-
var di = /label:\s*([^\s;{]+)\s*(;|$)/g,
|
1074
|
+
var di = /label:\s*([^\s;{]+)\s*(;|$)/g, Ct;
|
1075
1075
|
function Dl(t, e, n) {
|
1076
1076
|
if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0)
|
1077
1077
|
return t[0];
|
1078
1078
|
var r = !0, i = "";
|
1079
|
-
|
1079
|
+
Ct = void 0;
|
1080
1080
|
var s = t[0];
|
1081
1081
|
if (s == null || s.raw === void 0)
|
1082
1082
|
r = !1, i += $e(n, e, s);
|
@@ -1096,7 +1096,7 @@ function Dl(t, e, n) {
|
|
1096
1096
|
return {
|
1097
1097
|
name: d,
|
1098
1098
|
styles: i,
|
1099
|
-
next:
|
1099
|
+
next: Ct
|
1100
1100
|
};
|
1101
1101
|
}
|
1102
1102
|
var Ll = function(e) {
|
@@ -1437,7 +1437,7 @@ const fi = '"Goudy Bookletter 1911", sans-serif', Dn = '"Gill Sans", sans-serif'
|
|
1437
1437
|
"2xl": 1536
|
1438
1438
|
// Grand écran
|
1439
1439
|
};
|
1440
|
-
function
|
1440
|
+
function wt() {
|
1441
1441
|
const [t, e] = Lt("mobile");
|
1442
1442
|
return St(() => {
|
1443
1443
|
function r() {
|
@@ -1461,7 +1461,7 @@ const pi = ({
|
|
1461
1461
|
theme: c = F,
|
1462
1462
|
variant: u = Jn.Primary
|
1463
1463
|
}) => {
|
1464
|
-
const d =
|
1464
|
+
const d = wt(), { button: { color: f, backgroundColor: h, border: p, minWidth: g, fontWeight: x, transition: v, borderRadius: S, letterSpacing: w, paddingTop: C, paddingBottom: m, paddingLeft: V, paddingRight: E } } = c, y = a === sn.Large, b = a === sn.Small, T = o === Qn.Outline, P = u === Jn.Secondary;
|
1465
1465
|
return /* @__PURE__ */ A(
|
1466
1466
|
"button",
|
1467
1467
|
{
|
@@ -1490,7 +1490,7 @@ const pi = ({
|
|
1490
1490
|
};
|
1491
1491
|
var ic = "var(--_1v7zi9y0)", sc = "var(--_1v7zi9y1)", oc = "var(--_1v7zi9y2)", ac = "var(--_1v7zi9y3)", lc = "var(--_1v7zi9y4)", Jp = { width: "100%", display: "flex", flexWrap: "wrap", flexDirection: "row", gap: "var(--_1v7zi9y0)", alignItems: "var(--_1v7zi9y1)", paddingTop: "var(--_1v7zi9y2)", paddingBottom: "var(--_1v7zi9y3)", justifyContent: "var(--_1v7zi9y4)" }, Te = /* @__PURE__ */ ((t) => (t[t.Center = 0] = "Center", t[t.Left = 1] = "Left", t[t.Right = 2] = "Right", t))(Te || {});
|
1492
1492
|
const Qp = ({ children: t, className: e, theme: n = F, align: r = Te.Left }) => {
|
1493
|
-
const i =
|
1493
|
+
const i = wt(), { actions: { gap: s, paddingTop: o, paddingBottom: a } } = n;
|
1494
1494
|
return /* @__PURE__ */ A("div", { className: e, style: B({
|
1495
1495
|
[ic]: `${s[i]}px`,
|
1496
1496
|
[oc]: `${o[i]}px`,
|
@@ -1555,7 +1555,7 @@ const nm = ({
|
|
1555
1555
|
onModalHide: r,
|
1556
1556
|
className: i
|
1557
1557
|
}) => {
|
1558
|
-
const s =
|
1558
|
+
const s = wt(), {
|
1559
1559
|
global: { paddingLeft: o, paddingRight: a },
|
1560
1560
|
modal: { overlayBlur: l, overlayOpacity: c, overlayBackgroundColor: u, border: d, width: f, borderRadius: h, backgroundColor: p, paddingTop: g, paddingLeft: x, paddingRight: v, paddingBottom: S }
|
1561
1561
|
} = n;
|
@@ -1935,16 +1935,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
1935
1935
|
useIndianSeparators: !1
|
1936
1936
|
}, m = function(b) {
|
1937
1937
|
var T = Object.fromEntries(Object.entries(b).filter(function(ot) {
|
1938
|
-
var
|
1938
|
+
var Tt = d(ot, 2), Ht = Tt[1];
|
1939
1939
|
return Ht !== void 0;
|
1940
1940
|
})), P = t.useMemo(function() {
|
1941
1941
|
return i(i({}, C), T);
|
1942
1942
|
}, [b]), k = P.ref, W = P.startOnMount, Q = P.enableReinitialize, tt = P.delay, G = P.onEnd, D = P.onStart, I = P.onPauseResume, st = P.onReset, et = P.onUpdate, Ot = u(P, w), _t = t.useRef(), yt = t.useRef(), pt = t.useRef(!1), Bt = v(function() {
|
1943
1943
|
return S(typeof k == "string" ? k : k.current, Ot);
|
1944
1944
|
}), dt = v(function(ot) {
|
1945
|
-
var
|
1946
|
-
if (
|
1947
|
-
return
|
1945
|
+
var Tt = _t.current;
|
1946
|
+
if (Tt && !ot)
|
1947
|
+
return Tt;
|
1948
1948
|
var Ht = Bt();
|
1949
1949
|
return _t.current = Ht, Ht;
|
1950
1950
|
}), Ft = v(function() {
|
@@ -2170,21 +2170,21 @@ const am = ({
|
|
2170
2170
|
className: r,
|
2171
2171
|
theme: i = F
|
2172
2172
|
}) => {
|
2173
|
-
const
|
2173
|
+
const s = wt(), [o, a] = $c({
|
2174
2174
|
threshold: 0.3,
|
2175
2175
|
triggerOnce: !0
|
2176
|
-
}), { keyNumber: { paddingBottom:
|
2176
|
+
}), { keyNumber: { paddingBottom: l } } = i;
|
2177
2177
|
return /* @__PURE__ */ ht(
|
2178
2178
|
"div",
|
2179
2179
|
{
|
2180
|
-
ref:
|
2180
|
+
ref: o,
|
2181
2181
|
className: r,
|
2182
2182
|
style: B({
|
2183
|
-
[Oc.keyNumberPaddingBottom]: `${
|
2183
|
+
[Oc.keyNumberPaddingBottom]: `${l[s]}px`
|
2184
2184
|
}),
|
2185
2185
|
children: [
|
2186
2186
|
/* @__PURE__ */ ht("div", { className: _c, children: [
|
2187
|
-
/* @__PURE__ */ A("span", { children: /* @__PURE__ */ A(Rc, { end:
|
2187
|
+
/* @__PURE__ */ A("span", { children: /* @__PURE__ */ A(Rc, { end: a ? n : 0, duration: 8 }) }),
|
2188
2188
|
e
|
2189
2189
|
] }),
|
2190
2190
|
/* @__PURE__ */ A("p", { children: t })
|
@@ -2202,7 +2202,7 @@ const cm = ({
|
|
2202
2202
|
startMuted: s = !1,
|
2203
2203
|
theme: o = F
|
2204
2204
|
}) => {
|
2205
|
-
const a =
|
2205
|
+
const a = wt(), {
|
2206
2206
|
global: { maxWidth: l, paddingLeft: c, paddingRight: u }
|
2207
2207
|
} = o;
|
2208
2208
|
return /* @__PURE__ */ A(
|
@@ -2237,7 +2237,7 @@ const dm = ({
|
|
2237
2237
|
className: i,
|
2238
2238
|
translations: s
|
2239
2239
|
}) => {
|
2240
|
-
const o =
|
2240
|
+
const o = wt(), { languageSwitcher: a } = r;
|
2241
2241
|
return /* @__PURE__ */ ht(
|
2242
2242
|
"div",
|
2243
2243
|
{
|
@@ -2356,7 +2356,7 @@ const pm = ({
|
|
2356
2356
|
};
|
2357
2357
|
var te = { footerGap: "var(--fl7h880)", footerBackgroundColor: "var(--fl7h881)", footerPaddingTop: "var(--fl7h882)", footerPaddingBottom: "var(--fl7h883)", footerPaddingLeft: "var(--fl7h884)", footerPaddingRight: "var(--fl7h885)" }, mm = "fl7h886";
|
2358
2358
|
const gm = ({ children: t, className: e, theme: n = F }) => {
|
2359
|
-
const r =
|
2359
|
+
const r = wt(), {
|
2360
2360
|
global: { paddingLeft: i, paddingRight: s },
|
2361
2361
|
footer: { gap: o, backgroundColor: a, paddingTop: l, paddingBottom: c }
|
2362
2362
|
} = n;
|
@@ -2418,10 +2418,10 @@ function Xc(t = !0) {
|
|
2418
2418
|
return !n && r ? [!1, o] : [!0];
|
2419
2419
|
}
|
2420
2420
|
const wr = typeof window < "u", io = wr ? Ba : St, ct = /* @__NO_SIDE_EFFECTS__ */ (t) => t;
|
2421
|
-
let ge = ct,
|
2421
|
+
let ge = ct, Mt = ct;
|
2422
2422
|
process.env.NODE_ENV !== "production" && (ge = (t, e) => {
|
2423
2423
|
!t && typeof console < "u" && console.warn(e);
|
2424
|
-
},
|
2424
|
+
}, Mt = (t, e) => {
|
2425
2425
|
if (!t)
|
2426
2426
|
throw new Error(e);
|
2427
2427
|
});
|
@@ -2433,7 +2433,7 @@ function Tr(t) {
|
|
2433
2433
|
const de = /* @__NO_SIDE_EFFECTS__ */ (t, e, n) => {
|
2434
2434
|
const r = e - t;
|
2435
2435
|
return r === 0 ? 1 : (n - t) / r;
|
2436
|
-
},
|
2436
|
+
}, Vt = /* @__NO_SIDE_EFFECTS__ */ (t) => t * 1e3, Dt = /* @__NO_SIDE_EFFECTS__ */ (t) => t / 1e3, Zc = {
|
2437
2437
|
skipAnimations: !1,
|
2438
2438
|
useManualTiming: !1
|
2439
2439
|
}, Xe = [
|
@@ -2744,7 +2744,7 @@ function pu(t, e) {
|
|
2744
2744
|
const n = rt(oo).strict;
|
2745
2745
|
if (process.env.NODE_ENV !== "production" && e && n) {
|
2746
2746
|
const r = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
|
2747
|
-
t.ignoreStrict ? ge(!1, r) :
|
2747
|
+
t.ignoreStrict ? ge(!1, r) : Mt(!1, r);
|
2748
2748
|
}
|
2749
2749
|
}
|
2750
2750
|
function mu(t) {
|
@@ -2798,10 +2798,10 @@ const J = (t) => !!(t && t.getVelocity), mo = (t, e) => e && typeof t == "number
|
|
2798
2798
|
test: (e) => typeof e == "string" && e.endsWith(t) && e.split(" ").length === 1,
|
2799
2799
|
parse: parseFloat,
|
2800
2800
|
transform: (e) => `${e}${t}`
|
2801
|
-
}), Nt = /* @__PURE__ */ We("deg"),
|
2802
|
-
...
|
2803
|
-
parse: (t) =>
|
2804
|
-
transform: (t) =>
|
2801
|
+
}), Nt = /* @__PURE__ */ We("deg"), Rt = /* @__PURE__ */ We("%"), M = /* @__PURE__ */ We("px"), bu = /* @__PURE__ */ We("vh"), xu = /* @__PURE__ */ We("vw"), Pi = {
|
2802
|
+
...Rt,
|
2803
|
+
parse: (t) => Rt.parse(t) / 100,
|
2804
|
+
transform: (t) => Rt.transform(t * 100)
|
2805
2805
|
}, Su = {
|
2806
2806
|
// Border props
|
2807
2807
|
borderWidth: M,
|
@@ -3515,8 +3515,8 @@ let ln;
|
|
3515
3515
|
function ed() {
|
3516
3516
|
ln = void 0;
|
3517
3517
|
}
|
3518
|
-
const
|
3519
|
-
now: () => (ln === void 0 &&
|
3518
|
+
const Et = {
|
3519
|
+
now: () => (ln === void 0 && Et.set(H.isProcessing || Zc.useManualTiming ? H.timestamp : performance.now()), ln),
|
3520
3520
|
set: (t) => {
|
3521
3521
|
ln = t, queueMicrotask(ed);
|
3522
3522
|
}
|
@@ -3568,12 +3568,12 @@ class rd {
|
|
3568
3568
|
*/
|
3569
3569
|
constructor(e, n = {}) {
|
3570
3570
|
this.version = "12.4.7", this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (r, i = !0) => {
|
3571
|
-
const s =
|
3571
|
+
const s = Et.now();
|
3572
3572
|
this.updatedAt !== s && this.setPrevFrameValue(), this.prev = this.current, this.setCurrent(r), this.current !== this.prev && this.events.change && this.events.change.notify(this.current), i && this.events.renderRequest && this.events.renderRequest.notify(this.current);
|
3573
3573
|
}, this.hasAnimated = !1, this.setCurrent(e), this.owner = n.owner;
|
3574
3574
|
}
|
3575
3575
|
setCurrent(e) {
|
3576
|
-
this.current = e, this.updatedAt =
|
3576
|
+
this.current = e, this.updatedAt = Et.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = nd(this.current));
|
3577
3577
|
}
|
3578
3578
|
setPrevFrameValue(e = this.current) {
|
3579
3579
|
this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
|
@@ -3694,7 +3694,7 @@ class rd {
|
|
3694
3694
|
* @public
|
3695
3695
|
*/
|
3696
3696
|
getVelocity() {
|
3697
|
-
const e =
|
3697
|
+
const e = Et.now();
|
3698
3698
|
if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > Li)
|
3699
3699
|
return 0;
|
3700
3700
|
const n = Math.min(this.updatedAt - this.prevUpdatedAt, Li);
|
@@ -3833,7 +3833,7 @@ const sr = {
|
|
3833
3833
|
}, re = {
|
3834
3834
|
test: /* @__PURE__ */ Yr("hsl", "hue"),
|
3835
3835
|
parse: /* @__PURE__ */ zo("hue", "saturation", "lightness"),
|
3836
|
-
transform: ({ hue: t, saturation: e, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(t) + ", " +
|
3836
|
+
transform: ({ hue: t, saturation: e, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(t) + ", " + Rt.transform(Ve(e)) + ", " + Rt.transform(Ve(n)) + ", " + Ve(Be.transform(r)) + ")"
|
3837
3837
|
}, Z = {
|
3838
3838
|
test: (t) => Zt.test(t) || sr.test(t) || re.test(t),
|
3839
3839
|
parse: (t) => Zt.test(t) ? Zt.parse(t) : re.test(t) ? re.parse(t) : sr.parse(t),
|
@@ -4044,7 +4044,7 @@ function Dd(t) {
|
|
4044
4044
|
}
|
4045
4045
|
const Ld = 4;
|
4046
4046
|
function Qo(t, e, n = 1) {
|
4047
|
-
|
4047
|
+
Mt(n <= Ld, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);
|
4048
4048
|
const [r, i] = Dd(t);
|
4049
4049
|
if (!r)
|
4050
4050
|
return;
|
@@ -4058,7 +4058,7 @@ function Qo(t, e, n = 1) {
|
|
4058
4058
|
const ta = (t) => (e) => e.test(t), $d = {
|
4059
4059
|
test: (t) => t === "auto",
|
4060
4060
|
parse: (t) => t
|
4061
|
-
}, ea = [ve, M,
|
4061
|
+
}, ea = [ve, M, Rt, Nt, xu, bu, $d], Fi = (t) => ea.find(ta(t));
|
4062
4062
|
class na extends Zr {
|
4063
4063
|
constructor(e, n, r, i, s) {
|
4064
4064
|
super(e, n, r, i, s, !0);
|
@@ -4142,7 +4142,7 @@ function En(t, { repeat: e, repeatType: n = "loop" }, r) {
|
|
4142
4142
|
const Fd = 40;
|
4143
4143
|
class ra {
|
4144
4144
|
constructor({ autoplay: e = !0, delay: n = 0, type: r = "keyframes", repeat: i = 0, repeatDelay: s = 0, repeatType: o = "loop", ...a }) {
|
4145
|
-
this.isStopped = !1, this.hasAttemptedResolve = !1, this.createdAt =
|
4145
|
+
this.isStopped = !1, this.hasAttemptedResolve = !1, this.createdAt = Et.now(), this.options = {
|
4146
4146
|
autoplay: e,
|
4147
4147
|
delay: n,
|
4148
4148
|
type: r,
|
@@ -4179,7 +4179,7 @@ class ra {
|
|
4179
4179
|
* Otherwise, it will call initPlayback on the implementing class.
|
4180
4180
|
*/
|
4181
4181
|
onKeyframesResolved(e, n) {
|
4182
|
-
this.resolvedAt =
|
4182
|
+
this.resolvedAt = Et.now(), this.hasAttemptedResolve = !0;
|
4183
4183
|
const { name: r, type: i, velocity: s, delay: o, onComplete: a, onUpdate: l, isGenerator: c } = this.options;
|
4184
4184
|
if (!c && !_d(e, r, i, s))
|
4185
4185
|
if (o)
|
@@ -4334,7 +4334,7 @@ const N = {
|
|
4334
4334
|
}, Ui = 1e-3;
|
4335
4335
|
function Yd({ duration: t = N.duration, bounce: e = N.bounce, velocity: n = N.velocity, mass: r = N.mass }) {
|
4336
4336
|
let i, s;
|
4337
|
-
ge(t <= /* @__PURE__ */
|
4337
|
+
ge(t <= /* @__PURE__ */ Vt(N.maxDuration), "Spring duration must be 10 seconds or less");
|
4338
4338
|
let o = 1 - e;
|
4339
4339
|
o = $t(N.minDamping, N.maxDamping, o), t = $t(N.minDuration, N.maxDuration, /* @__PURE__ */ Dt(t)), o < 1 ? (i = (c) => {
|
4340
4340
|
const u = c * o, d = u * t, f = u - n, h = ur(c, o), p = Math.exp(-d);
|
@@ -4350,7 +4350,7 @@ function Yd({ duration: t = N.duration, bounce: e = N.bounce, velocity: n = N.ve
|
|
4350
4350
|
return u * d;
|
4351
4351
|
});
|
4352
4352
|
const a = 5 / t, l = Zd(i, s, a);
|
4353
|
-
if (t = /* @__PURE__ */
|
4353
|
+
if (t = /* @__PURE__ */ Vt(t), isNaN(l))
|
4354
4354
|
return {
|
4355
4355
|
stiffness: N.stiffness,
|
4356
4356
|
damping: N.damping,
|
@@ -4443,7 +4443,7 @@ function aa(t = N.visualDuration, e = N.bounce) {
|
|
4443
4443
|
a.done = m >= d;
|
4444
4444
|
else {
|
4445
4445
|
let E = 0;
|
4446
|
-
g < 1 && (E = m === 0 ? /* @__PURE__ */
|
4446
|
+
g < 1 && (E = m === 0 ? /* @__PURE__ */ Vt(p) : oa(w, m, V));
|
4447
4447
|
const y = Math.abs(E) <= r, b = Math.abs(o - V) <= i;
|
4448
4448
|
a.done = y && b;
|
4449
4449
|
}
|
@@ -4502,11 +4502,11 @@ const ef = /* @__PURE__ */ ze(0.42, 0, 1, 1), nf = /* @__PURE__ */ ze(0, 0, 0.58
|
|
4502
4502
|
anticipate: jo
|
4503
4503
|
}, Gi = (t) => {
|
4504
4504
|
if (jr(t)) {
|
4505
|
-
|
4505
|
+
Mt(t.length === 4, "Cubic bezier arrays must contain four numerical values.");
|
4506
4506
|
const [e, n, r, i] = t;
|
4507
4507
|
return ze(e, n, r, i);
|
4508
4508
|
} else if (typeof t == "string")
|
4509
|
-
return
|
4509
|
+
return Mt(qi[t] !== void 0, `Invalid easing type '${t}'`), qi[t];
|
4510
4510
|
return t;
|
4511
4511
|
};
|
4512
4512
|
function sf(t, e, n) {
|
@@ -4523,7 +4523,7 @@ function sf(t, e, n) {
|
|
4523
4523
|
}
|
4524
4524
|
function of(t, e, { clamp: n = !0, ease: r, mixer: i } = {}) {
|
4525
4525
|
const s = t.length;
|
4526
|
-
if (
|
4526
|
+
if (Mt(s === e.length, "Both input and output ranges must be the same length"), s === 1)
|
4527
4527
|
return () => e[0];
|
4528
4528
|
if (s === 2 && e[0] === e[1])
|
4529
4529
|
return () => e[1];
|
@@ -4584,7 +4584,7 @@ const df = (t) => {
|
|
4584
4584
|
* If we're processing this frame we can use the
|
4585
4585
|
* framelocked timestamp to keep things in sync.
|
4586
4586
|
*/
|
4587
|
-
now: () => H.isProcessing ? H.timestamp :
|
4587
|
+
now: () => H.isProcessing ? H.timestamp : Et.now()
|
4588
4588
|
};
|
4589
4589
|
}, ff = {
|
4590
4590
|
decay: zi,
|
@@ -4611,7 +4611,7 @@ class Qr extends ra {
|
|
4611
4611
|
initPlayback(e) {
|
4612
4612
|
const { type: n = "keyframes", repeat: r = 0, repeatDelay: i = 0, repeatType: s, velocity: o = 0 } = this.options, a = Ir(n) ? n : ff[n] || Re;
|
4613
4613
|
let l, c;
|
4614
|
-
process.env.NODE_ENV !== "production" && a !== Re &&
|
4614
|
+
process.env.NODE_ENV !== "production" && a !== Re && Mt(e.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`), a !== Re && typeof e[0] != "number" && (l = qe(hf, sa(e[0], e[1])), e = [0, 100]);
|
4615
4615
|
const u = a({ ...this.options, keyframes: e });
|
4616
4616
|
s === "mirror" && (c = a({
|
4617
4617
|
...this.options,
|
@@ -4666,7 +4666,7 @@ class Qr extends ra {
|
|
4666
4666
|
return /* @__PURE__ */ Dt(this.currentTime);
|
4667
4667
|
}
|
4668
4668
|
set time(e) {
|
4669
|
-
e = /* @__PURE__ */
|
4669
|
+
e = /* @__PURE__ */ Vt(e), this.currentTime = e, this.holdTime !== null || this.speed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.speed);
|
4670
4670
|
}
|
4671
4671
|
get speed() {
|
4672
4672
|
return this.playbackSpeed;
|
@@ -4816,7 +4816,7 @@ class Hi extends ra {
|
|
4816
4816
|
if (!n)
|
4817
4817
|
return;
|
4818
4818
|
const { animation: r } = n;
|
4819
|
-
r.currentTime = /* @__PURE__ */
|
4819
|
+
r.currentTime = /* @__PURE__ */ Vt(e);
|
4820
4820
|
}
|
4821
4821
|
get speed() {
|
4822
4822
|
const { resolved: e } = this;
|
@@ -4897,7 +4897,7 @@ class Hi extends ra {
|
|
4897
4897
|
ease: o,
|
4898
4898
|
times: a,
|
4899
4899
|
isGenerator: !0
|
4900
|
-
}), g = /* @__PURE__ */
|
4900
|
+
}), g = /* @__PURE__ */ Vt(this.time);
|
4901
4901
|
c.setWithVelocity(p.sample(g - vn).value, p.sample(g).value, vn);
|
4902
4902
|
}
|
4903
4903
|
const { onStop: l } = this.options;
|
@@ -4947,7 +4947,7 @@ function Af({ when: t, delay: e, delayChildren: n, staggerChildren: r, staggerDi
|
|
4947
4947
|
const ti = (t, e, n, r = {}, i, s) => (o) => {
|
4948
4948
|
const a = Fr(r, t) || {}, l = a.delay || r.delay || 0;
|
4949
4949
|
let { elapsed: c = 0 } = r;
|
4950
|
-
c = c - /* @__PURE__ */
|
4950
|
+
c = c - /* @__PURE__ */ Vt(l);
|
4951
4951
|
let u = {
|
4952
4952
|
keyframes: Array.isArray(n) ? n : [null, n],
|
4953
4953
|
ease: "easeOut",
|
@@ -4967,7 +4967,7 @@ const ti = (t, e, n, r = {}, i, s) => (o) => {
|
|
4967
4967
|
Af(a) || (u = {
|
4968
4968
|
...u,
|
4969
4969
|
...Cf(t, u)
|
4970
|
-
}), u.duration && (u.duration = /* @__PURE__ */
|
4970
|
+
}), u.duration && (u.duration = /* @__PURE__ */ Vt(u.duration)), u.repeatDelay && (u.repeatDelay = /* @__PURE__ */ Vt(u.repeatDelay)), u.from !== void 0 && (u.keyframes[0] = u.from);
|
4971
4971
|
let d = !1;
|
4972
4972
|
if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (u.duration = 0, u.delay === 0 && (d = !0)), d && !s && e.get() !== void 0) {
|
4973
4973
|
const f = En(u.keyframes, a);
|
@@ -5473,7 +5473,7 @@ function Qf(t, e) {
|
|
5473
5473
|
return { x: 0, y: 0 };
|
5474
5474
|
let n = t.length - 1, r = null;
|
5475
5475
|
const i = Sa(t);
|
5476
|
-
for (; n >= 0 && (r = t[n], !(i.timestamp - r.timestamp > /* @__PURE__ */
|
5476
|
+
for (; n >= 0 && (r = t[n], !(i.timestamp - r.timestamp > /* @__PURE__ */ Vt(e))); )
|
5477
5477
|
n--;
|
5478
5478
|
if (!r)
|
5479
5479
|
return { x: 0, y: 0 };
|
@@ -5554,7 +5554,7 @@ class ah {
|
|
5554
5554
|
return;
|
5555
5555
|
this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), gt((x) => {
|
5556
5556
|
let v = this.getAxisMotionValue(x).get() || 0;
|
5557
|
-
if (
|
5557
|
+
if (Rt.test(v)) {
|
5558
5558
|
const { projection: S } = this.visualElement;
|
5559
5559
|
if (S && S.layout) {
|
5560
5560
|
const w = S.layout.layoutBox[x];
|
@@ -5626,7 +5626,7 @@ class ah {
|
|
5626
5626
|
if (!e || !ne(e))
|
5627
5627
|
return !1;
|
5628
5628
|
const r = e.current;
|
5629
|
-
|
5629
|
+
Mt(r !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");
|
5630
5630
|
const { projection: i } = this.visualElement;
|
5631
5631
|
if (!i || !i.layout)
|
5632
5632
|
return !1;
|
@@ -5934,7 +5934,7 @@ class yh {
|
|
5934
5934
|
}
|
5935
5935
|
}
|
5936
5936
|
function vh(t, e) {
|
5937
|
-
const n =
|
5937
|
+
const n = Et.now(), r = ({ timestamp: i }) => {
|
5938
5938
|
const s = i - n;
|
5939
5939
|
s >= e && (Ut(r), t(s - e));
|
5940
5940
|
};
|
@@ -5953,7 +5953,7 @@ function xh(t, e, n, r, i, s) {
|
|
5953
5953
|
let l = ms(e, a), c = ms(n, a);
|
5954
5954
|
if (l === void 0 && c === void 0)
|
5955
5955
|
continue;
|
5956
|
-
l || (l = 0), c || (c = 0), l === 0 || c === 0 || ps(l) === ps(c) ? (t[a] = Math.max(U(hs(l), hs(c), r), 0), (
|
5956
|
+
l || (l = 0), c || (c = 0), l === 0 || c === 0 || ps(l) === ps(c) ? (t[a] = Math.max(U(hs(l), hs(c), r), 0), (Rt.test(c) || Rt.test(l)) && (t[a] += "%")) : t[a] = c;
|
5957
5957
|
}
|
5958
5958
|
(e.rotate || n.rotate) && (t.rotate = U(e.rotate || 0, n.rotate || 0, r));
|
5959
5959
|
}
|
@@ -5977,7 +5977,7 @@ function vs(t, e, n, r, i) {
|
|
5977
5977
|
return t -= e, t = bn(t, 1 / n, r), i !== void 0 && (t = bn(t, 1 / i, r)), t;
|
5978
5978
|
}
|
5979
5979
|
function Th(t, e = 0, n = 1, r = 0.5, i, s = t, o = t) {
|
5980
|
-
if (
|
5980
|
+
if (Rt.test(e) && (e = parseFloat(e), e = U(o.min, o.max, e / 100) - o.min), typeof e != "number")
|
5981
5981
|
return;
|
5982
5982
|
let a = U(s.min, s.max, r);
|
5983
5983
|
t === s && (a -= e), t.min = vs(t.min, e, n, a, i), t.max = vs(t.max, e, n, a, i);
|
@@ -6203,7 +6203,7 @@ function Ra({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
6203
6203
|
return;
|
6204
6204
|
}
|
6205
6205
|
this.isUpdating || this.nodes.forEach(_h), this.isUpdating = !1, this.nodes.forEach(Bh), this.nodes.forEach(kh), this.nodes.forEach(Dh), this.clearAllSnapshots();
|
6206
|
-
const a =
|
6206
|
+
const a = Et.now();
|
6207
6207
|
H.delta = $t(0, 1e3 / 60, a - H.timestamp), H.timestamp = a, H.isProcessing = !0, _n.update.process(H), _n.preRender.process(H), _n.render.process(H), H.isProcessing = !1;
|
6208
6208
|
}
|
6209
6209
|
didUpdate() {
|
@@ -6865,7 +6865,7 @@ class fp {
|
|
6865
6865
|
this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = Zr, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
|
6866
6866
|
this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
|
6867
6867
|
}, this.renderScheduledAt = 0, this.scheduleRender = () => {
|
6868
|
-
const h =
|
6868
|
+
const h = Et.now();
|
6869
6869
|
this.renderScheduledAt < h && (this.renderScheduledAt = h, j.render(this.render, !1, !0));
|
6870
6870
|
};
|
6871
6871
|
const { latestValues: l, renderState: c, onUpdate: u } = o;
|
@@ -7157,7 +7157,7 @@ function Sp() {
|
|
7157
7157
|
return e.add(r), () => void e.delete(r);
|
7158
7158
|
},
|
7159
7159
|
start(r, i) {
|
7160
|
-
|
7160
|
+
Mt(t, "controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");
|
7161
7161
|
const s = [];
|
7162
7162
|
return e.forEach((o) => {
|
7163
7163
|
s.push(da(o, r, {
|
@@ -7166,7 +7166,7 @@ function Sp() {
|
|
7166
7166
|
}), Promise.all(s);
|
7167
7167
|
},
|
7168
7168
|
set(r) {
|
7169
|
-
return
|
7169
|
+
return Mt(t, "controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."), e.forEach((i) => {
|
7170
7170
|
xp(i, r);
|
7171
7171
|
});
|
7172
7172
|
},
|
@@ -7248,7 +7248,7 @@ const Fp = {
|
|
7248
7248
|
backgroundColor: c = "",
|
7249
7249
|
noPaddingBottom: u = !1
|
7250
7250
|
}) => {
|
7251
|
-
const d = Tp(), f =
|
7251
|
+
const d = Tp(), f = wt(), h = Na(), {
|
7252
7252
|
colors: p,
|
7253
7253
|
header: { height: g },
|
7254
7254
|
footer: { height: x },
|
@@ -7275,7 +7275,7 @@ const Fp = {
|
|
7275
7275
|
};
|
7276
7276
|
var Ip = { navGap: "var(--_1h6zt340)" }, Tm = "_1h6zt341";
|
7277
7277
|
const Pm = ({ children: t, theme: e = F, className: n }) => {
|
7278
|
-
const r =
|
7278
|
+
const r = wt(), { nav: { gap: i } } = e;
|
7279
7279
|
return /* @__PURE__ */ A(
|
7280
7280
|
"nav",
|
7281
7281
|
{
|
@@ -7289,7 +7289,7 @@ const Pm = ({ children: t, theme: e = F, className: n }) => {
|
|
7289
7289
|
};
|
7290
7290
|
var jp = { navSocialGap: "var(--g7q46n0)" }, Cm = "g7q46n1", Np = "g7q46n2";
|
7291
7291
|
const Am = ({ navSocial: t, className: e, theme: n = F }) => {
|
7292
|
-
const r =
|
7292
|
+
const r = wt(), {
|
7293
7293
|
navSocial: { gap: i }
|
7294
7294
|
} = n;
|
7295
7295
|
return /* @__PURE__ */ A(
|
@@ -7308,7 +7308,7 @@ const Am = ({ navSocial: t, className: e, theme: n = F }) => {
|
|
7308
7308
|
};
|
7309
7309
|
var Up = { navLegalGap: "var(--vehv9e0)" }, Vm = "vehv9e1";
|
7310
7310
|
const Rm = ({ children: t, className: e, theme: n = F }) => {
|
7311
|
-
const r =
|
7311
|
+
const r = wt(), {
|
7312
7312
|
navLegal: { gap: i }
|
7313
7313
|
} = n;
|
7314
7314
|
return /* @__PURE__ */ A(
|