@vezham/react 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index-C596pC5H.mjs +5 -0
- package/index-CtNwlvY7.mjs +172 -0
- package/{index-D2G6wdWd.mjs → index-DgpLwlNM.mjs} +19235 -19189
- package/index.mjs +141 -141
- package/package.json +1 -1
- package/src-UW24ZMRV-BnIaFoa8.mjs +5 -0
- package/index-7B4t6veU.mjs +0 -5
- package/index-BAWdDJfN.mjs +0 -1379
- package/src-UW24ZMRV-oILT09MT.mjs +0 -5
package/index-BAWdDJfN.mjs
DELETED
|
@@ -1,1379 +0,0 @@
|
|
|
1
|
-
import { c as Pt, m as Dt, a as ye, s as $, b as Rt, n as ie, e as Ft, f as qe, g as et, l as zt, h as Wt, i as Bt, j as Ht, k as A, o as ae, r as ce, p as tt, v as _t, q as nt, t as st, u as ot, w as ue, x as Gt, y as kt, z as v, A as le, B as rt, C as Y, M as fe, D, E as Nt, F as pe, G as jt, H as Ut, I as Yt, J as it, K as at, L as b, N as Xt, O as ct, P as $t, Q as Kt, R as ut, V as lt, S as ft, T as Jt, U as Qt, W as Zt, X as oe, Y as qt, Z as en, _ as tn, $ as dt, a0 as nn, a1 as sn, a2 as on, a3 as ve, a4 as rn, a5 as Re, a6 as an, a7 as cn, a8 as un, a9 as mt, aa as q, ab as ln, ac as we, ad as fn, ae as dn, af as mn, ag as pn, ah as hn, ai as gn, aj as yn, ak as vn } from "./index-D2G6wdWd.mjs";
|
|
2
|
-
import { ay as zo, al as Wo, aN as Bo, aM as Ho, aK as _o, am as Go, an as ko, ax as No, aP as jo, aL as Uo, ap as Yo, aq as Xo, aD as $o, aY as Ko, aZ as Jo, a_ as Qo, a$ as Zo, aE as qo, ar as er, b0 as tr, b1 as nr, b2 as sr, aF as or, aG as rr, aB as ir, b3 as ar, aO as cr, b9 as ur, ba as lr, d as fr, au as dr, b4 as mr, b5 as pr, b6 as hr, as as gr, aI as yr, aQ as vr, aU as wr, at as Sr, aR as Ar, aC as Er, aV as br, ao as Mr, b7 as xr, aW as Vr, aJ as Cr, aX as Ir, aS as Tr, aH as Or, aw as Lr, b8 as Pr, aT as Dr, az as Rr, aA as Fr, av as zr } from "./index-D2G6wdWd.mjs";
|
|
3
|
-
import * as wn from "react";
|
|
4
|
-
import { useEffect as O, useInsertionEffect as pt, useContext as F, useState as K, useRef as P, useCallback as ht, useLayoutEffect as Sn, createContext as An, forwardRef as gt } from "react";
|
|
5
|
-
import { jsx as re } from "react/jsx-runtime";
|
|
6
|
-
function yt(e, t = 100, n) {
|
|
7
|
-
const s = n({ ...e, keyframes: [0, t] }), o = Math.min(Pt(s), Dt);
|
|
8
|
-
return {
|
|
9
|
-
type: "keyframes",
|
|
10
|
-
ease: (r) => s.next(o * r).value / t,
|
|
11
|
-
duration: ye(o)
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
class En {
|
|
15
|
-
constructor(t) {
|
|
16
|
-
this.animation = t;
|
|
17
|
-
}
|
|
18
|
-
get duration() {
|
|
19
|
-
var t, n, s;
|
|
20
|
-
const o = ((n = (t = this.animation) === null || t === void 0 ? void 0 : t.effect) === null || n === void 0 ? void 0 : n.getComputedTiming().duration) || ((s = this.options) === null || s === void 0 ? void 0 : s.duration) || 300;
|
|
21
|
-
return ye(Number(o));
|
|
22
|
-
}
|
|
23
|
-
get time() {
|
|
24
|
-
var t;
|
|
25
|
-
return this.animation ? ye(((t = this.animation) === null || t === void 0 ? void 0 : t.currentTime) || 0) : 0;
|
|
26
|
-
}
|
|
27
|
-
set time(t) {
|
|
28
|
-
this.animation && (this.animation.currentTime = $(t));
|
|
29
|
-
}
|
|
30
|
-
get speed() {
|
|
31
|
-
return this.animation ? this.animation.playbackRate : 1;
|
|
32
|
-
}
|
|
33
|
-
set speed(t) {
|
|
34
|
-
this.animation && (this.animation.playbackRate = t);
|
|
35
|
-
}
|
|
36
|
-
get state() {
|
|
37
|
-
return this.animation ? this.animation.playState : "finished";
|
|
38
|
-
}
|
|
39
|
-
get startTime() {
|
|
40
|
-
return this.animation ? this.animation.startTime : null;
|
|
41
|
-
}
|
|
42
|
-
get finished() {
|
|
43
|
-
return this.animation ? this.animation.finished : Promise.resolve();
|
|
44
|
-
}
|
|
45
|
-
play() {
|
|
46
|
-
this.animation && this.animation.play();
|
|
47
|
-
}
|
|
48
|
-
pause() {
|
|
49
|
-
this.animation && this.animation.pause();
|
|
50
|
-
}
|
|
51
|
-
stop() {
|
|
52
|
-
!this.animation || this.state === "idle" || this.state === "finished" || (this.animation.commitStyles && this.animation.commitStyles(), this.cancel());
|
|
53
|
-
}
|
|
54
|
-
flatten() {
|
|
55
|
-
var t, n;
|
|
56
|
-
!this.animation || !(!((t = this.options) === null || t === void 0) && t.allowFlatten) || (n = this.animation.effect) === null || n === void 0 || n.updateTiming({ easing: "linear" });
|
|
57
|
-
}
|
|
58
|
-
attachTimeline(t) {
|
|
59
|
-
return this.animation && Rt(this.animation, t), ie;
|
|
60
|
-
}
|
|
61
|
-
complete() {
|
|
62
|
-
this.animation && this.animation.finish();
|
|
63
|
-
}
|
|
64
|
-
cancel() {
|
|
65
|
-
try {
|
|
66
|
-
this.animation && this.animation.cancel();
|
|
67
|
-
} catch {
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
const bn = /* @__PURE__ */ Ft({
|
|
72
|
-
...qe,
|
|
73
|
-
...Bt,
|
|
74
|
-
...Wt,
|
|
75
|
-
...zt
|
|
76
|
-
}, et), vt = /* @__PURE__ */ Ht(bn);
|
|
77
|
-
function wt(e) {
|
|
78
|
-
return O(() => () => e(), []);
|
|
79
|
-
}
|
|
80
|
-
const oo = {
|
|
81
|
-
renderer: et,
|
|
82
|
-
...qe
|
|
83
|
-
};
|
|
84
|
-
function Mn(e, t, n) {
|
|
85
|
-
pt(() => e.on(t, n), [e, t, n]);
|
|
86
|
-
}
|
|
87
|
-
function St(e, t) {
|
|
88
|
-
let n;
|
|
89
|
-
const s = () => {
|
|
90
|
-
const { currentTime: o } = t, i = (o === null ? 0 : o.value) / 100;
|
|
91
|
-
n !== i && e(i), n = i;
|
|
92
|
-
};
|
|
93
|
-
return A.update(s, !0), () => ae(s);
|
|
94
|
-
}
|
|
95
|
-
const ee = /* @__PURE__ */ new WeakMap();
|
|
96
|
-
let T;
|
|
97
|
-
function xn(e, t) {
|
|
98
|
-
if (t) {
|
|
99
|
-
const { inlineSize: n, blockSize: s } = t[0];
|
|
100
|
-
return { width: n, height: s };
|
|
101
|
-
} else return e instanceof SVGElement && "getBBox" in e ? e.getBBox() : {
|
|
102
|
-
width: e.offsetWidth,
|
|
103
|
-
height: e.offsetHeight
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
|
-
function Vn({ target: e, contentRect: t, borderBoxSize: n }) {
|
|
107
|
-
var s;
|
|
108
|
-
(s = ee.get(e)) === null || s === void 0 || s.forEach((o) => {
|
|
109
|
-
o({
|
|
110
|
-
target: e,
|
|
111
|
-
contentSize: t,
|
|
112
|
-
get size() {
|
|
113
|
-
return xn(e, n);
|
|
114
|
-
}
|
|
115
|
-
});
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
function Cn(e) {
|
|
119
|
-
e.forEach(Vn);
|
|
120
|
-
}
|
|
121
|
-
function In() {
|
|
122
|
-
typeof ResizeObserver > "u" || (T = new ResizeObserver(Cn));
|
|
123
|
-
}
|
|
124
|
-
function Tn(e, t) {
|
|
125
|
-
T || In();
|
|
126
|
-
const n = ce(e);
|
|
127
|
-
return n.forEach((s) => {
|
|
128
|
-
let o = ee.get(s);
|
|
129
|
-
o || (o = /* @__PURE__ */ new Set(), ee.set(s, o)), o.add(t), T == null || T.observe(s);
|
|
130
|
-
}), () => {
|
|
131
|
-
n.forEach((s) => {
|
|
132
|
-
const o = ee.get(s);
|
|
133
|
-
o == null || o.delete(t), o != null && o.size || T == null || T.unobserve(s);
|
|
134
|
-
});
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
const te = /* @__PURE__ */ new Set();
|
|
138
|
-
let X;
|
|
139
|
-
function On() {
|
|
140
|
-
X = () => {
|
|
141
|
-
const e = {
|
|
142
|
-
width: window.innerWidth,
|
|
143
|
-
height: window.innerHeight
|
|
144
|
-
}, t = {
|
|
145
|
-
target: window,
|
|
146
|
-
size: e,
|
|
147
|
-
contentSize: e
|
|
148
|
-
};
|
|
149
|
-
te.forEach((n) => n(t));
|
|
150
|
-
}, window.addEventListener("resize", X);
|
|
151
|
-
}
|
|
152
|
-
function Ln(e) {
|
|
153
|
-
return te.add(e), X || On(), () => {
|
|
154
|
-
te.delete(e), !te.size && X && (X = void 0);
|
|
155
|
-
};
|
|
156
|
-
}
|
|
157
|
-
function Pn(e, t) {
|
|
158
|
-
return typeof e == "function" ? Ln(e) : Tn(e, t);
|
|
159
|
-
}
|
|
160
|
-
const Dn = 50, Fe = () => ({
|
|
161
|
-
current: 0,
|
|
162
|
-
offset: [],
|
|
163
|
-
progress: 0,
|
|
164
|
-
scrollLength: 0,
|
|
165
|
-
targetOffset: 0,
|
|
166
|
-
targetLength: 0,
|
|
167
|
-
containerLength: 0,
|
|
168
|
-
velocity: 0
|
|
169
|
-
}), Rn = () => ({
|
|
170
|
-
time: 0,
|
|
171
|
-
x: Fe(),
|
|
172
|
-
y: Fe()
|
|
173
|
-
}), Fn = {
|
|
174
|
-
x: {
|
|
175
|
-
length: "Width",
|
|
176
|
-
position: "Left"
|
|
177
|
-
},
|
|
178
|
-
y: {
|
|
179
|
-
length: "Height",
|
|
180
|
-
position: "Top"
|
|
181
|
-
}
|
|
182
|
-
};
|
|
183
|
-
function ze(e, t, n, s) {
|
|
184
|
-
const o = n[t], { length: r, position: i } = Fn[t], u = o.current, a = n.time;
|
|
185
|
-
o.current = e[`scroll${i}`], o.scrollLength = e[`scroll${r}`] - e[`client${r}`], o.offset.length = 0, o.offset[0] = 0, o.offset[1] = o.scrollLength, o.progress = tt(0, o.scrollLength, o.current);
|
|
186
|
-
const c = s - a;
|
|
187
|
-
o.velocity = c > Dn ? 0 : _t(o.current - u, c);
|
|
188
|
-
}
|
|
189
|
-
function zn(e, t, n) {
|
|
190
|
-
ze(e, "x", t, n), ze(e, "y", t, n), t.time = n;
|
|
191
|
-
}
|
|
192
|
-
function Wn(e, t) {
|
|
193
|
-
const n = { x: 0, y: 0 };
|
|
194
|
-
let s = e;
|
|
195
|
-
for (; s && s !== t; )
|
|
196
|
-
if (s instanceof HTMLElement)
|
|
197
|
-
n.x += s.offsetLeft, n.y += s.offsetTop, s = s.offsetParent;
|
|
198
|
-
else if (s.tagName === "svg") {
|
|
199
|
-
const o = s.getBoundingClientRect();
|
|
200
|
-
s = s.parentElement;
|
|
201
|
-
const r = s.getBoundingClientRect();
|
|
202
|
-
n.x += o.left - r.left, n.y += o.top - r.top;
|
|
203
|
-
} else if (s instanceof SVGGraphicsElement) {
|
|
204
|
-
const { x: o, y: r } = s.getBBox();
|
|
205
|
-
n.x += o, n.y += r;
|
|
206
|
-
let i = null, u = s.parentNode;
|
|
207
|
-
for (; !i; )
|
|
208
|
-
u.tagName === "svg" && (i = u), u = s.parentNode;
|
|
209
|
-
s = i;
|
|
210
|
-
} else
|
|
211
|
-
break;
|
|
212
|
-
return n;
|
|
213
|
-
}
|
|
214
|
-
const Se = {
|
|
215
|
-
start: 0,
|
|
216
|
-
center: 0.5,
|
|
217
|
-
end: 1
|
|
218
|
-
};
|
|
219
|
-
function We(e, t, n = 0) {
|
|
220
|
-
let s = 0;
|
|
221
|
-
if (e in Se && (e = Se[e]), typeof e == "string") {
|
|
222
|
-
const o = parseFloat(e);
|
|
223
|
-
e.endsWith("px") ? s = o : e.endsWith("%") ? e = o / 100 : e.endsWith("vw") ? s = o / 100 * document.documentElement.clientWidth : e.endsWith("vh") ? s = o / 100 * document.documentElement.clientHeight : e = o;
|
|
224
|
-
}
|
|
225
|
-
return typeof e == "number" && (s = t * e), n + s;
|
|
226
|
-
}
|
|
227
|
-
const Bn = [0, 0];
|
|
228
|
-
function Hn(e, t, n, s) {
|
|
229
|
-
let o = Array.isArray(e) ? e : Bn, r = 0, i = 0;
|
|
230
|
-
return typeof e == "number" ? o = [e, e] : typeof e == "string" && (e = e.trim(), e.includes(" ") ? o = e.split(" ") : o = [e, Se[e] ? e : "0"]), r = We(o[0], n, s), i = We(o[1], t), r - i;
|
|
231
|
-
}
|
|
232
|
-
const _n = {
|
|
233
|
-
All: [
|
|
234
|
-
[0, 0],
|
|
235
|
-
[1, 1]
|
|
236
|
-
]
|
|
237
|
-
}, Gn = { x: 0, y: 0 };
|
|
238
|
-
function kn(e) {
|
|
239
|
-
return "getBBox" in e && e.tagName !== "svg" ? e.getBBox() : { width: e.clientWidth, height: e.clientHeight };
|
|
240
|
-
}
|
|
241
|
-
function Nn(e, t, n) {
|
|
242
|
-
const { offset: s = _n.All } = n, { target: o = e, axis: r = "y" } = n, i = r === "y" ? "height" : "width", u = o !== e ? Wn(o, e) : Gn, a = o === e ? { width: e.scrollWidth, height: e.scrollHeight } : kn(o), c = {
|
|
243
|
-
width: e.clientWidth,
|
|
244
|
-
height: e.clientHeight
|
|
245
|
-
};
|
|
246
|
-
t[r].offset.length = 0;
|
|
247
|
-
let l = !t[r].interpolate;
|
|
248
|
-
const d = s.length;
|
|
249
|
-
for (let f = 0; f < d; f++) {
|
|
250
|
-
const m = Hn(s[f], c[i], a[i], u[r]);
|
|
251
|
-
!l && m !== t[r].interpolatorOffsets[f] && (l = !0), t[r].offset[f] = m;
|
|
252
|
-
}
|
|
253
|
-
l && (t[r].interpolate = nt(t[r].offset, st(s), { clamp: !1 }), t[r].interpolatorOffsets = [...t[r].offset]), t[r].progress = ot(0, 1, t[r].interpolate(t[r].current));
|
|
254
|
-
}
|
|
255
|
-
function jn(e, t = e, n) {
|
|
256
|
-
if (n.x.targetOffset = 0, n.y.targetOffset = 0, t !== e) {
|
|
257
|
-
let s = t;
|
|
258
|
-
for (; s && s !== e; )
|
|
259
|
-
n.x.targetOffset += s.offsetLeft, n.y.targetOffset += s.offsetTop, s = s.offsetParent;
|
|
260
|
-
}
|
|
261
|
-
n.x.targetLength = t === e ? t.scrollWidth : t.clientWidth, n.y.targetLength = t === e ? t.scrollHeight : t.clientHeight, n.x.containerLength = e.clientWidth, n.y.containerLength = e.clientHeight, process.env.NODE_ENV !== "production" && e && t && t !== e && ue(getComputedStyle(e).position !== "static", "Please ensure that the container has a non-static position, like 'relative', 'fixed', or 'absolute' to ensure scroll offset is calculated correctly.");
|
|
262
|
-
}
|
|
263
|
-
function Un(e, t, n, s = {}) {
|
|
264
|
-
return {
|
|
265
|
-
measure: () => jn(e, s.target, n),
|
|
266
|
-
update: (o) => {
|
|
267
|
-
zn(e, n, o), (s.offset || s.target) && Nn(e, n, s);
|
|
268
|
-
},
|
|
269
|
-
notify: () => t(n)
|
|
270
|
-
};
|
|
271
|
-
}
|
|
272
|
-
const j = /* @__PURE__ */ new WeakMap(), Be = /* @__PURE__ */ new WeakMap(), he = /* @__PURE__ */ new WeakMap(), He = (e) => e === document.documentElement ? window : e;
|
|
273
|
-
function xe(e, { container: t = document.documentElement, ...n } = {}) {
|
|
274
|
-
let s = he.get(t);
|
|
275
|
-
s || (s = /* @__PURE__ */ new Set(), he.set(t, s));
|
|
276
|
-
const o = Rn(), r = Un(t, e, o, n);
|
|
277
|
-
if (s.add(r), !j.has(t)) {
|
|
278
|
-
const u = () => {
|
|
279
|
-
for (const f of s)
|
|
280
|
-
f.measure();
|
|
281
|
-
}, a = () => {
|
|
282
|
-
for (const f of s)
|
|
283
|
-
f.update(Gt.timestamp);
|
|
284
|
-
}, c = () => {
|
|
285
|
-
for (const f of s)
|
|
286
|
-
f.notify();
|
|
287
|
-
}, l = () => {
|
|
288
|
-
A.read(u, !1, !0), A.read(a, !1, !0), A.update(c, !1, !0);
|
|
289
|
-
};
|
|
290
|
-
j.set(t, l);
|
|
291
|
-
const d = He(t);
|
|
292
|
-
window.addEventListener("resize", l, { passive: !0 }), t !== document.documentElement && Be.set(t, Pn(t, l)), d.addEventListener("scroll", l, { passive: !0 });
|
|
293
|
-
}
|
|
294
|
-
const i = j.get(t);
|
|
295
|
-
return A.read(i, !1, !0), () => {
|
|
296
|
-
var u;
|
|
297
|
-
ae(i);
|
|
298
|
-
const a = he.get(t);
|
|
299
|
-
if (!a || (a.delete(r), a.size))
|
|
300
|
-
return;
|
|
301
|
-
const c = j.get(t);
|
|
302
|
-
j.delete(t), c && (He(t).removeEventListener("scroll", c), (u = Be.get(t)) === null || u === void 0 || u(), window.removeEventListener("resize", c));
|
|
303
|
-
};
|
|
304
|
-
}
|
|
305
|
-
function Yn({ source: e, container: t, axis: n = "y" }) {
|
|
306
|
-
e && (t = e);
|
|
307
|
-
const s = { value: 0 }, o = xe((r) => {
|
|
308
|
-
s.value = r[n].progress * 100;
|
|
309
|
-
}, { container: t, axis: n });
|
|
310
|
-
return { currentTime: s, cancel: o };
|
|
311
|
-
}
|
|
312
|
-
const ge = /* @__PURE__ */ new Map();
|
|
313
|
-
function At({ source: e, container: t = document.documentElement, axis: n = "y" } = {}) {
|
|
314
|
-
e && (t = e), ge.has(t) || ge.set(t, {});
|
|
315
|
-
const s = ge.get(t);
|
|
316
|
-
return s[n] || (s[n] = kt() ? new ScrollTimeline({ source: t, axis: n }) : Yn({ source: t, axis: n })), s[n];
|
|
317
|
-
}
|
|
318
|
-
function Xn(e) {
|
|
319
|
-
return e.length === 2;
|
|
320
|
-
}
|
|
321
|
-
function Et(e) {
|
|
322
|
-
return e && (e.target || e.offset);
|
|
323
|
-
}
|
|
324
|
-
function $n(e, t) {
|
|
325
|
-
return Xn(e) || Et(t) ? xe((n) => {
|
|
326
|
-
e(n[t.axis].progress, n);
|
|
327
|
-
}, t) : St(e, At(t));
|
|
328
|
-
}
|
|
329
|
-
function Kn(e, t) {
|
|
330
|
-
if (e.flatten(), Et(t))
|
|
331
|
-
return e.pause(), xe((n) => {
|
|
332
|
-
e.time = e.duration * n[t.axis].progress;
|
|
333
|
-
}, t);
|
|
334
|
-
{
|
|
335
|
-
const n = At(t);
|
|
336
|
-
return e.attachTimeline ? e.attachTimeline(n, (s) => (s.pause(), St((o) => {
|
|
337
|
-
s.time = s.duration * o;
|
|
338
|
-
}, n))) : ie;
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
function Jn(e, { axis: t = "y", ...n } = {}) {
|
|
342
|
-
const s = { axis: t, ...n };
|
|
343
|
-
return typeof e == "function" ? $n(e, s) : Kn(e, s);
|
|
344
|
-
}
|
|
345
|
-
function _e(e, t) {
|
|
346
|
-
rt(!!(!t || t.current), `You have defined a ${e} options but the provided ref is not yet hydrated, probably because it's defined higher up the tree. Try calling useScroll() in the same component as the ref, or setting its \`layoutEffect: false\` option.`);
|
|
347
|
-
}
|
|
348
|
-
const Qn = () => ({
|
|
349
|
-
scrollX: Y(0),
|
|
350
|
-
scrollY: Y(0),
|
|
351
|
-
scrollXProgress: Y(0),
|
|
352
|
-
scrollYProgress: Y(0)
|
|
353
|
-
});
|
|
354
|
-
function bt({ container: e, target: t, layoutEffect: n = !0, ...s } = {}) {
|
|
355
|
-
const o = v(Qn);
|
|
356
|
-
return (n ? le : O)(() => (_e("target", t), _e("container", e), Jn((i, { x: u, y: a }) => {
|
|
357
|
-
o.scrollX.set(u.current), o.scrollXProgress.set(u.progress), o.scrollY.set(a.current), o.scrollYProgress.set(a.progress);
|
|
358
|
-
}, {
|
|
359
|
-
...s,
|
|
360
|
-
container: (e == null ? void 0 : e.current) || void 0,
|
|
361
|
-
target: (t == null ? void 0 : t.current) || void 0
|
|
362
|
-
})), [e, t, JSON.stringify(s.offset)]), o;
|
|
363
|
-
}
|
|
364
|
-
function ro(e) {
|
|
365
|
-
return process.env.NODE_ENV === "development" && ue(!1, "useElementScroll is deprecated. Convert to useScroll({ container: ref })."), bt({ container: e });
|
|
366
|
-
}
|
|
367
|
-
function io() {
|
|
368
|
-
return process.env.NODE_ENV !== "production" && ue(!1, "useViewportScroll is deprecated. Convert to useScroll()."), bt();
|
|
369
|
-
}
|
|
370
|
-
function R(e) {
|
|
371
|
-
const t = v(() => Y(e)), { isStatic: n } = F(fe);
|
|
372
|
-
if (n) {
|
|
373
|
-
const [, s] = K(e);
|
|
374
|
-
O(() => t.on("change", s), []);
|
|
375
|
-
}
|
|
376
|
-
return t;
|
|
377
|
-
}
|
|
378
|
-
function Ve(e, t) {
|
|
379
|
-
const n = R(t()), s = () => n.set(t());
|
|
380
|
-
return s(), le(() => {
|
|
381
|
-
const o = () => A.preRender(s, !1, !0), r = e.map((i) => i.on("change", o));
|
|
382
|
-
return () => {
|
|
383
|
-
r.forEach((i) => i()), ae(s);
|
|
384
|
-
};
|
|
385
|
-
}), n;
|
|
386
|
-
}
|
|
387
|
-
function ao(e, ...t) {
|
|
388
|
-
const n = e.length;
|
|
389
|
-
function s() {
|
|
390
|
-
let o = "";
|
|
391
|
-
for (let r = 0; r < n; r++) {
|
|
392
|
-
o += e[r];
|
|
393
|
-
const i = t[r];
|
|
394
|
-
i && (o += D(i) ? i.get() : i);
|
|
395
|
-
}
|
|
396
|
-
return o;
|
|
397
|
-
}
|
|
398
|
-
return Ve(t.filter(D), s);
|
|
399
|
-
}
|
|
400
|
-
function co(e, t = {}) {
|
|
401
|
-
const { isStatic: n } = F(fe), s = P(null), o = v(() => D(e) ? e.get() : e), r = v(() => typeof o == "string" ? o.replace(/[\d.-]/g, "") : void 0), i = R(o), u = P(o), a = P(ie), c = () => {
|
|
402
|
-
l(), s.current = Nt({
|
|
403
|
-
keyframes: [ke(i.get()), ke(u.current)],
|
|
404
|
-
velocity: i.getVelocity(),
|
|
405
|
-
type: "spring",
|
|
406
|
-
restDelta: 1e-3,
|
|
407
|
-
restSpeed: 0.01,
|
|
408
|
-
...t,
|
|
409
|
-
onUpdate: a.current
|
|
410
|
-
});
|
|
411
|
-
}, l = () => {
|
|
412
|
-
s.current && s.current.stop();
|
|
413
|
-
};
|
|
414
|
-
return pt(() => i.attach((d, f) => n ? f(d) : (u.current = d, a.current = (m) => f(Ge(m, r)), A.postRender(c), i.get()), l), [JSON.stringify(t)]), le(() => {
|
|
415
|
-
if (D(e))
|
|
416
|
-
return e.on("change", (d) => i.set(Ge(d, r)));
|
|
417
|
-
}, [i, r]), i;
|
|
418
|
-
}
|
|
419
|
-
function Ge(e, t) {
|
|
420
|
-
return t ? e + t : e;
|
|
421
|
-
}
|
|
422
|
-
function ke(e) {
|
|
423
|
-
return typeof e == "number" ? e : parseFloat(e);
|
|
424
|
-
}
|
|
425
|
-
function Zn(e) {
|
|
426
|
-
const t = P(0), { isStatic: n } = F(fe);
|
|
427
|
-
O(() => {
|
|
428
|
-
if (n)
|
|
429
|
-
return;
|
|
430
|
-
const s = ({ timestamp: o, delta: r }) => {
|
|
431
|
-
t.current || (t.current = o), e(o - t.current, r);
|
|
432
|
-
};
|
|
433
|
-
return A.update(s, !0), () => ae(s);
|
|
434
|
-
}, [e]);
|
|
435
|
-
}
|
|
436
|
-
function uo() {
|
|
437
|
-
const e = R(0);
|
|
438
|
-
return Zn((t) => e.set(t)), e;
|
|
439
|
-
}
|
|
440
|
-
const qn = (e) => e && typeof e == "object" && e.mix, es = (e) => qn(e) ? e.mix : void 0;
|
|
441
|
-
function ts(...e) {
|
|
442
|
-
const t = !Array.isArray(e[0]), n = t ? 0 : -1, s = e[0 + n], o = e[1 + n], r = e[2 + n], i = e[3 + n], u = nt(o, r, {
|
|
443
|
-
mixer: es(r[0]),
|
|
444
|
-
...i
|
|
445
|
-
});
|
|
446
|
-
return t ? u(s) : u;
|
|
447
|
-
}
|
|
448
|
-
function ns(e) {
|
|
449
|
-
pe.current = [], e();
|
|
450
|
-
const t = Ve(pe.current, e);
|
|
451
|
-
return pe.current = void 0, t;
|
|
452
|
-
}
|
|
453
|
-
function Ae(e, t, n, s) {
|
|
454
|
-
if (typeof e == "function")
|
|
455
|
-
return ns(e);
|
|
456
|
-
const o = typeof t == "function" ? t : ts(t, n, s);
|
|
457
|
-
return Array.isArray(e) ? Ne(e, o) : Ne([e], ([r]) => o(r));
|
|
458
|
-
}
|
|
459
|
-
function Ne(e, t) {
|
|
460
|
-
const n = v(() => []);
|
|
461
|
-
return Ve(e, () => {
|
|
462
|
-
n.length = 0;
|
|
463
|
-
const s = e.length;
|
|
464
|
-
for (let o = 0; o < s; o++)
|
|
465
|
-
n[o] = e[o].get();
|
|
466
|
-
return t(n);
|
|
467
|
-
});
|
|
468
|
-
}
|
|
469
|
-
function lo(e) {
|
|
470
|
-
const t = R(e.getVelocity()), n = () => {
|
|
471
|
-
const s = e.getVelocity();
|
|
472
|
-
t.set(s), s && A.update(n);
|
|
473
|
-
};
|
|
474
|
-
return Mn(e, "change", () => {
|
|
475
|
-
A.update(n, !1, !0);
|
|
476
|
-
}), t;
|
|
477
|
-
}
|
|
478
|
-
function ss() {
|
|
479
|
-
!jt.current && Ut();
|
|
480
|
-
const [e] = K(Yt.current);
|
|
481
|
-
return process.env.NODE_ENV !== "production" && ue(e !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), e;
|
|
482
|
-
}
|
|
483
|
-
function fo() {
|
|
484
|
-
const e = ss(), { reducedMotion: t } = F(fe);
|
|
485
|
-
return t === "never" ? !1 : t === "always" ? !0 : e;
|
|
486
|
-
}
|
|
487
|
-
function os(e) {
|
|
488
|
-
e.values.forEach((t) => t.stop());
|
|
489
|
-
}
|
|
490
|
-
function Ee(e, t) {
|
|
491
|
-
[...t].reverse().forEach((s) => {
|
|
492
|
-
const o = e.getVariant(s);
|
|
493
|
-
o && at(e, o), e.variantChildren && e.variantChildren.forEach((r) => {
|
|
494
|
-
Ee(r, t);
|
|
495
|
-
});
|
|
496
|
-
});
|
|
497
|
-
}
|
|
498
|
-
function rs(e, t) {
|
|
499
|
-
if (Array.isArray(t))
|
|
500
|
-
return Ee(e, t);
|
|
501
|
-
if (typeof t == "string")
|
|
502
|
-
return Ee(e, [t]);
|
|
503
|
-
at(e, t);
|
|
504
|
-
}
|
|
505
|
-
function is() {
|
|
506
|
-
let e = !1;
|
|
507
|
-
const t = /* @__PURE__ */ new Set(), n = {
|
|
508
|
-
subscribe(s) {
|
|
509
|
-
return t.add(s), () => void t.delete(s);
|
|
510
|
-
},
|
|
511
|
-
start(s, o) {
|
|
512
|
-
b(e, "controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");
|
|
513
|
-
const r = [];
|
|
514
|
-
return t.forEach((i) => {
|
|
515
|
-
r.push(it(i, s, {
|
|
516
|
-
transitionOverride: o
|
|
517
|
-
}));
|
|
518
|
-
}), Promise.all(r);
|
|
519
|
-
},
|
|
520
|
-
set(s) {
|
|
521
|
-
return b(e, "controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."), t.forEach((o) => {
|
|
522
|
-
rs(o, s);
|
|
523
|
-
});
|
|
524
|
-
},
|
|
525
|
-
stop() {
|
|
526
|
-
t.forEach((s) => {
|
|
527
|
-
os(s);
|
|
528
|
-
});
|
|
529
|
-
},
|
|
530
|
-
mount() {
|
|
531
|
-
return e = !0, () => {
|
|
532
|
-
e = !1, n.stop();
|
|
533
|
-
};
|
|
534
|
-
}
|
|
535
|
-
};
|
|
536
|
-
return n;
|
|
537
|
-
}
|
|
538
|
-
const Mt = (e, t, n) => {
|
|
539
|
-
const s = t - e;
|
|
540
|
-
return ((n - e) % s + s) % s + e;
|
|
541
|
-
};
|
|
542
|
-
function xt(e, t) {
|
|
543
|
-
return Xt(e) ? e[Mt(0, e.length, t)] : e;
|
|
544
|
-
}
|
|
545
|
-
function Ce(e) {
|
|
546
|
-
return typeof e == "object" && !Array.isArray(e);
|
|
547
|
-
}
|
|
548
|
-
function Vt(e, t, n, s) {
|
|
549
|
-
return typeof e == "string" && Ce(t) ? ce(e, n, s) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e : [e];
|
|
550
|
-
}
|
|
551
|
-
function as(e, t, n) {
|
|
552
|
-
return e * (t + 1);
|
|
553
|
-
}
|
|
554
|
-
function je(e, t, n, s) {
|
|
555
|
-
var o;
|
|
556
|
-
return typeof t == "number" ? t : t.startsWith("-") || t.startsWith("+") ? Math.max(0, e + parseFloat(t)) : t === "<" ? n : (o = s.get(t)) !== null && o !== void 0 ? o : e;
|
|
557
|
-
}
|
|
558
|
-
function cs(e, t, n) {
|
|
559
|
-
for (let s = 0; s < e.length; s++) {
|
|
560
|
-
const o = e[s];
|
|
561
|
-
o.at > t && o.at < n && ($t(e, o), s--);
|
|
562
|
-
}
|
|
563
|
-
}
|
|
564
|
-
function us(e, t, n, s, o, r) {
|
|
565
|
-
cs(e, o, r);
|
|
566
|
-
for (let i = 0; i < t.length; i++)
|
|
567
|
-
e.push({
|
|
568
|
-
value: t[i],
|
|
569
|
-
at: ct(o, r, s[i]),
|
|
570
|
-
easing: xt(n, i)
|
|
571
|
-
});
|
|
572
|
-
}
|
|
573
|
-
function ls(e, t) {
|
|
574
|
-
for (let n = 0; n < e.length; n++)
|
|
575
|
-
e[n] = e[n] / (t + 1);
|
|
576
|
-
}
|
|
577
|
-
function fs(e, t) {
|
|
578
|
-
return e.at === t.at ? e.value === null ? 1 : t.value === null ? -1 : 0 : e.at - t.at;
|
|
579
|
-
}
|
|
580
|
-
const ds = "easeInOut", ms = 20;
|
|
581
|
-
function ps(e, { defaultTransition: t = {}, ...n } = {}, s, o) {
|
|
582
|
-
const r = t.duration || 0.3, i = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map(), a = {}, c = /* @__PURE__ */ new Map();
|
|
583
|
-
let l = 0, d = 0, f = 0;
|
|
584
|
-
for (let m = 0; m < e.length; m++) {
|
|
585
|
-
const p = e[m];
|
|
586
|
-
if (typeof p == "string") {
|
|
587
|
-
c.set(p, d);
|
|
588
|
-
continue;
|
|
589
|
-
} else if (!Array.isArray(p)) {
|
|
590
|
-
c.set(p.name, je(d, p.at, l, c));
|
|
591
|
-
continue;
|
|
592
|
-
}
|
|
593
|
-
let [h, g, y = {}] = p;
|
|
594
|
-
y.at !== void 0 && (d = je(d, y.at, l, c));
|
|
595
|
-
let w = 0;
|
|
596
|
-
const z = (M, x, C, B = 0, H = 0) => {
|
|
597
|
-
const S = hs(M), { delay: de = 0, times: V = st(S), type: me = "keyframes", repeat: _, repeatType: qs, repeatDelay: eo = 0, ...Lt } = x;
|
|
598
|
-
let { ease: I = t.ease || "easeOut", duration: E } = x;
|
|
599
|
-
const Ie = typeof de == "function" ? de(B, H) : de, Te = S.length, Oe = ut(me) ? me : o == null ? void 0 : o[me];
|
|
600
|
-
if (Te <= 2 && Oe) {
|
|
601
|
-
let G = 100;
|
|
602
|
-
if (Te === 2 && vs(S)) {
|
|
603
|
-
const k = S[1] - S[0];
|
|
604
|
-
G = Math.abs(k);
|
|
605
|
-
}
|
|
606
|
-
const J = { ...Lt };
|
|
607
|
-
E !== void 0 && (J.duration = $(E));
|
|
608
|
-
const Q = yt(J, G, Oe);
|
|
609
|
-
I = Q.ease, E = Q.duration;
|
|
610
|
-
}
|
|
611
|
-
E ?? (E = r);
|
|
612
|
-
const Le = d + Ie;
|
|
613
|
-
V.length === 1 && V[0] === 0 && (V[1] = 1);
|
|
614
|
-
const Pe = V.length - S.length;
|
|
615
|
-
if (Pe > 0 && Kt(V, Pe), S.length === 1 && S.unshift(null), _) {
|
|
616
|
-
b(_ < ms, "Repeat count too high, must be less than 20"), E = as(E, _);
|
|
617
|
-
const G = [...S], J = [...V];
|
|
618
|
-
I = Array.isArray(I) ? [...I] : [I];
|
|
619
|
-
const Q = [...I];
|
|
620
|
-
for (let k = 0; k < _; k++) {
|
|
621
|
-
S.push(...G);
|
|
622
|
-
for (let N = 0; N < G.length; N++)
|
|
623
|
-
V.push(J[N] + (k + 1)), I.push(N === 0 ? "linear" : xt(Q, N - 1));
|
|
624
|
-
}
|
|
625
|
-
ls(V, _);
|
|
626
|
-
}
|
|
627
|
-
const De = Le + E;
|
|
628
|
-
us(C, S, I, V, Le, De), w = Math.max(Ie + E, w), f = Math.max(De, f);
|
|
629
|
-
};
|
|
630
|
-
if (D(h)) {
|
|
631
|
-
const M = Ue(h, u);
|
|
632
|
-
z(g, y, Ye("default", M));
|
|
633
|
-
} else {
|
|
634
|
-
const M = Vt(h, g, s, a), x = M.length;
|
|
635
|
-
for (let C = 0; C < x; C++) {
|
|
636
|
-
g = g, y = y;
|
|
637
|
-
const B = M[C], H = Ue(B, u);
|
|
638
|
-
for (const S in g)
|
|
639
|
-
z(g[S], gs(y, S), Ye(S, H), C, x);
|
|
640
|
-
}
|
|
641
|
-
}
|
|
642
|
-
l = d, d += w;
|
|
643
|
-
}
|
|
644
|
-
return u.forEach((m, p) => {
|
|
645
|
-
for (const h in m) {
|
|
646
|
-
const g = m[h];
|
|
647
|
-
g.sort(fs);
|
|
648
|
-
const y = [], w = [], z = [];
|
|
649
|
-
for (let x = 0; x < g.length; x++) {
|
|
650
|
-
const { at: C, value: B, easing: H } = g[x];
|
|
651
|
-
y.push(B), w.push(tt(0, f, C)), z.push(H || "easeOut");
|
|
652
|
-
}
|
|
653
|
-
w[0] !== 0 && (w.unshift(0), y.unshift(y[0]), z.unshift(ds)), w[w.length - 1] !== 1 && (w.push(1), y.push(null)), i.has(p) || i.set(p, {
|
|
654
|
-
keyframes: {},
|
|
655
|
-
transition: {}
|
|
656
|
-
});
|
|
657
|
-
const M = i.get(p);
|
|
658
|
-
M.keyframes[h] = y, M.transition[h] = {
|
|
659
|
-
...t,
|
|
660
|
-
duration: f,
|
|
661
|
-
ease: z,
|
|
662
|
-
times: w,
|
|
663
|
-
...n
|
|
664
|
-
};
|
|
665
|
-
}
|
|
666
|
-
}), i;
|
|
667
|
-
}
|
|
668
|
-
function Ue(e, t) {
|
|
669
|
-
return !t.has(e) && t.set(e, {}), t.get(e);
|
|
670
|
-
}
|
|
671
|
-
function Ye(e, t) {
|
|
672
|
-
return t[e] || (t[e] = []), t[e];
|
|
673
|
-
}
|
|
674
|
-
function hs(e) {
|
|
675
|
-
return Array.isArray(e) ? e : [e];
|
|
676
|
-
}
|
|
677
|
-
function gs(e, t) {
|
|
678
|
-
return e && e[t] ? {
|
|
679
|
-
...e,
|
|
680
|
-
...e[t]
|
|
681
|
-
} : { ...e };
|
|
682
|
-
}
|
|
683
|
-
const ys = (e) => typeof e == "number", vs = (e) => e.every(ys);
|
|
684
|
-
function ws(e, t) {
|
|
685
|
-
return e in t;
|
|
686
|
-
}
|
|
687
|
-
class Ss extends lt {
|
|
688
|
-
constructor() {
|
|
689
|
-
super(...arguments), this.type = "object";
|
|
690
|
-
}
|
|
691
|
-
readValueFromInstance(t, n) {
|
|
692
|
-
if (ws(n, t)) {
|
|
693
|
-
const s = t[n];
|
|
694
|
-
if (typeof s == "string" || typeof s == "number")
|
|
695
|
-
return s;
|
|
696
|
-
}
|
|
697
|
-
}
|
|
698
|
-
getBaseTargetFromProps() {
|
|
699
|
-
}
|
|
700
|
-
removeValueFromRenderState(t, n) {
|
|
701
|
-
delete n.output[t];
|
|
702
|
-
}
|
|
703
|
-
measureInstanceViewportBox() {
|
|
704
|
-
return ft();
|
|
705
|
-
}
|
|
706
|
-
build(t, n) {
|
|
707
|
-
Object.assign(t.output, n);
|
|
708
|
-
}
|
|
709
|
-
renderInstance(t, { output: n }) {
|
|
710
|
-
Object.assign(t, n);
|
|
711
|
-
}
|
|
712
|
-
sortInstanceNodePosition() {
|
|
713
|
-
return 0;
|
|
714
|
-
}
|
|
715
|
-
}
|
|
716
|
-
function As(e) {
|
|
717
|
-
const t = {
|
|
718
|
-
presenceContext: null,
|
|
719
|
-
props: {},
|
|
720
|
-
visualState: {
|
|
721
|
-
renderState: {
|
|
722
|
-
transform: {},
|
|
723
|
-
transformOrigin: {},
|
|
724
|
-
style: {},
|
|
725
|
-
vars: {},
|
|
726
|
-
attrs: {}
|
|
727
|
-
},
|
|
728
|
-
latestValues: {}
|
|
729
|
-
}
|
|
730
|
-
}, n = Jt(e) ? new Qt(t) : new Zt(t);
|
|
731
|
-
n.mount(e), oe.set(e, n);
|
|
732
|
-
}
|
|
733
|
-
function Es(e) {
|
|
734
|
-
const t = {
|
|
735
|
-
presenceContext: null,
|
|
736
|
-
props: {},
|
|
737
|
-
visualState: {
|
|
738
|
-
renderState: {
|
|
739
|
-
output: {}
|
|
740
|
-
},
|
|
741
|
-
latestValues: {}
|
|
742
|
-
}
|
|
743
|
-
}, n = new Ss(t);
|
|
744
|
-
n.mount(e), oe.set(e, n);
|
|
745
|
-
}
|
|
746
|
-
function bs(e, t) {
|
|
747
|
-
return D(e) || typeof e == "number" || typeof e == "string" && !Ce(t);
|
|
748
|
-
}
|
|
749
|
-
function Ct(e, t, n, s) {
|
|
750
|
-
const o = [];
|
|
751
|
-
if (bs(e, t))
|
|
752
|
-
o.push(qt(e, Ce(t) && t.default || t, n && (n.default || n)));
|
|
753
|
-
else {
|
|
754
|
-
const r = Vt(e, t, s), i = r.length;
|
|
755
|
-
b(!!i, "No valid elements provided.");
|
|
756
|
-
for (let u = 0; u < i; u++) {
|
|
757
|
-
const a = r[u], c = a instanceof Element ? As : Es;
|
|
758
|
-
oe.has(a) || c(a);
|
|
759
|
-
const l = oe.get(a), d = { ...n };
|
|
760
|
-
"delay" in d && typeof d.delay == "function" && (d.delay = d.delay(u, i)), o.push(...en(l, { ...t, transition: d }, {}));
|
|
761
|
-
}
|
|
762
|
-
}
|
|
763
|
-
return o;
|
|
764
|
-
}
|
|
765
|
-
function Ms(e, t, n) {
|
|
766
|
-
const s = [];
|
|
767
|
-
return ps(e, t, n, { spring: tn }).forEach(({ keyframes: r, transition: i }, u) => {
|
|
768
|
-
s.push(...Ct(u, r, i));
|
|
769
|
-
}), s;
|
|
770
|
-
}
|
|
771
|
-
function xs(e) {
|
|
772
|
-
return Array.isArray(e) && e.some(Array.isArray);
|
|
773
|
-
}
|
|
774
|
-
function It(e) {
|
|
775
|
-
function t(n, s, o) {
|
|
776
|
-
let r = [];
|
|
777
|
-
xs(n) ? r = Ms(n, s, e) : r = Ct(n, s, o, e);
|
|
778
|
-
const i = new dt(r);
|
|
779
|
-
return e && e.animations.push(i), i;
|
|
780
|
-
}
|
|
781
|
-
return t;
|
|
782
|
-
}
|
|
783
|
-
const mo = It();
|
|
784
|
-
function po() {
|
|
785
|
-
const e = v(() => ({
|
|
786
|
-
current: null,
|
|
787
|
-
// Will be hydrated by React
|
|
788
|
-
animations: []
|
|
789
|
-
})), t = v(() => It(e));
|
|
790
|
-
return wt(() => {
|
|
791
|
-
e.animations.forEach((n) => n.stop());
|
|
792
|
-
}), [e, t];
|
|
793
|
-
}
|
|
794
|
-
function Vs(e, t, n) {
|
|
795
|
-
e.style.setProperty(t, n);
|
|
796
|
-
}
|
|
797
|
-
function Cs(e, t, n) {
|
|
798
|
-
e.style[t] = n;
|
|
799
|
-
}
|
|
800
|
-
const Is = /* @__PURE__ */ nn(() => {
|
|
801
|
-
try {
|
|
802
|
-
document.createElement("div").animate({ opacity: [1] });
|
|
803
|
-
} catch {
|
|
804
|
-
return !1;
|
|
805
|
-
}
|
|
806
|
-
return !0;
|
|
807
|
-
}), ne = /* @__PURE__ */ new WeakMap();
|
|
808
|
-
function Ts(e, t, n) {
|
|
809
|
-
for (let s = 0; s < t.length; s++)
|
|
810
|
-
t[s] === null && (t[s] = s === 0 ? n() : t[s - 1]), typeof t[s] == "number" && Re[e] && (t[s] = Re[e].transform(t[s]));
|
|
811
|
-
!Is() && t.length < 2 && t.unshift(n());
|
|
812
|
-
}
|
|
813
|
-
const Xe = "easeOut";
|
|
814
|
-
function $e(e) {
|
|
815
|
-
const t = ne.get(e) || /* @__PURE__ */ new Map();
|
|
816
|
-
return ne.set(e, t), ne.get(e);
|
|
817
|
-
}
|
|
818
|
-
class Os extends En {
|
|
819
|
-
constructor(t, n, s, o) {
|
|
820
|
-
const r = n.startsWith("--");
|
|
821
|
-
b(typeof o.type != "string", `animateMini doesn't support "type" as a string. Did you mean to import { spring } from "framer-motion"?`);
|
|
822
|
-
const i = $e(t).get(n);
|
|
823
|
-
i && i.stop();
|
|
824
|
-
const u = () => n.startsWith("--") ? t.style.getPropertyValue(n) : window.getComputedStyle(t)[n];
|
|
825
|
-
if (Array.isArray(s) || (s = [s]), Ts(n, s, u), ut(o.type)) {
|
|
826
|
-
const l = yt(o, 100, o.type);
|
|
827
|
-
o.ease = sn() ? l.ease : Xe, o.duration = $(l.duration), o.type = "keyframes";
|
|
828
|
-
} else
|
|
829
|
-
o.ease = o.ease || Xe;
|
|
830
|
-
const a = () => {
|
|
831
|
-
this.setValue(t, n, rn(s, o)), this.cancel(), this.resolveFinishedPromise();
|
|
832
|
-
}, c = () => {
|
|
833
|
-
this.setValue = r ? Vs : Cs, this.options = o, this.updateFinishedPromise(), this.removeAnimation = () => {
|
|
834
|
-
const l = ne.get(t);
|
|
835
|
-
l && l.delete(n);
|
|
836
|
-
};
|
|
837
|
-
};
|
|
838
|
-
on() ? (super(ve(t, n, s, o)), c(), o.autoplay === !1 && this.animation.pause(), this.animation.onfinish = a, $e(t).set(n, this)) : (super(), c(), a());
|
|
839
|
-
}
|
|
840
|
-
/**
|
|
841
|
-
* Allows the returned animation to be awaited or promise-chained. Currently
|
|
842
|
-
* resolves when the animation finishes at all but in a future update could/should
|
|
843
|
-
* reject if its cancels.
|
|
844
|
-
*/
|
|
845
|
-
then(t, n) {
|
|
846
|
-
return this.currentFinishedPromise.then(t, n);
|
|
847
|
-
}
|
|
848
|
-
updateFinishedPromise() {
|
|
849
|
-
this.currentFinishedPromise = new Promise((t) => {
|
|
850
|
-
this.resolveFinishedPromise = t;
|
|
851
|
-
});
|
|
852
|
-
}
|
|
853
|
-
play() {
|
|
854
|
-
this.state === "finished" && this.updateFinishedPromise(), super.play();
|
|
855
|
-
}
|
|
856
|
-
cancel() {
|
|
857
|
-
this.removeAnimation(), super.cancel();
|
|
858
|
-
}
|
|
859
|
-
}
|
|
860
|
-
function Ls(e, t, n, s) {
|
|
861
|
-
const o = ce(e, s), r = o.length;
|
|
862
|
-
b(!!r, "No valid element provided.");
|
|
863
|
-
const i = [];
|
|
864
|
-
for (let u = 0; u < r; u++) {
|
|
865
|
-
const a = o[u], c = { ...n };
|
|
866
|
-
typeof c.delay == "function" && (c.delay = c.delay(u, r));
|
|
867
|
-
for (const l in t) {
|
|
868
|
-
const d = t[l], f = {
|
|
869
|
-
...an(c, l)
|
|
870
|
-
};
|
|
871
|
-
f.duration = f.duration ? $(f.duration) : f.duration, f.delay = $(f.delay || 0), f.allowFlatten = !c.type && !c.ease, i.push(new Os(a, l, d, f));
|
|
872
|
-
}
|
|
873
|
-
}
|
|
874
|
-
return i;
|
|
875
|
-
}
|
|
876
|
-
const Tt = (e) => {
|
|
877
|
-
function t(n, s, o) {
|
|
878
|
-
return new dt(Ls(n, s, o, e));
|
|
879
|
-
}
|
|
880
|
-
return t;
|
|
881
|
-
}, ho = /* @__PURE__ */ Tt();
|
|
882
|
-
function go() {
|
|
883
|
-
const e = v(() => ({
|
|
884
|
-
current: null,
|
|
885
|
-
// Will be hydrated by React
|
|
886
|
-
animations: []
|
|
887
|
-
})), t = v(() => Tt(e));
|
|
888
|
-
return wt(() => {
|
|
889
|
-
e.animations.forEach((n) => n.stop());
|
|
890
|
-
}), [e, t];
|
|
891
|
-
}
|
|
892
|
-
function Ps() {
|
|
893
|
-
const e = v(is);
|
|
894
|
-
return le(e.mount, []), e;
|
|
895
|
-
}
|
|
896
|
-
const yo = Ps;
|
|
897
|
-
function vo() {
|
|
898
|
-
const e = F(cn);
|
|
899
|
-
return e ? e.custom : void 0;
|
|
900
|
-
}
|
|
901
|
-
function wo(e, t, n, s) {
|
|
902
|
-
O(() => {
|
|
903
|
-
const o = e.current;
|
|
904
|
-
if (n && o)
|
|
905
|
-
return un(o, t, n, s);
|
|
906
|
-
}, [e, t, n, s]);
|
|
907
|
-
}
|
|
908
|
-
class Ds {
|
|
909
|
-
constructor() {
|
|
910
|
-
this.componentControls = /* @__PURE__ */ new Set();
|
|
911
|
-
}
|
|
912
|
-
/**
|
|
913
|
-
* Subscribe a component's internal `VisualElementDragControls` to the user-facing API.
|
|
914
|
-
*
|
|
915
|
-
* @internal
|
|
916
|
-
*/
|
|
917
|
-
subscribe(t) {
|
|
918
|
-
return this.componentControls.add(t), () => this.componentControls.delete(t);
|
|
919
|
-
}
|
|
920
|
-
/**
|
|
921
|
-
* Start a drag gesture on every `motion` component that has this set of drag controls
|
|
922
|
-
* passed into it via the `dragControls` prop.
|
|
923
|
-
*
|
|
924
|
-
* ```jsx
|
|
925
|
-
* dragControls.start(e, {
|
|
926
|
-
* snapToCursor: true
|
|
927
|
-
* })
|
|
928
|
-
* ```
|
|
929
|
-
*
|
|
930
|
-
* @param event - PointerEvent
|
|
931
|
-
* @param options - Options
|
|
932
|
-
*
|
|
933
|
-
* @public
|
|
934
|
-
*/
|
|
935
|
-
start(t, n) {
|
|
936
|
-
this.componentControls.forEach((s) => {
|
|
937
|
-
s.start(t.nativeEvent || t, n);
|
|
938
|
-
});
|
|
939
|
-
}
|
|
940
|
-
}
|
|
941
|
-
const Rs = () => new Ds();
|
|
942
|
-
function So() {
|
|
943
|
-
return v(Rs);
|
|
944
|
-
}
|
|
945
|
-
function Fs(e) {
|
|
946
|
-
return e !== null && typeof e == "object" && mt in e;
|
|
947
|
-
}
|
|
948
|
-
function Ao(e) {
|
|
949
|
-
if (Fs(e))
|
|
950
|
-
return e[mt];
|
|
951
|
-
}
|
|
952
|
-
function zs() {
|
|
953
|
-
return Ws;
|
|
954
|
-
}
|
|
955
|
-
function Ws(e) {
|
|
956
|
-
q.current && (q.current.isUpdating = !1, q.current.blockUpdate(), e && e());
|
|
957
|
-
}
|
|
958
|
-
function Eo() {
|
|
959
|
-
return ht(() => {
|
|
960
|
-
const t = q.current;
|
|
961
|
-
t && t.resetTree();
|
|
962
|
-
}, []);
|
|
963
|
-
}
|
|
964
|
-
function bo(...e) {
|
|
965
|
-
const t = P(0), [n, s] = K(e[t.current]), o = ht(
|
|
966
|
-
(r) => {
|
|
967
|
-
t.current = typeof r != "number" ? Mt(0, e.length, t.current + 1) : r, s(e[t.current]);
|
|
968
|
-
},
|
|
969
|
-
// The array will change on each call, but by putting items.length at
|
|
970
|
-
// the front of this array, we guarantee the dependency comparison will match up
|
|
971
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
972
|
-
[e.length, ...e]
|
|
973
|
-
);
|
|
974
|
-
return [n, o];
|
|
975
|
-
}
|
|
976
|
-
const Bs = {
|
|
977
|
-
some: 0,
|
|
978
|
-
all: 1
|
|
979
|
-
};
|
|
980
|
-
function Hs(e, t, { root: n, margin: s, amount: o = "some" } = {}) {
|
|
981
|
-
const r = ce(e), i = /* @__PURE__ */ new WeakMap(), u = (c) => {
|
|
982
|
-
c.forEach((l) => {
|
|
983
|
-
const d = i.get(l.target);
|
|
984
|
-
if (l.isIntersecting !== !!d)
|
|
985
|
-
if (l.isIntersecting) {
|
|
986
|
-
const f = t(l.target, l);
|
|
987
|
-
typeof f == "function" ? i.set(l.target, f) : a.unobserve(l.target);
|
|
988
|
-
} else typeof d == "function" && (d(l), i.delete(l.target));
|
|
989
|
-
});
|
|
990
|
-
}, a = new IntersectionObserver(u, {
|
|
991
|
-
root: n,
|
|
992
|
-
rootMargin: s,
|
|
993
|
-
threshold: typeof o == "number" ? o : Bs[o]
|
|
994
|
-
});
|
|
995
|
-
return r.forEach((c) => a.observe(c)), () => a.disconnect();
|
|
996
|
-
}
|
|
997
|
-
function Mo(e, { root: t, margin: n, amount: s, once: o = !1, initial: r = !1 } = {}) {
|
|
998
|
-
const [i, u] = K(r);
|
|
999
|
-
return O(() => {
|
|
1000
|
-
if (!e.current || o && i)
|
|
1001
|
-
return;
|
|
1002
|
-
const a = () => (u(!0), o ? void 0 : () => u(!1)), c = {
|
|
1003
|
-
root: t && t.current || void 0,
|
|
1004
|
-
margin: n,
|
|
1005
|
-
amount: s
|
|
1006
|
-
};
|
|
1007
|
-
return Hs(e.current, a, c);
|
|
1008
|
-
}, [t, e, n, o, s]), i;
|
|
1009
|
-
}
|
|
1010
|
-
function xo() {
|
|
1011
|
-
const [e, t] = ln(), n = zs(), s = P(-1);
|
|
1012
|
-
return O(() => {
|
|
1013
|
-
A.postRender(() => A.postRender(() => {
|
|
1014
|
-
t === s.current && (we.current = !1);
|
|
1015
|
-
}));
|
|
1016
|
-
}, [t]), (o) => {
|
|
1017
|
-
n(() => {
|
|
1018
|
-
we.current = !0, e(), o(), s.current = t + 1;
|
|
1019
|
-
});
|
|
1020
|
-
};
|
|
1021
|
-
}
|
|
1022
|
-
function Vo() {
|
|
1023
|
-
we.current = !1;
|
|
1024
|
-
}
|
|
1025
|
-
const L = /* @__PURE__ */ new Map(), U = /* @__PURE__ */ new Map(), se = (e, t) => {
|
|
1026
|
-
const n = fn.has(t) ? "transform" : t;
|
|
1027
|
-
return `${e}: ${n}`;
|
|
1028
|
-
};
|
|
1029
|
-
function Ke(e, t, n) {
|
|
1030
|
-
var s;
|
|
1031
|
-
const o = se(e, t), r = L.get(o);
|
|
1032
|
-
if (!r)
|
|
1033
|
-
return null;
|
|
1034
|
-
const { animation: i, startTime: u } = r;
|
|
1035
|
-
function a() {
|
|
1036
|
-
var c;
|
|
1037
|
-
(c = window.MotionCancelOptimisedAnimation) === null || c === void 0 || c.call(window, e, t, n);
|
|
1038
|
-
}
|
|
1039
|
-
return i.onfinish = a, u === null || !((s = window.MotionHandoffIsComplete) === null || s === void 0) && s.call(window, e) ? (a(), null) : u;
|
|
1040
|
-
}
|
|
1041
|
-
let Z, W;
|
|
1042
|
-
const be = /* @__PURE__ */ new Set();
|
|
1043
|
-
function _s() {
|
|
1044
|
-
be.forEach((e) => {
|
|
1045
|
-
e.animation.play(), e.animation.startTime = e.startTime;
|
|
1046
|
-
}), be.clear();
|
|
1047
|
-
}
|
|
1048
|
-
function Co(e, t, n, s, o) {
|
|
1049
|
-
if (window.MotionIsMounted)
|
|
1050
|
-
return;
|
|
1051
|
-
const r = e.dataset[dn];
|
|
1052
|
-
if (!r)
|
|
1053
|
-
return;
|
|
1054
|
-
window.MotionHandoffAnimation = Ke;
|
|
1055
|
-
const i = se(r, t);
|
|
1056
|
-
W || (W = ve(
|
|
1057
|
-
e,
|
|
1058
|
-
t,
|
|
1059
|
-
[n[0], n[0]],
|
|
1060
|
-
/**
|
|
1061
|
-
* 10 secs is basically just a super-safe duration to give Chrome
|
|
1062
|
-
* long enough to get the animation ready.
|
|
1063
|
-
*/
|
|
1064
|
-
{ duration: 1e4, ease: "linear" }
|
|
1065
|
-
), L.set(i, {
|
|
1066
|
-
animation: W,
|
|
1067
|
-
startTime: null
|
|
1068
|
-
}), window.MotionHandoffAnimation = Ke, window.MotionHasOptimisedAnimation = (a, c) => {
|
|
1069
|
-
if (!a)
|
|
1070
|
-
return !1;
|
|
1071
|
-
if (!c)
|
|
1072
|
-
return U.has(a);
|
|
1073
|
-
const l = se(a, c);
|
|
1074
|
-
return !!L.get(l);
|
|
1075
|
-
}, window.MotionHandoffMarkAsComplete = (a) => {
|
|
1076
|
-
U.has(a) && U.set(a, !0);
|
|
1077
|
-
}, window.MotionHandoffIsComplete = (a) => U.get(a) === !0, window.MotionCancelOptimisedAnimation = (a, c, l, d) => {
|
|
1078
|
-
const f = se(a, c), m = L.get(f);
|
|
1079
|
-
m && (l && d === void 0 ? l.postRender(() => {
|
|
1080
|
-
l.postRender(() => {
|
|
1081
|
-
m.animation.cancel();
|
|
1082
|
-
});
|
|
1083
|
-
}) : m.animation.cancel(), l && d ? (be.add(m), l.render(_s)) : (L.delete(f), L.size || (window.MotionCancelOptimisedAnimation = void 0)));
|
|
1084
|
-
}, window.MotionCheckAppearSync = (a, c, l) => {
|
|
1085
|
-
var d, f;
|
|
1086
|
-
const m = mn(a);
|
|
1087
|
-
if (!m)
|
|
1088
|
-
return;
|
|
1089
|
-
const p = (d = window.MotionHasOptimisedAnimation) === null || d === void 0 ? void 0 : d.call(window, m, c), h = (f = a.props.values) === null || f === void 0 ? void 0 : f[c];
|
|
1090
|
-
if (!p || !h)
|
|
1091
|
-
return;
|
|
1092
|
-
const g = l.on("change", (y) => {
|
|
1093
|
-
var w;
|
|
1094
|
-
h.get() !== y && ((w = window.MotionCancelOptimisedAnimation) === null || w === void 0 || w.call(window, m, c), g());
|
|
1095
|
-
});
|
|
1096
|
-
return g;
|
|
1097
|
-
});
|
|
1098
|
-
const u = () => {
|
|
1099
|
-
W.cancel();
|
|
1100
|
-
const a = ve(e, t, n, s);
|
|
1101
|
-
Z === void 0 && (Z = performance.now()), a.startTime = Z, L.set(i, {
|
|
1102
|
-
animation: a,
|
|
1103
|
-
startTime: Z
|
|
1104
|
-
}), o && o(a);
|
|
1105
|
-
};
|
|
1106
|
-
U.set(r, !1), W.ready ? W.ready.then(u).catch(ie) : u();
|
|
1107
|
-
}
|
|
1108
|
-
const Me = () => ({});
|
|
1109
|
-
class Gs extends lt {
|
|
1110
|
-
constructor() {
|
|
1111
|
-
super(...arguments), this.measureInstanceViewportBox = ft;
|
|
1112
|
-
}
|
|
1113
|
-
build() {
|
|
1114
|
-
}
|
|
1115
|
-
resetTransform() {
|
|
1116
|
-
}
|
|
1117
|
-
restoreTransform() {
|
|
1118
|
-
}
|
|
1119
|
-
removeValueFromRenderState() {
|
|
1120
|
-
}
|
|
1121
|
-
renderInstance() {
|
|
1122
|
-
}
|
|
1123
|
-
scrapeMotionValuesFromProps() {
|
|
1124
|
-
return Me();
|
|
1125
|
-
}
|
|
1126
|
-
getBaseTargetFromProps() {
|
|
1127
|
-
}
|
|
1128
|
-
readValueFromInstance(t, n, s) {
|
|
1129
|
-
return s.initialState[n] || 0;
|
|
1130
|
-
}
|
|
1131
|
-
sortInstanceNodePosition() {
|
|
1132
|
-
return 0;
|
|
1133
|
-
}
|
|
1134
|
-
}
|
|
1135
|
-
const ks = pn({
|
|
1136
|
-
scrapeMotionValuesFromProps: Me,
|
|
1137
|
-
createRenderState: Me
|
|
1138
|
-
});
|
|
1139
|
-
function Io(e) {
|
|
1140
|
-
const [t, n] = K(e), s = ks({}, !1), o = v(() => new Gs({
|
|
1141
|
-
props: {
|
|
1142
|
-
onUpdate: (i) => {
|
|
1143
|
-
n({ ...i });
|
|
1144
|
-
}
|
|
1145
|
-
},
|
|
1146
|
-
visualState: s,
|
|
1147
|
-
presenceContext: null
|
|
1148
|
-
}, { initialState: e }));
|
|
1149
|
-
Sn(() => (o.mount({}), () => o.unmount()), [o]);
|
|
1150
|
-
const r = v(() => (i) => it(o, i));
|
|
1151
|
-
return [t, r];
|
|
1152
|
-
}
|
|
1153
|
-
let Ns = 0;
|
|
1154
|
-
const To = ({ children: e }) => (wn.useEffect(() => {
|
|
1155
|
-
b(!1, "AnimateSharedLayout is deprecated: https://www.framer.com/docs/guide-upgrade/##shared-layout-animations");
|
|
1156
|
-
}, []), re(hn, { id: v(() => `asl-${Ns++}`), children: e })), js = 1e5, Je = (e) => e > 1e-3 ? 1 / e : js;
|
|
1157
|
-
let Qe = !1;
|
|
1158
|
-
function Oo(e) {
|
|
1159
|
-
let t = R(1), n = R(1);
|
|
1160
|
-
const { visualElement: s } = F(gn);
|
|
1161
|
-
b(!!(e || s), "If no scale values are provided, useInvertedScale must be used within a child of another motion component."), rt(Qe, "useInvertedScale is deprecated and will be removed in 3.0. Use the layout prop instead."), Qe = !0, e ? (t = e.scaleX || t, n = e.scaleY || n) : s && (t = s.getValue("scaleX", 1), n = s.getValue("scaleY", 1));
|
|
1162
|
-
const o = Ae(t, Je), r = Ae(n, Je);
|
|
1163
|
-
return { scaleX: o, scaleY: r };
|
|
1164
|
-
}
|
|
1165
|
-
const Ot = An(null);
|
|
1166
|
-
function Us(e, t, n, s) {
|
|
1167
|
-
if (!s)
|
|
1168
|
-
return e;
|
|
1169
|
-
const o = e.findIndex((l) => l.value === t);
|
|
1170
|
-
if (o === -1)
|
|
1171
|
-
return e;
|
|
1172
|
-
const r = s > 0 ? 1 : -1, i = e[o + r];
|
|
1173
|
-
if (!i)
|
|
1174
|
-
return e;
|
|
1175
|
-
const u = e[o], a = i.layout, c = ct(a.min, a.max, 0.5);
|
|
1176
|
-
return r === 1 && u.layout.max + n > c || r === -1 && u.layout.min + n < c ? yn(e, o, o + r) : e;
|
|
1177
|
-
}
|
|
1178
|
-
function Ys({ children: e, as: t = "ul", axis: n = "y", onReorder: s, values: o, ...r }, i) {
|
|
1179
|
-
const u = v(() => vt[t]), a = [], c = P(!1);
|
|
1180
|
-
b(!!o, "Reorder.Group must be provided a values prop");
|
|
1181
|
-
const l = {
|
|
1182
|
-
axis: n,
|
|
1183
|
-
registerItem: (d, f) => {
|
|
1184
|
-
const m = a.findIndex((p) => d === p.value);
|
|
1185
|
-
m !== -1 ? a[m].layout = f[n] : a.push({ value: d, layout: f[n] }), a.sort(Ks);
|
|
1186
|
-
},
|
|
1187
|
-
updateOrder: (d, f, m) => {
|
|
1188
|
-
if (c.current)
|
|
1189
|
-
return;
|
|
1190
|
-
const p = Us(a, d, f, m);
|
|
1191
|
-
a !== p && (c.current = !0, s(p.map($s).filter((h) => o.indexOf(h) !== -1)));
|
|
1192
|
-
}
|
|
1193
|
-
};
|
|
1194
|
-
return O(() => {
|
|
1195
|
-
c.current = !1;
|
|
1196
|
-
}), re(u, { ...r, ref: i, ignoreStrict: !0, children: re(Ot.Provider, { value: l, children: e }) });
|
|
1197
|
-
}
|
|
1198
|
-
const Xs = /* @__PURE__ */ gt(Ys);
|
|
1199
|
-
function $s(e) {
|
|
1200
|
-
return e.value;
|
|
1201
|
-
}
|
|
1202
|
-
function Ks(e, t) {
|
|
1203
|
-
return e.layout.min - t.layout.min;
|
|
1204
|
-
}
|
|
1205
|
-
function Ze(e, t = 0) {
|
|
1206
|
-
return D(e) ? e : R(t);
|
|
1207
|
-
}
|
|
1208
|
-
function Js({ children: e, style: t = {}, value: n, as: s = "li", onDrag: o, layout: r = !0, ...i }, u) {
|
|
1209
|
-
const a = v(() => vt[s]), c = F(Ot), l = {
|
|
1210
|
-
x: Ze(t.x),
|
|
1211
|
-
y: Ze(t.y)
|
|
1212
|
-
}, d = Ae([l.x, l.y], ([h, g]) => h || g ? 1 : "unset");
|
|
1213
|
-
b(!!c, "Reorder.Item must be a child of Reorder.Group");
|
|
1214
|
-
const { axis: f, registerItem: m, updateOrder: p } = c;
|
|
1215
|
-
return re(a, { drag: f, ...i, dragSnapToOrigin: !0, style: { ...t, x: l.x, y: l.y, zIndex: d }, layout: r, onDrag: (h, g) => {
|
|
1216
|
-
const { velocity: y } = g;
|
|
1217
|
-
y[f] && p(n, l[f].get(), y[f]), o && o(h, g);
|
|
1218
|
-
}, onLayoutMeasure: (h) => m(n, h), ref: u, ignoreStrict: !0, children: e });
|
|
1219
|
-
}
|
|
1220
|
-
const Qs = /* @__PURE__ */ gt(Js), Lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1221
|
-
__proto__: null,
|
|
1222
|
-
Group: Xs,
|
|
1223
|
-
Item: Qs
|
|
1224
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
1225
|
-
function Zs(e, t) {
|
|
1226
|
-
if (e === "first")
|
|
1227
|
-
return 0;
|
|
1228
|
-
{
|
|
1229
|
-
const n = t - 1;
|
|
1230
|
-
return e === "last" ? n : n / 2;
|
|
1231
|
-
}
|
|
1232
|
-
}
|
|
1233
|
-
function Po(e = 0.1, { startDelay: t = 0, from: n = 0, ease: s } = {}) {
|
|
1234
|
-
return (o, r) => {
|
|
1235
|
-
const i = typeof n == "number" ? n : Zs(n, r), u = Math.abs(i - o);
|
|
1236
|
-
let a = e * u;
|
|
1237
|
-
if (s) {
|
|
1238
|
-
const c = r * e;
|
|
1239
|
-
a = vn(s)(a / c) * c;
|
|
1240
|
-
}
|
|
1241
|
-
return t + a;
|
|
1242
|
-
};
|
|
1243
|
-
}
|
|
1244
|
-
function Do(e, t = "end") {
|
|
1245
|
-
return (n) => {
|
|
1246
|
-
n = t === "end" ? Math.min(n, 0.999) : Math.max(n, 1e-3);
|
|
1247
|
-
const s = n * e, o = t === "end" ? Math.floor(s) : Math.ceil(s);
|
|
1248
|
-
return ot(0, 1, o / e);
|
|
1249
|
-
};
|
|
1250
|
-
}
|
|
1251
|
-
export {
|
|
1252
|
-
zo as AcceleratedAnimation,
|
|
1253
|
-
Wo as AnimatePresence,
|
|
1254
|
-
To as AnimateSharedLayout,
|
|
1255
|
-
Bo as DeprecatedLayoutGroupContext,
|
|
1256
|
-
Ds as DragControls,
|
|
1257
|
-
Ho as FlatTree,
|
|
1258
|
-
hn as LayoutGroup,
|
|
1259
|
-
_o as LayoutGroupContext,
|
|
1260
|
-
Go as LazyMotion,
|
|
1261
|
-
ko as MotionConfig,
|
|
1262
|
-
fe as MotionConfigContext,
|
|
1263
|
-
gn as MotionContext,
|
|
1264
|
-
No as MotionGlobalConfig,
|
|
1265
|
-
jo as MotionValue,
|
|
1266
|
-
cn as PresenceContext,
|
|
1267
|
-
Lo as Reorder,
|
|
1268
|
-
Uo as SwitchLayoutGroupContext,
|
|
1269
|
-
lt as VisualElement,
|
|
1270
|
-
Yo as addPointerEvent,
|
|
1271
|
-
Xo as addPointerInfo,
|
|
1272
|
-
$o as addScaleCorrector,
|
|
1273
|
-
mo as animate,
|
|
1274
|
-
ho as animateMini,
|
|
1275
|
-
Nt as animateValue,
|
|
1276
|
-
it as animateVisualElement,
|
|
1277
|
-
is as animationControls,
|
|
1278
|
-
qe as animations,
|
|
1279
|
-
Ko as anticipate,
|
|
1280
|
-
Jo as backIn,
|
|
1281
|
-
Qo as backInOut,
|
|
1282
|
-
Zo as backOut,
|
|
1283
|
-
qo as buildTransform,
|
|
1284
|
-
er as calcLength,
|
|
1285
|
-
ae as cancelFrame,
|
|
1286
|
-
tr as circIn,
|
|
1287
|
-
nr as circInOut,
|
|
1288
|
-
sr as circOut,
|
|
1289
|
-
ot as clamp,
|
|
1290
|
-
or as color,
|
|
1291
|
-
rr as complex,
|
|
1292
|
-
ft as createBox,
|
|
1293
|
-
ir as createRendererMotionComponent,
|
|
1294
|
-
It as createScopedAnimate,
|
|
1295
|
-
ar as cubicBezier,
|
|
1296
|
-
cr as delay,
|
|
1297
|
-
Vo as disableInstantTransitions,
|
|
1298
|
-
ur as distance,
|
|
1299
|
-
lr as distance2D,
|
|
1300
|
-
fr as domAnimation,
|
|
1301
|
-
dr as domMax,
|
|
1302
|
-
oo as domMin,
|
|
1303
|
-
mr as easeIn,
|
|
1304
|
-
pr as easeInOut,
|
|
1305
|
-
hr as easeOut,
|
|
1306
|
-
gr as filterProps,
|
|
1307
|
-
yr as findSpring,
|
|
1308
|
-
A as frame,
|
|
1309
|
-
Gt as frameData,
|
|
1310
|
-
vr as hover,
|
|
1311
|
-
Hs as inView,
|
|
1312
|
-
wr as inertia,
|
|
1313
|
-
nt as interpolate,
|
|
1314
|
-
b as invariant,
|
|
1315
|
-
Sr as isBrowser,
|
|
1316
|
-
Ar as isDragActive,
|
|
1317
|
-
Fs as isMotionComponent,
|
|
1318
|
-
D as isMotionValue,
|
|
1319
|
-
Er as isValidMotionProp,
|
|
1320
|
-
br as keyframes,
|
|
1321
|
-
Mr as m,
|
|
1322
|
-
pn as makeUseVisualState,
|
|
1323
|
-
xr as mirrorEasing,
|
|
1324
|
-
Vr as mix,
|
|
1325
|
-
vt as motion,
|
|
1326
|
-
Y as motionValue,
|
|
1327
|
-
ie as noop,
|
|
1328
|
-
Cr as optimizedAppearDataAttribute,
|
|
1329
|
-
Ir as pipe,
|
|
1330
|
-
Tr as press,
|
|
1331
|
-
tt as progress,
|
|
1332
|
-
Or as px,
|
|
1333
|
-
Lr as resolveMotionValue,
|
|
1334
|
-
Pr as reverseEasing,
|
|
1335
|
-
Jn as scroll,
|
|
1336
|
-
xe as scrollInfo,
|
|
1337
|
-
tn as spring,
|
|
1338
|
-
Po as stagger,
|
|
1339
|
-
Co as startOptimizedAppearAnimation,
|
|
1340
|
-
Do as steps,
|
|
1341
|
-
Dr as time,
|
|
1342
|
-
ts as transform,
|
|
1343
|
-
Ao as unwrapMotionComponent,
|
|
1344
|
-
po as useAnimate,
|
|
1345
|
-
go as useAnimateMini,
|
|
1346
|
-
yo as useAnimation,
|
|
1347
|
-
Ps as useAnimationControls,
|
|
1348
|
-
Zn as useAnimationFrame,
|
|
1349
|
-
bo as useCycle,
|
|
1350
|
-
Io as useDeprecatedAnimatedState,
|
|
1351
|
-
Oo as useDeprecatedInvertedScale,
|
|
1352
|
-
wo as useDomEvent,
|
|
1353
|
-
So as useDragControls,
|
|
1354
|
-
ro as useElementScroll,
|
|
1355
|
-
ln as useForceUpdate,
|
|
1356
|
-
Mo as useInView,
|
|
1357
|
-
zs as useInstantLayoutTransition,
|
|
1358
|
-
xo as useInstantTransition,
|
|
1359
|
-
Rr as useIsPresent,
|
|
1360
|
-
le as useIsomorphicLayoutEffect,
|
|
1361
|
-
ao as useMotionTemplate,
|
|
1362
|
-
R as useMotionValue,
|
|
1363
|
-
Mn as useMotionValueEvent,
|
|
1364
|
-
Fr as usePresence,
|
|
1365
|
-
vo as usePresenceData,
|
|
1366
|
-
ss as useReducedMotion,
|
|
1367
|
-
fo as useReducedMotionConfig,
|
|
1368
|
-
Eo as useResetProjection,
|
|
1369
|
-
bt as useScroll,
|
|
1370
|
-
co as useSpring,
|
|
1371
|
-
uo as useTime,
|
|
1372
|
-
Ae as useTransform,
|
|
1373
|
-
wt as useUnmountEffect,
|
|
1374
|
-
lo as useVelocity,
|
|
1375
|
-
io as useViewportScroll,
|
|
1376
|
-
zr as useWillChange,
|
|
1377
|
-
oe as visualElementStore,
|
|
1378
|
-
Mt as wrap
|
|
1379
|
-
};
|