@snf/access-qa-bot 3.0.0 → 3.0.1

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.
@@ -2,8 +2,8 @@ import { jsxs as st, jsx as X, Fragment as Vt } from "react/jsx-runtime";
2
2
  import * as gt from "react";
3
3
  import pe, { forwardRef as Pn, createContext as to, useRef as tt, useEffect as Ye, useImperativeHandle as od, useState as Ue, useMemo as Zt, useContext as no, useCallback as Ie, isValidElement as Tu, createElement as Xu, Fragment as Du } from "react";
4
4
  import hf from "react-dom";
5
- var jc = hf;
6
- process.env.NODE_ENV === "production" ? (jc.createRoot, jc.hydrateRoot) : jc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
5
+ var zc = hf;
6
+ process.env.NODE_ENV === "production" ? (zc.createRoot, zc.hydrateRoot) : zc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
7
7
  var Ei = {}, vi = {};
8
8
  /**
9
9
  * @license React
@@ -4411,15 +4411,15 @@ function vf() {
4411
4411
  return A(t, s), A(t, Me), A(t, r.segmentPrefix), A(t, b), p(t, et);
4412
4412
  }
4413
4413
  var an = k + ';$RX("', sn = '$RX("', yo = '"', zi = ")<\/script>", zr = ",";
4414
- function Vl(t, r, s, f, b, S) {
4414
+ function Gl(t, r, s, f, b, S) {
4415
4415
  if (A(t, r.startInlineScript), r.sentClientRenderFunction ? A(t, sn) : (r.sentClientRenderFunction = !0, A(t, an)), s === null)
4416
4416
  throw new Error("An ID must have been assigned before we can complete the boundary.");
4417
4417
  return A(t, s), A(t, yo), (f || b || S) && (A(t, zr), A(t, za(f || ""))), (b || S) && (A(t, zr), A(t, za(b || ""))), S && (A(t, zr), A(t, za(S))), p(t, zi);
4418
4418
  }
4419
- var Xl = /[<\u2028\u2029]/g;
4419
+ var Vl = /[<\u2028\u2029]/g;
4420
4420
  function za(t) {
4421
4421
  var r = JSON.stringify(t);
4422
- return r.replace(Xl, function(s) {
4422
+ return r.replace(Vl, function(s) {
4423
4423
  switch (s) {
4424
4424
  case "<":
4425
4425
  return "\\u003c";
@@ -4432,7 +4432,7 @@ function vf() {
4432
4432
  }
4433
4433
  });
4434
4434
  }
4435
- function Jl(t, r) {
4435
+ function Xl(t, r) {
4436
4436
  var s = gr(r);
4437
4437
  return {
4438
4438
  // Keep this in sync with ReactDOMServerFormatConfig
@@ -4450,7 +4450,7 @@ function vf() {
4450
4450
  generateStaticMarkup: t
4451
4451
  };
4452
4452
  }
4453
- function Kl() {
4453
+ function Jl() {
4454
4454
  return {
4455
4455
  insertionMode: _t,
4456
4456
  // We skip the root mode because we don't want to emit the DOCTYPE in legacy mode.
@@ -4464,26 +4464,26 @@ function vf() {
4464
4464
  if (!r.generateStaticMarkup)
4465
4465
  return vr(t, r, s, f);
4466
4466
  }
4467
- function $l(t, r) {
4467
+ function Kl(t, r) {
4468
4468
  return r.generateStaticMarkup ? !0 : Ii(t);
4469
4469
  }
4470
- function Zl(t, r, s, f, b) {
4470
+ function $l(t, r, s, f, b) {
4471
4471
  return r.generateStaticMarkup ? !0 : zo(t, r, s, f, b);
4472
4472
  }
4473
- function ql(t, r) {
4473
+ function Zl(t, r) {
4474
4474
  return r.generateStaticMarkup ? !0 : Na(t);
4475
4475
  }
4476
- function ec(t, r) {
4476
+ function ql(t, r) {
4477
4477
  return r.generateStaticMarkup ? !0 : jo(t);
4478
4478
  }
4479
- var Kt = Object.assign, tc = Symbol.for("react.element"), Hs = Symbol.for("react.portal"), ji = Symbol.for("react.fragment"), ln = Symbol.for("react.strict_mode"), Ns = Symbol.for("react.profiler"), Wi = Symbol.for("react.provider"), Yi = Symbol.for("react.context"), Gi = Symbol.for("react.forward_ref"), Vi = Symbol.for("react.suspense"), Go = Symbol.for("react.suspense_list"), Vo = Symbol.for("react.memo"), bo = Symbol.for("react.lazy"), ja = Symbol.for("react.scope"), Wa = Symbol.for("react.debug_trace_mode"), Ya = Symbol.for("react.legacy_hidden"), Xi = Symbol.for("react.default_value"), Us = Symbol.iterator, nc = "@@iterator";
4480
- function rc(t) {
4479
+ var Kt = Object.assign, ec = Symbol.for("react.element"), Hs = Symbol.for("react.portal"), ji = Symbol.for("react.fragment"), ln = Symbol.for("react.strict_mode"), Ns = Symbol.for("react.profiler"), Wi = Symbol.for("react.provider"), Yi = Symbol.for("react.context"), Gi = Symbol.for("react.forward_ref"), Vi = Symbol.for("react.suspense"), Go = Symbol.for("react.suspense_list"), Vo = Symbol.for("react.memo"), bo = Symbol.for("react.lazy"), ja = Symbol.for("react.scope"), Wa = Symbol.for("react.debug_trace_mode"), Ya = Symbol.for("react.legacy_hidden"), Xi = Symbol.for("react.default_value"), Us = Symbol.iterator, tc = "@@iterator";
4480
+ function nc(t) {
4481
4481
  if (t === null || typeof t != "object")
4482
4482
  return null;
4483
- var r = Us && t[Us] || t[nc];
4483
+ var r = Us && t[Us] || t[tc];
4484
4484
  return typeof r == "function" ? r : null;
4485
4485
  }
4486
- function oc(t, r, s) {
4486
+ function rc(t, r, s) {
4487
4487
  var f = t.displayName;
4488
4488
  if (f)
4489
4489
  return f;
@@ -4523,7 +4523,7 @@ function vf() {
4523
4523
  var s = t;
4524
4524
  return Ga(s._context) + ".Provider";
4525
4525
  case Gi:
4526
- return oc(t, t.render, "ForwardRef");
4526
+ return rc(t, t.render, "ForwardRef");
4527
4527
  case Vo:
4528
4528
  var f = t.displayName || null;
4529
4529
  return f !== null ? f : ct(t.type) || "Memo";
@@ -4696,7 +4696,7 @@ function vf() {
4696
4696
  function Ko(t, r, s) {
4697
4697
  return jr(t, !1);
4698
4698
  }
4699
- function ic(t) {
4699
+ function oc(t) {
4700
4700
  var r = t.prototype;
4701
4701
  return !!(r && r.isReactComponent);
4702
4702
  }
@@ -4704,7 +4704,7 @@ function vf() {
4704
4704
  if (t == null)
4705
4705
  return "";
4706
4706
  if (typeof t == "function")
4707
- return jr(t, ic(t));
4707
+ return jr(t, oc(t));
4708
4708
  if (typeof t == "string")
4709
4709
  return Jo(t);
4710
4710
  switch (t) {
@@ -4878,7 +4878,7 @@ function vf() {
4878
4878
  function rs(t) {
4879
4879
  return t._reactInternals;
4880
4880
  }
4881
- function ac(t, r) {
4881
+ function ic(t, r) {
4882
4882
  t._reactInternals = r;
4883
4883
  }
4884
4884
  var Ks = {}, So = {}, ni, os, oa, ia, aa, Eo, ri, oi, sa;
@@ -4997,7 +4997,7 @@ Please update the following components: %s`,
4997
4997
  }
4998
4998
  typeof r.UNSAFE_componentWillMount == "function" && r.UNSAFE_componentWillMount(), s !== r.state && (o("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.", ct(t) || "Component"), ca.enqueueReplaceState(r, r.state, null));
4999
4999
  }
5000
- function sc(t, r, s, f) {
5000
+ function ac(t, r, s, f) {
5001
5001
  if (t.queue !== null && t.queue.length > 0) {
5002
5002
  var b = t.queue, S = t.replace;
5003
5003
  if (t.queue = null, t.replace = !1, S && b.length === 1)
@@ -5020,21 +5020,21 @@ Please update the following components: %s`,
5020
5020
  queue: [],
5021
5021
  replace: !1
5022
5022
  };
5023
- ac(t, S);
5023
+ ic(t, S);
5024
5024
  var P = r.contextType;
5025
5025
  if (typeof P == "object" && P !== null ? t.context = Cr(P) : t.context = f, t.state === s) {
5026
5026
  var _ = ct(r) || "Component";
5027
5027
  ri.has(_) || (ri.add(_), o("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.", _));
5028
5028
  }
5029
5029
  var Y = r.getDerivedStateFromProps;
5030
- typeof Y == "function" && (t.state = is(t, r, Y, b, s)), typeof r.getDerivedStateFromProps != "function" && typeof t.getSnapshotBeforeUpdate != "function" && (typeof t.UNSAFE_componentWillMount == "function" || typeof t.componentWillMount == "function") && (qs(r, t), sc(S, t, s, f));
5030
+ typeof Y == "function" && (t.state = is(t, r, Y, b, s)), typeof r.getDerivedStateFromProps != "function" && typeof t.getSnapshotBeforeUpdate != "function" && (typeof t.UNSAFE_componentWillMount == "function" || typeof t.componentWillMount == "function") && (qs(r, t), ac(S, t, s, f));
5031
5031
  }
5032
- var lc = {
5032
+ var sc = {
5033
5033
  id: 1,
5034
5034
  overflow: ""
5035
5035
  };
5036
- function cc(t) {
5037
- var r = t.overflow, s = t.id, f = s & ~uc(s);
5036
+ function lc(t) {
5037
+ var r = t.overflow, s = t.id, f = s & ~cc(s);
5038
5038
  return f.toString(32) + r;
5039
5039
  }
5040
5040
  function as(t, r, s) {
@@ -5046,28 +5046,28 @@ Please update the following components: %s`,
5046
5046
  overflow: dr
5047
5047
  };
5048
5048
  } else {
5049
- var Bo = _ << S, zc = Bo | P, pf = b;
5049
+ var Bo = _ << S, Uc = Bo | P, pf = b;
5050
5050
  return {
5051
- id: 1 << Y | zc,
5051
+ id: 1 << Y | Uc,
5052
5052
  overflow: pf
5053
5053
  };
5054
5054
  }
5055
5055
  }
5056
5056
  function ai(t) {
5057
- return 32 - Ac(t);
5057
+ return 32 - uc(t);
5058
5058
  }
5059
- function uc(t) {
5059
+ function cc(t) {
5060
5060
  return 1 << ai(t) - 1;
5061
5061
  }
5062
- var Ac = Math.clz32 ? Math.clz32 : dc, ss = Math.log, ua = Math.LN2;
5063
- function dc(t) {
5062
+ var uc = Math.clz32 ? Math.clz32 : Ac, ss = Math.log, ua = Math.LN2;
5063
+ function Ac(t) {
5064
5064
  var r = t >>> 0;
5065
5065
  return r === 0 ? 32 : 31 - (ss(r) / ua | 0) | 0;
5066
5066
  }
5067
- function fc(t, r) {
5067
+ function dc(t, r) {
5068
5068
  return t === r && (t !== 0 || 1 / t === 1 / r) || t !== t && r !== r;
5069
5069
  }
5070
- var pc = typeof Object.is == "function" ? Object.is : fc, lr = null, ls = null, Aa = null, rt = null, cn = !1, ko = !1, Gr = 0, We = null, Pr = 0, da = 25, un = !1, An;
5070
+ var fc = typeof Object.is == "function" ? Object.is : dc, lr = null, ls = null, Aa = null, rt = null, cn = !1, ko = !1, Gr = 0, We = null, Pr = 0, da = 25, un = !1, An;
5071
5071
  function Jn() {
5072
5072
  if (lr === null)
5073
5073
  throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
@@ -5077,7 +5077,7 @@ Please update the following components: %s`,
5077
5077
  See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);
5078
5078
  return un && o("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks"), lr;
5079
5079
  }
5080
- function hc(t, r) {
5080
+ function pc(t, r) {
5081
5081
  if (r === null)
5082
5082
  return o("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.", An), !1;
5083
5083
  t.length !== r.length && o(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
@@ -5085,7 +5085,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
5085
5085
  Previous: %s
5086
5086
  Incoming: %s`, An, "[" + t.join(", ") + "]", "[" + r.join(", ") + "]");
5087
5087
  for (var s = 0; s < r.length && s < t.length; s++)
5088
- if (!pc(t[s], r[s]))
5088
+ if (!fc(t[s], r[s]))
5089
5089
  return !1;
5090
5090
  return !0;
5091
5091
  }
@@ -5104,7 +5104,7 @@ Incoming: %s`, An, "[" + t.join(", ") + "]", "[" + r.join(", ") + "]");
5104
5104
  function Vr(t, r) {
5105
5105
  lr = r, ls = t, un = !1, Gr = 0;
5106
5106
  }
5107
- function gc(t, r, s, f) {
5107
+ function hc(t, r, s, f) {
5108
5108
  for (; ko; )
5109
5109
  ko = !1, Gr = 0, Pr += 1, rt = null, s = t(r, f);
5110
5110
  return si(), s;
@@ -5116,10 +5116,10 @@ Incoming: %s`, An, "[" + t.join(", ") + "]", "[" + r.join(", ") + "]");
5116
5116
  function si() {
5117
5117
  un = !1, lr = null, ls = null, ko = !1, Aa = null, Pr = 0, We = null, rt = null;
5118
5118
  }
5119
- function mc(t) {
5119
+ function gc(t) {
5120
5120
  return un && o("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."), Cr(t);
5121
5121
  }
5122
- function vc(t) {
5122
+ function mc(t) {
5123
5123
  return An = "useContext", Jn(), Cr(t);
5124
5124
  }
5125
5125
  function fa(t, r) {
@@ -5166,7 +5166,7 @@ Incoming: %s`, An, "[" + t.join(", ") + "]", "[" + r.join(", ") + "]");
5166
5166
  var f = rt.memoizedState;
5167
5167
  if (f !== null && s !== null) {
5168
5168
  var b = f[1];
5169
- if (hc(s, b))
5169
+ if (pc(s, b))
5170
5170
  return f[0];
5171
5171
  }
5172
5172
  }
@@ -5185,7 +5185,7 @@ Incoming: %s`, An, "[" + t.join(", ") + "]", "[" + r.join(", ") + "]");
5185
5185
  } else
5186
5186
  return r;
5187
5187
  }
5188
- function yc(t, r) {
5188
+ function vc(t, r) {
5189
5189
  An = "useLayoutEffect", o("useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes.");
5190
5190
  }
5191
5191
  function rl(t, r, s) {
@@ -5213,25 +5213,25 @@ Incoming: %s`, An, "[" + t.join(", ") + "]", "[" + r.join(", ") + "]");
5213
5213
  return t;
5214
5214
  }, r);
5215
5215
  }
5216
- function bc(t, r, s) {
5216
+ function yc(t, r, s) {
5217
5217
  return Jn(), r(t._source);
5218
5218
  }
5219
- function wc(t, r, s) {
5219
+ function bc(t, r, s) {
5220
5220
  if (s === void 0)
5221
5221
  throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");
5222
5222
  return s();
5223
5223
  }
5224
- function xc(t) {
5224
+ function wc(t) {
5225
5225
  return Jn(), t;
5226
5226
  }
5227
- function Sc() {
5227
+ function xc() {
5228
5228
  throw new Error("startTransition cannot be called during server rendering.");
5229
5229
  }
5230
- function Ec() {
5231
- return Jn(), [!1, Sc];
5230
+ function Sc() {
5231
+ return Jn(), [!1, xc];
5232
5232
  }
5233
- function kc() {
5234
- var t = ls, r = cc(t.treeContext), s = ds;
5233
+ function Ec() {
5234
+ var t = ls, r = lc(t.treeContext), s = ds;
5235
5235
  if (s === null)
5236
5236
  throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");
5237
5237
  var f = Gr++;
@@ -5240,14 +5240,14 @@ Incoming: %s`, An, "[" + t.join(", ") + "]", "[" + r.join(", ") + "]");
5240
5240
  function pa() {
5241
5241
  }
5242
5242
  var il = {
5243
- readContext: mc,
5244
- useContext: vc,
5243
+ readContext: gc,
5244
+ useContext: mc,
5245
5245
  useMemo: nl,
5246
5246
  useReducer: tl,
5247
5247
  useRef: As,
5248
5248
  useState: us,
5249
5249
  useInsertionEffect: pa,
5250
- useLayoutEffect: yc,
5250
+ useLayoutEffect: vc,
5251
5251
  useCallback: ol,
5252
5252
  // useImperativeHandle is not run in the server environment
5253
5253
  useImperativeHandle: pa,
@@ -5255,12 +5255,12 @@ Incoming: %s`, An, "[" + t.join(", ") + "]", "[" + r.join(", ") + "]");
5255
5255
  useEffect: pa,
5256
5256
  // Debugging effect
5257
5257
  useDebugValue: pa,
5258
- useDeferredValue: xc,
5259
- useTransition: Ec,
5260
- useId: kc,
5258
+ useDeferredValue: wc,
5259
+ useTransition: Sc,
5260
+ useId: Ec,
5261
5261
  // Subscriptions are not setup in a server environment.
5262
- useMutableSource: bc,
5263
- useSyncExternalStore: wc
5262
+ useMutableSource: yc,
5263
+ useSyncExternalStore: bc
5264
5264
  }, ds = null;
5265
5265
  function al(t) {
5266
5266
  ds = t;
@@ -5290,7 +5290,7 @@ Error generating stack: ` + f.message + `
5290
5290
  }
5291
5291
  }
5292
5292
  var ga = i.ReactCurrentDispatcher, li = i.ReactDebugCurrentFrame, ma = 0, Co = 1, va = 2, ya = 3, ba = 4, Po = 0, fs = 1, Xr = 2, sl = 12800;
5293
- function Cc(t) {
5293
+ function kc(t) {
5294
5294
  return console.error(t), null;
5295
5295
  }
5296
5296
  function To() {
@@ -5311,7 +5311,7 @@ Error generating stack: ` + f.message + `
5311
5311
  clientRenderedBoundaries: [],
5312
5312
  completedBoundaries: [],
5313
5313
  partialBoundaries: [],
5314
- onError: b === void 0 ? Cc : b,
5314
+ onError: b === void 0 ? kc : b,
5315
5315
  onAllReady: To,
5316
5316
  onShellReady: P === void 0 ? To : P,
5317
5317
  onShellError: To,
@@ -5326,16 +5326,16 @@ Error generating stack: ` + f.message + `
5326
5326
  !1
5327
5327
  );
5328
5328
  De.parentFlushed = !0;
5329
- var Ge = Jr(fe, t, null, De, oe, Zo, ea, lc);
5329
+ var Ge = Jr(fe, t, null, De, oe, Zo, ea, sc);
5330
5330
  return re.push(Ge), fe;
5331
5331
  }
5332
- function Pc(t, r) {
5332
+ function Cc(t, r) {
5333
5333
  var s = t.pingedTasks;
5334
5334
  s.push(r), s.length === 1 && u(function() {
5335
5335
  return Ss(t);
5336
5336
  });
5337
5337
  }
5338
- function Tc(t, r) {
5338
+ function Pc(t, r) {
5339
5339
  return {
5340
5340
  id: io,
5341
5341
  rootSegmentID: -1,
@@ -5353,7 +5353,7 @@ Error generating stack: ` + f.message + `
5353
5353
  var Y = {
5354
5354
  node: r,
5355
5355
  ping: function() {
5356
- return Pc(t, Y);
5356
+ return Cc(t, Y);
5357
5357
  },
5358
5358
  blockedBoundary: s,
5359
5359
  blockedSegment: f,
@@ -5430,7 +5430,7 @@ Error generating stack: ` + f.message + `
5430
5430
  }
5431
5431
  function Ai(t, r, s) {
5432
5432
  Kr(r, "Suspense");
5433
- var f = r.blockedBoundary, b = r.blockedSegment, S = s.fallback, P = s.children, _ = /* @__PURE__ */ new Set(), Y = Tc(t, _), re = b.chunks.length, oe = wa(
5433
+ var f = r.blockedBoundary, b = r.blockedSegment, S = s.fallback, P = s.children, _ = /* @__PURE__ */ new Set(), Y = Pc(t, _), re = b.chunks.length, oe = wa(
5434
5434
  t,
5435
5435
  re,
5436
5436
  Y,
@@ -5477,7 +5477,7 @@ Error generating stack: ` + f.message + `
5477
5477
  var S = {};
5478
5478
  Vr(r, S);
5479
5479
  var P = s(f, b);
5480
- return gc(s, f, P, b);
5480
+ return hc(s, f, P, b);
5481
5481
  }
5482
5482
  function ll(t, r, s, f, b) {
5483
5483
  var S = s.render();
@@ -5492,7 +5492,7 @@ Error generating stack: ` + f.message + `
5492
5492
  }
5493
5493
  dn(t, r, S);
5494
5494
  }
5495
- function Dc(t, r, s, f) {
5495
+ function Tc(t, r, s, f) {
5496
5496
  ur(r, s);
5497
5497
  var b = qo(s, r.legacyContext), S = $s(s, f, b);
5498
5498
  el(S, s, f, b), ll(t, r, S, s, f), Kn(r);
@@ -5571,11 +5571,11 @@ Error generating stack: ` + f.message + `
5571
5571
  dn(t, r, S);
5572
5572
  Kn(r);
5573
5573
  }
5574
- function Ic(t, r, s, f, b) {
5574
+ function Dc(t, r, s, f, b) {
5575
5575
  var S = s.type, P = ws(S, f);
5576
5576
  xs(t, r, S, P, b);
5577
5577
  }
5578
- function Bc(t, r, s, f) {
5578
+ function Ic(t, r, s, f) {
5579
5579
  s._context === void 0 ? s !== s.Consumer && (bs || (bs = !0, o("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))) : s = s._context;
5580
5580
  var b = f.children;
5581
5581
  typeof b != "function" && o("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");
@@ -5586,7 +5586,7 @@ Error generating stack: ` + f.message + `
5586
5586
  var b = s._context, S = f.value, P = f.children, _;
5587
5587
  _ = r.context, r.context = Vs(b, S), dn(t, r, P), r.context = Xs(b), _ !== r.context && o("Popping the context provider did not return back to the original snapshot. This is a bug in React.");
5588
5588
  }
5589
- function Rc(t, r, s, f, b) {
5589
+ function Bc(t, r, s, f, b) {
5590
5590
  Kr(r, "Lazy");
5591
5591
  var S = s._payload, P = s._init, _ = P(S), Y = ws(_, f);
5592
5592
  xs(t, r, _, Y, b), Kn(r);
@@ -5594,7 +5594,7 @@ Error generating stack: ` + f.message + `
5594
5594
  function xs(t, r, s, f, b) {
5595
5595
  if (typeof s == "function")
5596
5596
  if (di(s)) {
5597
- Dc(t, r, s, f);
5597
+ Tc(t, r, s, f);
5598
5598
  return;
5599
5599
  } else {
5600
5600
  Al(t, r, s, f);
@@ -5631,7 +5631,7 @@ Error generating stack: ` + f.message + `
5631
5631
  return;
5632
5632
  }
5633
5633
  case Vo: {
5634
- Ic(t, r, s, f, b);
5634
+ Dc(t, r, s, f, b);
5635
5635
  return;
5636
5636
  }
5637
5637
  case Wi: {
@@ -5639,32 +5639,32 @@ Error generating stack: ` + f.message + `
5639
5639
  return;
5640
5640
  }
5641
5641
  case Yi: {
5642
- Bc(t, r, s, f);
5642
+ Ic(t, r, s, f);
5643
5643
  return;
5644
5644
  }
5645
5645
  case bo: {
5646
- Rc(t, r, s, f);
5646
+ Bc(t, r, s, f);
5647
5647
  return;
5648
5648
  }
5649
5649
  }
5650
5650
  var S = "";
5651
5651
  throw (s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (S += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) " + ("but got: " + (s == null ? s : typeof s) + "." + S));
5652
5652
  }
5653
- function Mc(t, r) {
5653
+ function Rc(t, r) {
5654
5654
  typeof Symbol == "function" && // $FlowFixMe Flow doesn't know about toStringTag
5655
5655
  t[Symbol.toStringTag] === "Generator" && (vs || o("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."), vs = !0), t.entries === r && (ys || o("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), ys = !0);
5656
5656
  }
5657
5657
  function dn(t, r, s) {
5658
5658
  try {
5659
- return Oc(t, r, s);
5659
+ return Mc(t, r, s);
5660
5660
  } catch (f) {
5661
5661
  throw typeof f == "object" && f !== null && typeof f.then == "function" || (Ar = Ar !== null ? Ar : ps()), f;
5662
5662
  }
5663
5663
  }
5664
- function Oc(t, r, s) {
5664
+ function Mc(t, r, s) {
5665
5665
  if (r.node = s, typeof s == "object" && s !== null) {
5666
5666
  switch (s.$$typeof) {
5667
- case tc: {
5667
+ case ec: {
5668
5668
  var f = s, b = f.type, S = f.props, P = f.ref;
5669
5669
  xs(t, r, b, S, P);
5670
5670
  return;
@@ -5686,9 +5686,9 @@ Error generating stack: ` + f.message + `
5686
5686
  Sa(t, r, s);
5687
5687
  return;
5688
5688
  }
5689
- var fe = rc(s);
5689
+ var fe = nc(s);
5690
5690
  if (fe) {
5691
- Mc(s, fe);
5691
+ Rc(s, fe);
5692
5692
  var De = fe.call(s);
5693
5693
  if (De) {
5694
5694
  var Ge = De.next();
@@ -5729,7 +5729,7 @@ Error generating stack: ` + f.message + `
5729
5729
  }
5730
5730
  }
5731
5731
  }
5732
- function Lc(t, r, s) {
5732
+ function Oc(t, r, s) {
5733
5733
  var f = r.blockedSegment, b = f.chunks.length, S = wa(
5734
5734
  t,
5735
5735
  b,
@@ -5753,13 +5753,13 @@ Error generating stack: ` + f.message + `
5753
5753
  return dn(t, r, s);
5754
5754
  } catch (_) {
5755
5755
  if (si(), typeof _ == "object" && _ !== null && typeof _.then == "function") {
5756
- Lc(t, r, _), r.blockedSegment.formatContext = f, r.legacyContext = b, r.context = S, ti(S), r.componentStack = P;
5756
+ Oc(t, r, _), r.blockedSegment.formatContext = f, r.legacyContext = b, r.context = S, ti(S), r.componentStack = P;
5757
5757
  return;
5758
5758
  } else
5759
5759
  throw r.blockedSegment.formatContext = f, r.legacyContext = b, r.context = S, ti(S), r.componentStack = P, _;
5760
5760
  }
5761
5761
  }
5762
- function Qc(t, r, s, f) {
5762
+ function Lc(t, r, s, f) {
5763
5763
  var b = ui(t, f);
5764
5764
  if (r === null ? Mn(t, f) : (r.pendingTasks--, r.forceClientRender || (r.forceClientRender = !0, r.errorDigest = b, xa(r, f), r.parentFlushed && t.clientRenderedBoundaries.push(r))), t.allPendingTasks--, t.allPendingTasks === 0) {
5765
5765
  var S = t.onAllReady;
@@ -5835,7 +5835,7 @@ Error generating stack: ` + f.message + `
5835
5835
  S();
5836
5836
  }
5837
5837
  }
5838
- function Fc(t, r) {
5838
+ function Qc(t, r) {
5839
5839
  var s = r.blockedSegment;
5840
5840
  if (s.status === ma) {
5841
5841
  ti(r.context);
@@ -5848,7 +5848,7 @@ Error generating stack: ` + f.message + `
5848
5848
  var b = r.ping;
5849
5849
  S.then(b, b);
5850
5850
  } else
5851
- r.abortSet.delete(r), s.status = ba, Qc(t, r.blockedBoundary, s, S);
5851
+ r.abortSet.delete(r), s.status = ba, Lc(t, r.blockedBoundary, s, S);
5852
5852
  } finally {
5853
5853
  cr = f;
5854
5854
  }
@@ -5866,7 +5866,7 @@ Error generating stack: ` + f.message + `
5866
5866
  var S = t.pingedTasks, P;
5867
5867
  for (P = 0; P < S.length; P++) {
5868
5868
  var _ = S[P];
5869
- Fc(t, _);
5869
+ Qc(t, _);
5870
5870
  }
5871
5871
  S.splice(0, P), t.destination !== null && ka(t, t.destination);
5872
5872
  } catch (Y) {
@@ -5902,7 +5902,7 @@ Error generating stack: ` + f.message + `
5902
5902
  if (f === null)
5903
5903
  return $r(t, r, s);
5904
5904
  if (f.parentFlushed = !0, f.forceClientRender)
5905
- return Zl(r, t.responseState, f.errorDigest, f.errorMessage, f.errorComponentStack), $r(t, r, s), ec(r, t.responseState);
5905
+ return $l(r, t.responseState, f.errorDigest, f.errorMessage, f.errorComponentStack), $r(t, r, s), ql(r, t.responseState);
5906
5906
  if (f.pendingTasks > 0) {
5907
5907
  f.rootSegmentID = t.nextSegmentId++, f.completedSegments.length > 0 && t.partialBoundaries.push(f);
5908
5908
  var b = f.id = Dn(t.responseState);
@@ -5910,16 +5910,16 @@ Error generating stack: ` + f.message + `
5910
5910
  } else {
5911
5911
  if (f.byteSize > t.progressiveChunkSize)
5912
5912
  return f.rootSegmentID = t.nextSegmentId++, t.completedBoundaries.push(f), Nr(r, t.responseState, f.id), $r(t, r, s), xr(r, t.responseState);
5913
- $l(r, t.responseState);
5913
+ Kl(r, t.responseState);
5914
5914
  var S = f.completedSegments;
5915
5915
  if (S.length !== 1)
5916
5916
  throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");
5917
5917
  var P = S[0];
5918
- return gi(t, r, P), ql(r, t.responseState);
5918
+ return gi(t, r, P), Zl(r, t.responseState);
5919
5919
  }
5920
5920
  }
5921
- function _c(t, r, s) {
5922
- return Vl(r, t.responseState, s.id, s.errorDigest, s.errorMessage, s.errorComponentStack);
5921
+ function Fc(t, r, s) {
5922
+ return Gl(r, t.responseState, s.id, s.errorDigest, s.errorMessage, s.errorComponentStack);
5923
5923
  }
5924
5924
  function Es(t, r, s) {
5925
5925
  return Yo(r, t.responseState, s.formatContext, s.id), gi(t, r, s), Ui(r, s.formatContext);
@@ -5958,7 +5958,7 @@ Error generating stack: ` + f.message + `
5958
5958
  var f = t.clientRenderedBoundaries, b;
5959
5959
  for (b = 0; b < f.length; b++) {
5960
5960
  var S = f[b];
5961
- if (!_c(t, r, S)) {
5961
+ if (!Fc(t, r, S)) {
5962
5962
  t.destination = null, b++, f.splice(0, b);
5963
5963
  return;
5964
5964
  }
@@ -6000,7 +6000,7 @@ Error generating stack: ` + f.message + `
6000
6000
  return Ss(t);
6001
6001
  });
6002
6002
  }
6003
- function Hc(t, r) {
6003
+ function _c(t, r) {
6004
6004
  if (t.status === fs) {
6005
6005
  t.status = Xr, D(r, t.fatalError);
6006
6006
  return;
@@ -6038,26 +6038,26 @@ Error generating stack: ` + f.message + `
6038
6038
  function re() {
6039
6039
  Y = !0;
6040
6040
  }
6041
- var oe = Do(t, Jl(s, r ? r.identifierPrefix : void 0), Kl(), 1 / 0, ks, void 0, re);
6042
- if (yl(oe), bl(oe, f), Hc(oe, _), b)
6041
+ var oe = Do(t, Xl(s, r ? r.identifierPrefix : void 0), Jl(), 1 / 0, ks, void 0, re);
6042
+ if (yl(oe), bl(oe, f), _c(oe, _), b)
6043
6043
  throw S;
6044
6044
  if (!Y)
6045
6045
  throw new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");
6046
6046
  return P;
6047
6047
  }
6048
- function Nc(t, r) {
6048
+ function Hc(t, r) {
6049
6049
  return wl(t, r, !1, 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server');
6050
6050
  }
6051
6051
  function xl(t, r) {
6052
6052
  return wl(t, r, !0, 'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server');
6053
6053
  }
6054
- function Uc() {
6054
+ function Nc() {
6055
6055
  throw new Error("ReactDOMServer.renderToNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToString() instead.");
6056
6056
  }
6057
6057
  function l() {
6058
6058
  throw new Error("ReactDOMServer.renderToStaticNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToStaticMarkup() instead.");
6059
6059
  }
6060
- yi.renderToNodeStream = Uc, yi.renderToStaticMarkup = xl, yi.renderToStaticNodeStream = l, yi.renderToString = Nc, yi.version = n;
6060
+ yi.renderToNodeStream = Nc, yi.renderToStaticMarkup = xl, yi.renderToStaticNodeStream = l, yi.renderToString = Hc, yi.version = n;
6061
6061
  }()), yi;
6062
6062
  }
6063
6063
  var El = {};
@@ -7999,24 +7999,24 @@ function yf() {
7999
7999
  throw new Error("Unknown insertion mode. This is a bug in React.");
8000
8000
  }
8001
8001
  }
8002
- var zt = "function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)}", an = 'function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}', sn = 'function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())}', yo = I(zt + ';$RS("'), zi = I('$RS("'), zr = I('","'), Vl = I('")<\/script>');
8003
- function Xl(l, t, r) {
8002
+ var zt = "function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)}", an = 'function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}', sn = 'function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())}', yo = I(zt + ';$RS("'), zi = I('$RS("'), zr = I('","'), Gl = I('")<\/script>');
8003
+ function Vl(l, t, r) {
8004
8004
  m(l, t.startInlineScript), t.sentCompleteSegmentFunction ? m(l, zi) : (t.sentCompleteSegmentFunction = !0, m(l, yo)), m(l, t.segmentPrefix);
8005
8005
  var s = E(r.toString(16));
8006
- return m(l, s), m(l, zr), m(l, t.placeholderPrefix), m(l, s), y(l, Vl);
8006
+ return m(l, s), m(l, zr), m(l, t.placeholderPrefix), m(l, s), y(l, Gl);
8007
8007
  }
8008
- var za = I(an + ';$RC("'), Jl = I('$RC("'), Kl = I('","'), Fs = I('")<\/script>');
8008
+ var za = I(an + ';$RC("'), Xl = I('$RC("'), Jl = I('","'), Fs = I('")<\/script>');
8009
8009
  function _s(l, t, r, s) {
8010
- if (m(l, t.startInlineScript), t.sentCompleteBoundaryFunction ? m(l, Jl) : (t.sentCompleteBoundaryFunction = !0, m(l, za)), r === null)
8010
+ if (m(l, t.startInlineScript), t.sentCompleteBoundaryFunction ? m(l, Xl) : (t.sentCompleteBoundaryFunction = !0, m(l, za)), r === null)
8011
8011
  throw new Error("An ID must have been assigned before we can complete the boundary.");
8012
8012
  var f = E(s.toString(16));
8013
- return m(l, r), m(l, Kl), m(l, t.segmentPrefix), m(l, f), y(l, Fs);
8013
+ return m(l, r), m(l, Jl), m(l, t.segmentPrefix), m(l, f), y(l, Fs);
8014
8014
  }
8015
- var $l = I(sn + ';$RX("'), Zl = I('$RX("'), ql = I('"'), ec = I(")<\/script>"), Kt = I(",");
8016
- function tc(l, t, r, s, f, b) {
8017
- if (m(l, t.startInlineScript), t.sentClientRenderFunction ? m(l, Zl) : (t.sentClientRenderFunction = !0, m(l, $l)), r === null)
8015
+ var Kl = I(sn + ';$RX("'), $l = I('$RX("'), Zl = I('"'), ql = I(")<\/script>"), Kt = I(",");
8016
+ function ec(l, t, r, s, f, b) {
8017
+ if (m(l, t.startInlineScript), t.sentClientRenderFunction ? m(l, $l) : (t.sentClientRenderFunction = !0, m(l, Kl)), r === null)
8018
8018
  throw new Error("An ID must have been assigned before we can complete the boundary.");
8019
- return m(l, r), m(l, ql), (s || f || b) && (m(l, Kt), m(l, E(ji(s || "")))), (f || b) && (m(l, Kt), m(l, E(ji(f || "")))), b && (m(l, Kt), m(l, E(ji(b)))), y(l, ec);
8019
+ return m(l, r), m(l, Zl), (s || f || b) && (m(l, Kt), m(l, E(ji(s || "")))), (f || b) && (m(l, Kt), m(l, E(ji(f || "")))), b && (m(l, Kt), m(l, E(ji(b)))), y(l, ql);
8020
8020
  }
8021
8021
  var Hs = /[<\u2028\u2029]/g;
8022
8022
  function ji(l) {
@@ -8034,7 +8034,7 @@ function yf() {
8034
8034
  }
8035
8035
  });
8036
8036
  }
8037
- var ln = Object.assign, Ns = Symbol.for("react.element"), Wi = Symbol.for("react.portal"), Yi = Symbol.for("react.fragment"), Gi = Symbol.for("react.strict_mode"), Vi = Symbol.for("react.profiler"), Go = Symbol.for("react.provider"), Vo = Symbol.for("react.context"), bo = Symbol.for("react.forward_ref"), ja = Symbol.for("react.suspense"), Wa = Symbol.for("react.suspense_list"), Ya = Symbol.for("react.memo"), Xi = Symbol.for("react.lazy"), Us = Symbol.for("react.scope"), nc = Symbol.for("react.debug_trace_mode"), rc = Symbol.for("react.legacy_hidden"), oc = Symbol.for("react.default_value"), Ga = Symbol.iterator, ct = "@@iterator";
8037
+ var ln = Object.assign, Ns = Symbol.for("react.element"), Wi = Symbol.for("react.portal"), Yi = Symbol.for("react.fragment"), Gi = Symbol.for("react.strict_mode"), Vi = Symbol.for("react.profiler"), Go = Symbol.for("react.provider"), Vo = Symbol.for("react.context"), bo = Symbol.for("react.forward_ref"), ja = Symbol.for("react.suspense"), Wa = Symbol.for("react.suspense_list"), Ya = Symbol.for("react.memo"), Xi = Symbol.for("react.lazy"), Us = Symbol.for("react.scope"), tc = Symbol.for("react.debug_trace_mode"), nc = Symbol.for("react.legacy_hidden"), rc = Symbol.for("react.default_value"), Ga = Symbol.iterator, ct = "@@iterator";
8038
8038
  function Xo(l) {
8039
8039
  if (l === null || typeof l != "object")
8040
8040
  return null;
@@ -8174,8 +8174,8 @@ function yf() {
8174
8174
  }
8175
8175
  var es = !1, Ko;
8176
8176
  {
8177
- var ic = typeof WeakMap == "function" ? WeakMap : Map;
8178
- Ko = new ic();
8177
+ var oc = typeof WeakMap == "function" ? WeakMap : Map;
8178
+ Ko = new oc();
8179
8179
  }
8180
8180
  function $o(l, t) {
8181
8181
  if (!l || es)
@@ -8415,14 +8415,14 @@ function yf() {
8415
8415
  };
8416
8416
  return kr = f, f;
8417
8417
  }
8418
- function ac(l) {
8418
+ function ic(l) {
8419
8419
  var t = kr;
8420
8420
  if (t === null)
8421
8421
  throw new Error("Tried to pop a Context at the root of the app. This is a bug in React.");
8422
8422
  t.context !== l && o("The parent context is not the expected context. This is probably a bug in React.");
8423
8423
  {
8424
8424
  var r = t.parentValue;
8425
- r === oc ? t.context._currentValue = t.context._defaultValue : t.context._currentValue = r, l._currentRenderer !== void 0 && l._currentRenderer !== null && l._currentRenderer !== Yr && o("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."), l._currentRenderer = Yr;
8425
+ r === rc ? t.context._currentValue = t.context._defaultValue : t.context._currentValue = r, l._currentRenderer !== void 0 && l._currentRenderer !== null && l._currentRenderer !== Yr && o("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."), l._currentRenderer = Yr;
8426
8426
  }
8427
8427
  return kr = t.parent;
8428
8428
  }
@@ -8482,7 +8482,7 @@ Please check the code for the %s component.`, t, t, s), oa[f] = !0;
8482
8482
  r.queue === null ? Zs(l, "forceUpdate") : t != null && ii(t, "setState");
8483
8483
  }
8484
8484
  };
8485
- function sc(l, t, r, s, f) {
8485
+ function ac(l, t, r, s, f) {
8486
8486
  var b = r(f, s);
8487
8487
  sa(t, b);
8488
8488
  var S = b == null ? s : ln({}, s, b);
@@ -8526,7 +8526,7 @@ https://reactjs.org/link/unsafe-component-lifecycles`, fe, De, Y !== null ? `
8526
8526
  }
8527
8527
  return P;
8528
8528
  }
8529
- function lc(l, t, r) {
8529
+ function sc(l, t, r) {
8530
8530
  {
8531
8531
  var s = at(t) || "Component", f = l.render;
8532
8532
  f || (t.prototype && typeof t.prototype.render == "function" ? o("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?", s) : o("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.", s)), l.getInitialState && !l.getInitialState.isReactClassApproved && !l.state && o("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?", s), l.getDefaultProps && !l.getDefaultProps.isReactClassApproved && o("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.", s), l.propTypes && o("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.", s), l.contextType && o("contextType was defined as an instance property on %s. Use a static property to define contextType instead.", s), l.contextTypes && o("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.", s), t.contextType && t.contextTypes && !ca.has(t) && (ca.add(t), o("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.", s)), typeof l.componentShouldUpdate == "function" && o("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.", s), t.prototype && t.prototype.isPureReactComponent && typeof l.shouldComponentUpdate < "u" && o("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.", at(t) || "A pure component"), typeof l.componentDidUnmount == "function" && o("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?", s), typeof l.componentDidReceiveProps == "function" && o("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().", s), typeof l.componentWillRecieveProps == "function" && o("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?", s), typeof l.UNSAFE_componentWillRecieveProps == "function" && o("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?", s);
@@ -8536,7 +8536,7 @@ https://reactjs.org/link/unsafe-component-lifecycles`, fe, De, Y !== null ? `
8536
8536
  S && (typeof S != "object" || _t(S)) && o("%s.state: must be set to an object or null", s), typeof l.getChildContext == "function" && typeof t.childContextTypes != "object" && o("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().", s);
8537
8537
  }
8538
8538
  }
8539
- function cc(l, t) {
8539
+ function lc(l, t) {
8540
8540
  var r = t.state;
8541
8541
  if (typeof t.componentWillMount == "function") {
8542
8542
  if (t.componentWillMount.__suppressDeprecationWarning !== !0) {
@@ -8571,7 +8571,7 @@ Please update the following components: %s`,
8571
8571
  l.queue = null;
8572
8572
  }
8573
8573
  function ai(l, t, r, s) {
8574
- lc(l, t, r);
8574
+ sc(l, t, r);
8575
8575
  var f = l.state !== void 0 ? l.state : null;
8576
8576
  l.updater = qs, l.props = r, l.state = f;
8577
8577
  var b = {
@@ -8585,14 +8585,14 @@ Please update the following components: %s`,
8585
8585
  la.has(P) || (la.add(P), o("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.", P));
8586
8586
  }
8587
8587
  var _ = t.getDerivedStateFromProps;
8588
- typeof _ == "function" && (l.state = sc(l, t, _, f, r)), typeof t.getDerivedStateFromProps != "function" && typeof l.getSnapshotBeforeUpdate != "function" && (typeof l.UNSAFE_componentWillMount == "function" || typeof l.componentWillMount == "function") && (cc(t, l), as(b, l, r, s));
8588
+ typeof _ == "function" && (l.state = ac(l, t, _, f, r)), typeof t.getDerivedStateFromProps != "function" && typeof l.getSnapshotBeforeUpdate != "function" && (typeof l.UNSAFE_componentWillMount == "function" || typeof l.componentWillMount == "function") && (lc(t, l), as(b, l, r, s));
8589
8589
  }
8590
- var uc = {
8590
+ var cc = {
8591
8591
  id: 1,
8592
8592
  overflow: ""
8593
8593
  };
8594
- function Ac(l) {
8595
- var t = l.overflow, r = l.id, s = r & ~dc(r);
8594
+ function uc(l) {
8595
+ var t = l.overflow, r = l.id, s = r & ~Ac(r);
8596
8596
  return s.toString(32) + t;
8597
8597
  }
8598
8598
  function ss(l, t, r) {
@@ -8604,28 +8604,28 @@ Please update the following components: %s`,
8604
8604
  overflow: qr
8605
8605
  };
8606
8606
  } else {
8607
- var dr = P << b, Bo = dr | S, zc = f;
8607
+ var dr = P << b, Bo = dr | S, Uc = f;
8608
8608
  return {
8609
8609
  id: 1 << _ | Bo,
8610
- overflow: zc
8610
+ overflow: Uc
8611
8611
  };
8612
8612
  }
8613
8613
  }
8614
8614
  function ua(l) {
8615
- return 32 - fc(l);
8615
+ return 32 - dc(l);
8616
8616
  }
8617
- function dc(l) {
8617
+ function Ac(l) {
8618
8618
  return 1 << ua(l) - 1;
8619
8619
  }
8620
- var fc = Math.clz32 ? Math.clz32 : ls, pc = Math.log, lr = Math.LN2;
8620
+ var dc = Math.clz32 ? Math.clz32 : ls, fc = Math.log, lr = Math.LN2;
8621
8621
  function ls(l) {
8622
8622
  var t = l >>> 0;
8623
- return t === 0 ? 32 : 31 - (pc(t) / lr | 0) | 0;
8623
+ return t === 0 ? 32 : 31 - (fc(t) / lr | 0) | 0;
8624
8624
  }
8625
8625
  function Aa(l, t) {
8626
8626
  return l === t && (l !== 0 || 1 / l === 1 / t) || l !== l && t !== t;
8627
8627
  }
8628
- var rt = typeof Object.is == "function" ? Object.is : Aa, cn = null, ko = null, Gr = null, We = null, Pr = !1, da = !1, un = 0, An = null, Jn = 0, hc = 25, Rn = !1, Tr;
8628
+ var rt = typeof Object.is == "function" ? Object.is : Aa, cn = null, ko = null, Gr = null, We = null, Pr = !1, da = !1, un = 0, An = null, Jn = 0, pc = 25, Rn = !1, Tr;
8629
8629
  function Vr() {
8630
8630
  if (cn === null)
8631
8631
  throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
@@ -8635,7 +8635,7 @@ Please update the following components: %s`,
8635
8635
  See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);
8636
8636
  return Rn && o("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks"), cn;
8637
8637
  }
8638
- function gc(l, t) {
8638
+ function hc(l, t) {
8639
8639
  if (t === null)
8640
8640
  return o("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.", Tr), !1;
8641
8641
  l.length !== t.length && o(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
@@ -8659,10 +8659,10 @@ Incoming: %s`, Tr, "[" + l.join(", ") + "]", "[" + t.join(", ") + "]");
8659
8659
  function si() {
8660
8660
  return We === null ? Gr === null ? (Pr = !1, Gr = We = cs()) : (Pr = !0, We = Gr) : We.next === null ? (Pr = !1, We = We.next = cs()) : (Pr = !0, We = We.next), We;
8661
8661
  }
8662
- function mc(l, t) {
8662
+ function gc(l, t) {
8663
8663
  cn = t, ko = l, Rn = !1, un = 0;
8664
8664
  }
8665
- function vc(l, t, r, s) {
8665
+ function mc(l, t, r, s) {
8666
8666
  for (; da; )
8667
8667
  da = !1, un = 0, Jn += 1, We = null, r = l(t, s);
8668
8668
  return us(), r;
@@ -8683,7 +8683,7 @@ Incoming: %s`, Tr, "[" + l.join(", ") + "]", "[" + t.join(", ") + "]");
8683
8683
  function As(l, t) {
8684
8684
  return typeof t == "function" ? t(l) : t;
8685
8685
  }
8686
- function yc(l) {
8686
+ function vc(l) {
8687
8687
  return Tr = "useState", rl(
8688
8688
  As,
8689
8689
  // useReducer has a special case to support lazy useState initializers
@@ -8713,7 +8713,7 @@ Incoming: %s`, Tr, "[" + l.join(", ") + "]", "[" + t.join(", ") + "]");
8713
8713
  var re = We.queue = {
8714
8714
  last: null,
8715
8715
  dispatch: null
8716
- }, oe = re.dispatch = xc.bind(null, cn, re);
8716
+ }, oe = re.dispatch = wc.bind(null, cn, re);
8717
8717
  return [We.memoizedState, oe];
8718
8718
  }
8719
8719
  }
@@ -8724,7 +8724,7 @@ Incoming: %s`, Tr, "[" + l.join(", ") + "]", "[" + t.join(", ") + "]");
8724
8724
  var s = We.memoizedState;
8725
8725
  if (s !== null && r !== null) {
8726
8726
  var f = s[1];
8727
- if (gc(r, f))
8727
+ if (hc(r, f))
8728
8728
  return s[0];
8729
8729
  }
8730
8730
  }
@@ -8732,7 +8732,7 @@ Incoming: %s`, Tr, "[" + l.join(", ") + "]", "[" + t.join(", ") + "]");
8732
8732
  var b = l();
8733
8733
  return Rn = !1, We.memoizedState = [b, r], b;
8734
8734
  }
8735
- function bc(l) {
8735
+ function yc(l) {
8736
8736
  cn = Vr(), We = si();
8737
8737
  var t = We.memoizedState;
8738
8738
  if (t === null) {
@@ -8743,11 +8743,11 @@ Incoming: %s`, Tr, "[" + l.join(", ") + "]", "[" + t.join(", ") + "]");
8743
8743
  } else
8744
8744
  return t;
8745
8745
  }
8746
- function wc(l, t) {
8746
+ function bc(l, t) {
8747
8747
  Tr = "useLayoutEffect", o("useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes.");
8748
8748
  }
8749
- function xc(l, t, r) {
8750
- if (Jn >= hc)
8749
+ function wc(l, t, r) {
8750
+ if (Jn >= pc)
8751
8751
  throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");
8752
8752
  if (l === cn) {
8753
8753
  da = !0;
@@ -8766,15 +8766,15 @@ Incoming: %s`, Tr, "[" + l.join(", ") + "]", "[" + t.join(", ") + "]");
8766
8766
  }
8767
8767
  }
8768
8768
  }
8769
- function Sc(l, t) {
8769
+ function xc(l, t) {
8770
8770
  return ol(function() {
8771
8771
  return l;
8772
8772
  }, t);
8773
8773
  }
8774
- function Ec(l, t, r) {
8774
+ function Sc(l, t, r) {
8775
8775
  return Vr(), t(l._source);
8776
8776
  }
8777
- function kc(l, t, r) {
8777
+ function Ec(l, t, r) {
8778
8778
  if (r === void 0)
8779
8779
  throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");
8780
8780
  return r();
@@ -8789,7 +8789,7 @@ Incoming: %s`, Tr, "[" + l.join(", ") + "]", "[" + t.join(", ") + "]");
8789
8789
  return Vr(), [!1, il];
8790
8790
  }
8791
8791
  function al() {
8792
- var l = ko, t = Ac(l.treeContext), r = li;
8792
+ var l = ko, t = uc(l.treeContext), r = li;
8793
8793
  if (r === null)
8794
8794
  throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");
8795
8795
  var s = un++;
@@ -8802,11 +8802,11 @@ Incoming: %s`, Tr, "[" + l.join(", ") + "]", "[" + t.join(", ") + "]");
8802
8802
  useContext: nl,
8803
8803
  useMemo: ol,
8804
8804
  useReducer: rl,
8805
- useRef: bc,
8806
- useState: yc,
8805
+ useRef: yc,
8806
+ useState: vc,
8807
8807
  useInsertionEffect: ha,
8808
- useLayoutEffect: wc,
8809
- useCallback: Sc,
8808
+ useLayoutEffect: bc,
8809
+ useCallback: xc,
8810
8810
  // useImperativeHandle is not run in the server environment
8811
8811
  useImperativeHandle: ha,
8812
8812
  // Effects are not run in the server environment.
@@ -8817,8 +8817,8 @@ Incoming: %s`, Tr, "[" + l.join(", ") + "]", "[" + t.join(", ") + "]");
8817
8817
  useTransition: ds,
8818
8818
  useId: al,
8819
8819
  // Subscriptions are not setup in a server environment.
8820
- useMutableSource: Ec,
8821
- useSyncExternalStore: kc
8820
+ useMutableSource: Sc,
8821
+ useSyncExternalStore: Ec
8822
8822
  }, li = null;
8823
8823
  function ma(l) {
8824
8824
  li = l;
@@ -8847,8 +8847,8 @@ Error generating stack: ` + s.message + `
8847
8847
  ` + s.stack;
8848
8848
  }
8849
8849
  }
8850
- var va = i.ReactCurrentDispatcher, ya = i.ReactDebugCurrentFrame, ba = 0, Po = 1, fs = 2, Xr = 3, sl = 4, Cc = 0, To = 1, Do = 2, Pc = 12800;
8851
- function Tc(l) {
8850
+ var va = i.ReactCurrentDispatcher, ya = i.ReactDebugCurrentFrame, ba = 0, Po = 1, fs = 2, Xr = 3, sl = 4, kc = 0, To = 1, Do = 2, Cc = 12800;
8851
+ function Pc(l) {
8852
8852
  return console.error(l), null;
8853
8853
  }
8854
8854
  function Jr() {
@@ -8857,8 +8857,8 @@ Error generating stack: ` + s.message + `
8857
8857
  var Y = [], re = /* @__PURE__ */ new Set(), oe = {
8858
8858
  destination: null,
8859
8859
  responseState: t,
8860
- progressiveChunkSize: s === void 0 ? Pc : s,
8861
- status: Cc,
8860
+ progressiveChunkSize: s === void 0 ? Cc : s,
8861
+ status: kc,
8862
8862
  fatalError: null,
8863
8863
  nextSegmentId: 0,
8864
8864
  allPendingTasks: 0,
@@ -8869,7 +8869,7 @@ Error generating stack: ` + s.message + `
8869
8869
  clientRenderedBoundaries: [],
8870
8870
  completedBoundaries: [],
8871
8871
  partialBoundaries: [],
8872
- onError: f === void 0 ? Tc : f,
8872
+ onError: f === void 0 ? Pc : f,
8873
8873
  onAllReady: b === void 0 ? Jr : b,
8874
8874
  onShellReady: S === void 0 ? Jr : S,
8875
8875
  onShellError: P === void 0 ? Jr : P,
@@ -8884,7 +8884,7 @@ Error generating stack: ` + s.message + `
8884
8884
  !1
8885
8885
  );
8886
8886
  fe.parentFlushed = !0;
8887
- var De = Kr(oe, l, null, fe, re, ea, ta, uc);
8887
+ var De = Kr(oe, l, null, fe, re, ea, ta, cc);
8888
8888
  return Y.push(De), oe;
8889
8889
  }
8890
8890
  function cr(l, t) {
@@ -9021,7 +9021,7 @@ Error generating stack: ` + s.message + `
9021
9021
  var fe = Kr(l, b, s, re, P, t.legacyContext, t.context, t.treeContext);
9022
9022
  fe.componentStack = t.componentStack, l.pingedTasks.push(fe), Mn(t);
9023
9023
  }
9024
- function Dc(l, t, r, s) {
9024
+ function Tc(l, t, r, s) {
9025
9025
  Ar(t, r);
9026
9026
  var f = t.blockedSegment, b = Hr(f.chunks, r, s, l.responseState, f.formatContext);
9027
9027
  f.lastPushedText = !1;
@@ -9033,9 +9033,9 @@ Error generating stack: ` + s.message + `
9033
9033
  }
9034
9034
  function pi(l, t, r, s, f) {
9035
9035
  var b = {};
9036
- mc(t, b);
9036
+ gc(t, b);
9037
9037
  var S = r(s, f);
9038
- return vc(r, s, S, f);
9038
+ return mc(r, s, S, f);
9039
9039
  }
9040
9040
  function gs(l, t, r, s, f) {
9041
9041
  var b = r.render();
@@ -9056,7 +9056,7 @@ Error generating stack: ` + s.message + `
9056
9056
  ai(b, r, s, f), gs(l, t, b, r, s), Mn(t);
9057
9057
  }
9058
9058
  var ms = {}, hi = {}, vs = {}, ys = {}, bs = !1, Al = {}, dl = !1, ws = !1, fl = !1;
9059
- function Ic(l, t, r, s) {
9059
+ function Dc(l, t, r, s) {
9060
9060
  var f;
9061
9061
  if (f = Er(r, t.legacyContext), xa(t, r), r.prototype && typeof r.prototype.render == "function") {
9062
9062
  var b = at(r) || "Unknown";
@@ -9077,7 +9077,7 @@ Error generating stack: ` + s.message + `
9077
9077
  hi[Y] || (o("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.", Y, Y, Y), hi[Y] = !0);
9078
9078
  }
9079
9079
  ai(S, r, s, f), gs(l, t, S, r, s);
9080
- } else if (Bc(r), P) {
9080
+ } else if (Ic(r), P) {
9081
9081
  var re = t.treeContext, oe = 1, fe = 0;
9082
9082
  t.treeContext = ss(re, oe, fe);
9083
9083
  try {
@@ -9089,7 +9089,7 @@ Error generating stack: ` + s.message + `
9089
9089
  jt(l, t, S);
9090
9090
  Mn(t);
9091
9091
  }
9092
- function Bc(l) {
9092
+ function Ic(l) {
9093
9093
  {
9094
9094
  if (l && l.childContextTypes && o("%s(...): childContextTypes cannot be defined on a function component.", l.displayName || l.name || "Component"), l.defaultProps !== void 0) {
9095
9095
  var t = at(l) || "Unknown";
@@ -9114,7 +9114,7 @@ Error generating stack: ` + s.message + `
9114
9114
  }
9115
9115
  return t;
9116
9116
  }
9117
- function Rc(l, t, r, s, f) {
9117
+ function Bc(l, t, r, s, f) {
9118
9118
  xa(t, r.render);
9119
9119
  var b = pi(l, t, r.render, s, f), S = fa();
9120
9120
  if (S) {
@@ -9133,7 +9133,7 @@ Error generating stack: ` + s.message + `
9133
9133
  var b = r.type, S = pl(b, s);
9134
9134
  Sa(l, t, b, S, f);
9135
9135
  }
9136
- function Mc(l, t, r, s) {
9136
+ function Rc(l, t, r, s) {
9137
9137
  r._context === void 0 ? r !== r.Consumer && (fl || (fl = !0, o("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))) : r = r._context;
9138
9138
  var f = s.children;
9139
9139
  typeof f != "function" && o("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");
@@ -9142,9 +9142,9 @@ Error generating stack: ` + s.message + `
9142
9142
  }
9143
9143
  function dn(l, t, r, s) {
9144
9144
  var f = r._context, b = s.value, S = s.children, P;
9145
- P = t.context, t.context = rs(f, b), jt(l, t, S), t.context = ac(f), P !== t.context && o("Popping the context provider did not return back to the original snapshot. This is a bug in React.");
9145
+ P = t.context, t.context = rs(f, b), jt(l, t, S), t.context = ic(f), P !== t.context && o("Popping the context provider did not return back to the original snapshot. This is a bug in React.");
9146
9146
  }
9147
- function Oc(l, t, r, s, f) {
9147
+ function Mc(l, t, r, s, f) {
9148
9148
  Ar(t, "Lazy");
9149
9149
  var b = r._payload, S = r._init, P = S(b), _ = pl(P, s);
9150
9150
  Sa(l, t, P, _, f), Mn(t);
@@ -9155,16 +9155,16 @@ Error generating stack: ` + s.message + `
9155
9155
  ul(l, t, r, s);
9156
9156
  return;
9157
9157
  } else {
9158
- Ic(l, t, r, s);
9158
+ Dc(l, t, r, s);
9159
9159
  return;
9160
9160
  }
9161
9161
  if (typeof r == "string") {
9162
- Dc(l, t, r, s);
9162
+ Tc(l, t, r, s);
9163
9163
  return;
9164
9164
  }
9165
9165
  switch (r) {
9166
- case rc:
9167
9166
  case nc:
9167
+ case tc:
9168
9168
  case Gi:
9169
9169
  case Vi:
9170
9170
  case Yi: {
@@ -9185,7 +9185,7 @@ Error generating stack: ` + s.message + `
9185
9185
  if (typeof r == "object" && r !== null)
9186
9186
  switch (r.$$typeof) {
9187
9187
  case bo: {
9188
- Rc(l, t, r, s, f);
9188
+ Bc(l, t, r, s, f);
9189
9189
  return;
9190
9190
  }
9191
9191
  case Ya: {
@@ -9197,29 +9197,29 @@ Error generating stack: ` + s.message + `
9197
9197
  return;
9198
9198
  }
9199
9199
  case Vo: {
9200
- Mc(l, t, r, s);
9200
+ Rc(l, t, r, s);
9201
9201
  return;
9202
9202
  }
9203
9203
  case Xi: {
9204
- Oc(l, t, r, s);
9204
+ Mc(l, t, r, s);
9205
9205
  return;
9206
9206
  }
9207
9207
  }
9208
9208
  var b = "";
9209
9209
  throw (r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (b += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) " + ("but got: " + (r == null ? r : typeof r) + "." + b));
9210
9210
  }
9211
- function Lc(l, t) {
9211
+ function Oc(l, t) {
9212
9212
  typeof Symbol == "function" && // $FlowFixMe Flow doesn't know about toStringTag
9213
9213
  l[Symbol.toStringTag] === "Generator" && (dl || o("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."), dl = !0), l.entries === t && (ws || o("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), ws = !0);
9214
9214
  }
9215
9215
  function jt(l, t, r) {
9216
9216
  try {
9217
- return Qc(l, t, r);
9217
+ return Lc(l, t, r);
9218
9218
  } catch (s) {
9219
9219
  throw typeof s == "object" && s !== null && typeof s.then == "function" || (Ai = Ai !== null ? Ai : Kn()), s;
9220
9220
  }
9221
9221
  }
9222
- function Qc(l, t, r) {
9222
+ function Lc(l, t, r) {
9223
9223
  if (t.node = r, typeof r == "object" && r !== null) {
9224
9224
  switch (r.$$typeof) {
9225
9225
  case Ns: {
@@ -9246,7 +9246,7 @@ Error generating stack: ` + s.message + `
9246
9246
  }
9247
9247
  var oe = Xo(r);
9248
9248
  if (oe) {
9249
- Lc(r, oe);
9249
+ Oc(r, oe);
9250
9250
  var fe = oe.call(r);
9251
9251
  if (fe) {
9252
9252
  var De = fe.next();
@@ -9324,7 +9324,7 @@ Error generating stack: ` + s.message + `
9324
9324
  b();
9325
9325
  }
9326
9326
  }
9327
- function Fc(l) {
9327
+ function Qc(l) {
9328
9328
  var t = this, r = l.blockedBoundary, s = l.blockedSegment;
9329
9329
  s.status = Xr, gi(t, r, s);
9330
9330
  }
@@ -9381,7 +9381,7 @@ Error generating stack: ` + s.message + `
9381
9381
  }
9382
9382
  } else if (t.pendingTasks--, !t.forceClientRender) {
9383
9383
  if (t.pendingTasks === 0)
9384
- r.parentFlushed && r.status === Po && $r(t, r), t.parentFlushed && l.completedBoundaries.push(t), t.fallbackAbortableTasks.forEach(Fc, l), t.fallbackAbortableTasks.clear();
9384
+ r.parentFlushed && r.status === Po && $r(t, r), t.parentFlushed && l.completedBoundaries.push(t), t.fallbackAbortableTasks.forEach(Qc, l), t.fallbackAbortableTasks.clear();
9385
9385
  else if (r.parentFlushed && r.status === Po) {
9386
9386
  $r(t, r);
9387
9387
  var f = t.completedSegments;
@@ -9393,7 +9393,7 @@ Error generating stack: ` + s.message + `
9393
9393
  b();
9394
9394
  }
9395
9395
  }
9396
- function _c(l, t) {
9396
+ function Fc(l, t) {
9397
9397
  var r = t.blockedSegment;
9398
9398
  if (r.status === ba) {
9399
9399
  Cr(t.context);
@@ -9424,7 +9424,7 @@ Error generating stack: ` + s.message + `
9424
9424
  var b = l.pingedTasks, S;
9425
9425
  for (S = 0; S < b.length; S++) {
9426
9426
  var P = b[S];
9427
- _c(l, P);
9427
+ Fc(l, P);
9428
9428
  }
9429
9429
  b.splice(0, S), l.destination !== null && ks(l, l.destination);
9430
9430
  } catch (_) {
@@ -9477,7 +9477,7 @@ Error generating stack: ` + s.message + `
9477
9477
  }
9478
9478
  }
9479
9479
  function vl(l, t, r) {
9480
- return tc(t, l.responseState, r.id, r.errorDigest, r.errorMessage, r.errorComponentStack);
9480
+ return ec(t, l.responseState, r.id, r.errorDigest, r.errorMessage, r.errorComponentStack);
9481
9481
  }
9482
9482
  function ka(l, t, r) {
9483
9483
  return Me(t, l.responseState, r.formatContext, r.id), Ea(l, t, r), et(t, r.formatContext);
@@ -9489,7 +9489,7 @@ Error generating stack: ` + s.message + `
9489
9489
  }
9490
9490
  return s.length = 0, _s(t, l.responseState, r.id, r.rootSegmentID);
9491
9491
  }
9492
- function Hc(l, t, r) {
9492
+ function _c(l, t, r) {
9493
9493
  for (var s = r.completedSegments, f = 0; f < s.length; f++) {
9494
9494
  var b = s[f];
9495
9495
  if (!bl(l, t, r, b))
@@ -9507,7 +9507,7 @@ Error generating stack: ` + s.message + `
9507
9507
  throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");
9508
9508
  return ka(l, t, s);
9509
9509
  } else
9510
- return ka(l, t, s), Xl(t, l.responseState, f);
9510
+ return ka(l, t, s), Vl(t, l.responseState, f);
9511
9511
  }
9512
9512
  function ks(l, t) {
9513
9513
  h();
@@ -9529,7 +9529,7 @@ Error generating stack: ` + s.message + `
9529
9529
  var _ = l.partialBoundaries;
9530
9530
  for (f = 0; f < _.length; f++) {
9531
9531
  var Y = _[f];
9532
- if (!Hc(l, t, Y)) {
9532
+ if (!_c(l, t, Y)) {
9533
9533
  l.destination = null, f++, _.splice(0, f);
9534
9534
  return;
9535
9535
  }
@@ -9550,7 +9550,7 @@ Error generating stack: ` + s.message + `
9550
9550
  return Es(l);
9551
9551
  });
9552
9552
  }
9553
- function Nc(l, t) {
9553
+ function Hc(l, t) {
9554
9554
  if (l.status === To) {
9555
9555
  l.status = Do, F(t, l.fatalError);
9556
9556
  return;
@@ -9574,7 +9574,7 @@ Error generating stack: ` + s.message + `
9574
9574
  di(l, s), fi(l, s);
9575
9575
  }
9576
9576
  }
9577
- function Uc(l, t) {
9577
+ function Nc(l, t) {
9578
9578
  return new Promise(function(r, s) {
9579
9579
  var f, b, S = new Promise(function(fe, De) {
9580
9580
  b = fe, f = De;
@@ -9584,7 +9584,7 @@ Error generating stack: ` + s.message + `
9584
9584
  {
9585
9585
  type: "bytes",
9586
9586
  pull: function(De) {
9587
- Nc(Y, De);
9587
+ Hc(Y, De);
9588
9588
  },
9589
9589
  cancel: function(De) {
9590
9590
  xl(Y);
@@ -9611,7 +9611,7 @@ Error generating stack: ` + s.message + `
9611
9611
  wl(Y);
9612
9612
  });
9613
9613
  }
9614
- El.renderToReadableStream = Uc, El.version = n;
9614
+ El.renderToReadableStream = Nc, El.version = n;
9615
9615
  }()), El;
9616
9616
  }
9617
9617
  var Si, uu;
@@ -9852,7 +9852,7 @@ const Mf = { [ye.START_SPEAK_AUDIO]: !0, [ye.TOGGLE_AUDIO]: !0, [ye.TOGGLE_VOICE
9852
9852
  var e;
9853
9853
  const { settings: n } = Qe(), { styles: i } = ot(), a = { borderTop: `4px solid ${(e = n.general) == null ? void 0 : e.primaryColor}`, ...i.loadingSpinnerStyle };
9854
9854
  return X("div", { className: "rcb-spinner-container", children: X("div", { style: a, className: "rcb-spinner" }) });
9855
- }, Ll = () => {
9855
+ }, Ol = () => {
9856
9856
  try {
9857
9857
  if (typeof crypto < "u" && typeof crypto.randomUUID == "function") return crypto.randomUUID();
9858
9858
  throw new Error("crypto.randomUUID not available");
@@ -9863,35 +9863,35 @@ const Mf = { [ye.START_SPEAK_AUDIO]: !0, [ye.TOGGLE_AUDIO]: !0, [ye.TOGGLE_VOICE
9863
9863
  });
9864
9864
  throw console.error(e), new Error("crypto.getRandomValues is also not available");
9865
9865
  }
9866
- }, Oo = (e, n) => ({ id: Ll(), content: e, sender: n, type: typeof e == "string" ? "string" : "object", timestamp: (/* @__PURE__ */ new Date()).toUTCString(), tags: [] });
9867
- let Qo, gd = !1, Ql = "rcb-history", Rl = 30, md = !1, Ms = [];
9868
- const Wc = async (e) => {
9866
+ }, Oo = (e, n) => ({ id: Ol(), content: e, sender: n, type: typeof e == "string" ? "string" : "object", timestamp: (/* @__PURE__ */ new Date()).toUTCString(), tags: [] });
9867
+ let Qo, gd = !1, Ll = "rcb-history", Bl = 30, md = !1, Ms = [];
9868
+ const jc = async (e) => {
9869
9869
  if (md || !Qo) return;
9870
9870
  const n = [], i = gd ? Ms.length : 0;
9871
9871
  for (let o = e.length - 1; o >= i; o--) {
9872
9872
  const c = e[o];
9873
- if (c.sender.toUpperCase() !== "SYSTEM" && (c.content !== "" && n.unshift(c), n.length === Rl)) break;
9873
+ if (c.sender.toUpperCase() !== "SYSTEM" && (c.content !== "" && n.unshift(c), n.length === Bl)) break;
9874
9874
  }
9875
9875
  let a = n.map(qf);
9876
- if (a.length < Rl) {
9877
- const o = Rl - a.length;
9876
+ if (a.length < Bl) {
9877
+ const o = Bl - a.length;
9878
9878
  a = [...Ms.slice(-o), ...a];
9879
9879
  }
9880
9880
  vd(a);
9881
9881
  }, Bu = () => Ms, Zf = (e) => {
9882
9882
  vd(e), Ms = e;
9883
9883
  }, vd = (e) => {
9884
- Qo && Qo.setItem(Ql, JSON.stringify(e));
9884
+ Qo && Qo.setItem(Ll, JSON.stringify(e));
9885
9885
  }, du = (e) => {
9886
9886
  var n, i, a, o, c;
9887
- Qo = ((i = (n = e.chatHistory) == null ? void 0 : n.storageType) == null ? void 0 : i.toUpperCase()) === "SESSION_STORAGE" ? sessionStorage : localStorage, Ql = (a = e.chatHistory) == null ? void 0 : a.storageKey, Rl = (o = e.chatHistory) == null ? void 0 : o.maxEntries, md = (c = e.chatHistory) == null ? void 0 : c.disabled, Ms = ((u) => {
9887
+ Qo = ((i = (n = e.chatHistory) == null ? void 0 : n.storageType) == null ? void 0 : i.toUpperCase()) === "SESSION_STORAGE" ? sessionStorage : localStorage, Ll = (a = e.chatHistory) == null ? void 0 : a.storageKey, Bl = (o = e.chatHistory) == null ? void 0 : o.maxEntries, md = (c = e.chatHistory) == null ? void 0 : c.disabled, Ms = ((u) => {
9888
9888
  if (u != null) try {
9889
9889
  return JSON.parse(u);
9890
9890
  } catch {
9891
9891
  return [];
9892
9892
  }
9893
9893
  return [];
9894
- })(Qo.getItem(Ql));
9894
+ })(Qo.getItem(Ll));
9895
9895
  }, qf = (e) => Tu(e.content) ? structuredClone({ id: e.id, content: Ei.renderToString(e.content), type: e.type, sender: e.sender.toUpperCase(), timestamp: e.timestamp, tags: e.tags }) : e, yd = (e, n, i) => {
9896
9896
  const a = new DOMParser().parseFromString(e, "text/html");
9897
9897
  return Array.from(a.body.childNodes).map((o, c) => {
@@ -9988,7 +9988,7 @@ const Wc = async (e) => {
9988
9988
  var e, n;
9989
9989
  const { settings: i } = Qe(), { messages: a, setSyncedMessages: o, syncedMessagesRef: c } = Iu(), { setSyncedIsBotTyping: u, setUnreadCount: d, syncedIsScrollingRef: A, syncedIsChatWindowOpenRef: p } = Bt(), { streamMessageMap: h, chatBodyRef: m, paramsInputRef: y } = Tt(), { scrollToBottom: C, getIsChatBotVisible: D } = Fn(), { dispatchRcbEvent: Q } = fr(), { speakAudio: E } = bd(), { playNotificationSound: I } = Ru(), F = Ie((V, j = !1) => {
9990
9990
  var q, $;
9991
- Wc(V);
9991
+ jc(V);
9992
9992
  let ie = !0;
9993
9993
  const ce = V[V.length - 1];
9994
9994
  if (!ce) return;
@@ -10028,7 +10028,7 @@ const Wc = async (e) => {
10028
10028
  });
10029
10029
  }, me);
10030
10030
  });
10031
- return (A.current || !p.current) && d((he) => he + 1), await Ee, Wc(c.current), (xe = i.event) != null && xe.rcbStopSimulateStreamMessage && await Q(ye.STOP_SIMULATE_STREAM_MESSAGE, { message: ge }), j === "USER" && (y.current = V), ge;
10031
+ return (A.current || !p.current) && d((he) => he + 1), await Ee, jc(c.current), (xe = i.event) != null && xe.rcbStopSimulateStreamMessage && await Q(ye.STOP_SIMULATE_STREAM_MESSAGE, { message: ge }), j === "USER" && (y.current = V), ge;
10032
10032
  }, [i, Q, F, c, y, u, d, p, E]), H = Ie(async (V, j = "BOT") => {
10033
10033
  var q, $, ie;
10034
10034
  j = j.toUpperCase();
@@ -10060,20 +10060,20 @@ const Wc = async (e) => {
10060
10060
  const ce = c.current.find((ae) => ae.id === q);
10061
10061
  ce && ($ = ce), await new Promise((ae) => setTimeout(ae, 20));
10062
10062
  }
10063
- return ((j = i.event) == null || !j.rcbStopStreamMessage || !(await Q(ye.STOP_STREAM_MESSAGE, { message: $ })).defaultPrevented) && (h.current.delete(V), Wc(c.current), V === "USER" && typeof ($ == null ? void 0 : $.content) == "string" && (y.current = $.content), !0);
10063
+ return ((j = i.event) == null || !j.rcbStopStreamMessage || !(await Q(ye.STOP_STREAM_MESSAGE, { message: $ })).defaultPrevented) && (h.current.delete(V), jc(c.current), V === "USER" && typeof ($ == null ? void 0 : $.content) == "string" && (y.current = $.content), !0);
10064
10064
  }, [Q, (n = i.event) == null ? void 0 : n.rcbStopStreamMessage, h, y]), ee = Ie((V) => {
10065
10065
  const j = typeof V == "function" ? V(c.current) : V;
10066
10066
  o(j), F(j);
10067
10067
  }, [F, c]);
10068
10068
  return { simulateStreamMessage: B, injectMessage: H, removeMessage: U, streamMessage: N, endStreamMessage: z, replaceMessages: ee, messages: a };
10069
10069
  };
10070
- let Yc, Dr, Ml, Lo = !1, Mr = null;
10070
+ let Wc, Dr, Rl, Lo = !1, Mr = null;
10071
10071
  const Mu = () => {
10072
- if (!Yc) {
10072
+ if (!Wc) {
10073
10073
  const e = window.SpeechRecognition || window.webkitSpeechRecognition;
10074
- Yc = e != null ? new e() : null;
10074
+ Wc = e != null ? new e() : null;
10075
10075
  }
10076
- return Yc;
10076
+ return Wc;
10077
10077
  }, ap = (e, n, i, a, o, c) => {
10078
10078
  var u, d, A;
10079
10079
  const p = Mu();
@@ -10085,16 +10085,16 @@ const Mu = () => {
10085
10085
  const h = (d = e.voice) == null ? void 0 : d.timeoutPeriod, m = (A = e.voice) == null ? void 0 : A.autoSendPeriod;
10086
10086
  p.onresult = (y) => {
10087
10087
  var C, D;
10088
- clearTimeout(Dr), Dr = null, clearTimeout(Ml);
10088
+ clearTimeout(Dr), Dr = null, clearTimeout(Rl);
10089
10089
  const Q = y.results[y.results.length - 1][0].transcript;
10090
10090
  if (c.current) {
10091
10091
  const E = (C = e.chatInput) == null ? void 0 : C.characterLimit, I = c.current.value + Q;
10092
10092
  E != null && E >= 0 && I.length > E ? a(I.slice(0, E)) : a(I), o(c.current.value.length);
10093
10093
  }
10094
- h && (Dr = setTimeout(async () => await Gc(n, c), h)), (D = e.voice) != null && D.autoSendDisabled || (Ml = setTimeout(i, m));
10094
+ h && (Dr = setTimeout(async () => await Yc(n, c), h)), (D = e.voice) != null && D.autoSendDisabled || (Rl = setTimeout(i, m));
10095
10095
  }, p.onend = () => {
10096
- Lo ? (p.start(), !Dr && h && (Dr = setTimeout(async () => await Gc(n, c), h))) : (clearTimeout(Dr), Dr = null, clearTimeout(Ml));
10097
- }, h && (Dr = setTimeout(async () => await Gc(n, c), h));
10096
+ Lo ? (p.start(), !Dr && h && (Dr = setTimeout(async () => await Yc(n, c), h))) : (clearTimeout(Dr), Dr = null, clearTimeout(Rl));
10097
+ }, h && (Dr = setTimeout(async () => await Yc(n, c), h));
10098
10098
  }, sp = (e, n) => {
10099
10099
  navigator.mediaDevices.getUserMedia({ audio: !0 }).then((i) => {
10100
10100
  if (Mr = new MediaRecorder(i), !Lo) try {
@@ -10111,8 +10111,8 @@ const Mu = () => {
10111
10111
  });
10112
10112
  }, Ou = () => {
10113
10113
  const e = Mu();
10114
- e && (Lo = !1, e && e.stop(), Mr && Mr.state !== "inactive" && (Mr.stop(), Mr = null), clearTimeout(Dr), Dr = null, clearTimeout(Ml));
10115
- }, Gc = async (e, n) => {
10114
+ e && (Lo = !1, e && e.stop(), Mr && Mr.state !== "inactive" && (Mr.stop(), Mr = null), clearTimeout(Dr), Dr = null, clearTimeout(Rl));
10115
+ }, Yc = async (e, n) => {
10116
10116
  var i;
10117
10117
  (i = n.current) != null && i.disabled || await e(), Ou();
10118
10118
  }, Lu = () => {
@@ -10163,7 +10163,7 @@ const Mu = () => {
10163
10163
  let D = null;
10164
10164
  if (a.current.length >= (((h = e.toast) == null ? void 0 : h.maxCount) ?? 3)) {
10165
10165
  if ((m = e.toast) != null && m.forbidOnMax) return null;
10166
- D = Ll();
10166
+ D = Ol();
10167
10167
  let E = { id: D, content: A, timeout: p };
10168
10168
  if ((y = e.event) != null && y.rcbShowToast) {
10169
10169
  const I = await o(ye.SHOW_TOAST, { toast: E });
@@ -10172,7 +10172,7 @@ const Mu = () => {
10172
10172
  }
10173
10173
  return i((I) => [...I.slice(1), E]), D;
10174
10174
  }
10175
- D = Ll();
10175
+ D = Ol();
10176
10176
  let Q = { id: D, content: A, timeout: p };
10177
10177
  if ((C = e.event) != null && C.rcbShowToast) {
10178
10178
  const E = await o(ye.SHOW_TOAST, { toast: Q });
@@ -10189,7 +10189,7 @@ const Mu = () => {
10189
10189
  i(p);
10190
10190
  }, [a]);
10191
10191
  return { showToast: c, dismissToast: u, toasts: n, replaceToasts: d };
10192
- }, Ul = () => {
10192
+ }, Nl = () => {
10193
10193
  var e, n, i, a, o;
10194
10194
  const { settings: c } = Qe(), { paths: u, setSyncedPaths: d, syncedPathsRef: A } = Qs(), { flowRef: p, streamMessageMap: h, paramsInputRef: m, keepVoiceOnRef: y, timeoutIdRef: C } = Tt(), { setSyncedIsBotTyping: D, setSyncedTextAreaDisabled: Q, setSyncedTextAreaSensitiveMode: E, blockAllowsAttachment: I, setBlockAllowsAttachment: F } = Bt(), { dispatchRcbEvent: B } = fr(), { endStreamMessage: H, injectMessage: U, removeMessage: N, simulateStreamMessage: z, streamMessage: ee } = ki(), { showToast: V, dismissToast: j } = Ra(), { toggleChatWindow: q } = Fn(), { updateTextAreaFocus: $, setTextAreaValue: ie } = Ci(), { syncVoice: ce } = Lu(), ae = Ie(async (M) => {
10195
10195
  var ue;
@@ -10247,7 +10247,7 @@ const Mu = () => {
10247
10247
  return { getCurrPath: ge, getPrevPath: me, goToPath: R, blockAllowsAttachment: I, setBlockAllowsAttachment: F, paths: u, replacePaths: de, firePostProcessBlockEvent: ae };
10248
10248
  }, Ma = () => {
10249
10249
  var e, n, i, a;
10250
- const { settings: o } = Qe(), { endStreamMessage: c, injectMessage: u, removeMessage: d, simulateStreamMessage: A, streamMessage: p } = ki(), { syncedPathsRef: h } = Qs(), { getCurrPath: m, getPrevPath: y, goToPath: C, firePostProcessBlockEvent: D } = Ul(), { setSyncedTextAreaSensitiveMode: Q, setSyncedTextAreaDisabled: E, setSyncedIsBotTyping: I, setBlockAllowsAttachment: F, setInputLength: B, syncedVoiceToggledOnRef: H, syncedTextAreaSensitiveModeRef: U } = Bt(), { flowRef: N, inputRef: z, keepVoiceOnRef: ee, paramsInputRef: V, timeoutIdRef: j } = Tt(), { showToast: q, dismissToast: $ } = Ra(), { dispatchRcbEvent: ie } = fr(), { syncVoice: ce } = Lu(), { setTextAreaValue: ae } = Ci(), { toggleChatWindow: xe } = Fn(), ge = Ie(async (R) => {
10250
+ const { settings: o } = Qe(), { endStreamMessage: c, injectMessage: u, removeMessage: d, simulateStreamMessage: A, streamMessage: p } = ki(), { syncedPathsRef: h } = Qs(), { getCurrPath: m, getPrevPath: y, goToPath: C, firePostProcessBlockEvent: D } = Nl(), { setSyncedTextAreaSensitiveMode: Q, setSyncedTextAreaDisabled: E, setSyncedIsBotTyping: I, setBlockAllowsAttachment: F, setInputLength: B, syncedVoiceToggledOnRef: H, syncedTextAreaSensitiveModeRef: U } = Bt(), { flowRef: N, inputRef: z, keepVoiceOnRef: ee, paramsInputRef: V, timeoutIdRef: j } = Tt(), { showToast: q, dismissToast: $ } = Ra(), { dispatchRcbEvent: ie } = fr(), { syncVoice: ce } = Lu(), { setTextAreaValue: ae } = Ci(), { toggleChatWindow: xe } = Fn(), ge = Ie(async (R) => {
10251
10251
  var de, M, ue, Ee, he, ve;
10252
10252
  const Te = m();
10253
10253
  if (Te && N.current[Te]) {
@@ -10277,7 +10277,7 @@ const Mu = () => {
10277
10277
  var M, ue;
10278
10278
  R = R ?? ((M = z.current) == null ? void 0 : M.value), !((ue = o.event) != null && ue.rcbUserSubmitText && (await ie(ye.USER_SUBMIT_TEXT, { inputText: R, sendInChat: de })).defaultPrevented || !m()) && me(R, de);
10279
10279
  }, [ie, m, me, z, (a = o.event) == null ? void 0 : a.rcbUserSubmitText]) };
10280
- }, zl = () => {
10280
+ }, Ul = () => {
10281
10281
  var e;
10282
10282
  const { settings: n } = Qe();
10283
10283
  return Zt(() => {
@@ -10289,7 +10289,7 @@ const Mu = () => {
10289
10289
  }, [(e = n.device) == null ? void 0 : e.applyMobileOptimizations]);
10290
10290
  }, cp = ({ buttons: e }) => {
10291
10291
  var n, i, a, o, c, u, d, A, p, h, m;
10292
- const y = zl(), { settings: C } = Qe(), { styles: D } = ot(), { textAreaDisabled: Q, textAreaSensitiveMode: E, inputLength: I, hasFlowStarted: F, setHasFlowStarted: B, setInputLength: H } = Bt(), { inputRef: U } = Tt(), [N, z] = Ue(!1), [ee, V] = Ue(!1), { handleSubmitText: j } = Ma(), { setTextAreaValue: q } = Ci(), $ = { boxSizing: y ? "content-box" : "border-box", ...D.chatInputAreaStyle }, ie = { outline: Q ? "" : "none", boxShadow: Q ? "" : `0 0 5px ${(n = C.general) == null ? void 0 : n.primaryColor}`, boxSizing: y ? "content-box" : "border-box", ...D.chatInputAreaStyle, ...D.chatInputAreaFocusedStyle }, ce = { cursor: `url("${(i = C.general) == null ? void 0 : i.actionDisabledIcon}"), auto`, caretColor: "transparent", boxSizing: y ? "content-box" : "border-box", ...D.chatInputAreaStyle, ...D.chatInputAreaDisabledStyle }, ae = { color: "#989898", ...D.characterLimitStyle }, xe = { color: "#ff0000", ...D.characterLimitReachedStyle }, ge = Q ? (a = C.chatInput) == null ? void 0 : a.disabledPlaceholderText : (o = C.chatInput) == null ? void 0 : o.enabledPlaceholderText, me = () => {
10292
+ const y = Ul(), { settings: C } = Qe(), { styles: D } = ot(), { textAreaDisabled: Q, textAreaSensitiveMode: E, inputLength: I, hasFlowStarted: F, setHasFlowStarted: B, setInputLength: H } = Bt(), { inputRef: U } = Tt(), [N, z] = Ue(!1), [ee, V] = Ue(!1), { handleSubmitText: j } = Ma(), { setTextAreaValue: q } = Ci(), $ = { boxSizing: y ? "content-box" : "border-box", ...D.chatInputAreaStyle }, ie = { outline: Q ? "" : "none", boxShadow: Q ? "" : `0 0 5px ${(n = C.general) == null ? void 0 : n.primaryColor}`, boxSizing: y ? "content-box" : "border-box", ...D.chatInputAreaStyle, ...D.chatInputAreaFocusedStyle }, ce = { cursor: `url("${(i = C.general) == null ? void 0 : i.actionDisabledIcon}"), auto`, caretColor: "transparent", boxSizing: y ? "content-box" : "border-box", ...D.chatInputAreaStyle, ...D.chatInputAreaDisabledStyle }, ae = { color: "#989898", ...D.characterLimitStyle }, xe = { color: "#ff0000", ...D.characterLimitReachedStyle }, ge = Q ? (a = C.chatInput) == null ? void 0 : a.disabledPlaceholderText : (o = C.chatInput) == null ? void 0 : o.enabledPlaceholderText, me = () => {
10293
10293
  Q || z(!0);
10294
10294
  }, R = () => {
10295
10295
  z(!1);
@@ -10329,7 +10329,7 @@ const Mu = () => {
10329
10329
  })(), !((c = d.notification) != null && c.disabled) && ((u = d.notification) == null ? void 0 : u.showCount) && X("span", { style: { ...A.notificationBadgeStyle }, className: "rcb-badge", children: p })] }) });
10330
10330
  }, dp = () => {
10331
10331
  var e, n, i, a;
10332
- const o = zl(), { settings: c } = Qe(), { styles: u } = ot(), { chatBodyRef: d } = Tt(), { isChatWindowOpen: A, toggleChatWindow: p } = Fn(), [h, m] = Ue(!1), [y, C] = Ue(!1), [D, Q] = Ue(0);
10332
+ const o = Ul(), { settings: c } = Qe(), { styles: u } = ot(), { chatBodyRef: d } = Tt(), { isChatWindowOpen: A, toggleChatWindow: p } = Fn(), [h, m] = Ue(!1), [y, C] = Ue(!1), [D, Q] = Ue(0);
10333
10333
  Ye(() => {
10334
10334
  var F, B, H;
10335
10335
  const U = (F = c.tooltip) == null ? void 0 : F.mode;
@@ -10381,7 +10381,7 @@ const Mu = () => {
10381
10381
  }
10382
10382
  }, hp = () => {
10383
10383
  var e, n, i, a, o, c;
10384
- const { settings: u } = Qe(), { styles: d } = ot(), { injectMessage: A, simulateStreamMessage: p, streamMessage: h, removeMessage: m, endStreamMessage: y } = ki(), { getCurrPath: C, getPrevPath: D, goToPath: Q, blockAllowsAttachment: E } = Ul(), { flowRef: I, inputRef: F } = Tt(), B = I.current, { showToast: H, dismissToast: U } = Ra(), { dispatchRcbEvent: N } = fr(), { toggleChatWindow: z } = Fn(), { setTextAreaValue: ee } = Ci(), { handleSubmitText: V } = Ma(), j = { cursor: `url("${(e = u.general) == null ? void 0 : e.actionDisabledIcon}"), auto`, ...d.fileAttachmentButtonStyle, ...d.fileAttachmentButtonDisabledStyle }, q = { backgroundImage: `url(${(n = u.fileAttachment) == null ? void 0 : n.icon})`, fill: "#a6a6a6", ...d.fileAttachmentIconStyle }, $ = { backgroundImage: `url(${(i = u.fileAttachment) == null ? void 0 : i.icon})`, fill: "#a6a6a6", ...d.fileAttachmentIconStyle, ...d.fileAttachmentIconDisabledStyle };
10384
+ const { settings: u } = Qe(), { styles: d } = ot(), { injectMessage: A, simulateStreamMessage: p, streamMessage: h, removeMessage: m, endStreamMessage: y } = ki(), { getCurrPath: C, getPrevPath: D, goToPath: Q, blockAllowsAttachment: E } = Nl(), { flowRef: I, inputRef: F } = Tt(), B = I.current, { showToast: H, dismissToast: U } = Ra(), { dispatchRcbEvent: N } = fr(), { toggleChatWindow: z } = Fn(), { setTextAreaValue: ee } = Ci(), { handleSubmitText: V } = Ma(), j = { cursor: `url("${(e = u.general) == null ? void 0 : e.actionDisabledIcon}"), auto`, ...d.fileAttachmentButtonStyle, ...d.fileAttachmentButtonDisabledStyle }, q = { backgroundImage: `url(${(n = u.fileAttachment) == null ? void 0 : n.icon})`, fill: "#a6a6a6", ...d.fileAttachmentIconStyle }, $ = { backgroundImage: `url(${(i = u.fileAttachment) == null ? void 0 : i.icon})`, fill: "#a6a6a6", ...d.fileAttachmentIconStyle, ...d.fileAttachmentIconDisabledStyle };
10385
10385
  return st("label", { "aria-label": ((a = u.ariaLabel) == null ? void 0 : a.fileAttachmentButton) ?? "upload file", role: "button", className: E ? "rcb-attach-button-enabled" : "rcb-attach-button-disabled", style: E ? { ...d.fileAttachmentButtonStyle } : j, children: [X("input", { className: "rcb-attach-input", role: "file", type: "file", onChange: async (ie) => {
10386
10386
  var ce, ae, xe, ge;
10387
10387
  const me = ie.target.files;
@@ -10581,7 +10581,7 @@ const Mu = () => {
10581
10581
  }, className: "rcb-view-history-button", role: "button", tabIndex: 0, children: X("p", { children: (i = a.chatHistory) == null ? void 0 : i.viewChatHistoryButtonText }) }) });
10582
10582
  }, kp = () => {
10583
10583
  var e, n, i, a;
10584
- const o = zl(), { settings: c } = Qe(), { replaceMessages: u } = ki(), { isBotTyping: d, isChatWindowOpen: A, setUnreadCount: p, setSyncedIsChatWindowOpen: h, setSyncedTextAreaDisabled: m, setSyncedAudioToggledOn: y, setSyncedVoiceToggledOn: C, setSyncedIsScrolling: D, syncedIsScrollingRef: Q, syncedIsChatWindowOpenRef: E } = Bt(), { chatBodyRef: I } = Tt(), { viewportHeight: F, setViewportHeight: B, setViewportWidth: H, scrollToBottom: U } = Fn(), { setUpNotifications: N } = Ru(), { handleFirstInteraction: z } = (() => {
10584
+ const o = Ul(), { settings: c } = Qe(), { replaceMessages: u } = ki(), { isBotTyping: d, isChatWindowOpen: A, setUnreadCount: p, setSyncedIsChatWindowOpen: h, setSyncedTextAreaDisabled: m, setSyncedAudioToggledOn: y, setSyncedVoiceToggledOn: C, setSyncedIsScrolling: D, syncedIsScrollingRef: Q, syncedIsChatWindowOpenRef: E } = Bt(), { chatBodyRef: I } = Tt(), { viewportHeight: F, setViewportHeight: B, setViewportWidth: H, scrollToBottom: U } = Fn(), { setUpNotifications: N } = Ru(), { handleFirstInteraction: z } = (() => {
10585
10585
  var q;
10586
10586
  const { settings: $ } = Qe(), { hasInteractedPage: ie, setHasInteractedPage: ce, hasFlowStarted: ae, setHasFlowStarted: xe } = Bt(), ge = Ie(() => {
10587
10587
  var me;
@@ -10622,7 +10622,7 @@ const Mu = () => {
10622
10622
  !Q.current && I != null && I.current && U();
10623
10623
  }, [d]), Ye(() => {
10624
10624
  var q, $;
10625
- if ((q = c.chatHistory) != null && q.disabled) Qo && Qo.removeItem(Ql);
10625
+ if ((q = c.chatHistory) != null && q.disabled) Qo && Qo.removeItem(Ll);
10626
10626
  else if (du(c), Bu().length > 0) {
10627
10627
  const ie = Oo(X(Ep, {}), "SYSTEM");
10628
10628
  u([ie]), ($ = c.chatHistory) != null && $.autoLoad && ee();
@@ -10700,7 +10700,7 @@ const Mu = () => {
10700
10700
  }).join(`
10701
10701
  `), Tp = async (e, n, i, a) => {
10702
10702
  var o, c;
10703
- let u = Fl(ad), d = Fl(ld), A = "";
10703
+ let u = Ql(ad), d = Ql(ld), A = "";
10704
10704
  if (a != null) if (Array.isArray(a)) for (const p of a) {
10705
10705
  const h = await oA(e, p);
10706
10706
  u = Br(h.settings, u), d = Br(h.inlineStyles, d), A += h.cssStylesText;
@@ -10727,7 +10727,7 @@ const Mu = () => {
10727
10727
  }
10728
10728
  }
10729
10729
  return n;
10730
- }, Fl = (e) => {
10730
+ }, Ql = (e) => {
10731
10731
  if (e === null || typeof e != "object") return e;
10732
10732
  const n = Array.isArray(e) ? [] : {}, i = [{ source: e, target: n }], a = /* @__PURE__ */ new WeakMap();
10733
10733
  for (a.set(e, n); i.length; ) {
@@ -10747,7 +10747,7 @@ const Mu = () => {
10747
10747
  return n;
10748
10748
  }, kd = () => {
10749
10749
  const { settings: e, setSyncedSettings: n, syncedSettingsRef: i } = Qe(), a = Ie((c) => {
10750
- !c || Object.keys(c).length === 0 || n(Fl(Br(c, e)));
10750
+ !c || Object.keys(c).length === 0 || n(Ql(Br(c, e)));
10751
10751
  }, [e]), o = Ie((c) => {
10752
10752
  const u = typeof c == "function" ? c(i.current) : c;
10753
10753
  n(u);
@@ -10755,7 +10755,7 @@ const Mu = () => {
10755
10755
  return { settings: e, replaceSettings: o, updateSettings: a };
10756
10756
  }, Cd = () => {
10757
10757
  const { styles: e, setSyncedStyles: n, syncedStylesRef: i } = ot(), a = Ie((c) => {
10758
- !c || Object.keys(c).length === 0 || n(Fl(Br(c, e)));
10758
+ !c || Object.keys(c).length === 0 || n(Ql(Br(c, e)));
10759
10759
  }, [e]), o = Ie((c) => {
10760
10760
  const u = typeof c == "function" ? c(i.current) : c;
10761
10761
  n(u);
@@ -10763,7 +10763,7 @@ const Mu = () => {
10763
10763
  return { styles: e, replaceStyles: o, updateStyles: a };
10764
10764
  }, Dp = ({ plugins: e, slots: n }) => {
10765
10765
  var i, a;
10766
- const o = zl(), { settings: c } = Qe(), { styles: u } = ot(), { hasFlowStarted: d, setHasFlowStarted: A } = Bt(), { inputRef: p } = Tt(), { viewportHeight: h, viewportWidth: m, isChatWindowOpen: y } = Fn(), { goToPath: C } = Ul(), { headerButtons: D, chatInputButtons: Q, footerButtons: E } = Sp();
10766
+ const o = Ul(), { settings: c } = Qe(), { styles: u } = ot(), { hasFlowStarted: d, setHasFlowStarted: A } = Bt(), { inputRef: p } = Tt(), { viewportHeight: h, viewportWidth: m, isChatWindowOpen: y } = Fn(), { goToPath: C } = Nl(), { headerButtons: D, chatInputButtons: Q, footerButtons: E } = Sp();
10767
10767
  kp(), ((F) => {
10768
10768
  const { updateSettings: B } = kd(), { updateStyles: H } = Cd(), U = F == null ? void 0 : F.map((N) => N());
10769
10769
  Ye(() => {
@@ -10819,7 +10819,7 @@ const Mu = () => {
10819
10819
  (m = i.event) != null && m.rcbPreLoadChatBot && (await Au(ye.PRE_LOAD_CHATBOT, { botId: A, currPath: null, prevPath: null }, { flow: n, settings: i, styles: a, themes: o, plugins: c })).defaultPrevented || (p != null && p.loadConfig && (await p.loadConfig(A, n, i, a, o, d), u(!0)), (y = i.event) != null && y.rcbPostLoadChatBot && Au(ye.POST_LOAD_CHATBOT, { botId: A, currPath: null, prevPath: null }, { flow: n, settings: i, styles: a, themes: o, plugins: c }));
10820
10820
  })();
10821
10821
  }, [o]), null;
10822
- }, Vc = ["Quickstart", "API Docs", "Examples", "Github", "Discord"], Bp = { start: { message: "Hello, I am Tan Jin 👋! Welcome to React ChatBotify, I'm excited that you are using our chatbot 😊!", transition: { duration: 1e3 }, chatDisabled: !0, path: "show_options" }, show_options: { message: "It looks like you have not set up a conversation flow yet. No worries! Here are a few helpful things you can check out to get started:", options: Vc, path: "process_options" }, prompt_again: { message: "Do you need any other help?", options: Vc, path: "process_options" }, unknown_input: { message: "Sorry, I do not understand your message 😢! If you require further assistance, you may click on the Github option and open an issue there or visit our discord.", options: Vc, path: "process_options" }, process_options: { transition: { duration: 0 }, path: (e) => {
10822
+ }, Gc = ["Quickstart", "API Docs", "Examples", "Github", "Discord"], Bp = { start: { message: "Hello, I am Tan Jin 👋! Welcome to React ChatBotify, I'm excited that you are using our chatbot 😊!", transition: { duration: 1e3 }, chatDisabled: !0, path: "show_options" }, show_options: { message: "It looks like you have not set up a conversation flow yet. No worries! Here are a few helpful things you can check out to get started:", options: Gc, path: "process_options" }, prompt_again: { message: "Do you need any other help?", options: Gc, path: "process_options" }, unknown_input: { message: "Sorry, I do not understand your message 😢! If you require further assistance, you may click on the Github option and open an issue there or visit our discord.", options: Gc, path: "process_options" }, process_options: { transition: { duration: 0 }, path: (e) => {
10823
10823
  let n = "";
10824
10824
  switch (e.userInput) {
10825
10825
  case "Quickstart":
@@ -10844,7 +10844,7 @@ const Mu = () => {
10844
10844
  window.open(n);
10845
10845
  }, 1e3), "repeat";
10846
10846
  } }, repeat: { transition: { duration: 3e3 }, path: "prompt_again" } }, Rp = ({ id: e, flow: n, settings: i, styles: a, themes: o, plugins: c, slots: u }) => {
10847
- const d = Zt(() => e || "rcb-" + Ll(), []), A = n && Object.keys(n).length !== 0 ? n : Bp, p = i || {}, h = a || {}, m = c || [], [y, C] = Ue(!1), D = Td(), Q = tt(null), [E, I] = Ue(o || []);
10847
+ const d = Zt(() => e || "rcb-" + Ol(), []), A = n && Object.keys(n).length !== 0 ? n : Bp, p = i || {}, h = a || {}, m = c || [], [y, C] = Ue(!1), D = Td(), Q = tt(null), [E, I] = Ue(o || []);
10848
10848
  Ye(() => {
10849
10849
  o && I(o);
10850
10850
  }, [o]);
@@ -10856,9 +10856,9 @@ const Mu = () => {
10856
10856
  return { getBotId: Ie(() => n.current, [n]) };
10857
10857
  })();
10858
10858
  return { getBotId: e };
10859
- }, jl = () => {
10859
+ }, zl = () => {
10860
10860
  const { hasFlowStarted: e, restartFlow: n, getFlow: i } = (() => {
10861
- const { replaceMessages: a } = ki(), { replacePaths: o, goToPath: c } = Ul(), { replaceToasts: u } = Ra(), { hasFlowStarted: d } = Bt(), { flowRef: A, timeoutIdRef: p } = Tt(), { settings: h } = Qe();
10861
+ const { replaceMessages: a } = ki(), { replacePaths: o, goToPath: c } = Nl(), { replaceToasts: u } = Ra(), { hasFlowStarted: d } = Bt(), { flowRef: A, timeoutIdRef: p } = Tt(), { settings: h } = Qe();
10862
10862
  return { hasFlowStarted: d, restartFlow: Ie(async () => {
10863
10863
  du(h), p.current && clearTimeout(p.current), a([]), u([]), o([]), await c("start");
10864
10864
  }, [p, h, a, u, o, du, c]), getFlow: Ie(() => (A == null ? void 0 : A.current) ?? {}, [A]) };
@@ -10891,18 +10891,18 @@ function bi(e) {
10891
10891
  }
10892
10892
  ["address", "main", "div", "figure", "p", "pre"].forEach(bi({ content: 1, type: 65 })), ["abbr", "b", "bdi", "bdo", "cite", "code", "data", "dfn", "em", "i", "kbd", "mark", "q", "ruby", "samp", "strong", "sub", "sup", "time", "u", "var"].forEach(bi({ content: 8, type: 73 })), ["p", "pre"].forEach(bi({ content: 8, type: 65 })), ["s", "small", "span", "del", "ins"].forEach(bi({ content: 8, type: 9 })), ["article", "aside", "footer", "header", "nav", "section", "blockquote"].forEach(bi({ content: 1, type: 67 })), ["h1", "h2", "h3", "h4", "h5", "h6"].forEach(bi({ content: 8, type: 69 })), ["audio", "canvas", "iframe", "img", "video"].forEach(bi({ type: 89 }));
10893
10893
  const pu = Object.freeze(fu), Op = ["applet", "base", "body", "command", "embed", "frame", "frameset", "head", "html", "link", "meta", "noscript", "object", "script", "style", "title"], Lp = Object.keys(pu).filter((e) => e !== "canvas" && e !== "iframe"), aA = Object.freeze({ alt: 1, cite: 1, class: 1, colspan: 3, controls: 4, datetime: 1, default: 4, disabled: 4, dir: 1, height: 1, href: 1, id: 1, kind: 1, label: 1, lang: 1, loading: 1, loop: 4, media: 1, muted: 4, poster: 1, rel: 1, role: 1, rowspan: 3, scope: 1, sizes: 1, span: 3, start: 3, style: 5, src: 1, srclang: 1, srcset: 1, tabindex: 1, target: 1, title: 1, type: 1, width: 1 }), Qp = Object.freeze({ class: "className", colspan: "colSpan", datetime: "dateTime", rowspan: "rowSpan", srclang: "srcLang", srcset: "srcSet", tabindex: "tabIndex" });
10894
- function _l() {
10895
- return _l = Object.assign || function(e) {
10894
+ function Fl() {
10895
+ return Fl = Object.assign || function(e) {
10896
10896
  for (var n = 1; n < arguments.length; n++) {
10897
10897
  var i = arguments[n];
10898
10898
  for (var a in i) Object.prototype.hasOwnProperty.call(i, a) && (e[a] = i[a]);
10899
10899
  }
10900
10900
  return e;
10901
- }, _l.apply(this, arguments);
10901
+ }, Fl.apply(this, arguments);
10902
10902
  }
10903
10903
  function Rd({ attributes: e = {}, className: n, children: i = null, selfClose: a = !1, tagName: o }) {
10904
10904
  const c = o;
10905
- return a ? pe.createElement(c, _l({ className: n }, e)) : pe.createElement(c, _l({ className: n }, e), i);
10905
+ return a ? pe.createElement(c, Fl({ className: n }, e)) : pe.createElement(c, Fl({ className: n }, e), i);
10906
10906
  }
10907
10907
  class Fp {
10908
10908
  attribute(n, i) {
@@ -11151,7 +11151,7 @@ const Xp = ({ children: e }) => X("div", { style: { whiteSpace: "normal" }, chil
11151
11151
  }
11152
11152
  return i !== "" && n.push(i), n;
11153
11153
  }, $p = (e) => {
11154
- const { getFlow: n } = jl(), { messages: i, replaceMessages: a } = Fu(), { settings: o } = Id(), { hasChatHistoryLoaded: c } = Bd(), u = { ...e, ...Jp }, d = u.htmlComponent ? u.htmlComponent : Xp;
11154
+ const { getFlow: n } = zl(), { messages: i, replaceMessages: a } = Fu(), { settings: o } = Id(), { hasChatHistoryLoaded: c } = Bd(), u = { ...e, ...Jp }, d = u.htmlComponent ? u.htmlComponent : Xp;
11155
11155
  Ye(() => {
11156
11156
  var h, m;
11157
11157
  if (c) {
@@ -11207,13 +11207,13 @@ const Le = Pi(), Pt = Pi(), Ld = Pi(), Ae = Pi(), ut = Pi(), Ia = Pi(), On = Pi(
11207
11207
  function Pi() {
11208
11208
  return 2 ** ++nh;
11209
11209
  }
11210
- const gu = Object.freeze(Object.defineProperty({ __proto__: null, boolean: Le, booleanish: Pt, commaOrSpaceSeparated: On, commaSeparated: Ia, number: Ae, overloadedBoolean: Ld, spaceSeparated: ut }, Symbol.toStringTag, { value: "Module" })), Xc = Object.keys(gu);
11210
+ const gu = Object.freeze(Object.defineProperty({ __proto__: null, boolean: Le, booleanish: Pt, commaOrSpaceSeparated: On, commaSeparated: Ia, number: Ae, overloadedBoolean: Ld, spaceSeparated: ut }, Symbol.toStringTag, { value: "Module" })), Vc = Object.keys(gu);
11211
11211
  class _u extends $n {
11212
11212
  constructor(n, i, a, o) {
11213
11213
  let c = -1;
11214
- if (super(n, i), dA(this, "space", o), typeof a == "number") for (; ++c < Xc.length; ) {
11215
- const u = Xc[c];
11216
- dA(this, Xc[c], (a & gu[u]) === gu[u]);
11214
+ if (super(n, i), dA(this, "space", o), typeof a == "number") for (; ++c < Vc.length; ) {
11215
+ const u = Vc[c];
11216
+ dA(this, Vc[c], (a & gu[u]) === gu[u]);
11217
11217
  }
11218
11218
  }
11219
11219
  }
@@ -11249,7 +11249,7 @@ const uh = { classId: "classID", dataType: "datatype", itemId: "itemID", strokeD
11249
11249
  function zd(e) {
11250
11250
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
11251
11251
  }
11252
- var Jc, pA, hA, Ca = {}, dh = function() {
11252
+ var Xc, pA, hA, Ca = {}, dh = function() {
11253
11253
  if (hA) return Ca;
11254
11254
  hA = 1;
11255
11255
  var e = Ca && Ca.__importDefault || function(i) {
@@ -11267,13 +11267,13 @@ var Jc, pA, hA, Ca = {}, dh = function() {
11267
11267
  }), o;
11268
11268
  };
11269
11269
  var n = e(function() {
11270
- if (pA) return Jc;
11270
+ if (pA) return Xc;
11271
11271
  pA = 1;
11272
11272
  var i = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, a = /\n/g, o = /^\s*/, c = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, u = /^:\s*/, d = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, A = /^[;\s]*/, p = /^\s+|\s+$/g, h = "";
11273
11273
  function m(y) {
11274
11274
  return y ? y.replace(p, h) : h;
11275
11275
  }
11276
- return Jc = function(y, C) {
11276
+ return Xc = function(y, C) {
11277
11277
  if (typeof y != "string") throw new TypeError("First argument must be a string");
11278
11278
  if (!y) return [];
11279
11279
  C = C || {};
@@ -11335,7 +11335,7 @@ var Jc, pA, hA, Ca = {}, dh = function() {
11335
11335
  for (N(j); V = ee(); ) V !== !1 && (j.push(V), N(j));
11336
11336
  return j;
11337
11337
  }();
11338
- }, Jc;
11338
+ }, Xc;
11339
11339
  }());
11340
11340
  return Ca;
11341
11341
  }();
@@ -11420,12 +11420,12 @@ function Gd(e, n, i) {
11420
11420
  }
11421
11421
  return D && ((C.style || (C.style = {}))[m.stylePropertyNameCase === "css" ? "text-align" : "textAlign"] = D), C;
11422
11422
  }(a, o);
11423
- let h = $c(a, o);
11423
+ let h = Kc(a, o);
11424
11424
  return mh.has(o.tagName) && (h = h.filter(function(m) {
11425
11425
  return typeof m != "string" || !function(y) {
11426
11426
  return typeof y == "object" ? y.type === "text" && AA(y.value) : AA(y);
11427
11427
  }(m);
11428
- })), yA(a, p, A, o), Kc(p, h), a.ancestors.pop(), a.schema = u, a.create(o, A, p, c);
11428
+ })), yA(a, p, A, o), Jc(p, h), a.ancestors.pop(), a.schema = u, a.create(o, A, p, c);
11429
11429
  }(e, n, i) : n.type === "mdxFlowExpression" || n.type === "mdxTextExpression" ? function(a, o) {
11430
11430
  if (o.data && o.data.estree && a.evaluater) {
11431
11431
  const c = o.data.estree.body[0];
@@ -11457,14 +11457,14 @@ function Gd(e, n, i) {
11457
11457
  C[Q] = E;
11458
11458
  }
11459
11459
  return C;
11460
- }(a, o), h = $c(a, o);
11461
- return yA(a, p, A, o), Kc(p, h), a.ancestors.pop(), a.schema = u, a.create(o, A, p, c);
11460
+ }(a, o), h = Kc(a, o);
11461
+ return yA(a, p, A, o), Jc(p, h), a.ancestors.pop(), a.schema = u, a.create(o, A, p, c);
11462
11462
  }(e, n, i) : n.type === "mdxjsEsm" ? function(a, o) {
11463
11463
  if (o.data && o.data.estree && a.evaluater) return a.evaluater.evaluateProgram(o.data.estree);
11464
11464
  Ds(a, o.position);
11465
11465
  }(e, n) : n.type === "root" ? function(a, o, c) {
11466
11466
  const u = {};
11467
- return Kc(u, $c(a, o)), a.create(o, a.Fragment, u, c);
11467
+ return Jc(u, Kc(a, o)), a.create(o, a.Fragment, u, c);
11468
11468
  }(e, n, i) : n.type === "text" ? function(a, o) {
11469
11469
  return o.value;
11470
11470
  }(0, n) : void 0;
@@ -11472,13 +11472,13 @@ function Gd(e, n, i) {
11472
11472
  function yA(e, n, i, a) {
11473
11473
  typeof i != "string" && i !== e.Fragment && e.passNode && (n.node = a);
11474
11474
  }
11475
- function Kc(e, n) {
11475
+ function Jc(e, n) {
11476
11476
  if (n.length > 0) {
11477
11477
  const i = n.length > 1 ? n : n[0];
11478
11478
  i && (e.children = i);
11479
11479
  }
11480
11480
  }
11481
- function $c(e, n) {
11481
+ function Kc(e, n) {
11482
11482
  const i = [];
11483
11483
  let a = -1;
11484
11484
  const o = e.passKeys ? /* @__PURE__ */ new Map() : ph;
@@ -11583,7 +11583,7 @@ function xh(e, n) {
11583
11583
  function Sh(e) {
11584
11584
  return "-" + e.toLowerCase();
11585
11585
  }
11586
- const Zc = { action: ["form"], cite: ["blockquote", "del", "ins", "q"], data: ["object"], formAction: ["button", "input"], href: ["a", "area", "base", "link"], icon: ["menuitem"], itemId: null, manifest: ["html"], ping: ["a", "area"], poster: ["video"], src: ["audio", "embed", "iframe", "img", "input", "script", "source", "track", "video"] }, kl = {};
11586
+ const $c = { action: ["form"], cite: ["blockquote", "del", "ins", "q"], data: ["object"], formAction: ["button", "input"], href: ["a", "area", "base", "link"], icon: ["menuitem"], itemId: null, manifest: ["html"], ping: ["a", "area"], poster: ["video"], src: ["audio", "embed", "iframe", "img", "input", "script", "source", "track", "video"] }, kl = {};
11587
11587
  function Vd(e, n, i) {
11588
11588
  if (/* @__PURE__ */ function(a) {
11589
11589
  return !(!a || typeof a != "object");
@@ -11867,7 +11867,7 @@ const Oh = { name: "autolink", tokenize: function(e, n, i) {
11867
11867
  }
11868
11868
  return i(y);
11869
11869
  }
11870
- } }, Hl = { partial: !0, tokenize: function(e, n, i) {
11870
+ } }, _l = { partial: !0, tokenize: function(e, n, i) {
11871
11871
  return function(o) {
11872
11872
  return $e(o) ? At(e, a, "linePrefix")(o) : a(o);
11873
11873
  };
@@ -11990,7 +11990,7 @@ const Oh = { name: "autolink", tokenize: function(e, n, i) {
11990
11990
  function F(B) {
11991
11991
  return e.exit("codeFenced"), n(B);
11992
11992
  }
11993
- } }, qc = { name: "codeIndented", tokenize: function(e, n, i) {
11993
+ } }, Zc = { name: "codeIndented", tokenize: function(e, n, i) {
11994
11994
  const a = this;
11995
11995
  return function(A) {
11996
11996
  return e.enter("codeIndented"), At(e, o, "linePrefix", 5)(A);
@@ -12399,7 +12399,7 @@ const Uh = { name: "definition", tokenize: function(e, n, i) {
12399
12399
  }
12400
12400
  } }, Vh = { partial: !0, tokenize: function(e, n, i) {
12401
12401
  return function(a) {
12402
- return e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), e.attempt(Hl, n, i);
12402
+ return e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), e.attempt(_l, n, i);
12403
12403
  };
12404
12404
  } }, Xh = { partial: !0, tokenize: function(e, n, i) {
12405
12405
  const a = this;
@@ -12607,11 +12607,11 @@ const Uh = { name: "definition", tokenize: function(e, n, i) {
12607
12607
  function o(c) {
12608
12608
  return c === 94 && "_hiddenFootnoteSupport" in a.parser.constructs ? i(c) : n(c);
12609
12609
  }
12610
- } }, eu = { name: "lineEnding", tokenize: function(e, n) {
12610
+ } }, qc = { name: "lineEnding", tokenize: function(e, n) {
12611
12611
  return function(i) {
12612
12612
  return e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), At(e, n, "linePrefix");
12613
12613
  };
12614
- } }, Ol = { name: "thematicBreak", tokenize: function(e, n, i) {
12614
+ } }, Ml = { name: "thematicBreak", tokenize: function(e, n, i) {
12615
12615
  let a, o = 0;
12616
12616
  return function(d) {
12617
12617
  return e.enter("thematicBreak"), function(A) {
@@ -12626,7 +12626,7 @@ const Uh = { name: "definition", tokenize: function(e, n, i) {
12626
12626
  }
12627
12627
  } }, kn = { continuation: { tokenize: function(e, n, i) {
12628
12628
  const a = this;
12629
- return a.containerState._closeFlow = void 0, e.check(Hl, function(c) {
12629
+ return a.containerState._closeFlow = void 0, e.check(_l, function(c) {
12630
12630
  return a.containerState.furtherBlankLines = a.containerState.furtherBlankLines || a.containerState.initialBlankLine, At(e, n, "listItemIndent", a.containerState.size + 1)(c);
12631
12631
  }, function(c) {
12632
12632
  return a.containerState.furtherBlankLines || !$e(c) ? (a.containerState.furtherBlankLines = void 0, a.containerState.initialBlankLine = void 0, o(c)) : (a.containerState.furtherBlankLines = void 0, a.containerState.initialBlankLine = void 0, e.attempt(ng, n, o)(c));
@@ -12642,7 +12642,7 @@ const Uh = { name: "definition", tokenize: function(e, n, i) {
12642
12642
  return function(y) {
12643
12643
  const C = a.containerState.type || (y === 42 || y === 43 || y === 45 ? "listUnordered" : "listOrdered");
12644
12644
  if (C === "listUnordered" ? !a.containerState.marker || y === a.containerState.marker : bu(y)) {
12645
- if (a.containerState.type || (a.containerState.type = C, e.enter(C, { _container: !0 })), C === "listUnordered") return e.enter("listItemPrefix"), y === 42 || y === 45 ? e.check(Ol, i, A)(y) : A(y);
12645
+ if (a.containerState.type || (a.containerState.type = C, e.enter(C, { _container: !0 })), C === "listUnordered") return e.enter("listItemPrefix"), y === 42 || y === 45 ? e.check(Ml, i, A)(y) : A(y);
12646
12646
  if (!a.interrupt || y === 49) return e.enter("listItemPrefix"), e.enter("listItemValue"), d(y);
12647
12647
  }
12648
12648
  return i(y);
@@ -12651,7 +12651,7 @@ const Uh = { name: "definition", tokenize: function(e, n, i) {
12651
12651
  return bu(y) && ++u < 10 ? (e.consume(y), d) : (!a.interrupt || u < 2) && (a.containerState.marker ? y === a.containerState.marker : y === 41 || y === 46) ? (e.exit("listItemValue"), A(y)) : i(y);
12652
12652
  }
12653
12653
  function A(y) {
12654
- return e.enter("listItemMarker"), e.consume(y), e.exit("listItemMarker"), a.containerState.marker = a.containerState.marker || y, e.check(Hl, a.interrupt ? i : p, e.attempt(tg, m, h));
12654
+ return e.enter("listItemMarker"), e.consume(y), e.exit("listItemMarker"), a.containerState.marker = a.containerState.marker || y, e.check(_l, a.interrupt ? i : p, e.attempt(tg, m, h));
12655
12655
  }
12656
12656
  function p(y) {
12657
12657
  return a.containerState.initialBlankLine = !0, c++, m(y);
@@ -12705,7 +12705,7 @@ const Uh = { name: "definition", tokenize: function(e, n, i) {
12705
12705
  return d === null || Re(d) ? (e.exit("setextHeadingLine"), n(d)) : i(d);
12706
12706
  }
12707
12707
  } }, rg = { tokenize: function(e) {
12708
- const n = this, i = e.attempt(Hl, function(o) {
12708
+ const n = this, i = e.attempt(_l, function(o) {
12709
12709
  return o === null ? void e.consume(o) : (e.enter("lineEndingBlank"), e.consume(o), e.exit("lineEndingBlank"), n.currentConstruct = void 0, i);
12710
12710
  }, e.attempt(this.parser.constructs.flowInitial, a, At(e, e.attempt(this.parser.constructs.flow, a, e.attempt(Hh, a)), "linePrefix")));
12711
12711
  return i;
@@ -12772,7 +12772,7 @@ function sg(e, n) {
12772
12772
  }
12773
12773
  return e;
12774
12774
  }
12775
- const lg = { 42: kn, 43: kn, 45: kn, 48: kn, 49: kn, 50: kn, 51: kn, 52: kn, 53: kn, 54: kn, 55: kn, 56: kn, 57: kn, 62: Jd }, cg = { 91: Uh }, ug = { [-2]: qc, [-1]: qc, 32: qc }, Ag = { 35: Wh, 42: Ol, 45: [IA, Ol], 60: Gh, 61: IA, 95: Ol, 96: TA, 126: TA }, dg = { 38: $d, 92: Kd }, fg = { [-5]: eu, [-4]: eu, [-3]: eu, 33: qh, 38: $d, 42: wu, 60: [Oh, Jh], 91: eg, 92: [jh, Kd], 93: ju, 95: wu, 96: Qh }, pg = { null: [wu, og] }, hg = Object.freeze(Object.defineProperty({ __proto__: null, attentionMarkers: { null: [42, 95] }, contentInitial: cg, disable: { null: [] }, document: lg, flow: Ag, flowInitial: ug, insideSpan: pg, string: dg, text: fg }, Symbol.toStringTag, { value: "Module" }));
12775
+ const lg = { 42: kn, 43: kn, 45: kn, 48: kn, 49: kn, 50: kn, 51: kn, 52: kn, 53: kn, 54: kn, 55: kn, 56: kn, 57: kn, 62: Jd }, cg = { 91: Uh }, ug = { [-2]: Zc, [-1]: Zc, 32: Zc }, Ag = { 35: Wh, 42: Ml, 45: [IA, Ml], 60: Gh, 61: IA, 95: Ml, 96: TA, 126: TA }, dg = { 38: $d, 92: Kd }, fg = { [-5]: qc, [-4]: qc, [-3]: qc, 33: qh, 38: $d, 42: wu, 60: [Oh, Jh], 91: eg, 92: [jh, Kd], 93: ju, 95: wu, 96: Qh }, pg = { null: [wu, og] }, hg = Object.freeze(Object.defineProperty({ __proto__: null, attentionMarkers: { null: [42, 95] }, contentInitial: cg, disable: { null: [] }, document: lg, flow: Ag, flowInitial: ug, insideSpan: pg, string: dg, text: fg }, Symbol.toStringTag, { value: "Module" }));
12776
12776
  function gg(e, n, i) {
12777
12777
  let a = { _bufferIndex: -1, _index: 0, line: i && i.line || 1, column: i && i.column || 1, offset: i && i.offset || 0 };
12778
12778
  const o = {}, c = [];
@@ -13601,7 +13601,7 @@ const QA = typeof self == "object" ? self : globalThis, FA = (e) => (/* @__PURE_
13601
13601
  };
13602
13602
  return p;
13603
13603
  })(!(n || i), !!n, /* @__PURE__ */ new Map(), a))(e), a;
13604
- }, Nl = typeof structuredClone == "function" ? (e, n) => n && ("json" in n || "lossy" in n) ? FA(_A(e, n)) : structuredClone(e) : (e, n) => FA(_A(e, n));
13604
+ }, Hl = typeof structuredClone == "function" ? (e, n) => n && ("json" in n || "lossy" in n) ? FA(_A(e, n)) : structuredClone(e) : (e, n) => FA(_A(e, n));
13605
13605
  function Cg(e, n) {
13606
13606
  const i = [{ type: "text", value: "↩" }];
13607
13607
  return n > 1 && i.push({ type: "element", tagName: "sup", properties: {}, children: [{ type: "text", value: String(n) }] }), i;
@@ -13710,10 +13710,10 @@ function Rg(e, n) {
13710
13710
  if (xu.call(d.handlers, h) && m) return m(d, A, p);
13711
13711
  if (d.options.passThrough && d.options.passThrough.includes(h)) {
13712
13712
  if ("children" in A) {
13713
- const { children: y, ...C } = A, D = Nl(C);
13713
+ const { children: y, ...C } = A, D = Hl(C);
13714
13714
  return D.children = d.all(A), D;
13715
13715
  }
13716
- return Nl(A);
13716
+ return Hl(A);
13717
13717
  }
13718
13718
  return (d.options.unknownHandler || Lg)(d, A, p);
13719
13719
  }, options: i, patch: Mg, wrap: Qg };
@@ -13734,7 +13734,7 @@ function Og(e, n) {
13734
13734
  let i = n;
13735
13735
  if (e && e.data) {
13736
13736
  const a = e.data.hName, o = e.data.hChildren, c = e.data.hProperties;
13737
- typeof a == "string" && (i.type === "element" ? i.tagName = a : i = { type: "element", tagName: a, properties: {}, children: "children" in i ? i.children : [i] }), i.type === "element" && c && Object.assign(i.properties, Nl(c)), "children" in i && i.children && o != null && (i.children = o);
13737
+ typeof a == "string" && (i.type === "element" ? i.tagName = a : i = { type: "element", tagName: a, properties: {}, children: "children" in i ? i.children : [i] }), i.type === "element" && c && Object.assign(i.properties, Hl(c)), "children" in i && i.children && o != null && (i.children = o);
13738
13738
  }
13739
13739
  return i;
13740
13740
  }
@@ -13779,7 +13779,7 @@ function zA(e, n) {
13779
13779
  const z = { type: "element", tagName: "li", properties: { id: d + "fn-" + F }, children: u.wrap(E, !0) };
13780
13780
  u.patch(Q, z), C.push(z);
13781
13781
  }
13782
- if (C.length !== 0) return { type: "element", tagName: "section", properties: { dataFootnotes: !0, className: ["footnotes"] }, children: [{ type: "element", tagName: m, properties: { ...Nl(y), id: "footnote-label" }, children: [{ type: "text", value: h }] }, { type: "text", value: `
13782
+ if (C.length !== 0) return { type: "element", tagName: "section", properties: { dataFootnotes: !0, className: ["footnotes"] }, children: [{ type: "element", tagName: m, properties: { ...Hl(y), id: "footnote-label" }, children: [{ type: "text", value: h }] }, { type: "text", value: `
13783
13783
  ` }, { type: "element", tagName: "ol", properties: {}, children: u.wrap(C, !0) }, { type: "text", value: `
13784
13784
  ` }] };
13785
13785
  }(i), c = Array.isArray(a) ? { type: "root", children: a } : a || { type: "root", children: [] };
@@ -13797,8 +13797,8 @@ function Fg(e, n) {
13797
13797
  function jA(e) {
13798
13798
  if (e) throw e;
13799
13799
  }
13800
- var tu, WA, _g = function() {
13801
- if (WA) return tu;
13800
+ var eu, WA, _g = function() {
13801
+ if (WA) return eu;
13802
13802
  WA = 1;
13803
13803
  var e = Object.prototype.hasOwnProperty, n = Object.prototype.toString, i = Object.defineProperty, a = Object.getOwnPropertyDescriptor, o = function(A) {
13804
13804
  return typeof Array.isArray == "function" ? Array.isArray(A) : n.call(A) === "[object Array]";
@@ -13817,13 +13817,13 @@ var tu, WA, _g = function() {
13817
13817
  }
13818
13818
  return A[p];
13819
13819
  };
13820
- return tu = function A() {
13820
+ return eu = function A() {
13821
13821
  var p, h, m, y, C, D, Q = arguments[0], E = 1, I = arguments.length, F = !1;
13822
13822
  for (typeof Q == "boolean" && (F = Q, Q = arguments[1] || {}, E = 2), (Q == null || typeof Q != "object" && typeof Q != "function") && (Q = {}); E < I; ++E) if ((p = arguments[E]) != null) for (h in p) m = d(Q, h), Q !== (y = d(p, h)) && (F && y && (c(y) || (C = o(y))) ? (C ? (C = !1, D = m && o(m) ? m : []) : D = m && c(m) ? m : {}, u(Q, { name: h, newValue: A(F, D, y) })) : typeof y < "u" && u(Q, { name: h, newValue: y }));
13823
13823
  return Q;
13824
- }, tu;
13824
+ }, eu;
13825
13825
  }();
13826
- const nu = zd(_g);
13826
+ const tu = zd(_g);
13827
13827
  function Su(e) {
13828
13828
  if (typeof e != "object" || e === null) return !1;
13829
13829
  const n = Object.getPrototypeOf(e);
@@ -13987,24 +13987,24 @@ function Ug(e) {
13987
13987
  return decodeURIComponent(i);
13988
13988
  }(e);
13989
13989
  }
13990
- const ru = ["history", "path", "basename", "stem", "extname", "dirname"];
13990
+ const nu = ["history", "path", "basename", "stem", "extname", "dirname"];
13991
13991
  class cf {
13992
13992
  constructor(n) {
13993
13993
  let i;
13994
13994
  var a;
13995
13995
  i = n ? Eu(n) ? { path: n } : typeof n == "string" || (a = n) && typeof a == "object" && "byteLength" in a && "byteOffset" in a ? { value: n } : n : {}, this.cwd = "cwd" in i ? "" : Ng.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
13996
13996
  let o, c = -1;
13997
- for (; ++c < ru.length; ) {
13998
- const u = ru[c];
13997
+ for (; ++c < nu.length; ) {
13998
+ const u = nu[c];
13999
13999
  u in i && i[u] !== void 0 && i[u] !== null && (this[u] = u === "history" ? [...i[u]] : i[u]);
14000
14000
  }
14001
- for (o in i) ru.includes(o) || (this[o] = i[o]);
14001
+ for (o in i) nu.includes(o) || (this[o] = i[o]);
14002
14002
  }
14003
14003
  get basename() {
14004
14004
  return typeof this.path == "string" ? Ir.basename(this.path) : void 0;
14005
14005
  }
14006
14006
  set basename(n) {
14007
- iu(n, "basename"), ou(n, "basename"), this.path = Ir.join(this.dirname || "", n);
14007
+ ou(n, "basename"), ru(n, "basename"), this.path = Ir.join(this.dirname || "", n);
14008
14008
  }
14009
14009
  get dirname() {
14010
14010
  return typeof this.path == "string" ? Ir.dirname(this.path) : void 0;
@@ -14016,7 +14016,7 @@ class cf {
14016
14016
  return typeof this.path == "string" ? Ir.extname(this.path) : void 0;
14017
14017
  }
14018
14018
  set extname(n) {
14019
- if (ou(n, "extname"), YA(this.dirname, "extname"), n) {
14019
+ if (ru(n, "extname"), YA(this.dirname, "extname"), n) {
14020
14020
  if (n.codePointAt(0) !== 46) throw new Error("`extname` must start with `.`");
14021
14021
  if (n.includes(".", 1)) throw new Error("`extname` cannot contain multiple dots");
14022
14022
  }
@@ -14026,13 +14026,13 @@ class cf {
14026
14026
  return this.history[this.history.length - 1];
14027
14027
  }
14028
14028
  set path(n) {
14029
- Eu(n) && (n = Ug(n)), iu(n, "path"), this.path !== n && this.history.push(n);
14029
+ Eu(n) && (n = Ug(n)), ou(n, "path"), this.path !== n && this.history.push(n);
14030
14030
  }
14031
14031
  get stem() {
14032
14032
  return typeof this.path == "string" ? Ir.basename(this.path, this.extname) : void 0;
14033
14033
  }
14034
14034
  set stem(n) {
14035
- iu(n, "stem"), ou(n, "stem"), this.path = Ir.join(this.dirname || "", n + (this.extname || ""));
14035
+ ou(n, "stem"), ru(n, "stem"), this.path = Ir.join(this.dirname || "", n + (this.extname || ""));
14036
14036
  }
14037
14037
  fail(n, i, a) {
14038
14038
  const o = this.message(n, i, a);
@@ -14050,10 +14050,10 @@ class cf {
14050
14050
  return this.value === void 0 ? "" : typeof this.value == "string" ? this.value : new TextDecoder(n || void 0).decode(this.value);
14051
14051
  }
14052
14052
  }
14053
- function ou(e, n) {
14053
+ function ru(e, n) {
14054
14054
  if (e && e.includes(Ir.sep)) throw new Error("`" + n + "` cannot be a path: did not expect `" + Ir.sep + "`");
14055
14055
  }
14056
- function iu(e, n) {
14056
+ function ou(e, n) {
14057
14057
  if (!e) throw new Error("`" + n + "` cannot be empty");
14058
14058
  }
14059
14059
  function YA(e, n) {
@@ -14076,10 +14076,10 @@ class Wu extends zg {
14076
14076
  const a = this.attachers[i];
14077
14077
  n.use(...a);
14078
14078
  }
14079
- return n.data(nu(!0, {}, this.namespace)), n;
14079
+ return n.data(tu(!0, {}, this.namespace)), n;
14080
14080
  }
14081
14081
  data(n, i) {
14082
- return typeof n == "string" ? arguments.length === 2 ? (lu("data", this.frozen), this.namespace[n] = i, this) : jg.call(this.namespace, n) && this.namespace[n] || void 0 : n ? (lu("data", this.frozen), this.namespace = n, this) : this.namespace;
14082
+ return typeof n == "string" ? arguments.length === 2 ? (su("data", this.frozen), this.namespace[n] = i, this) : jg.call(this.namespace, n) && this.namespace[n] || void 0 : n ? (su("data", this.frozen), this.namespace = n, this) : this.namespace;
14083
14083
  }
14084
14084
  freeze() {
14085
14085
  if (this.frozen) return this;
@@ -14096,11 +14096,11 @@ class Wu extends zg {
14096
14096
  parse(n) {
14097
14097
  this.freeze();
14098
14098
  const i = Dl(n), a = this.parser || this.Parser;
14099
- return au("parse", a), a(String(i), i);
14099
+ return iu("parse", a), a(String(i), i);
14100
14100
  }
14101
14101
  process(n, i) {
14102
14102
  const a = this;
14103
- return this.freeze(), au("process", this.parser || this.Parser), su("process", this.compiler || this.Compiler), i ? o(void 0, i) : new Promise(o);
14103
+ return this.freeze(), iu("process", this.parser || this.Parser), au("process", this.compiler || this.Compiler), i ? o(void 0, i) : new Promise(o);
14104
14104
  function o(c, u) {
14105
14105
  const d = Dl(n), A = a.parse(d);
14106
14106
  function p(h, m) {
@@ -14118,7 +14118,7 @@ class Wu extends zg {
14118
14118
  }
14119
14119
  processSync(n) {
14120
14120
  let i, a = !1;
14121
- return this.freeze(), au("processSync", this.parser || this.Parser), su("processSync", this.compiler || this.Compiler), this.process(n, function(o, c) {
14121
+ return this.freeze(), iu("processSync", this.parser || this.Parser), au("processSync", this.compiler || this.Compiler), this.process(n, function(o, c) {
14122
14122
  a = !0, jA(o), i = c;
14123
14123
  }), VA("processSync", "process", a), i;
14124
14124
  }
@@ -14143,11 +14143,11 @@ class Wu extends zg {
14143
14143
  stringify(n, i) {
14144
14144
  this.freeze();
14145
14145
  const a = Dl(i), o = this.compiler || this.Compiler;
14146
- return su("stringify", o), GA(n), o(n, a);
14146
+ return au("stringify", o), GA(n), o(n, a);
14147
14147
  }
14148
14148
  use(n, ...i) {
14149
14149
  const a = this.attachers, o = this.namespace;
14150
- if (lu("use", this.frozen), n != null) if (typeof n == "function") A(n, i);
14150
+ if (su("use", this.frozen), n != null) if (typeof n == "function") A(n, i);
14151
14151
  else {
14152
14152
  if (typeof n != "object") throw new TypeError("Expected usable value, not `" + n + "`");
14153
14153
  Array.isArray(n) ? d(n) : u(n);
@@ -14165,7 +14165,7 @@ class Wu extends zg {
14165
14165
  }
14166
14166
  function u(p) {
14167
14167
  if (!("plugins" in p) && !("settings" in p)) throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");
14168
- d(p.plugins), p.settings && (o.settings = nu(!0, o.settings, p.settings));
14168
+ d(p.plugins), p.settings && (o.settings = tu(!0, o.settings, p.settings));
14169
14169
  }
14170
14170
  function d(p) {
14171
14171
  let h = -1;
@@ -14185,19 +14185,19 @@ class Wu extends zg {
14185
14185
  else if (h.length > 0) {
14186
14186
  let [C, ...D] = h;
14187
14187
  const Q = a[y][1];
14188
- Su(Q) && Su(C) && (C = nu(!0, Q, C)), a[y] = [p, C, ...D];
14188
+ Su(Q) && Su(C) && (C = tu(!0, Q, C)), a[y] = [p, C, ...D];
14189
14189
  }
14190
14190
  }
14191
14191
  }
14192
14192
  }
14193
14193
  const Wg = new Wu().freeze();
14194
- function au(e, n) {
14194
+ function iu(e, n) {
14195
14195
  if (typeof n != "function") throw new TypeError("Cannot `" + e + "` without `parser`");
14196
14196
  }
14197
- function su(e, n) {
14197
+ function au(e, n) {
14198
14198
  if (typeof n != "function") throw new TypeError("Cannot `" + e + "` without `compiler`");
14199
14199
  }
14200
- function lu(e, n) {
14200
+ function su(e, n) {
14201
14201
  if (n) throw new Error("Cannot call `" + e + "` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.");
14202
14202
  }
14203
14203
  function GA(e) {
@@ -14222,8 +14222,8 @@ function Vg(e) {
14222
14222
  if (I.type === "raw" && B && typeof F == "number") return h ? B.children.splice(F, 1) : B.children[F] = { type: "text", value: I.value }, F;
14223
14223
  if (I.type === "element") {
14224
14224
  let H;
14225
- for (H in Zc) if (Object.hasOwn(Zc, H) && Object.hasOwn(I.properties, H)) {
14226
- const U = I.properties[H], N = Zc[H];
14225
+ for (H in $c) if (Object.hasOwn($c, H) && Object.hasOwn(I.properties, H)) {
14226
+ const U = I.properties[H], N = $c[H];
14227
14227
  (N === null || N.includes(I.tagName)) && (I.properties[H] = y(String(U || ""), H, I));
14228
14228
  }
14229
14229
  }
@@ -14238,7 +14238,7 @@ function Xg(e) {
14238
14238
  return n === -1 || o !== -1 && n > o || i !== -1 && n > i || a !== -1 && n > a || Yg.test(e.slice(0, n)) ? e : "";
14239
14239
  }
14240
14240
  const Jg = ({ children: e }) => X("div", { style: { whiteSpace: "normal" }, children: X(Vg, { components: { p: ({ ...n }) => X("p", { style: { margin: 0, marginBottom: "0.5em", lineHeight: 1.4, textAlign: "left" }, children: n.children }), ul: ({ ...n }) => X("ul", { style: { paddingLeft: "clamp(8px, 3.5vw, 16px)", margin: 0, listStylePosition: "inside" }, children: n.children }), ol: ({ ...n }) => X("ol", { style: { paddingLeft: "clamp(8px, 3.5vw, 16px)", margin: 0, listStylePosition: "inside" }, children: n.children }), li: ({ ...n }) => X("li", { style: { marginBottom: "1px", lineHeight: 1.4 }, children: n.children }), code: ({ inline: n, children: i }) => n ? X("code", { style: { backgroundColor: "rgba(0, 0, 0, 0.3)", padding: "2px 4px", borderRadius: "4px", fontFamily: "inherit", fontSize: "0.95em" }, children: i }) : X("pre", { style: { backgroundColor: "rgba(0, 0, 0, 0.3)", padding: "8px", borderRadius: "4px", overflowX: "auto", margin: "0.5em 0", whiteSpace: "pre-wrap" }, children: X("code", { children: i }) }), blockquote: ({ ...n }) => X("blockquote", { style: { margin: 0, paddingLeft: "10px", borderLeft: "2px solid #ccc", color: "#666", fontStyle: "italic" }, children: n.children }) }, children: typeof e == "string" ? e : "" }) }), Kg = { autoConfig: !0 }, $g = (e) => () => ((n) => {
14241
- const { getFlow: i } = jl(), { messages: a, replaceMessages: o } = Fu(), { settings: c } = Id(), { hasChatHistoryLoaded: u } = Bd(), d = { ...n, ...Kg }, A = d.markdownComponent ? d.markdownComponent : Jg;
14241
+ const { getFlow: i } = zl(), { messages: a, replaceMessages: o } = Fu(), { settings: c } = Id(), { hasChatHistoryLoaded: u } = Bd(), d = { ...n, ...Kg }, A = d.markdownComponent ? d.markdownComponent : Jg;
14242
14242
  Ye(() => {
14243
14243
  var m, y;
14244
14244
  if (u) {
@@ -14274,7 +14274,7 @@ const Jg = ({ children: e }) => X("div", { style: { whiteSpace: "normal" }, chil
14274
14274
  const { showToast: n } = (() => {
14275
14275
  const { showToast: m, dismissToast: y, toasts: C, replaceToasts: D } = Ra();
14276
14276
  return { showToast: m, dismissToast: y, toasts: C, replaceToasts: D };
14277
- })(), { getFlow: i } = jl(), { styles: a, updateStyles: o, replaceStyles: c } = (() => {
14277
+ })(), { getFlow: i } = zl(), { styles: a, updateStyles: o, replaceStyles: c } = (() => {
14278
14278
  const { styles: m, replaceStyles: y, updateStyles: C } = Cd();
14279
14279
  return { styles: m, replaceStyles: y, updateStyles: C };
14280
14280
  })(), u = ((m) => ({ ...Il, ...m, promptBaseColors: { ...Il.promptBaseColors }, promptHoveredColors: { ...Il.promptHoveredColors }, textAreaHighlightColors: { ...Il.textAreaHighlightColors } }))(e), [d, A] = Ue(0), p = tt({});
@@ -14359,7 +14359,7 @@ const Af = ({ width: e = 24, height: n = 24, color: i = "currentColor", children
14359
14359
  let { children: n, resetSession: i, clearResettingFlag: a } = e;
14360
14360
  return pe.createElement(df.Provider, { value: { resetSession: i, clearResettingFlag: a } }, n);
14361
14361
  }, nm = () => {
14362
- const { restartFlow: e } = jl(), { setTextAreaValue: n } = (() => {
14362
+ const { restartFlow: e } = zl(), { setTextAreaValue: n } = (() => {
14363
14363
  const { textAreaDisabled: o, toggleTextAreaDisabled: c, textAreaSensitiveMode: u, toggleTextAreaSensitiveMode: d, getTextAreaValue: A, setTextAreaValue: p, focusTextArea: h, blurTextArea: m } = Ci();
14364
14364
  return { textAreaDisabled: o, toggleTextAreaDisabled: c, textAreaSensitiveMode: u, toggleTextAreaSensitiveMode: d, getTextAreaValue: A, setTextAreaValue: p, focusTextArea: h, blurTextArea: m };
14365
14365
  })(), { resetSession: i, clearResettingFlag: a } = (() => {
@@ -14580,18 +14580,18 @@ const Af = ({ width: e = 24, height: n = 24, color: i = "currentColor", children
14580
14580
  };
14581
14581
  }, []), null), Wt = [];
14582
14582
  for (let e = 0; e < 256; ++e) Wt.push((e + 256).toString(16).slice(1));
14583
- let cu;
14583
+ let lu;
14584
14584
  const om = new Uint8Array(16);
14585
14585
  var ZA = { randomUUID: typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto) };
14586
14586
  function ff(e, n, i) {
14587
14587
  var o;
14588
14588
  if (ZA.randomUUID && !e) return ZA.randomUUID();
14589
14589
  const a = (e = e || {}).random ?? ((o = e.rng) == null ? void 0 : o.call(e)) ?? function() {
14590
- if (!cu) {
14590
+ if (!lu) {
14591
14591
  if (typeof crypto > "u" || !crypto.getRandomValues) throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
14592
- cu = crypto.getRandomValues.bind(crypto);
14592
+ lu = crypto.getRandomValues.bind(crypto);
14593
14593
  }
14594
- return cu(om);
14594
+ return lu(om);
14595
14595
  }();
14596
14596
  if (a.length < 16) throw new Error("Random bytes length must be >= 16");
14597
14597
  return a[6] = 15 & a[6] | 64, a[8] = 63 & a[8] | 128, function(c, u = 0) {
@@ -14766,7 +14766,7 @@ const pm = () => {
14766
14766
  const o = a.result.split(",")[1];
14767
14767
  n({ fileName: e.name, contentType: e.type, size: e.size, fileData: o });
14768
14768
  }, a.onerror = () => i(new Error("Failed to read file ".concat(e.name))), a.readAsDataURL(e);
14769
- }), mm = (e) => Promise.all(e.map(gm)), vm = (e) => e < 1024 ? "".concat(e, " B") : e < 1048576 ? "".concat((e / 1024).toFixed(1), " KB") : "".concat((e / 1048576).toFixed(1), " MB"), Wl = (e) => {
14769
+ }), mm = (e) => Promise.all(e.map(gm)), vm = (e) => e < 1024 ? "".concat(e, " B") : e < 1048576 ? "".concat((e / 1024).toFixed(1), " KB") : "".concat((e / 1048576).toFixed(1), " MB"), jl = (e) => {
14770
14770
  let { onFileUpload: n, maxSizeMB: i = 10, acceptedTypes: a = "image/*,application/pdf,text/*,.doc,.docx", enableScreenshot: o = !1, className: c } = e;
14771
14771
  const [u, d] = Ue(!1), [A, p] = Ue([]), [h, m] = Ue(null), y = tt(null), { captureScreenshot: C, isCapturing: D, isScreenCaptureAvailable: Q } = pm(), E = (N) => {
14772
14772
  const z = document.createElement("div");
@@ -14997,7 +14997,7 @@ async function Em(e, n) {
14997
14997
  };
14998
14998
  }
14999
14999
  }
15000
- async function Yl(e, n, i = []) {
15000
+ async function Wl(e, n, i = []) {
15001
15001
  try {
15002
15002
  const a = await Sm(e, n, i);
15003
15003
  return await Em(a, n === "security" ? "security-incidents" : "tickets");
@@ -15021,7 +15021,7 @@ Please try again or contact our support team directly.` : `We apologize, but the
15021
15021
 
15022
15022
  Please try again or contact our support team directly.`;
15023
15023
  }
15024
- function Gl(e) {
15024
+ function Yl(e) {
15025
15025
  return !e || e.trim() === "" ? {
15026
15026
  success: !1,
15027
15027
  promptContent: "Email is required",
@@ -15043,7 +15043,7 @@ function Ls(e) {
15043
15043
  function km({ ticketForm: e, setTicketForm: n, userInfo: i }) {
15044
15044
  let a = null;
15045
15045
  const o = async (u, d = []) => {
15046
- a = await Yl(u, "loginAccess", d), a.success ? n((A) => ({
15046
+ a = await Wl(u, "loginAccess", d), a.success ? n((A) => ({
15047
15047
  ...A,
15048
15048
  ticketKey: a.ticketKey,
15049
15049
  ticketUrl: a.ticketUrl
@@ -15119,7 +15119,7 @@ Would you like to submit a help ticket for ACCESS login issues?`,
15119
15119
  access_login_upload: {
15120
15120
  message: "Please upload your screenshot.",
15121
15121
  component: /* @__PURE__ */ X(
15122
- Wl,
15122
+ jl,
15123
15123
  {
15124
15124
  onFileUpload: (u) => {
15125
15125
  n((d) => ({
@@ -15144,7 +15144,7 @@ Would you like to submit a help ticket for ACCESS login issues?`,
15144
15144
  // Step 6: Email (text input)
15145
15145
  access_login_email: {
15146
15146
  message: "What is your email?",
15147
- validateTextInput: Gl,
15147
+ validateTextInput: Yl,
15148
15148
  function: (u) => {
15149
15149
  const d = Be();
15150
15150
  n({ ...d, email: u.userInput });
@@ -15218,7 +15218,7 @@ Would you like to submit this ticket?`;
15218
15218
  function Cm({ ticketForm: e, setTicketForm: n, userInfo: i }) {
15219
15219
  let a = null;
15220
15220
  const o = async (u, d = []) => {
15221
- a = await Yl(u, "loginProvider", d), a.success ? n((A) => ({
15221
+ a = await Wl(u, "loginProvider", d), a.success ? n((A) => ({
15222
15222
  ...A,
15223
15223
  ticketKey: a.ticketKey,
15224
15224
  ticketUrl: a.ticketUrl
@@ -15314,7 +15314,7 @@ Would you like to submit a help ticket for resource provider login issues?`,
15314
15314
  resource_login_upload: {
15315
15315
  message: "Please upload your screenshot.",
15316
15316
  component: /* @__PURE__ */ X(
15317
- Wl,
15317
+ jl,
15318
15318
  {
15319
15319
  onFileUpload: (u) => {
15320
15320
  n((d) => ({
@@ -15339,7 +15339,7 @@ Would you like to submit a help ticket for resource provider login issues?`,
15339
15339
  // Step 6: Email (text input)
15340
15340
  resource_login_email: {
15341
15341
  message: "What is your email?",
15342
- validateTextInput: Gl,
15342
+ validateTextInput: Yl,
15343
15343
  function: (u) => {
15344
15344
  const d = Be();
15345
15345
  n({ ...d, email: u.userInput });
@@ -15731,7 +15731,7 @@ const Pm = [
15731
15731
  function Dm({ ticketForm: e, setTicketForm: n, userInfo: i }) {
15732
15732
  let a = null;
15733
15733
  const o = async (u, d = []) => {
15734
- a = await Yl(u, "support", d), a.success ? n((A) => ({
15734
+ a = await Wl(u, "support", d), a.success ? n((A) => ({
15735
15735
  ...A,
15736
15736
  ticketKey: a.ticketKey,
15737
15737
  ticketUrl: a.ticketUrl
@@ -15800,7 +15800,7 @@ function Dm({ ticketForm: e, setTicketForm: n, userInfo: i }) {
15800
15800
  general_help_upload: {
15801
15801
  message: "Please upload your file.",
15802
15802
  component: /* @__PURE__ */ X(
15803
- Wl,
15803
+ jl,
15804
15804
  {
15805
15805
  onFileUpload: (u) => {
15806
15806
  n((d) => ({
@@ -15892,7 +15892,7 @@ function Dm({ ticketForm: e, setTicketForm: n, userInfo: i }) {
15892
15892
  // Step 12: Email (text input, conditional)
15893
15893
  general_help_email: {
15894
15894
  message: "What is your email address?",
15895
- validateTextInput: Gl,
15895
+ validateTextInput: Yl,
15896
15896
  function: (u) => {
15897
15897
  const d = Be();
15898
15898
  n({ ...d, email: u.userInput });
@@ -16024,7 +16024,7 @@ Please try again or contact our cybersecurity team directly.`;
16024
16024
  function Rm({ ticketForm: e, setTicketForm: n, userInfo: i }) {
16025
16025
  let a = null, o = null;
16026
16026
  const c = async (d, A = []) => {
16027
- o = await Yl(d, "security", A), o.success ? n((p) => ({
16027
+ o = await Wl(d, "security", A), o.success ? n((p) => ({
16028
16028
  ...p,
16029
16029
  ticketKey: o.ticketKey,
16030
16030
  ticketUrl: o.ticketUrl
@@ -16082,7 +16082,7 @@ function Rm({ ticketForm: e, setTicketForm: n, userInfo: i }) {
16082
16082
  security_upload: {
16083
16083
  message: "Please upload your files.",
16084
16084
  component: /* @__PURE__ */ X(
16085
- Wl,
16085
+ jl,
16086
16086
  {
16087
16087
  onFileUpload: (d) => {
16088
16088
  n((A) => ({
@@ -16126,7 +16126,7 @@ Is this correct?` : "I need your contact information.";
16126
16126
  // Step 7: Email (text input, conditional)
16127
16127
  security_email: {
16128
16128
  message: "What is your email address?",
16129
- validateTextInput: Gl,
16129
+ validateTextInput: Yl,
16130
16130
  function: (d) => {
16131
16131
  const A = Be();
16132
16132
  n({ ...A, email: d.userInput });
@@ -16214,28 +16214,32 @@ Would you like to submit this security incident report?`;
16214
16214
  }
16215
16215
  };
16216
16216
  }
16217
- let Bl;
16218
- const Mm = new Uint8Array(16);
16219
- function Om() {
16220
- if (!Bl && (Bl = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Bl))
16221
- throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
16222
- return Bl(Mm);
16223
- }
16224
16217
  const Yt = [];
16225
16218
  for (let e = 0; e < 256; ++e)
16226
16219
  Yt.push((e + 256).toString(16).slice(1));
16227
- function Lm(e, n = 0) {
16228
- return Yt[e[n + 0]] + Yt[e[n + 1]] + Yt[e[n + 2]] + Yt[e[n + 3]] + "-" + Yt[e[n + 4]] + Yt[e[n + 5]] + "-" + Yt[e[n + 6]] + Yt[e[n + 7]] + "-" + Yt[e[n + 8]] + Yt[e[n + 9]] + "-" + Yt[e[n + 10]] + Yt[e[n + 11]] + Yt[e[n + 12]] + Yt[e[n + 13]] + Yt[e[n + 14]] + Yt[e[n + 15]];
16220
+ function Mm(e, n = 0) {
16221
+ return (Yt[e[n + 0]] + Yt[e[n + 1]] + Yt[e[n + 2]] + Yt[e[n + 3]] + "-" + Yt[e[n + 4]] + Yt[e[n + 5]] + "-" + Yt[e[n + 6]] + Yt[e[n + 7]] + "-" + Yt[e[n + 8]] + Yt[e[n + 9]] + "-" + Yt[e[n + 10]] + Yt[e[n + 11]] + Yt[e[n + 12]] + Yt[e[n + 13]] + Yt[e[n + 14]] + Yt[e[n + 15]]).toLowerCase();
16229
16222
  }
16230
- const Qm = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), rd = {
16231
- randomUUID: Qm
16232
- };
16223
+ let cu;
16224
+ const Om = new Uint8Array(16);
16225
+ function Lm() {
16226
+ if (!cu) {
16227
+ if (typeof crypto > "u" || !crypto.getRandomValues)
16228
+ throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
16229
+ cu = crypto.getRandomValues.bind(crypto);
16230
+ }
16231
+ return cu(Om);
16232
+ }
16233
+ const Qm = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), rd = { randomUUID: Qm };
16233
16234
  function Pu(e, n, i) {
16235
+ var o;
16234
16236
  if (rd.randomUUID && !e)
16235
16237
  return rd.randomUUID();
16236
16238
  e = e || {};
16237
- const a = e.random || (e.rng || Om)();
16238
- return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, Lm(a);
16239
+ const a = e.random ?? ((o = e.rng) == null ? void 0 : o.call(e)) ?? Lm();
16240
+ if (a.length < 16)
16241
+ throw new Error("Random bytes length must be >= 16");
16242
+ return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, Mm(a);
16239
16243
  }
16240
16244
  function Fm({ sessionId: e, apiKey: n }) {
16241
16245
  let i = null;