react-pro-messenger 1.1.2 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +806 -786
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +8 -8
- package/dist/index.umd.js.map +1 -1
- package/dist/src/components/Message/LeftSide/LeftSide.d.ts +2 -1
- package/dist/src/components/Message/RightSide/RightSide.d.ts +2 -1
- package/dist/src/helper/renderTextWithHighlights.d.ts +2 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var ye = (e, t, n) => (
|
|
1
|
+
var _a = Object.defineProperty;
|
|
2
|
+
var Ia = (e, t, n) => t in e ? _a(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var ye = (e, t, n) => (Ia(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
4
|
import * as sr from "react";
|
|
5
|
-
import Re, { useCallback as on, createContext as mt, useRef as Se, useId as or, useContext as Ce, useInsertionEffect as ks, useMemo as tt, useEffect as He, Children as
|
|
6
|
-
import
|
|
5
|
+
import Re, { useCallback as on, createContext as mt, useRef as Se, useId as or, useContext as Ce, useInsertionEffect as ks, useMemo as tt, useEffect as He, Children as Na, isValidElement as Fa, useLayoutEffect as Ba, useState as ve, forwardRef as Nt, Fragment as _s, createElement as $a, Component as Ua } from "react";
|
|
6
|
+
import Wa from "react-dom";
|
|
7
7
|
var p = { exports: {} }, bt = {};
|
|
8
8
|
var oi;
|
|
9
|
-
function
|
|
9
|
+
function za() {
|
|
10
10
|
if (oi)
|
|
11
11
|
return bt;
|
|
12
12
|
oi = 1;
|
|
@@ -25,10 +25,10 @@ function Wa() {
|
|
|
25
25
|
}
|
|
26
26
|
var wt = {};
|
|
27
27
|
var ai;
|
|
28
|
-
function
|
|
28
|
+
function Ya() {
|
|
29
29
|
return ai || (ai = 1, process.env.NODE_ENV !== "production" && function() {
|
|
30
30
|
var e = Re, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), o = 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"), h = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), y = Symbol.iterator, v = "@@iterator";
|
|
31
|
-
function
|
|
31
|
+
function b(d) {
|
|
32
32
|
if (d === null || typeof d != "object")
|
|
33
33
|
return null;
|
|
34
34
|
var S = y && d[y] || d[v];
|
|
@@ -67,7 +67,7 @@ function za() {
|
|
|
67
67
|
function ie(d) {
|
|
68
68
|
return d.displayName || "Context";
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function W(d) {
|
|
71
71
|
if (d == null)
|
|
72
72
|
return null;
|
|
73
73
|
if (typeof d.tag == "number" && C("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof d == "function")
|
|
@@ -100,11 +100,11 @@ function za() {
|
|
|
100
100
|
return H(d, d.render, "ForwardRef");
|
|
101
101
|
case f:
|
|
102
102
|
var N = d.displayName || null;
|
|
103
|
-
return N !== null ? N :
|
|
103
|
+
return N !== null ? N : W(d.type) || "Memo";
|
|
104
104
|
case h: {
|
|
105
105
|
var X = d, ne = X._payload, G = X._init;
|
|
106
106
|
try {
|
|
107
|
-
return
|
|
107
|
+
return W(G(ne));
|
|
108
108
|
} catch {
|
|
109
109
|
return null;
|
|
110
110
|
}
|
|
@@ -112,14 +112,14 @@ function za() {
|
|
|
112
112
|
}
|
|
113
113
|
return null;
|
|
114
114
|
}
|
|
115
|
-
var se = Object.assign, pe = 0, he, q, oe, me,
|
|
115
|
+
var se = Object.assign, pe = 0, he, q, oe, me, w, T, F;
|
|
116
116
|
function B() {
|
|
117
117
|
}
|
|
118
118
|
B.__reactDisabledLog = !0;
|
|
119
119
|
function _() {
|
|
120
120
|
{
|
|
121
121
|
if (pe === 0) {
|
|
122
|
-
he = console.log, q = console.info, oe = console.warn, me = console.error,
|
|
122
|
+
he = console.log, q = console.info, oe = console.warn, me = console.error, w = console.group, T = console.groupCollapsed, F = console.groupEnd;
|
|
123
123
|
var d = {
|
|
124
124
|
configurable: !0,
|
|
125
125
|
enumerable: !0,
|
|
@@ -161,10 +161,10 @@ function za() {
|
|
|
161
161
|
value: me
|
|
162
162
|
}),
|
|
163
163
|
group: se({}, d, {
|
|
164
|
-
value:
|
|
164
|
+
value: w
|
|
165
165
|
}),
|
|
166
166
|
groupCollapsed: se({}, d, {
|
|
167
|
-
value:
|
|
167
|
+
value: T
|
|
168
168
|
}),
|
|
169
169
|
groupEnd: se({}, d, {
|
|
170
170
|
value: F
|
|
@@ -175,7 +175,7 @@ function za() {
|
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
var I = x.ReactCurrentDispatcher, $;
|
|
178
|
-
function
|
|
178
|
+
function U(d, S, A) {
|
|
179
179
|
{
|
|
180
180
|
if ($ === void 0)
|
|
181
181
|
try {
|
|
@@ -261,7 +261,7 @@ function za() {
|
|
|
261
261
|
} finally {
|
|
262
262
|
j = !1, I.current = ne, Y(), Error.prepareStackTrace = X;
|
|
263
263
|
}
|
|
264
|
-
var st = d ? d.displayName || d.name : "", si = st ?
|
|
264
|
+
var st = d ? d.displayName || d.name : "", si = st ? U(st) : "";
|
|
265
265
|
return typeof d == "function" && M.set(d, si), si;
|
|
266
266
|
}
|
|
267
267
|
function te(d, S, A) {
|
|
@@ -277,12 +277,12 @@ function za() {
|
|
|
277
277
|
if (typeof d == "function")
|
|
278
278
|
return P(d, ee(d));
|
|
279
279
|
if (typeof d == "string")
|
|
280
|
-
return
|
|
280
|
+
return U(d);
|
|
281
281
|
switch (d) {
|
|
282
282
|
case c:
|
|
283
|
-
return
|
|
283
|
+
return U("Suspense");
|
|
284
284
|
case u:
|
|
285
|
-
return
|
|
285
|
+
return U("SuspenseList");
|
|
286
286
|
}
|
|
287
287
|
if (typeof d == "object")
|
|
288
288
|
switch (d.$$typeof) {
|
|
@@ -327,17 +327,17 @@ function za() {
|
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
|
-
var
|
|
330
|
+
var ya = Array.isArray;
|
|
331
331
|
function hn(d) {
|
|
332
|
-
return
|
|
332
|
+
return ya(d);
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function va(d) {
|
|
335
335
|
{
|
|
336
336
|
var S = typeof Symbol == "function" && Symbol.toStringTag, A = S && d[Symbol.toStringTag] || d.constructor.name || "Object";
|
|
337
337
|
return A;
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
|
-
function
|
|
340
|
+
function xa(d) {
|
|
341
341
|
try {
|
|
342
342
|
return qr(d), !1;
|
|
343
343
|
} catch {
|
|
@@ -348,17 +348,17 @@ function za() {
|
|
|
348
348
|
return "" + d;
|
|
349
349
|
}
|
|
350
350
|
function Xr(d) {
|
|
351
|
-
if (
|
|
352
|
-
return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
351
|
+
if (xa(d))
|
|
352
|
+
return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", va(d)), qr(d);
|
|
353
353
|
}
|
|
354
|
-
var xt = x.ReactCurrentOwner,
|
|
354
|
+
var xt = x.ReactCurrentOwner, ba = {
|
|
355
355
|
key: !0,
|
|
356
356
|
ref: !0,
|
|
357
357
|
__self: !0,
|
|
358
358
|
__source: !0
|
|
359
359
|
}, Zr, Jr, pn;
|
|
360
360
|
pn = {};
|
|
361
|
-
function
|
|
361
|
+
function wa(d) {
|
|
362
362
|
if (be.call(d, "ref")) {
|
|
363
363
|
var S = Object.getOwnPropertyDescriptor(d, "ref").get;
|
|
364
364
|
if (S && S.isReactWarning)
|
|
@@ -366,7 +366,7 @@ function za() {
|
|
|
366
366
|
}
|
|
367
367
|
return d.ref !== void 0;
|
|
368
368
|
}
|
|
369
|
-
function
|
|
369
|
+
function Ta(d) {
|
|
370
370
|
if (be.call(d, "key")) {
|
|
371
371
|
var S = Object.getOwnPropertyDescriptor(d, "key").get;
|
|
372
372
|
if (S && S.isReactWarning)
|
|
@@ -374,13 +374,13 @@ function za() {
|
|
|
374
374
|
}
|
|
375
375
|
return d.key !== void 0;
|
|
376
376
|
}
|
|
377
|
-
function
|
|
377
|
+
function Sa(d, S) {
|
|
378
378
|
if (typeof d.ref == "string" && xt.current && S && xt.current.stateNode !== S) {
|
|
379
|
-
var A =
|
|
380
|
-
pn[A] || (C('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',
|
|
379
|
+
var A = W(xt.current.type);
|
|
380
|
+
pn[A] || (C('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', W(xt.current.type), d.ref), pn[A] = !0);
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
|
-
function
|
|
383
|
+
function Ca(d, S) {
|
|
384
384
|
{
|
|
385
385
|
var A = function() {
|
|
386
386
|
Zr || (Zr = !0, C("%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)", S));
|
|
@@ -391,7 +391,7 @@ function za() {
|
|
|
391
391
|
});
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
|
-
function
|
|
394
|
+
function Pa(d, S) {
|
|
395
395
|
{
|
|
396
396
|
var A = function() {
|
|
397
397
|
Jr || (Jr = !0, C("%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)", S));
|
|
@@ -402,7 +402,7 @@ function za() {
|
|
|
402
402
|
});
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
|
-
var
|
|
405
|
+
var Ea = function(d, S, A, N, X, ne, G) {
|
|
406
406
|
var K = {
|
|
407
407
|
$$typeof: t,
|
|
408
408
|
type: d,
|
|
@@ -428,12 +428,12 @@ function za() {
|
|
|
428
428
|
value: X
|
|
429
429
|
}), Object.freeze && (Object.freeze(K.props), Object.freeze(K)), K;
|
|
430
430
|
};
|
|
431
|
-
function
|
|
431
|
+
function ja(d, S, A, N, X) {
|
|
432
432
|
{
|
|
433
433
|
var ne, G = {}, K = null, Ee = null;
|
|
434
|
-
A !== void 0 && (Xr(A), K = "" + A),
|
|
434
|
+
A !== void 0 && (Xr(A), K = "" + A), Ta(S) && (Xr(S.key), K = "" + S.key), wa(S) && (Ee = S.ref, Sa(S, X));
|
|
435
435
|
for (ne in S)
|
|
436
|
-
be.call(S, ne) && !
|
|
436
|
+
be.call(S, ne) && !ba.hasOwnProperty(ne) && (G[ne] = S[ne]);
|
|
437
437
|
if (d && d.defaultProps) {
|
|
438
438
|
var ue = d.defaultProps;
|
|
439
439
|
for (ne in ue)
|
|
@@ -441,9 +441,9 @@ function za() {
|
|
|
441
441
|
}
|
|
442
442
|
if (K || Ee) {
|
|
443
443
|
var de = typeof d == "function" ? d.displayName || d.name || "Unknown" : d;
|
|
444
|
-
K &&
|
|
444
|
+
K && Ca(G, de), Ee && Pa(G, de);
|
|
445
445
|
}
|
|
446
|
-
return
|
|
446
|
+
return Ea(d, K, Ee, X, N, xt.current, G);
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
449
|
var mn = x.ReactCurrentOwner, Qr = x.ReactDebugCurrentFrame;
|
|
@@ -462,7 +462,7 @@ function za() {
|
|
|
462
462
|
function ei() {
|
|
463
463
|
{
|
|
464
464
|
if (mn.current) {
|
|
465
|
-
var d =
|
|
465
|
+
var d = W(mn.current.type);
|
|
466
466
|
if (d)
|
|
467
467
|
return `
|
|
468
468
|
|
|
@@ -471,7 +471,7 @@ Check the render method of \`` + d + "`.";
|
|
|
471
471
|
return "";
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
|
-
function
|
|
474
|
+
function Ra(d) {
|
|
475
475
|
{
|
|
476
476
|
if (d !== void 0) {
|
|
477
477
|
var S = d.fileName.replace(/^.*[\\\/]/, ""), A = d.lineNumber;
|
|
@@ -483,7 +483,7 @@ Check your code at ` + S + ":" + A + ".";
|
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
485
|
var ti = {};
|
|
486
|
-
function
|
|
486
|
+
function Aa(d) {
|
|
487
487
|
{
|
|
488
488
|
var S = ei();
|
|
489
489
|
if (!S) {
|
|
@@ -500,12 +500,12 @@ Check the top-level render call using <` + A + ">.");
|
|
|
500
500
|
if (!d._store || d._store.validated || d.key != null)
|
|
501
501
|
return;
|
|
502
502
|
d._store.validated = !0;
|
|
503
|
-
var A =
|
|
503
|
+
var A = Aa(S);
|
|
504
504
|
if (ti[A])
|
|
505
505
|
return;
|
|
506
506
|
ti[A] = !0;
|
|
507
507
|
var N = "";
|
|
508
|
-
d && d._owner && d._owner !== mn.current && (N = " It was passed a child from " +
|
|
508
|
+
d && d._owner && d._owner !== mn.current && (N = " It was passed a child from " + W(d._owner.type) + "."), it(d), C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', A, N), it(null);
|
|
509
509
|
}
|
|
510
510
|
}
|
|
511
511
|
function ri(d, S) {
|
|
@@ -520,14 +520,14 @@ Check the top-level render call using <` + A + ">.");
|
|
|
520
520
|
else if (yn(d))
|
|
521
521
|
d._store && (d._store.validated = !0);
|
|
522
522
|
else if (d) {
|
|
523
|
-
var X =
|
|
523
|
+
var X = b(d);
|
|
524
524
|
if (typeof X == "function" && X !== d.entries)
|
|
525
525
|
for (var ne = X.call(d), G; !(G = ne.next()).done; )
|
|
526
526
|
yn(G.value) && ni(G.value, S);
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
|
-
function
|
|
530
|
+
function Ma(d) {
|
|
531
531
|
{
|
|
532
532
|
var S = d.type;
|
|
533
533
|
if (S == null || typeof S == "string")
|
|
@@ -540,17 +540,17 @@ Check the top-level render call using <` + A + ">.");
|
|
|
540
540
|
else
|
|
541
541
|
return;
|
|
542
542
|
if (A) {
|
|
543
|
-
var N =
|
|
543
|
+
var N = W(S);
|
|
544
544
|
$e(A, d.props, "prop", N, d);
|
|
545
545
|
} else if (S.PropTypes !== void 0 && !gn) {
|
|
546
546
|
gn = !0;
|
|
547
|
-
var X =
|
|
547
|
+
var X = W(S);
|
|
548
548
|
C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", X || "Unknown");
|
|
549
549
|
}
|
|
550
550
|
typeof S.getDefaultProps == "function" && !S.getDefaultProps.isReactClassApproved && C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
|
-
function
|
|
553
|
+
function Va(d) {
|
|
554
554
|
{
|
|
555
555
|
for (var S = Object.keys(d.props), A = 0; A < S.length; A++) {
|
|
556
556
|
var N = S[A];
|
|
@@ -568,12 +568,12 @@ Check the top-level render call using <` + A + ">.");
|
|
|
568
568
|
if (!G) {
|
|
569
569
|
var K = "";
|
|
570
570
|
(d === void 0 || typeof d == "object" && d !== null && Object.keys(d).length === 0) && (K += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
571
|
-
var Ee =
|
|
571
|
+
var Ee = Ra(X);
|
|
572
572
|
Ee ? K += Ee : K += ei();
|
|
573
573
|
var ue;
|
|
574
|
-
d === null ? ue = "null" : hn(d) ? ue = "array" : d !== void 0 && d.$$typeof === t ? (ue = "<" + (
|
|
574
|
+
d === null ? ue = "null" : hn(d) ? ue = "array" : d !== void 0 && d.$$typeof === t ? (ue = "<" + (W(d.type) || "Unknown") + " />", K = " Did you accidentally export a JSX literal instead of a component?") : ue = typeof d, C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ue, K);
|
|
575
575
|
}
|
|
576
|
-
var de =
|
|
576
|
+
var de = ja(d, S, A, X, ne);
|
|
577
577
|
if (de == null)
|
|
578
578
|
return de;
|
|
579
579
|
if (G) {
|
|
@@ -589,23 +589,23 @@ Check the top-level render call using <` + A + ">.");
|
|
|
589
589
|
else
|
|
590
590
|
ri(Me, d);
|
|
591
591
|
}
|
|
592
|
-
return d === r ?
|
|
592
|
+
return d === r ? Va(de) : Ma(de), de;
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
|
-
function
|
|
595
|
+
function Da(d, S, A) {
|
|
596
596
|
return ii(d, S, A, !0);
|
|
597
597
|
}
|
|
598
|
-
function
|
|
598
|
+
function La(d, S, A) {
|
|
599
599
|
return ii(d, S, A, !1);
|
|
600
600
|
}
|
|
601
|
-
var
|
|
602
|
-
wt.Fragment = r, wt.jsx =
|
|
601
|
+
var Oa = La, ka = Da;
|
|
602
|
+
wt.Fragment = r, wt.jsx = Oa, wt.jsxs = ka;
|
|
603
603
|
}()), wt;
|
|
604
604
|
}
|
|
605
605
|
(function(e) {
|
|
606
|
-
process.env.NODE_ENV === "production" ? e.exports =
|
|
606
|
+
process.env.NODE_ENV === "production" ? e.exports = za() : e.exports = Ya();
|
|
607
607
|
})(p);
|
|
608
|
-
const
|
|
608
|
+
const ih = () => {
|
|
609
609
|
const e = on(() => {
|
|
610
610
|
console.log("Vite + React + TypeScript + Tailwind = ❤️");
|
|
611
611
|
}, []);
|
|
@@ -617,7 +617,7 @@ const nh = () => {
|
|
|
617
617
|
children: "Vite is better than Webpack"
|
|
618
618
|
}
|
|
619
619
|
);
|
|
620
|
-
},
|
|
620
|
+
}, sh = ({
|
|
621
621
|
symbol: e,
|
|
622
622
|
onClick: t,
|
|
623
623
|
item: n
|
|
@@ -686,7 +686,7 @@ const an = /* @__PURE__ */ mt(null), cr = mt({
|
|
|
686
686
|
isStatic: !1,
|
|
687
687
|
reducedMotion: "never"
|
|
688
688
|
});
|
|
689
|
-
class
|
|
689
|
+
class Ka extends sr.Component {
|
|
690
690
|
getSnapshotBeforeUpdate(t) {
|
|
691
691
|
const n = this.props.childRef.current;
|
|
692
692
|
if (n && t.isPresent && !this.props.isPresent) {
|
|
@@ -701,7 +701,7 @@ class Ya extends sr.Component {
|
|
|
701
701
|
return this.props.children;
|
|
702
702
|
}
|
|
703
703
|
}
|
|
704
|
-
function
|
|
704
|
+
function Ha({ children: e, isPresent: t, anchorX: n }) {
|
|
705
705
|
const r = or(), i = Se(null), s = Se({
|
|
706
706
|
width: 0,
|
|
707
707
|
height: 0,
|
|
@@ -727,10 +727,10 @@ function Ka({ children: e, isPresent: t, anchorX: n }) {
|
|
|
727
727
|
`), () => {
|
|
728
728
|
document.head.removeChild(m);
|
|
729
729
|
};
|
|
730
|
-
}, [t]), p.exports.jsx(
|
|
730
|
+
}, [t]), p.exports.jsx(Ka, { isPresent: t, childRef: i, sizeRef: s, children: sr.cloneElement(e, { ref: i }) });
|
|
731
731
|
}
|
|
732
|
-
const
|
|
733
|
-
const l = lr(
|
|
732
|
+
const Ga = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: s, mode: o, anchorX: a }) => {
|
|
733
|
+
const l = lr(qa), c = or(), u = on((h) => {
|
|
734
734
|
l.set(h, !0);
|
|
735
735
|
for (const m of l.values())
|
|
736
736
|
if (!m)
|
|
@@ -751,9 +751,9 @@ const Ha = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom:
|
|
|
751
751
|
l.forEach((h, m) => l.set(m, !1));
|
|
752
752
|
}, [n]), sr.useEffect(() => {
|
|
753
753
|
!n && !l.size && r && r();
|
|
754
|
-
}, [n]), o === "popLayout" && (e = p.exports.jsx(
|
|
754
|
+
}, [n]), o === "popLayout" && (e = p.exports.jsx(Ha, { isPresent: n, anchorX: a, children: e })), p.exports.jsx(an.Provider, { value: f, children: e });
|
|
755
755
|
};
|
|
756
|
-
function
|
|
756
|
+
function qa() {
|
|
757
757
|
return /* @__PURE__ */ new Map();
|
|
758
758
|
}
|
|
759
759
|
function Is(e = !0) {
|
|
@@ -771,12 +771,12 @@ function Is(e = !0) {
|
|
|
771
771
|
const zt = (e) => e.key || "";
|
|
772
772
|
function li(e) {
|
|
773
773
|
const t = [];
|
|
774
|
-
return
|
|
775
|
-
|
|
774
|
+
return Na.forEach(e, (n) => {
|
|
775
|
+
Fa(n) && t.push(n);
|
|
776
776
|
}), t;
|
|
777
777
|
}
|
|
778
|
-
const ur = typeof window < "u", Ns = ur ?
|
|
779
|
-
const [l, c] = Is(o), u = tt(() => li(e), [e]), f = o && !l ? [] : u.map(zt), h = Se(!0), m = Se(u), y = lr(() => /* @__PURE__ */ new Map()), [v,
|
|
778
|
+
const ur = typeof window < "u", Ns = ur ? Ba : He, Fs = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: s = "sync", propagate: o = !1, anchorX: a = "left" }) => {
|
|
779
|
+
const [l, c] = Is(o), u = tt(() => li(e), [e]), f = o && !l ? [] : u.map(zt), h = Se(!0), m = Se(u), y = lr(() => /* @__PURE__ */ new Map()), [v, b] = ve(u), [x, C] = ve(u);
|
|
780
780
|
Ns(() => {
|
|
781
781
|
h.current = !1, m.current = u;
|
|
782
782
|
for (let g = 0; g < x.length; g++) {
|
|
@@ -791,7 +791,7 @@ const ur = typeof window < "u", Ns = ur ? Fa : He, Fs = ({ children: e, custom:
|
|
|
791
791
|
const z = x[D], O = zt(z);
|
|
792
792
|
f.includes(O) || (g.splice(D, 0, z), E.push(z));
|
|
793
793
|
}
|
|
794
|
-
return s === "wait" && E.length && (g = E), C(li(g)),
|
|
794
|
+
return s === "wait" && E.length && (g = E), C(li(g)), b(u), null;
|
|
795
795
|
}
|
|
796
796
|
process.env.NODE_ENV !== "production" && s === "wait" && x.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.`);
|
|
797
797
|
const { forceRender: V } = Ce(ar);
|
|
@@ -806,7 +806,7 @@ const ur = typeof window < "u", Ns = ur ? Fa : He, Fs = ({ children: e, custom:
|
|
|
806
806
|
R || (Z = !1);
|
|
807
807
|
}), Z && (V == null || V(), C(m.current), o && (c == null || c()), r && r());
|
|
808
808
|
};
|
|
809
|
-
return p.exports.jsx(
|
|
809
|
+
return p.exports.jsx(Ga, { isPresent: z, initial: !h.current || n ? void 0 : !1, custom: t, presenceAffectsLayout: i, mode: s, onExitComplete: z ? void 0 : O, anchorX: a, children: g }, D);
|
|
810
810
|
}) });
|
|
811
811
|
}, Ae = (e) => e;
|
|
812
812
|
let gt = Ae, ze = Ae;
|
|
@@ -837,7 +837,7 @@ const dt = (e, t, n) => {
|
|
|
837
837
|
value: null,
|
|
838
838
|
addProjectionMetrics: null
|
|
839
839
|
};
|
|
840
|
-
function
|
|
840
|
+
function Xa(e, t) {
|
|
841
841
|
let n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), i = !1, s = !1;
|
|
842
842
|
const o = /* @__PURE__ */ new WeakSet();
|
|
843
843
|
let a = {
|
|
@@ -866,16 +866,16 @@ function qa(e, t) {
|
|
|
866
866
|
};
|
|
867
867
|
return u;
|
|
868
868
|
}
|
|
869
|
-
const
|
|
869
|
+
const Za = 40;
|
|
870
870
|
function $s(e, t) {
|
|
871
871
|
let n = !1, r = !0;
|
|
872
872
|
const i = {
|
|
873
873
|
delta: 0,
|
|
874
874
|
timestamp: 0,
|
|
875
875
|
isProcessing: !1
|
|
876
|
-
}, s = () => n = !0, o = Yt.reduce((x, C) => (x[C] =
|
|
876
|
+
}, s = () => n = !0, o = Yt.reduce((x, C) => (x[C] = Xa(s, t ? C : void 0), x), {}), { read: a, resolveKeyframes: l, update: c, preRender: u, render: f, postRender: h } = o, m = () => {
|
|
877
877
|
const x = performance.now();
|
|
878
|
-
n = !1, i.delta = r ? 1e3 / 60 : Math.max(Math.min(x - i.timestamp,
|
|
878
|
+
n = !1, i.delta = r ? 1e3 / 60 : Math.max(Math.min(x - i.timestamp, Za), 1), i.timestamp = x, i.isProcessing = !0, a.process(i), l.process(i), c.process(i), u.process(i), f.process(i), h.process(i), i.isProcessing = !1, n && t && (r = !1, e(m));
|
|
879
879
|
}, y = () => {
|
|
880
880
|
n = !0, r = !0, i.isProcessing || e(m);
|
|
881
881
|
};
|
|
@@ -911,14 +911,14 @@ for (const e in ci)
|
|
|
911
911
|
ht[e] = {
|
|
912
912
|
isEnabled: (t) => ci[e].some((n) => !!t[n])
|
|
913
913
|
};
|
|
914
|
-
function
|
|
914
|
+
function Ja(e) {
|
|
915
915
|
for (const t in e)
|
|
916
916
|
ht[t] = {
|
|
917
917
|
...ht[t],
|
|
918
918
|
...e[t]
|
|
919
919
|
};
|
|
920
920
|
}
|
|
921
|
-
const
|
|
921
|
+
const Qa = /* @__PURE__ */ new Set([
|
|
922
922
|
"animate",
|
|
923
923
|
"exit",
|
|
924
924
|
"variants",
|
|
@@ -951,17 +951,17 @@ const Ja = /* @__PURE__ */ new Set([
|
|
|
951
951
|
"viewport"
|
|
952
952
|
]);
|
|
953
953
|
function Jt(e) {
|
|
954
|
-
return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") ||
|
|
954
|
+
return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || Qa.has(e);
|
|
955
955
|
}
|
|
956
956
|
let Ws = (e) => !Jt(e);
|
|
957
|
-
function
|
|
957
|
+
function el(e) {
|
|
958
958
|
e && (Ws = (t) => t.startsWith("on") ? !Jt(t) : e(t));
|
|
959
959
|
}
|
|
960
960
|
try {
|
|
961
|
-
|
|
961
|
+
el(require("@emotion/is-prop-valid").default);
|
|
962
962
|
} catch {
|
|
963
963
|
}
|
|
964
|
-
function
|
|
964
|
+
function tl(e, t, n) {
|
|
965
965
|
const r = {};
|
|
966
966
|
for (const i in e)
|
|
967
967
|
i === "values" && typeof e.values == "object" || (Ws(i) || n === !0 && Jt(i) || !t && !Jt(i) || e.draggable && i.startsWith("onDrag")) && (r[i] = e[i]);
|
|
@@ -971,7 +971,7 @@ const ui = /* @__PURE__ */ new Set();
|
|
|
971
971
|
function ln(e, t, n) {
|
|
972
972
|
e || ui.has(t) || (console.warn(t), n && console.warn(n), ui.add(t));
|
|
973
973
|
}
|
|
974
|
-
function
|
|
974
|
+
function nl(e) {
|
|
975
975
|
if (typeof Proxy > "u")
|
|
976
976
|
return e;
|
|
977
977
|
const t = /* @__PURE__ */ new Map(), n = (...r) => (process.env.NODE_ENV !== "production" && ln(!1, "motion() is deprecated. Use motion.create() instead."), e(...r));
|
|
@@ -1001,7 +1001,7 @@ function fn(e) {
|
|
|
1001
1001
|
function zs(e) {
|
|
1002
1002
|
return Boolean(fn(e) || e.variants);
|
|
1003
1003
|
}
|
|
1004
|
-
function
|
|
1004
|
+
function rl(e, t) {
|
|
1005
1005
|
if (fn(e)) {
|
|
1006
1006
|
const { initial: n, animate: r } = e;
|
|
1007
1007
|
return {
|
|
@@ -1011,18 +1011,18 @@ function nl(e, t) {
|
|
|
1011
1011
|
}
|
|
1012
1012
|
return e.inherit !== !1 ? t : {};
|
|
1013
1013
|
}
|
|
1014
|
-
function
|
|
1015
|
-
const { initial: t, animate: n } =
|
|
1014
|
+
function il(e) {
|
|
1015
|
+
const { initial: t, animate: n } = rl(e, Ce(cn));
|
|
1016
1016
|
return tt(() => ({ initial: t, animate: n }), [fi(t), fi(n)]);
|
|
1017
1017
|
}
|
|
1018
1018
|
function fi(e) {
|
|
1019
1019
|
return Array.isArray(e) ? e.join(" ") : e;
|
|
1020
1020
|
}
|
|
1021
|
-
const
|
|
1021
|
+
const sl = Symbol.for("motionComponentSymbol");
|
|
1022
1022
|
function ot(e) {
|
|
1023
1023
|
return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
|
|
1024
1024
|
}
|
|
1025
|
-
function
|
|
1025
|
+
function ol(e, t, n) {
|
|
1026
1026
|
return on(
|
|
1027
1027
|
(r) => {
|
|
1028
1028
|
r && e.onMount && e.onMount(r), t && (r ? t.mount(r) : t.unmount()), n && (typeof n == "function" ? n(r) : ot(n) && (n.current = r));
|
|
@@ -1030,8 +1030,8 @@ function sl(e, t, n) {
|
|
|
1030
1030
|
[t]
|
|
1031
1031
|
);
|
|
1032
1032
|
}
|
|
1033
|
-
const pr = (e) => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(),
|
|
1034
|
-
function
|
|
1033
|
+
const pr = (e) => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), al = "framerAppearId", Ys = "data-" + pr(al), { schedule: mr, cancel: oh } = $s(queueMicrotask, !1), Ks = mt({});
|
|
1034
|
+
function ll(e, t, n, r, i) {
|
|
1035
1035
|
var s, o;
|
|
1036
1036
|
const { visualElement: a } = Ce(cn), l = Ce(Us), c = Ce(an), u = Ce(cr).reducedMotion, f = Se(null);
|
|
1037
1037
|
r = r || l.renderer, !f.current && r && (f.current = r(e, {
|
|
@@ -1043,22 +1043,22 @@ function al(e, t, n, r, i) {
|
|
|
1043
1043
|
reducedMotionConfig: u
|
|
1044
1044
|
}));
|
|
1045
1045
|
const h = f.current, m = Ce(Ks);
|
|
1046
|
-
h && !h.projection && i && (h.type === "html" || h.type === "svg") &&
|
|
1046
|
+
h && !h.projection && i && (h.type === "html" || h.type === "svg") && cl(f.current, n, i, m);
|
|
1047
1047
|
const y = Se(!1);
|
|
1048
1048
|
ks(() => {
|
|
1049
1049
|
h && y.current && h.update(n, c);
|
|
1050
1050
|
});
|
|
1051
|
-
const v = n[Ys],
|
|
1051
|
+
const v = n[Ys], b = Se(Boolean(v) && !(!((s = window.MotionHandoffIsComplete) === null || s === void 0) && s.call(window, v)) && ((o = window.MotionHasOptimisedAnimation) === null || o === void 0 ? void 0 : o.call(window, v)));
|
|
1052
1052
|
return Ns(() => {
|
|
1053
|
-
h && (y.current = !0, window.MotionIsMounted = !0, h.updateFeatures(), mr.render(h.render),
|
|
1053
|
+
h && (y.current = !0, window.MotionIsMounted = !0, h.updateFeatures(), mr.render(h.render), b.current && h.animationState && h.animationState.animateChanges());
|
|
1054
1054
|
}), He(() => {
|
|
1055
|
-
h && (!
|
|
1055
|
+
h && (!b.current && h.animationState && h.animationState.animateChanges(), b.current && (queueMicrotask(() => {
|
|
1056
1056
|
var x;
|
|
1057
1057
|
(x = window.MotionHandoffMarkAsComplete) === null || x === void 0 || x.call(window, v);
|
|
1058
|
-
}),
|
|
1058
|
+
}), b.current = !1));
|
|
1059
1059
|
}), h;
|
|
1060
1060
|
}
|
|
1061
|
-
function
|
|
1061
|
+
function cl(e, t, n, r) {
|
|
1062
1062
|
const { layoutId: i, layout: s, drag: o, dragConstraints: a, layoutScroll: l, layoutRoot: c } = t;
|
|
1063
1063
|
e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : Hs(e.parent)), e.projection.setOptions({
|
|
1064
1064
|
layoutId: i,
|
|
@@ -1075,39 +1075,39 @@ function Hs(e) {
|
|
|
1075
1075
|
if (e)
|
|
1076
1076
|
return e.options.allowProjection !== !1 ? e.projection : Hs(e.parent);
|
|
1077
1077
|
}
|
|
1078
|
-
function
|
|
1078
|
+
function ul({ preloadedFeatures: e, createVisualElement: t, useRender: n, useVisualState: r, Component: i }) {
|
|
1079
1079
|
var s, o;
|
|
1080
|
-
e &&
|
|
1080
|
+
e && Ja(e);
|
|
1081
1081
|
function a(c, u) {
|
|
1082
1082
|
let f;
|
|
1083
1083
|
const h = {
|
|
1084
1084
|
...Ce(cr),
|
|
1085
1085
|
...c,
|
|
1086
|
-
layoutId:
|
|
1087
|
-
}, { isStatic: m } = h, y =
|
|
1086
|
+
layoutId: fl(c)
|
|
1087
|
+
}, { isStatic: m } = h, y = il(c), v = r(c, m);
|
|
1088
1088
|
if (!m && ur) {
|
|
1089
|
-
|
|
1090
|
-
const
|
|
1091
|
-
f =
|
|
1089
|
+
dl(h, e);
|
|
1090
|
+
const b = hl(h);
|
|
1091
|
+
f = b.MeasureLayout, y.visualElement = ll(i, v, h, t, b.ProjectionNode);
|
|
1092
1092
|
}
|
|
1093
|
-
return p.exports.jsxs(cn.Provider, { value: y, children: [f && y.visualElement ? p.exports.jsx(f, { visualElement: y.visualElement, ...h }) : null, n(i, c,
|
|
1093
|
+
return p.exports.jsxs(cn.Provider, { value: y, children: [f && y.visualElement ? p.exports.jsx(f, { visualElement: y.visualElement, ...h }) : null, n(i, c, ol(v, y.visualElement, u), v, m, y.visualElement)] });
|
|
1094
1094
|
}
|
|
1095
1095
|
a.displayName = `motion.${typeof i == "string" ? i : `create(${(o = (s = i.displayName) !== null && s !== void 0 ? s : i.name) !== null && o !== void 0 ? o : ""})`}`;
|
|
1096
1096
|
const l = Nt(a);
|
|
1097
|
-
return l[
|
|
1097
|
+
return l[sl] = i, l;
|
|
1098
1098
|
}
|
|
1099
|
-
function
|
|
1099
|
+
function fl({ layoutId: e }) {
|
|
1100
1100
|
const t = Ce(ar).id;
|
|
1101
1101
|
return t && e !== void 0 ? t + "-" + e : e;
|
|
1102
1102
|
}
|
|
1103
|
-
function
|
|
1103
|
+
function dl(e, t) {
|
|
1104
1104
|
const n = Ce(Us).strict;
|
|
1105
1105
|
if (process.env.NODE_ENV !== "production" && t && n) {
|
|
1106
1106
|
const r = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
|
|
1107
1107
|
e.ignoreStrict ? gt(!1, r) : ze(!1, r);
|
|
1108
1108
|
}
|
|
1109
1109
|
}
|
|
1110
|
-
function
|
|
1110
|
+
function hl(e) {
|
|
1111
1111
|
const { drag: t, layout: n } = ht;
|
|
1112
1112
|
if (!t && !n)
|
|
1113
1113
|
return {};
|
|
@@ -1117,8 +1117,8 @@ function dl(e) {
|
|
|
1117
1117
|
ProjectionNode: r.ProjectionNode
|
|
1118
1118
|
};
|
|
1119
1119
|
}
|
|
1120
|
-
const Gs = (e) => (t) => typeof t == "string" && t.startsWith(e), gr = /* @__PURE__ */ Gs("--"),
|
|
1121
|
-
function
|
|
1120
|
+
const Gs = (e) => (t) => typeof t == "string" && t.startsWith(e), gr = /* @__PURE__ */ Gs("--"), pl = /* @__PURE__ */ Gs("var(--"), yr = (e) => pl(e) ? ml.test(e.split("/*")[0].trim()) : !1, ml = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, Dt = {};
|
|
1121
|
+
function gl(e) {
|
|
1122
1122
|
for (const t in e)
|
|
1123
1123
|
Dt[t] = e[t], gr(t) && (Dt[t].isCSSVariable = !0);
|
|
1124
1124
|
}
|
|
@@ -1158,11 +1158,11 @@ const Pe = (e) => Boolean(e && e.getVelocity), Xs = (e, t) => t && typeof e == "
|
|
|
1158
1158
|
test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
|
|
1159
1159
|
parse: parseFloat,
|
|
1160
1160
|
transform: (t) => `${t}${e}`
|
|
1161
|
-
}), Ue = /* @__PURE__ */ Ft("deg"), ke = /* @__PURE__ */ Ft("%"), k = /* @__PURE__ */ Ft("px"),
|
|
1161
|
+
}), Ue = /* @__PURE__ */ Ft("deg"), ke = /* @__PURE__ */ Ft("%"), k = /* @__PURE__ */ Ft("px"), yl = /* @__PURE__ */ Ft("vh"), vl = /* @__PURE__ */ Ft("vw"), di = {
|
|
1162
1162
|
...ke,
|
|
1163
1163
|
parse: (e) => ke.parse(e) / 100,
|
|
1164
1164
|
transform: (e) => ke.transform(e * 100)
|
|
1165
|
-
},
|
|
1165
|
+
}, xl = {
|
|
1166
1166
|
borderWidth: k,
|
|
1167
1167
|
borderTopWidth: k,
|
|
1168
1168
|
borderRightWidth: k,
|
|
@@ -1194,7 +1194,7 @@ const Pe = (e) => Boolean(e && e.getVelocity), Xs = (e, t) => t && typeof e == "
|
|
|
1194
1194
|
marginLeft: k,
|
|
1195
1195
|
backgroundPositionX: k,
|
|
1196
1196
|
backgroundPositionY: k
|
|
1197
|
-
},
|
|
1197
|
+
}, bl = {
|
|
1198
1198
|
rotate: Ue,
|
|
1199
1199
|
rotateX: Ue,
|
|
1200
1200
|
rotateY: Ue,
|
|
@@ -1223,22 +1223,22 @@ const Pe = (e) => Boolean(e && e.getVelocity), Xs = (e, t) => t && typeof e == "
|
|
|
1223
1223
|
...vt,
|
|
1224
1224
|
transform: Math.round
|
|
1225
1225
|
}, vr = {
|
|
1226
|
-
...vl,
|
|
1227
1226
|
...xl,
|
|
1227
|
+
...bl,
|
|
1228
1228
|
zIndex: hi,
|
|
1229
1229
|
size: k,
|
|
1230
1230
|
fillOpacity: Lt,
|
|
1231
1231
|
strokeOpacity: Lt,
|
|
1232
1232
|
numOctaves: hi
|
|
1233
|
-
},
|
|
1233
|
+
}, wl = {
|
|
1234
1234
|
x: "translateX",
|
|
1235
1235
|
y: "translateY",
|
|
1236
1236
|
z: "translateZ",
|
|
1237
1237
|
transformPerspective: "perspective"
|
|
1238
|
-
},
|
|
1239
|
-
function
|
|
1238
|
+
}, Tl = yt.length;
|
|
1239
|
+
function Sl(e, t, n) {
|
|
1240
1240
|
let r = "", i = !0;
|
|
1241
|
-
for (let s = 0; s <
|
|
1241
|
+
for (let s = 0; s < Tl; s++) {
|
|
1242
1242
|
const o = yt[s], a = e[o];
|
|
1243
1243
|
if (a === void 0)
|
|
1244
1244
|
continue;
|
|
@@ -1247,7 +1247,7 @@ function Tl(e, t, n) {
|
|
|
1247
1247
|
const c = Xs(a, vr[o]);
|
|
1248
1248
|
if (!l) {
|
|
1249
1249
|
i = !1;
|
|
1250
|
-
const u =
|
|
1250
|
+
const u = wl[o] || o;
|
|
1251
1251
|
r += `${u}(${c}) `;
|
|
1252
1252
|
}
|
|
1253
1253
|
n && (t[o] = c);
|
|
@@ -1271,7 +1271,7 @@ function xr(e, t, n) {
|
|
|
1271
1271
|
l.startsWith("origin") ? (a = !0, s[l] = u) : r[l] = u;
|
|
1272
1272
|
}
|
|
1273
1273
|
}
|
|
1274
|
-
if (t.transform || (o || n ? r.transform =
|
|
1274
|
+
if (t.transform || (o || n ? r.transform = Sl(t, e.transform, n) : r.transform && (r.transform = "none")), a) {
|
|
1275
1275
|
const { originX: l = "50%", originY: c = "50%", originZ: u = 0 } = s;
|
|
1276
1276
|
r.transformOrigin = `${l} ${c} ${u}`;
|
|
1277
1277
|
}
|
|
@@ -1286,21 +1286,21 @@ function Zs(e, t, n) {
|
|
|
1286
1286
|
for (const r in t)
|
|
1287
1287
|
!Pe(t[r]) && !qs(r, n) && (e[r] = t[r]);
|
|
1288
1288
|
}
|
|
1289
|
-
function
|
|
1289
|
+
function Cl({ transformTemplate: e }, t) {
|
|
1290
1290
|
return tt(() => {
|
|
1291
1291
|
const n = br();
|
|
1292
1292
|
return xr(n, t, e), Object.assign({}, n.vars, n.style);
|
|
1293
1293
|
}, [t]);
|
|
1294
1294
|
}
|
|
1295
|
-
function
|
|
1295
|
+
function Pl(e, t) {
|
|
1296
1296
|
const n = e.style || {}, r = {};
|
|
1297
|
-
return Zs(r, n, e), Object.assign(r,
|
|
1297
|
+
return Zs(r, n, e), Object.assign(r, Cl(e, t)), r;
|
|
1298
1298
|
}
|
|
1299
|
-
function
|
|
1300
|
-
const n = {}, r =
|
|
1299
|
+
function El(e, t) {
|
|
1300
|
+
const n = {}, r = Pl(e, t);
|
|
1301
1301
|
return e.drag && e.dragListener !== !1 && (n.draggable = !1, r.userSelect = r.WebkitUserSelect = r.WebkitTouchCallout = "none", r.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (n.tabIndex = 0), n.style = r, n;
|
|
1302
1302
|
}
|
|
1303
|
-
const
|
|
1303
|
+
const jl = [
|
|
1304
1304
|
"animate",
|
|
1305
1305
|
"circle",
|
|
1306
1306
|
"defs",
|
|
@@ -1328,18 +1328,18 @@ const El = [
|
|
|
1328
1328
|
"view"
|
|
1329
1329
|
];
|
|
1330
1330
|
function wr(e) {
|
|
1331
|
-
return typeof e != "string" || e.includes("-") ? !1 : !!(
|
|
1331
|
+
return typeof e != "string" || e.includes("-") ? !1 : !!(jl.indexOf(e) > -1 || /[A-Z]/u.test(e));
|
|
1332
1332
|
}
|
|
1333
|
-
const
|
|
1333
|
+
const Rl = {
|
|
1334
1334
|
offset: "stroke-dashoffset",
|
|
1335
1335
|
array: "stroke-dasharray"
|
|
1336
|
-
},
|
|
1336
|
+
}, Al = {
|
|
1337
1337
|
offset: "strokeDashoffset",
|
|
1338
1338
|
array: "strokeDasharray"
|
|
1339
1339
|
};
|
|
1340
|
-
function
|
|
1340
|
+
function Ml(e, t, n = 1, r = 0, i = !0) {
|
|
1341
1341
|
e.pathLength = 1;
|
|
1342
|
-
const s = i ?
|
|
1342
|
+
const s = i ? Rl : Al;
|
|
1343
1343
|
e[s.offset] = k.transform(-r);
|
|
1344
1344
|
const o = k.transform(t), a = k.transform(n);
|
|
1345
1345
|
e[s.array] = `${o} ${a}`;
|
|
@@ -1347,7 +1347,7 @@ function Al(e, t, n = 1, r = 0, i = !0) {
|
|
|
1347
1347
|
function pi(e, t, n) {
|
|
1348
1348
|
return typeof e == "string" ? e : k.transform(t + n * e);
|
|
1349
1349
|
}
|
|
1350
|
-
function
|
|
1350
|
+
function Vl(e, t, n) {
|
|
1351
1351
|
const r = pi(t, e.x, e.width), i = pi(n, e.y, e.height);
|
|
1352
1352
|
return `${r} ${i}`;
|
|
1353
1353
|
}
|
|
@@ -1368,13 +1368,13 @@ function Tr(e, {
|
|
|
1368
1368
|
}
|
|
1369
1369
|
e.attrs = e.style, e.style = {};
|
|
1370
1370
|
const { attrs: h, style: m, dimensions: y } = e;
|
|
1371
|
-
h.transform && (y && (m.transform = h.transform), delete h.transform), y && (i !== void 0 || s !== void 0 || m.transform) && (m.transformOrigin =
|
|
1371
|
+
h.transform && (y && (m.transform = h.transform), delete h.transform), y && (i !== void 0 || s !== void 0 || m.transform) && (m.transformOrigin = Vl(y, i !== void 0 ? i : 0.5, s !== void 0 ? s : 0.5)), t !== void 0 && (h.x = t), n !== void 0 && (h.y = n), r !== void 0 && (h.scale = r), o !== void 0 && Ml(h, o, a, l, !1);
|
|
1372
1372
|
}
|
|
1373
1373
|
const Js = () => ({
|
|
1374
1374
|
...br(),
|
|
1375
1375
|
attrs: {}
|
|
1376
1376
|
}), Sr = (e) => typeof e == "string" && e.toLowerCase() === "svg";
|
|
1377
|
-
function
|
|
1377
|
+
function Dl(e, t, n, r) {
|
|
1378
1378
|
const i = tt(() => {
|
|
1379
1379
|
const s = Js();
|
|
1380
1380
|
return Tr(s, t, Sr(r), e.transformTemplate), {
|
|
@@ -1388,10 +1388,10 @@ function Vl(e, t, n, r) {
|
|
|
1388
1388
|
}
|
|
1389
1389
|
return i;
|
|
1390
1390
|
}
|
|
1391
|
-
function
|
|
1391
|
+
function Ll(e = !1) {
|
|
1392
1392
|
return (n, r, i, { latestValues: s }, o) => {
|
|
1393
|
-
const l = (wr(n) ?
|
|
1394
|
-
return
|
|
1393
|
+
const l = (wr(n) ? Dl : El)(r, s, o, n), c = tl(r, typeof n == "string", e), u = n !== _s ? { ...c, ...l, ref: i } : {}, { children: f } = r, h = tt(() => Pe(f) ? f.get() : f, [f]);
|
|
1394
|
+
return $a(n, {
|
|
1395
1395
|
...u,
|
|
1396
1396
|
children: h
|
|
1397
1397
|
});
|
|
@@ -1414,23 +1414,23 @@ function Cr(e, t, n, r) {
|
|
|
1414
1414
|
}
|
|
1415
1415
|
return t;
|
|
1416
1416
|
}
|
|
1417
|
-
const Fn = (e) => Array.isArray(e),
|
|
1417
|
+
const Fn = (e) => Array.isArray(e), Ol = (e) => Boolean(e && typeof e == "object" && e.mix && e.toValue), kl = (e) => Fn(e) ? e[e.length - 1] || 0 : e;
|
|
1418
1418
|
function qt(e) {
|
|
1419
1419
|
const t = Pe(e) ? e.get() : e;
|
|
1420
|
-
return
|
|
1420
|
+
return Ol(t) ? t.toValue() : t;
|
|
1421
1421
|
}
|
|
1422
|
-
function
|
|
1422
|
+
function _l({ scrapeMotionValuesFromProps: e, createRenderState: t, onUpdate: n }, r, i, s) {
|
|
1423
1423
|
const o = {
|
|
1424
|
-
latestValues:
|
|
1424
|
+
latestValues: Il(r, i, s, e),
|
|
1425
1425
|
renderState: t()
|
|
1426
1426
|
};
|
|
1427
1427
|
return n && (o.onMount = (a) => n({ props: r, current: a, ...o }), o.onUpdate = (a) => n(a)), o;
|
|
1428
1428
|
}
|
|
1429
1429
|
const Qs = (e) => (t, n) => {
|
|
1430
|
-
const r = Ce(cn), i = Ce(an), s = () =>
|
|
1430
|
+
const r = Ce(cn), i = Ce(an), s = () => _l(e, t, r, i);
|
|
1431
1431
|
return n ? s() : lr(s);
|
|
1432
1432
|
};
|
|
1433
|
-
function
|
|
1433
|
+
function Il(e, t, n, r) {
|
|
1434
1434
|
const i = {}, s = r(e, {});
|
|
1435
1435
|
for (const h in s)
|
|
1436
1436
|
i[h] = qt(s[h]);
|
|
@@ -1445,7 +1445,7 @@ function _l(e, t, n, r) {
|
|
|
1445
1445
|
for (let m = 0; m < h.length; m++) {
|
|
1446
1446
|
const y = Cr(e, h[m]);
|
|
1447
1447
|
if (y) {
|
|
1448
|
-
const { transitionEnd: v, transition:
|
|
1448
|
+
const { transitionEnd: v, transition: b, ...x } = y;
|
|
1449
1449
|
for (const C in x) {
|
|
1450
1450
|
let E = x[C];
|
|
1451
1451
|
if (Array.isArray(E)) {
|
|
@@ -1468,7 +1468,7 @@ function Pr(e, t, n) {
|
|
|
1468
1468
|
(Pe(i[o]) || t.style && Pe(t.style[o]) || qs(o, e) || ((r = n == null ? void 0 : n.getValue(o)) === null || r === void 0 ? void 0 : r.liveStyle) !== void 0) && (s[o] = i[o]);
|
|
1469
1469
|
return s;
|
|
1470
1470
|
}
|
|
1471
|
-
const
|
|
1471
|
+
const Nl = {
|
|
1472
1472
|
useVisualState: Qs({
|
|
1473
1473
|
scrapeMotionValuesFromProps: Pr,
|
|
1474
1474
|
createRenderState: br
|
|
@@ -1530,7 +1530,7 @@ function io(e, t, n) {
|
|
|
1530
1530
|
}
|
|
1531
1531
|
return r;
|
|
1532
1532
|
}
|
|
1533
|
-
const gi = ["x", "y", "width", "height", "cx", "cy", "r"],
|
|
1533
|
+
const gi = ["x", "y", "width", "height", "cx", "cy", "r"], Fl = {
|
|
1534
1534
|
useVisualState: Qs({
|
|
1535
1535
|
scrapeMotionValuesFromProps: io,
|
|
1536
1536
|
createRenderState: Js,
|
|
@@ -1561,24 +1561,24 @@ const gi = ["x", "y", "width", "height", "cx", "cy", "r"], Nl = {
|
|
|
1561
1561
|
}
|
|
1562
1562
|
})
|
|
1563
1563
|
};
|
|
1564
|
-
function
|
|
1564
|
+
function Bl(e, t) {
|
|
1565
1565
|
return function(r, { forwardMotionProps: i } = { forwardMotionProps: !1 }) {
|
|
1566
1566
|
const o = {
|
|
1567
|
-
...wr(r) ?
|
|
1567
|
+
...wr(r) ? Fl : Nl,
|
|
1568
1568
|
preloadedFeatures: e,
|
|
1569
|
-
useRender:
|
|
1569
|
+
useRender: Ll(i),
|
|
1570
1570
|
createVisualElement: t,
|
|
1571
1571
|
Component: r
|
|
1572
1572
|
};
|
|
1573
|
-
return
|
|
1573
|
+
return ul(o);
|
|
1574
1574
|
};
|
|
1575
1575
|
}
|
|
1576
1576
|
function Ot(e, t, n) {
|
|
1577
1577
|
const r = e.getProps();
|
|
1578
1578
|
return Cr(r, t, n !== void 0 ? n : r.custom, e);
|
|
1579
1579
|
}
|
|
1580
|
-
const
|
|
1581
|
-
class
|
|
1580
|
+
const $l = fr(() => window.ScrollTimeline !== void 0);
|
|
1581
|
+
class Ul {
|
|
1582
1582
|
constructor(t) {
|
|
1583
1583
|
this.stop = () => this.runAll("stop"), this.animations = t.filter(Boolean);
|
|
1584
1584
|
}
|
|
@@ -1594,7 +1594,7 @@ class $l {
|
|
|
1594
1594
|
}
|
|
1595
1595
|
attachTimeline(t, n) {
|
|
1596
1596
|
const r = this.animations.map((i) => {
|
|
1597
|
-
if (
|
|
1597
|
+
if ($l() && i.attachTimeline)
|
|
1598
1598
|
return i.attachTimeline(t);
|
|
1599
1599
|
if (typeof n == "function")
|
|
1600
1600
|
return n(i);
|
|
@@ -1645,7 +1645,7 @@ class $l {
|
|
|
1645
1645
|
this.runAll("complete");
|
|
1646
1646
|
}
|
|
1647
1647
|
}
|
|
1648
|
-
class
|
|
1648
|
+
class Wl extends Ul {
|
|
1649
1649
|
then(t, n) {
|
|
1650
1650
|
return Promise.all(this.animations).then(t).catch(n);
|
|
1651
1651
|
}
|
|
@@ -1668,17 +1668,17 @@ function jr(e) {
|
|
|
1668
1668
|
function yi(e, t) {
|
|
1669
1669
|
e.timeline = t, e.onfinish = null;
|
|
1670
1670
|
}
|
|
1671
|
-
const Rr = (e) => Array.isArray(e) && typeof e[0] == "number",
|
|
1671
|
+
const Rr = (e) => Array.isArray(e) && typeof e[0] == "number", zl = {
|
|
1672
1672
|
linearEasing: void 0
|
|
1673
1673
|
};
|
|
1674
|
-
function
|
|
1674
|
+
function Yl(e, t) {
|
|
1675
1675
|
const n = fr(e);
|
|
1676
1676
|
return () => {
|
|
1677
1677
|
var r;
|
|
1678
|
-
return (r =
|
|
1678
|
+
return (r = zl[t]) !== null && r !== void 0 ? r : n();
|
|
1679
1679
|
};
|
|
1680
1680
|
}
|
|
1681
|
-
const Qt = /* @__PURE__ */
|
|
1681
|
+
const Qt = /* @__PURE__ */ Yl(() => {
|
|
1682
1682
|
try {
|
|
1683
1683
|
document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
|
|
1684
1684
|
} catch {
|
|
@@ -1717,7 +1717,7 @@ const Le = {
|
|
|
1717
1717
|
function co() {
|
|
1718
1718
|
return Le.x || Le.y;
|
|
1719
1719
|
}
|
|
1720
|
-
function
|
|
1720
|
+
function Kl(e, t, n) {
|
|
1721
1721
|
var r;
|
|
1722
1722
|
if (e instanceof EventTarget)
|
|
1723
1723
|
return [e];
|
|
@@ -1730,7 +1730,7 @@ function Yl(e, t, n) {
|
|
|
1730
1730
|
return Array.from(e);
|
|
1731
1731
|
}
|
|
1732
1732
|
function uo(e, t) {
|
|
1733
|
-
const n =
|
|
1733
|
+
const n = Kl(e), r = new AbortController(), i = {
|
|
1734
1734
|
passive: !0,
|
|
1735
1735
|
...t,
|
|
1736
1736
|
signal: r.signal
|
|
@@ -1740,7 +1740,7 @@ function uo(e, t) {
|
|
|
1740
1740
|
function vi(e) {
|
|
1741
1741
|
return !(e.pointerType === "touch" || co());
|
|
1742
1742
|
}
|
|
1743
|
-
function
|
|
1743
|
+
function Hl(e, t, n = {}) {
|
|
1744
1744
|
const [r, i, s] = uo(e, n), o = (a) => {
|
|
1745
1745
|
if (!vi(a))
|
|
1746
1746
|
return;
|
|
@@ -1764,15 +1764,15 @@ function en(e, t) {
|
|
|
1764
1764
|
} catch {
|
|
1765
1765
|
}
|
|
1766
1766
|
}
|
|
1767
|
-
const fo = (e, t) => t ? e === t ? !0 : fo(e, t.parentElement) : !1, Ar = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1,
|
|
1767
|
+
const fo = (e, t) => t ? e === t ? !0 : fo(e, t.parentElement) : !1, Ar = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, Gl = /* @__PURE__ */ new Set([
|
|
1768
1768
|
"BUTTON",
|
|
1769
1769
|
"INPUT",
|
|
1770
1770
|
"SELECT",
|
|
1771
1771
|
"TEXTAREA",
|
|
1772
1772
|
"A"
|
|
1773
1773
|
]);
|
|
1774
|
-
function
|
|
1775
|
-
return
|
|
1774
|
+
function ql(e) {
|
|
1775
|
+
return Gl.has(e.tagName) || e.tabIndex !== -1;
|
|
1776
1776
|
}
|
|
1777
1777
|
const Pt = /* @__PURE__ */ new WeakSet();
|
|
1778
1778
|
function xi(e) {
|
|
@@ -1783,7 +1783,7 @@ function xi(e) {
|
|
|
1783
1783
|
function xn(e, t) {
|
|
1784
1784
|
e.dispatchEvent(new PointerEvent("pointer" + t, { isPrimary: !0, bubbles: !0 }));
|
|
1785
1785
|
}
|
|
1786
|
-
const
|
|
1786
|
+
const Xl = (e, t) => {
|
|
1787
1787
|
const n = e.currentTarget;
|
|
1788
1788
|
if (!n)
|
|
1789
1789
|
return;
|
|
@@ -1801,7 +1801,7 @@ const ql = (e, t) => {
|
|
|
1801
1801
|
function bi(e) {
|
|
1802
1802
|
return Ar(e) && !co();
|
|
1803
1803
|
}
|
|
1804
|
-
function
|
|
1804
|
+
function Zl(e, t, n = {}) {
|
|
1805
1805
|
const [r, i, s] = uo(e, n), o = (a) => {
|
|
1806
1806
|
const l = a.currentTarget;
|
|
1807
1807
|
if (!l || !bi(a) || Pt.has(l))
|
|
@@ -1810,7 +1810,7 @@ function Xl(e, t, n = {}) {
|
|
|
1810
1810
|
const c = t(l, a), u = (m, y) => {
|
|
1811
1811
|
l.removeEventListener("pointerup", f), l.removeEventListener("pointercancel", h), en(m, "release"), !(!bi(m) || !Pt.has(l)) && (Pt.delete(l), typeof c == "function" && c(m, { success: y }));
|
|
1812
1812
|
}, f = (m) => {
|
|
1813
|
-
(m.isTrusted ?
|
|
1813
|
+
(m.isTrusted ? Jl(m, l instanceof Element ? l.getBoundingClientRect() : {
|
|
1814
1814
|
left: 0,
|
|
1815
1815
|
top: 0,
|
|
1816
1816
|
right: window.innerWidth,
|
|
@@ -1824,13 +1824,13 @@ function Xl(e, t, n = {}) {
|
|
|
1824
1824
|
return r.forEach((a) => {
|
|
1825
1825
|
a = n.useGlobalTarget ? window : a;
|
|
1826
1826
|
let l = !1;
|
|
1827
|
-
a instanceof HTMLElement && (l = !0, !
|
|
1827
|
+
a instanceof HTMLElement && (l = !0, !ql(a) && a.getAttribute("tabindex") === null && (a.tabIndex = 0)), a.addEventListener("pointerdown", o, i), l && a.addEventListener("focus", (c) => Xl(c, i), i);
|
|
1828
1828
|
}), s;
|
|
1829
1829
|
}
|
|
1830
|
-
function
|
|
1830
|
+
function Jl(e, t) {
|
|
1831
1831
|
return e.clientX < t.left || e.clientX > t.right || e.clientY < t.top || e.clientY > t.bottom;
|
|
1832
1832
|
}
|
|
1833
|
-
function
|
|
1833
|
+
function Ql(e) {
|
|
1834
1834
|
return e === "x" || e === "y" ? Le[e] ? null : (Le[e] = !0, () => {
|
|
1835
1835
|
Le[e] = !1;
|
|
1836
1836
|
}) : Le.x || Le.y ? null : (Le.x = Le.y = !0, () => {
|
|
@@ -1847,13 +1847,13 @@ const ho = /* @__PURE__ */ new Set([
|
|
|
1847
1847
|
...yt
|
|
1848
1848
|
]);
|
|
1849
1849
|
let Xt;
|
|
1850
|
-
function
|
|
1850
|
+
function ec() {
|
|
1851
1851
|
Xt = void 0;
|
|
1852
1852
|
}
|
|
1853
1853
|
const _e = {
|
|
1854
1854
|
now: () => (Xt === void 0 && _e.set(we.isProcessing || Bs.useManualTiming ? we.timestamp : performance.now()), Xt),
|
|
1855
1855
|
set: (e) => {
|
|
1856
|
-
Xt = e, queueMicrotask(
|
|
1856
|
+
Xt = e, queueMicrotask(ec);
|
|
1857
1857
|
}
|
|
1858
1858
|
};
|
|
1859
1859
|
function Mr(e, t) {
|
|
@@ -1891,8 +1891,8 @@ class Dr {
|
|
|
1891
1891
|
function po(e, t) {
|
|
1892
1892
|
return t ? e * (1e3 / t) : 0;
|
|
1893
1893
|
}
|
|
1894
|
-
const wi = 30,
|
|
1895
|
-
class
|
|
1894
|
+
const wi = 30, tc = (e) => !isNaN(parseFloat(e));
|
|
1895
|
+
class nc {
|
|
1896
1896
|
constructor(t, n = {}) {
|
|
1897
1897
|
this.version = "12.4.7", this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (r, i = !0) => {
|
|
1898
1898
|
const s = _e.now();
|
|
@@ -1900,7 +1900,7 @@ class tc {
|
|
|
1900
1900
|
}, this.hasAnimated = !1, this.setCurrent(t), this.owner = n.owner;
|
|
1901
1901
|
}
|
|
1902
1902
|
setCurrent(t) {
|
|
1903
|
-
this.current = t, this.updatedAt = _e.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity =
|
|
1903
|
+
this.current = t, this.updatedAt = _e.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = tc(this.current));
|
|
1904
1904
|
}
|
|
1905
1905
|
setPrevFrameValue(t = this.current) {
|
|
1906
1906
|
this.prevFrameValue = t, this.prevUpdatedAt = this.updatedAt;
|
|
@@ -1967,56 +1967,56 @@ class tc {
|
|
|
1967
1967
|
}
|
|
1968
1968
|
}
|
|
1969
1969
|
function kt(e, t) {
|
|
1970
|
-
return new
|
|
1970
|
+
return new nc(e, t);
|
|
1971
1971
|
}
|
|
1972
|
-
function
|
|
1972
|
+
function rc(e, t, n) {
|
|
1973
1973
|
e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, kt(n));
|
|
1974
1974
|
}
|
|
1975
|
-
function
|
|
1975
|
+
function ic(e, t) {
|
|
1976
1976
|
const n = Ot(e, t);
|
|
1977
1977
|
let { transitionEnd: r = {}, transition: i = {}, ...s } = n || {};
|
|
1978
1978
|
s = { ...s, ...r };
|
|
1979
1979
|
for (const o in s) {
|
|
1980
|
-
const a =
|
|
1981
|
-
|
|
1980
|
+
const a = kl(s[o]);
|
|
1981
|
+
rc(e, o, a);
|
|
1982
1982
|
}
|
|
1983
1983
|
}
|
|
1984
|
-
function
|
|
1984
|
+
function sc(e) {
|
|
1985
1985
|
return Boolean(Pe(e) && e.add);
|
|
1986
1986
|
}
|
|
1987
1987
|
function Un(e, t) {
|
|
1988
1988
|
const n = e.getValue("willChange");
|
|
1989
|
-
if (
|
|
1989
|
+
if (sc(n))
|
|
1990
1990
|
return n.add(t);
|
|
1991
1991
|
}
|
|
1992
1992
|
function mo(e) {
|
|
1993
1993
|
return e.props[Ys];
|
|
1994
1994
|
}
|
|
1995
|
-
const
|
|
1995
|
+
const oc = {
|
|
1996
1996
|
current: !1
|
|
1997
|
-
}, go = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e,
|
|
1998
|
-
function
|
|
1997
|
+
}, go = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, ac = 1e-7, lc = 12;
|
|
1998
|
+
function cc(e, t, n, r, i) {
|
|
1999
1999
|
let s, o, a = 0;
|
|
2000
2000
|
do
|
|
2001
2001
|
o = t + (n - t) / 2, s = go(o, r, i) - e, s > 0 ? n = o : t = o;
|
|
2002
|
-
while (Math.abs(s) >
|
|
2002
|
+
while (Math.abs(s) > ac && ++a < lc);
|
|
2003
2003
|
return o;
|
|
2004
2004
|
}
|
|
2005
2005
|
function Bt(e, t, n, r) {
|
|
2006
2006
|
if (e === t && n === r)
|
|
2007
2007
|
return Ae;
|
|
2008
|
-
const i = (s) =>
|
|
2008
|
+
const i = (s) => cc(s, 0, 1, e, n);
|
|
2009
2009
|
return (s) => s === 0 || s === 1 ? s : go(i(s), t, r);
|
|
2010
2010
|
}
|
|
2011
2011
|
const yo = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, vo = (e) => (t) => 1 - e(1 - t), xo = /* @__PURE__ */ Bt(0.33, 1.53, 0.69, 0.99), Lr = /* @__PURE__ */ vo(xo), bo = /* @__PURE__ */ yo(Lr), wo = (e) => (e *= 2) < 1 ? 0.5 * Lr(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), Or = (e) => 1 - Math.sin(Math.acos(e)), To = vo(Or), So = yo(Or), Co = (e) => /^0[^.\s]+$/u.test(e);
|
|
2012
|
-
function
|
|
2012
|
+
function uc(e) {
|
|
2013
2013
|
return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" || Co(e) : !0;
|
|
2014
2014
|
}
|
|
2015
2015
|
const Et = (e) => Math.round(e * 1e5) / 1e5, kr = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
|
|
2016
|
-
function
|
|
2016
|
+
function fc(e) {
|
|
2017
2017
|
return e == null;
|
|
2018
2018
|
}
|
|
2019
|
-
const
|
|
2019
|
+
const dc = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, _r = (e, t) => (n) => Boolean(typeof n == "string" && dc.test(n) && n.startsWith(e) || t && !fc(n) && Object.prototype.hasOwnProperty.call(n, t)), Po = (e, t, n) => (r) => {
|
|
2020
2020
|
if (typeof r != "string")
|
|
2021
2021
|
return r;
|
|
2022
2022
|
const [i, s, o, a] = r.match(kr);
|
|
@@ -2026,15 +2026,15 @@ const fc = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
|
|
|
2026
2026
|
[n]: parseFloat(o),
|
|
2027
2027
|
alpha: a !== void 0 ? parseFloat(a) : 1
|
|
2028
2028
|
};
|
|
2029
|
-
},
|
|
2029
|
+
}, hc = (e) => Be(0, 255, e), bn = {
|
|
2030
2030
|
...vt,
|
|
2031
|
-
transform: (e) => Math.round(
|
|
2031
|
+
transform: (e) => Math.round(hc(e))
|
|
2032
2032
|
}, Qe = {
|
|
2033
2033
|
test: /* @__PURE__ */ _r("rgb", "red"),
|
|
2034
2034
|
parse: /* @__PURE__ */ Po("red", "green", "blue"),
|
|
2035
2035
|
transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + bn.transform(e) + ", " + bn.transform(t) + ", " + bn.transform(n) + ", " + Et(Lt.transform(r)) + ")"
|
|
2036
2036
|
};
|
|
2037
|
-
function
|
|
2037
|
+
function pc(e) {
|
|
2038
2038
|
let t = "", n = "", r = "", i = "";
|
|
2039
2039
|
return e.length > 5 ? (t = e.substring(1, 3), n = e.substring(3, 5), r = e.substring(5, 7), i = e.substring(7, 9)) : (t = e.substring(1, 2), n = e.substring(2, 3), r = e.substring(3, 4), i = e.substring(4, 5), t += t, n += n, r += r, i += i), {
|
|
2040
2040
|
red: parseInt(t, 16),
|
|
@@ -2045,7 +2045,7 @@ function hc(e) {
|
|
|
2045
2045
|
}
|
|
2046
2046
|
const Wn = {
|
|
2047
2047
|
test: /* @__PURE__ */ _r("#"),
|
|
2048
|
-
parse:
|
|
2048
|
+
parse: pc,
|
|
2049
2049
|
transform: Qe.transform
|
|
2050
2050
|
}, at = {
|
|
2051
2051
|
test: /* @__PURE__ */ _r("hsl", "hue"),
|
|
@@ -2055,12 +2055,12 @@ const Wn = {
|
|
|
2055
2055
|
test: (e) => Qe.test(e) || Wn.test(e) || at.test(e),
|
|
2056
2056
|
parse: (e) => Qe.test(e) ? Qe.parse(e) : at.test(e) ? at.parse(e) : Wn.parse(e),
|
|
2057
2057
|
transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? Qe.transform(e) : at.transform(e)
|
|
2058
|
-
},
|
|
2059
|
-
function
|
|
2058
|
+
}, mc = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
|
|
2059
|
+
function gc(e) {
|
|
2060
2060
|
var t, n;
|
|
2061
|
-
return isNaN(e) && typeof e == "string" && (((t = e.match(kr)) === null || t === void 0 ? void 0 : t.length) || 0) + (((n = e.match(
|
|
2061
|
+
return isNaN(e) && typeof e == "string" && (((t = e.match(kr)) === null || t === void 0 ? void 0 : t.length) || 0) + (((n = e.match(mc)) === null || n === void 0 ? void 0 : n.length) || 0) > 0;
|
|
2062
2062
|
}
|
|
2063
|
-
const Eo = "number", jo = "color",
|
|
2063
|
+
const Eo = "number", jo = "color", yc = "var", vc = "var(", Ti = "${}", xc = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
|
|
2064
2064
|
function _t(e) {
|
|
2065
2065
|
const t = e.toString(), n = [], r = {
|
|
2066
2066
|
color: [],
|
|
@@ -2068,7 +2068,7 @@ function _t(e) {
|
|
|
2068
2068
|
var: []
|
|
2069
2069
|
}, i = [];
|
|
2070
2070
|
let s = 0;
|
|
2071
|
-
const a = t.replace(
|
|
2071
|
+
const a = t.replace(xc, (l) => (Te.test(l) ? (r.color.push(s), i.push(jo), n.push(Te.parse(l))) : l.startsWith(vc) ? (r.var.push(s), i.push(yc), n.push(l)) : (r.number.push(s), i.push(Eo), n.push(parseFloat(l))), ++s, Ti)).split(Ti);
|
|
2072
2072
|
return { values: n, split: a, indexes: r, types: i };
|
|
2073
2073
|
}
|
|
2074
2074
|
function Ro(e) {
|
|
@@ -2086,18 +2086,18 @@ function Ao(e) {
|
|
|
2086
2086
|
return s;
|
|
2087
2087
|
};
|
|
2088
2088
|
}
|
|
2089
|
-
const
|
|
2090
|
-
function
|
|
2089
|
+
const bc = (e) => typeof e == "number" ? 0 : e;
|
|
2090
|
+
function wc(e) {
|
|
2091
2091
|
const t = Ro(e);
|
|
2092
|
-
return Ao(e)(t.map(
|
|
2092
|
+
return Ao(e)(t.map(bc));
|
|
2093
2093
|
}
|
|
2094
2094
|
const Ke = {
|
|
2095
|
-
test:
|
|
2095
|
+
test: gc,
|
|
2096
2096
|
parse: Ro,
|
|
2097
2097
|
createTransformer: Ao,
|
|
2098
|
-
getAnimatableNone:
|
|
2099
|
-
},
|
|
2100
|
-
function
|
|
2098
|
+
getAnimatableNone: wc
|
|
2099
|
+
}, Tc = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
|
|
2100
|
+
function Sc(e) {
|
|
2101
2101
|
const [t, n] = e.slice(0, -1).split("(");
|
|
2102
2102
|
if (t === "drop-shadow")
|
|
2103
2103
|
return e;
|
|
@@ -2105,16 +2105,16 @@ function Tc(e) {
|
|
|
2105
2105
|
if (!r)
|
|
2106
2106
|
return e;
|
|
2107
2107
|
const i = n.replace(r, "");
|
|
2108
|
-
let s =
|
|
2108
|
+
let s = Tc.has(t) ? 1 : 0;
|
|
2109
2109
|
return r !== n && (s *= 100), t + "(" + s + i + ")";
|
|
2110
2110
|
}
|
|
2111
|
-
const
|
|
2111
|
+
const Cc = /\b([a-z-]*)\(.*?\)/gu, zn = {
|
|
2112
2112
|
...Ke,
|
|
2113
2113
|
getAnimatableNone: (e) => {
|
|
2114
|
-
const t = e.match(
|
|
2115
|
-
return t ? t.map(
|
|
2114
|
+
const t = e.match(Cc);
|
|
2115
|
+
return t ? t.map(Sc).join(" ") : e;
|
|
2116
2116
|
}
|
|
2117
|
-
},
|
|
2117
|
+
}, Pc = {
|
|
2118
2118
|
...vr,
|
|
2119
2119
|
color: Te,
|
|
2120
2120
|
backgroundColor: Te,
|
|
@@ -2128,17 +2128,17 @@ const Sc = /\b([a-z-]*)\(.*?\)/gu, zn = {
|
|
|
2128
2128
|
borderLeftColor: Te,
|
|
2129
2129
|
filter: zn,
|
|
2130
2130
|
WebkitFilter: zn
|
|
2131
|
-
}, Ir = (e) =>
|
|
2131
|
+
}, Ir = (e) => Pc[e];
|
|
2132
2132
|
function Mo(e, t) {
|
|
2133
2133
|
let n = Ir(e);
|
|
2134
2134
|
return n !== zn && (n = Ke), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
|
|
2135
2135
|
}
|
|
2136
|
-
const
|
|
2137
|
-
function
|
|
2136
|
+
const Ec = /* @__PURE__ */ new Set(["auto", "none", "0"]);
|
|
2137
|
+
function jc(e, t, n) {
|
|
2138
2138
|
let r = 0, i;
|
|
2139
2139
|
for (; r < e.length && !i; ) {
|
|
2140
2140
|
const s = e[r];
|
|
2141
|
-
typeof s == "string" && !
|
|
2141
|
+
typeof s == "string" && !Ec.has(s) && _t(s).values.length && (i = e[r]), r++;
|
|
2142
2142
|
}
|
|
2143
2143
|
if (i && n)
|
|
2144
2144
|
for (const s of t)
|
|
@@ -2154,10 +2154,10 @@ const Si = (e) => e === vt || e === k, Ci = (e, t) => parseFloat(e.split(", ")[t
|
|
|
2154
2154
|
const s = r.match(/^matrix\((.+)\)$/u);
|
|
2155
2155
|
return s ? Ci(s[1], e) : 0;
|
|
2156
2156
|
}
|
|
2157
|
-
},
|
|
2158
|
-
function
|
|
2157
|
+
}, Rc = /* @__PURE__ */ new Set(["x", "y", "z"]), Ac = yt.filter((e) => !Rc.has(e));
|
|
2158
|
+
function Mc(e) {
|
|
2159
2159
|
const t = [];
|
|
2160
|
-
return
|
|
2160
|
+
return Ac.forEach((n) => {
|
|
2161
2161
|
const r = e.getValue(n);
|
|
2162
2162
|
r !== void 0 && (t.push([n, r.get()]), r.set(n.startsWith("scale") ? 1 : 0));
|
|
2163
2163
|
}), t;
|
|
@@ -2180,7 +2180,7 @@ function Vo() {
|
|
|
2180
2180
|
if (Kn) {
|
|
2181
2181
|
const e = Array.from(et).filter((r) => r.needsMeasurement), t = new Set(e.map((r) => r.element)), n = /* @__PURE__ */ new Map();
|
|
2182
2182
|
t.forEach((r) => {
|
|
2183
|
-
const i =
|
|
2183
|
+
const i = Mc(r);
|
|
2184
2184
|
i.length && (n.set(r, i), r.render());
|
|
2185
2185
|
}), e.forEach((r) => r.measureInitialState()), t.forEach((r) => {
|
|
2186
2186
|
r.render();
|
|
@@ -2200,7 +2200,7 @@ function Do() {
|
|
|
2200
2200
|
e.readKeyframes(), e.needsMeasurement && (Kn = !0);
|
|
2201
2201
|
});
|
|
2202
2202
|
}
|
|
2203
|
-
function
|
|
2203
|
+
function Vc() {
|
|
2204
2204
|
Do(), Vo();
|
|
2205
2205
|
}
|
|
2206
2206
|
class Nr {
|
|
@@ -2244,18 +2244,18 @@ class Nr {
|
|
|
2244
2244
|
this.isComplete || this.scheduleResolve();
|
|
2245
2245
|
}
|
|
2246
2246
|
}
|
|
2247
|
-
const Lo = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),
|
|
2248
|
-
function
|
|
2249
|
-
const t =
|
|
2247
|
+
const Lo = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), Dc = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
|
|
2248
|
+
function Lc(e) {
|
|
2249
|
+
const t = Dc.exec(e);
|
|
2250
2250
|
if (!t)
|
|
2251
2251
|
return [,];
|
|
2252
2252
|
const [, n, r, i] = t;
|
|
2253
2253
|
return [`--${n ?? r}`, i];
|
|
2254
2254
|
}
|
|
2255
|
-
const
|
|
2255
|
+
const Oc = 4;
|
|
2256
2256
|
function Oo(e, t, n = 1) {
|
|
2257
|
-
ze(n <=
|
|
2258
|
-
const [r, i] =
|
|
2257
|
+
ze(n <= Oc, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);
|
|
2258
|
+
const [r, i] = Lc(e);
|
|
2259
2259
|
if (!r)
|
|
2260
2260
|
return;
|
|
2261
2261
|
const s = window.getComputedStyle(t).getPropertyValue(r);
|
|
@@ -2265,10 +2265,10 @@ function Oo(e, t, n = 1) {
|
|
|
2265
2265
|
}
|
|
2266
2266
|
return yr(i) ? Oo(i, t, n + 1) : i;
|
|
2267
2267
|
}
|
|
2268
|
-
const ko = (e) => (t) => t.test(e),
|
|
2268
|
+
const ko = (e) => (t) => t.test(e), kc = {
|
|
2269
2269
|
test: (e) => e === "auto",
|
|
2270
2270
|
parse: (e) => e
|
|
2271
|
-
}, _o = [vt, k, ke, Ue,
|
|
2271
|
+
}, _o = [vt, k, ke, Ue, vl, yl, kc], Ei = (e) => _o.find(ko(e));
|
|
2272
2272
|
class Io extends Nr {
|
|
2273
2273
|
constructor(t, n, r, i, s) {
|
|
2274
2274
|
super(t, n, r, i, s, !0);
|
|
@@ -2300,8 +2300,8 @@ class Io extends Nr {
|
|
|
2300
2300
|
resolveNoneKeyframes() {
|
|
2301
2301
|
const { unresolvedKeyframes: t, name: n } = this, r = [];
|
|
2302
2302
|
for (let i = 0; i < t.length; i++)
|
|
2303
|
-
|
|
2304
|
-
r.length &&
|
|
2303
|
+
uc(t[i]) && r.push(i);
|
|
2304
|
+
r.length && jc(t, r, n);
|
|
2305
2305
|
}
|
|
2306
2306
|
measureInitialState() {
|
|
2307
2307
|
const { element: t, unresolvedKeyframes: n, name: r } = this;
|
|
@@ -2325,7 +2325,7 @@ class Io extends Nr {
|
|
|
2325
2325
|
}
|
|
2326
2326
|
}
|
|
2327
2327
|
const ji = (e, t) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (Ke.test(e) || e === "0") && !e.startsWith("url("));
|
|
2328
|
-
function
|
|
2328
|
+
function _c(e) {
|
|
2329
2329
|
const t = e[0];
|
|
2330
2330
|
if (e.length === 1)
|
|
2331
2331
|
return !0;
|
|
@@ -2333,21 +2333,21 @@ function kc(e) {
|
|
|
2333
2333
|
if (e[n] !== t)
|
|
2334
2334
|
return !0;
|
|
2335
2335
|
}
|
|
2336
|
-
function
|
|
2336
|
+
function Ic(e, t, n, r) {
|
|
2337
2337
|
const i = e[0];
|
|
2338
2338
|
if (i === null)
|
|
2339
2339
|
return !1;
|
|
2340
2340
|
if (t === "display" || t === "visibility")
|
|
2341
2341
|
return !0;
|
|
2342
2342
|
const s = e[e.length - 1], o = ji(i, t), a = ji(s, t);
|
|
2343
|
-
return gt(o === a, `You are trying to animate ${t} from "${i}" to "${s}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${s} via the \`style\` property.`), !o || !a ? !1 :
|
|
2343
|
+
return gt(o === a, `You are trying to animate ${t} from "${i}" to "${s}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${s} via the \`style\` property.`), !o || !a ? !1 : _c(e) || (n === "spring" || jr(n)) && r;
|
|
2344
2344
|
}
|
|
2345
|
-
const
|
|
2345
|
+
const Nc = (e) => e !== null;
|
|
2346
2346
|
function dn(e, { repeat: t, repeatType: n = "loop" }, r) {
|
|
2347
|
-
const i = e.filter(
|
|
2347
|
+
const i = e.filter(Nc), s = t && n !== "loop" && t % 2 === 1 ? 0 : i.length - 1;
|
|
2348
2348
|
return !s || r === void 0 ? i[s] : r;
|
|
2349
2349
|
}
|
|
2350
|
-
const
|
|
2350
|
+
const Fc = 40;
|
|
2351
2351
|
class No {
|
|
2352
2352
|
constructor({ autoplay: t = !0, delay: n = 0, type: r = "keyframes", repeat: i = 0, repeatDelay: s = 0, repeatType: o = "loop", ...a }) {
|
|
2353
2353
|
this.isStopped = !1, this.hasAttemptedResolve = !1, this.createdAt = _e.now(), this.options = {
|
|
@@ -2361,15 +2361,15 @@ class No {
|
|
|
2361
2361
|
}, this.updateFinishedPromise();
|
|
2362
2362
|
}
|
|
2363
2363
|
calcStartTime() {
|
|
2364
|
-
return this.resolvedAt ? this.resolvedAt - this.createdAt >
|
|
2364
|
+
return this.resolvedAt ? this.resolvedAt - this.createdAt > Fc ? this.resolvedAt : this.createdAt : this.createdAt;
|
|
2365
2365
|
}
|
|
2366
2366
|
get resolved() {
|
|
2367
|
-
return !this._resolved && !this.hasAttemptedResolve &&
|
|
2367
|
+
return !this._resolved && !this.hasAttemptedResolve && Vc(), this._resolved;
|
|
2368
2368
|
}
|
|
2369
2369
|
onKeyframesResolved(t, n) {
|
|
2370
2370
|
this.resolvedAt = _e.now(), this.hasAttemptedResolve = !0;
|
|
2371
2371
|
const { name: r, type: i, velocity: s, delay: o, onComplete: a, onUpdate: l, isGenerator: c } = this.options;
|
|
2372
|
-
if (!c && !
|
|
2372
|
+
if (!c && !Ic(t, r, i, s))
|
|
2373
2373
|
if (o)
|
|
2374
2374
|
this.options.duration = 0;
|
|
2375
2375
|
else {
|
|
@@ -2405,7 +2405,7 @@ const jt = {
|
|
|
2405
2405
|
function wn(e, t, n) {
|
|
2406
2406
|
return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
|
|
2407
2407
|
}
|
|
2408
|
-
function
|
|
2408
|
+
function Bc({ hue: e, saturation: t, lightness: n, alpha: r }) {
|
|
2409
2409
|
e /= 360, t /= 100, n /= 100;
|
|
2410
2410
|
let i = 0, s = 0, o = 0;
|
|
2411
2411
|
if (!t)
|
|
@@ -2427,13 +2427,13 @@ function tn(e, t) {
|
|
|
2427
2427
|
const Tn = (e, t, n) => {
|
|
2428
2428
|
const r = e * e, i = n * (t * t - r) + r;
|
|
2429
2429
|
return i < 0 ? 0 : Math.sqrt(i);
|
|
2430
|
-
},
|
|
2430
|
+
}, $c = [Wn, Qe, at], Uc = (e) => $c.find((t) => t.test(e));
|
|
2431
2431
|
function Ri(e) {
|
|
2432
|
-
const t =
|
|
2432
|
+
const t = Uc(e);
|
|
2433
2433
|
if (gt(Boolean(t), `'${e}' is not an animatable color. Use the equivalent color code instead.`), !Boolean(t))
|
|
2434
2434
|
return !1;
|
|
2435
2435
|
let n = t.parse(e);
|
|
2436
|
-
return t === at && (n =
|
|
2436
|
+
return t === at && (n = Bc(n)), n;
|
|
2437
2437
|
}
|
|
2438
2438
|
const Ai = (e, t) => {
|
|
2439
2439
|
const n = Ri(e), r = Ri(t);
|
|
@@ -2441,15 +2441,15 @@ const Ai = (e, t) => {
|
|
|
2441
2441
|
return tn(e, t);
|
|
2442
2442
|
const i = { ...n };
|
|
2443
2443
|
return (s) => (i.red = Tn(n.red, r.red, s), i.green = Tn(n.green, r.green, s), i.blue = Tn(n.blue, r.blue, s), i.alpha = le(n.alpha, r.alpha, s), Qe.transform(i));
|
|
2444
|
-
},
|
|
2445
|
-
function
|
|
2444
|
+
}, Wc = (e, t) => (n) => t(e(n)), $t = (...e) => e.reduce(Wc), Hn = /* @__PURE__ */ new Set(["none", "hidden"]);
|
|
2445
|
+
function zc(e, t) {
|
|
2446
2446
|
return Hn.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
|
|
2447
2447
|
}
|
|
2448
|
-
function
|
|
2448
|
+
function Yc(e, t) {
|
|
2449
2449
|
return (n) => le(e, t, n);
|
|
2450
2450
|
}
|
|
2451
2451
|
function Fr(e) {
|
|
2452
|
-
return typeof e == "number" ?
|
|
2452
|
+
return typeof e == "number" ? Yc : typeof e == "string" ? yr(e) ? tn : Te.test(e) ? Ai : Gc : Array.isArray(e) ? Fo : typeof e == "object" ? Te.test(e) ? Ai : Kc : tn;
|
|
2453
2453
|
}
|
|
2454
2454
|
function Fo(e, t) {
|
|
2455
2455
|
const n = [...e], r = n.length, i = e.map((s, o) => Fr(s)(s, t[o]));
|
|
@@ -2459,7 +2459,7 @@ function Fo(e, t) {
|
|
|
2459
2459
|
return n;
|
|
2460
2460
|
};
|
|
2461
2461
|
}
|
|
2462
|
-
function
|
|
2462
|
+
function Kc(e, t) {
|
|
2463
2463
|
const n = { ...e, ...t }, r = {};
|
|
2464
2464
|
for (const i in n)
|
|
2465
2465
|
e[i] !== void 0 && t[i] !== void 0 && (r[i] = Fr(e[i])(e[i], t[i]));
|
|
@@ -2469,7 +2469,7 @@ function Yc(e, t) {
|
|
|
2469
2469
|
return n;
|
|
2470
2470
|
};
|
|
2471
2471
|
}
|
|
2472
|
-
function
|
|
2472
|
+
function Hc(e, t) {
|
|
2473
2473
|
var n;
|
|
2474
2474
|
const r = [], i = { color: 0, var: 0, number: 0 };
|
|
2475
2475
|
for (let s = 0; s < t.values.length; s++) {
|
|
@@ -2478,16 +2478,16 @@ function Kc(e, t) {
|
|
|
2478
2478
|
}
|
|
2479
2479
|
return r;
|
|
2480
2480
|
}
|
|
2481
|
-
const
|
|
2481
|
+
const Gc = (e, t) => {
|
|
2482
2482
|
const n = Ke.createTransformer(t), r = _t(e), i = _t(t);
|
|
2483
|
-
return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? Hn.has(e) && !i.values.length || Hn.has(t) && !r.values.length ?
|
|
2483
|
+
return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? Hn.has(e) && !i.values.length || Hn.has(t) && !r.values.length ? zc(e, t) : $t(Fo(Hc(r, i), i.values), n) : (gt(!0, `Complex values '${e}' and '${t}' 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.`), tn(e, t));
|
|
2484
2484
|
};
|
|
2485
2485
|
function Bo(e, t, n) {
|
|
2486
2486
|
return typeof e == "number" && typeof t == "number" && typeof n == "number" ? le(e, t, n) : Fr(e)(e, t);
|
|
2487
2487
|
}
|
|
2488
|
-
const
|
|
2488
|
+
const qc = 5;
|
|
2489
2489
|
function $o(e, t, n) {
|
|
2490
|
-
const r = Math.max(t -
|
|
2490
|
+
const r = Math.max(t - qc, 0);
|
|
2491
2491
|
return po(n - e(r), t - r);
|
|
2492
2492
|
}
|
|
2493
2493
|
const ae = {
|
|
@@ -2511,7 +2511,7 @@ const ae = {
|
|
|
2511
2511
|
minDamping: 0.05,
|
|
2512
2512
|
maxDamping: 1
|
|
2513
2513
|
}, Sn = 1e-3;
|
|
2514
|
-
function
|
|
2514
|
+
function Xc({ duration: e = ae.duration, bounce: t = ae.bounce, velocity: n = ae.velocity, mass: r = ae.mass }) {
|
|
2515
2515
|
let i, s;
|
|
2516
2516
|
gt(e <= Oe(ae.maxDuration), "Spring duration must be 10 seconds or less");
|
|
2517
2517
|
let o = 1 - t;
|
|
@@ -2528,7 +2528,7 @@ function qc({ duration: e = ae.duration, bounce: t = ae.bounce, velocity: n = ae
|
|
|
2528
2528
|
const u = Math.exp(-c * e), f = (n - c) * (e * e);
|
|
2529
2529
|
return u * f;
|
|
2530
2530
|
});
|
|
2531
|
-
const a = 5 / e, l =
|
|
2531
|
+
const a = 5 / e, l = Jc(i, s, a);
|
|
2532
2532
|
if (e = Oe(e), isNaN(l))
|
|
2533
2533
|
return {
|
|
2534
2534
|
stiffness: ae.stiffness,
|
|
@@ -2544,21 +2544,21 @@ function qc({ duration: e = ae.duration, bounce: t = ae.bounce, velocity: n = ae
|
|
|
2544
2544
|
};
|
|
2545
2545
|
}
|
|
2546
2546
|
}
|
|
2547
|
-
const
|
|
2548
|
-
function
|
|
2547
|
+
const Zc = 12;
|
|
2548
|
+
function Jc(e, t, n) {
|
|
2549
2549
|
let r = n;
|
|
2550
|
-
for (let i = 1; i <
|
|
2550
|
+
for (let i = 1; i < Zc; i++)
|
|
2551
2551
|
r = r - e(r) / t(r);
|
|
2552
2552
|
return r;
|
|
2553
2553
|
}
|
|
2554
2554
|
function Gn(e, t) {
|
|
2555
2555
|
return e * Math.sqrt(1 - t * t);
|
|
2556
2556
|
}
|
|
2557
|
-
const
|
|
2557
|
+
const Qc = ["duration", "bounce"], eu = ["stiffness", "damping", "mass"];
|
|
2558
2558
|
function Mi(e, t) {
|
|
2559
2559
|
return t.some((n) => e[n] !== void 0);
|
|
2560
2560
|
}
|
|
2561
|
-
function
|
|
2561
|
+
function tu(e) {
|
|
2562
2562
|
let t = {
|
|
2563
2563
|
velocity: ae.velocity,
|
|
2564
2564
|
stiffness: ae.stiffness,
|
|
@@ -2567,7 +2567,7 @@ function eu(e) {
|
|
|
2567
2567
|
isResolvedFromDuration: !1,
|
|
2568
2568
|
...e
|
|
2569
2569
|
};
|
|
2570
|
-
if (!Mi(e,
|
|
2570
|
+
if (!Mi(e, eu) && Mi(e, Qc))
|
|
2571
2571
|
if (e.visualDuration) {
|
|
2572
2572
|
const n = e.visualDuration, r = 2 * Math.PI / (n * 1.2), i = r * r, s = 2 * Be(0.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(i);
|
|
2573
2573
|
t = {
|
|
@@ -2577,7 +2577,7 @@ function eu(e) {
|
|
|
2577
2577
|
damping: s
|
|
2578
2578
|
};
|
|
2579
2579
|
} else {
|
|
2580
|
-
const n =
|
|
2580
|
+
const n = Xc(e);
|
|
2581
2581
|
t = {
|
|
2582
2582
|
...t,
|
|
2583
2583
|
...n,
|
|
@@ -2593,25 +2593,25 @@ function Uo(e = ae.visualDuration, t = ae.bounce) {
|
|
|
2593
2593
|
bounce: t
|
|
2594
2594
|
} : e;
|
|
2595
2595
|
let { restSpeed: r, restDelta: i } = n;
|
|
2596
|
-
const s = n.keyframes[0], o = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: s }, { stiffness: l, damping: c, mass: u, duration: f, velocity: h, isResolvedFromDuration: m } =
|
|
2596
|
+
const s = n.keyframes[0], o = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: s }, { stiffness: l, damping: c, mass: u, duration: f, velocity: h, isResolvedFromDuration: m } = tu({
|
|
2597
2597
|
...n,
|
|
2598
2598
|
velocity: -Fe(n.velocity || 0)
|
|
2599
|
-
}), y = h || 0, v = c / (2 * Math.sqrt(l * u)),
|
|
2599
|
+
}), y = h || 0, v = c / (2 * Math.sqrt(l * u)), b = o - s, x = Fe(Math.sqrt(l / u)), C = Math.abs(b) < 5;
|
|
2600
2600
|
r || (r = C ? ae.restSpeed.granular : ae.restSpeed.default), i || (i = C ? ae.restDelta.granular : ae.restDelta.default);
|
|
2601
2601
|
let E;
|
|
2602
2602
|
if (v < 1) {
|
|
2603
2603
|
const g = Gn(x, v);
|
|
2604
2604
|
E = (D) => {
|
|
2605
2605
|
const z = Math.exp(-v * x * D);
|
|
2606
|
-
return o - z * ((y + v * x *
|
|
2606
|
+
return o - z * ((y + v * x * b) / g * Math.sin(g * D) + b * Math.cos(g * D));
|
|
2607
2607
|
};
|
|
2608
2608
|
} else if (v === 1)
|
|
2609
|
-
E = (g) => o - Math.exp(-x * g) * (
|
|
2609
|
+
E = (g) => o - Math.exp(-x * g) * (b + (y + x * b) * g);
|
|
2610
2610
|
else {
|
|
2611
2611
|
const g = x * Math.sqrt(v * v - 1);
|
|
2612
2612
|
E = (D) => {
|
|
2613
2613
|
const z = Math.exp(-v * x * D), O = Math.min(g * D, 300);
|
|
2614
|
-
return o - z * ((y + v * x *
|
|
2614
|
+
return o - z * ((y + v * x * b) * Math.sinh(O) + g * b * Math.cosh(O)) / g;
|
|
2615
2615
|
};
|
|
2616
2616
|
}
|
|
2617
2617
|
const V = {
|
|
@@ -2641,8 +2641,8 @@ function Vi({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
|
|
|
2641
2641
|
value: f
|
|
2642
2642
|
}, m = (O) => a !== void 0 && O < a || l !== void 0 && O > l, y = (O) => a === void 0 ? l : l === void 0 || Math.abs(a - O) < Math.abs(l - O) ? a : l;
|
|
2643
2643
|
let v = n * t;
|
|
2644
|
-
const
|
|
2645
|
-
x !==
|
|
2644
|
+
const b = f + v, x = o === void 0 ? b : o(b);
|
|
2645
|
+
x !== b && (v = x - f);
|
|
2646
2646
|
const C = (O) => -v * Math.exp(-O / r), E = (O) => x + C(O), V = (O) => {
|
|
2647
2647
|
const Z = C(O), R = E(O);
|
|
2648
2648
|
h.done = Math.abs(Z) <= c, h.value = h.done ? x : R;
|
|
@@ -2666,11 +2666,11 @@ function Vi({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
|
|
|
2666
2666
|
}
|
|
2667
2667
|
};
|
|
2668
2668
|
}
|
|
2669
|
-
const
|
|
2669
|
+
const nu = /* @__PURE__ */ Bt(0.42, 0, 1, 1), ru = /* @__PURE__ */ Bt(0, 0, 0.58, 1), Wo = /* @__PURE__ */ Bt(0.42, 0, 0.58, 1), iu = (e) => Array.isArray(e) && typeof e[0] != "number", Di = {
|
|
2670
2670
|
linear: Ae,
|
|
2671
|
-
easeIn:
|
|
2671
|
+
easeIn: nu,
|
|
2672
2672
|
easeInOut: Wo,
|
|
2673
|
-
easeOut:
|
|
2673
|
+
easeOut: ru,
|
|
2674
2674
|
circIn: Or,
|
|
2675
2675
|
circInOut: So,
|
|
2676
2676
|
circOut: To,
|
|
@@ -2687,7 +2687,7 @@ const tu = /* @__PURE__ */ Bt(0.42, 0, 1, 1), nu = /* @__PURE__ */ Bt(0, 0, 0.58
|
|
|
2687
2687
|
return ze(Di[e] !== void 0, `Invalid easing type '${e}'`), Di[e];
|
|
2688
2688
|
return e;
|
|
2689
2689
|
};
|
|
2690
|
-
function
|
|
2690
|
+
function su(e, t, n) {
|
|
2691
2691
|
const r = [], i = n || Bo, s = e.length - 1;
|
|
2692
2692
|
for (let o = 0; o < s; o++) {
|
|
2693
2693
|
let a = i(e[o], e[o + 1]);
|
|
@@ -2699,7 +2699,7 @@ function iu(e, t, n) {
|
|
|
2699
2699
|
}
|
|
2700
2700
|
return r;
|
|
2701
2701
|
}
|
|
2702
|
-
function
|
|
2702
|
+
function ou(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
|
|
2703
2703
|
const s = e.length;
|
|
2704
2704
|
if (ze(s === t.length, "Both input and output ranges must be the same length"), s === 1)
|
|
2705
2705
|
return () => t[0];
|
|
@@ -2707,7 +2707,7 @@ function su(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
|
|
|
2707
2707
|
return () => t[1];
|
|
2708
2708
|
const o = e[0] === e[1];
|
|
2709
2709
|
e[0] > e[s - 1] && (e = [...e].reverse(), t = [...t].reverse());
|
|
2710
|
-
const a =
|
|
2710
|
+
const a = su(t, r, i), l = a.length, c = (u) => {
|
|
2711
2711
|
if (o && u < e[0])
|
|
2712
2712
|
return t[0];
|
|
2713
2713
|
let f = 0;
|
|
@@ -2719,52 +2719,52 @@ function su(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
|
|
|
2719
2719
|
};
|
|
2720
2720
|
return n ? (u) => c(Be(e[0], e[s - 1], u)) : c;
|
|
2721
2721
|
}
|
|
2722
|
-
function
|
|
2722
|
+
function au(e, t) {
|
|
2723
2723
|
const n = e[e.length - 1];
|
|
2724
2724
|
for (let r = 1; r <= t; r++) {
|
|
2725
2725
|
const i = dt(0, t, r);
|
|
2726
2726
|
e.push(le(n, 1, i));
|
|
2727
2727
|
}
|
|
2728
2728
|
}
|
|
2729
|
-
function
|
|
2729
|
+
function lu(e) {
|
|
2730
2730
|
const t = [0];
|
|
2731
|
-
return
|
|
2731
|
+
return au(t, e.length - 1), t;
|
|
2732
2732
|
}
|
|
2733
|
-
function
|
|
2733
|
+
function cu(e, t) {
|
|
2734
2734
|
return e.map((n) => n * t);
|
|
2735
2735
|
}
|
|
2736
|
-
function
|
|
2736
|
+
function uu(e, t) {
|
|
2737
2737
|
return e.map(() => t || Wo).splice(0, e.length - 1);
|
|
2738
2738
|
}
|
|
2739
2739
|
function Rt({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }) {
|
|
2740
|
-
const i =
|
|
2740
|
+
const i = iu(r) ? r.map(Li) : Li(r), s = {
|
|
2741
2741
|
done: !1,
|
|
2742
2742
|
value: t[0]
|
|
2743
|
-
}, o =
|
|
2744
|
-
n && n.length === t.length ? n :
|
|
2743
|
+
}, o = cu(
|
|
2744
|
+
n && n.length === t.length ? n : lu(t),
|
|
2745
2745
|
e
|
|
2746
|
-
), a =
|
|
2747
|
-
ease: Array.isArray(i) ? i :
|
|
2746
|
+
), a = ou(o, t, {
|
|
2747
|
+
ease: Array.isArray(i) ? i : uu(t, i)
|
|
2748
2748
|
});
|
|
2749
2749
|
return {
|
|
2750
2750
|
calculatedDuration: e,
|
|
2751
2751
|
next: (l) => (s.value = a(l), s.done = l >= e, s)
|
|
2752
2752
|
};
|
|
2753
2753
|
}
|
|
2754
|
-
const
|
|
2754
|
+
const fu = (e) => {
|
|
2755
2755
|
const t = ({ timestamp: n }) => e(n);
|
|
2756
2756
|
return {
|
|
2757
2757
|
start: () => re.update(t, !0),
|
|
2758
2758
|
stop: () => Ye(t),
|
|
2759
2759
|
now: () => we.isProcessing ? we.timestamp : _e.now()
|
|
2760
2760
|
};
|
|
2761
|
-
},
|
|
2761
|
+
}, du = {
|
|
2762
2762
|
decay: Vi,
|
|
2763
2763
|
inertia: Vi,
|
|
2764
2764
|
tween: Rt,
|
|
2765
2765
|
keyframes: Rt,
|
|
2766
2766
|
spring: Uo
|
|
2767
|
-
},
|
|
2767
|
+
}, hu = (e) => e / 100;
|
|
2768
2768
|
class Br extends No {
|
|
2769
2769
|
constructor(t) {
|
|
2770
2770
|
super(t), this.holdTime = null, this.cancelTime = null, this.currentTime = 0, this.playbackSpeed = 1, this.pendingPlayState = "running", this.startTime = null, this.state = "idle", this.stop = () => {
|
|
@@ -2781,9 +2781,9 @@ class Br extends No {
|
|
|
2781
2781
|
super.flatten(), this._resolved && Object.assign(this._resolved, this.initPlayback(this._resolved.keyframes));
|
|
2782
2782
|
}
|
|
2783
2783
|
initPlayback(t) {
|
|
2784
|
-
const { type: n = "keyframes", repeat: r = 0, repeatDelay: i = 0, repeatType: s, velocity: o = 0 } = this.options, a = jr(n) ? n :
|
|
2784
|
+
const { type: n = "keyframes", repeat: r = 0, repeatDelay: i = 0, repeatType: s, velocity: o = 0 } = this.options, a = jr(n) ? n : du[n] || Rt;
|
|
2785
2785
|
let l, c;
|
|
2786
|
-
process.env.NODE_ENV !== "production" && a !== Rt && ze(t.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`), a !== Rt && typeof t[0] != "number" && (l = $t(
|
|
2786
|
+
process.env.NODE_ENV !== "production" && a !== Rt && ze(t.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`), a !== Rt && typeof t[0] != "number" && (l = $t(hu, Bo(t[0], t[1])), t = [0, 100]);
|
|
2787
2787
|
const u = a({ ...this.options, keyframes: t });
|
|
2788
2788
|
s === "mirror" && (c = a({
|
|
2789
2789
|
...this.options,
|
|
@@ -2813,7 +2813,7 @@ class Br extends No {
|
|
|
2813
2813
|
const { finalKeyframe: i, generator: s, mirroredGenerator: o, mapPercentToKeyframes: a, keyframes: l, calculatedDuration: c, totalDuration: u, resolvedDuration: f } = r;
|
|
2814
2814
|
if (this.startTime === null)
|
|
2815
2815
|
return s.next(0);
|
|
2816
|
-
const { delay: h, repeat: m, repeatType: y, repeatDelay: v, onUpdate:
|
|
2816
|
+
const { delay: h, repeat: m, repeatType: y, repeatDelay: v, onUpdate: b } = this.options;
|
|
2817
2817
|
this.speed > 0 ? this.startTime = Math.min(this.startTime, t) : this.speed < 0 && (this.startTime = Math.min(t - u / this.speed, this.startTime)), n ? this.currentTime = t : this.holdTime !== null ? this.currentTime = this.holdTime : this.currentTime = Math.round(t - this.startTime) * this.speed;
|
|
2818
2818
|
const x = this.currentTime - h * (this.speed >= 0 ? 1 : -1), C = this.speed >= 0 ? x < 0 : x > u;
|
|
2819
2819
|
this.currentTime = Math.max(x, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = u);
|
|
@@ -2828,7 +2828,7 @@ class Br extends No {
|
|
|
2828
2828
|
let { done: D } = g;
|
|
2829
2829
|
!C && c !== null && (D = this.speed >= 0 ? this.currentTime >= u : this.currentTime <= 0);
|
|
2830
2830
|
const z = this.holdTime === null && (this.state === "finished" || this.state === "running" && D);
|
|
2831
|
-
return z && i !== void 0 && (g.value = dn(l, this.options, i)),
|
|
2831
|
+
return z && i !== void 0 && (g.value = dn(l, this.options, i)), b && b(g.value), z && this.finish(), g;
|
|
2832
2832
|
}
|
|
2833
2833
|
get duration() {
|
|
2834
2834
|
const { resolved: t } = this;
|
|
@@ -2854,7 +2854,7 @@ class Br extends No {
|
|
|
2854
2854
|
}
|
|
2855
2855
|
if (this.isStopped)
|
|
2856
2856
|
return;
|
|
2857
|
-
const { driver: t =
|
|
2857
|
+
const { driver: t = fu, onPlay: n, startTime: r } = this.options;
|
|
2858
2858
|
this.driver || (this.driver = t((s) => this.tick(s))), n && n();
|
|
2859
2859
|
const i = this.driver.now();
|
|
2860
2860
|
this.holdTime !== null ? this.startTime = i - this.holdTime : this.startTime ? this.state === "finished" && (this.startTime = i) : this.startTime = r ?? this.calcStartTime(), this.state === "finished" && this.updateFinishedPromise(), this.cancelTime = this.startTime, this.holdTime = null, this.state = "running", this.driver.start();
|
|
@@ -2888,13 +2888,13 @@ class Br extends No {
|
|
|
2888
2888
|
return this.startTime = 0, this.tick(t, !0);
|
|
2889
2889
|
}
|
|
2890
2890
|
}
|
|
2891
|
-
const
|
|
2891
|
+
const pu = /* @__PURE__ */ new Set([
|
|
2892
2892
|
"opacity",
|
|
2893
2893
|
"clipPath",
|
|
2894
2894
|
"filter",
|
|
2895
2895
|
"transform"
|
|
2896
2896
|
]);
|
|
2897
|
-
function
|
|
2897
|
+
function mu(e, t, n, { delay: r = 0, duration: i = 300, repeat: s = 0, repeatType: o = "loop", ease: a = "easeInOut", times: l } = {}) {
|
|
2898
2898
|
const c = { [t]: n };
|
|
2899
2899
|
l && (c.offset = l);
|
|
2900
2900
|
const u = lo(a, i);
|
|
@@ -2907,11 +2907,11 @@ function pu(e, t, n, { delay: r = 0, duration: i = 300, repeat: s = 0, repeatTyp
|
|
|
2907
2907
|
direction: o === "reverse" ? "alternate" : "normal"
|
|
2908
2908
|
});
|
|
2909
2909
|
}
|
|
2910
|
-
const
|
|
2911
|
-
function
|
|
2910
|
+
const gu = /* @__PURE__ */ fr(() => Object.hasOwnProperty.call(Element.prototype, "animate")), nn = 10, yu = 2e4;
|
|
2911
|
+
function vu(e) {
|
|
2912
2912
|
return jr(e.type) || e.type === "spring" || !ao(e.ease);
|
|
2913
2913
|
}
|
|
2914
|
-
function
|
|
2914
|
+
function xu(e, t) {
|
|
2915
2915
|
const n = new Br({
|
|
2916
2916
|
...t,
|
|
2917
2917
|
keyframes: e,
|
|
@@ -2922,7 +2922,7 @@ function vu(e, t) {
|
|
|
2922
2922
|
let r = { done: !1, value: e[0] };
|
|
2923
2923
|
const i = [];
|
|
2924
2924
|
let s = 0;
|
|
2925
|
-
for (; !r.done && s <
|
|
2925
|
+
for (; !r.done && s < yu; )
|
|
2926
2926
|
r = n.sample(s), i.push(r.value), s += nn;
|
|
2927
2927
|
return {
|
|
2928
2928
|
times: void 0,
|
|
@@ -2936,7 +2936,7 @@ const zo = {
|
|
|
2936
2936
|
backInOut: bo,
|
|
2937
2937
|
circInOut: So
|
|
2938
2938
|
};
|
|
2939
|
-
function
|
|
2939
|
+
function bu(e) {
|
|
2940
2940
|
return e in zo;
|
|
2941
2941
|
}
|
|
2942
2942
|
class Oi extends No {
|
|
@@ -2949,11 +2949,11 @@ class Oi extends No {
|
|
|
2949
2949
|
let { duration: r = 300, times: i, ease: s, type: o, motionValue: a, name: l, startTime: c } = this.options;
|
|
2950
2950
|
if (!a.owner || !a.owner.current)
|
|
2951
2951
|
return !1;
|
|
2952
|
-
if (typeof s == "string" && Qt() &&
|
|
2953
|
-
const { onComplete: f, onUpdate: h, motionValue: m, element: y, ...v } = this.options,
|
|
2954
|
-
t =
|
|
2952
|
+
if (typeof s == "string" && Qt() && bu(s) && (s = zo[s]), vu(this.options)) {
|
|
2953
|
+
const { onComplete: f, onUpdate: h, motionValue: m, element: y, ...v } = this.options, b = xu(t, v);
|
|
2954
|
+
t = b.keyframes, t.length === 1 && (t[1] = t[0]), r = b.duration, i = b.times, s = b.ease, o = "keyframes";
|
|
2955
2955
|
}
|
|
2956
|
-
const u =
|
|
2956
|
+
const u = mu(a.owner.current, l, t, { ...this.options, duration: r, times: i, ease: s });
|
|
2957
2957
|
return u.startTime = c ?? this.calcStartTime(), this.pendingTimeline ? (yi(u, this.pendingTimeline), this.pendingTimeline = void 0) : u.onfinish = () => {
|
|
2958
2958
|
const { onComplete: f } = this.options;
|
|
2959
2959
|
a.set(dn(t, this.options, n)), f && f(), this.cancel(), this.resolveFinishedPromise();
|
|
@@ -3081,28 +3081,28 @@ class Oi extends No {
|
|
|
3081
3081
|
if (!n || !n.owner || !(n.owner.current instanceof HTMLElement))
|
|
3082
3082
|
return !1;
|
|
3083
3083
|
const { onUpdate: l, transformTemplate: c } = n.owner.getProps();
|
|
3084
|
-
return
|
|
3084
|
+
return gu() && r && pu.has(r) && !l && !c && !i && s !== "mirror" && o !== 0 && a !== "inertia";
|
|
3085
3085
|
}
|
|
3086
3086
|
}
|
|
3087
|
-
const
|
|
3087
|
+
const wu = {
|
|
3088
3088
|
type: "spring",
|
|
3089
3089
|
stiffness: 500,
|
|
3090
3090
|
damping: 25,
|
|
3091
3091
|
restSpeed: 10
|
|
3092
|
-
},
|
|
3092
|
+
}, Tu = (e) => ({
|
|
3093
3093
|
type: "spring",
|
|
3094
3094
|
stiffness: 550,
|
|
3095
3095
|
damping: e === 0 ? 2 * Math.sqrt(550) : 30,
|
|
3096
3096
|
restSpeed: 10
|
|
3097
|
-
}),
|
|
3097
|
+
}), Su = {
|
|
3098
3098
|
type: "keyframes",
|
|
3099
3099
|
duration: 0.8
|
|
3100
|
-
},
|
|
3100
|
+
}, Cu = {
|
|
3101
3101
|
type: "keyframes",
|
|
3102
3102
|
ease: [0.25, 0.1, 0.35, 1],
|
|
3103
3103
|
duration: 0.3
|
|
3104
|
-
},
|
|
3105
|
-
function
|
|
3104
|
+
}, Pu = (e, { keyframes: t }) => t.length > 2 ? Su : nt.has(e) ? e.startsWith("scale") ? Tu(t[1]) : wu : Cu;
|
|
3105
|
+
function Eu({ when: e, delay: t, delayChildren: n, staggerChildren: r, staggerDirection: i, repeat: s, repeatType: o, repeatDelay: a, from: l, elapsed: c, ...u }) {
|
|
3106
3106
|
return !!Object.keys(u).length;
|
|
3107
3107
|
}
|
|
3108
3108
|
const $r = (e, t, n, r = {}, i, s) => (o) => {
|
|
@@ -3125,21 +3125,21 @@ const $r = (e, t, n, r = {}, i, s) => (o) => {
|
|
|
3125
3125
|
motionValue: t,
|
|
3126
3126
|
element: s ? void 0 : i
|
|
3127
3127
|
};
|
|
3128
|
-
|
|
3128
|
+
Eu(a) || (u = {
|
|
3129
3129
|
...u,
|
|
3130
|
-
...
|
|
3130
|
+
...Pu(e, u)
|
|
3131
3131
|
}), u.duration && (u.duration = Oe(u.duration)), u.repeatDelay && (u.repeatDelay = Oe(u.repeatDelay)), u.from !== void 0 && (u.keyframes[0] = u.from);
|
|
3132
3132
|
let f = !1;
|
|
3133
|
-
if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (u.duration = 0, u.delay === 0 && (f = !0)), (
|
|
3133
|
+
if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (u.duration = 0, u.delay === 0 && (f = !0)), (oc.current || Bs.skipAnimations) && (f = !0, u.duration = 0, u.delay = 0), f && !s && t.get() !== void 0) {
|
|
3134
3134
|
const h = dn(u.keyframes, a);
|
|
3135
3135
|
if (h !== void 0)
|
|
3136
3136
|
return re.update(() => {
|
|
3137
3137
|
u.onUpdate(h), u.onComplete();
|
|
3138
|
-
}), new
|
|
3138
|
+
}), new Wl([]);
|
|
3139
3139
|
}
|
|
3140
3140
|
return !s && Oi.supports(u) ? new Oi(u) : new Br(u);
|
|
3141
3141
|
};
|
|
3142
|
-
function
|
|
3142
|
+
function ju({ protectedKeys: e, needsAnimating: t }, n) {
|
|
3143
3143
|
const r = e.hasOwnProperty(n) && t[n] !== !0;
|
|
3144
3144
|
return t[n] = !1, r;
|
|
3145
3145
|
}
|
|
@@ -3150,7 +3150,7 @@ function Yo(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
|
|
|
3150
3150
|
const c = [], u = i && e.animationState && e.animationState.getState()[i];
|
|
3151
3151
|
for (const f in l) {
|
|
3152
3152
|
const h = e.getValue(f, (s = e.latestValues[f]) !== null && s !== void 0 ? s : null), m = l[f];
|
|
3153
|
-
if (m === void 0 || u &&
|
|
3153
|
+
if (m === void 0 || u && ju(u, f))
|
|
3154
3154
|
continue;
|
|
3155
3155
|
const y = {
|
|
3156
3156
|
delay: n,
|
|
@@ -3165,12 +3165,12 @@ function Yo(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
|
|
|
3165
3165
|
}
|
|
3166
3166
|
}
|
|
3167
3167
|
Un(e, f), h.start($r(f, h, m, e.shouldReduceMotion && ho.has(f) ? { type: !1 } : y, e, v));
|
|
3168
|
-
const
|
|
3169
|
-
|
|
3168
|
+
const b = h.animation;
|
|
3169
|
+
b && c.push(b);
|
|
3170
3170
|
}
|
|
3171
3171
|
return a && Promise.all(c).then(() => {
|
|
3172
3172
|
re.update(() => {
|
|
3173
|
-
a &&
|
|
3173
|
+
a && ic(e, a);
|
|
3174
3174
|
});
|
|
3175
3175
|
}), c;
|
|
3176
3176
|
}
|
|
@@ -3181,7 +3181,7 @@ function qn(e, t, n = {}) {
|
|
|
3181
3181
|
n.transitionOverride && (s = n.transitionOverride);
|
|
3182
3182
|
const o = i ? () => Promise.all(Yo(e, i, n)) : () => Promise.resolve(), a = e.variantChildren && e.variantChildren.size ? (c = 0) => {
|
|
3183
3183
|
const { delayChildren: u = 0, staggerChildren: f, staggerDirection: h } = s;
|
|
3184
|
-
return
|
|
3184
|
+
return Ru(e, t, u + c, f, h, n);
|
|
3185
3185
|
} : () => Promise.resolve(), { when: l } = s;
|
|
3186
3186
|
if (l) {
|
|
3187
3187
|
const [c, u] = l === "beforeChildren" ? [o, a] : [a, o];
|
|
@@ -3189,19 +3189,19 @@ function qn(e, t, n = {}) {
|
|
|
3189
3189
|
} else
|
|
3190
3190
|
return Promise.all([o(), a(n.delay)]);
|
|
3191
3191
|
}
|
|
3192
|
-
function
|
|
3192
|
+
function Ru(e, t, n = 0, r = 0, i = 1, s) {
|
|
3193
3193
|
const o = [], a = (e.variantChildren.size - 1) * r, l = i === 1 ? (c = 0) => c * r : (c = 0) => a - c * r;
|
|
3194
|
-
return Array.from(e.variantChildren).sort(
|
|
3194
|
+
return Array.from(e.variantChildren).sort(Au).forEach((c, u) => {
|
|
3195
3195
|
c.notify("AnimationStart", t), o.push(qn(c, t, {
|
|
3196
3196
|
...s,
|
|
3197
3197
|
delay: n + l(u)
|
|
3198
3198
|
}).then(() => c.notify("AnimationComplete", t)));
|
|
3199
3199
|
}), Promise.all(o);
|
|
3200
3200
|
}
|
|
3201
|
-
function
|
|
3201
|
+
function Au(e, t) {
|
|
3202
3202
|
return e.sortNodePosition(t);
|
|
3203
3203
|
}
|
|
3204
|
-
function
|
|
3204
|
+
function Mu(e, t, n = {}) {
|
|
3205
3205
|
e.notify("AnimationStart", t);
|
|
3206
3206
|
let r;
|
|
3207
3207
|
if (Array.isArray(t)) {
|
|
@@ -3228,7 +3228,7 @@ function Ko(e, t) {
|
|
|
3228
3228
|
return !1;
|
|
3229
3229
|
return !0;
|
|
3230
3230
|
}
|
|
3231
|
-
const
|
|
3231
|
+
const Vu = hr.length;
|
|
3232
3232
|
function Ho(e) {
|
|
3233
3233
|
if (!e)
|
|
3234
3234
|
return;
|
|
@@ -3237,18 +3237,18 @@ function Ho(e) {
|
|
|
3237
3237
|
return e.props.initial !== void 0 && (n.initial = e.props.initial), n;
|
|
3238
3238
|
}
|
|
3239
3239
|
const t = {};
|
|
3240
|
-
for (let n = 0; n <
|
|
3240
|
+
for (let n = 0; n < Vu; n++) {
|
|
3241
3241
|
const r = hr[n], i = e.props[r];
|
|
3242
3242
|
(Vt(i) || i === !1) && (t[r] = i);
|
|
3243
3243
|
}
|
|
3244
3244
|
return t;
|
|
3245
3245
|
}
|
|
3246
|
-
const
|
|
3247
|
-
function Lu(e) {
|
|
3248
|
-
return (t) => Promise.all(t.map(({ animation: n, options: r }) => Au(e, n, r)));
|
|
3249
|
-
}
|
|
3246
|
+
const Du = [...dr].reverse(), Lu = dr.length;
|
|
3250
3247
|
function Ou(e) {
|
|
3251
|
-
|
|
3248
|
+
return (t) => Promise.all(t.map(({ animation: n, options: r }) => Mu(e, n, r)));
|
|
3249
|
+
}
|
|
3250
|
+
function ku(e) {
|
|
3251
|
+
let t = Ou(e), n = ki(), r = !0;
|
|
3252
3252
|
const i = (l) => (c, u) => {
|
|
3253
3253
|
var f;
|
|
3254
3254
|
const h = Ot(e, u, l === "exit" ? (f = e.presenceContext) === null || f === void 0 ? void 0 : f.custom : void 0);
|
|
@@ -3264,18 +3264,18 @@ function Ou(e) {
|
|
|
3264
3264
|
function o(l) {
|
|
3265
3265
|
const { props: c } = e, u = Ho(e.parent) || {}, f = [], h = /* @__PURE__ */ new Set();
|
|
3266
3266
|
let m = {}, y = 1 / 0;
|
|
3267
|
-
for (let
|
|
3268
|
-
const x =
|
|
3269
|
-
g === !1 && (y =
|
|
3267
|
+
for (let b = 0; b < Lu; b++) {
|
|
3268
|
+
const x = Du[b], C = n[x], E = c[x] !== void 0 ? c[x] : u[x], V = Vt(E), g = x === l ? C.isActive : null;
|
|
3269
|
+
g === !1 && (y = b);
|
|
3270
3270
|
let D = E === u[x] && E !== c[x] && V;
|
|
3271
3271
|
if (D && r && e.manuallyAnimateOnMount && (D = !1), C.protectedKeys = { ...m }, !C.isActive && g === null || !E && !C.prevProp || un(E) || typeof E == "boolean")
|
|
3272
3272
|
continue;
|
|
3273
|
-
const z =
|
|
3274
|
-
let O = z || x === l && C.isActive && !D && V ||
|
|
3273
|
+
const z = _u(C.prevProp, E);
|
|
3274
|
+
let O = z || x === l && C.isActive && !D && V || b > y && V, Z = !1;
|
|
3275
3275
|
const R = Array.isArray(E) ? E : [E];
|
|
3276
3276
|
let H = R.reduce(i(x), {});
|
|
3277
3277
|
g === !1 && (H = {});
|
|
3278
|
-
const { prevResolvedValues: ie = {} } = C,
|
|
3278
|
+
const { prevResolvedValues: ie = {} } = C, W = {
|
|
3279
3279
|
...ie,
|
|
3280
3280
|
...H
|
|
3281
3281
|
}, se = (q) => {
|
|
@@ -3283,12 +3283,12 @@ function Ou(e) {
|
|
|
3283
3283
|
const oe = e.getValue(q);
|
|
3284
3284
|
oe && (oe.liveStyle = !1);
|
|
3285
3285
|
};
|
|
3286
|
-
for (const q in
|
|
3286
|
+
for (const q in W) {
|
|
3287
3287
|
const oe = H[q], me = ie[q];
|
|
3288
3288
|
if (m.hasOwnProperty(q))
|
|
3289
3289
|
continue;
|
|
3290
|
-
let
|
|
3291
|
-
Fn(oe) && Fn(me) ?
|
|
3290
|
+
let w = !1;
|
|
3291
|
+
Fn(oe) && Fn(me) ? w = !Ko(oe, me) : w = oe !== me, w ? oe != null ? se(q) : h.add(q) : oe !== void 0 && h.has(q) ? se(q) : C.protectedKeys[q] = !0;
|
|
3292
3292
|
}
|
|
3293
3293
|
C.prevProp = E, C.prevResolvedValues = H, C.isActive && (m = { ...m, ...H }), r && e.blockInitialAnimation && (O = !1), O && (!(D && z) || Z) && f.push(...R.map((q) => ({
|
|
3294
3294
|
animation: q,
|
|
@@ -3296,15 +3296,15 @@ function Ou(e) {
|
|
|
3296
3296
|
})));
|
|
3297
3297
|
}
|
|
3298
3298
|
if (h.size) {
|
|
3299
|
-
const
|
|
3299
|
+
const b = {};
|
|
3300
3300
|
if (typeof c.initial != "boolean") {
|
|
3301
3301
|
const x = Ot(e, Array.isArray(c.initial) ? c.initial[0] : c.initial);
|
|
3302
|
-
x && x.transition && (
|
|
3302
|
+
x && x.transition && (b.transition = x.transition);
|
|
3303
3303
|
}
|
|
3304
3304
|
h.forEach((x) => {
|
|
3305
3305
|
const C = e.getBaseTarget(x), E = e.getValue(x);
|
|
3306
|
-
E && (E.liveStyle = !0),
|
|
3307
|
-
}), f.push({ animation:
|
|
3306
|
+
E && (E.liveStyle = !0), b[x] = C ?? null;
|
|
3307
|
+
}), f.push({ animation: b });
|
|
3308
3308
|
}
|
|
3309
3309
|
let v = Boolean(f.length);
|
|
3310
3310
|
return r && (c.initial === !1 || c.initial === c.animate) && !e.manuallyAnimateOnMount && (v = !1), r = !1, v ? t(f) : Promise.resolve();
|
|
@@ -3332,7 +3332,7 @@ function Ou(e) {
|
|
|
3332
3332
|
}
|
|
3333
3333
|
};
|
|
3334
3334
|
}
|
|
3335
|
-
function
|
|
3335
|
+
function _u(e, t) {
|
|
3336
3336
|
return typeof t == "string" ? t !== e : Array.isArray(t) ? !Ko(t, e) : !1;
|
|
3337
3337
|
}
|
|
3338
3338
|
function Xe(e = !1) {
|
|
@@ -3361,9 +3361,9 @@ class Ge {
|
|
|
3361
3361
|
update() {
|
|
3362
3362
|
}
|
|
3363
3363
|
}
|
|
3364
|
-
class
|
|
3364
|
+
class Iu extends Ge {
|
|
3365
3365
|
constructor(t) {
|
|
3366
|
-
super(t), t.animationState || (t.animationState =
|
|
3366
|
+
super(t), t.animationState || (t.animationState = ku(t));
|
|
3367
3367
|
}
|
|
3368
3368
|
updateAnimationControlsSubscription() {
|
|
3369
3369
|
const { animate: t } = this.node.getProps();
|
|
@@ -3381,10 +3381,10 @@ class _u extends Ge {
|
|
|
3381
3381
|
this.node.animationState.reset(), (t = this.unmountControls) === null || t === void 0 || t.call(this);
|
|
3382
3382
|
}
|
|
3383
3383
|
}
|
|
3384
|
-
let
|
|
3385
|
-
class
|
|
3384
|
+
let Nu = 0;
|
|
3385
|
+
class Fu extends Ge {
|
|
3386
3386
|
constructor() {
|
|
3387
|
-
super(...arguments), this.id =
|
|
3387
|
+
super(...arguments), this.id = Nu++;
|
|
3388
3388
|
}
|
|
3389
3389
|
update() {
|
|
3390
3390
|
if (!this.node.presenceContext)
|
|
@@ -3404,12 +3404,12 @@ class Nu extends Ge {
|
|
|
3404
3404
|
unmount() {
|
|
3405
3405
|
}
|
|
3406
3406
|
}
|
|
3407
|
-
const
|
|
3407
|
+
const Bu = {
|
|
3408
3408
|
animation: {
|
|
3409
|
-
Feature:
|
|
3409
|
+
Feature: Iu
|
|
3410
3410
|
},
|
|
3411
3411
|
exit: {
|
|
3412
|
-
Feature:
|
|
3412
|
+
Feature: Fu
|
|
3413
3413
|
}
|
|
3414
3414
|
};
|
|
3415
3415
|
function It(e, t, n, r = { passive: !0 }) {
|
|
@@ -3423,9 +3423,9 @@ function Ut(e) {
|
|
|
3423
3423
|
}
|
|
3424
3424
|
};
|
|
3425
3425
|
}
|
|
3426
|
-
const
|
|
3426
|
+
const $u = (e) => (t) => Ar(t) && e(t, Ut(t));
|
|
3427
3427
|
function lt(e, t, n, r) {
|
|
3428
|
-
return It(e, t,
|
|
3428
|
+
return It(e, t, $u(n), r);
|
|
3429
3429
|
}
|
|
3430
3430
|
function Go({ top: e, left: t, right: n, bottom: r }) {
|
|
3431
3431
|
return {
|
|
@@ -3433,10 +3433,10 @@ function Go({ top: e, left: t, right: n, bottom: r }) {
|
|
|
3433
3433
|
y: { min: e, max: r }
|
|
3434
3434
|
};
|
|
3435
3435
|
}
|
|
3436
|
-
function
|
|
3436
|
+
function Uu({ x: e, y: t }) {
|
|
3437
3437
|
return { top: t.min, right: e.max, bottom: t.max, left: e.min };
|
|
3438
3438
|
}
|
|
3439
|
-
function
|
|
3439
|
+
function Wu(e, t) {
|
|
3440
3440
|
if (!t)
|
|
3441
3441
|
return e;
|
|
3442
3442
|
const n = t({ x: e.left, y: e.top }), r = t({ x: e.right, y: e.bottom });
|
|
@@ -3447,15 +3447,15 @@ function Uu(e, t) {
|
|
|
3447
3447
|
right: r.x
|
|
3448
3448
|
};
|
|
3449
3449
|
}
|
|
3450
|
-
const qo = 1e-4,
|
|
3450
|
+
const qo = 1e-4, zu = 1 - qo, Yu = 1 + qo, Xo = 0.01, Ku = 0 - Xo, Hu = 0 + Xo;
|
|
3451
3451
|
function je(e) {
|
|
3452
3452
|
return e.max - e.min;
|
|
3453
3453
|
}
|
|
3454
|
-
function
|
|
3454
|
+
function Gu(e, t, n) {
|
|
3455
3455
|
return Math.abs(e - t) <= n;
|
|
3456
3456
|
}
|
|
3457
3457
|
function _i(e, t, n, r = 0.5) {
|
|
3458
|
-
e.origin = r, e.originPoint = le(t.min, t.max, e.origin), e.scale = je(n) / je(t), e.translate = le(n.min, n.max, e.origin) - e.originPoint, (e.scale >=
|
|
3458
|
+
e.origin = r, e.originPoint = le(t.min, t.max, e.origin), e.scale = je(n) / je(t), e.translate = le(n.min, n.max, e.origin) - e.originPoint, (e.scale >= zu && e.scale <= Yu || isNaN(e.scale)) && (e.scale = 1), (e.translate >= Ku && e.translate <= Hu || isNaN(e.translate)) && (e.translate = 0);
|
|
3459
3459
|
}
|
|
3460
3460
|
function At(e, t, n, r) {
|
|
3461
3461
|
_i(e.x, t.x, n.x, r ? r.originX : void 0), _i(e.y, t.y, n.y, r ? r.originY : void 0);
|
|
@@ -3463,7 +3463,7 @@ function At(e, t, n, r) {
|
|
|
3463
3463
|
function Ii(e, t, n) {
|
|
3464
3464
|
e.min = n.min + t.min, e.max = e.min + je(t);
|
|
3465
3465
|
}
|
|
3466
|
-
function
|
|
3466
|
+
function qu(e, t, n) {
|
|
3467
3467
|
Ii(e.x, t.x, n.x), Ii(e.y, t.y, n.y);
|
|
3468
3468
|
}
|
|
3469
3469
|
function Ni(e, t, n) {
|
|
@@ -3516,7 +3516,7 @@ function Jo(e, { x: t, y: n }) {
|
|
|
3516
3516
|
Zn(e.x, t.translate, t.scale, t.originPoint), Zn(e.y, n.translate, n.scale, n.originPoint);
|
|
3517
3517
|
}
|
|
3518
3518
|
const Wi = 0.999999999999, zi = 1.0000000000001;
|
|
3519
|
-
function
|
|
3519
|
+
function Xu(e, t, n, r = !1) {
|
|
3520
3520
|
const i = n.length;
|
|
3521
3521
|
if (!i)
|
|
3522
3522
|
return;
|
|
@@ -3543,14 +3543,14 @@ function ft(e, t) {
|
|
|
3543
3543
|
Yi(e.x, t.x, t.scaleX, t.scale, t.originX), Yi(e.y, t.y, t.scaleY, t.scale, t.originY);
|
|
3544
3544
|
}
|
|
3545
3545
|
function Qo(e, t) {
|
|
3546
|
-
return Go(
|
|
3546
|
+
return Go(Wu(e.getBoundingClientRect(), t));
|
|
3547
3547
|
}
|
|
3548
|
-
function
|
|
3548
|
+
function Zu(e, t, n) {
|
|
3549
3549
|
const r = Qo(e, n), { scroll: i } = t;
|
|
3550
3550
|
return i && (ut(r.x, i.offset.x), ut(r.y, i.offset.y)), r;
|
|
3551
3551
|
}
|
|
3552
3552
|
const Ki = (e, t) => Math.abs(e - t);
|
|
3553
|
-
function
|
|
3553
|
+
function Ju(e, t) {
|
|
3554
3554
|
const n = Ki(e.x, t.x), r = Ki(e.y, t.y);
|
|
3555
3555
|
return Math.sqrt(n ** 2 + r ** 2);
|
|
3556
3556
|
}
|
|
@@ -3559,13 +3559,13 @@ class ea {
|
|
|
3559
3559
|
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.updatePoint = () => {
|
|
3560
3560
|
if (!(this.lastMoveEvent && this.lastMoveEventInfo))
|
|
3561
3561
|
return;
|
|
3562
|
-
const u = En(this.lastMoveEventInfo, this.history), f = this.startEvent !== null, h =
|
|
3562
|
+
const u = En(this.lastMoveEventInfo, this.history), f = this.startEvent !== null, h = Ju(u.offset, { x: 0, y: 0 }) >= 3;
|
|
3563
3563
|
if (!f && !h)
|
|
3564
3564
|
return;
|
|
3565
3565
|
const { point: m } = u, { timestamp: y } = we;
|
|
3566
3566
|
this.history.push({ ...m, timestamp: y });
|
|
3567
|
-
const { onStart: v, onMove:
|
|
3568
|
-
f || (v && v(this.lastMoveEvent, u), this.startEvent = this.lastMoveEvent),
|
|
3567
|
+
const { onStart: v, onMove: b } = this.handlers;
|
|
3568
|
+
f || (v && v(this.lastMoveEvent, u), this.startEvent = this.lastMoveEvent), b && b(this.lastMoveEvent, u);
|
|
3569
3569
|
}, this.handlePointerMove = (u, f) => {
|
|
3570
3570
|
if (u.target instanceof Element && u.target.hasPointerCapture && u.pointerId !== void 0)
|
|
3571
3571
|
try {
|
|
@@ -3606,17 +3606,17 @@ function En({ point: e }, t) {
|
|
|
3606
3606
|
return {
|
|
3607
3607
|
point: e,
|
|
3608
3608
|
delta: Hi(e, ta(t)),
|
|
3609
|
-
offset: Hi(e,
|
|
3610
|
-
velocity:
|
|
3609
|
+
offset: Hi(e, Qu(t)),
|
|
3610
|
+
velocity: ef(t, 0.1)
|
|
3611
3611
|
};
|
|
3612
3612
|
}
|
|
3613
|
-
function
|
|
3613
|
+
function Qu(e) {
|
|
3614
3614
|
return e[0];
|
|
3615
3615
|
}
|
|
3616
3616
|
function ta(e) {
|
|
3617
3617
|
return e[e.length - 1];
|
|
3618
3618
|
}
|
|
3619
|
-
function
|
|
3619
|
+
function ef(e, t) {
|
|
3620
3620
|
if (e.length < 2)
|
|
3621
3621
|
return { x: 0, y: 0 };
|
|
3622
3622
|
let n = e.length - 1, r = null;
|
|
@@ -3634,7 +3634,7 @@ function Qu(e, t) {
|
|
|
3634
3634
|
};
|
|
3635
3635
|
return o.x === 1 / 0 && (o.x = 0), o.y === 1 / 0 && (o.y = 0), o;
|
|
3636
3636
|
}
|
|
3637
|
-
function
|
|
3637
|
+
function tf(e, { min: t, max: n }, r) {
|
|
3638
3638
|
return t !== void 0 && e < t ? e = r ? le(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? le(n, e, r.max) : Math.min(e, n)), e;
|
|
3639
3639
|
}
|
|
3640
3640
|
function Gi(e, t, n) {
|
|
@@ -3643,7 +3643,7 @@ function Gi(e, t, n) {
|
|
|
3643
3643
|
max: n !== void 0 ? e.max + n - (e.max - e.min) : void 0
|
|
3644
3644
|
};
|
|
3645
3645
|
}
|
|
3646
|
-
function
|
|
3646
|
+
function nf(e, { top: t, left: n, bottom: r, right: i }) {
|
|
3647
3647
|
return {
|
|
3648
3648
|
x: Gi(e.x, n, i),
|
|
3649
3649
|
y: Gi(e.y, t, r)
|
|
@@ -3653,23 +3653,23 @@ function qi(e, t) {
|
|
|
3653
3653
|
let n = t.min - e.min, r = t.max - e.max;
|
|
3654
3654
|
return t.max - t.min < e.max - e.min && ([n, r] = [r, n]), { min: n, max: r };
|
|
3655
3655
|
}
|
|
3656
|
-
function
|
|
3656
|
+
function rf(e, t) {
|
|
3657
3657
|
return {
|
|
3658
3658
|
x: qi(e.x, t.x),
|
|
3659
3659
|
y: qi(e.y, t.y)
|
|
3660
3660
|
};
|
|
3661
3661
|
}
|
|
3662
|
-
function
|
|
3662
|
+
function sf(e, t) {
|
|
3663
3663
|
let n = 0.5;
|
|
3664
3664
|
const r = je(e), i = je(t);
|
|
3665
3665
|
return i > r ? n = dt(t.min, t.max - r, e.min) : r > i && (n = dt(e.min, e.max - i, t.min)), Be(0, 1, n);
|
|
3666
3666
|
}
|
|
3667
|
-
function
|
|
3667
|
+
function of(e, t) {
|
|
3668
3668
|
const n = {};
|
|
3669
3669
|
return t.min !== void 0 && (n.min = t.min - e.min), t.max !== void 0 && (n.max = t.max - e.min), n;
|
|
3670
3670
|
}
|
|
3671
3671
|
const Jn = 0.35;
|
|
3672
|
-
function
|
|
3672
|
+
function af(e = Jn) {
|
|
3673
3673
|
return e === !1 ? e = 0 : e === !0 && (e = Jn), {
|
|
3674
3674
|
x: Xi(e, "left", "right"),
|
|
3675
3675
|
y: Xi(e, "top", "bottom")
|
|
@@ -3684,8 +3684,8 @@ function Xi(e, t, n) {
|
|
|
3684
3684
|
function Zi(e, t) {
|
|
3685
3685
|
return typeof e == "number" ? e : e[t] || 0;
|
|
3686
3686
|
}
|
|
3687
|
-
const
|
|
3688
|
-
class
|
|
3687
|
+
const lf = /* @__PURE__ */ new WeakMap();
|
|
3688
|
+
class cf {
|
|
3689
3689
|
constructor(t) {
|
|
3690
3690
|
this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = fe(), this.visualElement = t;
|
|
3691
3691
|
}
|
|
@@ -3698,18 +3698,18 @@ class lf {
|
|
|
3698
3698
|
f ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor(Ut(u).point);
|
|
3699
3699
|
}, s = (u, f) => {
|
|
3700
3700
|
const { drag: h, dragPropagation: m, onDragStart: y } = this.getProps();
|
|
3701
|
-
if (h && !m && (this.openDragLock && this.openDragLock(), this.openDragLock =
|
|
3701
|
+
if (h && !m && (this.openDragLock && this.openDragLock(), this.openDragLock = Ql(h), !this.openDragLock))
|
|
3702
3702
|
return;
|
|
3703
|
-
this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), De((
|
|
3704
|
-
let x = this.getAxisMotionValue(
|
|
3703
|
+
this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), De((b) => {
|
|
3704
|
+
let x = this.getAxisMotionValue(b).get() || 0;
|
|
3705
3705
|
if (ke.test(x)) {
|
|
3706
3706
|
const { projection: C } = this.visualElement;
|
|
3707
3707
|
if (C && C.layout) {
|
|
3708
|
-
const E = C.layout.layoutBox[
|
|
3708
|
+
const E = C.layout.layoutBox[b];
|
|
3709
3709
|
E && (x = je(E) * (parseFloat(x) / 100));
|
|
3710
3710
|
}
|
|
3711
3711
|
}
|
|
3712
|
-
this.originPoint[
|
|
3712
|
+
this.originPoint[b] = x;
|
|
3713
3713
|
}), y && re.postRender(() => y(u, f)), Un(this.visualElement, "transform");
|
|
3714
3714
|
const { animationState: v } = this.visualElement;
|
|
3715
3715
|
v && v.setActive("whileDrag", !0);
|
|
@@ -3717,12 +3717,12 @@ class lf {
|
|
|
3717
3717
|
const { dragPropagation: h, dragDirectionLock: m, onDirectionLock: y, onDrag: v } = this.getProps();
|
|
3718
3718
|
if (!h && !this.openDragLock)
|
|
3719
3719
|
return;
|
|
3720
|
-
const { offset:
|
|
3720
|
+
const { offset: b } = f;
|
|
3721
3721
|
if (m && this.currentDirection === null) {
|
|
3722
|
-
this.currentDirection =
|
|
3722
|
+
this.currentDirection = uf(b), this.currentDirection !== null && y && y(this.currentDirection);
|
|
3723
3723
|
return;
|
|
3724
3724
|
}
|
|
3725
|
-
this.updateAxis("x", f.point,
|
|
3725
|
+
this.updateAxis("x", f.point, b), this.updateAxis("y", f.point, b), this.visualElement.render(), v && v(u, f);
|
|
3726
3726
|
}, a = (u, f) => this.stop(u, f), l = () => De((u) => {
|
|
3727
3727
|
var f;
|
|
3728
3728
|
return this.getAnimationState(u) === "paused" && ((f = this.getAxisMotionValue(u).animation) === null || f === void 0 ? void 0 : f.play());
|
|
@@ -3760,13 +3760,13 @@ class lf {
|
|
|
3760
3760
|
return;
|
|
3761
3761
|
const s = this.getAxisMotionValue(t);
|
|
3762
3762
|
let o = this.originPoint[t] + r[t];
|
|
3763
|
-
this.constraints && this.constraints[t] && (o =
|
|
3763
|
+
this.constraints && this.constraints[t] && (o = tf(o, this.constraints[t], this.elastic[t])), s.set(o);
|
|
3764
3764
|
}
|
|
3765
3765
|
resolveConstraints() {
|
|
3766
3766
|
var t;
|
|
3767
3767
|
const { dragConstraints: n, dragElastic: r } = this.getProps(), i = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : (t = this.visualElement.projection) === null || t === void 0 ? void 0 : t.layout, s = this.constraints;
|
|
3768
|
-
n && ot(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && i ? this.constraints =
|
|
3769
|
-
this.constraints !== !1 && this.getAxisMotionValue(o) && (this.constraints[o] =
|
|
3768
|
+
n && ot(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && i ? this.constraints = nf(i.layoutBox, n) : this.constraints = !1, this.elastic = af(r), s !== this.constraints && i && this.constraints && !this.hasMutatedConstraints && De((o) => {
|
|
3769
|
+
this.constraints !== !1 && this.getAxisMotionValue(o) && (this.constraints[o] = of(i.layoutBox[o], this.constraints[o]));
|
|
3770
3770
|
});
|
|
3771
3771
|
}
|
|
3772
3772
|
resolveRefConstraints() {
|
|
@@ -3778,10 +3778,10 @@ class lf {
|
|
|
3778
3778
|
const { projection: i } = this.visualElement;
|
|
3779
3779
|
if (!i || !i.layout)
|
|
3780
3780
|
return !1;
|
|
3781
|
-
const s =
|
|
3782
|
-
let o =
|
|
3781
|
+
const s = Zu(r, i.root, this.visualElement.getTransformPagePoint());
|
|
3782
|
+
let o = rf(i.layout.layoutBox, s);
|
|
3783
3783
|
if (n) {
|
|
3784
|
-
const a = n(
|
|
3784
|
+
const a = n(Uu(o));
|
|
3785
3785
|
this.hasMutatedConstraints = !!a, a && (o = Go(a));
|
|
3786
3786
|
}
|
|
3787
3787
|
return o;
|
|
@@ -3852,7 +3852,7 @@ class lf {
|
|
|
3852
3852
|
const a = this.getAxisMotionValue(o);
|
|
3853
3853
|
if (a && this.constraints !== !1) {
|
|
3854
3854
|
const l = a.get();
|
|
3855
|
-
i[o] =
|
|
3855
|
+
i[o] = sf({ min: l, max: l }, this.constraints[o]);
|
|
3856
3856
|
}
|
|
3857
3857
|
});
|
|
3858
3858
|
const { transformTemplate: s } = this.visualElement.getProps();
|
|
@@ -3866,7 +3866,7 @@ class lf {
|
|
|
3866
3866
|
addListeners() {
|
|
3867
3867
|
if (!this.visualElement.current)
|
|
3868
3868
|
return;
|
|
3869
|
-
|
|
3869
|
+
lf.set(this.visualElement, this);
|
|
3870
3870
|
const t = this.visualElement.current, n = lt(t, "pointerdown", (l) => {
|
|
3871
3871
|
const { drag: c, dragListener: u = !0 } = this.getProps();
|
|
3872
3872
|
c && u && this.start(l);
|
|
@@ -3901,13 +3901,13 @@ class lf {
|
|
|
3901
3901
|
function Ht(e, t, n) {
|
|
3902
3902
|
return (t === !0 || t === e) && (n === null || n === e);
|
|
3903
3903
|
}
|
|
3904
|
-
function
|
|
3904
|
+
function uf(e, t = 10) {
|
|
3905
3905
|
let n = null;
|
|
3906
3906
|
return Math.abs(e.y) > t ? n = "y" : Math.abs(e.x) > t && (n = "x"), n;
|
|
3907
3907
|
}
|
|
3908
|
-
class
|
|
3908
|
+
class ff extends Ge {
|
|
3909
3909
|
constructor(t) {
|
|
3910
|
-
super(t), this.removeGroupControls = Ae, this.removeListeners = Ae, this.controls = new
|
|
3910
|
+
super(t), this.removeGroupControls = Ae, this.removeListeners = Ae, this.controls = new cf(t);
|
|
3911
3911
|
}
|
|
3912
3912
|
mount() {
|
|
3913
3913
|
const { dragControls: t } = this.node.getProps();
|
|
@@ -3920,7 +3920,7 @@ class uf extends Ge {
|
|
|
3920
3920
|
const Ji = (e) => (t, n) => {
|
|
3921
3921
|
e && re.postRender(() => e(t, n));
|
|
3922
3922
|
};
|
|
3923
|
-
class
|
|
3923
|
+
class df extends Ge {
|
|
3924
3924
|
constructor() {
|
|
3925
3925
|
super(...arguments), this.removePointerDownListener = Ae;
|
|
3926
3926
|
}
|
|
@@ -3969,7 +3969,7 @@ const Tt = {
|
|
|
3969
3969
|
const n = Qi(e, t.target.x), r = Qi(e, t.target.y);
|
|
3970
3970
|
return `${n}% ${r}%`;
|
|
3971
3971
|
}
|
|
3972
|
-
},
|
|
3972
|
+
}, hf = {
|
|
3973
3973
|
correct: (e, { treeScale: t, projectionDelta: n }) => {
|
|
3974
3974
|
const r = e, i = Ke.parse(e);
|
|
3975
3975
|
if (i.length > 5)
|
|
@@ -3980,10 +3980,10 @@ const Tt = {
|
|
|
3980
3980
|
return typeof i[2 + o] == "number" && (i[2 + o] /= c), typeof i[3 + o] == "number" && (i[3 + o] /= c), s(i);
|
|
3981
3981
|
}
|
|
3982
3982
|
};
|
|
3983
|
-
class
|
|
3983
|
+
class pf extends Ua {
|
|
3984
3984
|
componentDidMount() {
|
|
3985
3985
|
const { visualElement: t, layoutGroup: n, switchLayoutGroup: r, layoutId: i } = this.props, { projection: s } = t;
|
|
3986
|
-
|
|
3986
|
+
gl(mf), s && (n.group && n.group.add(s), r && r.register && i && r.register(s), s.root.didUpdate(), s.addEventListener("animationComplete", () => {
|
|
3987
3987
|
this.safeToRemove();
|
|
3988
3988
|
}), s.setOptions({
|
|
3989
3989
|
...s.options,
|
|
@@ -4017,9 +4017,9 @@ class hf extends $a {
|
|
|
4017
4017
|
}
|
|
4018
4018
|
function na(e) {
|
|
4019
4019
|
const [t, n] = Is(), r = Ce(ar);
|
|
4020
|
-
return p.exports.jsx(
|
|
4020
|
+
return p.exports.jsx(pf, { ...e, layoutGroup: r, switchLayoutGroup: Ce(Ks), isPresent: t, safeToRemove: n });
|
|
4021
4021
|
}
|
|
4022
|
-
const
|
|
4022
|
+
const mf = {
|
|
4023
4023
|
borderRadius: {
|
|
4024
4024
|
...Tt,
|
|
4025
4025
|
applyTo: [
|
|
@@ -4033,17 +4033,17 @@ const pf = {
|
|
|
4033
4033
|
borderTopRightRadius: Tt,
|
|
4034
4034
|
borderBottomLeftRadius: Tt,
|
|
4035
4035
|
borderBottomRightRadius: Tt,
|
|
4036
|
-
boxShadow:
|
|
4036
|
+
boxShadow: hf
|
|
4037
4037
|
};
|
|
4038
|
-
function
|
|
4038
|
+
function gf(e, t, n) {
|
|
4039
4039
|
const r = Pe(e) ? e : kt(e);
|
|
4040
4040
|
return r.start($r("", r, t, n)), r.animation;
|
|
4041
4041
|
}
|
|
4042
|
-
function
|
|
4042
|
+
function yf(e) {
|
|
4043
4043
|
return e instanceof SVGElement && e.tagName !== "svg";
|
|
4044
4044
|
}
|
|
4045
|
-
const
|
|
4046
|
-
class
|
|
4045
|
+
const vf = (e, t) => e.depth - t.depth;
|
|
4046
|
+
class xf {
|
|
4047
4047
|
constructor() {
|
|
4048
4048
|
this.children = [], this.isDirty = !1;
|
|
4049
4049
|
}
|
|
@@ -4054,24 +4054,24 @@ class vf {
|
|
|
4054
4054
|
Vr(this.children, t), this.isDirty = !0;
|
|
4055
4055
|
}
|
|
4056
4056
|
forEach(t) {
|
|
4057
|
-
this.isDirty && this.children.sort(
|
|
4057
|
+
this.isDirty && this.children.sort(vf), this.isDirty = !1, this.children.forEach(t);
|
|
4058
4058
|
}
|
|
4059
4059
|
}
|
|
4060
|
-
function
|
|
4060
|
+
function bf(e, t) {
|
|
4061
4061
|
const n = _e.now(), r = ({ timestamp: i }) => {
|
|
4062
4062
|
const s = i - n;
|
|
4063
4063
|
s >= t && (Ye(r), e(s - t));
|
|
4064
4064
|
};
|
|
4065
4065
|
return re.read(r, !0), () => Ye(r);
|
|
4066
4066
|
}
|
|
4067
|
-
const ra = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"],
|
|
4068
|
-
function
|
|
4067
|
+
const ra = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], wf = ra.length, es = (e) => typeof e == "string" ? parseFloat(e) : e, ts = (e) => typeof e == "number" || k.test(e);
|
|
4068
|
+
function Tf(e, t, n, r, i, s) {
|
|
4069
4069
|
i ? (e.opacity = le(
|
|
4070
4070
|
0,
|
|
4071
4071
|
n.opacity !== void 0 ? n.opacity : 1,
|
|
4072
|
-
|
|
4073
|
-
), e.opacityExit = le(t.opacity !== void 0 ? t.opacity : 1, 0,
|
|
4074
|
-
for (let o = 0; o <
|
|
4072
|
+
Sf(r)
|
|
4073
|
+
), e.opacityExit = le(t.opacity !== void 0 ? t.opacity : 1, 0, Cf(r))) : s && (e.opacity = le(t.opacity !== void 0 ? t.opacity : 1, n.opacity !== void 0 ? n.opacity : 1, r));
|
|
4074
|
+
for (let o = 0; o < wf; o++) {
|
|
4075
4075
|
const a = `border${ra[o]}Radius`;
|
|
4076
4076
|
let l = ns(t, a), c = ns(n, a);
|
|
4077
4077
|
if (l === void 0 && c === void 0)
|
|
@@ -4083,7 +4083,7 @@ function wf(e, t, n, r, i, s) {
|
|
|
4083
4083
|
function ns(e, t) {
|
|
4084
4084
|
return e[t] !== void 0 ? e[t] : e.borderRadius;
|
|
4085
4085
|
}
|
|
4086
|
-
const
|
|
4086
|
+
const Sf = /* @__PURE__ */ ia(0, 0.5, To), Cf = /* @__PURE__ */ ia(0.5, 0.95, Ae);
|
|
4087
4087
|
function ia(e, t, n) {
|
|
4088
4088
|
return (r) => r < e ? 0 : r > t ? 1 : n(dt(e, t, r));
|
|
4089
4089
|
}
|
|
@@ -4099,18 +4099,18 @@ function is(e, t) {
|
|
|
4099
4099
|
function ss(e, t, n, r, i) {
|
|
4100
4100
|
return e -= t, e = rn(e, 1 / n, r), i !== void 0 && (e = rn(e, 1 / i, r)), e;
|
|
4101
4101
|
}
|
|
4102
|
-
function
|
|
4102
|
+
function Pf(e, t = 0, n = 1, r = 0.5, i, s = e, o = e) {
|
|
4103
4103
|
if (ke.test(t) && (t = parseFloat(t), t = le(o.min, o.max, t / 100) - o.min), typeof t != "number")
|
|
4104
4104
|
return;
|
|
4105
4105
|
let a = le(s.min, s.max, r);
|
|
4106
4106
|
e === s && (a -= t), e.min = ss(e.min, t, n, a, i), e.max = ss(e.max, t, n, a, i);
|
|
4107
4107
|
}
|
|
4108
4108
|
function os(e, t, [n, r, i], s, o) {
|
|
4109
|
-
|
|
4109
|
+
Pf(e, t[n], t[r], t[i], t.scale, s, o);
|
|
4110
4110
|
}
|
|
4111
|
-
const
|
|
4111
|
+
const Ef = ["x", "scaleX", "originX"], jf = ["y", "scaleY", "originY"];
|
|
4112
4112
|
function as(e, t, n, r) {
|
|
4113
|
-
os(e.x, t,
|
|
4113
|
+
os(e.x, t, Ef, n ? n.x : void 0, r ? r.x : void 0), os(e.y, t, jf, n ? n.y : void 0, r ? r.y : void 0);
|
|
4114
4114
|
}
|
|
4115
4115
|
function ls(e) {
|
|
4116
4116
|
return e.translate === 0 && e.scale === 1;
|
|
@@ -4121,7 +4121,7 @@ function sa(e) {
|
|
|
4121
4121
|
function cs(e, t) {
|
|
4122
4122
|
return e.min === t.min && e.max === t.max;
|
|
4123
4123
|
}
|
|
4124
|
-
function
|
|
4124
|
+
function Rf(e, t) {
|
|
4125
4125
|
return cs(e.x, t.x) && cs(e.y, t.y);
|
|
4126
4126
|
}
|
|
4127
4127
|
function us(e, t) {
|
|
@@ -4136,7 +4136,7 @@ function fs(e) {
|
|
|
4136
4136
|
function ds(e, t) {
|
|
4137
4137
|
return e.translate === t.translate && e.scale === t.scale && e.originPoint === t.originPoint;
|
|
4138
4138
|
}
|
|
4139
|
-
class
|
|
4139
|
+
class Af {
|
|
4140
4140
|
constructor() {
|
|
4141
4141
|
this.members = [];
|
|
4142
4142
|
}
|
|
@@ -4186,7 +4186,7 @@ class Rf {
|
|
|
4186
4186
|
this.lead && this.lead.snapshot && (this.lead.snapshot = void 0);
|
|
4187
4187
|
}
|
|
4188
4188
|
}
|
|
4189
|
-
function
|
|
4189
|
+
function Mf(e, t, n) {
|
|
4190
4190
|
let r = "";
|
|
4191
4191
|
const i = e.x.translate / t.x, s = e.y.translate / t.y, o = (n == null ? void 0 : n.z) || 0;
|
|
4192
4192
|
if ((i || s || o) && (r = `translate3d(${i}px, ${s}px, ${o}px) `), (t.x !== 1 || t.y !== 1) && (r += `scale(${1 / t.x}, ${1 / t.y}) `), n) {
|
|
@@ -4200,8 +4200,8 @@ const Je = {
|
|
|
4200
4200
|
nodes: 0,
|
|
4201
4201
|
calculatedTargetDeltas: 0,
|
|
4202
4202
|
calculatedProjections: 0
|
|
4203
|
-
}, jn = ["", "X", "Y", "Z"],
|
|
4204
|
-
let
|
|
4203
|
+
}, jn = ["", "X", "Y", "Z"], Vf = { visibility: "hidden" }, hs = 1e3;
|
|
4204
|
+
let Df = 0;
|
|
4205
4205
|
function Rn(e, t, n, r) {
|
|
4206
4206
|
const { latestValues: i } = t;
|
|
4207
4207
|
i[e] && (n[e] = i[e], t.setStaticValue(e, 0), r && (r[e] = 0));
|
|
@@ -4223,14 +4223,14 @@ function aa(e) {
|
|
|
4223
4223
|
function la({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
|
|
4224
4224
|
return class {
|
|
4225
4225
|
constructor(o = {}, a = t == null ? void 0 : t()) {
|
|
4226
|
-
this.id =
|
|
4226
|
+
this.id = Df++, 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 = () => {
|
|
4227
4227
|
this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
|
|
4228
4228
|
}, this.updateProjection = () => {
|
|
4229
|
-
this.projectionUpdateScheduled = !1, We.value && (Je.nodes = Je.calculatedTargetDeltas = Je.calculatedProjections = 0), this.nodes.forEach(
|
|
4229
|
+
this.projectionUpdateScheduled = !1, We.value && (Je.nodes = Je.calculatedTargetDeltas = Je.calculatedProjections = 0), this.nodes.forEach(kf), this.nodes.forEach(Bf), this.nodes.forEach($f), this.nodes.forEach(_f), We.addProjectionMetrics && We.addProjectionMetrics(Je);
|
|
4230
4230
|
}, this.resolvedRelativeTargetAt = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = o, this.root = a ? a.root || a : this, this.path = a ? [...a.path, a] : [], this.parent = a, this.depth = a ? a.depth + 1 : 0;
|
|
4231
4231
|
for (let l = 0; l < this.path.length; l++)
|
|
4232
4232
|
this.path[l].shouldResetTransform = !0;
|
|
4233
|
-
this.root === this && (this.nodes = new
|
|
4233
|
+
this.root === this && (this.nodes = new xf());
|
|
4234
4234
|
}
|
|
4235
4235
|
addEventListener(o, a) {
|
|
4236
4236
|
return this.eventHandlers.has(o) || this.eventHandlers.set(o, new Dr()), this.eventHandlers.get(o).add(a);
|
|
@@ -4245,13 +4245,13 @@ function la({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4245
4245
|
mount(o, a = this.root.hasTreeAnimated) {
|
|
4246
4246
|
if (this.instance)
|
|
4247
4247
|
return;
|
|
4248
|
-
this.isSVG =
|
|
4248
|
+
this.isSVG = yf(o), this.instance = o;
|
|
4249
4249
|
const { layoutId: l, layout: c, visualElement: u } = this.options;
|
|
4250
4250
|
if (u && !u.current && u.mount(o), this.root.nodes.add(this), this.parent && this.parent.children.add(this), a && (c || l) && (this.isLayoutDirty = !0), e) {
|
|
4251
4251
|
let f;
|
|
4252
4252
|
const h = () => this.root.updateBlockedByResize = !1;
|
|
4253
4253
|
e(o, () => {
|
|
4254
|
-
this.root.updateBlockedByResize = !0, f && f(), f =
|
|
4254
|
+
this.root.updateBlockedByResize = !0, f && f(), f = bf(h, 250), Zt.hasAnimatedSinceResize && (Zt.hasAnimatedSinceResize = !1, this.nodes.forEach(ms));
|
|
4255
4255
|
});
|
|
4256
4256
|
}
|
|
4257
4257
|
l && this.root.registerSharedNode(l, this), this.options.animate !== !1 && u && (l || c) && this.addEventListener("didUpdate", ({ delta: f, hasLayoutChanged: h, hasRelativeLayoutChanged: m, layout: y }) => {
|
|
@@ -4259,12 +4259,12 @@ function la({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4259
4259
|
this.target = void 0, this.relativeTarget = void 0;
|
|
4260
4260
|
return;
|
|
4261
4261
|
}
|
|
4262
|
-
const v = this.options.transition || u.getDefaultTransition() ||
|
|
4262
|
+
const v = this.options.transition || u.getDefaultTransition() || Kf, { onLayoutAnimationStart: b, onLayoutAnimationComplete: x } = u.getProps(), C = !this.targetLayout || !oa(this.targetLayout, y), E = !h && m;
|
|
4263
4263
|
if (this.options.layoutRoot || this.resumeFrom || E || h && (C || !this.currentAnimation)) {
|
|
4264
4264
|
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(f, E);
|
|
4265
4265
|
const V = {
|
|
4266
4266
|
...Er(v, "layout"),
|
|
4267
|
-
onPlay:
|
|
4267
|
+
onPlay: b,
|
|
4268
4268
|
onComplete: x
|
|
4269
4269
|
};
|
|
4270
4270
|
(u.shouldReduceMotion || this.options.layoutRoot) && (V.delay = 0, V.type = !1), this.startAnimation(V);
|
|
@@ -4291,7 +4291,7 @@ function la({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4291
4291
|
return this.isAnimationBlocked || this.parent && this.parent.isTreeAnimationBlocked() || !1;
|
|
4292
4292
|
}
|
|
4293
4293
|
startUpdate() {
|
|
4294
|
-
this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(
|
|
4294
|
+
this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(Uf), this.animationId++);
|
|
4295
4295
|
}
|
|
4296
4296
|
getTransformTemplate() {
|
|
4297
4297
|
const { visualElement: o } = this.options;
|
|
@@ -4320,7 +4320,7 @@ function la({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4320
4320
|
this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(ps);
|
|
4321
4321
|
return;
|
|
4322
4322
|
}
|
|
4323
|
-
this.isUpdating || this.nodes.forEach(
|
|
4323
|
+
this.isUpdating || this.nodes.forEach(Nf), this.isUpdating = !1, this.nodes.forEach(Ff), this.nodes.forEach(Lf), this.nodes.forEach(Of), this.clearAllSnapshots();
|
|
4324
4324
|
const a = _e.now();
|
|
4325
4325
|
we.delta = Be(0, 1e3 / 60, a - we.timestamp), we.timestamp = a, we.isProcessing = !0, vn.update.process(we), vn.preRender.process(we), vn.render.process(we), we.isProcessing = !1;
|
|
4326
4326
|
}
|
|
@@ -4328,7 +4328,7 @@ function la({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4328
4328
|
this.updateScheduled || (this.updateScheduled = !0, mr.read(this.scheduleUpdate));
|
|
4329
4329
|
}
|
|
4330
4330
|
clearAllSnapshots() {
|
|
4331
|
-
this.nodes.forEach(
|
|
4331
|
+
this.nodes.forEach(If), this.sharedNodes.forEach(Wf);
|
|
4332
4332
|
}
|
|
4333
4333
|
scheduleUpdateProjection() {
|
|
4334
4334
|
this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, re.preRender(this.updateProjection, !1, !0));
|
|
@@ -4374,7 +4374,7 @@ function la({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4374
4374
|
measure(o = !0) {
|
|
4375
4375
|
const a = this.measurePageBox();
|
|
4376
4376
|
let l = this.removeElementScroll(a);
|
|
4377
|
-
return o && (l = this.removeTransform(l)),
|
|
4377
|
+
return o && (l = this.removeTransform(l)), Hf(l), {
|
|
4378
4378
|
animationId: this.root.animationId,
|
|
4379
4379
|
measuredBox: a,
|
|
4380
4380
|
layoutBox: l,
|
|
@@ -4388,7 +4388,7 @@ function la({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4388
4388
|
if (!a)
|
|
4389
4389
|
return fe();
|
|
4390
4390
|
const l = a.measureViewportBox();
|
|
4391
|
-
if (!(((o = this.scroll) === null || o === void 0 ? void 0 : o.wasRoot) || this.path.some(
|
|
4391
|
+
if (!(((o = this.scroll) === null || o === void 0 ? void 0 : o.wasRoot) || this.path.some(Gf))) {
|
|
4392
4392
|
const { scroll: u } = this.root;
|
|
4393
4393
|
u && (ut(l.x, u.offset.x), ut(l.y, u.offset.y));
|
|
4394
4394
|
}
|
|
@@ -4460,7 +4460,7 @@ function la({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4460
4460
|
m && m.layout && this.animationProgress !== 1 ? (this.relativeParent = m, this.forceRelativeParentToResolveTarget(), this.relativeTarget = fe(), this.relativeTargetOrigin = fe(), Mt(this.relativeTargetOrigin, this.layout.layoutBox, m.layout.layoutBox), Ve(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
4461
4461
|
}
|
|
4462
4462
|
if (!(!this.relativeTarget && !this.targetDelta)) {
|
|
4463
|
-
if (this.target || (this.target = fe(), this.targetWithTransforms = fe()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(),
|
|
4463
|
+
if (this.target || (this.target = fe(), this.targetWithTransforms = fe()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), qu(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (Boolean(this.resumingFrom) ? this.target = this.applyTransform(this.layout.layoutBox) : Ve(this.target, this.layout.layoutBox), Jo(this.target, this.targetDelta)) : Ve(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
|
|
4464
4464
|
this.attemptToResolveRelativeTarget = !1;
|
|
4465
4465
|
const m = this.getClosestProjectingParent();
|
|
4466
4466
|
m && Boolean(m.resumingFrom) === Boolean(this.resumingFrom) && !m.options.layoutScroll && m.target && this.animationProgress !== 1 ? (this.relativeParent = m, this.forceRelativeParentToResolveTarget(), this.relativeTarget = fe(), this.relativeTargetOrigin = fe(), Mt(this.relativeTargetOrigin, this.target, m.target), Ve(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
@@ -4487,7 +4487,7 @@ function la({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4487
4487
|
return;
|
|
4488
4488
|
Ve(this.layoutCorrected, this.layout.layoutBox);
|
|
4489
4489
|
const h = this.treeScale.x, m = this.treeScale.y;
|
|
4490
|
-
|
|
4490
|
+
Xu(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 = fe());
|
|
4491
4491
|
const { target: y } = a;
|
|
4492
4492
|
if (!y) {
|
|
4493
4493
|
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
|
|
@@ -4515,17 +4515,17 @@ function la({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4515
4515
|
setAnimationOrigin(o, a = !1) {
|
|
4516
4516
|
const l = this.snapshot, c = l ? l.latestValues : {}, u = { ...this.latestValues }, f = ct();
|
|
4517
4517
|
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
|
|
4518
|
-
const h = fe(), m = l ? l.source : void 0, y = this.layout ? this.layout.source : void 0, v = m !== y,
|
|
4518
|
+
const h = fe(), m = l ? l.source : void 0, y = this.layout ? this.layout.source : void 0, v = m !== y, b = this.getStack(), x = !b || b.members.length <= 1, C = Boolean(v && !x && this.options.crossfade === !0 && !this.path.some(Yf));
|
|
4519
4519
|
this.animationProgress = 0;
|
|
4520
4520
|
let E;
|
|
4521
4521
|
this.mixTargetDelta = (V) => {
|
|
4522
4522
|
const g = V / 1e3;
|
|
4523
|
-
gs(f.x, o.x, g), gs(f.y, o.y, g), this.setTargetDelta(f), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Mt(h, this.layout.layoutBox, this.relativeParent.layout.layoutBox),
|
|
4523
|
+
gs(f.x, o.x, g), gs(f.y, o.y, g), this.setTargetDelta(f), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Mt(h, this.layout.layoutBox, this.relativeParent.layout.layoutBox), zf(this.relativeTarget, this.relativeTargetOrigin, h, g), E && Rf(this.relativeTarget, E) && (this.isProjectionDirty = !1), E || (E = fe()), Ve(E, this.relativeTarget)), v && (this.animationValues = u, Tf(u, c, this.latestValues, g, C, x)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = g;
|
|
4524
4524
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
4525
4525
|
}
|
|
4526
4526
|
startAnimation(o) {
|
|
4527
4527
|
this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (Ye(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = re.update(() => {
|
|
4528
|
-
Zt.hasAnimatedSinceResize = !0, jt.layout++, this.currentAnimation =
|
|
4528
|
+
Zt.hasAnimatedSinceResize = !0, jt.layout++, this.currentAnimation = gf(0, hs, {
|
|
4529
4529
|
...o,
|
|
4530
4530
|
onUpdate: (a) => {
|
|
4531
4531
|
this.mixTargetDelta(a), o.onUpdate && o.onUpdate(a);
|
|
@@ -4562,7 +4562,7 @@ function la({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4562
4562
|
}
|
|
4563
4563
|
}
|
|
4564
4564
|
registerSharedNode(o, a) {
|
|
4565
|
-
this.sharedNodes.has(o) || this.sharedNodes.set(o, new
|
|
4565
|
+
this.sharedNodes.has(o) || this.sharedNodes.set(o, new Af()), this.sharedNodes.get(o).add(a);
|
|
4566
4566
|
const c = a.options.initialPromotionConfig;
|
|
4567
4567
|
a.promote({
|
|
4568
4568
|
transition: c ? c.transition : void 0,
|
|
@@ -4618,7 +4618,7 @@ function la({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4618
4618
|
if (!this.instance || this.isSVG)
|
|
4619
4619
|
return;
|
|
4620
4620
|
if (!this.isVisible)
|
|
4621
|
-
return
|
|
4621
|
+
return Vf;
|
|
4622
4622
|
const c = {
|
|
4623
4623
|
visibility: ""
|
|
4624
4624
|
}, u = this.getTransformTemplate();
|
|
@@ -4630,13 +4630,13 @@ function la({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4630
4630
|
return this.options.layoutId && (v.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, v.pointerEvents = qt(o == null ? void 0 : o.pointerEvents) || ""), this.hasProjected && !Ze(this.latestValues) && (v.transform = u ? u({}, "") : "none", this.hasProjected = !1), v;
|
|
4631
4631
|
}
|
|
4632
4632
|
const h = f.animationValues || f.latestValues;
|
|
4633
|
-
this.applyTransformsToTarget(), c.transform =
|
|
4633
|
+
this.applyTransformsToTarget(), c.transform = Mf(this.projectionDeltaWithTransform, this.treeScale, h), u && (c.transform = u(h, c.transform));
|
|
4634
4634
|
const { x: m, y } = this.projectionDelta;
|
|
4635
4635
|
c.transformOrigin = `${m.origin * 100}% ${y.origin * 100}% 0`, f.animationValues ? c.opacity = f === this ? (l = (a = h.opacity) !== null && a !== void 0 ? a : this.latestValues.opacity) !== null && l !== void 0 ? l : 1 : this.preserveOpacity ? this.latestValues.opacity : h.opacityExit : c.opacity = f === this ? h.opacity !== void 0 ? h.opacity : "" : h.opacityExit !== void 0 ? h.opacityExit : 0;
|
|
4636
4636
|
for (const v in Dt) {
|
|
4637
4637
|
if (h[v] === void 0)
|
|
4638
4638
|
continue;
|
|
4639
|
-
const { correct:
|
|
4639
|
+
const { correct: b, applyTo: x, isCSSVariable: C } = Dt[v], E = c.transform === "none" ? h[v] : b(h[v], f);
|
|
4640
4640
|
if (x) {
|
|
4641
4641
|
const V = x.length;
|
|
4642
4642
|
for (let g = 0; g < V; g++)
|
|
@@ -4657,10 +4657,10 @@ function la({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4657
4657
|
}
|
|
4658
4658
|
};
|
|
4659
4659
|
}
|
|
4660
|
-
function
|
|
4660
|
+
function Lf(e) {
|
|
4661
4661
|
e.updateLayout();
|
|
4662
4662
|
}
|
|
4663
|
-
function
|
|
4663
|
+
function Of(e) {
|
|
4664
4664
|
var t;
|
|
4665
4665
|
const n = ((t = e.resumeFrom) === null || t === void 0 ? void 0 : t.snapshot) || e.snapshot;
|
|
4666
4666
|
if (e.isLead() && e.layout && n && e.hasListeners("didUpdate")) {
|
|
@@ -4704,38 +4704,38 @@ function Lf(e) {
|
|
|
4704
4704
|
}
|
|
4705
4705
|
e.options.transition = void 0;
|
|
4706
4706
|
}
|
|
4707
|
-
function
|
|
4707
|
+
function kf(e) {
|
|
4708
4708
|
We.value && Je.nodes++, e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty || (e.isSharedProjectionDirty = Boolean(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty)), e.isTransformDirty || (e.isTransformDirty = e.parent.isTransformDirty));
|
|
4709
4709
|
}
|
|
4710
|
-
function
|
|
4710
|
+
function _f(e) {
|
|
4711
4711
|
e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
|
|
4712
4712
|
}
|
|
4713
|
-
function
|
|
4713
|
+
function If(e) {
|
|
4714
4714
|
e.clearSnapshot();
|
|
4715
4715
|
}
|
|
4716
4716
|
function ps(e) {
|
|
4717
4717
|
e.clearMeasurements();
|
|
4718
4718
|
}
|
|
4719
|
-
function
|
|
4719
|
+
function Nf(e) {
|
|
4720
4720
|
e.isLayoutDirty = !1;
|
|
4721
4721
|
}
|
|
4722
|
-
function
|
|
4722
|
+
function Ff(e) {
|
|
4723
4723
|
const { visualElement: t } = e.options;
|
|
4724
4724
|
t && t.getProps().onBeforeLayoutMeasure && t.notify("BeforeLayoutMeasure"), e.resetTransform();
|
|
4725
4725
|
}
|
|
4726
4726
|
function ms(e) {
|
|
4727
4727
|
e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0;
|
|
4728
4728
|
}
|
|
4729
|
-
function
|
|
4729
|
+
function Bf(e) {
|
|
4730
4730
|
e.resolveTargetDelta();
|
|
4731
4731
|
}
|
|
4732
|
-
function
|
|
4732
|
+
function $f(e) {
|
|
4733
4733
|
e.calcProjection();
|
|
4734
4734
|
}
|
|
4735
|
-
function
|
|
4735
|
+
function Uf(e) {
|
|
4736
4736
|
e.resetSkewAndRotation();
|
|
4737
4737
|
}
|
|
4738
|
-
function
|
|
4738
|
+
function Wf(e) {
|
|
4739
4739
|
e.removeLeadSnapshot();
|
|
4740
4740
|
}
|
|
4741
4741
|
function gs(e, t, n) {
|
|
@@ -4744,30 +4744,30 @@ function gs(e, t, n) {
|
|
|
4744
4744
|
function ys(e, t, n, r) {
|
|
4745
4745
|
e.min = le(t.min, n.min, r), e.max = le(t.max, n.max, r);
|
|
4746
4746
|
}
|
|
4747
|
-
function
|
|
4747
|
+
function zf(e, t, n, r) {
|
|
4748
4748
|
ys(e.x, t.x, n.x, r), ys(e.y, t.y, n.y, r);
|
|
4749
4749
|
}
|
|
4750
|
-
function
|
|
4750
|
+
function Yf(e) {
|
|
4751
4751
|
return e.animationValues && e.animationValues.opacityExit !== void 0;
|
|
4752
4752
|
}
|
|
4753
|
-
const
|
|
4753
|
+
const Kf = {
|
|
4754
4754
|
duration: 0.45,
|
|
4755
4755
|
ease: [0.4, 0, 0.1, 1]
|
|
4756
4756
|
}, vs = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), xs = vs("applewebkit/") && !vs("chrome/") ? Math.round : Ae;
|
|
4757
4757
|
function bs(e) {
|
|
4758
4758
|
e.min = xs(e.min), e.max = xs(e.max);
|
|
4759
4759
|
}
|
|
4760
|
-
function
|
|
4760
|
+
function Hf(e) {
|
|
4761
4761
|
bs(e.x), bs(e.y);
|
|
4762
4762
|
}
|
|
4763
4763
|
function ca(e, t, n) {
|
|
4764
|
-
return e === "position" || e === "preserve-aspect" && !
|
|
4764
|
+
return e === "position" || e === "preserve-aspect" && !Gu(fs(t), fs(n), 0.2);
|
|
4765
4765
|
}
|
|
4766
|
-
function
|
|
4766
|
+
function Gf(e) {
|
|
4767
4767
|
var t;
|
|
4768
4768
|
return e !== e.root && ((t = e.scroll) === null || t === void 0 ? void 0 : t.wasRoot);
|
|
4769
4769
|
}
|
|
4770
|
-
const
|
|
4770
|
+
const qf = la({
|
|
4771
4771
|
attachResizeListener: (e, t) => It(e, "resize", t),
|
|
4772
4772
|
measureScroll: () => ({
|
|
4773
4773
|
x: document.documentElement.scrollLeft || document.body.scrollLeft,
|
|
@@ -4783,7 +4783,7 @@ const Gf = la({
|
|
|
4783
4783
|
}),
|
|
4784
4784
|
defaultParent: () => {
|
|
4785
4785
|
if (!An.current) {
|
|
4786
|
-
const e = new
|
|
4786
|
+
const e = new qf({});
|
|
4787
4787
|
e.mount(window), e.setOptions({ layoutScroll: !0 }), An.current = e;
|
|
4788
4788
|
}
|
|
4789
4789
|
return An.current;
|
|
@@ -4792,12 +4792,12 @@ const Gf = la({
|
|
|
4792
4792
|
e.style.transform = t !== void 0 ? t : "none";
|
|
4793
4793
|
},
|
|
4794
4794
|
checkIsScrollRoot: (e) => Boolean(window.getComputedStyle(e).position === "fixed")
|
|
4795
|
-
}),
|
|
4795
|
+
}), Xf = {
|
|
4796
4796
|
pan: {
|
|
4797
|
-
Feature:
|
|
4797
|
+
Feature: df
|
|
4798
4798
|
},
|
|
4799
4799
|
drag: {
|
|
4800
|
-
Feature:
|
|
4800
|
+
Feature: ff,
|
|
4801
4801
|
ProjectionNode: ua,
|
|
4802
4802
|
MeasureLayout: na
|
|
4803
4803
|
}
|
|
@@ -4808,15 +4808,15 @@ function ws(e, t, n) {
|
|
|
4808
4808
|
const i = "onHover" + n, s = r[i];
|
|
4809
4809
|
s && re.postRender(() => s(t, Ut(t)));
|
|
4810
4810
|
}
|
|
4811
|
-
class
|
|
4811
|
+
class Zf extends Ge {
|
|
4812
4812
|
mount() {
|
|
4813
4813
|
const { current: t } = this.node;
|
|
4814
|
-
t && (this.unmount =
|
|
4814
|
+
t && (this.unmount = Hl(t, (n, r) => (ws(this.node, r, "Start"), (i) => ws(this.node, i, "End"))));
|
|
4815
4815
|
}
|
|
4816
4816
|
unmount() {
|
|
4817
4817
|
}
|
|
4818
4818
|
}
|
|
4819
|
-
class
|
|
4819
|
+
class Jf extends Ge {
|
|
4820
4820
|
constructor() {
|
|
4821
4821
|
super(...arguments), this.isActive = !1;
|
|
4822
4822
|
}
|
|
@@ -4846,37 +4846,37 @@ function Ts(e, t, n) {
|
|
|
4846
4846
|
const i = "onTap" + (n === "End" ? "" : n), s = r[i];
|
|
4847
4847
|
s && re.postRender(() => s(t, Ut(t)));
|
|
4848
4848
|
}
|
|
4849
|
-
class
|
|
4849
|
+
class Qf extends Ge {
|
|
4850
4850
|
mount() {
|
|
4851
4851
|
const { current: t } = this.node;
|
|
4852
|
-
t && (this.unmount =
|
|
4852
|
+
t && (this.unmount = Zl(t, (n, r) => (Ts(this.node, r, "Start"), (i, { success: s }) => Ts(this.node, i, s ? "End" : "Cancel")), { useGlobalTarget: this.node.props.globalTapTarget }));
|
|
4853
4853
|
}
|
|
4854
4854
|
unmount() {
|
|
4855
4855
|
}
|
|
4856
4856
|
}
|
|
4857
|
-
const Qn = /* @__PURE__ */ new WeakMap(), Mn = /* @__PURE__ */ new WeakMap(),
|
|
4857
|
+
const Qn = /* @__PURE__ */ new WeakMap(), Mn = /* @__PURE__ */ new WeakMap(), ed = (e) => {
|
|
4858
4858
|
const t = Qn.get(e.target);
|
|
4859
4859
|
t && t(e);
|
|
4860
|
-
},
|
|
4861
|
-
e.forEach(
|
|
4860
|
+
}, td = (e) => {
|
|
4861
|
+
e.forEach(ed);
|
|
4862
4862
|
};
|
|
4863
|
-
function
|
|
4863
|
+
function nd({ root: e, ...t }) {
|
|
4864
4864
|
const n = e || document;
|
|
4865
4865
|
Mn.has(n) || Mn.set(n, {});
|
|
4866
4866
|
const r = Mn.get(n), i = JSON.stringify(t);
|
|
4867
|
-
return r[i] || (r[i] = new IntersectionObserver(
|
|
4867
|
+
return r[i] || (r[i] = new IntersectionObserver(td, { root: e, ...t })), r[i];
|
|
4868
4868
|
}
|
|
4869
|
-
function
|
|
4870
|
-
const r =
|
|
4869
|
+
function rd(e, t, n) {
|
|
4870
|
+
const r = nd(t);
|
|
4871
4871
|
return Qn.set(e, n), r.observe(e), () => {
|
|
4872
4872
|
Qn.delete(e), r.unobserve(e);
|
|
4873
4873
|
};
|
|
4874
4874
|
}
|
|
4875
|
-
const
|
|
4875
|
+
const id = {
|
|
4876
4876
|
some: 0,
|
|
4877
4877
|
all: 1
|
|
4878
4878
|
};
|
|
4879
|
-
class
|
|
4879
|
+
class sd extends Ge {
|
|
4880
4880
|
constructor() {
|
|
4881
4881
|
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
|
|
4882
4882
|
}
|
|
@@ -4885,7 +4885,7 @@ class id extends Ge {
|
|
|
4885
4885
|
const { viewport: t = {} } = this.node.getProps(), { root: n, margin: r, amount: i = "some", once: s } = t, o = {
|
|
4886
4886
|
root: n ? n.current : void 0,
|
|
4887
4887
|
rootMargin: r,
|
|
4888
|
-
threshold: typeof i == "number" ? i :
|
|
4888
|
+
threshold: typeof i == "number" ? i : id[i]
|
|
4889
4889
|
}, a = (l) => {
|
|
4890
4890
|
const { isIntersecting: c } = l;
|
|
4891
4891
|
if (this.isInView === c || (this.isInView = c, s && !c && this.hasEnteredView))
|
|
@@ -4894,7 +4894,7 @@ class id extends Ge {
|
|
|
4894
4894
|
const { onViewportEnter: u, onViewportLeave: f } = this.node.getProps(), h = c ? u : f;
|
|
4895
4895
|
h && h(l);
|
|
4896
4896
|
};
|
|
4897
|
-
return
|
|
4897
|
+
return rd(this.node.current, o, a);
|
|
4898
4898
|
}
|
|
4899
4899
|
mount() {
|
|
4900
4900
|
this.startObserver();
|
|
@@ -4903,34 +4903,34 @@ class id extends Ge {
|
|
|
4903
4903
|
if (typeof IntersectionObserver > "u")
|
|
4904
4904
|
return;
|
|
4905
4905
|
const { props: t, prevProps: n } = this.node;
|
|
4906
|
-
["amount", "margin", "root"].some(
|
|
4906
|
+
["amount", "margin", "root"].some(od(t, n)) && this.startObserver();
|
|
4907
4907
|
}
|
|
4908
4908
|
unmount() {
|
|
4909
4909
|
}
|
|
4910
4910
|
}
|
|
4911
|
-
function
|
|
4911
|
+
function od({ viewport: e = {} }, { viewport: t = {} } = {}) {
|
|
4912
4912
|
return (n) => e[n] !== t[n];
|
|
4913
4913
|
}
|
|
4914
|
-
const
|
|
4914
|
+
const ad = {
|
|
4915
4915
|
inView: {
|
|
4916
|
-
Feature:
|
|
4916
|
+
Feature: sd
|
|
4917
4917
|
},
|
|
4918
4918
|
tap: {
|
|
4919
|
-
Feature:
|
|
4919
|
+
Feature: Qf
|
|
4920
4920
|
},
|
|
4921
4921
|
focus: {
|
|
4922
|
-
Feature:
|
|
4922
|
+
Feature: Jf
|
|
4923
4923
|
},
|
|
4924
4924
|
hover: {
|
|
4925
|
-
Feature:
|
|
4925
|
+
Feature: Zf
|
|
4926
4926
|
}
|
|
4927
|
-
},
|
|
4927
|
+
}, ld = {
|
|
4928
4928
|
layout: {
|
|
4929
4929
|
ProjectionNode: ua,
|
|
4930
4930
|
MeasureLayout: na
|
|
4931
4931
|
}
|
|
4932
4932
|
}, er = { current: null }, fa = { current: !1 };
|
|
4933
|
-
function
|
|
4933
|
+
function cd() {
|
|
4934
4934
|
if (fa.current = !0, !!ur)
|
|
4935
4935
|
if (window.matchMedia) {
|
|
4936
4936
|
const e = window.matchMedia("(prefers-reduced-motion)"), t = () => er.current = e.matches;
|
|
@@ -4938,8 +4938,8 @@ function ld() {
|
|
|
4938
4938
|
} else
|
|
4939
4939
|
er.current = !1;
|
|
4940
4940
|
}
|
|
4941
|
-
const
|
|
4942
|
-
function
|
|
4941
|
+
const ud = [..._o, Te, Ke], fd = (e) => ud.find(ko(e)), dd = /* @__PURE__ */ new WeakMap();
|
|
4942
|
+
function hd(e, t, n) {
|
|
4943
4943
|
for (const r in t) {
|
|
4944
4944
|
const i = t[r], s = n[r];
|
|
4945
4945
|
if (Pe(i))
|
|
@@ -4968,7 +4968,7 @@ const Ss = [
|
|
|
4968
4968
|
"LayoutAnimationStart",
|
|
4969
4969
|
"LayoutAnimationComplete"
|
|
4970
4970
|
];
|
|
4971
|
-
class
|
|
4971
|
+
class pd {
|
|
4972
4972
|
scrapeMotionValuesFromProps(t, n, r) {
|
|
4973
4973
|
return {};
|
|
4974
4974
|
}
|
|
@@ -4988,7 +4988,7 @@ class hd {
|
|
|
4988
4988
|
}
|
|
4989
4989
|
}
|
|
4990
4990
|
mount(t) {
|
|
4991
|
-
this.current = t,
|
|
4991
|
+
this.current = t, dd.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, r) => this.bindToMotionValue(r, n)), fa.current || cd(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : er.current, process.env.NODE_ENV !== "production" && ln(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
|
|
4992
4992
|
}
|
|
4993
4993
|
unmount() {
|
|
4994
4994
|
this.projection && this.projection.unmount(), Ye(this.notifyUpdate), Ye(this.render), this.valueSubscriptions.forEach((t) => t()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
|
|
@@ -5048,7 +5048,7 @@ class hd {
|
|
|
5048
5048
|
const s = "on" + i, o = t[s];
|
|
5049
5049
|
o && (this.propEventSubscriptions[i] = this.on(i, o));
|
|
5050
5050
|
}
|
|
5051
|
-
this.prevMotionValues =
|
|
5051
|
+
this.prevMotionValues = hd(this, this.scrapeMotionValuesFromProps(t, this.prevProps, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue(), this.onUpdate && this.onUpdate(this);
|
|
5052
5052
|
}
|
|
5053
5053
|
getProps() {
|
|
5054
5054
|
return this.props;
|
|
@@ -5091,7 +5091,7 @@ class hd {
|
|
|
5091
5091
|
readValue(t, n) {
|
|
5092
5092
|
var r;
|
|
5093
5093
|
let i = this.latestValues[t] !== void 0 || !this.current ? this.latestValues[t] : (r = this.getBaseTargetFromProps(this.props, t)) !== null && r !== void 0 ? r : this.readValueFromInstance(this.current, t, this.options);
|
|
5094
|
-
return i != null && (typeof i == "string" && (Lo(i) || Co(i)) ? i = parseFloat(i) : !
|
|
5094
|
+
return i != null && (typeof i == "string" && (Lo(i) || Co(i)) ? i = parseFloat(i) : !fd(i) && Ke.test(n) && (i = Mo(t, n)), this.setBaseTarget(t, Pe(i) ? i.get() : i)), Pe(i) ? i.get() : i;
|
|
5095
5095
|
}
|
|
5096
5096
|
setBaseTarget(t, n) {
|
|
5097
5097
|
this.baseTarget[t] = n;
|
|
@@ -5116,7 +5116,7 @@ class hd {
|
|
|
5116
5116
|
this.events[t] && this.events[t].notify(...n);
|
|
5117
5117
|
}
|
|
5118
5118
|
}
|
|
5119
|
-
class da extends
|
|
5119
|
+
class da extends pd {
|
|
5120
5120
|
constructor() {
|
|
5121
5121
|
super(...arguments), this.KeyframeResolver = Io;
|
|
5122
5122
|
}
|
|
@@ -5137,10 +5137,10 @@ class da extends hd {
|
|
|
5137
5137
|
}));
|
|
5138
5138
|
}
|
|
5139
5139
|
}
|
|
5140
|
-
function
|
|
5140
|
+
function md(e) {
|
|
5141
5141
|
return window.getComputedStyle(e);
|
|
5142
5142
|
}
|
|
5143
|
-
class
|
|
5143
|
+
class gd extends da {
|
|
5144
5144
|
constructor() {
|
|
5145
5145
|
super(...arguments), this.type = "html", this.renderInstance = to;
|
|
5146
5146
|
}
|
|
@@ -5149,7 +5149,7 @@ class md extends da {
|
|
|
5149
5149
|
const r = Ir(n);
|
|
5150
5150
|
return r && r.default || 0;
|
|
5151
5151
|
} else {
|
|
5152
|
-
const r =
|
|
5152
|
+
const r = md(t), i = (gr(n) ? r.getPropertyValue(n) : r[n]) || 0;
|
|
5153
5153
|
return typeof i == "string" ? i.trim() : i;
|
|
5154
5154
|
}
|
|
5155
5155
|
}
|
|
@@ -5163,7 +5163,7 @@ class md extends da {
|
|
|
5163
5163
|
return Pr(t, n, r);
|
|
5164
5164
|
}
|
|
5165
5165
|
}
|
|
5166
|
-
class
|
|
5166
|
+
class yd extends da {
|
|
5167
5167
|
constructor() {
|
|
5168
5168
|
super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = fe, this.updateDimensions = () => {
|
|
5169
5169
|
this.current && !this.renderState.dimensions && eo(this.current, this.renderState);
|
|
@@ -5195,14 +5195,14 @@ class gd extends da {
|
|
|
5195
5195
|
this.isSVGTag = Sr(t.tagName), super.mount(t);
|
|
5196
5196
|
}
|
|
5197
5197
|
}
|
|
5198
|
-
const
|
|
5198
|
+
const vd = (e, t) => wr(e) ? new yd(t) : new gd(t, {
|
|
5199
5199
|
allowProjection: e !== _s
|
|
5200
|
-
}),
|
|
5201
|
-
...
|
|
5202
|
-
...
|
|
5203
|
-
...
|
|
5204
|
-
...
|
|
5205
|
-
},
|
|
5200
|
+
}), xd = /* @__PURE__ */ Bl({
|
|
5201
|
+
...Bu,
|
|
5202
|
+
...ad,
|
|
5203
|
+
...Xf,
|
|
5204
|
+
...ld
|
|
5205
|
+
}, vd), Ur = /* @__PURE__ */ nl(xd), bd = ({
|
|
5206
5206
|
isOpen: e,
|
|
5207
5207
|
onClose: t,
|
|
5208
5208
|
onConfirm: n,
|
|
@@ -5281,7 +5281,7 @@ const yd = (e, t) => wr(e) ? new gd(t) : new md(t, {
|
|
|
5281
5281
|
] })
|
|
5282
5282
|
] }) })
|
|
5283
5283
|
}
|
|
5284
|
-
) : null,
|
|
5284
|
+
) : null, wd = ({
|
|
5285
5285
|
items: e,
|
|
5286
5286
|
isVisible: t,
|
|
5287
5287
|
position: n,
|
|
@@ -5291,7 +5291,7 @@ const yd = (e, t) => wr(e) ? new gd(t) : new md(t, {
|
|
|
5291
5291
|
const s = Se(null), [o, a] = ve(!1);
|
|
5292
5292
|
return He(() => (s.current || (s.current = document.createElement("div"), s.current.style.zIndex = "1500", s.current.style.position = "fixed", s.current.style.top = "0", s.current.style.left = "0", s.current.style.width = "100%", s.current.style.height = "100%", s.current.style.pointerEvents = "none", document.body.appendChild(s.current)), a(!0), () => {
|
|
5293
5293
|
s.current && !t && (document.body.removeChild(s.current), s.current = null);
|
|
5294
|
-
}), [t]), !s.current || !o ? null :
|
|
5294
|
+
}), [t]), !s.current || !o ? null : Wa.createPortal(
|
|
5295
5295
|
/* @__PURE__ */ p.exports.jsx(Fs, { children: t && /* @__PURE__ */ p.exports.jsx(
|
|
5296
5296
|
Ur.div,
|
|
5297
5297
|
{
|
|
@@ -5324,7 +5324,7 @@ const yd = (e, t) => wr(e) ? new gd(t) : new md(t, {
|
|
|
5324
5324
|
) }),
|
|
5325
5325
|
s.current
|
|
5326
5326
|
);
|
|
5327
|
-
},
|
|
5327
|
+
}, Td = (e) => {
|
|
5328
5328
|
const t = Math.floor(e / 60), n = e % 60;
|
|
5329
5329
|
return `${t.toString().padStart(2, "0")}:${n.toString().padStart(2, "0")}`;
|
|
5330
5330
|
}, Cs = (e) => {
|
|
@@ -5334,7 +5334,7 @@ const yd = (e, t) => wr(e) ? new gd(t) : new md(t, {
|
|
|
5334
5334
|
const i = ((s = r.textContent) == null ? void 0 : s.replace(/\u00A0/g, " ").trim().replace(/\s+/g, "-")) ?? "";
|
|
5335
5335
|
r.replaceWith(i);
|
|
5336
5336
|
}), t.innerHTML.replace(/ /g, " ");
|
|
5337
|
-
},
|
|
5337
|
+
}, Sd = () => /* @__PURE__ */ p.exports.jsx(
|
|
5338
5338
|
"svg",
|
|
5339
5339
|
{
|
|
5340
5340
|
width: "21",
|
|
@@ -5350,7 +5350,7 @@ const yd = (e, t) => wr(e) ? new gd(t) : new md(t, {
|
|
|
5350
5350
|
}
|
|
5351
5351
|
)
|
|
5352
5352
|
}
|
|
5353
|
-
),
|
|
5353
|
+
), Cd = () => /* @__PURE__ */ p.exports.jsx(
|
|
5354
5354
|
"svg",
|
|
5355
5355
|
{
|
|
5356
5356
|
width: "14",
|
|
@@ -5412,7 +5412,7 @@ const yd = (e, t) => wr(e) ? new gd(t) : new md(t, {
|
|
|
5412
5412
|
d: "M9,1 L2,1 C1.72,1 1.452,1.118 1.263,1.325 C0.89,1.732 0.917,2.365 1.325,2.738 C3.504,4.733 5.046,6.893 5.95,9.218 C7.124,12.233 7.807,15.161 8,18 L8,20 L9,20 L9,1 Z M2,0.667 L9,0.667 L9,20 L7.667,20 L7.667,20 L7.668,18.023 C7.477,15.218 6.802,12.324 5.64,9.338 C4.755,7.064 3.243,4.946 1.1,2.983 C0.557,2.486 0.52,1.643 1.017,1.1 C1.269,0.824 1.626,0.667 2,0.667 Z"
|
|
5413
5413
|
}
|
|
5414
5414
|
)
|
|
5415
|
-
] }) }),
|
|
5415
|
+
] }) }), Pd = ({
|
|
5416
5416
|
onSendMessage: e,
|
|
5417
5417
|
onEditMessage: t,
|
|
5418
5418
|
onSendVoice: n,
|
|
@@ -5425,7 +5425,7 @@ const yd = (e, t) => wr(e) ? new gd(t) : new md(t, {
|
|
|
5425
5425
|
messageToEdit: c,
|
|
5426
5426
|
setMessageToEdit: u
|
|
5427
5427
|
}) => {
|
|
5428
|
-
const [f, h] = ve(""), [m, y] = ve(!1), [v,
|
|
5428
|
+
const [f, h] = ve(""), [m, y] = ve(!1), [v, b] = ve(0), [x, C] = ve(null), [E, V] = ve(null), [g, D] = ve(0), z = Se(null), O = Se([]), Z = Se(null), R = Se(null), H = Se(null), [ie, W] = ve(!1), [se, pe] = ve([]), he = 150, q = 41.6;
|
|
5429
5429
|
He(() => {
|
|
5430
5430
|
const j = document.getElementById("static-display");
|
|
5431
5431
|
j && !j.textContent && (c != null && c.text) && (j.textContent = c == null ? void 0 : c.text);
|
|
@@ -5468,9 +5468,9 @@ const yd = (e, t) => wr(e) ? new gd(t) : new md(t, {
|
|
|
5468
5468
|
return M.trim() === "" ? j : (console.log("htmlcontnent before", j), e(M, j), "");
|
|
5469
5469
|
});
|
|
5470
5470
|
C(null), V(null), R.current && (R.current.style.height = `${q}px`, R.current.innerHTML = "");
|
|
5471
|
-
},
|
|
5472
|
-
y(!0),
|
|
5473
|
-
|
|
5471
|
+
}, w = async () => {
|
|
5472
|
+
y(!0), b(0), O.current = [], Z.current = setInterval(() => {
|
|
5473
|
+
b((L) => L + 1);
|
|
5474
5474
|
}, 1e3);
|
|
5475
5475
|
const j = await navigator.mediaDevices.getUserMedia({ audio: !0 }), M = new MediaRecorder(j);
|
|
5476
5476
|
z.current = M, M.ondataavailable = (L) => {
|
|
@@ -5482,7 +5482,7 @@ const yd = (e, t) => wr(e) ? new gd(t) : new md(t, {
|
|
|
5482
5482
|
});
|
|
5483
5483
|
n(P), y(!1);
|
|
5484
5484
|
}, M.start();
|
|
5485
|
-
},
|
|
5485
|
+
}, T = () => {
|
|
5486
5486
|
var j;
|
|
5487
5487
|
(j = z.current) == null || j.stop();
|
|
5488
5488
|
}, F = (j) => {
|
|
@@ -5524,8 +5524,8 @@ const yd = (e, t) => wr(e) ? new gd(t) : new md(t, {
|
|
|
5524
5524
|
const ee = o == null ? void 0 : o.find(
|
|
5525
5525
|
(ge) => ge.symbol === x
|
|
5526
5526
|
);
|
|
5527
|
-
ee && (ee != null && ee.updatePageNumber) && (
|
|
5528
|
-
|
|
5527
|
+
ee && (ee != null && ee.updatePageNumber) && (W(!0), ee == null || ee.updatePageNumber(ee.pagNumber + 1), D(M), setTimeout(() => {
|
|
5528
|
+
W(!1);
|
|
5529
5529
|
}, 500));
|
|
5530
5530
|
}
|
|
5531
5531
|
} else
|
|
@@ -5552,7 +5552,7 @@ const yd = (e, t) => wr(e) ? new gd(t) : new md(t, {
|
|
|
5552
5552
|
]), $ = () => {
|
|
5553
5553
|
var j;
|
|
5554
5554
|
(j = H.current) == null || j.click();
|
|
5555
|
-
},
|
|
5555
|
+
}, U = (j) => {
|
|
5556
5556
|
var P, te;
|
|
5557
5557
|
const M = (P = j.target.files) == null ? void 0 : P[0];
|
|
5558
5558
|
if (!M)
|
|
@@ -5566,12 +5566,12 @@ const yd = (e, t) => wr(e) ? new gd(t) : new md(t, {
|
|
|
5566
5566
|
};
|
|
5567
5567
|
return /* @__PURE__ */ p.exports.jsxs("div", { className: "absolute bottom-0 w-full flex items-center p-2 pr-4 z-10", children: [
|
|
5568
5568
|
m ? /* @__PURE__ */ p.exports.jsxs("div", { className: "w-full flex justify-between items-center bg-white p-2 pl-4 h-11 rounded-3xl ", children: [
|
|
5569
|
-
/* @__PURE__ */ p.exports.jsx("span", { className: "text-blue-400 font-bold flex-1", children:
|
|
5569
|
+
/* @__PURE__ */ p.exports.jsx("span", { className: "text-blue-400 font-bold flex-1", children: Td(v) }),
|
|
5570
5570
|
/* @__PURE__ */ p.exports.jsx(
|
|
5571
5571
|
"button",
|
|
5572
5572
|
{
|
|
5573
5573
|
className: "cursor-pointer p-2 flex justify-center items-center bg-green-500 text-white rounded-full",
|
|
5574
|
-
onClick:
|
|
5574
|
+
onClick: T,
|
|
5575
5575
|
children: /* @__PURE__ */ p.exports.jsx(Vn, {})
|
|
5576
5576
|
}
|
|
5577
5577
|
)
|
|
@@ -5623,7 +5623,7 @@ const yd = (e, t) => wr(e) ? new gd(t) : new md(t, {
|
|
|
5623
5623
|
{
|
|
5624
5624
|
onClick: $,
|
|
5625
5625
|
className: "cursor-pointer z-10 absolute right-4 top-[11px]",
|
|
5626
|
-
children: /* @__PURE__ */ p.exports.jsx(
|
|
5626
|
+
children: /* @__PURE__ */ p.exports.jsx(Sd, {})
|
|
5627
5627
|
}
|
|
5628
5628
|
),
|
|
5629
5629
|
/* @__PURE__ */ p.exports.jsx(
|
|
@@ -5632,7 +5632,7 @@ const yd = (e, t) => wr(e) ? new gd(t) : new md(t, {
|
|
|
5632
5632
|
type: "file",
|
|
5633
5633
|
ref: H,
|
|
5634
5634
|
style: { display: "none" },
|
|
5635
|
-
onChange:
|
|
5635
|
+
onChange: U
|
|
5636
5636
|
}
|
|
5637
5637
|
),
|
|
5638
5638
|
/* @__PURE__ */ p.exports.jsx(
|
|
@@ -5655,8 +5655,8 @@ const yd = (e, t) => wr(e) ? new gd(t) : new md(t, {
|
|
|
5655
5655
|
"button",
|
|
5656
5656
|
{
|
|
5657
5657
|
className: "flex items-center justify-center cursor-pointer w-9 h-9 ml-2 p-2 bg-blue-500 text-white rounded-full hover:bg-blue-600 transition",
|
|
5658
|
-
onClick: f ? me :
|
|
5659
|
-
children: f ? /* @__PURE__ */ p.exports.jsx(Vn, {}) : /* @__PURE__ */ p.exports.jsx(
|
|
5658
|
+
onClick: f ? me : w,
|
|
5659
|
+
children: f ? /* @__PURE__ */ p.exports.jsx(Vn, {}) : /* @__PURE__ */ p.exports.jsx(Cd, {})
|
|
5660
5660
|
}
|
|
5661
5661
|
)
|
|
5662
5662
|
] }),
|
|
@@ -5734,11 +5734,11 @@ const Wr = ({
|
|
|
5734
5734
|
}) => {
|
|
5735
5735
|
const [c, u] = ve(0), f = (t - n) / 2, h = 2 * Math.PI * f, m = h - c / 100 * h;
|
|
5736
5736
|
return He(() => {
|
|
5737
|
-
const y = Date.now(), v = y + s,
|
|
5737
|
+
const y = Date.now(), v = y + s, b = () => {
|
|
5738
5738
|
const x = Date.now(), E = Math.min(1, (x - y) / s) * e;
|
|
5739
|
-
u(E), x < v ? requestAnimationFrame(
|
|
5739
|
+
u(E), x < v ? requestAnimationFrame(b) : u(e);
|
|
5740
5740
|
};
|
|
5741
|
-
requestAnimationFrame(
|
|
5741
|
+
requestAnimationFrame(b);
|
|
5742
5742
|
}, [e, s]), /* @__PURE__ */ p.exports.jsxs(
|
|
5743
5743
|
"div",
|
|
5744
5744
|
{
|
|
@@ -5912,7 +5912,7 @@ const Wr = ({
|
|
|
5912
5912
|
}
|
|
5913
5913
|
)
|
|
5914
5914
|
] });
|
|
5915
|
-
},
|
|
5915
|
+
}, Ed = (e) => /* @__PURE__ */ p.exports.jsx(
|
|
5916
5916
|
"svg",
|
|
5917
5917
|
{
|
|
5918
5918
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5928,7 +5928,7 @@ const Wr = ({
|
|
|
5928
5928
|
...e,
|
|
5929
5929
|
children: /* @__PURE__ */ p.exports.jsx("polygon", { points: "6 3 20 12 6 21 6 3" })
|
|
5930
5930
|
}
|
|
5931
|
-
),
|
|
5931
|
+
), jd = (e) => /* @__PURE__ */ p.exports.jsxs(
|
|
5932
5932
|
"svg",
|
|
5933
5933
|
{
|
|
5934
5934
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5949,7 +5949,7 @@ const Wr = ({
|
|
|
5949
5949
|
}
|
|
5950
5950
|
);
|
|
5951
5951
|
let St = null;
|
|
5952
|
-
const
|
|
5952
|
+
const Rd = ({
|
|
5953
5953
|
src: e,
|
|
5954
5954
|
className: t,
|
|
5955
5955
|
uploadProgres: n,
|
|
@@ -6000,7 +6000,7 @@ const jd = ({
|
|
|
6000
6000
|
{
|
|
6001
6001
|
className: "w-9 h-9 cursor-pointer flex items-center justify-center pl-[1.5px] bg-gray-700 rounded-full hover:bg-gray-600",
|
|
6002
6002
|
onClick: c,
|
|
6003
|
-
children: i ? /* @__PURE__ */ p.exports.jsx(
|
|
6003
|
+
children: i ? /* @__PURE__ */ p.exports.jsx(jd, {}) : /* @__PURE__ */ p.exports.jsx(Ed, {})
|
|
6004
6004
|
}
|
|
6005
6005
|
),
|
|
6006
6006
|
/* @__PURE__ */ p.exports.jsx("div", { className: "relative flex-1 h-2 bg-gray-700 rounded-full overflow-hidden", children: /* @__PURE__ */ p.exports.jsx(
|
|
@@ -6014,7 +6014,7 @@ const jd = ({
|
|
|
6014
6014
|
]
|
|
6015
6015
|
}
|
|
6016
6016
|
);
|
|
6017
|
-
},
|
|
6017
|
+
}, Ad = ({
|
|
6018
6018
|
attachmentUrl: e,
|
|
6019
6019
|
attachmentType: t,
|
|
6020
6020
|
attachmentFormat: n,
|
|
@@ -6026,7 +6026,7 @@ const jd = ({
|
|
|
6026
6026
|
}) => {
|
|
6027
6027
|
const l = r || "File", c = i || 0;
|
|
6028
6028
|
return e ? t === Ne.Voice ? /* @__PURE__ */ p.exports.jsx("div", { className: "w-full", children: /* @__PURE__ */ p.exports.jsx(
|
|
6029
|
-
|
|
6029
|
+
Rd,
|
|
6030
6030
|
{
|
|
6031
6031
|
onCancelClick: a,
|
|
6032
6032
|
uploadProgres: o,
|
|
@@ -6074,15 +6074,28 @@ const jd = ({
|
|
|
6074
6074
|
onCancelClick: a
|
|
6075
6075
|
}
|
|
6076
6076
|
) }) : null : null;
|
|
6077
|
-
},
|
|
6077
|
+
}, Md = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ha = (e = "", t) => {
|
|
6078
|
+
if (!t || t.length === 0)
|
|
6079
|
+
return e;
|
|
6080
|
+
const n = t.map(Md).join("|"), r = new RegExp(`(${n})[\\w-]+`, "g"), i = [];
|
|
6081
|
+
let s = 0, o;
|
|
6082
|
+
for (; (o = r.exec(e)) !== null; ) {
|
|
6083
|
+
const a = o.index, l = r.lastIndex;
|
|
6084
|
+
a > s && i.push(e.slice(s, a)), i.push(
|
|
6085
|
+
/* @__PURE__ */ p.exports.jsx("span", { className: "text-blue-600 cursor-pointer", children: e.slice(a, l) }, a)
|
|
6086
|
+
), s = l;
|
|
6087
|
+
}
|
|
6088
|
+
return s < e.length && i.push(e.slice(s)), i;
|
|
6089
|
+
}, Vd = ({
|
|
6078
6090
|
message: e,
|
|
6079
6091
|
showUserProfile: t,
|
|
6080
6092
|
handleContextMenu: n,
|
|
6081
6093
|
media: r,
|
|
6082
6094
|
them: i,
|
|
6083
|
-
maxWidth: s
|
|
6095
|
+
maxWidth: s,
|
|
6096
|
+
dynamicSymbols: o
|
|
6084
6097
|
}) => {
|
|
6085
|
-
var
|
|
6098
|
+
var a, l, c, u, f, h, m, y, v, b;
|
|
6086
6099
|
return /* @__PURE__ */ p.exports.jsxs(p.exports.Fragment, { children: [
|
|
6087
6100
|
t ? /* @__PURE__ */ p.exports.jsx(
|
|
6088
6101
|
"img",
|
|
@@ -6098,19 +6111,19 @@ const jd = ({
|
|
|
6098
6111
|
animate: { opacity: 1, y: 0 },
|
|
6099
6112
|
exit: { opacity: 0, y: 50 },
|
|
6100
6113
|
transition: { duration: 0.3 },
|
|
6101
|
-
onContextMenu: (
|
|
6114
|
+
onContextMenu: (x) => n(x, e),
|
|
6102
6115
|
className: `relative ${r ? "w-3/4" : s ? "max-w-[400px] w-fit" : "max-w-[75%] w-fit"} flex flex-col gap-1 break-words p-2 pt-5 rounded-lg ${i === ce.Simple ? "bg-[#f8fbff]" : i === ce.Telegram ? "bg-blue-200 " : ""} `,
|
|
6103
6116
|
children: [
|
|
6104
6117
|
/* @__PURE__ */ p.exports.jsx(
|
|
6105
6118
|
"span",
|
|
6106
6119
|
{
|
|
6107
|
-
title: (
|
|
6120
|
+
title: (a = e.user) != null && a.fullName && ((c = (l = e.user) == null ? void 0 : l.fullName) == null ? void 0 : c.length) > 16 ? (u = e.user) == null ? void 0 : u.firstName : (f = e.user) == null ? void 0 : f.fullName,
|
|
6108
6121
|
className: "relative -top-3 h-4 -mb-3 overflow-y-visible text-xs text-orange-700 whitespace-nowrap truncate max-w-[100px] overflow-visible",
|
|
6109
|
-
children: (
|
|
6122
|
+
children: (h = e.user) != null && h.fullName && ((y = (m = e.user) == null ? void 0 : m.fullName) == null ? void 0 : y.length) > 16 ? (v = e.user) == null ? void 0 : v.firstName : (b = e.user) == null ? void 0 : b.fullName
|
|
6110
6123
|
}
|
|
6111
6124
|
),
|
|
6112
6125
|
r || null,
|
|
6113
|
-
/* @__PURE__ */ p.exports.jsx("span", {
|
|
6126
|
+
/* @__PURE__ */ p.exports.jsx("span", { children: ha(e.text, o) }),
|
|
6114
6127
|
/* @__PURE__ */ p.exports.jsxs("div", { className: "w-full flex gap-1 items-center justify-end", children: [
|
|
6115
6128
|
/* @__PURE__ */ p.exports.jsx("span", { className: "text-[10px]", children: new Date(e.createdDate).toLocaleTimeString().split(":")[0] + ":" + new Date(e.createdDate).toLocaleTimeString().split(":")[1] }),
|
|
6116
6129
|
e.isEdited ? /* @__PURE__ */ p.exports.jsx(
|
|
@@ -6131,7 +6144,7 @@ const jd = ({
|
|
|
6131
6144
|
}
|
|
6132
6145
|
)
|
|
6133
6146
|
] });
|
|
6134
|
-
},
|
|
6147
|
+
}, Dd = ({ className: e }) => /* @__PURE__ */ p.exports.jsxs(
|
|
6135
6148
|
"svg",
|
|
6136
6149
|
{
|
|
6137
6150
|
width: "16",
|
|
@@ -6159,7 +6172,7 @@ const jd = ({
|
|
|
6159
6172
|
)
|
|
6160
6173
|
]
|
|
6161
6174
|
}
|
|
6162
|
-
),
|
|
6175
|
+
), pa = ({
|
|
6163
6176
|
size: e = 24,
|
|
6164
6177
|
color: t = "text-current",
|
|
6165
6178
|
className: n
|
|
@@ -6224,12 +6237,13 @@ const jd = ({
|
|
|
6224
6237
|
}
|
|
6225
6238
|
)
|
|
6226
6239
|
}
|
|
6227
|
-
),
|
|
6240
|
+
), Ld = ({
|
|
6228
6241
|
handleContextMenu: e,
|
|
6229
6242
|
media: t,
|
|
6230
6243
|
message: n,
|
|
6231
6244
|
them: r,
|
|
6232
|
-
maxWidth: i
|
|
6245
|
+
maxWidth: i,
|
|
6246
|
+
dynamicSymbols: s
|
|
6233
6247
|
}) => /* @__PURE__ */ p.exports.jsxs(
|
|
6234
6248
|
Ur.div,
|
|
6235
6249
|
{
|
|
@@ -6238,17 +6252,17 @@ const jd = ({
|
|
|
6238
6252
|
animate: { opacity: 1, y: 0 },
|
|
6239
6253
|
exit: { opacity: 0, y: 50 },
|
|
6240
6254
|
transition: { duration: 0.3 },
|
|
6241
|
-
onContextMenu: (
|
|
6242
|
-
className: `relative self-end ${t ? "w-3/4" : i ? " max-w-[400px]" : "max-w-[75%]"} flex flex-col justify-center break-words p-2 rounded-lg ${r === ce.Telegram ? " bg-green-200" : ce.Simple ? " bg-[#
|
|
6255
|
+
onContextMenu: (o) => e(o, n),
|
|
6256
|
+
className: `relative self-end ${t ? "w-3/4" : i ? " max-w-[400px]" : "max-w-[75%]"} flex flex-col justify-center break-words p-2 rounded-lg ${r === ce.Telegram ? " bg-green-200" : ce.Simple ? " bg-[#b3baff] text-black" : ""}`,
|
|
6243
6257
|
children: [
|
|
6244
6258
|
t || null,
|
|
6245
|
-
/* @__PURE__ */ p.exports.jsx("span", {
|
|
6259
|
+
/* @__PURE__ */ p.exports.jsx("span", { children: ha(n.text, s) }),
|
|
6246
6260
|
/* @__PURE__ */ p.exports.jsxs("div", { className: "w-full flex gap-1 items-center justify-end", children: [
|
|
6247
6261
|
/* @__PURE__ */ p.exports.jsx("span", { className: "text-[10px]", children: new Date(n.createdDate).toLocaleTimeString().split(":")[0] + ":" + new Date(n.createdDate).toLocaleTimeString().split(":")[1] }),
|
|
6248
|
-
n.isSending ? /* @__PURE__ */ p.exports.jsx(
|
|
6249
|
-
|
|
6262
|
+
n.isSending ? /* @__PURE__ */ p.exports.jsx(pa, { size: 13, color: "text-black" }) : /* @__PURE__ */ p.exports.jsx(
|
|
6263
|
+
Dd,
|
|
6250
6264
|
{
|
|
6251
|
-
className: r === ce.Telegram ? " " : ce.Simple ? " [&>path]:fill-
|
|
6265
|
+
className: r === ce.Telegram ? " " : ce.Simple ? " [&>path]:fill-black" : ""
|
|
6252
6266
|
}
|
|
6253
6267
|
),
|
|
6254
6268
|
n.isEdited ? /* @__PURE__ */ p.exports.jsx(
|
|
@@ -6262,7 +6276,7 @@ const jd = ({
|
|
|
6262
6276
|
/* @__PURE__ */ p.exports.jsx(
|
|
6263
6277
|
sn,
|
|
6264
6278
|
{
|
|
6265
|
-
className: `fill-blue-200 rotate-180 absolute -right-2 bottom-0 ${r === ce.Telegram ? "[&>g>path]:fill-green-200" : ce.Simple ? "[&>g>path]:fill-[#
|
|
6279
|
+
className: `fill-blue-200 rotate-180 absolute -right-2 bottom-0 ${r === ce.Telegram ? "[&>g>path]:fill-green-200" : ce.Simple ? "[&>g>path]:fill-[#b3baff]" : ""} `
|
|
6266
6280
|
}
|
|
6267
6281
|
)
|
|
6268
6282
|
]
|
|
@@ -6270,11 +6284,11 @@ const jd = ({
|
|
|
6270
6284
|
);
|
|
6271
6285
|
var xe = { exports: {} }, Dn = { exports: {} }, J = {};
|
|
6272
6286
|
var Es;
|
|
6273
|
-
function
|
|
6287
|
+
function Od() {
|
|
6274
6288
|
if (Es)
|
|
6275
6289
|
return J;
|
|
6276
6290
|
Es = 1;
|
|
6277
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121,
|
|
6291
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, C = e ? Symbol.for("react.scope") : 60119;
|
|
6278
6292
|
function E(g) {
|
|
6279
6293
|
if (typeof g == "object" && g !== null) {
|
|
6280
6294
|
var D = g.$$typeof;
|
|
@@ -6333,16 +6347,16 @@ function Dd() {
|
|
|
6333
6347
|
}, J.isSuspense = function(g) {
|
|
6334
6348
|
return E(g) === f;
|
|
6335
6349
|
}, J.isValidElementType = function(g) {
|
|
6336
|
-
return typeof g == "string" || typeof g == "function" || g === r || g === c || g === s || g === i || g === f || g === h || typeof g == "object" && g !== null && (g.$$typeof === y || g.$$typeof === m || g.$$typeof === o || g.$$typeof === a || g.$$typeof === u || g.$$typeof ===
|
|
6350
|
+
return typeof g == "string" || typeof g == "function" || g === r || g === c || g === s || g === i || g === f || g === h || typeof g == "object" && g !== null && (g.$$typeof === y || g.$$typeof === m || g.$$typeof === o || g.$$typeof === a || g.$$typeof === u || g.$$typeof === b || g.$$typeof === x || g.$$typeof === C || g.$$typeof === v);
|
|
6337
6351
|
}, J.typeOf = E, J;
|
|
6338
6352
|
}
|
|
6339
6353
|
var Q = {};
|
|
6340
6354
|
var js;
|
|
6341
|
-
function
|
|
6355
|
+
function kd() {
|
|
6342
6356
|
return js || (js = 1, process.env.NODE_ENV !== "production" && function() {
|
|
6343
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121,
|
|
6357
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, C = e ? Symbol.for("react.scope") : 60119;
|
|
6344
6358
|
function E(P) {
|
|
6345
|
-
return typeof P == "string" || typeof P == "function" || P === r || P === c || P === s || P === i || P === f || P === h || typeof P == "object" && P !== null && (P.$$typeof === y || P.$$typeof === m || P.$$typeof === o || P.$$typeof === a || P.$$typeof === u || P.$$typeof ===
|
|
6359
|
+
return typeof P == "string" || typeof P == "function" || P === r || P === c || P === s || P === i || P === f || P === h || typeof P == "object" && P !== null && (P.$$typeof === y || P.$$typeof === m || P.$$typeof === o || P.$$typeof === a || P.$$typeof === u || P.$$typeof === b || P.$$typeof === x || P.$$typeof === C || P.$$typeof === v);
|
|
6346
6360
|
}
|
|
6347
6361
|
function V(P) {
|
|
6348
6362
|
if (typeof P == "object" && P !== null) {
|
|
@@ -6376,14 +6390,14 @@ function Ld() {
|
|
|
6376
6390
|
}
|
|
6377
6391
|
}
|
|
6378
6392
|
}
|
|
6379
|
-
var g = l, D = c, z = a, O = o, Z = t, R = u, H = r, ie = y,
|
|
6393
|
+
var g = l, D = c, z = a, O = o, Z = t, R = u, H = r, ie = y, W = m, se = n, pe = s, he = i, q = f, oe = !1;
|
|
6380
6394
|
function me(P) {
|
|
6381
|
-
return oe || (oe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),
|
|
6395
|
+
return oe || (oe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), w(P) || V(P) === l;
|
|
6382
6396
|
}
|
|
6383
|
-
function
|
|
6397
|
+
function w(P) {
|
|
6384
6398
|
return V(P) === c;
|
|
6385
6399
|
}
|
|
6386
|
-
function
|
|
6400
|
+
function T(P) {
|
|
6387
6401
|
return V(P) === a;
|
|
6388
6402
|
}
|
|
6389
6403
|
function F(P) {
|
|
@@ -6404,7 +6418,7 @@ function Ld() {
|
|
|
6404
6418
|
function $(P) {
|
|
6405
6419
|
return V(P) === m;
|
|
6406
6420
|
}
|
|
6407
|
-
function
|
|
6421
|
+
function U(P) {
|
|
6408
6422
|
return V(P) === n;
|
|
6409
6423
|
}
|
|
6410
6424
|
function j(P) {
|
|
@@ -6416,17 +6430,17 @@ function Ld() {
|
|
|
6416
6430
|
function L(P) {
|
|
6417
6431
|
return V(P) === f;
|
|
6418
6432
|
}
|
|
6419
|
-
Q.AsyncMode = g, Q.ConcurrentMode = D, Q.ContextConsumer = z, Q.ContextProvider = O, Q.Element = Z, Q.ForwardRef = R, Q.Fragment = H, Q.Lazy = ie, Q.Memo =
|
|
6433
|
+
Q.AsyncMode = g, Q.ConcurrentMode = D, Q.ContextConsumer = z, Q.ContextProvider = O, Q.Element = Z, Q.ForwardRef = R, Q.Fragment = H, Q.Lazy = ie, Q.Memo = W, Q.Portal = se, Q.Profiler = pe, Q.StrictMode = he, Q.Suspense = q, Q.isAsyncMode = me, Q.isConcurrentMode = w, Q.isContextConsumer = T, Q.isContextProvider = F, Q.isElement = B, Q.isForwardRef = _, Q.isFragment = Y, Q.isLazy = I, Q.isMemo = $, Q.isPortal = U, Q.isProfiler = j, Q.isStrictMode = M, Q.isSuspense = L, Q.isValidElementType = E, Q.typeOf = V;
|
|
6420
6434
|
}()), Q;
|
|
6421
6435
|
}
|
|
6422
6436
|
var Rs;
|
|
6423
|
-
function
|
|
6437
|
+
function ma() {
|
|
6424
6438
|
return Rs || (Rs = 1, function(e) {
|
|
6425
|
-
process.env.NODE_ENV === "production" ? e.exports =
|
|
6439
|
+
process.env.NODE_ENV === "production" ? e.exports = Od() : e.exports = kd();
|
|
6426
6440
|
}(Dn)), Dn.exports;
|
|
6427
6441
|
}
|
|
6428
6442
|
var Ln, As;
|
|
6429
|
-
function
|
|
6443
|
+
function _d() {
|
|
6430
6444
|
if (As)
|
|
6431
6445
|
return Ln;
|
|
6432
6446
|
As = 1;
|
|
@@ -6481,18 +6495,18 @@ function zr() {
|
|
|
6481
6495
|
return On = e, On;
|
|
6482
6496
|
}
|
|
6483
6497
|
var kn, Vs;
|
|
6484
|
-
function
|
|
6498
|
+
function ga() {
|
|
6485
6499
|
return Vs || (Vs = 1, kn = Function.call.bind(Object.prototype.hasOwnProperty)), kn;
|
|
6486
6500
|
}
|
|
6487
6501
|
var _n, Ds;
|
|
6488
|
-
function
|
|
6502
|
+
function Id() {
|
|
6489
6503
|
if (Ds)
|
|
6490
6504
|
return _n;
|
|
6491
6505
|
Ds = 1;
|
|
6492
6506
|
var e = function() {
|
|
6493
6507
|
};
|
|
6494
6508
|
if (process.env.NODE_ENV !== "production") {
|
|
6495
|
-
var t = zr(), n = {}, r =
|
|
6509
|
+
var t = zr(), n = {}, r = ga();
|
|
6496
6510
|
e = function(s) {
|
|
6497
6511
|
var o = "Warning: " + s;
|
|
6498
6512
|
typeof console < "u" && console.error(o);
|
|
@@ -6535,11 +6549,11 @@ function kd() {
|
|
|
6535
6549
|
}, _n = i, _n;
|
|
6536
6550
|
}
|
|
6537
6551
|
var In, Ls;
|
|
6538
|
-
function
|
|
6552
|
+
function Nd() {
|
|
6539
6553
|
if (Ls)
|
|
6540
6554
|
return In;
|
|
6541
6555
|
Ls = 1;
|
|
6542
|
-
var e =
|
|
6556
|
+
var e = ma(), t = _d(), n = zr(), r = ga(), i = Id(), s = function() {
|
|
6543
6557
|
};
|
|
6544
6558
|
process.env.NODE_ENV !== "production" && (s = function(a) {
|
|
6545
6559
|
var l = "Warning: " + a;
|
|
@@ -6554,10 +6568,10 @@ function _d() {
|
|
|
6554
6568
|
}
|
|
6555
6569
|
return In = function(a, l) {
|
|
6556
6570
|
var c = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
|
|
6557
|
-
function f(
|
|
6558
|
-
var
|
|
6559
|
-
if (typeof
|
|
6560
|
-
return
|
|
6571
|
+
function f(w) {
|
|
6572
|
+
var T = w && (c && w[c] || w[u]);
|
|
6573
|
+
if (typeof T == "function")
|
|
6574
|
+
return T;
|
|
6561
6575
|
}
|
|
6562
6576
|
var h = "<<anonymous>>", m = {
|
|
6563
6577
|
array: x("array"),
|
|
@@ -6578,178 +6592,178 @@ function _d() {
|
|
|
6578
6592
|
oneOf: z,
|
|
6579
6593
|
oneOfType: Z,
|
|
6580
6594
|
shape: ie,
|
|
6581
|
-
exact:
|
|
6595
|
+
exact: W
|
|
6582
6596
|
};
|
|
6583
|
-
function y(
|
|
6584
|
-
return
|
|
6597
|
+
function y(w, T) {
|
|
6598
|
+
return w === T ? w !== 0 || 1 / w === 1 / T : w !== w && T !== T;
|
|
6585
6599
|
}
|
|
6586
|
-
function v(
|
|
6587
|
-
this.message =
|
|
6600
|
+
function v(w, T) {
|
|
6601
|
+
this.message = w, this.data = T && typeof T == "object" ? T : {}, this.stack = "";
|
|
6588
6602
|
}
|
|
6589
6603
|
v.prototype = Error.prototype;
|
|
6590
|
-
function
|
|
6604
|
+
function b(w) {
|
|
6591
6605
|
if (process.env.NODE_ENV !== "production")
|
|
6592
|
-
var
|
|
6593
|
-
function B(Y, I, $,
|
|
6594
|
-
if (
|
|
6606
|
+
var T = {}, F = 0;
|
|
6607
|
+
function B(Y, I, $, U, j, M, L) {
|
|
6608
|
+
if (U = U || h, M = M || $, L !== n) {
|
|
6595
6609
|
if (l) {
|
|
6596
6610
|
var P = new Error(
|
|
6597
6611
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
6598
6612
|
);
|
|
6599
6613
|
throw P.name = "Invariant Violation", P;
|
|
6600
6614
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
6601
|
-
var te =
|
|
6602
|
-
!
|
|
6603
|
-
"You are manually calling a React.PropTypes validation function for the `" + M + "` prop on `" +
|
|
6604
|
-
),
|
|
6615
|
+
var te = U + ":" + $;
|
|
6616
|
+
!T[te] && F < 3 && (s(
|
|
6617
|
+
"You are manually calling a React.PropTypes validation function for the `" + M + "` prop on `" + U + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
6618
|
+
), T[te] = !0, F++);
|
|
6605
6619
|
}
|
|
6606
6620
|
}
|
|
6607
|
-
return I[$] == null ? Y ? I[$] === null ? new v("The " + j + " `" + M + "` is marked as required " + ("in `" +
|
|
6621
|
+
return I[$] == null ? Y ? I[$] === null ? new v("The " + j + " `" + M + "` is marked as required " + ("in `" + U + "`, but its value is `null`.")) : new v("The " + j + " `" + M + "` is marked as required in " + ("`" + U + "`, but its value is `undefined`.")) : null : w(I, $, U, j, M);
|
|
6608
6622
|
}
|
|
6609
6623
|
var _ = B.bind(null, !1);
|
|
6610
6624
|
return _.isRequired = B.bind(null, !0), _;
|
|
6611
6625
|
}
|
|
6612
|
-
function x(
|
|
6613
|
-
function
|
|
6614
|
-
var
|
|
6615
|
-
if (j !==
|
|
6616
|
-
var M = q(
|
|
6626
|
+
function x(w) {
|
|
6627
|
+
function T(F, B, _, Y, I, $) {
|
|
6628
|
+
var U = F[B], j = he(U);
|
|
6629
|
+
if (j !== w) {
|
|
6630
|
+
var M = q(U);
|
|
6617
6631
|
return new v(
|
|
6618
|
-
"Invalid " + Y + " `" + I + "` of type " + ("`" + M + "` supplied to `" + _ + "`, expected ") + ("`" +
|
|
6619
|
-
{ expectedType:
|
|
6632
|
+
"Invalid " + Y + " `" + I + "` of type " + ("`" + M + "` supplied to `" + _ + "`, expected ") + ("`" + w + "`."),
|
|
6633
|
+
{ expectedType: w }
|
|
6620
6634
|
);
|
|
6621
6635
|
}
|
|
6622
6636
|
return null;
|
|
6623
6637
|
}
|
|
6624
|
-
return T
|
|
6638
|
+
return b(T);
|
|
6625
6639
|
}
|
|
6626
6640
|
function C() {
|
|
6627
|
-
return
|
|
6641
|
+
return b(o);
|
|
6628
6642
|
}
|
|
6629
|
-
function E(
|
|
6630
|
-
function
|
|
6631
|
-
if (typeof
|
|
6643
|
+
function E(w) {
|
|
6644
|
+
function T(F, B, _, Y, I) {
|
|
6645
|
+
if (typeof w != "function")
|
|
6632
6646
|
return new v("Property `" + I + "` of component `" + _ + "` has invalid PropType notation inside arrayOf.");
|
|
6633
6647
|
var $ = F[B];
|
|
6634
6648
|
if (!Array.isArray($)) {
|
|
6635
|
-
var
|
|
6636
|
-
return new v("Invalid " + Y + " `" + I + "` of type " + ("`" +
|
|
6649
|
+
var U = he($);
|
|
6650
|
+
return new v("Invalid " + Y + " `" + I + "` of type " + ("`" + U + "` supplied to `" + _ + "`, expected an array."));
|
|
6637
6651
|
}
|
|
6638
6652
|
for (var j = 0; j < $.length; j++) {
|
|
6639
|
-
var M =
|
|
6653
|
+
var M = w($, j, _, Y, I + "[" + j + "]", n);
|
|
6640
6654
|
if (M instanceof Error)
|
|
6641
6655
|
return M;
|
|
6642
6656
|
}
|
|
6643
6657
|
return null;
|
|
6644
6658
|
}
|
|
6645
|
-
return T
|
|
6659
|
+
return b(T);
|
|
6646
6660
|
}
|
|
6647
6661
|
function V() {
|
|
6648
|
-
function
|
|
6649
|
-
var I =
|
|
6662
|
+
function w(T, F, B, _, Y) {
|
|
6663
|
+
var I = T[F];
|
|
6650
6664
|
if (!a(I)) {
|
|
6651
6665
|
var $ = he(I);
|
|
6652
6666
|
return new v("Invalid " + _ + " `" + Y + "` of type " + ("`" + $ + "` supplied to `" + B + "`, expected a single ReactElement."));
|
|
6653
6667
|
}
|
|
6654
6668
|
return null;
|
|
6655
6669
|
}
|
|
6656
|
-
return
|
|
6670
|
+
return b(w);
|
|
6657
6671
|
}
|
|
6658
6672
|
function g() {
|
|
6659
|
-
function
|
|
6660
|
-
var I =
|
|
6673
|
+
function w(T, F, B, _, Y) {
|
|
6674
|
+
var I = T[F];
|
|
6661
6675
|
if (!e.isValidElementType(I)) {
|
|
6662
6676
|
var $ = he(I);
|
|
6663
6677
|
return new v("Invalid " + _ + " `" + Y + "` of type " + ("`" + $ + "` supplied to `" + B + "`, expected a single ReactElement type."));
|
|
6664
6678
|
}
|
|
6665
6679
|
return null;
|
|
6666
6680
|
}
|
|
6667
|
-
return
|
|
6681
|
+
return b(w);
|
|
6668
6682
|
}
|
|
6669
|
-
function D(
|
|
6670
|
-
function
|
|
6671
|
-
if (!(F[B] instanceof
|
|
6672
|
-
var $ =
|
|
6673
|
-
return new v("Invalid " + Y + " `" + I + "` of type " + ("`" +
|
|
6683
|
+
function D(w) {
|
|
6684
|
+
function T(F, B, _, Y, I) {
|
|
6685
|
+
if (!(F[B] instanceof w)) {
|
|
6686
|
+
var $ = w.name || h, U = me(F[B]);
|
|
6687
|
+
return new v("Invalid " + Y + " `" + I + "` of type " + ("`" + U + "` supplied to `" + _ + "`, expected ") + ("instance of `" + $ + "`."));
|
|
6674
6688
|
}
|
|
6675
6689
|
return null;
|
|
6676
6690
|
}
|
|
6677
|
-
return T
|
|
6691
|
+
return b(T);
|
|
6678
6692
|
}
|
|
6679
|
-
function z(
|
|
6680
|
-
if (!Array.isArray(
|
|
6693
|
+
function z(w) {
|
|
6694
|
+
if (!Array.isArray(w))
|
|
6681
6695
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? s(
|
|
6682
6696
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
6683
6697
|
) : s("Invalid argument supplied to oneOf, expected an array.")), o;
|
|
6684
|
-
function
|
|
6685
|
-
for (var $ = F[B],
|
|
6686
|
-
if (y($,
|
|
6698
|
+
function T(F, B, _, Y, I) {
|
|
6699
|
+
for (var $ = F[B], U = 0; U < w.length; U++)
|
|
6700
|
+
if (y($, w[U]))
|
|
6687
6701
|
return null;
|
|
6688
|
-
var j = JSON.stringify(
|
|
6702
|
+
var j = JSON.stringify(w, function(L, P) {
|
|
6689
6703
|
var te = q(P);
|
|
6690
6704
|
return te === "symbol" ? String(P) : P;
|
|
6691
6705
|
});
|
|
6692
6706
|
return new v("Invalid " + Y + " `" + I + "` of value `" + String($) + "` " + ("supplied to `" + _ + "`, expected one of " + j + "."));
|
|
6693
6707
|
}
|
|
6694
|
-
return T
|
|
6708
|
+
return b(T);
|
|
6695
6709
|
}
|
|
6696
|
-
function O(
|
|
6697
|
-
function
|
|
6698
|
-
if (typeof
|
|
6710
|
+
function O(w) {
|
|
6711
|
+
function T(F, B, _, Y, I) {
|
|
6712
|
+
if (typeof w != "function")
|
|
6699
6713
|
return new v("Property `" + I + "` of component `" + _ + "` has invalid PropType notation inside objectOf.");
|
|
6700
|
-
var $ = F[B],
|
|
6701
|
-
if (
|
|
6702
|
-
return new v("Invalid " + Y + " `" + I + "` of type " + ("`" +
|
|
6714
|
+
var $ = F[B], U = he($);
|
|
6715
|
+
if (U !== "object")
|
|
6716
|
+
return new v("Invalid " + Y + " `" + I + "` of type " + ("`" + U + "` supplied to `" + _ + "`, expected an object."));
|
|
6703
6717
|
for (var j in $)
|
|
6704
6718
|
if (r($, j)) {
|
|
6705
|
-
var M =
|
|
6719
|
+
var M = w($, j, _, Y, I + "." + j, n);
|
|
6706
6720
|
if (M instanceof Error)
|
|
6707
6721
|
return M;
|
|
6708
6722
|
}
|
|
6709
6723
|
return null;
|
|
6710
6724
|
}
|
|
6711
|
-
return T
|
|
6725
|
+
return b(T);
|
|
6712
6726
|
}
|
|
6713
|
-
function Z(
|
|
6714
|
-
if (!Array.isArray(
|
|
6727
|
+
function Z(w) {
|
|
6728
|
+
if (!Array.isArray(w))
|
|
6715
6729
|
return process.env.NODE_ENV !== "production" && s("Invalid argument supplied to oneOfType, expected an instance of array."), o;
|
|
6716
|
-
for (var
|
|
6717
|
-
var F =
|
|
6730
|
+
for (var T = 0; T < w.length; T++) {
|
|
6731
|
+
var F = w[T];
|
|
6718
6732
|
if (typeof F != "function")
|
|
6719
6733
|
return s(
|
|
6720
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + oe(F) + " at index " +
|
|
6734
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + oe(F) + " at index " + T + "."
|
|
6721
6735
|
), o;
|
|
6722
6736
|
}
|
|
6723
|
-
function B(_, Y, I, $,
|
|
6724
|
-
for (var j = [], M = 0; M <
|
|
6725
|
-
var L =
|
|
6737
|
+
function B(_, Y, I, $, U) {
|
|
6738
|
+
for (var j = [], M = 0; M < w.length; M++) {
|
|
6739
|
+
var L = w[M], P = L(_, Y, I, $, U, n);
|
|
6726
6740
|
if (P == null)
|
|
6727
6741
|
return null;
|
|
6728
6742
|
P.data && r(P.data, "expectedType") && j.push(P.data.expectedType);
|
|
6729
6743
|
}
|
|
6730
6744
|
var te = j.length > 0 ? ", expected one of type [" + j.join(", ") + "]" : "";
|
|
6731
|
-
return new v("Invalid " + $ + " `" +
|
|
6745
|
+
return new v("Invalid " + $ + " `" + U + "` supplied to " + ("`" + I + "`" + te + "."));
|
|
6732
6746
|
}
|
|
6733
|
-
return
|
|
6747
|
+
return b(B);
|
|
6734
6748
|
}
|
|
6735
6749
|
function R() {
|
|
6736
|
-
function
|
|
6737
|
-
return se(
|
|
6750
|
+
function w(T, F, B, _, Y) {
|
|
6751
|
+
return se(T[F]) ? null : new v("Invalid " + _ + " `" + Y + "` supplied to " + ("`" + B + "`, expected a ReactNode."));
|
|
6738
6752
|
}
|
|
6739
|
-
return
|
|
6753
|
+
return b(w);
|
|
6740
6754
|
}
|
|
6741
|
-
function H(
|
|
6755
|
+
function H(w, T, F, B, _) {
|
|
6742
6756
|
return new v(
|
|
6743
|
-
(
|
|
6757
|
+
(w || "React class") + ": " + T + " type `" + F + "." + B + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + _ + "`."
|
|
6744
6758
|
);
|
|
6745
6759
|
}
|
|
6746
|
-
function ie(
|
|
6747
|
-
function
|
|
6748
|
-
var $ = F[B],
|
|
6749
|
-
if (
|
|
6750
|
-
return new v("Invalid " + Y + " `" + I + "` of type `" +
|
|
6751
|
-
for (var j in
|
|
6752
|
-
var M =
|
|
6760
|
+
function ie(w) {
|
|
6761
|
+
function T(F, B, _, Y, I) {
|
|
6762
|
+
var $ = F[B], U = he($);
|
|
6763
|
+
if (U !== "object")
|
|
6764
|
+
return new v("Invalid " + Y + " `" + I + "` of type `" + U + "` " + ("supplied to `" + _ + "`, expected `object`."));
|
|
6765
|
+
for (var j in w) {
|
|
6766
|
+
var M = w[j];
|
|
6753
6767
|
if (typeof M != "function")
|
|
6754
6768
|
return H(_, Y, I, j, q(M));
|
|
6755
6769
|
var L = M($, j, _, Y, I + "." + j, n);
|
|
@@ -6758,22 +6772,22 @@ function _d() {
|
|
|
6758
6772
|
}
|
|
6759
6773
|
return null;
|
|
6760
6774
|
}
|
|
6761
|
-
return T
|
|
6762
|
-
}
|
|
6763
|
-
function
|
|
6764
|
-
function
|
|
6765
|
-
var $ = F[B],
|
|
6766
|
-
if (
|
|
6767
|
-
return new v("Invalid " + Y + " `" + I + "` of type `" +
|
|
6768
|
-
var j = t({}, F[B],
|
|
6775
|
+
return b(T);
|
|
6776
|
+
}
|
|
6777
|
+
function W(w) {
|
|
6778
|
+
function T(F, B, _, Y, I) {
|
|
6779
|
+
var $ = F[B], U = he($);
|
|
6780
|
+
if (U !== "object")
|
|
6781
|
+
return new v("Invalid " + Y + " `" + I + "` of type `" + U + "` " + ("supplied to `" + _ + "`, expected `object`."));
|
|
6782
|
+
var j = t({}, F[B], w);
|
|
6769
6783
|
for (var M in j) {
|
|
6770
|
-
var L =
|
|
6771
|
-
if (r(
|
|
6784
|
+
var L = w[M];
|
|
6785
|
+
if (r(w, M) && typeof L != "function")
|
|
6772
6786
|
return H(_, Y, I, M, q(L));
|
|
6773
6787
|
if (!L)
|
|
6774
6788
|
return new v(
|
|
6775
6789
|
"Invalid " + Y + " `" + I + "` key `" + M + "` supplied to `" + _ + "`.\nBad object: " + JSON.stringify(F[B], null, " ") + `
|
|
6776
|
-
Valid keys: ` + JSON.stringify(Object.keys(
|
|
6790
|
+
Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
|
|
6777
6791
|
);
|
|
6778
6792
|
var P = L($, M, _, Y, I + "." + M, n);
|
|
6779
6793
|
if (P)
|
|
@@ -6781,25 +6795,25 @@ Valid keys: ` + JSON.stringify(Object.keys(b), null, " ")
|
|
|
6781
6795
|
}
|
|
6782
6796
|
return null;
|
|
6783
6797
|
}
|
|
6784
|
-
return T
|
|
6798
|
+
return b(T);
|
|
6785
6799
|
}
|
|
6786
|
-
function se(
|
|
6787
|
-
switch (typeof
|
|
6800
|
+
function se(w) {
|
|
6801
|
+
switch (typeof w) {
|
|
6788
6802
|
case "number":
|
|
6789
6803
|
case "string":
|
|
6790
6804
|
case "undefined":
|
|
6791
6805
|
return !0;
|
|
6792
6806
|
case "boolean":
|
|
6793
|
-
return !
|
|
6807
|
+
return !w;
|
|
6794
6808
|
case "object":
|
|
6795
|
-
if (Array.isArray(
|
|
6796
|
-
return
|
|
6797
|
-
if (
|
|
6809
|
+
if (Array.isArray(w))
|
|
6810
|
+
return w.every(se);
|
|
6811
|
+
if (w === null || a(w))
|
|
6798
6812
|
return !0;
|
|
6799
|
-
var
|
|
6800
|
-
if (
|
|
6801
|
-
var F =
|
|
6802
|
-
if (
|
|
6813
|
+
var T = f(w);
|
|
6814
|
+
if (T) {
|
|
6815
|
+
var F = T.call(w), B;
|
|
6816
|
+
if (T !== w.entries) {
|
|
6803
6817
|
for (; !(B = F.next()).done; )
|
|
6804
6818
|
if (!se(B.value))
|
|
6805
6819
|
return !1;
|
|
@@ -6816,47 +6830,47 @@ Valid keys: ` + JSON.stringify(Object.keys(b), null, " ")
|
|
|
6816
6830
|
return !1;
|
|
6817
6831
|
}
|
|
6818
6832
|
}
|
|
6819
|
-
function pe(
|
|
6820
|
-
return
|
|
6833
|
+
function pe(w, T) {
|
|
6834
|
+
return w === "symbol" ? !0 : T ? T["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && T instanceof Symbol : !1;
|
|
6821
6835
|
}
|
|
6822
|
-
function he(
|
|
6823
|
-
var
|
|
6824
|
-
return Array.isArray(
|
|
6836
|
+
function he(w) {
|
|
6837
|
+
var T = typeof w;
|
|
6838
|
+
return Array.isArray(w) ? "array" : w instanceof RegExp ? "object" : pe(T, w) ? "symbol" : T;
|
|
6825
6839
|
}
|
|
6826
|
-
function q(
|
|
6827
|
-
if (typeof
|
|
6828
|
-
return "" +
|
|
6829
|
-
var
|
|
6830
|
-
if (
|
|
6831
|
-
if (
|
|
6840
|
+
function q(w) {
|
|
6841
|
+
if (typeof w > "u" || w === null)
|
|
6842
|
+
return "" + w;
|
|
6843
|
+
var T = he(w);
|
|
6844
|
+
if (T === "object") {
|
|
6845
|
+
if (w instanceof Date)
|
|
6832
6846
|
return "date";
|
|
6833
|
-
if (
|
|
6847
|
+
if (w instanceof RegExp)
|
|
6834
6848
|
return "regexp";
|
|
6835
6849
|
}
|
|
6836
|
-
return
|
|
6850
|
+
return T;
|
|
6837
6851
|
}
|
|
6838
|
-
function oe(
|
|
6839
|
-
var
|
|
6840
|
-
switch (
|
|
6852
|
+
function oe(w) {
|
|
6853
|
+
var T = q(w);
|
|
6854
|
+
switch (T) {
|
|
6841
6855
|
case "array":
|
|
6842
6856
|
case "object":
|
|
6843
|
-
return "an " +
|
|
6857
|
+
return "an " + T;
|
|
6844
6858
|
case "boolean":
|
|
6845
6859
|
case "date":
|
|
6846
6860
|
case "regexp":
|
|
6847
|
-
return "a " +
|
|
6861
|
+
return "a " + T;
|
|
6848
6862
|
default:
|
|
6849
|
-
return
|
|
6863
|
+
return T;
|
|
6850
6864
|
}
|
|
6851
6865
|
}
|
|
6852
|
-
function me(
|
|
6853
|
-
return !
|
|
6866
|
+
function me(w) {
|
|
6867
|
+
return !w.constructor || !w.constructor.name ? h : w.constructor.name;
|
|
6854
6868
|
}
|
|
6855
6869
|
return m.checkPropTypes = i, m.resetWarningCache = i.resetWarningCache, m.PropTypes = m, m;
|
|
6856
6870
|
}, In;
|
|
6857
6871
|
}
|
|
6858
6872
|
var Nn, Os;
|
|
6859
|
-
function
|
|
6873
|
+
function Fd() {
|
|
6860
6874
|
if (Os)
|
|
6861
6875
|
return Nn;
|
|
6862
6876
|
Os = 1;
|
|
@@ -6905,10 +6919,10 @@ function Id() {
|
|
|
6905
6919
|
}, Nn;
|
|
6906
6920
|
}
|
|
6907
6921
|
if (process.env.NODE_ENV !== "production") {
|
|
6908
|
-
var
|
|
6909
|
-
xe.exports =
|
|
6922
|
+
var Bd = ma(), $d = !0;
|
|
6923
|
+
xe.exports = Nd()(Bd.isElement, $d);
|
|
6910
6924
|
} else
|
|
6911
|
-
xe.exports =
|
|
6925
|
+
xe.exports = Fd()();
|
|
6912
6926
|
function tr() {
|
|
6913
6927
|
return tr = Object.assign || function(e) {
|
|
6914
6928
|
for (var t = 1; t < arguments.length; t++) {
|
|
@@ -6919,10 +6933,10 @@ function tr() {
|
|
|
6919
6933
|
return e;
|
|
6920
6934
|
}, tr.apply(this, arguments);
|
|
6921
6935
|
}
|
|
6922
|
-
function
|
|
6936
|
+
function Ud(e, t) {
|
|
6923
6937
|
if (e == null)
|
|
6924
6938
|
return {};
|
|
6925
|
-
var n =
|
|
6939
|
+
var n = Wd(e, t), r, i;
|
|
6926
6940
|
if (Object.getOwnPropertySymbols) {
|
|
6927
6941
|
var s = Object.getOwnPropertySymbols(e);
|
|
6928
6942
|
for (i = 0; i < s.length; i++)
|
|
@@ -6930,7 +6944,7 @@ function Bd(e, t) {
|
|
|
6930
6944
|
}
|
|
6931
6945
|
return n;
|
|
6932
6946
|
}
|
|
6933
|
-
function
|
|
6947
|
+
function Wd(e, t) {
|
|
6934
6948
|
if (e == null)
|
|
6935
6949
|
return {};
|
|
6936
6950
|
var n = {}, r = Object.keys(e), i, s;
|
|
@@ -6939,7 +6953,7 @@ function $d(e, t) {
|
|
|
6939
6953
|
return n;
|
|
6940
6954
|
}
|
|
6941
6955
|
var Yr = Nt(function(e, t) {
|
|
6942
|
-
var n = e.color, r = n === void 0 ? "currentColor" : n, i = e.size, s = i === void 0 ? 24 : i, o =
|
|
6956
|
+
var n = e.color, r = n === void 0 ? "currentColor" : n, i = e.size, s = i === void 0 ? 24 : i, o = Ud(e, ["color", "size"]);
|
|
6943
6957
|
return /* @__PURE__ */ Re.createElement("svg", tr({
|
|
6944
6958
|
ref: t,
|
|
6945
6959
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6960,7 +6974,7 @@ Yr.propTypes = {
|
|
|
6960
6974
|
size: xe.exports.oneOfType([xe.exports.string, xe.exports.number])
|
|
6961
6975
|
};
|
|
6962
6976
|
Yr.displayName = "Check";
|
|
6963
|
-
const
|
|
6977
|
+
const zd = Yr;
|
|
6964
6978
|
function nr() {
|
|
6965
6979
|
return nr = Object.assign || function(e) {
|
|
6966
6980
|
for (var t = 1; t < arguments.length; t++) {
|
|
@@ -6971,10 +6985,10 @@ function nr() {
|
|
|
6971
6985
|
return e;
|
|
6972
6986
|
}, nr.apply(this, arguments);
|
|
6973
6987
|
}
|
|
6974
|
-
function
|
|
6988
|
+
function Yd(e, t) {
|
|
6975
6989
|
if (e == null)
|
|
6976
6990
|
return {};
|
|
6977
|
-
var n =
|
|
6991
|
+
var n = Kd(e, t), r, i;
|
|
6978
6992
|
if (Object.getOwnPropertySymbols) {
|
|
6979
6993
|
var s = Object.getOwnPropertySymbols(e);
|
|
6980
6994
|
for (i = 0; i < s.length; i++)
|
|
@@ -6982,7 +6996,7 @@ function Wd(e, t) {
|
|
|
6982
6996
|
}
|
|
6983
6997
|
return n;
|
|
6984
6998
|
}
|
|
6985
|
-
function
|
|
6999
|
+
function Kd(e, t) {
|
|
6986
7000
|
if (e == null)
|
|
6987
7001
|
return {};
|
|
6988
7002
|
var n = {}, r = Object.keys(e), i, s;
|
|
@@ -6991,7 +7005,7 @@ function zd(e, t) {
|
|
|
6991
7005
|
return n;
|
|
6992
7006
|
}
|
|
6993
7007
|
var Kr = Nt(function(e, t) {
|
|
6994
|
-
var n = e.color, r = n === void 0 ? "currentColor" : n, i = e.size, s = i === void 0 ? 24 : i, o =
|
|
7008
|
+
var n = e.color, r = n === void 0 ? "currentColor" : n, i = e.size, s = i === void 0 ? 24 : i, o = Yd(e, ["color", "size"]);
|
|
6995
7009
|
return /* @__PURE__ */ Re.createElement("svg", nr({
|
|
6996
7010
|
ref: t,
|
|
6997
7011
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7019,7 +7033,7 @@ Kr.propTypes = {
|
|
|
7019
7033
|
size: xe.exports.oneOfType([xe.exports.string, xe.exports.number])
|
|
7020
7034
|
};
|
|
7021
7035
|
Kr.displayName = "Copy";
|
|
7022
|
-
const
|
|
7036
|
+
const Hd = Kr;
|
|
7023
7037
|
function rr() {
|
|
7024
7038
|
return rr = Object.assign || function(e) {
|
|
7025
7039
|
for (var t = 1; t < arguments.length; t++) {
|
|
@@ -7030,10 +7044,10 @@ function rr() {
|
|
|
7030
7044
|
return e;
|
|
7031
7045
|
}, rr.apply(this, arguments);
|
|
7032
7046
|
}
|
|
7033
|
-
function
|
|
7047
|
+
function Gd(e, t) {
|
|
7034
7048
|
if (e == null)
|
|
7035
7049
|
return {};
|
|
7036
|
-
var n =
|
|
7050
|
+
var n = qd(e, t), r, i;
|
|
7037
7051
|
if (Object.getOwnPropertySymbols) {
|
|
7038
7052
|
var s = Object.getOwnPropertySymbols(e);
|
|
7039
7053
|
for (i = 0; i < s.length; i++)
|
|
@@ -7041,7 +7055,7 @@ function Kd(e, t) {
|
|
|
7041
7055
|
}
|
|
7042
7056
|
return n;
|
|
7043
7057
|
}
|
|
7044
|
-
function
|
|
7058
|
+
function qd(e, t) {
|
|
7045
7059
|
if (e == null)
|
|
7046
7060
|
return {};
|
|
7047
7061
|
var n = {}, r = Object.keys(e), i, s;
|
|
@@ -7050,7 +7064,7 @@ function Hd(e, t) {
|
|
|
7050
7064
|
return n;
|
|
7051
7065
|
}
|
|
7052
7066
|
var Hr = Nt(function(e, t) {
|
|
7053
|
-
var n = e.color, r = n === void 0 ? "currentColor" : n, i = e.size, s = i === void 0 ? 24 : i, o =
|
|
7067
|
+
var n = e.color, r = n === void 0 ? "currentColor" : n, i = e.size, s = i === void 0 ? 24 : i, o = Gd(e, ["color", "size"]);
|
|
7054
7068
|
return /* @__PURE__ */ Re.createElement("svg", rr({
|
|
7055
7069
|
ref: t,
|
|
7056
7070
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7073,7 +7087,7 @@ Hr.propTypes = {
|
|
|
7073
7087
|
size: xe.exports.oneOfType([xe.exports.string, xe.exports.number])
|
|
7074
7088
|
};
|
|
7075
7089
|
Hr.displayName = "Edit";
|
|
7076
|
-
const
|
|
7090
|
+
const Xd = Hr;
|
|
7077
7091
|
function ir() {
|
|
7078
7092
|
return ir = Object.assign || function(e) {
|
|
7079
7093
|
for (var t = 1; t < arguments.length; t++) {
|
|
@@ -7084,10 +7098,10 @@ function ir() {
|
|
|
7084
7098
|
return e;
|
|
7085
7099
|
}, ir.apply(this, arguments);
|
|
7086
7100
|
}
|
|
7087
|
-
function
|
|
7101
|
+
function Zd(e, t) {
|
|
7088
7102
|
if (e == null)
|
|
7089
7103
|
return {};
|
|
7090
|
-
var n =
|
|
7104
|
+
var n = Jd(e, t), r, i;
|
|
7091
7105
|
if (Object.getOwnPropertySymbols) {
|
|
7092
7106
|
var s = Object.getOwnPropertySymbols(e);
|
|
7093
7107
|
for (i = 0; i < s.length; i++)
|
|
@@ -7095,7 +7109,7 @@ function qd(e, t) {
|
|
|
7095
7109
|
}
|
|
7096
7110
|
return n;
|
|
7097
7111
|
}
|
|
7098
|
-
function
|
|
7112
|
+
function Jd(e, t) {
|
|
7099
7113
|
if (e == null)
|
|
7100
7114
|
return {};
|
|
7101
7115
|
var n = {}, r = Object.keys(e), i, s;
|
|
@@ -7104,7 +7118,7 @@ function Xd(e, t) {
|
|
|
7104
7118
|
return n;
|
|
7105
7119
|
}
|
|
7106
7120
|
var Gr = Nt(function(e, t) {
|
|
7107
|
-
var n = e.color, r = n === void 0 ? "currentColor" : n, i = e.size, s = i === void 0 ? 24 : i, o =
|
|
7121
|
+
var n = e.color, r = n === void 0 ? "currentColor" : n, i = e.size, s = i === void 0 ? 24 : i, o = Zd(e, ["color", "size"]);
|
|
7108
7122
|
return /* @__PURE__ */ Re.createElement("svg", ir({
|
|
7109
7123
|
ref: t,
|
|
7110
7124
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7127,7 +7141,7 @@ Gr.propTypes = {
|
|
|
7127
7141
|
size: xe.exports.oneOfType([xe.exports.string, xe.exports.number])
|
|
7128
7142
|
};
|
|
7129
7143
|
Gr.displayName = "Trash";
|
|
7130
|
-
const
|
|
7144
|
+
const Qd = Gr, eh = ({
|
|
7131
7145
|
user: e,
|
|
7132
7146
|
messages: t,
|
|
7133
7147
|
updateMessages: n,
|
|
@@ -7137,29 +7151,29 @@ const Zd = Gr, Jd = ({
|
|
|
7137
7151
|
isSendingDefultForEdited: o,
|
|
7138
7152
|
onDeleteMessage: a
|
|
7139
7153
|
}) => {
|
|
7140
|
-
const l = Se(null), [c, u] = ve(!1), [f, h] = ve(null), [m, y] = ve(), [v,
|
|
7154
|
+
const l = Se(null), [c, u] = ve(!1), [f, h] = ve(null), [m, y] = ve(), [v, b] = ve(null), x = () => {
|
|
7141
7155
|
setTimeout(() => {
|
|
7142
7156
|
l.current && (l.current.scrollTop = l.current.scrollHeight);
|
|
7143
7157
|
}, 100);
|
|
7144
7158
|
};
|
|
7145
7159
|
He(() => {
|
|
7146
7160
|
const R = () => {
|
|
7147
|
-
|
|
7161
|
+
b(null);
|
|
7148
7162
|
};
|
|
7149
7163
|
return window.addEventListener("scroll", R, !0), () => {
|
|
7150
7164
|
window.removeEventListener("scroll", R, !0);
|
|
7151
7165
|
};
|
|
7152
|
-
}, [
|
|
7166
|
+
}, [b]);
|
|
7153
7167
|
const C = (R, H) => {
|
|
7154
7168
|
R.preventDefault();
|
|
7155
|
-
const ie = window.scrollX,
|
|
7156
|
-
|
|
7169
|
+
const ie = window.scrollX, W = window.scrollY;
|
|
7170
|
+
b({
|
|
7157
7171
|
x: R.clientX + ie,
|
|
7158
|
-
y: R.clientY +
|
|
7172
|
+
y: R.clientY + W,
|
|
7159
7173
|
message: H
|
|
7160
7174
|
});
|
|
7161
7175
|
}, E = () => {
|
|
7162
|
-
|
|
7176
|
+
b(null);
|
|
7163
7177
|
}, V = (R, H) => {
|
|
7164
7178
|
const ie = new Gt({
|
|
7165
7179
|
id: new Date().toString(),
|
|
@@ -7188,14 +7202,14 @@ const Zd = Gr, Jd = ({
|
|
|
7188
7202
|
});
|
|
7189
7203
|
n([...t, ie]), r(ie), x();
|
|
7190
7204
|
}, z = (R, H) => {
|
|
7191
|
-
const ie = URL.createObjectURL(R),
|
|
7205
|
+
const ie = URL.createObjectURL(R), W = R instanceof File ? R.name : "", se = R instanceof File ? R.name.split(".").pop() : "", pe = new Gt({
|
|
7192
7206
|
id: new Date().toString(),
|
|
7193
7207
|
text: "",
|
|
7194
7208
|
attachmentUrl: ie,
|
|
7195
7209
|
attachmentBlob: R,
|
|
7196
7210
|
attachmentType: H,
|
|
7197
7211
|
attachmentFormat: se,
|
|
7198
|
-
attachmentName:
|
|
7212
|
+
attachmentName: W,
|
|
7199
7213
|
user: e,
|
|
7200
7214
|
isRightSided: !0,
|
|
7201
7215
|
createdDate: new Date().toString()
|
|
@@ -7210,7 +7224,7 @@ const Zd = Gr, Jd = ({
|
|
|
7210
7224
|
contextMenuItems: [
|
|
7211
7225
|
{
|
|
7212
7226
|
name: "Edit",
|
|
7213
|
-
icon: /* @__PURE__ */ p.exports.jsx(
|
|
7227
|
+
icon: /* @__PURE__ */ p.exports.jsx(Xd, { className: "text-gray-600" }),
|
|
7214
7228
|
onlyCurrentUserMessage: !0,
|
|
7215
7229
|
onClick: (R) => {
|
|
7216
7230
|
y(t.find((H) => H.id === R)), E();
|
|
@@ -7218,7 +7232,7 @@ const Zd = Gr, Jd = ({
|
|
|
7218
7232
|
},
|
|
7219
7233
|
{
|
|
7220
7234
|
name: "Delete",
|
|
7221
|
-
icon: /* @__PURE__ */ p.exports.jsx(
|
|
7235
|
+
icon: /* @__PURE__ */ p.exports.jsx(Qd, { className: "text-red-600" }),
|
|
7222
7236
|
onlyCurrentUserMessage: !0,
|
|
7223
7237
|
onClick: (R) => {
|
|
7224
7238
|
h(R), u(!0), E();
|
|
@@ -7226,7 +7240,7 @@ const Zd = Gr, Jd = ({
|
|
|
7226
7240
|
},
|
|
7227
7241
|
{
|
|
7228
7242
|
name: "Select",
|
|
7229
|
-
icon: /* @__PURE__ */ p.exports.jsx(
|
|
7243
|
+
icon: /* @__PURE__ */ p.exports.jsx(zd, { className: "text-green-600" }),
|
|
7230
7244
|
disabled: !0,
|
|
7231
7245
|
onClick: () => {
|
|
7232
7246
|
console.log("Select clicked"), E();
|
|
@@ -7234,7 +7248,7 @@ const Zd = Gr, Jd = ({
|
|
|
7234
7248
|
},
|
|
7235
7249
|
{
|
|
7236
7250
|
name: "Copy",
|
|
7237
|
-
icon: /* @__PURE__ */ p.exports.jsx(
|
|
7251
|
+
icon: /* @__PURE__ */ p.exports.jsx(Hd, { className: "text-blue-600" }),
|
|
7238
7252
|
onClick: (R) => {
|
|
7239
7253
|
const H = t.find((ie) => ie.id === R);
|
|
7240
7254
|
H && navigator.clipboard.writeText(H.text), E();
|
|
@@ -7253,7 +7267,7 @@ const Zd = Gr, Jd = ({
|
|
|
7253
7267
|
setMessageToEdit: y,
|
|
7254
7268
|
handleEditMessage: g
|
|
7255
7269
|
};
|
|
7256
|
-
},
|
|
7270
|
+
}, lh = ({
|
|
7257
7271
|
width: e = "400px",
|
|
7258
7272
|
height: t = "600px",
|
|
7259
7273
|
isLoadingChat: n,
|
|
@@ -7270,13 +7284,13 @@ const Zd = Gr, Jd = ({
|
|
|
7270
7284
|
onDynamicSymbolListDelete: m,
|
|
7271
7285
|
isSendingDefultForNewMessage: y,
|
|
7272
7286
|
isSendingDefultForEdited: v,
|
|
7273
|
-
backgroundImage:
|
|
7287
|
+
backgroundImage: b,
|
|
7274
7288
|
messageBubbleBiggerSize: x,
|
|
7275
7289
|
uploadProgress: C,
|
|
7276
7290
|
onUploadCancellationToken: E,
|
|
7277
7291
|
them: V = ce.Telegram
|
|
7278
7292
|
}) => {
|
|
7279
|
-
var me,
|
|
7293
|
+
var me, w;
|
|
7280
7294
|
const {
|
|
7281
7295
|
handleDeleteConfirmation: g,
|
|
7282
7296
|
handleCloseContextMenu: D,
|
|
@@ -7286,13 +7300,13 @@ const Zd = Gr, Jd = ({
|
|
|
7286
7300
|
handleContextMenu: R,
|
|
7287
7301
|
contextMenuItems: H,
|
|
7288
7302
|
isModalOpen: ie,
|
|
7289
|
-
contextMenu:
|
|
7303
|
+
contextMenu: W,
|
|
7290
7304
|
chatRef: se,
|
|
7291
7305
|
setIsModalOpen: pe,
|
|
7292
7306
|
messageToEdit: he,
|
|
7293
7307
|
setMessageToEdit: q,
|
|
7294
7308
|
handleEditMessage: oe
|
|
7295
|
-
} =
|
|
7309
|
+
} = eh({
|
|
7296
7310
|
user: o,
|
|
7297
7311
|
messages: s,
|
|
7298
7312
|
updateMessages: a,
|
|
@@ -7309,7 +7323,7 @@ const Zd = Gr, Jd = ({
|
|
|
7309
7323
|
style: {
|
|
7310
7324
|
width: e,
|
|
7311
7325
|
height: t,
|
|
7312
|
-
background: "url(" +
|
|
7326
|
+
background: "url(" + b + ")",
|
|
7313
7327
|
...i
|
|
7314
7328
|
},
|
|
7315
7329
|
onClick: D,
|
|
@@ -7318,46 +7332,52 @@ const Zd = Gr, Jd = ({
|
|
|
7318
7332
|
"div",
|
|
7319
7333
|
{
|
|
7320
7334
|
ref: se,
|
|
7321
|
-
className: `flex flex-col gap-2 flex-1 p-3 pb-16 ${
|
|
7322
|
-
children: n ? /* @__PURE__ */ p.exports.jsx(
|
|
7335
|
+
className: `flex flex-col gap-2 flex-1 p-3 pb-16 ${W ? "overflow-hidden pr-[22px]" : "overflow-y-scroll"}`,
|
|
7336
|
+
children: n ? /* @__PURE__ */ p.exports.jsx(pa, { className: "mt-3", size: 27, color: "text-gray-800" }) : /* @__PURE__ */ p.exports.jsx(Fs, { children: s.length > 0 ? s.map((T, F) => {
|
|
7323
7337
|
var Y, I, $;
|
|
7324
|
-
const B =
|
|
7325
|
-
|
|
7338
|
+
const B = T != null && T.attachmentUrl ? /* @__PURE__ */ p.exports.jsx(
|
|
7339
|
+
Ad,
|
|
7326
7340
|
{
|
|
7327
|
-
attachmentUrl:
|
|
7328
|
-
attachmentType:
|
|
7329
|
-
attachmentFormat:
|
|
7330
|
-
attachmentName:
|
|
7331
|
-
attachmentSize:
|
|
7341
|
+
attachmentUrl: T.attachmentUrl,
|
|
7342
|
+
attachmentType: T == null ? void 0 : T.attachmentType,
|
|
7343
|
+
attachmentFormat: T == null ? void 0 : T.attachmentFormat,
|
|
7344
|
+
attachmentName: T == null ? void 0 : T.attachmentName,
|
|
7345
|
+
attachmentSize: T == null ? void 0 : T.attachmentSize,
|
|
7332
7346
|
uploadProgres: C == null ? void 0 : C.find(
|
|
7333
|
-
(
|
|
7347
|
+
(U) => U.messageId === T.id
|
|
7334
7348
|
),
|
|
7335
|
-
cancellationToken: () => E ? E(
|
|
7349
|
+
cancellationToken: () => E ? E(T.id) : null
|
|
7336
7350
|
},
|
|
7337
7351
|
F
|
|
7338
7352
|
) : null;
|
|
7339
|
-
if (
|
|
7353
|
+
if (T.isRightSided)
|
|
7340
7354
|
return /* @__PURE__ */ p.exports.jsx(
|
|
7341
|
-
|
|
7355
|
+
Ld,
|
|
7342
7356
|
{
|
|
7343
7357
|
maxWidth: x,
|
|
7344
7358
|
media: B,
|
|
7345
7359
|
handleContextMenu: R,
|
|
7346
|
-
message:
|
|
7347
|
-
them: V
|
|
7360
|
+
message: T,
|
|
7361
|
+
them: V,
|
|
7362
|
+
dynamicSymbols: f == null ? void 0 : f.map(
|
|
7363
|
+
(U) => U.symbol
|
|
7364
|
+
)
|
|
7348
7365
|
},
|
|
7349
7366
|
F
|
|
7350
7367
|
);
|
|
7351
|
-
const _ = ((I = (Y = s[F - 1]) == null ? void 0 : Y.user) == null ? void 0 : I.id) !== (($ =
|
|
7368
|
+
const _ = ((I = (Y = s[F - 1]) == null ? void 0 : Y.user) == null ? void 0 : I.id) !== (($ = T == null ? void 0 : T.user) == null ? void 0 : $.id);
|
|
7352
7369
|
return /* @__PURE__ */ p.exports.jsx(
|
|
7353
|
-
|
|
7370
|
+
Vd,
|
|
7354
7371
|
{
|
|
7355
7372
|
maxWidth: x,
|
|
7356
7373
|
showUserProfile: _,
|
|
7357
7374
|
media: B,
|
|
7358
7375
|
handleContextMenu: R,
|
|
7359
|
-
message:
|
|
7360
|
-
them: V
|
|
7376
|
+
message: T,
|
|
7377
|
+
them: V,
|
|
7378
|
+
dynamicSymbols: f == null ? void 0 : f.map(
|
|
7379
|
+
(U) => U.symbol
|
|
7380
|
+
)
|
|
7361
7381
|
},
|
|
7362
7382
|
F
|
|
7363
7383
|
);
|
|
@@ -7365,7 +7385,7 @@ const Zd = Gr, Jd = ({
|
|
|
7365
7385
|
}
|
|
7366
7386
|
),
|
|
7367
7387
|
/* @__PURE__ */ p.exports.jsx(
|
|
7368
|
-
|
|
7388
|
+
bd,
|
|
7369
7389
|
{
|
|
7370
7390
|
isOpen: ie,
|
|
7371
7391
|
onClose: () => pe(!1),
|
|
@@ -7374,27 +7394,27 @@ const Zd = Gr, Jd = ({
|
|
|
7374
7394
|
question: "Are you sure you want to delete this message?"
|
|
7375
7395
|
}
|
|
7376
7396
|
),
|
|
7377
|
-
|
|
7378
|
-
|
|
7397
|
+
W && ((me = W == null ? void 0 : W.message) != null && me.id) ? /* @__PURE__ */ p.exports.jsx(
|
|
7398
|
+
wd,
|
|
7379
7399
|
{
|
|
7380
7400
|
items: H,
|
|
7381
|
-
isVisible: Boolean(
|
|
7382
|
-
messageId: String(
|
|
7383
|
-
isCurrentUserMessage: ((
|
|
7401
|
+
isVisible: Boolean(W),
|
|
7402
|
+
messageId: String(W == null ? void 0 : W.message.id),
|
|
7403
|
+
isCurrentUserMessage: ((w = W == null ? void 0 : W.message) == null ? void 0 : w.user.id) === o.id,
|
|
7384
7404
|
position: {
|
|
7385
|
-
x:
|
|
7386
|
-
y:
|
|
7405
|
+
x: W == null ? void 0 : W.x,
|
|
7406
|
+
y: W == null ? void 0 : W.y
|
|
7387
7407
|
}
|
|
7388
7408
|
}
|
|
7389
7409
|
) : null,
|
|
7390
7410
|
/* @__PURE__ */ p.exports.jsx(
|
|
7391
|
-
|
|
7411
|
+
Pd,
|
|
7392
7412
|
{
|
|
7393
7413
|
onSendVoice: O,
|
|
7394
7414
|
onSendMessage: Z,
|
|
7395
|
-
onFileSend: (
|
|
7396
|
-
onImageSend: (
|
|
7397
|
-
onVideoSend: (
|
|
7415
|
+
onFileSend: (T) => z(T, Ne.File),
|
|
7416
|
+
onImageSend: (T) => z(T, Ne.Image),
|
|
7417
|
+
onVideoSend: (T) => z(T, Ne.Video),
|
|
7398
7418
|
dynamicSymbolAssignments: f,
|
|
7399
7419
|
onDynamicSymbolListSet: h,
|
|
7400
7420
|
onDynamicSymbolListDelete: m,
|
|
@@ -7409,10 +7429,10 @@ const Zd = Gr, Jd = ({
|
|
|
7409
7429
|
};
|
|
7410
7430
|
export {
|
|
7411
7431
|
Ne as AttachmentTypeEnum,
|
|
7412
|
-
|
|
7413
|
-
|
|
7432
|
+
ih as Button,
|
|
7433
|
+
lh as Chat,
|
|
7414
7434
|
ce as ChatThemEntity,
|
|
7415
7435
|
Gt as MessageEntity,
|
|
7416
|
-
|
|
7436
|
+
sh as SymbolsListComponent
|
|
7417
7437
|
};
|
|
7418
7438
|
//# sourceMappingURL=index.es.js.map
|