@latte-macchiat-io/latte-vanilla-components 0.0.135 → 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.es.js
CHANGED
@@ -9,11 +9,11 @@ function Ua(t) {
|
|
9
9
|
if (document.styleSheets[e].ownerNode === t)
|
10
10
|
return document.styleSheets[e];
|
11
11
|
}
|
12
|
-
function
|
12
|
+
function Wa(t) {
|
13
13
|
var e = document.createElement("style");
|
14
14
|
return e.setAttribute("data-emotion", t.key), t.nonce !== void 0 && e.setAttribute("nonce", t.nonce), e.appendChild(document.createTextNode("")), e.setAttribute("data-s", ""), e;
|
15
15
|
}
|
16
|
-
var
|
16
|
+
var za = /* @__PURE__ */ function() {
|
17
17
|
function t(n) {
|
18
18
|
var r = this;
|
19
19
|
this._insertTag = function(i) {
|
@@ -25,7 +25,7 @@ var Wa = /* @__PURE__ */ function() {
|
|
25
25
|
return e.hydrate = function(r) {
|
26
26
|
r.forEach(this._insertTag);
|
27
27
|
}, e.insert = function(r) {
|
28
|
-
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(
|
28
|
+
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Wa(this));
|
29
29
|
var i = this.tags[this.tags.length - 1];
|
30
30
|
if (this.isSpeedy) {
|
31
31
|
var s = Ua(i);
|
@@ -46,7 +46,7 @@ var Wa = /* @__PURE__ */ function() {
|
|
46
46
|
function Ya(t, e) {
|
47
47
|
return K(t, 0) ^ 45 ? (((e << 2 ^ K(t, 0)) << 2 ^ K(t, 1)) << 2 ^ K(t, 2)) << 2 ^ K(t, 3) : 0;
|
48
48
|
}
|
49
|
-
function
|
49
|
+
function Ws(t) {
|
50
50
|
return t.trim();
|
51
51
|
}
|
52
52
|
function Xa(t, e) {
|
@@ -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) {
|
@@ -76,7 +76,7 @@ function He(t, e) {
|
|
76
76
|
function Za(t, e) {
|
77
77
|
return t.map(e).join("");
|
78
78
|
}
|
79
|
-
var wn = 1, ue = 1,
|
79
|
+
var wn = 1, ue = 1, zs = 0, ut = 0, q = 0, me = "";
|
80
80
|
function Tn(t, e, n, r, i, s, o) {
|
81
81
|
return { value: t, root: e, parent: n, type: r, props: i, children: s, line: wn, column: ue, length: o, return: "" };
|
82
82
|
}
|
@@ -90,9 +90,9 @@ function Qa() {
|
|
90
90
|
return q = ut > 0 ? K(me, --ut) : 0, ue--, q === 10 && (ue = 1, wn--), q;
|
91
91
|
}
|
92
92
|
function ft() {
|
93
|
-
return q = ut <
|
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,23 +140,23 @@ function Le(t) {
|
|
140
140
|
return 0;
|
141
141
|
}
|
142
142
|
function qs(t) {
|
143
|
-
return wn = ue = 1,
|
143
|
+
return wn = ue = 1, zs = Pt(me = t), ut = 0, [];
|
144
144
|
}
|
145
145
|
function Gs(t) {
|
146
146
|
return me = "", t;
|
147
147
|
}
|
148
148
|
function nn(t) {
|
149
|
-
return
|
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;
|
@@ -303,7 +303,7 @@ function rn(t, e, n, r, i, s, o, a, l) {
|
|
303
303
|
function ni(t, e, n, r, i, s, o, a, l, c, u) {
|
304
304
|
for (var d = i - 1, f = i === 0 ? s : [""], h = xr(f), p = 0, g = 0, x = 0; p < r; ++p)
|
305
305
|
for (var v = 0, S = De(t, d + 1, d = Ha(g = o[p])), w = t; v < h; ++v)
|
306
|
-
(w =
|
306
|
+
(w = Ws(g > 0 ? f[v] + " " + S : $(S, /&\f/g, f[v]))) && (l[x++] = w);
|
307
307
|
return Tn(t, e, n, i === 0 ? vr : a, l, c, u);
|
308
308
|
}
|
309
309
|
function sl(t, e, n) {
|
@@ -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;
|
@@ -606,7 +606,7 @@ var ml = function(e, n, r, i) {
|
|
606
606
|
}
|
607
607
|
var p = {
|
608
608
|
key: n,
|
609
|
-
sheet: new
|
609
|
+
sheet: new za({
|
610
610
|
key: n,
|
611
611
|
container: o,
|
612
612
|
nonce: e.nonce,
|
@@ -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:
|
@@ -767,7 +767,7 @@ function Sl() {
|
|
767
767
|
}
|
768
768
|
}
|
769
769
|
}
|
770
|
-
var m = l, V = c, E = a, y = o, b = e, T = u, P = r, k = p,
|
770
|
+
var m = l, V = c, E = a, y = o, b = e, T = u, P = r, k = p, W = h, Q = n, tt = s, G = i, D = d, I = !1;
|
771
771
|
function st(R) {
|
772
772
|
return I || (I = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), et(R) || C(R) === l;
|
773
773
|
}
|
@@ -807,7 +807,7 @@ function Sl() {
|
|
807
807
|
function Gt(R) {
|
808
808
|
return C(R) === d;
|
809
809
|
}
|
810
|
-
_.AsyncMode = m, _.ConcurrentMode = V, _.ContextConsumer = E, _.ContextProvider = y, _.Element = b, _.ForwardRef = T, _.Fragment = P, _.Lazy = k, _.Memo =
|
810
|
+
_.AsyncMode = m, _.ConcurrentMode = V, _.ContextConsumer = E, _.ContextProvider = y, _.Element = b, _.ForwardRef = T, _.Fragment = P, _.Lazy = k, _.Memo = W, _.Portal = Q, _.Profiler = tt, _.StrictMode = G, _.Suspense = D, _.isAsyncMode = st, _.isConcurrentMode = et, _.isContextConsumer = Ot, _.isContextProvider = _t, _.isElement = yt, _.isForwardRef = pt, _.isFragment = Bt, _.isLazy = dt, _.isMemo = Ft, _.isPortal = vt, _.isProfiler = bt, _.isStrictMode = qt, _.isSuspense = Gt, _.isValidElementType = w, _.typeOf = C;
|
811
811
|
}()), _;
|
812
812
|
}
|
813
813
|
var ai;
|
@@ -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) {
|
@@ -1168,7 +1168,7 @@ function B(t, e) {
|
|
1168
1168
|
writable: !1
|
1169
1169
|
}), n;
|
1170
1170
|
}
|
1171
|
-
const fi = '"Goudy Bookletter 1911", sans-serif', Dn = '"Gill Sans", sans-serif', Qs = "#FF7377", Ln = "#C8AE96", Y = "#FCEFE6", Ul = "#2E2E2E", hi = "#CCCCCC",
|
1171
|
+
const fi = '"Goudy Bookletter 1911", sans-serif', Dn = '"Gill Sans", sans-serif', Qs = "#FF7377", Ln = "#C8AE96", Y = "#FCEFE6", Ul = "#2E2E2E", hi = "#CCCCCC", Wl = " #888888", nt = "#000000", $n = Qs, F = {
|
1172
1172
|
global: {
|
1173
1173
|
maxWidth: 1200,
|
1174
1174
|
paddingLeft: [15, 15, 30, 30],
|
@@ -1216,7 +1216,7 @@ const fi = '"Goudy Bookletter 1911", sans-serif', Dn = '"Gill Sans", sans-serif'
|
|
1216
1216
|
color: {
|
1217
1217
|
primary: Y,
|
1218
1218
|
secondary: Ul,
|
1219
|
-
disabled:
|
1219
|
+
disabled: Wl
|
1220
1220
|
},
|
1221
1221
|
backgroundColor: {
|
1222
1222
|
primary: $n,
|
@@ -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() {
|
@@ -1447,7 +1447,7 @@ function Mt() {
|
|
1447
1447
|
return r(), window.addEventListener("resize", r), () => window.removeEventListener("resize", r);
|
1448
1448
|
}, []), ["mobile", "sm", "md", "lg", "xl", "2xl"].indexOf(t);
|
1449
1449
|
}
|
1450
|
-
var
|
1450
|
+
var zl = "var(--_1h0tdm50)", ql = "var(--_1h0tdm51)", Gl = "var(--_1h0tdm52)", Hl = "var(--_1h0tdm53)", Kl = "var(--_1h0tdm54)", Yl = "var(--_1h0tdm55)", Xl = "var(--_1h0tdm56)", Zl = "var(--_1h0tdm57)", Jl = "var(--_1h0tdm58)", Ql = "var(--_1h0tdm59)", tc = "var(--_1h0tdm5a)", ec = "var(--_1h0tdm5b)", nc = "var(--_1h0tdm5c)", rc = "var(--_1h0tdm5d)", Zp = { position: "relative", display: "inline-block", color: "var(--_1h0tdm50)", border: "var(--_1h0tdm52)", cursor: "var(--_1h0tdm51)", minWidth: "var(--_1h0tdm53)", fontWeight: "var(--_1h0tdm54)", transition: "var(--_1h0tdm55)", paddingTop: "var(--_1h0tdm56)", paddingLeft: "var(--_1h0tdm57)", paddingRight: "var(--_1h0tdm58)", paddingBottom: "var(--_1h0tdm59)", pointerEvent: "var(--_1h0tdm5a)", borderRadius: "var(--_1h0tdm5b)", letterSpacing: "var(--_1h0tdm5c)", backgroundColor: "var(--_1h0tdm5d)", selectors: { "&:hover": { opacity: 0.5 } } }, Jn = /* @__PURE__ */ ((t) => (t[t.Primary = 0] = "Primary", t[t.Secondary = 1] = "Secondary", t))(Jn || {}), Qn = /* @__PURE__ */ ((t) => (t[t.Fill = 0] = "Fill", t[t.Outline = 1] = "Outline", t))(Qn || {}), sn = /* @__PURE__ */ ((t) => (t[t.Small = 0] = "Small", t[t.Medium = 1] = "Medium", t[t.Large = 2] = "Large", t))(sn || {}), to = /* @__PURE__ */ ((t) => (t.Reset = "reset", t.Button = "button", t.Submit = "submit", t))(to || {});
|
1451
1451
|
const pi = ({
|
1452
1452
|
children: t,
|
1453
1453
|
className: e,
|
@@ -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
|
{
|
@@ -1476,7 +1476,7 @@ const pi = ({
|
|
1476
1476
|
[nc]: `${w}px`,
|
1477
1477
|
[ql]: i || r ? "default" : "pointer",
|
1478
1478
|
[tc]: i || r ? "none" : "auto",
|
1479
|
-
[
|
1479
|
+
[zl]: T && n ? n : T && P ? h.secondary : T ? h.primary : P ? f.secondary : i || r ? f.disabled : f.primary,
|
1480
1480
|
[rc]: T ? "transparent" : n || (P ? h.secondary : i ? h.disabled : h.primary),
|
1481
1481
|
[Gl]: n ? `${p.width}px ${p.style} ${n}` : P ? `${p.width}px ${p.style} ${p.color.secondary}` : i ? `${p.width}px ${p.style} ${p.color.disabled}` : `${p.width}px ${p.style} ${p.color.primary}`,
|
1482
1482
|
[Xl]: b ? `${C.small[d]}px` : y ? `${C.large[d]}px` : `${C.medium[d]}px`,
|
@@ -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;
|
@@ -1642,7 +1642,7 @@ const im = ({ children: t, theme: e = F, className: n }) => /* @__PURE__ */ A(
|
|
1642
1642
|
children: t
|
1643
1643
|
}
|
1644
1644
|
);
|
1645
|
-
var On = { gap: "var(--_1vea7fs0)", displayItem: "var(--_1vea7fs1)", isFullWidth: "var(--_1vea7fs2)" }, sm = "
|
1645
|
+
var On = { gap: "var(--_1vea7fs0)", displayItem: "var(--_1vea7fs1)", isFullWidth: "var(--_1vea7fs2)" }, sm = { gap: "var(--_1vea7fs0)", display: "flex", flexWrap: "nowrap", overflow: "hidden", width: "var(--_1vea7fs2)" };
|
1646
1646
|
function wc() {
|
1647
1647
|
const [t, e] = Lt({
|
1648
1648
|
width: void 0,
|
@@ -1779,9 +1779,9 @@ function Ac() {
|
|
1779
1779
|
function n(y, b) {
|
1780
1780
|
var T = y == null ? null : typeof Symbol < "u" && y[Symbol.iterator] || y["@@iterator"];
|
1781
1781
|
if (T != null) {
|
1782
|
-
var P, k,
|
1782
|
+
var P, k, W, Q, tt = [], G = !0, D = !1;
|
1783
1783
|
try {
|
1784
|
-
if (
|
1784
|
+
if (W = (T = T.call(y)).next, b !== 0) for (; !(G = (P = W.call(T)).done) && (tt.push(P.value), tt.length !== b); G = !0) ;
|
1785
1785
|
} catch (I) {
|
1786
1786
|
D = !0, k = I;
|
1787
1787
|
} finally {
|
@@ -1849,18 +1849,18 @@ function Ac() {
|
|
1849
1849
|
}
|
1850
1850
|
function c(y, b) {
|
1851
1851
|
if (y == null) return {};
|
1852
|
-
var T = {}, P = Object.keys(y), k,
|
1853
|
-
for (
|
1854
|
-
k = P[
|
1852
|
+
var T = {}, P = Object.keys(y), k, W;
|
1853
|
+
for (W = 0; W < P.length; W++)
|
1854
|
+
k = P[W], !(b.indexOf(k) >= 0) && (T[k] = y[k]);
|
1855
1855
|
return T;
|
1856
1856
|
}
|
1857
1857
|
function u(y, b) {
|
1858
1858
|
if (y == null) return {};
|
1859
1859
|
var T = c(y, b), P, k;
|
1860
1860
|
if (Object.getOwnPropertySymbols) {
|
1861
|
-
var
|
1862
|
-
for (k = 0; k <
|
1863
|
-
P =
|
1861
|
+
var W = Object.getOwnPropertySymbols(y);
|
1862
|
+
for (k = 0; k < W.length; k++)
|
1863
|
+
P = W[k], !(b.indexOf(P) >= 0) && Object.prototype.propertyIsEnumerable.call(y, P) && (T[P] = y[P]);
|
1864
1864
|
}
|
1865
1865
|
return T;
|
1866
1866
|
}
|
@@ -1899,10 +1899,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
1899
1899
|
}, []);
|
1900
1900
|
}
|
1901
1901
|
var S = function(b, T) {
|
1902
|
-
var P = T.decimal, k = T.decimals,
|
1902
|
+
var P = T.decimal, k = T.decimals, W = T.duration, Q = T.easingFn, tt = T.end, G = T.formattingFn, D = T.numerals, I = T.prefix, st = T.separator, et = T.start, Ot = T.suffix, _t = T.useEasing, yt = T.useGrouping, pt = T.useIndianSeparators, Bt = T.enableScrollSpy, dt = T.scrollSpyDelay, Ft = T.scrollSpyOnce, vt = T.plugin;
|
1903
1903
|
return new e.CountUp(b, tt, {
|
1904
1904
|
startVal: et,
|
1905
|
-
duration:
|
1905
|
+
duration: W,
|
1906
1906
|
decimal: P,
|
1907
1907
|
decimalPlaces: k,
|
1908
1908
|
easingFn: Q,
|
@@ -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
|
-
}, [b]), k = P.ref,
|
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() {
|
@@ -1984,7 +1984,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
1984
1984
|
}), Gt = v(function() {
|
1985
1985
|
bt(), Ft();
|
1986
1986
|
}), R = v(function(ot) {
|
1987
|
-
|
1987
|
+
W && (ot && bt(), Ft());
|
1988
1988
|
});
|
1989
1989
|
return t.useEffect(function() {
|
1990
1990
|
pt.current ? Q && R(!0) : (pt.current = !0, R());
|
@@ -2000,9 +2000,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
2000
2000
|
getCountUp: dt
|
2001
2001
|
};
|
2002
2002
|
}, V = ["className", "redraw", "containerProps", "children", "style"], E = function(b) {
|
2003
|
-
var T = b.className, P = b.redraw, k = b.containerProps,
|
2003
|
+
var T = b.className, P = b.redraw, k = b.containerProps, W = b.children, Q = b.style, tt = u(b, V), G = t.useRef(null), D = t.useRef(!1), I = m(i(i({}, tt), {}, {
|
2004
2004
|
ref: G,
|
2005
|
-
startOnMount: typeof
|
2005
|
+
startOnMount: typeof W != "function" || b.delay === 0,
|
2006
2006
|
// component manually restarts
|
2007
2007
|
enableReinitialize: !1
|
2008
2008
|
})), st = I.start, et = I.reset, Ot = I.update, _t = I.pauseResume, yt = I.getCountUp, pt = v(function() {
|
@@ -2028,7 +2028,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
2028
2028
|
!P && D.current && pt();
|
2029
2029
|
}, [pt, P, b.start, b.suffix, b.prefix, b.duration, b.separator, b.decimals, b.decimal, b.className, b.formattingFn]), t.useEffect(function() {
|
2030
2030
|
D.current = !0;
|
2031
|
-
}, []), typeof
|
2031
|
+
}, []), typeof W == "function" ? W({
|
2032
2032
|
countUpRef: G,
|
2033
2033
|
start: st,
|
2034
2034
|
reset: et,
|
@@ -2162,7 +2162,7 @@ function $c({
|
|
2162
2162
|
const S = [f, p.inView, p.entry];
|
2163
2163
|
return S.ref = S[0], S.inView = S[1], S.entry = S[2], S;
|
2164
2164
|
}
|
2165
|
-
var Oc = { keyNumberPaddingBottom: "var(--_177g97f0)" }, _c = "
|
2165
|
+
var Oc = { keyNumberPaddingBottom: "var(--_177g97f0)" }, _c = "_177g97f1";
|
2166
2166
|
const am = ({
|
2167
2167
|
label: t,
|
2168
2168
|
suffix: e,
|
@@ -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
|
{
|
@@ -2270,7 +2270,7 @@ const hm = ({ children: t, className: e, theme: n = F }) => {
|
|
2270
2270
|
}), children: t });
|
2271
2271
|
};
|
2272
2272
|
var bi = { overlayBottom: "var(--xr8l1e0)", overlayTransform: "var(--xr8l1e1)" }, Uc = "xr8l1e2";
|
2273
|
-
const
|
2273
|
+
const Wc = ({
|
2274
2274
|
theme: t = F,
|
2275
2275
|
isOpen: e = !1,
|
2276
2276
|
children: n,
|
@@ -2289,7 +2289,7 @@ const zc = ({
|
|
2289
2289
|
children: n
|
2290
2290
|
}
|
2291
2291
|
));
|
2292
|
-
var
|
2292
|
+
var zc = { displayOnDesktop: "var(--_1c0ak730)" }, qc = "_1c0ak731", xi = "_1c0ak732";
|
2293
2293
|
const Gc = ({
|
2294
2294
|
theme: t = F,
|
2295
2295
|
isNavOpen: e = !1,
|
@@ -2305,7 +2305,7 @@ const Gc = ({
|
|
2305
2305
|
{
|
2306
2306
|
className: `${qc} ${i}`,
|
2307
2307
|
style: B({
|
2308
|
-
[
|
2308
|
+
[zc.displayOnDesktop]: r ? "block" : "none"
|
2309
2309
|
}),
|
2310
2310
|
onClick: s,
|
2311
2311
|
"aria-label": "Toggle nav",
|
@@ -2336,7 +2336,7 @@ const pm = ({
|
|
2336
2336
|
[Hc.isFixed]: e ? "fixed" : "relative"
|
2337
2337
|
}),
|
2338
2338
|
children: [
|
2339
|
-
n && /* @__PURE__ */ A(
|
2339
|
+
n && /* @__PURE__ */ A(Wc, { className: "", theme: r, isOpen: a, children: n }),
|
2340
2340
|
t,
|
2341
2341
|
!i && /* @__PURE__ */ A(
|
2342
2342
|
Gc,
|
@@ -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) {
|
@@ -2794,14 +2794,14 @@ const J = (t) => !!(t && t.getVelocity), mo = (t, e) => e && typeof t == "number
|
|
2794
2794
|
}, Ze = {
|
2795
2795
|
...ve,
|
2796
2796
|
default: 1
|
2797
|
-
},
|
2797
|
+
}, We = (t) => ({
|
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__ */
|
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,
|
@@ -3240,8 +3240,8 @@ function Fe(t, e, n) {
|
|
3240
3240
|
const r = t.getProps();
|
3241
3241
|
return _r(r, e, n !== void 0 ? n : r.custom, t);
|
3242
3242
|
}
|
3243
|
-
const
|
3244
|
-
class
|
3243
|
+
const Wu = /* @__PURE__ */ Tr(() => window.ScrollTimeline !== void 0);
|
3244
|
+
class zu {
|
3245
3245
|
constructor(e) {
|
3246
3246
|
this.stop = () => this.runAll("stop"), this.animations = e.filter(Boolean);
|
3247
3247
|
}
|
@@ -3260,7 +3260,7 @@ class Wu {
|
|
3260
3260
|
}
|
3261
3261
|
attachTimeline(e, n) {
|
3262
3262
|
const r = this.animations.map((i) => {
|
3263
|
-
if (
|
3263
|
+
if (Wu() && i.attachTimeline)
|
3264
3264
|
return i.attachTimeline(e);
|
3265
3265
|
if (typeof n == "function")
|
3266
3266
|
return n(i);
|
@@ -3311,7 +3311,7 @@ class Wu {
|
|
3311
3311
|
this.runAll("complete");
|
3312
3312
|
}
|
3313
3313
|
}
|
3314
|
-
class qu extends
|
3314
|
+
class qu extends zu {
|
3315
3315
|
then(e, n) {
|
3316
3316
|
return Promise.all(this.animations).then(e).catch(n);
|
3317
3317
|
}
|
@@ -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
|
}
|
@@ -3524,16 +3524,16 @@ const Rt = {
|
|
3524
3524
|
function Ur(t, e) {
|
3525
3525
|
t.indexOf(e) === -1 && t.push(e);
|
3526
3526
|
}
|
3527
|
-
function
|
3527
|
+
function Wr(t, e) {
|
3528
3528
|
const n = t.indexOf(e);
|
3529
3529
|
n > -1 && t.splice(n, 1);
|
3530
3530
|
}
|
3531
|
-
class
|
3531
|
+
class zr {
|
3532
3532
|
constructor() {
|
3533
3533
|
this.subscriptions = [];
|
3534
3534
|
}
|
3535
3535
|
add(e) {
|
3536
|
-
return Ur(this.subscriptions, e), () =>
|
3536
|
+
return Ur(this.subscriptions, e), () => Wr(this.subscriptions, e);
|
3537
3537
|
}
|
3538
3538
|
notify(e, n, r) {
|
3539
3539
|
const i = this.subscriptions.length;
|
@@ -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;
|
@@ -3622,7 +3622,7 @@ class rd {
|
|
3622
3622
|
return process.env.NODE_ENV !== "production" && Cn(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", e);
|
3623
3623
|
}
|
3624
3624
|
on(e, n) {
|
3625
|
-
this.events[e] || (this.events[e] = new
|
3625
|
+
this.events[e] || (this.events[e] = new zr());
|
3626
3626
|
const r = this.events[e].add(n);
|
3627
3627
|
return e === "change" ? () => {
|
3628
3628
|
r(), j.read(() => {
|
@@ -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);
|
@@ -3785,21 +3785,21 @@ function ld(t, e, n, r, i) {
|
|
3785
3785
|
while (Math.abs(s) > od && ++a < ad);
|
3786
3786
|
return o;
|
3787
3787
|
}
|
3788
|
-
function
|
3788
|
+
function ze(t, e, n, r) {
|
3789
3789
|
if (t === e && n === r)
|
3790
3790
|
return ct;
|
3791
3791
|
const i = (s) => ld(s, 0, 1, t, n);
|
3792
3792
|
return (s) => s === 0 || s === 1 ? s : Oo(i(s), e, r);
|
3793
3793
|
}
|
3794
|
-
const _o = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, Bo = (t) => (e) => 1 - t(1 - e), Fo = /* @__PURE__ */
|
3794
|
+
const _o = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, Bo = (t) => (e) => 1 - t(1 - e), Fo = /* @__PURE__ */ ze(0.33, 1.53, 0.69, 0.99), Gr = /* @__PURE__ */ Bo(Fo), Io = /* @__PURE__ */ _o(Gr), jo = (t) => (t *= 2) < 1 ? 0.5 * Gr(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), Hr = (t) => 1 - Math.sin(Math.acos(t)), No = Bo(Hr), Uo = _o(Hr), Wo = (t) => /^0[^.\s]+$/u.test(t);
|
3795
3795
|
function cd(t) {
|
3796
|
-
return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" ||
|
3796
|
+
return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || Wo(t) : !0;
|
3797
3797
|
}
|
3798
3798
|
const Ve = (t) => Math.round(t * 1e5) / 1e5, Kr = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
|
3799
3799
|
function ud(t) {
|
3800
3800
|
return t == null;
|
3801
3801
|
}
|
3802
|
-
const dd = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, Yr = (t, e) => (n) => !!(typeof n == "string" && dd.test(n) && n.startsWith(t) || e && !ud(n) && Object.prototype.hasOwnProperty.call(n, e)),
|
3802
|
+
const dd = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, Yr = (t, e) => (n) => !!(typeof n == "string" && dd.test(n) && n.startsWith(t) || e && !ud(n) && Object.prototype.hasOwnProperty.call(n, e)), zo = (t, e, n) => (r) => {
|
3803
3803
|
if (typeof r != "string")
|
3804
3804
|
return r;
|
3805
3805
|
const [i, s, o, a] = r.match(Kr);
|
@@ -3814,7 +3814,7 @@ const dd = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
|
|
3814
3814
|
transform: (t) => Math.round(fd(t))
|
3815
3815
|
}, Zt = {
|
3816
3816
|
test: /* @__PURE__ */ Yr("rgb", "red"),
|
3817
|
-
parse: /* @__PURE__ */
|
3817
|
+
parse: /* @__PURE__ */ zo("red", "green", "blue"),
|
3818
3818
|
transform: ({ red: t, green: e, blue: n, alpha: r = 1 }) => "rgba(" + Fn.transform(t) + ", " + Fn.transform(e) + ", " + Fn.transform(n) + ", " + Ve(Be.transform(r)) + ")"
|
3819
3819
|
};
|
3820
3820
|
function hd(t) {
|
@@ -3832,8 +3832,8 @@ const sr = {
|
|
3832
3832
|
transform: Zt.transform
|
3833
3833
|
}, re = {
|
3834
3834
|
test: /* @__PURE__ */ Yr("hsl", "hue"),
|
3835
|
-
parse: /* @__PURE__ */
|
3836
|
-
transform: ({ hue: t, saturation: e, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(t) + ", " +
|
3835
|
+
parse: /* @__PURE__ */ zo("hue", "saturation", "lightness"),
|
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),
|
@@ -3874,7 +3874,7 @@ function xd(t) {
|
|
3874
3874
|
const e = Ho(t);
|
3875
3875
|
return Ko(t)(e.map(bd));
|
3876
3876
|
}
|
3877
|
-
const
|
3877
|
+
const Wt = {
|
3878
3878
|
test: md,
|
3879
3879
|
parse: Ho,
|
3880
3880
|
createTransformer: Ko,
|
@@ -3892,7 +3892,7 @@ function wd(t) {
|
|
3892
3892
|
return r !== n && (s *= 100), e + "(" + s + i + ")";
|
3893
3893
|
}
|
3894
3894
|
const Td = /\b([a-z-]*)\(.*?\)/gu, or = {
|
3895
|
-
...
|
3895
|
+
...Wt,
|
3896
3896
|
getAnimatableNone: (t) => {
|
3897
3897
|
const e = t.match(Td);
|
3898
3898
|
return e ? e.map(wd).join(" ") : t;
|
@@ -3916,7 +3916,7 @@ const Td = /\b([a-z-]*)\(.*?\)/gu, or = {
|
|
3916
3916
|
}, Xr = (t) => Pd[t];
|
3917
3917
|
function Yo(t, e) {
|
3918
3918
|
let n = Xr(t);
|
3919
|
-
return n !== or && (n =
|
3919
|
+
return n !== or && (n = Wt), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
|
3920
3920
|
}
|
3921
3921
|
const Cd = /* @__PURE__ */ new Set(["auto", "none", "0"]);
|
3922
3922
|
function Ad(t, e, n) {
|
@@ -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);
|
@@ -4115,7 +4115,7 @@ class na extends Zr {
|
|
4115
4115
|
}
|
4116
4116
|
}
|
4117
4117
|
const Ii = (t, e) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
|
4118
|
-
(
|
4118
|
+
(Wt.test(t) || t === "0") && // And it contains numbers and/or colors
|
4119
4119
|
!t.startsWith("url("));
|
4120
4120
|
function Od(t) {
|
4121
4121
|
const e = t[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)
|
@@ -4255,14 +4255,14 @@ const Ni = (t, e) => {
|
|
4255
4255
|
const i = { ...n };
|
4256
4256
|
return (s) => (i.red = jn(n.red, r.red, s), i.green = jn(n.green, r.green, s), i.blue = jn(n.blue, r.blue, s), i.alpha = U(n.alpha, r.alpha, s), Zt.transform(i));
|
4257
4257
|
}, Ud = (t, e) => (n) => e(t(n)), qe = (...t) => t.reduce(Ud), cr = /* @__PURE__ */ new Set(["none", "hidden"]);
|
4258
|
-
function
|
4258
|
+
function Wd(t, e) {
|
4259
4259
|
return cr.has(t) ? (n) => n <= 0 ? t : e : (n) => n >= 1 ? e : t;
|
4260
4260
|
}
|
4261
|
-
function
|
4261
|
+
function zd(t, e) {
|
4262
4262
|
return (n) => U(t, e, n);
|
4263
4263
|
}
|
4264
4264
|
function Jr(t) {
|
4265
|
-
return typeof t == "number" ?
|
4265
|
+
return typeof t == "number" ? zd : typeof t == "string" ? Er(t) ? yn : Z.test(t) ? Ni : Hd : Array.isArray(t) ? ia : typeof t == "object" ? Z.test(t) ? Ni : qd : yn;
|
4266
4266
|
}
|
4267
4267
|
function ia(t, e) {
|
4268
4268
|
const n = [...t], r = n.length, i = t.map((s, o) => Jr(s)(s, e[o]));
|
@@ -4292,8 +4292,8 @@ function Gd(t, e) {
|
|
4292
4292
|
return r;
|
4293
4293
|
}
|
4294
4294
|
const Hd = (t, e) => {
|
4295
|
-
const n =
|
4296
|
-
return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? cr.has(t) && !i.values.length || cr.has(e) && !r.values.length ?
|
4295
|
+
const n = Wt.createTransformer(e), r = je(t), i = je(e);
|
4296
|
+
return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? cr.has(t) && !i.values.length || cr.has(e) && !r.values.length ? Wd(t, e) : qe(ia(Gd(r, i), i.values), n) : (ge(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), yn(t, e));
|
4297
4297
|
};
|
4298
4298
|
function sa(t, e, n) {
|
4299
4299
|
return typeof t == "number" && typeof e == "number" && typeof n == "number" ? U(t, e, n) : Jr(t)(t, e);
|
@@ -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,
|
@@ -4376,7 +4376,7 @@ function ur(t, e) {
|
|
4376
4376
|
return t * Math.sqrt(1 - e * e);
|
4377
4377
|
}
|
4378
4378
|
const Jd = ["duration", "bounce"], Qd = ["stiffness", "damping", "mass"];
|
4379
|
-
function
|
4379
|
+
function Wi(t, e) {
|
4380
4380
|
return e.some((n) => t[n] !== void 0);
|
4381
4381
|
}
|
4382
4382
|
function tf(t) {
|
@@ -4388,7 +4388,7 @@ function tf(t) {
|
|
4388
4388
|
isResolvedFromDuration: !1,
|
4389
4389
|
...t
|
4390
4390
|
};
|
4391
|
-
if (!
|
4391
|
+
if (!Wi(t, Qd) && Wi(t, Jd))
|
4392
4392
|
if (t.visualDuration) {
|
4393
4393
|
const n = t.visualDuration, r = 2 * Math.PI / (n * 1.2), i = r * r, s = 2 * $t(0.05, 1, 1 - (t.bounce || 0)) * Math.sqrt(i);
|
4394
4394
|
e = {
|
@@ -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
|
}
|
@@ -4456,7 +4456,7 @@ function aa(t = N.visualDuration, e = N.bounce) {
|
|
4456
4456
|
};
|
4457
4457
|
return C;
|
4458
4458
|
}
|
4459
|
-
function
|
4459
|
+
function zi({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: s = 500, modifyTarget: o, min: a, max: l, restDelta: c = 0.5, restSpeed: u }) {
|
4460
4460
|
const d = t[0], f = {
|
4461
4461
|
done: !1,
|
4462
4462
|
value: d
|
@@ -4488,7 +4488,7 @@ function Wi({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: r = 3
|
|
4488
4488
|
}
|
4489
4489
|
};
|
4490
4490
|
}
|
4491
|
-
const ef = /* @__PURE__ */
|
4491
|
+
const ef = /* @__PURE__ */ ze(0.42, 0, 1, 1), nf = /* @__PURE__ */ ze(0, 0, 0.58, 1), la = /* @__PURE__ */ ze(0.42, 0, 0.58, 1), rf = (t) => Array.isArray(t) && typeof t[0] != "number", qi = {
|
4492
4492
|
linear: ct,
|
4493
4493
|
easeIn: ef,
|
4494
4494
|
easeInOut: la,
|
@@ -4502,11 +4502,11 @@ const ef = /* @__PURE__ */ We(0.42, 0, 1, 1), nf = /* @__PURE__ */ We(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
|
-
return
|
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,11 +4584,11 @@ 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
|
-
decay:
|
4591
|
-
inertia:
|
4590
|
+
decay: zi,
|
4591
|
+
inertia: zi,
|
4592
4592
|
tween: Re,
|
4593
4593
|
keyframes: Re,
|
4594
4594
|
spring: aa
|
@@ -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);
|
@@ -5119,7 +5119,7 @@ function $f(t) {
|
|
5119
5119
|
const T = Array.isArray(w) ? w : [w];
|
5120
5120
|
let P = T.reduce(i(v), {});
|
5121
5121
|
m === !1 && (P = {});
|
5122
|
-
const { prevResolvedValues: k = {} } = S,
|
5122
|
+
const { prevResolvedValues: k = {} } = S, W = {
|
5123
5123
|
...k,
|
5124
5124
|
...P
|
5125
5125
|
}, Q = (D) => {
|
@@ -5127,7 +5127,7 @@ function $f(t) {
|
|
5127
5127
|
const I = t.getValue(D);
|
5128
5128
|
I && (I.liveStyle = !1);
|
5129
5129
|
};
|
5130
|
-
for (const D in
|
5130
|
+
for (const D in W) {
|
5131
5131
|
const I = P[D], st = k[D];
|
5132
5132
|
if (h.hasOwnProperty(D))
|
5133
5133
|
continue;
|
@@ -5198,14 +5198,14 @@ function Ki() {
|
|
5198
5198
|
exit: Kt()
|
5199
5199
|
};
|
5200
5200
|
}
|
5201
|
-
class
|
5201
|
+
class zt {
|
5202
5202
|
constructor(e) {
|
5203
5203
|
this.isMounted = !1, this.node = e;
|
5204
5204
|
}
|
5205
5205
|
update() {
|
5206
5206
|
}
|
5207
5207
|
}
|
5208
|
-
class _f extends
|
5208
|
+
class _f extends zt {
|
5209
5209
|
/**
|
5210
5210
|
* We dynamically generate the AnimationState manager as it contains a reference
|
5211
5211
|
* to the underlying animation library. We only want to load that if we load this,
|
@@ -5234,7 +5234,7 @@ class _f extends Wt {
|
|
5234
5234
|
}
|
5235
5235
|
}
|
5236
5236
|
let Bf = 0;
|
5237
|
-
class Ff extends
|
5237
|
+
class Ff extends zt {
|
5238
5238
|
constructor() {
|
5239
5239
|
super(...arguments), this.id = Bf++;
|
5240
5240
|
}
|
@@ -5299,7 +5299,7 @@ function Uf(t, e) {
|
|
5299
5299
|
right: r.x
|
5300
5300
|
};
|
5301
5301
|
}
|
5302
|
-
const ma = 1e-4,
|
5302
|
+
const ma = 1e-4, Wf = 1 - ma, zf = 1 + ma, ga = 0.01, qf = 0 - ga, Gf = 0 + ga;
|
5303
5303
|
function it(t) {
|
5304
5304
|
return t.max - t.min;
|
5305
5305
|
}
|
@@ -5307,7 +5307,7 @@ function Hf(t, e, n) {
|
|
5307
5307
|
return Math.abs(t - e) <= n;
|
5308
5308
|
}
|
5309
5309
|
function Yi(t, e, n, r = 0.5) {
|
5310
|
-
t.origin = r, t.originPoint = U(e.min, e.max, t.origin), t.scale = it(n) / it(e), t.translate = U(n.min, n.max, t.origin) - t.originPoint, (t.scale >=
|
5310
|
+
t.origin = r, t.originPoint = U(e.min, e.max, t.origin), t.scale = it(n) / it(e), t.translate = U(n.min, n.max, t.origin) - t.originPoint, (t.scale >= Wf && t.scale <= zf || isNaN(t.scale)) && (t.scale = 1), (t.translate >= qf && t.translate <= Gf || isNaN(t.translate)) && (t.translate = 0);
|
5311
5311
|
}
|
5312
5312
|
function Ee(t, e, n, r) {
|
5313
5313
|
Yi(t.x, e.x, n.x, r ? r.originX : void 0), Yi(t.y, e.y, n.y, r ? r.originY : void 0);
|
@@ -5332,7 +5332,7 @@ const Ji = () => ({
|
|
5332
5332
|
}), se = () => ({
|
5333
5333
|
x: Ji(),
|
5334
5334
|
y: Ji()
|
5335
|
-
}), Qi = () => ({ min: 0, max: 0 }),
|
5335
|
+
}), Qi = () => ({ min: 0, max: 0 }), z = () => ({
|
5336
5336
|
x: Qi(),
|
5337
5337
|
y: Qi()
|
5338
5338
|
});
|
@@ -5411,7 +5411,7 @@ class xa {
|
|
5411
5411
|
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.updatePoint = () => {
|
5412
5412
|
if (!(this.lastMoveEvent && this.lastMoveEventInfo))
|
5413
5413
|
return;
|
5414
|
-
const u =
|
5414
|
+
const u = Wn(this.lastMoveEventInfo, this.history), d = this.startEvent !== null, f = Zf(u.offset, { x: 0, y: 0 }) >= 3;
|
5415
5415
|
if (!d && !f)
|
5416
5416
|
return;
|
5417
5417
|
const { point: h } = u, { timestamp: p } = H;
|
@@ -5431,7 +5431,7 @@ class xa {
|
|
5431
5431
|
const { onEnd: f, onSessionEnd: h, resumeAnimation: p } = this.handlers;
|
5432
5432
|
if (this.dragSnapToOrigin && p && p(), !(this.lastMoveEvent && this.lastMoveEventInfo))
|
5433
5433
|
return;
|
5434
|
-
const g =
|
5434
|
+
const g = Wn(u.type === "pointercancel" || u.type === "lostpointercapture" ? this.lastMoveEventInfo : Un(d, this.transformPagePoint), this.history);
|
5435
5435
|
this.startEvent && f && f(u, g), h && h(u, g);
|
5436
5436
|
}, !Nr(e))
|
5437
5437
|
return;
|
@@ -5439,7 +5439,7 @@ class xa {
|
|
5439
5439
|
const s = Ge(e), o = Un(s, this.transformPagePoint), { point: a } = o, { timestamp: l } = H;
|
5440
5440
|
this.history = [{ ...a, timestamp: l }];
|
5441
5441
|
const { onSessionStart: c } = n;
|
5442
|
-
c && c(e,
|
5442
|
+
c && c(e, Wn(o, this.history)), gn(e, "set"), this.removeListeners = qe(ie(e.currentTarget, "pointermove", this.handlePointerMove), ie(e.currentTarget, "pointerup", this.handlePointerUp), ie(e.currentTarget, "pointercancel", this.handlePointerUp), ie(e.currentTarget, "lostpointercapture", this.handlePointerUp));
|
5443
5443
|
}
|
5444
5444
|
updateHandlers(e) {
|
5445
5445
|
this.handlers = e;
|
@@ -5454,7 +5454,7 @@ function Un(t, e) {
|
|
5454
5454
|
function os(t, e) {
|
5455
5455
|
return { x: t.x - e.x, y: t.y - e.y };
|
5456
5456
|
}
|
5457
|
-
function
|
5457
|
+
function Wn({ point: t }, e) {
|
5458
5458
|
return {
|
5459
5459
|
point: t,
|
5460
5460
|
delta: os(t, Sa(e)),
|
@@ -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 };
|
@@ -5539,7 +5539,7 @@ function us(t, e) {
|
|
5539
5539
|
const oh = /* @__PURE__ */ new WeakMap();
|
5540
5540
|
class ah {
|
5541
5541
|
constructor(e) {
|
5542
|
-
this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic =
|
5542
|
+
this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = z(), this.visualElement = e;
|
5543
5543
|
}
|
5544
5544
|
start(e, { snapToCursor: n = !1 } = {}) {
|
5545
5545
|
const { presenceContext: r } = this.visualElement;
|
@@ -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;
|
@@ -5768,7 +5768,7 @@ function lh(t, e = 10) {
|
|
5768
5768
|
let n = null;
|
5769
5769
|
return Math.abs(t.y) > e ? n = "y" : Math.abs(t.x) > e && (n = "x"), n;
|
5770
5770
|
}
|
5771
|
-
class ch extends
|
5771
|
+
class ch extends zt {
|
5772
5772
|
constructor(e) {
|
5773
5773
|
super(e), this.removeGroupControls = ct, this.removeListeners = ct, this.controls = new ah(e);
|
5774
5774
|
}
|
@@ -5783,7 +5783,7 @@ class ch extends Wt {
|
|
5783
5783
|
const ds = (t) => (e, n) => {
|
5784
5784
|
t && j.postRender(() => t(e, n));
|
5785
5785
|
};
|
5786
|
-
class uh extends
|
5786
|
+
class uh extends zt {
|
5787
5787
|
constructor() {
|
5788
5788
|
super(...arguments), this.removePointerDownListener = ct;
|
5789
5789
|
}
|
@@ -5842,10 +5842,10 @@ const we = {
|
|
5842
5842
|
}
|
5843
5843
|
}, dh = {
|
5844
5844
|
correct: (t, { treeScale: e, projectionDelta: n }) => {
|
5845
|
-
const r = t, i =
|
5845
|
+
const r = t, i = Wt.parse(t);
|
5846
5846
|
if (i.length > 5)
|
5847
5847
|
return r;
|
5848
|
-
const s =
|
5848
|
+
const s = Wt.createTransformer(t), o = typeof i[0] != "number" ? 1 : 0, a = n.x.scale * e.x, l = n.y.scale * e.y;
|
5849
5849
|
i[0 + o] /= a, i[1 + o] /= l;
|
5850
5850
|
const c = U(a, l, 0.5);
|
5851
5851
|
return typeof i[2 + o] == "number" && (i[2 + o] /= c), typeof i[3 + o] == "number" && (i[3 + o] /= c), s(i);
|
@@ -5927,14 +5927,14 @@ class yh {
|
|
5927
5927
|
Ur(this.children, e), this.isDirty = !0;
|
5928
5928
|
}
|
5929
5929
|
remove(e) {
|
5930
|
-
|
5930
|
+
Wr(this.children, e), this.isDirty = !0;
|
5931
5931
|
}
|
5932
5932
|
forEach(e) {
|
5933
5933
|
this.isDirty && this.children.sort(gh), this.isDirty = !1, this.children.forEach(e);
|
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);
|
@@ -6021,7 +6021,7 @@ class Vh {
|
|
6021
6021
|
Ur(this.members, e), e.scheduleRender();
|
6022
6022
|
}
|
6023
6023
|
remove(e) {
|
6024
|
-
if (
|
6024
|
+
if (Wr(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
|
6025
6025
|
const n = this.members[this.members.length - 1];
|
6026
6026
|
n && this.promote(n);
|
6027
6027
|
}
|
@@ -6077,7 +6077,7 @@ function Rh(t, e, n) {
|
|
6077
6077
|
const a = t.x.scale * e.x, l = t.y.scale * e.y;
|
6078
6078
|
return (a !== 1 || l !== 1) && (r += `scale(${a}, ${l})`), r || "none";
|
6079
6079
|
}
|
6080
|
-
const
|
6080
|
+
const zn = ["", "X", "Y", "Z"], Eh = { visibility: "hidden" }, As = 1e3;
|
6081
6081
|
let Mh = 0;
|
6082
6082
|
function qn(t, e, n, r) {
|
6083
6083
|
const { latestValues: i } = e;
|
@@ -6110,7 +6110,7 @@ function Ra({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
6110
6110
|
this.root === this && (this.nodes = new yh());
|
6111
6111
|
}
|
6112
6112
|
addEventListener(o, a) {
|
6113
|
-
return this.eventHandlers.has(o) || this.eventHandlers.set(o, new
|
6113
|
+
return this.eventHandlers.has(o) || this.eventHandlers.set(o, new zr()), this.eventHandlers.get(o).add(a);
|
6114
6114
|
}
|
6115
6115
|
notifyListeners(o, ...a) {
|
6116
6116
|
const l = this.eventHandlers.get(o);
|
@@ -6139,7 +6139,7 @@ function Ra({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
6139
6139
|
this.target = void 0, this.relativeTarget = void 0;
|
6140
6140
|
return;
|
6141
6141
|
}
|
6142
|
-
const g = this.options.transition || u.getDefaultTransition() ||
|
6142
|
+
const g = this.options.transition || u.getDefaultTransition() || zh, { onLayoutAnimationStart: x, onLayoutAnimationComplete: v } = u.getProps(), S = !this.targetLayout || !Aa(this.targetLayout, p), w = !f && h;
|
6143
6143
|
if (this.options.layoutRoot || this.resumeFrom || w || f && (S || !this.currentAnimation)) {
|
6144
6144
|
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(d, w);
|
6145
6145
|
const C = {
|
@@ -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() {
|
@@ -6233,7 +6233,7 @@ function Ra({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
6233
6233
|
for (let l = 0; l < this.path.length; l++)
|
6234
6234
|
this.path[l].updateScroll();
|
6235
6235
|
const o = this.layout;
|
6236
|
-
this.layout = this.measure(!1), this.layoutCorrected =
|
6236
|
+
this.layout = this.measure(!1), this.layoutCorrected = z(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
|
6237
6237
|
const { visualElement: a } = this.options;
|
6238
6238
|
a && a.notify("LayoutMeasure", this.layout.layoutBox, o ? o.layoutBox : void 0);
|
6239
6239
|
}
|
@@ -6271,7 +6271,7 @@ function Ra({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
6271
6271
|
var o;
|
6272
6272
|
const { visualElement: a } = this.options;
|
6273
6273
|
if (!a)
|
6274
|
-
return
|
6274
|
+
return z();
|
6275
6275
|
const l = a.measureViewportBox();
|
6276
6276
|
if (!(((o = this.scroll) === null || o === void 0 ? void 0 : o.wasRoot) || this.path.some(Gh))) {
|
6277
6277
|
const { scroll: u } = this.root;
|
@@ -6281,7 +6281,7 @@ function Ra({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
6281
6281
|
}
|
6282
6282
|
removeElementScroll(o) {
|
6283
6283
|
var a;
|
6284
|
-
const l =
|
6284
|
+
const l = z();
|
6285
6285
|
if (mt(l, o), !((a = this.scroll) === null || a === void 0) && a.wasRoot)
|
6286
6286
|
return l;
|
6287
6287
|
for (let c = 0; c < this.path.length; c++) {
|
@@ -6291,7 +6291,7 @@ function Ra({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
6291
6291
|
return l;
|
6292
6292
|
}
|
6293
6293
|
applyTransform(o, a = !1) {
|
6294
|
-
const l =
|
6294
|
+
const l = z();
|
6295
6295
|
mt(l, o);
|
6296
6296
|
for (let c = 0; c < this.path.length; c++) {
|
6297
6297
|
const u = this.path[c];
|
@@ -6303,14 +6303,14 @@ function Ra({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
6303
6303
|
return Yt(this.latestValues) && ae(l, this.latestValues), l;
|
6304
6304
|
}
|
6305
6305
|
removeTransform(o) {
|
6306
|
-
const a =
|
6306
|
+
const a = z();
|
6307
6307
|
mt(a, o);
|
6308
6308
|
for (let l = 0; l < this.path.length; l++) {
|
6309
6309
|
const c = this.path[l];
|
6310
6310
|
if (!c.instance || !Yt(c.latestValues))
|
6311
6311
|
continue;
|
6312
6312
|
fr(c.latestValues) && c.updateSnapshot();
|
6313
|
-
const u =
|
6313
|
+
const u = z(), d = c.measurePageBox();
|
6314
6314
|
mt(u, d), xs(a, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, u);
|
6315
6315
|
}
|
6316
6316
|
return Yt(this.latestValues) && xs(a, this.latestValues), a;
|
@@ -6342,12 +6342,12 @@ function Ra({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
6342
6342
|
if (!(!this.layout || !(d || f))) {
|
6343
6343
|
if (this.resolvedRelativeTargetAt = H.timestamp, !this.targetDelta && !this.relativeTarget) {
|
6344
6344
|
const h = this.getClosestProjectingParent();
|
6345
|
-
h && h.layout && this.animationProgress !== 1 ? (this.relativeParent = h, this.forceRelativeParentToResolveTarget(), this.relativeTarget =
|
6345
|
+
h && h.layout && this.animationProgress !== 1 ? (this.relativeParent = h, this.forceRelativeParentToResolveTarget(), this.relativeTarget = z(), this.relativeTargetOrigin = z(), Me(this.relativeTargetOrigin, this.layout.layoutBox, h.layout.layoutBox), mt(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
6346
6346
|
}
|
6347
|
-
if (!(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target =
|
6347
|
+
if (!(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = z(), this.targetWithTransforms = z()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Kf(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : mt(this.target, this.layout.layoutBox), va(this.target, this.targetDelta)) : mt(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget)) {
|
6348
6348
|
this.attemptToResolveRelativeTarget = !1;
|
6349
6349
|
const h = this.getClosestProjectingParent();
|
6350
|
-
h && !!h.resumingFrom == !!this.resumingFrom && !h.options.layoutScroll && h.target && this.animationProgress !== 1 ? (this.relativeParent = h, this.forceRelativeParentToResolveTarget(), this.relativeTarget =
|
6350
|
+
h && !!h.resumingFrom == !!this.resumingFrom && !h.options.layoutScroll && h.target && this.animationProgress !== 1 ? (this.relativeParent = h, this.forceRelativeParentToResolveTarget(), this.relativeTarget = z(), this.relativeTargetOrigin = z(), Me(this.relativeTargetOrigin, this.target, h.target), mt(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
6351
6351
|
}
|
6352
6352
|
}
|
6353
6353
|
}
|
@@ -6369,7 +6369,7 @@ function Ra({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
6369
6369
|
return;
|
6370
6370
|
mt(this.layoutCorrected, this.layout.layoutBox);
|
6371
6371
|
const f = this.treeScale.x, h = this.treeScale.y;
|
6372
|
-
Yf(this.layoutCorrected, this.treeScale, this.path, l), a.layout && !a.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (a.target = a.layout.layoutBox, a.targetWithTransforms =
|
6372
|
+
Yf(this.layoutCorrected, this.treeScale, this.path, l), a.layout && !a.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (a.target = a.layout.layoutBox, a.targetWithTransforms = z());
|
6373
6373
|
const { target: p } = a;
|
6374
6374
|
if (!p) {
|
6375
6375
|
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
|
@@ -6397,12 +6397,12 @@ function Ra({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
6397
6397
|
setAnimationOrigin(o, a = !1) {
|
6398
6398
|
const l = this.snapshot, c = l ? l.latestValues : {}, u = { ...this.latestValues }, d = se();
|
6399
6399
|
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
|
6400
|
-
const f =
|
6400
|
+
const f = z(), h = l ? l.source : void 0, p = this.layout ? this.layout.source : void 0, g = h !== p, x = this.getStack(), v = !x || x.members.length <= 1, S = !!(g && !v && this.options.crossfade === !0 && !this.path.some(Wh));
|
6401
6401
|
this.animationProgress = 0;
|
6402
6402
|
let w;
|
6403
6403
|
this.mixTargetDelta = (C) => {
|
6404
6404
|
const m = C / 1e3;
|
6405
|
-
Es(d.x, o.x, m), Es(d.y, o.y, m), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Me(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Uh(this.relativeTarget, this.relativeTargetOrigin, f, m), w && Ah(this.relativeTarget, w) && (this.isProjectionDirty = !1), w || (w =
|
6405
|
+
Es(d.x, o.x, m), Es(d.y, o.y, m), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Me(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Uh(this.relativeTarget, this.relativeTargetOrigin, f, m), w && Ah(this.relativeTarget, w) && (this.isProjectionDirty = !1), w || (w = z()), mt(w, this.relativeTarget)), g && (this.animationValues = u, xh(u, c, this.latestValues, m, S, v)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = m;
|
6406
6406
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
6407
6407
|
}
|
6408
6408
|
startAnimation(o) {
|
@@ -6433,7 +6433,7 @@ function Ra({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
6433
6433
|
let { targetWithTransforms: a, target: l, layout: c, latestValues: u } = o;
|
6434
6434
|
if (!(!a || !l || !c)) {
|
6435
6435
|
if (this !== o && this.layout && c && Ea(this.options.animationType, this.layout.layoutBox, c.layoutBox)) {
|
6436
|
-
l = this.target ||
|
6436
|
+
l = this.target || z();
|
6437
6437
|
const d = it(this.layout.layoutBox.x);
|
6438
6438
|
l.x.min = o.target.x.min, l.x.max = l.x.min + d;
|
6439
6439
|
const f = it(this.layout.layoutBox.y);
|
@@ -6487,8 +6487,8 @@ function Ra({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
6487
6487
|
return;
|
6488
6488
|
const c = {};
|
6489
6489
|
l.z && qn("z", o, c, this.animationValues);
|
6490
|
-
for (let u = 0; u <
|
6491
|
-
qn(`rotate${
|
6490
|
+
for (let u = 0; u < zn.length; u++)
|
6491
|
+
qn(`rotate${zn[u]}`, o, c, this.animationValues), qn(`skew${zn[u]}`, o, c, this.animationValues);
|
6492
6492
|
o.render();
|
6493
6493
|
for (const u in c)
|
6494
6494
|
o.setStaticValue(u, c[u]), this.animationValues && (this.animationValues[u] = c[u]);
|
@@ -6565,9 +6565,9 @@ function Dh(t) {
|
|
6565
6565
|
if (d && !d.resumeFrom) {
|
6566
6566
|
const { snapshot: f, layout: h } = d;
|
6567
6567
|
if (f && h) {
|
6568
|
-
const p =
|
6568
|
+
const p = z();
|
6569
6569
|
Me(p, n.layoutBox, f.layoutBox);
|
6570
|
-
const g =
|
6570
|
+
const g = z();
|
6571
6571
|
Me(g, r, h.layoutBox), Aa(p, g) || (u = !0), d.options.layoutRoot && (t.relativeTarget = g, t.relativeTargetOrigin = p, t.relativeParent = d);
|
6572
6572
|
}
|
6573
6573
|
}
|
@@ -6629,10 +6629,10 @@ function Ms(t, e, n, r) {
|
|
6629
6629
|
function Uh(t, e, n, r) {
|
6630
6630
|
Ms(t.x, e.x, n.x, r), Ms(t.y, e.y, n.y, r);
|
6631
6631
|
}
|
6632
|
-
function
|
6632
|
+
function Wh(t) {
|
6633
6633
|
return t.animationValues && t.animationValues.opacityExit !== void 0;
|
6634
6634
|
}
|
6635
|
-
const
|
6635
|
+
const zh = {
|
6636
6636
|
duration: 0.45,
|
6637
6637
|
ease: [0.4, 0, 0.1, 1]
|
6638
6638
|
}, ks = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), Ds = ks("applewebkit/") && !ks("chrome/") ? Math.round : ct;
|
@@ -6690,7 +6690,7 @@ function $s(t, e, n) {
|
|
6690
6690
|
const i = "onHover" + n, s = r[i];
|
6691
6691
|
s && j.postRender(() => s(e, Ge(e)));
|
6692
6692
|
}
|
6693
|
-
class Yh extends
|
6693
|
+
class Yh extends zt {
|
6694
6694
|
mount() {
|
6695
6695
|
const { current: e } = this.node;
|
6696
6696
|
e && (this.unmount = Ku(e, (n, r) => ($s(this.node, r, "Start"), (i) => $s(this.node, i, "End"))));
|
@@ -6698,7 +6698,7 @@ class Yh extends Wt {
|
|
6698
6698
|
unmount() {
|
6699
6699
|
}
|
6700
6700
|
}
|
6701
|
-
class Xh extends
|
6701
|
+
class Xh extends zt {
|
6702
6702
|
constructor() {
|
6703
6703
|
super(...arguments), this.isActive = !1;
|
6704
6704
|
}
|
@@ -6728,7 +6728,7 @@ function Os(t, e, n) {
|
|
6728
6728
|
const i = "onTap" + (n === "End" ? "" : n), s = r[i];
|
6729
6729
|
s && j.postRender(() => s(e, Ge(e)));
|
6730
6730
|
}
|
6731
|
-
class Zh extends
|
6731
|
+
class Zh extends zt {
|
6732
6732
|
mount() {
|
6733
6733
|
const { current: e } = this.node;
|
6734
6734
|
e && (this.unmount = Ju(e, (n, r) => (Os(this.node, r, "Start"), (i, { success: s }) => Os(this.node, i, s ? "End" : "Cancel")), { useGlobalTarget: this.node.props.globalTapTarget }));
|
@@ -6758,7 +6758,7 @@ const np = {
|
|
6758
6758
|
some: 0,
|
6759
6759
|
all: 1
|
6760
6760
|
};
|
6761
|
-
class rp extends
|
6761
|
+
class rp extends zt {
|
6762
6762
|
constructor() {
|
6763
6763
|
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
|
6764
6764
|
}
|
@@ -6820,7 +6820,7 @@ function ap() {
|
|
6820
6820
|
} else
|
6821
6821
|
gr.current = !1;
|
6822
6822
|
}
|
6823
|
-
const lp = [...ea, Z,
|
6823
|
+
const lp = [...ea, Z, Wt], cp = (t) => lp.find(ta(t)), up = /* @__PURE__ */ new WeakMap();
|
6824
6824
|
function dp(t, e, n) {
|
6825
6825
|
for (const r in e) {
|
6826
6826
|
const i = e[r], s = n[r];
|
@@ -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;
|
@@ -6926,7 +6926,7 @@ class fp {
|
|
6926
6926
|
* removed with a re-render to work.
|
6927
6927
|
*/
|
6928
6928
|
measureViewportBox() {
|
6929
|
-
return this.current ? this.measureInstanceViewportBox(this.current, this.props) :
|
6929
|
+
return this.current ? this.measureInstanceViewportBox(this.current, this.props) : z();
|
6930
6930
|
}
|
6931
6931
|
getStaticValue(e) {
|
6932
6932
|
return this.latestValues[e];
|
@@ -7012,7 +7012,7 @@ class fp {
|
|
7012
7012
|
readValue(e, n) {
|
7013
7013
|
var r;
|
7014
7014
|
let i = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : (r = this.getBaseTargetFromProps(this.props, e)) !== null && r !== void 0 ? r : this.readValueFromInstance(this.current, e, this.options);
|
7015
|
-
return i != null && (typeof i == "string" && (Jo(i) ||
|
7015
|
+
return i != null && (typeof i == "string" && (Jo(i) || Wo(i)) ? i = parseFloat(i) : !cp(i) && Wt.test(n) && (i = Yo(e, n)), this.setBaseTarget(e, J(i) ? i.get() : i)), J(i) ? i.get() : i;
|
7016
7016
|
}
|
7017
7017
|
/**
|
7018
7018
|
* Set the base target to later animate back to. This is currently
|
@@ -7039,7 +7039,7 @@ class fp {
|
|
7039
7039
|
return s !== void 0 && !J(s) ? s : this.initialValues[e] !== void 0 && i === void 0 ? void 0 : this.baseTarget[e];
|
7040
7040
|
}
|
7041
7041
|
on(e, n) {
|
7042
|
-
return this.events[e] || (this.events[e] = new
|
7042
|
+
return this.events[e] || (this.events[e] = new zr()), this.events[e].add(n);
|
7043
7043
|
}
|
7044
7044
|
notify(e, ...n) {
|
7045
7045
|
this.events[e] && this.events[e].notify(...n);
|
@@ -7094,7 +7094,7 @@ class pp extends Da {
|
|
7094
7094
|
}
|
7095
7095
|
class mp extends Da {
|
7096
7096
|
constructor() {
|
7097
|
-
super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox =
|
7097
|
+
super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = z, this.updateDimensions = () => {
|
7098
7098
|
this.current && !this.renderState.dimensions && bo(this.current, this.renderState);
|
7099
7099
|
};
|
7100
7100
|
}
|
@@ -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(
|
@@ -7358,7 +7358,7 @@ const Mm = ({
|
|
7358
7358
|
}
|
7359
7359
|
);
|
7360
7360
|
var It = { font: "var(--k6gj0i0)", color: "var(--k6gj0i1)", border: "var(--k6gj0i2)", borderRadius: "var(--k6gj0i3)", backgroundColor: "var(--k6gj0i4)", padding: "var(--k6gj0i5)", placeholderColor: "var(--k6gj0i6)", placeholderOpacity: "var(--k6gj0i7)" }, km = "k6gj0i9", ei = /* @__PURE__ */ ((t) => (t.Text = "text", t.Email = "email", t.Search = "search", t.Number = "number", t.Hidden = "hidden", t.Password = "password", t))(ei || {});
|
7361
|
-
const
|
7361
|
+
const Wp = ({
|
7362
7362
|
name: t,
|
7363
7363
|
value: e = "",
|
7364
7364
|
type: n = ei.Text,
|
@@ -7391,7 +7391,7 @@ const zp = ({
|
|
7391
7391
|
}
|
7392
7392
|
);
|
7393
7393
|
var jt = { font: "var(--l5ei120)", color: "var(--l5ei121)", border: "var(--l5ei122)", borderRadius: "var(--l5ei123)", padding: "var(--l5ei124)", backgroundColor: "var(--l5ei125)", placeholderColor: "var(--l5ei126)", placeholderOpacity: "var(--l5ei127)" }, Dm = "l5ei129";
|
7394
|
-
const
|
7394
|
+
const zp = ({
|
7395
7395
|
name: t,
|
7396
7396
|
value: e,
|
7397
7397
|
rows: n = 2,
|
@@ -7465,7 +7465,7 @@ const $m = ({
|
|
7465
7465
|
[Gp.errorColor]: l.form.error.color
|
7466
7466
|
}), children: [
|
7467
7467
|
e && /* @__PURE__ */ A(qp, { className: "", theme: l, label: e, name: t, required: i }),
|
7468
|
-
u === La.Textarea ? /* @__PURE__ */ A(
|
7468
|
+
u === La.Textarea ? /* @__PURE__ */ A(zp, { className: "", value: n, rows: r, name: t, theme: l, onChange: c, disabled: s, placeholder: o }) : /* @__PURE__ */ A(Wp, { className: "", value: n, type: u, name: t, theme: l, onChange: c, disabled: s, placeholder: o }),
|
7469
7469
|
a && /* @__PURE__ */ A("div", { children: a instanceof Array ? a.map((f, h) => /* @__PURE__ */ A("span", { children: f }, h)) : a })
|
7470
7470
|
] });
|
7471
7471
|
var kt = { overlayBlur: "var(--pewdww0)", overlayOpacity: "var(--pewdww1)", overlayBackgroundColor: "var(--pewdww2)", width: "var(--pewdww3)", backgroundColor: "var(--pewdww4)", borderRadius: "var(--pewdww5)", borders: "var(--pewdww6)", actionsGap: "var(--pewdww7)", actionsPaddingTop: "var(--pewdww8)" }, Om = "pewdww9";
|
@@ -7573,10 +7573,10 @@ export {
|
|
7573
7573
|
un as SectionAlign,
|
7574
7574
|
Sm as SectionStyles,
|
7575
7575
|
$m as TextField,
|
7576
|
-
|
7576
|
+
Wp as TextFieldInput,
|
7577
7577
|
qp as TextFieldLabel,
|
7578
7578
|
Lm as TextFieldLabelStyles,
|
7579
|
-
|
7579
|
+
zp as TextFieldTextarea,
|
7580
7580
|
Dm as TextareaStyles,
|
7581
7581
|
La as TextareaType,
|
7582
7582
|
xc as Video,
|