@botpress/webchat 2.4.0-beta.2 → 2.4.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -303,14 +303,14 @@ function dC() {
303
303
  mt.unshift("Warning: " + ee), Function.prototype.apply.call(console[C], console, mt);
304
304
  }
305
305
  }
306
- var k = !1, S = !1, E = !1, O = !1, j = !1, D;
307
- D = Symbol.for("react.module.reference");
306
+ var k = !1, S = !1, E = !1, O = !1, j = !1, N;
307
+ N = Symbol.for("react.module.reference");
308
308
  function T(C) {
309
309
  return !!(typeof C == "string" || typeof C == "function" || C === r || C === a || j || C === i || C === l || C === u || O || C === d || k || S || E || typeof C == "object" && C !== null && (C.$$typeof === p || C.$$typeof === f || C.$$typeof === o || C.$$typeof === s || C.$$typeof === c || // This needs to include all possible module reference object
310
310
  // types supported by any Flight configuration anywhere since
311
311
  // we don't know which Flight build this will end up being used
312
312
  // with.
313
- C.$$typeof === D || C.getModuleId !== void 0));
313
+ C.$$typeof === N || C.getModuleId !== void 0));
314
314
  }
315
315
  function P(C, ee, ve) {
316
316
  var De = C.displayName;
@@ -367,14 +367,14 @@ function dC() {
367
367
  }
368
368
  return null;
369
369
  }
370
- var L = Object.assign, M = 0, F, q, B, N, x, z, Z;
370
+ var L = Object.assign, M = 0, F, q, B, D, x, z, Z;
371
371
  function _() {
372
372
  }
373
373
  _.__reactDisabledLog = !0;
