motioncss-ui 0.1.2 → 0.1.3
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/motioncss-ui.js +474 -394
- package/dist/motioncss-ui.umd.cjs +23 -13
- package/package.json +10 -5
package/dist/motioncss-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
var
|
|
1
|
+
import Ae, { useRef as Y, useState as Ye, useEffect as oe, useCallback as yr } from "react";
|
|
2
|
+
var K = { exports: {} }, N = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
5
5
|
* react-jsx-runtime.production.min.js
|
|
@@ -9,21 +9,21 @@ var J = { exports: {} }, W = {};
|
|
|
9
9
|
* This source code is licensed under the MIT license found in the
|
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
|
11
11
|
*/
|
|
12
|
-
var
|
|
13
|
-
function
|
|
14
|
-
if (
|
|
15
|
-
|
|
16
|
-
var
|
|
17
|
-
function
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
for (
|
|
21
|
-
if (
|
|
22
|
-
return { $$typeof:
|
|
12
|
+
var De;
|
|
13
|
+
function mr() {
|
|
14
|
+
if (De) return N;
|
|
15
|
+
De = 1;
|
|
16
|
+
var y = Ae, a = Symbol.for("react.element"), d = Symbol.for("react.fragment"), u = Object.prototype.hasOwnProperty, g = y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
17
|
+
function b(m, o, S) {
|
|
18
|
+
var f, R = {}, c = null, T = null;
|
|
19
|
+
S !== void 0 && (c = "" + S), o.key !== void 0 && (c = "" + o.key), o.ref !== void 0 && (T = o.ref);
|
|
20
|
+
for (f in o) u.call(o, f) && !p.hasOwnProperty(f) && (R[f] = o[f]);
|
|
21
|
+
if (m && m.defaultProps) for (f in o = m.defaultProps, o) R[f] === void 0 && (R[f] = o[f]);
|
|
22
|
+
return { $$typeof: a, type: m, key: c, ref: T, props: R, _owner: g.current };
|
|
23
23
|
}
|
|
24
|
-
return
|
|
24
|
+
return N.Fragment = d, N.jsx = b, N.jsxs = b, N;
|
|
25
25
|
}
|
|
26
|
-
var
|
|
26
|
+
var U = {};
|
|
27
27
|
/**
|
|
28
28
|
* @license React
|
|
29
29
|
* react-jsx-runtime.development.js
|
|
@@ -33,91 +33,91 @@ var V = {};
|
|
|
33
33
|
* This source code is licensed under the MIT license found in the
|
|
34
34
|
* LICENSE file in the root directory of this source tree.
|
|
35
35
|
*/
|
|
36
|
-
var
|
|
37
|
-
function
|
|
38
|
-
return
|
|
39
|
-
var
|
|
40
|
-
function
|
|
36
|
+
var Fe;
|
|
37
|
+
function hr() {
|
|
38
|
+
return Fe || (Fe = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
39
|
+
var y = Ae, a = Symbol.for("react.element"), d = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), g = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), b = Symbol.for("react.provider"), m = Symbol.for("react.context"), o = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), R = Symbol.for("react.memo"), c = Symbol.for("react.lazy"), T = Symbol.for("react.offscreen"), h = Symbol.iterator, _ = "@@iterator";
|
|
40
|
+
function F(e) {
|
|
41
41
|
if (e === null || typeof e != "object")
|
|
42
42
|
return null;
|
|
43
|
-
var r =
|
|
43
|
+
var r = h && e[h] || e[_];
|
|
44
44
|
return typeof r == "function" ? r : null;
|
|
45
45
|
}
|
|
46
|
-
var
|
|
47
|
-
function
|
|
46
|
+
var j = y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
47
|
+
function w(e) {
|
|
48
48
|
{
|
|
49
49
|
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
50
50
|
t[n - 1] = arguments[n];
|
|
51
|
-
|
|
51
|
+
k("error", e, t);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function k(e, r, t) {
|
|
55
55
|
{
|
|
56
|
-
var n =
|
|
57
|
-
|
|
58
|
-
var
|
|
59
|
-
return String(
|
|
56
|
+
var n = j.ReactDebugCurrentFrame, l = n.getStackAddendum();
|
|
57
|
+
l !== "" && (r += "%s", t = t.concat([l]));
|
|
58
|
+
var v = t.map(function(s) {
|
|
59
|
+
return String(s);
|
|
60
60
|
});
|
|
61
|
-
|
|
61
|
+
v.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, v);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
var
|
|
65
|
-
|
|
64
|
+
var B = !1, z = !1, H = !1, Le = !1, We = !1, ue;
|
|
65
|
+
ue = Symbol.for("react.module.reference");
|
|
66
66
|
function Ve(e) {
|
|
67
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
67
|
+
return !!(typeof e == "string" || typeof e == "function" || e === u || e === p || We || e === g || e === S || e === f || Le || e === T || B || z || H || typeof e == "object" && e !== null && (e.$$typeof === c || e.$$typeof === R || e.$$typeof === b || e.$$typeof === m || e.$$typeof === o || // This needs to include all possible module reference object
|
|
68
68
|
// types supported by any Flight configuration anywhere since
|
|
69
69
|
// we don't know which Flight build this will end up being used
|
|
70
70
|
// with.
|
|
71
|
-
e.$$typeof ===
|
|
71
|
+
e.$$typeof === ue || e.getModuleId !== void 0));
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function Ne(e, r, t) {
|
|
74
74
|
var n = e.displayName;
|
|
75
75
|
if (n)
|
|
76
76
|
return n;
|
|
77
|
-
var
|
|
78
|
-
return
|
|
77
|
+
var l = r.displayName || r.name || "";
|
|
78
|
+
return l !== "" ? t + "(" + l + ")" : t;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function ce(e) {
|
|
81
81
|
return e.displayName || "Context";
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function D(e) {
|
|
84
84
|
if (e == null)
|
|
85
85
|
return null;
|
|
86
|
-
if (typeof e.tag == "number" &&
|
|
86
|
+
if (typeof e.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
87
87
|
return e.displayName || e.name || null;
|
|
88
88
|
if (typeof e == "string")
|
|
89
89
|
return e;
|
|
90
90
|
switch (e) {
|
|
91
|
-
case
|
|
91
|
+
case u:
|
|
92
92
|
return "Fragment";
|
|
93
93
|
case d:
|
|
94
94
|
return "Portal";
|
|
95
|
-
case
|
|
95
|
+
case p:
|
|
96
96
|
return "Profiler";
|
|
97
|
-
case
|
|
97
|
+
case g:
|
|
98
98
|
return "StrictMode";
|
|
99
|
-
case
|
|
99
|
+
case S:
|
|
100
100
|
return "Suspense";
|
|
101
|
-
case
|
|
101
|
+
case f:
|
|
102
102
|
return "SuspenseList";
|
|
103
103
|
}
|
|
104
104
|
if (typeof e == "object")
|
|
105
105
|
switch (e.$$typeof) {
|
|
106
|
-
case
|
|
106
|
+
case m:
|
|
107
107
|
var r = e;
|
|
108
|
-
return
|
|
109
|
-
case
|
|
108
|
+
return ce(r) + ".Consumer";
|
|
109
|
+
case b:
|
|
110
110
|
var t = e;
|
|
111
|
-
return
|
|
112
|
-
case
|
|
113
|
-
return
|
|
114
|
-
case
|
|
111
|
+
return ce(t._context) + ".Provider";
|
|
112
|
+
case o:
|
|
113
|
+
return Ne(e, e.render, "ForwardRef");
|
|
114
|
+
case R:
|
|
115
115
|
var n = e.displayName || null;
|
|
116
|
-
return n !== null ? n :
|
|
117
|
-
case
|
|
118
|
-
var
|
|
116
|
+
return n !== null ? n : D(e.type) || "Memo";
|
|
117
|
+
case c: {
|
|
118
|
+
var l = e, v = l._payload, s = l._init;
|
|
119
119
|
try {
|
|
120
|
-
return
|
|
120
|
+
return D(s(v));
|
|
121
121
|
} catch {
|
|
122
122
|
return null;
|
|
123
123
|
}
|
|
@@ -125,18 +125,18 @@ function yr() {
|
|
|
125
125
|
}
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
128
|
-
var
|
|
129
|
-
function
|
|
128
|
+
var I = Object.assign, W = 0, le, fe, de, ve, pe, ge, ye;
|
|
129
|
+
function me() {
|
|
130
130
|
}
|
|
131
|
-
|
|
132
|
-
function
|
|
131
|
+
me.__reactDisabledLog = !0;
|
|
132
|
+
function Ue() {
|
|
133
133
|
{
|
|
134
|
-
if (
|
|
135
|
-
|
|
134
|
+
if (W === 0) {
|
|
135
|
+
le = console.log, fe = console.info, de = console.warn, ve = console.error, pe = console.group, ge = console.groupCollapsed, ye = console.groupEnd;
|
|
136
136
|
var e = {
|
|
137
137
|
configurable: !0,
|
|
138
138
|
enumerable: !0,
|
|
139
|
-
value:
|
|
139
|
+
value: me,
|
|
140
140
|
writable: !0
|
|
141
141
|
};
|
|
142
142
|
Object.defineProperties(console, {
|
|
@@ -149,202 +149,202 @@ function yr() {
|
|
|
149
149
|
groupEnd: e
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
|
-
|
|
152
|
+
W++;
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
function Be() {
|
|
156
156
|
{
|
|
157
|
-
if (
|
|
157
|
+
if (W--, W === 0) {
|
|
158
158
|
var e = {
|
|
159
159
|
configurable: !0,
|
|
160
160
|
enumerable: !0,
|
|
161
161
|
writable: !0
|
|
162
162
|
};
|
|
163
163
|
Object.defineProperties(console, {
|
|
164
|
-
log:
|
|
165
|
-
value:
|
|
164
|
+
log: I({}, e, {
|
|
165
|
+
value: le
|
|
166
166
|
}),
|
|
167
|
-
info:
|
|
168
|
-
value:
|
|
167
|
+
info: I({}, e, {
|
|
168
|
+
value: fe
|
|
169
169
|
}),
|
|
170
|
-
warn:
|
|
171
|
-
value:
|
|
170
|
+
warn: I({}, e, {
|
|
171
|
+
value: de
|
|
172
172
|
}),
|
|
173
|
-
error:
|
|
174
|
-
value:
|
|
173
|
+
error: I({}, e, {
|
|
174
|
+
value: ve
|
|
175
175
|
}),
|
|
176
|
-
group:
|
|
177
|
-
value:
|
|
176
|
+
group: I({}, e, {
|
|
177
|
+
value: pe
|
|
178
178
|
}),
|
|
179
|
-
groupCollapsed:
|
|
180
|
-
value:
|
|
179
|
+
groupCollapsed: I({}, e, {
|
|
180
|
+
value: ge
|
|
181
181
|
}),
|
|
182
|
-
groupEnd:
|
|
183
|
-
value:
|
|
182
|
+
groupEnd: I({}, e, {
|
|
183
|
+
value: ye
|
|
184
184
|
})
|
|
185
185
|
});
|
|
186
186
|
}
|
|
187
|
-
|
|
187
|
+
W < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
var
|
|
191
|
-
function
|
|
190
|
+
var Z = j.ReactCurrentDispatcher, Q;
|
|
191
|
+
function X(e, r, t) {
|
|
192
192
|
{
|
|
193
|
-
if (
|
|
193
|
+
if (Q === void 0)
|
|
194
194
|
try {
|
|
195
195
|
throw Error();
|
|
196
|
-
} catch (
|
|
197
|
-
var n =
|
|
198
|
-
|
|
196
|
+
} catch (l) {
|
|
197
|
+
var n = l.stack.trim().match(/\n( *(at )?)/);
|
|
198
|
+
Q = n && n[1] || "";
|
|
199
199
|
}
|
|
200
200
|
return `
|
|
201
|
-
` +
|
|
201
|
+
` + Q + e;
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
var
|
|
204
|
+
var ee = !1, q;
|
|
205
205
|
{
|
|
206
206
|
var Xe = typeof WeakMap == "function" ? WeakMap : Map;
|
|
207
|
-
|
|
207
|
+
q = new Xe();
|
|
208
208
|
}
|
|
209
|
-
function
|
|
210
|
-
if (!e ||
|
|
209
|
+
function he(e, r) {
|
|
210
|
+
if (!e || ee)
|
|
211
211
|
return "";
|
|
212
212
|
{
|
|
213
|
-
var t =
|
|
213
|
+
var t = q.get(e);
|
|
214
214
|
if (t !== void 0)
|
|
215
215
|
return t;
|
|
216
216
|
}
|
|
217
217
|
var n;
|
|
218
|
-
|
|
219
|
-
var
|
|
218
|
+
ee = !0;
|
|
219
|
+
var l = Error.prepareStackTrace;
|
|
220
220
|
Error.prepareStackTrace = void 0;
|
|
221
|
-
var
|
|
222
|
-
|
|
221
|
+
var v;
|
|
222
|
+
v = Z.current, Z.current = null, Ue();
|
|
223
223
|
try {
|
|
224
224
|
if (r) {
|
|
225
|
-
var
|
|
225
|
+
var s = function() {
|
|
226
226
|
throw Error();
|
|
227
227
|
};
|
|
228
|
-
if (Object.defineProperty(
|
|
228
|
+
if (Object.defineProperty(s.prototype, "props", {
|
|
229
229
|
set: function() {
|
|
230
230
|
throw Error();
|
|
231
231
|
}
|
|
232
232
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
233
233
|
try {
|
|
234
|
-
Reflect.construct(
|
|
235
|
-
} catch (
|
|
236
|
-
n =
|
|
234
|
+
Reflect.construct(s, []);
|
|
235
|
+
} catch (C) {
|
|
236
|
+
n = C;
|
|
237
237
|
}
|
|
238
|
-
Reflect.construct(e, [],
|
|
238
|
+
Reflect.construct(e, [], s);
|
|
239
239
|
} else {
|
|
240
240
|
try {
|
|
241
|
-
|
|
242
|
-
} catch (
|
|
243
|
-
n =
|
|
241
|
+
s.call();
|
|
242
|
+
} catch (C) {
|
|
243
|
+
n = C;
|
|
244
244
|
}
|
|
245
|
-
e.call(
|
|
245
|
+
e.call(s.prototype);
|
|
246
246
|
}
|
|
247
247
|
} else {
|
|
248
248
|
try {
|
|
249
249
|
throw Error();
|
|
250
|
-
} catch (
|
|
251
|
-
n =
|
|
250
|
+
} catch (C) {
|
|
251
|
+
n = C;
|
|
252
252
|
}
|
|
253
253
|
e();
|
|
254
254
|
}
|
|
255
|
-
} catch (
|
|
256
|
-
if (
|
|
257
|
-
for (var
|
|
258
|
-
`),
|
|
259
|
-
`),
|
|
260
|
-
|
|
261
|
-
for (;
|
|
262
|
-
if (
|
|
263
|
-
if (
|
|
255
|
+
} catch (C) {
|
|
256
|
+
if (C && n && typeof C.stack == "string") {
|
|
257
|
+
for (var i = C.stack.split(`
|
|
258
|
+
`), $ = n.stack.split(`
|
|
259
|
+
`), E = i.length - 1, x = $.length - 1; E >= 1 && x >= 0 && i[E] !== $[x]; )
|
|
260
|
+
x--;
|
|
261
|
+
for (; E >= 1 && x >= 0; E--, x--)
|
|
262
|
+
if (i[E] !== $[x]) {
|
|
263
|
+
if (E !== 1 || x !== 1)
|
|
264
264
|
do
|
|
265
|
-
if (
|
|
266
|
-
var
|
|
267
|
-
` +
|
|
268
|
-
return e.displayName &&
|
|
265
|
+
if (E--, x--, x < 0 || i[E] !== $[x]) {
|
|
266
|
+
var O = `
|
|
267
|
+
` + i[E].replace(" at new ", " at ");
|
|
268
|
+
return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" && q.set(e, O), O;
|
|
269
269
|
}
|
|
270
|
-
while (
|
|
270
|
+
while (E >= 1 && x >= 0);
|
|
271
271
|
break;
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
} finally {
|
|
275
|
-
|
|
275
|
+
ee = !1, Z.current = v, Be(), Error.prepareStackTrace = l;
|
|
276
276
|
}
|
|
277
|
-
var
|
|
278
|
-
return typeof e == "function" &&
|
|
277
|
+
var L = e ? e.displayName || e.name : "", A = L ? X(L) : "";
|
|
278
|
+
return typeof e == "function" && q.set(e, A), A;
|
|
279
279
|
}
|
|
280
280
|
function qe(e, r, t) {
|
|
281
|
-
return
|
|
281
|
+
return he(e, !1);
|
|
282
282
|
}
|
|
283
283
|
function Je(e) {
|
|
284
284
|
var r = e.prototype;
|
|
285
285
|
return !!(r && r.isReactComponent);
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function J(e, r, t) {
|
|
288
288
|
if (e == null)
|
|
289
289
|
return "";
|
|
290
290
|
if (typeof e == "function")
|
|
291
|
-
return
|
|
291
|
+
return he(e, Je(e));
|
|
292
292
|
if (typeof e == "string")
|
|
293
|
-
return
|
|
293
|
+
return X(e);
|
|
294
294
|
switch (e) {
|
|
295
|
-
case
|
|
296
|
-
return
|
|
297
|
-
case
|
|
298
|
-
return
|
|
295
|
+
case S:
|
|
296
|
+
return X("Suspense");
|
|
297
|
+
case f:
|
|
298
|
+
return X("SuspenseList");
|
|
299
299
|
}
|
|
300
300
|
if (typeof e == "object")
|
|
301
301
|
switch (e.$$typeof) {
|
|
302
|
-
case
|
|
302
|
+
case o:
|
|
303
303
|
return qe(e.render);
|
|
304
|
-
case
|
|
305
|
-
return
|
|
306
|
-
case
|
|
307
|
-
var n = e,
|
|
304
|
+
case R:
|
|
305
|
+
return J(e.type, r, t);
|
|
306
|
+
case c: {
|
|
307
|
+
var n = e, l = n._payload, v = n._init;
|
|
308
308
|
try {
|
|
309
|
-
return
|
|
309
|
+
return J(v(l), r, t);
|
|
310
310
|
} catch {
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
return "";
|
|
315
315
|
}
|
|
316
|
-
var
|
|
317
|
-
function
|
|
316
|
+
var V = Object.prototype.hasOwnProperty, be = {}, Re = j.ReactDebugCurrentFrame;
|
|
317
|
+
function G(e) {
|
|
318
318
|
if (e) {
|
|
319
|
-
var r = e._owner, t =
|
|
320
|
-
|
|
319
|
+
var r = e._owner, t = J(e.type, e._source, r ? r.type : null);
|
|
320
|
+
Re.setExtraStackFrame(t);
|
|
321
321
|
} else
|
|
322
|
-
|
|
322
|
+
Re.setExtraStackFrame(null);
|
|
323
323
|
}
|
|
324
|
-
function
|
|
324
|
+
function Ge(e, r, t, n, l) {
|
|
325
325
|
{
|
|
326
|
-
var
|
|
327
|
-
for (var
|
|
328
|
-
if (
|
|
329
|
-
var
|
|
326
|
+
var v = Function.call.bind(V);
|
|
327
|
+
for (var s in e)
|
|
328
|
+
if (v(e, s)) {
|
|
329
|
+
var i = void 0;
|
|
330
330
|
try {
|
|
331
|
-
if (typeof e[
|
|
332
|
-
var
|
|
333
|
-
throw
|
|
331
|
+
if (typeof e[s] != "function") {
|
|
332
|
+
var $ = Error((n || "React class") + ": " + t + " type `" + s + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[s] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
333
|
+
throw $.name = "Invariant Violation", $;
|
|
334
334
|
}
|
|
335
|
-
|
|
336
|
-
} catch (
|
|
337
|
-
|
|
335
|
+
i = e[s](r, s, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
336
|
+
} catch (E) {
|
|
337
|
+
i = E;
|
|
338
338
|
}
|
|
339
|
-
|
|
339
|
+
i && !(i instanceof Error) && (G(l), w("%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).", n || "React class", t, s, typeof i), G(null)), i instanceof Error && !(i.message in be) && (be[i.message] = !0, G(l), w("Failed %s type: %s", t, i.message), G(null));
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
var Ke = Array.isArray;
|
|
344
|
-
function
|
|
344
|
+
function re(e) {
|
|
345
345
|
return Ke(e);
|
|
346
346
|
}
|
|
347
|
-
function
|
|
347
|
+
function ze(e) {
|
|
348
348
|
{
|
|
349
349
|
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
350
350
|
return t;
|
|
@@ -352,26 +352,26 @@ function yr() {
|
|
|
352
352
|
}
|
|
353
353
|
function He(e) {
|
|
354
354
|
try {
|
|
355
|
-
return
|
|
355
|
+
return Ee(e), !1;
|
|
356
356
|
} catch {
|
|
357
357
|
return !0;
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function Ee(e) {
|
|
361
361
|
return "" + e;
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function _e(e) {
|
|
364
364
|
if (He(e))
|
|
365
|
-
return
|
|
365
|
+
return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ze(e)), Ee(e);
|
|
366
366
|
}
|
|
367
|
-
var
|
|
367
|
+
var we = j.ReactCurrentOwner, Ze = {
|
|
368
368
|
key: !0,
|
|
369
369
|
ref: !0,
|
|
370
370
|
__self: !0,
|
|
371
371
|
__source: !0
|
|
372
|
-
},
|
|
372
|
+
}, xe, Se;
|
|
373
373
|
function Qe(e) {
|
|
374
|
-
if (
|
|
374
|
+
if (V.call(e, "ref")) {
|
|
375
375
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
376
376
|
if (r && r.isReactWarning)
|
|
377
377
|
return !1;
|
|
@@ -379,7 +379,7 @@ function yr() {
|
|
|
379
379
|
return e.ref !== void 0;
|
|
380
380
|
}
|
|
381
381
|
function er(e) {
|
|
382
|
-
if (
|
|
382
|
+
if (V.call(e, "key")) {
|
|
383
383
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
384
384
|
if (r && r.isReactWarning)
|
|
385
385
|
return !1;
|
|
@@ -387,12 +387,12 @@ function yr() {
|
|
|
387
387
|
return e.key !== void 0;
|
|
388
388
|
}
|
|
389
389
|
function rr(e, r) {
|
|
390
|
-
typeof e.ref == "string" &&
|
|
390
|
+
typeof e.ref == "string" && we.current;
|
|
391
391
|
}
|
|
392
392
|
function tr(e, r) {
|
|
393
393
|
{
|
|
394
394
|
var t = function() {
|
|
395
|
-
|
|
395
|
+
xe || (xe = !0, w("%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)", r));
|
|
396
396
|
};
|
|
397
397
|
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
398
398
|
get: t,
|
|
@@ -403,7 +403,7 @@ function yr() {
|
|
|
403
403
|
function nr(e, r) {
|
|
404
404
|
{
|
|
405
405
|
var t = function() {
|
|
406
|
-
|
|
406
|
+
Se || (Se = !0, w("%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)", r));
|
|
407
407
|
};
|
|
408
408
|
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
409
409
|
get: t,
|
|
@@ -411,70 +411,70 @@ function yr() {
|
|
|
411
411
|
});
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
var ar = function(e, r, t, n,
|
|
415
|
-
var
|
|
414
|
+
var ar = function(e, r, t, n, l, v, s) {
|
|
415
|
+
var i = {
|
|
416
416
|
// This tag allows us to uniquely identify this as a React Element
|
|
417
|
-
$$typeof:
|
|
417
|
+
$$typeof: a,
|
|
418
418
|
// Built-in properties that belong on the element
|
|
419
419
|
type: e,
|
|
420
420
|
key: r,
|
|
421
421
|
ref: t,
|
|
422
|
-
props:
|
|
422
|
+
props: s,
|
|
423
423
|
// Record the component responsible for creating this element.
|
|
424
|
-
_owner:
|
|
424
|
+
_owner: v
|
|
425
425
|
};
|
|
426
|
-
return
|
|
426
|
+
return i._store = {}, Object.defineProperty(i._store, "validated", {
|
|
427
427
|
configurable: !1,
|
|
428
428
|
enumerable: !1,
|
|
429
429
|
writable: !0,
|
|
430
430
|
value: !1
|
|
431
|
-
}), Object.defineProperty(
|
|
431
|
+
}), Object.defineProperty(i, "_self", {
|
|
432
432
|
configurable: !1,
|
|
433
433
|
enumerable: !1,
|
|
434
434
|
writable: !1,
|
|
435
435
|
value: n
|
|
436
|
-
}), Object.defineProperty(
|
|
436
|
+
}), Object.defineProperty(i, "_source", {
|
|
437
437
|
configurable: !1,
|
|
438
438
|
enumerable: !1,
|
|
439
439
|
writable: !1,
|
|
440
|
-
value:
|
|
441
|
-
}), Object.freeze && (Object.freeze(
|
|
440
|
+
value: l
|
|
441
|
+
}), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
|
|
442
442
|
};
|
|
443
|
-
function
|
|
443
|
+
function ir(e, r, t, n, l) {
|
|
444
444
|
{
|
|
445
|
-
var
|
|
446
|
-
t !== void 0 && (
|
|
447
|
-
for (
|
|
448
|
-
|
|
445
|
+
var v, s = {}, i = null, $ = null;
|
|
446
|
+
t !== void 0 && (_e(t), i = "" + t), er(r) && (_e(r.key), i = "" + r.key), Qe(r) && ($ = r.ref, rr(r, l));
|
|
447
|
+
for (v in r)
|
|
448
|
+
V.call(r, v) && !Ze.hasOwnProperty(v) && (s[v] = r[v]);
|
|
449
449
|
if (e && e.defaultProps) {
|
|
450
|
-
var
|
|
451
|
-
for (
|
|
452
|
-
|
|
450
|
+
var E = e.defaultProps;
|
|
451
|
+
for (v in E)
|
|
452
|
+
s[v] === void 0 && (s[v] = E[v]);
|
|
453
453
|
}
|
|
454
|
-
if (
|
|
455
|
-
var
|
|
456
|
-
|
|
454
|
+
if (i || $) {
|
|
455
|
+
var x = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
456
|
+
i && tr(s, x), $ && nr(s, x);
|
|
457
457
|
}
|
|
458
|
-
return ar(e,
|
|
458
|
+
return ar(e, i, $, l, n, we.current, s);
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
|
-
var
|
|
462
|
-
function
|
|
461
|
+
var te = j.ReactCurrentOwner, Te = j.ReactDebugCurrentFrame;
|
|
462
|
+
function M(e) {
|
|
463
463
|
if (e) {
|
|
464
|
-
var r = e._owner, t =
|
|
465
|
-
|
|
464
|
+
var r = e._owner, t = J(e.type, e._source, r ? r.type : null);
|
|
465
|
+
Te.setExtraStackFrame(t);
|
|
466
466
|
} else
|
|
467
|
-
|
|
467
|
+
Te.setExtraStackFrame(null);
|
|
468
468
|
}
|
|
469
|
-
var
|
|
470
|
-
|
|
471
|
-
function
|
|
472
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
469
|
+
var ne;
|
|
470
|
+
ne = !1;
|
|
471
|
+
function ae(e) {
|
|
472
|
+
return typeof e == "object" && e !== null && e.$$typeof === a;
|
|
473
473
|
}
|
|
474
|
-
function
|
|
474
|
+
function $e() {
|
|
475
475
|
{
|
|
476
|
-
if (
|
|
477
|
-
var e =
|
|
476
|
+
if (te.current) {
|
|
477
|
+
var e = D(te.current.type);
|
|
478
478
|
if (e)
|
|
479
479
|
return `
|
|
480
480
|
|
|
@@ -483,13 +483,13 @@ Check the render method of \`` + e + "`.";
|
|
|
483
483
|
return "";
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
|
-
function
|
|
486
|
+
function or(e) {
|
|
487
487
|
return "";
|
|
488
488
|
}
|
|
489
|
-
var
|
|
489
|
+
var Ce = {};
|
|
490
490
|
function sr(e) {
|
|
491
491
|
{
|
|
492
|
-
var r =
|
|
492
|
+
var r = $e();
|
|
493
493
|
if (!r) {
|
|
494
494
|
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
495
495
|
t && (r = `
|
|
@@ -499,35 +499,35 @@ Check the top-level render call using <` + t + ">.");
|
|
|
499
499
|
return r;
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function Oe(e, r) {
|
|
503
503
|
{
|
|
504
504
|
if (!e._store || e._store.validated || e.key != null)
|
|
505
505
|
return;
|
|
506
506
|
e._store.validated = !0;
|
|
507
507
|
var t = sr(r);
|
|
508
|
-
if (
|
|
508
|
+
if (Ce[t])
|
|
509
509
|
return;
|
|
510
|
-
|
|
510
|
+
Ce[t] = !0;
|
|
511
511
|
var n = "";
|
|
512
|
-
e && e._owner && e._owner !==
|
|
512
|
+
e && e._owner && e._owner !== te.current && (n = " It was passed a child from " + D(e._owner.type) + "."), M(e), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), M(null);
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function je(e, r) {
|
|
516
516
|
{
|
|
517
517
|
if (typeof e != "object")
|
|
518
518
|
return;
|
|
519
|
-
if (
|
|
519
|
+
if (re(e))
|
|
520
520
|
for (var t = 0; t < e.length; t++) {
|
|
521
521
|
var n = e[t];
|
|
522
|
-
|
|
522
|
+
ae(n) && Oe(n, r);
|
|
523
523
|
}
|
|
524
|
-
else if (
|
|
524
|
+
else if (ae(e))
|
|
525
525
|
e._store && (e._store.validated = !0);
|
|
526
526
|
else if (e) {
|
|
527
|
-
var
|
|
528
|
-
if (typeof
|
|
529
|
-
for (var
|
|
530
|
-
|
|
527
|
+
var l = F(e);
|
|
528
|
+
if (typeof l == "function" && l !== e.entries)
|
|
529
|
+
for (var v = l.call(e), s; !(s = v.next()).done; )
|
|
530
|
+
ae(s.value) && Oe(s.value, r);
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
533
|
}
|
|
@@ -539,21 +539,21 @@ Check the top-level render call using <` + t + ">.");
|
|
|
539
539
|
var t;
|
|
540
540
|
if (typeof r == "function")
|
|
541
541
|
t = r.propTypes;
|
|
542
|
-
else if (typeof r == "object" && (r.$$typeof ===
|
|
542
|
+
else if (typeof r == "object" && (r.$$typeof === o || // Note: Memo only checks outer props here.
|
|
543
543
|
// Inner props are checked in the reconciler.
|
|
544
|
-
r.$$typeof ===
|
|
544
|
+
r.$$typeof === R))
|
|
545
545
|
t = r.propTypes;
|
|
546
546
|
else
|
|
547
547
|
return;
|
|
548
548
|
if (t) {
|
|
549
|
-
var n =
|
|
550
|
-
|
|
551
|
-
} else if (r.PropTypes !== void 0 && !
|
|
552
|
-
|
|
553
|
-
var
|
|
554
|
-
|
|
549
|
+
var n = D(r);
|
|
550
|
+
Ge(t, e.props, "prop", n, e);
|
|
551
|
+
} else if (r.PropTypes !== void 0 && !ne) {
|
|
552
|
+
ne = !0;
|
|
553
|
+
var l = D(r);
|
|
554
|
+
w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", l || "Unknown");
|
|
555
555
|
}
|
|
556
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved &&
|
|
556
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
559
|
function cr(e) {
|
|
@@ -561,157 +561,157 @@ Check the top-level render call using <` + t + ">.");
|
|
|
561
561
|
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
562
562
|
var n = r[t];
|
|
563
563
|
if (n !== "children" && n !== "key") {
|
|
564
|
-
|
|
564
|
+
M(e), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), M(null);
|
|
565
565
|
break;
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
|
-
e.ref !== null && (
|
|
568
|
+
e.ref !== null && (M(e), w("Invalid attribute `ref` supplied to `React.Fragment`."), M(null));
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
|
-
var
|
|
572
|
-
function
|
|
571
|
+
var Pe = {};
|
|
572
|
+
function ke(e, r, t, n, l, v) {
|
|
573
573
|
{
|
|
574
|
-
var
|
|
575
|
-
if (!
|
|
576
|
-
var
|
|
577
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
578
|
-
var
|
|
579
|
-
|
|
580
|
-
var
|
|
581
|
-
e === null ?
|
|
574
|
+
var s = Ve(e);
|
|
575
|
+
if (!s) {
|
|
576
|
+
var i = "";
|
|
577
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (i += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
578
|
+
var $ = or();
|
|
579
|
+
$ ? i += $ : i += $e();
|
|
580
|
+
var E;
|
|
581
|
+
e === null ? E = "null" : re(e) ? E = "array" : e !== void 0 && e.$$typeof === a ? (E = "<" + (D(e.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : E = typeof e, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", E, i);
|
|
582
582
|
}
|
|
583
|
-
var
|
|
584
|
-
if (
|
|
585
|
-
return
|
|
586
|
-
if (
|
|
587
|
-
var
|
|
588
|
-
if (
|
|
583
|
+
var x = ir(e, r, t, l, v);
|
|
584
|
+
if (x == null)
|
|
585
|
+
return x;
|
|
586
|
+
if (s) {
|
|
587
|
+
var O = r.children;
|
|
588
|
+
if (O !== void 0)
|
|
589
589
|
if (n)
|
|
590
|
-
if (
|
|
591
|
-
for (var
|
|
592
|
-
|
|
593
|
-
Object.freeze && Object.freeze(
|
|
590
|
+
if (re(O)) {
|
|
591
|
+
for (var L = 0; L < O.length; L++)
|
|
592
|
+
je(O[L], e);
|
|
593
|
+
Object.freeze && Object.freeze(O);
|
|
594
594
|
} else
|
|
595
|
-
|
|
595
|
+
w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
596
596
|
else
|
|
597
|
-
|
|
597
|
+
je(O, e);
|
|
598
598
|
}
|
|
599
|
-
if (
|
|
600
|
-
var
|
|
601
|
-
return
|
|
602
|
-
}),
|
|
603
|
-
if (!
|
|
604
|
-
var pr =
|
|
605
|
-
|
|
599
|
+
if (V.call(r, "key")) {
|
|
600
|
+
var A = D(e), C = Object.keys(r).filter(function(gr) {
|
|
601
|
+
return gr !== "key";
|
|
602
|
+
}), ie = C.length > 0 ? "{key: someKey, " + C.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
603
|
+
if (!Pe[A + ie]) {
|
|
604
|
+
var pr = C.length > 0 ? "{" + C.join(": ..., ") + ": ...}" : "{}";
|
|
605
|
+
w(`A props object containing a "key" prop is being spread into JSX:
|
|
606
606
|
let props = %s;
|
|
607
607
|
<%s {...props} />
|
|
608
608
|
React keys must be passed directly to JSX without using spread:
|
|
609
609
|
let props = %s;
|
|
610
|
-
<%s key={someKey} {...props} />`,
|
|
610
|
+
<%s key={someKey} {...props} />`, ie, A, pr, A), Pe[A + ie] = !0;
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
|
-
return e ===
|
|
613
|
+
return e === u ? cr(x) : ur(x), x;
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
616
|
function lr(e, r, t) {
|
|
617
|
-
return
|
|
617
|
+
return ke(e, r, t, !0);
|
|
618
618
|
}
|
|
619
619
|
function fr(e, r, t) {
|
|
620
|
-
return
|
|
620
|
+
return ke(e, r, t, !1);
|
|
621
621
|
}
|
|
622
622
|
var dr = fr, vr = lr;
|
|
623
|
-
|
|
624
|
-
})()),
|
|
623
|
+
U.Fragment = u, U.jsx = dr, U.jsxs = vr;
|
|
624
|
+
})()), U;
|
|
625
625
|
}
|
|
626
|
-
var
|
|
627
|
-
function
|
|
628
|
-
return
|
|
626
|
+
var Ie;
|
|
627
|
+
function br() {
|
|
628
|
+
return Ie || (Ie = 1, process.env.NODE_ENV === "production" ? K.exports = mr() : K.exports = hr()), K.exports;
|
|
629
629
|
}
|
|
630
|
-
var
|
|
631
|
-
function
|
|
632
|
-
children:
|
|
633
|
-
strength:
|
|
630
|
+
var P = br();
|
|
631
|
+
function wr({
|
|
632
|
+
children: y,
|
|
633
|
+
strength: a = 0.3,
|
|
634
634
|
speed: d = 0.25,
|
|
635
|
-
scale:
|
|
636
|
-
className:
|
|
635
|
+
scale: u = 1,
|
|
636
|
+
className: g = ""
|
|
637
637
|
}) {
|
|
638
|
-
const
|
|
639
|
-
const
|
|
640
|
-
if (!
|
|
641
|
-
const
|
|
642
|
-
|
|
643
|
-
translate(${
|
|
644
|
-
scale(${
|
|
638
|
+
const p = Y(null), b = (o) => {
|
|
639
|
+
const S = p.current;
|
|
640
|
+
if (!S) return;
|
|
641
|
+
const f = S.getBoundingClientRect(), R = o.clientX - (f.left + f.width / 2), c = o.clientY - (f.top + f.height / 2);
|
|
642
|
+
S.style.transform = `
|
|
643
|
+
translate(${R * a}px, ${c * a}px)
|
|
644
|
+
scale(${u})
|
|
645
645
|
`;
|
|
646
|
-
},
|
|
647
|
-
const
|
|
648
|
-
|
|
646
|
+
}, m = () => {
|
|
647
|
+
const o = p.current;
|
|
648
|
+
o && (o.style.transform = "translate(0, 0) scale(1)");
|
|
649
649
|
};
|
|
650
|
-
return /* @__PURE__ */
|
|
650
|
+
return /* @__PURE__ */ P.jsx(
|
|
651
651
|
"div",
|
|
652
652
|
{
|
|
653
|
-
ref:
|
|
654
|
-
className:
|
|
655
|
-
onMouseMove:
|
|
656
|
-
onMouseLeave:
|
|
653
|
+
ref: p,
|
|
654
|
+
className: g,
|
|
655
|
+
onMouseMove: b,
|
|
656
|
+
onMouseLeave: m,
|
|
657
657
|
style: {
|
|
658
658
|
display: "inline-block",
|
|
659
659
|
transition: `transform ${d}s ease-out`,
|
|
660
660
|
willChange: "transform"
|
|
661
661
|
},
|
|
662
|
-
children:
|
|
662
|
+
children: y
|
|
663
663
|
}
|
|
664
664
|
);
|
|
665
665
|
}
|
|
666
|
-
function
|
|
667
|
-
const [
|
|
668
|
-
return
|
|
666
|
+
function se() {
|
|
667
|
+
const [y, a] = Ye(!1);
|
|
668
|
+
return oe(() => {
|
|
669
669
|
if (typeof window > "u" || !window.matchMedia) return;
|
|
670
670
|
const d = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
671
|
-
|
|
672
|
-
const
|
|
673
|
-
return d.addEventListener("change",
|
|
674
|
-
}, []),
|
|
671
|
+
a(d.matches);
|
|
672
|
+
const u = (g) => a(g.matches);
|
|
673
|
+
return d.addEventListener("change", u), () => d.removeEventListener("change", u);
|
|
674
|
+
}, []), y;
|
|
675
675
|
}
|
|
676
|
-
function
|
|
677
|
-
children:
|
|
678
|
-
tilt:
|
|
676
|
+
function xr({
|
|
677
|
+
children: y,
|
|
678
|
+
tilt: a = 15,
|
|
679
679
|
scale: d = 1.03,
|
|
680
|
-
glare:
|
|
681
|
-
perspective:
|
|
682
|
-
className:
|
|
683
|
-
style:
|
|
680
|
+
glare: u = !0,
|
|
681
|
+
perspective: g = 1e3,
|
|
682
|
+
className: p = "",
|
|
683
|
+
style: b
|
|
684
684
|
}) {
|
|
685
|
-
const
|
|
686
|
-
const
|
|
687
|
-
if (!
|
|
688
|
-
const
|
|
689
|
-
|
|
690
|
-
const
|
|
691
|
-
|
|
692
|
-
},
|
|
693
|
-
const
|
|
694
|
-
|
|
685
|
+
const m = Y(null), o = Y(null), S = se(), f = (c) => {
|
|
686
|
+
const T = m.current;
|
|
687
|
+
if (!T || S) return;
|
|
688
|
+
const h = T.getBoundingClientRect(), _ = (c.clientX - h.left) / h.width, F = (c.clientY - h.top) / h.height, j = (_ - 0.5) * 2 * a, w = (0.5 - F) * 2 * a;
|
|
689
|
+
T.style.transition = "transform 0.08s linear", T.style.transform = `perspective(${g}px) rotateX(${w}deg) rotateY(${j}deg) scale(${d})`;
|
|
690
|
+
const k = o.current;
|
|
691
|
+
k && (k.style.opacity = "1", k.style.background = `radial-gradient(circle at ${_ * 100}% ${F * 100}%, rgba(255,255,255,0.35), transparent 55%)`);
|
|
692
|
+
}, R = () => {
|
|
693
|
+
const c = m.current;
|
|
694
|
+
c && (c.style.transition = "transform 0.4s ease-out", c.style.transform = `perspective(${g}px) rotateX(0deg) rotateY(0deg) scale(1)`, o.current && (o.current.style.opacity = "0"));
|
|
695
695
|
};
|
|
696
|
-
return /* @__PURE__ */
|
|
696
|
+
return /* @__PURE__ */ P.jsxs(
|
|
697
697
|
"div",
|
|
698
698
|
{
|
|
699
|
-
ref:
|
|
700
|
-
className:
|
|
701
|
-
onMouseMove:
|
|
702
|
-
onMouseLeave:
|
|
699
|
+
ref: m,
|
|
700
|
+
className: p,
|
|
701
|
+
onMouseMove: f,
|
|
702
|
+
onMouseLeave: R,
|
|
703
703
|
style: {
|
|
704
704
|
position: "relative",
|
|
705
705
|
transformStyle: "preserve-3d",
|
|
706
706
|
willChange: "transform",
|
|
707
|
-
...
|
|
707
|
+
...b
|
|
708
708
|
},
|
|
709
709
|
children: [
|
|
710
|
-
|
|
711
|
-
|
|
710
|
+
y,
|
|
711
|
+
u && /* @__PURE__ */ P.jsx(
|
|
712
712
|
"div",
|
|
713
713
|
{
|
|
714
|
-
ref:
|
|
714
|
+
ref: o,
|
|
715
715
|
"aria-hidden": "true",
|
|
716
716
|
style: {
|
|
717
717
|
position: "absolute",
|
|
@@ -727,40 +727,119 @@ function _r({
|
|
|
727
727
|
}
|
|
728
728
|
);
|
|
729
729
|
}
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
730
|
+
const Rr = {
|
|
731
|
+
radial: { opacity: 1, blurScale: 1, gradient: "radial" },
|
|
732
|
+
glow: { opacity: 0.9, blurScale: 1.5, gradient: "radial" },
|
|
733
|
+
soft: { opacity: 0.7, blurScale: 2, gradient: "radial" },
|
|
734
|
+
sharp: { opacity: 1, blurScale: 0.3, gradient: "radial" },
|
|
735
|
+
neon: { opacity: 1, blurScale: 1.2, gradient: "radial" }
|
|
736
|
+
};
|
|
737
|
+
function Sr({
|
|
738
|
+
children: y,
|
|
739
|
+
size: a = 320,
|
|
740
|
+
intensity: d = 0.85,
|
|
741
|
+
color: u = "#ffffff",
|
|
742
|
+
blur: g = 60,
|
|
743
|
+
mode: p = "radial",
|
|
744
|
+
enabled: b = !0,
|
|
745
|
+
className: m = "",
|
|
746
|
+
style: o
|
|
747
|
+
}) {
|
|
748
|
+
const S = Y(null), f = Y(null), R = Y(!1), c = Rr[p], T = yr(
|
|
749
|
+
(h, _) => (a / 2 * c.blurScale, g * c.blurScale, p === "neon" ? `radial-gradient(${a * c.blurScale}px circle at ${h}px ${_}px,
|
|
750
|
+
${u}33 0%,
|
|
751
|
+
${u}22 25%,
|
|
752
|
+
${u}11 50%,
|
|
753
|
+
transparent 75%)` : p === "sharp" ? `radial-gradient(${a * 0.4}px circle at ${h}px ${_}px,
|
|
754
|
+
${u}dd 0%,
|
|
755
|
+
${u}99 30%,
|
|
756
|
+
transparent 100%)` : `radial-gradient(${a * c.blurScale}px circle at ${h}px ${_}px,
|
|
757
|
+
${u}${Math.round(d * 255).toString(16).padStart(2, "0")} 0%,
|
|
758
|
+
${u}${Math.round(d * 0.5 * 255).toString(16).padStart(2, "0")} 40%,
|
|
759
|
+
transparent 100%)`),
|
|
760
|
+
[a, d, u, g, p, c]
|
|
761
|
+
);
|
|
762
|
+
return oe(() => {
|
|
763
|
+
if (!b) return;
|
|
764
|
+
const h = S.current, _ = f.current;
|
|
765
|
+
if (!h || !_) return;
|
|
766
|
+
const F = (k) => {
|
|
767
|
+
const B = h.getBoundingClientRect(), z = k.clientX - B.left, H = k.clientY - B.top;
|
|
768
|
+
_.style.background = T(z, H), _.style.opacity = String(c.opacity);
|
|
769
|
+
}, j = () => {
|
|
770
|
+
R.current = !0, _.style.transition = "opacity 300ms ease", _.style.opacity = String(c.opacity);
|
|
771
|
+
}, w = () => {
|
|
772
|
+
R.current = !1, _.style.transition = "opacity 600ms ease", _.style.opacity = "0";
|
|
773
|
+
};
|
|
774
|
+
return h.addEventListener("mousemove", F), h.addEventListener("mouseenter", j), h.addEventListener("mouseleave", w), () => {
|
|
775
|
+
h.removeEventListener("mousemove", F), h.removeEventListener("mouseenter", j), h.removeEventListener("mouseleave", w);
|
|
776
|
+
};
|
|
777
|
+
}, [b, T, c]), /* @__PURE__ */ P.jsxs(
|
|
778
|
+
"div",
|
|
779
|
+
{
|
|
780
|
+
ref: S,
|
|
781
|
+
className: `motioncss-spotlight ${m}`,
|
|
782
|
+
style: {
|
|
783
|
+
position: "relative",
|
|
784
|
+
overflow: "hidden",
|
|
785
|
+
...o
|
|
786
|
+
},
|
|
787
|
+
children: [
|
|
788
|
+
y,
|
|
789
|
+
/* @__PURE__ */ P.jsx(
|
|
790
|
+
"div",
|
|
791
|
+
{
|
|
792
|
+
ref: f,
|
|
793
|
+
"aria-hidden": "true",
|
|
794
|
+
style: {
|
|
795
|
+
position: "absolute",
|
|
796
|
+
inset: 0,
|
|
797
|
+
pointerEvents: "none",
|
|
798
|
+
opacity: 0,
|
|
799
|
+
zIndex: 10,
|
|
800
|
+
filter: g > 0 ? `blur(${g * 0.15}px)` : void 0,
|
|
801
|
+
mixBlendMode: p === "neon" ? "screen" : "normal"
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
)
|
|
805
|
+
]
|
|
806
|
+
}
|
|
807
|
+
);
|
|
808
|
+
}
|
|
809
|
+
function Me({
|
|
810
|
+
threshold: y = 0.2,
|
|
811
|
+
rootMargin: a = "0px",
|
|
733
812
|
once: d = !0
|
|
734
813
|
} = {}) {
|
|
735
|
-
const
|
|
736
|
-
return
|
|
737
|
-
const
|
|
738
|
-
if (!
|
|
814
|
+
const u = Y(null), [g, p] = Ye(!1);
|
|
815
|
+
return oe(() => {
|
|
816
|
+
const b = u.current;
|
|
817
|
+
if (!b) return;
|
|
739
818
|
if (typeof IntersectionObserver > "u") {
|
|
740
|
-
|
|
819
|
+
p(!0);
|
|
741
820
|
return;
|
|
742
821
|
}
|
|
743
|
-
const
|
|
744
|
-
([
|
|
745
|
-
|
|
822
|
+
const m = new IntersectionObserver(
|
|
823
|
+
([o]) => {
|
|
824
|
+
o.isIntersecting ? (p(!0), d && m.disconnect()) : d || p(!1);
|
|
746
825
|
},
|
|
747
|
-
{ threshold:
|
|
826
|
+
{ threshold: y, rootMargin: a }
|
|
748
827
|
);
|
|
749
|
-
return
|
|
750
|
-
}, [
|
|
828
|
+
return m.observe(b), () => m.disconnect();
|
|
829
|
+
}, [y, a, d]), { ref: u, inView: g };
|
|
751
830
|
}
|
|
752
|
-
function
|
|
753
|
-
children:
|
|
754
|
-
stagger:
|
|
831
|
+
function Tr({
|
|
832
|
+
children: y,
|
|
833
|
+
stagger: a = 70,
|
|
755
834
|
duration: d = 700,
|
|
756
|
-
delay:
|
|
757
|
-
once:
|
|
758
|
-
as:
|
|
759
|
-
className:
|
|
760
|
-
style:
|
|
835
|
+
delay: u = 0,
|
|
836
|
+
once: g = !0,
|
|
837
|
+
as: p = "div",
|
|
838
|
+
className: b = "",
|
|
839
|
+
style: m
|
|
761
840
|
}) {
|
|
762
|
-
const { ref:
|
|
763
|
-
return /* @__PURE__ */
|
|
841
|
+
const { ref: o, inView: S } = Me({ once: g }), f = se(), R = p, c = y.split(/\s+/).filter(Boolean), T = S || f;
|
|
842
|
+
return /* @__PURE__ */ P.jsx(R, { ref: o, className: b, style: m, "aria-label": y, children: c.map((h, _) => /* @__PURE__ */ P.jsx(
|
|
764
843
|
"span",
|
|
765
844
|
{
|
|
766
845
|
"aria-hidden": "true",
|
|
@@ -771,92 +850,93 @@ function wr({
|
|
|
771
850
|
paddingBottom: "0.15em",
|
|
772
851
|
marginRight: "0.25em"
|
|
773
852
|
},
|
|
774
|
-
children: /* @__PURE__ */
|
|
853
|
+
children: /* @__PURE__ */ P.jsx(
|
|
775
854
|
"span",
|
|
776
855
|
{
|
|
777
856
|
style: {
|
|
778
857
|
display: "inline-block",
|
|
779
|
-
transform:
|
|
780
|
-
opacity:
|
|
781
|
-
transition:
|
|
858
|
+
transform: T ? "translateY(0)" : "translateY(110%)",
|
|
859
|
+
opacity: T ? 1 : 0,
|
|
860
|
+
transition: f ? "none" : `transform ${d}ms cubic-bezier(0.22, 1, 0.36, 1) ${u + _ * a}ms, opacity ${d}ms ease ${u + _ * a}ms`
|
|
782
861
|
},
|
|
783
|
-
children:
|
|
862
|
+
children: h
|
|
784
863
|
}
|
|
785
864
|
)
|
|
786
865
|
},
|
|
787
|
-
|
|
866
|
+
_
|
|
788
867
|
)) });
|
|
789
868
|
}
|
|
790
|
-
function
|
|
791
|
-
switch (
|
|
869
|
+
function Er(y, a) {
|
|
870
|
+
switch (y) {
|
|
792
871
|
case "fade-up":
|
|
793
|
-
return `translateY(${
|
|
872
|
+
return `translateY(${a}px)`;
|
|
794
873
|
case "fade-down":
|
|
795
|
-
return `translateY(${-
|
|
874
|
+
return `translateY(${-a}px)`;
|
|
796
875
|
case "fade-left":
|
|
797
|
-
return `translateX(${
|
|
876
|
+
return `translateX(${a}px)`;
|
|
798
877
|
case "fade-right":
|
|
799
|
-
return `translateX(${-
|
|
878
|
+
return `translateX(${-a}px)`;
|
|
800
879
|
case "zoom":
|
|
801
880
|
return "scale(0.92)";
|
|
802
881
|
default:
|
|
803
882
|
return "none";
|
|
804
883
|
}
|
|
805
884
|
}
|
|
806
|
-
function
|
|
807
|
-
children:
|
|
808
|
-
animation:
|
|
885
|
+
function $r({
|
|
886
|
+
children: y,
|
|
887
|
+
animation: a = "fade-up",
|
|
809
888
|
duration: d = 700,
|
|
810
|
-
delay:
|
|
811
|
-
distance:
|
|
812
|
-
threshold:
|
|
813
|
-
once:
|
|
814
|
-
className:
|
|
815
|
-
style:
|
|
889
|
+
delay: u = 0,
|
|
890
|
+
distance: g = 32,
|
|
891
|
+
threshold: p = 0.2,
|
|
892
|
+
once: b = !0,
|
|
893
|
+
className: m = "",
|
|
894
|
+
style: o
|
|
816
895
|
}) {
|
|
817
|
-
const { ref:
|
|
818
|
-
return /* @__PURE__ */
|
|
896
|
+
const { ref: S, inView: f } = Me({ threshold: p, once: b }), R = se(), c = f || R;
|
|
897
|
+
return /* @__PURE__ */ P.jsx(
|
|
819
898
|
"div",
|
|
820
899
|
{
|
|
821
|
-
ref:
|
|
822
|
-
className:
|
|
900
|
+
ref: S,
|
|
901
|
+
className: m,
|
|
823
902
|
style: {
|
|
824
|
-
opacity:
|
|
825
|
-
transform:
|
|
826
|
-
transition:
|
|
903
|
+
opacity: c ? 1 : 0,
|
|
904
|
+
transform: c ? "none" : Er(a, g),
|
|
905
|
+
transition: R ? "none" : `opacity ${d}ms ease ${u}ms, transform ${d}ms cubic-bezier(0.22, 1, 0.36, 1) ${u}ms`,
|
|
827
906
|
willChange: "opacity, transform",
|
|
828
|
-
...
|
|
907
|
+
...o
|
|
829
908
|
},
|
|
830
|
-
children:
|
|
909
|
+
children: y
|
|
831
910
|
}
|
|
832
911
|
);
|
|
833
912
|
}
|
|
834
|
-
function
|
|
835
|
-
children:
|
|
836
|
-
colors:
|
|
913
|
+
function Cr({
|
|
914
|
+
children: y,
|
|
915
|
+
colors: a = ["#6366f1", "#ec4899", "#f59e0b", "#06b6d4"],
|
|
837
916
|
angle: d = 120,
|
|
838
|
-
duration:
|
|
839
|
-
className:
|
|
840
|
-
style:
|
|
917
|
+
duration: u = 12,
|
|
918
|
+
className: g = "",
|
|
919
|
+
style: p
|
|
841
920
|
}) {
|
|
842
|
-
const
|
|
843
|
-
return /* @__PURE__ */
|
|
921
|
+
const b = [...a, a[0]].join(", ");
|
|
922
|
+
return /* @__PURE__ */ P.jsx(
|
|
844
923
|
"div",
|
|
845
924
|
{
|
|
846
|
-
className: `mcss-gradient-flow ${
|
|
925
|
+
className: `mcss-gradient-flow ${g}`.trim(),
|
|
847
926
|
style: {
|
|
848
|
-
backgroundImage: `linear-gradient(${d}deg, ${
|
|
849
|
-
animationDuration: `${
|
|
850
|
-
...
|
|
927
|
+
backgroundImage: `linear-gradient(${d}deg, ${b})`,
|
|
928
|
+
animationDuration: `${u}s`,
|
|
929
|
+
...p
|
|
851
930
|
},
|
|
852
|
-
children:
|
|
931
|
+
children: y
|
|
853
932
|
}
|
|
854
933
|
);
|
|
855
934
|
}
|
|
856
935
|
export {
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
936
|
+
Cr as GradientFlow,
|
|
937
|
+
wr as Magnetic,
|
|
938
|
+
Tr as RevealText,
|
|
939
|
+
$r as ScrollReveal,
|
|
940
|
+
Sr as Spotlight,
|
|
941
|
+
xr as TiltCard
|
|
862
942
|
};
|