react-pro-messenger 1.0.37 → 1.0.39
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 +904 -897
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +10 -10
- package/dist/index.umd.js.map +1 -1
- package/dist/src/features/Chat/index.d.ts +3 -1
- package/dist/src/features/Chat/logic.d.ts +3 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var Oa = Object.defineProperty;
|
|
2
2
|
var La = (e, t, n) => t in e ? Oa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
-
var
|
|
3
|
+
var Te = (e, t, n) => (La(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
4
|
import * as nr from "react";
|
|
5
|
-
import Pe, { useCallback as nn, createContext as ut, useRef as
|
|
5
|
+
import Pe, { useCallback as nn, createContext as ut, useRef as ye, useId as rr, useContext as ve, useInsertionEffect as Ms, useMemo as Xe, useEffect as ft, Children as ka, isValidElement as _a, useLayoutEffect as Ia, useState as ge, forwardRef as kt, Fragment as Os, createElement as Na, Component as Fa } from "react";
|
|
6
6
|
import Ba from "react-dom";
|
|
7
7
|
var p = { exports: {} }, gt = {};
|
|
8
8
|
var ii;
|
|
@@ -37,37 +37,37 @@ function Ua() {
|
|
|
37
37
|
var x = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
38
38
|
function S(d) {
|
|
39
39
|
{
|
|
40
|
-
for (var T = arguments.length,
|
|
41
|
-
|
|
42
|
-
P("error", d,
|
|
40
|
+
for (var T = arguments.length, E = new Array(T > 1 ? T - 1 : 0), F = 1; F < T; F++)
|
|
41
|
+
E[F - 1] = arguments[F];
|
|
42
|
+
P("error", d, E);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
function P(d, T,
|
|
45
|
+
function P(d, T, E) {
|
|
46
46
|
{
|
|
47
|
-
var F = x.ReactDebugCurrentFrame,
|
|
48
|
-
|
|
49
|
-
var
|
|
50
|
-
return String(
|
|
47
|
+
var F = x.ReactDebugCurrentFrame, H = F.getStackAddendum();
|
|
48
|
+
H !== "" && (T += "%s", E = E.concat([H]));
|
|
49
|
+
var Q = E.map(function(G) {
|
|
50
|
+
return String(G);
|
|
51
51
|
});
|
|
52
|
-
|
|
52
|
+
Q.unshift("Warning: " + T), Function.prototype.apply.call(console[d], console, Q);
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
var O = !1, g = !1,
|
|
56
|
-
|
|
57
|
-
function
|
|
58
|
-
return !!(typeof d == "string" || typeof d == "function" || d === r || d === s ||
|
|
55
|
+
var O = !1, g = !1, M = !1, z = !1, R = !1, X;
|
|
56
|
+
X = Symbol.for("react.module.reference");
|
|
57
|
+
function I(d) {
|
|
58
|
+
return !!(typeof d == "string" || typeof d == "function" || d === r || d === s || R || d === i || d === u || d === c || z || d === m || O || g || M || typeof d == "object" && d !== null && (d.$$typeof === h || d.$$typeof === f || d.$$typeof === o || d.$$typeof === l || d.$$typeof === a || d.$$typeof === X || d.getModuleId !== void 0));
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function K(d, T, E) {
|
|
61
61
|
var F = d.displayName;
|
|
62
62
|
if (F)
|
|
63
63
|
return F;
|
|
64
|
-
var
|
|
65
|
-
return
|
|
64
|
+
var H = T.displayName || T.name || "";
|
|
65
|
+
return H !== "" ? E + "(" + H + ")" : E;
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function ne(d) {
|
|
68
68
|
return d.displayName || "Context";
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function te(d) {
|
|
71
71
|
if (d == null)
|
|
72
72
|
return null;
|
|
73
73
|
if (typeof d.tag == "number" && S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof d == "function")
|
|
@@ -92,19 +92,19 @@ function Ua() {
|
|
|
92
92
|
switch (d.$$typeof) {
|
|
93
93
|
case l:
|
|
94
94
|
var T = d;
|
|
95
|
-
return
|
|
95
|
+
return ne(T) + ".Consumer";
|
|
96
96
|
case o:
|
|
97
|
-
var
|
|
98
|
-
return
|
|
97
|
+
var E = d;
|
|
98
|
+
return ne(E._context) + ".Provider";
|
|
99
99
|
case a:
|
|
100
|
-
return
|
|
100
|
+
return K(d, d.render, "ForwardRef");
|
|
101
101
|
case f:
|
|
102
102
|
var F = d.displayName || null;
|
|
103
|
-
return F !== null ? F :
|
|
103
|
+
return F !== null ? F : te(d.type) || "Memo";
|
|
104
104
|
case h: {
|
|
105
|
-
var
|
|
105
|
+
var H = d, Q = H._payload, G = H._init;
|
|
106
106
|
try {
|
|
107
|
-
return
|
|
107
|
+
return te(G(Q));
|
|
108
108
|
} catch {
|
|
109
109
|
return null;
|
|
110
110
|
}
|
|
@@ -112,14 +112,14 @@ function Ua() {
|
|
|
112
112
|
}
|
|
113
113
|
return null;
|
|
114
114
|
}
|
|
115
|
-
var
|
|
115
|
+
var re = Object.assign, fe = 0, U, q, oe, Se, b, A, B;
|
|
116
116
|
function D() {
|
|
117
117
|
}
|
|
118
118
|
D.__reactDisabledLog = !0;
|
|
119
|
-
function
|
|
119
|
+
function C() {
|
|
120
120
|
{
|
|
121
|
-
if (
|
|
122
|
-
|
|
121
|
+
if (fe === 0) {
|
|
122
|
+
U = console.log, q = console.info, oe = console.warn, Se = console.error, b = console.group, A = console.groupCollapsed, B = console.groupEnd;
|
|
123
123
|
var d = {
|
|
124
124
|
configurable: !0,
|
|
125
125
|
enumerable: !0,
|
|
@@ -136,52 +136,52 @@ function Ua() {
|
|
|
136
136
|
groupEnd: d
|
|
137
137
|
});
|
|
138
138
|
}
|
|
139
|
-
|
|
139
|
+
fe++;
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function V() {
|
|
143
143
|
{
|
|
144
|
-
if (
|
|
144
|
+
if (fe--, fe === 0) {
|
|
145
145
|
var d = {
|
|
146
146
|
configurable: !0,
|
|
147
147
|
enumerable: !0,
|
|
148
148
|
writable: !0
|
|
149
149
|
};
|
|
150
150
|
Object.defineProperties(console, {
|
|
151
|
-
log:
|
|
152
|
-
value:
|
|
151
|
+
log: re({}, d, {
|
|
152
|
+
value: U
|
|
153
153
|
}),
|
|
154
|
-
info:
|
|
155
|
-
value:
|
|
154
|
+
info: re({}, d, {
|
|
155
|
+
value: q
|
|
156
156
|
}),
|
|
157
|
-
warn:
|
|
158
|
-
value:
|
|
157
|
+
warn: re({}, d, {
|
|
158
|
+
value: oe
|
|
159
159
|
}),
|
|
160
|
-
error:
|
|
161
|
-
value:
|
|
160
|
+
error: re({}, d, {
|
|
161
|
+
value: Se
|
|
162
162
|
}),
|
|
163
|
-
group:
|
|
163
|
+
group: re({}, d, {
|
|
164
164
|
value: b
|
|
165
165
|
}),
|
|
166
|
-
groupCollapsed:
|
|
167
|
-
value:
|
|
166
|
+
groupCollapsed: re({}, d, {
|
|
167
|
+
value: A
|
|
168
168
|
}),
|
|
169
|
-
groupEnd:
|
|
170
|
-
value:
|
|
169
|
+
groupEnd: re({}, d, {
|
|
170
|
+
value: B
|
|
171
171
|
})
|
|
172
172
|
});
|
|
173
173
|
}
|
|
174
|
-
|
|
174
|
+
fe < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
var L = x.ReactCurrentDispatcher, k;
|
|
178
|
-
function _(d, T,
|
|
178
|
+
function _(d, T, E) {
|
|
179
179
|
{
|
|
180
180
|
if (k === void 0)
|
|
181
181
|
try {
|
|
182
182
|
throw Error();
|
|
183
|
-
} catch (
|
|
184
|
-
var F =
|
|
183
|
+
} catch (H) {
|
|
184
|
+
var F = H.stack.trim().match(/\n( *(at )?)/);
|
|
185
185
|
k = F && F[1] || "";
|
|
186
186
|
}
|
|
187
187
|
return `
|
|
@@ -190,46 +190,46 @@ function Ua() {
|
|
|
190
190
|
}
|
|
191
191
|
var W = !1, $;
|
|
192
192
|
{
|
|
193
|
-
var
|
|
194
|
-
$ = new
|
|
193
|
+
var pe = typeof WeakMap == "function" ? WeakMap : Map;
|
|
194
|
+
$ = new pe();
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function j(d, T) {
|
|
197
197
|
if (!d || W)
|
|
198
198
|
return "";
|
|
199
199
|
{
|
|
200
|
-
var
|
|
201
|
-
if (
|
|
202
|
-
return
|
|
200
|
+
var E = $.get(d);
|
|
201
|
+
if (E !== void 0)
|
|
202
|
+
return E;
|
|
203
203
|
}
|
|
204
204
|
var F;
|
|
205
205
|
W = !0;
|
|
206
|
-
var
|
|
206
|
+
var H = Error.prepareStackTrace;
|
|
207
207
|
Error.prepareStackTrace = void 0;
|
|
208
|
-
var
|
|
209
|
-
|
|
208
|
+
var Q;
|
|
209
|
+
Q = L.current, L.current = null, C();
|
|
210
210
|
try {
|
|
211
211
|
if (T) {
|
|
212
|
-
var
|
|
212
|
+
var G = function() {
|
|
213
213
|
throw Error();
|
|
214
214
|
};
|
|
215
|
-
if (Object.defineProperty(
|
|
215
|
+
if (Object.defineProperty(G.prototype, "props", {
|
|
216
216
|
set: function() {
|
|
217
217
|
throw Error();
|
|
218
218
|
}
|
|
219
219
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
220
220
|
try {
|
|
221
|
-
Reflect.construct(
|
|
221
|
+
Reflect.construct(G, []);
|
|
222
222
|
} catch (Le) {
|
|
223
223
|
F = Le;
|
|
224
224
|
}
|
|
225
|
-
Reflect.construct(d, [],
|
|
225
|
+
Reflect.construct(d, [], G);
|
|
226
226
|
} else {
|
|
227
227
|
try {
|
|
228
|
-
|
|
228
|
+
G.call();
|
|
229
229
|
} catch (Le) {
|
|
230
230
|
F = Le;
|
|
231
231
|
}
|
|
232
|
-
d.call(
|
|
232
|
+
d.call(G.prototype);
|
|
233
233
|
}
|
|
234
234
|
} else {
|
|
235
235
|
try {
|
|
@@ -242,40 +242,40 @@ function Ua() {
|
|
|
242
242
|
} catch (Le) {
|
|
243
243
|
if (Le && F && typeof Le.stack == "string") {
|
|
244
244
|
for (var Y = Le.stack.split(`
|
|
245
|
-
`),
|
|
246
|
-
`),
|
|
247
|
-
|
|
248
|
-
for (;
|
|
249
|
-
if (Y[
|
|
250
|
-
if (
|
|
245
|
+
`), be = F.stack.split(`
|
|
246
|
+
`), le = Y.length - 1, ue = be.length - 1; le >= 1 && ue >= 0 && Y[le] !== be[ue]; )
|
|
247
|
+
ue--;
|
|
248
|
+
for (; le >= 1 && ue >= 0; le--, ue--)
|
|
249
|
+
if (Y[le] !== be[ue]) {
|
|
250
|
+
if (le !== 1 || ue !== 1)
|
|
251
251
|
do
|
|
252
|
-
if (
|
|
252
|
+
if (le--, ue--, ue < 0 || Y[le] !== be[ue]) {
|
|
253
253
|
var Re = `
|
|
254
|
-
` + Y[
|
|
254
|
+
` + Y[le].replace(" at new ", " at ");
|
|
255
255
|
return d.displayName && Re.includes("<anonymous>") && (Re = Re.replace("<anonymous>", d.displayName)), typeof d == "function" && $.set(d, Re), Re;
|
|
256
256
|
}
|
|
257
|
-
while (
|
|
257
|
+
while (le >= 1 && ue >= 0);
|
|
258
258
|
break;
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
261
|
} finally {
|
|
262
|
-
W = !1, L.current =
|
|
262
|
+
W = !1, L.current = Q, V(), Error.prepareStackTrace = H;
|
|
263
263
|
}
|
|
264
264
|
var et = d ? d.displayName || d.name : "", ri = et ? _(et) : "";
|
|
265
265
|
return typeof d == "function" && $.set(d, ri), ri;
|
|
266
266
|
}
|
|
267
|
-
function Ee(d, T,
|
|
268
|
-
return
|
|
267
|
+
function Ee(d, T, E) {
|
|
268
|
+
return j(d, !1);
|
|
269
269
|
}
|
|
270
270
|
function Je(d) {
|
|
271
271
|
var T = d.prototype;
|
|
272
272
|
return !!(T && T.isReactComponent);
|
|
273
273
|
}
|
|
274
|
-
function ze(d, T,
|
|
274
|
+
function ze(d, T, E) {
|
|
275
275
|
if (d == null)
|
|
276
276
|
return "";
|
|
277
277
|
if (typeof d == "function")
|
|
278
|
-
return
|
|
278
|
+
return j(d, Je(d));
|
|
279
279
|
if (typeof d == "string")
|
|
280
280
|
return _(d);
|
|
281
281
|
switch (d) {
|
|
@@ -289,11 +289,11 @@ function Ua() {
|
|
|
289
289
|
case a:
|
|
290
290
|
return Ee(d.render);
|
|
291
291
|
case f:
|
|
292
|
-
return ze(d.type, T,
|
|
292
|
+
return ze(d.type, T, E);
|
|
293
293
|
case h: {
|
|
294
|
-
var F = d,
|
|
294
|
+
var F = d, H = F._payload, Q = F._init;
|
|
295
295
|
try {
|
|
296
|
-
return ze(
|
|
296
|
+
return ze(Q(H), T, E);
|
|
297
297
|
} catch {
|
|
298
298
|
}
|
|
299
299
|
}
|
|
@@ -303,27 +303,27 @@ function Ua() {
|
|
|
303
303
|
var Bt = Object.prototype.hasOwnProperty, Yr = {}, Kr = x.ReactDebugCurrentFrame;
|
|
304
304
|
function $t(d) {
|
|
305
305
|
if (d) {
|
|
306
|
-
var T = d._owner,
|
|
307
|
-
Kr.setExtraStackFrame(
|
|
306
|
+
var T = d._owner, E = ze(d.type, d._source, T ? T.type : null);
|
|
307
|
+
Kr.setExtraStackFrame(E);
|
|
308
308
|
} else
|
|
309
309
|
Kr.setExtraStackFrame(null);
|
|
310
310
|
}
|
|
311
|
-
function ha(d, T,
|
|
311
|
+
function ha(d, T, E, F, H) {
|
|
312
312
|
{
|
|
313
|
-
var
|
|
314
|
-
for (var
|
|
315
|
-
if (
|
|
313
|
+
var Q = Function.call.bind(Bt);
|
|
314
|
+
for (var G in d)
|
|
315
|
+
if (Q(d, G)) {
|
|
316
316
|
var Y = void 0;
|
|
317
317
|
try {
|
|
318
|
-
if (typeof d[
|
|
319
|
-
var
|
|
320
|
-
throw
|
|
318
|
+
if (typeof d[G] != "function") {
|
|
319
|
+
var be = Error((F || "React class") + ": " + E + " type `" + G + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof d[G] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
320
|
+
throw be.name = "Invariant Violation", be;
|
|
321
321
|
}
|
|
322
|
-
Y = d[
|
|
323
|
-
} catch (
|
|
324
|
-
Y =
|
|
322
|
+
Y = d[G](T, G, F, E, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
323
|
+
} catch (le) {
|
|
324
|
+
Y = le;
|
|
325
325
|
}
|
|
326
|
-
Y && !(Y instanceof Error) && ($t(
|
|
326
|
+
Y && !(Y instanceof Error) && ($t(H), S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", F || "React class", E, G, typeof Y), $t(null)), Y instanceof Error && !(Y.message in Yr) && (Yr[Y.message] = !0, $t(H), S("Failed %s type: %s", E, Y.message), $t(null));
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
329
|
}
|
|
@@ -333,8 +333,8 @@ function Ua() {
|
|
|
333
333
|
}
|
|
334
334
|
function ma(d) {
|
|
335
335
|
{
|
|
336
|
-
var T = typeof Symbol == "function" && Symbol.toStringTag,
|
|
337
|
-
return
|
|
336
|
+
var T = typeof Symbol == "function" && Symbol.toStringTag, E = T && d[Symbol.toStringTag] || d.constructor.name || "Object";
|
|
337
|
+
return E;
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
340
|
function ga(d) {
|
|
@@ -376,40 +376,40 @@ function Ua() {
|
|
|
376
376
|
}
|
|
377
377
|
function ba(d, T) {
|
|
378
378
|
if (typeof d.ref == "string" && mt.current && T && mt.current.stateNode !== T) {
|
|
379
|
-
var
|
|
380
|
-
fn[
|
|
379
|
+
var E = te(mt.current.type);
|
|
380
|
+
fn[E] || (S('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', te(mt.current.type), d.ref), fn[E] = !0);
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
383
|
function Ta(d, T) {
|
|
384
384
|
{
|
|
385
|
-
var
|
|
385
|
+
var E = function() {
|
|
386
386
|
Hr || (Hr = !0, S("%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)", T));
|
|
387
387
|
};
|
|
388
|
-
|
|
389
|
-
get:
|
|
388
|
+
E.isReactWarning = !0, Object.defineProperty(d, "key", {
|
|
389
|
+
get: E,
|
|
390
390
|
configurable: !0
|
|
391
391
|
});
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
394
|
function wa(d, T) {
|
|
395
395
|
{
|
|
396
|
-
var
|
|
396
|
+
var E = function() {
|
|
397
397
|
Xr || (Xr = !0, S("%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)", T));
|
|
398
398
|
};
|
|
399
|
-
|
|
400
|
-
get:
|
|
399
|
+
E.isReactWarning = !0, Object.defineProperty(d, "ref", {
|
|
400
|
+
get: E,
|
|
401
401
|
configurable: !0
|
|
402
402
|
});
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
|
-
var Sa = function(d, T,
|
|
405
|
+
var Sa = function(d, T, E, F, H, Q, G) {
|
|
406
406
|
var Y = {
|
|
407
407
|
$$typeof: t,
|
|
408
408
|
type: d,
|
|
409
409
|
key: T,
|
|
410
|
-
ref:
|
|
411
|
-
props:
|
|
412
|
-
_owner:
|
|
410
|
+
ref: E,
|
|
411
|
+
props: G,
|
|
412
|
+
_owner: Q
|
|
413
413
|
};
|
|
414
414
|
return Y._store = {}, Object.defineProperty(Y._store, "validated", {
|
|
415
415
|
configurable: !1,
|
|
@@ -425,32 +425,32 @@ function Ua() {
|
|
|
425
425
|
configurable: !1,
|
|
426
426
|
enumerable: !1,
|
|
427
427
|
writable: !1,
|
|
428
|
-
value:
|
|
428
|
+
value: H
|
|
429
429
|
}), Object.freeze && (Object.freeze(Y.props), Object.freeze(Y)), Y;
|
|
430
430
|
};
|
|
431
|
-
function Pa(d, T,
|
|
431
|
+
function Pa(d, T, E, F, H) {
|
|
432
432
|
{
|
|
433
|
-
var
|
|
434
|
-
|
|
435
|
-
for (
|
|
436
|
-
Bt.call(T,
|
|
433
|
+
var Q, G = {}, Y = null, be = null;
|
|
434
|
+
E !== void 0 && (qr(E), Y = "" + E), xa(T) && (qr(T.key), Y = "" + T.key), va(T) && (be = T.ref, ba(T, H));
|
|
435
|
+
for (Q in T)
|
|
436
|
+
Bt.call(T, Q) && !ya.hasOwnProperty(Q) && (G[Q] = T[Q]);
|
|
437
437
|
if (d && d.defaultProps) {
|
|
438
|
-
var
|
|
439
|
-
for (
|
|
440
|
-
|
|
438
|
+
var le = d.defaultProps;
|
|
439
|
+
for (Q in le)
|
|
440
|
+
G[Q] === void 0 && (G[Q] = le[Q]);
|
|
441
441
|
}
|
|
442
|
-
if (Y ||
|
|
443
|
-
var
|
|
444
|
-
Y && Ta(
|
|
442
|
+
if (Y || be) {
|
|
443
|
+
var ue = typeof d == "function" ? d.displayName || d.name || "Unknown" : d;
|
|
444
|
+
Y && Ta(G, ue), be && wa(G, ue);
|
|
445
445
|
}
|
|
446
|
-
return Sa(d, Y,
|
|
446
|
+
return Sa(d, Y, be, H, F, mt.current, G);
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
449
|
var dn = x.ReactCurrentOwner, Zr = x.ReactDebugCurrentFrame;
|
|
450
450
|
function Qe(d) {
|
|
451
451
|
if (d) {
|
|
452
|
-
var T = d._owner,
|
|
453
|
-
Zr.setExtraStackFrame(
|
|
452
|
+
var T = d._owner, E = ze(d.type, d._source, T ? T.type : null);
|
|
453
|
+
Zr.setExtraStackFrame(E);
|
|
454
454
|
} else
|
|
455
455
|
Zr.setExtraStackFrame(null);
|
|
456
456
|
}
|
|
@@ -462,7 +462,7 @@ function Ua() {
|
|
|
462
462
|
function Jr() {
|
|
463
463
|
{
|
|
464
464
|
if (dn.current) {
|
|
465
|
-
var d =
|
|
465
|
+
var d = te(dn.current.type);
|
|
466
466
|
if (d)
|
|
467
467
|
return `
|
|
468
468
|
|
|
@@ -474,10 +474,10 @@ Check the render method of \`` + d + "`.";
|
|
|
474
474
|
function Ca(d) {
|
|
475
475
|
{
|
|
476
476
|
if (d !== void 0) {
|
|
477
|
-
var T = d.fileName.replace(/^.*[\\\/]/, ""),
|
|
477
|
+
var T = d.fileName.replace(/^.*[\\\/]/, ""), E = d.lineNumber;
|
|
478
478
|
return `
|
|
479
479
|
|
|
480
|
-
Check your code at ` + T + ":" +
|
|
480
|
+
Check your code at ` + T + ":" + E + ".";
|
|
481
481
|
}
|
|
482
482
|
return "";
|
|
483
483
|
}
|
|
@@ -487,10 +487,10 @@ Check your code at ` + T + ":" + j + ".";
|
|
|
487
487
|
{
|
|
488
488
|
var T = Jr();
|
|
489
489
|
if (!T) {
|
|
490
|
-
var
|
|
491
|
-
|
|
490
|
+
var E = typeof d == "string" ? d : d.displayName || d.name;
|
|
491
|
+
E && (T = `
|
|
492
492
|
|
|
493
|
-
Check the top-level render call using <` +
|
|
493
|
+
Check the top-level render call using <` + E + ">.");
|
|
494
494
|
}
|
|
495
495
|
return T;
|
|
496
496
|
}
|
|
@@ -500,12 +500,12 @@ Check the top-level render call using <` + j + ">.");
|
|
|
500
500
|
if (!d._store || d._store.validated || d.key != null)
|
|
501
501
|
return;
|
|
502
502
|
d._store.validated = !0;
|
|
503
|
-
var
|
|
504
|
-
if (Qr[
|
|
503
|
+
var E = Ea(T);
|
|
504
|
+
if (Qr[E])
|
|
505
505
|
return;
|
|
506
|
-
Qr[
|
|
506
|
+
Qr[E] = !0;
|
|
507
507
|
var F = "";
|
|
508
|
-
d && d._owner && d._owner !== dn.current && (F = " It was passed a child from " +
|
|
508
|
+
d && d._owner && d._owner !== dn.current && (F = " It was passed a child from " + te(d._owner.type) + "."), Qe(d), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', E, F), Qe(null);
|
|
509
509
|
}
|
|
510
510
|
}
|
|
511
511
|
function ti(d, T) {
|
|
@@ -513,17 +513,17 @@ Check the top-level render call using <` + j + ">.");
|
|
|
513
513
|
if (typeof d != "object")
|
|
514
514
|
return;
|
|
515
515
|
if (un(d))
|
|
516
|
-
for (var
|
|
517
|
-
var F = d[
|
|
516
|
+
for (var E = 0; E < d.length; E++) {
|
|
517
|
+
var F = d[E];
|
|
518
518
|
pn(F) && ei(F, T);
|
|
519
519
|
}
|
|
520
520
|
else if (pn(d))
|
|
521
521
|
d._store && (d._store.validated = !0);
|
|
522
522
|
else if (d) {
|
|
523
|
-
var
|
|
524
|
-
if (typeof
|
|
525
|
-
for (var
|
|
526
|
-
pn(
|
|
523
|
+
var H = w(d);
|
|
524
|
+
if (typeof H == "function" && H !== d.entries)
|
|
525
|
+
for (var Q = H.call(d), G; !(G = Q.next()).done; )
|
|
526
|
+
pn(G.value) && ei(G.value, T);
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
529
|
}
|
|
@@ -532,28 +532,28 @@ Check the top-level render call using <` + j + ">.");
|
|
|
532
532
|
var T = d.type;
|
|
533
533
|
if (T == null || typeof T == "string")
|
|
534
534
|
return;
|
|
535
|
-
var
|
|
535
|
+
var E;
|
|
536
536
|
if (typeof T == "function")
|
|
537
|
-
|
|
537
|
+
E = T.propTypes;
|
|
538
538
|
else if (typeof T == "object" && (T.$$typeof === a || T.$$typeof === f))
|
|
539
|
-
|
|
539
|
+
E = T.propTypes;
|
|
540
540
|
else
|
|
541
541
|
return;
|
|
542
|
-
if (
|
|
543
|
-
var F =
|
|
544
|
-
ha(
|
|
542
|
+
if (E) {
|
|
543
|
+
var F = te(T);
|
|
544
|
+
ha(E, d.props, "prop", F, d);
|
|
545
545
|
} else if (T.PropTypes !== void 0 && !hn) {
|
|
546
546
|
hn = !0;
|
|
547
|
-
var
|
|
548
|
-
S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
547
|
+
var H = te(T);
|
|
548
|
+
S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", H || "Unknown");
|
|
549
549
|
}
|
|
550
550
|
typeof T.getDefaultProps == "function" && !T.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
553
|
function ja(d) {
|
|
554
554
|
{
|
|
555
|
-
for (var T = Object.keys(d.props),
|
|
556
|
-
var F = T[
|
|
555
|
+
for (var T = Object.keys(d.props), E = 0; E < T.length; E++) {
|
|
556
|
+
var F = T[E];
|
|
557
557
|
if (F !== "children" && F !== "key") {
|
|
558
558
|
Qe(d), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", F), Qe(null);
|
|
559
559
|
break;
|
|
@@ -562,21 +562,21 @@ Check the top-level render call using <` + j + ">.");
|
|
|
562
562
|
d.ref !== null && (Qe(d), S("Invalid attribute `ref` supplied to `React.Fragment`."), Qe(null));
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
|
-
function ni(d, T,
|
|
565
|
+
function ni(d, T, E, F, H, Q) {
|
|
566
566
|
{
|
|
567
|
-
var
|
|
568
|
-
if (!
|
|
567
|
+
var G = I(d);
|
|
568
|
+
if (!G) {
|
|
569
569
|
var Y = "";
|
|
570
570
|
(d === void 0 || typeof d == "object" && d !== null && Object.keys(d).length === 0) && (Y += " 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
|
|
572
|
-
|
|
573
|
-
var
|
|
574
|
-
d === null ?
|
|
571
|
+
var be = Ca(H);
|
|
572
|
+
be ? Y += be : Y += Jr();
|
|
573
|
+
var le;
|
|
574
|
+
d === null ? le = "null" : un(d) ? le = "array" : d !== void 0 && d.$$typeof === t ? (le = "<" + (te(d.type) || "Unknown") + " />", Y = " Did you accidentally export a JSX literal instead of a component?") : le = typeof d, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", le, Y);
|
|
575
575
|
}
|
|
576
|
-
var
|
|
577
|
-
if (
|
|
578
|
-
return
|
|
579
|
-
if (
|
|
576
|
+
var ue = Pa(d, T, E, H, Q);
|
|
577
|
+
if (ue == null)
|
|
578
|
+
return ue;
|
|
579
|
+
if (G) {
|
|
580
580
|
var Re = T.children;
|
|
581
581
|
if (Re !== void 0)
|
|
582
582
|
if (F)
|
|
@@ -589,17 +589,17 @@ Check the top-level render call using <` + j + ">.");
|
|
|
589
589
|
else
|
|
590
590
|
ti(Re, d);
|
|
591
591
|
}
|
|
592
|
-
return d === r ? ja(
|
|
592
|
+
return d === r ? ja(ue) : Ra(ue), ue;
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
|
-
function Aa(d, T,
|
|
596
|
-
return ni(d, T,
|
|
595
|
+
function Aa(d, T, E) {
|
|
596
|
+
return ni(d, T, E, !0);
|
|
597
597
|
}
|
|
598
|
-
function Da(d, T,
|
|
599
|
-
return ni(d, T,
|
|
598
|
+
function Da(d, T, E) {
|
|
599
|
+
return ni(d, T, E, !1);
|
|
600
600
|
}
|
|
601
|
-
var
|
|
602
|
-
yt.Fragment = r, yt.jsx =
|
|
601
|
+
var Va = Da, Ma = Aa;
|
|
602
|
+
yt.Fragment = r, yt.jsx = Va, yt.jsxs = Ma;
|
|
603
603
|
}()), yt;
|
|
604
604
|
}
|
|
605
605
|
(function(e) {
|
|
@@ -633,22 +633,22 @@ class wt {
|
|
|
633
633
|
isSending: f,
|
|
634
634
|
isEdited: h
|
|
635
635
|
}) {
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
636
|
+
Te(this, "id", "0");
|
|
637
|
+
Te(this, "text", "");
|
|
638
|
+
Te(this, "createdDate", "");
|
|
639
|
+
Te(this, "attachmentUrl", "");
|
|
640
|
+
Te(this, "attachmentBlob");
|
|
641
|
+
Te(this, "attachmentType");
|
|
642
|
+
Te(this, "attachmentFormat", "");
|
|
643
|
+
Te(this, "user", { id: "" });
|
|
644
|
+
Te(this, "isRightSided", !1);
|
|
645
|
+
Te(this, "symbols");
|
|
646
|
+
Te(this, "isSending");
|
|
647
|
+
Te(this, "isEdited");
|
|
648
|
+
Te(this, "updateId", (t) => {
|
|
649
649
|
this.id = t;
|
|
650
650
|
});
|
|
651
|
-
|
|
651
|
+
Te(this, "updateIsSending", (t) => {
|
|
652
652
|
this.isSending = t;
|
|
653
653
|
});
|
|
654
654
|
this.id = t, this.text = n, this.createdDate = r, this.attachmentUrl = i, this.attachmentType = s, this.attachmentFormat = o, this.attachmentBlob = l, this.user = a, this.isRightSided = u, this.symbols = c, this.isSending = f, this.isEdited = h;
|
|
@@ -656,7 +656,7 @@ class wt {
|
|
|
656
656
|
}
|
|
657
657
|
const ir = ut({});
|
|
658
658
|
function sr(e) {
|
|
659
|
-
const t =
|
|
659
|
+
const t = ye(null);
|
|
660
660
|
return t.current === null && (t.current = e()), t.current;
|
|
661
661
|
}
|
|
662
662
|
const rn = /* @__PURE__ */ ut(null), or = ut({
|
|
@@ -680,14 +680,14 @@ class Wa extends nr.Component {
|
|
|
680
680
|
}
|
|
681
681
|
}
|
|
682
682
|
function za({ children: e, isPresent: t, anchorX: n }) {
|
|
683
|
-
const r = rr(), i =
|
|
683
|
+
const r = rr(), i = ye(null), s = ye({
|
|
684
684
|
width: 0,
|
|
685
685
|
height: 0,
|
|
686
686
|
top: 0,
|
|
687
687
|
left: 0,
|
|
688
688
|
right: 0
|
|
689
|
-
}), { nonce: o } =
|
|
690
|
-
return
|
|
689
|
+
}), { nonce: o } = ve(or);
|
|
690
|
+
return Ms(() => {
|
|
691
691
|
const { width: l, height: a, top: u, left: c, right: f } = s.current;
|
|
692
692
|
if (t || !i.current || !l || !a)
|
|
693
693
|
return;
|
|
@@ -735,7 +735,7 @@ function Ka() {
|
|
|
735
735
|
return /* @__PURE__ */ new Map();
|
|
736
736
|
}
|
|
737
737
|
function Ls(e = !0) {
|
|
738
|
-
const t =
|
|
738
|
+
const t = ve(rn);
|
|
739
739
|
if (t === null)
|
|
740
740
|
return [!0, null];
|
|
741
741
|
const { isPresent: n, onExitComplete: r, register: i } = t, s = rr();
|
|
@@ -754,37 +754,37 @@ function oi(e) {
|
|
|
754
754
|
}), t;
|
|
755
755
|
}
|
|
756
756
|
const ar = typeof window < "u", ks = ar ? Ia : ft, _s = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: s = "sync", propagate: o = !1, anchorX: l = "left" }) => {
|
|
757
|
-
const [a, u] = Ls(o), c = Xe(() => oi(e), [e]), f = o && !a ? [] : c.map(Ut), h =
|
|
757
|
+
const [a, u] = Ls(o), c = Xe(() => oi(e), [e]), f = o && !a ? [] : c.map(Ut), h = ye(!0), m = ye(c), v = sr(() => /* @__PURE__ */ new Map()), [y, w] = ge(c), [x, S] = ge(c);
|
|
758
758
|
ks(() => {
|
|
759
759
|
h.current = !1, m.current = c;
|
|
760
760
|
for (let g = 0; g < x.length; g++) {
|
|
761
|
-
const
|
|
762
|
-
f.includes(
|
|
761
|
+
const M = Ut(x[g]);
|
|
762
|
+
f.includes(M) ? v.delete(M) : v.get(M) !== !0 && v.set(M, !1);
|
|
763
763
|
}
|
|
764
764
|
}, [x, f.length, f.join("-")]);
|
|
765
765
|
const P = [];
|
|
766
766
|
if (c !== y) {
|
|
767
767
|
let g = [...c];
|
|
768
|
-
for (let
|
|
769
|
-
const z = x[
|
|
770
|
-
f.includes(
|
|
768
|
+
for (let M = 0; M < x.length; M++) {
|
|
769
|
+
const z = x[M], R = Ut(z);
|
|
770
|
+
f.includes(R) || (g.splice(M, 0, z), P.push(z));
|
|
771
771
|
}
|
|
772
772
|
return s === "wait" && P.length && (g = P), S(oi(g)), w(c), null;
|
|
773
773
|
}
|
|
774
774
|
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.`);
|
|
775
|
-
const { forceRender: O } =
|
|
775
|
+
const { forceRender: O } = ve(ir);
|
|
776
776
|
return p.exports.jsx(p.exports.Fragment, { children: x.map((g) => {
|
|
777
|
-
const
|
|
778
|
-
if (v.has(
|
|
779
|
-
v.set(
|
|
777
|
+
const M = Ut(g), z = o && !a ? !1 : c === x || f.includes(M), R = () => {
|
|
778
|
+
if (v.has(M))
|
|
779
|
+
v.set(M, !0);
|
|
780
780
|
else
|
|
781
781
|
return;
|
|
782
|
-
let
|
|
783
|
-
v.forEach((
|
|
784
|
-
|
|
785
|
-
}),
|
|
782
|
+
let X = !0;
|
|
783
|
+
v.forEach((I) => {
|
|
784
|
+
I || (X = !1);
|
|
785
|
+
}), X && (O == null || O(), S(m.current), o && (u == null || u()), r && r());
|
|
786
786
|
};
|
|
787
|
-
return p.exports.jsx(Ya, { isPresent: z, initial: !h.current || n ? void 0 : !1, custom: t, presenceAffectsLayout: i, mode: s, onExitComplete: z ? void 0 :
|
|
787
|
+
return p.exports.jsx(Ya, { isPresent: z, initial: !h.current || n ? void 0 : !1, custom: t, presenceAffectsLayout: i, mode: s, onExitComplete: z ? void 0 : R, anchorX: l, children: g }, M);
|
|
788
788
|
}) });
|
|
789
789
|
}, Ce = (e) => e;
|
|
790
790
|
let dt = Ce, Be = Ce;
|
|
@@ -801,7 +801,7 @@ function lr(e) {
|
|
|
801
801
|
const at = (e, t, n) => {
|
|
802
802
|
const r = t - e;
|
|
803
803
|
return r === 0 ? 1 : (n - e) / r;
|
|
804
|
-
},
|
|
804
|
+
}, Ve = (e) => e * 1e3, _e = (e) => e / 1e3, Is = {
|
|
805
805
|
skipAnimations: !1,
|
|
806
806
|
useManualTiming: !1
|
|
807
807
|
}, Wt = [
|
|
@@ -859,13 +859,13 @@ function Ns(e, t) {
|
|
|
859
859
|
};
|
|
860
860
|
return { schedule: Wt.reduce((x, S) => {
|
|
861
861
|
const P = o[S];
|
|
862
|
-
return x[S] = (O, g = !1,
|
|
862
|
+
return x[S] = (O, g = !1, M = !1) => (n || v(), P.schedule(O, g, M)), x;
|
|
863
863
|
}, {}), cancel: (x) => {
|
|
864
864
|
for (let S = 0; S < Wt.length; S++)
|
|
865
865
|
o[Wt[S]].cancel(x);
|
|
866
866
|
}, state: i, steps: o };
|
|
867
867
|
}
|
|
868
|
-
const { schedule:
|
|
868
|
+
const { schedule: ee, cancel: $e, state: he, steps: mn } = Ns(typeof requestAnimationFrame < "u" ? requestAnimationFrame : Ce, !0), Fs = ut({ strict: !1 }), ai = {
|
|
869
869
|
animation: [
|
|
870
870
|
"animate",
|
|
871
871
|
"variants",
|
|
@@ -990,7 +990,7 @@ function el(e, t) {
|
|
|
990
990
|
return e.inherit !== !1 ? t : {};
|
|
991
991
|
}
|
|
992
992
|
function tl(e) {
|
|
993
|
-
const { initial: t, animate: n } = el(e,
|
|
993
|
+
const { initial: t, animate: n } = el(e, ve(on));
|
|
994
994
|
return Xe(() => ({ initial: t, animate: n }), [ci(t), ci(n)]);
|
|
995
995
|
}
|
|
996
996
|
function ci(e) {
|
|
@@ -1011,7 +1011,7 @@ function rl(e, t, n) {
|
|
|
1011
1011
|
const fr = (e) => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), il = "framerAppearId", Us = "data-" + fr(il), { schedule: dr, cancel: th } = Ns(queueMicrotask, !1), Ws = ut({});
|
|
1012
1012
|
function sl(e, t, n, r, i) {
|
|
1013
1013
|
var s, o;
|
|
1014
|
-
const { visualElement: l } =
|
|
1014
|
+
const { visualElement: l } = ve(on), a = ve(Fs), u = ve(rn), c = ve(or).reducedMotion, f = ye(null);
|
|
1015
1015
|
r = r || a.renderer, !f.current && r && (f.current = r(e, {
|
|
1016
1016
|
visualState: t,
|
|
1017
1017
|
parent: l,
|
|
@@ -1020,13 +1020,13 @@ function sl(e, t, n, r, i) {
|
|
|
1020
1020
|
blockInitialAnimation: u ? u.initial === !1 : !1,
|
|
1021
1021
|
reducedMotionConfig: c
|
|
1022
1022
|
}));
|
|
1023
|
-
const h = f.current, m =
|
|
1023
|
+
const h = f.current, m = ve(Ws);
|
|
1024
1024
|
h && !h.projection && i && (h.type === "html" || h.type === "svg") && ol(f.current, n, i, m);
|
|
1025
|
-
const v =
|
|
1026
|
-
|
|
1025
|
+
const v = ye(!1);
|
|
1026
|
+
Ms(() => {
|
|
1027
1027
|
h && v.current && h.update(n, u);
|
|
1028
1028
|
});
|
|
1029
|
-
const y = n[Us], w =
|
|
1029
|
+
const y = n[Us], w = ye(Boolean(y) && !(!((s = window.MotionHandoffIsComplete) === null || s === void 0) && s.call(window, y)) && ((o = window.MotionHasOptimisedAnimation) === null || o === void 0 ? void 0 : o.call(window, y)));
|
|
1030
1030
|
return ks(() => {
|
|
1031
1031
|
h && (v.current = !0, window.MotionIsMounted = !0, h.updateFeatures(), dr.render(h.render), w.current && h.animationState && h.animationState.animateChanges());
|
|
1032
1032
|
}), ft(() => {
|
|
@@ -1059,7 +1059,7 @@ function al({ preloadedFeatures: e, createVisualElement: t, useRender: n, useVis
|
|
|
1059
1059
|
function l(u, c) {
|
|
1060
1060
|
let f;
|
|
1061
1061
|
const h = {
|
|
1062
|
-
...
|
|
1062
|
+
...ve(or),
|
|
1063
1063
|
...u,
|
|
1064
1064
|
layoutId: ll(u)
|
|
1065
1065
|
}, { isStatic: m } = h, v = tl(u), y = r(u, m);
|
|
@@ -1075,11 +1075,11 @@ function al({ preloadedFeatures: e, createVisualElement: t, useRender: n, useVis
|
|
|
1075
1075
|
return a[nl] = i, a;
|
|
1076
1076
|
}
|
|
1077
1077
|
function ll({ layoutId: e }) {
|
|
1078
|
-
const t =
|
|
1078
|
+
const t = ve(ir).id;
|
|
1079
1079
|
return t && e !== void 0 ? t + "-" + e : e;
|
|
1080
1080
|
}
|
|
1081
1081
|
function cl(e, t) {
|
|
1082
|
-
const n =
|
|
1082
|
+
const n = ve(Fs).strict;
|
|
1083
1083
|
if (process.env.NODE_ENV !== "production" && t && n) {
|
|
1084
1084
|
const r = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
|
|
1085
1085
|
e.ignoreStrict ? dt(!1, r) : Be(!1, r);
|
|
@@ -1122,7 +1122,7 @@ const ht = [
|
|
|
1122
1122
|
function Ks(e, { layout: t, layoutId: n }) {
|
|
1123
1123
|
return Ze.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!At[e] || e === "opacity");
|
|
1124
1124
|
}
|
|
1125
|
-
const
|
|
1125
|
+
const xe = (e) => Boolean(e && e.getVelocity), Gs = (e, t) => t && typeof e == "number" ? t.transform(e) : e, Ie = (e, t, n) => n > t ? t : n < e ? e : n, pt = {
|
|
1126
1126
|
test: (e) => typeof e == "number",
|
|
1127
1127
|
parse: parseFloat,
|
|
1128
1128
|
transform: (e) => e
|
|
@@ -1136,42 +1136,42 @@ const ve = (e) => Boolean(e && e.getVelocity), Gs = (e, t) => t && typeof e == "
|
|
|
1136
1136
|
test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
|
|
1137
1137
|
parse: parseFloat,
|
|
1138
1138
|
transform: (t) => `${t}${e}`
|
|
1139
|
-
}), Ne = /* @__PURE__ */ _t("deg"),
|
|
1140
|
-
...
|
|
1141
|
-
parse: (e) =>
|
|
1142
|
-
transform: (e) =>
|
|
1139
|
+
}), Ne = /* @__PURE__ */ _t("deg"), Me = /* @__PURE__ */ _t("%"), N = /* @__PURE__ */ _t("px"), pl = /* @__PURE__ */ _t("vh"), ml = /* @__PURE__ */ _t("vw"), ui = {
|
|
1140
|
+
...Me,
|
|
1141
|
+
parse: (e) => Me.parse(e) / 100,
|
|
1142
|
+
transform: (e) => Me.transform(e * 100)
|
|
1143
1143
|
}, gl = {
|
|
1144
|
-
borderWidth:
|
|
1145
|
-
borderTopWidth:
|
|
1146
|
-
borderRightWidth:
|
|
1147
|
-
borderBottomWidth:
|
|
1148
|
-
borderLeftWidth:
|
|
1149
|
-
borderRadius:
|
|
1150
|
-
radius:
|
|
1151
|
-
borderTopLeftRadius:
|
|
1152
|
-
borderTopRightRadius:
|
|
1153
|
-
borderBottomRightRadius:
|
|
1154
|
-
borderBottomLeftRadius:
|
|
1155
|
-
width:
|
|
1156
|
-
maxWidth:
|
|
1157
|
-
height:
|
|
1158
|
-
maxHeight:
|
|
1159
|
-
top:
|
|
1160
|
-
right:
|
|
1161
|
-
bottom:
|
|
1162
|
-
left:
|
|
1163
|
-
padding:
|
|
1164
|
-
paddingTop:
|
|
1165
|
-
paddingRight:
|
|
1166
|
-
paddingBottom:
|
|
1167
|
-
paddingLeft:
|
|
1168
|
-
margin:
|
|
1169
|
-
marginTop:
|
|
1170
|
-
marginRight:
|
|
1171
|
-
marginBottom:
|
|
1172
|
-
marginLeft:
|
|
1173
|
-
backgroundPositionX:
|
|
1174
|
-
backgroundPositionY:
|
|
1144
|
+
borderWidth: N,
|
|
1145
|
+
borderTopWidth: N,
|
|
1146
|
+
borderRightWidth: N,
|
|
1147
|
+
borderBottomWidth: N,
|
|
1148
|
+
borderLeftWidth: N,
|
|
1149
|
+
borderRadius: N,
|
|
1150
|
+
radius: N,
|
|
1151
|
+
borderTopLeftRadius: N,
|
|
1152
|
+
borderTopRightRadius: N,
|
|
1153
|
+
borderBottomRightRadius: N,
|
|
1154
|
+
borderBottomLeftRadius: N,
|
|
1155
|
+
width: N,
|
|
1156
|
+
maxWidth: N,
|
|
1157
|
+
height: N,
|
|
1158
|
+
maxHeight: N,
|
|
1159
|
+
top: N,
|
|
1160
|
+
right: N,
|
|
1161
|
+
bottom: N,
|
|
1162
|
+
left: N,
|
|
1163
|
+
padding: N,
|
|
1164
|
+
paddingTop: N,
|
|
1165
|
+
paddingRight: N,
|
|
1166
|
+
paddingBottom: N,
|
|
1167
|
+
paddingLeft: N,
|
|
1168
|
+
margin: N,
|
|
1169
|
+
marginTop: N,
|
|
1170
|
+
marginRight: N,
|
|
1171
|
+
marginBottom: N,
|
|
1172
|
+
marginLeft: N,
|
|
1173
|
+
backgroundPositionX: N,
|
|
1174
|
+
backgroundPositionY: N
|
|
1175
1175
|
}, yl = {
|
|
1176
1176
|
rotate: Ne,
|
|
1177
1177
|
rotateX: Ne,
|
|
@@ -1184,19 +1184,19 @@ const ve = (e) => Boolean(e && e.getVelocity), Gs = (e, t) => t && typeof e == "
|
|
|
1184
1184
|
skew: Ne,
|
|
1185
1185
|
skewX: Ne,
|
|
1186
1186
|
skewY: Ne,
|
|
1187
|
-
distance:
|
|
1188
|
-
translateX:
|
|
1189
|
-
translateY:
|
|
1190
|
-
translateZ:
|
|
1191
|
-
x:
|
|
1192
|
-
y:
|
|
1193
|
-
z:
|
|
1194
|
-
perspective:
|
|
1195
|
-
transformPerspective:
|
|
1187
|
+
distance: N,
|
|
1188
|
+
translateX: N,
|
|
1189
|
+
translateY: N,
|
|
1190
|
+
translateZ: N,
|
|
1191
|
+
x: N,
|
|
1192
|
+
y: N,
|
|
1193
|
+
z: N,
|
|
1194
|
+
perspective: N,
|
|
1195
|
+
transformPerspective: N,
|
|
1196
1196
|
opacity: Dt,
|
|
1197
1197
|
originX: ui,
|
|
1198
1198
|
originY: ui,
|
|
1199
|
-
originZ:
|
|
1199
|
+
originZ: N
|
|
1200
1200
|
}, fi = {
|
|
1201
1201
|
...pt,
|
|
1202
1202
|
transform: Math.round
|
|
@@ -1204,7 +1204,7 @@ const ve = (e) => Boolean(e && e.getVelocity), Gs = (e, t) => t && typeof e == "
|
|
|
1204
1204
|
...gl,
|
|
1205
1205
|
...yl,
|
|
1206
1206
|
zIndex: fi,
|
|
1207
|
-
size:
|
|
1207
|
+
size: N,
|
|
1208
1208
|
fillOpacity: Dt,
|
|
1209
1209
|
strokeOpacity: Dt,
|
|
1210
1210
|
numOctaves: fi
|
|
@@ -1262,7 +1262,7 @@ const yr = () => ({
|
|
|
1262
1262
|
});
|
|
1263
1263
|
function qs(e, t, n) {
|
|
1264
1264
|
for (const r in t)
|
|
1265
|
-
!
|
|
1265
|
+
!xe(t[r]) && !Ks(r, n) && (e[r] = t[r]);
|
|
1266
1266
|
}
|
|
1267
1267
|
function Tl({ transformTemplate: e }, t) {
|
|
1268
1268
|
return Xe(() => {
|
|
@@ -1318,12 +1318,12 @@ const Cl = {
|
|
|
1318
1318
|
function Rl(e, t, n = 1, r = 0, i = !0) {
|
|
1319
1319
|
e.pathLength = 1;
|
|
1320
1320
|
const s = i ? Cl : El;
|
|
1321
|
-
e[s.offset] =
|
|
1322
|
-
const o =
|
|
1321
|
+
e[s.offset] = N.transform(-r);
|
|
1322
|
+
const o = N.transform(t), l = N.transform(n);
|
|
1323
1323
|
e[s.array] = `${o} ${l}`;
|
|
1324
1324
|
}
|
|
1325
1325
|
function di(e, t, n) {
|
|
1326
|
-
return typeof e == "string" ? e :
|
|
1326
|
+
return typeof e == "string" ? e : N.transform(t + n * e);
|
|
1327
1327
|
}
|
|
1328
1328
|
function jl(e, t, n) {
|
|
1329
1329
|
const r = di(t, e.x, e.width), i = di(n, e.y, e.height);
|
|
@@ -1368,7 +1368,7 @@ function Al(e, t, n, r) {
|
|
|
1368
1368
|
}
|
|
1369
1369
|
function Dl(e = !1) {
|
|
1370
1370
|
return (n, r, i, { latestValues: s }, o) => {
|
|
1371
|
-
const a = (vr(n) ? Al : Sl)(r, s, o, n), u = Ja(r, typeof n == "string", e), c = n !== Os ? { ...u, ...a, ref: i } : {}, { children: f } = r, h = Xe(() =>
|
|
1371
|
+
const a = (vr(n) ? Al : Sl)(r, s, o, n), u = Ja(r, typeof n == "string", e), c = n !== Os ? { ...u, ...a, ref: i } : {}, { children: f } = r, h = Xe(() => xe(f) ? f.get() : f, [f]);
|
|
1372
1372
|
return Na(n, {
|
|
1373
1373
|
...c,
|
|
1374
1374
|
children: h
|
|
@@ -1392,10 +1392,10 @@ function Tr(e, t, n, r) {
|
|
|
1392
1392
|
}
|
|
1393
1393
|
return t;
|
|
1394
1394
|
}
|
|
1395
|
-
const _n = (e) => Array.isArray(e),
|
|
1395
|
+
const _n = (e) => Array.isArray(e), Vl = (e) => Boolean(e && typeof e == "object" && e.mix && e.toValue), Ml = (e) => _n(e) ? e[e.length - 1] || 0 : e;
|
|
1396
1396
|
function Kt(e) {
|
|
1397
|
-
const t =
|
|
1398
|
-
return
|
|
1397
|
+
const t = xe(e) ? e.get() : e;
|
|
1398
|
+
return Vl(t) ? t.toValue() : t;
|
|
1399
1399
|
}
|
|
1400
1400
|
function Ol({ scrapeMotionValuesFromProps: e, createRenderState: t, onUpdate: n }, r, i, s) {
|
|
1401
1401
|
const o = {
|
|
@@ -1405,7 +1405,7 @@ function Ol({ scrapeMotionValuesFromProps: e, createRenderState: t, onUpdate: n
|
|
|
1405
1405
|
return n && (o.onMount = (l) => n({ props: r, current: l, ...o }), o.onUpdate = (l) => n(l)), o;
|
|
1406
1406
|
}
|
|
1407
1407
|
const Xs = (e) => (t, n) => {
|
|
1408
|
-
const r =
|
|
1408
|
+
const r = ve(on), i = ve(rn), s = () => Ol(e, t, r, i);
|
|
1409
1409
|
return n ? s() : sr(s);
|
|
1410
1410
|
};
|
|
1411
1411
|
function Ll(e, t, n, r) {
|
|
@@ -1443,7 +1443,7 @@ function wr(e, t, n) {
|
|
|
1443
1443
|
var r;
|
|
1444
1444
|
const { style: i } = e, s = {};
|
|
1445
1445
|
for (const o in i)
|
|
1446
|
-
(
|
|
1446
|
+
(xe(i[o]) || t.style && xe(t.style[o]) || Ks(o, e) || ((r = n == null ? void 0 : n.getValue(o)) === null || r === void 0 ? void 0 : r.liveStyle) !== void 0) && (s[o] = i[o]);
|
|
1447
1447
|
return s;
|
|
1448
1448
|
}
|
|
1449
1449
|
const kl = {
|
|
@@ -1502,7 +1502,7 @@ function eo(e, t, n, r) {
|
|
|
1502
1502
|
function to(e, t, n) {
|
|
1503
1503
|
const r = wr(e, t, n);
|
|
1504
1504
|
for (const i in e)
|
|
1505
|
-
if (
|
|
1505
|
+
if (xe(e[i]) || xe(t[i])) {
|
|
1506
1506
|
const s = ht.indexOf(i) !== -1 ? "attr" + i.charAt(0).toUpperCase() + i.substring(1) : i;
|
|
1507
1507
|
r[s] = e[i];
|
|
1508
1508
|
}
|
|
@@ -1531,8 +1531,8 @@ const pi = ["x", "y", "width", "height", "cx", "cy", "r"], _l = {
|
|
|
1531
1531
|
const a = pi[l];
|
|
1532
1532
|
e[a] !== t[a] && (o = !0);
|
|
1533
1533
|
}
|
|
1534
|
-
o &&
|
|
1535
|
-
Zs(n, r),
|
|
1534
|
+
o && ee.read(() => {
|
|
1535
|
+
Zs(n, r), ee.render(() => {
|
|
1536
1536
|
xr(r, i, br(n.tagName), e.transformTemplate), eo(n, r);
|
|
1537
1537
|
});
|
|
1538
1538
|
});
|
|
@@ -1551,7 +1551,7 @@ function Il(e, t) {
|
|
|
1551
1551
|
return al(o);
|
|
1552
1552
|
};
|
|
1553
1553
|
}
|
|
1554
|
-
function
|
|
1554
|
+
function Vt(e, t, n) {
|
|
1555
1555
|
const r = e.getProps();
|
|
1556
1556
|
return Tr(r, t, n !== void 0 ? n : r.custom, e);
|
|
1557
1557
|
}
|
|
@@ -1829,7 +1829,7 @@ function Zl() {
|
|
|
1829
1829
|
Gt = void 0;
|
|
1830
1830
|
}
|
|
1831
1831
|
const Oe = {
|
|
1832
|
-
now: () => (Gt === void 0 && Oe.set(
|
|
1832
|
+
now: () => (Gt === void 0 && Oe.set(he.isProcessing || Is.useManualTiming ? he.timestamp : performance.now()), Gt),
|
|
1833
1833
|
set: (e) => {
|
|
1834
1834
|
Gt = e, queueMicrotask(Zl);
|
|
1835
1835
|
}
|
|
@@ -1890,7 +1890,7 @@ class Ql {
|
|
|
1890
1890
|
this.events[t] || (this.events[t] = new Ar());
|
|
1891
1891
|
const r = this.events[t].add(n);
|
|
1892
1892
|
return t === "change" ? () => {
|
|
1893
|
-
r(),
|
|
1893
|
+
r(), ee.read(() => {
|
|
1894
1894
|
this.events.change.getSize() || this.stop();
|
|
1895
1895
|
});
|
|
1896
1896
|
} : r;
|
|
@@ -1944,23 +1944,23 @@ class Ql {
|
|
|
1944
1944
|
this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
|
|
1945
1945
|
}
|
|
1946
1946
|
}
|
|
1947
|
-
function
|
|
1947
|
+
function Mt(e, t) {
|
|
1948
1948
|
return new Ql(e, t);
|
|
1949
1949
|
}
|
|
1950
1950
|
function ec(e, t, n) {
|
|
1951
|
-
e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t,
|
|
1951
|
+
e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, Mt(n));
|
|
1952
1952
|
}
|
|
1953
1953
|
function tc(e, t) {
|
|
1954
|
-
const n =
|
|
1954
|
+
const n = Vt(e, t);
|
|
1955
1955
|
let { transitionEnd: r = {}, transition: i = {}, ...s } = n || {};
|
|
1956
1956
|
s = { ...s, ...r };
|
|
1957
1957
|
for (const o in s) {
|
|
1958
|
-
const l =
|
|
1958
|
+
const l = Ml(s[o]);
|
|
1959
1959
|
ec(e, o, l);
|
|
1960
1960
|
}
|
|
1961
1961
|
}
|
|
1962
1962
|
function nc(e) {
|
|
1963
|
-
return Boolean(
|
|
1963
|
+
return Boolean(xe(e) && e.add);
|
|
1964
1964
|
}
|
|
1965
1965
|
function Fn(e, t) {
|
|
1966
1966
|
const n = e.getValue("willChange");
|
|
@@ -1986,18 +1986,18 @@ function It(e, t, n, r) {
|
|
|
1986
1986
|
const i = (s) => oc(s, 0, 1, e, n);
|
|
1987
1987
|
return (s) => s === 0 || s === 1 ? s : ho(i(s), t, r);
|
|
1988
1988
|
}
|
|
1989
|
-
const po = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, mo = (e) => (t) => 1 - e(1 - t), go = /* @__PURE__ */ It(0.33, 1.53, 0.69, 0.99), Dr = /* @__PURE__ */ mo(go), yo = /* @__PURE__ */ po(Dr), vo = (e) => (e *= 2) < 1 ? 0.5 * Dr(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))),
|
|
1989
|
+
const po = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, mo = (e) => (t) => 1 - e(1 - t), go = /* @__PURE__ */ It(0.33, 1.53, 0.69, 0.99), Dr = /* @__PURE__ */ mo(go), yo = /* @__PURE__ */ po(Dr), vo = (e) => (e *= 2) < 1 ? 0.5 * Dr(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), Vr = (e) => 1 - Math.sin(Math.acos(e)), xo = mo(Vr), bo = po(Vr), To = (e) => /^0[^.\s]+$/u.test(e);
|
|
1990
1990
|
function ac(e) {
|
|
1991
1991
|
return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" || To(e) : !0;
|
|
1992
1992
|
}
|
|
1993
|
-
const St = (e) => Math.round(e * 1e5) / 1e5,
|
|
1993
|
+
const St = (e) => Math.round(e * 1e5) / 1e5, Mr = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
|
|
1994
1994
|
function lc(e) {
|
|
1995
1995
|
return e == null;
|
|
1996
1996
|
}
|
|
1997
1997
|
const cc = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, Or = (e, t) => (n) => Boolean(typeof n == "string" && cc.test(n) && n.startsWith(e) || t && !lc(n) && Object.prototype.hasOwnProperty.call(n, t)), wo = (e, t, n) => (r) => {
|
|
1998
1998
|
if (typeof r != "string")
|
|
1999
1999
|
return r;
|
|
2000
|
-
const [i, s, o, l] = r.match(
|
|
2000
|
+
const [i, s, o, l] = r.match(Mr);
|
|
2001
2001
|
return {
|
|
2002
2002
|
[e]: parseFloat(i),
|
|
2003
2003
|
[t]: parseFloat(s),
|
|
@@ -2028,15 +2028,15 @@ const Bn = {
|
|
|
2028
2028
|
}, nt = {
|
|
2029
2029
|
test: /* @__PURE__ */ Or("hsl", "hue"),
|
|
2030
2030
|
parse: /* @__PURE__ */ wo("hue", "saturation", "lightness"),
|
|
2031
|
-
transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " +
|
|
2032
|
-
},
|
|
2031
|
+
transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + Me.transform(St(t)) + ", " + Me.transform(St(n)) + ", " + St(Dt.transform(r)) + ")"
|
|
2032
|
+
}, me = {
|
|
2033
2033
|
test: (e) => qe.test(e) || Bn.test(e) || nt.test(e),
|
|
2034
2034
|
parse: (e) => qe.test(e) ? qe.parse(e) : nt.test(e) ? nt.parse(e) : Bn.parse(e),
|
|
2035
2035
|
transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? qe.transform(e) : nt.transform(e)
|
|
2036
2036
|
}, dc = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
|
|
2037
2037
|
function hc(e) {
|
|
2038
2038
|
var t, n;
|
|
2039
|
-
return isNaN(e) && typeof e == "string" && (((t = e.match(
|
|
2039
|
+
return isNaN(e) && typeof e == "string" && (((t = e.match(Mr)) === null || t === void 0 ? void 0 : t.length) || 0) + (((n = e.match(dc)) === null || n === void 0 ? void 0 : n.length) || 0) > 0;
|
|
2040
2040
|
}
|
|
2041
2041
|
const So = "number", Po = "color", pc = "var", mc = "var(", bi = "${}", gc = /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;
|
|
2042
2042
|
function Ot(e) {
|
|
@@ -2046,7 +2046,7 @@ function Ot(e) {
|
|
|
2046
2046
|
var: []
|
|
2047
2047
|
}, i = [];
|
|
2048
2048
|
let s = 0;
|
|
2049
|
-
const l = t.replace(gc, (a) => (
|
|
2049
|
+
const l = t.replace(gc, (a) => (me.test(a) ? (r.color.push(s), i.push(Po), n.push(me.parse(a))) : a.startsWith(mc) ? (r.var.push(s), i.push(pc), n.push(a)) : (r.number.push(s), i.push(So), n.push(parseFloat(a))), ++s, bi)).split(bi);
|
|
2050
2050
|
return { values: n, split: l, indexes: r, types: i };
|
|
2051
2051
|
}
|
|
2052
2052
|
function Co(e) {
|
|
@@ -2059,7 +2059,7 @@ function Eo(e) {
|
|
|
2059
2059
|
for (let o = 0; o < r; o++)
|
|
2060
2060
|
if (s += t[o], i[o] !== void 0) {
|
|
2061
2061
|
const l = n[o];
|
|
2062
|
-
l === So ? s += St(i[o]) : l === Po ? s +=
|
|
2062
|
+
l === So ? s += St(i[o]) : l === Po ? s += me.transform(i[o]) : s += i[o];
|
|
2063
2063
|
}
|
|
2064
2064
|
return s;
|
|
2065
2065
|
};
|
|
@@ -2079,7 +2079,7 @@ function bc(e) {
|
|
|
2079
2079
|
const [t, n] = e.slice(0, -1).split("(");
|
|
2080
2080
|
if (t === "drop-shadow")
|
|
2081
2081
|
return e;
|
|
2082
|
-
const [r] = n.match(
|
|
2082
|
+
const [r] = n.match(Mr) || [];
|
|
2083
2083
|
if (!r)
|
|
2084
2084
|
return e;
|
|
2085
2085
|
const i = n.replace(r, "");
|
|
@@ -2094,16 +2094,16 @@ const Tc = /\b([a-z-]*)\(.*?\)/gu, $n = {
|
|
|
2094
2094
|
}
|
|
2095
2095
|
}, wc = {
|
|
2096
2096
|
...mr,
|
|
2097
|
-
color:
|
|
2098
|
-
backgroundColor:
|
|
2099
|
-
outlineColor:
|
|
2100
|
-
fill:
|
|
2101
|
-
stroke:
|
|
2102
|
-
borderColor:
|
|
2103
|
-
borderTopColor:
|
|
2104
|
-
borderRightColor:
|
|
2105
|
-
borderBottomColor:
|
|
2106
|
-
borderLeftColor:
|
|
2097
|
+
color: me,
|
|
2098
|
+
backgroundColor: me,
|
|
2099
|
+
outlineColor: me,
|
|
2100
|
+
fill: me,
|
|
2101
|
+
stroke: me,
|
|
2102
|
+
borderColor: me,
|
|
2103
|
+
borderTopColor: me,
|
|
2104
|
+
borderRightColor: me,
|
|
2105
|
+
borderBottomColor: me,
|
|
2106
|
+
borderLeftColor: me,
|
|
2107
2107
|
filter: $n,
|
|
2108
2108
|
WebkitFilter: $n
|
|
2109
2109
|
}, Lr = (e) => wc[e];
|
|
@@ -2122,7 +2122,7 @@ function Pc(e, t, n) {
|
|
|
2122
2122
|
for (const s of t)
|
|
2123
2123
|
e[s] = Ro(n, i);
|
|
2124
2124
|
}
|
|
2125
|
-
const Ti = (e) => e === pt || e ===
|
|
2125
|
+
const Ti = (e) => e === pt || e === N, wi = (e, t) => parseFloat(e.split(", ")[t]), Si = (e, t) => (n, { transform: r }) => {
|
|
2126
2126
|
if (r === "none" || !r)
|
|
2127
2127
|
return 0;
|
|
2128
2128
|
const i = r.match(/^matrix3d\((.+)\)$/u);
|
|
@@ -2186,7 +2186,7 @@ class kr {
|
|
|
2186
2186
|
this.isComplete = !1, this.isAsync = !1, this.needsMeasurement = !1, this.isScheduled = !1, this.unresolvedKeyframes = [...t], this.onComplete = n, this.name = r, this.motionValue = i, this.element = s, this.isAsync = o;
|
|
2187
2187
|
}
|
|
2188
2188
|
scheduleResolve() {
|
|
2189
|
-
this.isScheduled = !0, this.isAsync ? (He.add(this), Un || (Un = !0,
|
|
2189
|
+
this.isScheduled = !0, this.isAsync ? (He.add(this), Un || (Un = !0, ee.read(Ao), ee.resolveKeyframes(jo))) : (this.readKeyframes(), this.complete());
|
|
2190
2190
|
}
|
|
2191
2191
|
readKeyframes() {
|
|
2192
2192
|
const { unresolvedKeyframes: t, name: n, element: r, motionValue: i } = this;
|
|
@@ -2230,9 +2230,9 @@ function Dc(e) {
|
|
|
2230
2230
|
const [, n, r, i] = t;
|
|
2231
2231
|
return [`--${n ?? r}`, i];
|
|
2232
2232
|
}
|
|
2233
|
-
const
|
|
2234
|
-
function
|
|
2235
|
-
Be(n <=
|
|
2233
|
+
const Vc = 4;
|
|
2234
|
+
function Vo(e, t, n = 1) {
|
|
2235
|
+
Be(n <= Vc, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);
|
|
2236
2236
|
const [r, i] = Dc(e);
|
|
2237
2237
|
if (!r)
|
|
2238
2238
|
return;
|
|
@@ -2241,12 +2241,12 @@ function Mo(e, t, n = 1) {
|
|
|
2241
2241
|
const o = s.trim();
|
|
2242
2242
|
return Do(o) ? parseFloat(o) : o;
|
|
2243
2243
|
}
|
|
2244
|
-
return pr(i) ?
|
|
2244
|
+
return pr(i) ? Vo(i, t, n + 1) : i;
|
|
2245
2245
|
}
|
|
2246
|
-
const
|
|
2246
|
+
const Mo = (e) => (t) => t.test(e), Mc = {
|
|
2247
2247
|
test: (e) => e === "auto",
|
|
2248
2248
|
parse: (e) => e
|
|
2249
|
-
}, Oo = [pt,
|
|
2249
|
+
}, Oo = [pt, N, Me, Ne, ml, pl, Mc], Pi = (e) => Oo.find(Mo(e));
|
|
2250
2250
|
class Lo extends kr {
|
|
2251
2251
|
constructor(t, n, r, i, s) {
|
|
2252
2252
|
super(t, n, r, i, s, !0);
|
|
@@ -2259,7 +2259,7 @@ class Lo extends kr {
|
|
|
2259
2259
|
for (let a = 0; a < t.length; a++) {
|
|
2260
2260
|
let u = t[a];
|
|
2261
2261
|
if (typeof u == "string" && (u = u.trim(), pr(u))) {
|
|
2262
|
-
const c =
|
|
2262
|
+
const c = Vo(u, n.current);
|
|
2263
2263
|
c !== void 0 && (t[a] = c), a === t.length - 1 && (this.finalKeyframe = u);
|
|
2264
2264
|
}
|
|
2265
2265
|
}
|
|
@@ -2379,7 +2379,7 @@ const Pt = {
|
|
|
2379
2379
|
layout: 0,
|
|
2380
2380
|
mainThread: 0,
|
|
2381
2381
|
waapi: 0
|
|
2382
|
-
},
|
|
2382
|
+
}, se = (e, t, n) => e + (t - e) * n;
|
|
2383
2383
|
function vn(e, t, n) {
|
|
2384
2384
|
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;
|
|
2385
2385
|
}
|
|
@@ -2418,16 +2418,16 @@ const Ri = (e, t) => {
|
|
|
2418
2418
|
if (!n || !r)
|
|
2419
2419
|
return Jt(e, t);
|
|
2420
2420
|
const i = { ...n };
|
|
2421
|
-
return (s) => (i.red = xn(n.red, r.red, s), i.green = xn(n.green, r.green, s), i.blue = xn(n.blue, r.blue, s), i.alpha =
|
|
2421
|
+
return (s) => (i.red = xn(n.red, r.red, s), i.green = xn(n.green, r.green, s), i.blue = xn(n.blue, r.blue, s), i.alpha = se(n.alpha, r.alpha, s), qe.transform(i));
|
|
2422
2422
|
}, Bc = (e, t) => (n) => t(e(n)), Nt = (...e) => e.reduce(Bc), zn = /* @__PURE__ */ new Set(["none", "hidden"]);
|
|
2423
2423
|
function $c(e, t) {
|
|
2424
2424
|
return zn.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
|
|
2425
2425
|
}
|
|
2426
2426
|
function Uc(e, t) {
|
|
2427
|
-
return (n) =>
|
|
2427
|
+
return (n) => se(e, t, n);
|
|
2428
2428
|
}
|
|
2429
2429
|
function _r(e) {
|
|
2430
|
-
return typeof e == "number" ? Uc : typeof e == "string" ? pr(e) ? Jt :
|
|
2430
|
+
return typeof e == "number" ? Uc : typeof e == "string" ? pr(e) ? Jt : me.test(e) ? Ri : Yc : Array.isArray(e) ? _o : typeof e == "object" ? me.test(e) ? Ri : Wc : Jt;
|
|
2431
2431
|
}
|
|
2432
2432
|
function _o(e, t) {
|
|
2433
2433
|
const n = [...e], r = n.length, i = e.map((s, o) => _r(s)(s, t[o]));
|
|
@@ -2461,14 +2461,14 @@ const Yc = (e, t) => {
|
|
|
2461
2461
|
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 ? zn.has(e) && !i.values.length || zn.has(t) && !r.values.length ? $c(e, t) : Nt(_o(zc(r, i), i.values), n) : (dt(!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.`), Jt(e, t));
|
|
2462
2462
|
};
|
|
2463
2463
|
function Io(e, t, n) {
|
|
2464
|
-
return typeof e == "number" && typeof t == "number" && typeof n == "number" ?
|
|
2464
|
+
return typeof e == "number" && typeof t == "number" && typeof n == "number" ? se(e, t, n) : _r(e)(e, t);
|
|
2465
2465
|
}
|
|
2466
2466
|
const Kc = 5;
|
|
2467
2467
|
function No(e, t, n) {
|
|
2468
2468
|
const r = Math.max(t - Kc, 0);
|
|
2469
2469
|
return uo(n - e(r), t - r);
|
|
2470
2470
|
}
|
|
2471
|
-
const
|
|
2471
|
+
const ie = {
|
|
2472
2472
|
stiffness: 100,
|
|
2473
2473
|
damping: 10,
|
|
2474
2474
|
mass: 1,
|
|
@@ -2489,11 +2489,11 @@ const te = {
|
|
|
2489
2489
|
minDamping: 0.05,
|
|
2490
2490
|
maxDamping: 1
|
|
2491
2491
|
}, bn = 1e-3;
|
|
2492
|
-
function Gc({ duration: e =
|
|
2492
|
+
function Gc({ duration: e = ie.duration, bounce: t = ie.bounce, velocity: n = ie.velocity, mass: r = ie.mass }) {
|
|
2493
2493
|
let i, s;
|
|
2494
|
-
dt(e <=
|
|
2494
|
+
dt(e <= Ve(ie.maxDuration), "Spring duration must be 10 seconds or less");
|
|
2495
2495
|
let o = 1 - t;
|
|
2496
|
-
o = Ie(
|
|
2496
|
+
o = Ie(ie.minDamping, ie.maxDamping, o), e = Ie(ie.minDuration, ie.maxDuration, _e(e)), o < 1 ? (i = (u) => {
|
|
2497
2497
|
const c = u * o, f = c * e, h = c - n, m = Yn(u, o), v = Math.exp(-f);
|
|
2498
2498
|
return bn - h / m * v;
|
|
2499
2499
|
}, s = (u) => {
|
|
@@ -2507,10 +2507,10 @@ function Gc({ duration: e = te.duration, bounce: t = te.bounce, velocity: n = te
|
|
|
2507
2507
|
return c * f;
|
|
2508
2508
|
});
|
|
2509
2509
|
const l = 5 / e, a = Hc(i, s, l);
|
|
2510
|
-
if (e =
|
|
2510
|
+
if (e = Ve(e), isNaN(a))
|
|
2511
2511
|
return {
|
|
2512
|
-
stiffness:
|
|
2513
|
-
damping:
|
|
2512
|
+
stiffness: ie.stiffness,
|
|
2513
|
+
damping: ie.damping,
|
|
2514
2514
|
duration: e
|
|
2515
2515
|
};
|
|
2516
2516
|
{
|
|
@@ -2538,10 +2538,10 @@ function ji(e, t) {
|
|
|
2538
2538
|
}
|
|
2539
2539
|
function Jc(e) {
|
|
2540
2540
|
let t = {
|
|
2541
|
-
velocity:
|
|
2542
|
-
stiffness:
|
|
2543
|
-
damping:
|
|
2544
|
-
mass:
|
|
2541
|
+
velocity: ie.velocity,
|
|
2542
|
+
stiffness: ie.stiffness,
|
|
2543
|
+
damping: ie.damping,
|
|
2544
|
+
mass: ie.mass,
|
|
2545
2545
|
isResolvedFromDuration: !1,
|
|
2546
2546
|
...e
|
|
2547
2547
|
};
|
|
@@ -2550,7 +2550,7 @@ function Jc(e) {
|
|
|
2550
2550
|
const n = e.visualDuration, r = 2 * Math.PI / (n * 1.2), i = r * r, s = 2 * Ie(0.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(i);
|
|
2551
2551
|
t = {
|
|
2552
2552
|
...t,
|
|
2553
|
-
mass:
|
|
2553
|
+
mass: ie.mass,
|
|
2554
2554
|
stiffness: i,
|
|
2555
2555
|
damping: s
|
|
2556
2556
|
};
|
|
@@ -2559,12 +2559,12 @@ function Jc(e) {
|
|
|
2559
2559
|
t = {
|
|
2560
2560
|
...t,
|
|
2561
2561
|
...n,
|
|
2562
|
-
mass:
|
|
2562
|
+
mass: ie.mass
|
|
2563
2563
|
}, t.isResolvedFromDuration = !0;
|
|
2564
2564
|
}
|
|
2565
2565
|
return t;
|
|
2566
2566
|
}
|
|
2567
|
-
function Fo(e =
|
|
2567
|
+
function Fo(e = ie.visualDuration, t = ie.bounce) {
|
|
2568
2568
|
const n = typeof e != "object" ? {
|
|
2569
2569
|
visualDuration: e,
|
|
2570
2570
|
keyframes: [0, 1],
|
|
@@ -2575,40 +2575,40 @@ function Fo(e = te.visualDuration, t = te.bounce) {
|
|
|
2575
2575
|
...n,
|
|
2576
2576
|
velocity: -_e(n.velocity || 0)
|
|
2577
2577
|
}), v = h || 0, y = u / (2 * Math.sqrt(a * c)), w = o - s, x = _e(Math.sqrt(a / c)), S = Math.abs(w) < 5;
|
|
2578
|
-
r || (r = S ?
|
|
2578
|
+
r || (r = S ? ie.restSpeed.granular : ie.restSpeed.default), i || (i = S ? ie.restDelta.granular : ie.restDelta.default);
|
|
2579
2579
|
let P;
|
|
2580
2580
|
if (y < 1) {
|
|
2581
2581
|
const g = Yn(x, y);
|
|
2582
|
-
P = (
|
|
2583
|
-
const z = Math.exp(-y * x *
|
|
2584
|
-
return o - z * ((v + y * x * w) / g * Math.sin(g *
|
|
2582
|
+
P = (M) => {
|
|
2583
|
+
const z = Math.exp(-y * x * M);
|
|
2584
|
+
return o - z * ((v + y * x * w) / g * Math.sin(g * M) + w * Math.cos(g * M));
|
|
2585
2585
|
};
|
|
2586
2586
|
} else if (y === 1)
|
|
2587
2587
|
P = (g) => o - Math.exp(-x * g) * (w + (v + x * w) * g);
|
|
2588
2588
|
else {
|
|
2589
2589
|
const g = x * Math.sqrt(y * y - 1);
|
|
2590
|
-
P = (
|
|
2591
|
-
const z = Math.exp(-y * x *
|
|
2592
|
-
return o - z * ((v + y * x * w) * Math.sinh(
|
|
2590
|
+
P = (M) => {
|
|
2591
|
+
const z = Math.exp(-y * x * M), R = Math.min(g * M, 300);
|
|
2592
|
+
return o - z * ((v + y * x * w) * Math.sinh(R) + g * w * Math.cosh(R)) / g;
|
|
2593
2593
|
};
|
|
2594
2594
|
}
|
|
2595
2595
|
const O = {
|
|
2596
2596
|
calculatedDuration: m && f || null,
|
|
2597
2597
|
next: (g) => {
|
|
2598
|
-
const
|
|
2598
|
+
const M = P(g);
|
|
2599
2599
|
if (m)
|
|
2600
2600
|
l.done = g >= f;
|
|
2601
2601
|
else {
|
|
2602
2602
|
let z = 0;
|
|
2603
|
-
y < 1 && (z = g === 0 ?
|
|
2604
|
-
const
|
|
2605
|
-
l.done =
|
|
2603
|
+
y < 1 && (z = g === 0 ? Ve(v) : No(P, g, M));
|
|
2604
|
+
const R = Math.abs(z) <= r, X = Math.abs(o - M) <= i;
|
|
2605
|
+
l.done = R && X;
|
|
2606
2606
|
}
|
|
2607
|
-
return l.value = l.done ? o :
|
|
2607
|
+
return l.value = l.done ? o : M, l;
|
|
2608
2608
|
},
|
|
2609
2609
|
toString: () => {
|
|
2610
|
-
const g = Math.min(no(O), In),
|
|
2611
|
-
return g + "ms " +
|
|
2610
|
+
const g = Math.min(no(O), In), M = ro((z) => O.next(g * z).value, g, 30);
|
|
2611
|
+
return g + "ms " + M;
|
|
2612
2612
|
}
|
|
2613
2613
|
};
|
|
2614
2614
|
return O;
|
|
@@ -2617,19 +2617,19 @@ function Ai({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
|
|
|
2617
2617
|
const f = e[0], h = {
|
|
2618
2618
|
done: !1,
|
|
2619
2619
|
value: f
|
|
2620
|
-
}, m = (
|
|
2620
|
+
}, m = (R) => l !== void 0 && R < l || a !== void 0 && R > a, v = (R) => l === void 0 ? a : a === void 0 || Math.abs(l - R) < Math.abs(a - R) ? l : a;
|
|
2621
2621
|
let y = n * t;
|
|
2622
2622
|
const w = f + y, x = o === void 0 ? w : o(w);
|
|
2623
2623
|
x !== w && (y = x - f);
|
|
2624
|
-
const S = (
|
|
2625
|
-
const
|
|
2626
|
-
h.done = Math.abs(
|
|
2624
|
+
const S = (R) => -y * Math.exp(-R / r), P = (R) => x + S(R), O = (R) => {
|
|
2625
|
+
const X = S(R), I = P(R);
|
|
2626
|
+
h.done = Math.abs(X) <= u, h.value = h.done ? x : I;
|
|
2627
2627
|
};
|
|
2628
|
-
let g,
|
|
2629
|
-
const z = (
|
|
2630
|
-
m(h.value) && (g =
|
|
2628
|
+
let g, M;
|
|
2629
|
+
const z = (R) => {
|
|
2630
|
+
m(h.value) && (g = R, M = Fo({
|
|
2631
2631
|
keyframes: [h.value, v(h.value)],
|
|
2632
|
-
velocity: No(P,
|
|
2632
|
+
velocity: No(P, R, h.value),
|
|
2633
2633
|
damping: i,
|
|
2634
2634
|
stiffness: s,
|
|
2635
2635
|
restDelta: u,
|
|
@@ -2638,9 +2638,9 @@ function Ai({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
|
|
|
2638
2638
|
};
|
|
2639
2639
|
return z(0), {
|
|
2640
2640
|
calculatedDuration: null,
|
|
2641
|
-
next: (
|
|
2642
|
-
let
|
|
2643
|
-
return !
|
|
2641
|
+
next: (R) => {
|
|
2642
|
+
let X = !1;
|
|
2643
|
+
return !M && g === void 0 && (X = !0, O(R), z(R)), g !== void 0 && R >= g ? M.next(R - g) : (!X && O(R), h);
|
|
2644
2644
|
}
|
|
2645
2645
|
};
|
|
2646
2646
|
}
|
|
@@ -2649,14 +2649,14 @@ const Qc = /* @__PURE__ */ It(0.42, 0, 1, 1), eu = /* @__PURE__ */ It(0, 0, 0.58
|
|
|
2649
2649
|
easeIn: Qc,
|
|
2650
2650
|
easeInOut: Bo,
|
|
2651
2651
|
easeOut: eu,
|
|
2652
|
-
circIn:
|
|
2652
|
+
circIn: Vr,
|
|
2653
2653
|
circInOut: bo,
|
|
2654
2654
|
circOut: xo,
|
|
2655
2655
|
backIn: Dr,
|
|
2656
2656
|
backInOut: yo,
|
|
2657
2657
|
backOut: go,
|
|
2658
2658
|
anticipate: vo
|
|
2659
|
-
},
|
|
2659
|
+
}, Vi = (e) => {
|
|
2660
2660
|
if (Cr(e)) {
|
|
2661
2661
|
Be(e.length === 4, "Cubic bezier arrays must contain four numerical values.");
|
|
2662
2662
|
const [t, n, r, i] = e;
|
|
@@ -2701,7 +2701,7 @@ function iu(e, t) {
|
|
|
2701
2701
|
const n = e[e.length - 1];
|
|
2702
2702
|
for (let r = 1; r <= t; r++) {
|
|
2703
2703
|
const i = at(0, t, r);
|
|
2704
|
-
e.push(
|
|
2704
|
+
e.push(se(n, 1, i));
|
|
2705
2705
|
}
|
|
2706
2706
|
}
|
|
2707
2707
|
function su(e) {
|
|
@@ -2715,7 +2715,7 @@ function au(e, t) {
|
|
|
2715
2715
|
return e.map(() => t || Bo).splice(0, e.length - 1);
|
|
2716
2716
|
}
|
|
2717
2717
|
function Ct({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }) {
|
|
2718
|
-
const i = tu(r) ? r.map(
|
|
2718
|
+
const i = tu(r) ? r.map(Vi) : Vi(r), s = {
|
|
2719
2719
|
done: !1,
|
|
2720
2720
|
value: t[0]
|
|
2721
2721
|
}, o = ou(
|
|
@@ -2732,9 +2732,9 @@ function Ct({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }
|
|
|
2732
2732
|
const lu = (e) => {
|
|
2733
2733
|
const t = ({ timestamp: n }) => e(n);
|
|
2734
2734
|
return {
|
|
2735
|
-
start: () =>
|
|
2735
|
+
start: () => ee.update(t, !0),
|
|
2736
2736
|
stop: () => $e(t),
|
|
2737
|
-
now: () =>
|
|
2737
|
+
now: () => he.isProcessing ? he.timestamp : Oe.now()
|
|
2738
2738
|
};
|
|
2739
2739
|
}, cu = {
|
|
2740
2740
|
decay: Ai,
|
|
@@ -2785,8 +2785,8 @@ class Ir extends ko {
|
|
|
2785
2785
|
tick(t, n = !1) {
|
|
2786
2786
|
const { resolved: r } = this;
|
|
2787
2787
|
if (!r) {
|
|
2788
|
-
const { keyframes:
|
|
2789
|
-
return { done: !0, value:
|
|
2788
|
+
const { keyframes: R } = this.options;
|
|
2789
|
+
return { done: !0, value: R[R.length - 1] };
|
|
2790
2790
|
}
|
|
2791
2791
|
const { finalKeyframe: i, generator: s, mirroredGenerator: o, mapPercentToKeyframes: l, keyframes: a, calculatedDuration: u, totalDuration: c, resolvedDuration: f } = r;
|
|
2792
2792
|
if (this.startTime === null)
|
|
@@ -2797,15 +2797,15 @@ class Ir extends ko {
|
|
|
2797
2797
|
this.currentTime = Math.max(x, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = c);
|
|
2798
2798
|
let P = this.currentTime, O = s;
|
|
2799
2799
|
if (m) {
|
|
2800
|
-
const
|
|
2801
|
-
let
|
|
2802
|
-
!
|
|
2800
|
+
const R = Math.min(this.currentTime, c) / f;
|
|
2801
|
+
let X = Math.floor(R), I = R % 1;
|
|
2802
|
+
!I && R >= 1 && (I = 1), I === 1 && X--, X = Math.min(X, m + 1), Boolean(X % 2) && (v === "reverse" ? (I = 1 - I, y && (I -= y / f)) : v === "mirror" && (O = o)), P = Ie(0, 1, I) * f;
|
|
2803
2803
|
}
|
|
2804
2804
|
const g = S ? { done: !1, value: a[0] } : O.next(P);
|
|
2805
2805
|
l && (g.value = l(g.value));
|
|
2806
|
-
let { done:
|
|
2807
|
-
!S && u !== null && (
|
|
2808
|
-
const z = this.holdTime === null && (this.state === "finished" || this.state === "running" &&
|
|
2806
|
+
let { done: M } = g;
|
|
2807
|
+
!S && u !== null && (M = this.speed >= 0 ? this.currentTime >= c : this.currentTime <= 0);
|
|
2808
|
+
const z = this.holdTime === null && (this.state === "finished" || this.state === "running" && M);
|
|
2809
2809
|
return z && i !== void 0 && (g.value = cn(a, this.options, i)), w && w(g.value), z && this.finish(), g;
|
|
2810
2810
|
}
|
|
2811
2811
|
get duration() {
|
|
@@ -2816,7 +2816,7 @@ class Ir extends ko {
|
|
|
2816
2816
|
return _e(this.currentTime);
|
|
2817
2817
|
}
|
|
2818
2818
|
set time(t) {
|
|
2819
|
-
t =
|
|
2819
|
+
t = Ve(t), this.currentTime = t, this.holdTime !== null || this.speed === 0 ? this.holdTime = t : this.driver && (this.startTime = this.driver.now() - t / this.speed);
|
|
2820
2820
|
}
|
|
2821
2821
|
get speed() {
|
|
2822
2822
|
return this.playbackSpeed;
|
|
@@ -2917,7 +2917,7 @@ const $o = {
|
|
|
2917
2917
|
function yu(e) {
|
|
2918
2918
|
return e in $o;
|
|
2919
2919
|
}
|
|
2920
|
-
class
|
|
2920
|
+
class Mi extends ko {
|
|
2921
2921
|
constructor(t) {
|
|
2922
2922
|
super(t);
|
|
2923
2923
|
const { name: n, motionValue: r, element: i, keyframes: s } = this.options;
|
|
@@ -2963,7 +2963,7 @@ class Vi extends ko {
|
|
|
2963
2963
|
if (!n)
|
|
2964
2964
|
return;
|
|
2965
2965
|
const { animation: r } = n;
|
|
2966
|
-
r.currentTime =
|
|
2966
|
+
r.currentTime = Ve(t);
|
|
2967
2967
|
}
|
|
2968
2968
|
get speed() {
|
|
2969
2969
|
const { resolved: t } = this;
|
|
@@ -3040,7 +3040,7 @@ class Vi extends ko {
|
|
|
3040
3040
|
ease: o,
|
|
3041
3041
|
times: l,
|
|
3042
3042
|
isGenerator: !0
|
|
3043
|
-
}), y =
|
|
3043
|
+
}), y = Ve(this.time);
|
|
3044
3044
|
u.setWithVelocity(v.sample(y - Qt).value, v.sample(y).value, Qt);
|
|
3045
3045
|
}
|
|
3046
3046
|
const { onStop: a } = this.options;
|
|
@@ -3086,7 +3086,7 @@ function Su({ when: e, delay: t, delayChildren: n, staggerChildren: r, staggerDi
|
|
|
3086
3086
|
const Nr = (e, t, n, r = {}, i, s) => (o) => {
|
|
3087
3087
|
const l = Sr(r, e) || {}, a = l.delay || r.delay || 0;
|
|
3088
3088
|
let { elapsed: u = 0 } = r;
|
|
3089
|
-
u = u -
|
|
3089
|
+
u = u - Ve(a);
|
|
3090
3090
|
let c = {
|
|
3091
3091
|
keyframes: Array.isArray(n) ? n : [null, n],
|
|
3092
3092
|
ease: "easeOut",
|
|
@@ -3106,16 +3106,16 @@ const Nr = (e, t, n, r = {}, i, s) => (o) => {
|
|
|
3106
3106
|
Su(l) || (c = {
|
|
3107
3107
|
...c,
|
|
3108
3108
|
...wu(e, c)
|
|
3109
|
-
}), c.duration && (c.duration =
|
|
3109
|
+
}), c.duration && (c.duration = Ve(c.duration)), c.repeatDelay && (c.repeatDelay = Ve(c.repeatDelay)), c.from !== void 0 && (c.keyframes[0] = c.from);
|
|
3110
3110
|
let f = !1;
|
|
3111
3111
|
if ((c.type === !1 || c.duration === 0 && !c.repeatDelay) && (c.duration = 0, c.delay === 0 && (f = !0)), (rc.current || Is.skipAnimations) && (f = !0, c.duration = 0, c.delay = 0), f && !s && t.get() !== void 0) {
|
|
3112
3112
|
const h = cn(c.keyframes, l);
|
|
3113
3113
|
if (h !== void 0)
|
|
3114
|
-
return
|
|
3114
|
+
return ee.update(() => {
|
|
3115
3115
|
c.onUpdate(h), c.onComplete();
|
|
3116
3116
|
}), new Bl([]);
|
|
3117
3117
|
}
|
|
3118
|
-
return !s &&
|
|
3118
|
+
return !s && Mi.supports(c) ? new Mi(c) : new Ir(c);
|
|
3119
3119
|
};
|
|
3120
3120
|
function Pu({ protectedKeys: e, needsAnimating: t }, n) {
|
|
3121
3121
|
const r = e.hasOwnProperty(n) && t[n] !== !0;
|
|
@@ -3138,7 +3138,7 @@ function Uo(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
|
|
|
3138
3138
|
if (window.MotionHandoffAnimation) {
|
|
3139
3139
|
const x = fo(e);
|
|
3140
3140
|
if (x) {
|
|
3141
|
-
const S = window.MotionHandoffAnimation(x, f,
|
|
3141
|
+
const S = window.MotionHandoffAnimation(x, f, ee);
|
|
3142
3142
|
S !== null && (v.startTime = S, y = !0);
|
|
3143
3143
|
}
|
|
3144
3144
|
}
|
|
@@ -3147,14 +3147,14 @@ function Uo(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
|
|
|
3147
3147
|
w && u.push(w);
|
|
3148
3148
|
}
|
|
3149
3149
|
return l && Promise.all(u).then(() => {
|
|
3150
|
-
|
|
3150
|
+
ee.update(() => {
|
|
3151
3151
|
l && tc(e, l);
|
|
3152
3152
|
});
|
|
3153
3153
|
}), u;
|
|
3154
3154
|
}
|
|
3155
3155
|
function Kn(e, t, n = {}) {
|
|
3156
3156
|
var r;
|
|
3157
|
-
const i =
|
|
3157
|
+
const i = Vt(e, t, n.type === "exit" ? (r = e.presenceContext) === null || r === void 0 ? void 0 : r.custom : void 0);
|
|
3158
3158
|
let { transition: s = e.getDefaultTransition() || {} } = i || {};
|
|
3159
3159
|
n.transitionOverride && (s = n.transitionOverride);
|
|
3160
3160
|
const o = i ? () => Promise.all(Uo(e, i, n)) : () => Promise.resolve(), l = e.variantChildren && e.variantChildren.size ? (u = 0) => {
|
|
@@ -3188,7 +3188,7 @@ function Ru(e, t, n = {}) {
|
|
|
3188
3188
|
} else if (typeof t == "string")
|
|
3189
3189
|
r = Kn(e, t, n);
|
|
3190
3190
|
else {
|
|
3191
|
-
const i = typeof t == "function" ?
|
|
3191
|
+
const i = typeof t == "function" ? Vt(e, t, n.custom) : t;
|
|
3192
3192
|
r = Promise.all(Uo(e, i, n));
|
|
3193
3193
|
}
|
|
3194
3194
|
return r.then(() => {
|
|
@@ -3222,14 +3222,14 @@ function zo(e) {
|
|
|
3222
3222
|
return t;
|
|
3223
3223
|
}
|
|
3224
3224
|
const Au = [...cr].reverse(), Du = cr.length;
|
|
3225
|
-
function
|
|
3225
|
+
function Vu(e) {
|
|
3226
3226
|
return (t) => Promise.all(t.map(({ animation: n, options: r }) => Ru(e, n, r)));
|
|
3227
3227
|
}
|
|
3228
|
-
function
|
|
3229
|
-
let t =
|
|
3228
|
+
function Mu(e) {
|
|
3229
|
+
let t = Vu(e), n = Oi(), r = !0;
|
|
3230
3230
|
const i = (a) => (u, c) => {
|
|
3231
3231
|
var f;
|
|
3232
|
-
const h =
|
|
3232
|
+
const h = Vt(e, c, a === "exit" ? (f = e.presenceContext) === null || f === void 0 ? void 0 : f.custom : void 0);
|
|
3233
3233
|
if (h) {
|
|
3234
3234
|
const { transition: m, transitionEnd: v, ...y } = h;
|
|
3235
3235
|
u = { ...u, ...y, ...v };
|
|
@@ -3245,38 +3245,38 @@ function Vu(e) {
|
|
|
3245
3245
|
for (let w = 0; w < Du; w++) {
|
|
3246
3246
|
const x = Au[w], S = n[x], P = u[x] !== void 0 ? u[x] : c[x], O = jt(P), g = x === a ? S.isActive : null;
|
|
3247
3247
|
g === !1 && (v = w);
|
|
3248
|
-
let
|
|
3249
|
-
if (
|
|
3248
|
+
let M = P === c[x] && P !== u[x] && O;
|
|
3249
|
+
if (M && r && e.manuallyAnimateOnMount && (M = !1), S.protectedKeys = { ...m }, !S.isActive && g === null || !P && !S.prevProp || an(P) || typeof P == "boolean")
|
|
3250
3250
|
continue;
|
|
3251
3251
|
const z = Ou(S.prevProp, P);
|
|
3252
|
-
let
|
|
3253
|
-
const
|
|
3254
|
-
let
|
|
3255
|
-
g === !1 && (
|
|
3256
|
-
const { prevResolvedValues:
|
|
3257
|
-
...
|
|
3258
|
-
...
|
|
3259
|
-
},
|
|
3260
|
-
|
|
3261
|
-
const
|
|
3262
|
-
|
|
3252
|
+
let R = z || x === a && S.isActive && !M && O || w > v && O, X = !1;
|
|
3253
|
+
const I = Array.isArray(P) ? P : [P];
|
|
3254
|
+
let K = I.reduce(i(x), {});
|
|
3255
|
+
g === !1 && (K = {});
|
|
3256
|
+
const { prevResolvedValues: ne = {} } = S, te = {
|
|
3257
|
+
...ne,
|
|
3258
|
+
...K
|
|
3259
|
+
}, re = (q) => {
|
|
3260
|
+
R = !0, h.has(q) && (X = !0, h.delete(q)), S.needsAnimating[q] = !0;
|
|
3261
|
+
const oe = e.getValue(q);
|
|
3262
|
+
oe && (oe.liveStyle = !1);
|
|
3263
3263
|
};
|
|
3264
|
-
for (const
|
|
3265
|
-
const
|
|
3266
|
-
if (m.hasOwnProperty(
|
|
3264
|
+
for (const q in te) {
|
|
3265
|
+
const oe = K[q], Se = ne[q];
|
|
3266
|
+
if (m.hasOwnProperty(q))
|
|
3267
3267
|
continue;
|
|
3268
3268
|
let b = !1;
|
|
3269
|
-
_n(
|
|
3269
|
+
_n(oe) && _n(Se) ? b = !Wo(oe, Se) : b = oe !== Se, b ? oe != null ? re(q) : h.add(q) : oe !== void 0 && h.has(q) ? re(q) : S.protectedKeys[q] = !0;
|
|
3270
3270
|
}
|
|
3271
|
-
S.prevProp = P, S.prevResolvedValues =
|
|
3272
|
-
animation:
|
|
3271
|
+
S.prevProp = P, S.prevResolvedValues = K, S.isActive && (m = { ...m, ...K }), r && e.blockInitialAnimation && (R = !1), R && (!(M && z) || X) && f.push(...I.map((q) => ({
|
|
3272
|
+
animation: q,
|
|
3273
3273
|
options: { type: x }
|
|
3274
3274
|
})));
|
|
3275
3275
|
}
|
|
3276
3276
|
if (h.size) {
|
|
3277
3277
|
const w = {};
|
|
3278
3278
|
if (typeof u.initial != "boolean") {
|
|
3279
|
-
const x =
|
|
3279
|
+
const x = Vt(e, Array.isArray(u.initial) ? u.initial[0] : u.initial);
|
|
3280
3280
|
x && x.transition && (w.transition = x.transition);
|
|
3281
3281
|
}
|
|
3282
3282
|
h.forEach((x) => {
|
|
@@ -3341,7 +3341,7 @@ class We {
|
|
|
3341
3341
|
}
|
|
3342
3342
|
class Lu extends We {
|
|
3343
3343
|
constructor(t) {
|
|
3344
|
-
super(t), t.animationState || (t.animationState =
|
|
3344
|
+
super(t), t.animationState || (t.animationState = Mu(t));
|
|
3345
3345
|
}
|
|
3346
3346
|
updateAnimationControlsSubscription() {
|
|
3347
3347
|
const { animate: t } = this.node.getProps();
|
|
@@ -3426,26 +3426,26 @@ function Bu(e, t) {
|
|
|
3426
3426
|
};
|
|
3427
3427
|
}
|
|
3428
3428
|
const Ko = 1e-4, $u = 1 - Ko, Uu = 1 + Ko, Go = 0.01, Wu = 0 - Go, zu = 0 + Go;
|
|
3429
|
-
function
|
|
3429
|
+
function we(e) {
|
|
3430
3430
|
return e.max - e.min;
|
|
3431
3431
|
}
|
|
3432
3432
|
function Yu(e, t, n) {
|
|
3433
3433
|
return Math.abs(e - t) <= n;
|
|
3434
3434
|
}
|
|
3435
3435
|
function Li(e, t, n, r = 0.5) {
|
|
3436
|
-
e.origin = r, e.originPoint =
|
|
3436
|
+
e.origin = r, e.originPoint = se(t.min, t.max, e.origin), e.scale = we(n) / we(t), e.translate = se(n.min, n.max, e.origin) - e.originPoint, (e.scale >= $u && e.scale <= Uu || isNaN(e.scale)) && (e.scale = 1), (e.translate >= Wu && e.translate <= zu || isNaN(e.translate)) && (e.translate = 0);
|
|
3437
3437
|
}
|
|
3438
3438
|
function Et(e, t, n, r) {
|
|
3439
3439
|
Li(e.x, t.x, n.x, r ? r.originX : void 0), Li(e.y, t.y, n.y, r ? r.originY : void 0);
|
|
3440
3440
|
}
|
|
3441
3441
|
function ki(e, t, n) {
|
|
3442
|
-
e.min = n.min + t.min, e.max = e.min +
|
|
3442
|
+
e.min = n.min + t.min, e.max = e.min + we(t);
|
|
3443
3443
|
}
|
|
3444
3444
|
function Ku(e, t, n) {
|
|
3445
3445
|
ki(e.x, t.x, n.x), ki(e.y, t.y, n.y);
|
|
3446
3446
|
}
|
|
3447
3447
|
function _i(e, t, n) {
|
|
3448
|
-
e.min = t.min - n.min, e.max = e.min +
|
|
3448
|
+
e.min = t.min - n.min, e.max = e.min + we(t);
|
|
3449
3449
|
}
|
|
3450
3450
|
function Rt(e, t, n) {
|
|
3451
3451
|
_i(e.x, t.x, n.x), _i(e.y, t.y, n.y);
|
|
@@ -3458,7 +3458,7 @@ const Ii = () => ({
|
|
|
3458
3458
|
}), it = () => ({
|
|
3459
3459
|
x: Ii(),
|
|
3460
3460
|
y: Ii()
|
|
3461
|
-
}), Ni = () => ({ min: 0, max: 0 }),
|
|
3461
|
+
}), Ni = () => ({ min: 0, max: 0 }), ce = () => ({
|
|
3462
3462
|
x: Ni(),
|
|
3463
3463
|
y: Ni()
|
|
3464
3464
|
});
|
|
@@ -3514,7 +3514,7 @@ function st(e, t) {
|
|
|
3514
3514
|
e.min = e.min + t, e.max = e.max + t;
|
|
3515
3515
|
}
|
|
3516
3516
|
function Wi(e, t, n, r, i = 0.5) {
|
|
3517
|
-
const s =
|
|
3517
|
+
const s = se(e.min, e.max, i);
|
|
3518
3518
|
qn(e, t, n, s, r);
|
|
3519
3519
|
}
|
|
3520
3520
|
function ot(e, t) {
|
|
@@ -3540,7 +3540,7 @@ class Zo {
|
|
|
3540
3540
|
const c = Sn(this.lastMoveEventInfo, this.history), f = this.startEvent !== null, h = Hu(c.offset, { x: 0, y: 0 }) >= 3;
|
|
3541
3541
|
if (!f && !h)
|
|
3542
3542
|
return;
|
|
3543
|
-
const { point: m } = c, { timestamp: v } =
|
|
3543
|
+
const { point: m } = c, { timestamp: v } = he;
|
|
3544
3544
|
this.history.push({ ...m, timestamp: v });
|
|
3545
3545
|
const { onStart: y, onMove: w } = this.handlers;
|
|
3546
3546
|
f || (y && y(this.lastMoveEvent, c), this.startEvent = this.lastMoveEvent), w && w(this.lastMoveEvent, c);
|
|
@@ -3551,7 +3551,7 @@ class Zo {
|
|
|
3551
3551
|
return;
|
|
3552
3552
|
} catch {
|
|
3553
3553
|
}
|
|
3554
|
-
this.lastMoveEvent = c, this.lastMoveEventInfo = wn(f, this.transformPagePoint),
|
|
3554
|
+
this.lastMoveEvent = c, this.lastMoveEventInfo = wn(f, this.transformPagePoint), ee.update(this.updatePoint, !0);
|
|
3555
3555
|
}, this.handlePointerUp = (c, f) => {
|
|
3556
3556
|
Zt(c, "release"), this.end();
|
|
3557
3557
|
const { onEnd: h, onSessionEnd: m, resumeAnimation: v } = this.handlers;
|
|
@@ -3562,7 +3562,7 @@ class Zo {
|
|
|
3562
3562
|
}, !Er(t))
|
|
3563
3563
|
return;
|
|
3564
3564
|
this.dragSnapToOrigin = i, this.handlers = n, this.transformPagePoint = r;
|
|
3565
|
-
const s = Ft(t), o = wn(s, this.transformPagePoint), { point: l } = o, { timestamp: a } =
|
|
3565
|
+
const s = Ft(t), o = wn(s, this.transformPagePoint), { point: l } = o, { timestamp: a } = he;
|
|
3566
3566
|
this.history = [{ ...l, timestamp: a }];
|
|
3567
3567
|
const { onSessionStart: u } = n;
|
|
3568
3568
|
u && u(t, Sn(o, this.history)), Zt(t, "set"), this.removeListeners = Nt(rt(t.currentTarget, "pointermove", this.handlePointerMove), rt(t.currentTarget, "pointerup", this.handlePointerUp), rt(t.currentTarget, "pointercancel", this.handlePointerUp), rt(t.currentTarget, "lostpointercapture", this.handlePointerUp));
|
|
@@ -3599,7 +3599,7 @@ function Zu(e, t) {
|
|
|
3599
3599
|
return { x: 0, y: 0 };
|
|
3600
3600
|
let n = e.length - 1, r = null;
|
|
3601
3601
|
const i = Jo(e);
|
|
3602
|
-
for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp >
|
|
3602
|
+
for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > Ve(t))); )
|
|
3603
3603
|
n--;
|
|
3604
3604
|
if (!r)
|
|
3605
3605
|
return { x: 0, y: 0 };
|
|
@@ -3613,7 +3613,7 @@ function Zu(e, t) {
|
|
|
3613
3613
|
return o.x === 1 / 0 && (o.x = 0), o.y === 1 / 0 && (o.y = 0), o;
|
|
3614
3614
|
}
|
|
3615
3615
|
function Ju(e, { min: t, max: n }, r) {
|
|
3616
|
-
return t !== void 0 && e < t ? e = r ?
|
|
3616
|
+
return t !== void 0 && e < t ? e = r ? se(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? se(n, e, r.max) : Math.min(e, n)), e;
|
|
3617
3617
|
}
|
|
3618
3618
|
function Ki(e, t, n) {
|
|
3619
3619
|
return {
|
|
@@ -3639,7 +3639,7 @@ function ef(e, t) {
|
|
|
3639
3639
|
}
|
|
3640
3640
|
function tf(e, t) {
|
|
3641
3641
|
let n = 0.5;
|
|
3642
|
-
const r =
|
|
3642
|
+
const r = we(e), i = we(t);
|
|
3643
3643
|
return i > r ? n = at(t.min, t.max - r, e.min) : r > i && (n = at(e.min, e.max - i, t.min)), Ie(0, 1, n);
|
|
3644
3644
|
}
|
|
3645
3645
|
function nf(e, t) {
|
|
@@ -3665,7 +3665,7 @@ function Hi(e, t) {
|
|
|
3665
3665
|
const sf = /* @__PURE__ */ new WeakMap();
|
|
3666
3666
|
class of {
|
|
3667
3667
|
constructor(t) {
|
|
3668
|
-
this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic =
|
|
3668
|
+
this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = ce(), this.visualElement = t;
|
|
3669
3669
|
}
|
|
3670
3670
|
start(t, { snapToCursor: n = !1 } = {}) {
|
|
3671
3671
|
const { presenceContext: r } = this.visualElement;
|
|
@@ -3680,15 +3680,15 @@ class of {
|
|
|
3680
3680
|
return;
|
|
3681
3681
|
this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), Ae((w) => {
|
|
3682
3682
|
let x = this.getAxisMotionValue(w).get() || 0;
|
|
3683
|
-
if (
|
|
3683
|
+
if (Me.test(x)) {
|
|
3684
3684
|
const { projection: S } = this.visualElement;
|
|
3685
3685
|
if (S && S.layout) {
|
|
3686
3686
|
const P = S.layout.layoutBox[w];
|
|
3687
|
-
P && (x =
|
|
3687
|
+
P && (x = we(P) * (parseFloat(x) / 100));
|
|
3688
3688
|
}
|
|
3689
3689
|
}
|
|
3690
3690
|
this.originPoint[w] = x;
|
|
3691
|
-
}), v &&
|
|
3691
|
+
}), v && ee.postRender(() => v(c, f)), Fn(this.visualElement, "transform");
|
|
3692
3692
|
const { animationState: y } = this.visualElement;
|
|
3693
3693
|
y && y.setActive("whileDrag", !0);
|
|
3694
3694
|
}, o = (c, f) => {
|
|
@@ -3723,7 +3723,7 @@ class of {
|
|
|
3723
3723
|
const { velocity: i } = n;
|
|
3724
3724
|
this.startAnimation(i);
|
|
3725
3725
|
const { onDragEnd: s } = this.getProps();
|
|
3726
|
-
s &&
|
|
3726
|
+
s && ee.postRender(() => s(t, n));
|
|
3727
3727
|
}
|
|
3728
3728
|
cancel() {
|
|
3729
3729
|
this.isDragging = !1;
|
|
@@ -3814,7 +3814,7 @@ class of {
|
|
|
3814
3814
|
const { projection: i } = this.visualElement, s = this.getAxisMotionValue(n);
|
|
3815
3815
|
if (i && i.layout) {
|
|
3816
3816
|
const { min: o, max: l } = i.layout.layoutBox[n];
|
|
3817
|
-
s.set(t[n] -
|
|
3817
|
+
s.set(t[n] - se(o, l, 0.5));
|
|
3818
3818
|
}
|
|
3819
3819
|
});
|
|
3820
3820
|
}
|
|
@@ -3838,7 +3838,7 @@ class of {
|
|
|
3838
3838
|
if (!Yt(o, t, null))
|
|
3839
3839
|
return;
|
|
3840
3840
|
const l = this.getAxisMotionValue(o), { min: a, max: u } = this.constraints[o];
|
|
3841
|
-
l.set(
|
|
3841
|
+
l.set(se(a, u, i[o]));
|
|
3842
3842
|
});
|
|
3843
3843
|
}
|
|
3844
3844
|
addListeners() {
|
|
@@ -3852,7 +3852,7 @@ class of {
|
|
|
3852
3852
|
const { dragConstraints: a } = this.getProps();
|
|
3853
3853
|
tt(a) && a.current && (this.constraints = this.resolveRefConstraints());
|
|
3854
3854
|
}, { projection: i } = this.visualElement, s = i.addEventListener("measure", r);
|
|
3855
|
-
i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()),
|
|
3855
|
+
i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), ee.read(r);
|
|
3856
3856
|
const o = Lt(window, "resize", () => this.scalePositionWithinConstraints()), l = i.addEventListener("didUpdate", ({ delta: a, hasLayoutChanged: u }) => {
|
|
3857
3857
|
this.isDragging && u && (Ae((c) => {
|
|
3858
3858
|
const f = this.getAxisMotionValue(c);
|
|
@@ -3896,7 +3896,7 @@ class lf extends We {
|
|
|
3896
3896
|
}
|
|
3897
3897
|
}
|
|
3898
3898
|
const Xi = (e) => (t, n) => {
|
|
3899
|
-
e &&
|
|
3899
|
+
e && ee.postRender(() => e(t, n));
|
|
3900
3900
|
};
|
|
3901
3901
|
class cf extends We {
|
|
3902
3902
|
constructor() {
|
|
@@ -3914,7 +3914,7 @@ class cf extends We {
|
|
|
3914
3914
|
onStart: Xi(n),
|
|
3915
3915
|
onMove: r,
|
|
3916
3916
|
onEnd: (s, o) => {
|
|
3917
|
-
delete this.session, i &&
|
|
3917
|
+
delete this.session, i && ee.postRender(() => i(s, o));
|
|
3918
3918
|
}
|
|
3919
3919
|
};
|
|
3920
3920
|
}
|
|
@@ -3940,7 +3940,7 @@ const vt = {
|
|
|
3940
3940
|
if (!t.target)
|
|
3941
3941
|
return e;
|
|
3942
3942
|
if (typeof e == "string")
|
|
3943
|
-
if (
|
|
3943
|
+
if (N.test(e))
|
|
3944
3944
|
e = parseFloat(e);
|
|
3945
3945
|
else
|
|
3946
3946
|
return e;
|
|
@@ -3954,7 +3954,7 @@ const vt = {
|
|
|
3954
3954
|
return r;
|
|
3955
3955
|
const s = Ue.createTransformer(e), o = typeof i[0] != "number" ? 1 : 0, l = n.x.scale * t.x, a = n.y.scale * t.y;
|
|
3956
3956
|
i[0 + o] /= l, i[1 + o] /= a;
|
|
3957
|
-
const u =
|
|
3957
|
+
const u = se(l, a, 0.5);
|
|
3958
3958
|
return typeof i[2 + o] == "number" && (i[2 + o] /= u), typeof i[3 + o] == "number" && (i[3 + o] /= u), s(i);
|
|
3959
3959
|
}
|
|
3960
3960
|
};
|
|
@@ -3970,7 +3970,7 @@ class ff extends Fa {
|
|
|
3970
3970
|
}
|
|
3971
3971
|
getSnapshotBeforeUpdate(t) {
|
|
3972
3972
|
const { layoutDependency: n, visualElement: r, drag: i, isPresent: s } = this.props, o = r.projection;
|
|
3973
|
-
return o && (o.isPresent = s, i || t.layoutDependency !== n || n === void 0 ? o.willUpdate() : this.safeToRemove(), t.isPresent !== s && (s ? o.promote() : o.relegate() ||
|
|
3973
|
+
return o && (o.isPresent = s, i || t.layoutDependency !== n || n === void 0 ? o.willUpdate() : this.safeToRemove(), t.isPresent !== s && (s ? o.promote() : o.relegate() || ee.postRender(() => {
|
|
3974
3974
|
const l = o.getStack();
|
|
3975
3975
|
(!l || !l.members.length) && this.safeToRemove();
|
|
3976
3976
|
}))), null;
|
|
@@ -3994,8 +3994,8 @@ class ff extends Fa {
|
|
|
3994
3994
|
}
|
|
3995
3995
|
}
|
|
3996
3996
|
function Qo(e) {
|
|
3997
|
-
const [t, n] = Ls(), r =
|
|
3998
|
-
return p.exports.jsx(ff, { ...e, layoutGroup: r, switchLayoutGroup:
|
|
3997
|
+
const [t, n] = Ls(), r = ve(ir);
|
|
3998
|
+
return p.exports.jsx(ff, { ...e, layoutGroup: r, switchLayoutGroup: ve(Ws), isPresent: t, safeToRemove: n });
|
|
3999
3999
|
}
|
|
4000
4000
|
const df = {
|
|
4001
4001
|
borderRadius: {
|
|
@@ -4014,7 +4014,7 @@ const df = {
|
|
|
4014
4014
|
boxShadow: uf
|
|
4015
4015
|
};
|
|
4016
4016
|
function hf(e, t, n) {
|
|
4017
|
-
const r =
|
|
4017
|
+
const r = xe(e) ? e : Mt(e);
|
|
4018
4018
|
return r.start(Nr("", r, t, n)), r.animation;
|
|
4019
4019
|
}
|
|
4020
4020
|
function pf(e) {
|
|
@@ -4040,23 +4040,23 @@ function yf(e, t) {
|
|
|
4040
4040
|
const s = i - n;
|
|
4041
4041
|
s >= t && ($e(r), e(s - t));
|
|
4042
4042
|
};
|
|
4043
|
-
return
|
|
4043
|
+
return ee.read(r, !0), () => $e(r);
|
|
4044
4044
|
}
|
|
4045
|
-
const ea = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], vf = ea.length, Ji = (e) => typeof e == "string" ? parseFloat(e) : e, Qi = (e) => typeof e == "number" ||
|
|
4045
|
+
const ea = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], vf = ea.length, Ji = (e) => typeof e == "string" ? parseFloat(e) : e, Qi = (e) => typeof e == "number" || N.test(e);
|
|
4046
4046
|
function xf(e, t, n, r, i, s) {
|
|
4047
|
-
i ? (e.opacity =
|
|
4047
|
+
i ? (e.opacity = se(
|
|
4048
4048
|
0,
|
|
4049
4049
|
n.opacity !== void 0 ? n.opacity : 1,
|
|
4050
4050
|
bf(r)
|
|
4051
|
-
), e.opacityExit =
|
|
4051
|
+
), e.opacityExit = se(t.opacity !== void 0 ? t.opacity : 1, 0, Tf(r))) : s && (e.opacity = se(t.opacity !== void 0 ? t.opacity : 1, n.opacity !== void 0 ? n.opacity : 1, r));
|
|
4052
4052
|
for (let o = 0; o < vf; o++) {
|
|
4053
4053
|
const l = `border${ea[o]}Radius`;
|
|
4054
4054
|
let a = es(t, l), u = es(n, l);
|
|
4055
4055
|
if (a === void 0 && u === void 0)
|
|
4056
4056
|
continue;
|
|
4057
|
-
a || (a = 0), u || (u = 0), a === 0 || u === 0 || Qi(a) === Qi(u) ? (e[l] = Math.max(
|
|
4057
|
+
a || (a = 0), u || (u = 0), a === 0 || u === 0 || Qi(a) === Qi(u) ? (e[l] = Math.max(se(Ji(a), Ji(u), r), 0), (Me.test(u) || Me.test(a)) && (e[l] += "%")) : e[l] = u;
|
|
4058
4058
|
}
|
|
4059
|
-
(t.rotate || n.rotate) && (e.rotate =
|
|
4059
|
+
(t.rotate || n.rotate) && (e.rotate = se(t.rotate || 0, n.rotate || 0, r));
|
|
4060
4060
|
}
|
|
4061
4061
|
function es(e, t) {
|
|
4062
4062
|
return e[t] !== void 0 ? e[t] : e.borderRadius;
|
|
@@ -4078,9 +4078,9 @@ function rs(e, t, n, r, i) {
|
|
|
4078
4078
|
return e -= t, e = en(e, 1 / n, r), i !== void 0 && (e = en(e, 1 / i, r)), e;
|
|
4079
4079
|
}
|
|
4080
4080
|
function wf(e, t = 0, n = 1, r = 0.5, i, s = e, o = e) {
|
|
4081
|
-
if (
|
|
4081
|
+
if (Me.test(t) && (t = parseFloat(t), t = se(o.min, o.max, t / 100) - o.min), typeof t != "number")
|
|
4082
4082
|
return;
|
|
4083
|
-
let l =
|
|
4083
|
+
let l = se(s.min, s.max, r);
|
|
4084
4084
|
e === s && (l -= t), e.min = rs(e.min, t, n, l, i), e.max = rs(e.max, t, n, l, i);
|
|
4085
4085
|
}
|
|
4086
4086
|
function is(e, t, [n, r, i], s, o) {
|
|
@@ -4109,7 +4109,7 @@ function ra(e, t) {
|
|
|
4109
4109
|
return ls(e.x, t.x) && ls(e.y, t.y);
|
|
4110
4110
|
}
|
|
4111
4111
|
function cs(e) {
|
|
4112
|
-
return
|
|
4112
|
+
return we(e.x) / we(e.y);
|
|
4113
4113
|
}
|
|
4114
4114
|
function us(e, t) {
|
|
4115
4115
|
return e.translate === t.translate && e.scale === t.scale && e.originPoint === t.originPoint;
|
|
@@ -4193,7 +4193,7 @@ function ia(e) {
|
|
|
4193
4193
|
const n = fo(t);
|
|
4194
4194
|
if (window.MotionHasOptimisedAnimation(n, "transform")) {
|
|
4195
4195
|
const { layout: i, layoutId: s } = e.options;
|
|
4196
|
-
window.MotionCancelOptimisedAnimation(n, "transform",
|
|
4196
|
+
window.MotionCancelOptimisedAnimation(n, "transform", ee, !(i || s));
|
|
4197
4197
|
}
|
|
4198
4198
|
const { parent: r } = e;
|
|
4199
4199
|
r && !r.hasCheckedOptimisedAppear && ia(r);
|
|
@@ -4204,7 +4204,7 @@ function sa({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4204
4204
|
this.id = Af++, this.animationId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
|
|
4205
4205
|
this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
|
|
4206
4206
|
}, this.updateProjection = () => {
|
|
4207
|
-
this.projectionUpdateScheduled = !1, Fe.value && (Ge.nodes = Ge.calculatedTargetDeltas = Ge.calculatedProjections = 0), this.nodes.forEach(
|
|
4207
|
+
this.projectionUpdateScheduled = !1, Fe.value && (Ge.nodes = Ge.calculatedTargetDeltas = Ge.calculatedProjections = 0), this.nodes.forEach(Mf), this.nodes.forEach(If), this.nodes.forEach(Nf), this.nodes.forEach(Of), Fe.addProjectionMetrics && Fe.addProjectionMetrics(Ge);
|
|
4208
4208
|
}, this.resolvedRelativeTargetAt = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = o, this.root = l ? l.root || l : this, this.path = l ? [...l.path, l] : [], this.parent = l, this.depth = l ? l.depth + 1 : 0;
|
|
4209
4209
|
for (let a = 0; a < this.path.length; a++)
|
|
4210
4210
|
this.path[a].shouldResetTransform = !0;
|
|
@@ -4298,9 +4298,9 @@ function sa({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4298
4298
|
this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(ds);
|
|
4299
4299
|
return;
|
|
4300
4300
|
}
|
|
4301
|
-
this.isUpdating || this.nodes.forEach(kf), this.isUpdating = !1, this.nodes.forEach(_f), this.nodes.forEach(Df), this.nodes.forEach(
|
|
4301
|
+
this.isUpdating || this.nodes.forEach(kf), this.isUpdating = !1, this.nodes.forEach(_f), this.nodes.forEach(Df), this.nodes.forEach(Vf), this.clearAllSnapshots();
|
|
4302
4302
|
const l = Oe.now();
|
|
4303
|
-
|
|
4303
|
+
he.delta = Ie(0, 1e3 / 60, l - he.timestamp), he.timestamp = l, he.isProcessing = !0, mn.update.process(he), mn.preRender.process(he), mn.render.process(he), he.isProcessing = !1;
|
|
4304
4304
|
}
|
|
4305
4305
|
didUpdate() {
|
|
4306
4306
|
this.updateScheduled || (this.updateScheduled = !0, dr.read(this.scheduleUpdate));
|
|
@@ -4309,15 +4309,15 @@ function sa({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4309
4309
|
this.nodes.forEach(Lf), this.sharedNodes.forEach(Bf);
|
|
4310
4310
|
}
|
|
4311
4311
|
scheduleUpdateProjection() {
|
|
4312
|
-
this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0,
|
|
4312
|
+
this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, ee.preRender(this.updateProjection, !1, !0));
|
|
4313
4313
|
}
|
|
4314
4314
|
scheduleCheckAfterUnmount() {
|
|
4315
|
-
|
|
4315
|
+
ee.postRender(() => {
|
|
4316
4316
|
this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
|
|
4317
4317
|
});
|
|
4318
4318
|
}
|
|
4319
4319
|
updateSnapshot() {
|
|
4320
|
-
this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !
|
|
4320
|
+
this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !we(this.snapshot.measuredBox.x) && !we(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
|
|
4321
4321
|
}
|
|
4322
4322
|
updateLayout() {
|
|
4323
4323
|
if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty))
|
|
@@ -4326,7 +4326,7 @@ function sa({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4326
4326
|
for (let a = 0; a < this.path.length; a++)
|
|
4327
4327
|
this.path[a].updateScroll();
|
|
4328
4328
|
const o = this.layout;
|
|
4329
|
-
this.layout = this.measure(!1), this.layoutCorrected =
|
|
4329
|
+
this.layout = this.measure(!1), this.layoutCorrected = ce(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
|
|
4330
4330
|
const { visualElement: l } = this.options;
|
|
4331
4331
|
l && l.notify("LayoutMeasure", this.layout.layoutBox, o ? o.layoutBox : void 0);
|
|
4332
4332
|
}
|
|
@@ -4364,7 +4364,7 @@ function sa({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4364
4364
|
var o;
|
|
4365
4365
|
const { visualElement: l } = this.options;
|
|
4366
4366
|
if (!l)
|
|
4367
|
-
return
|
|
4367
|
+
return ce();
|
|
4368
4368
|
const a = l.measureViewportBox();
|
|
4369
4369
|
if (!(((o = this.scroll) === null || o === void 0 ? void 0 : o.wasRoot) || this.path.some(Yf))) {
|
|
4370
4370
|
const { scroll: c } = this.root;
|
|
@@ -4374,7 +4374,7 @@ function sa({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4374
4374
|
}
|
|
4375
4375
|
removeElementScroll(o) {
|
|
4376
4376
|
var l;
|
|
4377
|
-
const a =
|
|
4377
|
+
const a = ce();
|
|
4378
4378
|
if (je(a, o), !((l = this.scroll) === null || l === void 0) && l.wasRoot)
|
|
4379
4379
|
return a;
|
|
4380
4380
|
for (let u = 0; u < this.path.length; u++) {
|
|
@@ -4384,7 +4384,7 @@ function sa({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4384
4384
|
return a;
|
|
4385
4385
|
}
|
|
4386
4386
|
applyTransform(o, l = !1) {
|
|
4387
|
-
const a =
|
|
4387
|
+
const a = ce();
|
|
4388
4388
|
je(a, o);
|
|
4389
4389
|
for (let u = 0; u < this.path.length; u++) {
|
|
4390
4390
|
const c = this.path[u];
|
|
@@ -4396,14 +4396,14 @@ function sa({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4396
4396
|
return Ke(this.latestValues) && ot(a, this.latestValues), a;
|
|
4397
4397
|
}
|
|
4398
4398
|
removeTransform(o) {
|
|
4399
|
-
const l =
|
|
4399
|
+
const l = ce();
|
|
4400
4400
|
je(l, o);
|
|
4401
4401
|
for (let a = 0; a < this.path.length; a++) {
|
|
4402
4402
|
const u = this.path[a];
|
|
4403
4403
|
if (!u.instance || !Ke(u.latestValues))
|
|
4404
4404
|
continue;
|
|
4405
4405
|
Gn(u.latestValues) && u.updateSnapshot();
|
|
4406
|
-
const c =
|
|
4406
|
+
const c = ce(), f = u.measurePageBox();
|
|
4407
4407
|
je(c, f), ss(l, u.latestValues, u.snapshot ? u.snapshot.layoutBox : void 0, c);
|
|
4408
4408
|
}
|
|
4409
4409
|
return Ke(this.latestValues) && ss(l, this.latestValues), l;
|
|
@@ -4422,7 +4422,7 @@ function sa({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4422
4422
|
this.scroll = void 0, this.layout = void 0, this.snapshot = void 0, this.prevTransformTemplateValue = void 0, this.targetDelta = void 0, this.target = void 0, this.isLayoutDirty = !1;
|
|
4423
4423
|
}
|
|
4424
4424
|
forceRelativeParentToResolveTarget() {
|
|
4425
|
-
this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !==
|
|
4425
|
+
this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== he.timestamp && this.relativeParent.resolveTargetDelta(!0);
|
|
4426
4426
|
}
|
|
4427
4427
|
resolveTargetDelta(o = !1) {
|
|
4428
4428
|
var l;
|
|
@@ -4433,15 +4433,15 @@ function sa({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4433
4433
|
return;
|
|
4434
4434
|
const { layout: f, layoutId: h } = this.options;
|
|
4435
4435
|
if (!(!this.layout || !(f || h))) {
|
|
4436
|
-
if (this.resolvedRelativeTargetAt =
|
|
4436
|
+
if (this.resolvedRelativeTargetAt = he.timestamp, !this.targetDelta && !this.relativeTarget) {
|
|
4437
4437
|
const m = this.getClosestProjectingParent();
|
|
4438
|
-
m && m.layout && this.animationProgress !== 1 ? (this.relativeParent = m, this.forceRelativeParentToResolveTarget(), this.relativeTarget =
|
|
4438
|
+
m && m.layout && this.animationProgress !== 1 ? (this.relativeParent = m, this.forceRelativeParentToResolveTarget(), this.relativeTarget = ce(), this.relativeTargetOrigin = ce(), Rt(this.relativeTargetOrigin, this.layout.layoutBox, m.layout.layoutBox), je(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
4439
4439
|
}
|
|
4440
4440
|
if (!(!this.relativeTarget && !this.targetDelta)) {
|
|
4441
|
-
if (this.target || (this.target =
|
|
4441
|
+
if (this.target || (this.target = ce(), this.targetWithTransforms = ce()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Ku(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (Boolean(this.resumingFrom) ? this.target = this.applyTransform(this.layout.layoutBox) : je(this.target, this.layout.layoutBox), Ho(this.target, this.targetDelta)) : je(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
|
|
4442
4442
|
this.attemptToResolveRelativeTarget = !1;
|
|
4443
4443
|
const m = this.getClosestProjectingParent();
|
|
4444
|
-
m && Boolean(m.resumingFrom) === Boolean(this.resumingFrom) && !m.options.layoutScroll && m.target && this.animationProgress !== 1 ? (this.relativeParent = m, this.forceRelativeParentToResolveTarget(), this.relativeTarget =
|
|
4444
|
+
m && Boolean(m.resumingFrom) === Boolean(this.resumingFrom) && !m.options.layoutScroll && m.target && this.animationProgress !== 1 ? (this.relativeParent = m, this.forceRelativeParentToResolveTarget(), this.relativeTarget = ce(), this.relativeTargetOrigin = ce(), Rt(this.relativeTargetOrigin, this.target, m.target), je(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
4445
4445
|
}
|
|
4446
4446
|
Fe.value && Ge.calculatedTargetDeltas++;
|
|
4447
4447
|
}
|
|
@@ -4458,14 +4458,14 @@ function sa({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4458
4458
|
var o;
|
|
4459
4459
|
const l = this.getLead(), a = Boolean(this.resumingFrom) || this !== l;
|
|
4460
4460
|
let u = !0;
|
|
4461
|
-
if ((this.isProjectionDirty || !((o = this.parent) === null || o === void 0) && o.isProjectionDirty) && (u = !1), a && (this.isSharedProjectionDirty || this.isTransformDirty) && (u = !1), this.resolvedRelativeTargetAt ===
|
|
4461
|
+
if ((this.isProjectionDirty || !((o = this.parent) === null || o === void 0) && o.isProjectionDirty) && (u = !1), a && (this.isSharedProjectionDirty || this.isTransformDirty) && (u = !1), this.resolvedRelativeTargetAt === he.timestamp && (u = !1), u)
|
|
4462
4462
|
return;
|
|
4463
4463
|
const { layout: c, layoutId: f } = this.options;
|
|
4464
4464
|
if (this.isTreeAnimating = Boolean(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(c || f))
|
|
4465
4465
|
return;
|
|
4466
4466
|
je(this.layoutCorrected, this.layout.layoutBox);
|
|
4467
4467
|
const h = this.treeScale.x, m = this.treeScale.y;
|
|
4468
|
-
Gu(this.layoutCorrected, this.treeScale, this.path, a), l.layout && !l.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (l.target = l.layout.layoutBox, l.targetWithTransforms =
|
|
4468
|
+
Gu(this.layoutCorrected, this.treeScale, this.path, a), l.layout && !l.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (l.target = l.layout.layoutBox, l.targetWithTransforms = ce());
|
|
4469
4469
|
const { target: v } = l;
|
|
4470
4470
|
if (!v) {
|
|
4471
4471
|
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
|
|
@@ -4493,16 +4493,16 @@ function sa({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4493
4493
|
setAnimationOrigin(o, l = !1) {
|
|
4494
4494
|
const a = this.snapshot, u = a ? a.latestValues : {}, c = { ...this.latestValues }, f = it();
|
|
4495
4495
|
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !l;
|
|
4496
|
-
const h =
|
|
4496
|
+
const h = ce(), m = a ? a.source : void 0, v = this.layout ? this.layout.source : void 0, y = m !== v, w = this.getStack(), x = !w || w.members.length <= 1, S = Boolean(y && !x && this.options.crossfade === !0 && !this.path.some(Uf));
|
|
4497
4497
|
this.animationProgress = 0;
|
|
4498
4498
|
let P;
|
|
4499
4499
|
this.mixTargetDelta = (O) => {
|
|
4500
4500
|
const g = O / 1e3;
|
|
4501
|
-
ps(f.x, o.x, g), ps(f.y, o.y, g), this.setTargetDelta(f), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Rt(h, this.layout.layoutBox, this.relativeParent.layout.layoutBox), $f(this.relativeTarget, this.relativeTargetOrigin, h, g), P && Cf(this.relativeTarget, P) && (this.isProjectionDirty = !1), P || (P =
|
|
4501
|
+
ps(f.x, o.x, g), ps(f.y, o.y, g), this.setTargetDelta(f), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Rt(h, this.layout.layoutBox, this.relativeParent.layout.layoutBox), $f(this.relativeTarget, this.relativeTargetOrigin, h, g), P && Cf(this.relativeTarget, P) && (this.isProjectionDirty = !1), P || (P = ce()), je(P, this.relativeTarget)), y && (this.animationValues = c, xf(c, u, this.latestValues, g, S, x)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = g;
|
|
4502
4502
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
4503
4503
|
}
|
|
4504
4504
|
startAnimation(o) {
|
|
4505
|
-
this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && ($e(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation =
|
|
4505
|
+
this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && ($e(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = ee.update(() => {
|
|
4506
4506
|
qt.hasAnimatedSinceResize = !0, Pt.layout++, this.currentAnimation = hf(0, fs, {
|
|
4507
4507
|
...o,
|
|
4508
4508
|
onUpdate: (l) => {
|
|
@@ -4530,10 +4530,10 @@ function sa({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4530
4530
|
let { targetWithTransforms: l, target: a, layout: u, latestValues: c } = o;
|
|
4531
4531
|
if (!(!l || !a || !u)) {
|
|
4532
4532
|
if (this !== o && this.layout && u && oa(this.options.animationType, this.layout.layoutBox, u.layoutBox)) {
|
|
4533
|
-
a = this.target ||
|
|
4534
|
-
const f =
|
|
4533
|
+
a = this.target || ce();
|
|
4534
|
+
const f = we(this.layout.layoutBox.x);
|
|
4535
4535
|
a.x.min = o.target.x.min, a.x.max = a.x.min + f;
|
|
4536
|
-
const h =
|
|
4536
|
+
const h = we(this.layout.layoutBox.y);
|
|
4537
4537
|
a.y.min = o.target.y.min, a.y.max = a.y.min + h;
|
|
4538
4538
|
}
|
|
4539
4539
|
je(l, a), ot(l, c), Et(this.projectionDeltaWithTransform, this.layoutCorrected, l, c);
|
|
@@ -4638,16 +4638,16 @@ function sa({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4638
4638
|
function Df(e) {
|
|
4639
4639
|
e.updateLayout();
|
|
4640
4640
|
}
|
|
4641
|
-
function
|
|
4641
|
+
function Vf(e) {
|
|
4642
4642
|
var t;
|
|
4643
4643
|
const n = ((t = e.resumeFrom) === null || t === void 0 ? void 0 : t.snapshot) || e.snapshot;
|
|
4644
4644
|
if (e.isLead() && e.layout && n && e.hasListeners("didUpdate")) {
|
|
4645
4645
|
const { layoutBox: r, measuredBox: i } = e.layout, { animationType: s } = e.options, o = n.source !== e.layout.source;
|
|
4646
4646
|
s === "size" ? Ae((f) => {
|
|
4647
|
-
const h = o ? n.measuredBox[f] : n.layoutBox[f], m =
|
|
4647
|
+
const h = o ? n.measuredBox[f] : n.layoutBox[f], m = we(h);
|
|
4648
4648
|
h.min = r[f].min, h.max = h.min + m;
|
|
4649
4649
|
}) : oa(s, n.layoutBox, r) && Ae((f) => {
|
|
4650
|
-
const h = o ? n.measuredBox[f] : n.layoutBox[f], m =
|
|
4650
|
+
const h = o ? n.measuredBox[f] : n.layoutBox[f], m = we(r[f]);
|
|
4651
4651
|
h.max = h.min + m, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[f].max = e.relativeTarget[f].min + m);
|
|
4652
4652
|
});
|
|
4653
4653
|
const l = it();
|
|
@@ -4661,9 +4661,9 @@ function Mf(e) {
|
|
|
4661
4661
|
if (f && !f.resumeFrom) {
|
|
4662
4662
|
const { snapshot: h, layout: m } = f;
|
|
4663
4663
|
if (h && m) {
|
|
4664
|
-
const v =
|
|
4664
|
+
const v = ce();
|
|
4665
4665
|
Rt(v, n.layoutBox, h.layoutBox);
|
|
4666
|
-
const y =
|
|
4666
|
+
const y = ce();
|
|
4667
4667
|
Rt(y, r, m.layoutBox), ra(v, y) || (c = !0), f.options.layoutRoot && (e.relativeTarget = y, e.relativeTargetOrigin = v, e.relativeParent = f);
|
|
4668
4668
|
}
|
|
4669
4669
|
}
|
|
@@ -4682,7 +4682,7 @@ function Mf(e) {
|
|
|
4682
4682
|
}
|
|
4683
4683
|
e.options.transition = void 0;
|
|
4684
4684
|
}
|
|
4685
|
-
function
|
|
4685
|
+
function Mf(e) {
|
|
4686
4686
|
Fe.value && Ge.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));
|
|
4687
4687
|
}
|
|
4688
4688
|
function Of(e) {
|
|
@@ -4717,10 +4717,10 @@ function Bf(e) {
|
|
|
4717
4717
|
e.removeLeadSnapshot();
|
|
4718
4718
|
}
|
|
4719
4719
|
function ps(e, t, n) {
|
|
4720
|
-
e.translate =
|
|
4720
|
+
e.translate = se(t.translate, 0, n), e.scale = se(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
|
|
4721
4721
|
}
|
|
4722
4722
|
function ms(e, t, n, r) {
|
|
4723
|
-
e.min =
|
|
4723
|
+
e.min = se(t.min, n.min, r), e.max = se(t.max, n.max, r);
|
|
4724
4724
|
}
|
|
4725
4725
|
function $f(e, t, n, r) {
|
|
4726
4726
|
ms(e.x, t.x, n.x, r), ms(e.y, t.y, n.y, r);
|
|
@@ -4784,7 +4784,7 @@ function xs(e, t, n) {
|
|
|
4784
4784
|
const { props: r } = e;
|
|
4785
4785
|
e.animationState && r.whileHover && e.animationState.setActive("whileHover", n === "Start");
|
|
4786
4786
|
const i = "onHover" + n, s = r[i];
|
|
4787
|
-
s &&
|
|
4787
|
+
s && ee.postRender(() => s(t, Ft(t)));
|
|
4788
4788
|
}
|
|
4789
4789
|
class qf extends We {
|
|
4790
4790
|
mount() {
|
|
@@ -4822,7 +4822,7 @@ function bs(e, t, n) {
|
|
|
4822
4822
|
return;
|
|
4823
4823
|
e.animationState && r.whileTap && e.animationState.setActive("whileTap", n === "Start");
|
|
4824
4824
|
const i = "onTap" + (n === "End" ? "" : n), s = r[i];
|
|
4825
|
-
s &&
|
|
4825
|
+
s && ee.postRender(() => s(t, Ft(t)));
|
|
4826
4826
|
}
|
|
4827
4827
|
class Xf extends We {
|
|
4828
4828
|
mount() {
|
|
@@ -4916,21 +4916,21 @@ function od() {
|
|
|
4916
4916
|
} else
|
|
4917
4917
|
Zn.current = !1;
|
|
4918
4918
|
}
|
|
4919
|
-
const ad = [...Oo,
|
|
4919
|
+
const ad = [...Oo, me, Ue], ld = (e) => ad.find(Mo(e)), cd = /* @__PURE__ */ new WeakMap();
|
|
4920
4920
|
function ud(e, t, n) {
|
|
4921
4921
|
for (const r in t) {
|
|
4922
4922
|
const i = t[r], s = n[r];
|
|
4923
|
-
if (
|
|
4923
|
+
if (xe(i))
|
|
4924
4924
|
e.addValue(r, i), process.env.NODE_ENV === "development" && sn(i.version === "12.4.7", `Attempting to mix Motion versions ${i.version} with 12.4.7 may not work as expected.`);
|
|
4925
|
-
else if (
|
|
4926
|
-
e.addValue(r,
|
|
4925
|
+
else if (xe(s))
|
|
4926
|
+
e.addValue(r, Mt(i, { owner: e }));
|
|
4927
4927
|
else if (s !== i)
|
|
4928
4928
|
if (e.hasValue(r)) {
|
|
4929
4929
|
const o = e.getValue(r);
|
|
4930
4930
|
o.liveStyle === !0 ? o.jump(i) : o.hasAnimated || o.set(i);
|
|
4931
4931
|
} else {
|
|
4932
4932
|
const o = e.getStaticValue(r);
|
|
4933
|
-
e.addValue(r,
|
|
4933
|
+
e.addValue(r, Mt(o !== void 0 ? o : i, { owner: e }));
|
|
4934
4934
|
}
|
|
4935
4935
|
}
|
|
4936
4936
|
for (const r in n)
|
|
@@ -4955,14 +4955,14 @@ class fd {
|
|
|
4955
4955
|
this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
|
|
4956
4956
|
}, this.renderScheduledAt = 0, this.scheduleRender = () => {
|
|
4957
4957
|
const m = Oe.now();
|
|
4958
|
-
this.renderScheduledAt < m && (this.renderScheduledAt = m,
|
|
4958
|
+
this.renderScheduledAt < m && (this.renderScheduledAt = m, ee.render(this.render, !1, !0));
|
|
4959
4959
|
};
|
|
4960
4960
|
const { latestValues: a, renderState: u, onUpdate: c } = o;
|
|
4961
4961
|
this.onUpdate = c, this.latestValues = a, this.baseTarget = { ...a }, this.initialValues = n.initial ? { ...a } : {}, this.renderState = u, this.parent = t, this.props = n, this.presenceContext = r, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = i, this.options = l, this.blockInitialAnimation = Boolean(s), this.isControllingVariants = ln(n), this.isVariantNode = $s(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = Boolean(t && t.current);
|
|
4962
4962
|
const { willChange: f, ...h } = this.scrapeMotionValuesFromProps(n, {}, this);
|
|
4963
4963
|
for (const m in h) {
|
|
4964
4964
|
const v = h[m];
|
|
4965
|
-
a[m] !== void 0 &&
|
|
4965
|
+
a[m] !== void 0 && xe(v) && v.set(a[m], !1);
|
|
4966
4966
|
}
|
|
4967
4967
|
}
|
|
4968
4968
|
mount(t) {
|
|
@@ -4983,7 +4983,7 @@ class fd {
|
|
|
4983
4983
|
const r = Ze.has(t);
|
|
4984
4984
|
r && this.onBindTransform && this.onBindTransform();
|
|
4985
4985
|
const i = n.on("change", (l) => {
|
|
4986
|
-
this.latestValues[t] = l, this.props.onUpdate &&
|
|
4986
|
+
this.latestValues[t] = l, this.props.onUpdate && ee.preRender(this.notifyUpdate), r && this.projection && (this.projection.isTransformDirty = !0);
|
|
4987
4987
|
}), s = n.on("renderRequest", this.scheduleRender);
|
|
4988
4988
|
let o;
|
|
4989
4989
|
window.MotionCheckAppearSync && (o = window.MotionCheckAppearSync(this, t, n)), this.valueSubscriptions.set(t, () => {
|
|
@@ -5010,7 +5010,7 @@ class fd {
|
|
|
5010
5010
|
this.build(this.renderState, this.latestValues, this.props);
|
|
5011
5011
|
}
|
|
5012
5012
|
measureViewportBox() {
|
|
5013
|
-
return this.current ? this.measureInstanceViewportBox(this.current, this.props) :
|
|
5013
|
+
return this.current ? this.measureInstanceViewportBox(this.current, this.props) : ce();
|
|
5014
5014
|
}
|
|
5015
5015
|
getStaticValue(t) {
|
|
5016
5016
|
return this.latestValues[t];
|
|
@@ -5064,12 +5064,12 @@ class fd {
|
|
|
5064
5064
|
if (this.props.values && this.props.values[t])
|
|
5065
5065
|
return this.props.values[t];
|
|
5066
5066
|
let r = this.values.get(t);
|
|
5067
|
-
return r === void 0 && n !== void 0 && (r =
|
|
5067
|
+
return r === void 0 && n !== void 0 && (r = Mt(n === null ? void 0 : n, { owner: this }), this.addValue(t, r)), r;
|
|
5068
5068
|
}
|
|
5069
5069
|
readValue(t, n) {
|
|
5070
5070
|
var r;
|
|
5071
5071
|
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);
|
|
5072
|
-
return i != null && (typeof i == "string" && (Do(i) || To(i)) ? i = parseFloat(i) : !ld(i) && Ue.test(n) && (i = Ro(t, n)), this.setBaseTarget(t,
|
|
5072
|
+
return i != null && (typeof i == "string" && (Do(i) || To(i)) ? i = parseFloat(i) : !ld(i) && Ue.test(n) && (i = Ro(t, n)), this.setBaseTarget(t, xe(i) ? i.get() : i)), xe(i) ? i.get() : i;
|
|
5073
5073
|
}
|
|
5074
5074
|
setBaseTarget(t, n) {
|
|
5075
5075
|
this.baseTarget[t] = n;
|
|
@@ -5085,7 +5085,7 @@ class fd {
|
|
|
5085
5085
|
if (r && i !== void 0)
|
|
5086
5086
|
return i;
|
|
5087
5087
|
const s = this.getBaseTargetFromProps(this.props, t);
|
|
5088
|
-
return s !== void 0 && !
|
|
5088
|
+
return s !== void 0 && !xe(s) ? s : this.initialValues[t] !== void 0 && i === void 0 ? void 0 : this.baseTarget[t];
|
|
5089
5089
|
}
|
|
5090
5090
|
on(t, n) {
|
|
5091
5091
|
return this.events[t] || (this.events[t] = new Ar()), this.events[t].add(n);
|
|
@@ -5110,7 +5110,7 @@ class ca extends fd {
|
|
|
5110
5110
|
handleChildMotionValue() {
|
|
5111
5111
|
this.childSubscription && (this.childSubscription(), delete this.childSubscription);
|
|
5112
5112
|
const { children: t } = this.props;
|
|
5113
|
-
|
|
5113
|
+
xe(t) && (this.childSubscription = t.on("change", (n) => {
|
|
5114
5114
|
this.current && (this.current.textContent = `${n}`);
|
|
5115
5115
|
}));
|
|
5116
5116
|
}
|
|
@@ -5143,7 +5143,7 @@ class hd extends ca {
|
|
|
5143
5143
|
}
|
|
5144
5144
|
class pd extends ca {
|
|
5145
5145
|
constructor() {
|
|
5146
|
-
super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox =
|
|
5146
|
+
super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = ce, this.updateDimensions = () => {
|
|
5147
5147
|
this.current && !this.renderState.dimensions && Zs(this.current, this.renderState);
|
|
5148
5148
|
};
|
|
5149
5149
|
}
|
|
@@ -5161,7 +5161,7 @@ class pd extends ca {
|
|
|
5161
5161
|
return to(t, n, r);
|
|
5162
5162
|
}
|
|
5163
5163
|
onBindTransform() {
|
|
5164
|
-
this.current && !this.renderState.dimensions &&
|
|
5164
|
+
this.current && !this.renderState.dimensions && ee.postRender(this.updateDimensions);
|
|
5165
5165
|
}
|
|
5166
5166
|
build(t, n, r) {
|
|
5167
5167
|
xr(t, n, this.isSVGTag, r.transformTemplate);
|
|
@@ -5266,7 +5266,7 @@ const md = (e, t) => vr(e) ? new pd(t) : new hd(t, {
|
|
|
5266
5266
|
messageId: r,
|
|
5267
5267
|
isCurrentUserMessage: i
|
|
5268
5268
|
}) => {
|
|
5269
|
-
const s =
|
|
5269
|
+
const s = ye(null), [o, l] = ge(!1);
|
|
5270
5270
|
return ft(() => (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)), l(!0), () => {
|
|
5271
5271
|
s.current && !t && (document.body.removeChild(s.current), s.current = null);
|
|
5272
5272
|
}), [t]), !s.current || !o ? null : Ba.createPortal(
|
|
@@ -5394,31 +5394,31 @@ const md = (e, t) => vr(e) ? new pd(t) : new hd(t, {
|
|
|
5394
5394
|
messageToEdit: l,
|
|
5395
5395
|
setMessageToEdit: a
|
|
5396
5396
|
}) => {
|
|
5397
|
-
const [u, c] =
|
|
5398
|
-
const
|
|
5399
|
-
console.log("Input",
|
|
5397
|
+
const [u, c] = ge(""), [f, h] = ge(!1), [m, v] = ge(0), [y, w] = ge(null), [x, S] = ge(null), [P, O] = ge(0), g = ye(null), M = ye([]), z = ye(null), R = ye(null), X = ye(null), [I, K] = ge(!1), ne = (D) => {
|
|
5398
|
+
const C = D.target.value;
|
|
5399
|
+
console.log("Input", C), l ? a((L) => L ? new wt({
|
|
5400
5400
|
...L,
|
|
5401
|
-
text:
|
|
5401
|
+
text: C,
|
|
5402
5402
|
isEdited: !0
|
|
5403
|
-
}) : void 0) : c(
|
|
5404
|
-
const
|
|
5405
|
-
|
|
5406
|
-
},
|
|
5403
|
+
}) : void 0) : c(C);
|
|
5404
|
+
const V = C.match(/(\S+)$/);
|
|
5405
|
+
te(V);
|
|
5406
|
+
}, te = (D) => {
|
|
5407
5407
|
if (D) {
|
|
5408
|
-
const
|
|
5408
|
+
const C = D[0];
|
|
5409
5409
|
if (y) {
|
|
5410
|
-
const
|
|
5411
|
-
S(
|
|
5410
|
+
const V = D[0].split(y)[1];
|
|
5411
|
+
S(V);
|
|
5412
5412
|
}
|
|
5413
|
-
o != null && o.some((
|
|
5413
|
+
o != null && o.some((V) => V.symbol === C) && w(C);
|
|
5414
5414
|
} else
|
|
5415
5415
|
w(null);
|
|
5416
|
-
},
|
|
5417
|
-
l ? a((
|
|
5418
|
-
...
|
|
5419
|
-
text:
|
|
5420
|
-
}) : void 0) : c((
|
|
5421
|
-
},
|
|
5416
|
+
}, re = (D, C) => {
|
|
5417
|
+
l ? a((V) => V ? new wt({
|
|
5418
|
+
...V,
|
|
5419
|
+
text: V.text + C + " "
|
|
5420
|
+
}) : void 0) : c((V) => V + C + " "), w(null), R.current.focus();
|
|
5421
|
+
}, fe = () => {
|
|
5422
5422
|
if (l) {
|
|
5423
5423
|
if (l.text.trim() === "")
|
|
5424
5424
|
return;
|
|
@@ -5429,35 +5429,35 @@ const md = (e, t) => vr(e) ? new pd(t) : new hd(t, {
|
|
|
5429
5429
|
e(u), c("");
|
|
5430
5430
|
}
|
|
5431
5431
|
w(null);
|
|
5432
|
-
},
|
|
5433
|
-
h(!0), v(0),
|
|
5434
|
-
v((
|
|
5432
|
+
}, U = async () => {
|
|
5433
|
+
h(!0), v(0), M.current = [], z.current = setInterval(() => {
|
|
5434
|
+
v((V) => V + 1);
|
|
5435
5435
|
}, 1e3);
|
|
5436
|
-
const D = await navigator.mediaDevices.getUserMedia({ audio: !0 }),
|
|
5437
|
-
g.current =
|
|
5438
|
-
|
|
5439
|
-
},
|
|
5436
|
+
const D = await navigator.mediaDevices.getUserMedia({ audio: !0 }), C = new MediaRecorder(D);
|
|
5437
|
+
g.current = C, C.ondataavailable = (V) => {
|
|
5438
|
+
V.data.size > 0 && M.current.push(V.data);
|
|
5439
|
+
}, C.onstop = () => {
|
|
5440
5440
|
clearInterval(z.current);
|
|
5441
|
-
const
|
|
5442
|
-
n(
|
|
5443
|
-
},
|
|
5444
|
-
},
|
|
5441
|
+
const V = new Blob(M.current, { type: "audio/mp3" });
|
|
5442
|
+
n(V), h(!1);
|
|
5443
|
+
}, C.start();
|
|
5444
|
+
}, q = () => {
|
|
5445
5445
|
var D;
|
|
5446
5446
|
(D = g.current) == null || D.stop();
|
|
5447
|
-
},
|
|
5448
|
-
const { scrollTop:
|
|
5449
|
-
if (
|
|
5450
|
-
if (
|
|
5447
|
+
}, oe = (D) => {
|
|
5448
|
+
const { scrollTop: C, scrollHeight: V, clientHeight: L } = D.currentTarget;
|
|
5449
|
+
if (C > P) {
|
|
5450
|
+
if (C + L >= V - 1) {
|
|
5451
5451
|
const _ = o == null ? void 0 : o.find(
|
|
5452
5452
|
(W) => W.symbol === y
|
|
5453
5453
|
);
|
|
5454
|
-
_ && (_ != null && _.updatePageNumber) && (
|
|
5455
|
-
|
|
5454
|
+
_ && (_ != null && _.updatePageNumber) && (K(!0), _ == null || _.updatePageNumber(_.pagNumber + 1), O(C), setTimeout(() => {
|
|
5455
|
+
K(!1);
|
|
5456
5456
|
}, 500));
|
|
5457
5457
|
}
|
|
5458
5458
|
} else
|
|
5459
|
-
O(
|
|
5460
|
-
},
|
|
5459
|
+
O(C);
|
|
5460
|
+
}, Se = /* @__PURE__ */ new Set([
|
|
5461
5461
|
"jpeg",
|
|
5462
5462
|
"png",
|
|
5463
5463
|
"gif",
|
|
@@ -5476,20 +5476,20 @@ const md = (e, t) => vr(e) ? new pd(t) : new hd(t, {
|
|
|
5476
5476
|
"x-ms-wmv",
|
|
5477
5477
|
"3gpp",
|
|
5478
5478
|
"3gpp2"
|
|
5479
|
-
]),
|
|
5479
|
+
]), A = () => {
|
|
5480
5480
|
var D;
|
|
5481
|
-
(D =
|
|
5482
|
-
},
|
|
5481
|
+
(D = X.current) == null || D.click();
|
|
5482
|
+
}, B = (D) => {
|
|
5483
5483
|
var L, k;
|
|
5484
|
-
const
|
|
5485
|
-
if (!
|
|
5484
|
+
const C = (L = D.target.files) == null ? void 0 : L[0];
|
|
5485
|
+
if (!C)
|
|
5486
5486
|
return;
|
|
5487
|
-
let
|
|
5488
|
-
if (
|
|
5489
|
-
const _ =
|
|
5490
|
-
_.length === 2 && (
|
|
5487
|
+
let V = "";
|
|
5488
|
+
if (C.type) {
|
|
5489
|
+
const _ = C.type.split("/");
|
|
5490
|
+
_.length === 2 && (V = _[1]);
|
|
5491
5491
|
}
|
|
5492
|
-
|
|
5492
|
+
V || (V = ((k = C.name.split(".").pop()) == null ? void 0 : k.toLowerCase()) || ""), Se.has(V) ? r(C) : b.has(V) ? i(C) : s(C);
|
|
5493
5493
|
};
|
|
5494
5494
|
return /* @__PURE__ */ p.exports.jsxs("div", { className: "absolute bottom-0 w-full flex items-center p-2 pr-4 z-10", children: [
|
|
5495
5495
|
f ? /* @__PURE__ */ p.exports.jsxs("div", { className: "w-full flex justify-between items-center bg-white p-2 pl-4 h-11 rounded-3xl ", children: [
|
|
@@ -5498,7 +5498,7 @@ const md = (e, t) => vr(e) ? new pd(t) : new hd(t, {
|
|
|
5498
5498
|
"button",
|
|
5499
5499
|
{
|
|
5500
5500
|
className: "cursor-pointer p-2 flex justify-center items-center bg-green-500 text-white rounded-full",
|
|
5501
|
-
onClick:
|
|
5501
|
+
onClick: q,
|
|
5502
5502
|
children: /* @__PURE__ */ p.exports.jsx(jn, {})
|
|
5503
5503
|
}
|
|
5504
5504
|
)
|
|
@@ -5519,13 +5519,13 @@ const md = (e, t) => vr(e) ? new pd(t) : new hd(t, {
|
|
|
5519
5519
|
"input",
|
|
5520
5520
|
{
|
|
5521
5521
|
type: "text",
|
|
5522
|
-
ref:
|
|
5522
|
+
ref: R,
|
|
5523
5523
|
className: "w-full bg-white flex-1 p-2 pl-4 border border-gray-300 outline-none rounded-bl-3xl ",
|
|
5524
5524
|
placeholder: "Type a message...",
|
|
5525
5525
|
value: l.text,
|
|
5526
|
-
onChange:
|
|
5526
|
+
onChange: ne,
|
|
5527
5527
|
onKeyDown: (D) => {
|
|
5528
|
-
D.key === "Enter" && !D.shiftKey && (D.preventDefault(),
|
|
5528
|
+
D.key === "Enter" && !D.shiftKey && (D.preventDefault(), fe());
|
|
5529
5529
|
}
|
|
5530
5530
|
}
|
|
5531
5531
|
),
|
|
@@ -5535,7 +5535,7 @@ const md = (e, t) => vr(e) ? new pd(t) : new hd(t, {
|
|
|
5535
5535
|
"button",
|
|
5536
5536
|
{
|
|
5537
5537
|
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",
|
|
5538
|
-
onClick:
|
|
5538
|
+
onClick: fe,
|
|
5539
5539
|
children: /* @__PURE__ */ p.exports.jsx(jn, {})
|
|
5540
5540
|
}
|
|
5541
5541
|
)
|
|
@@ -5544,7 +5544,7 @@ const md = (e, t) => vr(e) ? new pd(t) : new hd(t, {
|
|
|
5544
5544
|
/* @__PURE__ */ p.exports.jsx(
|
|
5545
5545
|
"div",
|
|
5546
5546
|
{
|
|
5547
|
-
onClick:
|
|
5547
|
+
onClick: A,
|
|
5548
5548
|
className: "cursor-pointer absolute right-4 top-[11px]",
|
|
5549
5549
|
children: /* @__PURE__ */ p.exports.jsx(bd, {})
|
|
5550
5550
|
}
|
|
@@ -5553,22 +5553,22 @@ const md = (e, t) => vr(e) ? new pd(t) : new hd(t, {
|
|
|
5553
5553
|
"input",
|
|
5554
5554
|
{
|
|
5555
5555
|
type: "file",
|
|
5556
|
-
ref:
|
|
5556
|
+
ref: X,
|
|
5557
5557
|
style: { display: "none" },
|
|
5558
|
-
onChange:
|
|
5558
|
+
onChange: B
|
|
5559
5559
|
}
|
|
5560
5560
|
),
|
|
5561
5561
|
/* @__PURE__ */ p.exports.jsx(
|
|
5562
5562
|
"input",
|
|
5563
5563
|
{
|
|
5564
5564
|
type: "text",
|
|
5565
|
-
ref:
|
|
5565
|
+
ref: R,
|
|
5566
5566
|
className: "w-full bg-white flex-1 p-2 pr-10 pl-4 border border-gray-300 outline-none rounded-tl-3xl rounded-tr-2xl rounded-bl-3xl ",
|
|
5567
5567
|
placeholder: "Type a message...",
|
|
5568
5568
|
value: u,
|
|
5569
|
-
onChange:
|
|
5569
|
+
onChange: ne,
|
|
5570
5570
|
onKeyDown: (D) => {
|
|
5571
|
-
D.key === "Enter" && !D.shiftKey && (D.preventDefault(),
|
|
5571
|
+
D.key === "Enter" && !D.shiftKey && (D.preventDefault(), fe());
|
|
5572
5572
|
}
|
|
5573
5573
|
}
|
|
5574
5574
|
),
|
|
@@ -5578,7 +5578,7 @@ const md = (e, t) => vr(e) ? new pd(t) : new hd(t, {
|
|
|
5578
5578
|
"button",
|
|
5579
5579
|
{
|
|
5580
5580
|
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",
|
|
5581
|
-
onClick: u ?
|
|
5581
|
+
onClick: u ? fe : U,
|
|
5582
5582
|
children: u ? /* @__PURE__ */ p.exports.jsx(jn, {}) : /* @__PURE__ */ p.exports.jsx(Td, {})
|
|
5583
5583
|
}
|
|
5584
5584
|
)
|
|
@@ -5587,7 +5587,7 @@ const md = (e, t) => vr(e) ? new pd(t) : new hd(t, {
|
|
|
5587
5587
|
"div",
|
|
5588
5588
|
{
|
|
5589
5589
|
className: "absolute bottom-full left-0 w-full bg-white shadow-xl rounded-lg border border-gray-200 p-4 z-50 max-h-60 overflow-y-auto",
|
|
5590
|
-
onScroll:
|
|
5590
|
+
onScroll: oe,
|
|
5591
5591
|
children: [
|
|
5592
5592
|
/* @__PURE__ */ p.exports.jsxs("div", { className: "flex justify-between items-center border-b pb-2 mb-2", children: [
|
|
5593
5593
|
/* @__PURE__ */ p.exports.jsxs("h3", { className: "text-lg font-semibold text-gray-800", children: [
|
|
@@ -5607,43 +5607,43 @@ const md = (e, t) => vr(e) ? new pd(t) : new hd(t, {
|
|
|
5607
5607
|
/* @__PURE__ */ p.exports.jsxs("div", { className: "space-y-2", children: [
|
|
5608
5608
|
o ? o.filter((D) => D.symbol === y).map((D) => {
|
|
5609
5609
|
var L;
|
|
5610
|
-
const { component:
|
|
5611
|
-
return
|
|
5610
|
+
const { component: C, lists: V } = D;
|
|
5611
|
+
return C ? x ? (L = V == null ? void 0 : V.filter((k) => k == null ? void 0 : k.name.includes(x))) == null ? void 0 : L.map((k, _) => /* @__PURE__ */ p.exports.jsx(
|
|
5612
5612
|
"div",
|
|
5613
5613
|
{
|
|
5614
5614
|
className: "hover:bg-gray-100 rounded-md p-2 cursor-pointer",
|
|
5615
5615
|
children: /* @__PURE__ */ p.exports.jsx(
|
|
5616
|
-
|
|
5616
|
+
C,
|
|
5617
5617
|
{
|
|
5618
5618
|
listsProps: k,
|
|
5619
|
-
onClick: (W, $) =>
|
|
5619
|
+
onClick: (W, $) => re(W, $)
|
|
5620
5620
|
}
|
|
5621
5621
|
)
|
|
5622
5622
|
},
|
|
5623
5623
|
_
|
|
5624
|
-
)) :
|
|
5624
|
+
)) : V == null ? void 0 : V.map((k, _) => /* @__PURE__ */ p.exports.jsx(
|
|
5625
5625
|
"div",
|
|
5626
5626
|
{
|
|
5627
5627
|
className: "hover:bg-gray-100 rounded-md p-2 cursor-pointer",
|
|
5628
5628
|
children: /* @__PURE__ */ p.exports.jsx(
|
|
5629
|
-
|
|
5629
|
+
C,
|
|
5630
5630
|
{
|
|
5631
5631
|
listsProps: k,
|
|
5632
|
-
onClick: (W, $) =>
|
|
5632
|
+
onClick: (W, $) => re(W, $)
|
|
5633
5633
|
}
|
|
5634
5634
|
)
|
|
5635
5635
|
},
|
|
5636
5636
|
_
|
|
5637
5637
|
)) : null;
|
|
5638
5638
|
}) : null,
|
|
5639
|
-
/* @__PURE__ */ p.exports.jsx("div", { className: "h-8", children:
|
|
5639
|
+
/* @__PURE__ */ p.exports.jsx("div", { className: "h-8", children: I && "Loading more items..." })
|
|
5640
5640
|
] })
|
|
5641
5641
|
]
|
|
5642
5642
|
}
|
|
5643
5643
|
)
|
|
5644
5644
|
] });
|
|
5645
5645
|
};
|
|
5646
|
-
var ke = /* @__PURE__ */ ((e) => (e[e.File = 0] = "File", e[e.Voice = 1] = "Voice", e[e.Video = 2] = "Video", e[e.Image = 3] = "Image", e))(ke || {}),
|
|
5646
|
+
var ke = /* @__PURE__ */ ((e) => (e[e.File = 0] = "File", e[e.Voice = 1] = "Voice", e[e.Video = 2] = "Video", e[e.Image = 3] = "Image", e))(ke || {}), ae = /* @__PURE__ */ ((e) => (e[e.Telegram = 0] = "Telegram", e[e.Simple = 1] = "Simple", e))(ae || {});
|
|
5647
5647
|
const ws = ({
|
|
5648
5648
|
fileName: e,
|
|
5649
5649
|
fileSize: t,
|
|
@@ -5682,7 +5682,7 @@ const ws = ({
|
|
|
5682
5682
|
/* @__PURE__ */ p.exports.jsx(
|
|
5683
5683
|
"div",
|
|
5684
5684
|
{
|
|
5685
|
-
className: ` border ${i ===
|
|
5685
|
+
className: ` border ${i === ae.Simple ? " border-white " : i === ae.Telegram ? " border-green-900" : ""} w-14 h-14 mr-3 flex items-center justify-center relative rounded-md p-3`,
|
|
5686
5686
|
children: s()
|
|
5687
5687
|
}
|
|
5688
5688
|
),
|
|
@@ -5692,14 +5692,14 @@ const ws = ({
|
|
|
5692
5692
|
{
|
|
5693
5693
|
href: r,
|
|
5694
5694
|
download: e,
|
|
5695
|
-
className: `${i ===
|
|
5695
|
+
className: `${i === ae.Simple ? "text-white" : i === ae.Telegram ? "text-gray-900" : ""} font-medium hover:underline`,
|
|
5696
5696
|
children: e
|
|
5697
5697
|
}
|
|
5698
5698
|
),
|
|
5699
5699
|
/* @__PURE__ */ p.exports.jsx(
|
|
5700
5700
|
"span",
|
|
5701
5701
|
{
|
|
5702
|
-
className: `${i ===
|
|
5702
|
+
className: `${i === ae.Simple ? "text-gray-800" : i === ae.Telegram ? "text-gray-900" : ""} text-sm`,
|
|
5703
5703
|
children: o(t)
|
|
5704
5704
|
}
|
|
5705
5705
|
)
|
|
@@ -5752,7 +5752,7 @@ const ws = ({
|
|
|
5752
5752
|
);
|
|
5753
5753
|
let xt = null;
|
|
5754
5754
|
const Cd = ({ src: e, className: t }) => {
|
|
5755
|
-
const [n, r] =
|
|
5755
|
+
const [n, r] = ge(!1), [i, s] = ge(0), o = ye(null);
|
|
5756
5756
|
ft(() => {
|
|
5757
5757
|
const a = o.current;
|
|
5758
5758
|
if (!a)
|
|
@@ -5839,7 +5839,7 @@ const Cd = ({ src: e, className: t }) => {
|
|
|
5839
5839
|
exit: { opacity: 0, y: 50 },
|
|
5840
5840
|
transition: { duration: 0.3 },
|
|
5841
5841
|
onContextMenu: (y) => n(y, e),
|
|
5842
|
-
className: `relative ${r ? "w-3/4" : "w-fit max-w-3/4"} flex flex-col gap-1 md:max-w-[400px] p-2 pt-5 rounded-lg ${i ===
|
|
5842
|
+
className: `relative ${r ? "w-3/4" : "w-fit max-w-3/4"} flex flex-col gap-1 md:max-w-[400px] p-2 pt-5 rounded-lg ${i === ae.Simple ? "bg-[#f8fbff]" : i === ae.Telegram ? "bg-blue-200 " : ""} `,
|
|
5843
5843
|
children: [
|
|
5844
5844
|
/* @__PURE__ */ p.exports.jsx(
|
|
5845
5845
|
"span",
|
|
@@ -5856,7 +5856,7 @@ const Cd = ({ src: e, className: t }) => {
|
|
|
5856
5856
|
e.isEdited ? /* @__PURE__ */ p.exports.jsx(
|
|
5857
5857
|
"span",
|
|
5858
5858
|
{
|
|
5859
|
-
className: `text-xs italic ${i ===
|
|
5859
|
+
className: `text-xs italic ${i === ae.Simple ? "text-gray-700" : i === ae.Telegram ? "text-gray-600 " : ""}`,
|
|
5860
5860
|
children: "edited"
|
|
5861
5861
|
}
|
|
5862
5862
|
) : ""
|
|
@@ -5864,7 +5864,7 @@ const Cd = ({ src: e, className: t }) => {
|
|
|
5864
5864
|
/* @__PURE__ */ p.exports.jsx(
|
|
5865
5865
|
tn,
|
|
5866
5866
|
{
|
|
5867
|
-
className: ` ${i ===
|
|
5867
|
+
className: ` ${i === ae.Simple ? "[&>g>path]:fill-[#f8fbff]" : i === ae.Telegram ? "[&>g>path]:fill-blue-200" : ""} -rotate-180 scale-x-[-1] transition-discrete absolute -left-2 bottom-0 `
|
|
5868
5868
|
}
|
|
5869
5869
|
)
|
|
5870
5870
|
]
|
|
@@ -5977,7 +5977,7 @@ const Cd = ({ src: e, className: t }) => {
|
|
|
5977
5977
|
exit: { opacity: 0, y: 50 },
|
|
5978
5978
|
transition: { duration: 0.3 },
|
|
5979
5979
|
onContextMenu: (i) => e(i, n),
|
|
5980
|
-
className: `relative self-end ${t ? "w-3/4" : "max-w-3/4"} flex flex-col justify-center md:max-w-[400px] p-2 rounded-lg ${r ===
|
|
5980
|
+
className: `relative self-end ${t ? "w-3/4" : "max-w-3/4"} flex flex-col justify-center md:max-w-[400px] p-2 rounded-lg ${r === ae.Telegram ? " bg-green-200" : ae.Simple ? " bg-[#4F46E5] text-white" : ""}`,
|
|
5981
5981
|
children: [
|
|
5982
5982
|
t || null,
|
|
5983
5983
|
/* @__PURE__ */ p.exports.jsx("span", { className: "", children: n.text }),
|
|
@@ -5986,13 +5986,13 @@ const Cd = ({ src: e, className: t }) => {
|
|
|
5986
5986
|
n.isSending ? /* @__PURE__ */ p.exports.jsx(ua, { size: 13, color: "text-black" }) : /* @__PURE__ */ p.exports.jsx(
|
|
5987
5987
|
jd,
|
|
5988
5988
|
{
|
|
5989
|
-
className: r ===
|
|
5989
|
+
className: r === ae.Telegram ? " " : ae.Simple ? " [&>path]:fill-white" : ""
|
|
5990
5990
|
}
|
|
5991
5991
|
),
|
|
5992
5992
|
n.isEdited ? /* @__PURE__ */ p.exports.jsx(
|
|
5993
5993
|
"span",
|
|
5994
5994
|
{
|
|
5995
|
-
className: `text-xs italic ${r ===
|
|
5995
|
+
className: `text-xs italic ${r === ae.Simple ? "text-gray-200" : r === ae.Telegram ? "text-gray-600 " : ""}`,
|
|
5996
5996
|
children: "edited"
|
|
5997
5997
|
}
|
|
5998
5998
|
) : ""
|
|
@@ -6000,23 +6000,23 @@ const Cd = ({ src: e, className: t }) => {
|
|
|
6000
6000
|
/* @__PURE__ */ p.exports.jsx(
|
|
6001
6001
|
tn,
|
|
6002
6002
|
{
|
|
6003
|
-
className: `fill-blue-200 rotate-180 absolute -right-2 bottom-0 ${r ===
|
|
6003
|
+
className: `fill-blue-200 rotate-180 absolute -right-2 bottom-0 ${r === ae.Telegram ? "[&>g>path]:fill-green-200" : ae.Simple ? "[&>g>path]:fill-[#4F46E5]" : ""} `
|
|
6004
6004
|
}
|
|
6005
6005
|
)
|
|
6006
6006
|
]
|
|
6007
6007
|
}
|
|
6008
6008
|
);
|
|
6009
|
-
var
|
|
6009
|
+
var de = { exports: {} }, An = { exports: {} }, Z = {};
|
|
6010
6010
|
var Ss;
|
|
6011
6011
|
function Dd() {
|
|
6012
6012
|
if (Ss)
|
|
6013
|
-
return
|
|
6013
|
+
return Z;
|
|
6014
6014
|
Ss = 1;
|
|
6015
6015
|
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, l = e ? Symbol.for("react.context") : 60110, a = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, c = 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, v = e ? Symbol.for("react.lazy") : 60116, y = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, S = e ? Symbol.for("react.scope") : 60119;
|
|
6016
6016
|
function P(g) {
|
|
6017
6017
|
if (typeof g == "object" && g !== null) {
|
|
6018
|
-
var
|
|
6019
|
-
switch (
|
|
6018
|
+
var M = g.$$typeof;
|
|
6019
|
+
switch (M) {
|
|
6020
6020
|
case t:
|
|
6021
6021
|
switch (g = g.type, g) {
|
|
6022
6022
|
case a:
|
|
@@ -6035,59 +6035,59 @@ function Dd() {
|
|
|
6035
6035
|
case o:
|
|
6036
6036
|
return g;
|
|
6037
6037
|
default:
|
|
6038
|
-
return
|
|
6038
|
+
return M;
|
|
6039
6039
|
}
|
|
6040
6040
|
}
|
|
6041
6041
|
case n:
|
|
6042
|
-
return
|
|
6042
|
+
return M;
|
|
6043
6043
|
}
|
|
6044
6044
|
}
|
|
6045
6045
|
}
|
|
6046
6046
|
function O(g) {
|
|
6047
6047
|
return P(g) === u;
|
|
6048
6048
|
}
|
|
6049
|
-
return
|
|
6049
|
+
return Z.AsyncMode = a, Z.ConcurrentMode = u, Z.ContextConsumer = l, Z.ContextProvider = o, Z.Element = t, Z.ForwardRef = c, Z.Fragment = r, Z.Lazy = v, Z.Memo = m, Z.Portal = n, Z.Profiler = s, Z.StrictMode = i, Z.Suspense = f, Z.isAsyncMode = function(g) {
|
|
6050
6050
|
return O(g) || P(g) === a;
|
|
6051
|
-
},
|
|
6051
|
+
}, Z.isConcurrentMode = O, Z.isContextConsumer = function(g) {
|
|
6052
6052
|
return P(g) === l;
|
|
6053
|
-
},
|
|
6053
|
+
}, Z.isContextProvider = function(g) {
|
|
6054
6054
|
return P(g) === o;
|
|
6055
|
-
},
|
|
6055
|
+
}, Z.isElement = function(g) {
|
|
6056
6056
|
return typeof g == "object" && g !== null && g.$$typeof === t;
|
|
6057
|
-
},
|
|
6057
|
+
}, Z.isForwardRef = function(g) {
|
|
6058
6058
|
return P(g) === c;
|
|
6059
|
-
},
|
|
6059
|
+
}, Z.isFragment = function(g) {
|
|
6060
6060
|
return P(g) === r;
|
|
6061
|
-
},
|
|
6061
|
+
}, Z.isLazy = function(g) {
|
|
6062
6062
|
return P(g) === v;
|
|
6063
|
-
},
|
|
6063
|
+
}, Z.isMemo = function(g) {
|
|
6064
6064
|
return P(g) === m;
|
|
6065
|
-
},
|
|
6065
|
+
}, Z.isPortal = function(g) {
|
|
6066
6066
|
return P(g) === n;
|
|
6067
|
-
},
|
|
6067
|
+
}, Z.isProfiler = function(g) {
|
|
6068
6068
|
return P(g) === s;
|
|
6069
|
-
},
|
|
6069
|
+
}, Z.isStrictMode = function(g) {
|
|
6070
6070
|
return P(g) === i;
|
|
6071
|
-
},
|
|
6071
|
+
}, Z.isSuspense = function(g) {
|
|
6072
6072
|
return P(g) === f;
|
|
6073
|
-
},
|
|
6073
|
+
}, Z.isValidElementType = function(g) {
|
|
6074
6074
|
return typeof g == "string" || typeof g == "function" || g === r || g === u || g === s || g === i || g === f || g === h || typeof g == "object" && g !== null && (g.$$typeof === v || g.$$typeof === m || g.$$typeof === o || g.$$typeof === l || g.$$typeof === c || g.$$typeof === w || g.$$typeof === x || g.$$typeof === S || g.$$typeof === y);
|
|
6075
|
-
},
|
|
6075
|
+
}, Z.typeOf = P, Z;
|
|
6076
6076
|
}
|
|
6077
|
-
var
|
|
6077
|
+
var J = {};
|
|
6078
6078
|
var Ps;
|
|
6079
|
-
function
|
|
6079
|
+
function Vd() {
|
|
6080
6080
|
return Ps || (Ps = 1, process.env.NODE_ENV !== "production" && function() {
|
|
6081
6081
|
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, l = e ? Symbol.for("react.context") : 60110, a = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, c = 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, v = e ? Symbol.for("react.lazy") : 60116, y = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, S = e ? Symbol.for("react.scope") : 60119;
|
|
6082
|
-
function P(
|
|
6083
|
-
return typeof
|
|
6082
|
+
function P(j) {
|
|
6083
|
+
return typeof j == "string" || typeof j == "function" || j === r || j === u || j === s || j === i || j === f || j === h || typeof j == "object" && j !== null && (j.$$typeof === v || j.$$typeof === m || j.$$typeof === o || j.$$typeof === l || j.$$typeof === c || j.$$typeof === w || j.$$typeof === x || j.$$typeof === S || j.$$typeof === y);
|
|
6084
6084
|
}
|
|
6085
|
-
function O(
|
|
6086
|
-
if (typeof
|
|
6087
|
-
var Ee =
|
|
6085
|
+
function O(j) {
|
|
6086
|
+
if (typeof j == "object" && j !== null) {
|
|
6087
|
+
var Ee = j.$$typeof;
|
|
6088
6088
|
switch (Ee) {
|
|
6089
6089
|
case t:
|
|
6090
|
-
var Je =
|
|
6090
|
+
var Je = j.type;
|
|
6091
6091
|
switch (Je) {
|
|
6092
6092
|
case a:
|
|
6093
6093
|
case u:
|
|
@@ -6114,57 +6114,57 @@ function Md() {
|
|
|
6114
6114
|
}
|
|
6115
6115
|
}
|
|
6116
6116
|
}
|
|
6117
|
-
var g = a,
|
|
6118
|
-
function
|
|
6119
|
-
return
|
|
6117
|
+
var g = a, M = u, z = l, R = o, X = t, I = c, K = r, ne = v, te = m, re = n, fe = s, U = i, q = f, oe = !1;
|
|
6118
|
+
function Se(j) {
|
|
6119
|
+
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.")), b(j) || O(j) === a;
|
|
6120
6120
|
}
|
|
6121
|
-
function b(
|
|
6122
|
-
return O(
|
|
6121
|
+
function b(j) {
|
|
6122
|
+
return O(j) === u;
|
|
6123
6123
|
}
|
|
6124
|
-
function
|
|
6125
|
-
return O(
|
|
6124
|
+
function A(j) {
|
|
6125
|
+
return O(j) === l;
|
|
6126
6126
|
}
|
|
6127
|
-
function
|
|
6128
|
-
return O(
|
|
6127
|
+
function B(j) {
|
|
6128
|
+
return O(j) === o;
|
|
6129
6129
|
}
|
|
6130
|
-
function D(
|
|
6131
|
-
return typeof
|
|
6130
|
+
function D(j) {
|
|
6131
|
+
return typeof j == "object" && j !== null && j.$$typeof === t;
|
|
6132
6132
|
}
|
|
6133
|
-
function
|
|
6134
|
-
return O(
|
|
6133
|
+
function C(j) {
|
|
6134
|
+
return O(j) === c;
|
|
6135
6135
|
}
|
|
6136
|
-
function
|
|
6137
|
-
return O(
|
|
6136
|
+
function V(j) {
|
|
6137
|
+
return O(j) === r;
|
|
6138
6138
|
}
|
|
6139
|
-
function L(
|
|
6140
|
-
return O(
|
|
6139
|
+
function L(j) {
|
|
6140
|
+
return O(j) === v;
|
|
6141
6141
|
}
|
|
6142
|
-
function k(
|
|
6143
|
-
return O(
|
|
6142
|
+
function k(j) {
|
|
6143
|
+
return O(j) === m;
|
|
6144
6144
|
}
|
|
6145
|
-
function _(
|
|
6146
|
-
return O(
|
|
6145
|
+
function _(j) {
|
|
6146
|
+
return O(j) === n;
|
|
6147
6147
|
}
|
|
6148
|
-
function W(
|
|
6149
|
-
return O(
|
|
6148
|
+
function W(j) {
|
|
6149
|
+
return O(j) === s;
|
|
6150
6150
|
}
|
|
6151
|
-
function $(
|
|
6152
|
-
return O(
|
|
6151
|
+
function $(j) {
|
|
6152
|
+
return O(j) === i;
|
|
6153
6153
|
}
|
|
6154
|
-
function
|
|
6155
|
-
return O(
|
|
6154
|
+
function pe(j) {
|
|
6155
|
+
return O(j) === f;
|
|
6156
6156
|
}
|
|
6157
|
-
|
|
6158
|
-
}()),
|
|
6157
|
+
J.AsyncMode = g, J.ConcurrentMode = M, J.ContextConsumer = z, J.ContextProvider = R, J.Element = X, J.ForwardRef = I, J.Fragment = K, J.Lazy = ne, J.Memo = te, J.Portal = re, J.Profiler = fe, J.StrictMode = U, J.Suspense = q, J.isAsyncMode = Se, J.isConcurrentMode = b, J.isContextConsumer = A, J.isContextProvider = B, J.isElement = D, J.isForwardRef = C, J.isFragment = V, J.isLazy = L, J.isMemo = k, J.isPortal = _, J.isProfiler = W, J.isStrictMode = $, J.isSuspense = pe, J.isValidElementType = P, J.typeOf = O;
|
|
6158
|
+
}()), J;
|
|
6159
6159
|
}
|
|
6160
6160
|
var Cs;
|
|
6161
6161
|
function fa() {
|
|
6162
6162
|
return Cs || (Cs = 1, function(e) {
|
|
6163
|
-
process.env.NODE_ENV === "production" ? e.exports = Dd() : e.exports =
|
|
6163
|
+
process.env.NODE_ENV === "production" ? e.exports = Dd() : e.exports = Vd();
|
|
6164
6164
|
}(An)), An.exports;
|
|
6165
6165
|
}
|
|
6166
6166
|
var Dn, Es;
|
|
6167
|
-
function
|
|
6167
|
+
function Md() {
|
|
6168
6168
|
if (Es)
|
|
6169
6169
|
return Dn;
|
|
6170
6170
|
Es = 1;
|
|
@@ -6210,17 +6210,17 @@ function Vd() {
|
|
|
6210
6210
|
return a;
|
|
6211
6211
|
}, Dn;
|
|
6212
6212
|
}
|
|
6213
|
-
var
|
|
6213
|
+
var Vn, Rs;
|
|
6214
6214
|
function Br() {
|
|
6215
6215
|
if (Rs)
|
|
6216
|
-
return
|
|
6216
|
+
return Vn;
|
|
6217
6217
|
Rs = 1;
|
|
6218
6218
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
6219
|
-
return
|
|
6219
|
+
return Vn = e, Vn;
|
|
6220
6220
|
}
|
|
6221
|
-
var
|
|
6221
|
+
var Mn, js;
|
|
6222
6222
|
function da() {
|
|
6223
|
-
return js || (js = 1,
|
|
6223
|
+
return js || (js = 1, Mn = Function.call.bind(Object.prototype.hasOwnProperty)), Mn;
|
|
6224
6224
|
}
|
|
6225
6225
|
var On, As;
|
|
6226
6226
|
function Od() {
|
|
@@ -6277,7 +6277,7 @@ function Ld() {
|
|
|
6277
6277
|
if (Ds)
|
|
6278
6278
|
return Ln;
|
|
6279
6279
|
Ds = 1;
|
|
6280
|
-
var e = fa(), t =
|
|
6280
|
+
var e = fa(), t = Md(), n = Br(), r = da(), i = Od(), s = function() {
|
|
6281
6281
|
};
|
|
6282
6282
|
process.env.NODE_ENV !== "production" && (s = function(l) {
|
|
6283
6283
|
var a = "Warning: " + l;
|
|
@@ -6293,9 +6293,9 @@ function Ld() {
|
|
|
6293
6293
|
return Ln = function(l, a) {
|
|
6294
6294
|
var u = typeof Symbol == "function" && Symbol.iterator, c = "@@iterator";
|
|
6295
6295
|
function f(b) {
|
|
6296
|
-
var
|
|
6297
|
-
if (typeof
|
|
6298
|
-
return
|
|
6296
|
+
var A = b && (u && b[u] || b[c]);
|
|
6297
|
+
if (typeof A == "function")
|
|
6298
|
+
return A;
|
|
6299
6299
|
}
|
|
6300
6300
|
var h = "<<anonymous>>", m = {
|
|
6301
6301
|
array: x("array"),
|
|
@@ -6310,218 +6310,218 @@ function Ld() {
|
|
|
6310
6310
|
arrayOf: P,
|
|
6311
6311
|
element: O(),
|
|
6312
6312
|
elementType: g(),
|
|
6313
|
-
instanceOf:
|
|
6314
|
-
node:
|
|
6315
|
-
objectOf:
|
|
6313
|
+
instanceOf: M,
|
|
6314
|
+
node: I(),
|
|
6315
|
+
objectOf: R,
|
|
6316
6316
|
oneOf: z,
|
|
6317
|
-
oneOfType:
|
|
6318
|
-
shape:
|
|
6319
|
-
exact:
|
|
6317
|
+
oneOfType: X,
|
|
6318
|
+
shape: ne,
|
|
6319
|
+
exact: te
|
|
6320
6320
|
};
|
|
6321
|
-
function v(b,
|
|
6322
|
-
return b ===
|
|
6321
|
+
function v(b, A) {
|
|
6322
|
+
return b === A ? b !== 0 || 1 / b === 1 / A : b !== b && A !== A;
|
|
6323
6323
|
}
|
|
6324
|
-
function y(b,
|
|
6325
|
-
this.message = b, this.data =
|
|
6324
|
+
function y(b, A) {
|
|
6325
|
+
this.message = b, this.data = A && typeof A == "object" ? A : {}, this.stack = "";
|
|
6326
6326
|
}
|
|
6327
6327
|
y.prototype = Error.prototype;
|
|
6328
6328
|
function w(b) {
|
|
6329
6329
|
if (process.env.NODE_ENV !== "production")
|
|
6330
|
-
var
|
|
6331
|
-
function D(
|
|
6332
|
-
if (_ = _ || h, $ = $ || k,
|
|
6330
|
+
var A = {}, B = 0;
|
|
6331
|
+
function D(V, L, k, _, W, $, pe) {
|
|
6332
|
+
if (_ = _ || h, $ = $ || k, pe !== n) {
|
|
6333
6333
|
if (a) {
|
|
6334
|
-
var
|
|
6334
|
+
var j = new Error(
|
|
6335
6335
|
"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"
|
|
6336
6336
|
);
|
|
6337
|
-
throw
|
|
6337
|
+
throw j.name = "Invariant Violation", j;
|
|
6338
6338
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
6339
6339
|
var Ee = _ + ":" + k;
|
|
6340
|
-
!
|
|
6340
|
+
!A[Ee] && B < 3 && (s(
|
|
6341
6341
|
"You are manually calling a React.PropTypes validation function for the `" + $ + "` prop on `" + _ + "`. 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."
|
|
6342
|
-
),
|
|
6342
|
+
), A[Ee] = !0, B++);
|
|
6343
6343
|
}
|
|
6344
6344
|
}
|
|
6345
|
-
return L[k] == null ?
|
|
6345
|
+
return L[k] == null ? V ? L[k] === null ? new y("The " + W + " `" + $ + "` is marked as required " + ("in `" + _ + "`, but its value is `null`.")) : new y("The " + W + " `" + $ + "` is marked as required in " + ("`" + _ + "`, but its value is `undefined`.")) : null : b(L, k, _, W, $);
|
|
6346
6346
|
}
|
|
6347
|
-
var
|
|
6348
|
-
return
|
|
6347
|
+
var C = D.bind(null, !1);
|
|
6348
|
+
return C.isRequired = D.bind(null, !0), C;
|
|
6349
6349
|
}
|
|
6350
6350
|
function x(b) {
|
|
6351
|
-
function
|
|
6352
|
-
var _ =
|
|
6351
|
+
function A(B, D, C, V, L, k) {
|
|
6352
|
+
var _ = B[D], W = U(_);
|
|
6353
6353
|
if (W !== b) {
|
|
6354
|
-
var $ =
|
|
6354
|
+
var $ = q(_);
|
|
6355
6355
|
return new y(
|
|
6356
|
-
"Invalid " +
|
|
6356
|
+
"Invalid " + V + " `" + L + "` of type " + ("`" + $ + "` supplied to `" + C + "`, expected ") + ("`" + b + "`."),
|
|
6357
6357
|
{ expectedType: b }
|
|
6358
6358
|
);
|
|
6359
6359
|
}
|
|
6360
6360
|
return null;
|
|
6361
6361
|
}
|
|
6362
|
-
return w(
|
|
6362
|
+
return w(A);
|
|
6363
6363
|
}
|
|
6364
6364
|
function S() {
|
|
6365
6365
|
return w(o);
|
|
6366
6366
|
}
|
|
6367
6367
|
function P(b) {
|
|
6368
|
-
function
|
|
6368
|
+
function A(B, D, C, V, L) {
|
|
6369
6369
|
if (typeof b != "function")
|
|
6370
|
-
return new y("Property `" + L + "` of component `" +
|
|
6371
|
-
var k =
|
|
6370
|
+
return new y("Property `" + L + "` of component `" + C + "` has invalid PropType notation inside arrayOf.");
|
|
6371
|
+
var k = B[D];
|
|
6372
6372
|
if (!Array.isArray(k)) {
|
|
6373
|
-
var _ =
|
|
6374
|
-
return new y("Invalid " +
|
|
6373
|
+
var _ = U(k);
|
|
6374
|
+
return new y("Invalid " + V + " `" + L + "` of type " + ("`" + _ + "` supplied to `" + C + "`, expected an array."));
|
|
6375
6375
|
}
|
|
6376
6376
|
for (var W = 0; W < k.length; W++) {
|
|
6377
|
-
var $ = b(k, W,
|
|
6377
|
+
var $ = b(k, W, C, V, L + "[" + W + "]", n);
|
|
6378
6378
|
if ($ instanceof Error)
|
|
6379
6379
|
return $;
|
|
6380
6380
|
}
|
|
6381
6381
|
return null;
|
|
6382
6382
|
}
|
|
6383
|
-
return w(
|
|
6383
|
+
return w(A);
|
|
6384
6384
|
}
|
|
6385
6385
|
function O() {
|
|
6386
|
-
function b(
|
|
6387
|
-
var L =
|
|
6386
|
+
function b(A, B, D, C, V) {
|
|
6387
|
+
var L = A[B];
|
|
6388
6388
|
if (!l(L)) {
|
|
6389
|
-
var k =
|
|
6390
|
-
return new y("Invalid " +
|
|
6389
|
+
var k = U(L);
|
|
6390
|
+
return new y("Invalid " + C + " `" + V + "` of type " + ("`" + k + "` supplied to `" + D + "`, expected a single ReactElement."));
|
|
6391
6391
|
}
|
|
6392
6392
|
return null;
|
|
6393
6393
|
}
|
|
6394
6394
|
return w(b);
|
|
6395
6395
|
}
|
|
6396
6396
|
function g() {
|
|
6397
|
-
function b(
|
|
6398
|
-
var L =
|
|
6397
|
+
function b(A, B, D, C, V) {
|
|
6398
|
+
var L = A[B];
|
|
6399
6399
|
if (!e.isValidElementType(L)) {
|
|
6400
|
-
var k =
|
|
6401
|
-
return new y("Invalid " +
|
|
6400
|
+
var k = U(L);
|
|
6401
|
+
return new y("Invalid " + C + " `" + V + "` of type " + ("`" + k + "` supplied to `" + D + "`, expected a single ReactElement type."));
|
|
6402
6402
|
}
|
|
6403
6403
|
return null;
|
|
6404
6404
|
}
|
|
6405
6405
|
return w(b);
|
|
6406
6406
|
}
|
|
6407
|
-
function
|
|
6408
|
-
function
|
|
6409
|
-
if (!(
|
|
6410
|
-
var k = b.name || h, _ =
|
|
6411
|
-
return new y("Invalid " +
|
|
6407
|
+
function M(b) {
|
|
6408
|
+
function A(B, D, C, V, L) {
|
|
6409
|
+
if (!(B[D] instanceof b)) {
|
|
6410
|
+
var k = b.name || h, _ = Se(B[D]);
|
|
6411
|
+
return new y("Invalid " + V + " `" + L + "` of type " + ("`" + _ + "` supplied to `" + C + "`, expected ") + ("instance of `" + k + "`."));
|
|
6412
6412
|
}
|
|
6413
6413
|
return null;
|
|
6414
6414
|
}
|
|
6415
|
-
return w(
|
|
6415
|
+
return w(A);
|
|
6416
6416
|
}
|
|
6417
6417
|
function z(b) {
|
|
6418
6418
|
if (!Array.isArray(b))
|
|
6419
6419
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? s(
|
|
6420
6420
|
"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])."
|
|
6421
6421
|
) : s("Invalid argument supplied to oneOf, expected an array.")), o;
|
|
6422
|
-
function
|
|
6423
|
-
for (var k =
|
|
6422
|
+
function A(B, D, C, V, L) {
|
|
6423
|
+
for (var k = B[D], _ = 0; _ < b.length; _++)
|
|
6424
6424
|
if (v(k, b[_]))
|
|
6425
6425
|
return null;
|
|
6426
|
-
var W = JSON.stringify(b, function(
|
|
6427
|
-
var Ee =
|
|
6428
|
-
return Ee === "symbol" ? String(
|
|
6426
|
+
var W = JSON.stringify(b, function(pe, j) {
|
|
6427
|
+
var Ee = q(j);
|
|
6428
|
+
return Ee === "symbol" ? String(j) : j;
|
|
6429
6429
|
});
|
|
6430
|
-
return new y("Invalid " +
|
|
6430
|
+
return new y("Invalid " + V + " `" + L + "` of value `" + String(k) + "` " + ("supplied to `" + C + "`, expected one of " + W + "."));
|
|
6431
6431
|
}
|
|
6432
|
-
return w(
|
|
6432
|
+
return w(A);
|
|
6433
6433
|
}
|
|
6434
|
-
function
|
|
6435
|
-
function
|
|
6434
|
+
function R(b) {
|
|
6435
|
+
function A(B, D, C, V, L) {
|
|
6436
6436
|
if (typeof b != "function")
|
|
6437
|
-
return new y("Property `" + L + "` of component `" +
|
|
6438
|
-
var k =
|
|
6437
|
+
return new y("Property `" + L + "` of component `" + C + "` has invalid PropType notation inside objectOf.");
|
|
6438
|
+
var k = B[D], _ = U(k);
|
|
6439
6439
|
if (_ !== "object")
|
|
6440
|
-
return new y("Invalid " +
|
|
6440
|
+
return new y("Invalid " + V + " `" + L + "` of type " + ("`" + _ + "` supplied to `" + C + "`, expected an object."));
|
|
6441
6441
|
for (var W in k)
|
|
6442
6442
|
if (r(k, W)) {
|
|
6443
|
-
var $ = b(k, W,
|
|
6443
|
+
var $ = b(k, W, C, V, L + "." + W, n);
|
|
6444
6444
|
if ($ instanceof Error)
|
|
6445
6445
|
return $;
|
|
6446
6446
|
}
|
|
6447
6447
|
return null;
|
|
6448
6448
|
}
|
|
6449
|
-
return w(
|
|
6449
|
+
return w(A);
|
|
6450
6450
|
}
|
|
6451
|
-
function
|
|
6451
|
+
function X(b) {
|
|
6452
6452
|
if (!Array.isArray(b))
|
|
6453
6453
|
return process.env.NODE_ENV !== "production" && s("Invalid argument supplied to oneOfType, expected an instance of array."), o;
|
|
6454
|
-
for (var
|
|
6455
|
-
var
|
|
6456
|
-
if (typeof
|
|
6454
|
+
for (var A = 0; A < b.length; A++) {
|
|
6455
|
+
var B = b[A];
|
|
6456
|
+
if (typeof B != "function")
|
|
6457
6457
|
return s(
|
|
6458
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
6458
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + oe(B) + " at index " + A + "."
|
|
6459
6459
|
), o;
|
|
6460
6460
|
}
|
|
6461
|
-
function D(
|
|
6461
|
+
function D(C, V, L, k, _) {
|
|
6462
6462
|
for (var W = [], $ = 0; $ < b.length; $++) {
|
|
6463
|
-
var
|
|
6464
|
-
if (
|
|
6463
|
+
var pe = b[$], j = pe(C, V, L, k, _, n);
|
|
6464
|
+
if (j == null)
|
|
6465
6465
|
return null;
|
|
6466
|
-
|
|
6466
|
+
j.data && r(j.data, "expectedType") && W.push(j.data.expectedType);
|
|
6467
6467
|
}
|
|
6468
6468
|
var Ee = W.length > 0 ? ", expected one of type [" + W.join(", ") + "]" : "";
|
|
6469
6469
|
return new y("Invalid " + k + " `" + _ + "` supplied to " + ("`" + L + "`" + Ee + "."));
|
|
6470
6470
|
}
|
|
6471
6471
|
return w(D);
|
|
6472
6472
|
}
|
|
6473
|
-
function
|
|
6474
|
-
function b(
|
|
6475
|
-
return
|
|
6473
|
+
function I() {
|
|
6474
|
+
function b(A, B, D, C, V) {
|
|
6475
|
+
return re(A[B]) ? null : new y("Invalid " + C + " `" + V + "` supplied to " + ("`" + D + "`, expected a ReactNode."));
|
|
6476
6476
|
}
|
|
6477
6477
|
return w(b);
|
|
6478
6478
|
}
|
|
6479
|
-
function
|
|
6479
|
+
function K(b, A, B, D, C) {
|
|
6480
6480
|
return new y(
|
|
6481
|
-
(b || "React class") + ": " +
|
|
6481
|
+
(b || "React class") + ": " + A + " type `" + B + "." + D + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + C + "`."
|
|
6482
6482
|
);
|
|
6483
6483
|
}
|
|
6484
|
-
function
|
|
6485
|
-
function
|
|
6486
|
-
var k =
|
|
6484
|
+
function ne(b) {
|
|
6485
|
+
function A(B, D, C, V, L) {
|
|
6486
|
+
var k = B[D], _ = U(k);
|
|
6487
6487
|
if (_ !== "object")
|
|
6488
|
-
return new y("Invalid " +
|
|
6488
|
+
return new y("Invalid " + V + " `" + L + "` of type `" + _ + "` " + ("supplied to `" + C + "`, expected `object`."));
|
|
6489
6489
|
for (var W in b) {
|
|
6490
6490
|
var $ = b[W];
|
|
6491
6491
|
if (typeof $ != "function")
|
|
6492
|
-
return
|
|
6493
|
-
var
|
|
6494
|
-
if (
|
|
6495
|
-
return
|
|
6492
|
+
return K(C, V, L, W, q($));
|
|
6493
|
+
var pe = $(k, W, C, V, L + "." + W, n);
|
|
6494
|
+
if (pe)
|
|
6495
|
+
return pe;
|
|
6496
6496
|
}
|
|
6497
6497
|
return null;
|
|
6498
6498
|
}
|
|
6499
|
-
return w(
|
|
6499
|
+
return w(A);
|
|
6500
6500
|
}
|
|
6501
|
-
function
|
|
6502
|
-
function
|
|
6503
|
-
var k =
|
|
6501
|
+
function te(b) {
|
|
6502
|
+
function A(B, D, C, V, L) {
|
|
6503
|
+
var k = B[D], _ = U(k);
|
|
6504
6504
|
if (_ !== "object")
|
|
6505
|
-
return new y("Invalid " +
|
|
6506
|
-
var W = t({},
|
|
6505
|
+
return new y("Invalid " + V + " `" + L + "` of type `" + _ + "` " + ("supplied to `" + C + "`, expected `object`."));
|
|
6506
|
+
var W = t({}, B[D], b);
|
|
6507
6507
|
for (var $ in W) {
|
|
6508
|
-
var
|
|
6509
|
-
if (r(b, $) && typeof
|
|
6510
|
-
return
|
|
6511
|
-
if (!
|
|
6508
|
+
var pe = b[$];
|
|
6509
|
+
if (r(b, $) && typeof pe != "function")
|
|
6510
|
+
return K(C, V, L, $, q(pe));
|
|
6511
|
+
if (!pe)
|
|
6512
6512
|
return new y(
|
|
6513
|
-
"Invalid " +
|
|
6513
|
+
"Invalid " + V + " `" + L + "` key `" + $ + "` supplied to `" + C + "`.\nBad object: " + JSON.stringify(B[D], null, " ") + `
|
|
6514
6514
|
Valid keys: ` + JSON.stringify(Object.keys(b), null, " ")
|
|
6515
6515
|
);
|
|
6516
|
-
var
|
|
6517
|
-
if (
|
|
6518
|
-
return
|
|
6516
|
+
var j = pe(k, $, C, V, L + "." + $, n);
|
|
6517
|
+
if (j)
|
|
6518
|
+
return j;
|
|
6519
6519
|
}
|
|
6520
6520
|
return null;
|
|
6521
6521
|
}
|
|
6522
|
-
return w(
|
|
6522
|
+
return w(A);
|
|
6523
6523
|
}
|
|
6524
|
-
function
|
|
6524
|
+
function re(b) {
|
|
6525
6525
|
switch (typeof b) {
|
|
6526
6526
|
case "number":
|
|
6527
6527
|
case "string":
|
|
@@ -6531,20 +6531,20 @@ Valid keys: ` + JSON.stringify(Object.keys(b), null, " ")
|
|
|
6531
6531
|
return !b;
|
|
6532
6532
|
case "object":
|
|
6533
6533
|
if (Array.isArray(b))
|
|
6534
|
-
return b.every(
|
|
6534
|
+
return b.every(re);
|
|
6535
6535
|
if (b === null || l(b))
|
|
6536
6536
|
return !0;
|
|
6537
|
-
var
|
|
6538
|
-
if (
|
|
6539
|
-
var
|
|
6540
|
-
if (
|
|
6541
|
-
for (; !(D =
|
|
6542
|
-
if (!
|
|
6537
|
+
var A = f(b);
|
|
6538
|
+
if (A) {
|
|
6539
|
+
var B = A.call(b), D;
|
|
6540
|
+
if (A !== b.entries) {
|
|
6541
|
+
for (; !(D = B.next()).done; )
|
|
6542
|
+
if (!re(D.value))
|
|
6543
6543
|
return !1;
|
|
6544
6544
|
} else
|
|
6545
|
-
for (; !(D =
|
|
6546
|
-
var
|
|
6547
|
-
if (
|
|
6545
|
+
for (; !(D = B.next()).done; ) {
|
|
6546
|
+
var C = D.value;
|
|
6547
|
+
if (C && !re(C[1]))
|
|
6548
6548
|
return !1;
|
|
6549
6549
|
}
|
|
6550
6550
|
} else
|
|
@@ -6554,50 +6554,50 @@ Valid keys: ` + JSON.stringify(Object.keys(b), null, " ")
|
|
|
6554
6554
|
return !1;
|
|
6555
6555
|
}
|
|
6556
6556
|
}
|
|
6557
|
-
function
|
|
6558
|
-
return b === "symbol" ? !0 :
|
|
6557
|
+
function fe(b, A) {
|
|
6558
|
+
return b === "symbol" ? !0 : A ? A["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && A instanceof Symbol : !1;
|
|
6559
6559
|
}
|
|
6560
|
-
function
|
|
6561
|
-
var
|
|
6562
|
-
return Array.isArray(b) ? "array" : b instanceof RegExp ? "object" :
|
|
6560
|
+
function U(b) {
|
|
6561
|
+
var A = typeof b;
|
|
6562
|
+
return Array.isArray(b) ? "array" : b instanceof RegExp ? "object" : fe(A, b) ? "symbol" : A;
|
|
6563
6563
|
}
|
|
6564
|
-
function
|
|
6564
|
+
function q(b) {
|
|
6565
6565
|
if (typeof b > "u" || b === null)
|
|
6566
6566
|
return "" + b;
|
|
6567
|
-
var
|
|
6568
|
-
if (
|
|
6567
|
+
var A = U(b);
|
|
6568
|
+
if (A === "object") {
|
|
6569
6569
|
if (b instanceof Date)
|
|
6570
6570
|
return "date";
|
|
6571
6571
|
if (b instanceof RegExp)
|
|
6572
6572
|
return "regexp";
|
|
6573
6573
|
}
|
|
6574
|
-
return
|
|
6574
|
+
return A;
|
|
6575
6575
|
}
|
|
6576
|
-
function
|
|
6577
|
-
var
|
|
6578
|
-
switch (
|
|
6576
|
+
function oe(b) {
|
|
6577
|
+
var A = q(b);
|
|
6578
|
+
switch (A) {
|
|
6579
6579
|
case "array":
|
|
6580
6580
|
case "object":
|
|
6581
|
-
return "an " +
|
|
6581
|
+
return "an " + A;
|
|
6582
6582
|
case "boolean":
|
|
6583
6583
|
case "date":
|
|
6584
6584
|
case "regexp":
|
|
6585
|
-
return "a " +
|
|
6585
|
+
return "a " + A;
|
|
6586
6586
|
default:
|
|
6587
|
-
return
|
|
6587
|
+
return A;
|
|
6588
6588
|
}
|
|
6589
6589
|
}
|
|
6590
|
-
function
|
|
6590
|
+
function Se(b) {
|
|
6591
6591
|
return !b.constructor || !b.constructor.name ? h : b.constructor.name;
|
|
6592
6592
|
}
|
|
6593
6593
|
return m.checkPropTypes = i, m.resetWarningCache = i.resetWarningCache, m.PropTypes = m, m;
|
|
6594
6594
|
}, Ln;
|
|
6595
6595
|
}
|
|
6596
|
-
var kn,
|
|
6596
|
+
var kn, Vs;
|
|
6597
6597
|
function kd() {
|
|
6598
|
-
if (
|
|
6598
|
+
if (Vs)
|
|
6599
6599
|
return kn;
|
|
6600
|
-
|
|
6600
|
+
Vs = 1;
|
|
6601
6601
|
var e = Br();
|
|
6602
6602
|
function t() {
|
|
6603
6603
|
}
|
|
@@ -6644,9 +6644,9 @@ function kd() {
|
|
|
6644
6644
|
}
|
|
6645
6645
|
if (process.env.NODE_ENV !== "production") {
|
|
6646
6646
|
var _d = fa(), Id = !0;
|
|
6647
|
-
|
|
6647
|
+
de.exports = Ld()(_d.isElement, Id);
|
|
6648
6648
|
} else
|
|
6649
|
-
|
|
6649
|
+
de.exports = kd()();
|
|
6650
6650
|
function Jn() {
|
|
6651
6651
|
return Jn = Object.assign || function(e) {
|
|
6652
6652
|
for (var t = 1; t < arguments.length; t++) {
|
|
@@ -6694,8 +6694,8 @@ var $r = kt(function(e, t) {
|
|
|
6694
6694
|
}));
|
|
6695
6695
|
});
|
|
6696
6696
|
$r.propTypes = {
|
|
6697
|
-
color:
|
|
6698
|
-
size:
|
|
6697
|
+
color: de.exports.string,
|
|
6698
|
+
size: de.exports.oneOfType([de.exports.string, de.exports.number])
|
|
6699
6699
|
};
|
|
6700
6700
|
$r.displayName = "Check";
|
|
6701
6701
|
const Bd = $r;
|
|
@@ -6753,8 +6753,8 @@ var Ur = kt(function(e, t) {
|
|
|
6753
6753
|
}));
|
|
6754
6754
|
});
|
|
6755
6755
|
Ur.propTypes = {
|
|
6756
|
-
color:
|
|
6757
|
-
size:
|
|
6756
|
+
color: de.exports.string,
|
|
6757
|
+
size: de.exports.oneOfType([de.exports.string, de.exports.number])
|
|
6758
6758
|
};
|
|
6759
6759
|
Ur.displayName = "Copy";
|
|
6760
6760
|
const Wd = Ur;
|
|
@@ -6807,8 +6807,8 @@ var Wr = kt(function(e, t) {
|
|
|
6807
6807
|
}));
|
|
6808
6808
|
});
|
|
6809
6809
|
Wr.propTypes = {
|
|
6810
|
-
color:
|
|
6811
|
-
size:
|
|
6810
|
+
color: de.exports.string,
|
|
6811
|
+
size: de.exports.oneOfType([de.exports.string, de.exports.number])
|
|
6812
6812
|
};
|
|
6813
6813
|
Wr.displayName = "Edit";
|
|
6814
6814
|
const Kd = Wr;
|
|
@@ -6861,8 +6861,8 @@ var zr = kt(function(e, t) {
|
|
|
6861
6861
|
}));
|
|
6862
6862
|
});
|
|
6863
6863
|
zr.propTypes = {
|
|
6864
|
-
color:
|
|
6865
|
-
size:
|
|
6864
|
+
color: de.exports.string,
|
|
6865
|
+
size: de.exports.oneOfType([de.exports.string, de.exports.number])
|
|
6866
6866
|
};
|
|
6867
6867
|
zr.displayName = "Trash";
|
|
6868
6868
|
const Hd = zr, Xd = ({
|
|
@@ -6871,89 +6871,92 @@ const Hd = zr, Xd = ({
|
|
|
6871
6871
|
updateMessages: n,
|
|
6872
6872
|
onMessageSent: r,
|
|
6873
6873
|
onEditMessage: i,
|
|
6874
|
-
|
|
6874
|
+
isSendingDefultForNewMessage: s,
|
|
6875
|
+
isSendingDefultForEdited: o,
|
|
6876
|
+
onDeleteMessage: l
|
|
6875
6877
|
}) => {
|
|
6876
|
-
const
|
|
6878
|
+
const a = ye(null), [u, c] = ge(!1), [f, h] = ge(null), [m, v] = ge(), [y, w] = ge(null), x = () => {
|
|
6877
6879
|
setTimeout(() => {
|
|
6878
|
-
|
|
6880
|
+
a.current && (a.current.scrollTop = a.current.scrollHeight);
|
|
6879
6881
|
}, 100);
|
|
6880
6882
|
};
|
|
6881
6883
|
ft(() => {
|
|
6882
|
-
const
|
|
6883
|
-
|
|
6884
|
+
const I = () => {
|
|
6885
|
+
w(null);
|
|
6884
6886
|
};
|
|
6885
|
-
return window.addEventListener("scroll",
|
|
6886
|
-
window.removeEventListener("scroll",
|
|
6887
|
+
return window.addEventListener("scroll", I, !0), () => {
|
|
6888
|
+
window.removeEventListener("scroll", I, !0);
|
|
6887
6889
|
};
|
|
6888
|
-
}, [
|
|
6889
|
-
const
|
|
6890
|
-
|
|
6891
|
-
const
|
|
6892
|
-
|
|
6893
|
-
x:
|
|
6894
|
-
y:
|
|
6895
|
-
message:
|
|
6890
|
+
}, [w]);
|
|
6891
|
+
const S = (I, K) => {
|
|
6892
|
+
I.preventDefault();
|
|
6893
|
+
const ne = window.scrollX, te = window.scrollY;
|
|
6894
|
+
w({
|
|
6895
|
+
x: I.clientX + ne,
|
|
6896
|
+
y: I.clientY + te,
|
|
6897
|
+
message: K
|
|
6896
6898
|
});
|
|
6897
|
-
},
|
|
6898
|
-
|
|
6899
|
-
},
|
|
6900
|
-
const
|
|
6899
|
+
}, P = () => {
|
|
6900
|
+
w(null);
|
|
6901
|
+
}, O = (I) => {
|
|
6902
|
+
const K = new wt({
|
|
6901
6903
|
id: new Date().toString(),
|
|
6902
|
-
text:
|
|
6904
|
+
text: I,
|
|
6903
6905
|
user: e,
|
|
6904
6906
|
isRightSided: !0,
|
|
6907
|
+
isSending: s,
|
|
6905
6908
|
createdDate: new Date().toString()
|
|
6906
6909
|
});
|
|
6907
|
-
n([...t,
|
|
6908
|
-
},
|
|
6910
|
+
n([...t, K]), r(K), x();
|
|
6911
|
+
}, g = (I) => {
|
|
6909
6912
|
n(
|
|
6910
|
-
t.map((
|
|
6911
|
-
), i(
|
|
6912
|
-
},
|
|
6913
|
-
const
|
|
6913
|
+
t.map((K) => K.id === I.id ? (I.updateIsSending(Boolean(o)), I) : K)
|
|
6914
|
+
), i(I);
|
|
6915
|
+
}, M = (I) => {
|
|
6916
|
+
const K = URL.createObjectURL(I), ne = new wt({
|
|
6914
6917
|
id: new Date().toString(),
|
|
6915
6918
|
text: "",
|
|
6916
|
-
attachmentUrl:
|
|
6919
|
+
attachmentUrl: K,
|
|
6917
6920
|
attachmentType: ke.Voice,
|
|
6918
|
-
attachmentBlob:
|
|
6921
|
+
attachmentBlob: I,
|
|
6919
6922
|
user: e,
|
|
6920
6923
|
isRightSided: !0,
|
|
6921
6924
|
createdDate: new Date().toString()
|
|
6922
6925
|
});
|
|
6923
|
-
n([...t,
|
|
6924
|
-
},
|
|
6925
|
-
const
|
|
6926
|
+
n([...t, ne]), r(ne), x();
|
|
6927
|
+
}, z = (I, K) => {
|
|
6928
|
+
const ne = URL.createObjectURL(I), te = new wt({
|
|
6926
6929
|
id: new Date().toString(),
|
|
6927
6930
|
text: "",
|
|
6928
|
-
attachmentUrl:
|
|
6929
|
-
attachmentBlob:
|
|
6930
|
-
attachmentType:
|
|
6931
|
+
attachmentUrl: ne,
|
|
6932
|
+
attachmentBlob: I,
|
|
6933
|
+
attachmentType: K,
|
|
6931
6934
|
user: e,
|
|
6932
6935
|
isRightSided: !0,
|
|
6933
6936
|
createdDate: new Date().toString()
|
|
6934
6937
|
});
|
|
6935
|
-
n([...t,
|
|
6938
|
+
n([...t, te]), r(te), x();
|
|
6936
6939
|
};
|
|
6937
6940
|
return {
|
|
6938
6941
|
handleDeleteConfirmation: () => {
|
|
6939
|
-
|
|
6942
|
+
f && (l(f), h(null)), c(!1);
|
|
6940
6943
|
},
|
|
6941
|
-
handleCloseContextMenu:
|
|
6944
|
+
handleCloseContextMenu: P,
|
|
6942
6945
|
contextMenuItems: [
|
|
6943
6946
|
{
|
|
6944
6947
|
name: "Edit",
|
|
6945
6948
|
icon: /* @__PURE__ */ p.exports.jsx(Kd, { className: "text-gray-600" }),
|
|
6946
6949
|
onlyCurrentUserMessage: !0,
|
|
6947
|
-
onClick: (
|
|
6948
|
-
|
|
6950
|
+
onClick: (I) => {
|
|
6951
|
+
v(t.find((K) => K.id === I)), P();
|
|
6949
6952
|
}
|
|
6950
6953
|
},
|
|
6951
6954
|
{
|
|
6952
6955
|
name: "Delete",
|
|
6953
6956
|
icon: /* @__PURE__ */ p.exports.jsx(Hd, { className: "text-red-600" }),
|
|
6954
6957
|
onlyCurrentUserMessage: !0,
|
|
6955
|
-
onClick: (
|
|
6956
|
-
|
|
6958
|
+
onClick: (I) => {
|
|
6959
|
+
h(I), c(!0), P();
|
|
6957
6960
|
}
|
|
6958
6961
|
},
|
|
6959
6962
|
{
|
|
@@ -6961,29 +6964,29 @@ const Hd = zr, Xd = ({
|
|
|
6961
6964
|
icon: /* @__PURE__ */ p.exports.jsx(Bd, { className: "text-green-600" }),
|
|
6962
6965
|
disabled: !0,
|
|
6963
6966
|
onClick: () => {
|
|
6964
|
-
console.log("Select clicked"),
|
|
6967
|
+
console.log("Select clicked"), P();
|
|
6965
6968
|
}
|
|
6966
6969
|
},
|
|
6967
6970
|
{
|
|
6968
6971
|
name: "Copy",
|
|
6969
6972
|
icon: /* @__PURE__ */ p.exports.jsx(Wd, { className: "text-blue-600" }),
|
|
6970
|
-
onClick: (
|
|
6971
|
-
const
|
|
6972
|
-
|
|
6973
|
+
onClick: (I) => {
|
|
6974
|
+
const K = t.find((ne) => ne.id === I);
|
|
6975
|
+
K && navigator.clipboard.writeText(K.text), P();
|
|
6973
6976
|
}
|
|
6974
6977
|
}
|
|
6975
6978
|
],
|
|
6976
|
-
handleSendFile:
|
|
6977
|
-
handleSendVoice:
|
|
6978
|
-
handleSendMessage:
|
|
6979
|
-
handleContextMenu:
|
|
6980
|
-
isModalOpen:
|
|
6981
|
-
contextMenu:
|
|
6982
|
-
chatRef:
|
|
6983
|
-
setIsModalOpen:
|
|
6984
|
-
messageToEdit:
|
|
6985
|
-
setMessageToEdit:
|
|
6986
|
-
handleEditMessage:
|
|
6979
|
+
handleSendFile: z,
|
|
6980
|
+
handleSendVoice: M,
|
|
6981
|
+
handleSendMessage: O,
|
|
6982
|
+
handleContextMenu: S,
|
|
6983
|
+
isModalOpen: u,
|
|
6984
|
+
contextMenu: y,
|
|
6985
|
+
chatRef: a,
|
|
6986
|
+
setIsModalOpen: c,
|
|
6987
|
+
messageToEdit: m,
|
|
6988
|
+
setMessageToEdit: v,
|
|
6989
|
+
handleEditMessage: g
|
|
6987
6990
|
};
|
|
6988
6991
|
}, rh = ({
|
|
6989
6992
|
width: e = "400px",
|
|
@@ -6998,32 +7001,36 @@ const Hd = zr, Xd = ({
|
|
|
6998
7001
|
onDeleteMessage: u,
|
|
6999
7002
|
onEditMessage: c,
|
|
7000
7003
|
dynamicSymbolAssignments: f,
|
|
7001
|
-
|
|
7002
|
-
|
|
7004
|
+
isSendingDefultForNewMessage: h,
|
|
7005
|
+
isSendingDefultForEdited: m,
|
|
7006
|
+
backgroundImage: v,
|
|
7007
|
+
them: y = ae.Telegram
|
|
7003
7008
|
}) => {
|
|
7004
|
-
var
|
|
7009
|
+
var re, fe;
|
|
7005
7010
|
const {
|
|
7006
|
-
handleDeleteConfirmation:
|
|
7007
|
-
handleCloseContextMenu:
|
|
7008
|
-
handleSendFile:
|
|
7009
|
-
handleSendVoice:
|
|
7010
|
-
handleSendMessage:
|
|
7011
|
-
handleContextMenu:
|
|
7012
|
-
contextMenuItems:
|
|
7013
|
-
isModalOpen:
|
|
7014
|
-
contextMenu:
|
|
7015
|
-
chatRef:
|
|
7016
|
-
setIsModalOpen:
|
|
7017
|
-
messageToEdit:
|
|
7018
|
-
setMessageToEdit:
|
|
7019
|
-
handleEditMessage:
|
|
7011
|
+
handleDeleteConfirmation: w,
|
|
7012
|
+
handleCloseContextMenu: x,
|
|
7013
|
+
handleSendFile: S,
|
|
7014
|
+
handleSendVoice: P,
|
|
7015
|
+
handleSendMessage: O,
|
|
7016
|
+
handleContextMenu: g,
|
|
7017
|
+
contextMenuItems: M,
|
|
7018
|
+
isModalOpen: z,
|
|
7019
|
+
contextMenu: R,
|
|
7020
|
+
chatRef: X,
|
|
7021
|
+
setIsModalOpen: I,
|
|
7022
|
+
messageToEdit: K,
|
|
7023
|
+
setMessageToEdit: ne,
|
|
7024
|
+
handleEditMessage: te
|
|
7020
7025
|
} = Xd({
|
|
7021
7026
|
user: o,
|
|
7022
7027
|
messages: s,
|
|
7023
7028
|
updateMessages: l,
|
|
7024
7029
|
onMessageSent: a,
|
|
7025
7030
|
onEditMessage: c,
|
|
7026
|
-
onDeleteMessage: u
|
|
7031
|
+
onDeleteMessage: u,
|
|
7032
|
+
isSendingDefultForNewMessage: h,
|
|
7033
|
+
isSendingDefultForEdited: m
|
|
7027
7034
|
});
|
|
7028
7035
|
return /* @__PURE__ */ p.exports.jsxs(
|
|
7029
7036
|
"div",
|
|
@@ -7032,49 +7039,49 @@ const Hd = zr, Xd = ({
|
|
|
7032
7039
|
style: {
|
|
7033
7040
|
width: e,
|
|
7034
7041
|
height: t,
|
|
7035
|
-
background: "url(" +
|
|
7042
|
+
background: "url(" + v + ")",
|
|
7036
7043
|
...i
|
|
7037
7044
|
},
|
|
7038
|
-
onClick:
|
|
7045
|
+
onClick: x,
|
|
7039
7046
|
children: [
|
|
7040
7047
|
/* @__PURE__ */ p.exports.jsx(
|
|
7041
7048
|
"div",
|
|
7042
7049
|
{
|
|
7043
|
-
ref:
|
|
7044
|
-
className: `flex flex-col gap-2 flex-1 p-3 pb-16 ${
|
|
7045
|
-
children: n ? /* @__PURE__ */ p.exports.jsx(ua, { className: "mt-3", size: 27, color: "text-gray-800" }) : /* @__PURE__ */ p.exports.jsx(_s, { children: s.length > 0 ? s.map((
|
|
7046
|
-
var
|
|
7047
|
-
const
|
|
7050
|
+
ref: X,
|
|
7051
|
+
className: `flex flex-col gap-2 flex-1 p-3 pb-16 ${R ? "overflow-hidden pr-[22px]" : "overflow-y-scroll"}`,
|
|
7052
|
+
children: n ? /* @__PURE__ */ p.exports.jsx(ua, { className: "mt-3", size: 27, color: "text-gray-800" }) : /* @__PURE__ */ p.exports.jsx(_s, { children: s.length > 0 ? s.map((U, q) => {
|
|
7053
|
+
var b, A, B;
|
|
7054
|
+
const oe = U != null && U.attachmentUrl ? /* @__PURE__ */ p.exports.jsx(
|
|
7048
7055
|
Ed,
|
|
7049
7056
|
{
|
|
7050
|
-
attachmentUrl:
|
|
7051
|
-
attachmentType:
|
|
7052
|
-
attachmentFormat:
|
|
7057
|
+
attachmentUrl: U.attachmentUrl,
|
|
7058
|
+
attachmentType: U == null ? void 0 : U.attachmentType,
|
|
7059
|
+
attachmentFormat: U == null ? void 0 : U.attachmentFormat
|
|
7053
7060
|
},
|
|
7054
|
-
|
|
7061
|
+
q
|
|
7055
7062
|
) : null;
|
|
7056
|
-
if (
|
|
7063
|
+
if (U.isRightSided)
|
|
7057
7064
|
return /* @__PURE__ */ p.exports.jsx(
|
|
7058
7065
|
Ad,
|
|
7059
7066
|
{
|
|
7060
|
-
media:
|
|
7061
|
-
handleContextMenu:
|
|
7062
|
-
message:
|
|
7063
|
-
them:
|
|
7067
|
+
media: oe,
|
|
7068
|
+
handleContextMenu: g,
|
|
7069
|
+
message: U,
|
|
7070
|
+
them: y
|
|
7064
7071
|
},
|
|
7065
|
-
|
|
7072
|
+
q
|
|
7066
7073
|
);
|
|
7067
|
-
const
|
|
7074
|
+
const Se = ((A = (b = s[q - 1]) == null ? void 0 : b.user) == null ? void 0 : A.id) !== ((B = U == null ? void 0 : U.user) == null ? void 0 : B.id);
|
|
7068
7075
|
return /* @__PURE__ */ p.exports.jsx(
|
|
7069
7076
|
Rd,
|
|
7070
7077
|
{
|
|
7071
|
-
showUserProfile:
|
|
7072
|
-
media:
|
|
7073
|
-
handleContextMenu:
|
|
7074
|
-
message:
|
|
7075
|
-
them:
|
|
7078
|
+
showUserProfile: Se,
|
|
7079
|
+
media: oe,
|
|
7080
|
+
handleContextMenu: g,
|
|
7081
|
+
message: U,
|
|
7082
|
+
them: y
|
|
7076
7083
|
},
|
|
7077
|
-
|
|
7084
|
+
q
|
|
7078
7085
|
);
|
|
7079
7086
|
}) : null })
|
|
7080
7087
|
}
|
|
@@ -7082,38 +7089,38 @@ const Hd = zr, Xd = ({
|
|
|
7082
7089
|
/* @__PURE__ */ p.exports.jsx(
|
|
7083
7090
|
yd,
|
|
7084
7091
|
{
|
|
7085
|
-
isOpen:
|
|
7086
|
-
onClose: () =>
|
|
7087
|
-
onConfirm:
|
|
7092
|
+
isOpen: z,
|
|
7093
|
+
onClose: () => I(!1),
|
|
7094
|
+
onConfirm: w,
|
|
7088
7095
|
header: "Confirm Delete",
|
|
7089
7096
|
question: "Are you sure you want to delete this message?"
|
|
7090
7097
|
}
|
|
7091
7098
|
),
|
|
7092
|
-
|
|
7099
|
+
R && ((re = R == null ? void 0 : R.message) != null && re.id) ? /* @__PURE__ */ p.exports.jsx(
|
|
7093
7100
|
vd,
|
|
7094
7101
|
{
|
|
7095
|
-
items:
|
|
7096
|
-
isVisible: Boolean(
|
|
7097
|
-
messageId: String(
|
|
7098
|
-
isCurrentUserMessage: ((
|
|
7102
|
+
items: M,
|
|
7103
|
+
isVisible: Boolean(R),
|
|
7104
|
+
messageId: String(R == null ? void 0 : R.message.id),
|
|
7105
|
+
isCurrentUserMessage: ((fe = R == null ? void 0 : R.message) == null ? void 0 : fe.user.id) === o.id,
|
|
7099
7106
|
position: {
|
|
7100
|
-
x:
|
|
7101
|
-
y:
|
|
7107
|
+
x: R == null ? void 0 : R.x,
|
|
7108
|
+
y: R == null ? void 0 : R.y
|
|
7102
7109
|
}
|
|
7103
7110
|
}
|
|
7104
7111
|
) : null,
|
|
7105
7112
|
/* @__PURE__ */ p.exports.jsx(
|
|
7106
7113
|
wd,
|
|
7107
7114
|
{
|
|
7108
|
-
onSendVoice:
|
|
7109
|
-
onSendMessage:
|
|
7110
|
-
onFileSend: (
|
|
7111
|
-
onImageSend: (
|
|
7112
|
-
onVideoSend: (
|
|
7115
|
+
onSendVoice: P,
|
|
7116
|
+
onSendMessage: O,
|
|
7117
|
+
onFileSend: (U) => S(U, ke.File),
|
|
7118
|
+
onImageSend: (U) => S(U, ke.Image),
|
|
7119
|
+
onVideoSend: (U) => S(U, ke.Video),
|
|
7113
7120
|
dynamicSymbolAssignments: f,
|
|
7114
|
-
messageToEdit:
|
|
7115
|
-
setMessageToEdit:
|
|
7116
|
-
onEditMessage:
|
|
7121
|
+
messageToEdit: K,
|
|
7122
|
+
setMessageToEdit: ne,
|
|
7123
|
+
onEditMessage: te
|
|
7117
7124
|
}
|
|
7118
7125
|
)
|
|
7119
7126
|
]
|
|
@@ -7124,7 +7131,7 @@ export {
|
|
|
7124
7131
|
ke as AttachmentTypeEnum,
|
|
7125
7132
|
eh as Button,
|
|
7126
7133
|
rh as Chat,
|
|
7127
|
-
|
|
7134
|
+
ae as ChatThemEntity,
|
|
7128
7135
|
wt as MessageEntity
|
|
7129
7136
|
};
|
|
7130
7137
|
//# sourceMappingURL=index.es.js.map
|