@chatsystem/client 1.0.4 → 1.0.5

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.
Files changed (2) hide show
  1. package/dist/index.js +165 -163
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ var Ps = Object.defineProperty;
3
3
  var Is = (e, t, n) => t in e ? Ps(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
4
  var ln = (e, t, n) => Is(e, typeof t != "symbol" ? t + "" : t, n);
5
5
  import * as Te from "react";
6
- import we, { useState as Le, useRef as Fe, useEffect as rt, useCallback as _t, useContext as Mt, createContext as Ls, useMemo as Vn, forwardRef as Ns } from "react";
6
+ import we, { useState as Ne, useRef as Fe, useEffect as rt, useCallback as _t, useContext as Mt, createContext as Ls, useMemo as Vn, forwardRef as Ns } from "react";
7
7
  import Yt from "react-dom";
8
8
  var vi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
9
9
  function Va(e) {
@@ -265,14 +265,14 @@ function Ms() {
265
265
  } catch (ot) {
266
266
  if (ot && ee && typeof ot.stack == "string") {
267
267
  for (var se = ot.stack.split(`
268
- `), Ae = ee.stack.split(`
269
- `), _e = se.length - 1, Se = Ae.length - 1; _e >= 1 && Se >= 0 && se[_e] !== Ae[Se]; )
268
+ `), $e = ee.stack.split(`
269
+ `), _e = se.length - 1, Se = $e.length - 1; _e >= 1 && Se >= 0 && se[_e] !== $e[Se]; )
270
270
  Se--;
271
271
  for (; _e >= 1 && Se >= 0; _e--, Se--)
272
- if (se[_e] !== Ae[Se]) {
272
+ if (se[_e] !== $e[Se]) {
273
273
  if (_e !== 1 || Se !== 1)
274
274
  do
275
- if (_e--, Se--, Se < 0 || se[_e] !== Ae[Se]) {
275
+ if (_e--, Se--, Se < 0 || se[_e] !== $e[Se]) {
276
276
  var Be = `
277
277
  ` + se[_e].replace(" at new ", " at ");
278
278
  return $.displayName && Be.includes("<anonymous>") && (Be = Be.replace("<anonymous>", $.displayName)), typeof $ == "function" && te.set($, Be), Be;
@@ -287,7 +287,7 @@ function Ms() {
287
287
  var Rt = $ ? $.displayName || $.name : "", bi = Rt ? Q(Rt) : "";
288
288
  return typeof $ == "function" && te.set($, bi), bi;
289
289
  }
290
- function Oe($, M, H) {
290
+ function Pe($, M, H) {
291
291
  return B($, !1);
292
292
  }
293
293
  function at($) {
@@ -310,7 +310,7 @@ function Ms() {
310
310
  if (typeof $ == "object")
311
311
  switch ($.$$typeof) {
312
312
  case m:
313
- return Oe($.render);
313
+ return Pe($.render);
314
314
  case s:
315
315
  return Xe($.type, M, H);
316
316
  case c: {
@@ -339,8 +339,8 @@ function Ms() {
339
339
  var se = void 0;
340
340
  try {
341
341
  if (typeof $[ue] != "function") {
342
- var Ae = Error((ee || "React class") + ": " + H + " type `" + ue + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof $[ue] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
343
- throw Ae.name = "Invariant Violation", Ae;
342
+ var $e = Error((ee || "React class") + ": " + H + " type `" + ue + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof $[ue] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
343
+ throw $e.name = "Invariant Violation", $e;
344
344
  }
345
345
  se = $[ue](M, ue, ee, H, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
346
346
  } catch (_e) {
@@ -379,7 +379,7 @@ function Ms() {
379
379
  ref: !0,
380
380
  __self: !0,
381
381
  __source: !0
382
- }, fe, Pe, Ge;
382
+ }, fe, Ie, Ge;
383
383
  Ge = {};
384
384
  function We($) {
385
385
  if (ht.call($, "ref")) {
@@ -403,7 +403,7 @@ function Ms() {
403
403
  Ge[H] || (y('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', P(Z.current.type), $.ref), Ge[H] = !0);
404
404
  }
405
405
  }
406
- function Re($, M) {
406
+ function Ae($, M) {
407
407
  {
408
408
  var H = function() {
409
409
  fe || (fe = !0, y("%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)", M));
@@ -417,7 +417,7 @@ function Ms() {
417
417
  function lt($, M) {
418
418
  {
419
419
  var H = function() {
420
- Pe || (Pe = !0, y("%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)", M));
420
+ Ie || (Ie = !0, y("%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)", M));
421
421
  };
422
422
  H.isReactWarning = !0, Object.defineProperty($, "ref", {
423
423
  get: H,
@@ -456,8 +456,8 @@ function Ms() {
456
456
  };
457
457
  function Es($, M, H, ee, de) {
458
458
  {
459
- var ye, ue = {}, se = null, Ae = null;
460
- H !== void 0 && (F(H), se = "" + H), dt(M) && (F(M.key), se = "" + M.key), We(M) && (Ae = M.ref, mt(M, de));
459
+ var ye, ue = {}, se = null, $e = null;
460
+ H !== void 0 && (F(H), se = "" + H), dt(M) && (F(M.key), se = "" + M.key), We(M) && ($e = M.ref, mt(M, de));
461
461
  for (ye in M)
462
462
  ht.call(M, ye) && !oe.hasOwnProperty(ye) && (ue[ye] = M[ye]);
463
463
  if ($ && $.defaultProps) {
@@ -465,11 +465,11 @@ function Ms() {
465
465
  for (ye in _e)
466
466
  ue[ye] === void 0 && (ue[ye] = _e[ye]);
467
467
  }
468
- if (se || Ae) {
468
+ if (se || $e) {
469
469
  var Se = typeof $ == "function" ? $.displayName || $.name || "Unknown" : $;
470
- se && Re(ue, Se), Ae && lt(ue, Se);
470
+ se && Ae(ue, Se), $e && lt(ue, Se);
471
471
  }
472
- return Ye($, se, Ae, de, ee, Z.current, ue);
472
+ return Ye($, se, $e, de, ee, Z.current, ue);
473
473
  }
474
474
  }
475
475
  var Hn = p.ReactCurrentOwner, hi = p.ReactDebugCurrentFrame;
@@ -588,8 +588,8 @@ Check the top-level render call using <` + H + ">.");
588
588
  if (!ue) {
589
589
  var se = "";
590
590
  ($ === void 0 || typeof $ == "object" && $ !== null && Object.keys($).length === 0) && (se += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
591
- var Ae = Ss();
592
- Ae ? se += Ae : se += pi();
591
+ var $e = Ss();
592
+ $e ? se += $e : se += pi();
593
593
  var _e;
594
594
  $ === null ? _e = "null" : zt($) ? _e = "array" : $ !== void 0 && $.$$typeof === t ? (_e = "<" + (P($.type) || "Unknown") + " />", se = " Did you accidentally export a JSX literal instead of a component?") : _e = typeof $, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", _e, se);
595
595
  }
@@ -763,8 +763,8 @@ function Fs() {
763
763
  }
764
764
  function w(B) {
765
765
  if (typeof B == "object" && B !== null) {
766
- var Oe = B.$$typeof;
767
- switch (Oe) {
766
+ var Pe = B.$$typeof;
767
+ switch (Pe) {
768
768
  case t:
769
769
  var at = B.type;
770
770
  switch (at) {
@@ -785,11 +785,11 @@ function Fs() {
785
785
  case l:
786
786
  return Xe;
787
787
  default:
788
- return Oe;
788
+ return Pe;
789
789
  }
790
790
  }
791
791
  case n:
792
- return Oe;
792
+ return Pe;
793
793
  }
794
794
  }
795
795
  }
@@ -1012,11 +1012,11 @@ function zs() {
1012
1012
  );
1013
1013
  throw B.name = "Invariant Violation", B;
1014
1014
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
1015
- var Oe = Q + ":" + X;
1016
- !N[Oe] && // Avoid spamming the console because they are often not actionable except for lib authors
1015
+ var Pe = Q + ":" + X;
1016
+ !N[Pe] && // Avoid spamming the console because they are often not actionable except for lib authors
1017
1017
  U < 3 && (o(
1018
1018
  "You are manually calling a React.PropTypes validation function for the `" + te + "` prop on `" + Q + "`. 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."
1019
- ), N[Oe] = !0, U++);
1019
+ ), N[Pe] = !0, U++);
1020
1020
  }
1021
1021
  }
1022
1022
  return q[X] == null ? K ? q[X] === null ? new f("The " + ae + " `" + te + "` is marked as required " + ("in `" + Q + "`, but its value is `null`.")) : new f("The " + ae + " `" + te + "` is marked as required in " + ("`" + Q + "`, but its value is `undefined`.")) : null : T(q, X, Q, ae, te);
@@ -1101,8 +1101,8 @@ function zs() {
1101
1101
  if (h(X, T[Q]))
1102
1102
  return null;
1103
1103
  var ae = JSON.stringify(T, function(Ee, B) {
1104
- var Oe = G(B);
1105
- return Oe === "symbol" ? String(B) : B;
1104
+ var Pe = G(B);
1105
+ return Pe === "symbol" ? String(B) : B;
1106
1106
  });
1107
1107
  return new f("Invalid " + K + " `" + q + "` of value `" + String(X) + "` " + ("supplied to `" + V + "`, expected one of " + ae + "."));
1108
1108
  }
@@ -1142,8 +1142,8 @@ function zs() {
1142
1142
  return null;
1143
1143
  B.data && r(B.data, "expectedType") && ae.push(B.data.expectedType);
1144
1144
  }
1145
- var Oe = ae.length > 0 ? ", expected one of type [" + ae.join(", ") + "]" : "";
1146
- return new f("Invalid " + X + " `" + Q + "` supplied to " + ("`" + q + "`" + Oe + "."));
1145
+ var Pe = ae.length > 0 ? ", expected one of type [" + ae.join(", ") + "]" : "";
1146
+ return new f("Invalid " + X + " `" + Q + "` supplied to " + ("`" + q + "`" + Pe + "."));
1147
1147
  }
1148
1148
  return b(R);
1149
1149
  }
@@ -4406,14 +4406,14 @@ var ct = (
4406
4406
  }
4407
4407
  return t;
4408
4408
  }(ct)
4409
- ), $e;
4409
+ ), Oe;
4410
4410
  (function(e) {
4411
4411
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
4412
- })($e || ($e = {}));
4412
+ })(Oe || (Oe = {}));
4413
4413
  function Fl(e) {
4414
4414
  return e.length < 2 ? e : e.reduce(function(t, n) {
4415
4415
  var r = t[t.length - 1];
4416
- return !r || r.type !== $e.literal || n.type !== $e.literal ? t.push(n) : r.value += n.value, t;
4416
+ return !r || r.type !== Oe.literal || n.type !== Oe.literal ? t.push(n) : r.value += n.value, t;
4417
4417
  }, []);
4418
4418
  }
4419
4419
  function go(e) {
@@ -4423,7 +4423,7 @@ function gn(e, t, n, r, a, o, l) {
4423
4423
  if (e.length === 1 && Pi(e[0]))
4424
4424
  return [
4425
4425
  {
4426
- type: $e.literal,
4426
+ type: Oe.literal,
4427
4427
  value: e[0].value
4428
4428
  }
4429
4429
  ];
@@ -4431,14 +4431,14 @@ function gn(e, t, n, r, a, o, l) {
4431
4431
  var d = g[m];
4432
4432
  if (Pi(d)) {
4433
4433
  i.push({
4434
- type: $e.literal,
4434
+ type: Oe.literal,
4435
4435
  value: d.value
4436
4436
  });
4437
4437
  continue;
4438
4438
  }
4439
4439
  if (nl(d)) {
4440
4440
  typeof o == "number" && i.push({
4441
- type: $e.literal,
4441
+ type: Oe.literal,
4442
4442
  value: n.getNumberFormat(t).format(o)
4443
4443
  });
4444
4444
  continue;
@@ -4449,7 +4449,7 @@ function gn(e, t, n, r, a, o, l) {
4449
4449
  var c = a[s];
4450
4450
  if (tl(d)) {
4451
4451
  (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), i.push({
4452
- type: typeof c == "string" ? $e.literal : $e.object,
4452
+ type: typeof c == "string" ? Oe.literal : Oe.object,
4453
4453
  value: c
4454
4454
  });
4455
4455
  continue;
@@ -4457,7 +4457,7 @@ function gn(e, t, n, r, a, o, l) {
4457
4457
  if (eo(d)) {
4458
4458
  var u = typeof d.style == "string" ? r.date[d.style] : _r(d.style) ? d.style.parsedOptions : void 0;
4459
4459
  i.push({
4460
- type: $e.literal,
4460
+ type: Oe.literal,
4461
4461
  value: n.getDateTimeFormat(t, u).format(c)
4462
4462
  });
4463
4463
  continue;
@@ -4465,7 +4465,7 @@ function gn(e, t, n, r, a, o, l) {
4465
4465
  if (to(d)) {
4466
4466
  var u = typeof d.style == "string" ? r.time[d.style] : _r(d.style) ? d.style.parsedOptions : r.time.medium;
4467
4467
  i.push({
4468
- type: $e.literal,
4468
+ type: Oe.literal,
4469
4469
  value: n.getDateTimeFormat(t, u).format(c)
4470
4470
  });
4471
4471
  continue;
@@ -4473,7 +4473,7 @@ function gn(e, t, n, r, a, o, l) {
4473
4473
  if (Qa(d)) {
4474
4474
  var u = typeof d.style == "string" ? r.number[d.style] : ao(d.style) ? d.style.parsedOptions : void 0;
4475
4475
  u && u.scale && (c = c * (u.scale || 1)), i.push({
4476
- type: $e.literal,
4476
+ type: Oe.literal,
4477
4477
  value: n.getNumberFormat(t, u).format(c)
4478
4478
  });
4479
4479
  continue;
@@ -4487,7 +4487,7 @@ function gn(e, t, n, r, a, o, l) {
4487
4487
  }));
4488
4488
  Array.isArray(y) || (y = [y]), i.push.apply(i, y.map(function(_) {
4489
4489
  return {
4490
- type: typeof _ == "string" ? $e.literal : $e.object,
4490
+ type: typeof _ == "string" ? Oe.literal : Oe.object,
4491
4491
  value: _
4492
4492
  };
4493
4493
  }));
@@ -4587,7 +4587,7 @@ var yo = (
4587
4587
  if (g.length === 1)
4588
4588
  return g[0].value;
4589
4589
  var d = g.reduce(function(s, c) {
4590
- return !s.length || c.type !== $e.literal || typeof s[s.length - 1] != "string" ? s.push(c.value) : s[s.length - 1] += c.value, s;
4590
+ return !s.length || c.type !== Oe.literal || typeof s[s.length - 1] != "string" ? s.push(c.value) : s[s.length - 1] += c.value, s;
4591
4591
  }, []);
4592
4592
  return d.length <= 1 ? d[0] || "" : d;
4593
4593
  }, this.formatToParts = function(m) {
@@ -5416,7 +5416,7 @@ qe.prototype.commaOrSpaceSeparated = !1;
5416
5416
  qe.prototype.mustUseProperty = !1;
5417
5417
  qe.prototype.defined = !1;
5418
5418
  let $u = 0;
5419
- const ie = kt(), ke = kt(), Ao = kt(), j = kt(), be = kt(), Lt = kt(), De = kt();
5419
+ const ie = kt(), ke = kt(), Ao = kt(), j = kt(), be = kt(), Lt = kt(), Me = kt();
5420
5420
  function kt() {
5421
5421
  return 2 ** ++$u;
5422
5422
  }
@@ -5424,7 +5424,7 @@ const Or = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5424
5424
  __proto__: null,
5425
5425
  boolean: ie,
5426
5426
  booleanish: ke,
5427
- commaOrSpaceSeparated: De,
5427
+ commaOrSpaceSeparated: Me,
5428
5428
  commaSeparated: Lt,
5429
5429
  number: j,
5430
5430
  overloadedBoolean: Ao,
@@ -6092,7 +6092,7 @@ const Lo = jt({
6092
6092
  },
6093
6093
  transform: Po,
6094
6094
  properties: {
6095
- about: De,
6095
+ about: Me,
6096
6096
  accentHeight: j,
6097
6097
  accumulate: null,
6098
6098
  additive: null,
@@ -6204,7 +6204,7 @@ const Lo = jt({
6204
6204
  k2: j,
6205
6205
  k3: j,
6206
6206
  k4: j,
6207
- kernelMatrix: De,
6207
+ kernelMatrix: Me,
6208
6208
  kernelUnitLength: null,
6209
6209
  keyPoints: null,
6210
6210
  // SEMI_COLON_SEPARATED
@@ -6361,21 +6361,21 @@ const Lo = jt({
6361
6361
  preserveAspectRatio: null,
6362
6362
  primitiveUnits: null,
6363
6363
  propagate: null,
6364
- property: De,
6364
+ property: Me,
6365
6365
  r: null,
6366
6366
  radius: null,
6367
6367
  referrerPolicy: null,
6368
6368
  refX: null,
6369
6369
  refY: null,
6370
- rel: De,
6371
- rev: De,
6370
+ rel: Me,
6371
+ rev: Me,
6372
6372
  renderingIntent: null,
6373
6373
  repeatCount: null,
6374
6374
  repeatDur: null,
6375
- requiredExtensions: De,
6376
- requiredFeatures: De,
6377
- requiredFonts: De,
6378
- requiredFormats: De,
6375
+ requiredExtensions: Me,
6376
+ requiredFeatures: Me,
6377
+ requiredFonts: Me,
6378
+ requiredFormats: Me,
6379
6379
  resource: null,
6380
6380
  restart: null,
6381
6381
  result: null,
@@ -6403,7 +6403,7 @@ const Lo = jt({
6403
6403
  strikethroughThickness: j,
6404
6404
  string: null,
6405
6405
  stroke: null,
6406
- strokeDashArray: De,
6406
+ strokeDashArray: Me,
6407
6407
  strokeDashOffset: null,
6408
6408
  strokeLineCap: null,
6409
6409
  strokeLineJoin: null,
@@ -6417,7 +6417,7 @@ const Lo = jt({
6417
6417
  syncMaster: null,
6418
6418
  syncTolerance: null,
6419
6419
  syncToleranceDefault: null,
6420
- systemLanguage: De,
6420
+ systemLanguage: Me,
6421
6421
  tabIndex: j,
6422
6422
  tableValues: null,
6423
6423
  target: null,
@@ -6431,7 +6431,7 @@ const Lo = jt({
6431
6431
  title: null,
6432
6432
  transformBehavior: null,
6433
6433
  type: null,
6434
- typeOf: De,
6434
+ typeOf: Me,
6435
6435
  to: null,
6436
6436
  transform: null,
6437
6437
  transformOrigin: null,
@@ -6652,7 +6652,7 @@ function ta(e) {
6652
6652
  function na(e) {
6653
6653
  return e && typeof e == "number" ? e : 1;
6654
6654
  }
6655
- class Ce extends Error {
6655
+ class Re extends Error {
6656
6656
  /**
6657
6657
  * Create a message for `reason`.
6658
6658
  *
@@ -6726,19 +6726,19 @@ class Ce extends Error {
6726
6726
  this.ancestors = o.ancestors || void 0, this.cause = o.cause || void 0, this.column = i ? i.column : void 0, this.fatal = void 0, this.file, this.message = a, this.line = i ? i.line : void 0, this.name = Kt(o.place) || "1:1", this.place = o.place || void 0, this.reason = this.message, this.ruleId = o.ruleId || void 0, this.source = o.source || void 0, this.stack = l && o.cause && typeof o.cause.stack == "string" ? o.cause.stack : "", this.actual, this.expected, this.note, this.url;
6727
6727
  }
6728
6728
  }
6729
- Ce.prototype.file = "";
6730
- Ce.prototype.name = "";
6731
- Ce.prototype.reason = "";
6732
- Ce.prototype.message = "";
6733
- Ce.prototype.stack = "";
6734
- Ce.prototype.column = void 0;
6735
- Ce.prototype.line = void 0;
6736
- Ce.prototype.ancestors = void 0;
6737
- Ce.prototype.cause = void 0;
6738
- Ce.prototype.fatal = void 0;
6739
- Ce.prototype.place = void 0;
6740
- Ce.prototype.ruleId = void 0;
6741
- Ce.prototype.source = void 0;
6729
+ Re.prototype.file = "";
6730
+ Re.prototype.name = "";
6731
+ Re.prototype.reason = "";
6732
+ Re.prototype.message = "";
6733
+ Re.prototype.stack = "";
6734
+ Re.prototype.column = void 0;
6735
+ Re.prototype.line = void 0;
6736
+ Re.prototype.ancestors = void 0;
6737
+ Re.prototype.cause = void 0;
6738
+ Re.prototype.fatal = void 0;
6739
+ Re.prototype.place = void 0;
6740
+ Re.prototype.ruleId = void 0;
6741
+ Re.prototype.source = void 0;
6742
6742
  const ei = {}.hasOwnProperty, ic = /* @__PURE__ */ new Map(), ac = /[A-Z]/g, oc = /-([a-z])/g, sc = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), lc = /* @__PURE__ */ new Set(["td", "th"]), Fo = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
6743
6743
  function uc(e, t) {
6744
6744
  if (!t || t.Fragment === void 0)
@@ -6961,7 +6961,7 @@ function _c(e, t) {
6961
6961
  const o = (
6962
6962
  /** @type {Error} */
6963
6963
  a
6964
- ), l = new Ce("Cannot parse `style` attribute", {
6964
+ ), l = new Re("Cannot parse `style` attribute", {
6965
6965
  ancestors: e.ancestors,
6966
6966
  cause: o,
6967
6967
  ruleId: "style",
@@ -7008,7 +7008,7 @@ function zo(e, t, n) {
7008
7008
  en(e);
7009
7009
  }
7010
7010
  function en(e, t) {
7011
- const n = new Ce(
7011
+ const n = new Re(
7012
7012
  "Cannot handle MDX estrees without `createEvaluater`",
7013
7013
  {
7014
7014
  ancestors: e.ancestors,
@@ -7163,7 +7163,7 @@ const Lr = ft(/\d/), Ic = ft(/[\dA-Fa-f]/), Lc = ft(/[!-/:-@[-`{-~]/);
7163
7163
  function J(e) {
7164
7164
  return e !== null && e < -2;
7165
7165
  }
7166
- function Ne(e) {
7166
+ function De(e) {
7167
7167
  return e !== null && (e < 0 || e === 32);
7168
7168
  }
7169
7169
  function he(e) {
@@ -7386,7 +7386,7 @@ function Hc(e, t, n) {
7386
7386
  );
7387
7387
  }
7388
7388
  function sa(e) {
7389
- if (e === null || Ne(e) || Dc(e))
7389
+ if (e === null || De(e) || Dc(e))
7390
7390
  return 1;
7391
7391
  if (Nc(e))
7392
7392
  return 2;
@@ -7900,7 +7900,7 @@ function Xo(e, t, n, r, a, o, l, i, m) {
7900
7900
  return p === 60 || p === 62 || p === 92 ? (e.consume(p), u) : u(p);
7901
7901
  }
7902
7902
  function f(p) {
7903
- return !d && (p === null || p === 41 || Ne(p)) ? (e.exit("chunkString"), e.exit(i), e.exit(l), e.exit(r), t(p)) : d < g && p === 40 ? (e.consume(p), d++, f) : p === 41 ? (e.consume(p), d--, f) : p === null || p === 32 || p === 40 || Ir(p) ? n(p) : (e.consume(p), p === 92 ? b : f);
7903
+ return !d && (p === null || p === 41 || De(p)) ? (e.exit("chunkString"), e.exit(i), e.exit(l), e.exit(r), t(p)) : d < g && p === 40 ? (e.consume(p), d++, f) : p === 41 ? (e.consume(p), d--, f) : p === null || p === 32 || p === 40 || Ir(p) ? n(p) : (e.consume(p), p === 92 ? b : f);
7904
7904
  }
7905
7905
  function b(p) {
7906
7906
  return p === 40 || p === 41 || p === 92 ? (e.consume(p), f) : f(p);
@@ -7994,7 +7994,7 @@ function gf(e, t, n) {
7994
7994
  ), u === 58 ? (e.enter("definitionMarker"), e.consume(u), e.exit("definitionMarker"), m) : n(u);
7995
7995
  }
7996
7996
  function m(u) {
7997
- return Ne(u) ? Jt(e, g)(u) : g(u);
7997
+ return De(u) ? Jt(e, g)(u) : g(u);
7998
7998
  }
7999
7999
  function g(u) {
8000
8000
  return Xo(
@@ -8022,7 +8022,7 @@ function gf(e, t, n) {
8022
8022
  function yf(e, t, n) {
8023
8023
  return r;
8024
8024
  function r(i) {
8025
- return Ne(i) ? Jt(e, a)(i) : n(i);
8025
+ return De(i) ? Jt(e, a)(i) : n(i);
8026
8026
  }
8027
8027
  function a(i) {
8028
8028
  return Ko(
@@ -8087,7 +8087,7 @@ function wf(e, t, n) {
8087
8087
  return e.enter("atxHeadingSequence"), l(d);
8088
8088
  }
8089
8089
  function l(d) {
8090
- return d === 35 && r++ < 6 ? (e.consume(d), l) : d === null || Ne(d) ? (e.exit("atxHeadingSequence"), i(d)) : n(d);
8090
+ return d === 35 && r++ < 6 ? (e.consume(d), l) : d === null || De(d) ? (e.exit("atxHeadingSequence"), i(d)) : n(d);
8091
8091
  }
8092
8092
  function i(d) {
8093
8093
  return d === 35 ? (e.enter("atxHeadingSequence"), m(d)) : d === null || J(d) ? (e.exit("atxHeading"), t(d)) : he(d) ? ve(e, i, "whitespace")(d) : (e.enter("atxHeadingText"), g(d));
@@ -8096,7 +8096,7 @@ function wf(e, t, n) {
8096
8096
  return d === 35 ? (e.consume(d), m) : (e.exit("atxHeadingSequence"), i(d));
8097
8097
  }
8098
8098
  function g(d) {
8099
- return d === null || d === 35 || Ne(d) ? (e.exit("atxHeadingText"), i(d)) : (e.consume(d), g);
8099
+ return d === null || d === 35 || De(d) ? (e.exit("atxHeadingText"), i(d)) : (e.consume(d), g);
8100
8100
  }
8101
8101
  }
8102
8102
  const Ef = [
@@ -8207,7 +8207,7 @@ function Rf(e, t, n) {
8207
8207
  return et(R) ? (e.consume(R), l = String.fromCharCode(R), b) : n(R);
8208
8208
  }
8209
8209
  function b(R) {
8210
- if (R === null || R === 47 || R === 62 || Ne(R)) {
8210
+ if (R === null || R === 47 || R === 62 || De(R)) {
8211
8211
  const V = R === 47, K = l.toLowerCase();
8212
8212
  return !V && !o && fa.includes(K) ? (a = 1, r.interrupt ? t(R) : O(R)) : Ef.includes(l.toLowerCase()) ? (a = 6, V ? (e.consume(R), p) : r.interrupt ? t(R) : O(R)) : (a = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(R) : o ? y(R) : v(R));
8213
8213
  }
@@ -8235,7 +8235,7 @@ function Rf(e, t, n) {
8235
8235
  return R === m ? (e.consume(R), m = null, E) : R === null || J(R) ? n(R) : (e.consume(R), C);
8236
8236
  }
8237
8237
  function x(R) {
8238
- return R === null || R === 34 || R === 39 || R === 47 || R === 60 || R === 61 || R === 62 || R === 96 || Ne(R) ? _(R) : (e.consume(R), x);
8238
+ return R === null || R === 34 || R === 39 || R === 47 || R === 60 || R === 61 || R === 62 || R === 96 || De(R) ? _(R) : (e.consume(R), x);
8239
8239
  }
8240
8240
  function E(R) {
8241
8241
  return R === 47 || R === 62 || he(R) ? v(R) : n(R);
@@ -8369,7 +8369,7 @@ function Pf(e, t, n) {
8369
8369
  return J(T) ? (l = C, G(T)) : he(T) ? (e.consume(T), C) : z(T);
8370
8370
  }
8371
8371
  function x(T) {
8372
- return T === 45 || je(T) ? (e.consume(T), x) : T === 47 || T === 62 || Ne(T) ? E(T) : n(T);
8372
+ return T === 45 || je(T) ? (e.consume(T), x) : T === 47 || T === 62 || De(T) ? E(T) : n(T);
8373
8373
  }
8374
8374
  function E(T) {
8375
8375
  return T === 47 ? (e.consume(T), z) : T === 58 || T === 95 || et(T) ? (e.consume(T), k) : J(T) ? (l = E, G(T)) : he(T) ? (e.consume(T), E) : z(T);
@@ -8387,10 +8387,10 @@ function Pf(e, t, n) {
8387
8387
  return T === a ? (e.consume(T), a = void 0, D) : T === null ? n(T) : J(T) ? (l = P, G(T)) : (e.consume(T), P);
8388
8388
  }
8389
8389
  function L(T) {
8390
- return T === null || T === 34 || T === 39 || T === 60 || T === 61 || T === 96 ? n(T) : T === 47 || T === 62 || Ne(T) ? E(T) : (e.consume(T), L);
8390
+ return T === null || T === 34 || T === 39 || T === 60 || T === 61 || T === 96 ? n(T) : T === 47 || T === 62 || De(T) ? E(T) : (e.consume(T), L);
8391
8391
  }
8392
8392
  function D(T) {
8393
- return T === 47 || T === 62 || Ne(T) ? E(T) : n(T);
8393
+ return T === 47 || T === 62 || De(T) ? E(T) : n(T);
8394
8394
  }
8395
8395
  function z(T) {
8396
8396
  return T === 62 ? (e.consume(T), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(T);
@@ -8523,7 +8523,7 @@ function Ff(e, t, n) {
8523
8523
  return e.enter("resource"), e.enter("resourceMarker"), e.consume(s), e.exit("resourceMarker"), a;
8524
8524
  }
8525
8525
  function a(s) {
8526
- return Ne(s) ? Jt(e, o)(s) : o(s);
8526
+ return De(s) ? Jt(e, o)(s) : o(s);
8527
8527
  }
8528
8528
  function o(s) {
8529
8529
  return s === 41 ? d(s) : Xo(
@@ -8539,7 +8539,7 @@ function Ff(e, t, n) {
8539
8539
  )(s);
8540
8540
  }
8541
8541
  function l(s) {
8542
- return Ne(s) ? Jt(e, m)(s) : d(s);
8542
+ return De(s) ? Jt(e, m)(s) : d(s);
8543
8543
  }
8544
8544
  function i(s) {
8545
8545
  return n(s);
@@ -8555,7 +8555,7 @@ function Ff(e, t, n) {
8555
8555
  )(s) : d(s);
8556
8556
  }
8557
8557
  function g(s) {
8558
- return Ne(s) ? Jt(e, d)(s) : d(s);
8558
+ return De(s) ? Jt(e, d)(s) : d(s);
8559
8559
  }
8560
8560
  function d(s) {
8561
8561
  return s === 41 ? (e.enter("resourceMarker"), e.consume(s), e.exit("resourceMarker"), e.exit("resource"), t) : n(s);
@@ -8658,7 +8658,7 @@ function Wf(e, t, n) {
8658
8658
  return g === a ? (e.consume(g), r++, m) : (e.exit("thematicBreakSequence"), he(g) ? ve(e, i, "whitespace")(g) : i(g));
8659
8659
  }
8660
8660
  }
8661
- const Ie = {
8661
+ const Le = {
8662
8662
  name: "list",
8663
8663
  tokenize: Zf,
8664
8664
  continuation: {
@@ -8730,7 +8730,7 @@ function Kf(e, t, n) {
8730
8730
  function l(i) {
8731
8731
  return r.containerState._closeFlow = !0, r.interrupt = void 0, ve(
8732
8732
  e,
8733
- e.attempt(Ie, t, n),
8733
+ e.attempt(Le, t, n),
8734
8734
  "linePrefix",
8735
8735
  r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
8736
8736
  )(i);
@@ -9156,19 +9156,19 @@ function fh(e, t) {
9156
9156
  return r.join("");
9157
9157
  }
9158
9158
  const hh = {
9159
- 42: Ie,
9160
- 43: Ie,
9161
- 45: Ie,
9162
- 48: Ie,
9163
- 49: Ie,
9164
- 50: Ie,
9165
- 51: Ie,
9166
- 52: Ie,
9167
- 53: Ie,
9168
- 54: Ie,
9169
- 55: Ie,
9170
- 56: Ie,
9171
- 57: Ie,
9159
+ 42: Le,
9160
+ 43: Le,
9161
+ 45: Le,
9162
+ 48: Le,
9163
+ 49: Le,
9164
+ 50: Le,
9165
+ 51: Le,
9166
+ 52: Le,
9167
+ 53: Le,
9168
+ 54: Le,
9169
+ 55: Le,
9170
+ 56: Le,
9171
+ 57: Le,
9172
9172
  62: qo
9173
9173
  }, ph = {
9174
9174
  91: df
@@ -9327,7 +9327,7 @@ function Ah(e) {
9327
9327
  definitionDestinationString: l,
9328
9328
  definitionLabelString: l,
9329
9329
  definitionTitleString: l,
9330
- emphasis: o(Oe),
9330
+ emphasis: o(Pe),
9331
9331
  hardBreakEscape: o(Xe),
9332
9332
  hardBreakTrailing: o(Xe),
9333
9333
  htmlFlow: o(ht, l),
@@ -9425,12 +9425,12 @@ function Ah(e) {
9425
9425
  if (I[fe][0] === "enter")
9426
9426
  oe.push(fe);
9427
9427
  else {
9428
- const Pe = oe.pop();
9429
- fe = a(I, Pe, fe);
9428
+ const Ie = oe.pop();
9429
+ fe = a(I, Ie, fe);
9430
9430
  }
9431
9431
  for (fe = -1; ++fe < I.length; ) {
9432
- const Pe = t[I[fe][0]];
9433
- es.call(Pe, I[fe][1].type) && Pe[I[fe][1].type].call(
9432
+ const Ie = t[I[fe][0]];
9433
+ es.call(Ie, I[fe][1].type) && Ie[I[fe][1].type].call(
9434
9434
  Object.assign(
9435
9435
  {
9436
9436
  sliceSerialize: I[fe][2].sliceSerialize
@@ -9441,8 +9441,8 @@ function Ah(e) {
9441
9441
  );
9442
9442
  }
9443
9443
  if (Z.tokenStack.length > 0) {
9444
- const Pe = Z.tokenStack[Z.tokenStack.length - 1];
9445
- (Pe[1] || da).call(Z, void 0, Pe[0]);
9444
+ const Ie = Z.tokenStack[Z.tokenStack.length - 1];
9445
+ (Ie[1] || da).call(Z, void 0, Ie[0]);
9446
9446
  }
9447
9447
  for (F.position = {
9448
9448
  start: ut(
@@ -9464,18 +9464,18 @@ function Ah(e) {
9464
9464
  return F;
9465
9465
  }
9466
9466
  function a(I, F, Z) {
9467
- let oe = F - 1, fe = -1, Pe = !1, Ge, We, dt, mt;
9467
+ let oe = F - 1, fe = -1, Ie = !1, Ge, We, dt, mt;
9468
9468
  for (; ++oe <= Z; ) {
9469
- const Re = I[oe];
9470
- switch (Re[1].type) {
9469
+ const Ae = I[oe];
9470
+ switch (Ae[1].type) {
9471
9471
  case "listUnordered":
9472
9472
  case "listOrdered":
9473
9473
  case "blockQuote": {
9474
- Re[0] === "enter" ? fe++ : fe--, mt = void 0;
9474
+ Ae[0] === "enter" ? fe++ : fe--, mt = void 0;
9475
9475
  break;
9476
9476
  }
9477
9477
  case "lineEndingBlank": {
9478
- Re[0] === "enter" && (Ge && !mt && !fe && !dt && (dt = oe), mt = void 0);
9478
+ Ae[0] === "enter" && (Ge && !mt && !fe && !dt && (dt = oe), mt = void 0);
9479
9479
  break;
9480
9480
  }
9481
9481
  case "linePrefix":
@@ -9487,34 +9487,34 @@ function Ah(e) {
9487
9487
  default:
9488
9488
  mt = void 0;
9489
9489
  }
9490
- if (!fe && Re[0] === "enter" && Re[1].type === "listItemPrefix" || fe === -1 && Re[0] === "exit" && (Re[1].type === "listUnordered" || Re[1].type === "listOrdered")) {
9490
+ if (!fe && Ae[0] === "enter" && Ae[1].type === "listItemPrefix" || fe === -1 && Ae[0] === "exit" && (Ae[1].type === "listUnordered" || Ae[1].type === "listOrdered")) {
9491
9491
  if (Ge) {
9492
9492
  let lt = oe;
9493
9493
  for (We = void 0; lt--; ) {
9494
9494
  const Ye = I[lt];
9495
9495
  if (Ye[1].type === "lineEnding" || Ye[1].type === "lineEndingBlank") {
9496
9496
  if (Ye[0] === "exit") continue;
9497
- We && (I[We][1].type = "lineEndingBlank", Pe = !0), Ye[1].type = "lineEnding", We = lt;
9497
+ We && (I[We][1].type = "lineEndingBlank", Ie = !0), Ye[1].type = "lineEnding", We = lt;
9498
9498
  } else if (!(Ye[1].type === "linePrefix" || Ye[1].type === "blockQuotePrefix" || Ye[1].type === "blockQuotePrefixWhitespace" || Ye[1].type === "blockQuoteMarker" || Ye[1].type === "listItemIndent")) break;
9499
9499
  }
9500
9500
  dt && (!We || dt < We) && (Ge._spread = !0), Ge.end = Object.assign(
9501
9501
  {},
9502
- We ? I[We][1].start : Re[1].end
9503
- ), I.splice(We || oe, 0, ["exit", Ge, Re[2]]), oe++, Z++;
9502
+ We ? I[We][1].start : Ae[1].end
9503
+ ), I.splice(We || oe, 0, ["exit", Ge, Ae[2]]), oe++, Z++;
9504
9504
  }
9505
- if (Re[1].type === "listItemPrefix") {
9505
+ if (Ae[1].type === "listItemPrefix") {
9506
9506
  const lt = {
9507
9507
  type: "listItem",
9508
9508
  _spread: !1,
9509
- start: Object.assign({}, Re[1].start),
9509
+ start: Object.assign({}, Ae[1].start),
9510
9510
  // @ts-expect-error: we’ll add `end` in a second.
9511
9511
  end: void 0
9512
9512
  };
9513
- Ge = lt, I.splice(oe, 0, ["enter", lt, Re[2]]), oe++, Z++, dt = void 0, mt = !0;
9513
+ Ge = lt, I.splice(oe, 0, ["enter", lt, Ae[2]]), oe++, Z++, dt = void 0, mt = !0;
9514
9514
  }
9515
9515
  }
9516
9516
  }
9517
- return I[F][1]._spread = Pe, Z;
9517
+ return I[F][1]._spread = Ie, Z;
9518
9518
  }
9519
9519
  function o(I, F) {
9520
9520
  return Z;
@@ -9754,7 +9754,7 @@ function Ah(e) {
9754
9754
  url: ""
9755
9755
  };
9756
9756
  }
9757
- function Oe() {
9757
+ function Pe() {
9758
9758
  return {
9759
9759
  type: "emphasis",
9760
9760
  children: []
@@ -11349,7 +11349,7 @@ class fs {
11349
11349
  * Message.
11350
11350
  */
11351
11351
  message(t, n, r) {
11352
- const a = new Ce(
11352
+ const a = new Re(
11353
11353
  // @ts-expect-error: the overloads are fine.
11354
11354
  t,
11355
11355
  n,
@@ -12036,7 +12036,7 @@ const Jp = ({ userType: e, content: t }) => {
12036
12036
  ] });
12037
12037
  };
12038
12038
  function Qp(e, t, n) {
12039
- let [r, a] = Le(e || t), o = Fe(e !== void 0), l = e !== void 0;
12039
+ let [r, a] = Ne(e || t), o = Fe(e !== void 0), l = e !== void 0;
12040
12040
  rt(() => {
12041
12041
  let g = o.current;
12042
12042
  g !== l && console.warn(`WARN: A component changed from ${g ? "controlled" : "uncontrolled"} to ${l ? "controlled" : "uncontrolled"}.`), o.current = l;
@@ -12089,7 +12089,7 @@ function rd(e) {
12089
12089
  return e || `${r}-${n}`;
12090
12090
  }
12091
12091
  function id(e) {
12092
- let t = we.useId(), [n] = Le(ud()), r = n || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${En.prefix}`;
12092
+ let t = we.useId(), [n] = Ne(ud()), r = n || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${En.prefix}`;
12093
12093
  return e || `${r}-${t}`;
12094
12094
  }
12095
12095
  const ad = typeof we.useId == "function" ? id : rd;
@@ -12133,7 +12133,7 @@ function xt(e) {
12133
12133
  }, []);
12134
12134
  }
12135
12135
  function fd(e) {
12136
- let [t, n] = Le(e), r = Fe(null), a = xt(() => {
12136
+ let [t, n] = Ne(e), r = Fe(null), a = xt(() => {
12137
12137
  if (!r.current) return;
12138
12138
  let l = r.current.next();
12139
12139
  if (l.done) {
@@ -12155,7 +12155,7 @@ function fd(e) {
12155
12155
  }
12156
12156
  let hd = !!(typeof window < "u" && window.document && window.document.createElement), Sn = /* @__PURE__ */ new Map();
12157
12157
  function kn(e) {
12158
- let [t, n] = Le(e), r = Fe(null), a = ad(t), o = _t((l) => {
12158
+ let [t, n] = Ne(e), r = Fe(null), a = ad(t), o = _t((l) => {
12159
12159
  r.current = l;
12160
12160
  }, []);
12161
12161
  return hd && Sn.set(a, o), Tt(() => {
@@ -12742,17 +12742,17 @@ function Qd(e) {
12742
12742
  let d = Mt(Kd), s = Vn(() => r ? Array.isArray(r) ? r.flatMap((k) => Hr(d[k])) : Hr(d[r]) : [], [
12743
12743
  d,
12744
12744
  r
12745
- ]), [c, u] = Le(d), [h, f] = Le(!1);
12745
+ ]), [c, u] = Ne(d), [h, f] = Ne(!1);
12746
12746
  d !== c && (u(d), f(!1));
12747
12747
  let b = Vn(() => Ua(h ? [] : s), [
12748
12748
  h,
12749
12749
  s
12750
- ]), p = Fe(Wt), [y, v] = Le(Wt), w = Fe(Wt), _ = () => {
12750
+ ]), p = Fe(Wt), [y, v] = Ne(Wt), w = Fe(Wt), _ = () => {
12751
12751
  if (!S) return;
12752
12752
  C(!1);
12753
12753
  let k = g || o || p.current;
12754
12754
  dr(k, w.current) || (w.current = k, v(k));
12755
- }, [S, C] = Le(!1);
12755
+ }, [S, C] = Ne(!1);
12756
12756
  return rt(_), {
12757
12757
  realtimeValidation: m || b || g || o || Wt,
12758
12758
  displayValidation: i === "native" ? m || b || y : m || b || g || o || y,
@@ -12910,7 +12910,7 @@ function rm(e, t) {
12910
12910
  };
12911
12911
  }
12912
12912
  const im = (e) => e.charCodeAt(e.length - 1) === 10, am = (e) => {
12913
- const [t, n] = Le(""), r = () => {
12913
+ const [t, n] = Ne(""), r = () => {
12914
12914
  g.current && (g.current.style.height = g.current.scrollHeight + "px");
12915
12915
  }, a = () => {
12916
12916
  g.current && (g.current.style.height = "48px");
@@ -13031,7 +13031,7 @@ ln(It, "getApiUrl", () => process.env.NODE_ENV === "development" ? "http://local
13031
13031
  return r && (a.body = JSON.stringify(r)), a;
13032
13032
  });
13033
13033
  let An = It;
13034
- var Me = /* @__PURE__ */ ((e) => (e.FRENCH = "fr-FR", e.ENGLISH = "en-US", e))(Me || {});
13034
+ var Ce = /* @__PURE__ */ ((e) => (e.FRENCH = "fr-FR", e.ENGLISH = "en-US", e))(Ce || {});
13035
13035
  const fm = {
13036
13036
  "generic.language.english": "English",
13037
13037
  "generic.language.french": "French",
@@ -13171,17 +13171,17 @@ const fm = {
13171
13171
  "footer.tab.termsAndConditions": "Termes et conditions",
13172
13172
  "footer.tab.finalCopyright": "Copyright © 2023 Logiciel, Inc. Tous droits réservés."
13173
13173
  }, Dn = {
13174
- [Me.ENGLISH]: {
13174
+ [Ce.ENGLISH]: {
13175
13175
  translatedText: fm,
13176
- pictureName: Me.ENGLISH,
13176
+ pictureName: Ce.ENGLISH,
13177
13177
  langID: 0,
13178
- locale: Me.ENGLISH
13178
+ locale: Ce.ENGLISH
13179
13179
  },
13180
- [Me.FRENCH]: {
13180
+ [Ce.FRENCH]: {
13181
13181
  translatedText: hm,
13182
- pictureName: Me.FRENCH,
13182
+ pictureName: Ce.FRENCH,
13183
13183
  langID: 1,
13184
- locale: Me.FRENCH
13184
+ locale: Ce.FRENCH
13185
13185
  }
13186
13186
  }, pm = Object.keys(
13187
13187
  Dn
@@ -13193,17 +13193,17 @@ pm.reduce(
13193
13193
  },
13194
13194
  []
13195
13195
  );
13196
- Me.FRENCH, Me.ENGLISH;
13197
- Me.FRENCH + "", Me.ENGLISH + "";
13196
+ Ce.FRENCH, Ce.ENGLISH;
13197
+ Ce.FRENCH + "", Ce.ENGLISH + "";
13198
13198
  const dm = "languageSettings", xs = we.createContext({
13199
- appCurrentLang: Dn[Me.ENGLISH],
13199
+ appCurrentLang: Dn[Ce.ENGLISH],
13200
13200
  setAppCurrentLang: () => {
13201
13201
  }
13202
13202
  }), mm = (e) => /(\[.*|\!\[.*)$/.test(e), gm = (e) => /\)/.test(e), ym = "Bonjour ! Je suis votre assistant de jeux de société. Pour bien vous aider, pouvez-vous me dire quel genre de jeux vous cherchez ? Si c'est pour offrir, quel est l'age de la personne ? Souhaitez-vous un nombre de joueurs minimum ? Quel devrait être le temps max d'une partie ? Plus vous m'en dites, plus je pourrai vous aider !";
13203
13203
  var _s = /* @__PURE__ */ ((e) => (e.GET_SESSIONID = "/id", e))(_s || {});
13204
13204
  const bm = (e) => !!e.startsWith("/"), vm = (e, t) => e === _s.GET_SESSIONID ? t ? `Votre ID de session est ${t}` : "Votre ID de session n'est pas encore défini. Envoyez un premier message pour que ce soit le cas." : `La commande ${e} n'est pas prise en compte.`, xm = ({ appToken: e }) => {
13205
13205
  e || console.log("Dev - Admin settings");
13206
- const t = Fe(null), { placeholderTranslation: n } = Co(), [r, a] = Le(!1), [o, l] = Le(null), [i, m] = Le([
13206
+ const t = Fe(null), { placeholderTranslation: n } = Co(), [r, a] = Ne(!1), [o, l] = Ne(null), [i, m] = Ne([
13207
13207
  {
13208
13208
  userType: "assistant",
13209
13209
  content: ym
@@ -13390,8 +13390,8 @@ const bm = (e) => !!e.startsWith("/"), vm = (e, t) => e === _s.GET_SESSIONID ? t
13390
13390
  dm
13391
13391
  )), r && (e == null ? void 0 : e[r]) !== void 0 ? n = e[r] : (n = e[t], n.isDefault = !0), n;
13392
13392
  }, Cm = (e, t) => {
13393
- const [n, r] = Le(e[t]), a = (o) => {
13394
- Object.keys(e).includes(o == null ? void 0 : o.locale) ? r(o) : r(e[Me.ENGLISH]);
13393
+ const [n, r] = Ne(e[t]), a = (o) => {
13394
+ Object.keys(e).includes(o == null ? void 0 : o.locale) ? r(o) : r(e[Ce.ENGLISH]);
13395
13395
  };
13396
13396
  return rt(() => {
13397
13397
  let o = Tm(e, t);
@@ -13400,31 +13400,33 @@ const bm = (e) => !!e.startsWith("/"), vm = (e, t) => e === _s.GET_SESSIONID ? t
13400
13400
  appCurrentLang: n,
13401
13401
  handleSetContextCurrentLang: a
13402
13402
  };
13403
- }, Rm = ({
13403
+ }, Rm = (e) => Object.values(Ce).includes(e), Am = (e) => Rm(e) ? e : (console.log(
13404
+ `Language ${e} not handled for now. Using ${Ce.ENGLISH}.`
13405
+ ), Ce.ENGLISH), $m = ({
13404
13406
  children: e
13405
13407
  }) => {
13406
13408
  var t = navigator.language;
13407
- const { appCurrentLang: n, handleSetContextCurrentLang: r } = Cm(
13409
+ const n = Am(t), { appCurrentLang: r, handleSetContextCurrentLang: a } = Cm(
13408
13410
  Dn,
13409
- t
13410
- ), a = {
13411
- appCurrentLang: n,
13412
- setAppCurrentLang: r
13411
+ n
13412
+ ), o = {
13413
+ appCurrentLang: r,
13414
+ setAppCurrentLang: a
13413
13415
  };
13414
13416
  return /* @__PURE__ */ Y.jsx(Y.Fragment, { children: /* @__PURE__ */ Y.jsx(
13415
13417
  _u,
13416
13418
  {
13417
- locale: n == null ? void 0 : n.locale,
13418
- messages: n == null ? void 0 : n.translatedText,
13419
- children: /* @__PURE__ */ Y.jsx(xs.Provider, { value: a, children: e })
13419
+ locale: r == null ? void 0 : r.locale,
13420
+ messages: r == null ? void 0 : r.translatedText,
13421
+ children: /* @__PURE__ */ Y.jsx(xs.Provider, { value: o, children: e })
13420
13422
  }
13421
13423
  ) });
13422
13424
  };
13423
- function Am({ appToken: e }) {
13424
- const [t, n] = Le(!1);
13425
+ function Om({ appToken: e }) {
13426
+ const [t, n] = Ne(!1);
13425
13427
  return e || console.warn(
13426
13428
  "appToken not defined in ai-client. Please see the documentation at URL_ERROR_IN_DOC"
13427
- ), /* @__PURE__ */ Y.jsxs(Rm, { children: [
13429
+ ), /* @__PURE__ */ Y.jsxs($m, { children: [
13428
13430
  /* @__PURE__ */ Y.jsx(km, { isWidgetOpen: t, setIsWidgetOpen: n }),
13429
13431
  /* @__PURE__ */ Y.jsx(wm, { isWidgetOpen: t, appToken: e })
13430
13432
  ] });
@@ -16651,21 +16653,21 @@ var ws = { exports: {} };
16651
16653
  });
16652
16654
  })(ws);
16653
16655
  var zr = ws.exports;
16654
- const $m = {
16656
+ const Pm = {
16655
16657
  NODE_ENV: zr.string(),
16656
16658
  VITE_APPTOKEN: zr.string()
16657
- }, Om = zr.object($m), Pm = () => {
16659
+ }, Im = zr.object(Pm), Lm = () => {
16658
16660
  var n;
16659
- const e = Om.validate({
16661
+ const e = Im.validate({
16660
16662
  NODE_ENV: process.env.NODE_ENV
16661
16663
  }), t = e.hasOwnProperty("error");
16662
16664
  if (process.env.NODE_ENV, t)
16663
16665
  throw new Error((n = e == null ? void 0 : e.error) == null ? void 0 : n.message);
16664
16666
  };
16665
- Pm();
16667
+ Lm();
16666
16668
  process.env.NODE_ENV === "development" && window && window.location && window.location.href === "http://localhost:5173/" && Xt.createRoot(document.getElementById("root")).render(
16667
- /* @__PURE__ */ Y.jsx(we.StrictMode, { children: /* @__PURE__ */ Y.jsx(Am, { appToken: "a9c0eb09-54e6-4732-bd9f-f325ee983fe9" }) })
16669
+ /* @__PURE__ */ Y.jsx(we.StrictMode, { children: /* @__PURE__ */ Y.jsx(Om, { appToken: "a9c0eb09-54e6-4732-bd9f-f325ee983fe9" }) })
16668
16670
  );
16669
16671
  export {
16670
- Am as App
16672
+ Om as App
16671
16673
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chatsystem/client",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {