react-pro-messenger 1.0.12 → 1.0.13

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
@@ -2,7 +2,7 @@ var Da = Object.defineProperty;
2
2
  var Ma = (e, t, n) => t in e ? Da(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var Oe = (e, t, n) => (Ma(e, typeof t != "symbol" ? t + "" : t, n), n);
4
4
  import * as Qn from "react";
5
- import Te, { useCallback as Jt, createContext as ct, useRef as ye, useId as er, useContext as pe, useInsertionEffect as Ds, useMemo as He, useEffect as Qt, Children as Oa, isValidElement as La, useLayoutEffect as ka, useState as be, forwardRef as Mt, Fragment as Ms, createElement as _a, Component as Ia } from "react";
5
+ import Te, { useCallback as Jt, createContext as ct, useRef as ve, useId as er, useContext as pe, useInsertionEffect as Ds, useMemo as He, useEffect as Qt, Children as Oa, isValidElement as La, useLayoutEffect as ka, useState as be, forwardRef as Mt, Fragment as Ms, createElement as _a, Component as Ia } from "react";
6
6
  var g = { exports: {} }, pt = {};
7
7
  var ni;
8
8
  function Fa() {
@@ -27,49 +27,49 @@ var ri;
27
27
  function Na() {
28
28
  return ri || (ri = 1, process.env.NODE_ENV !== "production" && function() {
29
29
  var e = Te, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), l = Symbol.for("react.context"), a = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), v = Symbol.iterator, y = "@@iterator";
30
- function P(d) {
30
+ function w(d) {
31
31
  if (d === null || typeof d != "object")
32
32
  return null;
33
- var w = v && d[v] || d[y];
34
- return typeof w == "function" ? w : null;
33
+ var T = v && d[v] || d[y];
34
+ return typeof T == "function" ? T : null;
35
35
  }
36
36
  var x = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
37
- function S(d) {
37
+ function P(d) {
38
38
  {
39
- for (var w = arguments.length, E = new Array(w > 1 ? w - 1 : 0), O = 1; O < w; O++)
40
- E[O - 1] = arguments[O];
41
- T("error", d, E);
39
+ for (var T = arguments.length, R = new Array(T > 1 ? T - 1 : 0), O = 1; O < T; O++)
40
+ R[O - 1] = arguments[O];
41
+ S("error", d, R);
42
42
  }
43
43
  }
44
- function T(d, w, E) {
44
+ function S(d, T, R) {
45
45
  {
46
46
  var O = x.ReactDebugCurrentFrame, H = O.getStackAddendum();
47
- H !== "" && (w += "%s", E = E.concat([H]));
48
- var J = E.map(function(K) {
49
- return String(K);
47
+ H !== "" && (T += "%s", R = R.concat([H]));
48
+ var Q = R.map(function(q) {
49
+ return String(q);
50
50
  });
51
- J.unshift("Warning: " + w), Function.prototype.apply.call(console[d], console, J);
51
+ Q.unshift("Warning: " + T), Function.prototype.apply.call(console[d], console, Q);
52
52
  }
53
53
  }
54
- var V = !1, m = !1, A = !1, F = !1, j = !1, G;
55
- G = Symbol.for("react.module.reference");
56
- function ee(d) {
57
- return !!(typeof d == "string" || typeof d == "function" || d === r || d === s || j || d === i || d === u || d === c || F || d === p || V || m || A || typeof d == "object" && d !== null && (d.$$typeof === h || d.$$typeof === f || d.$$typeof === o || d.$$typeof === l || d.$$typeof === a || d.$$typeof === G || d.getModuleId !== void 0));
54
+ var E = !1, m = !1, j = !1, F = !1, V = !1, N;
55
+ N = Symbol.for("react.module.reference");
56
+ function J(d) {
57
+ return !!(typeof d == "string" || typeof d == "function" || d === r || d === s || V || d === i || d === u || d === c || F || d === p || E || m || j || 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));
58
58
  }
59
- function ue(d, w, E) {
59
+ function ce(d, T, R) {
60
60
  var O = d.displayName;
61
61
  if (O)
62
62
  return O;
63
- var H = w.displayName || w.name || "";
64
- return H !== "" ? E + "(" + H + ")" : E;
63
+ var H = T.displayName || T.name || "";
64
+ return H !== "" ? R + "(" + H + ")" : R;
65
65
  }
66
- function xe(d) {
66
+ function Pe(d) {
67
67
  return d.displayName || "Context";
68
68
  }
69
69
  function oe(d) {
70
70
  if (d == null)
71
71
  return null;
72
- 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")
72
+ if (typeof d.tag == "number" && P("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof d == "function")
73
73
  return d.displayName || d.name || null;
74
74
  if (typeof d == "string")
75
75
  return d;
@@ -90,20 +90,20 @@ function Na() {
90
90
  if (typeof d == "object")
91
91
  switch (d.$$typeof) {
92
92
  case l:
93
- var w = d;
94
- return xe(w) + ".Consumer";
93
+ var T = d;
94
+ return Pe(T) + ".Consumer";
95
95
  case o:
96
- var E = d;
97
- return xe(E._context) + ".Provider";
96
+ var R = d;
97
+ return Pe(R._context) + ".Provider";
98
98
  case a:
99
- return ue(d, d.render, "ForwardRef");
99
+ return ce(d, d.render, "ForwardRef");
100
100
  case f:
101
101
  var O = d.displayName || null;
102
102
  return O !== null ? O : oe(d.type) || "Memo";
103
103
  case h: {
104
- var H = d, J = H._payload, K = H._init;
104
+ var H = d, Q = H._payload, q = H._init;
105
105
  try {
106
- return oe(K(J));
106
+ return oe(q(Q));
107
107
  } catch {
108
108
  return null;
109
109
  }
@@ -111,14 +111,14 @@ function Na() {
111
111
  }
112
112
  return null;
113
113
  }
114
- var re = Object.assign, Pe = 0, B, D, L, ae, b, C, k;
114
+ var re = Object.assign, ge = 0, $, D, L, ae, b, C, k;
115
115
  function _() {
116
116
  }
117
117
  _.__reactDisabledLog = !0;
118
118
  function I() {
119
119
  {
120
- if (Pe === 0) {
121
- B = console.log, D = console.info, L = console.warn, ae = console.error, b = console.group, C = console.groupCollapsed, k = console.groupEnd;
120
+ if (ge === 0) {
121
+ $ = console.log, D = console.info, L = console.warn, ae = console.error, b = console.group, C = console.groupCollapsed, k = console.groupEnd;
122
122
  var d = {
123
123
  configurable: !0,
124
124
  enumerable: !0,
@@ -135,12 +135,12 @@ function Na() {
135
135
  groupEnd: d
136
136
  });
137
137
  }
138
- Pe++;
138
+ ge++;
139
139
  }
140
140
  }
141
- function Y() {
141
+ function K() {
142
142
  {
143
- if (Pe--, Pe === 0) {
143
+ if (ge--, ge === 0) {
144
144
  var d = {
145
145
  configurable: !0,
146
146
  enumerable: !0,
@@ -148,7 +148,7 @@ function Na() {
148
148
  };
149
149
  Object.defineProperties(console, {
150
150
  log: re({}, d, {
151
- value: B
151
+ value: $
152
152
  }),
153
153
  info: re({}, d, {
154
154
  value: D
@@ -170,65 +170,65 @@ function Na() {
170
170
  })
171
171
  });
172
172
  }
173
- Pe < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
173
+ ge < 0 && P("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
174
174
  }
175
175
  }
176
- var N = x.ReactCurrentDispatcher, $;
177
- function U(d, w, E) {
176
+ var B = x.ReactCurrentDispatcher, U;
177
+ function W(d, T, R) {
178
178
  {
179
- if ($ === void 0)
179
+ if (U === void 0)
180
180
  try {
181
181
  throw Error();
182
182
  } catch (H) {
183
183
  var O = H.stack.trim().match(/\n( *(at )?)/);
184
- $ = O && O[1] || "";
184
+ U = O && O[1] || "";
185
185
  }
186
186
  return `
187
- ` + $ + d;
187
+ ` + U + d;
188
188
  }
189
189
  }
190
- var q = !1, W;
190
+ var G = !1, z;
191
191
  {
192
192
  var de = typeof WeakMap == "function" ? WeakMap : Map;
193
- W = new de();
193
+ z = new de();
194
194
  }
195
- function R(d, w) {
196
- if (!d || q)
195
+ function A(d, T) {
196
+ if (!d || G)
197
197
  return "";
198
198
  {
199
- var E = W.get(d);
200
- if (E !== void 0)
201
- return E;
199
+ var R = z.get(d);
200
+ if (R !== void 0)
201
+ return R;
202
202
  }
203
203
  var O;
204
- q = !0;
204
+ G = !0;
205
205
  var H = Error.prepareStackTrace;
206
206
  Error.prepareStackTrace = void 0;
207
- var J;
208
- J = N.current, N.current = null, I();
207
+ var Q;
208
+ Q = B.current, B.current = null, I();
209
209
  try {
210
- if (w) {
211
- var K = function() {
210
+ if (T) {
211
+ var q = function() {
212
212
  throw Error();
213
213
  };
214
- if (Object.defineProperty(K.prototype, "props", {
214
+ if (Object.defineProperty(q.prototype, "props", {
215
215
  set: function() {
216
216
  throw Error();
217
217
  }
218
218
  }), typeof Reflect == "object" && Reflect.construct) {
219
219
  try {
220
- Reflect.construct(K, []);
220
+ Reflect.construct(q, []);
221
221
  } catch (Me) {
222
222
  O = Me;
223
223
  }
224
- Reflect.construct(d, [], K);
224
+ Reflect.construct(d, [], q);
225
225
  } else {
226
226
  try {
227
- K.call();
227
+ q.call();
228
228
  } catch (Me) {
229
229
  O = Me;
230
230
  }
231
- d.call(K.prototype);
231
+ d.call(q.prototype);
232
232
  }
233
233
  } else {
234
234
  try {
@@ -240,59 +240,59 @@ function Na() {
240
240
  }
241
241
  } catch (Me) {
242
242
  if (Me && O && typeof Me.stack == "string") {
243
- for (var z = Me.stack.split(`
244
- `), ge = O.stack.split(`
245
- `), ie = z.length - 1, le = ge.length - 1; ie >= 1 && le >= 0 && z[ie] !== ge[le]; )
243
+ for (var Y = Me.stack.split(`
244
+ `), ye = O.stack.split(`
245
+ `), ie = Y.length - 1, le = ye.length - 1; ie >= 1 && le >= 0 && Y[ie] !== ye[le]; )
246
246
  le--;
247
247
  for (; ie >= 1 && le >= 0; ie--, le--)
248
- if (z[ie] !== ge[le]) {
248
+ if (Y[ie] !== ye[le]) {
249
249
  if (ie !== 1 || le !== 1)
250
250
  do
251
- if (ie--, le--, le < 0 || z[ie] !== ge[le]) {
251
+ if (ie--, le--, le < 0 || Y[ie] !== ye[le]) {
252
252
  var Ce = `
253
- ` + z[ie].replace(" at new ", " at ");
254
- return d.displayName && Ce.includes("<anonymous>") && (Ce = Ce.replace("<anonymous>", d.displayName)), typeof d == "function" && W.set(d, Ce), Ce;
253
+ ` + Y[ie].replace(" at new ", " at ");
254
+ return d.displayName && Ce.includes("<anonymous>") && (Ce = Ce.replace("<anonymous>", d.displayName)), typeof d == "function" && z.set(d, Ce), Ce;
255
255
  }
256
256
  while (ie >= 1 && le >= 0);
257
257
  break;
258
258
  }
259
259
  }
260
260
  } finally {
261
- q = !1, N.current = J, Y(), Error.prepareStackTrace = H;
261
+ G = !1, B.current = Q, K(), Error.prepareStackTrace = H;
262
262
  }
263
- var Qe = d ? d.displayName || d.name : "", ti = Qe ? U(Qe) : "";
264
- return typeof d == "function" && W.set(d, ti), ti;
263
+ var Qe = d ? d.displayName || d.name : "", ti = Qe ? W(Qe) : "";
264
+ return typeof d == "function" && z.set(d, ti), ti;
265
265
  }
266
- function Se(d, w, E) {
267
- return R(d, !1);
266
+ function Se(d, T, R) {
267
+ return A(d, !1);
268
268
  }
269
269
  function Ze(d) {
270
- var w = d.prototype;
271
- return !!(w && w.isReactComponent);
270
+ var T = d.prototype;
271
+ return !!(T && T.isReactComponent);
272
272
  }
273
- function Ue(d, w, E) {
273
+ function Ue(d, T, R) {
274
274
  if (d == null)
275
275
  return "";
276
276
  if (typeof d == "function")
277
- return R(d, Ze(d));
277
+ return A(d, Ze(d));
278
278
  if (typeof d == "string")
279
- return U(d);
279
+ return W(d);
280
280
  switch (d) {
281
281
  case u:
282
- return U("Suspense");
282
+ return W("Suspense");
283
283
  case c:
284
- return U("SuspenseList");
284
+ return W("SuspenseList");
285
285
  }
286
286
  if (typeof d == "object")
287
287
  switch (d.$$typeof) {
288
288
  case a:
289
289
  return Se(d.render);
290
290
  case f:
291
- return Ue(d.type, w, E);
291
+ return Ue(d.type, T, R);
292
292
  case h: {
293
- var O = d, H = O._payload, J = O._init;
293
+ var O = d, H = O._payload, Q = O._init;
294
294
  try {
295
- return Ue(J(H), w, E);
295
+ return Ue(Q(H), T, R);
296
296
  } catch {
297
297
  }
298
298
  }
@@ -302,27 +302,27 @@ function Na() {
302
302
  var It = Object.prototype.hasOwnProperty, Wr = {}, zr = x.ReactDebugCurrentFrame;
303
303
  function Ft(d) {
304
304
  if (d) {
305
- var w = d._owner, E = Ue(d.type, d._source, w ? w.type : null);
306
- zr.setExtraStackFrame(E);
305
+ var T = d._owner, R = Ue(d.type, d._source, T ? T.type : null);
306
+ zr.setExtraStackFrame(R);
307
307
  } else
308
308
  zr.setExtraStackFrame(null);
309
309
  }
310
- function fa(d, w, E, O, H) {
310
+ function fa(d, T, R, O, H) {
311
311
  {
312
- var J = Function.call.bind(It);
313
- for (var K in d)
314
- if (J(d, K)) {
315
- var z = void 0;
312
+ var Q = Function.call.bind(It);
313
+ for (var q in d)
314
+ if (Q(d, q)) {
315
+ var Y = void 0;
316
316
  try {
317
- if (typeof d[K] != "function") {
318
- var ge = Error((O || "React class") + ": " + E + " 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`.");
319
- throw ge.name = "Invariant Violation", ge;
317
+ if (typeof d[q] != "function") {
318
+ var ye = Error((O || "React class") + ": " + R + " type `" + q + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof d[q] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
319
+ throw ye.name = "Invariant Violation", ye;
320
320
  }
321
- z = d[K](w, K, O, E, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
321
+ Y = d[q](T, q, O, R, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
322
322
  } catch (ie) {
323
- z = ie;
323
+ Y = ie;
324
324
  }
325
- z && !(z instanceof Error) && (Ft(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).", O || "React class", E, K, typeof z), Ft(null)), z instanceof Error && !(z.message in Wr) && (Wr[z.message] = !0, Ft(H), S("Failed %s type: %s", E, z.message), Ft(null));
325
+ Y && !(Y instanceof Error) && (Ft(H), P("%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).", O || "React class", R, q, typeof Y), Ft(null)), Y instanceof Error && !(Y.message in Wr) && (Wr[Y.message] = !0, Ft(H), P("Failed %s type: %s", R, Y.message), Ft(null));
326
326
  }
327
327
  }
328
328
  }
@@ -332,8 +332,8 @@ function Na() {
332
332
  }
333
333
  function ha(d) {
334
334
  {
335
- var w = typeof Symbol == "function" && Symbol.toStringTag, E = w && d[Symbol.toStringTag] || d.constructor.name || "Object";
336
- return E;
335
+ var T = typeof Symbol == "function" && Symbol.toStringTag, R = T && d[Symbol.toStringTag] || d.constructor.name || "Object";
336
+ return R;
337
337
  }
338
338
  }
339
339
  function pa(d) {
@@ -348,7 +348,7 @@ function Na() {
348
348
  }
349
349
  function Kr(d) {
350
350
  if (pa(d))
351
- return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ha(d)), Yr(d);
351
+ return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ha(d)), Yr(d);
352
352
  }
353
353
  var ht = x.ReactCurrentOwner, ma = {
354
354
  key: !0,
@@ -359,97 +359,97 @@ function Na() {
359
359
  ln = {};
360
360
  function ga(d) {
361
361
  if (It.call(d, "ref")) {
362
- var w = Object.getOwnPropertyDescriptor(d, "ref").get;
363
- if (w && w.isReactWarning)
362
+ var T = Object.getOwnPropertyDescriptor(d, "ref").get;
363
+ if (T && T.isReactWarning)
364
364
  return !1;
365
365
  }
366
366
  return d.ref !== void 0;
367
367
  }
368
368
  function ya(d) {
369
369
  if (It.call(d, "key")) {
370
- var w = Object.getOwnPropertyDescriptor(d, "key").get;
371
- if (w && w.isReactWarning)
370
+ var T = Object.getOwnPropertyDescriptor(d, "key").get;
371
+ if (T && T.isReactWarning)
372
372
  return !1;
373
373
  }
374
374
  return d.key !== void 0;
375
375
  }
376
- function va(d, w) {
377
- if (typeof d.ref == "string" && ht.current && w && ht.current.stateNode !== w) {
378
- var E = oe(ht.current.type);
379
- ln[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', oe(ht.current.type), d.ref), ln[E] = !0);
376
+ function va(d, T) {
377
+ if (typeof d.ref == "string" && ht.current && T && ht.current.stateNode !== T) {
378
+ var R = oe(ht.current.type);
379
+ ln[R] || (P('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', oe(ht.current.type), d.ref), ln[R] = !0);
380
380
  }
381
381
  }
382
- function xa(d, w) {
382
+ function xa(d, T) {
383
383
  {
384
- var E = function() {
385
- qr || (qr = !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)", w));
384
+ var R = function() {
385
+ qr || (qr = !0, P("%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));
386
386
  };
387
- E.isReactWarning = !0, Object.defineProperty(d, "key", {
388
- get: E,
387
+ R.isReactWarning = !0, Object.defineProperty(d, "key", {
388
+ get: R,
389
389
  configurable: !0
390
390
  });
391
391
  }
392
392
  }
393
- function ba(d, w) {
393
+ function ba(d, T) {
394
394
  {
395
- var E = function() {
396
- Gr || (Gr = !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)", w));
395
+ var R = function() {
396
+ Gr || (Gr = !0, P("%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));
397
397
  };
398
- E.isReactWarning = !0, Object.defineProperty(d, "ref", {
399
- get: E,
398
+ R.isReactWarning = !0, Object.defineProperty(d, "ref", {
399
+ get: R,
400
400
  configurable: !0
401
401
  });
402
402
  }
403
403
  }
404
- var Ta = function(d, w, E, O, H, J, K) {
405
- var z = {
404
+ var Ta = function(d, T, R, O, H, Q, q) {
405
+ var Y = {
406
406
  $$typeof: t,
407
407
  type: d,
408
- key: w,
409
- ref: E,
410
- props: K,
411
- _owner: J
408
+ key: T,
409
+ ref: R,
410
+ props: q,
411
+ _owner: Q
412
412
  };
413
- return z._store = {}, Object.defineProperty(z._store, "validated", {
413
+ return Y._store = {}, Object.defineProperty(Y._store, "validated", {
414
414
  configurable: !1,
415
415
  enumerable: !1,
416
416
  writable: !0,
417
417
  value: !1
418
- }), Object.defineProperty(z, "_self", {
418
+ }), Object.defineProperty(Y, "_self", {
419
419
  configurable: !1,
420
420
  enumerable: !1,
421
421
  writable: !1,
422
422
  value: O
423
- }), Object.defineProperty(z, "_source", {
423
+ }), Object.defineProperty(Y, "_source", {
424
424
  configurable: !1,
425
425
  enumerable: !1,
426
426
  writable: !1,
427
427
  value: H
428
- }), Object.freeze && (Object.freeze(z.props), Object.freeze(z)), z;
428
+ }), Object.freeze && (Object.freeze(Y.props), Object.freeze(Y)), Y;
429
429
  };
430
- function wa(d, w, E, O, H) {
430
+ function wa(d, T, R, O, H) {
431
431
  {
432
- var J, K = {}, z = null, ge = null;
433
- E !== void 0 && (Kr(E), z = "" + E), ya(w) && (Kr(w.key), z = "" + w.key), ga(w) && (ge = w.ref, va(w, H));
434
- for (J in w)
435
- It.call(w, J) && !ma.hasOwnProperty(J) && (K[J] = w[J]);
432
+ var Q, q = {}, Y = null, ye = null;
433
+ R !== void 0 && (Kr(R), Y = "" + R), ya(T) && (Kr(T.key), Y = "" + T.key), ga(T) && (ye = T.ref, va(T, H));
434
+ for (Q in T)
435
+ It.call(T, Q) && !ma.hasOwnProperty(Q) && (q[Q] = T[Q]);
436
436
  if (d && d.defaultProps) {
437
437
  var ie = d.defaultProps;
438
- for (J in ie)
439
- K[J] === void 0 && (K[J] = ie[J]);
438
+ for (Q in ie)
439
+ q[Q] === void 0 && (q[Q] = ie[Q]);
440
440
  }
441
- if (z || ge) {
441
+ if (Y || ye) {
442
442
  var le = typeof d == "function" ? d.displayName || d.name || "Unknown" : d;
443
- z && xa(K, le), ge && ba(K, le);
443
+ Y && xa(q, le), ye && ba(q, le);
444
444
  }
445
- return Ta(d, z, ge, H, O, ht.current, K);
445
+ return Ta(d, Y, ye, H, O, ht.current, q);
446
446
  }
447
447
  }
448
448
  var cn = x.ReactCurrentOwner, Hr = x.ReactDebugCurrentFrame;
449
449
  function Je(d) {
450
450
  if (d) {
451
- var w = d._owner, E = Ue(d.type, d._source, w ? w.type : null);
452
- Hr.setExtraStackFrame(E);
451
+ var T = d._owner, R = Ue(d.type, d._source, T ? T.type : null);
452
+ Hr.setExtraStackFrame(R);
453
453
  } else
454
454
  Hr.setExtraStackFrame(null);
455
455
  }
@@ -473,10 +473,10 @@ Check the render method of \`` + d + "`.";
473
473
  function Pa(d) {
474
474
  {
475
475
  if (d !== void 0) {
476
- var w = d.fileName.replace(/^.*[\\\/]/, ""), E = d.lineNumber;
476
+ var T = d.fileName.replace(/^.*[\\\/]/, ""), R = d.lineNumber;
477
477
  return `
478
478
 
479
- Check your code at ` + w + ":" + E + ".";
479
+ Check your code at ` + T + ":" + R + ".";
480
480
  }
481
481
  return "";
482
482
  }
@@ -484,99 +484,99 @@ Check your code at ` + w + ":" + E + ".";
484
484
  var Zr = {};
485
485
  function Sa(d) {
486
486
  {
487
- var w = Xr();
488
- if (!w) {
489
- var E = typeof d == "string" ? d : d.displayName || d.name;
490
- E && (w = `
487
+ var T = Xr();
488
+ if (!T) {
489
+ var R = typeof d == "string" ? d : d.displayName || d.name;
490
+ R && (T = `
491
491
 
492
- Check the top-level render call using <` + E + ">.");
492
+ Check the top-level render call using <` + R + ">.");
493
493
  }
494
- return w;
494
+ return T;
495
495
  }
496
496
  }
497
- function Jr(d, w) {
497
+ function Jr(d, T) {
498
498
  {
499
499
  if (!d._store || d._store.validated || d.key != null)
500
500
  return;
501
501
  d._store.validated = !0;
502
- var E = Sa(w);
503
- if (Zr[E])
502
+ var R = Sa(T);
503
+ if (Zr[R])
504
504
  return;
505
- Zr[E] = !0;
505
+ Zr[R] = !0;
506
506
  var O = "";
507
- d && d._owner && d._owner !== cn.current && (O = " It was passed a child from " + oe(d._owner.type) + "."), Je(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, O), Je(null);
507
+ d && d._owner && d._owner !== cn.current && (O = " It was passed a child from " + oe(d._owner.type) + "."), Je(d), P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', R, O), Je(null);
508
508
  }
509
509
  }
510
- function Qr(d, w) {
510
+ function Qr(d, T) {
511
511
  {
512
512
  if (typeof d != "object")
513
513
  return;
514
514
  if (an(d))
515
- for (var E = 0; E < d.length; E++) {
516
- var O = d[E];
517
- fn(O) && Jr(O, w);
515
+ for (var R = 0; R < d.length; R++) {
516
+ var O = d[R];
517
+ fn(O) && Jr(O, T);
518
518
  }
519
519
  else if (fn(d))
520
520
  d._store && (d._store.validated = !0);
521
521
  else if (d) {
522
- var H = P(d);
522
+ var H = w(d);
523
523
  if (typeof H == "function" && H !== d.entries)
524
- for (var J = H.call(d), K; !(K = J.next()).done; )
525
- fn(K.value) && Jr(K.value, w);
524
+ for (var Q = H.call(d), q; !(q = Q.next()).done; )
525
+ fn(q.value) && Jr(q.value, T);
526
526
  }
527
527
  }
528
528
  }
529
529
  function Ca(d) {
530
530
  {
531
- var w = d.type;
532
- if (w == null || typeof w == "string")
531
+ var T = d.type;
532
+ if (T == null || typeof T == "string")
533
533
  return;
534
- var E;
535
- if (typeof w == "function")
536
- E = w.propTypes;
537
- else if (typeof w == "object" && (w.$$typeof === a || w.$$typeof === f))
538
- E = w.propTypes;
534
+ var R;
535
+ if (typeof T == "function")
536
+ R = T.propTypes;
537
+ else if (typeof T == "object" && (T.$$typeof === a || T.$$typeof === f))
538
+ R = T.propTypes;
539
539
  else
540
540
  return;
541
- if (E) {
542
- var O = oe(w);
543
- fa(E, d.props, "prop", O, d);
544
- } else if (w.PropTypes !== void 0 && !un) {
541
+ if (R) {
542
+ var O = oe(T);
543
+ fa(R, d.props, "prop", O, d);
544
+ } else if (T.PropTypes !== void 0 && !un) {
545
545
  un = !0;
546
- var H = oe(w);
547
- S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", H || "Unknown");
546
+ var H = oe(T);
547
+ P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", H || "Unknown");
548
548
  }
549
- typeof w.getDefaultProps == "function" && !w.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
549
+ typeof T.getDefaultProps == "function" && !T.getDefaultProps.isReactClassApproved && P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
550
550
  }
551
551
  }
552
552
  function Ea(d) {
553
553
  {
554
- for (var w = Object.keys(d.props), E = 0; E < w.length; E++) {
555
- var O = w[E];
554
+ for (var T = Object.keys(d.props), R = 0; R < T.length; R++) {
555
+ var O = T[R];
556
556
  if (O !== "children" && O !== "key") {
557
- Je(d), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", O), Je(null);
557
+ Je(d), P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", O), Je(null);
558
558
  break;
559
559
  }
560
560
  }
561
- d.ref !== null && (Je(d), S("Invalid attribute `ref` supplied to `React.Fragment`."), Je(null));
561
+ d.ref !== null && (Je(d), P("Invalid attribute `ref` supplied to `React.Fragment`."), Je(null));
562
562
  }
563
563
  }
564
- function ei(d, w, E, O, H, J) {
564
+ function ei(d, T, R, O, H, Q) {
565
565
  {
566
- var K = ee(d);
567
- if (!K) {
568
- var z = "";
569
- (d === void 0 || typeof d == "object" && d !== null && Object.keys(d).length === 0) && (z += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
570
- var ge = Pa(H);
571
- ge ? z += ge : z += Xr();
566
+ var q = J(d);
567
+ if (!q) {
568
+ var Y = "";
569
+ (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.");
570
+ var ye = Pa(H);
571
+ ye ? Y += ye : Y += Xr();
572
572
  var ie;
573
- d === null ? ie = "null" : an(d) ? ie = "array" : d !== void 0 && d.$$typeof === t ? (ie = "<" + (oe(d.type) || "Unknown") + " />", z = " Did you accidentally export a JSX literal instead of a component?") : ie = 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", ie, z);
573
+ d === null ? ie = "null" : an(d) ? ie = "array" : d !== void 0 && d.$$typeof === t ? (ie = "<" + (oe(d.type) || "Unknown") + " />", Y = " Did you accidentally export a JSX literal instead of a component?") : ie = typeof d, P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ie, Y);
574
574
  }
575
- var le = wa(d, w, E, H, J);
575
+ var le = wa(d, T, R, H, Q);
576
576
  if (le == null)
577
577
  return le;
578
- if (K) {
579
- var Ce = w.children;
578
+ if (q) {
579
+ var Ce = T.children;
580
580
  if (Ce !== void 0)
581
581
  if (O)
582
582
  if (an(Ce)) {
@@ -584,18 +584,18 @@ Check the top-level render call using <` + E + ">.");
584
584
  Qr(Ce[Qe], d);
585
585
  Object.freeze && Object.freeze(Ce);
586
586
  } else
587
- S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
587
+ P("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
588
588
  else
589
589
  Qr(Ce, d);
590
590
  }
591
591
  return d === r ? Ea(le) : Ca(le), le;
592
592
  }
593
593
  }
594
- function Ra(d, w, E) {
595
- return ei(d, w, E, !0);
594
+ function Ra(d, T, R) {
595
+ return ei(d, T, R, !0);
596
596
  }
597
- function Aa(d, w, E) {
598
- return ei(d, w, E, !1);
597
+ function Aa(d, T, R) {
598
+ return ei(d, T, R, !1);
599
599
  }
600
600
  var ja = Aa, Va = Ra;
601
601
  mt.Fragment = r, mt.jsx = ja, mt.jsxs = Va;
@@ -641,7 +641,7 @@ class dn {
641
641
  }
642
642
  const tr = ct({});
643
643
  function nr(e) {
644
- const t = ye(null);
644
+ const t = ve(null);
645
645
  return t.current === null && (t.current = e()), t.current;
646
646
  }
647
647
  const en = /* @__PURE__ */ ct(null), rr = ct({
@@ -665,7 +665,7 @@ class Ba extends Qn.Component {
665
665
  }
666
666
  }
667
667
  function $a({ children: e, isPresent: t, anchorX: n }) {
668
- const r = er(), i = ye(null), s = ye({
668
+ const r = er(), i = ve(null), s = ve({
669
669
  width: 0,
670
670
  height: 0,
671
671
  top: 0,
@@ -739,37 +739,37 @@ function ii(e) {
739
739
  }), t;
740
740
  }
741
741
  const ir = typeof window < "u", Ls = ir ? ka : Qt, ks = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: s = "sync", propagate: o = !1, anchorX: l = "left" }) => {
742
- const [a, u] = Os(o), c = He(() => ii(e), [e]), f = o && !a ? [] : c.map(Nt), h = ye(!0), p = ye(c), v = nr(() => /* @__PURE__ */ new Map()), [y, P] = be(c), [x, S] = be(c);
742
+ const [a, u] = Os(o), c = He(() => ii(e), [e]), f = o && !a ? [] : c.map(Nt), h = ve(!0), p = ve(c), v = nr(() => /* @__PURE__ */ new Map()), [y, w] = be(c), [x, P] = be(c);
743
743
  Ls(() => {
744
744
  h.current = !1, p.current = c;
745
745
  for (let m = 0; m < x.length; m++) {
746
- const A = Nt(x[m]);
747
- f.includes(A) ? v.delete(A) : v.get(A) !== !0 && v.set(A, !1);
746
+ const j = Nt(x[m]);
747
+ f.includes(j) ? v.delete(j) : v.get(j) !== !0 && v.set(j, !1);
748
748
  }
749
749
  }, [x, f.length, f.join("-")]);
750
- const T = [];
750
+ const S = [];
751
751
  if (c !== y) {
752
752
  let m = [...c];
753
- for (let A = 0; A < x.length; A++) {
754
- const F = x[A], j = Nt(F);
755
- f.includes(j) || (m.splice(A, 0, F), T.push(F));
753
+ for (let j = 0; j < x.length; j++) {
754
+ const F = x[j], V = Nt(F);
755
+ f.includes(V) || (m.splice(j, 0, F), S.push(F));
756
756
  }
757
- return s === "wait" && T.length && (m = T), S(ii(m)), P(c), null;
757
+ return s === "wait" && S.length && (m = S), P(ii(m)), w(c), null;
758
758
  }
759
759
  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.`);
760
- const { forceRender: V } = pe(tr);
760
+ const { forceRender: E } = pe(tr);
761
761
  return g.exports.jsx(g.exports.Fragment, { children: x.map((m) => {
762
- const A = Nt(m), F = o && !a ? !1 : c === x || f.includes(A), j = () => {
763
- if (v.has(A))
764
- v.set(A, !0);
762
+ const j = Nt(m), F = o && !a ? !1 : c === x || f.includes(j), V = () => {
763
+ if (v.has(j))
764
+ v.set(j, !0);
765
765
  else
766
766
  return;
767
- let G = !0;
768
- v.forEach((ee) => {
769
- ee || (G = !1);
770
- }), G && (V == null || V(), S(p.current), o && (u == null || u()), r && r());
767
+ let N = !0;
768
+ v.forEach((J) => {
769
+ J || (N = !1);
770
+ }), N && (E == null || E(), P(p.current), o && (u == null || u()), r && r());
771
771
  };
772
- return g.exports.jsx(Ua, { isPresent: F, initial: !h.current || n ? void 0 : !1, custom: t, presenceAffectsLayout: i, mode: s, onExitComplete: F ? void 0 : j, anchorX: l, children: m }, A);
772
+ return g.exports.jsx(Ua, { isPresent: F, initial: !h.current || n ? void 0 : !1, custom: t, presenceAffectsLayout: i, mode: s, onExitComplete: F ? void 0 : V, anchorX: l, children: m }, j);
773
773
  }) });
774
774
  }, we = (e) => e;
775
775
  let ut = we, Fe = we;
@@ -836,21 +836,21 @@ function Is(e, t) {
836
836
  delta: 0,
837
837
  timestamp: 0,
838
838
  isProcessing: !1
839
- }, s = () => n = !0, o = Bt.reduce((x, S) => (x[S] = za(s, t ? S : void 0), x), {}), { read: l, resolveKeyframes: a, update: u, preRender: c, render: f, postRender: h } = o, p = () => {
839
+ }, s = () => n = !0, o = Bt.reduce((x, P) => (x[P] = za(s, t ? P : void 0), x), {}), { read: l, resolveKeyframes: a, update: u, preRender: c, render: f, postRender: h } = o, p = () => {
840
840
  const x = performance.now();
841
841
  n = !1, i.delta = r ? 1e3 / 60 : Math.max(Math.min(x - i.timestamp, Ya), 1), i.timestamp = x, i.isProcessing = !0, l.process(i), a.process(i), u.process(i), c.process(i), f.process(i), h.process(i), i.isProcessing = !1, n && t && (r = !1, e(p));
842
842
  }, v = () => {
843
843
  n = !0, r = !0, i.isProcessing || e(p);
844
844
  };
845
- return { schedule: Bt.reduce((x, S) => {
846
- const T = o[S];
847
- return x[S] = (V, m = !1, A = !1) => (n || v(), T.schedule(V, m, A)), x;
845
+ return { schedule: Bt.reduce((x, P) => {
846
+ const S = o[P];
847
+ return x[P] = (E, m = !1, j = !1) => (n || v(), S.schedule(E, m, j)), x;
848
848
  }, {}), cancel: (x) => {
849
- for (let S = 0; S < Bt.length; S++)
850
- o[Bt[S]].cancel(x);
849
+ for (let P = 0; P < Bt.length; P++)
850
+ o[Bt[P]].cancel(x);
851
851
  }, state: i, steps: o };
852
852
  }
853
- const { schedule: Q, cancel: Ne, state: fe, steps: hn } = Is(typeof requestAnimationFrame < "u" ? requestAnimationFrame : we, !0), Fs = ct({ strict: !1 }), si = {
853
+ const { schedule: ee, cancel: Ne, state: fe, steps: hn } = Is(typeof requestAnimationFrame < "u" ? requestAnimationFrame : we, !0), Fs = ct({ strict: !1 }), si = {
854
854
  animation: [
855
855
  "animate",
856
856
  "variants",
@@ -996,7 +996,7 @@ function el(e, t, n) {
996
996
  const lr = (e) => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), tl = "framerAppearId", $s = "data-" + lr(tl), { schedule: cr, cancel: Xd } = Is(queueMicrotask, !1), Us = ct({});
997
997
  function nl(e, t, n, r, i) {
998
998
  var s, o;
999
- const { visualElement: l } = pe(nn), a = pe(Fs), u = pe(en), c = pe(rr).reducedMotion, f = ye(null);
999
+ const { visualElement: l } = pe(nn), a = pe(Fs), u = pe(en), c = pe(rr).reducedMotion, f = ve(null);
1000
1000
  r = r || a.renderer, !f.current && r && (f.current = r(e, {
1001
1001
  visualState: t,
1002
1002
  parent: l,
@@ -1007,18 +1007,18 @@ function nl(e, t, n, r, i) {
1007
1007
  }));
1008
1008
  const h = f.current, p = pe(Us);
1009
1009
  h && !h.projection && i && (h.type === "html" || h.type === "svg") && rl(f.current, n, i, p);
1010
- const v = ye(!1);
1010
+ const v = ve(!1);
1011
1011
  Ds(() => {
1012
1012
  h && v.current && h.update(n, u);
1013
1013
  });
1014
- const y = n[$s], P = 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)));
1014
+ const y = n[$s], w = ve(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)));
1015
1015
  return Ls(() => {
1016
- h && (v.current = !0, window.MotionIsMounted = !0, h.updateFeatures(), cr.render(h.render), P.current && h.animationState && h.animationState.animateChanges());
1016
+ h && (v.current = !0, window.MotionIsMounted = !0, h.updateFeatures(), cr.render(h.render), w.current && h.animationState && h.animationState.animateChanges());
1017
1017
  }), Qt(() => {
1018
- h && (!P.current && h.animationState && h.animationState.animateChanges(), P.current && (queueMicrotask(() => {
1018
+ h && (!w.current && h.animationState && h.animationState.animateChanges(), w.current && (queueMicrotask(() => {
1019
1019
  var x;
1020
1020
  (x = window.MotionHandoffMarkAsComplete) === null || x === void 0 || x.call(window, y);
1021
- }), P.current = !1));
1021
+ }), w.current = !1));
1022
1022
  }), h;
1023
1023
  }
1024
1024
  function rl(e, t, n, r) {
@@ -1050,8 +1050,8 @@ function il({ preloadedFeatures: e, createVisualElement: t, useRender: n, useVis
1050
1050
  }, { isStatic: p } = h, v = Ja(u), y = r(u, p);
1051
1051
  if (!p && ir) {
1052
1052
  ol(h, e);
1053
- const P = al(h);
1054
- f = P.MeasureLayout, v.visualElement = nl(i, y, h, t, P.ProjectionNode);
1053
+ const w = al(h);
1054
+ f = w.MeasureLayout, v.visualElement = nl(i, y, h, t, w.ProjectionNode);
1055
1055
  }
1056
1056
  return g.exports.jsxs(nn.Provider, { value: v, children: [f && v.visualElement ? g.exports.jsx(f, { visualElement: v.visualElement, ...h }) : null, n(i, u, el(y, v.visualElement, c), y, p, v.visualElement)] });
1057
1057
  }
@@ -1408,17 +1408,17 @@ function Dl(e, t, n, r) {
1408
1408
  for (let p = 0; p < h.length; p++) {
1409
1409
  const v = vr(e, h[p]);
1410
1410
  if (v) {
1411
- const { transitionEnd: y, transition: P, ...x } = v;
1412
- for (const S in x) {
1413
- let T = x[S];
1414
- if (Array.isArray(T)) {
1415
- const V = c ? T.length - 1 : 0;
1416
- T = T[V];
1411
+ const { transitionEnd: y, transition: w, ...x } = v;
1412
+ for (const P in x) {
1413
+ let S = x[P];
1414
+ if (Array.isArray(S)) {
1415
+ const E = c ? S.length - 1 : 0;
1416
+ S = S[E];
1417
1417
  }
1418
- T !== null && (i[S] = T);
1418
+ S !== null && (i[P] = S);
1419
1419
  }
1420
- for (const S in y)
1421
- i[S] = y[S];
1420
+ for (const P in y)
1421
+ i[P] = y[P];
1422
1422
  }
1423
1423
  }
1424
1424
  }
@@ -1516,8 +1516,8 @@ const di = ["x", "y", "width", "height", "cx", "cy", "r"], Ol = {
1516
1516
  const a = di[l];
1517
1517
  e[a] !== t[a] && (o = !0);
1518
1518
  }
1519
- o && Q.read(() => {
1520
- Xs(n, r), Q.render(() => {
1519
+ o && ee.read(() => {
1520
+ Xs(n, r), ee.render(() => {
1521
1521
  gr(r, i, yr(n.tagName), e.transformTemplate), Qs(n, r);
1522
1522
  });
1523
1523
  });
@@ -1875,7 +1875,7 @@ class Xl {
1875
1875
  this.events[t] || (this.events[t] = new Er());
1876
1876
  const r = this.events[t].add(n);
1877
1877
  return t === "change" ? () => {
1878
- r(), Q.read(() => {
1878
+ r(), ee.read(() => {
1879
1879
  this.events.change.getSize() || this.stop();
1880
1880
  });
1881
1881
  } : r;
@@ -2171,7 +2171,7 @@ class Mr {
2171
2171
  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;
2172
2172
  }
2173
2173
  scheduleResolve() {
2174
- this.isScheduled = !0, this.isAsync ? (Ge.add(this), Nn || (Nn = !0, Q.read(Ao), Q.resolveKeyframes(Ro))) : (this.readKeyframes(), this.complete());
2174
+ this.isScheduled = !0, this.isAsync ? (Ge.add(this), Nn || (Nn = !0, ee.read(Ao), ee.resolveKeyframes(Ro))) : (this.readKeyframes(), this.complete());
2175
2175
  }
2176
2176
  readKeyframes() {
2177
2177
  const { unresolvedKeyframes: t, name: n, element: r, motionValue: i } = this;
@@ -2559,62 +2559,62 @@ function Fo(e = te.visualDuration, t = te.bounce) {
2559
2559
  const s = n.keyframes[0], o = n.keyframes[n.keyframes.length - 1], l = { done: !1, value: s }, { stiffness: a, damping: u, mass: c, duration: f, velocity: h, isResolvedFromDuration: p } = Hc({
2560
2560
  ...n,
2561
2561
  velocity: -Le(n.velocity || 0)
2562
- }), v = h || 0, y = u / (2 * Math.sqrt(a * c)), P = o - s, x = Le(Math.sqrt(a / c)), S = Math.abs(P) < 5;
2563
- r || (r = S ? te.restSpeed.granular : te.restSpeed.default), i || (i = S ? te.restDelta.granular : te.restDelta.default);
2564
- let T;
2562
+ }), v = h || 0, y = u / (2 * Math.sqrt(a * c)), w = o - s, x = Le(Math.sqrt(a / c)), P = Math.abs(w) < 5;
2563
+ r || (r = P ? te.restSpeed.granular : te.restSpeed.default), i || (i = P ? te.restDelta.granular : te.restDelta.default);
2564
+ let S;
2565
2565
  if (y < 1) {
2566
2566
  const m = Un(x, y);
2567
- T = (A) => {
2568
- const F = Math.exp(-y * x * A);
2569
- return o - F * ((v + y * x * P) / m * Math.sin(m * A) + P * Math.cos(m * A));
2567
+ S = (j) => {
2568
+ const F = Math.exp(-y * x * j);
2569
+ return o - F * ((v + y * x * w) / m * Math.sin(m * j) + w * Math.cos(m * j));
2570
2570
  };
2571
2571
  } else if (y === 1)
2572
- T = (m) => o - Math.exp(-x * m) * (P + (v + x * P) * m);
2572
+ S = (m) => o - Math.exp(-x * m) * (w + (v + x * w) * m);
2573
2573
  else {
2574
2574
  const m = x * Math.sqrt(y * y - 1);
2575
- T = (A) => {
2576
- const F = Math.exp(-y * x * A), j = Math.min(m * A, 300);
2577
- return o - F * ((v + y * x * P) * Math.sinh(j) + m * P * Math.cosh(j)) / m;
2575
+ S = (j) => {
2576
+ const F = Math.exp(-y * x * j), V = Math.min(m * j, 300);
2577
+ return o - F * ((v + y * x * w) * Math.sinh(V) + m * w * Math.cosh(V)) / m;
2578
2578
  };
2579
2579
  }
2580
- const V = {
2580
+ const E = {
2581
2581
  calculatedDuration: p && f || null,
2582
2582
  next: (m) => {
2583
- const A = T(m);
2583
+ const j = S(m);
2584
2584
  if (p)
2585
2585
  l.done = m >= f;
2586
2586
  else {
2587
2587
  let F = 0;
2588
- y < 1 && (F = m === 0 ? je(v) : Io(T, m, A));
2589
- const j = Math.abs(F) <= r, G = Math.abs(o - A) <= i;
2590
- l.done = j && G;
2588
+ y < 1 && (F = m === 0 ? je(v) : Io(S, m, j));
2589
+ const V = Math.abs(F) <= r, N = Math.abs(o - j) <= i;
2590
+ l.done = V && N;
2591
2591
  }
2592
- return l.value = l.done ? o : A, l;
2592
+ return l.value = l.done ? o : j, l;
2593
2593
  },
2594
2594
  toString: () => {
2595
- const m = Math.min(to(V), Ln), A = no((F) => V.next(m * F).value, m, 30);
2596
- return m + "ms " + A;
2595
+ const m = Math.min(to(E), Ln), j = no((F) => E.next(m * F).value, m, 30);
2596
+ return m + "ms " + j;
2597
2597
  }
2598
2598
  };
2599
- return V;
2599
+ return E;
2600
2600
  }
2601
2601
  function Ri({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: s = 500, modifyTarget: o, min: l, max: a, restDelta: u = 0.5, restSpeed: c }) {
2602
2602
  const f = e[0], h = {
2603
2603
  done: !1,
2604
2604
  value: f
2605
- }, p = (j) => l !== void 0 && j < l || a !== void 0 && j > a, v = (j) => l === void 0 ? a : a === void 0 || Math.abs(l - j) < Math.abs(a - j) ? l : a;
2605
+ }, p = (V) => l !== void 0 && V < l || a !== void 0 && V > a, v = (V) => l === void 0 ? a : a === void 0 || Math.abs(l - V) < Math.abs(a - V) ? l : a;
2606
2606
  let y = n * t;
2607
- const P = f + y, x = o === void 0 ? P : o(P);
2608
- x !== P && (y = x - f);
2609
- const S = (j) => -y * Math.exp(-j / r), T = (j) => x + S(j), V = (j) => {
2610
- const G = S(j), ee = T(j);
2611
- h.done = Math.abs(G) <= u, h.value = h.done ? x : ee;
2607
+ const w = f + y, x = o === void 0 ? w : o(w);
2608
+ x !== w && (y = x - f);
2609
+ const P = (V) => -y * Math.exp(-V / r), S = (V) => x + P(V), E = (V) => {
2610
+ const N = P(V), J = S(V);
2611
+ h.done = Math.abs(N) <= u, h.value = h.done ? x : J;
2612
2612
  };
2613
- let m, A;
2614
- const F = (j) => {
2615
- p(h.value) && (m = j, A = Fo({
2613
+ let m, j;
2614
+ const F = (V) => {
2615
+ p(h.value) && (m = V, j = Fo({
2616
2616
  keyframes: [h.value, v(h.value)],
2617
- velocity: Io(T, j, h.value),
2617
+ velocity: Io(S, V, h.value),
2618
2618
  damping: i,
2619
2619
  stiffness: s,
2620
2620
  restDelta: u,
@@ -2623,9 +2623,9 @@ function Ri({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
2623
2623
  };
2624
2624
  return F(0), {
2625
2625
  calculatedDuration: null,
2626
- next: (j) => {
2627
- let G = !1;
2628
- return !A && m === void 0 && (G = !0, V(j), F(j)), m !== void 0 && j >= m ? A.next(j - m) : (!G && V(j), h);
2626
+ next: (V) => {
2627
+ let N = !1;
2628
+ return !j && m === void 0 && (N = !0, E(V), F(V)), m !== void 0 && V >= m ? j.next(V - m) : (!N && E(V), h);
2629
2629
  }
2630
2630
  };
2631
2631
  }
@@ -2717,7 +2717,7 @@ function wt({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }
2717
2717
  const su = (e) => {
2718
2718
  const t = ({ timestamp: n }) => e(n);
2719
2719
  return {
2720
- start: () => Q.update(t, !0),
2720
+ start: () => ee.update(t, !0),
2721
2721
  stop: () => Ne(t),
2722
2722
  now: () => fe.isProcessing ? fe.timestamp : De.now()
2723
2723
  };
@@ -2770,28 +2770,28 @@ class Lr extends Lo {
2770
2770
  tick(t, n = !1) {
2771
2771
  const { resolved: r } = this;
2772
2772
  if (!r) {
2773
- const { keyframes: j } = this.options;
2774
- return { done: !0, value: j[j.length - 1] };
2773
+ const { keyframes: V } = this.options;
2774
+ return { done: !0, value: V[V.length - 1] };
2775
2775
  }
2776
2776
  const { finalKeyframe: i, generator: s, mirroredGenerator: o, mapPercentToKeyframes: l, keyframes: a, calculatedDuration: u, totalDuration: c, resolvedDuration: f } = r;
2777
2777
  if (this.startTime === null)
2778
2778
  return s.next(0);
2779
- const { delay: h, repeat: p, repeatType: v, repeatDelay: y, onUpdate: P } = this.options;
2779
+ const { delay: h, repeat: p, repeatType: v, repeatDelay: y, onUpdate: w } = this.options;
2780
2780
  this.speed > 0 ? this.startTime = Math.min(this.startTime, t) : this.speed < 0 && (this.startTime = Math.min(t - c / this.speed, this.startTime)), n ? this.currentTime = t : this.holdTime !== null ? this.currentTime = this.holdTime : this.currentTime = Math.round(t - this.startTime) * this.speed;
2781
- const x = this.currentTime - h * (this.speed >= 0 ? 1 : -1), S = this.speed >= 0 ? x < 0 : x > c;
2781
+ const x = this.currentTime - h * (this.speed >= 0 ? 1 : -1), P = this.speed >= 0 ? x < 0 : x > c;
2782
2782
  this.currentTime = Math.max(x, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = c);
2783
- let T = this.currentTime, V = s;
2783
+ let S = this.currentTime, E = s;
2784
2784
  if (p) {
2785
- const j = Math.min(this.currentTime, c) / f;
2786
- let G = Math.floor(j), ee = j % 1;
2787
- !ee && j >= 1 && (ee = 1), ee === 1 && G--, G = Math.min(G, p + 1), Boolean(G % 2) && (v === "reverse" ? (ee = 1 - ee, y && (ee -= y / f)) : v === "mirror" && (V = o)), T = ke(0, 1, ee) * f;
2785
+ const V = Math.min(this.currentTime, c) / f;
2786
+ let N = Math.floor(V), J = V % 1;
2787
+ !J && V >= 1 && (J = 1), J === 1 && N--, N = Math.min(N, p + 1), Boolean(N % 2) && (v === "reverse" ? (J = 1 - J, y && (J -= y / f)) : v === "mirror" && (E = o)), S = ke(0, 1, J) * f;
2788
2788
  }
2789
- const m = S ? { done: !1, value: a[0] } : V.next(T);
2789
+ const m = P ? { done: !1, value: a[0] } : E.next(S);
2790
2790
  l && (m.value = l(m.value));
2791
- let { done: A } = m;
2792
- !S && u !== null && (A = this.speed >= 0 ? this.currentTime >= c : this.currentTime <= 0);
2793
- const F = this.holdTime === null && (this.state === "finished" || this.state === "running" && A);
2794
- return F && i !== void 0 && (m.value = on(a, this.options, i)), P && P(m.value), F && this.finish(), m;
2791
+ let { done: j } = m;
2792
+ !P && u !== null && (j = this.speed >= 0 ? this.currentTime >= c : this.currentTime <= 0);
2793
+ const F = this.holdTime === null && (this.state === "finished" || this.state === "running" && j);
2794
+ return F && i !== void 0 && (m.value = on(a, this.options, i)), w && w(m.value), F && this.finish(), m;
2795
2795
  }
2796
2796
  get duration() {
2797
2797
  const { resolved: t } = this;
@@ -2913,8 +2913,8 @@ class Vi extends Lo {
2913
2913
  if (!l.owner || !l.owner.current)
2914
2914
  return !1;
2915
2915
  if (typeof s == "string" && qt() && pu(s) && (s = Bo[s]), du(this.options)) {
2916
- const { onComplete: f, onUpdate: h, motionValue: p, element: v, ...y } = this.options, P = hu(t, y);
2917
- t = P.keyframes, t.length === 1 && (t[1] = t[0]), r = P.duration, i = P.times, s = P.ease, o = "keyframes";
2916
+ const { onComplete: f, onUpdate: h, motionValue: p, element: v, ...y } = this.options, w = hu(t, y);
2917
+ t = w.keyframes, t.length === 1 && (t[1] = t[0]), r = w.duration, i = w.times, s = w.ease, o = "keyframes";
2918
2918
  }
2919
2919
  const c = cu(l.owner.current, a, t, { ...this.options, duration: r, times: i, ease: s });
2920
2920
  return c.startTime = u ?? this.calcStartTime(), this.pendingTimeline ? (hi(c, this.pendingTimeline), this.pendingTimeline = void 0) : c.onfinish = () => {
@@ -3096,7 +3096,7 @@ const kr = (e, t, n, r = {}, i, s) => (o) => {
3096
3096
  if ((c.type === !1 || c.duration === 0 && !c.repeatDelay) && (c.duration = 0, c.delay === 0 && (f = !0)), (ec.current || _s.skipAnimations) && (f = !0, c.duration = 0, c.delay = 0), f && !s && t.get() !== void 0) {
3097
3097
  const h = on(c.keyframes, l);
3098
3098
  if (h !== void 0)
3099
- return Q.update(() => {
3099
+ return ee.update(() => {
3100
3100
  c.onUpdate(h), c.onComplete();
3101
3101
  }), new Il([]);
3102
3102
  }
@@ -3123,16 +3123,16 @@ function $o(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
3123
3123
  if (window.MotionHandoffAnimation) {
3124
3124
  const x = uo(e);
3125
3125
  if (x) {
3126
- const S = window.MotionHandoffAnimation(x, f, Q);
3127
- S !== null && (v.startTime = S, y = !0);
3126
+ const P = window.MotionHandoffAnimation(x, f, ee);
3127
+ P !== null && (v.startTime = P, y = !0);
3128
3128
  }
3129
3129
  }
3130
3130
  _n(e, f), h.start(kr(f, h, p, e.shouldReduceMotion && lo.has(f) ? { type: !1 } : v, e, y));
3131
- const P = h.animation;
3132
- P && u.push(P);
3131
+ const w = h.animation;
3132
+ w && u.push(w);
3133
3133
  }
3134
3134
  return l && Promise.all(u).then(() => {
3135
- Q.update(() => {
3135
+ ee.update(() => {
3136
3136
  l && Jl(e, l);
3137
3137
  });
3138
3138
  }), u;
@@ -3227,47 +3227,47 @@ function ju(e) {
3227
3227
  function o(a) {
3228
3228
  const { props: u } = e, c = Wo(e.parent) || {}, f = [], h = /* @__PURE__ */ new Set();
3229
3229
  let p = {}, v = 1 / 0;
3230
- for (let P = 0; P < Ru; P++) {
3231
- const x = Eu[P], S = n[x], T = u[x] !== void 0 ? u[x] : c[x], V = Ct(T), m = x === a ? S.isActive : null;
3232
- m === !1 && (v = P);
3233
- let A = T === c[x] && T !== u[x] && V;
3234
- if (A && r && e.manuallyAnimateOnMount && (A = !1), S.protectedKeys = { ...p }, !S.isActive && m === null || !T && !S.prevProp || rn(T) || typeof T == "boolean")
3230
+ for (let w = 0; w < Ru; w++) {
3231
+ const x = Eu[w], P = n[x], S = u[x] !== void 0 ? u[x] : c[x], E = Ct(S), m = x === a ? P.isActive : null;
3232
+ m === !1 && (v = w);
3233
+ let j = S === c[x] && S !== u[x] && E;
3234
+ if (j && r && e.manuallyAnimateOnMount && (j = !1), P.protectedKeys = { ...p }, !P.isActive && m === null || !S && !P.prevProp || rn(S) || typeof S == "boolean")
3235
3235
  continue;
3236
- const F = Vu(S.prevProp, T);
3237
- let j = F || x === a && S.isActive && !A && V || P > v && V, G = !1;
3238
- const ee = Array.isArray(T) ? T : [T];
3239
- let ue = ee.reduce(i(x), {});
3240
- m === !1 && (ue = {});
3241
- const { prevResolvedValues: xe = {} } = S, oe = {
3242
- ...xe,
3243
- ...ue
3236
+ const F = Vu(P.prevProp, S);
3237
+ let V = F || x === a && P.isActive && !j && E || w > v && E, N = !1;
3238
+ const J = Array.isArray(S) ? S : [S];
3239
+ let ce = J.reduce(i(x), {});
3240
+ m === !1 && (ce = {});
3241
+ const { prevResolvedValues: Pe = {} } = P, oe = {
3242
+ ...Pe,
3243
+ ...ce
3244
3244
  }, re = (D) => {
3245
- j = !0, h.has(D) && (G = !0, h.delete(D)), S.needsAnimating[D] = !0;
3245
+ V = !0, h.has(D) && (N = !0, h.delete(D)), P.needsAnimating[D] = !0;
3246
3246
  const L = e.getValue(D);
3247
3247
  L && (L.liveStyle = !1);
3248
3248
  };
3249
3249
  for (const D in oe) {
3250
- const L = ue[D], ae = xe[D];
3250
+ const L = ce[D], ae = Pe[D];
3251
3251
  if (p.hasOwnProperty(D))
3252
3252
  continue;
3253
3253
  let b = !1;
3254
- On(L) && On(ae) ? b = !Uo(L, ae) : b = L !== ae, b ? L != null ? re(D) : h.add(D) : L !== void 0 && h.has(D) ? re(D) : S.protectedKeys[D] = !0;
3254
+ On(L) && On(ae) ? b = !Uo(L, ae) : b = L !== ae, b ? L != null ? re(D) : h.add(D) : L !== void 0 && h.has(D) ? re(D) : P.protectedKeys[D] = !0;
3255
3255
  }
3256
- S.prevProp = T, S.prevResolvedValues = ue, S.isActive && (p = { ...p, ...ue }), r && e.blockInitialAnimation && (j = !1), j && (!(A && F) || G) && f.push(...ee.map((D) => ({
3256
+ P.prevProp = S, P.prevResolvedValues = ce, P.isActive && (p = { ...p, ...ce }), r && e.blockInitialAnimation && (V = !1), V && (!(j && F) || N) && f.push(...J.map((D) => ({
3257
3257
  animation: D,
3258
3258
  options: { type: x }
3259
3259
  })));
3260
3260
  }
3261
3261
  if (h.size) {
3262
- const P = {};
3262
+ const w = {};
3263
3263
  if (typeof u.initial != "boolean") {
3264
3264
  const x = At(e, Array.isArray(u.initial) ? u.initial[0] : u.initial);
3265
- x && x.transition && (P.transition = x.transition);
3265
+ x && x.transition && (w.transition = x.transition);
3266
3266
  }
3267
3267
  h.forEach((x) => {
3268
- const S = e.getBaseTarget(x), T = e.getValue(x);
3269
- T && (T.liveStyle = !0), P[x] = S ?? null;
3270
- }), f.push({ animation: P });
3268
+ const P = e.getBaseTarget(x), S = e.getValue(x);
3269
+ S && (S.liveStyle = !0), w[x] = P ?? null;
3270
+ }), f.push({ animation: w });
3271
3271
  }
3272
3272
  let y = Boolean(f.length);
3273
3273
  return r && (u.initial === !1 || u.initial === u.animate) && !e.manuallyAnimateOnMount && (y = !1), r = !1, y ? t(f) : Promise.resolve();
@@ -3411,26 +3411,26 @@ function Iu(e, t) {
3411
3411
  };
3412
3412
  }
3413
3413
  const Yo = 1e-4, Fu = 1 - Yo, Nu = 1 + Yo, Ko = 0.01, Bu = 0 - Ko, $u = 0 + Ko;
3414
- function ve(e) {
3414
+ function xe(e) {
3415
3415
  return e.max - e.min;
3416
3416
  }
3417
3417
  function Uu(e, t, n) {
3418
3418
  return Math.abs(e - t) <= n;
3419
3419
  }
3420
3420
  function Mi(e, t, n, r = 0.5) {
3421
- e.origin = r, e.originPoint = ne(t.min, t.max, e.origin), e.scale = ve(n) / ve(t), e.translate = ne(n.min, n.max, e.origin) - e.originPoint, (e.scale >= Fu && e.scale <= Nu || isNaN(e.scale)) && (e.scale = 1), (e.translate >= Bu && e.translate <= $u || isNaN(e.translate)) && (e.translate = 0);
3421
+ e.origin = r, e.originPoint = ne(t.min, t.max, e.origin), e.scale = xe(n) / xe(t), e.translate = ne(n.min, n.max, e.origin) - e.originPoint, (e.scale >= Fu && e.scale <= Nu || isNaN(e.scale)) && (e.scale = 1), (e.translate >= Bu && e.translate <= $u || isNaN(e.translate)) && (e.translate = 0);
3422
3422
  }
3423
3423
  function Pt(e, t, n, r) {
3424
3424
  Mi(e.x, t.x, n.x, r ? r.originX : void 0), Mi(e.y, t.y, n.y, r ? r.originY : void 0);
3425
3425
  }
3426
3426
  function Oi(e, t, n) {
3427
- e.min = n.min + t.min, e.max = e.min + ve(t);
3427
+ e.min = n.min + t.min, e.max = e.min + xe(t);
3428
3428
  }
3429
3429
  function Wu(e, t, n) {
3430
3430
  Oi(e.x, t.x, n.x), Oi(e.y, t.y, n.y);
3431
3431
  }
3432
3432
  function Li(e, t, n) {
3433
- e.min = t.min - n.min, e.max = e.min + ve(t);
3433
+ e.min = t.min - n.min, e.max = e.min + xe(t);
3434
3434
  }
3435
3435
  function St(e, t, n) {
3436
3436
  Li(e.x, t.x, n.x), Li(e.y, t.y, n.y);
@@ -3527,8 +3527,8 @@ class Xo {
3527
3527
  return;
3528
3528
  const { point: p } = c, { timestamp: v } = fe;
3529
3529
  this.history.push({ ...p, timestamp: v });
3530
- const { onStart: y, onMove: P } = this.handlers;
3531
- f || (y && y(this.lastMoveEvent, c), this.startEvent = this.lastMoveEvent), P && P(this.lastMoveEvent, c);
3530
+ const { onStart: y, onMove: w } = this.handlers;
3531
+ f || (y && y(this.lastMoveEvent, c), this.startEvent = this.lastMoveEvent), w && w(this.lastMoveEvent, c);
3532
3532
  }, this.handlePointerMove = (c, f) => {
3533
3533
  if (c.target instanceof Element && c.target.hasPointerCapture && c.pointerId !== void 0)
3534
3534
  try {
@@ -3536,7 +3536,7 @@ class Xo {
3536
3536
  return;
3537
3537
  } catch {
3538
3538
  }
3539
- this.lastMoveEvent = c, this.lastMoveEventInfo = bn(f, this.transformPagePoint), Q.update(this.updatePoint, !0);
3539
+ this.lastMoveEvent = c, this.lastMoveEventInfo = bn(f, this.transformPagePoint), ee.update(this.updatePoint, !0);
3540
3540
  }, this.handlePointerUp = (c, f) => {
3541
3541
  Gt(c, "release"), this.end();
3542
3542
  const { onEnd: h, onSessionEnd: p, resumeAnimation: v } = this.handlers;
@@ -3624,7 +3624,7 @@ function Zu(e, t) {
3624
3624
  }
3625
3625
  function Ju(e, t) {
3626
3626
  let n = 0.5;
3627
- const r = ve(e), i = ve(t);
3627
+ const r = xe(e), i = xe(t);
3628
3628
  return i > r ? n = ot(t.min, t.max - r, e.min) : r > i && (n = ot(e.min, e.max - i, t.min)), ke(0, 1, n);
3629
3629
  }
3630
3630
  function Qu(e, t) {
@@ -3663,29 +3663,29 @@ class nf {
3663
3663
  const { drag: h, dragPropagation: p, onDragStart: v } = this.getProps();
3664
3664
  if (h && !p && (this.openDragLock && this.openDragLock(), this.openDragLock = ql(h), !this.openDragLock))
3665
3665
  return;
3666
- this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), Re((P) => {
3667
- let x = this.getAxisMotionValue(P).get() || 0;
3666
+ this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), Re((w) => {
3667
+ let x = this.getAxisMotionValue(w).get() || 0;
3668
3668
  if (Ve.test(x)) {
3669
- const { projection: S } = this.visualElement;
3670
- if (S && S.layout) {
3671
- const T = S.layout.layoutBox[P];
3672
- T && (x = ve(T) * (parseFloat(x) / 100));
3669
+ const { projection: P } = this.visualElement;
3670
+ if (P && P.layout) {
3671
+ const S = P.layout.layoutBox[w];
3672
+ S && (x = xe(S) * (parseFloat(x) / 100));
3673
3673
  }
3674
3674
  }
3675
- this.originPoint[P] = x;
3676
- }), v && Q.postRender(() => v(c, f)), _n(this.visualElement, "transform");
3675
+ this.originPoint[w] = x;
3676
+ }), v && ee.postRender(() => v(c, f)), _n(this.visualElement, "transform");
3677
3677
  const { animationState: y } = this.visualElement;
3678
3678
  y && y.setActive("whileDrag", !0);
3679
3679
  }, o = (c, f) => {
3680
3680
  const { dragPropagation: h, dragDirectionLock: p, onDirectionLock: v, onDrag: y } = this.getProps();
3681
3681
  if (!h && !this.openDragLock)
3682
3682
  return;
3683
- const { offset: P } = f;
3683
+ const { offset: w } = f;
3684
3684
  if (p && this.currentDirection === null) {
3685
- this.currentDirection = rf(P), this.currentDirection !== null && v && v(this.currentDirection);
3685
+ this.currentDirection = rf(w), this.currentDirection !== null && v && v(this.currentDirection);
3686
3686
  return;
3687
3687
  }
3688
- this.updateAxis("x", f.point, P), this.updateAxis("y", f.point, P), this.visualElement.render(), y && y(c, f);
3688
+ this.updateAxis("x", f.point, w), this.updateAxis("y", f.point, w), this.visualElement.render(), y && y(c, f);
3689
3689
  }, l = (c, f) => this.stop(c, f), a = () => Re((c) => {
3690
3690
  var f;
3691
3691
  return this.getAnimationState(c) === "paused" && ((f = this.getAxisMotionValue(c).animation) === null || f === void 0 ? void 0 : f.play());
@@ -3708,7 +3708,7 @@ class nf {
3708
3708
  const { velocity: i } = n;
3709
3709
  this.startAnimation(i);
3710
3710
  const { onDragEnd: s } = this.getProps();
3711
- s && Q.postRender(() => s(t, n));
3711
+ s && ee.postRender(() => s(t, n));
3712
3712
  }
3713
3713
  cancel() {
3714
3714
  this.isDragging = !1;
@@ -3837,7 +3837,7 @@ class nf {
3837
3837
  const { dragConstraints: a } = this.getProps();
3838
3838
  et(a) && a.current && (this.constraints = this.resolveRefConstraints());
3839
3839
  }, { projection: i } = this.visualElement, s = i.addEventListener("measure", r);
3840
- i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), Q.read(r);
3840
+ i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), ee.read(r);
3841
3841
  const o = Dt(window, "resize", () => this.scalePositionWithinConstraints()), l = i.addEventListener("didUpdate", ({ delta: a, hasLayoutChanged: u }) => {
3842
3842
  this.isDragging && u && (Re((c) => {
3843
3843
  const f = this.getAxisMotionValue(c);
@@ -3881,7 +3881,7 @@ class sf extends $e {
3881
3881
  }
3882
3882
  }
3883
3883
  const Gi = (e) => (t, n) => {
3884
- e && Q.postRender(() => e(t, n));
3884
+ e && ee.postRender(() => e(t, n));
3885
3885
  };
3886
3886
  class of extends $e {
3887
3887
  constructor() {
@@ -3899,7 +3899,7 @@ class of extends $e {
3899
3899
  onStart: Gi(n),
3900
3900
  onMove: r,
3901
3901
  onEnd: (s, o) => {
3902
- delete this.session, i && Q.postRender(() => i(s, o));
3902
+ delete this.session, i && ee.postRender(() => i(s, o));
3903
3903
  }
3904
3904
  };
3905
3905
  }
@@ -3955,7 +3955,7 @@ class lf extends Ia {
3955
3955
  }
3956
3956
  getSnapshotBeforeUpdate(t) {
3957
3957
  const { layoutDependency: n, visualElement: r, drag: i, isPresent: s } = this.props, o = r.projection;
3958
- 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(() => {
3958
+ 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(() => {
3959
3959
  const l = o.getStack();
3960
3960
  (!l || !l.members.length) && this.safeToRemove();
3961
3961
  }))), null;
@@ -4025,7 +4025,7 @@ function pf(e, t) {
4025
4025
  const s = i - n;
4026
4026
  s >= t && (Ne(r), e(s - t));
4027
4027
  };
4028
- return Q.read(r, !0), () => Ne(r);
4028
+ return ee.read(r, !0), () => Ne(r);
4029
4029
  }
4030
4030
  const Qo = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], mf = Qo.length, Xi = (e) => typeof e == "string" ? parseFloat(e) : e, Zi = (e) => typeof e == "number" || M.test(e);
4031
4031
  function gf(e, t, n, r, i, s) {
@@ -4094,7 +4094,7 @@ function na(e, t) {
4094
4094
  return os(e.x, t.x) && os(e.y, t.y);
4095
4095
  }
4096
4096
  function as(e) {
4097
- return ve(e.x) / ve(e.y);
4097
+ return xe(e.x) / xe(e.y);
4098
4098
  }
4099
4099
  function ls(e, t) {
4100
4100
  return e.translate === t.translate && e.scale === t.scale && e.originPoint === t.originPoint;
@@ -4178,7 +4178,7 @@ function ra(e) {
4178
4178
  const n = uo(t);
4179
4179
  if (window.MotionHasOptimisedAnimation(n, "transform")) {
4180
4180
  const { layout: i, layoutId: s } = e.options;
4181
- window.MotionCancelOptimisedAnimation(n, "transform", Q, !(i || s));
4181
+ window.MotionCancelOptimisedAnimation(n, "transform", ee, !(i || s));
4182
4182
  }
4183
4183
  const { parent: r } = e;
4184
4184
  r && !r.hasCheckedOptimisedAppear && ra(r);
@@ -4222,15 +4222,15 @@ function ia({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4222
4222
  this.target = void 0, this.relativeTarget = void 0;
4223
4223
  return;
4224
4224
  }
4225
- const y = this.options.transition || c.getDefaultTransition() || Bf, { onLayoutAnimationStart: P, onLayoutAnimationComplete: x } = c.getProps(), S = !this.targetLayout || !na(this.targetLayout, v), T = !h && p;
4226
- if (this.options.layoutRoot || this.resumeFrom || T || h && (S || !this.currentAnimation)) {
4227
- this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(f, T);
4228
- const V = {
4225
+ const y = this.options.transition || c.getDefaultTransition() || Bf, { onLayoutAnimationStart: w, onLayoutAnimationComplete: x } = c.getProps(), P = !this.targetLayout || !na(this.targetLayout, v), S = !h && p;
4226
+ if (this.options.layoutRoot || this.resumeFrom || S || h && (P || !this.currentAnimation)) {
4227
+ this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(f, S);
4228
+ const E = {
4229
4229
  ...br(y, "layout"),
4230
- onPlay: P,
4230
+ onPlay: w,
4231
4231
  onComplete: x
4232
4232
  };
4233
- (c.shouldReduceMotion || this.options.layoutRoot) && (V.delay = 0, V.type = !1), this.startAnimation(V);
4233
+ (c.shouldReduceMotion || this.options.layoutRoot) && (E.delay = 0, E.type = !1), this.startAnimation(E);
4234
4234
  } else
4235
4235
  h || fs(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
4236
4236
  this.targetLayout = v;
@@ -4294,15 +4294,15 @@ function ia({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4294
4294
  this.nodes.forEach(Df), this.sharedNodes.forEach(If);
4295
4295
  }
4296
4296
  scheduleUpdateProjection() {
4297
- this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, Q.preRender(this.updateProjection, !1, !0));
4297
+ this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, ee.preRender(this.updateProjection, !1, !0));
4298
4298
  }
4299
4299
  scheduleCheckAfterUnmount() {
4300
- Q.postRender(() => {
4300
+ ee.postRender(() => {
4301
4301
  this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
4302
4302
  });
4303
4303
  }
4304
4304
  updateSnapshot() {
4305
- this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !ve(this.snapshot.measuredBox.x) && !ve(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
4305
+ this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !xe(this.snapshot.measuredBox.x) && !xe(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
4306
4306
  }
4307
4307
  updateLayout() {
4308
4308
  if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty))
@@ -4478,16 +4478,16 @@ function ia({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4478
4478
  setAnimationOrigin(o, l = !1) {
4479
4479
  const a = this.snapshot, u = a ? a.latestValues : {}, c = { ...this.latestValues }, f = rt();
4480
4480
  (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !l;
4481
- const h = se(), p = a ? a.source : void 0, v = this.layout ? this.layout.source : void 0, y = p !== v, P = this.getStack(), x = !P || P.members.length <= 1, S = Boolean(y && !x && this.options.crossfade === !0 && !this.path.some(Nf));
4481
+ const h = se(), p = a ? a.source : void 0, v = this.layout ? this.layout.source : void 0, y = p !== v, w = this.getStack(), x = !w || w.members.length <= 1, P = Boolean(y && !x && this.options.crossfade === !0 && !this.path.some(Nf));
4482
4482
  this.animationProgress = 0;
4483
- let T;
4484
- this.mixTargetDelta = (V) => {
4485
- const m = V / 1e3;
4486
- ds(f.x, o.x, m), ds(f.y, o.y, m), this.setTargetDelta(f), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (St(h, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Ff(this.relativeTarget, this.relativeTargetOrigin, h, m), T && wf(this.relativeTarget, T) && (this.isProjectionDirty = !1), T || (T = se()), Ee(T, this.relativeTarget)), y && (this.animationValues = c, gf(c, u, this.latestValues, m, S, x)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = m;
4483
+ let S;
4484
+ this.mixTargetDelta = (E) => {
4485
+ const m = E / 1e3;
4486
+ ds(f.x, o.x, m), ds(f.y, o.y, m), this.setTargetDelta(f), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (St(h, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Ff(this.relativeTarget, this.relativeTargetOrigin, h, m), S && wf(this.relativeTarget, S) && (this.isProjectionDirty = !1), S || (S = se()), Ee(S, this.relativeTarget)), y && (this.animationValues = c, gf(c, u, this.latestValues, m, P, x)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = m;
4487
4487
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
4488
4488
  }
4489
4489
  startAnimation(o) {
4490
- this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (Ne(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = Q.update(() => {
4490
+ this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (Ne(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = ee.update(() => {
4491
4491
  Yt.hasAnimatedSinceResize = !0, Tt.layout++, this.currentAnimation = uf(0, cs, {
4492
4492
  ...o,
4493
4493
  onUpdate: (l) => {
@@ -4516,9 +4516,9 @@ function ia({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4516
4516
  if (!(!l || !a || !u)) {
4517
4517
  if (this !== o && this.layout && u && sa(this.options.animationType, this.layout.layoutBox, u.layoutBox)) {
4518
4518
  a = this.target || se();
4519
- const f = ve(this.layout.layoutBox.x);
4519
+ const f = xe(this.layout.layoutBox.x);
4520
4520
  a.x.min = o.target.x.min, a.x.max = a.x.min + f;
4521
- const h = ve(this.layout.layoutBox.y);
4521
+ const h = xe(this.layout.layoutBox.y);
4522
4522
  a.y.min = o.target.y.min, a.y.max = a.y.min + h;
4523
4523
  }
4524
4524
  Ee(l, a), st(l, c), Pt(this.projectionDeltaWithTransform, this.layoutCorrected, l, c);
@@ -4599,13 +4599,13 @@ function ia({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4599
4599
  for (const y in Et) {
4600
4600
  if (h[y] === void 0)
4601
4601
  continue;
4602
- const { correct: P, applyTo: x, isCSSVariable: S } = Et[y], T = u.transform === "none" ? h[y] : P(h[y], f);
4602
+ const { correct: w, applyTo: x, isCSSVariable: P } = Et[y], S = u.transform === "none" ? h[y] : w(h[y], f);
4603
4603
  if (x) {
4604
- const V = x.length;
4605
- for (let m = 0; m < V; m++)
4606
- u[x[m]] = T;
4604
+ const E = x.length;
4605
+ for (let m = 0; m < E; m++)
4606
+ u[x[m]] = S;
4607
4607
  } else
4608
- S ? this.options.visualElement.renderState.vars[y] = T : u[y] = T;
4608
+ P ? this.options.visualElement.renderState.vars[y] = S : u[y] = S;
4609
4609
  }
4610
4610
  return this.options.layoutId && (u.pointerEvents = f === this ? Wt(o == null ? void 0 : o.pointerEvents) || "" : "none"), u;
4611
4611
  }
@@ -4629,10 +4629,10 @@ function Af(e) {
4629
4629
  if (e.isLead() && e.layout && n && e.hasListeners("didUpdate")) {
4630
4630
  const { layoutBox: r, measuredBox: i } = e.layout, { animationType: s } = e.options, o = n.source !== e.layout.source;
4631
4631
  s === "size" ? Re((f) => {
4632
- const h = o ? n.measuredBox[f] : n.layoutBox[f], p = ve(h);
4632
+ const h = o ? n.measuredBox[f] : n.layoutBox[f], p = xe(h);
4633
4633
  h.min = r[f].min, h.max = h.min + p;
4634
4634
  }) : sa(s, n.layoutBox, r) && Re((f) => {
4635
- const h = o ? n.measuredBox[f] : n.layoutBox[f], p = ve(r[f]);
4635
+ const h = o ? n.measuredBox[f] : n.layoutBox[f], p = xe(r[f]);
4636
4636
  h.max = h.min + p, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[f].max = e.relativeTarget[f].min + p);
4637
4637
  });
4638
4638
  const l = rt();
@@ -4769,7 +4769,7 @@ function ys(e, t, n) {
4769
4769
  const { props: r } = e;
4770
4770
  e.animationState && r.whileHover && e.animationState.setActive("whileHover", n === "Start");
4771
4771
  const i = "onHover" + n, s = r[i];
4772
- s && Q.postRender(() => s(t, _t(t)));
4772
+ s && ee.postRender(() => s(t, _t(t)));
4773
4773
  }
4774
4774
  class Yf extends $e {
4775
4775
  mount() {
@@ -4807,7 +4807,7 @@ function vs(e, t, n) {
4807
4807
  return;
4808
4808
  e.animationState && r.whileTap && e.animationState.setActive("whileTap", n === "Start");
4809
4809
  const i = "onTap" + (n === "End" ? "" : n), s = r[i];
4810
- s && Q.postRender(() => s(t, _t(t)));
4810
+ s && ee.postRender(() => s(t, _t(t)));
4811
4811
  }
4812
4812
  class qf extends $e {
4813
4813
  mount() {
@@ -4940,7 +4940,7 @@ class ld {
4940
4940
  this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
4941
4941
  }, this.renderScheduledAt = 0, this.scheduleRender = () => {
4942
4942
  const p = De.now();
4943
- this.renderScheduledAt < p && (this.renderScheduledAt = p, Q.render(this.render, !1, !0));
4943
+ this.renderScheduledAt < p && (this.renderScheduledAt = p, ee.render(this.render, !1, !0));
4944
4944
  };
4945
4945
  const { latestValues: a, renderState: u, onUpdate: c } = o;
4946
4946
  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 = sn(n), this.isVariantNode = Bs(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = Boolean(t && t.current);
@@ -4968,7 +4968,7 @@ class ld {
4968
4968
  const r = Xe.has(t);
4969
4969
  r && this.onBindTransform && this.onBindTransform();
4970
4970
  const i = n.on("change", (l) => {
4971
- this.latestValues[t] = l, this.props.onUpdate && Q.preRender(this.notifyUpdate), r && this.projection && (this.projection.isTransformDirty = !0);
4971
+ this.latestValues[t] = l, this.props.onUpdate && ee.preRender(this.notifyUpdate), r && this.projection && (this.projection.isTransformDirty = !0);
4972
4972
  }), s = n.on("renderRequest", this.scheduleRender);
4973
4973
  let o;
4974
4974
  window.MotionCheckAppearSync && (o = window.MotionCheckAppearSync(this, t, n)), this.valueSubscriptions.set(t, () => {
@@ -5146,7 +5146,7 @@ class fd extends la {
5146
5146
  return eo(t, n, r);
5147
5147
  }
5148
5148
  onBindTransform() {
5149
- this.current && !this.renderState.dimensions && Q.postRender(this.updateDimensions);
5149
+ this.current && !this.renderState.dimensions && ee.postRender(this.updateDimensions);
5150
5150
  }
5151
5151
  build(t, n, r) {
5152
5152
  gr(t, n, this.isSVGTag, r.transformTemplate);
@@ -5360,8 +5360,8 @@ const dd = (e, t) => mr(e) ? new fd(t) : new ud(t, {
5360
5360
  onFileSend: n,
5361
5361
  dynamicSymbolAssignments: r
5362
5362
  }) => {
5363
- const [i, s] = be(""), [o, l] = be(!1), [a, u] = be(0), [c, f] = be(null), [h, p] = be(null), [v, y] = be(0), P = ye(null), x = ye([]), S = ye(null), T = ye(null), V = ye(null), [m, A] = be(!1), F = (B) => {
5364
- const D = B.target.value;
5363
+ const [i, s] = be(""), [o, l] = be(!1), [a, u] = be(0), [c, f] = be(null), [h, p] = be(null), [v, y] = be(0), w = ve(null), x = ve([]), P = ve(null), S = ve(null), E = ve(null), [m, j] = be(!1), F = ($) => {
5364
+ const D = $.target.value;
5365
5365
  s(D);
5366
5366
  const L = D.match(/(\S+)$/);
5367
5367
  if (L) {
@@ -5373,44 +5373,44 @@ const dd = (e, t) => mr(e) ? new fd(t) : new ud(t, {
5373
5373
  r != null && r.some((b) => b.symbol === ae) && f(ae);
5374
5374
  } else
5375
5375
  f(null);
5376
- }, j = (B, D) => {
5377
- s((L) => L + D + " "), f(null), T.current.focus();
5378
- }, G = () => {
5376
+ }, V = ($, D) => {
5377
+ s((L) => L + D + " "), f(null), S.current.focus();
5378
+ }, N = () => {
5379
5379
  i.trim() !== "" && (e(i), s(""), f(null));
5380
- }, ee = async () => {
5381
- l(!0), u(0), x.current = [], S.current = setInterval(() => {
5380
+ }, J = async () => {
5381
+ l(!0), u(0), x.current = [], P.current = setInterval(() => {
5382
5382
  u((L) => L + 1);
5383
5383
  }, 1e3);
5384
- const B = await navigator.mediaDevices.getUserMedia({ audio: !0 }), D = new MediaRecorder(B);
5385
- P.current = D, D.ondataavailable = (L) => {
5384
+ const $ = await navigator.mediaDevices.getUserMedia({ audio: !0 }), D = new MediaRecorder($);
5385
+ w.current = D, D.ondataavailable = (L) => {
5386
5386
  L.data.size > 0 && x.current.push(L.data);
5387
5387
  }, D.onstop = () => {
5388
- clearInterval(S.current);
5388
+ clearInterval(P.current);
5389
5389
  const L = new Blob(x.current, { type: "audio/mp3" }), ae = URL.createObjectURL(L);
5390
5390
  t(ae), l(!1);
5391
5391
  }, D.start();
5392
- }, ue = () => {
5393
- var B;
5394
- (B = P.current) == null || B.stop();
5395
- }, xe = () => {
5396
- var B;
5397
- (B = V.current) == null || B.click();
5398
- }, oe = (B) => {
5392
+ }, ce = () => {
5393
+ var $;
5394
+ ($ = w.current) == null || $.stop();
5395
+ }, Pe = () => {
5396
+ var $;
5397
+ ($ = E.current) == null || $.click();
5398
+ }, oe = ($) => {
5399
5399
  var L;
5400
- const D = (L = B.target.files) == null ? void 0 : L[0];
5400
+ const D = (L = $.target.files) == null ? void 0 : L[0];
5401
5401
  D && n(D);
5402
- }, re = (B) => {
5403
- const D = Math.floor(B / 60), L = B % 60;
5402
+ }, re = ($) => {
5403
+ const D = Math.floor($ / 60), L = $ % 60;
5404
5404
  return `${D.toString().padStart(2, "0")}:${L.toString().padStart(2, "0")}`;
5405
- }, Pe = (B) => {
5406
- const { scrollTop: D, scrollHeight: L, clientHeight: ae } = B.currentTarget;
5405
+ }, ge = ($) => {
5406
+ const { scrollTop: D, scrollHeight: L, clientHeight: ae } = $.currentTarget;
5407
5407
  if (D > v) {
5408
5408
  if (D + ae >= L - 1) {
5409
5409
  const C = r == null ? void 0 : r.find(
5410
5410
  (k) => k.symbol === c
5411
5411
  );
5412
- C && (C != null && C.updatePageNumber) && (A(!0), C == null || C.updatePageNumber(C.pagNumber + 1), y(D), setTimeout(() => {
5413
- A(!1);
5412
+ C && (C != null && C.updatePageNumber) && (j(!0), C == null || C.updatePageNumber(C.pagNumber + 1), y(D), setTimeout(() => {
5413
+ j(!1);
5414
5414
  }, 500));
5415
5415
  }
5416
5416
  } else
@@ -5423,7 +5423,7 @@ const dd = (e, t) => mr(e) ? new fd(t) : new ud(t, {
5423
5423
  "button",
5424
5424
  {
5425
5425
  className: "cursor-pointer p-2 flex justify-center items-center bg-green-500 text-white rounded-full",
5426
- onClick: ue,
5426
+ onClick: ce,
5427
5427
  children: /* @__PURE__ */ g.exports.jsx(bs, {})
5428
5428
  }
5429
5429
  )
@@ -5432,7 +5432,7 @@ const dd = (e, t) => mr(e) ? new fd(t) : new ud(t, {
5432
5432
  /* @__PURE__ */ g.exports.jsx(
5433
5433
  "div",
5434
5434
  {
5435
- onClick: xe,
5435
+ onClick: Pe,
5436
5436
  className: "cursor-pointer absolute right-4 top-[11px]",
5437
5437
  children: /* @__PURE__ */ g.exports.jsx(gd, {})
5438
5438
  }
@@ -5441,7 +5441,7 @@ const dd = (e, t) => mr(e) ? new fd(t) : new ud(t, {
5441
5441
  "input",
5442
5442
  {
5443
5443
  type: "file",
5444
- ref: V,
5444
+ ref: E,
5445
5445
  style: { display: "none" },
5446
5446
  onChange: oe
5447
5447
  }
@@ -5450,13 +5450,13 @@ const dd = (e, t) => mr(e) ? new fd(t) : new ud(t, {
5450
5450
  "input",
5451
5451
  {
5452
5452
  type: "text",
5453
- ref: T,
5453
+ ref: S,
5454
5454
  className: "w-full bg-white flex-1 p-2 pl-4 border border-gray-300 outline-none rounded-tl-3xl rounded-tr-2xl rounded-bl-3xl ",
5455
5455
  placeholder: "Type a message...",
5456
5456
  value: i,
5457
5457
  onChange: F,
5458
- onKeyDown: (B) => {
5459
- B.key === "Enter" && !B.shiftKey && (B.preventDefault(), G());
5458
+ onKeyDown: ($) => {
5459
+ $.key === "Enter" && !$.shiftKey && ($.preventDefault(), N());
5460
5460
  }
5461
5461
  }
5462
5462
  ),
@@ -5466,7 +5466,7 @@ const dd = (e, t) => mr(e) ? new fd(t) : new ud(t, {
5466
5466
  "button",
5467
5467
  {
5468
5468
  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",
5469
- onClick: i ? G : ee,
5469
+ onClick: i ? N : J,
5470
5470
  children: i ? /* @__PURE__ */ g.exports.jsx(bs, {}) : /* @__PURE__ */ g.exports.jsx(yd, {})
5471
5471
  }
5472
5472
  )
@@ -5475,7 +5475,7 @@ const dd = (e, t) => mr(e) ? new fd(t) : new ud(t, {
5475
5475
  "div",
5476
5476
  {
5477
5477
  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",
5478
- onScroll: Pe,
5478
+ onScroll: ge,
5479
5479
  children: [
5480
5480
  /* @__PURE__ */ g.exports.jsxs("div", { className: "flex justify-between items-center border-b pb-2 mb-2", children: [
5481
5481
  /* @__PURE__ */ g.exports.jsxs("h3", { className: "text-lg font-semibold text-gray-800", children: [
@@ -5493,9 +5493,9 @@ const dd = (e, t) => mr(e) ? new fd(t) : new ud(t, {
5493
5493
  )
5494
5494
  ] }),
5495
5495
  /* @__PURE__ */ g.exports.jsxs("div", { className: "space-y-2", children: [
5496
- r ? r.filter((B) => B.symbol === c).map((B) => {
5496
+ r ? r.filter(($) => $.symbol === c).map(($) => {
5497
5497
  var ae;
5498
- const { component: D, lists: L } = B;
5498
+ const { component: D, lists: L } = $;
5499
5499
  return D ? h ? (ae = L == null ? void 0 : L.filter((b) => b == null ? void 0 : b.name.includes(h))) == null ? void 0 : ae.map((b, C) => /* @__PURE__ */ g.exports.jsx(
5500
5500
  "div",
5501
5501
  {
@@ -5504,7 +5504,7 @@ const dd = (e, t) => mr(e) ? new fd(t) : new ud(t, {
5504
5504
  D,
5505
5505
  {
5506
5506
  listsProps: b,
5507
- onClick: (k, _) => j(k, _)
5507
+ onClick: (k, _) => V(k, _)
5508
5508
  }
5509
5509
  )
5510
5510
  },
@@ -5517,7 +5517,7 @@ const dd = (e, t) => mr(e) ? new fd(t) : new ud(t, {
5517
5517
  D,
5518
5518
  {
5519
5519
  listsProps: b,
5520
- onClick: (k, _) => j(k, _)
5520
+ onClick: (k, _) => V(k, _)
5521
5521
  }
5522
5522
  )
5523
5523
  },
@@ -5608,7 +5608,7 @@ const Ts = ({
5608
5608
  );
5609
5609
  let yt = null;
5610
5610
  const Td = ({ src: e, className: t }) => {
5611
- const [n, r] = be(!1), [i, s] = be(0), o = ye(null);
5611
+ const [n, r] = be(!1), [i, s] = be(0), o = ve(null);
5612
5612
  Qt(() => {
5613
5613
  const a = o.current;
5614
5614
  if (!a)
@@ -5751,17 +5751,17 @@ const Td = ({ src: e, className: t }) => {
5751
5751
  ]
5752
5752
  }
5753
5753
  );
5754
- var ce = { exports: {} }, En = { exports: {} }, X = {};
5754
+ var ue = { exports: {} }, En = { exports: {} }, X = {};
5755
5755
  var ws;
5756
5756
  function Ed() {
5757
5757
  if (ws)
5758
5758
  return X;
5759
5759
  ws = 1;
5760
- 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, p = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, y = e ? Symbol.for("react.block") : 60121, P = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, S = e ? Symbol.for("react.scope") : 60119;
5761
- function T(m) {
5760
+ 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, p = 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, P = e ? Symbol.for("react.scope") : 60119;
5761
+ function S(m) {
5762
5762
  if (typeof m == "object" && m !== null) {
5763
- var A = m.$$typeof;
5764
- switch (A) {
5763
+ var j = m.$$typeof;
5764
+ switch (j) {
5765
5765
  case t:
5766
5766
  switch (m = m.type, m) {
5767
5767
  case a:
@@ -5780,59 +5780,59 @@ function Ed() {
5780
5780
  case o:
5781
5781
  return m;
5782
5782
  default:
5783
- return A;
5783
+ return j;
5784
5784
  }
5785
5785
  }
5786
5786
  case n:
5787
- return A;
5787
+ return j;
5788
5788
  }
5789
5789
  }
5790
5790
  }
5791
- function V(m) {
5792
- return T(m) === u;
5791
+ function E(m) {
5792
+ return S(m) === u;
5793
5793
  }
5794
5794
  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 = p, X.Portal = n, X.Profiler = s, X.StrictMode = i, X.Suspense = f, X.isAsyncMode = function(m) {
5795
- return V(m) || T(m) === a;
5796
- }, X.isConcurrentMode = V, X.isContextConsumer = function(m) {
5797
- return T(m) === l;
5795
+ return E(m) || S(m) === a;
5796
+ }, X.isConcurrentMode = E, X.isContextConsumer = function(m) {
5797
+ return S(m) === l;
5798
5798
  }, X.isContextProvider = function(m) {
5799
- return T(m) === o;
5799
+ return S(m) === o;
5800
5800
  }, X.isElement = function(m) {
5801
5801
  return typeof m == "object" && m !== null && m.$$typeof === t;
5802
5802
  }, X.isForwardRef = function(m) {
5803
- return T(m) === c;
5803
+ return S(m) === c;
5804
5804
  }, X.isFragment = function(m) {
5805
- return T(m) === r;
5805
+ return S(m) === r;
5806
5806
  }, X.isLazy = function(m) {
5807
- return T(m) === v;
5807
+ return S(m) === v;
5808
5808
  }, X.isMemo = function(m) {
5809
- return T(m) === p;
5809
+ return S(m) === p;
5810
5810
  }, X.isPortal = function(m) {
5811
- return T(m) === n;
5811
+ return S(m) === n;
5812
5812
  }, X.isProfiler = function(m) {
5813
- return T(m) === s;
5813
+ return S(m) === s;
5814
5814
  }, X.isStrictMode = function(m) {
5815
- return T(m) === i;
5815
+ return S(m) === i;
5816
5816
  }, X.isSuspense = function(m) {
5817
- return T(m) === f;
5817
+ return S(m) === f;
5818
5818
  }, X.isValidElementType = function(m) {
5819
- return typeof m == "string" || typeof m == "function" || m === r || m === u || m === s || m === i || m === f || m === h || typeof m == "object" && m !== null && (m.$$typeof === v || m.$$typeof === p || m.$$typeof === o || m.$$typeof === l || m.$$typeof === c || m.$$typeof === P || m.$$typeof === x || m.$$typeof === S || m.$$typeof === y);
5820
- }, X.typeOf = T, X;
5819
+ return typeof m == "string" || typeof m == "function" || m === r || m === u || m === s || m === i || m === f || m === h || typeof m == "object" && m !== null && (m.$$typeof === v || m.$$typeof === p || m.$$typeof === o || m.$$typeof === l || m.$$typeof === c || m.$$typeof === w || m.$$typeof === x || m.$$typeof === P || m.$$typeof === y);
5820
+ }, X.typeOf = S, X;
5821
5821
  }
5822
5822
  var Z = {};
5823
5823
  var Ps;
5824
5824
  function Rd() {
5825
5825
  return Ps || (Ps = 1, process.env.NODE_ENV !== "production" && function() {
5826
- 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, p = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, y = e ? Symbol.for("react.block") : 60121, P = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, S = e ? Symbol.for("react.scope") : 60119;
5827
- function T(R) {
5828
- return typeof R == "string" || typeof R == "function" || R === r || R === u || R === s || R === i || R === f || R === h || typeof R == "object" && R !== null && (R.$$typeof === v || R.$$typeof === p || R.$$typeof === o || R.$$typeof === l || R.$$typeof === c || R.$$typeof === P || R.$$typeof === x || R.$$typeof === S || R.$$typeof === y);
5826
+ 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, p = 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, P = e ? Symbol.for("react.scope") : 60119;
5827
+ function S(A) {
5828
+ 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 === p || A.$$typeof === o || A.$$typeof === l || A.$$typeof === c || A.$$typeof === w || A.$$typeof === x || A.$$typeof === P || A.$$typeof === y);
5829
5829
  }
5830
- function V(R) {
5831
- if (typeof R == "object" && R !== null) {
5832
- var Se = R.$$typeof;
5830
+ function E(A) {
5831
+ if (typeof A == "object" && A !== null) {
5832
+ var Se = A.$$typeof;
5833
5833
  switch (Se) {
5834
5834
  case t:
5835
- var Ze = R.type;
5835
+ var Ze = A.type;
5836
5836
  switch (Ze) {
5837
5837
  case a:
5838
5838
  case u:
@@ -5859,47 +5859,47 @@ function Rd() {
5859
5859
  }
5860
5860
  }
5861
5861
  }
5862
- var m = a, A = u, F = l, j = o, G = t, ee = c, ue = r, xe = v, oe = p, re = n, Pe = s, B = i, D = f, L = !1;
5863
- function ae(R) {
5864
- return L || (L = !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(R) || V(R) === a;
5862
+ var m = a, j = u, F = l, V = o, N = t, J = c, ce = r, Pe = v, oe = p, re = n, ge = s, $ = i, D = f, L = !1;
5863
+ function ae(A) {
5864
+ return L || (L = !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) || E(A) === a;
5865
5865
  }
5866
- function b(R) {
5867
- return V(R) === u;
5866
+ function b(A) {
5867
+ return E(A) === u;
5868
5868
  }
5869
- function C(R) {
5870
- return V(R) === l;
5869
+ function C(A) {
5870
+ return E(A) === l;
5871
5871
  }
5872
- function k(R) {
5873
- return V(R) === o;
5872
+ function k(A) {
5873
+ return E(A) === o;
5874
5874
  }
5875
- function _(R) {
5876
- return typeof R == "object" && R !== null && R.$$typeof === t;
5875
+ function _(A) {
5876
+ return typeof A == "object" && A !== null && A.$$typeof === t;
5877
5877
  }
5878
- function I(R) {
5879
- return V(R) === c;
5878
+ function I(A) {
5879
+ return E(A) === c;
5880
5880
  }
5881
- function Y(R) {
5882
- return V(R) === r;
5881
+ function K(A) {
5882
+ return E(A) === r;
5883
5883
  }
5884
- function N(R) {
5885
- return V(R) === v;
5884
+ function B(A) {
5885
+ return E(A) === v;
5886
5886
  }
5887
- function $(R) {
5888
- return V(R) === p;
5887
+ function U(A) {
5888
+ return E(A) === p;
5889
5889
  }
5890
- function U(R) {
5891
- return V(R) === n;
5890
+ function W(A) {
5891
+ return E(A) === n;
5892
5892
  }
5893
- function q(R) {
5894
- return V(R) === s;
5893
+ function G(A) {
5894
+ return E(A) === s;
5895
5895
  }
5896
- function W(R) {
5897
- return V(R) === i;
5896
+ function z(A) {
5897
+ return E(A) === i;
5898
5898
  }
5899
- function de(R) {
5900
- return V(R) === f;
5899
+ function de(A) {
5900
+ return E(A) === f;
5901
5901
  }
5902
- Z.AsyncMode = m, Z.ConcurrentMode = A, Z.ContextConsumer = F, Z.ContextProvider = j, Z.Element = G, Z.ForwardRef = ee, Z.Fragment = ue, Z.Lazy = xe, Z.Memo = oe, Z.Portal = re, Z.Profiler = Pe, Z.StrictMode = B, Z.Suspense = D, Z.isAsyncMode = ae, Z.isConcurrentMode = b, Z.isContextConsumer = C, Z.isContextProvider = k, Z.isElement = _, Z.isForwardRef = I, Z.isFragment = Y, Z.isLazy = N, Z.isMemo = $, Z.isPortal = U, Z.isProfiler = q, Z.isStrictMode = W, Z.isSuspense = de, Z.isValidElementType = T, Z.typeOf = V;
5902
+ Z.AsyncMode = m, Z.ConcurrentMode = j, Z.ContextConsumer = F, Z.ContextProvider = V, Z.Element = N, Z.ForwardRef = J, Z.Fragment = ce, Z.Lazy = Pe, Z.Memo = oe, Z.Portal = re, Z.Profiler = ge, Z.StrictMode = $, Z.Suspense = D, Z.isAsyncMode = ae, Z.isConcurrentMode = b, Z.isContextConsumer = C, Z.isContextProvider = k, Z.isElement = _, Z.isForwardRef = I, Z.isFragment = K, Z.isLazy = B, Z.isMemo = U, Z.isPortal = W, Z.isProfiler = G, Z.isStrictMode = z, Z.isSuspense = de, Z.isValidElementType = S, Z.typeOf = E;
5903
5903
  }()), Z;
5904
5904
  }
5905
5905
  var Ss;
@@ -6051,16 +6051,16 @@ function Vd() {
6051
6051
  object: x("object"),
6052
6052
  string: x("string"),
6053
6053
  symbol: x("symbol"),
6054
- any: S(),
6055
- arrayOf: T,
6056
- element: V(),
6054
+ any: P(),
6055
+ arrayOf: S,
6056
+ element: E(),
6057
6057
  elementType: m(),
6058
- instanceOf: A,
6059
- node: ee(),
6060
- objectOf: j,
6058
+ instanceOf: j,
6059
+ node: J(),
6060
+ objectOf: V,
6061
6061
  oneOf: F,
6062
- oneOfType: G,
6063
- shape: xe,
6062
+ oneOfType: N,
6063
+ shape: Pe,
6064
6064
  exact: oe
6065
6065
  };
6066
6066
  function v(b, C) {
@@ -6070,130 +6070,130 @@ function Vd() {
6070
6070
  this.message = b, this.data = C && typeof C == "object" ? C : {}, this.stack = "";
6071
6071
  }
6072
6072
  y.prototype = Error.prototype;
6073
- function P(b) {
6073
+ function w(b) {
6074
6074
  if (process.env.NODE_ENV !== "production")
6075
6075
  var C = {}, k = 0;
6076
- function _(Y, N, $, U, q, W, de) {
6077
- if (U = U || h, W = W || $, de !== n) {
6076
+ function _(K, B, U, W, G, z, de) {
6077
+ if (W = W || h, z = z || U, de !== n) {
6078
6078
  if (a) {
6079
- var R = new Error(
6079
+ var A = new Error(
6080
6080
  "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"
6081
6081
  );
6082
- throw R.name = "Invariant Violation", R;
6082
+ throw A.name = "Invariant Violation", A;
6083
6083
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
6084
- var Se = U + ":" + $;
6084
+ var Se = W + ":" + U;
6085
6085
  !C[Se] && k < 3 && (s(
6086
- "You are manually calling a React.PropTypes validation function for the `" + W + "` prop on `" + U + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
6086
+ "You are manually calling a React.PropTypes validation function for the `" + z + "` prop on `" + W + "`. 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."
6087
6087
  ), C[Se] = !0, k++);
6088
6088
  }
6089
6089
  }
6090
- return N[$] == null ? Y ? N[$] === null ? new y("The " + q + " `" + W + "` is marked as required " + ("in `" + U + "`, but its value is `null`.")) : new y("The " + q + " `" + W + "` is marked as required in " + ("`" + U + "`, but its value is `undefined`.")) : null : b(N, $, U, q, W);
6090
+ return B[U] == null ? K ? B[U] === null ? new y("The " + G + " `" + z + "` is marked as required " + ("in `" + W + "`, but its value is `null`.")) : new y("The " + G + " `" + z + "` is marked as required in " + ("`" + W + "`, but its value is `undefined`.")) : null : b(B, U, W, G, z);
6091
6091
  }
6092
6092
  var I = _.bind(null, !1);
6093
6093
  return I.isRequired = _.bind(null, !0), I;
6094
6094
  }
6095
6095
  function x(b) {
6096
- function C(k, _, I, Y, N, $) {
6097
- var U = k[_], q = B(U);
6098
- if (q !== b) {
6099
- var W = D(U);
6096
+ function C(k, _, I, K, B, U) {
6097
+ var W = k[_], G = $(W);
6098
+ if (G !== b) {
6099
+ var z = D(W);
6100
6100
  return new y(
6101
- "Invalid " + Y + " `" + N + "` of type " + ("`" + W + "` supplied to `" + I + "`, expected ") + ("`" + b + "`."),
6101
+ "Invalid " + K + " `" + B + "` of type " + ("`" + z + "` supplied to `" + I + "`, expected ") + ("`" + b + "`."),
6102
6102
  { expectedType: b }
6103
6103
  );
6104
6104
  }
6105
6105
  return null;
6106
6106
  }
6107
- return P(C);
6107
+ return w(C);
6108
6108
  }
6109
- function S() {
6110
- return P(o);
6109
+ function P() {
6110
+ return w(o);
6111
6111
  }
6112
- function T(b) {
6113
- function C(k, _, I, Y, N) {
6112
+ function S(b) {
6113
+ function C(k, _, I, K, B) {
6114
6114
  if (typeof b != "function")
6115
- return new y("Property `" + N + "` of component `" + I + "` has invalid PropType notation inside arrayOf.");
6116
- var $ = k[_];
6117
- if (!Array.isArray($)) {
6118
- var U = B($);
6119
- return new y("Invalid " + Y + " `" + N + "` of type " + ("`" + U + "` supplied to `" + I + "`, expected an array."));
6115
+ return new y("Property `" + B + "` of component `" + I + "` has invalid PropType notation inside arrayOf.");
6116
+ var U = k[_];
6117
+ if (!Array.isArray(U)) {
6118
+ var W = $(U);
6119
+ return new y("Invalid " + K + " `" + B + "` of type " + ("`" + W + "` supplied to `" + I + "`, expected an array."));
6120
6120
  }
6121
- for (var q = 0; q < $.length; q++) {
6122
- var W = b($, q, I, Y, N + "[" + q + "]", n);
6123
- if (W instanceof Error)
6124
- return W;
6121
+ for (var G = 0; G < U.length; G++) {
6122
+ var z = b(U, G, I, K, B + "[" + G + "]", n);
6123
+ if (z instanceof Error)
6124
+ return z;
6125
6125
  }
6126
6126
  return null;
6127
6127
  }
6128
- return P(C);
6129
- }
6130
- function V() {
6131
- function b(C, k, _, I, Y) {
6132
- var N = C[k];
6133
- if (!l(N)) {
6134
- var $ = B(N);
6135
- return new y("Invalid " + I + " `" + Y + "` of type " + ("`" + $ + "` supplied to `" + _ + "`, expected a single ReactElement."));
6128
+ return w(C);
6129
+ }
6130
+ function E() {
6131
+ function b(C, k, _, I, K) {
6132
+ var B = C[k];
6133
+ if (!l(B)) {
6134
+ var U = $(B);
6135
+ return new y("Invalid " + I + " `" + K + "` of type " + ("`" + U + "` supplied to `" + _ + "`, expected a single ReactElement."));
6136
6136
  }
6137
6137
  return null;
6138
6138
  }
6139
- return P(b);
6139
+ return w(b);
6140
6140
  }
6141
6141
  function m() {
6142
- function b(C, k, _, I, Y) {
6143
- var N = C[k];
6144
- if (!e.isValidElementType(N)) {
6145
- var $ = B(N);
6146
- return new y("Invalid " + I + " `" + Y + "` of type " + ("`" + $ + "` supplied to `" + _ + "`, expected a single ReactElement type."));
6142
+ function b(C, k, _, I, K) {
6143
+ var B = C[k];
6144
+ if (!e.isValidElementType(B)) {
6145
+ var U = $(B);
6146
+ return new y("Invalid " + I + " `" + K + "` of type " + ("`" + U + "` supplied to `" + _ + "`, expected a single ReactElement type."));
6147
6147
  }
6148
6148
  return null;
6149
6149
  }
6150
- return P(b);
6150
+ return w(b);
6151
6151
  }
6152
- function A(b) {
6153
- function C(k, _, I, Y, N) {
6152
+ function j(b) {
6153
+ function C(k, _, I, K, B) {
6154
6154
  if (!(k[_] instanceof b)) {
6155
- var $ = b.name || h, U = ae(k[_]);
6156
- return new y("Invalid " + Y + " `" + N + "` of type " + ("`" + U + "` supplied to `" + I + "`, expected ") + ("instance of `" + $ + "`."));
6155
+ var U = b.name || h, W = ae(k[_]);
6156
+ return new y("Invalid " + K + " `" + B + "` of type " + ("`" + W + "` supplied to `" + I + "`, expected ") + ("instance of `" + U + "`."));
6157
6157
  }
6158
6158
  return null;
6159
6159
  }
6160
- return P(C);
6160
+ return w(C);
6161
6161
  }
6162
6162
  function F(b) {
6163
6163
  if (!Array.isArray(b))
6164
6164
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? s(
6165
6165
  "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])."
6166
6166
  ) : s("Invalid argument supplied to oneOf, expected an array.")), o;
6167
- function C(k, _, I, Y, N) {
6168
- for (var $ = k[_], U = 0; U < b.length; U++)
6169
- if (v($, b[U]))
6167
+ function C(k, _, I, K, B) {
6168
+ for (var U = k[_], W = 0; W < b.length; W++)
6169
+ if (v(U, b[W]))
6170
6170
  return null;
6171
- var q = JSON.stringify(b, function(de, R) {
6172
- var Se = D(R);
6173
- return Se === "symbol" ? String(R) : R;
6171
+ var G = JSON.stringify(b, function(de, A) {
6172
+ var Se = D(A);
6173
+ return Se === "symbol" ? String(A) : A;
6174
6174
  });
6175
- return new y("Invalid " + Y + " `" + N + "` of value `" + String($) + "` " + ("supplied to `" + I + "`, expected one of " + q + "."));
6175
+ return new y("Invalid " + K + " `" + B + "` of value `" + String(U) + "` " + ("supplied to `" + I + "`, expected one of " + G + "."));
6176
6176
  }
6177
- return P(C);
6177
+ return w(C);
6178
6178
  }
6179
- function j(b) {
6180
- function C(k, _, I, Y, N) {
6179
+ function V(b) {
6180
+ function C(k, _, I, K, B) {
6181
6181
  if (typeof b != "function")
6182
- return new y("Property `" + N + "` of component `" + I + "` has invalid PropType notation inside objectOf.");
6183
- var $ = k[_], U = B($);
6184
- if (U !== "object")
6185
- return new y("Invalid " + Y + " `" + N + "` of type " + ("`" + U + "` supplied to `" + I + "`, expected an object."));
6186
- for (var q in $)
6187
- if (r($, q)) {
6188
- var W = b($, q, I, Y, N + "." + q, n);
6189
- if (W instanceof Error)
6190
- return W;
6182
+ return new y("Property `" + B + "` of component `" + I + "` has invalid PropType notation inside objectOf.");
6183
+ var U = k[_], W = $(U);
6184
+ if (W !== "object")
6185
+ return new y("Invalid " + K + " `" + B + "` of type " + ("`" + W + "` supplied to `" + I + "`, expected an object."));
6186
+ for (var G in U)
6187
+ if (r(U, G)) {
6188
+ var z = b(U, G, I, K, B + "." + G, n);
6189
+ if (z instanceof Error)
6190
+ return z;
6191
6191
  }
6192
6192
  return null;
6193
6193
  }
6194
- return P(C);
6194
+ return w(C);
6195
6195
  }
6196
- function G(b) {
6196
+ function N(b) {
6197
6197
  if (!Array.isArray(b))
6198
6198
  return process.env.NODE_ENV !== "production" && s("Invalid argument supplied to oneOfType, expected an instance of array."), o;
6199
6199
  for (var C = 0; C < b.length; C++) {
@@ -6203,68 +6203,68 @@ function Vd() {
6203
6203
  "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + L(k) + " at index " + C + "."
6204
6204
  ), o;
6205
6205
  }
6206
- function _(I, Y, N, $, U) {
6207
- for (var q = [], W = 0; W < b.length; W++) {
6208
- var de = b[W], R = de(I, Y, N, $, U, n);
6209
- if (R == null)
6206
+ function _(I, K, B, U, W) {
6207
+ for (var G = [], z = 0; z < b.length; z++) {
6208
+ var de = b[z], A = de(I, K, B, U, W, n);
6209
+ if (A == null)
6210
6210
  return null;
6211
- R.data && r(R.data, "expectedType") && q.push(R.data.expectedType);
6211
+ A.data && r(A.data, "expectedType") && G.push(A.data.expectedType);
6212
6212
  }
6213
- var Se = q.length > 0 ? ", expected one of type [" + q.join(", ") + "]" : "";
6214
- return new y("Invalid " + $ + " `" + U + "` supplied to " + ("`" + N + "`" + Se + "."));
6213
+ var Se = G.length > 0 ? ", expected one of type [" + G.join(", ") + "]" : "";
6214
+ return new y("Invalid " + U + " `" + W + "` supplied to " + ("`" + B + "`" + Se + "."));
6215
6215
  }
6216
- return P(_);
6216
+ return w(_);
6217
6217
  }
6218
- function ee() {
6219
- function b(C, k, _, I, Y) {
6220
- return re(C[k]) ? null : new y("Invalid " + I + " `" + Y + "` supplied to " + ("`" + _ + "`, expected a ReactNode."));
6218
+ function J() {
6219
+ function b(C, k, _, I, K) {
6220
+ return re(C[k]) ? null : new y("Invalid " + I + " `" + K + "` supplied to " + ("`" + _ + "`, expected a ReactNode."));
6221
6221
  }
6222
- return P(b);
6222
+ return w(b);
6223
6223
  }
6224
- function ue(b, C, k, _, I) {
6224
+ function ce(b, C, k, _, I) {
6225
6225
  return new y(
6226
6226
  (b || "React class") + ": " + C + " type `" + k + "." + _ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + I + "`."
6227
6227
  );
6228
6228
  }
6229
- function xe(b) {
6230
- function C(k, _, I, Y, N) {
6231
- var $ = k[_], U = B($);
6232
- if (U !== "object")
6233
- return new y("Invalid " + Y + " `" + N + "` of type `" + U + "` " + ("supplied to `" + I + "`, expected `object`."));
6234
- for (var q in b) {
6235
- var W = b[q];
6236
- if (typeof W != "function")
6237
- return ue(I, Y, N, q, D(W));
6238
- var de = W($, q, I, Y, N + "." + q, n);
6229
+ function Pe(b) {
6230
+ function C(k, _, I, K, B) {
6231
+ var U = k[_], W = $(U);
6232
+ if (W !== "object")
6233
+ return new y("Invalid " + K + " `" + B + "` of type `" + W + "` " + ("supplied to `" + I + "`, expected `object`."));
6234
+ for (var G in b) {
6235
+ var z = b[G];
6236
+ if (typeof z != "function")
6237
+ return ce(I, K, B, G, D(z));
6238
+ var de = z(U, G, I, K, B + "." + G, n);
6239
6239
  if (de)
6240
6240
  return de;
6241
6241
  }
6242
6242
  return null;
6243
6243
  }
6244
- return P(C);
6244
+ return w(C);
6245
6245
  }
6246
6246
  function oe(b) {
6247
- function C(k, _, I, Y, N) {
6248
- var $ = k[_], U = B($);
6249
- if (U !== "object")
6250
- return new y("Invalid " + Y + " `" + N + "` of type `" + U + "` " + ("supplied to `" + I + "`, expected `object`."));
6251
- var q = t({}, k[_], b);
6252
- for (var W in q) {
6253
- var de = b[W];
6254
- if (r(b, W) && typeof de != "function")
6255
- return ue(I, Y, N, W, D(de));
6247
+ function C(k, _, I, K, B) {
6248
+ var U = k[_], W = $(U);
6249
+ if (W !== "object")
6250
+ return new y("Invalid " + K + " `" + B + "` of type `" + W + "` " + ("supplied to `" + I + "`, expected `object`."));
6251
+ var G = t({}, k[_], b);
6252
+ for (var z in G) {
6253
+ var de = b[z];
6254
+ if (r(b, z) && typeof de != "function")
6255
+ return ce(I, K, B, z, D(de));
6256
6256
  if (!de)
6257
6257
  return new y(
6258
- "Invalid " + Y + " `" + N + "` key `" + W + "` supplied to `" + I + "`.\nBad object: " + JSON.stringify(k[_], null, " ") + `
6258
+ "Invalid " + K + " `" + B + "` key `" + z + "` supplied to `" + I + "`.\nBad object: " + JSON.stringify(k[_], null, " ") + `
6259
6259
  Valid keys: ` + JSON.stringify(Object.keys(b), null, " ")
6260
6260
  );
6261
- var R = de($, W, I, Y, N + "." + W, n);
6262
- if (R)
6263
- return R;
6261
+ var A = de(U, z, I, K, B + "." + z, n);
6262
+ if (A)
6263
+ return A;
6264
6264
  }
6265
6265
  return null;
6266
6266
  }
6267
- return P(C);
6267
+ return w(C);
6268
6268
  }
6269
6269
  function re(b) {
6270
6270
  switch (typeof b) {
@@ -6299,17 +6299,17 @@ Valid keys: ` + JSON.stringify(Object.keys(b), null, " ")
6299
6299
  return !1;
6300
6300
  }
6301
6301
  }
6302
- function Pe(b, C) {
6302
+ function ge(b, C) {
6303
6303
  return b === "symbol" ? !0 : C ? C["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && C instanceof Symbol : !1;
6304
6304
  }
6305
- function B(b) {
6305
+ function $(b) {
6306
6306
  var C = typeof b;
6307
- return Array.isArray(b) ? "array" : b instanceof RegExp ? "object" : Pe(C, b) ? "symbol" : C;
6307
+ return Array.isArray(b) ? "array" : b instanceof RegExp ? "object" : ge(C, b) ? "symbol" : C;
6308
6308
  }
6309
6309
  function D(b) {
6310
6310
  if (typeof b > "u" || b === null)
6311
6311
  return "" + b;
6312
- var C = B(b);
6312
+ var C = $(b);
6313
6313
  if (C === "object") {
6314
6314
  if (b instanceof Date)
6315
6315
  return "date";
@@ -6389,9 +6389,9 @@ function Dd() {
6389
6389
  }
6390
6390
  if (process.env.NODE_ENV !== "production") {
6391
6391
  var Md = ca(), Od = !0;
6392
- ce.exports = Vd()(Md.isElement, Od);
6392
+ ue.exports = Vd()(Md.isElement, Od);
6393
6393
  } else
6394
- ce.exports = Dd()();
6394
+ ue.exports = Dd()();
6395
6395
  function Hn() {
6396
6396
  return Hn = Object.assign || function(e) {
6397
6397
  for (var t = 1; t < arguments.length; t++) {
@@ -6439,8 +6439,8 @@ var Nr = Mt(function(e, t) {
6439
6439
  }));
6440
6440
  });
6441
6441
  Nr.propTypes = {
6442
- color: ce.exports.string,
6443
- size: ce.exports.oneOfType([ce.exports.string, ce.exports.number])
6442
+ color: ue.exports.string,
6443
+ size: ue.exports.oneOfType([ue.exports.string, ue.exports.number])
6444
6444
  };
6445
6445
  Nr.displayName = "Check";
6446
6446
  const _d = Nr;
@@ -6498,8 +6498,8 @@ var Br = Mt(function(e, t) {
6498
6498
  }));
6499
6499
  });
6500
6500
  Br.propTypes = {
6501
- color: ce.exports.string,
6502
- size: ce.exports.oneOfType([ce.exports.string, ce.exports.number])
6501
+ color: ue.exports.string,
6502
+ size: ue.exports.oneOfType([ue.exports.string, ue.exports.number])
6503
6503
  };
6504
6504
  Br.displayName = "Copy";
6505
6505
  const Nd = Br;
@@ -6552,8 +6552,8 @@ var $r = Mt(function(e, t) {
6552
6552
  }));
6553
6553
  });
6554
6554
  $r.propTypes = {
6555
- color: ce.exports.string,
6556
- size: ce.exports.oneOfType([ce.exports.string, ce.exports.number])
6555
+ color: ue.exports.string,
6556
+ size: ue.exports.oneOfType([ue.exports.string, ue.exports.number])
6557
6557
  };
6558
6558
  $r.displayName = "Edit";
6559
6559
  const Ud = $r;
@@ -6606,8 +6606,8 @@ var Ur = Mt(function(e, t) {
6606
6606
  }));
6607
6607
  });
6608
6608
  Ur.propTypes = {
6609
- color: ce.exports.string,
6610
- size: ce.exports.oneOfType([ce.exports.string, ce.exports.number])
6609
+ color: ue.exports.string,
6610
+ size: ue.exports.oneOfType([ue.exports.string, ue.exports.number])
6611
6611
  };
6612
6612
  Ur.displayName = "Trash";
6613
6613
  const Yd = Ur, Kd = ({
@@ -6618,32 +6618,32 @@ const Yd = Ur, Kd = ({
6618
6618
  onEditMessage: i,
6619
6619
  onDeleteMessage: s
6620
6620
  }) => {
6621
- const o = ye(null), [l, a] = be(!1), [u, c] = be(null), [f, h] = be(null), p = () => {
6621
+ const o = ve(null), [l, a] = be(!1), [u, c] = be(null), [f, h] = be(null), p = () => {
6622
6622
  setTimeout(() => {
6623
6623
  o.current && (o.current.scrollTop = o.current.scrollHeight);
6624
6624
  }, 100);
6625
- }, v = (m, A) => {
6625
+ }, v = (m, j) => {
6626
6626
  if (m.preventDefault(), !o.current)
6627
6627
  return;
6628
6628
  const F = o.current.getBoundingClientRect();
6629
6629
  h({
6630
6630
  x: m.clientX - F.left,
6631
6631
  y: m.clientY - F.top,
6632
- message: A
6632
+ message: j
6633
6633
  });
6634
6634
  }, y = () => {
6635
6635
  h(null);
6636
- }, P = (m) => {
6637
- const A = new dn({
6636
+ }, w = (m) => {
6637
+ const j = new dn({
6638
6638
  id: new Date().toString(),
6639
6639
  text: m,
6640
6640
  user: e,
6641
6641
  isRightSided: !0,
6642
6642
  createdDate: new Date().toString()
6643
6643
  });
6644
- n([...t, A]), r(A), p();
6644
+ n([...t, j]), r(j), p();
6645
6645
  }, x = (m) => {
6646
- const A = new dn({
6646
+ const j = new dn({
6647
6647
  id: new Date().toString(),
6648
6648
  text: "",
6649
6649
  attachment: m,
@@ -6652,12 +6652,12 @@ const Yd = Ur, Kd = ({
6652
6652
  isRightSided: !0,
6653
6653
  createdDate: new Date().toString()
6654
6654
  });
6655
- n([...t, A]), r(A), p();
6656
- }, S = (m) => {
6657
- const A = URL.createObjectURL(m), F = new dn({
6655
+ n([...t, j]), r(j), p();
6656
+ }, P = (m) => {
6657
+ const j = URL.createObjectURL(m), F = new dn({
6658
6658
  id: new Date().toString(),
6659
6659
  text: "",
6660
- attachment: A,
6660
+ attachment: j,
6661
6661
  attachmentType: qe.File,
6662
6662
  user: e,
6663
6663
  isRightSided: !0,
@@ -6702,9 +6702,9 @@ const Yd = Ur, Kd = ({
6702
6702
  }
6703
6703
  }
6704
6704
  ],
6705
- handleSendFile: S,
6705
+ handleSendFile: P,
6706
6706
  handleSendVoice: x,
6707
- handleSendMessage: P,
6707
+ handleSendMessage: w,
6708
6708
  handleContextMenu: v,
6709
6709
  isModalOpen: l,
6710
6710
  contextMenu: f,
@@ -6722,21 +6722,22 @@ const Yd = Ur, Kd = ({
6722
6722
  onMessageSent: l,
6723
6723
  onDeleteMessage: a,
6724
6724
  onEditMessage: u,
6725
- dynamicSymbolAssignments: c
6725
+ dynamicSymbolAssignments: c,
6726
+ backgroundImage: f
6726
6727
  }) => {
6727
- var A, F;
6728
+ var F, V;
6728
6729
  const {
6729
- handleDeleteConfirmation: f,
6730
- handleCloseContextMenu: h,
6731
- handleSendFile: p,
6732
- handleSendVoice: v,
6733
- handleSendMessage: y,
6734
- handleContextMenu: P,
6735
- contextMenuItems: x,
6730
+ handleDeleteConfirmation: h,
6731
+ handleCloseContextMenu: p,
6732
+ handleSendFile: v,
6733
+ handleSendVoice: y,
6734
+ handleSendMessage: w,
6735
+ handleContextMenu: x,
6736
+ contextMenuItems: P,
6736
6737
  isModalOpen: S,
6737
- contextMenu: T,
6738
- chatRef: V,
6739
- setIsModalOpen: m
6738
+ contextMenu: E,
6739
+ chatRef: m,
6740
+ setIsModalOpen: j
6740
6741
  } = Kd({
6741
6742
  user: s,
6742
6743
  messages: i,
@@ -6752,46 +6753,46 @@ const Yd = Ur, Kd = ({
6752
6753
  style: {
6753
6754
  width: e,
6754
6755
  height: t,
6755
- background: "url(./chat-bg-1.jpg)",
6756
+ background: "url(" + f + ")",
6756
6757
  ...r
6757
6758
  },
6758
- onClick: h,
6759
+ onClick: p,
6759
6760
  children: [
6760
6761
  /* @__PURE__ */ g.exports.jsx(
6761
6762
  "div",
6762
6763
  {
6763
- ref: V,
6764
- className: `flex flex-col gap-2 flex-1 p-3 pb-16 ${T ? "overflow-hidden pr-[22px]" : "overflow-y-scroll"}`,
6765
- children: /* @__PURE__ */ g.exports.jsx(ks, { children: i.map((j, G) => {
6766
- var xe, oe, re;
6767
- const ee = j != null && j.attachment ? /* @__PURE__ */ g.exports.jsx(
6764
+ ref: m,
6765
+ className: `flex flex-col gap-2 flex-1 p-3 pb-16 ${E ? "overflow-hidden pr-[22px]" : "overflow-y-scroll"}`,
6766
+ children: /* @__PURE__ */ g.exports.jsx(ks, { children: i.map((N, J) => {
6767
+ var oe, re, ge;
6768
+ const ce = N != null && N.attachment ? /* @__PURE__ */ g.exports.jsx(
6768
6769
  wd,
6769
6770
  {
6770
- attachment: j.attachment,
6771
- attachmentType: j == null ? void 0 : j.attachmentType
6771
+ attachment: N.attachment,
6772
+ attachmentType: N == null ? void 0 : N.attachmentType
6772
6773
  },
6773
- G
6774
+ J
6774
6775
  ) : null;
6775
- if (j.isRightSided)
6776
+ if (N.isRightSided)
6776
6777
  return /* @__PURE__ */ g.exports.jsx(
6777
6778
  Cd,
6778
6779
  {
6779
- media: ee,
6780
- handleContextMenu: P,
6781
- message: j
6780
+ media: ce,
6781
+ handleContextMenu: x,
6782
+ message: N
6782
6783
  },
6783
- G
6784
+ J
6784
6785
  );
6785
- const ue = ((oe = (xe = i[G - 1]) == null ? void 0 : xe.user) == null ? void 0 : oe.id) !== ((re = j == null ? void 0 : j.user) == null ? void 0 : re.id);
6786
+ const Pe = ((re = (oe = i[J - 1]) == null ? void 0 : oe.user) == null ? void 0 : re.id) !== ((ge = N == null ? void 0 : N.user) == null ? void 0 : ge.id);
6786
6787
  return /* @__PURE__ */ g.exports.jsx(
6787
6788
  Pd,
6788
6789
  {
6789
- showUserProfile: ue,
6790
- media: ee,
6791
- handleContextMenu: P,
6792
- message: j
6790
+ showUserProfile: Pe,
6791
+ media: ce,
6792
+ handleContextMenu: x,
6793
+ message: N
6793
6794
  },
6794
- G
6795
+ J
6795
6796
  );
6796
6797
  }) })
6797
6798
  }
@@ -6800,31 +6801,31 @@ const Yd = Ur, Kd = ({
6800
6801
  pd,
6801
6802
  {
6802
6803
  isOpen: S,
6803
- onClose: () => m(!1),
6804
- onConfirm: f,
6804
+ onClose: () => j(!1),
6805
+ onConfirm: h,
6805
6806
  header: "Confirm Delete",
6806
6807
  question: "Are you sure you want to delete this message?"
6807
6808
  }
6808
6809
  ),
6809
- T && ((A = T == null ? void 0 : T.message) != null && A.id) ? /* @__PURE__ */ g.exports.jsx(
6810
+ E && ((F = E == null ? void 0 : E.message) != null && F.id) ? /* @__PURE__ */ g.exports.jsx(
6810
6811
  md,
6811
6812
  {
6812
- items: x,
6813
- isVisible: Boolean(T),
6814
- messageId: String(T == null ? void 0 : T.message.id),
6815
- isCurrentUserMessage: ((F = T == null ? void 0 : T.message) == null ? void 0 : F.user.id) === s.id,
6813
+ items: P,
6814
+ isVisible: Boolean(E),
6815
+ messageId: String(E == null ? void 0 : E.message.id),
6816
+ isCurrentUserMessage: ((V = E == null ? void 0 : E.message) == null ? void 0 : V.user.id) === s.id,
6816
6817
  position: {
6817
- x: T == null ? void 0 : T.x,
6818
- y: T == null ? void 0 : T.y
6818
+ x: E == null ? void 0 : E.x,
6819
+ y: E == null ? void 0 : E.y
6819
6820
  }
6820
6821
  }
6821
6822
  ) : null,
6822
6823
  /* @__PURE__ */ g.exports.jsx(
6823
6824
  vd,
6824
6825
  {
6825
- onSendVoice: v,
6826
- onSendMessage: y,
6827
- onFileSend: p,
6826
+ onSendVoice: y,
6827
+ onSendMessage: w,
6828
+ onFileSend: v,
6828
6829
  dynamicSymbolAssignments: c
6829
6830
  }
6830
6831
  )