374
374
  function G() {
375
375
  {
376
376
  if (M === 0) {
377
- F = console.log, q = console.info, B = console.warn, N = console.error, x = console.group, z = console.groupCollapsed, Z = console.groupEnd;
377
+ F = console.log, q = console.info, B = console.warn, D = console.error, x = console.group, z = console.groupCollapsed, Z = console.groupEnd;
378
378
  var C = {
379
379
  configurable: !0,
380
380
  enumerable: !0,
@@ -413,7 +413,7 @@ function dC() {
413
413
  value: B
414
414
  }),
415
415
  error: L({}, C, {
416
- value: N
416
+ value: D
417
417
  }),
418
418
  group: L({}, C, {
419
419
  value: x
@@ -1152,8 +1152,8 @@ var e1 = { exports: {} };
1152
1152
  return (M <= 0 ? "+" : "-") + b(q, 2, "0") + ":" + b(B, 2, "0");
1153
1153
  }, m: function L(M, F) {
1154
1154
  if (M.date() < F.date()) return -L(F, M);
1155
- var q = 12 * (F.year() - M.year()) + (F.month() - M.month()), B = M.clone().add(q, f), N = F - B < 0, x = M.clone().add(q + (N ? -1 : 1), f);
1156
- return +(-(q + (F - B) / (N ? B - x : x - B)) || 0);
1155
+ var q = 12 * (F.year() - M.year()) + (F.month() - M.month()), B = M.clone().add(q, f), D = F - B < 0, x = M.clone().add(q + (D ? -1 : 1), f);
1156
+ return +(-(q + (F - B) / (D ? B - x : x - B)) || 0);
1157
1157
  }, a: function(L) {
1158
1158
  return L < 0 ? Math.ceil(L) || 0 : Math.floor(L);
1159
1159
  }, p: function(L) {
@@ -1164,12 +1164,12 @@ var e1 = { exports: {} };
1164
1164
  E[S] = g;
1165
1165
  var O = "$isDayjsObject", j = function(L) {
1166
1166
  return L instanceof V || !(!L || !L[O]);
1167
- }, D = function L(M, F, q) {
1167
+ }, N = function L(M, F, q) {
1168
1168
  var B;
1169
1169
  if (!M) return S;
1170
1170
  if (typeof M == "string") {
1171
- var N = M.toLowerCase();
1172
- E[N] && (B = N), F && (E[N] = F, B = N);
1171
+ var D = M.toLowerCase();
1172
+ E[D] && (B = D), F && (E[D] = F, B = D);
1173
1173
  var x = M.split("-");
1174
1174
  if (!B && x.length > 1) return L(x[0]);
1175
1175
  } else {
@@ -1182,17 +1182,17 @@ var e1 = { exports: {} };
1182
1182
  var F = typeof M == "object" ? M : {};
1183
1183
  return F.date = L, F.args = arguments, new V(F);
1184
1184
  }, P = k;
1185
- P.l = D, P.i = j, P.w = function(L, M) {
1185
+ P.l = N, P.i = j, P.w = function(L, M) {
1186
1186
  return T(L, { locale: M.$L, utc: M.$u, x: M.$x, $offset: M.$offset });
1187
1187
  };
1188
1188
  var V = function() {
1189
1189
  function L(F) {
1190
- this.$L = D(F.locale, null, !0), this.parse(F), this.$x = this.$x || F.x || {}, this[O] = !0;
1190
+ this.$L = N(F.locale, null, !0), this.parse(F), this.$x = this.$x || F.x || {}, this[O] = !0;
1191
1191
  }
1192
1192
  var M = L.prototype;
1193
1193
  return M.parse = function(F) {
1194
1194
  this.$d = function(q) {
1195
- var B = q.date, N = q.utc;
1195
+ var B = q.date, D = q.utc;
1196
1196
  if (B === null) return /* @__PURE__ */ new Date(NaN);
1197
1197
  if (P.u(B)) return /* @__PURE__ */ new Date();
1198
1198
  if (B instanceof Date) return new Date(B);
@@ -1200,7 +1200,7 @@ var e1 = { exports: {} };
1200
1200
  var x = B.match(y);
1201
1201
  if (x) {
1202
1202
  var z = x[2] - 1 || 0, Z = (x[7] || "0").substring(0, 3);
1203
- return N ? new Date(Date.UTC(x[1], z, x[3] || 1, x[4] || 0, x[5] || 0, x[6] || 0, Z)) : new Date(x[1], z, x[3] || 1, x[4] || 0, x[5] || 0, x[6] || 0, Z);
1203
+ return D ? new Date(Date.UTC(x[1], z, x[3] || 1, x[4] || 0, x[5] || 0, x[6] || 0, Z)) : new Date(x[1], z, x[3] || 1, x[4] || 0, x[5] || 0, x[6] || 0, Z);
1204
1204
  }
1205
1205
  }
1206
1206
  return new Date(B);
@@ -1226,20 +1226,20 @@ var e1 = { exports: {} };
1226
1226
  }, M.valueOf = function() {
1227
1227
  return this.$d.getTime();
1228
1228
  }, M.startOf = function(F, q) {
1229
- var B = this, N = !!P.u(q) || q, x = P.p(F), z = function(pe, le) {
1229
+ var B = this, D = !!P.u(q) || q, x = P.p(F), z = function(pe, le) {
1230
1230
  var X = P.w(B.$u ? Date.UTC(B.$y, le, pe) : new Date(B.$y, le, pe), B);
1231
- return N ? X : X.endOf(l);
1231
+ return D ? X : X.endOf(l);
1232
1232
  }, Z = function(pe, le) {
1233
- return P.w(B.toDate()[pe].apply(B.toDate("s"), (N ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(le)), B);
1233
+ return P.w(B.toDate()[pe].apply(B.toDate("s"), (D ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(le)), B);
1234
1234
  }, _ = this.$W, G = this.$M, ae = this.$D, te = "set" + (this.$u ? "UTC" : "");
1235
1235
  switch (x) {
1236
1236
  case d:
1237
- return N ? z(1, 0) : z(31, 11);
1237
+ return D ? z(1, 0) : z(31, 11);
1238
1238
  case f:
1239
- return N ? z(1, G) : z(0, G + 1);
1239
+ return D ? z(1, G) : z(0, G + 1);
1240
1240
  case u:
1241
1241
  var se = this.$locale().weekStart || 0, de = (_ < se ? _ + 7 : _) - se;
1242
- return z(N ? ae - de : ae + (6 - de), G);
1242
+ return z(D ? ae - de : ae + (6 - de), G);
1243
1243
  case l:
1244
1244
  case m:
1245
1245
  return Z(te + "Hours", 0);
@@ -1255,8 +1255,8 @@ var e1 = { exports: {} };
1255
1255
  }, M.endOf = function(F) {
1256
1256
  return this.startOf(F, !1);
1257
1257
  }, M.$set = function(F, q) {
1258
- var B, N = P.p(F), x = "set" + (this.$u ? "UTC" : ""), z = (B = {}, B[l] = x + "Date", B[m] = x + "Date", B[f] = x + "Month", B[d] = x + "FullYear", B[c] = x + "Hours", B[s] = x + "Minutes", B[o] = x + "Seconds", B[a] = x + "Milliseconds", B)[N], Z = N === l ? this.$D + (q - this.$W) : q;
1259
- if (N === f || N === d) {
1258
+ var B, D = P.p(F), x = "set" + (this.$u ? "UTC" : ""), z = (B = {}, B[l] = x + "Date", B[m] = x + "Date", B[f] = x + "Month", B[d] = x + "FullYear", B[c] = x + "Hours", B[s] = x + "Minutes", B[o] = x + "Seconds", B[a] = x + "Milliseconds", B)[D], Z = D === l ? this.$D + (q - this.$W) : q;
1259
+ if (D === f || D === d) {
1260
1260
  var _ = this.clone().set(m, 1);
1261
1261
  _.$d[z](Z), _.init(), this.$d = _.set(m, Math.min(this.$D, _.daysInMonth())).$d;
1262
1262
  } else z && this.$d[z](Z);
@@ -1266,11 +1266,11 @@ var e1 = { exports: {} };
1266
1266
  }, M.get = function(F) {
1267
1267
  return this[P.p(F)]();
1268
1268
  }, M.add = function(F, q) {
1269
- var B, N = this;
1269
+ var B, D = this;
1270
1270
  F = Number(F);
1271
1271
  var x = P.p(q), z = function(G) {
1272
- var ae = T(N);
1273
- return P.w(ae.date(ae.date() + Math.round(G * F)), N);
1272
+ var ae = T(D);
1273
+ return P.w(ae.date(ae.date() + Math.round(G * F)), D);
1274
1274
  };
1275
1275
  if (x === f) return this.set(f, this.$M + F);
1276
1276
  if (x === d) return this.set(d, this.$y + F);
@@ -1283,15 +1283,15 @@ var e1 = { exports: {} };
1283
1283
  }, M.format = function(F) {
1284
1284
  var q = this, B = this.$locale();
1285
1285
  if (!this.isValid()) return B.invalidDate || h;
1286
- var N = F || "YYYY-MM-DDTHH:mm:ssZ", x = P.z(this), z = this.$H, Z = this.$m, _ = this.$M, G = B.weekdays, ae = B.months, te = B.meridiem, se = function(le, X, H, fe) {
1287
- return le && (le[X] || le(q, N)) || H[X].slice(0, fe);
1286
+ var D = F || "YYYY-MM-DDTHH:mm:ssZ", x = P.z(this), z = this.$H, Z = this.$m, _ = this.$M, G = B.weekdays, ae = B.months, te = B.meridiem, se = function(le, X, H, fe) {
1287
+ return le && (le[X] || le(q, D)) || H[X].slice(0, fe);
1288
1288
  }, de = function(le) {
1289
1289
  return P.s(z % 12 || 12, le, "0");
1290
1290
  }, pe = te || function(le, X, H) {
1291
1291
  var fe = le < 12 ? "AM" : "PM";
1292
1292
  return H ? fe.toLowerCase() : fe;
1293
1293
  };
1294
- return N.replace(v, function(le, X) {
1294
+ return D.replace(v, function(le, X) {
1295
1295
  return X || function(H) {
1296
1296
  switch (H) {
1297
1297
  case "YY":
@@ -1349,46 +1349,46 @@ var e1 = { exports: {} };
1349
1349
  }, M.utcOffset = function() {
1350
1350
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
1351
1351
  }, M.diff = function(F, q, B) {
1352
- var N, x = this, z = P.p(q), Z = T(F), _ = (Z.utcOffset() - this.utcOffset()) * r, G = this - Z, ae = function() {
1352
+ var D, x = this, z = P.p(q), Z = T(F), _ = (Z.utcOffset() - this.utcOffset()) * r, G = this - Z, ae = function() {
1353
1353
  return P.m(x, Z);
1354
1354
  };
1355
1355
  switch (z) {
1356
1356
  case d:
1357
- N = ae() / 12;
1357
+ D = ae() / 12;
1358
1358
  break;
1359
1359
  case f:
1360
- N = ae();
1360
+ D = ae();
1361
1361
  break;
1362
1362
  case p:
1363
- N = ae() / 3;
1363
+ D = ae() / 3;
1364
1364
  break;
1365
1365
  case u:
1366
- N = (G - _) / 6048e5;
1366
+ D = (G - _) / 6048e5;
1367
1367
  break;
1368
1368
  case l:
1369
- N = (G - _) / 864e5;
1369
+ D = (G - _) / 864e5;
1370
1370
  break;
1371
1371
  case c:
1372
- N = G / i;
1372
+ D = G / i;
1373
1373
  break;
1374
1374
  case s:
1375
- N = G / r;
1375
+ D = G / r;
1376
1376
  break;
1377
1377
  case o:
1378
- N = G / n;
1378
+ D = G / n;
1379
1379
  break;
1380
1380
  default:
1381
- N = G;
1381
+ D = G;
1382
1382
  }
1383
- return B ? N : P.a(N);
1383
+ return B ? D : P.a(D);
1384
1384
  }, M.daysInMonth = function() {
1385
1385
  return this.endOf(f).$D;
1386
1386
  }, M.$locale = function() {
1387
1387
  return E[this.$L];
1388
1388
  }, M.locale = function(F, q) {
1389
1389
  if (!F) return this.$L;
1390
- var B = this.clone(), N = D(F, q, !0);
1391
- return N && (B.$L = N), B;
1390
+ var B = this.clone(), D = N(F, q, !0);
1391
+ return D && (B.$L = D), B;
1392
1392
  }, M.clone = function() {
1393
1393
  return P.w(this.$d, this);
1394
1394
  }, M.toDate = function() {
@@ -1407,7 +1407,7 @@ var e1 = { exports: {} };
1407
1407
  };
1408
1408
  }), T.extend = function(L, M) {
1409
1409
  return L.$i || (L(M, V, T), L.$i = !0), T;
1410
- }, T.locale = D, T.isDayjs = j, T.unix = function(L) {
1410
+ }, T.locale = N, T.isDayjs = j, T.unix = function(L) {
1411
1411
  return T(1e3 * L);
1412
1412
  }, T.en = E[S], T.Ls = E, T.p = {}, T;
1413
1413
  });
@@ -6527,14 +6527,14 @@ function xI(e) {
6527
6527
  )
6528
6528
  return;
6529
6529
  const O = t.events.length;
6530
- let j = O, D, T;
6530
+ let j = O, N, T;
6531
6531
  for (; j--; )
6532
6532
  if (t.events[j][0] === "exit" && t.events[j][1].type === "chunkFlow") {
6533
- if (D) {
6533
+ if (N) {
6534
6534
  T = t.events[j][1].end;
6535
6535
  break;
6536
6536
  }
6537
- D = !0;
6537
+ N = !0;
6538
6538
  }
6539
6539
  for (v(r), E = O; E < t.events.length; )
6540
6540
  t.events[E][1].end = Object.assign({}, T), E++;
@@ -6825,7 +6825,7 @@ function PI(e, t, n) {
6825
6825
  return e.exit("codeFenced"), t(E);
6826
6826
  }
6827
6827
  function S(E, O, j) {
6828
- let D = 0;
6828
+ let N = 0;
6829
6829
  return T;
6830
6830
  function T(M) {
6831
6831
  return E.enter("lineEnding"), E.consume(M), E.exit("lineEnding"), P;
@@ -6837,7 +6837,7 @@ function PI(e, t, n) {
6837
6837
  return M === s ? (E.enter("codeFencedFenceSequence"), $(M)) : j(M);
6838
6838
  }
6839
6839
  function $(M) {
6840
- return M === s ? (D++, E.consume(M), $) : D >= o ? (E.exit("codeFencedFenceSequence"), We(M) ? et(E, L, "whitespace")(M) : L(M)) : j(M);
6840
+ return M === s ? (N++, E.consume(M), $) : N >= o ? (E.exit("codeFencedFenceSequence"), We(M) ? et(E, L, "whitespace")(M) : L(M)) : j(M);
6841
6841
  }
6842
6842
  function L(M) {
6843
6843
  return M === null || Re(M) ? (E.exit("codeFencedFence"), O(M)) : j(M);
@@ -7530,12 +7530,12 @@ function lP(e, t, n) {
7530
7530
  return _ === null || _ === 60 || _ === 61 || _ === 62 || _ === 96 ? n(_) : _ === 34 || _ === 39 ? (e.consume(_), c = _, O) : We(_) ? (e.consume(_), E) : j(_);
7531
7531
  }
7532
7532
  function O(_) {
7533
- return _ === c ? (e.consume(_), c = null, D) : _ === null || Re(_) ? n(_) : (e.consume(_), O);
7533
+ return _ === c ? (e.consume(_), c = null, N) : _ === null || Re(_) ? n(_) : (e.consume(_), O);
7534
7534
  }
7535
7535
  function j(_) {
7536
7536
  return _ === null || _ === 34 || _ === 39 || _ === 47 || _ === 60 || _ === 61 || _ === 62 || _ === 96 || vt(_) ? S(_) : (e.consume(_), j);
7537
7537
  }
7538
- function D(_) {
7538
+ function N(_) {
7539
7539
  return _ === 47 || _ === 62 || We(_) ? b(_) : n(_);
7540
7540
  }
7541
7541
  function T(_) {
@@ -7545,7 +7545,7 @@ function lP(e, t, n) {
7545
7545
  return _ === null || Re(_) ? V(_) : We(_) ? (e.consume(_), P) : n(_);
7546
7546
  }
7547
7547
  function V(_) {
7548
- return _ === 45 && i === 2 ? (e.consume(_), F) : _ === 60 && i === 1 ? (e.consume(_), q) : _ === 62 && i === 4 ? (e.consume(_), z) : _ === 63 && i === 3 ? (e.consume(_), x) : _ === 93 && i === 5 ? (e.consume(_), N) : Re(_) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(aP, Z, $)(_)) : _ === null || Re(_) ? (e.exit("htmlFlowData"), $(_)) : (e.consume(_), V);
7548
+ return _ === 45 && i === 2 ? (e.consume(_), F) : _ === 60 && i === 1 ? (e.consume(_), q) : _ === 62 && i === 4 ? (e.consume(_), z) : _ === 63 && i === 3 ? (e.consume(_), x) : _ === 93 && i === 5 ? (e.consume(_), D) : Re(_) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(aP, Z, $)(_)) : _ === null || Re(_) ? (e.exit("htmlFlowData"), $(_)) : (e.consume(_), V);
7549
7549
  }
7550
7550
  function $(_) {
7551
7551
  return e.check(oP, L, Z)(_);
@@ -7569,7 +7569,7 @@ function lP(e, t, n) {
7569
7569
  }
7570
7570
  return dn(_) && o.length < 8 ? (e.consume(_), o += String.fromCharCode(_), B) : V(_);
7571
7571
  }
7572
- function N(_) {
7572
+ function D(_) {
7573
7573
  return _ === 93 ? (e.consume(_), x) : V(_);
7574
7574
  }
7575
7575
  function x(_) {
@@ -7659,16 +7659,16 @@ function dP(e, t, n) {
7659
7659
  return Re(x) ? (o = O, q(x)) : We(x) ? (e.consume(x), O) : F(x);
7660
7660
  }
7661
7661
  function j(x) {
7662
- return x === 45 || an(x) ? (e.consume(x), j) : x === 47 || x === 62 || vt(x) ? D(x) : n(x);
7662
+ return x === 45 || an(x) ? (e.consume(x), j) : x === 47 || x === 62 || vt(x) ? N(x) : n(x);
7663
7663
  }
7664
- function D(x) {
7665
- return x === 47 ? (e.consume(x), F) : x === 58 || x === 95 || dn(x) ? (e.consume(x), T) : Re(x) ? (o = D, q(x)) : We(x) ? (e.consume(x), D) : F(x);
7664
+ function N(x) {
7665
+ return x === 47 ? (e.consume(x), F) : x === 58 || x === 95 || dn(x) ? (e.consume(x), T) : Re(x) ? (o = N, q(x)) : We(x) ? (e.consume(x), N) : F(x);
7666
7666
  }
7667
7667
  function T(x) {
7668
7668
  return x === 45 || x === 46 || x === 58 || x === 95 || an(x) ? (e.consume(x), T) : P(x);
7669
7669
  }
7670
7670
  function P(x) {
7671
- return x === 61 ? (e.consume(x), V) : Re(x) ? (o = P, q(x)) : We(x) ? (e.consume(x), P) : D(x);
7671
+ return x === 61 ? (e.consume(x), V) : Re(x) ? (o = P, q(x)) : We(x) ? (e.consume(x), P) : N(x);
7672
7672
  }
7673
7673
  function V(x) {
7674
7674
  return x === null || x === 60 || x === 61 || x === 62 || x === 96 ? n(x) : x === 34 || x === 39 ? (e.consume(x), i = x, $) : Re(x) ? (o = V, q(x)) : We(x) ? (e.consume(x), V) : (e.consume(x), L);
@@ -7677,10 +7677,10 @@ function dP(e, t, n) {
7677
7677
  return x === i ? (e.consume(x), i = void 0, M) : x === null ? n(x) : Re(x) ? (o = $, q(x)) : (e.consume(x), $);
7678
7678
  }
7679
7679
  function L(x) {
7680
- return x === null || x === 34 || x === 39 || x === 60 || x === 61 || x === 96 ? n(x) : x === 47 || x === 62 || vt(x) ? D(x) : (e.consume(x), L);
7680
+ return x === null || x === 34 || x === 39 || x === 60 || x === 61 || x === 96 ? n(x) : x === 47 || x === 62 || vt(x) ? N(x) : (e.consume(x), L);
7681
7681
  }
7682
7682
  function M(x) {
7683
- return x === 47 || x === 62 || vt(x) ? D(x) : n(x);
7683
+ return x === 47 || x === 62 || vt(x) ? N(x) : n(x);
7684
7684
  }
7685
7685
  function F(x) {
7686
7686
  return x === 62 ? (e.consume(x), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(x);
@@ -7689,9 +7689,9 @@ function dP(e, t, n) {
7689
7689
  return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(x), e.exit("lineEnding"), B;
7690
7690
  }
7691
7691
  function B(x) {
7692
- return We(x) ? et(e, N, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(x) : N(x);
7692
+ return We(x) ? et(e, D, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(x) : D(x);
7693
7693
  }
7694
- function N(x) {
7694
+ function D(x) {
7695
7695
  return e.enter("htmlTextData"), o(x);
7696
7696
  }
7697
7697
  }
@@ -8237,7 +8237,7 @@ function VP(e, t, n) {
8237
8237
  function O(P, V) {
8238
8238
  return $;
8239
8239
  function $(L, M, F) {
8240
- let q, B, N, x;
8240
+ let q, B, D, x;
8241
8241
  return Array.isArray(L) ? Z(L) : "tokenize" in L ? (
8242
8242
  // @ts-expect-error Looks like a construct.
8243
8243
  Z([L])
@@ -8260,7 +8260,7 @@ function VP(e, t, n) {
8260
8260
  function _(te) {
8261
8261
  return se;
8262
8262
  function se(de) {
8263
- return x = D(), N = te, te.partial || (l.currentConstruct = te), te.name && l.parser.constructs.disable.null.includes(te.name) ? ae() : te.tokenize.call(
8263
+ return x = N(), D = te, te.partial || (l.currentConstruct = te), te.name && l.parser.constructs.disable.null.includes(te.name) ? ae() : te.tokenize.call(
8264
8264
  // If we do have fields, create an object w/ `context` as its
8265
8265
  // prototype.
8266
8266
  // This allows a “live binding”, which is needed for `interrupt`.
@@ -8272,7 +8272,7 @@ function VP(e, t, n) {
8272
8272
  }
8273
8273
  }
8274
8274
  function G(te) {
8275
- return P(N, x), M;
8275
+ return P(D, x), M;
8276
8276
  }
8277
8277
  function ae(te) {
8278
8278
  return x.restore(), ++B < q.length ? _(q[B]) : F;
@@ -8287,7 +8287,7 @@ function VP(e, t, n) {
8287
8287
  P.resolve(l.events.slice(V), l)
8288
8288
  ), P.resolveTo && (l.events = P.resolveTo(l.events, l));
8289
8289
  }
8290
- function D() {
8290
+ function N() {
8291
8291
  const P = m(), V = l.previous, $ = l.currentConstruct, L = l.events.length, M = Array.from(s);
8292
8292
  return {
8293
8293
  restore: F,
@@ -8506,20 +8506,20 @@ function cA(e) {
8506
8506
  canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
8507
8507
  enter: {
8508
8508
  autolink: a(Q),
8509
- autolinkProtocol: D,
8510
- autolinkEmail: D,
8509
+ autolinkProtocol: N,
8510
+ autolinkEmail: N,
8511
8511
  atxHeading: a(Oe),
8512
8512
  blockQuote: a(le),
8513
- characterEscape: D,
8514
- characterReference: D,
8513
+ characterEscape: N,
8514
+ characterReference: N,
8515
8515
  codeFenced: a(X),
8516
8516
  codeFencedFenceInfo: o,
8517
8517
  codeFencedFenceMeta: o,
8518
8518
  codeIndented: a(X, o),
8519
8519
  codeText: a(H, o),
8520
- codeTextData: D,
8521
- data: D,
8522
- codeFlowValue: D,
8520
+ codeTextData: N,
8521
+ data: N,
8522
+ codeFlowValue: N,
8523
8523
  definition: a(fe),
8524
8524
  definitionDestinationString: o,
8525
8525
  definitionLabelString: o,
@@ -8528,9 +8528,9 @@ function cA(e) {
8528
8528
  hardBreakEscape: a(I),
8529
8529
  hardBreakTrailing: a(I),
8530
8530
  htmlFlow: a(Y, o),
8531
- htmlFlowData: D,
8531
+ htmlFlowData: N,
8532
8532
  htmlText: a(Y, o),
8533
- htmlTextData: D,
8533
+ htmlTextData: N,
8534
8534
  image: a(re),
8535
8535
  label: o,
8536
8536
  link: a(Q),
@@ -8580,7 +8580,7 @@ function cA(e) {
8580
8580
  htmlText: c(L),
8581
8581
  htmlTextData: T,
8582
8582
  image: c(q),
8583
- label: N,
8583
+ label: D,
8584
8584
  labelText: B,
8585
8585
  lineEnding: P,
8586
8586
  link: c(F),
@@ -8796,7 +8796,7 @@ function cA(e) {
8796
8796
  function j() {
8797
8797
  this.data.setextHeadingSlurpLineEnding = void 0;
8798
8798
  }
8799
- function D(U) {
8799
+ function N(U) {
8800
8800
  const J = this.stack[this.stack.length - 1].children;
8801
8801
  let ce = J[J.length - 1];
8802
8802
  (!ce || ce.type !== "text") && (ce = Ie(), ce.position = {
@@ -8816,7 +8816,7 @@ function cA(e) {
8816
8816
  J.position.end = Qr(U.end), this.data.atHardBreak = void 0;
8817
8817
  return;
8818
8818
  }
8819
- !this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(A.type) && (D.call(this, U), T.call(this, U));
8819
+ !this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(A.type) && (N.call(this, U), T.call(this, U));
8820
8820
  }
8821
8821
  function V() {
8822
8822
  this.data.atHardBreak = !0;
@@ -8855,7 +8855,7 @@ function cA(e) {
8855
8855
  const A = this.sliceSerialize(U), J = this.stack[this.stack.length - 2];
8856
8856
  J.label = oA(A), J.identifier = nr(A).toLowerCase();
8857
8857
  }
8858
- function N() {
8858
+ function D() {
8859
8859
  const U = this.stack[this.stack.length - 1], A = this.resume(), J = this.stack[this.stack.length - 1];
8860
8860
  if (this.data.inReference = !0, J.type === "link") {
8861
8861
  const ce = U.children;
@@ -12945,9 +12945,9 @@ function NM(e, t, n) {
12945
12945
  return T === 124 ? (e.enter("tableCellDivider"), e.consume(T), e.exit("tableCellDivider"), O) : T === null || Re(T) ? (e.exit("tableRow"), t(T)) : We(T) ? et(e, O, "whitespace")(T) : (e.enter("data"), j(T));
12946
12946
  }
12947
12947
  function j(T) {
12948
- return T === null || T === 124 || vt(T) ? (e.exit("data"), O(T)) : (e.consume(T), T === 92 ? D : j);
12948
+ return T === null || T === 124 || vt(T) ? (e.exit("data"), O(T)) : (e.consume(T), T === 92 ? N : j);
12949
12949
  }
12950
- function D(T) {
12950
+ function N(T) {
12951
12951
  return T === 92 || T === 124 ? (e.consume(T), j) : j(T);
12952
12952
  }
12953
12953
  }
@@ -13534,8 +13534,8 @@ function ZM() {
13534
13534
  {
13535
13535
  var E = t.ReactDebugCurrentFrame, O = E.getStackAddendum();
13536
13536
  O !== "" && (k += "%s", S = S.concat([O]));
13537
- var j = S.map(function(D) {
13538
- return String(D);
13537
+ var j = S.map(function(N) {
13538
+ return String(N);
13539
13539
  });
13540
13540
  j.unshift("Warning: " + k), Function.prototype.apply.call(console[b], console, j);
13541
13541
  }
@@ -13556,18 +13556,18 @@ function ZM() {
13556
13556
  value: E,
13557
13557
  getSnapshot: k
13558
13558
  }
13559
- }), D = j[0].inst, T = j[1];
13559
+ }), N = j[0].inst, T = j[1];
13560
13560
  return c(function() {
13561
- D.value = E, D.getSnapshot = k, d(D) && T({
13562
- inst: D
13561
+ N.value = E, N.getSnapshot = k, d(N) && T({
13562
+ inst: N
13563
13563
  });
13564
13564
  }, [b, E, k]), s(function() {
13565
- d(D) && T({
13566
- inst: D
13565
+ d(N) && T({
13566
+ inst: N
13567
13567
  });
13568
13568
  var P = function() {
13569
- d(D) && T({
13570
- inst: D
13569
+ d(N) && T({
13570
+ inst: N
13571
13571
  });
13572
13572
  };
13573
13573
  return b(P);
@@ -13685,10 +13685,10 @@ function GM() {
13685
13685
  return F;
13686
13686
  var q = d(V);
13687
13687
  return m !== void 0 && m(F, q) ? F : (E = V, O = q, q);
13688
- }, D = p === void 0 ? null : p, T = function() {
13688
+ }, N = p === void 0 ? null : p, T = function() {
13689
13689
  return j(f());
13690
- }, P = D === null ? void 0 : function() {
13691
- return j(D());
13690
+ }, P = N === null ? void 0 : function() {
13691
+ return j(N());
13692
13692
  };
13693
13693
  return [T, P];
13694
13694
  }, [f, p, d, m]), g = v[0], b = v[1], k = i(u, g, b);
@@ -15343,8 +15343,8 @@ const I2 = function(e) {
15343
15343
  availableWidth: j,
15344
15344
  availableHeight: O
15345
15345
  });
15346
- const D = await o.getDimensions(s.floating);
15347
- return m !== D.width || h !== D.height ? {
15346
+ const N = await o.getDimensions(s.floating);
15347
+ return m !== N.width || h !== N.height ? {
15348
15348
  reset: {
15349
15349
  rects: !0
15350
15350
  }
@@ -15792,7 +15792,7 @@ function eL(e) {
15792
15792
  B !== E.current && (E.current = B, h(B));
15793
15793
  }, []), b = w.useCallback((B) => {
15794
15794
  B !== O.current && (O.current = B, v(B));
15795
- }, []), k = a || m, S = o || y, E = w.useRef(null), O = w.useRef(null), j = w.useRef(u), D = c != null, T = Mf(c), P = Mf(i), V = Mf(l), $ = w.useCallback(() => {
15795
+ }, []), k = a || m, S = o || y, E = w.useRef(null), O = w.useRef(null), j = w.useRef(u), N = c != null, T = Mf(c), P = Mf(i), V = Mf(l), $ = w.useCallback(() => {
15796
15796
  if (!E.current || !O.current)
15797
15797
  return;
15798
15798
  const B = {
@@ -15800,9 +15800,9 @@ function eL(e) {
15800
15800
  strategy: n,
15801
15801
  middleware: p
15802
15802
  };
15803
- P.current && (B.platform = P.current), Q2(E.current, O.current, B).then((N) => {
15803
+ P.current && (B.platform = P.current), Q2(E.current, O.current, B).then((D) => {
15804
15804
  const x = {
15805
- ...N,
15805
+ ...D,
15806
15806
  // The floating element's position may be recomputed while it's closed
15807
15807
  // but still mounted (such as when transitioning out). To ensure
15808
15808
  // `isPositioned` will be `false` initially on the next open, avoid
@@ -15829,7 +15829,7 @@ function eL(e) {
15829
15829
  return T.current(k, S, $);
15830
15830
  $();
15831
15831
  }
15832
- }, [k, S, $, T, D]);
15832
+ }, [k, S, $, T, N]);
15833
15833
  const M = w.useMemo(() => ({
15834
15834
  reference: E,
15835
15835
  floating: O,
@@ -15846,16 +15846,16 @@ function eL(e) {
15846
15846
  };
15847
15847
  if (!F.floating)
15848
15848
  return B;
15849
- const N = Dg(F.floating, u.x), x = Dg(F.floating, u.y);
15849
+ const D = Dg(F.floating, u.x), x = Dg(F.floating, u.y);
15850
15850
  return s ? {
15851
15851
  ...B,
15852
- transform: "translate(" + N + "px, " + x + "px)",
15852
+ transform: "translate(" + D + "px, " + x + "px)",
15853
15853
  ...YS(F.floating) >= 1.5 && {
15854
15854
  willChange: "transform"
15855
15855
  }
15856
15856
  } : {
15857
15857
  position: n,
15858
- left: N,
15858
+ left: D,
15859
15859
  top: x
15860
15860
  };
15861
15861
  }, [n, s, F.floating, u.x, u.y]);
@@ -16371,7 +16371,7 @@ function OL(e, t, n, r, i, a, o, s, c, l, u, f, p, d, m, h, y, v, g) {
16371
16371
  cross: b
16372
16372
  } = e, k = ["INPUT", "SELECT", "TEXTAREA"], S = {
16373
16373
  passive: !1
16374
- }, E = cs(), O = cs(), j = bi(50, 225).constrain(m.measure(20)), D = {
16374
+ }, E = cs(), O = cs(), j = bi(50, 225).constrain(m.measure(20)), N = {
16375
16375
  mouse: 300,
16376
16376
  touch: 400
16377
16377
  }, T = {
@@ -16379,7 +16379,7 @@ function OL(e, t, n, r, i, a, o, s, c, l, u, f, p, d, m, h, y, v, g) {
16379
16379
  touch: 600
16380
16380
  }, P = h ? 43 : 25;
16381
16381
  let V = !1, $ = 0, L = 0, M = !1, F = !1, q = !1, B = !1;
16382
- function N(X, H) {
16382
+ function D(X, H) {
16383
16383
  if (!H) return;
16384
16384
  function fe(Oe) {
16385
16385
  (bm(H) || H(X, Oe)) && ae(Oe);
@@ -16401,7 +16401,7 @@ function OL(e, t, n, r, i, a, o, s, c, l, u, f, p, d, m, h, y, v, g) {
16401
16401
  return k.includes(H);
16402
16402
  }
16403
16403
  function _() {
16404
- return (h ? T : D)[B ? "mouse" : "touch"];
16404
+ return (h ? T : N)[B ? "mouse" : "touch"];
16405
16405
  }
16406
16406
  function G(X, H) {
16407
16407
  const fe = p.add(xm(X) * -1), me = f.byDistance(X, !h).distance;
@@ -16429,7 +16429,7 @@ function OL(e, t, n, r, i, a, o, s, c, l, u, f, p, d, m, h, y, v, g) {
16429
16429
  return M;
16430
16430
  }
16431
16431
  return {
16432
- init: N,
16432
+ init: D,
16433
16433
  pointerDown: pe,
16434
16434
  destroy: x
16435
16435
  };
@@ -16777,9 +16777,9 @@ function BL(e, t, n, r, i, a, o, s, c) {
16777
16777
  return S.reduce((O, j) => p(O, E) > 0 ? O.concat([j]) : O, []);
16778
16778
  }
16779
16779
  function m(S, E) {
16780
- const O = E === "start", j = O ? -r : r, D = o.findSlideBounds([j]);
16780
+ const O = E === "start", j = O ? -r : r, N = o.findSlideBounds([j]);
16781
16781
  return S.map((T) => {
16782
- const P = O ? 0 : -r, V = O ? r : 0, L = D.filter((M) => M.index === T)[0][O ? "end" : "start"];
16782
+ const P = O ? 0 : -r, V = O ? r : 0, L = N.filter((M) => M.index === T)[0][O ? "end" : "start"];
16783
16783
  return {
16784
16784
  index: T,
16785
16785
  slideLocation: rc(-1),
@@ -16810,8 +16810,8 @@ function BL(e, t, n, r, i, a, o, s, c) {
16810
16810
  target: E,
16811
16811
  translate: O,
16812
16812
  slideLocation: j
16813
- } = S, D = E();
16814
- D !== j.get() && (O.to(D), j.set(D));
16813
+ } = S, N = E();
16814
+ N !== j.get() && (O.to(N), j.set(N));
16815
16815
  });
16816
16816
  }
16817
16817
  function b() {
@@ -16876,8 +16876,8 @@ function zL(e, t, n, r, i, a, o) {
16876
16876
  index: E,
16877
16877
  start: O,
16878
16878
  end: j
16879
- } = S, D = k.includes(E), T = O < g && j > g;
16880
- return !D && T ? k.concat([E]) : k;
16879
+ } = S, N = k.includes(E), T = O < g && j > g;
16880
+ return !N && T ? k.concat([E]) : k;
16881
16881
  }, []);
16882
16882
  }
16883
16883
  return {
@@ -16944,15 +16944,15 @@ function WL(e, t, n, r, i, a, o, s) {
16944
16944
  slidesToScroll: v,
16945
16945
  skipSnaps: g,
16946
16946
  containScroll: b
16947
- } = a, k = t.getBoundingClientRect(), S = n.map((re) => re.getBoundingClientRect()), E = TL(u), O = kL(l, u), j = O.measureSize(k), D = $L(j), T = EL(c, j), P = !d && !!b, V = d || !!b, {
16947
+ } = a, k = t.getBoundingClientRect(), S = n.map((re) => re.getBoundingClientRect()), E = TL(u), O = kL(l, u), j = O.measureSize(k), N = $L(j), T = EL(c, j), P = !d && !!b, V = d || !!b, {
16948
16948
  slideSizes: $,
16949
16949
  slideSizesWithGaps: L
16950
16950
  } = VL(O, k, S, n, V, i), M = qL(j, L, v), {
16951
16951
  snaps: F,
16952
16952
  snapsAligned: q
16953
16953
  } = jL(O, T, k, S, L, M, P), B = -Br(F) + Br(L), {
16954
- snapsContained: N
16955
- } = AL(j, B, q, b), x = P ? N : q, {
16954
+ snapsContained: D
16955
+ } = AL(j, B, q, b), x = P ? D : q, {
16956
16956
  limit: z
16957
16957
  } = NL(B, x, d), Z = r_($u(x), f, d), _ = Z.clone(), G = ls(n), ae = ({
16958
16958
  dragHandler: re,
@@ -16995,9 +16995,9 @@ function WL(e, t, n, r, i, a, o, s) {
16995
16995
  animation: se,
16996
16996
  axis: O,
16997
16997
  direction: E,
16998
- dragHandler: OL(O, E, e, r, i, H, CL(O, i), le, se, Oe, fe, me, Z, o, D, h, y, g, de),
16998
+ dragHandler: OL(O, E, e, r, i, H, CL(O, i), le, se, Oe, fe, me, Z, o, N, h, y, g, de),
16999
16999
  eventStore: cs(),
17000
- percentOfView: D,
17000
+ percentOfView: N,
17001
17001
  index: Z,
17002
17002
  indexPrevious: _,
17003
17003
  limit: z,
@@ -17006,7 +17006,7 @@ function WL(e, t, n, r, i, a, o, s) {
17006
17006
  options: a,
17007
17007
  resizeHandler: RL(t, o, i, n, O),
17008
17008
  scrollBody: fe,
17009
- scrollBounds: PL(z, le, H, fe, D),
17009
+ scrollBounds: PL(z, le, H, fe, N),
17010
17010
  scrollLooper: DL(B, z, X, [le, X, H]),
17011
17011
  scrollProgress: ML(z),
17012
17012
  scrollSnaps: x,
@@ -17146,7 +17146,7 @@ function Fa(e, t, n) {
17146
17146
  off: h,
17147
17147
  emit: y
17148
17148
  } = l, v = $;
17149
- let g = !1, b, k = f(KL, Fa.globalOptions), S = f(k), E = [], O, j, D;
17149
+ let g = !1, b, k = f(KL, Fa.globalOptions), S = f(k), E = [], O, j, N;
17150
17150
  function T() {
17151
17151
  const {
17152
17152
  container: fe,
@@ -17154,10 +17154,10 @@ function Fa(e, t, n) {
17154
17154
  } = S;
17155
17155
  j = (Lg(fe) ? e.querySelector(fe) : fe) || e.children[0];
17156
17156
  const I = Lg(me) ? j.querySelectorAll(me) : me;
17157
- D = [].slice.call(I || j.children);
17157
+ N = [].slice.call(I || j.children);
17158
17158
  }
17159
17159
  function P(fe, me) {
17160
- const Oe = WL(e, j, D, r, i, fe, l, me);
17160
+ const Oe = WL(e, j, N, r, i, fe, l, me);
17161
17161
  if (fe.loop && !Oe.slideLooper.canLoop()) {
17162
17162
  const I = Object.assign({}, fe, {
17163
17163
  loop: !1
@@ -17173,7 +17173,7 @@ function Fa(e, t, n) {
17173
17173
  options: Y
17174
17174
  }) => Y)]).forEach((Y) => s.add(Y, "change", $)), S.active && (b.translate.to(b.location.get()), b.eventHandler.init(H), b.resizeHandler.init(H, S.watchResize), b.slidesHandler.init(H, S.watchSlides), c.add(r, "visibilitychange", () => {
17175
17175
  r.hidden && I.reset();
17176
- }), b.options.loop && b.slideLooper.loop(), j.offsetParent && D.length && b.dragHandler.init(H, S.watchDrag), O = o.init(E, H));
17176
+ }), b.options.loop && b.slideLooper.loop(), j.offsetParent && N.length && b.dragHandler.init(H, S.watchDrag), O = o.init(E, H));
17177
17177
  }
17178
17178
  function $(fe, me) {
17179
17179
  const Oe = ae();
@@ -17198,7 +17198,7 @@ function Fa(e, t, n) {
17198
17198
  function B(fe, me, Oe) {
17199
17199
  !S.active || g || (b.scrollBody.useBaseFriction().useDuration(me ? 0 : S.duration), b.scrollTo.index(fe, Oe || 0));
17200
17200
  }
17201
- function N(fe) {
17201
+ function D(fe) {
17202
17202
  const me = b.index.add(1).get();
17203
17203
  B(me, fe === !0, -1);
17204
17204
  }
@@ -17237,7 +17237,7 @@ function Fa(e, t, n) {
17237
17237
  return j;
17238
17238
  }
17239
17239
  function X() {
17240
- return D;
17240
+ return N;
17241
17241
  }
17242
17242
  const H = {
17243
17243
  canScrollNext: z,
@@ -17252,7 +17252,7 @@ function Fa(e, t, n) {
17252
17252
  previousScrollSnap: te,
17253
17253
  reInit: v,
17254
17254
  rootNode: pe,
17255
- scrollNext: N,
17255
+ scrollNext: D,
17256
17256
  scrollPrev: x,
17257
17257
  scrollProgress: G,
17258
17258
  scrollSnapList: _,
@@ -18067,7 +18067,7 @@ function BF(e) {
18067
18067
  domReference: v,
18068
18068
  floating: g
18069
18069
  }
18070
- } = t, b = IF() ? a : !0, k = fi(i), S = fi(o), E = fi(s), O = Iu(), j = x_(), D = typeof o == "number" && o < 0, T = w.useRef(null), P = w.useRef(null), V = w.useRef(!1), $ = w.useRef(null), L = w.useRef(!1), M = j != null, F = v && v.getAttribute("role") === "combobox" && p_(v) && D, q = w.useCallback(function(z) {
18070
+ } = t, b = IF() ? a : !0, k = fi(i), S = fi(o), E = fi(s), O = Iu(), j = x_(), N = typeof o == "number" && o < 0, T = w.useRef(null), P = w.useRef(null), V = w.useRef(!1), $ = w.useRef(null), L = w.useRef(!1), M = j != null, F = v && v.getAttribute("role") === "combobox" && p_(v) && N, q = w.useCallback(function(z) {
18071
18071
  return z === void 0 && (z = g), z ? mm(z, Em()) : [];
18072
18072
  }, [g]), B = w.useCallback((z) => {
18073
18073
  const Z = q(z);
@@ -18126,11 +18126,11 @@ function BF(e) {
18126
18126
  const z = Xn(g), Z = oi(z);
18127
18127
  queueMicrotask(() => {
18128
18128
  const _ = B(g), G = S.current, ae = (typeof G == "number" ? _[G] : G.current) || g, te = bn(g, Z);
18129
- !D && !te && f && Lr(ae, {
18129
+ !N && !te && f && Lr(ae, {
18130
18130
  preventScroll: ae === g
18131
18131
  });
18132
18132
  });
18133
- }, [r, f, g, D, B, S]), Vt(() => {
18133
+ }, [r, f, g, N, B, S]), Vt(() => {
18134
18134
  if (r || !g) return;
18135
18135
  let z = !1;
18136
18136
  const Z = Xn(g), _ = oi(Z), G = y.current;
@@ -18169,7 +18169,7 @@ function BF(e) {
18169
18169
  j.setFocusManagerState(null);
18170
18170
  };
18171
18171
  }, [r, j, c, f, m, p, u]), Vt(() => {
18172
- if (!r && g && typeof MutationObserver == "function" && !D) {
18172
+ if (!r && g && typeof MutationObserver == "function" && !N) {
18173
18173
  const z = () => {
18174
18174
  const _ = g.getAttribute("tabindex");
18175
18175
  k.current.includes("floating") || oi(Xn(g)) !== p.domReference.current && q().length === 0 ? _ !== "0" && g.setAttribute("tabindex", "0") : _ !== "-1" && g.setAttribute("tabindex", "-1");
@@ -18184,8 +18184,8 @@ function BF(e) {
18184
18184
  Z.disconnect();
18185
18185
  };
18186
18186
  }
18187
- }, [r, g, p, k, q, D]);
18188
- function N(z) {
18187
+ }, [r, g, p, k, q, N]);
18188
+ function D(z) {
18189
18189
  return r || !l || !c ? null : /* @__PURE__ */ w.createElement(FF, {
18190
18190
  ref: z === "start" ? T : P,
18191
18191
  onClick: (Z) => m(!1, Z.nativeEvent)
@@ -18208,7 +18208,7 @@ function BF(e) {
18208
18208
  (Z = j.beforeOutsideRef.current) == null || Z.focus();
18209
18209
  }
18210
18210
  }
18211
- }), !F && N("start"), n, N("end"), x && /* @__PURE__ */ w.createElement(zc, {
18211
+ }), !F && D("start"), n, D("end"), x && /* @__PURE__ */ w.createElement(zc, {
18212
18212
  "data-type": "inside",
18213
18213
  ref: j == null ? void 0 : j.afterInsideRef,
18214
18214
  onFocus: (z) => {
@@ -18325,7 +18325,7 @@ function ZF(e, t) {
18325
18325
  } = t, g = Iu(), b = h_() != null, k = di(typeof p == "function" ? p : () => !1), S = typeof p == "function" ? k : p, E = w.useRef(!1), {
18326
18326
  escapeKeyBubbles: O,
18327
18327
  outsidePressBubbles: j
18328
- } = HF(v), D = di((P) => {
18328
+ } = HF(v), N = di((P) => {
18329
18329
  if (!n || !u || !f || P.key !== "Escape")
18330
18330
  return;
18331
18331
  const V = g ? Ca(g.nodesRef.current, a) : [];
@@ -18355,38 +18355,38 @@ function ZF(e, t) {
18355
18355
  const $ = d_(P), L = "[" + us("inert") + "]", M = Xn(c).querySelectorAll(L);
18356
18356
  let F = Fn($) ? $ : null;
18357
18357
  for (; F && !hF(F); ) {
18358
- const N = vF(F);
18359
- if (N === Xn(c).body || !Fn(N))
18358
+ const D = vF(F);
18359
+ if (D === Xn(c).body || !Fn(D))
18360
18360
  break;
18361
- F = N;
18361
+ F = D;
18362
18362
  }
18363
18363
  if (M.length && Fn($) && !xF($) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
18364
18364
  !bn($, c) && // If the target root element contains none of the markers, then the
18365
18365
  // element was injected after the floating element rendered.
18366
- Array.from(M).every((N) => !bn(F, N)))
18366
+ Array.from(M).every((D) => !bn(F, D)))
18367
18367
  return;
18368
18368
  if (Ba($) && c) {
18369
- const N = $.clientWidth > 0 && $.scrollWidth > $.clientWidth, x = $.clientHeight > 0 && $.scrollHeight > $.clientHeight;
18369
+ const D = $.clientWidth > 0 && $.scrollWidth > $.clientWidth, x = $.clientHeight > 0 && $.scrollHeight > $.clientHeight;
18370
18370
  let z = x && P.offsetX > $.clientWidth;
18371
- if (x && mF($).direction === "rtl" && (z = P.offsetX <= $.offsetWidth - $.clientWidth), z || N && P.offsetY > $.clientHeight)
18371
+ if (x && mF($).direction === "rtl" && (z = P.offsetX <= $.offsetWidth - $.clientWidth), z || D && P.offsetY > $.clientHeight)
18372
18372
  return;
18373
18373
  }
18374
- const q = g && Ca(g.nodesRef.current, a).some((N) => {
18374
+ const q = g && Ca(g.nodesRef.current, a).some((D) => {
18375
18375
  var x;
18376
- return jf(P, (x = N.context) == null ? void 0 : x.elements.floating);
18376
+ return jf(P, (x = D.context) == null ? void 0 : x.elements.floating);
18377
18377
  });
18378
18378
  if (jf(P, c) || jf(P, s) || q)
18379
18379
  return;
18380
18380
  const B = g ? Ca(g.nodesRef.current, a) : [];
18381
18381
  if (B.length > 0) {
18382
- let N = !0;
18382
+ let D = !0;
18383
18383
  if (B.forEach((x) => {
18384
18384
  var z;
18385
18385
  if ((z = x.context) != null && z.open && !x.context.dataRef.current.__outsidePressBubbles) {
18386
- N = !1;
18386
+ D = !1;
18387
18387
  return;
18388
18388
  }
18389
- }), !N)
18389
+ }), !D)
18390
18390
  return;
18391
18391
  }
18392
18392
  i.emit("dismiss", {
@@ -18406,7 +18406,7 @@ function ZF(e, t) {
18406
18406
  r(!1, L);
18407
18407
  }
18408
18408
  const V = Xn(c);
18409
- f && V.addEventListener("keydown", D), S && V.addEventListener(d, T);
18409
+ f && V.addEventListener("keydown", N), S && V.addEventListener(d, T);
18410
18410
  let $ = [];
18411
18411
  return y && (Fn(s) && ($ = ui(s)), Fn(c) && ($ = $.concat(ui(c))), !Fn(o) && o && o.contextElement && ($ = $.concat(ui(o.contextElement)))), $ = $.filter((L) => {
18412
18412
  var M;
@@ -18416,15 +18416,15 @@ function ZF(e, t) {
18416
18416
  passive: !0
18417
18417
  });
18418
18418
  }), () => {
18419
- f && V.removeEventListener("keydown", D), S && V.removeEventListener(d, T), $.forEach((L) => {
18419
+ f && V.removeEventListener("keydown", N), S && V.removeEventListener(d, T), $.forEach((L) => {
18420
18420
  L.removeEventListener("scroll", P);
18421
18421
  });
18422
18422
  };
18423
- }, [l, c, s, o, f, S, d, n, r, y, u, O, j, D, T]), w.useEffect(() => {
18423
+ }, [l, c, s, o, f, S, d, n, r, y, u, O, j, N, T]), w.useEffect(() => {
18424
18424
  E.current = !1;
18425
18425
  }, [S, d]), w.useMemo(() => u ? {
18426
18426
  reference: {
18427
- onKeyDown: D,
18427
+ onKeyDown: N,
18428
18428
  [qF[h]]: (P) => {
18429
18429
  m && (i.emit("dismiss", {
18430
18430
  type: "referencePress",
@@ -18435,12 +18435,12 @@ function ZF(e, t) {
18435
18435
  }
18436
18436
  },
18437
18437
  floating: {
18438
- onKeyDown: D,
18438
+ onKeyDown: N,
18439
18439
  [WF[d]]: () => {
18440
18440
  E.current = !0;
18441
18441
  }
18442
18442
  }
18443
- } : {}, [u, i, m, d, h, r, D]);
18443
+ } : {}, [u, i, m, d, h, r, N]);
18444
18444
  }
18445
18445
  let Up;
18446
18446
  process.env.NODE_ENV !== "production" && (Up = /* @__PURE__ */ new Set());
@@ -18607,7 +18607,7 @@ function JF(e, t) {
18607
18607
  virtualItemRef: j
18608
18608
  } = t;
18609
18609
  process.env.NODE_ENV !== "production" && (p && (d || console.warn(["Floating UI: `useListNavigation` looping must be enabled to allow", "escaping."].join(" ")), y || console.warn(["Floating UI: `useListNavigation` must be virtual to allow", "escaping."].join(" "))), S === "vertical" && E > 1 && console.warn(["Floating UI: In grid list navigation mode (`cols` > 1), the", '`orientation` should be either "horizontal" or "both".'].join(" ")));
18610
- const D = h_(), T = Iu(), P = di(l), V = w.useRef(v), $ = w.useRef(f ?? -1), L = w.useRef(null), M = w.useRef(!0), F = w.useRef(P), q = w.useRef(!!o), B = w.useRef(!1), N = w.useRef(!1), x = fi(k), z = fi(n), Z = fi(O), [_, G] = w.useState(), [ae, te] = w.useState(), se = di(function(le, X, H) {
18610
+ const N = h_(), T = Iu(), P = di(l), V = w.useRef(v), $ = w.useRef(f ?? -1), L = w.useRef(null), M = w.useRef(!0), F = w.useRef(P), q = w.useRef(!!o), B = w.useRef(!1), D = w.useRef(!1), x = fi(k), z = fi(n), Z = fi(O), [_, G] = w.useState(), [ae, te] = w.useState(), se = di(function(le, X, H) {
18611
18611
  H === void 0 && (H = !1);
18612
18612
  const fe = le.current[X.current];
18613
18613
  fe && (y ? (G(fe.id), T == null || T.events.emit("virtualfocus", fe), j && (j.current = fe)) : Lr(fe, {
@@ -18636,7 +18636,7 @@ function JF(e, t) {
18636
18636
  }
18637
18637
  });
18638
18638
  }, []), Vt(() => {
18639
- u && (n && o ? V.current && f != null && (N.current = !0, P(f)) : q.current && ($.current = -1, F.current(null)));
18639
+ u && (n && o ? V.current && f != null && (D.current = !0, P(f)) : q.current && ($.current = -1, F.current(null)));
18640
18640
  }, [u, n, o, f, P]), Vt(() => {
18641
18641
  if (u && n && o)
18642
18642
  if (c == null) {
@@ -18649,24 +18649,24 @@ function JF(e, t) {
18649
18649
  };
18650
18650
  X();
18651
18651
  }
18652
- } else Fo(s, c) || ($.current = c, se(s, $, N.current), N.current = !1);
18652
+ } else Fo(s, c) || ($.current = c, se(s, $, D.current), D.current = !1);
18653
18653
  }, [u, n, o, c, f, m, s, S, h, P, se, x]), Vt(() => {
18654
18654
  var le, X;
18655
18655
  if (!u || o || !T || y || !q.current)
18656
18656
  return;
18657
- const H = T.nodesRef.current, fe = (le = H.find((I) => I.id === D)) == null || (X = le.context) == null ? void 0 : X.elements.floating, me = oi(Xn(o)), Oe = H.some((I) => I.context && bn(I.context.elements.floating, me));
18657
+ const H = T.nodesRef.current, fe = (le = H.find((I) => I.id === N)) == null || (X = le.context) == null ? void 0 : X.elements.floating, me = oi(Xn(o)), Oe = H.some((I) => I.context && bn(I.context.elements.floating, me));
18658
18658
  fe && !Oe && M.current && fe.focus({
18659
18659
  preventScroll: !0
18660
18660
  });
18661
- }, [u, o, T, D, y]), Vt(() => {
18662
- if (!u || !T || !y || D) return;
18661
+ }, [u, o, T, N, y]), Vt(() => {
18662
+ if (!u || !T || !y || N) return;
18663
18663
  function le(X) {
18664
18664
  te(X.id), j && (j.current = X);
18665
18665
  }
18666
18666
  return T.events.on("virtualfocus", le), () => {
18667
18667
  T.events.off("virtualfocus", le);
18668
18668
  };
18669
- }, [u, T, y, D, j]), Vt(() => {
18669
+ }, [u, T, y, N, j]), Vt(() => {
18670
18670
  F.current = P, q.current = !!o;
18671
18671
  }), Vt(() => {
18672
18672
  n || (L.current = null);
@@ -18883,27 +18883,27 @@ function QF(e, t) {
18883
18883
  }, [r, d, o]), w.useMemo(() => {
18884
18884
  if (!l)
18885
18885
  return {};
18886
- function E(D) {
18887
- D ? i.current.typing || (i.current.typing = D, b(D)) : i.current.typing && (i.current.typing = D, b(D));
18886
+ function E(N) {
18887
+ N ? i.current.typing || (i.current.typing = N, b(N)) : i.current.typing && (i.current.typing = N, b(N));
18888
18888
  }
18889
- function O(D, T, P) {
18889
+ function O(N, T, P) {
18890
18890
  const V = k.current ? k.current(T, P) : T.find(($) => ($ == null ? void 0 : $.toLocaleLowerCase().indexOf(P.toLocaleLowerCase())) === 0);
18891
- return V ? D.indexOf(V) : -1;
18891
+ return V ? N.indexOf(V) : -1;
18892
18892
  }
18893
- function j(D) {
18893
+ function j(N) {
18894
18894
  const T = a.current;
18895
- if (h.current.length > 0 && h.current[0] !== " " && (O(T, T, h.current) === -1 ? E(!1) : D.key === " " && Qt(D)), T == null || S.current.includes(D.key) || // Character key.
18896
- D.key.length !== 1 || // Modifier key.
18897
- D.ctrlKey || D.metaKey || D.altKey)
18895
+ if (h.current.length > 0 && h.current[0] !== " " && (O(T, T, h.current) === -1 ? E(!1) : N.key === " " && Qt(N)), T == null || S.current.includes(N.key) || // Character key.
18896
+ N.key.length !== 1 || // Modifier key.
18897
+ N.ctrlKey || N.metaKey || N.altKey)
18898
18898
  return;
18899
- r && D.key !== " " && (Qt(D), E(!0)), T.every((L) => {
18899
+ r && N.key !== " " && (Qt(N), E(!0)), T.every((L) => {
18900
18900
  var M, F;
18901
18901
  return L ? ((M = L[0]) == null ? void 0 : M.toLocaleLowerCase()) !== ((F = L[1]) == null ? void 0 : F.toLocaleLowerCase()) : !0;
18902
- }) && h.current === D.key && (h.current = "", y.current = v.current), h.current += D.key, clearTimeout(m.current), m.current = setTimeout(() => {
18902
+ }) && h.current === N.key && (h.current = "", y.current = v.current), h.current += N.key, clearTimeout(m.current), m.current = setTimeout(() => {
18903
18903
  h.current = "", y.current = v.current, E(!1);
18904
18904
  }, f);
18905
18905
  const V = y.current, $ = O(T, [...T.slice((V || 0) + 1), ...T.slice(0, (V || 0) + 1)], h.current);
18906
- $ !== -1 ? (g($), v.current = $) : D.key !== " " && (h.current = "", E(!1));
18906
+ $ !== -1 ? (g($), v.current = $) : N.key !== " " && (h.current = "", E(!1));
18907
18907
  }
18908
18908
  return {
18909
18909
  reference: {
@@ -18911,15 +18911,15 @@ function QF(e, t) {
18911
18911
  },
18912
18912
  floating: {
18913
18913
  onKeyDown: j,
18914
- onKeyUp(D) {
18915
- D.key === " " && E(!1);
18914
+ onKeyUp(N) {
18915
+ N.key === " " && E(!1);
18916
18916
  }
18917
18917
  }
18918
18918
  };
18919
18919
  }, [l, r, i, a, f, S, k, g, b]);
18920
18920
  }
18921
18921
  const e5 = ({ options: e, label: t, reusable: n, sendMessage: r, isReadOnly: i }) => {
18922
- var M, F, q, B, N;
18922
+ var M, F, q, B, D;
18923
18923
  const a = fm((x) => x.messageContainerRef), [o, s] = w.useState(!1), [c, l] = w.useState(null), [u, f] = w.useState(null), {
18924
18924
  message: {
18925
18925
  blocks: { dropdown: p }
@@ -18951,7 +18951,7 @@ const e5 = ({ options: e, label: t, reusable: n, sendMessage: r, isReadOnly: i }
18951
18951
  padding: 10
18952
18952
  })
18953
18953
  ]
18954
- }), b = w.useRef([]), k = w.useRef(m), S = w.useRef(!1), E = UF(g, { event: "mousedown" }), O = ZF(g), j = XF(g, { role: "listbox" }), D = JF(g, {
18954
+ }), b = w.useRef([]), k = w.useRef(m), S = w.useRef(!1), E = UF(g, { event: "mousedown" }), O = ZF(g), j = XF(g, { role: "listbox" }), N = JF(g, {
18955
18955
  listRef: b,
18956
18956
  activeIndex: c,
18957
18957
  selectedIndex: u,
@@ -18969,7 +18969,7 @@ const e5 = ({ options: e, label: t, reusable: n, sendMessage: r, isReadOnly: i }
18969
18969
  }), { getReferenceProps: P, getFloatingProps: V, getItemProps: $ } = GF([
18970
18970
  O,
18971
18971
  j,
18972
- D,
18972
+ N,
18973
18973
  T,
18974
18974
  E
18975
18975
  ]), L = (x) => {
@@ -18996,7 +18996,7 @@ const e5 = ({ options: e, label: t, reusable: n, sendMessage: r, isReadOnly: i }
18996
18996
  "div",
18997
18997
  {
18998
18998
  ref: y.setFloating,
18999
- className: (N = (B = p.content) == null ? void 0 : B.container) == null ? void 0 : N.className,
18999
+ className: (D = (B = p.content) == null ? void 0 : B.container) == null ? void 0 : D.className,
19000
19000
  style: { ...v },
19001
19001
  ...V(),
19002
19002
  children: m.map((x, z) => {
@@ -19285,7 +19285,7 @@ const k5 = hu(
19285
19285
  const O = () => {
19286
19286
  var $;
19287
19287
  b.current && (($ = b.current) == null || $.click());
19288
- }, j = n || r || !a, D = async ($) => {
19288
+ }, j = n || r || !a, N = async ($) => {
19289
19289
  var M;
19290
19290
  if (!l) return;
19291
19291
  const L = (M = $.target.files) == null ? void 0 : M[0];
@@ -19327,7 +19327,7 @@ const k5 = hu(
19327
19327
  children: /* @__PURE__ */ R.jsx(l5, { ...p.uploadButton.icon })
19328
19328
  }
19329
19329
  ),
19330
- /* @__PURE__ */ R.jsx("input", { type: "file", ref: b, style: { display: "none" }, onChange: D })
19330
+ /* @__PURE__ */ R.jsx("input", { type: "file", ref: b, style: { display: "none" }, onChange: N })
19331
19331
  ] }),
19332
19332
  /* @__PURE__ */ R.jsx(
19333
19333
  E5,
@@ -19533,8 +19533,8 @@ var N5 = "DismissableLayer", Vp = "dismissableLayer.update", D5 = "dismissableLa
19533
19533
  onDismiss: s,
19534
19534
  ...c
19535
19535
  } = e, l = w.useContext(E_), [u, f] = w.useState(null), p = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, d] = w.useState({}), m = Ei(t, (O) => f(O)), h = Array.from(l.layers), [y] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), v = h.indexOf(y), g = u ? h.indexOf(u) : -1, b = l.layersWithOutsidePointerEventsDisabled.size > 0, k = g >= v, S = F5((O) => {
19536
- const j = O.target, D = [...l.branches].some((T) => T.contains(j));
19537
- !k || D || (i == null || i(O), o == null || o(O), O.defaultPrevented || s == null || s());
19536
+ const j = O.target, N = [...l.branches].some((T) => T.contains(j));
19537
+ !k || N || (i == null || i(O), o == null || o(O), O.defaultPrevented || s == null || s());
19538
19538
  }, p), E = B5((O) => {
19539
19539
  const j = O.target;
19540
19540
  [...l.branches].some((T) => T.contains(j)) || (a == null || a(O), o == null || o(O), O.defaultPrevented || s == null || s());
@@ -20225,8 +20225,8 @@ function RB(e) {
20225
20225
  return !1;
20226
20226
  if (!r.current && "changedTouches" in h && (b || k) && (r.current = S), !S)
20227
20227
  return !0;
20228
- var D = r.current || S;
20229
- return TB(D, y, h, D === "h" ? b : k, !0);
20228
+ var N = r.current || S;
20229
+ return TB(N, y, h, N === "h" ? b : k, !0);
20230
20230
  }, []), c = w.useCallback(function(h) {
20231
20231
  var y = h;
20232
20232
  if (!(!la.length || la[la.length - 1] !== a)) {
@@ -20806,7 +20806,7 @@ const o3 = ({ onClick: e, ...t }) => {
20806
20806
  /* @__PURE__ */ R.jsx("p", { ...(v = (y = i.expandedContent) == null ? void 0 : y.descriptionItems) == null ? void 0 : v.text, children: t })
20807
20807
  ] }) : null;
20808
20808
  }, l3 = ({ defaultOpen: e, closeWindow: t, configuration: n, restartConversation: r, ...i }) => {
20809
- var l, u, f, p, d, m, h, y, v, g, b, k, S, E, O, j, D, T, P, V, $, L;
20809
+ var l, u, f, p, d, m, h, y, v, g, b, k, S, E, O, j, N, T, P, V, $, L;
20810
20810
  const { header: a } = bt, [o, s] = st(!!e), c = !!((l = n.email) != null && l.title) || !!((u = n.phone) != null && u.title) || !!((f = n.website) != null && f.title) || !!((p = n.termsOfService) != null && p.link) || !!((d = n.privacyPolicy) != null && d.link);
20811
20811
  return /* @__PURE__ */ R.jsxs(
20812
20812
  i3,
@@ -20852,7 +20852,7 @@ const o3 = ({ onClick: e, ...t }) => {
20852
20852
  "data-website": "",
20853
20853
  link: (j = n.website) == null ? void 0 : j.link,
20854
20854
  icon: lF,
20855
- title: (D = n.website) == null ? void 0 : D.title
20855
+ title: (N = n.website) == null ? void 0 : N.title
20856
20856
  }
20857
20857
  )
20858
20858
  ] }),
@@ -22230,8 +22230,8 @@ function sW() {
22230
22230
  }
22231
22231
  }
22232
22232
  }
22233
- var S = c, E = l, O = s, j = o, D = t, T = u, P = r, V = m, $ = d, L = n, M = a, F = i, q = f, B = !1;
22234
- function N(H) {
22233
+ var S = c, E = l, O = s, j = o, N = t, T = u, P = r, V = m, $ = d, L = n, M = a, F = i, q = f, B = !1;
22234
+ function D(H) {
22235
22235
  return B || (B = !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.")), x(H) || k(H) === c;
22236
22236
  }
22237
22237
  function x(H) {
@@ -22270,7 +22270,7 @@ function sW() {
22270
22270
  function X(H) {
22271
22271
  return k(H) === f;
22272
22272
  }
22273
- ut.AsyncMode = S, ut.ConcurrentMode = E, ut.ContextConsumer = O, ut.ContextProvider = j, ut.Element = D, ut.ForwardRef = T, ut.Fragment = P, ut.Lazy = V, ut.Memo = $, ut.Portal = L, ut.Profiler = M, ut.StrictMode = F, ut.Suspense = q, ut.isAsyncMode = N, ut.isConcurrentMode = x, ut.isContextConsumer = z, ut.isContextProvider = Z, ut.isElement = _, ut.isForwardRef = G, ut.isFragment = ae, ut.isLazy = te, ut.isMemo = se, ut.isPortal = de, ut.isProfiler = pe, ut.isStrictMode = le, ut.isSuspense = X, ut.isValidElementType = b, ut.typeOf = k;
22273
+ ut.AsyncMode = S, ut.ConcurrentMode = E, ut.ContextConsumer = O, ut.ContextProvider = j, ut.Element = N, ut.ForwardRef = T, ut.Fragment = P, ut.Lazy = V, ut.Memo = $, ut.Portal = L, ut.Profiler = M, ut.StrictMode = F, ut.Suspense = q, ut.isAsyncMode = D, ut.isConcurrentMode = x, ut.isContextConsumer = z, ut.isContextProvider = Z, ut.isElement = _, ut.isForwardRef = G, ut.isFragment = ae, ut.isLazy = te, ut.isMemo = se, ut.isPortal = de, ut.isProfiler = pe, ut.isStrictMode = le, ut.isSuspense = X, ut.isValidElementType = b, ut.typeOf = k;
22274
22274
  }()), ut;
22275
22275
  }
22276
22276
  var Bx;
@@ -22403,8 +22403,8 @@ function uW() {
22403
22403
  }
22404
22404
  return Od = function(s, c) {
22405
22405
  var l = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
22406
- function f(N) {
22407
- var x = N && (l && N[l] || N[u]);
22406
+ function f(D) {
22407
+ var x = D && (l && D[l] || D[u]);
22408
22408
  if (typeof x == "function")
22409
22409
  return x;
22410
22410
  }
@@ -22424,18 +22424,18 @@ function uW() {
22424
22424
  node: T(),
22425
22425
  objectOf: j,
22426
22426
  oneOf: O,
22427
- oneOfType: D,
22427
+ oneOfType: N,
22428
22428
  shape: P,
22429
22429
  exact: V
22430
22430
  };
22431
- function m(N, x) {
22432
- return N === x ? N !== 0 || 1 / N === 1 / x : N !== N && x !== x;
22431
+ function m(D, x) {
22432
+ return D === x ? D !== 0 || 1 / D === 1 / x : D !== D && x !== x;
22433
22433
  }
22434
- function h(N) {
22435
- this.message = N, this.stack = "";
22434
+ function h(D) {
22435
+ this.message = D, this.stack = "";
22436
22436
  }
22437
22437
  h.prototype = Error.prototype;
22438
- function y(N) {
22438
+ function y(D) {
22439
22439
  if (process.env.NODE_ENV !== "production")
22440
22440
  var x = {}, z = 0;
22441
22441
  function Z(G, ae, te, se, de, pe, le) {
@@ -22453,17 +22453,17 @@ function uW() {
22453
22453
  ), x[H] = !0, z++);
22454
22454
  }
22455
22455
  }
22456
- return ae[te] == null ? G ? ae[te] === null ? new h("The " + de + " `" + pe + "` is marked as required " + ("in `" + se + "`, but its value is `null`.")) : new h("The " + de + " `" + pe + "` is marked as required in " + ("`" + se + "`, but its value is `undefined`.")) : null : N(ae, te, se, de, pe);
22456
+ return ae[te] == null ? G ? ae[te] === null ? new h("The " + de + " `" + pe + "` is marked as required " + ("in `" + se + "`, but its value is `null`.")) : new h("The " + de + " `" + pe + "` is marked as required in " + ("`" + se + "`, but its value is `undefined`.")) : null : D(ae, te, se, de, pe);
22457
22457
  }
22458
22458
  var _ = Z.bind(null, !1);
22459
22459
  return _.isRequired = Z.bind(null, !0), _;
22460
22460
  }
22461
- function v(N) {
22461
+ function v(D) {
22462
22462
  function x(z, Z, _, G, ae, te) {
22463
22463
  var se = z[Z], de = M(se);
22464
- if (de !== N) {
22464
+ if (de !== D) {
22465
22465
  var pe = F(se);
22466
- return new h("Invalid " + G + " `" + ae + "` of type " + ("`" + pe + "` supplied to `" + _ + "`, expected ") + ("`" + N + "`."));
22466
+ return new h("Invalid " + G + " `" + ae + "` of type " + ("`" + pe + "` supplied to `" + _ + "`, expected ") + ("`" + D + "`."));
22467
22467
  }
22468
22468
  return null;
22469
22469
  }
@@ -22472,9 +22472,9 @@ function uW() {
22472
22472
  function g() {
22473
22473
  return y(o);
22474
22474
  }
22475
- function b(N) {
22475
+ function b(D) {
22476
22476
  function x(z, Z, _, G, ae) {
22477
- if (typeof N != "function")
22477
+ if (typeof D != "function")
22478
22478
  return new h("Property `" + ae + "` of component `" + _ + "` has invalid PropType notation inside arrayOf.");
22479
22479
  var te = z[Z];
22480
22480
  if (!Array.isArray(te)) {
@@ -22482,7 +22482,7 @@ function uW() {
22482
22482
  return new h("Invalid " + G + " `" + ae + "` of type " + ("`" + se + "` supplied to `" + _ + "`, expected an array."));
22483
22483
  }
22484
22484
  for (var de = 0; de < te.length; de++) {
22485
- var pe = N(te, de, _, G, ae + "[" + de + "]", n);
22485
+ var pe = D(te, de, _, G, ae + "[" + de + "]", n);
22486
22486
  if (pe instanceof Error)
22487
22487
  return pe;
22488
22488
  }
@@ -22491,7 +22491,7 @@ function uW() {
22491
22491
  return y(x);
22492
22492
  }
22493
22493
  function k() {
22494
- function N(x, z, Z, _, G) {
22494
+ function D(x, z, Z, _, G) {
22495
22495
  var ae = x[z];
22496
22496
  if (!s(ae)) {
22497
22497
  var te = M(ae);
@@ -22499,10 +22499,10 @@ function uW() {
22499
22499
  }
22500
22500
  return null;
22501
22501
  }
22502
- return y(N);
22502
+ return y(D);
22503
22503
  }
22504
22504
  function S() {
22505
- function N(x, z, Z, _, G) {
22505
+ function D(x, z, Z, _, G) {
22506
22506
  var ae = x[z];
22507
22507
  if (!e.isValidElementType(ae)) {
22508
22508
  var te = M(ae);
@@ -22510,28 +22510,28 @@ function uW() {
22510
22510
  }
22511
22511
  return null;
22512
22512
  }
22513
- return y(N);
22513
+ return y(D);
22514
22514
  }
22515
- function E(N) {
22515
+ function E(D) {
22516
22516
  function x(z, Z, _, G, ae) {
22517
- if (!(z[Z] instanceof N)) {
22518
- var te = N.name || p, se = B(z[Z]);
22517
+ if (!(z[Z] instanceof D)) {
22518
+ var te = D.name || p, se = B(z[Z]);
22519
22519
  return new h("Invalid " + G + " `" + ae + "` of type " + ("`" + se + "` supplied to `" + _ + "`, expected ") + ("instance of `" + te + "`."));
22520
22520
  }
22521
22521
  return null;
22522
22522
  }
22523
22523
  return y(x);
22524
22524
  }
22525
- function O(N) {
22526
- if (!Array.isArray(N))
22525
+ function O(D) {
22526
+ if (!Array.isArray(D))
22527
22527
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
22528
22528
  "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])."
22529
22529
  ) : a("Invalid argument supplied to oneOf, expected an array.")), o;
22530
22530
  function x(z, Z, _, G, ae) {
22531
- for (var te = z[Z], se = 0; se < N.length; se++)
22532
- if (m(te, N[se]))
22531
+ for (var te = z[Z], se = 0; se < D.length; se++)
22532
+ if (m(te, D[se]))
22533
22533
  return null;
22534
- var de = JSON.stringify(N, function(le, X) {
22534
+ var de = JSON.stringify(D, function(le, X) {
22535
22535
  var H = F(X);
22536
22536
  return H === "symbol" ? String(X) : X;
22537
22537
  });
@@ -22539,16 +22539,16 @@ function uW() {
22539
22539
  }
22540
22540
  return y(x);
22541
22541
  }
22542
- function j(N) {
22542
+ function j(D) {
22543
22543
  function x(z, Z, _, G, ae) {
22544
- if (typeof N != "function")
22544
+ if (typeof D != "function")
22545
22545
  return new h("Property `" + ae + "` of component `" + _ + "` has invalid PropType notation inside objectOf.");
22546
22546
  var te = z[Z], se = M(te);
22547
22547
  if (se !== "object")
22548
22548
  return new h("Invalid " + G + " `" + ae + "` of type " + ("`" + se + "` supplied to `" + _ + "`, expected an object."));
22549
22549
  for (var de in te)
22550
22550
  if (i(te, de)) {
22551
- var pe = N(te, de, _, G, ae + "." + de, n);
22551
+ var pe = D(te, de, _, G, ae + "." + de, n);
22552
22552
  if (pe instanceof Error)
22553
22553
  return pe;
22554
22554
  }
@@ -22556,19 +22556,19 @@ function uW() {
22556
22556
  }
22557
22557
  return y(x);
22558
22558
  }
22559
- function D(N) {
22560
- if (!Array.isArray(N))
22559
+ function N(D) {
22560
+ if (!Array.isArray(D))
22561
22561
  return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), o;
22562
- for (var x = 0; x < N.length; x++) {
22563
- var z = N[x];
22562
+ for (var x = 0; x < D.length; x++) {
22563
+ var z = D[x];
22564
22564
  if (typeof z != "function")
22565
22565
  return a(
22566
22566
  "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + q(z) + " at index " + x + "."
22567
22567
  ), o;
22568
22568
  }
22569
22569
  function Z(_, G, ae, te, se) {
22570
- for (var de = 0; de < N.length; de++) {
22571
- var pe = N[de];
22570
+ for (var de = 0; de < D.length; de++) {
22571
+ var pe = D[de];
22572
22572
  if (pe(_, G, ae, te, se, n) == null)
22573
22573
  return null;
22574
22574
  }
@@ -22577,18 +22577,18 @@ function uW() {
22577
22577
  return y(Z);
22578
22578
  }
22579
22579
  function T() {
22580
- function N(x, z, Z, _, G) {
22580
+ function D(x, z, Z, _, G) {
22581
22581
  return $(x[z]) ? null : new h("Invalid " + _ + " `" + G + "` supplied to " + ("`" + Z + "`, expected a ReactNode."));
22582
22582
  }
22583
- return y(N);
22583
+ return y(D);
22584
22584
  }
22585
- function P(N) {
22585
+ function P(D) {
22586
22586
  function x(z, Z, _, G, ae) {
22587
22587
  var te = z[Z], se = M(te);
22588
22588
  if (se !== "object")
22589
22589
  return new h("Invalid " + G + " `" + ae + "` of type `" + se + "` " + ("supplied to `" + _ + "`, expected `object`."));
22590
- for (var de in N) {
22591
- var pe = N[de];
22590
+ for (var de in D) {
22591
+ var pe = D[de];
22592
22592
  if (pe) {
22593
22593
  var le = pe(te, de, _, G, ae + "." + de, n);
22594
22594
  if (le)
@@ -22599,18 +22599,18 @@ function uW() {
22599
22599
  }
22600
22600
  return y(x);
22601
22601
  }
22602
- function V(N) {
22602
+ function V(D) {
22603
22603
  function x(z, Z, _, G, ae) {
22604
22604
  var te = z[Z], se = M(te);
22605
22605
  if (se !== "object")
22606
22606
  return new h("Invalid " + G + " `" + ae + "` of type `" + se + "` " + ("supplied to `" + _ + "`, expected `object`."));
22607
- var de = t({}, z[Z], N);
22607
+ var de = t({}, z[Z], D);
22608
22608
  for (var pe in de) {
22609
- var le = N[pe];
22609
+ var le = D[pe];
22610
22610
  if (!le)
22611
22611
  return new h(
22612
22612
  "Invalid " + G + " `" + ae + "` key `" + pe + "` supplied to `" + _ + "`.\nBad object: " + JSON.stringify(z[Z], null, " ") + `
22613
- Valid keys: ` + JSON.stringify(Object.keys(N), null, " ")
22613
+ Valid keys: ` + JSON.stringify(Object.keys(D), null, " ")
22614
22614
  );
22615
22615
  var X = le(te, pe, _, G, ae + "." + pe, n);
22616
22616
  if (X)
@@ -22620,23 +22620,23 @@ Valid keys: ` + JSON.stringify(Object.keys(N), null, " ")
22620
22620
  }
22621
22621
  return y(x);
22622
22622
  }
22623
- function $(N) {
22624
- switch (typeof N) {
22623
+ function $(D) {
22624
+ switch (typeof D) {
22625
22625
  case "number":
22626
22626
  case "string":
22627
22627
  case "undefined":
22628
22628
  return !0;
22629
22629
  case "boolean":
22630
- return !N;
22630
+ return !D;
22631
22631
  case "object":
22632
- if (Array.isArray(N))
22633
- return N.every($);
22634
- if (N === null || s(N))
22632
+ if (Array.isArray(D))
22633
+ return D.every($);
22634
+ if (D === null || s(D))
22635
22635
  return !0;
22636
- var x = f(N);
22636
+ var x = f(D);
22637
22637
  if (x) {
22638
- var z = x.call(N), Z;
22639
- if (x !== N.entries) {
22638
+ var z = x.call(D), Z;
22639
+ if (x !== D.entries) {
22640
22640
  for (; !(Z = z.next()).done; )
22641
22641
  if (!$(Z.value))
22642
22642
  return !1;
@@ -22653,27 +22653,27 @@ Valid keys: ` + JSON.stringify(Object.keys(N), null, " ")
22653
22653
  return !1;
22654
22654
  }
22655
22655
  }
22656
- function L(N, x) {
22657
- return N === "symbol" ? !0 : x ? x["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && x instanceof Symbol : !1;
22656
+ function L(D, x) {
22657
+ return D === "symbol" ? !0 : x ? x["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && x instanceof Symbol : !1;
22658
22658
  }
22659
- function M(N) {
22660
- var x = typeof N;
22661
- return Array.isArray(N) ? "array" : N instanceof RegExp ? "object" : L(x, N) ? "symbol" : x;
22659
+ function M(D) {
22660
+ var x = typeof D;
22661
+ return Array.isArray(D) ? "array" : D instanceof RegExp ? "object" : L(x, D) ? "symbol" : x;
22662
22662
  }
22663
- function F(N) {
22664
- if (typeof N > "u" || N === null)
22665
- return "" + N;
22666
- var x = M(N);
22663
+ function F(D) {
22664
+ if (typeof D > "u" || D === null)
22665
+ return "" + D;
22666
+ var x = M(D);
22667
22667
  if (x === "object") {
22668
- if (N instanceof Date)
22668
+ if (D instanceof Date)
22669
22669
  return "date";
22670
- if (N instanceof RegExp)
22670
+ if (D instanceof RegExp)
22671
22671
  return "regexp";
22672
22672
  }
22673
22673
  return x;
22674
22674
  }
22675
- function q(N) {
22676
- var x = F(N);
22675
+ function q(D) {
22676
+ var x = F(D);
22677
22677
  switch (x) {
22678
22678
  case "array":
22679
22679
  case "object":
@@ -22686,8 +22686,8 @@ Valid keys: ` + JSON.stringify(Object.keys(N), null, " ")
22686
22686
  return x;
22687
22687
  }
22688
22688
  }
22689
- function B(N) {
22690
- return !N.constructor || !N.constructor.name ? p : N.constructor.name;
22689
+ function B(D) {
22690
+ return !D.constructor || !D.constructor.name ? p : D.constructor.name;
22691
22691
  }
22692
22692
  return d.checkPropTypes = r, d.resetWarningCache = r.resetWarningCache, d.PropTypes = d, d;
22693
22693
  }, Od;
@@ -24639,7 +24639,7 @@ var jv = function(t) {
24639
24639
  });
24640
24640
  }, [a]);
24641
24641
  s = s === Yn ? Yn : Wee;
24642
- var f = Dt(0), p = Dt(o), d = Zd(s === Yn ? 0 : "100%"), m = yr(d, 3), h = m[0], y = m[1], v = m[2], g = Zd(null), b = yr(g, 3), k = b[0], S = b[1], E = b[2], O = Dt(0), j = Dt(0), D = Dt(0), T = st(!0), P = yr(T, 2), V = P[0], $ = P[1], L = st(!0), M = yr(L, 2), F = M[0], q = M[1], B = st(!0), N = yr(B, 2), x = N[0], z = N[1], Z = st(!1), _ = yr(Z, 2), G = _[0], ae = _[1], te = Zd(!0), se = yr(te, 3), de = se[0], pe = se[1], le = se[2], X = Dt([]), H = Tt(function(A) {
24642
+ var f = Dt(0), p = Dt(o), d = Zd(s === Yn ? 0 : "100%"), m = yr(d, 3), h = m[0], y = m[1], v = m[2], g = Zd(null), b = yr(g, 3), k = b[0], S = b[1], E = b[2], O = Dt(0), j = Dt(0), N = Dt(0), T = st(!0), P = yr(T, 2), V = P[0], $ = P[1], L = st(!0), M = yr(L, 2), F = M[0], q = M[1], B = st(!0), D = yr(B, 2), x = D[0], z = D[1], Z = st(!1), _ = yr(Z, 2), G = _[0], ae = _[1], te = Zd(!0), se = yr(te, 3), de = se[0], pe = se[1], le = se[2], X = Dt([]), H = Tt(function(A) {
24643
24643
  var J = E.current;
24644
24644
  return X.current.push(A), J && A({
24645
24645
  scrollTop: J.scrollTop
@@ -24751,8 +24751,8 @@ var jv = function(t) {
24751
24751
  target: Te
24752
24752
  }), Lt = it.atBottom, Ct = it.atEnd, qe = it.atStart, $t = it.atTop;
24753
24753
  $(Lt), q(Ct), ae(qe), z($t);
24754
- var Ye = Te.offsetHeight, mn = Te.scrollHeight, kn = j.current, Zn = D.current, Nr = Ye !== kn, ur = mn !== Zn;
24755
- if (Nr && (j.current = Ye), ur && (D.current = mn), !Nr && !ur) {
24754
+ var Ye = Te.offsetHeight, mn = Te.scrollHeight, kn = j.current, Zn = N.current, Nr = Ye !== kn, ur = mn !== Zn;
24755
+ if (Nr && (j.current = Ye), ur && (N.current = mn), !Nr && !ur) {
24756
24756
  var Kn = Ge && Ro(_e, s) || Ct;
24757
24757
  le.current !== Kn && (u(function() {
24758
24758
  var ft, wt, Ft, Bt;
@@ -24786,7 +24786,7 @@ var jv = function(t) {
24786
24786
  });
24787
24787
  });
24788
24788
  }
24789
- }, [v, u, f, s, j, D, X, Q, $, q, ae, z, pe, le, E]);
24789
+ }, [v, u, f, s, j, N, X, Q, $, q, ae, z, pe, le, E]);
24790
24790
  Gt(function() {
24791
24791
  if (k) {
24792
24792
  var A = !1, J = Zee(function() {
@@ -24854,7 +24854,7 @@ var jv = function(t) {
24854
24854
  return Gt(function() {
24855
24855
  if (k) {
24856
24856
  var A = function() {
24857
- D.current = k.scrollHeight;
24857
+ N.current = k.scrollHeight;
24858
24858
  };
24859
24859
  return k.addEventListener("focus", A, {
24860
24860
  capture: !0,
@@ -25061,36 +25061,48 @@ const Yee = ({ className: e, ...t }) => {
25061
25061
  renderers: l,
25062
25062
  isReadOnly: u,
25063
25063
  disableComposer: f,
25064
- restartConversation: p
25064
+ restartConversation: p,
25065
+ allowFileUpload: d
25065
25066
  }) => {
25066
- const { color: d, fontFamily: m, radius: h, themeMode: y, variant: v, botAvatar: g, botDescription: b, botName: k } = t, S = { color: d, fontFamily: m, radius: h, themeMode: y, variant: v }, E = On(
25067
- () => i.map((O) => {
25068
- const { authorId: j } = O, D = j === a.id ? "outgoing" : "incoming";
25067
+ const { color: m, fontFamily: h, radius: y, themeMode: v, variant: g, botAvatar: b, botDescription: k, botName: S, composerPlaceholder: E } = t, O = { color: m, fontFamily: h, radius: y, themeMode: v, variant: g }, j = On(
25068
+ () => i.map((N) => {
25069
+ const { authorId: T } = N, P = T === a.id ? "outgoing" : "incoming";
25069
25070
  return {
25070
- ...O,
25071
- direction: D,
25072
- sender: D === "outgoing" ? { name: a.name ?? "You", avatar: a.pictureUrl } : { name: t.botName ?? "Bot", avatar: t.botAvatar }
25071
+ ...N,
25072
+ direction: P,
25073
+ sender: P === "outgoing" ? { name: a.name ?? "You", avatar: a.pictureUrl } : { name: t.botName ?? "Bot", avatar: t.botAvatar }
25073
25074
  };
25074
25075
  }),
25075
25076
  [t.botAvatar, t.botName, i, a.id, a.name, a.pictureUrl]
25076
25077
  );
25077
25078
  return /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
25078
- /* @__PURE__ */ R.jsx(O5, { ...S }),
25079
+ /* @__PURE__ */ R.jsx(O5, { ...O }),
25079
25080
  /* @__PURE__ */ R.jsxs(Q_, { connected: e, children: [
25080
25081
  /* @__PURE__ */ R.jsx(l3, { closeWindow: n, configuration: t, restartConversation: p }),
25081
25082
  c ? /* @__PURE__ */ R.jsx(Yee, {}) : /* @__PURE__ */ R.jsx(R.Fragment, { children: /* @__PURE__ */ R.jsx(
25082
25083
  BT,
25083
25084
  {
25084
- botAvatar: g,
25085
- botDescription: b,
25086
- botName: k,
25085
+ botAvatar: b,
25086
+ botDescription: k,
25087
+ botName: S,
25087
25088
  renderers: l,
25088
25089
  isTyping: r,
25089
25090
  sendMessage: o,
25090
- messages: E
25091
+ messages: j
25091
25092
  }
25092
25093
  ) }),
25093
- /* @__PURE__ */ R.jsx(k5, { sendMessage: o, uploadFile: s, connected: e, isReadOnly: u, disableComposer: f })
25094
+ /* @__PURE__ */ R.jsx(
25095
+ k5,
25096
+ {
25097
+ sendMessage: o,
25098
+ uploadFile: s,
25099
+ connected: e,
25100
+ isReadOnly: u,
25101
+ disableComposer: f,
25102
+ composerPlaceholder: E,
25103
+ allowFileUpload: d
25104
+ }
25105
+ )
25094
25106
  ] })
25095
25107
  ] });
25096
25108
  }, Jee = ["audio", "file", "image", "video"], UT = (e) => Jee.includes(e);
@@ -26993,7 +27005,7 @@ var kh = are, O0 = kh.custom, C0 = gO(O0) ? O0 : null, mre = function e(t, n, r,
26993
27005
  if (typeof globalThis < "u" && t === globalThis || typeof pt < "u" && t === pt)
26994
27006
  return "{ [object globalThis] }";
26995
27007
  if (!yre(t) && !$0(t)) {
26996
- var O = Vl(t, p), j = k0 ? k0(t) === Object.prototype : t instanceof Object || t.constructor === Object, D = t instanceof Object ? "" : "null prototype", T = !j && on && Object(t) === t && on in t ? Jv.call($i(t), 8, -1) : D ? "Object" : "", P = j || typeof t.constructor != "function" ? "" : t.constructor.name ? t.constructor.name + " " : "", V = P + (T || D ? "[" + xr.call(_0.call([], T || [], D || []), ": ") + "] " : "");
27008
+ var O = Vl(t, p), j = k0 ? k0(t) === Object.prototype : t instanceof Object || t.constructor === Object, N = t instanceof Object ? "" : "null prototype", T = !j && on && Object(t) === t && on in t ? Jv.call($i(t), 8, -1) : N ? "Object" : "", P = j || typeof t.constructor != "function" ? "" : t.constructor.name ? t.constructor.name + " " : "", V = P + (T || N ? "[" + xr.call(_0.call([], T || [], N || []), ": ") + "] " : "");
26997
27009
  return O.length === 0 ? V + "{}" : f ? V + "{" + Oh(O, f) + "}" : V + "{ " + xr.call(O, ", ") + " }";
26998
27010
  }
26999
27011
  return String(t);
@@ -27463,9 +27475,9 @@ var wO = po, ho = ire, Nre = mre, Dre = ul, ql = wO("%WeakMap%", !0), Wl = wO("%
27463
27475
  }
27464
27476
  return [h(n) + "=" + h(String(b))];
27465
27477
  }
27466
- var D = [];
27478
+ var N = [];
27467
27479
  if (typeof b > "u")
27468
- return D;
27480
+ return N;
27469
27481
  var T;
27470
27482
  if (r === "comma" && gr(b))
27471
27483
  y && l && (b = gc.maybeMap(b, l)), T = [{ value: b.length > 0 ? b.join(",") || null : void 0 }];
@@ -27483,8 +27495,8 @@ var wO = po, ho = ire, Nre = mre, Dre = ul, ql = wO("%WeakMap%", !0), Wl = wO("%
27483
27495
  if (!(s && F === null)) {
27484
27496
  var q = p && c ? M.replace(/\./g, "%2E") : M, B = gr(b) ? typeof r == "function" ? r($, q) : $ : $ + (p ? "." + q : "[" + q + "]");
27485
27497
  g.set(t, S);
27486
- var N = EO();
27487
- N.set(sp, g), TO(D, e(
27498
+ var D = EO();
27499
+ D.set(sp, g), TO(N, e(
27488
27500
  F,
27489
27501
  B,
27490
27502
  r,
@@ -27502,11 +27514,11 @@ var wO = po, ho = ire, Nre = mre, Dre = ul, ql = wO("%WeakMap%", !0), Wl = wO("%
27502
27514
  h,
27503
27515
  y,
27504
27516
  v,
27505
- N
27517
+ D
27506
27518
  ));
27507
27519
  }
27508
27520
  }
27509
- return D;
27521
+ return N;
27510
27522
  }, uie = function(t) {
27511
27523
  if (!t)
27512
27524
  return zt;
@@ -27937,9 +27949,9 @@ var $h = { exports: {} };
27937
27949
  j.prototype.get = function(I) {
27938
27950
  return this._headers.get(I);
27939
27951
  };
27940
- function D() {
27952
+ function N() {
27941
27953
  }
27942
- D.prototype.open = function(I, Y, re, Q, Ee, xe, $e) {
27954
+ N.prototype.open = function(I, Y, re, Q, Ee, xe, $e) {
27943
27955
  var Ve = null, Ie = new h(), Me = Ie.signal, U = new d();
27944
27956
  return f(Ee, {
27945
27957
  headers: $e,
@@ -28024,7 +28036,7 @@ var $h = { exports: {} };
28024
28036
  V.call(this, I), this.error = Y.error;
28025
28037
  }
28026
28038
  M.prototype = Object.create(V.prototype);
28027
- var F = -1, q = 0, B = 1, N = 2, x = -1, z = 0, Z = 1, _ = 2, G = 3, ae = /^text\/event\-stream(;.*)?$/i, te = 1e3, se = 18e6, de = function(I, Y) {
28039
+ var F = -1, q = 0, B = 1, D = 2, x = -1, z = 0, Z = 1, _ = 2, G = 3, ae = /^text\/event\-stream(;.*)?$/i, te = 1e3, se = 18e6, de = function(I, Y) {
28028
28040
  var re = I == null ? Y : parseInt(I, 10);
28029
28041
  return re !== re && (re = Y), pe(re);
28030
28042
  }, pe = function(I) {
@@ -28045,7 +28057,7 @@ var $h = { exports: {} };
28045
28057
  var fe = f != null && p != null && "body" in p.prototype;
28046
28058
  function me(I, Y, re) {
28047
28059
  Y = String(Y);
28048
- var Q = !!re.withCredentials, Ee = re.lastEventIdQueryParameterName || "lastEventId", xe = pe(1e3), $e = de(re.heartbeatTimeout, 45e3), Ve = "", Ie = xe, Me = !1, U = 0, A = re.headers || {}, J = re.Transport, ce = fe && J == null ? void 0 : new k(J != null ? new J() : H()), _e = J != null && typeof J != "string" ? new J() : ce == null ? new D() : new O(), Te = void 0, Ge = 0, it = F, Lt = "", Ct = "", qe = "", $t = "", Ye = z, mn = 0, kn = 0, Zn = function(ft, wt, Ft, Bt) {
28060
+ var Q = !!re.withCredentials, Ee = re.lastEventIdQueryParameterName || "lastEventId", xe = pe(1e3), $e = de(re.heartbeatTimeout, 45e3), Ve = "", Ie = xe, Me = !1, U = 0, A = re.headers || {}, J = re.Transport, ce = fe && J == null ? void 0 : new k(J != null ? new J() : H()), _e = J != null && typeof J != "string" ? new J() : ce == null ? new N() : new O(), Te = void 0, Ge = 0, it = F, Lt = "", Ct = "", qe = "", $t = "", Ye = z, mn = 0, kn = 0, Zn = function(ft, wt, Ft, Bt) {
28049
28061
  if (it === q)
28050
28062
  if (ft === 200 && Ft != null && ae.test(Ft)) {
28051
28063
  it = B, Me = Date.now(), Ie = xe, I.readyState = B;
@@ -28093,7 +28105,7 @@ var $h = { exports: {} };
28093
28105
  data: Lt.slice(1),
28094
28106
  lastEventId: Ct
28095
28107
  });
28096
- if (I.dispatchEvent(Xr), qe === "open" ? le(I, I.onopen, Xr) : qe === "message" ? le(I, I.onmessage, Xr) : qe === "error" && le(I, I.onerror, Xr), it === N)
28108
+ if (I.dispatchEvent(Xr), qe === "open" ? le(I, I.onopen, Xr) : qe === "message" ? le(I, I.onmessage, Xr) : qe === "error" && le(I, I.onerror, Xr), it === D)
28097
28109
  return;
28098
28110
  }
28099
28111
  Lt = "", qe = "";
@@ -28112,7 +28124,7 @@ var $h = { exports: {} };
28112
28124
  I.dispatchEvent(wt), le(I, I.onerror, wt), ft != null && console.error(ft);
28113
28125
  }
28114
28126
  }, Kn = function() {
28115
- it = N, Te != null && (Te.abort(), Te = void 0), Ge !== 0 && (i(Ge), Ge = 0), I.readyState = N;
28127
+ it = D, Te != null && (Te.abort(), Te = void 0), Ge !== 0 && (i(Ge), Ge = 0), I.readyState = D;
28116
28128
  }, Dr = function() {
28117
28129
  if (Ge = 0, it !== F) {
28118
28130
  if (!Me && Te != null)
@@ -28149,9 +28161,9 @@ var $h = { exports: {} };
28149
28161
  };
28150
28162
  I.url = Y, I.readyState = q, I.withCredentials = Q, I.headers = A, I._close = Kn, Dr();
28151
28163
  }
28152
- X.prototype = Object.create(T.prototype), X.prototype.CONNECTING = q, X.prototype.OPEN = B, X.prototype.CLOSED = N, X.prototype.close = function() {
28164
+ X.prototype = Object.create(T.prototype), X.prototype.CONNECTING = q, X.prototype.OPEN = B, X.prototype.CLOSED = D, X.prototype.close = function() {
28153
28165
  this._close();
28154
- }, X.CONNECTING = q, X.OPEN = B, X.CLOSED = N, X.prototype.withCredentials = void 0;
28166
+ }, X.CONNECTING = q, X.OPEN = B, X.CLOSED = D, X.prototype.withCredentials = void 0;
28155
28167
  var Oe = c;
28156
28168
  a != null && (c == null || !("withCredentials" in c.prototype)) && (Oe = X), function(I) {
28157
28169
  {
@@ -32680,13 +32692,20 @@ function rle({
32680
32692
  storageKey: n,
32681
32693
  ...r
32682
32694
  }) {
32683
- const [i, a] = st(), o = So((D) => D.messages), s = So((D) => D.addMessage), c = So((D) => D.fetchMessages), l = So((D) => D.setMessages), u = So((D) => D.isFetching), [f, p] = st("connecting"), { isTyping: d, setIsTyping: m } = Woe(), h = On(() => new qh(), []), y = uj(n), v = On(() => Uoe({ apiUrl: e, clientId: t }), [e, t]), g = Dt(null), [b, k] = st(r.userKey), [S, E] = st(r.conversationId);
32684
- async function O(D) {
32685
- const { conversation: T } = await v.createConversation({ "x-user-key": D });
32686
- return y.setState({ conversationId: T.id }), T.id;
32695
+ const [i, a] = st(), o = So((N) => N.messages), s = So((N) => N.addMessage), c = So((N) => N.fetchMessages), l = So((N) => N.setMessages), u = So((N) => N.isFetching), [f, p] = st("connecting"), { isTyping: d, setIsTyping: m } = Woe(), h = On(() => new qh(), []), y = uj(n), v = On(() => Uoe({ apiUrl: e, clientId: t }), [e, t]), g = Dt(null), [b, k] = st(r.userKey), [S, E] = st(r.conversationId);
32696
+ async function O(N) {
32697
+ const { conversation: T } = await v.createConversation({ "x-user-key": N });
32698
+ return y.setState({ conversationId: T.id }), await v.createEvent({
32699
+ "x-user-key": N,
32700
+ conversationId: T.id,
32701
+ payload: {
32702
+ type: "conversation_started",
32703
+ data: {}
32704
+ }
32705
+ }), T.id;
32687
32706
  }
32688
32707
  if (Gt(() => {
32689
- let D = !0;
32708
+ let N = !0;
32690
32709
  async function T({ userKey: P, conversationId: V }) {
32691
32710
  let $, L = r.userKey ?? P, M = r.conversationId ?? V;
32692
32711
  if (p("connecting"), !L) {
@@ -32694,8 +32713,8 @@ function rle({
32694
32713
  L = B == null ? void 0 : B.userToken;
32695
32714
  }
32696
32715
  if (!L) {
32697
- const { key: B, user: N } = await v.createUser({});
32698
- $ = N, L = B, y.setState({ user: { userId: N.id, userToken: L } });
32716
+ const { key: B, user: D } = await v.createUser({});
32717
+ $ = D, L = B, y.setState({ user: { userId: D.id, userToken: L } });
32699
32718
  }
32700
32719
  if (!$) {
32701
32720
  const { user: B } = await v.getUser({ "x-user-key": L });
@@ -32713,28 +32732,28 @@ function rle({
32713
32732
  userKey: L
32714
32733
  })
32715
32734
  ];
32716
- j0({ emitter: h, signalEmitter: F }), D && (g.current = F, k(L), E(M), a($), l(q), p("connected"));
32735
+ j0({ emitter: h, signalEmitter: F }), N && (g.current = F, k(L), E(M), a($), l(q), p("connected"));
32717
32736
  }
32718
32737
  return T({ userKey: b, conversationId: S }).catch((P) => {
32719
32738
  console.error(P);
32720
32739
  }), () => {
32721
- g.current && (g.current.cleanup(), g.current = null), D = !1;
32740
+ g.current && (g.current.cleanup(), g.current = null), N = !1;
32722
32741
  };
32723
32742
  }, [b, S, v, h, r.conversationId, r.userKey]), Gt(() => {
32724
32743
  var T;
32725
32744
  if (!b || !S)
32726
32745
  return;
32727
- async function D({ userKey: P, conversationId: V }) {
32746
+ async function N({ userKey: P, conversationId: V }) {
32728
32747
  const $ = await v.listenConversation({ "x-user-key": P, id: V });
32729
32748
  g.current = $, j0({ emitter: h, signalEmitter: $ });
32730
32749
  }
32731
- f === "error" && ((T = g.current) == null || T.cleanup(), vse(() => D({ conversationId: S, userKey: b }), {
32750
+ f === "error" && ((T = g.current) == null || T.cleanup(), vse(() => N({ conversationId: S, userKey: b }), {
32732
32751
  startingDelay: 2e3,
32733
32752
  maxDelay: 1e4,
32734
32753
  numOfAttempts: 1 / 0
32735
32754
  }), p("connected"));
32736
32755
  }, [f, b, S]), Gt(() => {
32737
- const D = [
32756
+ const N = [
32738
32757
  h.on("message", (T) => ((i == null ? void 0 : i.id) !== T.authorId && h.emit("isTyping", { isTyping: !1, timeout: 0 }), s(T))),
32739
32758
  h.on("isTyping", ({ isTyping: T, timeout: P }) => {
32740
32759
  m(T, P);
@@ -32744,7 +32763,7 @@ function rle({
32744
32763
  })
32745
32764
  ];
32746
32765
  return () => {
32747
- D.forEach((T) => T());
32766
+ N.forEach((T) => T());
32748
32767
  };
32749
32768
  }, []), f === "connecting" || !b || !S)
32750
32769
  return {
@@ -32760,7 +32779,7 @@ function rle({
32760
32779
  isFetchingMessages: u
32761
32780
  };
32762
32781
  const j = {
32763
- sendMessage: async (D) => {
32782
+ sendMessage: async (N) => {
32764
32783
  const T = FT();
32765
32784
  s(
32766
32785
  Ea({
@@ -32768,7 +32787,7 @@ function rle({
32768
32787
  createdAt: (/* @__PURE__ */ new Date()).toISOString(),
32769
32788
  userId: (i == null ? void 0 : i.id) ?? "",
32770
32789
  conversationId: S,
32771
- payload: D,
32790
+ payload: N,
32772
32791
  metadata: {
32773
32792
  clientMessageId: T,
32774
32793
  delivered: !1
@@ -32777,33 +32796,33 @@ function rle({
32777
32796
  ), await v.createMessage({
32778
32797
  "x-user-key": b,
32779
32798
  conversationId: S,
32780
- payload: D,
32799
+ payload: N,
32781
32800
  metadata: {
32782
32801
  clientMessageId: T
32783
32802
  }
32784
32803
  }).catch((P) => h.emit("error", P));
32785
32804
  },
32786
- updateUser: async (D) => {
32805
+ updateUser: async (N) => {
32787
32806
  const { user: T } = await v.updateUser({
32788
32807
  "x-user-key": b,
32789
- name: D.name,
32790
- pictureUrl: D.pictureUrl,
32791
- userData: D.data
32808
+ name: N.name,
32809
+ pictureUrl: N.pictureUrl,
32810
+ userData: N.data
32792
32811
  });
32793
32812
  return T;
32794
32813
  },
32795
- sendEvent: async (D) => {
32814
+ sendEvent: async (N) => {
32796
32815
  await v.createEvent({
32797
32816
  "x-user-key": b,
32798
32817
  conversationId: S,
32799
32818
  payload: {
32800
32819
  type: "custom",
32801
- data: D
32820
+ data: N
32802
32821
  }
32803
32822
  });
32804
32823
  },
32805
- uploadFile: async (D) => {
32806
- const { size: T, name: P } = D, $ = await ((N) => new Promise((x, z) => {
32824
+ uploadFile: async (N) => {
32825
+ const { size: T, name: P } = N, $ = await ((D) => new Promise((x, z) => {
32807
32826
  const Z = new FileReader();
32808
32827
  Z.onload = (_) => {
32809
32828
  var G;
@@ -32811,8 +32830,8 @@ function rle({
32811
32830
  }, Z.onerror = (_) => {
32812
32831
  var G;
32813
32832
  return z((G = _.target) == null ? void 0 : G.error);
32814
- }, Z.readAsArrayBuffer(N);
32815
- }))(D), {
32833
+ }, Z.readAsArrayBuffer(D);
32834
+ }))(N), {
32816
32835
  file: { uploadUrl: L, contentType: M, url: F }
32817
32836
  } = await v.createFile({
32818
32837
  "x-user-key": b,
@@ -32833,8 +32852,8 @@ function rle({
32833
32852
  return { fileUrl: F, name: P, type: B };
32834
32853
  },
32835
32854
  getUser: async () => {
32836
- const { user: D } = await v.getUser({ "x-user-key": b });
32837
- return D;
32855
+ const { user: N } = await v.getUser({ "x-user-key": b });
32856
+ return N;
32838
32857
  }
32839
32858
  };
32840
32859
  return {