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 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 we = (e, t, n) => (La(e, typeof t != "symbol" ? t + "" : t, n), n);
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 ge, useId as rr, useContext as ye, useInsertionEffect as Vs, useMemo as Xe, useEffect as ft, Children as ka, isValidElement as _a, useLayoutEffect as Ia, useState as me, forwardRef as kt, Fragment as Os, createElement as Na, Component as Fa } from "react";
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, j = new Array(T > 1 ? T - 1 : 0), F = 1; F < T; F++)
41
- j[F - 1] = arguments[F];
42
- P("error", d, j);
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, j) {
45
+ function P(d, T, E) {
46
46
  {
47
- var F = x.ReactDebugCurrentFrame, q = F.getStackAddendum();
48
- q !== "" && (T += "%s", j = j.concat([q]));
49
- var J = j.map(function(K) {
50
- return String(K);
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
- J.unshift("Warning: " + T), Function.prototype.apply.call(console[d], console, J);
52
+ Q.unshift("Warning: " + T), Function.prototype.apply.call(console[d], console, Q);
53
53
  }
54
54
  }
55
- var O = !1, g = !1, E = !1, z = !1, C = !1, N;
56
- N = Symbol.for("react.module.reference");
57
- function G(d) {
58
- return !!(typeof d == "string" || typeof d == "function" || d === r || d === s || C || d === i || d === u || d === c || z || d === m || O || g || E || typeof d == "object" && d !== null && (d.$$typeof === h || d.$$typeof === f || d.$$typeof === o || d.$$typeof === l || d.$$typeof === a || d.$$typeof === N || d.getModuleId !== void 0));
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 ee(d, T, j) {
60
+ function K(d, T, E) {
61
61
  var F = d.displayName;
62
62
  if (F)
63
63
  return F;
64
- var q = T.displayName || T.name || "";
65
- return q !== "" ? j + "(" + q + ")" : j;
64
+ var H = T.displayName || T.name || "";
65
+ return H !== "" ? E + "(" + H + ")" : E;
66
66
  }
67
- function xe(d) {
67
+ function ne(d) {
68
68
  return d.displayName || "Context";
69
69
  }
70
- function ae(d) {
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 xe(T) + ".Consumer";
95
+ return ne(T) + ".Consumer";
96
96
  case o:
97
- var j = d;
98
- return xe(j._context) + ".Provider";
97
+ var E = d;
98
+ return ne(E._context) + ".Provider";
99
99
  case a:
100
- return ee(d, d.render, "ForwardRef");
100
+ return K(d, d.render, "ForwardRef");
101
101
  case f:
102
102
  var F = d.displayName || null;
103
- return F !== null ? F : ae(d.type) || "Memo";
103
+ return F !== null ? F : te(d.type) || "Memo";
104
104
  case h: {
105
- var q = d, J = q._payload, K = q._init;
105
+ var H = d, Q = H._payload, G = H._init;
106
106
  try {
107
- return ae(K(J));
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 B = Object.assign, le = 0, ue, H, re, be, b, V, U;
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 R() {
119
+ function C() {
120
120
  {
121
- if (le === 0) {
122
- ue = console.log, H = console.info, re = console.warn, be = console.error, b = console.group, V = console.groupCollapsed, U = console.groupEnd;
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
- le++;
139
+ fe++;
140
140
  }
141
141
  }
142
- function M() {
142
+ function V() {
143
143
  {
144
- if (le--, le === 0) {
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: B({}, d, {
152
- value: ue
151
+ log: re({}, d, {
152
+ value: U
153
153
  }),
154
- info: B({}, d, {
155
- value: H
154
+ info: re({}, d, {
155
+ value: q
156
156
  }),
157
- warn: B({}, d, {
158
- value: re
157
+ warn: re({}, d, {
158
+ value: oe
159
159
  }),
160
- error: B({}, d, {
161
- value: be
160
+ error: re({}, d, {
161
+ value: Se
162
162
  }),
163
- group: B({}, d, {
163
+ group: re({}, d, {
164
164
  value: b
165
165
  }),
166
- groupCollapsed: B({}, d, {
167
- value: V
166
+ groupCollapsed: re({}, d, {
167
+ value: A
168
168
  }),
169
- groupEnd: B({}, d, {
170
- value: U
169
+ groupEnd: re({}, d, {
170
+ value: B
171
171
  })
172
172
  });
173
173
  }
174
- le < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
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, j) {
178
+ function _(d, T, E) {
179
179
  {
180
180
  if (k === void 0)
181
181
  try {
182
182
  throw Error();
183
- } catch (q) {
184
- var F = q.stack.trim().match(/\n( *(at )?)/);
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 he = typeof WeakMap == "function" ? WeakMap : Map;
194
- $ = new he();
193
+ var pe = typeof WeakMap == "function" ? WeakMap : Map;
194
+ $ = new pe();
195
195
  }
196
- function A(d, T) {
196
+ function j(d, T) {
197
197
  if (!d || W)
198
198
  return "";
199
199
  {
200
- var j = $.get(d);
201
- if (j !== void 0)
202
- return j;
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 q = Error.prepareStackTrace;
206
+ var H = Error.prepareStackTrace;
207
207
  Error.prepareStackTrace = void 0;
208
- var J;
209
- J = L.current, L.current = null, R();
208
+ var Q;
209
+ Q = L.current, L.current = null, C();
210
210
  try {
211
211
  if (T) {
212
- var K = function() {
212
+ var G = function() {
213
213
  throw Error();
214
214
  };
215
- if (Object.defineProperty(K.prototype, "props", {
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(K, []);
221
+ Reflect.construct(G, []);
222
222
  } catch (Le) {
223
223
  F = Le;
224
224
  }
225
- Reflect.construct(d, [], K);
225
+ Reflect.construct(d, [], G);
226
226
  } else {
227
227
  try {
228
- K.call();
228
+ G.call();
229
229
  } catch (Le) {
230
230
  F = Le;
231
231
  }
232
- d.call(K.prototype);
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
- `), Te = F.stack.split(`
246
- `), se = Y.length - 1, ce = Te.length - 1; se >= 1 && ce >= 0 && Y[se] !== Te[ce]; )
247
- ce--;
248
- for (; se >= 1 && ce >= 0; se--, ce--)
249
- if (Y[se] !== Te[ce]) {
250
- if (se !== 1 || ce !== 1)
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 (se--, ce--, ce < 0 || Y[se] !== Te[ce]) {
252
+ if (le--, ue--, ue < 0 || Y[le] !== be[ue]) {
253
253
  var Re = `
254
- ` + Y[se].replace(" at new ", " at ");
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 (se >= 1 && ce >= 0);
257
+ while (le >= 1 && ue >= 0);
258
258
  break;
259
259
  }
260
260
  }
261
261
  } finally {
262
- W = !1, L.current = J, M(), Error.prepareStackTrace = q;
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, j) {
268
- return A(d, !1);
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, j) {
274
+ function ze(d, T, E) {
275
275
  if (d == null)
276
276
  return "";
277
277
  if (typeof d == "function")
278
- return A(d, Je(d));
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, j);
292
+ return ze(d.type, T, E);
293
293
  case h: {
294
- var F = d, q = F._payload, J = F._init;
294
+ var F = d, H = F._payload, Q = F._init;
295
295
  try {
296
- return ze(J(q), T, j);
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, j = ze(d.type, d._source, T ? T.type : null);
307
- Kr.setExtraStackFrame(j);
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, j, F, q) {
311
+ function ha(d, T, E, F, H) {
312
312
  {
313
- var J = Function.call.bind(Bt);
314
- for (var K in d)
315
- if (J(d, K)) {
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[K] != "function") {
319
- var Te = Error((F || "React class") + ": " + j + " type `" + K + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof d[K] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
320
- throw Te.name = "Invariant Violation", Te;
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[K](T, K, F, j, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
323
- } catch (se) {
324
- Y = se;
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(q), 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", j, K, typeof Y), $t(null)), Y instanceof Error && !(Y.message in Yr) && (Yr[Y.message] = !0, $t(q), S("Failed %s type: %s", j, Y.message), $t(null));
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, j = T && d[Symbol.toStringTag] || d.constructor.name || "Object";
337
- return j;
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 j = ae(mt.current.type);
380
- fn[j] || (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', ae(mt.current.type), d.ref), fn[j] = !0);
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 j = function() {
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
- j.isReactWarning = !0, Object.defineProperty(d, "key", {
389
- get: j,
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 j = function() {
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
- j.isReactWarning = !0, Object.defineProperty(d, "ref", {
400
- get: j,
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, j, F, q, J, K) {
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: j,
411
- props: K,
412
- _owner: J
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: q
428
+ value: H
429
429
  }), Object.freeze && (Object.freeze(Y.props), Object.freeze(Y)), Y;
430
430
  };
431
- function Pa(d, T, j, F, q) {
431
+ function Pa(d, T, E, F, H) {
432
432
  {
433
- var J, K = {}, Y = null, Te = null;
434
- j !== void 0 && (qr(j), Y = "" + j), xa(T) && (qr(T.key), Y = "" + T.key), va(T) && (Te = T.ref, ba(T, q));
435
- for (J in T)
436
- Bt.call(T, J) && !ya.hasOwnProperty(J) && (K[J] = T[J]);
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 se = d.defaultProps;
439
- for (J in se)
440
- K[J] === void 0 && (K[J] = se[J]);
438
+ var le = d.defaultProps;
439
+ for (Q in le)
440
+ G[Q] === void 0 && (G[Q] = le[Q]);
441
441
  }
442
- if (Y || Te) {
443
- var ce = typeof d == "function" ? d.displayName || d.name || "Unknown" : d;
444
- Y && Ta(K, ce), Te && wa(K, ce);
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, Te, q, F, mt.current, K);
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, j = ze(d.type, d._source, T ? T.type : null);
453
- Zr.setExtraStackFrame(j);
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 = ae(dn.current.type);
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(/^.*[\\\/]/, ""), j = d.lineNumber;
477
+ var T = d.fileName.replace(/^.*[\\\/]/, ""), E = d.lineNumber;
478
478
  return `
479
479
 
480
- Check your code at ` + T + ":" + j + ".";
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 j = typeof d == "string" ? d : d.displayName || d.name;
491
- j && (T = `
490
+ var E = typeof d == "string" ? d : d.displayName || d.name;
491
+ E && (T = `
492
492
 
493
- Check the top-level render call using <` + j + ">.");
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 j = Ea(T);
504
- if (Qr[j])
503
+ var E = Ea(T);
504
+ if (Qr[E])
505
505
  return;
506
- Qr[j] = !0;
506
+ Qr[E] = !0;
507
507
  var F = "";
508
- d && d._owner && d._owner !== dn.current && (F = " It was passed a child from " + ae(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.', j, F), Qe(null);
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 j = 0; j < d.length; j++) {
517
- var F = d[j];
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 q = w(d);
524
- if (typeof q == "function" && q !== d.entries)
525
- for (var J = q.call(d), K; !(K = J.next()).done; )
526
- pn(K.value) && ei(K.value, T);
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 j;
535
+ var E;
536
536
  if (typeof T == "function")
537
- j = T.propTypes;
537
+ E = T.propTypes;
538
538
  else if (typeof T == "object" && (T.$$typeof === a || T.$$typeof === f))
539
- j = T.propTypes;
539
+ E = T.propTypes;
540
540
  else
541
541
  return;
542
- if (j) {
543
- var F = ae(T);
544
- ha(j, d.props, "prop", F, d);
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 q = ae(T);
548
- S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", q || "Unknown");
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), j = 0; j < T.length; j++) {
556
- var F = T[j];
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, j, F, q, J) {
565
+ function ni(d, T, E, F, H, Q) {
566
566
  {
567
- var K = G(d);
568
- if (!K) {
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 Te = Ca(q);
572
- Te ? Y += Te : Y += Jr();
573
- var se;
574
- d === null ? se = "null" : un(d) ? se = "array" : d !== void 0 && d.$$typeof === t ? (se = "<" + (ae(d.type) || "Unknown") + " />", Y = " Did you accidentally export a JSX literal instead of a component?") : se = 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", se, Y);
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 ce = Pa(d, T, j, q, J);
577
- if (ce == null)
578
- return ce;
579
- if (K) {
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(ce) : Ra(ce), ce;
592
+ return d === r ? ja(ue) : Ra(ue), ue;
593
593
  }
594
594
  }
595
- function Aa(d, T, j) {
596
- return ni(d, T, j, !0);
595
+ function Aa(d, T, E) {
596
+ return ni(d, T, E, !0);
597
597
  }
598
- function Da(d, T, j) {
599
- return ni(d, T, j, !1);
598
+ function Da(d, T, E) {
599
+ return ni(d, T, E, !1);
600
600
  }
601
- var Ma = Da, Va = Aa;
602
- yt.Fragment = r, yt.jsx = Ma, yt.jsxs = Va;
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
- we(this, "id", "0");
637
- we(this, "text", "");
638
- we(this, "createdDate", "");
639
- we(this, "attachmentUrl", "");
640
- we(this, "attachmentBlob");
641
- we(this, "attachmentType");
642
- we(this, "attachmentFormat", "");
643
- we(this, "user", { id: "" });
644
- we(this, "isRightSided", !1);
645
- we(this, "symbols");
646
- we(this, "isSending");
647
- we(this, "isEdited");
648
- we(this, "updateId", (t) => {
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
- we(this, "updateIsSending", (t) => {
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 = ge(null);
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 = ge(null), s = ge({
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 } = ye(or);
690
- return Vs(() => {
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 = ye(rn);
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 = ge(!0), m = ge(c), v = sr(() => /* @__PURE__ */ new Map()), [y, w] = me(c), [x, S] = me(c);
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 E = Ut(x[g]);
762
- f.includes(E) ? v.delete(E) : v.get(E) !== !0 && v.set(E, !1);
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 E = 0; E < x.length; E++) {
769
- const z = x[E], C = Ut(z);
770
- f.includes(C) || (g.splice(E, 0, z), P.push(z));
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 } = ye(ir);
775
+ const { forceRender: O } = ve(ir);
776
776
  return p.exports.jsx(p.exports.Fragment, { children: x.map((g) => {
777
- const E = Ut(g), z = o && !a ? !1 : c === x || f.includes(E), C = () => {
778
- if (v.has(E))
779
- v.set(E, !0);
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 N = !0;
783
- v.forEach((G) => {
784
- G || (N = !1);
785
- }), N && (O == null || O(), S(m.current), o && (u == null || u()), r && r());
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 : C, anchorX: l, children: g }, E);
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
- }, Me = (e) => e * 1e3, _e = (e) => e / 1e3, Is = {
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, E = !1) => (n || v(), P.schedule(O, g, E)), x;
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: Q, cancel: $e, state: de, steps: mn } = Ns(typeof requestAnimationFrame < "u" ? requestAnimationFrame : Ce, !0), Fs = ut({ strict: !1 }), ai = {
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, ye(on));
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 } = ye(on), a = ye(Fs), u = ye(rn), c = ye(or).reducedMotion, f = ge(null);
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 = ye(Ws);
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 = ge(!1);
1026
- Vs(() => {
1025
+ const v = ye(!1);
1026
+ Ms(() => {
1027
1027
  h && v.current && h.update(n, u);
1028
1028
  });
1029
- const y = n[Us], w = ge(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)));
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
- ...ye(or),
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 = ye(ir).id;
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 = ye(Fs).strict;
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 ve = (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 = {
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"), Ve = /* @__PURE__ */ _t("%"), I = /* @__PURE__ */ _t("px"), pl = /* @__PURE__ */ _t("vh"), ml = /* @__PURE__ */ _t("vw"), ui = {
1140
- ...Ve,
1141
- parse: (e) => Ve.parse(e) / 100,
1142
- transform: (e) => Ve.transform(e * 100)
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: I,
1145
- borderTopWidth: I,
1146
- borderRightWidth: I,
1147
- borderBottomWidth: I,
1148
- borderLeftWidth: I,
1149
- borderRadius: I,
1150
- radius: I,
1151
- borderTopLeftRadius: I,
1152
- borderTopRightRadius: I,
1153
- borderBottomRightRadius: I,
1154
- borderBottomLeftRadius: I,
1155
- width: I,
1156
- maxWidth: I,
1157
- height: I,
1158
- maxHeight: I,
1159
- top: I,
1160
- right: I,
1161
- bottom: I,
1162
- left: I,
1163
- padding: I,
1164
- paddingTop: I,
1165
- paddingRight: I,
1166
- paddingBottom: I,
1167
- paddingLeft: I,
1168
- margin: I,
1169
- marginTop: I,
1170
- marginRight: I,
1171
- marginBottom: I,
1172
- marginLeft: I,
1173
- backgroundPositionX: I,
1174
- backgroundPositionY: I
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: I,
1188
- translateX: I,
1189
- translateY: I,
1190
- translateZ: I,
1191
- x: I,
1192
- y: I,
1193
- z: I,
1194
- perspective: I,
1195
- transformPerspective: I,
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: I
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: I,
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
- !ve(t[r]) && !Ks(r, n) && (e[r] = t[r]);
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] = I.transform(-r);
1322
- const o = I.transform(t), l = I.transform(n);
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 : I.transform(t + n * 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(() => ve(f) ? f.get() : f, [f]);
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), Ml = (e) => Boolean(e && typeof e == "object" && e.mix && e.toValue), Vl = (e) => _n(e) ? e[e.length - 1] || 0 : 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 = ve(e) ? e.get() : e;
1398
- return Ml(t) ? t.toValue() : t;
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 = ye(on), i = ye(rn), s = () => Ol(e, t, r, i);
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
- (ve(i[o]) || t.style && ve(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]);
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 (ve(e[i]) || ve(t[i])) {
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 && Q.read(() => {
1535
- Zs(n, r), Q.render(() => {
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 Mt(e, t, n) {
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(de.isProcessing || Is.useManualTiming ? de.timestamp : performance.now()), Gt),
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(), Q.read(() => {
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 Vt(e, t) {
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, Vt(n));
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 = Mt(e, t);
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 = Vl(s[o]);
1958
+ const l = Ml(s[o]);
1959
1959
  ec(e, o, l);
1960
1960
  }
1961
1961
  }
1962
1962
  function nc(e) {
1963
- return Boolean(ve(e) && e.add);
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))), Mr = (e) => 1 - Math.sin(Math.acos(e)), xo = mo(Mr), bo = po(Mr), To = (e) => /^0[^.\s]+$/u.test(e);
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, Vr = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
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(Vr);
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) + ", " + Ve.transform(St(t)) + ", " + Ve.transform(St(n)) + ", " + St(Dt.transform(r)) + ")"
2032
- }, pe = {
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(Vr)) === null || t === void 0 ? void 0 : t.length) || 0) + (((n = e.match(dc)) === null || n === void 0 ? void 0 : n.length) || 0) > 0;
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) => (pe.test(a) ? (r.color.push(s), i.push(Po), n.push(pe.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);
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 += pe.transform(i[o]) : s += i[o];
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(Vr) || [];
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: pe,
2098
- backgroundColor: pe,
2099
- outlineColor: pe,
2100
- fill: pe,
2101
- stroke: pe,
2102
- borderColor: pe,
2103
- borderTopColor: pe,
2104
- borderRightColor: pe,
2105
- borderBottomColor: pe,
2106
- borderLeftColor: pe,
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 === I, wi = (e, t) => parseFloat(e.split(", ")[t]), Si = (e, t) => (n, { transform: r }) => {
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, Q.read(Ao), Q.resolveKeyframes(jo))) : (this.readKeyframes(), this.complete());
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 Mc = 4;
2234
- function Mo(e, t, n = 1) {
2235
- Be(n <= Mc, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);
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) ? Mo(i, t, n + 1) : i;
2244
+ return pr(i) ? Vo(i, t, n + 1) : i;
2245
2245
  }
2246
- const Vo = (e) => (t) => t.test(e), Vc = {
2246
+ const Mo = (e) => (t) => t.test(e), Mc = {
2247
2247
  test: (e) => e === "auto",
2248
2248
  parse: (e) => e
2249
- }, Oo = [pt, I, Ve, Ne, ml, pl, Vc], Pi = (e) => Oo.find(Vo(e));
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 = Mo(u, n.current);
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
- }, ne = (e, t, n) => e + (t - e) * n;
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 = ne(n.alpha, r.alpha, s), qe.transform(i));
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) => ne(e, t, 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 : pe.test(e) ? Ri : Yc : Array.isArray(e) ? _o : typeof e == "object" ? pe.test(e) ? Ri : Wc : 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" ? ne(e, t, n) : _r(e)(e, t);
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 te = {
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 = te.duration, bounce: t = te.bounce, velocity: n = te.velocity, mass: r = te.mass }) {
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 <= Me(te.maxDuration), "Spring duration must be 10 seconds or less");
2494
+ dt(e <= Ve(ie.maxDuration), "Spring duration must be 10 seconds or less");
2495
2495
  let o = 1 - t;
2496
- o = Ie(te.minDamping, te.maxDamping, o), e = Ie(te.minDuration, te.maxDuration, _e(e)), o < 1 ? (i = (u) => {
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 = Me(e), isNaN(a))
2510
+ if (e = Ve(e), isNaN(a))
2511
2511
  return {
2512
- stiffness: te.stiffness,
2513
- damping: te.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: te.velocity,
2542
- stiffness: te.stiffness,
2543
- damping: te.damping,
2544
- mass: te.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: te.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: te.mass
2562
+ mass: ie.mass
2563
2563
  }, t.isResolvedFromDuration = !0;
2564
2564
  }
2565
2565
  return t;
2566
2566
  }
2567
- function Fo(e = te.visualDuration, t = te.bounce) {
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 ? te.restSpeed.granular : te.restSpeed.default), i || (i = S ? te.restDelta.granular : te.restDelta.default);
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 = (E) => {
2583
- const z = Math.exp(-y * x * E);
2584
- return o - z * ((v + y * x * w) / g * Math.sin(g * E) + w * Math.cos(g * E));
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 = (E) => {
2591
- const z = Math.exp(-y * x * E), C = Math.min(g * E, 300);
2592
- return o - z * ((v + y * x * w) * Math.sinh(C) + g * w * Math.cosh(C)) / g;
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 E = P(g);
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 ? Me(v) : No(P, g, E));
2604
- const C = Math.abs(z) <= r, N = Math.abs(o - E) <= i;
2605
- l.done = C && N;
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 : E, l;
2607
+ return l.value = l.done ? o : M, l;
2608
2608
  },
2609
2609
  toString: () => {
2610
- const g = Math.min(no(O), In), E = ro((z) => O.next(g * z).value, g, 30);
2611
- return g + "ms " + E;
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 = (C) => l !== void 0 && C < l || a !== void 0 && C > a, v = (C) => l === void 0 ? a : a === void 0 || Math.abs(l - C) < Math.abs(a - C) ? l : a;
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 = (C) => -y * Math.exp(-C / r), P = (C) => x + S(C), O = (C) => {
2625
- const N = S(C), G = P(C);
2626
- h.done = Math.abs(N) <= u, h.value = h.done ? x : G;
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, E;
2629
- const z = (C) => {
2630
- m(h.value) && (g = C, E = Fo({
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, C, h.value),
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: (C) => {
2642
- let N = !1;
2643
- return !E && g === void 0 && (N = !0, O(C), z(C)), g !== void 0 && C >= g ? E.next(C - g) : (!N && O(C), h);
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: Mr,
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
- }, Mi = (e) => {
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(ne(n, 1, i));
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(Mi) : Mi(r), s = {
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: () => Q.update(t, !0),
2735
+ start: () => ee.update(t, !0),
2736
2736
  stop: () => $e(t),
2737
- now: () => de.isProcessing ? de.timestamp : Oe.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: C } = this.options;
2789
- return { done: !0, value: C[C.length - 1] };
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 C = Math.min(this.currentTime, c) / f;
2801
- let N = Math.floor(C), G = C % 1;
2802
- !G && C >= 1 && (G = 1), G === 1 && N--, N = Math.min(N, m + 1), Boolean(N % 2) && (v === "reverse" ? (G = 1 - G, y && (G -= y / f)) : v === "mirror" && (O = o)), P = Ie(0, 1, G) * f;
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: E } = g;
2807
- !S && u !== null && (E = this.speed >= 0 ? this.currentTime >= c : this.currentTime <= 0);
2808
- const z = this.holdTime === null && (this.state === "finished" || this.state === "running" && E);
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 = Me(t), this.currentTime = t, this.holdTime !== null || this.speed === 0 ? this.holdTime = t : this.driver && (this.startTime = this.driver.now() - t / this.speed);
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 Vi extends ko {
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 = Me(t);
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 = Me(this.time);
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 - Me(a);
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 = Me(c.duration)), c.repeatDelay && (c.repeatDelay = Me(c.repeatDelay)), c.from !== void 0 && (c.keyframes[0] = c.from);
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 Q.update(() => {
3114
+ return ee.update(() => {
3115
3115
  c.onUpdate(h), c.onComplete();
3116
3116
  }), new Bl([]);
3117
3117
  }
3118
- return !s && Vi.supports(c) ? new Vi(c) : new Ir(c);
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, Q);
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
- Q.update(() => {
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 = Mt(e, t, n.type === "exit" ? (r = e.presenceContext) === null || r === void 0 ? void 0 : r.custom : void 0);
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" ? Mt(e, t, n.custom) : t;
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 Mu(e) {
3225
+ function Vu(e) {
3226
3226
  return (t) => Promise.all(t.map(({ animation: n, options: r }) => Ru(e, n, r)));
3227
3227
  }
3228
- function Vu(e) {
3229
- let t = Mu(e), n = Oi(), r = !0;
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 = Mt(e, c, a === "exit" ? (f = e.presenceContext) === null || f === void 0 ? void 0 : f.custom : void 0);
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 E = P === c[x] && P !== u[x] && O;
3249
- if (E && r && e.manuallyAnimateOnMount && (E = !1), S.protectedKeys = { ...m }, !S.isActive && g === null || !P && !S.prevProp || an(P) || typeof P == "boolean")
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 C = z || x === a && S.isActive && !E && O || w > v && O, N = !1;
3253
- const G = Array.isArray(P) ? P : [P];
3254
- let ee = G.reduce(i(x), {});
3255
- g === !1 && (ee = {});
3256
- const { prevResolvedValues: xe = {} } = S, ae = {
3257
- ...xe,
3258
- ...ee
3259
- }, B = (H) => {
3260
- C = !0, h.has(H) && (N = !0, h.delete(H)), S.needsAnimating[H] = !0;
3261
- const re = e.getValue(H);
3262
- re && (re.liveStyle = !1);
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 H in ae) {
3265
- const re = ee[H], be = xe[H];
3266
- if (m.hasOwnProperty(H))
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(re) && _n(be) ? b = !Wo(re, be) : b = re !== be, b ? re != null ? B(H) : h.add(H) : re !== void 0 && h.has(H) ? B(H) : S.protectedKeys[H] = !0;
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 = ee, S.isActive && (m = { ...m, ...ee }), r && e.blockInitialAnimation && (C = !1), C && (!(E && z) || N) && f.push(...G.map((H) => ({
3272
- animation: H,
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 = Mt(e, Array.isArray(u.initial) ? u.initial[0] : u.initial);
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 = Vu(t));
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 Se(e) {
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 = ne(t.min, t.max, e.origin), e.scale = Se(n) / Se(t), e.translate = ne(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);
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 + Se(t);
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 + Se(t);
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 }), oe = () => ({
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 = ne(e.min, e.max, i);
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 } = de;
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), Q.update(this.updatePoint, !0);
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 } = de;
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 > Me(t))); )
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 ? ne(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? ne(n, e, r.max) : Math.min(e, n)), e;
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 = Se(e), i = Se(t);
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 = oe(), this.visualElement = 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 = 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 (Ve.test(x)) {
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 = Se(P) * (parseFloat(x) / 100));
3687
+ P && (x = we(P) * (parseFloat(x) / 100));
3688
3688
  }
3689
3689
  }
3690
3690
  this.originPoint[w] = x;
3691
- }), v && Q.postRender(() => v(c, f)), Fn(this.visualElement, "transform");
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 && Q.postRender(() => s(t, n));
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] - ne(o, l, 0.5));
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(ne(a, u, i[o]));
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()), Q.read(r);
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 && Q.postRender(() => e(t, n));
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 && Q.postRender(() => i(s, o));
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 (I.test(e))
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 = ne(l, a, 0.5);
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() || Q.postRender(() => {
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 = ye(ir);
3998
- return p.exports.jsx(ff, { ...e, layoutGroup: r, switchLayoutGroup: ye(Ws), isPresent: t, safeToRemove: n });
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 = ve(e) ? e : Vt(e);
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 Q.read(r, !0), () => $e(r);
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" || I.test(e);
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 = ne(
4047
+ i ? (e.opacity = se(
4048
4048
  0,
4049
4049
  n.opacity !== void 0 ? n.opacity : 1,
4050
4050
  bf(r)
4051
- ), e.opacityExit = ne(t.opacity !== void 0 ? t.opacity : 1, 0, Tf(r))) : s && (e.opacity = ne(t.opacity !== void 0 ? t.opacity : 1, n.opacity !== void 0 ? n.opacity : 1, r));
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(ne(Ji(a), Ji(u), r), 0), (Ve.test(u) || Ve.test(a)) && (e[l] += "%")) : e[l] = u;
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 = ne(t.rotate || 0, n.rotate || 0, r));
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 (Ve.test(t) && (t = parseFloat(t), t = ne(o.min, o.max, t / 100) - o.min), typeof t != "number")
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 = ne(s.min, s.max, r);
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 Se(e.x) / Se(e.y);
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", Q, !(i || s));
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(Vf), this.nodes.forEach(If), this.nodes.forEach(Nf), this.nodes.forEach(Of), Fe.addProjectionMetrics && Fe.addProjectionMetrics(Ge);
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(Mf), this.clearAllSnapshots();
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
- de.delta = Ie(0, 1e3 / 60, l - de.timestamp), de.timestamp = l, de.isProcessing = !0, mn.update.process(de), mn.preRender.process(de), mn.render.process(de), de.isProcessing = !1;
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, Q.preRender(this.updateProjection, !1, !0));
4312
+ this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, ee.preRender(this.updateProjection, !1, !0));
4313
4313
  }
4314
4314
  scheduleCheckAfterUnmount() {
4315
- Q.postRender(() => {
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 && !Se(this.snapshot.measuredBox.x) && !Se(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
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 = oe(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
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 oe();
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 = oe();
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 = oe();
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 = oe();
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 = oe(), f = u.measurePageBox();
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 !== de.timestamp && this.relativeParent.resolveTargetDelta(!0);
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 = de.timestamp, !this.targetDelta && !this.relativeTarget) {
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 = oe(), this.relativeTargetOrigin = oe(), Rt(this.relativeTargetOrigin, this.layout.layoutBox, m.layout.layoutBox), je(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
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 = oe(), this.targetWithTransforms = oe()), 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) {
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 = oe(), this.relativeTargetOrigin = oe(), Rt(this.relativeTargetOrigin, this.target, m.target), je(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
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 === de.timestamp && (u = !1), u)
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 = oe());
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 = oe(), 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));
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 = oe()), je(P, this.relativeTarget)), y && (this.animationValues = c, xf(c, u, this.latestValues, g, S, x)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = g;
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 = Q.update(() => {
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 || oe();
4534
- const f = Se(this.layout.layoutBox.x);
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 = Se(this.layout.layoutBox.y);
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 Mf(e) {
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 = Se(h);
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 = Se(r[f]);
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 = oe();
4664
+ const v = ce();
4665
4665
  Rt(v, n.layoutBox, h.layoutBox);
4666
- const y = oe();
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 Vf(e) {
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 = ne(t.translate, 0, n), e.scale = ne(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
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 = ne(t.min, n.min, r), e.max = ne(t.max, n.max, r);
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 && Q.postRender(() => s(t, Ft(t)));
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 && Q.postRender(() => s(t, Ft(t)));
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, pe, Ue], ld = (e) => ad.find(Vo(e)), cd = /* @__PURE__ */ new WeakMap();
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 (ve(i))
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 (ve(s))
4926
- e.addValue(r, Vt(i, { owner: e }));
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, Vt(o !== void 0 ? o : i, { owner: e }));
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, Q.render(this.render, !1, !0));
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 && ve(v) && v.set(a[m], !1);
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 && Q.preRender(this.notifyUpdate), r && this.projection && (this.projection.isTransformDirty = !0);
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) : oe();
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 = Vt(n === null ? void 0 : n, { owner: this }), this.addValue(t, r)), 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, ve(i) ? i.get() : i)), ve(i) ? i.get() : i;
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 && !ve(s) ? s : this.initialValues[t] !== void 0 && i === void 0 ? void 0 : this.baseTarget[t];
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
- ve(t) && (this.childSubscription = t.on("change", (n) => {
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 = oe, this.updateDimensions = () => {
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 && Q.postRender(this.updateDimensions);
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 = ge(null), [o, l] = me(!1);
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] = me(""), [f, h] = me(!1), [m, v] = me(0), [y, w] = me(null), [x, S] = me(null), [P, O] = me(0), g = ge(null), E = ge([]), z = ge(null), C = ge(null), N = ge(null), [G, ee] = me(!1), xe = (D) => {
5398
- const R = D.target.value;
5399
- console.log("Input", R), l ? a((L) => L ? new wt({
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: R,
5401
+ text: C,
5402
5402
  isEdited: !0
5403
- }) : void 0) : c(R);
5404
- const M = R.match(/(\S+)$/);
5405
- ae(M);
5406
- }, ae = (D) => {
5403
+ }) : void 0) : c(C);
5404
+ const V = C.match(/(\S+)$/);
5405
+ te(V);
5406
+ }, te = (D) => {
5407
5407
  if (D) {
5408
- const R = D[0];
5408
+ const C = D[0];
5409
5409
  if (y) {
5410
- const M = D[0].split(y)[1];
5411
- S(M);
5410
+ const V = D[0].split(y)[1];
5411
+ S(V);
5412
5412
  }
5413
- o != null && o.some((M) => M.symbol === R) && w(R);
5413
+ o != null && o.some((V) => V.symbol === C) && w(C);
5414
5414
  } else
5415
5415
  w(null);
5416
- }, B = (D, R) => {
5417
- l ? a((M) => M ? new wt({
5418
- ...M,
5419
- text: M.text + R + " "
5420
- }) : void 0) : c((M) => M + R + " "), w(null), C.current.focus();
5421
- }, le = () => {
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
- }, ue = async () => {
5433
- h(!0), v(0), E.current = [], z.current = setInterval(() => {
5434
- v((M) => M + 1);
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 }), R = new MediaRecorder(D);
5437
- g.current = R, R.ondataavailable = (M) => {
5438
- M.data.size > 0 && E.current.push(M.data);
5439
- }, R.onstop = () => {
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 M = new Blob(E.current, { type: "audio/mp3" });
5442
- n(M), h(!1);
5443
- }, R.start();
5444
- }, H = () => {
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
- }, re = (D) => {
5448
- const { scrollTop: R, scrollHeight: M, clientHeight: L } = D.currentTarget;
5449
- if (R > P) {
5450
- if (R + L >= M - 1) {
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) && (ee(!0), _ == null || _.updatePageNumber(_.pagNumber + 1), O(R), setTimeout(() => {
5455
- ee(!1);
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(R);
5460
- }, be = /* @__PURE__ */ new Set([
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
- ]), V = () => {
5479
+ ]), A = () => {
5480
5480
  var D;
5481
- (D = N.current) == null || D.click();
5482
- }, U = (D) => {
5481
+ (D = X.current) == null || D.click();
5482
+ }, B = (D) => {
5483
5483
  var L, k;
5484
- const R = (L = D.target.files) == null ? void 0 : L[0];
5485
- if (!R)
5484
+ const C = (L = D.target.files) == null ? void 0 : L[0];
5485
+ if (!C)
5486
5486
  return;
5487
- let M = "";
5488
- if (R.type) {
5489
- const _ = R.type.split("/");
5490
- _.length === 2 && (M = _[1]);
5487
+ let V = "";
5488
+ if (C.type) {
5489
+ const _ = C.type.split("/");
5490
+ _.length === 2 && (V = _[1]);
5491
5491
  }
5492
- M || (M = ((k = R.name.split(".").pop()) == null ? void 0 : k.toLowerCase()) || ""), be.has(M) ? r(R) : b.has(M) ? i(R) : s(R);
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: H,
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: C,
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: xe,
5526
+ onChange: ne,
5527
5527
  onKeyDown: (D) => {
5528
- D.key === "Enter" && !D.shiftKey && (D.preventDefault(), le());
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: le,
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: V,
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: N,
5556
+ ref: X,
5557
5557
  style: { display: "none" },
5558
- onChange: U
5558
+ onChange: B
5559
5559
  }
5560
5560
  ),
5561
5561
  /* @__PURE__ */ p.exports.jsx(
5562
5562
  "input",
5563
5563
  {
5564
5564
  type: "text",
5565
- ref: C,
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: xe,
5569
+ onChange: ne,
5570
5570
  onKeyDown: (D) => {
5571
- D.key === "Enter" && !D.shiftKey && (D.preventDefault(), le());
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 ? le : ue,
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: re,
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: R, lists: M } = D;
5611
- return R ? x ? (L = M == null ? void 0 : M.filter((k) => k == null ? void 0 : k.name.includes(x))) == null ? void 0 : L.map((k, _) => /* @__PURE__ */ p.exports.jsx(
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
- R,
5616
+ C,
5617
5617
  {
5618
5618
  listsProps: k,
5619
- onClick: (W, $) => B(W, $)
5619
+ onClick: (W, $) => re(W, $)
5620
5620
  }
5621
5621
  )
5622
5622
  },
5623
5623
  _
5624
- )) : M == null ? void 0 : M.map((k, _) => /* @__PURE__ */ p.exports.jsx(
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
- R,
5629
+ C,
5630
5630
  {
5631
5631
  listsProps: k,
5632
- onClick: (W, $) => B(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: G && "Loading more items..." })
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 || {}), ie = /* @__PURE__ */ ((e) => (e[e.Telegram = 0] = "Telegram", e[e.Simple = 1] = "Simple", e))(ie || {});
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 === ie.Simple ? " border-white " : i === ie.Telegram ? " border-green-900" : ""} w-14 h-14 mr-3 flex items-center justify-center relative rounded-md p-3`,
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 === ie.Simple ? "text-white" : i === ie.Telegram ? "text-gray-900" : ""} font-medium hover:underline`,
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 === ie.Simple ? "text-gray-800" : i === ie.Telegram ? "text-gray-900" : ""} text-sm`,
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] = me(!1), [i, s] = me(0), o = ge(null);
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 === ie.Simple ? "bg-[#f8fbff]" : i === ie.Telegram ? "bg-blue-200 " : ""} `,
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 === ie.Simple ? "text-gray-700" : i === ie.Telegram ? "text-gray-600 " : ""}`,
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 === ie.Simple ? "[&>g>path]:fill-[#f8fbff]" : i === ie.Telegram ? "[&>g>path]:fill-blue-200" : ""} -rotate-180 scale-x-[-1] transition-discrete absolute -left-2 bottom-0 `
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 === ie.Telegram ? " bg-green-200" : ie.Simple ? " bg-[#4F46E5] text-white" : ""}`,
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 === ie.Telegram ? " " : ie.Simple ? " [&>path]:fill-white" : ""
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 === ie.Simple ? "text-gray-200" : r === ie.Telegram ? "text-gray-600 " : ""}`,
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 === ie.Telegram ? "[&>g>path]:fill-green-200" : ie.Simple ? "[&>g>path]:fill-[#4F46E5]" : ""} `
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 fe = { exports: {} }, An = { exports: {} }, X = {};
6009
+ var de = { exports: {} }, An = { exports: {} }, Z = {};
6010
6010
  var Ss;
6011
6011
  function Dd() {
6012
6012
  if (Ss)
6013
- return X;
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 E = g.$$typeof;
6019
- switch (E) {
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 E;
6038
+ return M;
6039
6039
  }
6040
6040
  }
6041
6041
  case n:
6042
- return E;
6042
+ return M;
6043
6043
  }
6044
6044
  }
6045
6045
  }
6046
6046
  function O(g) {
6047
6047
  return P(g) === u;
6048
6048
  }
6049
- return X.AsyncMode = a, X.ConcurrentMode = u, X.ContextConsumer = l, X.ContextProvider = o, X.Element = t, X.ForwardRef = c, X.Fragment = r, X.Lazy = v, X.Memo = m, X.Portal = n, X.Profiler = s, X.StrictMode = i, X.Suspense = f, X.isAsyncMode = function(g) {
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
- }, X.isConcurrentMode = O, X.isContextConsumer = function(g) {
6051
+ }, Z.isConcurrentMode = O, Z.isContextConsumer = function(g) {
6052
6052
  return P(g) === l;
6053
- }, X.isContextProvider = function(g) {
6053
+ }, Z.isContextProvider = function(g) {
6054
6054
  return P(g) === o;
6055
- }, X.isElement = function(g) {
6055
+ }, Z.isElement = function(g) {
6056
6056
  return typeof g == "object" && g !== null && g.$$typeof === t;
6057
- }, X.isForwardRef = function(g) {
6057
+ }, Z.isForwardRef = function(g) {
6058
6058
  return P(g) === c;
6059
- }, X.isFragment = function(g) {
6059
+ }, Z.isFragment = function(g) {
6060
6060
  return P(g) === r;
6061
- }, X.isLazy = function(g) {
6061
+ }, Z.isLazy = function(g) {
6062
6062
  return P(g) === v;
6063
- }, X.isMemo = function(g) {
6063
+ }, Z.isMemo = function(g) {
6064
6064
  return P(g) === m;
6065
- }, X.isPortal = function(g) {
6065
+ }, Z.isPortal = function(g) {
6066
6066
  return P(g) === n;
6067
- }, X.isProfiler = function(g) {
6067
+ }, Z.isProfiler = function(g) {
6068
6068
  return P(g) === s;
6069
- }, X.isStrictMode = function(g) {
6069
+ }, Z.isStrictMode = function(g) {
6070
6070
  return P(g) === i;
6071
- }, X.isSuspense = function(g) {
6071
+ }, Z.isSuspense = function(g) {
6072
6072
  return P(g) === f;
6073
- }, X.isValidElementType = function(g) {
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
- }, X.typeOf = P, X;
6075
+ }, Z.typeOf = P, Z;
6076
6076
  }
6077
- var Z = {};
6077
+ var J = {};
6078
6078
  var Ps;
6079
- function Md() {
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(A) {
6083
- return typeof A == "string" || typeof A == "function" || A === r || A === u || A === s || A === i || A === f || A === h || typeof A == "object" && A !== null && (A.$$typeof === v || A.$$typeof === m || A.$$typeof === o || A.$$typeof === l || A.$$typeof === c || A.$$typeof === w || A.$$typeof === x || A.$$typeof === S || A.$$typeof === y);
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(A) {
6086
- if (typeof A == "object" && A !== null) {
6087
- var Ee = A.$$typeof;
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 = A.type;
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, E = u, z = l, C = o, N = t, G = c, ee = r, xe = v, ae = m, B = n, le = s, ue = i, H = f, re = !1;
6118
- function be(A) {
6119
- return re || (re = !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(A) || O(A) === a;
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(A) {
6122
- return O(A) === u;
6121
+ function b(j) {
6122
+ return O(j) === u;
6123
6123
  }
6124
- function V(A) {
6125
- return O(A) === l;
6124
+ function A(j) {
6125
+ return O(j) === l;
6126
6126
  }
6127
- function U(A) {
6128
- return O(A) === o;
6127
+ function B(j) {
6128
+ return O(j) === o;
6129
6129
  }
6130
- function D(A) {
6131
- return typeof A == "object" && A !== null && A.$$typeof === t;
6130
+ function D(j) {
6131
+ return typeof j == "object" && j !== null && j.$$typeof === t;
6132
6132
  }
6133
- function R(A) {
6134
- return O(A) === c;
6133
+ function C(j) {
6134
+ return O(j) === c;
6135
6135
  }
6136
- function M(A) {
6137
- return O(A) === r;
6136
+ function V(j) {
6137
+ return O(j) === r;
6138
6138
  }
6139
- function L(A) {
6140
- return O(A) === v;
6139
+ function L(j) {
6140
+ return O(j) === v;
6141
6141
  }
6142
- function k(A) {
6143
- return O(A) === m;
6142
+ function k(j) {
6143
+ return O(j) === m;
6144
6144
  }
6145
- function _(A) {
6146
- return O(A) === n;
6145
+ function _(j) {
6146
+ return O(j) === n;
6147
6147
  }
6148
- function W(A) {
6149
- return O(A) === s;
6148
+ function W(j) {
6149
+ return O(j) === s;
6150
6150
  }
6151
- function $(A) {
6152
- return O(A) === i;
6151
+ function $(j) {
6152
+ return O(j) === i;
6153
6153
  }
6154
- function he(A) {
6155
- return O(A) === f;
6154
+ function pe(j) {
6155
+ return O(j) === f;
6156
6156
  }
6157
- Z.AsyncMode = g, Z.ConcurrentMode = E, Z.ContextConsumer = z, Z.ContextProvider = C, Z.Element = N, Z.ForwardRef = G, Z.Fragment = ee, Z.Lazy = xe, Z.Memo = ae, Z.Portal = B, Z.Profiler = le, Z.StrictMode = ue, Z.Suspense = H, Z.isAsyncMode = be, Z.isConcurrentMode = b, Z.isContextConsumer = V, Z.isContextProvider = U, Z.isElement = D, Z.isForwardRef = R, Z.isFragment = M, Z.isLazy = L, Z.isMemo = k, Z.isPortal = _, Z.isProfiler = W, Z.isStrictMode = $, Z.isSuspense = he, Z.isValidElementType = P, Z.typeOf = O;
6158
- }()), Z;
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 = Md();
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 Vd() {
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 Mn, Rs;
6213
+ var Vn, Rs;
6214
6214
  function Br() {
6215
6215
  if (Rs)
6216
- return Mn;
6216
+ return Vn;
6217
6217
  Rs = 1;
6218
6218
  var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
6219
- return Mn = e, Mn;
6219
+ return Vn = e, Vn;
6220
6220
  }
6221
- var Vn, js;
6221
+ var Mn, js;
6222
6222
  function da() {
6223
- return js || (js = 1, Vn = Function.call.bind(Object.prototype.hasOwnProperty)), Vn;
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 = Vd(), n = Br(), r = da(), i = Od(), s = function() {
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 V = b && (u && b[u] || b[c]);
6297
- if (typeof V == "function")
6298
- return V;
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: E,
6314
- node: G(),
6315
- objectOf: C,
6313
+ instanceOf: M,
6314
+ node: I(),
6315
+ objectOf: R,
6316
6316
  oneOf: z,
6317
- oneOfType: N,
6318
- shape: xe,
6319
- exact: ae
6317
+ oneOfType: X,
6318
+ shape: ne,
6319
+ exact: te
6320
6320
  };
6321
- function v(b, V) {
6322
- return b === V ? b !== 0 || 1 / b === 1 / V : b !== b && V !== V;
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, V) {
6325
- this.message = b, this.data = V && typeof V == "object" ? V : {}, this.stack = "";
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 V = {}, U = 0;
6331
- function D(M, L, k, _, W, $, he) {
6332
- if (_ = _ || h, $ = $ || k, he !== n) {
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 A = new Error(
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 A.name = "Invariant Violation", A;
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
- !V[Ee] && U < 3 && (s(
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
- ), V[Ee] = !0, U++);
6342
+ ), A[Ee] = !0, B++);
6343
6343
  }
6344
6344
  }
6345
- return L[k] == null ? M ? 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, $);
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 R = D.bind(null, !1);
6348
- return R.isRequired = D.bind(null, !0), R;
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 V(U, D, R, M, L, k) {
6352
- var _ = U[D], W = ue(_);
6351
+ function A(B, D, C, V, L, k) {
6352
+ var _ = B[D], W = U(_);
6353
6353
  if (W !== b) {
6354
- var $ = H(_);
6354
+ var $ = q(_);
6355
6355
  return new y(
6356
- "Invalid " + M + " `" + L + "` of type " + ("`" + $ + "` supplied to `" + R + "`, expected ") + ("`" + b + "`."),
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(V);
6362
+ return w(A);
6363
6363
  }
6364
6364
  function S() {
6365
6365
  return w(o);
6366
6366
  }
6367
6367
  function P(b) {
6368
- function V(U, D, R, M, L) {
6368
+ function A(B, D, C, V, L) {
6369
6369
  if (typeof b != "function")
6370
- return new y("Property `" + L + "` of component `" + R + "` has invalid PropType notation inside arrayOf.");
6371
- var k = U[D];
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 _ = ue(k);
6374
- return new y("Invalid " + M + " `" + L + "` of type " + ("`" + _ + "` supplied to `" + R + "`, expected an array."));
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, R, M, L + "[" + W + "]", n);
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(V);
6383
+ return w(A);
6384
6384
  }
6385
6385
  function O() {
6386
- function b(V, U, D, R, M) {
6387
- var L = V[U];
6386
+ function b(A, B, D, C, V) {
6387
+ var L = A[B];
6388
6388
  if (!l(L)) {
6389
- var k = ue(L);
6390
- return new y("Invalid " + R + " `" + M + "` of type " + ("`" + k + "` supplied to `" + D + "`, expected a single ReactElement."));
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(V, U, D, R, M) {
6398
- var L = V[U];
6397
+ function b(A, B, D, C, V) {
6398
+ var L = A[B];
6399
6399
  if (!e.isValidElementType(L)) {
6400
- var k = ue(L);
6401
- return new y("Invalid " + R + " `" + M + "` of type " + ("`" + k + "` supplied to `" + D + "`, expected a single ReactElement type."));
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 E(b) {
6408
- function V(U, D, R, M, L) {
6409
- if (!(U[D] instanceof b)) {
6410
- var k = b.name || h, _ = be(U[D]);
6411
- return new y("Invalid " + M + " `" + L + "` of type " + ("`" + _ + "` supplied to `" + R + "`, expected ") + ("instance of `" + k + "`."));
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(V);
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 V(U, D, R, M, L) {
6423
- for (var k = U[D], _ = 0; _ < b.length; _++)
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(he, A) {
6427
- var Ee = H(A);
6428
- return Ee === "symbol" ? String(A) : A;
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 " + M + " `" + L + "` of value `" + String(k) + "` " + ("supplied to `" + R + "`, expected one of " + W + "."));
6430
+ return new y("Invalid " + V + " `" + L + "` of value `" + String(k) + "` " + ("supplied to `" + C + "`, expected one of " + W + "."));
6431
6431
  }
6432
- return w(V);
6432
+ return w(A);
6433
6433
  }
6434
- function C(b) {
6435
- function V(U, D, R, M, L) {
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 `" + R + "` has invalid PropType notation inside objectOf.");
6438
- var k = U[D], _ = ue(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 " + M + " `" + L + "` of type " + ("`" + _ + "` supplied to `" + R + "`, expected an object."));
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, R, M, L + "." + W, n);
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(V);
6449
+ return w(A);
6450
6450
  }
6451
- function N(b) {
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 V = 0; V < b.length; V++) {
6455
- var U = b[V];
6456
- if (typeof U != "function")
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 " + re(U) + " at index " + V + "."
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(R, M, L, k, _) {
6461
+ function D(C, V, L, k, _) {
6462
6462
  for (var W = [], $ = 0; $ < b.length; $++) {
6463
- var he = b[$], A = he(R, M, L, k, _, n);
6464
- if (A == null)
6463
+ var pe = b[$], j = pe(C, V, L, k, _, n);
6464
+ if (j == null)
6465
6465
  return null;
6466
- A.data && r(A.data, "expectedType") && W.push(A.data.expectedType);
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 G() {
6474
- function b(V, U, D, R, M) {
6475
- return B(V[U]) ? null : new y("Invalid " + R + " `" + M + "` supplied to " + ("`" + D + "`, expected a ReactNode."));
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 ee(b, V, U, D, R) {
6479
+ function K(b, A, B, D, C) {
6480
6480
  return new y(
6481
- (b || "React class") + ": " + V + " type `" + U + "." + D + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + R + "`."
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 xe(b) {
6485
- function V(U, D, R, M, L) {
6486
- var k = U[D], _ = ue(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 " + M + " `" + L + "` of type `" + _ + "` " + ("supplied to `" + R + "`, expected `object`."));
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 ee(R, M, L, W, H($));
6493
- var he = $(k, W, R, M, L + "." + W, n);
6494
- if (he)
6495
- return he;
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(V);
6499
+ return w(A);
6500
6500
  }
6501
- function ae(b) {
6502
- function V(U, D, R, M, L) {
6503
- var k = U[D], _ = ue(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 " + M + " `" + L + "` of type `" + _ + "` " + ("supplied to `" + R + "`, expected `object`."));
6506
- var W = t({}, U[D], b);
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 he = b[$];
6509
- if (r(b, $) && typeof he != "function")
6510
- return ee(R, M, L, $, H(he));
6511
- if (!he)
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 " + M + " `" + L + "` key `" + $ + "` supplied to `" + R + "`.\nBad object: " + JSON.stringify(U[D], null, " ") + `
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 A = he(k, $, R, M, L + "." + $, n);
6517
- if (A)
6518
- return A;
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(V);
6522
+ return w(A);
6523
6523
  }
6524
- function B(b) {
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(B);
6534
+ return b.every(re);
6535
6535
  if (b === null || l(b))
6536
6536
  return !0;
6537
- var V = f(b);
6538
- if (V) {
6539
- var U = V.call(b), D;
6540
- if (V !== b.entries) {
6541
- for (; !(D = U.next()).done; )
6542
- if (!B(D.value))
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 = U.next()).done; ) {
6546
- var R = D.value;
6547
- if (R && !B(R[1]))
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 le(b, V) {
6558
- return b === "symbol" ? !0 : V ? V["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && V instanceof Symbol : !1;
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 ue(b) {
6561
- var V = typeof b;
6562
- return Array.isArray(b) ? "array" : b instanceof RegExp ? "object" : le(V, b) ? "symbol" : V;
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 H(b) {
6564
+ function q(b) {
6565
6565
  if (typeof b > "u" || b === null)
6566
6566
  return "" + b;
6567
- var V = ue(b);
6568
- if (V === "object") {
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 V;
6574
+ return A;
6575
6575
  }
6576
- function re(b) {
6577
- var V = H(b);
6578
- switch (V) {
6576
+ function oe(b) {
6577
+ var A = q(b);
6578
+ switch (A) {
6579
6579
  case "array":
6580
6580
  case "object":
6581
- return "an " + V;
6581
+ return "an " + A;
6582
6582
  case "boolean":
6583
6583
  case "date":
6584
6584
  case "regexp":
6585
- return "a " + V;
6585
+ return "a " + A;
6586
6586
  default:
6587
- return V;
6587
+ return A;
6588
6588
  }
6589
6589
  }
6590
- function be(b) {
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, Ms;
6596
+ var kn, Vs;
6597
6597
  function kd() {
6598
- if (Ms)
6598
+ if (Vs)
6599
6599
  return kn;
6600
- Ms = 1;
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
- fe.exports = Ld()(_d.isElement, Id);
6647
+ de.exports = Ld()(_d.isElement, Id);
6648
6648
  } else
6649
- fe.exports = kd()();
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: fe.exports.string,
6698
- size: fe.exports.oneOfType([fe.exports.string, fe.exports.number])
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: fe.exports.string,
6757
- size: fe.exports.oneOfType([fe.exports.string, fe.exports.number])
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: fe.exports.string,
6811
- size: fe.exports.oneOfType([fe.exports.string, fe.exports.number])
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: fe.exports.string,
6865
- size: fe.exports.oneOfType([fe.exports.string, fe.exports.number])
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
- onDeleteMessage: s
6874
+ isSendingDefultForNewMessage: s,
6875
+ isSendingDefultForEdited: o,
6876
+ onDeleteMessage: l
6875
6877
  }) => {
6876
- const o = ge(null), [l, a] = me(!1), [u, c] = me(null), [f, h] = me(), [m, v] = me(null), y = () => {
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
- o.current && (o.current.scrollTop = o.current.scrollHeight);
6880
+ a.current && (a.current.scrollTop = a.current.scrollHeight);
6879
6881
  }, 100);
6880
6882
  };
6881
6883
  ft(() => {
6882
- const C = () => {
6883
- v(null);
6884
+ const I = () => {
6885
+ w(null);
6884
6886
  };
6885
- return window.addEventListener("scroll", C, !0), () => {
6886
- window.removeEventListener("scroll", C, !0);
6887
+ return window.addEventListener("scroll", I, !0), () => {
6888
+ window.removeEventListener("scroll", I, !0);
6887
6889
  };
6888
- }, [v]);
6889
- const w = (C, N) => {
6890
- C.preventDefault();
6891
- const G = window.scrollX, ee = window.scrollY;
6892
- v({
6893
- x: C.clientX + G,
6894
- y: C.clientY + ee,
6895
- message: N
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
- }, x = () => {
6898
- v(null);
6899
- }, S = (C) => {
6900
- const N = new wt({
6899
+ }, P = () => {
6900
+ w(null);
6901
+ }, O = (I) => {
6902
+ const K = new wt({
6901
6903
  id: new Date().toString(),
6902
- text: C,
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, N]), r(N), y();
6908
- }, P = (C) => {
6910
+ n([...t, K]), r(K), x();
6911
+ }, g = (I) => {
6909
6912
  n(
6910
- t.map((N) => N.id === C.id ? C : N)
6911
- ), i(C);
6912
- }, O = (C) => {
6913
- const N = URL.createObjectURL(C), G = new wt({
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: N,
6919
+ attachmentUrl: K,
6917
6920
  attachmentType: ke.Voice,
6918
- attachmentBlob: C,
6921
+ attachmentBlob: I,
6919
6922
  user: e,
6920
6923
  isRightSided: !0,
6921
6924
  createdDate: new Date().toString()
6922
6925
  });
6923
- n([...t, G]), r(G), y();
6924
- }, g = (C, N) => {
6925
- const G = URL.createObjectURL(C), ee = new wt({
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: G,
6929
- attachmentBlob: C,
6930
- attachmentType: N,
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, ee]), r(ee), y();
6938
+ n([...t, te]), r(te), x();
6936
6939
  };
6937
6940
  return {
6938
6941
  handleDeleteConfirmation: () => {
6939
- u && (s(u), c(null)), a(!1);
6942
+ f && (l(f), h(null)), c(!1);
6940
6943
  },
6941
- handleCloseContextMenu: x,
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: (C) => {
6948
- h(t.find((N) => N.id === C)), x();
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: (C) => {
6956
- c(C), a(!0), x();
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"), x();
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: (C) => {
6971
- const N = t.find((G) => G.id === C);
6972
- N && navigator.clipboard.writeText(N.text), x();
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: g,
6977
- handleSendVoice: O,
6978
- handleSendMessage: S,
6979
- handleContextMenu: w,
6980
- isModalOpen: l,
6981
- contextMenu: m,
6982
- chatRef: o,
6983
- setIsModalOpen: a,
6984
- messageToEdit: f,
6985
- setMessageToEdit: h,
6986
- handleEditMessage: P
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
- backgroundImage: h,
7002
- them: m = ie.Telegram
7004
+ isSendingDefultForNewMessage: h,
7005
+ isSendingDefultForEdited: m,
7006
+ backgroundImage: v,
7007
+ them: y = ae.Telegram
7003
7008
  }) => {
7004
- var xe, ae;
7009
+ var re, fe;
7005
7010
  const {
7006
- handleDeleteConfirmation: v,
7007
- handleCloseContextMenu: y,
7008
- handleSendFile: w,
7009
- handleSendVoice: x,
7010
- handleSendMessage: S,
7011
- handleContextMenu: P,
7012
- contextMenuItems: O,
7013
- isModalOpen: g,
7014
- contextMenu: E,
7015
- chatRef: z,
7016
- setIsModalOpen: C,
7017
- messageToEdit: N,
7018
- setMessageToEdit: G,
7019
- handleEditMessage: ee
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(" + h + ")",
7042
+ background: "url(" + v + ")",
7036
7043
  ...i
7037
7044
  },
7038
- onClick: y,
7045
+ onClick: x,
7039
7046
  children: [
7040
7047
  /* @__PURE__ */ p.exports.jsx(
7041
7048
  "div",
7042
7049
  {
7043
- ref: z,
7044
- className: `flex flex-col gap-2 flex-1 p-3 pb-16 ${E ? "overflow-hidden pr-[22px]" : "overflow-y-scroll"}`,
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((B, le) => {
7046
- var re, be, b;
7047
- const ue = B != null && B.attachmentUrl ? /* @__PURE__ */ p.exports.jsx(
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: B.attachmentUrl,
7051
- attachmentType: B == null ? void 0 : B.attachmentType,
7052
- attachmentFormat: B == null ? void 0 : B.attachmentFormat
7057
+ attachmentUrl: U.attachmentUrl,
7058
+ attachmentType: U == null ? void 0 : U.attachmentType,
7059
+ attachmentFormat: U == null ? void 0 : U.attachmentFormat
7053
7060
  },
7054
- le
7061
+ q
7055
7062
  ) : null;
7056
- if (B.isRightSided)
7063
+ if (U.isRightSided)
7057
7064
  return /* @__PURE__ */ p.exports.jsx(
7058
7065
  Ad,
7059
7066
  {
7060
- media: ue,
7061
- handleContextMenu: P,
7062
- message: B,
7063
- them: m
7067
+ media: oe,
7068
+ handleContextMenu: g,
7069
+ message: U,
7070
+ them: y
7064
7071
  },
7065
- le
7072
+ q
7066
7073
  );
7067
- const H = ((be = (re = s[le - 1]) == null ? void 0 : re.user) == null ? void 0 : be.id) !== ((b = B == null ? void 0 : B.user) == null ? void 0 : b.id);
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: H,
7072
- media: ue,
7073
- handleContextMenu: P,
7074
- message: B,
7075
- them: m
7078
+ showUserProfile: Se,
7079
+ media: oe,
7080
+ handleContextMenu: g,
7081
+ message: U,
7082
+ them: y
7076
7083
  },
7077
- le
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: g,
7086
- onClose: () => C(!1),
7087
- onConfirm: v,
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
- E && ((xe = E == null ? void 0 : E.message) != null && xe.id) ? /* @__PURE__ */ p.exports.jsx(
7099
+ R && ((re = R == null ? void 0 : R.message) != null && re.id) ? /* @__PURE__ */ p.exports.jsx(
7093
7100
  vd,
7094
7101
  {
7095
- items: O,
7096
- isVisible: Boolean(E),
7097
- messageId: String(E == null ? void 0 : E.message.id),
7098
- isCurrentUserMessage: ((ae = E == null ? void 0 : E.message) == null ? void 0 : ae.user.id) === o.id,
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: E == null ? void 0 : E.x,
7101
- y: E == null ? void 0 : E.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: x,
7109
- onSendMessage: S,
7110
- onFileSend: (B) => w(B, ke.File),
7111
- onImageSend: (B) => w(B, ke.Image),
7112
- onVideoSend: (B) => w(B, ke.Video),
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: N,
7115
- setMessageToEdit: G,
7116
- onEditMessage: ee
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
- ie as ChatThemEntity,
7134
+ ae as ChatThemEntity,
7128
7135
  wt as MessageEntity
7129
7136
  };
7130
7137
  //# sourceMappingURL=index.es.js.map