@acrool/react-picker 0.0.7-alpha.0 → 0.0.7
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/PickerProvider.d.ts +3 -0
- package/dist/acrool-react-picker.es.js +653 -649
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Mn from "react";
|
|
2
|
-
import kn, { createContext as Dt, useContext as U, useLayoutEffect as Js, useEffect as
|
|
2
|
+
import kn, { createContext as Dt, useContext as U, useLayoutEffect as Js, useEffect as vt, useRef as nt, useInsertionEffect as Qs, useCallback as gt, useMemo as Et, forwardRef as Ee, Fragment as tr, createElement as ia, useId as Ln, Component as sa, Children as ra, isValidElement as oa, useState as Ft } from "react";
|
|
3
3
|
import aa from "react-dom";
|
|
4
|
-
var
|
|
4
|
+
var it = /* @__PURE__ */ ((t) => (t.bottom = "bottom", t.top = "top", t))(it || {}), jt = /* @__PURE__ */ ((t) => (t.Escape = "Escape", t.Enter = "Enter", t.Tab = "Tab", t.ArrowUp = "ArrowUp", t.ArrowDown = "ArrowDown", t))(jt || {});
|
|
5
5
|
const ue = [
|
|
6
6
|
"color: #fff",
|
|
7
7
|
"display: inline-block",
|
|
@@ -49,23 +49,25 @@ function ha(t, ...e) {
|
|
|
49
49
|
]).join(";");
|
|
50
50
|
he(t, n, ...e);
|
|
51
51
|
}
|
|
52
|
-
const
|
|
52
|
+
const pt = {
|
|
53
53
|
primary: la,
|
|
54
54
|
success: ca,
|
|
55
55
|
info: ua,
|
|
56
56
|
warning: fa,
|
|
57
57
|
danger: ha
|
|
58
58
|
}, On = Dt({
|
|
59
|
-
hide: () =>
|
|
60
|
-
show: () =>
|
|
61
|
-
toggle: () =>
|
|
59
|
+
hide: () => pt.warning("No hide method detected, did you embed your app with Acrool/PickerPortal?"),
|
|
60
|
+
show: () => pt.warning("No show method detected, did you embed your app with Acrool/PickerPortal?"),
|
|
61
|
+
toggle: () => pt.warning("No toggle method detected, did you embed your app with Acrool/PickerPortal?"),
|
|
62
62
|
isVisible: !1,
|
|
63
|
-
inputFocus: () =>
|
|
64
|
-
inputBlur: () =>
|
|
63
|
+
inputFocus: () => pt.warning("No focus method detected, did you embed your app with Acrool/PickerPortal?"),
|
|
64
|
+
inputBlur: () => pt.warning("No blur method detected, did you embed your app with Acrool/PickerPortal?"),
|
|
65
65
|
isInputFocus: !1,
|
|
66
|
-
onChange: () =>
|
|
66
|
+
onChange: () => pt.warning("No onChange method detected, did you embed your app with Acrool/PickerPortal?"),
|
|
67
|
+
vertical: it.bottom,
|
|
68
|
+
setVertical: () => pt.warning("No onChange method detected, did you embed your app with Acrool/PickerPortal?")
|
|
67
69
|
}), ch = On.Consumer, da = () => U(On);
|
|
68
|
-
var mn = { exports: {} },
|
|
70
|
+
var mn = { exports: {} }, Xt = {};
|
|
69
71
|
/**
|
|
70
72
|
* @license React
|
|
71
73
|
* react-jsx-runtime.production.min.js
|
|
@@ -78,7 +80,7 @@ var mn = { exports: {} }, Yt = {};
|
|
|
78
80
|
var Di;
|
|
79
81
|
function pa() {
|
|
80
82
|
if (Di)
|
|
81
|
-
return
|
|
83
|
+
return Xt;
|
|
82
84
|
Di = 1;
|
|
83
85
|
var t = kn, e = Symbol.for("react.element"), n = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, s = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
84
86
|
function r(a, l, c) {
|
|
@@ -91,9 +93,9 @@ function pa() {
|
|
|
91
93
|
f[u] === void 0 && (f[u] = l[u]);
|
|
92
94
|
return { $$typeof: e, type: a, key: d, ref: p, props: f, _owner: s.current };
|
|
93
95
|
}
|
|
94
|
-
return
|
|
96
|
+
return Xt.Fragment = n, Xt.jsx = r, Xt.jsxs = r, Xt;
|
|
95
97
|
}
|
|
96
|
-
var
|
|
98
|
+
var qt = {};
|
|
97
99
|
/**
|
|
98
100
|
* @license React
|
|
99
101
|
* react-jsx-runtime.development.js
|
|
@@ -106,48 +108,48 @@ var Xt = {};
|
|
|
106
108
|
var Mi;
|
|
107
109
|
function ma() {
|
|
108
110
|
return Mi || (Mi = 1, process.env.NODE_ENV !== "production" && function() {
|
|
109
|
-
var t = kn, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), r = Symbol.for("react.provider"), a = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"),
|
|
111
|
+
var t = kn, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), r = Symbol.for("react.provider"), a = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), g = Symbol.iterator, x = "@@iterator";
|
|
110
112
|
function b(h) {
|
|
111
113
|
if (h === null || typeof h != "object")
|
|
112
114
|
return null;
|
|
113
|
-
var
|
|
114
|
-
return typeof
|
|
115
|
+
var m = g && h[g] || h[x];
|
|
116
|
+
return typeof m == "function" ? m : null;
|
|
115
117
|
}
|
|
116
|
-
var
|
|
118
|
+
var P = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
117
119
|
function y(h) {
|
|
118
120
|
{
|
|
119
|
-
for (var
|
|
120
|
-
T[
|
|
121
|
+
for (var m = arguments.length, T = new Array(m > 1 ? m - 1 : 0), A = 1; A < m; A++)
|
|
122
|
+
T[A - 1] = arguments[A];
|
|
121
123
|
v("error", h, T);
|
|
122
124
|
}
|
|
123
125
|
}
|
|
124
|
-
function v(h,
|
|
126
|
+
function v(h, m, T) {
|
|
125
127
|
{
|
|
126
|
-
var
|
|
127
|
-
|
|
128
|
-
var
|
|
129
|
-
return String(
|
|
128
|
+
var A = P.ReactDebugCurrentFrame, D = A.getStackAddendum();
|
|
129
|
+
D !== "" && (m += "%s", T = T.concat([D]));
|
|
130
|
+
var k = T.map(function(E) {
|
|
131
|
+
return String(E);
|
|
130
132
|
});
|
|
131
|
-
|
|
133
|
+
k.unshift("Warning: " + m), Function.prototype.apply.call(console[h], console, k);
|
|
132
134
|
}
|
|
133
135
|
}
|
|
134
|
-
var w = !1,
|
|
136
|
+
var w = !1, R = !1, L = !1, H = !1, S = !1, G;
|
|
135
137
|
G = Symbol.for("react.module.reference");
|
|
136
|
-
function
|
|
137
|
-
return !!(typeof h == "string" || typeof h == "function" || h === i || h === o ||
|
|
138
|
+
function Y(h) {
|
|
139
|
+
return !!(typeof h == "string" || typeof h == "function" || h === i || h === o || S || h === s || h === c || h === u || H || h === p || w || R || L || typeof h == "object" && h !== null && (h.$$typeof === d || h.$$typeof === f || h.$$typeof === r || h.$$typeof === a || h.$$typeof === l || // This needs to include all possible module reference object
|
|
138
140
|
// types supported by any Flight configuration anywhere since
|
|
139
141
|
// we don't know which Flight build this will end up being used
|
|
140
142
|
// with.
|
|
141
143
|
h.$$typeof === G || h.getModuleId !== void 0));
|
|
142
144
|
}
|
|
143
|
-
function dt(h,
|
|
144
|
-
var
|
|
145
|
-
if (
|
|
146
|
-
return
|
|
147
|
-
var
|
|
148
|
-
return
|
|
145
|
+
function dt(h, m, T) {
|
|
146
|
+
var A = h.displayName;
|
|
147
|
+
if (A)
|
|
148
|
+
return A;
|
|
149
|
+
var D = m.displayName || m.name || "";
|
|
150
|
+
return D !== "" ? T + "(" + D + ")" : T;
|
|
149
151
|
}
|
|
150
|
-
function
|
|
152
|
+
function zt(h) {
|
|
151
153
|
return h.displayName || "Context";
|
|
152
154
|
}
|
|
153
155
|
function Z(h) {
|
|
@@ -174,20 +176,20 @@ function ma() {
|
|
|
174
176
|
if (typeof h == "object")
|
|
175
177
|
switch (h.$$typeof) {
|
|
176
178
|
case a:
|
|
177
|
-
var
|
|
178
|
-
return
|
|
179
|
+
var m = h;
|
|
180
|
+
return zt(m) + ".Consumer";
|
|
179
181
|
case r:
|
|
180
182
|
var T = h;
|
|
181
|
-
return
|
|
183
|
+
return zt(T._context) + ".Provider";
|
|
182
184
|
case l:
|
|
183
185
|
return dt(h, h.render, "ForwardRef");
|
|
184
186
|
case f:
|
|
185
|
-
var
|
|
186
|
-
return
|
|
187
|
+
var A = h.displayName || null;
|
|
188
|
+
return A !== null ? A : Z(h.type) || "Memo";
|
|
187
189
|
case d: {
|
|
188
|
-
var
|
|
190
|
+
var D = h, k = D._payload, E = D._init;
|
|
189
191
|
try {
|
|
190
|
-
return Z(
|
|
192
|
+
return Z(E(k));
|
|
191
193
|
} catch {
|
|
192
194
|
return null;
|
|
193
195
|
}
|
|
@@ -195,7 +197,7 @@ function ma() {
|
|
|
195
197
|
}
|
|
196
198
|
return null;
|
|
197
199
|
}
|
|
198
|
-
var
|
|
200
|
+
var st = Object.assign, F = 0, J, Mt, kt, fi, hi, di, pi;
|
|
199
201
|
function mi() {
|
|
200
202
|
}
|
|
201
203
|
mi.__reactDisabledLog = !0;
|
|
@@ -231,25 +233,25 @@ function ma() {
|
|
|
231
233
|
writable: !0
|
|
232
234
|
};
|
|
233
235
|
Object.defineProperties(console, {
|
|
234
|
-
log:
|
|
236
|
+
log: st({}, h, {
|
|
235
237
|
value: J
|
|
236
238
|
}),
|
|
237
|
-
info:
|
|
239
|
+
info: st({}, h, {
|
|
238
240
|
value: Mt
|
|
239
241
|
}),
|
|
240
|
-
warn:
|
|
242
|
+
warn: st({}, h, {
|
|
241
243
|
value: kt
|
|
242
244
|
}),
|
|
243
|
-
error:
|
|
245
|
+
error: st({}, h, {
|
|
244
246
|
value: fi
|
|
245
247
|
}),
|
|
246
|
-
group:
|
|
248
|
+
group: st({}, h, {
|
|
247
249
|
value: hi
|
|
248
250
|
}),
|
|
249
|
-
groupCollapsed:
|
|
251
|
+
groupCollapsed: st({}, h, {
|
|
250
252
|
value: di
|
|
251
253
|
}),
|
|
252
|
-
groupEnd:
|
|
254
|
+
groupEnd: st({}, h, {
|
|
253
255
|
value: pi
|
|
254
256
|
})
|
|
255
257
|
});
|
|
@@ -257,15 +259,15 @@ function ma() {
|
|
|
257
259
|
F < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
258
260
|
}
|
|
259
261
|
}
|
|
260
|
-
var Ge =
|
|
261
|
-
function ye(h,
|
|
262
|
+
var Ge = P.ReactCurrentDispatcher, ze;
|
|
263
|
+
function ye(h, m, T) {
|
|
262
264
|
{
|
|
263
265
|
if (ze === void 0)
|
|
264
266
|
try {
|
|
265
267
|
throw Error();
|
|
266
|
-
} catch (
|
|
267
|
-
var
|
|
268
|
-
ze =
|
|
268
|
+
} catch (D) {
|
|
269
|
+
var A = D.stack.trim().match(/\n( *(at )?)/);
|
|
270
|
+
ze = A && A[1] || "";
|
|
269
271
|
}
|
|
270
272
|
return `
|
|
271
273
|
` + ze + h;
|
|
@@ -276,7 +278,7 @@ function ma() {
|
|
|
276
278
|
var ko = typeof WeakMap == "function" ? WeakMap : Map;
|
|
277
279
|
ve = new ko();
|
|
278
280
|
}
|
|
279
|
-
function gi(h,
|
|
281
|
+
function gi(h, m) {
|
|
280
282
|
if (!h || He)
|
|
281
283
|
return "";
|
|
282
284
|
{
|
|
@@ -284,48 +286,48 @@ function ma() {
|
|
|
284
286
|
if (T !== void 0)
|
|
285
287
|
return T;
|
|
286
288
|
}
|
|
287
|
-
var
|
|
289
|
+
var A;
|
|
288
290
|
He = !0;
|
|
289
|
-
var
|
|
291
|
+
var D = Error.prepareStackTrace;
|
|
290
292
|
Error.prepareStackTrace = void 0;
|
|
291
|
-
var
|
|
292
|
-
|
|
293
|
+
var k;
|
|
294
|
+
k = Ge.current, Ge.current = null, Do();
|
|
293
295
|
try {
|
|
294
|
-
if (
|
|
295
|
-
var
|
|
296
|
+
if (m) {
|
|
297
|
+
var E = function() {
|
|
296
298
|
throw Error();
|
|
297
299
|
};
|
|
298
|
-
if (Object.defineProperty(
|
|
300
|
+
if (Object.defineProperty(E.prototype, "props", {
|
|
299
301
|
set: function() {
|
|
300
302
|
throw Error();
|
|
301
303
|
}
|
|
302
304
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
303
305
|
try {
|
|
304
|
-
Reflect.construct(
|
|
305
|
-
} catch (
|
|
306
|
-
|
|
306
|
+
Reflect.construct(E, []);
|
|
307
|
+
} catch (X) {
|
|
308
|
+
A = X;
|
|
307
309
|
}
|
|
308
|
-
Reflect.construct(h, [],
|
|
310
|
+
Reflect.construct(h, [], E);
|
|
309
311
|
} else {
|
|
310
312
|
try {
|
|
311
|
-
|
|
312
|
-
} catch (
|
|
313
|
-
|
|
313
|
+
E.call();
|
|
314
|
+
} catch (X) {
|
|
315
|
+
A = X;
|
|
314
316
|
}
|
|
315
|
-
h.call(
|
|
317
|
+
h.call(E.prototype);
|
|
316
318
|
}
|
|
317
319
|
} else {
|
|
318
320
|
try {
|
|
319
321
|
throw Error();
|
|
320
|
-
} catch (
|
|
321
|
-
|
|
322
|
+
} catch (X) {
|
|
323
|
+
A = X;
|
|
322
324
|
}
|
|
323
325
|
h();
|
|
324
326
|
}
|
|
325
|
-
} catch (
|
|
326
|
-
if (
|
|
327
|
-
for (var V =
|
|
328
|
-
`), z =
|
|
327
|
+
} catch (X) {
|
|
328
|
+
if (X && A && typeof X.stack == "string") {
|
|
329
|
+
for (var V = X.stack.split(`
|
|
330
|
+
`), z = A.stack.split(`
|
|
329
331
|
`), _ = V.length - 1, I = z.length - 1; _ >= 1 && I >= 0 && V[_] !== z[I]; )
|
|
330
332
|
I--;
|
|
331
333
|
for (; _ >= 1 && I >= 0; _--, I--)
|
|
@@ -342,19 +344,19 @@ function ma() {
|
|
|
342
344
|
}
|
|
343
345
|
}
|
|
344
346
|
} finally {
|
|
345
|
-
He = !1, Ge.current =
|
|
347
|
+
He = !1, Ge.current = k, Mo(), Error.prepareStackTrace = D;
|
|
346
348
|
}
|
|
347
|
-
var Ot = h ? h.displayName || h.name : "",
|
|
348
|
-
return typeof h == "function" && ve.set(h,
|
|
349
|
+
var Ot = h ? h.displayName || h.name : "", wt = Ot ? ye(Ot) : "";
|
|
350
|
+
return typeof h == "function" && ve.set(h, wt), wt;
|
|
349
351
|
}
|
|
350
|
-
function Lo(h,
|
|
352
|
+
function Lo(h, m, T) {
|
|
351
353
|
return gi(h, !1);
|
|
352
354
|
}
|
|
353
355
|
function Oo(h) {
|
|
354
|
-
var
|
|
355
|
-
return !!(
|
|
356
|
+
var m = h.prototype;
|
|
357
|
+
return !!(m && m.isReactComponent);
|
|
356
358
|
}
|
|
357
|
-
function Pe(h,
|
|
359
|
+
function Pe(h, m, T) {
|
|
358
360
|
if (h == null)
|
|
359
361
|
return "";
|
|
360
362
|
if (typeof h == "function")
|
|
@@ -372,41 +374,41 @@ function ma() {
|
|
|
372
374
|
case l:
|
|
373
375
|
return Lo(h.render);
|
|
374
376
|
case f:
|
|
375
|
-
return Pe(h.type,
|
|
377
|
+
return Pe(h.type, m, T);
|
|
376
378
|
case d: {
|
|
377
|
-
var
|
|
379
|
+
var A = h, D = A._payload, k = A._init;
|
|
378
380
|
try {
|
|
379
|
-
return Pe(
|
|
381
|
+
return Pe(k(D), m, T);
|
|
380
382
|
} catch {
|
|
381
383
|
}
|
|
382
384
|
}
|
|
383
385
|
}
|
|
384
386
|
return "";
|
|
385
387
|
}
|
|
386
|
-
var
|
|
388
|
+
var Ht = Object.prototype.hasOwnProperty, yi = {}, vi = P.ReactDebugCurrentFrame;
|
|
387
389
|
function xe(h) {
|
|
388
390
|
if (h) {
|
|
389
|
-
var
|
|
391
|
+
var m = h._owner, T = Pe(h.type, h._source, m ? m.type : null);
|
|
390
392
|
vi.setExtraStackFrame(T);
|
|
391
393
|
} else
|
|
392
394
|
vi.setExtraStackFrame(null);
|
|
393
395
|
}
|
|
394
|
-
function jo(h,
|
|
396
|
+
function jo(h, m, T, A, D) {
|
|
395
397
|
{
|
|
396
|
-
var
|
|
397
|
-
for (var
|
|
398
|
-
if (
|
|
398
|
+
var k = Function.call.bind(Ht);
|
|
399
|
+
for (var E in h)
|
|
400
|
+
if (k(h, E)) {
|
|
399
401
|
var V = void 0;
|
|
400
402
|
try {
|
|
401
|
-
if (typeof h[
|
|
402
|
-
var z = Error((
|
|
403
|
+
if (typeof h[E] != "function") {
|
|
404
|
+
var z = Error((A || "React class") + ": " + T + " type `" + E + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof h[E] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
403
405
|
throw z.name = "Invariant Violation", z;
|
|
404
406
|
}
|
|
405
|
-
V = h[
|
|
407
|
+
V = h[E](m, E, A, T, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
406
408
|
} catch (_) {
|
|
407
409
|
V = _;
|
|
408
410
|
}
|
|
409
|
-
V && !(V instanceof Error) && (xe(
|
|
411
|
+
V && !(V instanceof Error) && (xe(D), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", A || "React class", T, E, typeof V), xe(null)), V instanceof Error && !(V.message in yi) && (yi[V.message] = !0, xe(D), y("Failed %s type: %s", T, V.message), xe(null));
|
|
410
412
|
}
|
|
411
413
|
}
|
|
412
414
|
}
|
|
@@ -416,7 +418,7 @@ function ma() {
|
|
|
416
418
|
}
|
|
417
419
|
function _o(h) {
|
|
418
420
|
{
|
|
419
|
-
var
|
|
421
|
+
var m = typeof Symbol == "function" && Symbol.toStringTag, T = m && h[Symbol.toStringTag] || h.constructor.name || "Object";
|
|
420
422
|
return T;
|
|
421
423
|
}
|
|
422
424
|
}
|
|
@@ -434,39 +436,39 @@ function ma() {
|
|
|
434
436
|
if (Bo(h))
|
|
435
437
|
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", _o(h)), Pi(h);
|
|
436
438
|
}
|
|
437
|
-
var
|
|
439
|
+
var Yt = P.ReactCurrentOwner, Io = {
|
|
438
440
|
key: !0,
|
|
439
441
|
ref: !0,
|
|
440
442
|
__self: !0,
|
|
441
443
|
__source: !0
|
|
442
|
-
},
|
|
444
|
+
}, bi, Ti, Xe;
|
|
443
445
|
Xe = {};
|
|
444
446
|
function No(h) {
|
|
445
|
-
if (
|
|
446
|
-
var
|
|
447
|
-
if (
|
|
447
|
+
if (Ht.call(h, "ref")) {
|
|
448
|
+
var m = Object.getOwnPropertyDescriptor(h, "ref").get;
|
|
449
|
+
if (m && m.isReactWarning)
|
|
448
450
|
return !1;
|
|
449
451
|
}
|
|
450
452
|
return h.ref !== void 0;
|
|
451
453
|
}
|
|
452
454
|
function Uo(h) {
|
|
453
|
-
if (
|
|
454
|
-
var
|
|
455
|
-
if (
|
|
455
|
+
if (Ht.call(h, "key")) {
|
|
456
|
+
var m = Object.getOwnPropertyDescriptor(h, "key").get;
|
|
457
|
+
if (m && m.isReactWarning)
|
|
456
458
|
return !1;
|
|
457
459
|
}
|
|
458
460
|
return h.key !== void 0;
|
|
459
461
|
}
|
|
460
|
-
function Wo(h,
|
|
461
|
-
if (typeof h.ref == "string" &&
|
|
462
|
-
var T = Z(
|
|
463
|
-
Xe[T] || (y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', Z(
|
|
462
|
+
function Wo(h, m) {
|
|
463
|
+
if (typeof h.ref == "string" && Yt.current && m && Yt.current.stateNode !== m) {
|
|
464
|
+
var T = Z(Yt.current.type);
|
|
465
|
+
Xe[T] || (y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', Z(Yt.current.type), h.ref), Xe[T] = !0);
|
|
464
466
|
}
|
|
465
467
|
}
|
|
466
|
-
function $o(h,
|
|
468
|
+
function $o(h, m) {
|
|
467
469
|
{
|
|
468
470
|
var T = function() {
|
|
469
|
-
|
|
471
|
+
bi || (bi = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", m));
|
|
470
472
|
};
|
|
471
473
|
T.isReactWarning = !0, Object.defineProperty(h, "key", {
|
|
472
474
|
get: T,
|
|
@@ -474,10 +476,10 @@ function ma() {
|
|
|
474
476
|
});
|
|
475
477
|
}
|
|
476
478
|
}
|
|
477
|
-
function Ko(h,
|
|
479
|
+
function Ko(h, m) {
|
|
478
480
|
{
|
|
479
481
|
var T = function() {
|
|
480
|
-
|
|
482
|
+
Ti || (Ti = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", m));
|
|
481
483
|
};
|
|
482
484
|
T.isReactWarning = !0, Object.defineProperty(h, "ref", {
|
|
483
485
|
get: T,
|
|
@@ -485,17 +487,17 @@ function ma() {
|
|
|
485
487
|
});
|
|
486
488
|
}
|
|
487
489
|
}
|
|
488
|
-
var Go = function(h,
|
|
490
|
+
var Go = function(h, m, T, A, D, k, E) {
|
|
489
491
|
var V = {
|
|
490
492
|
// This tag allows us to uniquely identify this as a React Element
|
|
491
493
|
$$typeof: e,
|
|
492
494
|
// Built-in properties that belong on the element
|
|
493
495
|
type: h,
|
|
494
|
-
key:
|
|
496
|
+
key: m,
|
|
495
497
|
ref: T,
|
|
496
|
-
props:
|
|
498
|
+
props: E,
|
|
497
499
|
// Record the component responsible for creating this element.
|
|
498
|
-
_owner:
|
|
500
|
+
_owner: k
|
|
499
501
|
};
|
|
500
502
|
return V._store = {}, Object.defineProperty(V._store, "validated", {
|
|
501
503
|
configurable: !1,
|
|
@@ -506,36 +508,36 @@ function ma() {
|
|
|
506
508
|
configurable: !1,
|
|
507
509
|
enumerable: !1,
|
|
508
510
|
writable: !1,
|
|
509
|
-
value:
|
|
511
|
+
value: A
|
|
510
512
|
}), Object.defineProperty(V, "_source", {
|
|
511
513
|
configurable: !1,
|
|
512
514
|
enumerable: !1,
|
|
513
515
|
writable: !1,
|
|
514
|
-
value:
|
|
516
|
+
value: D
|
|
515
517
|
}), Object.freeze && (Object.freeze(V.props), Object.freeze(V)), V;
|
|
516
518
|
};
|
|
517
|
-
function zo(h,
|
|
519
|
+
function zo(h, m, T, A, D) {
|
|
518
520
|
{
|
|
519
|
-
var
|
|
520
|
-
T !== void 0 && (xi(T), V = "" + T), Uo(
|
|
521
|
-
for (
|
|
522
|
-
|
|
521
|
+
var k, E = {}, V = null, z = null;
|
|
522
|
+
T !== void 0 && (xi(T), V = "" + T), Uo(m) && (xi(m.key), V = "" + m.key), No(m) && (z = m.ref, Wo(m, D));
|
|
523
|
+
for (k in m)
|
|
524
|
+
Ht.call(m, k) && !Io.hasOwnProperty(k) && (E[k] = m[k]);
|
|
523
525
|
if (h && h.defaultProps) {
|
|
524
526
|
var _ = h.defaultProps;
|
|
525
|
-
for (
|
|
526
|
-
|
|
527
|
+
for (k in _)
|
|
528
|
+
E[k] === void 0 && (E[k] = _[k]);
|
|
527
529
|
}
|
|
528
530
|
if (V || z) {
|
|
529
531
|
var I = typeof h == "function" ? h.displayName || h.name || "Unknown" : h;
|
|
530
|
-
V && $o(
|
|
532
|
+
V && $o(E, I), z && Ko(E, I);
|
|
531
533
|
}
|
|
532
|
-
return Go(h, V, z,
|
|
534
|
+
return Go(h, V, z, D, A, Yt.current, E);
|
|
533
535
|
}
|
|
534
536
|
}
|
|
535
|
-
var qe =
|
|
537
|
+
var qe = P.ReactCurrentOwner, wi = P.ReactDebugCurrentFrame;
|
|
536
538
|
function Lt(h) {
|
|
537
539
|
if (h) {
|
|
538
|
-
var
|
|
540
|
+
var m = h._owner, T = Pe(h.type, h._source, m ? m.type : null);
|
|
539
541
|
wi.setExtraStackFrame(T);
|
|
540
542
|
} else
|
|
541
543
|
wi.setExtraStackFrame(null);
|
|
@@ -560,10 +562,10 @@ Check the render method of \`` + h + "`.";
|
|
|
560
562
|
function Ho(h) {
|
|
561
563
|
{
|
|
562
564
|
if (h !== void 0) {
|
|
563
|
-
var
|
|
565
|
+
var m = h.fileName.replace(/^.*[\\\/]/, ""), T = h.lineNumber;
|
|
564
566
|
return `
|
|
565
567
|
|
|
566
|
-
Check your code at ` +
|
|
568
|
+
Check your code at ` + m + ":" + T + ".";
|
|
567
569
|
}
|
|
568
570
|
return "";
|
|
569
571
|
}
|
|
@@ -571,79 +573,79 @@ Check your code at ` + g + ":" + T + ".";
|
|
|
571
573
|
var Ci = {};
|
|
572
574
|
function Yo(h) {
|
|
573
575
|
{
|
|
574
|
-
var
|
|
575
|
-
if (!
|
|
576
|
+
var m = Si();
|
|
577
|
+
if (!m) {
|
|
576
578
|
var T = typeof h == "string" ? h : h.displayName || h.name;
|
|
577
|
-
T && (
|
|
579
|
+
T && (m = `
|
|
578
580
|
|
|
579
581
|
Check the top-level render call using <` + T + ">.");
|
|
580
582
|
}
|
|
581
|
-
return
|
|
583
|
+
return m;
|
|
582
584
|
}
|
|
583
585
|
}
|
|
584
|
-
function Ai(h,
|
|
586
|
+
function Ai(h, m) {
|
|
585
587
|
{
|
|
586
588
|
if (!h._store || h._store.validated || h.key != null)
|
|
587
589
|
return;
|
|
588
590
|
h._store.validated = !0;
|
|
589
|
-
var T = Yo(
|
|
591
|
+
var T = Yo(m);
|
|
590
592
|
if (Ci[T])
|
|
591
593
|
return;
|
|
592
594
|
Ci[T] = !0;
|
|
593
|
-
var
|
|
594
|
-
h && h._owner && h._owner !== qe.current && (
|
|
595
|
+
var A = "";
|
|
596
|
+
h && h._owner && h._owner !== qe.current && (A = " It was passed a child from " + Z(h._owner.type) + "."), Lt(h), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', T, A), Lt(null);
|
|
595
597
|
}
|
|
596
598
|
}
|
|
597
|
-
function Ri(h,
|
|
599
|
+
function Ri(h, m) {
|
|
598
600
|
{
|
|
599
601
|
if (typeof h != "object")
|
|
600
602
|
return;
|
|
601
603
|
if (Ye(h))
|
|
602
604
|
for (var T = 0; T < h.length; T++) {
|
|
603
|
-
var
|
|
604
|
-
Je(
|
|
605
|
+
var A = h[T];
|
|
606
|
+
Je(A) && Ai(A, m);
|
|
605
607
|
}
|
|
606
608
|
else if (Je(h))
|
|
607
609
|
h._store && (h._store.validated = !0);
|
|
608
610
|
else if (h) {
|
|
609
|
-
var
|
|
610
|
-
if (typeof
|
|
611
|
-
for (var
|
|
612
|
-
Je(
|
|
611
|
+
var D = b(h);
|
|
612
|
+
if (typeof D == "function" && D !== h.entries)
|
|
613
|
+
for (var k = D.call(h), E; !(E = k.next()).done; )
|
|
614
|
+
Je(E.value) && Ai(E.value, m);
|
|
613
615
|
}
|
|
614
616
|
}
|
|
615
617
|
}
|
|
616
618
|
function Xo(h) {
|
|
617
619
|
{
|
|
618
|
-
var
|
|
619
|
-
if (
|
|
620
|
+
var m = h.type;
|
|
621
|
+
if (m == null || typeof m == "string")
|
|
620
622
|
return;
|
|
621
623
|
var T;
|
|
622
|
-
if (typeof
|
|
623
|
-
T =
|
|
624
|
-
else if (typeof
|
|
624
|
+
if (typeof m == "function")
|
|
625
|
+
T = m.propTypes;
|
|
626
|
+
else if (typeof m == "object" && (m.$$typeof === l || // Note: Memo only checks outer props here.
|
|
625
627
|
// Inner props are checked in the reconciler.
|
|
626
|
-
|
|
627
|
-
T =
|
|
628
|
+
m.$$typeof === f))
|
|
629
|
+
T = m.propTypes;
|
|
628
630
|
else
|
|
629
631
|
return;
|
|
630
632
|
if (T) {
|
|
631
|
-
var
|
|
632
|
-
jo(T, h.props, "prop",
|
|
633
|
-
} else if (
|
|
633
|
+
var A = Z(m);
|
|
634
|
+
jo(T, h.props, "prop", A, h);
|
|
635
|
+
} else if (m.PropTypes !== void 0 && !Ze) {
|
|
634
636
|
Ze = !0;
|
|
635
|
-
var
|
|
636
|
-
y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
637
|
+
var D = Z(m);
|
|
638
|
+
y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", D || "Unknown");
|
|
637
639
|
}
|
|
638
|
-
typeof
|
|
640
|
+
typeof m.getDefaultProps == "function" && !m.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
639
641
|
}
|
|
640
642
|
}
|
|
641
643
|
function qo(h) {
|
|
642
644
|
{
|
|
643
|
-
for (var
|
|
644
|
-
var
|
|
645
|
-
if (
|
|
646
|
-
Lt(h), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",
|
|
645
|
+
for (var m = Object.keys(h.props), T = 0; T < m.length; T++) {
|
|
646
|
+
var A = m[T];
|
|
647
|
+
if (A !== "children" && A !== "key") {
|
|
648
|
+
Lt(h), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", A), Lt(null);
|
|
647
649
|
break;
|
|
648
650
|
}
|
|
649
651
|
}
|
|
@@ -651,24 +653,24 @@ Check the top-level render call using <` + T + ">.");
|
|
|
651
653
|
}
|
|
652
654
|
}
|
|
653
655
|
var Vi = {};
|
|
654
|
-
function Ei(h,
|
|
656
|
+
function Ei(h, m, T, A, D, k) {
|
|
655
657
|
{
|
|
656
|
-
var
|
|
657
|
-
if (!
|
|
658
|
+
var E = Y(h);
|
|
659
|
+
if (!E) {
|
|
658
660
|
var V = "";
|
|
659
661
|
(h === void 0 || typeof h == "object" && h !== null && Object.keys(h).length === 0) && (V += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
660
|
-
var z = Ho(
|
|
662
|
+
var z = Ho(D);
|
|
661
663
|
z ? V += z : V += Si();
|
|
662
664
|
var _;
|
|
663
665
|
h === null ? _ = "null" : Ye(h) ? _ = "array" : h !== void 0 && h.$$typeof === e ? (_ = "<" + (Z(h.type) || "Unknown") + " />", V = " Did you accidentally export a JSX literal instead of a component?") : _ = typeof h, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", _, V);
|
|
664
666
|
}
|
|
665
|
-
var I = zo(h,
|
|
667
|
+
var I = zo(h, m, T, D, k);
|
|
666
668
|
if (I == null)
|
|
667
669
|
return I;
|
|
668
|
-
if (
|
|
669
|
-
var Q =
|
|
670
|
+
if (E) {
|
|
671
|
+
var Q = m.children;
|
|
670
672
|
if (Q !== void 0)
|
|
671
|
-
if (
|
|
673
|
+
if (A)
|
|
672
674
|
if (Ye(Q)) {
|
|
673
675
|
for (var Ot = 0; Ot < Q.length; Ot++)
|
|
674
676
|
Ri(Q[Ot], h);
|
|
@@ -678,32 +680,32 @@ Check the top-level render call using <` + T + ">.");
|
|
|
678
680
|
else
|
|
679
681
|
Ri(Q, h);
|
|
680
682
|
}
|
|
681
|
-
if (
|
|
682
|
-
var
|
|
683
|
+
if (Ht.call(m, "key")) {
|
|
684
|
+
var wt = Z(h), X = Object.keys(m).filter(function(na) {
|
|
683
685
|
return na !== "key";
|
|
684
|
-
}), Qe =
|
|
685
|
-
if (!Vi[
|
|
686
|
-
var ea =
|
|
686
|
+
}), Qe = X.length > 0 ? "{key: someKey, " + X.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
687
|
+
if (!Vi[wt + Qe]) {
|
|
688
|
+
var ea = X.length > 0 ? "{" + X.join(": ..., ") + ": ...}" : "{}";
|
|
687
689
|
y(`A props object containing a "key" prop is being spread into JSX:
|
|
688
690
|
let props = %s;
|
|
689
691
|
<%s {...props} />
|
|
690
692
|
React keys must be passed directly to JSX without using spread:
|
|
691
693
|
let props = %s;
|
|
692
|
-
<%s key={someKey} {...props} />`, Qe,
|
|
694
|
+
<%s key={someKey} {...props} />`, Qe, wt, ea, wt), Vi[wt + Qe] = !0;
|
|
693
695
|
}
|
|
694
696
|
}
|
|
695
697
|
return h === i ? qo(I) : Xo(I), I;
|
|
696
698
|
}
|
|
697
699
|
}
|
|
698
|
-
function Zo(h,
|
|
699
|
-
return Ei(h,
|
|
700
|
+
function Zo(h, m, T) {
|
|
701
|
+
return Ei(h, m, T, !0);
|
|
700
702
|
}
|
|
701
|
-
function Jo(h,
|
|
702
|
-
return Ei(h,
|
|
703
|
+
function Jo(h, m, T) {
|
|
704
|
+
return Ei(h, m, T, !1);
|
|
703
705
|
}
|
|
704
706
|
var Qo = Jo, ta = Zo;
|
|
705
|
-
|
|
706
|
-
}()),
|
|
707
|
+
qt.Fragment = i, qt.jsx = Qo, qt.jsxs = ta;
|
|
708
|
+
}()), qt;
|
|
707
709
|
}
|
|
708
710
|
process.env.NODE_ENV === "production" ? mn.exports = pa() : mn.exports = ma();
|
|
709
711
|
var O = mn.exports, ga = Object.defineProperty, ya = (t, e, n) => e in t ? ga(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, gn = (t, e, n) => (ya(t, typeof e != "symbol" ? e + "" : e, n), n);
|
|
@@ -738,7 +740,7 @@ const jn = Dt({
|
|
|
738
740
|
transformPagePoint: (t) => t,
|
|
739
741
|
isStatic: !1,
|
|
740
742
|
reducedMotion: "never"
|
|
741
|
-
}), Fe = Dt({}), _e = Dt(null), Fn = typeof window < "u", nr = Fn ? Js :
|
|
743
|
+
}), Fe = Dt({}), _e = Dt(null), Fn = typeof window < "u", nr = Fn ? Js : vt, ir = Dt({ strict: !1 }), Be = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), va = "framerAppearId", sr = "data-" + Be(va), Pa = {
|
|
742
744
|
skipAnimations: !1,
|
|
743
745
|
useManualTiming: !1
|
|
744
746
|
};
|
|
@@ -780,7 +782,7 @@ function xa(t) {
|
|
|
780
782
|
};
|
|
781
783
|
return l;
|
|
782
784
|
}
|
|
783
|
-
const
|
|
785
|
+
const be = [
|
|
784
786
|
"read",
|
|
785
787
|
// Read
|
|
786
788
|
"resolveKeyframes",
|
|
@@ -793,34 +795,34 @@ const Te = [
|
|
|
793
795
|
// Write
|
|
794
796
|
"postRender"
|
|
795
797
|
// Compute
|
|
796
|
-
],
|
|
798
|
+
], ba = 40;
|
|
797
799
|
function rr(t, e) {
|
|
798
800
|
let n = !1, i = !0;
|
|
799
801
|
const s = {
|
|
800
802
|
delta: 0,
|
|
801
803
|
timestamp: 0,
|
|
802
804
|
isProcessing: !1
|
|
803
|
-
}, o = () => n = !0, r =
|
|
804
|
-
const
|
|
805
|
-
n = !1, s.delta = i ? 1e3 / 60 : Math.max(Math.min(
|
|
806
|
-
},
|
|
805
|
+
}, o = () => n = !0, r = be.reduce((P, y) => (P[y] = xa(o), P), {}), { read: a, resolveKeyframes: l, update: c, preRender: u, render: f, postRender: d } = r, p = () => {
|
|
806
|
+
const P = performance.now();
|
|
807
|
+
n = !1, s.delta = i ? 1e3 / 60 : Math.max(Math.min(P - s.timestamp, ba), 1), s.timestamp = P, s.isProcessing = !0, a.process(s), l.process(s), c.process(s), u.process(s), f.process(s), d.process(s), s.isProcessing = !1, n && e && (i = !1, t(p));
|
|
808
|
+
}, g = () => {
|
|
807
809
|
n = !0, i = !0, s.isProcessing || t(p);
|
|
808
810
|
};
|
|
809
|
-
return { schedule:
|
|
811
|
+
return { schedule: be.reduce((P, y) => {
|
|
810
812
|
const v = r[y];
|
|
811
|
-
return
|
|
812
|
-
}, {}), cancel: (
|
|
813
|
-
for (let y = 0; y <
|
|
814
|
-
r[
|
|
813
|
+
return P[y] = (w, R = !1, L = !1) => (n || g(), v.schedule(w, R, L)), P;
|
|
814
|
+
}, {}), cancel: (P) => {
|
|
815
|
+
for (let y = 0; y < be.length; y++)
|
|
816
|
+
r[be[y]].cancel(P);
|
|
815
817
|
}, state: s, steps: r };
|
|
816
818
|
}
|
|
817
819
|
const { schedule: _n, cancel: uh } = rr(queueMicrotask, !1);
|
|
818
|
-
function
|
|
820
|
+
function _t(t) {
|
|
819
821
|
return t && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current");
|
|
820
822
|
}
|
|
821
823
|
const or = Dt({});
|
|
822
824
|
let ki = !1;
|
|
823
|
-
function
|
|
825
|
+
function Ta(t, e, n, i, s) {
|
|
824
826
|
const { visualElement: o } = U(Fe), r = U(ir), a = U(_e), l = U(jn).reducedMotion, c = nt();
|
|
825
827
|
i = i || r.renderer, !c.current && i && (c.current = i(t, {
|
|
826
828
|
visualState: e,
|
|
@@ -837,7 +839,7 @@ function ba(t, e, n, i, s) {
|
|
|
837
839
|
const d = nt(!!(n[sr] && !window.HandoffComplete));
|
|
838
840
|
return nr(() => {
|
|
839
841
|
u && (u.updateFeatures(), _n.render(u.render), d.current && u.animationState && u.animationState.animateChanges());
|
|
840
|
-
}),
|
|
842
|
+
}), vt(() => {
|
|
841
843
|
u && (!d.current && u.animationState && u.animationState.animateChanges(), d.current && (d.current = !1, ki || (ki = !0, queueMicrotask(wa))));
|
|
842
844
|
}), u;
|
|
843
845
|
}
|
|
@@ -849,7 +851,7 @@ function Sa(t, e, n, i) {
|
|
|
849
851
|
t.projection = new n(t.latestValues, e["data-framer-portal-id"] ? void 0 : ar(t.parent)), t.projection.setOptions({
|
|
850
852
|
layoutId: s,
|
|
851
853
|
layout: o,
|
|
852
|
-
alwaysMeasureLayout: !!r || a &&
|
|
854
|
+
alwaysMeasureLayout: !!r || a && _t(a),
|
|
853
855
|
visualElement: t,
|
|
854
856
|
/**
|
|
855
857
|
* TODO: Update options in an effect. This could be tricky as it'll be too late
|
|
@@ -869,9 +871,9 @@ function ar(t) {
|
|
|
869
871
|
return t.options.allowProjection !== !1 ? t.projection : ar(t.parent);
|
|
870
872
|
}
|
|
871
873
|
function Ca(t, e, n) {
|
|
872
|
-
return
|
|
874
|
+
return gt(
|
|
873
875
|
(i) => {
|
|
874
|
-
i && t.mount && t.mount(i), e && (i ? e.mount(i) : e.unmount()), n && (typeof n == "function" ? n(i) :
|
|
876
|
+
i && t.mount && t.mount(i), e && (i ? e.mount(i) : e.unmount()), n && (typeof n == "function" ? n(i) : _t(n) && (n.current = i));
|
|
875
877
|
},
|
|
876
878
|
/**
|
|
877
879
|
* Only pass a new ref callback to React if we've received a visual element
|
|
@@ -938,21 +940,21 @@ const Oi = {
|
|
|
938
940
|
pan: ["onPan", "onPanStart", "onPanSessionStart", "onPanEnd"],
|
|
939
941
|
inView: ["whileInView", "onViewportEnter", "onViewportLeave"],
|
|
940
942
|
layout: ["layout", "layoutId"]
|
|
941
|
-
},
|
|
943
|
+
}, Wt = {};
|
|
942
944
|
for (const t in Oi)
|
|
943
|
-
|
|
945
|
+
Wt[t] = {
|
|
944
946
|
isEnabled: (e) => Oi[t].some((n) => !!e[n])
|
|
945
947
|
};
|
|
946
948
|
function Va(t) {
|
|
947
949
|
for (const e in t)
|
|
948
|
-
|
|
949
|
-
...
|
|
950
|
+
Wt[e] = {
|
|
951
|
+
...Wt[e],
|
|
950
952
|
...t[e]
|
|
951
953
|
};
|
|
952
954
|
}
|
|
953
955
|
const Nn = Dt({}), Ea = Symbol.for("motionComponentSymbol"), W = (t) => t;
|
|
954
|
-
let
|
|
955
|
-
process.env.NODE_ENV !== "production" && (
|
|
956
|
+
let Kt = W, ft = W;
|
|
957
|
+
process.env.NODE_ENV !== "production" && (Kt = (t, e) => {
|
|
956
958
|
!t && typeof console < "u" && console.warn(e);
|
|
957
959
|
}, ft = (t, e) => {
|
|
958
960
|
if (!t)
|
|
@@ -969,8 +971,8 @@ function Da({ preloadedFeatures: t, createVisualElement: e, useRender: n, useVis
|
|
|
969
971
|
}, { isStatic: f } = u, d = Ra(a), p = i(a, f);
|
|
970
972
|
if (!f && Fn) {
|
|
971
973
|
ka(u, t);
|
|
972
|
-
const
|
|
973
|
-
c =
|
|
974
|
+
const g = La(u);
|
|
975
|
+
c = g.MeasureLayout, d.visualElement = Ta(s, p, u, e, g.ProjectionNode);
|
|
974
976
|
}
|
|
975
977
|
return O.jsxs(Fe.Provider, { value: d, children: [c && d.visualElement ? O.jsx(c, { visualElement: d.visualElement, ...u }) : null, n(s, a, Ca(p, d.visualElement, l), p, f, d.visualElement)] });
|
|
976
978
|
}
|
|
@@ -985,11 +987,11 @@ function ka(t, e) {
|
|
|
985
987
|
const n = U(ir).strict;
|
|
986
988
|
if (process.env.NODE_ENV !== "production" && e && n) {
|
|
987
989
|
const i = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
|
|
988
|
-
t.ignoreStrict ?
|
|
990
|
+
t.ignoreStrict ? Kt(!1, i) : ft(!1, i);
|
|
989
991
|
}
|
|
990
992
|
}
|
|
991
993
|
function La(t) {
|
|
992
|
-
const { drag: e, layout: n } =
|
|
994
|
+
const { drag: e, layout: n } = Wt;
|
|
993
995
|
if (!e && !n)
|
|
994
996
|
return {};
|
|
995
997
|
const i = { ...e, ...n };
|
|
@@ -1083,19 +1085,19 @@ const de = [
|
|
|
1083
1085
|
"skew",
|
|
1084
1086
|
"skewX",
|
|
1085
1087
|
"skewY"
|
|
1086
|
-
],
|
|
1088
|
+
], bt = new Set(de);
|
|
1087
1089
|
function cr(t, { layout: e, layoutId: n }) {
|
|
1088
|
-
return
|
|
1090
|
+
return bt.has(t) || t.startsWith("origin") || (e || n !== void 0) && (!!De[t] || t === "opacity");
|
|
1089
1091
|
}
|
|
1090
|
-
const K = (t) => !!(t && t.getVelocity), ur = (t, e) => e && typeof t == "number" ? e.transform(t) : t,
|
|
1092
|
+
const K = (t) => !!(t && t.getVelocity), ur = (t, e) => e && typeof t == "number" ? e.transform(t) : t, Pt = (t, e, n) => n > e ? e : n < t ? t : n, Gt = {
|
|
1091
1093
|
test: (t) => typeof t == "number",
|
|
1092
1094
|
parse: parseFloat,
|
|
1093
1095
|
transform: (t) => t
|
|
1094
1096
|
}, te = {
|
|
1095
|
-
...
|
|
1096
|
-
transform: (t) =>
|
|
1097
|
-
},
|
|
1098
|
-
...
|
|
1097
|
+
...Gt,
|
|
1098
|
+
transform: (t) => Pt(0, 1, t)
|
|
1099
|
+
}, Te = {
|
|
1100
|
+
...Gt,
|
|
1099
1101
|
default: 1
|
|
1100
1102
|
}, ee = (t) => Math.round(t * 1e5) / 1e5, Wn = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu, _a = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu, Ba = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;
|
|
1101
1103
|
function pe(t) {
|
|
@@ -1108,76 +1110,76 @@ const me = (t) => ({
|
|
|
1108
1110
|
test: (e) => pe(e) && e.endsWith(t) && e.split(" ").length === 1,
|
|
1109
1111
|
parse: parseFloat,
|
|
1110
1112
|
transform: (e) => `${e}${t}`
|
|
1111
|
-
}),
|
|
1112
|
-
...
|
|
1113
|
-
parse: (t) =>
|
|
1114
|
-
transform: (t) =>
|
|
1113
|
+
}), mt = me("deg"), rt = me("%"), C = me("px"), Na = me("vh"), Ua = me("vw"), ji = {
|
|
1114
|
+
...rt,
|
|
1115
|
+
parse: (t) => rt.parse(t) / 100,
|
|
1116
|
+
transform: (t) => rt.transform(t * 100)
|
|
1115
1117
|
}, Fi = {
|
|
1116
|
-
...
|
|
1118
|
+
...Gt,
|
|
1117
1119
|
transform: Math.round
|
|
1118
1120
|
}, $n = {
|
|
1119
1121
|
// Border props
|
|
1120
|
-
borderWidth:
|
|
1121
|
-
borderTopWidth:
|
|
1122
|
-
borderRightWidth:
|
|
1123
|
-
borderBottomWidth:
|
|
1124
|
-
borderLeftWidth:
|
|
1125
|
-
borderRadius:
|
|
1126
|
-
radius:
|
|
1127
|
-
borderTopLeftRadius:
|
|
1128
|
-
borderTopRightRadius:
|
|
1129
|
-
borderBottomRightRadius:
|
|
1130
|
-
borderBottomLeftRadius:
|
|
1122
|
+
borderWidth: C,
|
|
1123
|
+
borderTopWidth: C,
|
|
1124
|
+
borderRightWidth: C,
|
|
1125
|
+
borderBottomWidth: C,
|
|
1126
|
+
borderLeftWidth: C,
|
|
1127
|
+
borderRadius: C,
|
|
1128
|
+
radius: C,
|
|
1129
|
+
borderTopLeftRadius: C,
|
|
1130
|
+
borderTopRightRadius: C,
|
|
1131
|
+
borderBottomRightRadius: C,
|
|
1132
|
+
borderBottomLeftRadius: C,
|
|
1131
1133
|
// Positioning props
|
|
1132
|
-
width:
|
|
1133
|
-
maxWidth:
|
|
1134
|
-
height:
|
|
1135
|
-
maxHeight:
|
|
1136
|
-
size:
|
|
1137
|
-
top:
|
|
1138
|
-
right:
|
|
1139
|
-
bottom:
|
|
1140
|
-
left:
|
|
1134
|
+
width: C,
|
|
1135
|
+
maxWidth: C,
|
|
1136
|
+
height: C,
|
|
1137
|
+
maxHeight: C,
|
|
1138
|
+
size: C,
|
|
1139
|
+
top: C,
|
|
1140
|
+
right: C,
|
|
1141
|
+
bottom: C,
|
|
1142
|
+
left: C,
|
|
1141
1143
|
// Spacing props
|
|
1142
|
-
padding:
|
|
1143
|
-
paddingTop:
|
|
1144
|
-
paddingRight:
|
|
1145
|
-
paddingBottom:
|
|
1146
|
-
paddingLeft:
|
|
1147
|
-
margin:
|
|
1148
|
-
marginTop:
|
|
1149
|
-
marginRight:
|
|
1150
|
-
marginBottom:
|
|
1151
|
-
marginLeft:
|
|
1144
|
+
padding: C,
|
|
1145
|
+
paddingTop: C,
|
|
1146
|
+
paddingRight: C,
|
|
1147
|
+
paddingBottom: C,
|
|
1148
|
+
paddingLeft: C,
|
|
1149
|
+
margin: C,
|
|
1150
|
+
marginTop: C,
|
|
1151
|
+
marginRight: C,
|
|
1152
|
+
marginBottom: C,
|
|
1153
|
+
marginLeft: C,
|
|
1152
1154
|
// Transform props
|
|
1153
|
-
rotate:
|
|
1154
|
-
rotateX:
|
|
1155
|
-
rotateY:
|
|
1156
|
-
rotateZ:
|
|
1157
|
-
scale:
|
|
1158
|
-
scaleX:
|
|
1159
|
-
scaleY:
|
|
1160
|
-
scaleZ:
|
|
1161
|
-
skew:
|
|
1162
|
-
skewX:
|
|
1163
|
-
skewY:
|
|
1164
|
-
distance:
|
|
1165
|
-
translateX:
|
|
1166
|
-
translateY:
|
|
1167
|
-
translateZ:
|
|
1168
|
-
x:
|
|
1169
|
-
y:
|
|
1170
|
-
z:
|
|
1171
|
-
perspective:
|
|
1172
|
-
transformPerspective:
|
|
1155
|
+
rotate: mt,
|
|
1156
|
+
rotateX: mt,
|
|
1157
|
+
rotateY: mt,
|
|
1158
|
+
rotateZ: mt,
|
|
1159
|
+
scale: Te,
|
|
1160
|
+
scaleX: Te,
|
|
1161
|
+
scaleY: Te,
|
|
1162
|
+
scaleZ: Te,
|
|
1163
|
+
skew: mt,
|
|
1164
|
+
skewX: mt,
|
|
1165
|
+
skewY: mt,
|
|
1166
|
+
distance: C,
|
|
1167
|
+
translateX: C,
|
|
1168
|
+
translateY: C,
|
|
1169
|
+
translateZ: C,
|
|
1170
|
+
x: C,
|
|
1171
|
+
y: C,
|
|
1172
|
+
z: C,
|
|
1173
|
+
perspective: C,
|
|
1174
|
+
transformPerspective: C,
|
|
1173
1175
|
opacity: te,
|
|
1174
1176
|
originX: ji,
|
|
1175
1177
|
originY: ji,
|
|
1176
|
-
originZ:
|
|
1178
|
+
originZ: C,
|
|
1177
1179
|
// Misc
|
|
1178
1180
|
zIndex: Fi,
|
|
1179
|
-
backgroundPositionX:
|
|
1180
|
-
backgroundPositionY:
|
|
1181
|
+
backgroundPositionX: C,
|
|
1182
|
+
backgroundPositionY: C,
|
|
1181
1183
|
// SVG
|
|
1182
1184
|
fillOpacity: te,
|
|
1183
1185
|
strokeOpacity: te,
|
|
@@ -1213,7 +1215,7 @@ function Gn(t, e, n) {
|
|
|
1213
1215
|
let r = !1, a = !1;
|
|
1214
1216
|
for (const l in e) {
|
|
1215
1217
|
const c = e[l];
|
|
1216
|
-
if (
|
|
1218
|
+
if (bt.has(l)) {
|
|
1217
1219
|
r = !0;
|
|
1218
1220
|
continue;
|
|
1219
1221
|
} else if (hr(l)) {
|
|
@@ -1304,7 +1306,7 @@ function Ja(t, e, n) {
|
|
|
1304
1306
|
return i;
|
|
1305
1307
|
}
|
|
1306
1308
|
function _i(t, e, n) {
|
|
1307
|
-
return typeof t == "string" ? t :
|
|
1309
|
+
return typeof t == "string" ? t : C.transform(e + n * t);
|
|
1308
1310
|
}
|
|
1309
1311
|
function Qa(t, e, n) {
|
|
1310
1312
|
const i = _i(e, t.x, t.width), s = _i(n, t.y, t.height);
|
|
@@ -1320,8 +1322,8 @@ const tl = {
|
|
|
1320
1322
|
function nl(t, e, n = 1, i = 0, s = !0) {
|
|
1321
1323
|
t.pathLength = 1;
|
|
1322
1324
|
const o = s ? tl : el;
|
|
1323
|
-
t[o.offset] =
|
|
1324
|
-
const r =
|
|
1325
|
+
t[o.offset] = C.transform(-i);
|
|
1326
|
+
const r = C.transform(e), a = C.transform(n);
|
|
1325
1327
|
t[o.array] = `${r} ${a}`;
|
|
1326
1328
|
}
|
|
1327
1329
|
function Hn(t, {
|
|
@@ -1341,8 +1343,8 @@ function Hn(t, {
|
|
|
1341
1343
|
return;
|
|
1342
1344
|
}
|
|
1343
1345
|
t.attrs = t.style, t.style = {};
|
|
1344
|
-
const { attrs: d, style: p, dimensions:
|
|
1345
|
-
d.transform && (
|
|
1346
|
+
const { attrs: d, style: p, dimensions: g } = t;
|
|
1347
|
+
d.transform && (g && (p.transform = d.transform), delete d.transform), g && (s !== void 0 || o !== void 0 || p.transform) && (p.transformOrigin = Qa(g, s !== void 0 ? s : 0.5, o !== void 0 ? o : 0.5)), e !== void 0 && (d.x = e), n !== void 0 && (d.y = n), i !== void 0 && (d.scale = i), r !== void 0 && nl(d, r, a, l, !1);
|
|
1346
1348
|
}
|
|
1347
1349
|
const mr = () => ({
|
|
1348
1350
|
...zn(),
|
|
@@ -1457,8 +1459,8 @@ const xr = /* @__PURE__ */ new Set([
|
|
|
1457
1459
|
// or until we implement support for linear() easing.
|
|
1458
1460
|
// "background-color"
|
|
1459
1461
|
]);
|
|
1460
|
-
function
|
|
1461
|
-
if (
|
|
1462
|
+
function br(t) {
|
|
1463
|
+
if (bt.has(t))
|
|
1462
1464
|
return "transform";
|
|
1463
1465
|
if (xr.has(t))
|
|
1464
1466
|
return Be(t);
|
|
@@ -1477,12 +1479,12 @@ function al({ applyWillChange: t = !1, scrapeMotionValuesFromProps: e, createRen
|
|
|
1477
1479
|
};
|
|
1478
1480
|
return i && (l.mount = (c) => i(s, c, l)), l;
|
|
1479
1481
|
}
|
|
1480
|
-
const
|
|
1482
|
+
const Tr = (t) => (e, n) => {
|
|
1481
1483
|
const i = U(Fe), s = U(_e), o = () => al(t, e, i, s, n);
|
|
1482
1484
|
return n ? o() : Zn(o);
|
|
1483
1485
|
};
|
|
1484
1486
|
function ll(t, e) {
|
|
1485
|
-
const n =
|
|
1487
|
+
const n = br(e);
|
|
1486
1488
|
n && Ne(t, n);
|
|
1487
1489
|
}
|
|
1488
1490
|
function Ii(t, e, n) {
|
|
@@ -1503,31 +1505,31 @@ function cl(t, e, n, i, s) {
|
|
|
1503
1505
|
let { initial: u, animate: f } = t;
|
|
1504
1506
|
const d = Ie(t), p = lr(t);
|
|
1505
1507
|
e && p && !d && t.inherit !== !1 && (u === void 0 && (u = e.initial), f === void 0 && (f = e.animate));
|
|
1506
|
-
let
|
|
1507
|
-
|
|
1508
|
-
const
|
|
1509
|
-
return
|
|
1508
|
+
let g = n ? n.initial === !1 : !1;
|
|
1509
|
+
g = g || u === !1;
|
|
1510
|
+
const x = g ? f : u;
|
|
1511
|
+
return x && typeof x != "boolean" && !oe(x) && Ii(t, x, (b, P) => {
|
|
1510
1512
|
for (const y in b) {
|
|
1511
1513
|
let v = b[y];
|
|
1512
1514
|
if (Array.isArray(v)) {
|
|
1513
|
-
const w =
|
|
1515
|
+
const w = g ? v.length - 1 : 0;
|
|
1514
1516
|
v = v[w];
|
|
1515
1517
|
}
|
|
1516
1518
|
v !== null && (r[y] = v);
|
|
1517
1519
|
}
|
|
1518
|
-
for (const y in
|
|
1519
|
-
r[y] =
|
|
1520
|
+
for (const y in P)
|
|
1521
|
+
r[y] = P[y];
|
|
1520
1522
|
}), l && (f && u !== !1 && !oe(f) && Ii(t, f, (b) => {
|
|
1521
|
-
for (const
|
|
1522
|
-
ll(a,
|
|
1523
|
+
for (const P in b)
|
|
1524
|
+
ll(a, P);
|
|
1523
1525
|
}), a.length && (r.willChange = a.join(","))), r;
|
|
1524
1526
|
}
|
|
1525
|
-
const { schedule:
|
|
1526
|
-
useVisualState:
|
|
1527
|
+
const { schedule: M, cancel: ht, state: N, steps: tn } = rr(typeof requestAnimationFrame < "u" ? requestAnimationFrame : W, !0), ul = {
|
|
1528
|
+
useVisualState: Tr({
|
|
1527
1529
|
scrapeMotionValuesFromProps: Pr,
|
|
1528
1530
|
createRenderState: mr,
|
|
1529
1531
|
onMount: (t, e, { renderState: n, latestValues: i }) => {
|
|
1530
|
-
|
|
1532
|
+
M.read(() => {
|
|
1531
1533
|
try {
|
|
1532
1534
|
n.dimensions = typeof e.getBBox == "function" ? e.getBBox() : e.getBoundingClientRect();
|
|
1533
1535
|
} catch {
|
|
@@ -1538,13 +1540,13 @@ const { schedule: k, cancel: ht, state: N, steps: tn } = rr(typeof requestAnimat
|
|
|
1538
1540
|
height: 0
|
|
1539
1541
|
};
|
|
1540
1542
|
}
|
|
1541
|
-
}),
|
|
1543
|
+
}), M.render(() => {
|
|
1542
1544
|
Hn(n, i, Yn(e.tagName), t.transformTemplate), vr(e, n);
|
|
1543
1545
|
});
|
|
1544
1546
|
}
|
|
1545
1547
|
})
|
|
1546
1548
|
}, fl = {
|
|
1547
|
-
useVisualState:
|
|
1549
|
+
useVisualState: Tr({
|
|
1548
1550
|
applyWillChange: !0,
|
|
1549
1551
|
scrapeMotionValuesFromProps: Xn,
|
|
1550
1552
|
createRenderState: zn
|
|
@@ -1618,7 +1620,7 @@ function Wi(t, e) {
|
|
|
1618
1620
|
const a = t.getProps();
|
|
1619
1621
|
t.animationState && a.whileHover && t.animationState.setActive("whileHover", e);
|
|
1620
1622
|
const l = a[i];
|
|
1621
|
-
l &&
|
|
1623
|
+
l && M.postRender(() => l(o, r));
|
|
1622
1624
|
};
|
|
1623
1625
|
return at(t.current, n, s, {
|
|
1624
1626
|
passive: !t.getProps()[i]
|
|
@@ -1670,7 +1672,7 @@ class yl extends Tt {
|
|
|
1670
1672
|
if (!this.checkPressEnd())
|
|
1671
1673
|
return;
|
|
1672
1674
|
const { onTap: c, onTapCancel: u, globalTapTarget: f } = this.node.getProps(), d = !f && !Rr(this.node.current, a.target) ? u : c;
|
|
1673
|
-
d &&
|
|
1675
|
+
d && M.update(() => d(a, l));
|
|
1674
1676
|
}, {
|
|
1675
1677
|
passive: !(i.onTap || i.onPointerUp)
|
|
1676
1678
|
}), r = at(window, "pointercancel", (a, l) => this.cancelPress(a, l), {
|
|
@@ -1684,7 +1686,7 @@ class yl extends Tt {
|
|
|
1684
1686
|
const r = (a) => {
|
|
1685
1687
|
a.key !== "Enter" || !this.checkPressEnd() || en("up", (l, c) => {
|
|
1686
1688
|
const { onTap: u } = this.node.getProps();
|
|
1687
|
-
u &&
|
|
1689
|
+
u && M.postRender(() => u(l, c));
|
|
1688
1690
|
});
|
|
1689
1691
|
};
|
|
1690
1692
|
this.removeEndListeners(), this.removeEndListeners = ot(this.node.current, "keyup", r), en("down", (a, l) => {
|
|
@@ -1699,7 +1701,7 @@ class yl extends Tt {
|
|
|
1699
1701
|
startPress(e, n) {
|
|
1700
1702
|
this.isPressing = !0;
|
|
1701
1703
|
const { onTapStart: i, whileTap: s } = this.node.getProps();
|
|
1702
|
-
s && this.node.animationState && this.node.animationState.setActive("whileTap", !0), i &&
|
|
1704
|
+
s && this.node.animationState && this.node.animationState.setActive("whileTap", !0), i && M.postRender(() => i(e, n));
|
|
1703
1705
|
}
|
|
1704
1706
|
checkPressEnd() {
|
|
1705
1707
|
return this.removeEndListeners(), this.isPressing = !1, this.node.getProps().whileTap && this.node.animationState && this.node.animationState.setActive("whileTap", !1), !Ar();
|
|
@@ -1708,7 +1710,7 @@ class yl extends Tt {
|
|
|
1708
1710
|
if (!this.checkPressEnd())
|
|
1709
1711
|
return;
|
|
1710
1712
|
const { onTapCancel: i } = this.node.getProps();
|
|
1711
|
-
i &&
|
|
1713
|
+
i && M.postRender(() => i(e, n));
|
|
1712
1714
|
}
|
|
1713
1715
|
mount() {
|
|
1714
1716
|
const e = this.node.getProps(), n = at(e.globalTapTarget ? window : this.node.current, "pointerdown", this.startPointerPress, {
|
|
@@ -1732,13 +1734,13 @@ function xl({ root: t, ...e }) {
|
|
|
1732
1734
|
const i = nn.get(n), s = JSON.stringify(e);
|
|
1733
1735
|
return i[s] || (i[s] = new IntersectionObserver(Pl, { root: t, ...e })), i[s];
|
|
1734
1736
|
}
|
|
1735
|
-
function
|
|
1737
|
+
function bl(t, e, n) {
|
|
1736
1738
|
const i = xl(e);
|
|
1737
1739
|
return vn.set(t, n), i.observe(t), () => {
|
|
1738
1740
|
vn.delete(t), i.unobserve(t);
|
|
1739
1741
|
};
|
|
1740
1742
|
}
|
|
1741
|
-
const
|
|
1743
|
+
const Tl = {
|
|
1742
1744
|
some: 0,
|
|
1743
1745
|
all: 1
|
|
1744
1746
|
};
|
|
@@ -1751,7 +1753,7 @@ class wl extends Tt {
|
|
|
1751
1753
|
const { viewport: e = {} } = this.node.getProps(), { root: n, margin: i, amount: s = "some", once: o } = e, r = {
|
|
1752
1754
|
root: n ? n.current : void 0,
|
|
1753
1755
|
rootMargin: i,
|
|
1754
|
-
threshold: typeof s == "number" ? s :
|
|
1756
|
+
threshold: typeof s == "number" ? s : Tl[s]
|
|
1755
1757
|
}, a = (l) => {
|
|
1756
1758
|
const { isIntersecting: c } = l;
|
|
1757
1759
|
if (this.isInView === c || (this.isInView = c, o && !c && this.hasEnteredView))
|
|
@@ -1760,7 +1762,7 @@ class wl extends Tt {
|
|
|
1760
1762
|
const { onViewportEnter: u, onViewportLeave: f } = this.node.getProps(), d = c ? u : f;
|
|
1761
1763
|
d && d(l);
|
|
1762
1764
|
};
|
|
1763
|
-
return
|
|
1765
|
+
return bl(this.node.current, r, a);
|
|
1764
1766
|
}
|
|
1765
1767
|
mount() {
|
|
1766
1768
|
this.startObserver();
|
|
@@ -1823,7 +1825,7 @@ const ct = (t) => t * 1e3, ut = (t) => t / 1e3, Al = {
|
|
|
1823
1825
|
type: "keyframes",
|
|
1824
1826
|
ease: [0.25, 0.1, 0.35, 1],
|
|
1825
1827
|
duration: 0.3
|
|
1826
|
-
}, Dl = (t, { keyframes: e }) => e.length > 2 ? Vl :
|
|
1828
|
+
}, Dl = (t, { keyframes: e }) => e.length > 2 ? Vl : bt.has(t) ? t.startsWith("scale") ? Rl(e[1]) : Al : El;
|
|
1827
1829
|
function Ml({ when: t, delay: e, delayChildren: n, staggerChildren: i, staggerDirection: s, repeat: o, repeatType: r, repeatDelay: a, from: l, elapsed: c, ...u }) {
|
|
1828
1830
|
return !!Object.keys(u).length;
|
|
1829
1831
|
}
|
|
@@ -1839,8 +1841,8 @@ let Ae;
|
|
|
1839
1841
|
function Ll() {
|
|
1840
1842
|
Ae = void 0;
|
|
1841
1843
|
}
|
|
1842
|
-
const
|
|
1843
|
-
now: () => (Ae === void 0 &&
|
|
1844
|
+
const yt = {
|
|
1845
|
+
now: () => (Ae === void 0 && yt.set(N.isProcessing || Pa.useManualTiming ? N.timestamp : performance.now()), Ae),
|
|
1844
1846
|
set: (t) => {
|
|
1845
1847
|
Ae = t, queueMicrotask(Ll);
|
|
1846
1848
|
}
|
|
@@ -1883,7 +1885,7 @@ const Bl = /* @__PURE__ */ new Set([
|
|
|
1883
1885
|
"y",
|
|
1884
1886
|
"translateX",
|
|
1885
1887
|
"translateY"
|
|
1886
|
-
]), $i = (t) => t ===
|
|
1888
|
+
]), $i = (t) => t === Gt || t === C, Ki = (t, e) => parseFloat(t.split(", ")[e]), Gi = (t, e) => (n, { transform: i }) => {
|
|
1887
1889
|
if (i === "none" || !i)
|
|
1888
1890
|
return 0;
|
|
1889
1891
|
const s = i.match(/^matrix3d\((.+)\)$/u);
|
|
@@ -1901,7 +1903,7 @@ function Ul(t) {
|
|
|
1901
1903
|
i !== void 0 && (e.push([n, i.get()]), i.set(n.startsWith("scale") ? 1 : 0));
|
|
1902
1904
|
}), e;
|
|
1903
1905
|
}
|
|
1904
|
-
const
|
|
1906
|
+
const $t = {
|
|
1905
1907
|
// Dimensions
|
|
1906
1908
|
width: ({ x: t }, { paddingLeft: e = "0", paddingRight: n = "0" }) => t.max - t.min - parseFloat(e) - parseFloat(n),
|
|
1907
1909
|
height: ({ y: t }, { paddingTop: e = "0", paddingBottom: n = "0" }) => t.max - t.min - parseFloat(e) - parseFloat(n),
|
|
@@ -1913,12 +1915,12 @@ const Wt = {
|
|
|
1913
1915
|
x: Gi(4, 13),
|
|
1914
1916
|
y: Gi(5, 14)
|
|
1915
1917
|
};
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
+
$t.translateX = $t.x;
|
|
1919
|
+
$t.translateY = $t.y;
|
|
1918
1920
|
const kr = (t) => (e) => e.test(t), Wl = {
|
|
1919
1921
|
test: (t) => t === "auto",
|
|
1920
1922
|
parse: (t) => t
|
|
1921
|
-
}, Lr = [
|
|
1923
|
+
}, Lr = [Gt, C, rt, mt, Ua, Na, Wl], zi = (t) => Lr.find(kr(t)), Vt = /* @__PURE__ */ new Set();
|
|
1922
1924
|
let Pn = !1, xn = !1;
|
|
1923
1925
|
function Or() {
|
|
1924
1926
|
if (xn) {
|
|
@@ -1952,7 +1954,7 @@ class Qn {
|
|
|
1952
1954
|
this.isComplete = !1, this.isAsync = !1, this.needsMeasurement = !1, this.isScheduled = !1, this.unresolvedKeyframes = [...e], this.onComplete = n, this.name = i, this.motionValue = s, this.element = o, this.isAsync = r;
|
|
1953
1955
|
}
|
|
1954
1956
|
scheduleResolve() {
|
|
1955
|
-
this.isScheduled = !0, this.isAsync ? (Vt.add(this), Pn || (Pn = !0,
|
|
1957
|
+
this.isScheduled = !0, this.isAsync ? (Vt.add(this), Pn || (Pn = !0, M.read(jr), M.resolveKeyframes(Or))) : (this.readKeyframes(), this.complete());
|
|
1956
1958
|
}
|
|
1957
1959
|
readKeyframes() {
|
|
1958
1960
|
const { unresolvedKeyframes: e, name: n, element: i, motionValue: s } = this;
|
|
@@ -1998,8 +2000,8 @@ const ti = (t, e) => (n) => !!(pe(n) && Ba.test(n) && n.startsWith(t) || e && !I
|
|
|
1998
2000
|
[n]: parseFloat(r),
|
|
1999
2001
|
alpha: a !== void 0 ? parseFloat(a) : 1
|
|
2000
2002
|
};
|
|
2001
|
-
}, Kl = (t) =>
|
|
2002
|
-
...
|
|
2003
|
+
}, Kl = (t) => Pt(0, 255, t), sn = {
|
|
2004
|
+
...Gt,
|
|
2003
2005
|
transform: (t) => Math.round(Kl(t))
|
|
2004
2006
|
}, Rt = {
|
|
2005
2007
|
test: ti("rgb", "red"),
|
|
@@ -2015,18 +2017,18 @@ function Gl(t) {
|
|
|
2015
2017
|
alpha: s ? parseInt(s, 16) / 255 : 1
|
|
2016
2018
|
};
|
|
2017
2019
|
}
|
|
2018
|
-
const
|
|
2020
|
+
const bn = {
|
|
2019
2021
|
test: ti("#"),
|
|
2020
2022
|
parse: Gl,
|
|
2021
2023
|
transform: Rt.transform
|
|
2022
|
-
},
|
|
2024
|
+
}, Bt = {
|
|
2023
2025
|
test: ti("hsl", "hue"),
|
|
2024
2026
|
parse: Fr("hue", "saturation", "lightness"),
|
|
2025
|
-
transform: ({ hue: t, saturation: e, lightness: n, alpha: i = 1 }) => "hsla(" + Math.round(t) + ", " +
|
|
2027
|
+
transform: ({ hue: t, saturation: e, lightness: n, alpha: i = 1 }) => "hsla(" + Math.round(t) + ", " + rt.transform(ee(e)) + ", " + rt.transform(ee(n)) + ", " + ee(te.transform(i)) + ")"
|
|
2026
2028
|
}, $ = {
|
|
2027
|
-
test: (t) => Rt.test(t) ||
|
|
2028
|
-
parse: (t) => Rt.test(t) ? Rt.parse(t) :
|
|
2029
|
-
transform: (t) => pe(t) ? t : t.hasOwnProperty("red") ? Rt.transform(t) :
|
|
2029
|
+
test: (t) => Rt.test(t) || bn.test(t) || Bt.test(t),
|
|
2030
|
+
parse: (t) => Rt.test(t) ? Rt.parse(t) : Bt.test(t) ? Bt.parse(t) : bn.parse(t),
|
|
2031
|
+
transform: (t) => pe(t) ? t : t.hasOwnProperty("red") ? Rt.transform(t) : Bt.transform(t)
|
|
2030
2032
|
};
|
|
2031
2033
|
function zl(t) {
|
|
2032
2034
|
var e, n;
|
|
@@ -2063,7 +2065,7 @@ function Zl(t) {
|
|
|
2063
2065
|
const e = Ir(t);
|
|
2064
2066
|
return Nr(t)(e.map(ql));
|
|
2065
2067
|
}
|
|
2066
|
-
const
|
|
2068
|
+
const xt = {
|
|
2067
2069
|
test: zl,
|
|
2068
2070
|
parse: Ir,
|
|
2069
2071
|
createTransformer: Nr,
|
|
@@ -2080,8 +2082,8 @@ function Ql(t) {
|
|
|
2080
2082
|
let o = Jl.has(e) ? 1 : 0;
|
|
2081
2083
|
return i !== n && (o *= 100), e + "(" + o + s + ")";
|
|
2082
2084
|
}
|
|
2083
|
-
const tc = /\b([a-z-]*)\(.*?\)/gu,
|
|
2084
|
-
...
|
|
2085
|
+
const tc = /\b([a-z-]*)\(.*?\)/gu, Tn = {
|
|
2086
|
+
...xt,
|
|
2085
2087
|
getAnimatableNone: (t) => {
|
|
2086
2088
|
const e = t.match(tc);
|
|
2087
2089
|
return e ? e.map(Ql).join(" ") : t;
|
|
@@ -2100,12 +2102,12 @@ const tc = /\b([a-z-]*)\(.*?\)/gu, bn = {
|
|
|
2100
2102
|
borderRightColor: $,
|
|
2101
2103
|
borderBottomColor: $,
|
|
2102
2104
|
borderLeftColor: $,
|
|
2103
|
-
filter:
|
|
2104
|
-
WebkitFilter:
|
|
2105
|
+
filter: Tn,
|
|
2106
|
+
WebkitFilter: Tn
|
|
2105
2107
|
}, ei = (t) => ec[t];
|
|
2106
2108
|
function Ur(t, e) {
|
|
2107
2109
|
let n = ei(t);
|
|
2108
|
-
return n !==
|
|
2110
|
+
return n !== Tn && (n = xt), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
|
|
2109
2111
|
}
|
|
2110
2112
|
const nc = /* @__PURE__ */ new Set(["auto", "none", "0"]);
|
|
2111
2113
|
function ic(t, e, n) {
|
|
@@ -2156,7 +2158,7 @@ class Wr extends Qn {
|
|
|
2156
2158
|
const { element: e, unresolvedKeyframes: n, name: i } = this;
|
|
2157
2159
|
if (!e.current)
|
|
2158
2160
|
return;
|
|
2159
|
-
i === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin =
|
|
2161
|
+
i === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = $t[i](e.measureViewportBox(), window.getComputedStyle(e.current)), n[0] = this.measuredOrigin;
|
|
2160
2162
|
const s = n[n.length - 1];
|
|
2161
2163
|
s !== void 0 && e.getValue(i, s).jump(s, !1);
|
|
2162
2164
|
}
|
|
@@ -2168,7 +2170,7 @@ class Wr extends Qn {
|
|
|
2168
2170
|
const o = n.getValue(i);
|
|
2169
2171
|
o && o.jump(this.measuredOrigin, !1);
|
|
2170
2172
|
const r = s.length - 1, a = s[r];
|
|
2171
|
-
s[r] =
|
|
2173
|
+
s[r] = $t[i](n.measureViewportBox(), window.getComputedStyle(n.current)), a !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = a), !((e = this.removedTransforms) === null || e === void 0) && e.length && this.removedTransforms.forEach(([l, c]) => {
|
|
2172
2174
|
n.getValue(l).set(c);
|
|
2173
2175
|
}), this.resolveNoneKeyframes();
|
|
2174
2176
|
}
|
|
@@ -2178,7 +2180,7 @@ function $r(t) {
|
|
|
2178
2180
|
return () => (e === void 0 && (e = t()), e);
|
|
2179
2181
|
}
|
|
2180
2182
|
const Yi = (t, e) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
|
|
2181
|
-
(
|
|
2183
|
+
(xt.test(t) || t === "0") && // And it contains numbers and/or colors
|
|
2182
2184
|
!t.startsWith("url("));
|
|
2183
2185
|
function sc(t) {
|
|
2184
2186
|
const e = t[0];
|
|
@@ -2195,7 +2197,7 @@ function rc(t, e, n, i) {
|
|
|
2195
2197
|
if (e === "display" || e === "visibility")
|
|
2196
2198
|
return !0;
|
|
2197
2199
|
const o = t[t.length - 1], r = Yi(s, e), a = Yi(o, e);
|
|
2198
|
-
return
|
|
2200
|
+
return Kt(r === a, `You are trying to animate ${e} from "${s}" to "${o}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${o} via the \`style\` property.`), !r || !a ? !1 : sc(t) || n === "spring" && i;
|
|
2199
2201
|
}
|
|
2200
2202
|
class Kr {
|
|
2201
2203
|
constructor({ autoplay: e = !0, delay: n = 0, type: i = "keyframes", repeat: s = 0, repeatDelay: o = 0, repeatType: r = "loop", ...a }) {
|
|
@@ -2266,14 +2268,14 @@ function zr(t, e, n) {
|
|
|
2266
2268
|
const rn = 1e-3, ac = 0.01, Xi = 10, lc = 0.05, cc = 1;
|
|
2267
2269
|
function uc({ duration: t = 800, bounce: e = 0.25, velocity: n = 0, mass: i = 1 }) {
|
|
2268
2270
|
let s, o;
|
|
2269
|
-
|
|
2271
|
+
Kt(t <= ct(Xi), "Spring duration must be 10 seconds or less");
|
|
2270
2272
|
let r = 1 - e;
|
|
2271
|
-
r =
|
|
2272
|
-
const u = c * r, f = u * t, d = u - n, p = wn(c, r),
|
|
2273
|
-
return rn - d / p *
|
|
2273
|
+
r = Pt(lc, cc, r), t = Pt(ac, Xi, ut(t)), r < 1 ? (s = (c) => {
|
|
2274
|
+
const u = c * r, f = u * t, d = u - n, p = wn(c, r), g = Math.exp(-f);
|
|
2275
|
+
return rn - d / p * g;
|
|
2274
2276
|
}, o = (c) => {
|
|
2275
|
-
const f = c * r * t, d = f * n + n, p = Math.pow(r, 2) * Math.pow(c, 2) * t,
|
|
2276
|
-
return (-s(c) + rn > 0 ? -1 : 1) * ((d - p) *
|
|
2277
|
+
const f = c * r * t, d = f * n + n, p = Math.pow(r, 2) * Math.pow(c, 2) * t, g = Math.exp(-f), x = wn(Math.pow(c, 2), r);
|
|
2278
|
+
return (-s(c) + rn > 0 ? -1 : 1) * ((d - p) * g) / x;
|
|
2277
2279
|
}) : (s = (c) => {
|
|
2278
2280
|
const u = Math.exp(-c * t), f = (c - n) * t + 1;
|
|
2279
2281
|
return -rn + u * f;
|
|
@@ -2334,22 +2336,22 @@ function Hr({ keyframes: t, restDelta: e, restSpeed: n, ...i }) {
|
|
|
2334
2336
|
const s = t[0], o = t[t.length - 1], r = { done: !1, value: s }, { stiffness: a, damping: l, mass: c, duration: u, velocity: f, isResolvedFromDuration: d } = mc({
|
|
2335
2337
|
...i,
|
|
2336
2338
|
velocity: -ut(i.velocity || 0)
|
|
2337
|
-
}), p = f || 0,
|
|
2338
|
-
n || (n =
|
|
2339
|
+
}), p = f || 0, g = l / (2 * Math.sqrt(a * c)), x = o - s, b = ut(Math.sqrt(a / c)), P = Math.abs(x) < 5;
|
|
2340
|
+
n || (n = P ? 0.01 : 2), e || (e = P ? 5e-3 : 0.5);
|
|
2339
2341
|
let y;
|
|
2340
|
-
if (
|
|
2341
|
-
const v = wn(b,
|
|
2342
|
+
if (g < 1) {
|
|
2343
|
+
const v = wn(b, g);
|
|
2342
2344
|
y = (w) => {
|
|
2343
|
-
const
|
|
2344
|
-
return o -
|
|
2345
|
+
const R = Math.exp(-g * b * w);
|
|
2346
|
+
return o - R * ((p + g * b * x) / v * Math.sin(v * w) + x * Math.cos(v * w));
|
|
2345
2347
|
};
|
|
2346
|
-
} else if (
|
|
2347
|
-
y = (v) => o - Math.exp(-b * v) * (
|
|
2348
|
+
} else if (g === 1)
|
|
2349
|
+
y = (v) => o - Math.exp(-b * v) * (x + (p + b * x) * v);
|
|
2348
2350
|
else {
|
|
2349
|
-
const v = b * Math.sqrt(
|
|
2351
|
+
const v = b * Math.sqrt(g * g - 1);
|
|
2350
2352
|
y = (w) => {
|
|
2351
|
-
const
|
|
2352
|
-
return o -
|
|
2353
|
+
const R = Math.exp(-g * b * w), L = Math.min(v * w, 300);
|
|
2354
|
+
return o - R * ((p + g * b * x) * Math.sinh(L) + v * x * Math.cosh(L)) / v;
|
|
2353
2355
|
};
|
|
2354
2356
|
}
|
|
2355
2357
|
return {
|
|
@@ -2359,10 +2361,10 @@ function Hr({ keyframes: t, restDelta: e, restSpeed: n, ...i }) {
|
|
|
2359
2361
|
if (d)
|
|
2360
2362
|
r.done = v >= u;
|
|
2361
2363
|
else {
|
|
2362
|
-
let
|
|
2363
|
-
v !== 0 && (
|
|
2364
|
-
const
|
|
2365
|
-
r.done =
|
|
2364
|
+
let R = p;
|
|
2365
|
+
v !== 0 && (g < 1 ? R = zr(y, v, w) : R = 0);
|
|
2366
|
+
const L = Math.abs(R) <= n, H = Math.abs(o - w) <= e;
|
|
2367
|
+
r.done = L && H;
|
|
2366
2368
|
}
|
|
2367
2369
|
return r.value = r.done ? o : w, r;
|
|
2368
2370
|
}
|
|
@@ -2372,19 +2374,19 @@ function Zi({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 3
|
|
|
2372
2374
|
const f = t[0], d = {
|
|
2373
2375
|
done: !1,
|
|
2374
2376
|
value: f
|
|
2375
|
-
}, p = (
|
|
2376
|
-
let
|
|
2377
|
-
const b = f +
|
|
2378
|
-
|
|
2379
|
-
const y = (
|
|
2380
|
-
const G = y(
|
|
2381
|
-
d.done = Math.abs(G) <= c, d.value = d.done ?
|
|
2377
|
+
}, p = (S) => a !== void 0 && S < a || l !== void 0 && S > l, g = (S) => a === void 0 ? l : l === void 0 || Math.abs(a - S) < Math.abs(l - S) ? a : l;
|
|
2378
|
+
let x = n * e;
|
|
2379
|
+
const b = f + x, P = r === void 0 ? b : r(b);
|
|
2380
|
+
P !== b && (x = P - f);
|
|
2381
|
+
const y = (S) => -x * Math.exp(-S / i), v = (S) => P + y(S), w = (S) => {
|
|
2382
|
+
const G = y(S), Y = v(S);
|
|
2383
|
+
d.done = Math.abs(G) <= c, d.value = d.done ? P : Y;
|
|
2382
2384
|
};
|
|
2383
|
-
let
|
|
2384
|
-
const
|
|
2385
|
-
p(d.value) && (
|
|
2386
|
-
keyframes: [d.value,
|
|
2387
|
-
velocity: zr(v,
|
|
2385
|
+
let R, L;
|
|
2386
|
+
const H = (S) => {
|
|
2387
|
+
p(d.value) && (R = S, L = Hr({
|
|
2388
|
+
keyframes: [d.value, g(d.value)],
|
|
2389
|
+
velocity: zr(v, S, d.value),
|
|
2388
2390
|
// TODO: This should be passing * 1000
|
|
2389
2391
|
damping: s,
|
|
2390
2392
|
stiffness: o,
|
|
@@ -2392,11 +2394,11 @@ function Zi({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 3
|
|
|
2392
2394
|
restSpeed: u
|
|
2393
2395
|
}));
|
|
2394
2396
|
};
|
|
2395
|
-
return
|
|
2397
|
+
return H(0), {
|
|
2396
2398
|
calculatedDuration: null,
|
|
2397
|
-
next: (
|
|
2399
|
+
next: (S) => {
|
|
2398
2400
|
let G = !1;
|
|
2399
|
-
return !
|
|
2401
|
+
return !L && R === void 0 && (G = !0, w(S), H(S)), R !== void 0 && S >= R ? L.next(S - R) : (!G && w(S), d);
|
|
2400
2402
|
}
|
|
2401
2403
|
};
|
|
2402
2404
|
}
|
|
@@ -2414,13 +2416,13 @@ function ge(t, e, n, i) {
|
|
|
2414
2416
|
const s = (o) => vc(o, 0, 1, t, n);
|
|
2415
2417
|
return (o) => o === 0 || o === 1 ? o : Yr(s(o), e, i);
|
|
2416
2418
|
}
|
|
2417
|
-
const Pc = ge(0.42, 0, 1, 1), xc = ge(0, 0, 0.58, 1), Xr = ge(0.42, 0, 0.58, 1),
|
|
2419
|
+
const Pc = ge(0.42, 0, 1, 1), xc = ge(0, 0, 0.58, 1), Xr = ge(0.42, 0, 0.58, 1), bc = (t) => Array.isArray(t) && typeof t[0] != "number", qr = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, Zr = (t) => (e) => 1 - t(1 - e), ni = (t) => 1 - Math.sin(Math.acos(t)), Jr = Zr(ni), Tc = qr(ni), Qr = ge(0.33, 1.53, 0.69, 0.99), ii = Zr(Qr), wc = qr(ii), Sc = (t) => (t *= 2) < 1 ? 0.5 * ii(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), Ji = {
|
|
2418
2420
|
linear: W,
|
|
2419
2421
|
easeIn: Pc,
|
|
2420
2422
|
easeInOut: Xr,
|
|
2421
2423
|
easeOut: xc,
|
|
2422
2424
|
circIn: ni,
|
|
2423
|
-
circInOut:
|
|
2425
|
+
circInOut: Tc,
|
|
2424
2426
|
circOut: Jr,
|
|
2425
2427
|
backIn: ii,
|
|
2426
2428
|
backInOut: wc,
|
|
@@ -2463,13 +2465,13 @@ function ke(t, e) {
|
|
|
2463
2465
|
const an = (t, e, n) => {
|
|
2464
2466
|
const i = t * t, s = n * (e * e - i) + i;
|
|
2465
2467
|
return s < 0 ? 0 : Math.sqrt(s);
|
|
2466
|
-
}, Ac = [
|
|
2468
|
+
}, Ac = [bn, Rt, Bt], Rc = (t) => Ac.find((e) => e.test(t));
|
|
2467
2469
|
function ts(t) {
|
|
2468
2470
|
const e = Rc(t);
|
|
2469
|
-
if (
|
|
2471
|
+
if (Kt(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`), !e)
|
|
2470
2472
|
return !1;
|
|
2471
2473
|
let n = e.parse(t);
|
|
2472
|
-
return e ===
|
|
2474
|
+
return e === Bt && (n = Cc(n)), n;
|
|
2473
2475
|
}
|
|
2474
2476
|
const es = (t, e) => {
|
|
2475
2477
|
const n = ts(t), i = ts(e);
|
|
@@ -2515,8 +2517,8 @@ function Mc(t, e) {
|
|
|
2515
2517
|
return i;
|
|
2516
2518
|
}
|
|
2517
2519
|
const kc = (t, e) => {
|
|
2518
|
-
const n =
|
|
2519
|
-
return i.indexes.var.length === s.indexes.var.length && i.indexes.color.length === s.indexes.color.length && i.indexes.number.length >= s.indexes.number.length ? Sn.has(t) && !s.values.length || Sn.has(e) && !i.values.length ? Vc(t, e) : lt(to(Mc(i, s), s.values), n) : (
|
|
2520
|
+
const n = xt.createTransformer(e), i = ae(t), s = ae(e);
|
|
2521
|
+
return i.indexes.var.length === s.indexes.var.length && i.indexes.color.length === s.indexes.color.length && i.indexes.number.length >= s.indexes.number.length ? Sn.has(t) && !s.values.length || Sn.has(e) && !i.values.length ? Vc(t, e) : lt(to(Mc(i, s), s.values), n) : (Kt(!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.`), ke(t, e));
|
|
2520
2522
|
};
|
|
2521
2523
|
function eo(t, e, n) {
|
|
2522
2524
|
return typeof t == "number" && typeof e == "number" && typeof n == "number" ? j(t, e, n) : si(t)(t, e);
|
|
@@ -2548,7 +2550,7 @@ function Oc(t, e, { clamp: n = !0, ease: i, mixer: s } = {}) {
|
|
|
2548
2550
|
const f = le(t[u], t[u + 1], c);
|
|
2549
2551
|
return r[u](f);
|
|
2550
2552
|
};
|
|
2551
|
-
return n ? (c) => l(
|
|
2553
|
+
return n ? (c) => l(Pt(t[0], t[o - 1], c)) : l;
|
|
2552
2554
|
}
|
|
2553
2555
|
function jc(t, e) {
|
|
2554
2556
|
const n = t[t.length - 1];
|
|
@@ -2568,7 +2570,7 @@ function Bc(t, e) {
|
|
|
2568
2570
|
return t.map(() => e || Xr).splice(0, t.length - 1);
|
|
2569
2571
|
}
|
|
2570
2572
|
function Le({ duration: t = 300, keyframes: e, times: n, ease: i = "easeInOut" }) {
|
|
2571
|
-
const s =
|
|
2573
|
+
const s = bc(i) ? i.map(Qi) : Qi(i), o = {
|
|
2572
2574
|
done: !1,
|
|
2573
2575
|
value: e[0]
|
|
2574
2576
|
}, r = _c(
|
|
@@ -2596,13 +2598,13 @@ function Ic(t) {
|
|
|
2596
2598
|
const Nc = (t) => {
|
|
2597
2599
|
const e = ({ timestamp: n }) => t(n);
|
|
2598
2600
|
return {
|
|
2599
|
-
start: () =>
|
|
2601
|
+
start: () => M.update(e, !0),
|
|
2600
2602
|
stop: () => ht(e),
|
|
2601
2603
|
/**
|
|
2602
2604
|
* If we're processing this frame we can use the
|
|
2603
2605
|
* framelocked timestamp to keep things in sync.
|
|
2604
2606
|
*/
|
|
2605
|
-
now: () => N.isProcessing ? N.timestamp :
|
|
2607
|
+
now: () => N.isProcessing ? N.timestamp : yt.now()
|
|
2606
2608
|
};
|
|
2607
2609
|
}, Uc = {
|
|
2608
2610
|
decay: Zi,
|
|
@@ -2650,28 +2652,28 @@ class ri extends Kr {
|
|
|
2650
2652
|
tick(e, n = !1) {
|
|
2651
2653
|
const { resolved: i } = this;
|
|
2652
2654
|
if (!i) {
|
|
2653
|
-
const { keyframes:
|
|
2654
|
-
return { done: !0, value:
|
|
2655
|
+
const { keyframes: S } = this.options;
|
|
2656
|
+
return { done: !0, value: S[S.length - 1] };
|
|
2655
2657
|
}
|
|
2656
2658
|
const { finalKeyframe: s, generator: o, mirroredGenerator: r, mapPercentToKeyframes: a, keyframes: l, calculatedDuration: c, totalDuration: u, resolvedDuration: f } = i;
|
|
2657
2659
|
if (this.startTime === null)
|
|
2658
2660
|
return o.next(0);
|
|
2659
|
-
const { delay: d, repeat: p, repeatType:
|
|
2661
|
+
const { delay: d, repeat: p, repeatType: g, repeatDelay: x, onUpdate: b } = this.options;
|
|
2660
2662
|
this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - u / this.speed, this.startTime)), n ? this.currentTime = e : this.holdTime !== null ? this.currentTime = this.holdTime : this.currentTime = Math.round(e - this.startTime) * this.speed;
|
|
2661
|
-
const
|
|
2662
|
-
this.currentTime = Math.max(
|
|
2663
|
+
const P = this.currentTime - d * (this.speed >= 0 ? 1 : -1), y = this.speed >= 0 ? P < 0 : P > u;
|
|
2664
|
+
this.currentTime = Math.max(P, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = u);
|
|
2663
2665
|
let v = this.currentTime, w = o;
|
|
2664
2666
|
if (p) {
|
|
2665
|
-
const
|
|
2666
|
-
let G = Math.floor(
|
|
2667
|
-
!
|
|
2667
|
+
const S = Math.min(this.currentTime, u) / f;
|
|
2668
|
+
let G = Math.floor(S), Y = S % 1;
|
|
2669
|
+
!Y && S >= 1 && (Y = 1), Y === 1 && G--, G = Math.min(G, p + 1), !!(G % 2) && (g === "reverse" ? (Y = 1 - Y, x && (Y -= x / f)) : g === "mirror" && (w = r)), v = Pt(0, 1, Y) * f;
|
|
2668
2670
|
}
|
|
2669
|
-
const
|
|
2670
|
-
a && (
|
|
2671
|
-
let { done:
|
|
2672
|
-
!y && c !== null && (
|
|
2673
|
-
const
|
|
2674
|
-
return
|
|
2671
|
+
const R = y ? { done: !1, value: l[0] } : w.next(v);
|
|
2672
|
+
a && (R.value = a(R.value));
|
|
2673
|
+
let { done: L } = R;
|
|
2674
|
+
!y && c !== null && (L = this.speed >= 0 ? this.currentTime >= u : this.currentTime <= 0);
|
|
2675
|
+
const H = this.holdTime === null && (this.state === "finished" || this.state === "running" && L);
|
|
2676
|
+
return H && s !== void 0 && (R.value = Ke(l, this.options, s)), b && b(R.value), H && this.finish(), R;
|
|
2675
2677
|
}
|
|
2676
2678
|
get duration() {
|
|
2677
2679
|
const { resolved: e } = this;
|
|
@@ -2735,23 +2737,23 @@ const no = (t) => Array.isArray(t) && typeof t[0] == "number";
|
|
|
2735
2737
|
function io(t) {
|
|
2736
2738
|
return !!(!t || typeof t == "string" && t in oi || no(t) || Array.isArray(t) && t.every(io));
|
|
2737
2739
|
}
|
|
2738
|
-
const
|
|
2740
|
+
const Jt = ([t, e, n, i]) => `cubic-bezier(${t}, ${e}, ${n}, ${i})`, oi = {
|
|
2739
2741
|
linear: "linear",
|
|
2740
2742
|
ease: "ease",
|
|
2741
2743
|
easeIn: "ease-in",
|
|
2742
2744
|
easeOut: "ease-out",
|
|
2743
2745
|
easeInOut: "ease-in-out",
|
|
2744
|
-
circIn:
|
|
2745
|
-
circOut:
|
|
2746
|
-
backIn:
|
|
2747
|
-
backOut:
|
|
2746
|
+
circIn: Jt([0, 0.65, 0.55, 1]),
|
|
2747
|
+
circOut: Jt([0.55, 0, 1, 0.45]),
|
|
2748
|
+
backIn: Jt([0.31, 0.01, 0.66, -0.59]),
|
|
2749
|
+
backOut: Jt([0.33, 1.53, 0.69, 0.99])
|
|
2748
2750
|
};
|
|
2749
2751
|
function $c(t) {
|
|
2750
2752
|
return so(t) || oi.easeOut;
|
|
2751
2753
|
}
|
|
2752
2754
|
function so(t) {
|
|
2753
2755
|
if (t)
|
|
2754
|
-
return no(t) ?
|
|
2756
|
+
return no(t) ? Jt(t) : Array.isArray(t) ? t.map($c) : oi[t];
|
|
2755
2757
|
}
|
|
2756
2758
|
function Kc(t, e, n, { delay: i = 0, duration: s = 300, repeat: o = 0, repeatType: r = "loop", ease: a, times: l } = {}) {
|
|
2757
2759
|
const c = { [e]: n };
|
|
@@ -2802,11 +2804,11 @@ class is extends Kr {
|
|
|
2802
2804
|
if (!(!((i = l.owner) === null || i === void 0) && i.current))
|
|
2803
2805
|
return !1;
|
|
2804
2806
|
if (Hc(this.options)) {
|
|
2805
|
-
const { onComplete: f, onUpdate: d, motionValue: p, ...
|
|
2806
|
-
e =
|
|
2807
|
+
const { onComplete: f, onUpdate: d, motionValue: p, ...g } = this.options, x = Yc(e, g);
|
|
2808
|
+
e = x.keyframes, e.length === 1 && (e[1] = e[0]), s = x.duration, o = x.times, r = x.ease, a = "keyframes";
|
|
2807
2809
|
}
|
|
2808
2810
|
const u = Kc(l.owner.current, c, e, { ...this.options, duration: s, times: o, ease: r });
|
|
2809
|
-
return u.startTime =
|
|
2811
|
+
return u.startTime = yt.now(), this.pendingTimeline ? (u.timeline = this.pendingTimeline, this.pendingTimeline = void 0) : u.onfinish = () => {
|
|
2810
2812
|
const { onComplete: f } = this.options;
|
|
2811
2813
|
l.set(Ke(e, this.options, n)), f && f(), this.cancel(), this.resolveFinishedPromise();
|
|
2812
2814
|
}, {
|
|
@@ -2911,8 +2913,8 @@ class is extends Kr {
|
|
|
2911
2913
|
ease: r,
|
|
2912
2914
|
times: a,
|
|
2913
2915
|
isGenerator: !0
|
|
2914
|
-
}),
|
|
2915
|
-
c.setWithVelocity(p.sample(
|
|
2916
|
+
}), g = ct(this.time);
|
|
2917
|
+
c.setWithVelocity(p.sample(g - Oe).value, p.sample(g).value, Oe);
|
|
2916
2918
|
}
|
|
2917
2919
|
const { onStop: l } = this.options;
|
|
2918
2920
|
l && l(), this.cancel();
|
|
@@ -2940,7 +2942,7 @@ function Xc(t, e) {
|
|
|
2940
2942
|
const { currentTime: s } = e, r = (s === null ? 0 : s.value) / 100;
|
|
2941
2943
|
n !== r && t(r), n = r;
|
|
2942
2944
|
};
|
|
2943
|
-
return
|
|
2945
|
+
return M.update(i, !0), () => ht(i);
|
|
2944
2946
|
}
|
|
2945
2947
|
const qc = $r(() => window.ScrollTimeline !== void 0);
|
|
2946
2948
|
class Zc {
|
|
@@ -3038,7 +3040,7 @@ const ai = (t, e, n, i = {}, s, o, r) => (a) => {
|
|
|
3038
3040
|
if ((f.type === !1 || f.duration === 0 && !f.repeatDelay) && (f.duration = 0, f.delay === 0 && (d = !0)), d && !o && e.get() !== void 0) {
|
|
3039
3041
|
const p = Ke(f.keyframes, l);
|
|
3040
3042
|
if (p !== void 0)
|
|
3041
|
-
return
|
|
3043
|
+
return M.update(() => {
|
|
3042
3044
|
f.onUpdate(p), f.onComplete();
|
|
3043
3045
|
}), new Zc([]);
|
|
3044
3046
|
}
|
|
@@ -3085,12 +3087,12 @@ class ro {
|
|
|
3085
3087
|
*/
|
|
3086
3088
|
constructor(e, n = {}) {
|
|
3087
3089
|
this.version = "11.3.21", this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (i, s = !0) => {
|
|
3088
|
-
const o =
|
|
3090
|
+
const o = yt.now();
|
|
3089
3091
|
this.updatedAt !== o && this.setPrevFrameValue(), this.prev = this.current, this.setCurrent(i), this.current !== this.prev && this.events.change && this.events.change.notify(this.current), s && this.events.renderRequest && this.events.renderRequest.notify(this.current);
|
|
3090
3092
|
}, this.hasAnimated = !1, this.setCurrent(e), this.owner = n.owner;
|
|
3091
3093
|
}
|
|
3092
3094
|
setCurrent(e) {
|
|
3093
|
-
this.current = e, this.updatedAt =
|
|
3095
|
+
this.current = e, this.updatedAt = yt.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = Jc(this.current));
|
|
3094
3096
|
}
|
|
3095
3097
|
setPrevFrameValue(e = this.current) {
|
|
3096
3098
|
this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
|
|
@@ -3142,7 +3144,7 @@ class ro {
|
|
|
3142
3144
|
this.events[e] || (this.events[e] = new li());
|
|
3143
3145
|
const i = this.events[e].add(n);
|
|
3144
3146
|
return e === "change" ? () => {
|
|
3145
|
-
i(),
|
|
3147
|
+
i(), M.read(() => {
|
|
3146
3148
|
this.events.change.getSize() || this.stop();
|
|
3147
3149
|
});
|
|
3148
3150
|
} : i;
|
|
@@ -3211,7 +3213,7 @@ class ro {
|
|
|
3211
3213
|
* @public
|
|
3212
3214
|
*/
|
|
3213
3215
|
getVelocity() {
|
|
3214
|
-
const e =
|
|
3216
|
+
const e = yt.now();
|
|
3215
3217
|
if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > rs)
|
|
3216
3218
|
return 0;
|
|
3217
3219
|
const n = Math.min(this.updatedAt - this.prevUpdatedAt, rs);
|
|
@@ -3291,7 +3293,7 @@ class eu extends ro {
|
|
|
3291
3293
|
super(...arguments), this.output = [], this.counts = /* @__PURE__ */ new Map();
|
|
3292
3294
|
}
|
|
3293
3295
|
add(e) {
|
|
3294
|
-
const n =
|
|
3296
|
+
const n = br(e);
|
|
3295
3297
|
if (!n)
|
|
3296
3298
|
return;
|
|
3297
3299
|
const i = this.counts.get(n) || 0;
|
|
@@ -3333,25 +3335,25 @@ function ao(t, e, { delay: n = 0, transitionOverride: i, type: s } = {}) {
|
|
|
3333
3335
|
const d = t.getValue(f, (o = t.latestValues[f]) !== null && o !== void 0 ? o : null), p = l[f];
|
|
3334
3336
|
if (p === void 0 || u && iu(u, f))
|
|
3335
3337
|
continue;
|
|
3336
|
-
const
|
|
3338
|
+
const g = {
|
|
3337
3339
|
delay: n,
|
|
3338
3340
|
elapsed: 0,
|
|
3339
3341
|
...Jn(r || {}, f)
|
|
3340
3342
|
};
|
|
3341
|
-
let
|
|
3343
|
+
let x = !1;
|
|
3342
3344
|
if (window.HandoffAppearAnimations) {
|
|
3343
|
-
const
|
|
3344
|
-
if (
|
|
3345
|
-
const y = window.HandoffAppearAnimations(
|
|
3346
|
-
y !== null && (
|
|
3345
|
+
const P = oo(t);
|
|
3346
|
+
if (P) {
|
|
3347
|
+
const y = window.HandoffAppearAnimations(P, f, d, M);
|
|
3348
|
+
y !== null && (g.elapsed = y, x = !0);
|
|
3347
3349
|
}
|
|
3348
3350
|
}
|
|
3349
|
-
d.start(ai(f, d, p, t.shouldReduceMotion &&
|
|
3351
|
+
d.start(ai(f, d, p, t.shouldReduceMotion && bt.has(f) ? { type: !1 } : g, t, x, Cn(t, f)));
|
|
3350
3352
|
const b = d.animation;
|
|
3351
3353
|
b && c.push(b);
|
|
3352
3354
|
}
|
|
3353
3355
|
return a && Promise.all(c).then(() => {
|
|
3354
|
-
|
|
3356
|
+
M.update(() => {
|
|
3355
3357
|
a && tu(t, a);
|
|
3356
3358
|
});
|
|
3357
3359
|
}), c;
|
|
@@ -3409,8 +3411,8 @@ function uu(t) {
|
|
|
3409
3411
|
var f;
|
|
3410
3412
|
const d = $e(t, u, l === "exit" ? (f = t.presenceContext) === null || f === void 0 ? void 0 : f.custom : void 0);
|
|
3411
3413
|
if (d) {
|
|
3412
|
-
const { transition: p, transitionEnd:
|
|
3413
|
-
c = { ...c, ...
|
|
3414
|
+
const { transition: p, transitionEnd: g, ...x } = d;
|
|
3415
|
+
c = { ...c, ...x, ...g };
|
|
3414
3416
|
}
|
|
3415
3417
|
return c;
|
|
3416
3418
|
};
|
|
@@ -3419,51 +3421,51 @@ function uu(t) {
|
|
|
3419
3421
|
}
|
|
3420
3422
|
function r(l) {
|
|
3421
3423
|
const c = t.getProps(), u = t.getVariantContext(!0) || {}, f = [], d = /* @__PURE__ */ new Set();
|
|
3422
|
-
let p = {},
|
|
3424
|
+
let p = {}, g = 1 / 0;
|
|
3423
3425
|
for (let b = 0; b < lu; b++) {
|
|
3424
|
-
const
|
|
3425
|
-
|
|
3426
|
-
let
|
|
3427
|
-
if (
|
|
3428
|
-
!y.isActive &&
|
|
3426
|
+
const P = au[b], y = n[P], v = c[P] !== void 0 ? c[P] : u[P], w = re(v), R = P === l ? y.isActive : null;
|
|
3427
|
+
R === !1 && (g = b);
|
|
3428
|
+
let L = v === u[P] && v !== c[P] && w;
|
|
3429
|
+
if (L && i && t.manuallyAnimateOnMount && (L = !1), y.protectedKeys = { ...p }, // If it isn't active and hasn't *just* been set as inactive
|
|
3430
|
+
!y.isActive && R === null || // If we didn't and don't have any defined prop for this animation type
|
|
3429
3431
|
!v && !y.prevProp || // Or if the prop doesn't define an animation
|
|
3430
3432
|
oe(v) || typeof v == "boolean")
|
|
3431
3433
|
continue;
|
|
3432
|
-
let
|
|
3433
|
-
|
|
3434
|
-
b >
|
|
3435
|
-
const
|
|
3436
|
-
let dt =
|
|
3437
|
-
|
|
3438
|
-
const { prevResolvedValues:
|
|
3439
|
-
...
|
|
3434
|
+
let S = fu(y.prevProp, v) || // If we're making this variant active, we want to always make it active
|
|
3435
|
+
P === l && y.isActive && !L && w || // If we removed a higher-priority variant (i is in reverse order)
|
|
3436
|
+
b > g && w, G = !1;
|
|
3437
|
+
const Y = Array.isArray(v) ? v : [v];
|
|
3438
|
+
let dt = Y.reduce(s(P), {});
|
|
3439
|
+
R === !1 && (dt = {});
|
|
3440
|
+
const { prevResolvedValues: zt = {} } = y, Z = {
|
|
3441
|
+
...zt,
|
|
3440
3442
|
...dt
|
|
3441
|
-
},
|
|
3442
|
-
|
|
3443
|
+
}, st = (F) => {
|
|
3444
|
+
S = !0, d.has(F) && (G = !0, d.delete(F)), y.needsAnimating[F] = !0;
|
|
3443
3445
|
const J = t.getValue(F);
|
|
3444
3446
|
J && (J.liveStyle = !1);
|
|
3445
3447
|
};
|
|
3446
3448
|
for (const F in Z) {
|
|
3447
|
-
const J = dt[F], Mt =
|
|
3449
|
+
const J = dt[F], Mt = zt[F];
|
|
3448
3450
|
if (p.hasOwnProperty(F))
|
|
3449
3451
|
continue;
|
|
3450
3452
|
let kt = !1;
|
|
3451
|
-
yn(J) && yn(Mt) ? kt = !Vr(J, Mt) : kt = J !== Mt, kt ? J != null ?
|
|
3453
|
+
yn(J) && yn(Mt) ? kt = !Vr(J, Mt) : kt = J !== Mt, kt ? J != null ? st(F) : d.add(F) : J !== void 0 && d.has(F) ? st(F) : y.protectedKeys[F] = !0;
|
|
3452
3454
|
}
|
|
3453
|
-
y.prevProp = v, y.prevResolvedValues = dt, y.isActive && (p = { ...p, ...dt }), i && t.blockInitialAnimation && (
|
|
3455
|
+
y.prevProp = v, y.prevResolvedValues = dt, y.isActive && (p = { ...p, ...dt }), i && t.blockInitialAnimation && (S = !1), S && (!L || G) && f.push(...Y.map((F) => ({
|
|
3454
3456
|
animation: F,
|
|
3455
|
-
options: { type:
|
|
3457
|
+
options: { type: P }
|
|
3456
3458
|
})));
|
|
3457
3459
|
}
|
|
3458
3460
|
if (d.size) {
|
|
3459
3461
|
const b = {};
|
|
3460
|
-
d.forEach((
|
|
3461
|
-
const y = t.getBaseTarget(
|
|
3462
|
-
v && (v.liveStyle = !0), b[
|
|
3462
|
+
d.forEach((P) => {
|
|
3463
|
+
const y = t.getBaseTarget(P), v = t.getValue(P);
|
|
3464
|
+
v && (v.liveStyle = !0), b[P] = y ?? null;
|
|
3463
3465
|
}), f.push({ animation: b });
|
|
3464
3466
|
}
|
|
3465
|
-
let
|
|
3466
|
-
return i && (c.initial === !1 || c.initial === c.animate) && !t.manuallyAnimateOnMount && (
|
|
3467
|
+
let x = !!f.length;
|
|
3468
|
+
return i && (c.initial === !1 || c.initial === c.animate) && !t.manuallyAnimateOnMount && (x = !1), i = !1, x ? e(f) : Promise.resolve();
|
|
3467
3469
|
}
|
|
3468
3470
|
function a(l, c) {
|
|
3469
3471
|
var u;
|
|
@@ -3491,7 +3493,7 @@ function uu(t) {
|
|
|
3491
3493
|
function fu(t, e) {
|
|
3492
3494
|
return typeof e == "string" ? e !== t : Array.isArray(e) ? !Vr(e, t) : !1;
|
|
3493
3495
|
}
|
|
3494
|
-
function
|
|
3496
|
+
function St(t = !1) {
|
|
3495
3497
|
return {
|
|
3496
3498
|
isActive: t,
|
|
3497
3499
|
protectedKeys: {},
|
|
@@ -3501,13 +3503,13 @@ function wt(t = !1) {
|
|
|
3501
3503
|
}
|
|
3502
3504
|
function os() {
|
|
3503
3505
|
return {
|
|
3504
|
-
animate:
|
|
3505
|
-
whileInView:
|
|
3506
|
-
whileHover:
|
|
3507
|
-
whileTap:
|
|
3508
|
-
whileDrag:
|
|
3509
|
-
whileFocus:
|
|
3510
|
-
exit:
|
|
3506
|
+
animate: St(!0),
|
|
3507
|
+
whileInView: St(),
|
|
3508
|
+
whileHover: St(),
|
|
3509
|
+
whileTap: St(),
|
|
3510
|
+
whileDrag: St(),
|
|
3511
|
+
whileFocus: St(),
|
|
3512
|
+
exit: St()
|
|
3511
3513
|
};
|
|
3512
3514
|
}
|
|
3513
3515
|
class hu extends Tt {
|
|
@@ -3579,19 +3581,19 @@ class lo {
|
|
|
3579
3581
|
const f = cn(this.lastMoveEventInfo, this.history), d = this.startEvent !== null, p = gu(f.offset, { x: 0, y: 0 }) >= 3;
|
|
3580
3582
|
if (!d && !p)
|
|
3581
3583
|
return;
|
|
3582
|
-
const { point:
|
|
3583
|
-
this.history.push({ ...
|
|
3584
|
-
const { onStart: b, onMove:
|
|
3585
|
-
d || (b && b(this.lastMoveEvent, f), this.startEvent = this.lastMoveEvent),
|
|
3584
|
+
const { point: g } = f, { timestamp: x } = N;
|
|
3585
|
+
this.history.push({ ...g, timestamp: x });
|
|
3586
|
+
const { onStart: b, onMove: P } = this.handlers;
|
|
3587
|
+
d || (b && b(this.lastMoveEvent, f), this.startEvent = this.lastMoveEvent), P && P(this.lastMoveEvent, f);
|
|
3586
3588
|
}, this.handlePointerMove = (f, d) => {
|
|
3587
|
-
this.lastMoveEvent = f, this.lastMoveEventInfo = ln(d, this.transformPagePoint),
|
|
3589
|
+
this.lastMoveEvent = f, this.lastMoveEventInfo = ln(d, this.transformPagePoint), M.update(this.updatePoint, !0);
|
|
3588
3590
|
}, this.handlePointerUp = (f, d) => {
|
|
3589
3591
|
this.end();
|
|
3590
|
-
const { onEnd: p, onSessionEnd:
|
|
3591
|
-
if (this.dragSnapToOrigin &&
|
|
3592
|
+
const { onEnd: p, onSessionEnd: g, resumeAnimation: x } = this.handlers;
|
|
3593
|
+
if (this.dragSnapToOrigin && x && x(), !(this.lastMoveEvent && this.lastMoveEventInfo))
|
|
3592
3594
|
return;
|
|
3593
3595
|
const b = cn(f.type === "pointercancel" ? this.lastMoveEventInfo : ln(d, this.transformPagePoint), this.history);
|
|
3594
|
-
this.startEvent && p && p(f, b),
|
|
3596
|
+
this.startEvent && p && p(f, b), g && g(f, b);
|
|
3595
3597
|
}, !wr(e))
|
|
3596
3598
|
return;
|
|
3597
3599
|
this.dragSnapToOrigin = o, this.handlers = n, this.transformPagePoint = i, this.contextWindow = s || window;
|
|
@@ -3645,27 +3647,27 @@ function vu(t, e) {
|
|
|
3645
3647
|
};
|
|
3646
3648
|
return r.x === 1 / 0 && (r.x = 0), r.y === 1 / 0 && (r.y = 0), r;
|
|
3647
3649
|
}
|
|
3648
|
-
const uo = 1e-4, Pu = 1 - uo, xu = 1 + uo, fo = 0.01,
|
|
3649
|
-
function
|
|
3650
|
+
const uo = 1e-4, Pu = 1 - uo, xu = 1 + uo, fo = 0.01, bu = 0 - fo, Tu = 0 + fo;
|
|
3651
|
+
function q(t) {
|
|
3650
3652
|
return t.max - t.min;
|
|
3651
3653
|
}
|
|
3652
3654
|
function wu(t, e, n) {
|
|
3653
3655
|
return Math.abs(t - e) <= n;
|
|
3654
3656
|
}
|
|
3655
3657
|
function cs(t, e, n, i = 0.5) {
|
|
3656
|
-
t.origin = i, t.originPoint = j(e.min, e.max, t.origin), t.scale =
|
|
3658
|
+
t.origin = i, t.originPoint = j(e.min, e.max, t.origin), t.scale = q(n) / q(e), t.translate = j(n.min, n.max, t.origin) - t.originPoint, (t.scale >= Pu && t.scale <= xu || isNaN(t.scale)) && (t.scale = 1), (t.translate >= bu && t.translate <= Tu || isNaN(t.translate)) && (t.translate = 0);
|
|
3657
3659
|
}
|
|
3658
3660
|
function ne(t, e, n, i) {
|
|
3659
3661
|
cs(t.x, e.x, n.x, i ? i.originX : void 0), cs(t.y, e.y, n.y, i ? i.originY : void 0);
|
|
3660
3662
|
}
|
|
3661
3663
|
function us(t, e, n) {
|
|
3662
|
-
t.min = n.min + e.min, t.max = t.min +
|
|
3664
|
+
t.min = n.min + e.min, t.max = t.min + q(e);
|
|
3663
3665
|
}
|
|
3664
3666
|
function Su(t, e, n) {
|
|
3665
3667
|
us(t.x, e.x, n.x), us(t.y, e.y, n.y);
|
|
3666
3668
|
}
|
|
3667
3669
|
function fs(t, e, n) {
|
|
3668
|
-
t.min = e.min - n.min, t.max = t.min +
|
|
3670
|
+
t.min = e.min - n.min, t.max = t.min + q(e);
|
|
3669
3671
|
}
|
|
3670
3672
|
function ie(t, e, n) {
|
|
3671
3673
|
fs(t.x, e.x, n.x), fs(t.y, e.y, n.y);
|
|
@@ -3697,8 +3699,8 @@ function Ru(t, e) {
|
|
|
3697
3699
|
}
|
|
3698
3700
|
function Vu(t, e) {
|
|
3699
3701
|
let n = 0.5;
|
|
3700
|
-
const i =
|
|
3701
|
-
return s > i ? n = le(e.min, e.max - i, t.min) : i > s && (n = le(t.min, t.max - s, e.min)),
|
|
3702
|
+
const i = q(t), s = q(e);
|
|
3703
|
+
return s > i ? n = le(e.min, e.max - i, t.min) : i > s && (n = le(t.min, t.max - s, e.min)), Pt(0, 1, n);
|
|
3702
3704
|
}
|
|
3703
3705
|
function Eu(t, e) {
|
|
3704
3706
|
const n = {};
|
|
@@ -3725,7 +3727,7 @@ const gs = () => ({
|
|
|
3725
3727
|
scale: 1,
|
|
3726
3728
|
origin: 0,
|
|
3727
3729
|
originPoint: 0
|
|
3728
|
-
}),
|
|
3730
|
+
}), It = () => ({
|
|
3729
3731
|
x: gs(),
|
|
3730
3732
|
y: gs()
|
|
3731
3733
|
}), ys = () => ({ min: 0, max: 0 }), B = () => ({
|
|
@@ -3783,7 +3785,7 @@ function En(t, e = 0, n = 1, i, s) {
|
|
|
3783
3785
|
function mo(t, { x: e, y: n }) {
|
|
3784
3786
|
En(t.x, e.translate, e.scale, e.originPoint), En(t.y, n.translate, n.scale, n.originPoint);
|
|
3785
3787
|
}
|
|
3786
|
-
const xs = 0.999999999999,
|
|
3788
|
+
const xs = 0.999999999999, bs = 1.0000000000001;
|
|
3787
3789
|
function Lu(t, e, n, i = !1) {
|
|
3788
3790
|
const s = n.length;
|
|
3789
3791
|
if (!s)
|
|
@@ -3793,29 +3795,29 @@ function Lu(t, e, n, i = !1) {
|
|
|
3793
3795
|
for (let a = 0; a < s; a++) {
|
|
3794
3796
|
o = n[a], r = o.projectionDelta;
|
|
3795
3797
|
const { visualElement: l } = o.options;
|
|
3796
|
-
l && l.props.style && l.props.style.display === "contents" || (i && o.options.layoutScroll && o.scroll && o !== o.root &&
|
|
3798
|
+
l && l.props.style && l.props.style.display === "contents" || (i && o.options.layoutScroll && o.scroll && o !== o.root && Ut(t, {
|
|
3797
3799
|
x: -o.scroll.offset.x,
|
|
3798
3800
|
y: -o.scroll.offset.y
|
|
3799
|
-
}), r && (e.x *= r.x.scale, e.y *= r.y.scale, mo(t, r)), i && Ct(o.latestValues) &&
|
|
3801
|
+
}), r && (e.x *= r.x.scale, e.y *= r.y.scale, mo(t, r)), i && Ct(o.latestValues) && Ut(t, o.latestValues));
|
|
3800
3802
|
}
|
|
3801
|
-
e.x <
|
|
3803
|
+
e.x < bs && e.x > xs && (e.x = 1), e.y < bs && e.y > xs && (e.y = 1);
|
|
3802
3804
|
}
|
|
3803
|
-
function
|
|
3805
|
+
function Nt(t, e) {
|
|
3804
3806
|
t.min = t.min + e, t.max = t.max + e;
|
|
3805
3807
|
}
|
|
3806
|
-
function
|
|
3808
|
+
function Ts(t, e, n, i, s = 0.5) {
|
|
3807
3809
|
const o = j(t.min, t.max, s);
|
|
3808
3810
|
En(t, e, n, o, i);
|
|
3809
3811
|
}
|
|
3810
|
-
function
|
|
3811
|
-
|
|
3812
|
+
function Ut(t, e) {
|
|
3813
|
+
Ts(t.x, e.x, e.scaleX, e.scale, e.originX), Ts(t.y, e.y, e.scaleY, e.scale, e.originY);
|
|
3812
3814
|
}
|
|
3813
3815
|
function go(t, e) {
|
|
3814
3816
|
return ho(ku(t.getBoundingClientRect(), e));
|
|
3815
3817
|
}
|
|
3816
3818
|
function Ou(t, e, n) {
|
|
3817
3819
|
const i = go(t, n), { scroll: s } = e;
|
|
3818
|
-
return s && (
|
|
3820
|
+
return s && (Nt(i.x, s.offset.x), Nt(i.y, s.offset.y)), i;
|
|
3819
3821
|
}
|
|
3820
3822
|
const yo = ({ current: t }) => t ? t.ownerDocument.defaultView : null, ju = /* @__PURE__ */ new WeakMap();
|
|
3821
3823
|
class Fu {
|
|
@@ -3831,32 +3833,32 @@ class Fu {
|
|
|
3831
3833
|
f ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor(We(u, "page").point);
|
|
3832
3834
|
}, o = (u, f) => {
|
|
3833
3835
|
var d;
|
|
3834
|
-
const { drag: p, dragPropagation:
|
|
3835
|
-
if (p && !
|
|
3836
|
+
const { drag: p, dragPropagation: g, onDragStart: x } = this.getProps();
|
|
3837
|
+
if (p && !g && (this.openGlobalLock && this.openGlobalLock(), this.openGlobalLock = Cr(p), !this.openGlobalLock))
|
|
3836
3838
|
return;
|
|
3837
|
-
this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), et((
|
|
3838
|
-
let y = this.getAxisMotionValue(
|
|
3839
|
-
if (
|
|
3839
|
+
this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), et((P) => {
|
|
3840
|
+
let y = this.getAxisMotionValue(P).get() || 0;
|
|
3841
|
+
if (rt.test(y)) {
|
|
3840
3842
|
const { projection: v } = this.visualElement;
|
|
3841
3843
|
if (v && v.layout) {
|
|
3842
|
-
const w = v.layout.layoutBox[
|
|
3843
|
-
w && (y =
|
|
3844
|
+
const w = v.layout.layoutBox[P];
|
|
3845
|
+
w && (y = q(w) * (parseFloat(y) / 100));
|
|
3844
3846
|
}
|
|
3845
3847
|
}
|
|
3846
|
-
this.originPoint[
|
|
3847
|
-
}),
|
|
3848
|
+
this.originPoint[P] = y;
|
|
3849
|
+
}), x && M.postRender(() => x(u, f)), (d = this.removeWillChange) === null || d === void 0 || d.call(this), this.removeWillChange = Cn(this.visualElement, "transform");
|
|
3848
3850
|
const { animationState: b } = this.visualElement;
|
|
3849
3851
|
b && b.setActive("whileDrag", !0);
|
|
3850
3852
|
}, r = (u, f) => {
|
|
3851
|
-
const { dragPropagation: d, dragDirectionLock: p, onDirectionLock:
|
|
3853
|
+
const { dragPropagation: d, dragDirectionLock: p, onDirectionLock: g, onDrag: x } = this.getProps();
|
|
3852
3854
|
if (!d && !this.openGlobalLock)
|
|
3853
3855
|
return;
|
|
3854
3856
|
const { offset: b } = f;
|
|
3855
3857
|
if (p && this.currentDirection === null) {
|
|
3856
|
-
this.currentDirection = _u(b), this.currentDirection !== null &&
|
|
3858
|
+
this.currentDirection = _u(b), this.currentDirection !== null && g && g(this.currentDirection);
|
|
3857
3859
|
return;
|
|
3858
3860
|
}
|
|
3859
|
-
this.updateAxis("x", f.point, b), this.updateAxis("y", f.point, b), this.visualElement.render(),
|
|
3861
|
+
this.updateAxis("x", f.point, b), this.updateAxis("y", f.point, b), this.visualElement.render(), x && x(u, f);
|
|
3860
3862
|
}, a = (u, f) => this.stop(u, f), l = () => et((u) => {
|
|
3861
3863
|
var f;
|
|
3862
3864
|
return this.getAnimationState(u) === "paused" && ((f = this.getAxisMotionValue(u).animation) === null || f === void 0 ? void 0 : f.play());
|
|
@@ -3882,7 +3884,7 @@ class Fu {
|
|
|
3882
3884
|
const { velocity: o } = n;
|
|
3883
3885
|
this.startAnimation(o);
|
|
3884
3886
|
const { onDragEnd: r } = this.getProps();
|
|
3885
|
-
r &&
|
|
3887
|
+
r && M.postRender(() => r(e, n));
|
|
3886
3888
|
}
|
|
3887
3889
|
cancel() {
|
|
3888
3890
|
this.isDragging = !1;
|
|
@@ -3902,13 +3904,13 @@ class Fu {
|
|
|
3902
3904
|
resolveConstraints() {
|
|
3903
3905
|
var e;
|
|
3904
3906
|
const { dragConstraints: n, dragElastic: i } = this.getProps(), s = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : (e = this.visualElement.projection) === null || e === void 0 ? void 0 : e.layout, o = this.constraints;
|
|
3905
|
-
n &&
|
|
3907
|
+
n && _t(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && s ? this.constraints = Au(s.layoutBox, n) : this.constraints = !1, this.elastic = Du(i), o !== this.constraints && s && this.constraints && !this.hasMutatedConstraints && et((r) => {
|
|
3906
3908
|
this.constraints !== !1 && this.getAxisMotionValue(r) && (this.constraints[r] = Eu(s.layoutBox[r], this.constraints[r]));
|
|
3907
3909
|
});
|
|
3908
3910
|
}
|
|
3909
3911
|
resolveRefConstraints() {
|
|
3910
3912
|
const { dragConstraints: e, onMeasureDragConstraints: n } = this.getProps();
|
|
3911
|
-
if (!e || !
|
|
3913
|
+
if (!e || !_t(e))
|
|
3912
3914
|
return !1;
|
|
3913
3915
|
const i = e.current;
|
|
3914
3916
|
ft(i !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");
|
|
@@ -3929,7 +3931,7 @@ class Fu {
|
|
|
3929
3931
|
return;
|
|
3930
3932
|
let f = l && l[u] || {};
|
|
3931
3933
|
r && (f = { min: 0, max: 0 });
|
|
3932
|
-
const d = s ? 200 : 1e6, p = s ? 40 : 1e7,
|
|
3934
|
+
const d = s ? 200 : 1e6, p = s ? 40 : 1e7, g = {
|
|
3933
3935
|
type: "inertia",
|
|
3934
3936
|
velocity: i ? e[u] : 0,
|
|
3935
3937
|
bounceStiffness: d,
|
|
@@ -3940,7 +3942,7 @@ class Fu {
|
|
|
3940
3942
|
...o,
|
|
3941
3943
|
...f
|
|
3942
3944
|
};
|
|
3943
|
-
return this.startAxisValueAnimation(u,
|
|
3945
|
+
return this.startAxisValueAnimation(u, g);
|
|
3944
3946
|
});
|
|
3945
3947
|
return Promise.all(c).then(a);
|
|
3946
3948
|
}
|
|
@@ -3992,7 +3994,7 @@ class Fu {
|
|
|
3992
3994
|
if (!this.visualElement.current)
|
|
3993
3995
|
return;
|
|
3994
3996
|
const { drag: e, dragConstraints: n } = this.getProps(), { projection: i } = this.visualElement;
|
|
3995
|
-
if (!
|
|
3997
|
+
if (!_t(n) || !i || !this.constraints)
|
|
3996
3998
|
return;
|
|
3997
3999
|
this.stopAnimation();
|
|
3998
4000
|
const s = { x: 0, y: 0 };
|
|
@@ -4020,9 +4022,9 @@ class Fu {
|
|
|
4020
4022
|
c && u && this.start(l);
|
|
4021
4023
|
}), i = () => {
|
|
4022
4024
|
const { dragConstraints: l } = this.getProps();
|
|
4023
|
-
|
|
4025
|
+
_t(l) && l.current && (this.constraints = this.resolveRefConstraints());
|
|
4024
4026
|
}, { projection: s } = this.visualElement, o = s.addEventListener("measure", i);
|
|
4025
|
-
s && !s.layout && (s.root && s.root.updateScroll(), s.updateLayout()),
|
|
4027
|
+
s && !s.layout && (s.root && s.root.updateScroll(), s.updateLayout()), M.read(i);
|
|
4026
4028
|
const r = ot(window, "resize", () => this.scalePositionWithinConstraints()), a = s.addEventListener("didUpdate", ({ delta: l, hasLayoutChanged: c }) => {
|
|
4027
4029
|
this.isDragging && c && (et((u) => {
|
|
4028
4030
|
const f = this.getAxisMotionValue(u);
|
|
@@ -4066,7 +4068,7 @@ class Bu extends Tt {
|
|
|
4066
4068
|
}
|
|
4067
4069
|
}
|
|
4068
4070
|
const ws = (t) => (e, n) => {
|
|
4069
|
-
t &&
|
|
4071
|
+
t && M.postRender(() => t(e, n));
|
|
4070
4072
|
};
|
|
4071
4073
|
class Iu extends Tt {
|
|
4072
4074
|
constructor() {
|
|
@@ -4085,7 +4087,7 @@ class Iu extends Tt {
|
|
|
4085
4087
|
onStart: ws(n),
|
|
4086
4088
|
onMove: i,
|
|
4087
4089
|
onEnd: (o, r) => {
|
|
4088
|
-
delete this.session, s &&
|
|
4090
|
+
delete this.session, s && M.postRender(() => s(o, r));
|
|
4089
4091
|
}
|
|
4090
4092
|
};
|
|
4091
4093
|
}
|
|
@@ -4104,8 +4106,8 @@ function Nu() {
|
|
|
4104
4106
|
if (t === null)
|
|
4105
4107
|
return [!0, null];
|
|
4106
4108
|
const { isPresent: e, onExitComplete: n, register: i } = t, s = Ln();
|
|
4107
|
-
|
|
4108
|
-
const o =
|
|
4109
|
+
vt(() => i(s), []);
|
|
4110
|
+
const o = gt(() => n && n(s), [s, n]);
|
|
4109
4111
|
return !e && n ? [!1, o] : [!0];
|
|
4110
4112
|
}
|
|
4111
4113
|
const Re = {
|
|
@@ -4123,12 +4125,12 @@ const Re = {
|
|
|
4123
4125
|
function Ss(t, e) {
|
|
4124
4126
|
return e.max === e.min ? 0 : t / (e.max - e.min) * 100;
|
|
4125
4127
|
}
|
|
4126
|
-
const
|
|
4128
|
+
const Zt = {
|
|
4127
4129
|
correct: (t, e) => {
|
|
4128
4130
|
if (!e.target)
|
|
4129
4131
|
return t;
|
|
4130
4132
|
if (typeof t == "string")
|
|
4131
|
-
if (
|
|
4133
|
+
if (C.test(t))
|
|
4132
4134
|
t = parseFloat(t);
|
|
4133
4135
|
else
|
|
4134
4136
|
return t;
|
|
@@ -4137,10 +4139,10 @@ const qt = {
|
|
|
4137
4139
|
}
|
|
4138
4140
|
}, Uu = {
|
|
4139
4141
|
correct: (t, { treeScale: e, projectionDelta: n }) => {
|
|
4140
|
-
const i = t, s =
|
|
4142
|
+
const i = t, s = xt.parse(t);
|
|
4141
4143
|
if (s.length > 5)
|
|
4142
4144
|
return i;
|
|
4143
|
-
const o =
|
|
4145
|
+
const o = xt.createTransformer(t), r = typeof s[0] != "number" ? 1 : 0, a = n.x.scale * e.x, l = n.y.scale * e.y;
|
|
4144
4146
|
s[0 + r] /= a, s[1 + r] /= l;
|
|
4145
4147
|
const c = j(a, l, 0.5);
|
|
4146
4148
|
return typeof s[2 + r] == "number" && (s[2 + r] /= c), typeof s[3 + r] == "number" && (s[3 + r] /= c), o(s);
|
|
@@ -4163,7 +4165,7 @@ class Wu extends sa {
|
|
|
4163
4165
|
}
|
|
4164
4166
|
getSnapshotBeforeUpdate(e) {
|
|
4165
4167
|
const { layoutDependency: n, visualElement: i, drag: s, isPresent: o } = this.props, r = i.projection;
|
|
4166
|
-
return r && (r.isPresent = o, s || e.layoutDependency !== n || n === void 0 ? r.willUpdate() : this.safeToRemove(), e.isPresent !== o && (o ? r.promote() : r.relegate() ||
|
|
4168
|
+
return r && (r.isPresent = o, s || e.layoutDependency !== n || n === void 0 ? r.willUpdate() : this.safeToRemove(), e.isPresent !== o && (o ? r.promote() : r.relegate() || M.postRender(() => {
|
|
4167
4169
|
const a = r.getStack();
|
|
4168
4170
|
(!a || !a.members.length) && this.safeToRemove();
|
|
4169
4171
|
}))), null;
|
|
@@ -4192,7 +4194,7 @@ function vo(t) {
|
|
|
4192
4194
|
}
|
|
4193
4195
|
const $u = {
|
|
4194
4196
|
borderRadius: {
|
|
4195
|
-
...
|
|
4197
|
+
...Zt,
|
|
4196
4198
|
applyTo: [
|
|
4197
4199
|
"borderTopLeftRadius",
|
|
4198
4200
|
"borderTopRightRadius",
|
|
@@ -4200,12 +4202,12 @@ const $u = {
|
|
|
4200
4202
|
"borderBottomRightRadius"
|
|
4201
4203
|
]
|
|
4202
4204
|
},
|
|
4203
|
-
borderTopLeftRadius:
|
|
4204
|
-
borderTopRightRadius:
|
|
4205
|
-
borderBottomLeftRadius:
|
|
4206
|
-
borderBottomRightRadius:
|
|
4205
|
+
borderTopLeftRadius: Zt,
|
|
4206
|
+
borderTopRightRadius: Zt,
|
|
4207
|
+
borderBottomLeftRadius: Zt,
|
|
4208
|
+
borderBottomRightRadius: Zt,
|
|
4207
4209
|
boxShadow: Uu
|
|
4208
|
-
}, Po = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], Ku = Po.length, Cs = (t) => typeof t == "string" ? parseFloat(t) : t, As = (t) => typeof t == "number" ||
|
|
4210
|
+
}, Po = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], Ku = Po.length, Cs = (t) => typeof t == "string" ? parseFloat(t) : t, As = (t) => typeof t == "number" || C.test(t);
|
|
4209
4211
|
function Gu(t, e, n, i, s, o) {
|
|
4210
4212
|
s ? (t.opacity = j(
|
|
4211
4213
|
0,
|
|
@@ -4218,7 +4220,7 @@ function Gu(t, e, n, i, s, o) {
|
|
|
4218
4220
|
let l = Rs(e, a), c = Rs(n, a);
|
|
4219
4221
|
if (l === void 0 && c === void 0)
|
|
4220
4222
|
continue;
|
|
4221
|
-
l || (l = 0), c || (c = 0), l === 0 || c === 0 || As(l) === As(c) ? (t[a] = Math.max(j(Cs(l), Cs(c), i), 0), (
|
|
4223
|
+
l || (l = 0), c || (c = 0), l === 0 || c === 0 || As(l) === As(c) ? (t[a] = Math.max(j(Cs(l), Cs(c), i), 0), (rt.test(c) || rt.test(l)) && (t[a] += "%")) : t[a] = c;
|
|
4222
4224
|
}
|
|
4223
4225
|
(e.rotate || n.rotate) && (t.rotate = j(e.rotate || 0, n.rotate || 0, i));
|
|
4224
4226
|
}
|
|
@@ -4242,7 +4244,7 @@ function Ds(t, e, n, i, s) {
|
|
|
4242
4244
|
return t -= e, t = je(t, 1 / n, i), s !== void 0 && (t = je(t, 1 / s, i)), t;
|
|
4243
4245
|
}
|
|
4244
4246
|
function Yu(t, e = 0, n = 1, i = 0.5, s, o = t, r = t) {
|
|
4245
|
-
if (
|
|
4247
|
+
if (rt.test(e) && (e = parseFloat(e), e = j(r.min, r.max, e / 100) - r.min), typeof e != "number")
|
|
4246
4248
|
return;
|
|
4247
4249
|
let a = j(o.min, o.max, i);
|
|
4248
4250
|
t === o && (a -= e), t.min = Ds(t.min, e, n, a, s), t.max = Ds(t.max, e, n, a, s);
|
|
@@ -4257,7 +4259,7 @@ function ks(t, e, n, i) {
|
|
|
4257
4259
|
function Ls(t) {
|
|
4258
4260
|
return t.translate === 0 && t.scale === 1;
|
|
4259
4261
|
}
|
|
4260
|
-
function
|
|
4262
|
+
function bo(t) {
|
|
4261
4263
|
return Ls(t.x) && Ls(t.y);
|
|
4262
4264
|
}
|
|
4263
4265
|
function Os(t, e) {
|
|
@@ -4269,11 +4271,11 @@ function Zu(t, e) {
|
|
|
4269
4271
|
function js(t, e) {
|
|
4270
4272
|
return Math.round(t.min) === Math.round(e.min) && Math.round(t.max) === Math.round(e.max);
|
|
4271
4273
|
}
|
|
4272
|
-
function
|
|
4274
|
+
function To(t, e) {
|
|
4273
4275
|
return js(t.x, e.x) && js(t.y, e.y);
|
|
4274
4276
|
}
|
|
4275
4277
|
function Fs(t) {
|
|
4276
|
-
return
|
|
4278
|
+
return q(t.x) / q(t.y);
|
|
4277
4279
|
}
|
|
4278
4280
|
function _s(t, e) {
|
|
4279
4281
|
return t.translate === e.translate && t.scale === e.scale && t.originPoint === e.originPoint;
|
|
@@ -4336,8 +4338,8 @@ function Qu(t, e, n) {
|
|
|
4336
4338
|
let i = "";
|
|
4337
4339
|
const s = t.x.translate / e.x, o = t.y.translate / e.y, r = (n == null ? void 0 : n.z) || 0;
|
|
4338
4340
|
if ((s || o || r) && (i = `translate3d(${s}px, ${o}px, ${r}px) `), (e.x !== 1 || e.y !== 1) && (i += `scale(${1 / e.x}, ${1 / e.y}) `), n) {
|
|
4339
|
-
const { transformPerspective: c, rotate: u, rotateX: f, rotateY: d, skewX: p, skewY:
|
|
4340
|
-
c && (i = `perspective(${c}px) ${i}`), u && (i += `rotate(${u}deg) `), f && (i += `rotateX(${f}deg) `), d && (i += `rotateY(${d}deg) `), p && (i += `skewX(${p}deg) `),
|
|
4341
|
+
const { transformPerspective: c, rotate: u, rotateX: f, rotateY: d, skewX: p, skewY: g } = n;
|
|
4342
|
+
c && (i = `perspective(${c}px) ${i}`), u && (i += `rotate(${u}deg) `), f && (i += `rotateX(${f}deg) `), d && (i += `rotateY(${d}deg) `), p && (i += `skewX(${p}deg) `), g && (i += `skewY(${g}deg) `);
|
|
4341
4343
|
}
|
|
4342
4344
|
const a = t.x.scale * e.x, l = t.y.scale * e.y;
|
|
4343
4345
|
return (a !== 1 || l !== 1) && (i += `scale(${a}, ${l})`), i || "none";
|
|
@@ -4358,11 +4360,11 @@ class ef {
|
|
|
4358
4360
|
}
|
|
4359
4361
|
}
|
|
4360
4362
|
function nf(t, e) {
|
|
4361
|
-
const n =
|
|
4363
|
+
const n = yt.now(), i = ({ timestamp: s }) => {
|
|
4362
4364
|
const o = s - n;
|
|
4363
4365
|
o >= e && (ht(i), t(o - e));
|
|
4364
4366
|
};
|
|
4365
|
-
return
|
|
4367
|
+
return M.read(i, !0), () => ht(i);
|
|
4366
4368
|
}
|
|
4367
4369
|
function sf(t) {
|
|
4368
4370
|
return t instanceof SVGElement && t.tagName !== "svg";
|
|
@@ -4376,7 +4378,7 @@ const At = {
|
|
|
4376
4378
|
totalNodes: 0,
|
|
4377
4379
|
resolvedTargetDeltas: 0,
|
|
4378
4380
|
recalculatedProjection: 0
|
|
4379
|
-
},
|
|
4381
|
+
}, Qt = typeof window < "u" && window.MotionDebug !== void 0, fn = ["", "X", "Y", "Z"], of = { visibility: "hidden" }, Bs = 1e3;
|
|
4380
4382
|
let af = 0;
|
|
4381
4383
|
function hn(t, e, n, i) {
|
|
4382
4384
|
const { latestValues: s } = e;
|
|
@@ -4394,7 +4396,7 @@ function So({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4394
4396
|
this.id = af++, this.animationId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
|
|
4395
4397
|
this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
|
|
4396
4398
|
}, this.updateProjection = () => {
|
|
4397
|
-
this.projectionUpdateScheduled = !1,
|
|
4399
|
+
this.projectionUpdateScheduled = !1, Qt && (At.totalNodes = At.resolvedTargetDeltas = At.recalculatedProjection = 0), this.nodes.forEach(uf), this.nodes.forEach(mf), this.nodes.forEach(gf), this.nodes.forEach(ff), Qt && window.MotionDebug.record(At);
|
|
4398
4400
|
}, this.resolvedRelativeTargetAt = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = r, this.root = a ? a.root || a : this, this.path = a ? [...a.path, a] : [], this.parent = a, this.depth = a ? a.depth + 1 : 0;
|
|
4399
4401
|
for (let l = 0; l < this.path.length; l++)
|
|
4400
4402
|
this.path[l].shouldResetTransform = !0;
|
|
@@ -4425,23 +4427,23 @@ function So({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4425
4427
|
this.root.updateBlockedByResize = !0, f && f(), f = nf(d, 250), Re.hasAnimatedSinceResize && (Re.hasAnimatedSinceResize = !1, this.nodes.forEach(Ns));
|
|
4426
4428
|
});
|
|
4427
4429
|
}
|
|
4428
|
-
l && this.root.registerSharedNode(l, this), this.options.animate !== !1 && u && (l || c) && this.addEventListener("didUpdate", ({ delta: f, hasLayoutChanged: d, hasRelativeTargetChanged: p, layout:
|
|
4430
|
+
l && this.root.registerSharedNode(l, this), this.options.animate !== !1 && u && (l || c) && this.addEventListener("didUpdate", ({ delta: f, hasLayoutChanged: d, hasRelativeTargetChanged: p, layout: g }) => {
|
|
4429
4431
|
if (this.isTreeAnimationBlocked()) {
|
|
4430
4432
|
this.target = void 0, this.relativeTarget = void 0;
|
|
4431
4433
|
return;
|
|
4432
4434
|
}
|
|
4433
|
-
const
|
|
4435
|
+
const x = this.options.transition || u.getDefaultTransition() || bf, { onLayoutAnimationStart: b, onLayoutAnimationComplete: P } = u.getProps(), y = !this.targetLayout || !To(this.targetLayout, g) || p, v = !d && p;
|
|
4434
4436
|
if (this.options.layoutRoot || this.resumeFrom && this.resumeFrom.instance || v || d && (y || !this.currentAnimation)) {
|
|
4435
4437
|
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(f, v);
|
|
4436
4438
|
const w = {
|
|
4437
|
-
...Jn(
|
|
4439
|
+
...Jn(x, "layout"),
|
|
4438
4440
|
onPlay: b,
|
|
4439
|
-
onComplete:
|
|
4441
|
+
onComplete: P
|
|
4440
4442
|
};
|
|
4441
4443
|
(u.shouldReduceMotion || this.options.layoutRoot) && (w.delay = 0, w.type = !1), this.startAnimation(w);
|
|
4442
4444
|
} else
|
|
4443
4445
|
d || Ns(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
|
|
4444
|
-
this.targetLayout =
|
|
4446
|
+
this.targetLayout = g;
|
|
4445
4447
|
});
|
|
4446
4448
|
}
|
|
4447
4449
|
unmount() {
|
|
@@ -4494,8 +4496,8 @@ function So({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4494
4496
|
return;
|
|
4495
4497
|
}
|
|
4496
4498
|
this.isUpdating || this.nodes.forEach(df), this.isUpdating = !1, this.nodes.forEach(pf), this.nodes.forEach(lf), this.nodes.forEach(cf), this.clearAllSnapshots();
|
|
4497
|
-
const a =
|
|
4498
|
-
N.delta =
|
|
4499
|
+
const a = yt.now();
|
|
4500
|
+
N.delta = Pt(0, 1e3 / 60, a - N.timestamp), N.timestamp = a, N.isProcessing = !0, tn.update.process(N), tn.preRender.process(N), tn.render.process(N), N.isProcessing = !1;
|
|
4499
4501
|
}
|
|
4500
4502
|
didUpdate() {
|
|
4501
4503
|
this.updateScheduled || (this.updateScheduled = !0, _n.read(this.scheduleUpdate));
|
|
@@ -4504,10 +4506,10 @@ function So({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4504
4506
|
this.nodes.forEach(hf), this.sharedNodes.forEach(vf);
|
|
4505
4507
|
}
|
|
4506
4508
|
scheduleUpdateProjection() {
|
|
4507
|
-
this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0,
|
|
4509
|
+
this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, M.preRender(this.updateProjection, !1, !0));
|
|
4508
4510
|
}
|
|
4509
4511
|
scheduleCheckAfterUnmount() {
|
|
4510
|
-
|
|
4512
|
+
M.postRender(() => {
|
|
4511
4513
|
this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
|
|
4512
4514
|
});
|
|
4513
4515
|
}
|
|
@@ -4544,13 +4546,13 @@ function So({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4544
4546
|
resetTransform() {
|
|
4545
4547
|
if (!s)
|
|
4546
4548
|
return;
|
|
4547
|
-
const r = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, a = this.projectionDelta && !
|
|
4549
|
+
const r = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, a = this.projectionDelta && !bo(this.projectionDelta), l = this.getTransformTemplate(), c = l ? l(this.latestValues, "") : void 0, u = c !== this.prevTransformTemplateValue;
|
|
4548
4550
|
r && (a || Ct(this.latestValues) || u) && (s(this.instance, c), this.shouldResetTransform = !1, this.scheduleRender());
|
|
4549
4551
|
}
|
|
4550
4552
|
measure(r = !0) {
|
|
4551
4553
|
const a = this.measurePageBox();
|
|
4552
4554
|
let l = this.removeElementScroll(a);
|
|
4553
|
-
return r && (l = this.removeTransform(l)),
|
|
4555
|
+
return r && (l = this.removeTransform(l)), Tf(l), {
|
|
4554
4556
|
animationId: this.root.animationId,
|
|
4555
4557
|
measuredBox: a,
|
|
4556
4558
|
layoutBox: l,
|
|
@@ -4566,7 +4568,7 @@ function So({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4566
4568
|
const l = a.measureViewportBox();
|
|
4567
4569
|
if (!(((r = this.scroll) === null || r === void 0 ? void 0 : r.wasRoot) || this.path.some(wf))) {
|
|
4568
4570
|
const { scroll: u } = this.root;
|
|
4569
|
-
u && (
|
|
4571
|
+
u && (Nt(l.x, u.offset.x), Nt(l.y, u.offset.y));
|
|
4570
4572
|
}
|
|
4571
4573
|
return l;
|
|
4572
4574
|
}
|
|
@@ -4577,7 +4579,7 @@ function So({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4577
4579
|
return l;
|
|
4578
4580
|
for (let c = 0; c < this.path.length; c++) {
|
|
4579
4581
|
const u = this.path[c], { scroll: f, options: d } = u;
|
|
4580
|
-
u !== this.root && f && d.layoutScroll && (f.wasRoot && tt(l, r),
|
|
4582
|
+
u !== this.root && f && d.layoutScroll && (f.wasRoot && tt(l, r), Nt(l.x, f.offset.x), Nt(l.y, f.offset.y));
|
|
4581
4583
|
}
|
|
4582
4584
|
return l;
|
|
4583
4585
|
}
|
|
@@ -4586,12 +4588,12 @@ function So({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4586
4588
|
tt(l, r);
|
|
4587
4589
|
for (let c = 0; c < this.path.length; c++) {
|
|
4588
4590
|
const u = this.path[c];
|
|
4589
|
-
!a && u.options.layoutScroll && u.scroll && u !== u.root &&
|
|
4591
|
+
!a && u.options.layoutScroll && u.scroll && u !== u.root && Ut(l, {
|
|
4590
4592
|
x: -u.scroll.offset.x,
|
|
4591
4593
|
y: -u.scroll.offset.y
|
|
4592
|
-
}), Ct(u.latestValues) &&
|
|
4594
|
+
}), Ct(u.latestValues) && Ut(l, u.latestValues);
|
|
4593
4595
|
}
|
|
4594
|
-
return Ct(this.latestValues) &&
|
|
4596
|
+
return Ct(this.latestValues) && Ut(l, this.latestValues), l;
|
|
4595
4597
|
}
|
|
4596
4598
|
removeTransform(r) {
|
|
4597
4599
|
const a = B();
|
|
@@ -4641,7 +4643,7 @@ function So({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4641
4643
|
const p = this.getClosestProjectingParent();
|
|
4642
4644
|
p && !!p.resumingFrom == !!this.resumingFrom && !p.options.layoutScroll && p.target && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget = B(), this.relativeTargetOrigin = B(), ie(this.relativeTargetOrigin, this.target, p.target), tt(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
4643
4645
|
}
|
|
4644
|
-
|
|
4646
|
+
Qt && At.resolvedTargetDeltas++;
|
|
4645
4647
|
}
|
|
4646
4648
|
}
|
|
4647
4649
|
}
|
|
@@ -4664,12 +4666,12 @@ function So({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4664
4666
|
tt(this.layoutCorrected, this.layout.layoutBox);
|
|
4665
4667
|
const d = this.treeScale.x, p = this.treeScale.y;
|
|
4666
4668
|
Lu(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 = B());
|
|
4667
|
-
const { target:
|
|
4668
|
-
if (!
|
|
4669
|
+
const { target: g } = a;
|
|
4670
|
+
if (!g) {
|
|
4669
4671
|
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
|
|
4670
4672
|
return;
|
|
4671
4673
|
}
|
|
4672
|
-
!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (Es(this.prevProjectionDelta.x, this.projectionDelta.x), Es(this.prevProjectionDelta.y, this.projectionDelta.y)), ne(this.projectionDelta, this.layoutCorrected,
|
|
4674
|
+
!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (Es(this.prevProjectionDelta.x, this.projectionDelta.x), Es(this.prevProjectionDelta.y, this.projectionDelta.y)), ne(this.projectionDelta, this.layoutCorrected, g, this.latestValues), (this.treeScale.x !== d || this.treeScale.y !== p || !_s(this.projectionDelta.x, this.prevProjectionDelta.x) || !_s(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", g)), Qt && At.recalculatedProjection++;
|
|
4673
4675
|
}
|
|
4674
4676
|
hide() {
|
|
4675
4677
|
this.isVisible = !1;
|
|
@@ -4686,21 +4688,21 @@ function So({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4686
4688
|
this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);
|
|
4687
4689
|
}
|
|
4688
4690
|
createProjectionDeltas() {
|
|
4689
|
-
this.prevProjectionDelta =
|
|
4691
|
+
this.prevProjectionDelta = It(), this.projectionDelta = It(), this.projectionDeltaWithTransform = It();
|
|
4690
4692
|
}
|
|
4691
4693
|
setAnimationOrigin(r, a = !1) {
|
|
4692
|
-
const l = this.snapshot, c = l ? l.latestValues : {}, u = { ...this.latestValues }, f =
|
|
4694
|
+
const l = this.snapshot, c = l ? l.latestValues : {}, u = { ...this.latestValues }, f = It();
|
|
4693
4695
|
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
|
|
4694
|
-
const d = B(), p = l ? l.source : void 0,
|
|
4696
|
+
const d = B(), p = l ? l.source : void 0, g = this.layout ? this.layout.source : void 0, x = p !== g, b = this.getStack(), P = !b || b.members.length <= 1, y = !!(x && !P && this.options.crossfade === !0 && !this.path.some(xf));
|
|
4695
4697
|
this.animationProgress = 0;
|
|
4696
4698
|
let v;
|
|
4697
4699
|
this.mixTargetDelta = (w) => {
|
|
4698
|
-
const
|
|
4699
|
-
Us(f.x, r.x,
|
|
4700
|
+
const R = w / 1e3;
|
|
4701
|
+
Us(f.x, r.x, R), Us(f.y, r.y, R), this.setTargetDelta(f), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (ie(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Pf(this.relativeTarget, this.relativeTargetOrigin, d, R), v && Zu(this.relativeTarget, v) && (this.isProjectionDirty = !1), v || (v = B()), tt(v, this.relativeTarget)), x && (this.animationValues = u, Gu(u, c, this.latestValues, R, y, P)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = R;
|
|
4700
4702
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
4701
4703
|
}
|
|
4702
4704
|
startAnimation(r) {
|
|
4703
|
-
this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (ht(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation =
|
|
4705
|
+
this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (ht(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = M.update(() => {
|
|
4704
4706
|
Re.hasAnimatedSinceResize = !0, this.currentAnimation = rf(0, Bs, {
|
|
4705
4707
|
...r,
|
|
4706
4708
|
onUpdate: (a) => {
|
|
@@ -4726,12 +4728,12 @@ function So({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4726
4728
|
if (!(!a || !l || !c)) {
|
|
4727
4729
|
if (this !== r && this.layout && c && Co(this.options.animationType, this.layout.layoutBox, c.layoutBox)) {
|
|
4728
4730
|
l = this.target || B();
|
|
4729
|
-
const f =
|
|
4731
|
+
const f = q(this.layout.layoutBox.x);
|
|
4730
4732
|
l.x.min = r.target.x.min, l.x.max = l.x.min + f;
|
|
4731
|
-
const d =
|
|
4733
|
+
const d = q(this.layout.layoutBox.y);
|
|
4732
4734
|
l.y.min = r.target.y.min, l.y.max = l.y.min + d;
|
|
4733
4735
|
}
|
|
4734
|
-
tt(a, l),
|
|
4736
|
+
tt(a, l), Ut(a, u), ne(this.projectionDeltaWithTransform, this.layoutCorrected, a, u);
|
|
4735
4737
|
}
|
|
4736
4738
|
}
|
|
4737
4739
|
registerSharedNode(r, a) {
|
|
@@ -4799,23 +4801,23 @@ function So({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4799
4801
|
return this.needsReset = !1, c.opacity = "", c.pointerEvents = Ce(r == null ? void 0 : r.pointerEvents) || "", c.transform = u ? u(this.latestValues, "") : "none", c;
|
|
4800
4802
|
const f = this.getLead();
|
|
4801
4803
|
if (!this.projectionDelta || !this.layout || !f.target) {
|
|
4802
|
-
const
|
|
4803
|
-
return this.options.layoutId && (
|
|
4804
|
+
const x = {};
|
|
4805
|
+
return this.options.layoutId && (x.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, x.pointerEvents = Ce(r == null ? void 0 : r.pointerEvents) || ""), this.hasProjected && !Ct(this.latestValues) && (x.transform = u ? u({}, "") : "none", this.hasProjected = !1), x;
|
|
4804
4806
|
}
|
|
4805
4807
|
const d = f.animationValues || f.latestValues;
|
|
4806
4808
|
this.applyTransformsToTarget(), c.transform = Qu(this.projectionDeltaWithTransform, this.treeScale, d), u && (c.transform = u(d, c.transform));
|
|
4807
|
-
const { x: p, y:
|
|
4808
|
-
c.transformOrigin = `${p.origin * 100}% ${
|
|
4809
|
-
for (const
|
|
4810
|
-
if (d[
|
|
4809
|
+
const { x: p, y: g } = this.projectionDelta;
|
|
4810
|
+
c.transformOrigin = `${p.origin * 100}% ${g.origin * 100}% 0`, f.animationValues ? c.opacity = f === this ? (l = (a = d.opacity) !== null && a !== void 0 ? a : this.latestValues.opacity) !== null && l !== void 0 ? l : 1 : this.preserveOpacity ? this.latestValues.opacity : d.opacityExit : c.opacity = f === this ? d.opacity !== void 0 ? d.opacity : "" : d.opacityExit !== void 0 ? d.opacityExit : 0;
|
|
4811
|
+
for (const x in De) {
|
|
4812
|
+
if (d[x] === void 0)
|
|
4811
4813
|
continue;
|
|
4812
|
-
const { correct: b, applyTo:
|
|
4813
|
-
if (
|
|
4814
|
-
const v =
|
|
4814
|
+
const { correct: b, applyTo: P } = De[x], y = c.transform === "none" ? d[x] : b(d[x], f);
|
|
4815
|
+
if (P) {
|
|
4816
|
+
const v = P.length;
|
|
4815
4817
|
for (let w = 0; w < v; w++)
|
|
4816
|
-
c[
|
|
4818
|
+
c[P[w]] = y;
|
|
4817
4819
|
} else
|
|
4818
|
-
c[
|
|
4820
|
+
c[x] = y;
|
|
4819
4821
|
}
|
|
4820
4822
|
return this.options.layoutId && (c.pointerEvents = f === this ? Ce(r == null ? void 0 : r.pointerEvents) || "" : "none"), c;
|
|
4821
4823
|
}
|
|
@@ -4840,27 +4842,27 @@ function cf(t) {
|
|
|
4840
4842
|
if (t.isLead() && t.layout && n && t.hasListeners("didUpdate")) {
|
|
4841
4843
|
const { layoutBox: i, measuredBox: s } = t.layout, { animationType: o } = t.options, r = n.source !== t.layout.source;
|
|
4842
4844
|
o === "size" ? et((f) => {
|
|
4843
|
-
const d = r ? n.measuredBox[f] : n.layoutBox[f], p =
|
|
4845
|
+
const d = r ? n.measuredBox[f] : n.layoutBox[f], p = q(d);
|
|
4844
4846
|
d.min = i[f].min, d.max = d.min + p;
|
|
4845
4847
|
}) : Co(o, n.layoutBox, i) && et((f) => {
|
|
4846
|
-
const d = r ? n.measuredBox[f] : n.layoutBox[f], p =
|
|
4848
|
+
const d = r ? n.measuredBox[f] : n.layoutBox[f], p = q(i[f]);
|
|
4847
4849
|
d.max = d.min + p, t.relativeTarget && !t.currentAnimation && (t.isProjectionDirty = !0, t.relativeTarget[f].max = t.relativeTarget[f].min + p);
|
|
4848
4850
|
});
|
|
4849
|
-
const a =
|
|
4851
|
+
const a = It();
|
|
4850
4852
|
ne(a, i, n.layoutBox);
|
|
4851
|
-
const l =
|
|
4853
|
+
const l = It();
|
|
4852
4854
|
r ? ne(l, t.applyTransform(s, !0), n.measuredBox) : ne(l, i, n.layoutBox);
|
|
4853
|
-
const c = !
|
|
4855
|
+
const c = !bo(a);
|
|
4854
4856
|
let u = !1;
|
|
4855
4857
|
if (!t.resumeFrom) {
|
|
4856
4858
|
const f = t.getClosestProjectingParent();
|
|
4857
4859
|
if (f && !f.resumeFrom) {
|
|
4858
4860
|
const { snapshot: d, layout: p } = f;
|
|
4859
4861
|
if (d && p) {
|
|
4860
|
-
const
|
|
4861
|
-
ie(
|
|
4862
|
-
const
|
|
4863
|
-
ie(
|
|
4862
|
+
const g = B();
|
|
4863
|
+
ie(g, n.layoutBox, d.layoutBox);
|
|
4864
|
+
const x = B();
|
|
4865
|
+
ie(x, i, p.layoutBox), To(g, x) || (u = !0), f.options.layoutRoot && (t.relativeTarget = x, t.relativeTargetOrigin = g, t.relativeParent = f);
|
|
4864
4866
|
}
|
|
4865
4867
|
}
|
|
4866
4868
|
}
|
|
@@ -4879,7 +4881,7 @@ function cf(t) {
|
|
|
4879
4881
|
t.options.transition = void 0;
|
|
4880
4882
|
}
|
|
4881
4883
|
function uf(t) {
|
|
4882
|
-
|
|
4884
|
+
Qt && At.totalNodes++, t.parent && (t.isProjecting() || (t.isProjectionDirty = t.parent.isProjectionDirty), t.isSharedProjectionDirty || (t.isSharedProjectionDirty = !!(t.isProjectionDirty || t.parent.isProjectionDirty || t.parent.isSharedProjectionDirty)), t.isTransformDirty || (t.isTransformDirty = t.parent.isTransformDirty));
|
|
4883
4885
|
}
|
|
4884
4886
|
function ff(t) {
|
|
4885
4887
|
t.isProjectionDirty = t.isSharedProjectionDirty = t.isTransformDirty = !1;
|
|
@@ -4924,14 +4926,14 @@ function Pf(t, e, n, i) {
|
|
|
4924
4926
|
function xf(t) {
|
|
4925
4927
|
return t.animationValues && t.animationValues.opacityExit !== void 0;
|
|
4926
4928
|
}
|
|
4927
|
-
const
|
|
4929
|
+
const bf = {
|
|
4928
4930
|
duration: 0.45,
|
|
4929
4931
|
ease: [0.4, 0, 0.1, 1]
|
|
4930
4932
|
}, $s = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), Ks = $s("applewebkit/") && !$s("chrome/") ? Math.round : W;
|
|
4931
4933
|
function Gs(t) {
|
|
4932
4934
|
t.min = Ks(t.min), t.max = Ks(t.max);
|
|
4933
4935
|
}
|
|
4934
|
-
function
|
|
4936
|
+
function Tf(t) {
|
|
4935
4937
|
Gs(t.x), Gs(t.y);
|
|
4936
4938
|
}
|
|
4937
4939
|
function Co(t, e, n) {
|
|
@@ -5004,7 +5006,7 @@ function Rf(t, e, n) {
|
|
|
5004
5006
|
e[i] === void 0 && t.removeValue(i);
|
|
5005
5007
|
return e;
|
|
5006
5008
|
}
|
|
5007
|
-
const zs = /* @__PURE__ */ new WeakMap(), Vf = [...Lr, $,
|
|
5009
|
+
const zs = /* @__PURE__ */ new WeakMap(), Vf = [...Lr, $, xt], Ef = (t) => Vf.find(kr(t)), Hs = [
|
|
5008
5010
|
"AnimationStart",
|
|
5009
5011
|
"AnimationComplete",
|
|
5010
5012
|
"Update",
|
|
@@ -5025,10 +5027,10 @@ class Mf {
|
|
|
5025
5027
|
return {};
|
|
5026
5028
|
}
|
|
5027
5029
|
constructor({ parent: e, props: n, presenceContext: i, reducedMotionConfig: s, blockInitialAnimation: o, visualState: r }, a = {}) {
|
|
5028
|
-
this.applyWillChange = !1, this.resolveKeyframes = (d, p,
|
|
5030
|
+
this.applyWillChange = !1, this.resolveKeyframes = (d, p, g, x) => new this.KeyframeResolver(d, p, g, x, this), this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = Qn, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
|
|
5029
5031
|
this.isRenderScheduled = !1, this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
|
|
5030
5032
|
}, this.isRenderScheduled = !1, this.scheduleRender = () => {
|
|
5031
|
-
this.isRenderScheduled || (this.isRenderScheduled = !0,
|
|
5033
|
+
this.isRenderScheduled || (this.isRenderScheduled = !0, M.render(this.render, !1, !0));
|
|
5032
5034
|
};
|
|
5033
5035
|
const { latestValues: l, renderState: c } = r;
|
|
5034
5036
|
this.latestValues = l, this.baseTarget = { ...l }, this.initialValues = n.initial ? { ...l } : {}, this.renderState = c, this.parent = e, this.props = n, this.presenceContext = i, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = s, this.options = a, this.blockInitialAnimation = !!o, this.isControllingVariants = Ie(n), this.isVariantNode = lr(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
|
|
@@ -5052,8 +5054,8 @@ class Mf {
|
|
|
5052
5054
|
this.current = null;
|
|
5053
5055
|
}
|
|
5054
5056
|
bindToMotionValue(e, n) {
|
|
5055
|
-
const i =
|
|
5056
|
-
this.latestValues[e] = r, this.props.onUpdate &&
|
|
5057
|
+
const i = bt.has(e), s = n.on("change", (r) => {
|
|
5058
|
+
this.latestValues[e] = r, this.props.onUpdate && M.preRender(this.notifyUpdate), i && this.projection && (this.projection.isTransformDirty = !0);
|
|
5057
5059
|
}), o = n.on("renderRequest", this.scheduleRender);
|
|
5058
5060
|
this.valueSubscriptions.set(e, () => {
|
|
5059
5061
|
s(), o(), n.owner && n.stop();
|
|
@@ -5064,8 +5066,8 @@ class Mf {
|
|
|
5064
5066
|
}
|
|
5065
5067
|
updateFeatures() {
|
|
5066
5068
|
let e = "animation";
|
|
5067
|
-
for (e in
|
|
5068
|
-
const n =
|
|
5069
|
+
for (e in Wt) {
|
|
5070
|
+
const n = Wt[e];
|
|
5069
5071
|
if (!n)
|
|
5070
5072
|
continue;
|
|
5071
5073
|
const { isEnabled: i, Feature: s } = n;
|
|
@@ -5184,7 +5186,7 @@ class Mf {
|
|
|
5184
5186
|
readValue(e, n) {
|
|
5185
5187
|
var i;
|
|
5186
5188
|
let s = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : (i = this.getBaseTargetFromProps(this.props, e)) !== null && i !== void 0 ? i : this.readValueFromInstance(this.current, e, this.options);
|
|
5187
|
-
return s != null && (typeof s == "string" && (Dr(s) || Er(s)) ? s = parseFloat(s) : !Ef(s) &&
|
|
5189
|
+
return s != null && (typeof s == "string" && (Dr(s) || Er(s)) ? s = parseFloat(s) : !Ef(s) && xt.test(n) && (s = Ur(e, n)), this.setBaseTarget(e, K(s) ? s.get() : s)), K(s) ? s.get() : s;
|
|
5188
5190
|
}
|
|
5189
5191
|
/**
|
|
5190
5192
|
* Set the base target to later animate back to. This is currently
|
|
@@ -5239,7 +5241,7 @@ class Lf extends Vo {
|
|
|
5239
5241
|
super(...arguments), this.type = "html", this.applyWillChange = !0, this.renderInstance = gr;
|
|
5240
5242
|
}
|
|
5241
5243
|
readValueFromInstance(e, n) {
|
|
5242
|
-
if (
|
|
5244
|
+
if (bt.has(n)) {
|
|
5243
5245
|
const i = ei(n);
|
|
5244
5246
|
return i && i.default || 0;
|
|
5245
5247
|
} else {
|
|
@@ -5272,7 +5274,7 @@ class Of extends Vo {
|
|
|
5272
5274
|
return e[n];
|
|
5273
5275
|
}
|
|
5274
5276
|
readValueFromInstance(e, n) {
|
|
5275
|
-
if (
|
|
5277
|
+
if (bt.has(n)) {
|
|
5276
5278
|
const i = ei(n);
|
|
5277
5279
|
return i && i.default || 0;
|
|
5278
5280
|
}
|
|
@@ -5389,38 +5391,38 @@ function Ys(t) {
|
|
|
5389
5391
|
}
|
|
5390
5392
|
const $f = ({ children: t, exitBeforeEnter: e, custom: n, initial: i = !0, onExitComplete: s, presenceAffectsLayout: o = !0, mode: r = "sync" }) => {
|
|
5391
5393
|
ft(!e, "Replace exitBeforeEnter with mode='wait'");
|
|
5392
|
-
const a = Et(() => Ys(t), [t]), l = a.map(Se), c = nt(!0), u = nt(a), f = Zn(() => /* @__PURE__ */ new Map()), [d, p] =
|
|
5394
|
+
const a = Et(() => Ys(t), [t]), l = a.map(Se), c = nt(!0), u = nt(a), f = Zn(() => /* @__PURE__ */ new Map()), [d, p] = Ft(a), [g, x] = Ft(a);
|
|
5393
5395
|
nr(() => {
|
|
5394
5396
|
c.current = !1, u.current = a;
|
|
5395
|
-
for (let y = 0; y <
|
|
5396
|
-
const v = Se(
|
|
5397
|
+
for (let y = 0; y < g.length; y++) {
|
|
5398
|
+
const v = Se(g[y]);
|
|
5397
5399
|
l.includes(v) ? f.delete(v) : f.get(v) !== !0 && f.set(v, !1);
|
|
5398
5400
|
}
|
|
5399
|
-
}, [
|
|
5401
|
+
}, [g, l.length, l.join("-")]);
|
|
5400
5402
|
const b = [];
|
|
5401
5403
|
if (a !== d) {
|
|
5402
5404
|
let y = [...a];
|
|
5403
|
-
for (let v = 0; v <
|
|
5404
|
-
const w =
|
|
5405
|
-
l.includes(
|
|
5405
|
+
for (let v = 0; v < g.length; v++) {
|
|
5406
|
+
const w = g[v], R = Se(w);
|
|
5407
|
+
l.includes(R) || (y.splice(v, 0, w), b.push(w));
|
|
5406
5408
|
}
|
|
5407
|
-
r === "wait" && b.length && (y = b),
|
|
5409
|
+
r === "wait" && b.length && (y = b), x(Ys(y)), p(a);
|
|
5408
5410
|
return;
|
|
5409
5411
|
}
|
|
5410
|
-
process.env.NODE_ENV !== "production" && r === "wait" &&
|
|
5411
|
-
const { forceRender:
|
|
5412
|
-
return O.jsx(O.Fragment, { children:
|
|
5413
|
-
const v = Se(y), w = a ===
|
|
5412
|
+
process.env.NODE_ENV !== "production" && r === "wait" && g.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
|
|
5413
|
+
const { forceRender: P } = U(Nn);
|
|
5414
|
+
return O.jsx(O.Fragment, { children: g.map((y) => {
|
|
5415
|
+
const v = Se(y), w = a === g || l.includes(v), R = () => {
|
|
5414
5416
|
if (f.has(v))
|
|
5415
5417
|
f.set(v, !0);
|
|
5416
5418
|
else
|
|
5417
5419
|
return;
|
|
5418
|
-
let
|
|
5419
|
-
f.forEach((
|
|
5420
|
-
|
|
5421
|
-
}),
|
|
5420
|
+
let L = !0;
|
|
5421
|
+
f.forEach((H) => {
|
|
5422
|
+
H || (L = !1);
|
|
5423
|
+
}), L && (P == null || P(), x(u.current), s && s());
|
|
5422
5424
|
};
|
|
5423
|
-
return O.jsx(Uf, { isPresent: w, initial: !c.current || i ? void 0 : !1, custom: w ? void 0 : n, presenceAffectsLayout: o, mode: r, onExitComplete: w ? void 0 :
|
|
5425
|
+
return O.jsx(Uf, { isPresent: w, initial: !c.current || i ? void 0 : !1, custom: w ? void 0 : n, presenceAffectsLayout: o, mode: r, onExitComplete: w ? void 0 : R, children: y }, v);
|
|
5424
5426
|
}) });
|
|
5425
5427
|
};
|
|
5426
5428
|
function Ve(t) {
|
|
@@ -5485,15 +5487,15 @@ function qf(t) {
|
|
|
5485
5487
|
var Zf = qf();
|
|
5486
5488
|
const qs = ({
|
|
5487
5489
|
onKeyDown: t
|
|
5488
|
-
}) => (
|
|
5490
|
+
}) => (vt(() => (document.addEventListener("keydown", t), () => {
|
|
5489
5491
|
document.removeEventListener("keydown", t);
|
|
5490
5492
|
}), []), null), Zs = ({
|
|
5491
5493
|
onMousedown: t
|
|
5492
|
-
}) => (
|
|
5494
|
+
}) => (vt(() => (document.addEventListener("mousedown", t), () => {
|
|
5493
5495
|
document.removeEventListener("mousedown", t);
|
|
5494
5496
|
}), []), null), Jf = ({
|
|
5495
5497
|
onPickerHide: t
|
|
5496
|
-
}) => (
|
|
5498
|
+
}) => (vt(() => () => {
|
|
5497
5499
|
t();
|
|
5498
5500
|
}, []), null), Qf = "acrool-react-picker__root", th = "acrool-react-picker__main-el", eh = "acrool-react-picker__picker-el", pn = {
|
|
5499
5501
|
root: Qf,
|
|
@@ -5527,12 +5529,12 @@ const qs = ({
|
|
|
5527
5529
|
}, n) => {
|
|
5528
5530
|
const i = nt(null), s = da();
|
|
5529
5531
|
return Js(() => {
|
|
5530
|
-
let o =
|
|
5532
|
+
let o = it.bottom;
|
|
5531
5533
|
const r = (a) => {
|
|
5532
5534
|
var l;
|
|
5533
5535
|
if (s.isVisible && e.current && i.current) {
|
|
5534
|
-
const u = (((l = a == null ? void 0 : a[0]) == null ? void 0 : l.contentRect) ?? i.current.getBoundingClientRect()).height, f = e.current.getBoundingClientRect(), d = f.height, p = f.bottom,
|
|
5535
|
-
o ===
|
|
5536
|
+
const u = (((l = a == null ? void 0 : a[0]) == null ? void 0 : l.contentRect) ?? i.current.getBoundingClientRect()).height, f = e.current.getBoundingClientRect(), d = f.height, p = f.bottom, g = f.top, x = f.left, b = window.pageYOffset || document.documentElement.scrollTop, P = window.pageXOffset || document.documentElement.scrollLeft, y = window.innerHeight || document.documentElement.clientHeight, v = 15, w = p + u < y, R = g - (u + v) > 0;
|
|
5537
|
+
o === it.bottom ? !w && R && (o = it.top) : o === it.top && (w && !R || !w && !R) && (o = it.bottom), s.setVertical(o), i.current.style.top = o === it.bottom ? `${p + b}px` : `${p + b - (u + d)}px`, i.current.style.left = `${x + P}px`, i.current.style.transformOrigin = o === it.bottom ? "top" : "bottom", i.current.style.display = "block", requestAnimationFrame(r);
|
|
5536
5538
|
}
|
|
5537
5539
|
};
|
|
5538
5540
|
if (e.current && i.current) {
|
|
@@ -5559,28 +5561,28 @@ const qs = ({
|
|
|
5559
5561
|
function hh(t, e) {
|
|
5560
5562
|
const n = Ee(t);
|
|
5561
5563
|
return Ee((s, o) => {
|
|
5562
|
-
const [r, a] =
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
}, [JSON.stringify(s.value)]),
|
|
5566
|
-
P.current =
|
|
5567
|
-
}, [
|
|
5568
|
-
const
|
|
5569
|
-
[jt.Tab].includes(
|
|
5570
|
-
}, []),
|
|
5571
|
-
([jt.ArrowUp, jt.ArrowDown, jt.Enter].includes(
|
|
5572
|
-
}, []),
|
|
5573
|
-
!
|
|
5574
|
-
}, []),
|
|
5575
|
-
|
|
5576
|
-
}, []),
|
|
5564
|
+
const [r, a] = Ft(!1), [l, c] = Ft(!1), [u, f] = Ft(it.bottom), [d, p] = Ft(), g = nt(null), x = nt(null), b = nt(null), P = nt(d);
|
|
5565
|
+
vt(() => {
|
|
5566
|
+
p(s.value);
|
|
5567
|
+
}, [JSON.stringify(s.value)]), vt(() => {
|
|
5568
|
+
P.current = d;
|
|
5569
|
+
}, [d]);
|
|
5570
|
+
const y = gt((S) => {
|
|
5571
|
+
[jt.Tab].includes(S.key) && (a(!1), x.current.focus(), c(!1));
|
|
5572
|
+
}, []), v = gt((S) => {
|
|
5573
|
+
([jt.ArrowUp, jt.ArrowDown, jt.Enter].includes(S.key) || S.code === "Space") && (S.stopPropagation(), a(!0));
|
|
5574
|
+
}, []), w = gt((S) => {
|
|
5575
|
+
!g.current && b.current && !b.current.contains(S.target) && c(!1);
|
|
5576
|
+
}, []), R = gt((S) => {
|
|
5577
|
+
g.current && !g.current.contains(S.target) && b.current && !b.current.contains(S.target) && (a(!1), c(!1));
|
|
5578
|
+
}, []), L = gt(() => {
|
|
5577
5579
|
if (typeof (s == null ? void 0 : s.onChange) > "u") {
|
|
5578
|
-
|
|
5580
|
+
pt.warning("@acrool/react-picker", "createPicker component props onChange is undefined, is no call");
|
|
5579
5581
|
return;
|
|
5580
5582
|
}
|
|
5581
|
-
typeof P.current < "u" && JSON.stringify(
|
|
5582
|
-
}, [
|
|
5583
|
-
[jt.Escape].includes(
|
|
5583
|
+
typeof P.current < "u" && JSON.stringify(d) !== JSON.stringify(P.current) && s.onChange(P.current);
|
|
5584
|
+
}, [d, s.onChange]), H = gt((S) => {
|
|
5585
|
+
[jt.Escape].includes(S.key) && r && (S.stopPropagation(), a(!1));
|
|
5584
5586
|
}, [r]);
|
|
5585
5587
|
return /* @__PURE__ */ O.jsx(
|
|
5586
5588
|
On.Provider,
|
|
@@ -5588,20 +5590,22 @@ function hh(t, e) {
|
|
|
5588
5590
|
value: {
|
|
5589
5591
|
hide: () => requestAnimationFrame(() => a(!1)),
|
|
5590
5592
|
show: () => a(!0),
|
|
5591
|
-
toggle: () => a((
|
|
5593
|
+
toggle: () => a((S) => !S),
|
|
5592
5594
|
isVisible: r,
|
|
5593
5595
|
inputFocus: () => c(!0),
|
|
5594
5596
|
inputBlur: () => c(!1),
|
|
5595
5597
|
isInputFocus: l,
|
|
5596
|
-
value:
|
|
5597
|
-
onChange:
|
|
5598
|
+
value: d,
|
|
5599
|
+
onChange: p,
|
|
5600
|
+
vertical: u,
|
|
5601
|
+
setVertical: f
|
|
5598
5602
|
},
|
|
5599
|
-
children: /* @__PURE__ */ O.jsxs("div", { className: pn.root, onKeyDown:
|
|
5600
|
-
/* @__PURE__ */ O.jsx("div", { ref:
|
|
5603
|
+
children: /* @__PURE__ */ O.jsxs("div", { className: pn.root, onKeyDown: H, children: [
|
|
5604
|
+
/* @__PURE__ */ O.jsx("div", { ref: b, className: pn.mainEl, children: /* @__PURE__ */ O.jsx(
|
|
5601
5605
|
n,
|
|
5602
5606
|
{
|
|
5603
5607
|
...s,
|
|
5604
|
-
ref: Eo(o,
|
|
5608
|
+
ref: Eo(o, x)
|
|
5605
5609
|
}
|
|
5606
5610
|
) }),
|
|
5607
5611
|
/* @__PURE__ */ O.jsx($f, { children: r && /* @__PURE__ */ O.jsx(
|
|
@@ -5612,18 +5616,18 @@ function hh(t, e) {
|
|
|
5612
5616
|
children: /* @__PURE__ */ O.jsx(
|
|
5613
5617
|
oh,
|
|
5614
5618
|
{
|
|
5615
|
-
ref:
|
|
5616
|
-
anchorRef:
|
|
5619
|
+
ref: g,
|
|
5620
|
+
anchorRef: b,
|
|
5617
5621
|
children: /* @__PURE__ */ O.jsx(e, { ...s })
|
|
5618
5622
|
}
|
|
5619
5623
|
)
|
|
5620
5624
|
}
|
|
5621
5625
|
) }),
|
|
5622
|
-
r && /* @__PURE__ */ O.jsx(Jf, { onPickerHide:
|
|
5623
|
-
r && /* @__PURE__ */ O.jsx(Zs, { onMousedown:
|
|
5624
|
-
l && /* @__PURE__ */ O.jsx(Zs, { onMousedown:
|
|
5625
|
-
l && /* @__PURE__ */ O.jsx(qs, { onKeyDown:
|
|
5626
|
-
l && /* @__PURE__ */ O.jsx(qs, { onKeyDown:
|
|
5626
|
+
r && /* @__PURE__ */ O.jsx(Jf, { onPickerHide: L }),
|
|
5627
|
+
r && /* @__PURE__ */ O.jsx(Zs, { onMousedown: R }),
|
|
5628
|
+
l && /* @__PURE__ */ O.jsx(Zs, { onMousedown: w }),
|
|
5629
|
+
l && /* @__PURE__ */ O.jsx(qs, { onKeyDown: v }),
|
|
5630
|
+
l && /* @__PURE__ */ O.jsx(qs, { onKeyDown: y })
|
|
5627
5631
|
] })
|
|
5628
5632
|
}
|
|
5629
5633
|
);
|
|
@@ -5631,7 +5635,7 @@ function hh(t, e) {
|
|
|
5631
5635
|
}
|
|
5632
5636
|
export {
|
|
5633
5637
|
jt as EKeyboardKey,
|
|
5634
|
-
|
|
5638
|
+
it as EVertical,
|
|
5635
5639
|
ch as PickerProviderConsumer,
|
|
5636
5640
|
On as PickerProviderContext,
|
|
5637
5641
|
hh as createPicker,
|