@chatsystem/client 1.1.28 → 1.1.30

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.mjs CHANGED
@@ -59,7 +59,7 @@ var Ai;
59
59
  function Fl() {
60
60
  if (Ai) return be;
61
61
  Ai = 1;
62
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, u = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, A = e ? Symbol.for("react.block") : 60121, L = e ? Symbol.for("react.fundamental") : 60117, S = e ? Symbol.for("react.responder") : 60118, R = e ? Symbol.for("react.scope") : 60119;
62
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, u = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, A = e ? Symbol.for("react.block") : 60121, L = e ? Symbol.for("react.fundamental") : 60117, S = e ? Symbol.for("react.responder") : 60118, R = e ? Symbol.for("react.scope") : 60119;
63
63
  function N(x) {
64
64
  if (typeof x == "object" && x !== null) {
65
65
  var I = x.$$typeof;
@@ -78,7 +78,7 @@ function Fl() {
78
78
  case o:
79
79
  case f:
80
80
  case y:
81
- case h:
81
+ case m:
82
82
  case u:
83
83
  return x;
84
84
  default:
@@ -93,7 +93,7 @@ function Fl() {
93
93
  function D(x) {
94
94
  return N(x) === c;
95
95
  }
96
- return be.AsyncMode = l, be.ConcurrentMode = c, be.ContextConsumer = o, be.ContextProvider = u, be.Element = t, be.ForwardRef = f, be.Fragment = r, be.Lazy = y, be.Memo = h, be.Portal = n, be.Profiler = i, be.StrictMode = a, be.Suspense = d, be.isAsyncMode = function(x) {
96
+ return be.AsyncMode = l, be.ConcurrentMode = c, be.ContextConsumer = o, be.ContextProvider = u, be.Element = t, be.ForwardRef = f, be.Fragment = r, be.Lazy = y, be.Memo = m, be.Portal = n, be.Profiler = i, be.StrictMode = a, be.Suspense = d, be.isAsyncMode = function(x) {
97
97
  return D(x) || N(x) === l;
98
98
  }, be.isConcurrentMode = D, be.isContextConsumer = function(x) {
99
99
  return N(x) === o;
@@ -108,7 +108,7 @@ function Fl() {
108
108
  }, be.isLazy = function(x) {
109
109
  return N(x) === y;
110
110
  }, be.isMemo = function(x) {
111
- return N(x) === h;
111
+ return N(x) === m;
112
112
  }, be.isPortal = function(x) {
113
113
  return N(x) === n;
114
114
  }, be.isProfiler = function(x) {
@@ -118,7 +118,7 @@ function Fl() {
118
118
  }, be.isSuspense = function(x) {
119
119
  return N(x) === d;
120
120
  }, be.isValidElementType = function(x) {
121
- return typeof x == "string" || typeof x == "function" || x === r || x === c || x === i || x === a || x === d || x === m || typeof x == "object" && x !== null && (x.$$typeof === y || x.$$typeof === h || x.$$typeof === u || x.$$typeof === o || x.$$typeof === f || x.$$typeof === L || x.$$typeof === S || x.$$typeof === R || x.$$typeof === A);
121
+ return typeof x == "string" || typeof x == "function" || x === r || x === c || x === i || x === a || x === d || x === h || typeof x == "object" && x !== null && (x.$$typeof === y || x.$$typeof === m || x.$$typeof === u || x.$$typeof === o || x.$$typeof === f || x.$$typeof === L || x.$$typeof === S || x.$$typeof === R || x.$$typeof === A);
122
122
  }, be.typeOf = N, be;
123
123
  }
124
124
  var Te = {};
@@ -133,10 +133,10 @@ var Te = {};
133
133
  var _i;
134
134
  function Hl() {
135
135
  return _i || (_i = 1, process.env.NODE_ENV !== "production" && (function() {
136
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, u = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, A = e ? Symbol.for("react.block") : 60121, L = e ? Symbol.for("react.fundamental") : 60117, S = e ? Symbol.for("react.responder") : 60118, R = e ? Symbol.for("react.scope") : 60119;
136
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, u = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, A = e ? Symbol.for("react.block") : 60121, L = e ? Symbol.for("react.fundamental") : 60117, S = e ? Symbol.for("react.responder") : 60118, R = e ? Symbol.for("react.scope") : 60119;
137
137
  function N(U) {
138
138
  return typeof U == "string" || typeof U == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
139
- U === r || U === c || U === i || U === a || U === d || U === m || typeof U == "object" && U !== null && (U.$$typeof === y || U.$$typeof === h || U.$$typeof === u || U.$$typeof === o || U.$$typeof === f || U.$$typeof === L || U.$$typeof === S || U.$$typeof === R || U.$$typeof === A);
139
+ U === r || U === c || U === i || U === a || U === d || U === h || typeof U == "object" && U !== null && (U.$$typeof === y || U.$$typeof === m || U.$$typeof === u || U.$$typeof === o || U.$$typeof === f || U.$$typeof === L || U.$$typeof === S || U.$$typeof === R || U.$$typeof === A);
140
140
  }
141
141
  function D(U) {
142
142
  if (typeof U == "object" && U !== null) {
@@ -158,7 +158,7 @@ function Hl() {
158
158
  case o:
159
159
  case f:
160
160
  case y:
161
- case h:
161
+ case m:
162
162
  case u:
163
163
  return xe;
164
164
  default:
@@ -170,7 +170,7 @@ function Hl() {
170
170
  }
171
171
  }
172
172
  }
173
- var x = l, I = c, q = o, ue = u, te = t, Y = f, M = r, w = y, G = h, $ = n, W = i, se = a, me = d, ve = !1;
173
+ var x = l, I = c, q = o, ue = u, te = t, Y = f, M = r, w = y, G = m, $ = n, W = i, se = a, me = d, ve = !1;
174
174
  function Le(U) {
175
175
  return ve || (ve = !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.")), p(U) || D(U) === l;
176
176
  }
@@ -196,7 +196,7 @@ function Hl() {
196
196
  return D(U) === y;
197
197
  }
198
198
  function Q(U) {
199
- return D(U) === h;
199
+ return D(U) === m;
200
200
  }
201
201
  function ee(U) {
202
202
  return D(U) === n;
@@ -259,12 +259,12 @@ function Ul() {
259
259
  function u(y) {
260
260
  return e.isMemo(y) ? a : i[y.$$typeof] || t;
261
261
  }
262
- var o = Object.defineProperty, l = Object.getOwnPropertyNames, c = Object.getOwnPropertySymbols, f = Object.getOwnPropertyDescriptor, d = Object.getPrototypeOf, m = Object.prototype;
263
- function h(y, A, L) {
262
+ var o = Object.defineProperty, l = Object.getOwnPropertyNames, c = Object.getOwnPropertySymbols, f = Object.getOwnPropertyDescriptor, d = Object.getPrototypeOf, h = Object.prototype;
263
+ function m(y, A, L) {
264
264
  if (typeof A != "string") {
265
- if (m) {
265
+ if (h) {
266
266
  var S = d(A);
267
- S && S !== m && h(y, S, L);
267
+ S && S !== h && m(y, S, L);
268
268
  }
269
269
  var R = l(A);
270
270
  c && (R = R.concat(c(A)));
@@ -281,7 +281,7 @@ function Ul() {
281
281
  }
282
282
  return y;
283
283
  }
284
- return Mr = h, Mr;
284
+ return Mr = m, Mr;
285
285
  }
286
286
  Ul();
287
287
  function ls(e, t, n) {
@@ -446,8 +446,8 @@ var jl = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
446
446
  function Vl(e) {
447
447
  if (e.length === 0)
448
448
  throw new Error("Number skeleton cannot be empty");
449
- for (var t = e.split(jl).filter(function(m) {
450
- return m.length > 0;
449
+ for (var t = e.split(jl).filter(function(h) {
450
+ return h.length > 0;
451
451
  }), n = [], r = 0, a = t; r < a.length; r++) {
452
452
  var i = a[r], u = i.split("/");
453
453
  if (u.length === 0)
@@ -617,13 +617,13 @@ function Ql(e) {
617
617
  case "integer-width":
618
618
  if (a.options.length > 1)
619
619
  throw new RangeError("integer-width stems only accept a single optional option");
620
- a.options[0].replace(Wl, function(l, c, f, d, m, h) {
620
+ a.options[0].replace(Wl, function(l, c, f, d, h, m) {
621
621
  if (c)
622
622
  t.minimumIntegerDigits = f.length;
623
623
  else {
624
- if (d && m)
624
+ if (d && h)
625
625
  throw new Error("We currently do not support maximum integer digits");
626
- if (h)
626
+ if (m)
627
627
  throw new Error("We currently do not support exact integer digits");
628
628
  }
629
629
  return "";
@@ -637,8 +637,8 @@ function Ql(e) {
637
637
  if (xi.test(a.stem)) {
638
638
  if (a.options.length > 1)
639
639
  throw new RangeError("Fraction-precision stems only accept a single optional option");
640
- a.stem.replace(xi, function(l, c, f, d, m, h) {
641
- return f === "*" ? t.minimumFractionDigits = c.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : m && h ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + h.length) : (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length), "";
640
+ a.stem.replace(xi, function(l, c, f, d, h, m) {
641
+ return f === "*" ? t.minimumFractionDigits = c.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : h && m ? (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length + m.length) : (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length), "";
642
642
  });
643
643
  var i = a.options[0];
644
644
  i === "w" ? t = j(j({}, t), { trailingZeroDisplay: "stripIfInteger" }) : i && (t = j(j({}, t), Ii(i)));
@@ -2406,11 +2406,11 @@ var dc = (
2406
2406
  var f = this.clonePosition(), d = this.parseSimpleArgStyleIfPossible();
2407
2407
  if (d.err)
2408
2408
  return d;
2409
- var m = fc(d.val);
2410
- if (m.length === 0)
2409
+ var h = fc(d.val);
2410
+ if (h.length === 0)
2411
2411
  return this.error(fe.EXPECT_ARGUMENT_STYLE, de(this.clonePosition(), this.clonePosition()));
2412
- var h = de(f, this.clonePosition());
2413
- c = { style: m, styleLocation: h };
2412
+ var m = de(f, this.clonePosition());
2413
+ c = { style: h, styleLocation: m };
2414
2414
  }
2415
2415
  var y = this.tryParseArgumentClose(a);
2416
2416
  if (y.err)
@@ -2429,14 +2429,14 @@ var dc = (
2429
2429
  return this.error(fe.EXPECT_DATE_TIME_SKELETON, A);
2430
2430
  var S = L;
2431
2431
  this.locale && (S = Kl(L, this.locale));
2432
- var m = {
2432
+ var h = {
2433
2433
  type: an.dateTime,
2434
2434
  pattern: S,
2435
2435
  location: c.styleLocation,
2436
2436
  parsedOptions: this.shouldParseSkeletons ? zl(S) : {}
2437
2437
  }, R = o === "date" ? Oe.date : Oe.time;
2438
2438
  return {
2439
- val: { type: R, value: r, location: A, style: m },
2439
+ val: { type: R, value: r, location: A, style: h },
2440
2440
  err: null
2441
2441
  };
2442
2442
  }
@@ -2556,9 +2556,9 @@ var dc = (
2556
2556
  if (c.length === 0) {
2557
2557
  var d = this.clonePosition();
2558
2558
  if (n !== "select" && this.bumpIf("=")) {
2559
- var m = this.tryParseDecimalInteger(fe.EXPECT_PLURAL_ARGUMENT_SELECTOR, fe.INVALID_PLURAL_ARGUMENT_SELECTOR);
2560
- if (m.err)
2561
- return m;
2559
+ var h = this.tryParseDecimalInteger(fe.EXPECT_PLURAL_ARGUMENT_SELECTOR, fe.INVALID_PLURAL_ARGUMENT_SELECTOR);
2560
+ if (h.err)
2561
+ return h;
2562
2562
  f = de(d, this.clonePosition()), c = this.message.slice(d.offset, this.offset());
2563
2563
  } else
2564
2564
  break;
@@ -2566,20 +2566,20 @@ var dc = (
2566
2566
  if (l.has(c))
2567
2567
  return this.error(n === "select" ? fe.DUPLICATE_SELECT_ARGUMENT_SELECTOR : fe.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
2568
2568
  c === "other" && (u = !0), this.bumpSpace();
2569
- var h = this.clonePosition();
2569
+ var m = this.clonePosition();
2570
2570
  if (!this.bumpIf("{"))
2571
2571
  return this.error(n === "select" ? fe.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : fe.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, de(this.clonePosition(), this.clonePosition()));
2572
2572
  var y = this.parseMessage(t + 1, n, r);
2573
2573
  if (y.err)
2574
2574
  return y;
2575
- var A = this.tryParseArgumentClose(h);
2575
+ var A = this.tryParseArgumentClose(m);
2576
2576
  if (A.err)
2577
2577
  return A;
2578
2578
  o.push([
2579
2579
  c,
2580
2580
  {
2581
2581
  value: y.val,
2582
- location: de(h, this.clonePosition())
2582
+ location: de(m, this.clonePosition())
2583
2583
  }
2584
2584
  ]), l.add(c), this.bumpSpace(), i = this.parseIdentifierIfPossible(), c = i.value, f = i.location;
2585
2585
  }
@@ -2822,35 +2822,35 @@ function nr(e, t, n, r, a, i, u) {
2822
2822
  var d = f.value;
2823
2823
  if (!(a && d in a))
2824
2824
  throw new Cc(d, u);
2825
- var m = a[d];
2825
+ var h = a[d];
2826
2826
  if ($l(f)) {
2827
- (!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), o.push({
2828
- type: typeof m == "string" ? je.literal : je.object,
2829
- value: m
2827
+ (!h || typeof h == "string" || typeof h == "number") && (h = typeof h == "string" || typeof h == "number" ? String(h) : ""), o.push({
2828
+ type: typeof h == "string" ? je.literal : je.object,
2829
+ value: h
2830
2830
  });
2831
2831
  continue;
2832
2832
  }
2833
2833
  if (fs(f)) {
2834
- var h = typeof f.style == "string" ? r.date[f.style] : Ea(f.style) ? f.style.parsedOptions : void 0;
2834
+ var m = typeof f.style == "string" ? r.date[f.style] : Ea(f.style) ? f.style.parsedOptions : void 0;
2835
2835
  o.push({
2836
2836
  type: je.literal,
2837
- value: n.getDateTimeFormat(t, h).format(m)
2837
+ value: n.getDateTimeFormat(t, m).format(h)
2838
2838
  });
2839
2839
  continue;
2840
2840
  }
2841
2841
  if (ds(f)) {
2842
- var h = typeof f.style == "string" ? r.time[f.style] : Ea(f.style) ? f.style.parsedOptions : r.time.medium;
2842
+ var m = typeof f.style == "string" ? r.time[f.style] : Ea(f.style) ? f.style.parsedOptions : r.time.medium;
2843
2843
  o.push({
2844
2844
  type: je.literal,
2845
- value: n.getDateTimeFormat(t, h).format(m)
2845
+ value: n.getDateTimeFormat(t, m).format(h)
2846
2846
  });
2847
2847
  continue;
2848
2848
  }
2849
2849
  if (cs(f)) {
2850
- var h = typeof f.style == "string" ? r.number[f.style] : Es(f.style) ? f.style.parsedOptions : void 0;
2851
- h && h.scale && (m = m * (h.scale || 1)), o.push({
2850
+ var m = typeof f.style == "string" ? r.number[f.style] : Es(f.style) ? f.style.parsedOptions : void 0;
2851
+ m && m.scale && (h = h * (m.scale || 1)), o.push({
2852
2852
  type: je.literal,
2853
- value: n.getNumberFormat(t, h).format(m)
2853
+ value: n.getNumberFormat(t, m).format(h)
2854
2854
  });
2855
2855
  continue;
2856
2856
  }
@@ -2869,25 +2869,25 @@ function nr(e, t, n, r, a, i, u) {
2869
2869
  }));
2870
2870
  }
2871
2871
  if (hs(f)) {
2872
- var N = f.options[m] || f.options.other;
2872
+ var N = f.options[h] || f.options.other;
2873
2873
  if (!N)
2874
- throw new vi(f.value, m, Object.keys(f.options), u);
2874
+ throw new vi(f.value, h, Object.keys(f.options), u);
2875
2875
  o.push.apply(o, nr(N.value, t, n, r, a));
2876
2876
  continue;
2877
2877
  }
2878
2878
  if (ms(f)) {
2879
- var N = f.options["=".concat(m)];
2879
+ var N = f.options["=".concat(h)];
2880
2880
  if (!N) {
2881
2881
  if (!Intl.PluralRules)
2882
2882
  throw new Lt(`Intl.PluralRules is not available in this environment.
2883
2883
  Try polyfilling it using "@formatjs/intl-pluralrules"
2884
2884
  `, bt.MISSING_INTL_API, u);
2885
- var D = n.getPluralRules(t, { type: f.pluralType }).select(m - (f.offset || 0));
2885
+ var D = n.getPluralRules(t, { type: f.pluralType }).select(h - (f.offset || 0));
2886
2886
  N = f.options[D] || f.options.other;
2887
2887
  }
2888
2888
  if (!N)
2889
- throw new vi(f.value, m, Object.keys(f.options), u);
2890
- o.push.apply(o, nr(N.value, t, n, r, a, m - (f.offset || 0)));
2889
+ throw new vi(f.value, h, Object.keys(f.options), u);
2890
+ o.push.apply(o, nr(N.value, t, n, r, a, h - (f.offset || 0)));
2891
2891
  continue;
2892
2892
  }
2893
2893
  }
@@ -2962,8 +2962,8 @@ var Ns = (
2962
2962
  var c = i.formatToParts(l);
2963
2963
  if (c.length === 1)
2964
2964
  return c[0].value;
2965
- var f = c.reduce(function(d, m) {
2966
- return !d.length || m.type !== je.literal || typeof d[d.length - 1] != "string" ? d.push(m.value) : d[d.length - 1] += m.value, d;
2965
+ var f = c.reduce(function(d, h) {
2966
+ return !d.length || h.type !== je.literal || typeof d[d.length - 1] != "string" ? d.push(h.value) : d[d.length - 1] += h.value, d;
2967
2967
  }, []);
2968
2968
  return f.length <= 1 ? f[0] || "" : f;
2969
2969
  }, this.formatToParts = function(l) {
@@ -3275,7 +3275,7 @@ function ki(e, t) {
3275
3275
  return j(j(j({}, n), e), { date: Di(Wn(n.date, t), Wn(e.date || {}, t)), time: Di(Wn(n.time, t), Wn(e.time || {}, t)) });
3276
3276
  }
3277
3277
  var ya = function(e, t, n, r, a) {
3278
- var i = e.locale, u = e.formats, o = e.messages, l = e.defaultLocale, c = e.defaultFormats, f = e.fallbackOnEmptyString, d = e.onError, m = e.timeZone, h = e.defaultRichTextElements;
3278
+ var i = e.locale, u = e.formats, o = e.messages, l = e.defaultLocale, c = e.defaultFormats, f = e.fallbackOnEmptyString, d = e.onError, h = e.timeZone, m = e.defaultRichTextElements;
3279
3279
  n === void 0 && (n = { id: "" });
3280
3280
  var y = n.id, A = n.defaultMessage;
3281
3281
  ls(!!y, "[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");
@@ -3287,9 +3287,9 @@ var ya = function(e, t, n, r, a) {
3287
3287
  );
3288
3288
  if (Array.isArray(S) && S.length === 1 && S[0].type === Oe.literal)
3289
3289
  return S[0].value;
3290
- if (!r && S && typeof S == "string" && !h)
3290
+ if (!r && S && typeof S == "string" && !m)
3291
3291
  return S.replace(/'\{(.*?)\}'/gi, "{$1}");
3292
- if (r = j(j({}, h), r || {}), u = ki(u, m), c = ki(c, m), !S) {
3292
+ if (r = j(j({}, m), r || {}), u = ki(u, h), c = ki(c, h), !S) {
3293
3293
  if (f === !1 && S === "")
3294
3294
  return S;
3295
3295
  if ((!A || i && i.toLowerCase() !== l.toLowerCase()) && d(new vc(n, i)), A)
@@ -3370,8 +3370,8 @@ function Bc(e, t) {
3370
3370
  var a = n[0], i = n[1], u = n[2], o = u === void 0 ? {} : u, l = e.timeZone, c = e.locale, f = e.onError, d = Gt(o, Rs, l ? { timeZone: l } : {});
3371
3371
  try {
3372
3372
  return t(c, d).formatRange(a, i);
3373
- } catch (m) {
3374
- f(new ut("Error formatting date time range.", e.locale, m));
3373
+ } catch (h) {
3374
+ f(new ut("Error formatting date time range.", e.locale, h));
3375
3375
  }
3376
3376
  return String(a);
3377
3377
  }
@@ -3441,8 +3441,8 @@ Try polyfilling it using "@formatjs/intl-listformat"
3441
3441
  try {
3442
3442
  var l = {}, c = n.map(function(f, d) {
3443
3443
  if (typeof f == "object") {
3444
- var m = Gc(d);
3445
- return l[m] = f, m;
3444
+ var h = Gc(d);
3445
+ return l[h] = f, h;
3446
3446
  }
3447
3447
  return String(f);
3448
3448
  });
@@ -4028,43 +4028,43 @@ const Af = ({
4028
4028
  contentType: "application/json"
4029
4029
  });
4030
4030
  fetch(`${c}/company/settings/${t}/${e}`, f).then(async (d) => {
4031
- const m = await d.json();
4032
- a(m), o([
4031
+ const h = await d.json();
4032
+ a(h), o([
4033
4033
  {
4034
4034
  userType: "assistant",
4035
- content: m.agent.text.initialText
4035
+ content: h.agent.text.initialText
4036
4036
  }
4037
4037
  ]), n?.();
4038
4038
  }).catch((d) => console.log("error in fetch", d));
4039
4039
  }, [t, e]), { contextCompanySettings: i, contextInitialChatbotStartingText: l };
4040
4040
  };
4041
- function _f(e, t = {}, n) {
4042
- const { id: r, nonce: a, target: i, disableConstructable: u } = t, o = i ?? document.head, l = we(null), c = we(null);
4041
+ function _f(e, t = {}, n, r) {
4042
+ const { id: a, nonce: i, target: u, disableConstructable: o } = t, l = u ?? document.head, c = we(null), f = we(null);
4043
4043
  Pe(() => {
4044
4044
  if (!e) {
4045
- n?.(), console.log("No custom css found.");
4045
+ n && (console.log("No custom css found."), r?.());
4046
4046
  return;
4047
4047
  }
4048
- if (!u && "adoptedStyleSheets" in o && typeof CSSStyleSheet < "u" && "replaceSync" in CSSStyleSheet.prototype)
4049
- return l.current || (l.current = new CSSStyleSheet(), o.adoptedStyleSheets = [
4050
- ...o.adoptedStyleSheets,
4051
- l.current
4052
- ]), l.current.replaceSync(e), console.log("Loading custom css via stylesheet."), n?.(), () => {
4053
- const d = o.adoptedStyleSheets || [], m = d.indexOf(l.current);
4048
+ if (!o && "adoptedStyleSheets" in l && typeof CSSStyleSheet < "u" && "replaceSync" in CSSStyleSheet.prototype)
4049
+ return c.current || (c.current = new CSSStyleSheet(), l.adoptedStyleSheets = [
4050
+ ...l.adoptedStyleSheets,
4051
+ c.current
4052
+ ]), c.current.replaceSync(e), console.log("Loading custom css via stylesheet."), r?.(), () => {
4053
+ const h = l.adoptedStyleSheets || [], m = h.indexOf(c.current);
4054
4054
  if (m >= 0) {
4055
- const h = d.slice();
4056
- h.splice(m, 1), o.adoptedStyleSheets = h;
4055
+ const y = h.slice();
4056
+ y.splice(m, 1), l.adoptedStyleSheets = y;
4057
4057
  }
4058
- l.current = null;
4058
+ c.current = null;
4059
4059
  };
4060
- if (!c.current) {
4061
- const d = document.createElement("style");
4062
- d.type = "text/css", r && (d.id = r), a && (d.nonce = a), (o instanceof Document && o.head || o).appendChild(d), c.current = d;
4060
+ if (!f.current) {
4061
+ const h = document.createElement("style");
4062
+ h.type = "text/css", a && (h.id = a), i && (h.nonce = i), (l instanceof Document && l.head || l).appendChild(h), f.current = h;
4063
4063
  }
4064
- return c.current.textContent = e, console.log("Loading custom css via style tag."), n?.(), () => {
4065
- c.current?.parentNode?.removeChild(c.current), c.current = null;
4064
+ return f.current.textContent = e, console.log("Loading custom css via style tag."), r?.(), () => {
4065
+ f.current?.parentNode?.removeChild(f.current), f.current = null;
4066
4066
  };
4067
- }, [e, r, a, i, u]);
4067
+ }, [e, a, i, u, o]);
4068
4068
  }
4069
4069
  const un = globalThis;
4070
4070
  un.__WIDGET_ASSET_CACHE__ || (un.__WIDGET_ASSET_CACHE__ = {
@@ -4076,16 +4076,23 @@ un.__WIDGET_ASSET_CACHE__ || (un.__WIDGET_ASSET_CACHE__ = {
4076
4076
  un.__WIDGET_PRELOAD_KEYS__ || (un.__WIDGET_PRELOAD_KEYS__ = /* @__PURE__ */ new Set());
4077
4077
  const Yr = un.__WIDGET_PRELOAD_KEYS__, Ot = un.__WIDGET_ASSET_CACHE__, yf = "widget-assets-v1";
4078
4078
  async function Cr(e, t) {
4079
- const n = await caches.open(yf), r = await n.match(e, { ignoreSearch: !1 });
4080
- if (r) return r.clone();
4081
- const a = await fetch(e, {
4082
- cache: "force-cache",
4083
- mode: "cors",
4084
- keepalive: !0,
4085
- ...t
4086
- });
4087
- if (!a.ok) throw new Error(`HTTP ${a.status} for ${e}`);
4088
- return n.put(e, a.clone()), a;
4079
+ try {
4080
+ const n = await caches.open(yf), r = await n.match(e, { ignoreSearch: !1 });
4081
+ if (r) return r.clone();
4082
+ const a = await fetch(e, {
4083
+ cache: "force-cache",
4084
+ mode: "cors",
4085
+ keepalive: !0,
4086
+ ...t
4087
+ });
4088
+ if (!a.ok) throw new Error(`HTTP ${a.status} for ${e}`);
4089
+ return n.put(e, a.clone()), a;
4090
+ } catch (n) {
4091
+ return console.log("error while fetching", n), new Response(null, {
4092
+ status: 520,
4093
+ statusText: "Error in client - Fetch failed"
4094
+ });
4095
+ }
4089
4096
  }
4090
4097
  async function $s(e) {
4091
4098
  const t = Ot.svg.get(e);
@@ -4145,13 +4152,13 @@ function zs(e) {
4145
4152
  i = null;
4146
4153
  }
4147
4154
  const { imgEl: u, width: o, height: l } = await new Promise((c, f) => {
4148
- const d = URL.createObjectURL(a), m = new Image();
4149
- m.crossOrigin = "anonymous", m.onload = () => {
4150
- const h = m.naturalWidth, y = m.naturalHeight;
4151
- c({ imgEl: m, width: h, height: y });
4152
- }, m.onerror = () => {
4155
+ const d = URL.createObjectURL(a), h = new Image();
4156
+ h.crossOrigin = "anonymous", h.onload = () => {
4157
+ const m = h.naturalWidth, y = h.naturalHeight;
4158
+ c({ imgEl: h, width: m, height: y });
4159
+ }, h.onerror = () => {
4153
4160
  URL.revokeObjectURL(d), f(new Error("Spritesheet image decode failed"));
4154
- }, m.src = d, m.decode?.().catch(() => {
4161
+ }, h.src = d, h.decode?.().catch(() => {
4155
4162
  });
4156
4163
  });
4157
4164
  return { imgEl: u, bitmap: i, width: o, height: l };
@@ -4297,6 +4304,7 @@ const Pf = ({
4297
4304
  return Nf(c.companySettings), _f(
4298
4305
  c.companySettings?.agent?.display?.CSSRules,
4299
4306
  { id: `${n}` },
4307
+ l.appInternalContext.hasFetchedSettings,
4300
4308
  l.setHasDisplayedCss
4301
4309
  ), /* @__PURE__ */ B(rn, { children: /* @__PURE__ */ B(
4302
4310
  of,
@@ -4341,18 +4349,18 @@ function Ff({
4341
4349
  }) {
4342
4350
  const [c, f] = ke.useState({ kind: "loading" });
4343
4351
  return Pe(() => {
4344
- let d = null, m = !1;
4345
- return f({ kind: "loading" }), Gs(e).then(async (h) => {
4346
- if (!m)
4347
- if (h.kind === "zip") {
4348
- const y = Bf(h) ? h.blob : await (await fetch(h.blobUrl)).blob();
4352
+ let d = null, h = !1;
4353
+ return f({ kind: "loading" }), Gs(e).then(async (m) => {
4354
+ if (!h)
4355
+ if (m.kind === "zip") {
4356
+ const y = Bf(m) ? m.blob : await (await fetch(m.blobUrl)).blob();
4349
4357
  d = URL.createObjectURL(y), f({ kind: "lottieZip", blobUrl: d }), o?.(d);
4350
4358
  } else
4351
- f({ kind: "json", data: h.data }), o?.(h.data);
4359
+ f({ kind: "json", data: m.data }), o?.(m.data);
4352
4360
  }).catch(
4353
- (h) => !m && (f({ kind: "error", err: h }), l?.(h))
4361
+ (m) => !h && (f({ kind: "error", err: m }), l?.(m))
4354
4362
  ), () => {
4355
- m = !0, d && URL.revokeObjectURL(d);
4363
+ h = !0, d && URL.revokeObjectURL(d);
4356
4364
  };
4357
4365
  }, [e]), c.kind === "loading" ? /* @__PURE__ */ B(
4358
4366
  "div",
@@ -4411,14 +4419,14 @@ async function Hf(e, t = {}) {
4411
4419
  d[M + w] = 0.299 * l[G] + 0.587 * l[G + 1] + 0.114 * l[G + 2] | 0;
4412
4420
  }
4413
4421
  }
4414
- const m = new Float32Array(c), h = new Float32Array(f);
4422
+ const h = new Float32Array(c), m = new Float32Array(f);
4415
4423
  for (let Y = 1; Y < c - 1; Y++) {
4416
4424
  let M = 0;
4417
4425
  for (let w = 0; w < f; w++) {
4418
4426
  const G = w * c + Y, $ = d[G + 1] - d[G - 1];
4419
4427
  M += Math.abs($);
4420
4428
  }
4421
- m[Y] = M;
4429
+ h[Y] = M;
4422
4430
  }
4423
4431
  for (let Y = 1; Y < f - 1; Y++) {
4424
4432
  let M = 0;
@@ -4426,28 +4434,28 @@ async function Hf(e, t = {}) {
4426
4434
  const G = Y * c + w, $ = d[G + c] - d[G - c];
4427
4435
  M += Math.abs($);
4428
4436
  }
4429
- h[Y] = M;
4437
+ m[Y] = M;
4430
4438
  }
4431
4439
  const y = Hi(
4432
- m,
4440
+ h,
4433
4441
  n,
4434
4442
  Math.min(r, c / 2)
4435
4443
  ), A = Hi(
4436
- h,
4444
+ m,
4437
4445
  n,
4438
4446
  Math.min(r, f / 2)
4439
4447
  );
4440
4448
  if (!y || !A)
4441
4449
  return i && console.warn("detectGrid: could not find periods"), null;
4442
4450
  const L = Math.max(1, Math.round(c / y)), S = Math.max(1, Math.round(f / A)), R = Ui(
4443
- m,
4451
+ h,
4444
4452
  y,
4445
4453
  L,
4446
4454
  a
4447
- ), N = Ui(h, A, S, a), D = Math.max(1, y - R), x = Math.max(1, A - N);
4455
+ ), N = Ui(m, A, S, a), D = Math.max(1, y - R), x = Math.max(1, A - N);
4448
4456
  if (D * L > c + 2 || x * S > f + 2)
4449
4457
  return i && console.warn("detectGrid: sanity check failed"), null;
4450
- const I = xa(m, 60), q = xa(h, 60), ue = Math.max(0, $i(m, I)), te = Math.max(0, $i(h, q));
4458
+ const I = xa(h, 60), q = xa(m, 60), ue = Math.max(0, $i(h, I)), te = Math.max(0, $i(m, q));
4451
4459
  return i && console.log({
4452
4460
  periodX: y,
4453
4461
  periodY: A,
@@ -4473,23 +4481,23 @@ async function Hf(e, t = {}) {
4473
4481
  function Hi(e, t, n) {
4474
4482
  const r = Vs(e);
4475
4483
  let a = 0;
4476
- for (let h = 0; h < e.length; h++) {
4477
- const y = e[h] - r;
4484
+ for (let m = 0; m < e.length; m++) {
4485
+ const y = e[m] - r;
4478
4486
  a += y * y;
4479
4487
  }
4480
4488
  if (a === 0) return null;
4481
4489
  const i = new Float32Array(n + 1);
4482
4490
  let u = 0, o = -1 / 0;
4483
- for (let h = t; h <= n; h++) {
4491
+ for (let m = t; m <= n; m++) {
4484
4492
  let y = 0;
4485
- for (let L = 0; L + h < e.length; L++)
4486
- y += (e[L] - r) * (e[L + h] - r);
4493
+ for (let L = 0; L + m < e.length; L++)
4494
+ y += (e[L] - r) * (e[L + m] - r);
4487
4495
  const A = y / a;
4488
- i[h] = A, A > o && (o = A, u = h);
4496
+ i[m] = A, A > o && (o = A, u = m);
4489
4497
  }
4490
4498
  if (u <= t || u >= n) return u || null;
4491
- const l = i[u - 1], c = i[u], f = i[u + 1], d = l - 2 * c + f, m = d === 0 ? 0 : 0.5 * (l - f) / d;
4492
- return u + m;
4499
+ const l = i[u - 1], c = i[u], f = i[u + 1], d = l - 2 * c + f, h = d === 0 ? 0 : 0.5 * (l - f) / d;
4500
+ return u + h;
4493
4501
  }
4494
4502
  function Ui(e, t, n, r) {
4495
4503
  const a = [];
@@ -4497,10 +4505,10 @@ function Ui(e, t, n, r) {
4497
4505
  const l = o * t;
4498
4506
  let c = 1 / 0, f = l;
4499
4507
  for (let d = -r; d <= r; d++) {
4500
- const m = l + d;
4501
- if (m <= 0 || m >= e.length) continue;
4502
- const h = e[m];
4503
- h < c && (c = h, f = m);
4508
+ const h = l + d;
4509
+ if (h <= 0 || h >= e.length) continue;
4510
+ const m = e[h];
4511
+ m < c && (c = m, f = h);
4504
4512
  }
4505
4513
  a.push(f);
4506
4514
  }
@@ -4553,8 +4561,8 @@ const $f = os(function({
4553
4561
  atlasFrames: c,
4554
4562
  fps: f = 12,
4555
4563
  autoplay: d = !0,
4556
- loop: m = !0,
4557
- startFrame: h = 0,
4564
+ loop: h = !0,
4565
+ startFrame: m = 0,
4558
4566
  direction: y = "forward",
4559
4567
  scale: A = 1,
4560
4568
  backgroundColor: L,
@@ -4565,7 +4573,7 @@ const $f = os(function({
4565
4573
  onEnd: x,
4566
4574
  onFrame: I
4567
4575
  }, q) {
4568
- const ue = we(null), te = we(null), [Y, M] = ge(null), [w, G] = ge(null), [$, W] = ge(null), [se, me] = ge(!1), [ve, Le] = ge(!!d), [p, F] = ge(h), X = we(1), [T, V] = ge(null), K = Math.max(
4576
+ const ue = we(null), te = we(null), [Y, M] = ge(null), [w, G] = ge(null), [$, W] = ge(null), [se, me] = ge(!1), [ve, Le] = ge(!!d), [p, F] = ge(m), X = we(1), [T, V] = ge(null), K = Math.max(
4569
4577
  1,
4570
4578
  Math.floor(typeof window < "u" && window.devicePixelRatio || 1)
4571
4579
  );
@@ -4703,13 +4711,13 @@ const $f = os(function({
4703
4711
  le = Ee - Ne % Ie, F((Ye) => {
4704
4712
  const He = Ce.length - 1;
4705
4713
  let Ke = Ye;
4706
- return y === "forward" ? Ke = Ye + 1 : y === "backward" ? Ke = Ye - 1 : ((Ye >= He && X.current === 1 || Ye <= 0 && X.current === -1) && (X.current *= -1), Ke = Ye + X.current), (Ke > He || Ke < 0) && (m ? Ke = y === "backward" ? He : 0 : (Ke = Math.max(0, Math.min(Ke, He)), Le(!1), x?.())), Ke;
4714
+ return y === "forward" ? Ke = Ye + 1 : y === "backward" ? Ke = Ye - 1 : ((Ye >= He && X.current === 1 || Ye <= 0 && X.current === -1) && (X.current *= -1), Ke = Ye + X.current), (Ke > He || Ke < 0) && (h ? Ke = y === "backward" ? He : 0 : (Ke = Math.max(0, Math.min(Ke, He)), Le(!1), x?.())), Ke;
4707
4715
  });
4708
4716
  };
4709
4717
  return te.current = requestAnimationFrame(pe), () => {
4710
4718
  te.current && cancelAnimationFrame(te.current);
4711
4719
  };
4712
- }, [se, f, ve, m, y, Ce.length, p]), Pe(() => {
4720
+ }, [se, f, ve, h, y, Ce.length, p]), Pe(() => {
4713
4721
  xe(p), I?.(p);
4714
4722
  }, [p, se, A, K]), Pe(() => {
4715
4723
  if (!N) return;
@@ -6000,7 +6008,7 @@ function a0() {
6000
6008
  if (Wi) return zr;
6001
6009
  Wi = 1;
6002
6010
  var e = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, t = /\n/g, n = /^\s*/, r = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, a = /^:\s*/, i = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, u = /^[;\s]*/, o = /^\s+|\s+$/g, l = `
6003
- `, c = "/", f = "*", d = "", m = "comment", h = "declaration";
6011
+ `, c = "/", f = "*", d = "", h = "comment", m = "declaration";
6004
6012
  zr = function(A, L) {
6005
6013
  if (typeof A != "string")
6006
6014
  throw new TypeError("First argument must be a string");
@@ -6054,7 +6062,7 @@ function a0() {
6054
6062
  return I("End of comment missing");
6055
6063
  var W = A.slice(2, $ - 2);
6056
6064
  return R += 2, N(W), A = A.slice($), R += 2, G({
6057
- type: m,
6065
+ type: h,
6058
6066
  comment: W
6059
6067
  });
6060
6068
  }
@@ -6064,7 +6072,7 @@ function a0() {
6064
6072
  if ($) {
6065
6073
  if (Y(), !q(a)) return I("property missing ':'");
6066
6074
  var W = q(i), se = G({
6067
- type: h,
6075
+ type: m,
6068
6076
  property: y($[0].replace(e, d)),
6069
6077
  value: W ? y(W[0].replace(e, d)) : d
6070
6078
  });
@@ -6775,7 +6783,7 @@ function j0(e) {
6775
6783
  function c(N) {
6776
6784
  if (r === n.length) {
6777
6785
  if (!a)
6778
- return m(N);
6786
+ return h(N);
6779
6787
  if (a.currentConstruct && a.currentConstruct.concrete)
6780
6788
  return y(N);
6781
6789
  t.interrupt = !!(a.currentConstruct && !a._gfmTableDynamicInterruptHack);
@@ -6787,20 +6795,20 @@ function j0(e) {
6787
6795
  )(N);
6788
6796
  }
6789
6797
  function f(N) {
6790
- return a && R(), S(r), m(N);
6798
+ return a && R(), S(r), h(N);
6791
6799
  }
6792
6800
  function d(N) {
6793
6801
  return t.parser.lazy[t.now().line] = r !== n.length, u = t.now().offset, y(N);
6794
6802
  }
6795
- function m(N) {
6803
+ function h(N) {
6796
6804
  return t.containerState = {}, e.attempt(
6797
6805
  nu,
6798
- h,
6806
+ m,
6799
6807
  y
6800
6808
  )(N);
6801
6809
  }
6802
- function h(N) {
6803
- return r++, n.push([t.currentConstruct, t.containerState]), m(N);
6810
+ function m(N) {
6811
+ return r++, n.push([t.currentConstruct, t.containerState]), h(N);
6804
6812
  }
6805
6813
  function y(N) {
6806
6814
  if (N === null) {
@@ -6902,15 +6910,15 @@ function q0(e, t) {
6902
6910
  if ((e[r][1]._close || e[n][1]._open) && (e[n][1].end.offset - e[n][1].start.offset) % 3 && !((e[r][1].end.offset - e[r][1].start.offset + e[n][1].end.offset - e[n][1].start.offset) % 3))
6903
6911
  continue;
6904
6912
  l = e[r][1].end.offset - e[r][1].start.offset > 1 && e[n][1].end.offset - e[n][1].start.offset > 1 ? 2 : 1;
6905
- const d = Object.assign({}, e[r][1].end), m = Object.assign({}, e[n][1].start);
6906
- au(d, -l), au(m, l), u = {
6913
+ const d = Object.assign({}, e[r][1].end), h = Object.assign({}, e[n][1].start);
6914
+ au(d, -l), au(h, l), u = {
6907
6915
  type: l > 1 ? "strongSequence" : "emphasisSequence",
6908
6916
  start: d,
6909
6917
  end: Object.assign({}, e[r][1].end)
6910
6918
  }, o = {
6911
6919
  type: l > 1 ? "strongSequence" : "emphasisSequence",
6912
6920
  start: Object.assign({}, e[n][1].start),
6913
- end: m
6921
+ end: h
6914
6922
  }, i = {
6915
6923
  type: l > 1 ? "strongText" : "emphasisText",
6916
6924
  start: Object.assign({}, e[r][1].end),
@@ -6960,8 +6968,8 @@ function W0(e, t) {
6960
6968
  function o(l) {
6961
6969
  if (l === i)
6962
6970
  return e.consume(l), o;
6963
- const c = e.exit("attentionSequence"), f = ru(l), d = !f || f === 2 && a || n.includes(l), m = !a || a === 2 && f || n.includes(r);
6964
- return c._open = !!(i === 42 ? d : d && (a || !m)), c._close = !!(i === 42 ? m : m && (f || !d)), t(l);
6971
+ const c = e.exit("attentionSequence"), f = ru(l), d = !f || f === 2 && a || n.includes(l), h = !a || a === 2 && f || n.includes(r);
6972
+ return c._open = !!(i === 42 ? d : d && (a || !h)), c._close = !!(i === 42 ? h : h && (f || !d)), t(l);
6965
6973
  }
6966
6974
  }
6967
6975
  function au(e, t) {
@@ -6974,36 +6982,36 @@ const X0 = {
6974
6982
  function Q0(e, t, n) {
6975
6983
  let r = 0;
6976
6984
  return a;
6977
- function a(h) {
6978
- return e.enter("autolink"), e.enter("autolinkMarker"), e.consume(h), e.exit("autolinkMarker"), e.enter("autolinkProtocol"), i;
6985
+ function a(m) {
6986
+ return e.enter("autolink"), e.enter("autolinkMarker"), e.consume(m), e.exit("autolinkMarker"), e.enter("autolinkProtocol"), i;
6979
6987
  }
6980
- function i(h) {
6981
- return Et(h) ? (e.consume(h), u) : c(h);
6988
+ function i(m) {
6989
+ return Et(m) ? (e.consume(m), u) : c(m);
6982
6990
  }
6983
- function u(h) {
6984
- return h === 43 || h === 45 || h === 46 || et(h) ? (r = 1, o(h)) : c(h);
6991
+ function u(m) {
6992
+ return m === 43 || m === 45 || m === 46 || et(m) ? (r = 1, o(m)) : c(m);
6985
6993
  }
6986
- function o(h) {
6987
- return h === 58 ? (e.consume(h), r = 0, l) : (h === 43 || h === 45 || h === 46 || et(h)) && r++ < 32 ? (e.consume(h), o) : (r = 0, c(h));
6994
+ function o(m) {
6995
+ return m === 58 ? (e.consume(m), r = 0, l) : (m === 43 || m === 45 || m === 46 || et(m)) && r++ < 32 ? (e.consume(m), o) : (r = 0, c(m));
6988
6996
  }
6989
- function l(h) {
6990
- return h === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(h), e.exit("autolinkMarker"), e.exit("autolink"), t) : h === null || h === 32 || h === 60 || Oa(h) ? n(h) : (e.consume(h), l);
6997
+ function l(m) {
6998
+ return m === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(m), e.exit("autolinkMarker"), e.exit("autolink"), t) : m === null || m === 32 || m === 60 || Oa(m) ? n(m) : (e.consume(m), l);
6991
6999
  }
6992
- function c(h) {
6993
- return h === 64 ? (e.consume(h), f) : B0(h) ? (e.consume(h), c) : n(h);
7000
+ function c(m) {
7001
+ return m === 64 ? (e.consume(m), f) : B0(m) ? (e.consume(m), c) : n(m);
6994
7002
  }
6995
- function f(h) {
6996
- return et(h) ? d(h) : n(h);
7003
+ function f(m) {
7004
+ return et(m) ? d(m) : n(m);
6997
7005
  }
6998
- function d(h) {
6999
- return h === 46 ? (e.consume(h), r = 0, f) : h === 62 ? (e.exit("autolinkProtocol").type = "autolinkEmail", e.enter("autolinkMarker"), e.consume(h), e.exit("autolinkMarker"), e.exit("autolink"), t) : m(h);
7006
+ function d(m) {
7007
+ return m === 46 ? (e.consume(m), r = 0, f) : m === 62 ? (e.exit("autolinkProtocol").type = "autolinkEmail", e.enter("autolinkMarker"), e.consume(m), e.exit("autolinkMarker"), e.exit("autolink"), t) : h(m);
7000
7008
  }
7001
- function m(h) {
7002
- if ((h === 45 || et(h)) && r++ < 63) {
7003
- const y = h === 45 ? m : d;
7004
- return e.consume(h), y;
7009
+ function h(m) {
7010
+ if ((m === 45 || et(m)) && r++ < 63) {
7011
+ const y = m === 45 ? h : d;
7012
+ return e.consume(m), y;
7005
7013
  }
7006
- return n(h);
7014
+ return n(m);
7007
7015
  }
7008
7016
  }
7009
7017
  const Nr = {
@@ -7093,8 +7101,8 @@ function nd(e, t, n) {
7093
7101
  }
7094
7102
  function f(d) {
7095
7103
  if (d === 59 && a) {
7096
- const m = e.exit("characterReferenceValue");
7097
- return u === et && !ni(r.sliceSerialize(m)) ? n(d) : (e.enter("characterReferenceMarker"), e.consume(d), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
7104
+ const h = e.exit("characterReferenceValue");
7105
+ return u === et && !ni(r.sliceSerialize(h)) ? n(d) : (e.enter("characterReferenceMarker"), e.consume(d), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
7098
7106
  }
7099
7107
  return u(d) && a++ < i ? (e.consume(d), f) : n(d);
7100
7108
  }
@@ -7127,12 +7135,12 @@ function rd(e, t, n) {
7127
7135
  function d(I) {
7128
7136
  return I === null || J(I) ? (e.exit("codeFencedFence"), r.interrupt ? t(I) : e.check(iu, A, D)(I)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
7129
7137
  contentType: "string"
7130
- }), m(I));
7131
- }
7132
- function m(I) {
7133
- return I === null || J(I) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), d(I)) : he(I) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), Se(e, h, "whitespace")(I)) : I === 96 && I === o ? n(I) : (e.consume(I), m);
7138
+ }), h(I));
7134
7139
  }
7135
7140
  function h(I) {
7141
+ return I === null || J(I) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), d(I)) : he(I) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), Se(e, m, "whitespace")(I)) : I === 96 && I === o ? n(I) : (e.consume(I), h);
7142
+ }
7143
+ function m(I) {
7136
7144
  return I === null || J(I) ? d(I) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
7137
7145
  contentType: "string"
7138
7146
  }), y(I));
@@ -7300,22 +7308,22 @@ function dd(e, t) {
7300
7308
  const n = e[t][1], r = e[t][2];
7301
7309
  let a = t - 1;
7302
7310
  const i = [], u = n._tokenizer || r.parser[n.contentType](n.start), o = u.events, l = [], c = {};
7303
- let f, d, m = -1, h = n, y = 0, A = 0;
7311
+ let f, d, h = -1, m = n, y = 0, A = 0;
7304
7312
  const L = [A];
7305
- for (; h; ) {
7306
- for (; e[++a][1] !== h; )
7313
+ for (; m; ) {
7314
+ for (; e[++a][1] !== m; )
7307
7315
  ;
7308
- i.push(a), h._tokenizer || (f = r.sliceStream(h), h.next || f.push(null), d && u.defineSkip(h.start), h._isInFirstContentOfListItem && (u._gfmTasklistFirstContentOfListItem = !0), u.write(f), h._isInFirstContentOfListItem && (u._gfmTasklistFirstContentOfListItem = void 0)), d = h, h = h.next;
7316
+ i.push(a), m._tokenizer || (f = r.sliceStream(m), m.next || f.push(null), d && u.defineSkip(m.start), m._isInFirstContentOfListItem && (u._gfmTasklistFirstContentOfListItem = !0), u.write(f), m._isInFirstContentOfListItem && (u._gfmTasklistFirstContentOfListItem = void 0)), d = m, m = m.next;
7309
7317
  }
7310
- for (h = n; ++m < o.length; )
7318
+ for (m = n; ++h < o.length; )
7311
7319
  // Find a void token that includes a break.
7312
- o[m][0] === "exit" && o[m - 1][0] === "enter" && o[m][1].type === o[m - 1][1].type && o[m][1].start.line !== o[m][1].end.line && (A = m + 1, L.push(A), h._tokenizer = void 0, h.previous = void 0, h = h.next);
7313
- for (u.events = [], h ? (h._tokenizer = void 0, h.previous = void 0) : L.pop(), m = L.length; m--; ) {
7314
- const S = o.slice(L[m], L[m + 1]), R = i.pop();
7320
+ o[h][0] === "exit" && o[h - 1][0] === "enter" && o[h][1].type === o[h - 1][1].type && o[h][1].start.line !== o[h][1].end.line && (A = h + 1, L.push(A), m._tokenizer = void 0, m.previous = void 0, m = m.next);
7321
+ for (u.events = [], m ? (m._tokenizer = void 0, m.previous = void 0) : L.pop(), h = L.length; h--; ) {
7322
+ const S = o.slice(L[h], L[h + 1]), R = i.pop();
7315
7323
  l.unshift([R, R + S.length - 1]), Tt(e, R, 2, S);
7316
7324
  }
7317
- for (m = -1; ++m < l.length; )
7318
- c[y + l[m][0]] = y + l[m][1], y += l[m][1] - l[m][0] - 1;
7325
+ for (h = -1; ++h < l.length; )
7326
+ c[y + l[h][0]] = y + l[h][1], y += l[h][1] - l[h][0] - 1;
7319
7327
  return c;
7320
7328
  }
7321
7329
  const hd = {
@@ -7371,20 +7379,20 @@ function po(e, t, n, r, a, i, u, o, l) {
7371
7379
  let f = 0;
7372
7380
  return d;
7373
7381
  function d(S) {
7374
- return S === 60 ? (e.enter(r), e.enter(a), e.enter(i), e.consume(S), e.exit(i), m) : S === null || S === 32 || S === 41 || Oa(S) ? n(S) : (e.enter(r), e.enter(u), e.enter(o), e.enter("chunkString", {
7382
+ return S === 60 ? (e.enter(r), e.enter(a), e.enter(i), e.consume(S), e.exit(i), h) : S === null || S === 32 || S === 41 || Oa(S) ? n(S) : (e.enter(r), e.enter(u), e.enter(o), e.enter("chunkString", {
7375
7383
  contentType: "string"
7376
7384
  }), A(S));
7377
7385
  }
7378
- function m(S) {
7386
+ function h(S) {
7379
7387
  return S === 62 ? (e.enter(i), e.consume(S), e.exit(i), e.exit(a), e.exit(r), t) : (e.enter(o), e.enter("chunkString", {
7380
7388
  contentType: "string"
7381
- }), h(S));
7389
+ }), m(S));
7382
7390
  }
7383
- function h(S) {
7384
- return S === 62 ? (e.exit("chunkString"), e.exit(o), m(S)) : S === null || S === 60 || J(S) ? n(S) : (e.consume(S), S === 92 ? y : h);
7391
+ function m(S) {
7392
+ return S === 62 ? (e.exit("chunkString"), e.exit(o), h(S)) : S === null || S === 60 || J(S) ? n(S) : (e.consume(S), S === 92 ? y : m);
7385
7393
  }
7386
7394
  function y(S) {
7387
- return S === 60 || S === 62 || S === 92 ? (e.consume(S), h) : h(S);
7395
+ return S === 60 || S === 62 || S === 92 ? (e.consume(S), m) : m(S);
7388
7396
  }
7389
7397
  function A(S) {
7390
7398
  return !f && (S === null || S === 41 || Xe(S)) ? (e.exit("chunkString"), e.exit(o), e.exit(u), e.exit(r), t(S)) : f < c && S === 40 ? (e.consume(S), f++, A) : S === 41 ? (e.consume(S), f--, A) : S === null || S === 32 || S === 40 || Oa(S) ? n(S) : (e.consume(S), S === 92 ? L : A);
@@ -7397,45 +7405,45 @@ function Eo(e, t, n, r, a, i) {
7397
7405
  const u = this;
7398
7406
  let o = 0, l;
7399
7407
  return c;
7400
- function c(h) {
7401
- return e.enter(r), e.enter(a), e.consume(h), e.exit(a), e.enter(i), f;
7408
+ function c(m) {
7409
+ return e.enter(r), e.enter(a), e.consume(m), e.exit(a), e.enter(i), f;
7402
7410
  }
7403
- function f(h) {
7404
- return o > 999 || h === null || h === 91 || h === 93 && !l || // To do: remove in the future once we’ve switched from
7411
+ function f(m) {
7412
+ return o > 999 || m === null || m === 91 || m === 93 && !l || // To do: remove in the future once we’ve switched from
7405
7413
  // `micromark-extension-footnote` to `micromark-extension-gfm-footnote`,
7406
7414
  // which doesn’t need this.
7407
7415
  // Hidden footnotes hook.
7408
7416
  /* c8 ignore next 3 */
7409
- h === 94 && !o && "_hiddenFootnoteSupport" in u.parser.constructs ? n(h) : h === 93 ? (e.exit(i), e.enter(a), e.consume(h), e.exit(a), e.exit(r), t) : J(h) ? (e.enter("lineEnding"), e.consume(h), e.exit("lineEnding"), f) : (e.enter("chunkString", {
7417
+ m === 94 && !o && "_hiddenFootnoteSupport" in u.parser.constructs ? n(m) : m === 93 ? (e.exit(i), e.enter(a), e.consume(m), e.exit(a), e.exit(r), t) : J(m) ? (e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"), f) : (e.enter("chunkString", {
7410
7418
  contentType: "string"
7411
- }), d(h));
7419
+ }), d(m));
7412
7420
  }
7413
- function d(h) {
7414
- return h === null || h === 91 || h === 93 || J(h) || o++ > 999 ? (e.exit("chunkString"), f(h)) : (e.consume(h), l || (l = !he(h)), h === 92 ? m : d);
7421
+ function d(m) {
7422
+ return m === null || m === 91 || m === 93 || J(m) || o++ > 999 ? (e.exit("chunkString"), f(m)) : (e.consume(m), l || (l = !he(m)), m === 92 ? h : d);
7415
7423
  }
7416
- function m(h) {
7417
- return h === 91 || h === 92 || h === 93 ? (e.consume(h), o++, d) : d(h);
7424
+ function h(m) {
7425
+ return m === 91 || m === 92 || m === 93 ? (e.consume(m), o++, d) : d(m);
7418
7426
  }
7419
7427
  }
7420
7428
  function bo(e, t, n, r, a, i) {
7421
7429
  let u;
7422
7430
  return o;
7423
- function o(m) {
7424
- return m === 34 || m === 39 || m === 40 ? (e.enter(r), e.enter(a), e.consume(m), e.exit(a), u = m === 40 ? 41 : m, l) : n(m);
7431
+ function o(h) {
7432
+ return h === 34 || h === 39 || h === 40 ? (e.enter(r), e.enter(a), e.consume(h), e.exit(a), u = h === 40 ? 41 : h, l) : n(h);
7425
7433
  }
7426
- function l(m) {
7427
- return m === u ? (e.enter(a), e.consume(m), e.exit(a), e.exit(r), t) : (e.enter(i), c(m));
7434
+ function l(h) {
7435
+ return h === u ? (e.enter(a), e.consume(h), e.exit(a), e.exit(r), t) : (e.enter(i), c(h));
7428
7436
  }
7429
- function c(m) {
7430
- return m === u ? (e.exit(i), l(u)) : m === null ? n(m) : J(m) ? (e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"), Se(e, c, "linePrefix")) : (e.enter("chunkString", {
7437
+ function c(h) {
7438
+ return h === u ? (e.exit(i), l(u)) : h === null ? n(h) : J(h) ? (e.enter("lineEnding"), e.consume(h), e.exit("lineEnding"), Se(e, c, "linePrefix")) : (e.enter("chunkString", {
7431
7439
  contentType: "string"
7432
- }), f(m));
7440
+ }), f(h));
7433
7441
  }
7434
- function f(m) {
7435
- return m === u || m === null || J(m) ? (e.exit("chunkString"), c(m)) : (e.consume(m), m === 92 ? d : f);
7442
+ function f(h) {
7443
+ return h === u || h === null || J(h) ? (e.exit("chunkString"), c(h)) : (e.consume(h), h === 92 ? d : f);
7436
7444
  }
7437
- function d(m) {
7438
- return m === u || m === 92 ? (e.consume(m), f) : f(m);
7445
+ function d(h) {
7446
+ return h === u || h === 92 ? (e.consume(h), f) : f(h);
7439
7447
  }
7440
7448
  }
7441
7449
  function Nn(e, t) {
@@ -7460,10 +7468,10 @@ function Ad(e, t, n) {
7460
7468
  const r = this;
7461
7469
  let a;
7462
7470
  return i;
7463
- function i(h) {
7464
- return e.enter("definition"), u(h);
7471
+ function i(m) {
7472
+ return e.enter("definition"), u(m);
7465
7473
  }
7466
- function u(h) {
7474
+ function u(m) {
7467
7475
  return Eo.call(
7468
7476
  r,
7469
7477
  e,
@@ -7473,17 +7481,17 @@ function Ad(e, t, n) {
7473
7481
  "definitionLabel",
7474
7482
  "definitionLabelMarker",
7475
7483
  "definitionLabelString"
7476
- )(h);
7484
+ )(m);
7477
7485
  }
7478
- function o(h) {
7486
+ function o(m) {
7479
7487
  return a = nn(
7480
7488
  r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)
7481
- ), h === 58 ? (e.enter("definitionMarker"), e.consume(h), e.exit("definitionMarker"), l) : n(h);
7489
+ ), m === 58 ? (e.enter("definitionMarker"), e.consume(m), e.exit("definitionMarker"), l) : n(m);
7482
7490
  }
7483
- function l(h) {
7484
- return Xe(h) ? Nn(e, c)(h) : c(h);
7491
+ function l(m) {
7492
+ return Xe(m) ? Nn(e, c)(m) : c(m);
7485
7493
  }
7486
- function c(h) {
7494
+ function c(m) {
7487
7495
  return po(
7488
7496
  e,
7489
7497
  f,
@@ -7494,16 +7502,16 @@ function Ad(e, t, n) {
7494
7502
  "definitionDestinationLiteralMarker",
7495
7503
  "definitionDestinationRaw",
7496
7504
  "definitionDestinationString"
7497
- )(h);
7505
+ )(m);
7498
7506
  }
7499
- function f(h) {
7500
- return e.attempt(gd, d, d)(h);
7507
+ function f(m) {
7508
+ return e.attempt(gd, d, d)(m);
7501
7509
  }
7502
- function d(h) {
7503
- return he(h) ? Se(e, m, "whitespace")(h) : m(h);
7510
+ function d(m) {
7511
+ return he(m) ? Se(e, h, "whitespace")(m) : h(m);
7504
7512
  }
7505
- function m(h) {
7506
- return h === null || J(h) ? (e.exit("definition"), r.parser.defined.push(a), t(h)) : n(h);
7513
+ function h(m) {
7514
+ return m === null || J(m) ? (e.exit("definition"), r.parser.defined.push(a), t(m)) : n(m);
7507
7515
  }
7508
7516
  }
7509
7517
  function _d(e, t, n) {
@@ -7678,12 +7686,12 @@ function Pd(e, t, n) {
7678
7686
  return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(T), d;
7679
7687
  }
7680
7688
  function d(T) {
7681
- return T === 33 ? (e.consume(T), m) : T === 47 ? (e.consume(T), i = !0, A) : T === 63 ? (e.consume(T), a = 3, r.interrupt ? t : p) : Et(T) ? (e.consume(T), u = String.fromCharCode(T), L) : n(T);
7682
- }
7683
- function m(T) {
7684
- return T === 45 ? (e.consume(T), a = 2, h) : T === 91 ? (e.consume(T), a = 5, o = 0, y) : Et(T) ? (e.consume(T), a = 4, r.interrupt ? t : p) : n(T);
7689
+ return T === 33 ? (e.consume(T), h) : T === 47 ? (e.consume(T), i = !0, A) : T === 63 ? (e.consume(T), a = 3, r.interrupt ? t : p) : Et(T) ? (e.consume(T), u = String.fromCharCode(T), L) : n(T);
7685
7690
  }
7686
7691
  function h(T) {
7692
+ return T === 45 ? (e.consume(T), a = 2, m) : T === 91 ? (e.consume(T), a = 5, o = 0, y) : Et(T) ? (e.consume(T), a = 4, r.interrupt ? t : p) : n(T);
7693
+ }
7694
+ function m(T) {
7687
7695
  return T === 45 ? (e.consume(T), r.interrupt ? t : p) : n(T);
7688
7696
  }
7689
7697
  function y(T) {
@@ -7813,16 +7821,16 @@ function Md(e, t, n) {
7813
7821
  return p === 45 ? (e.consume(p), f) : p === 91 ? (e.consume(p), i = 0, y) : Et(p) ? (e.consume(p), R) : n(p);
7814
7822
  }
7815
7823
  function f(p) {
7816
- return p === 45 ? (e.consume(p), h) : n(p);
7824
+ return p === 45 ? (e.consume(p), m) : n(p);
7817
7825
  }
7818
7826
  function d(p) {
7819
- return p === null ? n(p) : p === 45 ? (e.consume(p), m) : J(p) ? (u = d, me(p)) : (e.consume(p), d);
7820
- }
7821
- function m(p) {
7822
- return p === 45 ? (e.consume(p), h) : d(p);
7827
+ return p === null ? n(p) : p === 45 ? (e.consume(p), h) : J(p) ? (u = d, me(p)) : (e.consume(p), d);
7823
7828
  }
7824
7829
  function h(p) {
7825
- return p === 62 ? se(p) : p === 45 ? m(p) : d(p);
7830
+ return p === 45 ? (e.consume(p), m) : d(p);
7831
+ }
7832
+ function m(p) {
7833
+ return p === 62 ? se(p) : p === 45 ? h(p) : d(p);
7826
7834
  }
7827
7835
  function y(p) {
7828
7836
  const F = "CDATA[";
@@ -7969,39 +7977,39 @@ function Yd(e, t, n) {
7969
7977
  break;
7970
7978
  }
7971
7979
  return o;
7972
- function o(m) {
7973
- return i ? i._inactive ? d(m) : (u = r.parser.defined.includes(
7980
+ function o(h) {
7981
+ return i ? i._inactive ? d(h) : (u = r.parser.defined.includes(
7974
7982
  nn(
7975
7983
  r.sliceSerialize({
7976
7984
  start: i.end,
7977
7985
  end: r.now()
7978
7986
  })
7979
7987
  )
7980
- ), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(m), e.exit("labelMarker"), e.exit("labelEnd"), l) : n(m);
7988
+ ), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(h), e.exit("labelMarker"), e.exit("labelEnd"), l) : n(h);
7981
7989
  }
7982
- function l(m) {
7983
- return m === 40 ? e.attempt(
7990
+ function l(h) {
7991
+ return h === 40 ? e.attempt(
7984
7992
  Bd,
7985
7993
  f,
7986
7994
  u ? f : d
7987
- )(m) : m === 91 ? e.attempt(
7995
+ )(h) : h === 91 ? e.attempt(
7988
7996
  Fd,
7989
7997
  f,
7990
7998
  u ? c : d
7991
- )(m) : u ? f(m) : d(m);
7999
+ )(h) : u ? f(h) : d(h);
7992
8000
  }
7993
- function c(m) {
8001
+ function c(h) {
7994
8002
  return e.attempt(
7995
8003
  Hd,
7996
8004
  f,
7997
8005
  d
7998
- )(m);
8006
+ )(h);
7999
8007
  }
8000
- function f(m) {
8001
- return t(m);
8008
+ function f(h) {
8009
+ return t(h);
8002
8010
  }
8003
- function d(m) {
8004
- return i._balanced = !0, n(m);
8011
+ function d(h) {
8012
+ return i._balanced = !0, n(h);
8005
8013
  }
8006
8014
  }
8007
8015
  function Gd(e, t, n) {
@@ -8163,41 +8171,41 @@ function eh(e, t, n) {
8163
8171
  const r = this, a = r.events[r.events.length - 1];
8164
8172
  let i = a && a[1].type === "linePrefix" ? a[2].sliceSerialize(a[1], !0).length : 0, u = 0;
8165
8173
  return o;
8166
- function o(h) {
8167
- const y = r.containerState.type || (h === 42 || h === 43 || h === 45 ? "listUnordered" : "listOrdered");
8168
- if (y === "listUnordered" ? !r.containerState.marker || h === r.containerState.marker : La(h)) {
8174
+ function o(m) {
8175
+ const y = r.containerState.type || (m === 42 || m === 43 || m === 45 ? "listUnordered" : "listOrdered");
8176
+ if (y === "listUnordered" ? !r.containerState.marker || m === r.containerState.marker : La(m)) {
8169
8177
  if (r.containerState.type || (r.containerState.type = y, e.enter(y, {
8170
8178
  _container: !0
8171
8179
  })), y === "listUnordered")
8172
- return e.enter("listItemPrefix"), h === 42 || h === 45 ? e.check(rr, n, c)(h) : c(h);
8173
- if (!r.interrupt || h === 49)
8174
- return e.enter("listItemPrefix"), e.enter("listItemValue"), l(h);
8180
+ return e.enter("listItemPrefix"), m === 42 || m === 45 ? e.check(rr, n, c)(m) : c(m);
8181
+ if (!r.interrupt || m === 49)
8182
+ return e.enter("listItemPrefix"), e.enter("listItemValue"), l(m);
8175
8183
  }
8176
- return n(h);
8184
+ return n(m);
8177
8185
  }
8178
- function l(h) {
8179
- return La(h) && ++u < 10 ? (e.consume(h), l) : (!r.interrupt || u < 2) && (r.containerState.marker ? h === r.containerState.marker : h === 41 || h === 46) ? (e.exit("listItemValue"), c(h)) : n(h);
8186
+ function l(m) {
8187
+ return La(m) && ++u < 10 ? (e.consume(m), l) : (!r.interrupt || u < 2) && (r.containerState.marker ? m === r.containerState.marker : m === 41 || m === 46) ? (e.exit("listItemValue"), c(m)) : n(m);
8180
8188
  }
8181
- function c(h) {
8182
- return e.enter("listItemMarker"), e.consume(h), e.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || h, e.check(
8189
+ function c(m) {
8190
+ return e.enter("listItemMarker"), e.consume(m), e.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || m, e.check(
8183
8191
  Nr,
8184
8192
  // Can’t be empty when interrupting.
8185
8193
  r.interrupt ? n : f,
8186
8194
  e.attempt(
8187
8195
  Zd,
8188
- m,
8196
+ h,
8189
8197
  d
8190
8198
  )
8191
8199
  );
8192
8200
  }
8193
- function f(h) {
8194
- return r.containerState.initialBlankLine = !0, i++, m(h);
8201
+ function f(m) {
8202
+ return r.containerState.initialBlankLine = !0, i++, h(m);
8195
8203
  }
8196
- function d(h) {
8197
- return he(h) ? (e.enter("listItemPrefixWhitespace"), e.consume(h), e.exit("listItemPrefixWhitespace"), m) : n(h);
8204
+ function d(m) {
8205
+ return he(m) ? (e.enter("listItemPrefixWhitespace"), e.consume(m), e.exit("listItemPrefixWhitespace"), h) : n(m);
8198
8206
  }
8199
- function m(h) {
8200
- return r.containerState.size = i + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, t(h);
8207
+ function h(m) {
8208
+ return r.containerState.size = i + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, t(m);
8201
8209
  }
8202
8210
  }
8203
8211
  function th(e, t, n) {
@@ -8367,11 +8375,11 @@ function To(e) {
8367
8375
  if (f === null)
8368
8376
  return !0;
8369
8377
  const d = a[f];
8370
- let m = -1;
8378
+ let h = -1;
8371
8379
  if (d)
8372
- for (; ++m < d.length; ) {
8373
- const h = d[m];
8374
- if (!h.previous || h.previous.call(r, r.previous))
8380
+ for (; ++h < d.length; ) {
8381
+ const m = d[h];
8382
+ if (!m.previous || m.previous.call(r, r.previous))
8375
8383
  return !0;
8376
8384
  }
8377
8385
  return !1;
@@ -8459,8 +8467,8 @@ function hh(e, t, n) {
8459
8467
  containerState: {},
8460
8468
  events: [],
8461
8469
  parser: e,
8462
- sliceStream: h,
8463
- sliceSerialize: m,
8470
+ sliceStream: m,
8471
+ sliceSerialize: h,
8464
8472
  now: y,
8465
8473
  defineSkip: A,
8466
8474
  write: d
@@ -8470,10 +8478,10 @@ function hh(e, t, n) {
8470
8478
  function d(M) {
8471
8479
  return u = nt(u, M), L(), u[u.length - 1] !== null ? [] : (ue(t, 0), c.events = ri(i, c.events, c), c.events);
8472
8480
  }
8473
- function m(M, w) {
8474
- return ph(h(M), w);
8481
+ function h(M, w) {
8482
+ return ph(m(M), w);
8475
8483
  }
8476
- function h(M) {
8484
+ function m(M) {
8477
8485
  return mh(u, M);
8478
8486
  }
8479
8487
  function y() {
@@ -8739,16 +8747,16 @@ function Oh() {
8739
8747
  return a;
8740
8748
  function a(i, u, o) {
8741
8749
  const l = [];
8742
- let c, f, d, m, h;
8750
+ let c, f, d, h, m;
8743
8751
  for (i = t + (typeof i == "string" ? i.toString() : new TextDecoder(u || void 0).decode(i)), d = 0, t = "", n && (i.charCodeAt(0) === 65279 && d++, n = void 0); d < i.length; ) {
8744
- if (lu.lastIndex = d, c = lu.exec(i), m = c && c.index !== void 0 ? c.index : i.length, h = i.charCodeAt(m), !c) {
8752
+ if (lu.lastIndex = d, c = lu.exec(i), h = c && c.index !== void 0 ? c.index : i.length, m = i.charCodeAt(h), !c) {
8745
8753
  t = i.slice(d);
8746
8754
  break;
8747
8755
  }
8748
- if (h === 10 && d === m && r)
8756
+ if (m === 10 && d === h && r)
8749
8757
  l.push(-3), r = void 0;
8750
8758
  else
8751
- switch (r && (l.push(-5), r = void 0), d < m && (l.push(i.slice(d, m)), e += m - d), h) {
8759
+ switch (r && (l.push(-5), r = void 0), d < h && (l.push(i.slice(d, h)), e += h - d), m) {
8752
8760
  case 0: {
8753
8761
  l.push(65533), e++;
8754
8762
  break;
@@ -8764,7 +8772,7 @@ function Oh() {
8764
8772
  default:
8765
8773
  r = !0, e = 1;
8766
8774
  }
8767
- d = m + 1;
8775
+ d = h + 1;
8768
8776
  }
8769
8777
  return o && (r && l.push(-5), t && l.push(t), l.push(null)), l;
8770
8778
  }
@@ -8825,7 +8833,7 @@ function Dh(e) {
8825
8833
  label: u,
8826
8834
  link: i(pe),
8827
8835
  listItem: i(Ne),
8828
- listItemValue: m,
8836
+ listItemValue: h,
8829
8837
  listOrdered: i(Ee, d),
8830
8838
  listUnordered: i(Ee),
8831
8839
  paragraph: i(Ye),
@@ -8850,7 +8858,7 @@ function Dh(e) {
8850
8858
  characterReferenceValue: z,
8851
8859
  codeFenced: l(L),
8852
8860
  codeFencedFence: A,
8853
- codeFencedFenceInfo: h,
8861
+ codeFencedFenceInfo: m,
8854
8862
  codeFencedFenceMeta: y,
8855
8863
  codeFlowValue: Y,
8856
8864
  codeIndented: l(S),
@@ -9046,13 +9054,13 @@ function Dh(e) {
9046
9054
  function d() {
9047
9055
  this.data.expectingFirstListItemValue = !0;
9048
9056
  }
9049
- function m(O) {
9057
+ function h(O) {
9050
9058
  if (this.data.expectingFirstListItemValue) {
9051
9059
  const H = this.stack[this.stack.length - 2];
9052
9060
  H.start = Number.parseInt(this.sliceSerialize(O), 10), this.data.expectingFirstListItemValue = void 0;
9053
9061
  }
9054
9062
  }
9055
- function h() {
9063
+ function m() {
9056
9064
  const O = this.resume(), H = this.stack[this.stack.length - 1];
9057
9065
  H.lang = O;
9058
9066
  }
@@ -9647,9 +9655,9 @@ function nm(e, t, n) {
9647
9655
  let l = -1;
9648
9656
  const c = [];
9649
9657
  for (; ++l < o; ) {
9650
- const d = t.children[l], m = {}, h = u ? u[l] : void 0;
9651
- h && (m.align = h);
9652
- let y = { type: "element", tagName: i, properties: m, children: [] };
9658
+ const d = t.children[l], h = {}, m = u ? u[l] : void 0;
9659
+ m && (h.align = m);
9660
+ let y = { type: "element", tagName: i, properties: h, children: [] };
9653
9661
  d && (y.children = e.all(d), e.patch(d, y), y = e.applyData(d, y)), c.push(y);
9654
9662
  }
9655
9663
  const f = {
@@ -9842,8 +9850,8 @@ const Co = -1, Or = 0, sr = 1, or = 2, ii = 3, ui = 4, si = 5, oi = 6, xo = 7, I
9842
9850
  if (l)
9843
9851
  return a([l, [...u]], u);
9844
9852
  const f = [], d = a([o, f], u);
9845
- for (const m of u)
9846
- f.push(i(m));
9853
+ for (const h of u)
9854
+ f.push(i(h));
9847
9855
  return d;
9848
9856
  }
9849
9857
  case or: {
@@ -9859,8 +9867,8 @@ const Co = -1, Or = 0, sr = 1, or = 2, ii = 3, ui = 4, si = 5, oi = 6, xo = 7, I
9859
9867
  if (t && "toJSON" in u)
9860
9868
  return i(u.toJSON());
9861
9869
  const f = [], d = a([o, f], u);
9862
- for (const m of cm(u))
9863
- (e || !Kn(Tn(u[m]))) && f.push([i(m), i(u[m])]);
9870
+ for (const h of cm(u))
9871
+ (e || !Kn(Tn(u[h]))) && f.push([i(h), i(u[h])]);
9864
9872
  return d;
9865
9873
  }
9866
9874
  case ii:
@@ -9871,14 +9879,14 @@ const Co = -1, Or = 0, sr = 1, or = 2, ii = 3, ui = 4, si = 5, oi = 6, xo = 7, I
9871
9879
  }
9872
9880
  case si: {
9873
9881
  const f = [], d = a([o, f], u);
9874
- for (const [m, h] of u)
9875
- (e || !(Kn(Tn(m)) || Kn(Tn(h)))) && f.push([i(m), i(h)]);
9882
+ for (const [h, m] of u)
9883
+ (e || !(Kn(Tn(h)) || Kn(Tn(m)))) && f.push([i(h), i(m)]);
9876
9884
  return d;
9877
9885
  }
9878
9886
  case oi: {
9879
9887
  const f = [], d = a([o, f], u);
9880
- for (const m of u)
9881
- (e || !Kn(Tn(m))) && f.push(i(m));
9888
+ for (const h of u)
9889
+ (e || !Kn(Tn(h))) && f.push(i(h));
9882
9890
  return d;
9883
9891
  }
9884
9892
  }
@@ -9914,19 +9922,19 @@ function mm(e) {
9914
9922
  const c = e.footnoteById.get(e.footnoteOrder[l]);
9915
9923
  if (!c)
9916
9924
  continue;
9917
- const f = e.all(c), d = String(c.identifier).toUpperCase(), m = fn(d.toLowerCase());
9918
- let h = 0;
9925
+ const f = e.all(c), d = String(c.identifier).toUpperCase(), h = fn(d.toLowerCase());
9926
+ let m = 0;
9919
9927
  const y = [], A = e.footnoteCounts.get(d);
9920
- for (; A !== void 0 && ++h <= A; ) {
9928
+ for (; A !== void 0 && ++m <= A; ) {
9921
9929
  y.length > 0 && y.push({ type: "text", value: " " });
9922
- let R = typeof n == "string" ? n : n(l, h);
9930
+ let R = typeof n == "string" ? n : n(l, m);
9923
9931
  typeof R == "string" && (R = { type: "text", value: R }), y.push({
9924
9932
  type: "element",
9925
9933
  tagName: "a",
9926
9934
  properties: {
9927
- href: "#" + t + "fnref-" + m + (h > 1 ? "-" + h : ""),
9935
+ href: "#" + t + "fnref-" + h + (m > 1 ? "-" + m : ""),
9928
9936
  dataFootnoteBackref: "",
9929
- ariaLabel: typeof r == "string" ? r : r(l, h),
9937
+ ariaLabel: typeof r == "string" ? r : r(l, m),
9930
9938
  className: ["data-footnote-backref"]
9931
9939
  },
9932
9940
  children: Array.isArray(R) ? R : [R]
@@ -9941,7 +9949,7 @@ function mm(e) {
9941
9949
  const S = {
9942
9950
  type: "element",
9943
9951
  tagName: "li",
9944
- properties: { id: t + "fn-" + m },
9952
+ properties: { id: t + "fn-" + h },
9945
9953
  children: e.wrap(f, !0)
9946
9954
  };
9947
9955
  e.patch(c, S), o.push(S);
@@ -10067,28 +10075,28 @@ function ym(e, t, n, r) {
10067
10075
  l && typeof l == "object" ? l : {}
10068
10076
  );
10069
10077
  if (typeof d.type == "string") {
10070
- const h = (
10078
+ const m = (
10071
10079
  // `hast`
10072
10080
  typeof d.tagName == "string" ? d.tagName : (
10073
10081
  // `xast`
10074
10082
  typeof d.name == "string" ? d.name : void 0
10075
10083
  )
10076
10084
  );
10077
- Object.defineProperty(m, "name", {
10078
- value: "node (" + (l.type + (h ? "<" + h + ">" : "")) + ")"
10085
+ Object.defineProperty(h, "name", {
10086
+ value: "node (" + (l.type + (m ? "<" + m + ">" : "")) + ")"
10079
10087
  });
10080
10088
  }
10081
- return m;
10082
- function m() {
10083
- let h = Oo, y, A, L;
10084
- if ((!t || i(l, c, f[f.length - 1] || void 0)) && (h = Sm(n(l, f)), h[0] === bu))
10085
- return h;
10089
+ return h;
10090
+ function h() {
10091
+ let m = Oo, y, A, L;
10092
+ if ((!t || i(l, c, f[f.length - 1] || void 0)) && (m = Sm(n(l, f)), m[0] === bu))
10093
+ return m;
10086
10094
  if ("children" in l && l.children) {
10087
10095
  const S = (
10088
10096
  /** @type {UnistParent} */
10089
10097
  l
10090
10098
  );
10091
- if (S.children && h[0] !== _m)
10099
+ if (S.children && m[0] !== _m)
10092
10100
  for (A = (r ? S.children.length : -1) + u, L = f.concat(S); A > -1 && A < S.children.length; ) {
10093
10101
  const R = S.children[A];
10094
10102
  if (y = o(R, A, L)(), y[0] === bu)
@@ -10096,7 +10104,7 @@ function ym(e, t, n, r) {
10096
10104
  A = typeof y[1] == "number" ? y[1] : A + u;
10097
10105
  }
10098
10106
  }
10099
- return h;
10107
+ return m;
10100
10108
  }
10101
10109
  }
10102
10110
  }
@@ -10128,15 +10136,15 @@ function xm(e, t) {
10128
10136
  };
10129
10137
  return li(e, function(f) {
10130
10138
  if (f.type === "definition" || f.type === "footnoteDefinition") {
10131
- const d = f.type === "definition" ? r : a, m = String(f.identifier).toUpperCase();
10132
- d.has(m) || d.set(m, f);
10139
+ const d = f.type === "definition" ? r : a, h = String(f.identifier).toUpperCase();
10140
+ d.has(h) || d.set(h, f);
10133
10141
  }
10134
10142
  }), o;
10135
10143
  function l(f, d) {
10136
- const m = f.type, h = o.handlers[m];
10137
- if (va.call(o.handlers, m) && h)
10138
- return h(o, f, d);
10139
- if (o.options.passThrough && o.options.passThrough.includes(m)) {
10144
+ const h = f.type, m = o.handlers[h];
10145
+ if (va.call(o.handlers, h) && m)
10146
+ return m(o, f, d);
10147
+ if (o.options.passThrough && o.options.passThrough.includes(h)) {
10140
10148
  if ("children" in f) {
10141
10149
  const { children: A, ...L } = f, S = sn(L);
10142
10150
  return S.children = o.all(f), S;
@@ -10148,12 +10156,12 @@ function xm(e, t) {
10148
10156
  function c(f) {
10149
10157
  const d = [];
10150
10158
  if ("children" in f) {
10151
- const m = f.children;
10152
- let h = -1;
10153
- for (; ++h < m.length; ) {
10154
- const y = o.one(m[h], f);
10159
+ const h = f.children;
10160
+ let m = -1;
10161
+ for (; ++m < h.length; ) {
10162
+ const y = o.one(h[m], f);
10155
10163
  if (y) {
10156
- if (h && m[h - 1].type === "break" && (!Array.isArray(y) && y.type === "text" && (y.value = Tu(y.value)), !Array.isArray(y) && y.type === "element")) {
10164
+ if (m && h[m - 1].type === "break" && (!Array.isArray(y) && y.type === "text" && (y.value = Tu(y.value)), !Array.isArray(y) && y.type === "element")) {
10157
10165
  const A = y.children[0];
10158
10166
  A && A.type === "text" && (A.value = Tu(A.value));
10159
10167
  }
@@ -10242,10 +10250,10 @@ function vm() {
10242
10250
  var f = e.call(c, "constructor"), d = c.constructor && c.constructor.prototype && e.call(c.constructor.prototype, "isPrototypeOf");
10243
10251
  if (c.constructor && !f && !d)
10244
10252
  return !1;
10245
- var m;
10246
- for (m in c)
10253
+ var h;
10254
+ for (h in c)
10247
10255
  ;
10248
- return typeof m > "u" || e.call(c, m);
10256
+ return typeof h > "u" || e.call(c, h);
10249
10257
  }, u = function(c, f) {
10250
10258
  n && f.name === "__proto__" ? n(c, f.name, {
10251
10259
  enumerable: !0,
@@ -10262,11 +10270,11 @@ function vm() {
10262
10270
  return c[f];
10263
10271
  };
10264
10272
  return Wr = function l() {
10265
- var c, f, d, m, h, y, A = arguments[0], L = 1, S = arguments.length, R = !1;
10273
+ var c, f, d, h, m, y, A = arguments[0], L = 1, S = arguments.length, R = !1;
10266
10274
  for (typeof A == "boolean" && (R = A, A = arguments[1] || {}, L = 2), (A == null || typeof A != "object" && typeof A != "function") && (A = {}); L < S; ++L)
10267
10275
  if (c = arguments[L], c != null)
10268
10276
  for (f in c)
10269
- d = o(A, f), m = o(c, f), A !== m && (R && m && (i(m) || (h = a(m))) ? (h ? (h = !1, y = d && a(d) ? d : []) : y = d && i(d) ? d : {}, u(A, { name: f, newValue: l(R, y, m) })) : typeof m < "u" && u(A, { name: f, newValue: m }));
10277
+ d = o(A, f), h = o(c, f), A !== h && (R && h && (i(h) || (m = a(h))) ? (m ? (m = !1, y = d && a(d) ? d : []) : y = d && i(d) ? d : {}, u(A, { name: f, newValue: l(R, y, h) })) : typeof h < "u" && u(A, { name: f, newValue: h }));
10270
10278
  return A;
10271
10279
  }, Wr;
10272
10280
  }
@@ -11110,18 +11118,18 @@ class ci extends Vm {
11110
11118
  /** @type {unknown} */
11111
11119
  r.parse(o)
11112
11120
  );
11113
- r.run(l, o, function(f, d, m) {
11114
- if (f || !d || !m)
11121
+ r.run(l, o, function(f, d, h) {
11122
+ if (f || !d || !h)
11115
11123
  return c(f);
11116
- const h = (
11124
+ const m = (
11117
11125
  /** @type {CompileTree extends undefined ? Node : CompileTree} */
11118
11126
  /** @type {unknown} */
11119
11127
  d
11120
- ), y = r.stringify(h, m);
11121
- Qm(y) ? m.value = y : m.result = y, c(
11128
+ ), y = r.stringify(m, h);
11129
+ Qm(y) ? h.value = y : h.result = y, c(
11122
11130
  f,
11123
11131
  /** @type {VFileWithOutput<CompileResult>} */
11124
- m
11132
+ h
11125
11133
  );
11126
11134
  });
11127
11135
  function c(f, d) {
@@ -11212,12 +11220,12 @@ class ci extends Vm {
11212
11220
  function i(u, o) {
11213
11221
  const l = Zn(n);
11214
11222
  a.run(t, l, c);
11215
- function c(f, d, m) {
11216
- const h = (
11223
+ function c(f, d, h) {
11224
+ const m = (
11217
11225
  /** @type {TailTree extends undefined ? Node : TailTree} */
11218
11226
  d || t
11219
11227
  );
11220
- f ? o(f) : u ? u(h) : r(void 0, h, m);
11228
+ f ? o(f) : u ? u(m) : r(void 0, m, h);
11221
11229
  }
11222
11230
  }
11223
11231
  }
@@ -11378,18 +11386,18 @@ class ci extends Vm {
11378
11386
  throw new TypeError("Expected a list of plugins, not `" + c + "`");
11379
11387
  }
11380
11388
  function l(c, f) {
11381
- let d = -1, m = -1;
11389
+ let d = -1, h = -1;
11382
11390
  for (; ++d < r.length; )
11383
11391
  if (r[d][0] === c) {
11384
- m = d;
11392
+ h = d;
11385
11393
  break;
11386
11394
  }
11387
- if (m === -1)
11395
+ if (h === -1)
11388
11396
  r.push([c, ...f]);
11389
11397
  else if (f.length > 0) {
11390
- let [h, ...y] = f;
11391
- const A = r[m][1];
11392
- Pa(A) && Pa(h) && (h = Xr(!0, A, h)), r[m] = [c, h, ...y];
11398
+ let [m, ...y] = f;
11399
+ const A = r[h][1];
11400
+ Pa(A) && Pa(m) && (m = Xr(!0, A, m)), r[h] = [c, m, ...y];
11393
11401
  }
11394
11402
  }
11395
11403
  }
@@ -11465,12 +11473,12 @@ const Zm = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md",
11465
11473
  { from: "transformLinkUri", id: "#add-urltransform", to: "urlTransform" }
11466
11474
  ];
11467
11475
  function Ro(e) {
11468
- const t = e.allowedElements, n = e.allowElement, r = e.children || "", a = e.className, i = e.components, u = e.disallowedElements, o = e.rehypePlugins || xu, l = e.remarkPlugins || xu, c = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...Iu } : Iu, f = e.skipHtml, d = e.unwrapDisallowed, m = e.urlTransform || tp, h = Wm().use(wh).use(l).use(Rm, c).use(o), y = new Lo();
11476
+ const t = e.allowedElements, n = e.allowElement, r = e.children || "", a = e.className, i = e.components, u = e.disallowedElements, o = e.rehypePlugins || xu, l = e.remarkPlugins || xu, c = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...Iu } : Iu, f = e.skipHtml, d = e.unwrapDisallowed, h = e.urlTransform || tp, m = Wm().use(wh).use(l).use(Rm, c).use(o), y = new Lo();
11469
11477
  typeof r == "string" && (y.value = r);
11470
11478
  for (const R of ep)
11471
11479
  Object.hasOwn(e, R.from) && ("" + R.from + (R.to ? "use `" + R.to + "` instead" : "remove it") + Zm + R.id, void 0);
11472
- const A = h.parse(y);
11473
- let L = h.runSync(A, y);
11480
+ const A = m.parse(y);
11481
+ let L = m.runSync(A, y);
11474
11482
  return a && (L = {
11475
11483
  type: "element",
11476
11484
  tagName: "div",
@@ -11497,7 +11505,7 @@ function Ro(e) {
11497
11505
  for (x in jr)
11498
11506
  if (Object.hasOwn(jr, x) && Object.hasOwn(R.properties, x)) {
11499
11507
  const I = R.properties[x], q = jr[x];
11500
- (q === null || q.includes(R.tagName)) && (R.properties[x] = m(String(I || ""), x, R));
11508
+ (q === null || q.includes(R.tagName)) && (R.properties[x] = h(String(I || ""), x, R));
11501
11509
  }
11502
11510
  }
11503
11511
  if (R.type === "element") {
@@ -17931,12 +17939,12 @@ function Tb(e, t, n) {
17931
17939
  u
17932
17940
  ]);
17933
17941
  let o = u ? e : r, l = Ut((c, ...f) => {
17934
- let d = (m, ...h) => {
17935
- n && (Object.is(o, m) || n(m, ...h)), u || (o = m);
17942
+ let d = (h, ...m) => {
17943
+ n && (Object.is(o, h) || n(h, ...m)), u || (o = h);
17936
17944
  };
17937
- typeof c == "function" ? (console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"), a((h, ...y) => {
17938
- let A = c(u ? o : h, ...y);
17939
- return d(A, ...f), u ? h : A;
17945
+ typeof c == "function" ? (console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"), a((m, ...y) => {
17946
+ let A = c(u ? o : m, ...y);
17947
+ return d(A, ...f), u ? m : A;
17940
17948
  })) : (u || a(c), d(c, ...f));
17941
17949
  }, [
17942
17950
  u,
@@ -18629,8 +18637,8 @@ function TT(e) {
18629
18637
  let f = lt(ET), d = xn(() => r ? Array.isArray(r) ? r.flatMap((Y) => Ya(f[Y])) : Ya(f[r]) : [], [
18630
18638
  f,
18631
18639
  r
18632
- ]), [m, h] = ge(f), [y, A] = ge(!1);
18633
- f !== m && (h(f), A(!1));
18640
+ ]), [h, m] = ge(f), [y, A] = ge(!1);
18641
+ f !== h && (m(f), A(!1));
18634
18642
  let L = xn(() => Zu(y ? [] : d), [
18635
18643
  y,
18636
18644
  d
@@ -18729,10 +18737,10 @@ function yT(e, t) {
18729
18737
  let { inputElementType: n = "input", isDisabled: r = !1, isRequired: a = !1, isReadOnly: i = !1, type: u = "text", validationBehavior: o = "aria" } = e, [l, c] = Tb(e.value, e.defaultValue || "", e.onChange), { focusableProps: f } = fT(e, t), d = bT({
18730
18738
  ...e,
18731
18739
  value: l
18732
- }), { isInvalid: m, validationErrors: h, validationDetails: y } = d.displayValidation, { labelProps: A, fieldProps: L, descriptionProps: S, errorMessageProps: R } = _T({
18740
+ }), { isInvalid: h, validationErrors: m, validationDetails: y } = d.displayValidation, { labelProps: A, fieldProps: L, descriptionProps: S, errorMessageProps: R } = _T({
18733
18741
  ...e,
18734
- isInvalid: m,
18735
- errorMessage: e.errorMessage || h
18742
+ isInvalid: h,
18743
+ errorMessage: e.errorMessage || m
18736
18744
  }), N = Fb(e, {
18737
18745
  labelable: !0
18738
18746
  });
@@ -18759,7 +18767,7 @@ function yT(e, t) {
18759
18767
  readOnly: i,
18760
18768
  required: a && o === "native",
18761
18769
  "aria-required": a && o === "aria" || void 0,
18762
- "aria-invalid": m || void 0,
18770
+ "aria-invalid": h || void 0,
18763
18771
  "aria-errormessage": e["aria-errormessage"],
18764
18772
  "aria-activedescendant": e["aria-activedescendant"],
18765
18773
  "aria-autocomplete": e["aria-autocomplete"],
@@ -18791,16 +18799,16 @@ function yT(e, t) {
18791
18799
  }),
18792
18800
  descriptionProps: S,
18793
18801
  errorMessageProps: R,
18794
- isInvalid: m,
18795
- validationErrors: h,
18802
+ isInvalid: h,
18803
+ validationErrors: m,
18796
18804
  validationDetails: y
18797
18805
  };
18798
18806
  }
18799
18807
  const ST = (e) => e.charCodeAt(e.length - 1) === 10, CT = (e) => {
18800
18808
  const [t, n] = ge(""), r = () => {
18801
- m.current && (m.current.style.height = m.current.scrollHeight + "px");
18809
+ h.current && (h.current.style.height = h.current.scrollHeight + "px");
18802
18810
  }, a = () => {
18803
- m.current && (m.current.style.height = "48px");
18811
+ h.current && (h.current.style.height = "48px");
18804
18812
  }, i = (D) => {
18805
18813
  n(D);
18806
18814
  };
@@ -18812,12 +18820,12 @@ const ST = (e) => e.charCodeAt(e.length - 1) === 10, CT = (e) => {
18812
18820
  isLoadingStream: c,
18813
18821
  LoadingComponent: f,
18814
18822
  onPressLoadingButton: d
18815
- } = e, m = we(null), { labelProps: h, inputProps: y } = yT(
18823
+ } = e, h = we(null), { labelProps: m, inputProps: y } = yT(
18816
18824
  {
18817
18825
  ...e,
18818
18826
  inputElementType: "textarea"
18819
18827
  },
18820
- m
18828
+ h
18821
18829
  );
18822
18830
  const A = (D) => {
18823
18831
  ST(D.target.value) || i(D.target.value);
@@ -18839,12 +18847,12 @@ const ST = (e) => e.charCodeAt(e.length - 1) === 10, CT = (e) => {
18839
18847
  className: `${e.classNameContainer} w-fu`,
18840
18848
  children: [
18841
18849
  /* @__PURE__ */ De("div", { style: { display: "flex", flexDirection: "column" }, children: [
18842
- /* @__PURE__ */ B("label", { ...h, className: e.classNameLabel, children: u }),
18850
+ /* @__PURE__ */ B("label", { ...m, className: e.classNameLabel, children: u }),
18843
18851
  /* @__PURE__ */ B(
18844
18852
  "textarea",
18845
18853
  {
18846
18854
  ...y,
18847
- ref: m,
18855
+ ref: h,
18848
18856
  className: `${e.classNameTextarea} p-3`,
18849
18857
  onChange: A,
18850
18858
  value: t,
@@ -19080,19 +19088,19 @@ const Il = () => {
19080
19088
  const f = t.current, d = 4;
19081
19089
  if (f) {
19082
19090
  f.scrollTop < u.current - 1 && (i.current = !1);
19083
- const h = f.scrollHeight > f.clientHeight, y = f.scrollHeight - f.scrollTop <= f.clientHeight + d;
19084
- r(h && !y), a.current = y, u.current = f.scrollTop;
19091
+ const m = f.scrollHeight > f.clientHeight, y = f.scrollHeight - f.scrollTop <= f.clientHeight + d;
19092
+ r(m && !y), a.current = y, u.current = f.scrollTop;
19085
19093
  }
19086
19094
  }, l = ({
19087
19095
  smooth: f = !1,
19088
19096
  sticky: d = !1
19089
19097
  }) => {
19090
- const m = t.current;
19091
- d ? (i.current = !0, a.current = !0) : m && m.scrollTo({
19092
- top: m.scrollHeight,
19098
+ const h = t.current;
19099
+ d ? (i.current = !0, a.current = !0) : h && h.scrollTo({
19100
+ top: h.scrollHeight,
19093
19101
  behavior: f ? "smooth" : "auto"
19094
- }), m && i.current && m.scrollTo({
19095
- top: m.scrollHeight,
19102
+ }), h && i.current && h.scrollTo({
19103
+ top: h.scrollHeight,
19096
19104
  behavior: f ? "smooth" : "auto"
19097
19105
  });
19098
19106
  };
@@ -19123,9 +19131,9 @@ const Nl = ({
19123
19131
  e || console.log("Dev - Admin settings");
19124
19132
  const n = we(null), { placeholderTranslation: r } = Ka(), { conversation: a, setConversation: i } = lt(
19125
19133
  Fs
19126
- ), [u, o] = ge("notLoading"), [l, c] = ge(null), { defaultStartingStep: f } = Il(), [d, m] = ge(
19134
+ ), [u, o] = ge("notLoading"), [l, c] = ge(null), { defaultStartingStep: f } = Il(), [d, h] = ge(
19127
19135
  null
19128
- ), [h, y] = ge(
19136
+ ), [m, y] = ge(
19129
19137
  f
19130
19138
  ), [A, L] = ge(
19131
19139
  null
@@ -19220,7 +19228,7 @@ const Nl = ({
19220
19228
  Fe
19221
19229
  )) {
19222
19230
  const { content: xe } = Fe;
19223
- z.enqueue(xe), m(xe);
19231
+ z.enqueue(xe), h(xe);
19224
19232
  } else
19225
19233
  console.warn(`Object not handled - ${Fe}`);
19226
19234
  if (ae && X) {
@@ -19270,7 +19278,7 @@ const Nl = ({
19270
19278
  /* @__PURE__ */ B(
19271
19279
  vT,
19272
19280
  {
19273
- currentStepName: h,
19281
+ currentStepName: m,
19274
19282
  currentStepNumber: A,
19275
19283
  loadingStatus: u,
19276
19284
  numberOfSteps: d
@@ -19413,8 +19421,8 @@ function kT() {
19413
19421
  t.call(o, d) && (l[d] = o[d]);
19414
19422
  if (e) {
19415
19423
  c = e(o);
19416
- for (var m = 0; m < c.length; m++)
19417
- n.call(o, c[m]) && (l[c[m]] = o[c[m]]);
19424
+ for (var h = 0; h < c.length; h++)
19425
+ n.call(o, c[h]) && (l[c[h]] = o[c[h]]);
19418
19426
  }
19419
19427
  }
19420
19428
  return l;
@@ -19455,10 +19463,10 @@ function wT() {
19455
19463
  var d;
19456
19464
  try {
19457
19465
  if (typeof i[f] != "function") {
19458
- var m = Error(
19466
+ var h = Error(
19459
19467
  (l || "React class") + ": " + o + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
19460
19468
  );
19461
- throw m.name = "Invariant Violation", m;
19469
+ throw h.name = "Invariant Violation", h;
19462
19470
  }
19463
19471
  d = i[f](u, f, l, o, null, t);
19464
19472
  } catch (y) {
@@ -19468,9 +19476,9 @@ function wT() {
19468
19476
  (l || "React class") + ": type specification of " + o + " `" + f + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof d + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
19469
19477
  ), d instanceof Error && !(d.message in n)) {
19470
19478
  n[d.message] = !0;
19471
- var h = c ? c() : "";
19479
+ var m = c ? c() : "";
19472
19480
  e(
19473
- "Failed " + o + " type: " + d.message + (h ?? "")
19481
+ "Failed " + o + " type: " + d.message + (m ?? "")
19474
19482
  );
19475
19483
  }
19476
19484
  }
@@ -19504,7 +19512,7 @@ function MT() {
19504
19512
  if (typeof F == "function")
19505
19513
  return F;
19506
19514
  }
19507
- var m = "<<anonymous>>", h = {
19515
+ var h = "<<anonymous>>", m = {
19508
19516
  array: S("array"),
19509
19517
  bigint: S("bigint"),
19510
19518
  bool: S("boolean"),
@@ -19536,7 +19544,7 @@ function MT() {
19536
19544
  if (process.env.NODE_ENV !== "production")
19537
19545
  var F = {}, X = 0;
19538
19546
  function T(K, z, Q, ee, ae, Z, _e) {
19539
- if (ee = ee || m, Z = Z || Q, _e !== n) {
19547
+ if (ee = ee || h, Z = Z || Q, _e !== n) {
19540
19548
  if (l) {
19541
19549
  var U = new Error(
19542
19550
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
@@ -19615,7 +19623,7 @@ function MT() {
19615
19623
  function I(p) {
19616
19624
  function F(X, T, V, K, z) {
19617
19625
  if (!(X[T] instanceof p)) {
19618
- var Q = p.name || m, ee = Le(X[T]);
19626
+ var Q = p.name || h, ee = Le(X[T]);
19619
19627
  return new A("Invalid " + K + " `" + z + "` of type " + ("`" + ee + "` supplied to `" + V + "`, expected ") + ("instance of `" + Q + "`."));
19620
19628
  }
19621
19629
  return null;
@@ -19796,9 +19804,9 @@ Valid keys: ` + JSON.stringify(Object.keys(p), null, " ")
19796
19804
  }
19797
19805
  }
19798
19806
  function Le(p) {
19799
- return !p.constructor || !p.constructor.name ? m : p.constructor.name;
19807
+ return !p.constructor || !p.constructor.name ? h : p.constructor.name;
19800
19808
  }
19801
- return h.checkPropTypes = a, h.resetWarningCache = a.resetWarningCache, h.PropTypes = h, h;
19809
+ return m.checkPropTypes = a, m.resetWarningCache = a.resetWarningCache, m.PropTypes = m, m;
19802
19810
  }, da;
19803
19811
  }
19804
19812
  var ha, as;
@@ -19813,10 +19821,10 @@ function BT() {
19813
19821
  return n.resetWarningCache = t, ha = function() {
19814
19822
  function r(u, o, l, c, f, d) {
19815
19823
  if (d !== e) {
19816
- var m = new Error(
19824
+ var h = new Error(
19817
19825
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
19818
19826
  );
19819
- throw m.name = "Invariant Violation", m;
19827
+ throw h.name = "Invariant Violation", h;
19820
19828
  }
19821
19829
  }
19822
19830
  r.isRequired = r;
@@ -19944,7 +19952,7 @@ var Pl = function(t) {
19944
19952
  status: Cn
19945
19953
  });
19946
19954
  }, n.performEnter = function(a) {
19947
- var i = this, u = this.props.enter, o = this.context ? this.context.isMounting : a, l = this.props.nodeRef ? [o] : [jn.findDOMNode(this), o], c = l[0], f = l[1], d = this.getTimeouts(), m = o ? d.appear : d.enter;
19955
+ var i = this, u = this.props.enter, o = this.context ? this.context.isMounting : a, l = this.props.nodeRef ? [o] : [jn.findDOMNode(this), o], c = l[0], f = l[1], d = this.getTimeouts(), h = o ? d.appear : d.enter;
19948
19956
  if (!a && !u || ss.disabled) {
19949
19957
  this.safeSetState({
19950
19958
  status: Jt
@@ -19956,7 +19964,7 @@ var Pl = function(t) {
19956
19964
  this.props.onEnter(c, f), this.safeSetState({
19957
19965
  status: Mt
19958
19966
  }, function() {
19959
- i.props.onEntering(c, f), i.onTransitionEnd(m, function() {
19967
+ i.props.onEntering(c, f), i.onTransitionEnd(h, function() {
19960
19968
  i.safeSetState({
19961
19969
  status: Jt
19962
19970
  }, function() {
@@ -20235,11 +20243,11 @@ var jT = function(t, n) {
20235
20243
  var c = r.resolveArguments(o, l), f = c[0], d = c[1];
20236
20244
  r.removeClasses(f, "exit"), r.addClass(f, d ? "appear" : "enter", "base"), r.props.onEnter && r.props.onEnter(o, l);
20237
20245
  }, r.onEntering = function(o, l) {
20238
- var c = r.resolveArguments(o, l), f = c[0], d = c[1], m = d ? "appear" : "enter";
20239
- r.addClass(f, m, "active"), r.props.onEntering && r.props.onEntering(o, l);
20246
+ var c = r.resolveArguments(o, l), f = c[0], d = c[1], h = d ? "appear" : "enter";
20247
+ r.addClass(f, h, "active"), r.props.onEntering && r.props.onEntering(o, l);
20240
20248
  }, r.onEntered = function(o, l) {
20241
- var c = r.resolveArguments(o, l), f = c[0], d = c[1], m = d ? "appear" : "enter";
20242
- r.removeClasses(f, m), r.addClass(f, m, "done"), r.props.onEntered && r.props.onEntered(o, l);
20249
+ var c = r.resolveArguments(o, l), f = c[0], d = c[1], h = d ? "appear" : "enter";
20250
+ r.removeClasses(f, h), r.addClass(f, h, "done"), r.props.onEntered && r.props.onEntered(o, l);
20243
20251
  }, r.onExit = function(o) {
20244
20252
  var l = r.resolveArguments(o), c = l[0];
20245
20253
  r.removeClasses(c, "appear"), r.removeClasses(c, "enter"), r.addClass(c, "exit", "base"), r.props.onExit && r.props.onExit(o);
@@ -20252,11 +20260,11 @@ var jT = function(t, n) {
20252
20260
  }, r.resolveArguments = function(o, l) {
20253
20261
  return r.props.nodeRef ? [r.props.nodeRef.current, o] : [o, l];
20254
20262
  }, r.getClassNames = function(o) {
20255
- var l = r.props.classNames, c = typeof l == "string", f = c && l ? l + "-" : "", d = c ? "" + f + o : l[o], m = c ? d + "-active" : l[o + "Active"], h = c ? d + "-done" : l[o + "Done"];
20263
+ var l = r.props.classNames, c = typeof l == "string", f = c && l ? l + "-" : "", d = c ? "" + f + o : l[o], h = c ? d + "-active" : l[o + "Active"], m = c ? d + "-done" : l[o + "Done"];
20256
20264
  return {
20257
20265
  baseClassName: d,
20258
- activeClassName: m,
20259
- doneClassName: h
20266
+ activeClassName: h,
20267
+ doneClassName: m
20260
20268
  };
20261
20269
  }, r;
20262
20270
  }