@apolitical/component-library 5.5.1-SW.0 → 5.5.1-SW.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.mjs CHANGED
@@ -156,14 +156,14 @@ function Mh() {
156
156
  Ke.unshift("Warning: " + se), Function.prototype.apply.call(console[M], console, Ke);
157
157
  }
158
158
  }
159
- var B = !1, x = !1, D = !1, T = !1, I = !1, N;
160
- N = Symbol.for("react.module.reference");
159
+ var B = !1, x = !1, w = !1, T = !1, I = !1, P;
160
+ P = Symbol.for("react.module.reference");
161
161
  function z(M) {
162
- return !!(typeof M == "string" || typeof M == "function" || M === r || M === a || I || M === i || M === u || M === d || T || M === p || B || x || D || typeof M == "object" && M !== null && (M.$$typeof === m || M.$$typeof === h || M.$$typeof === s || M.$$typeof === o || M.$$typeof === l || // This needs to include all possible module reference object
162
+ return !!(typeof M == "string" || typeof M == "function" || M === r || M === a || I || M === i || M === u || M === d || T || M === p || B || x || w || typeof M == "object" && M !== null && (M.$$typeof === m || M.$$typeof === h || M.$$typeof === s || M.$$typeof === o || M.$$typeof === l || // This needs to include all possible module reference object
163
163
  // types supported by any Flight configuration anywhere since
164
164
  // we don't know which Flight build this will end up being used
165
165
  // with.
166
- M.$$typeof === N || M.getModuleId !== void 0));
166
+ M.$$typeof === P || M.getModuleId !== void 0));
167
167
  }
168
168
  function $(M, se, fe) {
169
169
  var Ce = M.displayName;
@@ -220,14 +220,14 @@ function Mh() {
220
220
  }
221
221
  return null;
222
222
  }
223
- var O = Object.assign, S = 0, U, H, ae, re, w, X, V;
223
+ var O = Object.assign, S = 0, U, H, ae, re, D, X, V;
224
224
  function F() {
225
225
  }
226
226
  F.__reactDisabledLog = !0;
227
227
  function A() {
228
228
  {
229
229
  if (S === 0) {
230
- U = console.log, H = console.info, ae = console.warn, re = console.error, w = console.group, X = console.groupCollapsed, V = console.groupEnd;
230
+ U = console.log, H = console.info, ae = console.warn, re = console.error, D = console.group, X = console.groupCollapsed, V = console.groupEnd;
231
231
  var M = {
232
232
  configurable: !0,
233
233
  enumerable: !0,
@@ -269,7 +269,7 @@ function Mh() {
269
269
  value: re
270
270
  }),
271
271
  group: O({}, M, {
272
- value: w
272
+ value: D
273
273
  }),
274
274
  groupCollapsed: O({}, M, {
275
275
  value: X
@@ -282,7 +282,7 @@ function Mh() {
282
282
  S < 0 && C("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
283
283
  }
284
284
  }
285
- var P = b.ReactCurrentDispatcher, L;
285
+ var N = b.ReactCurrentDispatcher, L;
286
286
  function Z(M, se, fe) {
287
287
  {
288
288
  if (L === void 0)
@@ -314,7 +314,7 @@ function Mh() {
314
314
  var $e = Error.prepareStackTrace;
315
315
  Error.prepareStackTrace = void 0;
316
316
  var Ke;
317
- Ke = P.current, P.current = null, A();
317
+ Ke = N.current, N.current = null, A();
318
318
  try {
319
319
  if (se) {
320
320
  var Ne = function() {
@@ -367,7 +367,7 @@ function Mh() {
367
367
  }
368
368
  }
369
369
  } finally {
370
- q = !1, P.current = Ke, j(), Error.prepareStackTrace = $e;
370
+ q = !1, N.current = Ke, j(), Error.prepareStackTrace = $e;
371
371
  }
372
372
  var Kn = M ? M.displayName || M.name : "", Go = Kn ? Z(Kn) : "";
373
373
  return typeof M == "function" && ne.set(M, Go), Go;
@@ -750,7 +750,7 @@ function qc(e, t, n) {
750
750
  return o.current = l.current = null, a.current = z, u.current = d.current.apply(k, $);
751
751
  }, x = function(z, $) {
752
752
  p && cancelAnimationFrame(s.current), s.current = p ? requestAnimationFrame(z) : setTimeout(z, $);
753
- }, D = function(z) {
753
+ }, w = function(z) {
754
754
  if (!h.current)
755
755
  return !1;
756
756
  var $ = z - i.current;
@@ -759,15 +759,15 @@ function qc(e, t, n) {
759
759
  return s.current = null, f && o.current ? B(z) : (o.current = l.current = null, u.current);
760
760
  }, I = function z() {
761
761
  var $ = Date.now();
762
- if (D($))
762
+ if (w($))
763
763
  return T($);
764
764
  if (h.current) {
765
765
  var k = t - ($ - i.current), E = v ? Math.min(k, C - ($ - a.current)) : k;
766
766
  x(z, E);
767
767
  }
768
- }, N = function() {
768
+ }, P = function() {
769
769
  if (m || b) {
770
- var z = Date.now(), $ = D(z);
770
+ var z = Date.now(), $ = w(z);
771
771
  if (o.current = [].slice.call(arguments), l.current = r, i.current = z, $) {
772
772
  if (!s.current && h.current)
773
773
  return a.current = i.current, x(I, t), g ? B(i.current) : u.current;
@@ -777,13 +777,13 @@ function qc(e, t, n) {
777
777
  return s.current || x(I, t), u.current;
778
778
  }
779
779
  };
780
- return N.cancel = function() {
780
+ return P.cancel = function() {
781
781
  s.current && (p ? cancelAnimationFrame(s.current) : clearTimeout(s.current)), a.current = 0, o.current = i.current = l.current = s.current = null;
782
- }, N.isPending = function() {
782
+ }, P.isPending = function() {
783
783
  return !!s.current;
784
- }, N.flush = function() {
784
+ }, P.flush = function() {
785
785
  return s.current ? T(Date.now()) : u.current;
786
- }, N;
786
+ }, P;
787
787
  }, [g, v, t, C, f, p, m, b]);
788
788
  return _;
789
789
  }
@@ -897,12 +897,12 @@ const Xo = {}, vr = Js(
897
897
  }, d) => {
898
898
  const h = ce(), [m] = le(e || Date.now().toString()), p = ke(null), g = d || p, [f, v] = le(n ? "open" : "hidden"), { extraPadding: b = !0, hasPointer: C = !1, hasForm: _ = !1 } = t, { onOpen: B = () => {
899
899
  }, onClose: x = () => {
900
- } } = o, { readToScreenreadersWhenClosed: D = !1, ...T } = l, I = Xo[m];
900
+ } } = o, { readToScreenreadersWhenClosed: w = !1, ...T } = l, I = Xo[m];
901
901
  de(() => {
902
902
  const k = g == null ? void 0 : g.current;
903
903
  if (k)
904
- return k.addEventListener("transitionend", N), () => {
905
- k.removeEventListener("transitionend", N);
904
+ return k.addEventListener("transitionend", P), () => {
905
+ k.removeEventListener("transitionend", P);
906
906
  };
907
907
  }, []), de(() => {
908
908
  if (f !== "open")
@@ -914,7 +914,7 @@ const Xo = {}, vr = Js(
914
914
  document.removeEventListener("keyup", k);
915
915
  };
916
916
  }, [f]);
917
- const N = ({ propertyName: k }) => {
917
+ const P = ({ propertyName: k }) => {
918
918
  k === "opacity" && (I !== !1 && clearTimeout(I), v((E) => (E === "open" ? B() : E === "closed" && x(), E === "opening" ? "open" : E === "closing" ? "closed" : E === "closed" ? "hidden" : E)));
919
919
  };
920
920
  qr(() => {
@@ -932,7 +932,7 @@ const Xo = {}, vr = Js(
932
932
  const $ = {
933
933
  className: "content"
934
934
  };
935
- return D ? $.className = K("content", { hidden: f === "hidden" }) : ($.hidden = f === "hidden", $["aria-live"] = "polite"), /* @__PURE__ */ c.jsx(
935
+ return w ? $.className = K("content", { hidden: f === "hidden" }) : ($.hidden = f === "hidden", $["aria-live"] = "polite"), /* @__PURE__ */ c.jsx(
936
936
  "aside",
937
937
  {
938
938
  ref: g,
@@ -2929,14 +2929,14 @@ const wn = ({
2929
2929
  variant: f = "inline",
2930
2930
  isCondensed: v = !0,
2931
2931
  additionalContentNewLine: b = !1
2932
- } = i, C = Re(pt), _ = m && C && typeof C.id == "string", [B, x] = le(!1), D = oo(t);
2933
- D.name || (D.name = h.formatMessage({
2932
+ } = i, C = Re(pt), _ = m && C && typeof C.id == "string", [B, x] = le(!1), w = oo(t);
2933
+ w.name || (w.name = h.formatMessage({
2934
2934
  id: `member_${typeof t == "string" ? t : "community"}`
2935
2935
  }));
2936
- const { name: T, image: I } = D;
2937
- let { url: N } = D;
2938
- typeof t == "object" && t.link !== void 0 && (t.link === !1 ? N = void 0 : N = t.link);
2939
- const z = $m(D), $ = r && r.createdAt ? Cs(r.createdAt) : !1, k = r && r.createdAt ? Zc(r.createdAt) : "";
2936
+ const { name: T, image: I } = w;
2937
+ let { url: P } = w;
2938
+ typeof t == "object" && t.link !== void 0 && (t.link === !1 ? P = void 0 : P = t.link);
2939
+ const z = $m(w), $ = r && r.createdAt ? Cs(r.createdAt) : !1, k = r && r.createdAt ? Zc(r.createdAt) : "";
2940
2940
  return te.createElement(e, {
2941
2941
  ...d,
2942
2942
  className: K("member text-medium", g, f, l, {
@@ -2947,17 +2947,17 @@ const wn = ({
2947
2947
  /* @__PURE__ */ c.jsxs(
2948
2948
  Ln,
2949
2949
  {
2950
- href: N,
2950
+ href: P,
2951
2951
  gtmType: o,
2952
2952
  gtmContext: s,
2953
2953
  onClick: (E) => {
2954
- if (E == null || E.preventDefault(), E == null || E.stopPropagation(), !N)
2954
+ if (E == null || E.preventDefault(), E == null || E.stopPropagation(), !P)
2955
2955
  return;
2956
2956
  si && clearTimeout(si), si = setTimeout(() => {
2957
- window.location.href = N;
2957
+ window.location.href = P;
2958
2958
  }, 150);
2959
2959
  const O = new CustomEvent(ut.MEMBER_CLICKED, {
2960
- detail: { link: N, timeout: si }
2960
+ detail: { link: P, timeout: si }
2961
2961
  });
2962
2962
  document.dispatchEvent(O);
2963
2963
  },
@@ -2971,7 +2971,7 @@ const wn = ({
2971
2971
  "data-testid": "member-name",
2972
2972
  children: [
2973
2973
  /* @__PURE__ */ c.jsx("span", { children: T }),
2974
- (u == null ? void 0 : u.showBadges) && (D == null ? void 0 : D.badges) && /* @__PURE__ */ c.jsx(Pm, { userBadges: D.badges, badgeOptions: u }),
2974
+ (u == null ? void 0 : u.showBadges) && (w == null ? void 0 : w.badges) && /* @__PURE__ */ c.jsx(Pm, { userBadges: w.badges, badgeOptions: u }),
2975
2975
  r && /* @__PURE__ */ c.jsxs(
2976
2976
  "span",
2977
2977
  {
@@ -3006,9 +3006,9 @@ const wn = ({
3006
3006
  className: K({ "text-medium": g === "large" }),
3007
3007
  "data-testid": "member-details",
3008
3008
  children: v ? z : /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
3009
- D.role,
3010
- D.organisation ? ` — ${D.organisation}` : /* @__PURE__ */ c.jsx(c.Fragment, {}),
3011
- /* @__PURE__ */ c.jsx("span", { className: "location", children: D.country })
3009
+ w.role,
3010
+ w.organisation ? ` — ${w.organisation}` : /* @__PURE__ */ c.jsx(c.Fragment, {}),
3011
+ /* @__PURE__ */ c.jsx("span", { className: "location", children: w.country })
3012
3012
  ] })
3013
3013
  }
3014
3014
  )
@@ -3130,8 +3130,8 @@ function qm() {
3130
3130
  var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, v = e ? Symbol.for("react.fundamental") : 60117, b = e ? Symbol.for("react.responder") : 60118, C = e ? Symbol.for("react.scope") : 60119;
3131
3131
  function _(x) {
3132
3132
  if (typeof x == "object" && x !== null) {
3133
- var D = x.$$typeof;
3134
- switch (D) {
3133
+ var w = x.$$typeof;
3134
+ switch (w) {
3135
3135
  case t:
3136
3136
  switch (x = x.type, x) {
3137
3137
  case l:
@@ -3150,11 +3150,11 @@ function qm() {
3150
3150
  case s:
3151
3151
  return x;
3152
3152
  default:
3153
- return D;
3153
+ return w;
3154
3154
  }
3155
3155
  }
3156
3156
  case n:
3157
- return D;
3157
+ return w;
3158
3158
  }
3159
3159
  }
3160
3160
  }
@@ -3238,11 +3238,11 @@ function Um() {
3238
3238
  }
3239
3239
  }
3240
3240
  }
3241
- var x = l, D = u, T = o, I = s, N = t, z = d, $ = r, k = g, E = p, O = n, S = a, U = i, H = h, ae = !1;
3241
+ var x = l, w = u, T = o, I = s, P = t, z = d, $ = r, k = g, E = p, O = n, S = a, U = i, H = h, ae = !1;
3242
3242
  function re(Q) {
3243
- return ae || (ae = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), w(Q) || B(Q) === l;
3243
+ return ae || (ae = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), D(Q) || B(Q) === l;
3244
3244
  }
3245
- function w(Q) {
3245
+ function D(Q) {
3246
3246
  return B(Q) === u;
3247
3247
  }
3248
3248
  function X(Q) {
@@ -3260,7 +3260,7 @@ function Um() {
3260
3260
  function j(Q) {
3261
3261
  return B(Q) === r;
3262
3262
  }
3263
- function P(Q) {
3263
+ function N(Q) {
3264
3264
  return B(Q) === g;
3265
3265
  }
3266
3266
  function L(Q) {
@@ -3278,7 +3278,7 @@ function Um() {
3278
3278
  function ue(Q) {
3279
3279
  return B(Q) === h;
3280
3280
  }
3281
- ze.AsyncMode = x, ze.ConcurrentMode = D, ze.ContextConsumer = T, ze.ContextProvider = I, ze.Element = N, ze.ForwardRef = z, ze.Fragment = $, ze.Lazy = k, ze.Memo = E, ze.Portal = O, ze.Profiler = S, ze.StrictMode = U, ze.Suspense = H, ze.isAsyncMode = re, ze.isConcurrentMode = w, ze.isContextConsumer = X, ze.isContextProvider = V, ze.isElement = F, ze.isForwardRef = A, ze.isFragment = j, ze.isLazy = P, ze.isMemo = L, ze.isPortal = Z, ze.isProfiler = q, ze.isStrictMode = ne, ze.isSuspense = ue, ze.isValidElementType = _, ze.typeOf = B;
3281
+ ze.AsyncMode = x, ze.ConcurrentMode = w, ze.ContextConsumer = T, ze.ContextProvider = I, ze.Element = P, ze.ForwardRef = z, ze.Fragment = $, ze.Lazy = k, ze.Memo = E, ze.Portal = O, ze.Profiler = S, ze.StrictMode = U, ze.Suspense = H, ze.isAsyncMode = re, ze.isConcurrentMode = D, ze.isContextConsumer = X, ze.isContextProvider = V, ze.isElement = F, ze.isForwardRef = A, ze.isFragment = j, ze.isLazy = N, ze.isMemo = L, ze.isPortal = Z, ze.isProfiler = q, ze.isStrictMode = ne, ze.isSuspense = ue, ze.isValidElementType = _, ze.typeOf = B;
3282
3282
  }()), ze;
3283
3283
  }
3284
3284
  var hu;
@@ -3419,8 +3419,8 @@ function Vm() {
3419
3419
  }
3420
3420
  return Ba = function(o, l) {
3421
3421
  var u = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator";
3422
- function h(w) {
3423
- var X = w && (u && w[u] || w[d]);
3422
+ function h(D) {
3423
+ var X = D && (u && D[u] || D[d]);
3424
3424
  if (typeof X == "function")
3425
3425
  return X;
3426
3426
  }
@@ -3437,25 +3437,25 @@ function Vm() {
3437
3437
  arrayOf: _,
3438
3438
  element: B(),
3439
3439
  elementType: x(),
3440
- instanceOf: D,
3440
+ instanceOf: w,
3441
3441
  node: z(),
3442
3442
  objectOf: I,
3443
3443
  oneOf: T,
3444
- oneOfType: N,
3444
+ oneOfType: P,
3445
3445
  shape: k,
3446
3446
  exact: E
3447
3447
  };
3448
- function g(w, X) {
3449
- return w === X ? w !== 0 || 1 / w === 1 / X : w !== w && X !== X;
3448
+ function g(D, X) {
3449
+ return D === X ? D !== 0 || 1 / D === 1 / X : D !== D && X !== X;
3450
3450
  }
3451
- function f(w, X) {
3452
- this.message = w, this.data = X && typeof X == "object" ? X : {}, this.stack = "";
3451
+ function f(D, X) {
3452
+ this.message = D, this.data = X && typeof X == "object" ? X : {}, this.stack = "";
3453
3453
  }
3454
3454
  f.prototype = Error.prototype;
3455
- function v(w) {
3455
+ function v(D) {
3456
3456
  if (process.env.NODE_ENV !== "production")
3457
3457
  var X = {}, V = 0;
3458
- function F(j, P, L, Z, q, ne, ue) {
3458
+ function F(j, N, L, Z, q, ne, ue) {
3459
3459
  if (Z = Z || m, ne = ne || L, ue !== n) {
3460
3460
  if (l) {
3461
3461
  var Q = new Error(
@@ -3470,19 +3470,19 @@ function Vm() {
3470
3470
  ), X[ve] = !0, V++);
3471
3471
  }
3472
3472
  }
3473
- return P[L] == null ? j ? P[L] === null ? new f("The " + q + " `" + ne + "` is marked as required " + ("in `" + Z + "`, but its value is `null`.")) : new f("The " + q + " `" + ne + "` is marked as required in " + ("`" + Z + "`, but its value is `undefined`.")) : null : w(P, L, Z, q, ne);
3473
+ return N[L] == null ? j ? N[L] === null ? new f("The " + q + " `" + ne + "` is marked as required " + ("in `" + Z + "`, but its value is `null`.")) : new f("The " + q + " `" + ne + "` is marked as required in " + ("`" + Z + "`, but its value is `undefined`.")) : null : D(N, L, Z, q, ne);
3474
3474
  }
3475
3475
  var A = F.bind(null, !1);
3476
3476
  return A.isRequired = F.bind(null, !0), A;
3477
3477
  }
3478
- function b(w) {
3479
- function X(V, F, A, j, P, L) {
3478
+ function b(D) {
3479
+ function X(V, F, A, j, N, L) {
3480
3480
  var Z = V[F], q = U(Z);
3481
- if (q !== w) {
3481
+ if (q !== D) {
3482
3482
  var ne = H(Z);
3483
3483
  return new f(
3484
- "Invalid " + j + " `" + P + "` of type " + ("`" + ne + "` supplied to `" + A + "`, expected ") + ("`" + w + "`."),
3485
- { expectedType: w }
3484
+ "Invalid " + j + " `" + N + "` of type " + ("`" + ne + "` supplied to `" + A + "`, expected ") + ("`" + D + "`."),
3485
+ { expectedType: D }
3486
3486
  );
3487
3487
  }
3488
3488
  return null;
@@ -3492,17 +3492,17 @@ function Vm() {
3492
3492
  function C() {
3493
3493
  return v(s);
3494
3494
  }
3495
- function _(w) {
3496
- function X(V, F, A, j, P) {
3497
- if (typeof w != "function")
3498
- return new f("Property `" + P + "` of component `" + A + "` has invalid PropType notation inside arrayOf.");
3495
+ function _(D) {
3496
+ function X(V, F, A, j, N) {
3497
+ if (typeof D != "function")
3498
+ return new f("Property `" + N + "` of component `" + A + "` has invalid PropType notation inside arrayOf.");
3499
3499
  var L = V[F];
3500
3500
  if (!Array.isArray(L)) {
3501
3501
  var Z = U(L);
3502
- return new f("Invalid " + j + " `" + P + "` of type " + ("`" + Z + "` supplied to `" + A + "`, expected an array."));
3502
+ return new f("Invalid " + j + " `" + N + "` of type " + ("`" + Z + "` supplied to `" + A + "`, expected an array."));
3503
3503
  }
3504
3504
  for (var q = 0; q < L.length; q++) {
3505
- var ne = w(L, q, A, j, P + "[" + q + "]", n);
3505
+ var ne = D(L, q, A, j, N + "[" + q + "]", n);
3506
3506
  if (ne instanceof Error)
3507
3507
  return ne;
3508
3508
  }
@@ -3511,64 +3511,64 @@ function Vm() {
3511
3511
  return v(X);
3512
3512
  }
3513
3513
  function B() {
3514
- function w(X, V, F, A, j) {
3515
- var P = X[V];
3516
- if (!o(P)) {
3517
- var L = U(P);
3514
+ function D(X, V, F, A, j) {
3515
+ var N = X[V];
3516
+ if (!o(N)) {
3517
+ var L = U(N);
3518
3518
  return new f("Invalid " + A + " `" + j + "` of type " + ("`" + L + "` supplied to `" + F + "`, expected a single ReactElement."));
3519
3519
  }
3520
3520
  return null;
3521
3521
  }
3522
- return v(w);
3522
+ return v(D);
3523
3523
  }
3524
3524
  function x() {
3525
- function w(X, V, F, A, j) {
3526
- var P = X[V];
3527
- if (!e.isValidElementType(P)) {
3528
- var L = U(P);
3525
+ function D(X, V, F, A, j) {
3526
+ var N = X[V];
3527
+ if (!e.isValidElementType(N)) {
3528
+ var L = U(N);
3529
3529
  return new f("Invalid " + A + " `" + j + "` of type " + ("`" + L + "` supplied to `" + F + "`, expected a single ReactElement type."));
3530
3530
  }
3531
3531
  return null;
3532
3532
  }
3533
- return v(w);
3533
+ return v(D);
3534
3534
  }
3535
- function D(w) {
3536
- function X(V, F, A, j, P) {
3537
- if (!(V[F] instanceof w)) {
3538
- var L = w.name || m, Z = re(V[F]);
3539
- return new f("Invalid " + j + " `" + P + "` of type " + ("`" + Z + "` supplied to `" + A + "`, expected ") + ("instance of `" + L + "`."));
3535
+ function w(D) {
3536
+ function X(V, F, A, j, N) {
3537
+ if (!(V[F] instanceof D)) {
3538
+ var L = D.name || m, Z = re(V[F]);
3539
+ return new f("Invalid " + j + " `" + N + "` of type " + ("`" + Z + "` supplied to `" + A + "`, expected ") + ("instance of `" + L + "`."));
3540
3540
  }
3541
3541
  return null;
3542
3542
  }
3543
3543
  return v(X);
3544
3544
  }
3545
- function T(w) {
3546
- if (!Array.isArray(w))
3545
+ function T(D) {
3546
+ if (!Array.isArray(D))
3547
3547
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
3548
3548
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
3549
3549
  ) : a("Invalid argument supplied to oneOf, expected an array.")), s;
3550
- function X(V, F, A, j, P) {
3551
- for (var L = V[F], Z = 0; Z < w.length; Z++)
3552
- if (g(L, w[Z]))
3550
+ function X(V, F, A, j, N) {
3551
+ for (var L = V[F], Z = 0; Z < D.length; Z++)
3552
+ if (g(L, D[Z]))
3553
3553
  return null;
3554
- var q = JSON.stringify(w, function(ue, Q) {
3554
+ var q = JSON.stringify(D, function(ue, Q) {
3555
3555
  var ve = H(Q);
3556
3556
  return ve === "symbol" ? String(Q) : Q;
3557
3557
  });
3558
- return new f("Invalid " + j + " `" + P + "` of value `" + String(L) + "` " + ("supplied to `" + A + "`, expected one of " + q + "."));
3558
+ return new f("Invalid " + j + " `" + N + "` of value `" + String(L) + "` " + ("supplied to `" + A + "`, expected one of " + q + "."));
3559
3559
  }
3560
3560
  return v(X);
3561
3561
  }
3562
- function I(w) {
3563
- function X(V, F, A, j, P) {
3564
- if (typeof w != "function")
3565
- return new f("Property `" + P + "` of component `" + A + "` has invalid PropType notation inside objectOf.");
3562
+ function I(D) {
3563
+ function X(V, F, A, j, N) {
3564
+ if (typeof D != "function")
3565
+ return new f("Property `" + N + "` of component `" + A + "` has invalid PropType notation inside objectOf.");
3566
3566
  var L = V[F], Z = U(L);
3567
3567
  if (Z !== "object")
3568
- return new f("Invalid " + j + " `" + P + "` of type " + ("`" + Z + "` supplied to `" + A + "`, expected an object."));
3568
+ return new f("Invalid " + j + " `" + N + "` of type " + ("`" + Z + "` supplied to `" + A + "`, expected an object."));
3569
3569
  for (var q in L)
3570
3570
  if (r(L, q)) {
3571
- var ne = w(L, q, A, j, P + "." + q, n);
3571
+ var ne = D(L, q, A, j, N + "." + q, n);
3572
3572
  if (ne instanceof Error)
3573
3573
  return ne;
3574
3574
  }
@@ -3576,49 +3576,49 @@ function Vm() {
3576
3576
  }
3577
3577
  return v(X);
3578
3578
  }
3579
- function N(w) {
3580
- if (!Array.isArray(w))
3579
+ function P(D) {
3580
+ if (!Array.isArray(D))
3581
3581
  return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), s;
3582
- for (var X = 0; X < w.length; X++) {
3583
- var V = w[X];
3582
+ for (var X = 0; X < D.length; X++) {
3583
+ var V = D[X];
3584
3584
  if (typeof V != "function")
3585
3585
  return a(
3586
3586
  "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ae(V) + " at index " + X + "."
3587
3587
  ), s;
3588
3588
  }
3589
- function F(A, j, P, L, Z) {
3590
- for (var q = [], ne = 0; ne < w.length; ne++) {
3591
- var ue = w[ne], Q = ue(A, j, P, L, Z, n);
3589
+ function F(A, j, N, L, Z) {
3590
+ for (var q = [], ne = 0; ne < D.length; ne++) {
3591
+ var ue = D[ne], Q = ue(A, j, N, L, Z, n);
3592
3592
  if (Q == null)
3593
3593
  return null;
3594
3594
  Q.data && r(Q.data, "expectedType") && q.push(Q.data.expectedType);
3595
3595
  }
3596
3596
  var ve = q.length > 0 ? ", expected one of type [" + q.join(", ") + "]" : "";
3597
- return new f("Invalid " + L + " `" + Z + "` supplied to " + ("`" + P + "`" + ve + "."));
3597
+ return new f("Invalid " + L + " `" + Z + "` supplied to " + ("`" + N + "`" + ve + "."));
3598
3598
  }
3599
3599
  return v(F);
3600
3600
  }
3601
3601
  function z() {
3602
- function w(X, V, F, A, j) {
3602
+ function D(X, V, F, A, j) {
3603
3603
  return O(X[V]) ? null : new f("Invalid " + A + " `" + j + "` supplied to " + ("`" + F + "`, expected a ReactNode."));
3604
3604
  }
3605
- return v(w);
3605
+ return v(D);
3606
3606
  }
3607
- function $(w, X, V, F, A) {
3607
+ function $(D, X, V, F, A) {
3608
3608
  return new f(
3609
- (w || "React class") + ": " + X + " type `" + V + "." + F + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + A + "`."
3609
+ (D || "React class") + ": " + X + " type `" + V + "." + F + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + A + "`."
3610
3610
  );
3611
3611
  }
3612
- function k(w) {
3613
- function X(V, F, A, j, P) {
3612
+ function k(D) {
3613
+ function X(V, F, A, j, N) {
3614
3614
  var L = V[F], Z = U(L);
3615
3615
  if (Z !== "object")
3616
- return new f("Invalid " + j + " `" + P + "` of type `" + Z + "` " + ("supplied to `" + A + "`, expected `object`."));
3617
- for (var q in w) {
3618
- var ne = w[q];
3616
+ return new f("Invalid " + j + " `" + N + "` of type `" + Z + "` " + ("supplied to `" + A + "`, expected `object`."));
3617
+ for (var q in D) {
3618
+ var ne = D[q];
3619
3619
  if (typeof ne != "function")
3620
- return $(A, j, P, q, H(ne));
3621
- var ue = ne(L, q, A, j, P + "." + q, n);
3620
+ return $(A, j, N, q, H(ne));
3621
+ var ue = ne(L, q, A, j, N + "." + q, n);
3622
3622
  if (ue)
3623
3623
  return ue;
3624
3624
  }
@@ -3626,22 +3626,22 @@ function Vm() {
3626
3626
  }
3627
3627
  return v(X);
3628
3628
  }
3629
- function E(w) {
3630
- function X(V, F, A, j, P) {
3629
+ function E(D) {
3630
+ function X(V, F, A, j, N) {
3631
3631
  var L = V[F], Z = U(L);
3632
3632
  if (Z !== "object")
3633
- return new f("Invalid " + j + " `" + P + "` of type `" + Z + "` " + ("supplied to `" + A + "`, expected `object`."));
3634
- var q = t({}, V[F], w);
3633
+ return new f("Invalid " + j + " `" + N + "` of type `" + Z + "` " + ("supplied to `" + A + "`, expected `object`."));
3634
+ var q = t({}, V[F], D);
3635
3635
  for (var ne in q) {
3636
- var ue = w[ne];
3637
- if (r(w, ne) && typeof ue != "function")
3638
- return $(A, j, P, ne, H(ue));
3636
+ var ue = D[ne];
3637
+ if (r(D, ne) && typeof ue != "function")
3638
+ return $(A, j, N, ne, H(ue));
3639
3639
  if (!ue)
3640
3640
  return new f(
3641
- "Invalid " + j + " `" + P + "` key `" + ne + "` supplied to `" + A + "`.\nBad object: " + JSON.stringify(V[F], null, " ") + `
3642
- Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
3641
+ "Invalid " + j + " `" + N + "` key `" + ne + "` supplied to `" + A + "`.\nBad object: " + JSON.stringify(V[F], null, " ") + `
3642
+ Valid keys: ` + JSON.stringify(Object.keys(D), null, " ")
3643
3643
  );
3644
- var Q = ue(L, ne, A, j, P + "." + ne, n);
3644
+ var Q = ue(L, ne, A, j, N + "." + ne, n);
3645
3645
  if (Q)
3646
3646
  return Q;
3647
3647
  }
@@ -3649,23 +3649,23 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
3649
3649
  }
3650
3650
  return v(X);
3651
3651
  }
3652
- function O(w) {
3653
- switch (typeof w) {
3652
+ function O(D) {
3653
+ switch (typeof D) {
3654
3654
  case "number":
3655
3655
  case "string":
3656
3656
  case "undefined":
3657
3657
  return !0;
3658
3658
  case "boolean":
3659
- return !w;
3659
+ return !D;
3660
3660
  case "object":
3661
- if (Array.isArray(w))
3662
- return w.every(O);
3663
- if (w === null || o(w))
3661
+ if (Array.isArray(D))
3662
+ return D.every(O);
3663
+ if (D === null || o(D))
3664
3664
  return !0;
3665
- var X = h(w);
3665
+ var X = h(D);
3666
3666
  if (X) {
3667
- var V = X.call(w), F;
3668
- if (X !== w.entries) {
3667
+ var V = X.call(D), F;
3668
+ if (X !== D.entries) {
3669
3669
  for (; !(F = V.next()).done; )
3670
3670
  if (!O(F.value))
3671
3671
  return !1;
@@ -3682,27 +3682,27 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
3682
3682
  return !1;
3683
3683
  }
3684
3684
  }
3685
- function S(w, X) {
3686
- return w === "symbol" ? !0 : X ? X["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && X instanceof Symbol : !1;
3685
+ function S(D, X) {
3686
+ return D === "symbol" ? !0 : X ? X["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && X instanceof Symbol : !1;
3687
3687
  }
3688
- function U(w) {
3689
- var X = typeof w;
3690
- return Array.isArray(w) ? "array" : w instanceof RegExp ? "object" : S(X, w) ? "symbol" : X;
3688
+ function U(D) {
3689
+ var X = typeof D;
3690
+ return Array.isArray(D) ? "array" : D instanceof RegExp ? "object" : S(X, D) ? "symbol" : X;
3691
3691
  }
3692
- function H(w) {
3693
- if (typeof w > "u" || w === null)
3694
- return "" + w;
3695
- var X = U(w);
3692
+ function H(D) {
3693
+ if (typeof D > "u" || D === null)
3694
+ return "" + D;
3695
+ var X = U(D);
3696
3696
  if (X === "object") {
3697
- if (w instanceof Date)
3697
+ if (D instanceof Date)
3698
3698
  return "date";
3699
- if (w instanceof RegExp)
3699
+ if (D instanceof RegExp)
3700
3700
  return "regexp";
3701
3701
  }
3702
3702
  return X;
3703
3703
  }
3704
- function ae(w) {
3705
- var X = H(w);
3704
+ function ae(D) {
3705
+ var X = H(D);
3706
3706
  switch (X) {
3707
3707
  case "array":
3708
3708
  case "object":
@@ -3715,8 +3715,8 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
3715
3715
  return X;
3716
3716
  }
3717
3717
  }
3718
- function re(w) {
3719
- return !w.constructor || !w.constructor.name ? m : w.constructor.name;
3718
+ function re(D) {
3719
+ return !D.constructor || !D.constructor.name ? m : D.constructor.name;
3720
3720
  }
3721
3721
  return p.checkPropTypes = i, p.resetWarningCache = i.resetWarningCache, p.PropTypes = p, p;
3722
3722
  }, Ba;
@@ -4153,12 +4153,12 @@ var Cu = {
4153
4153
  return k;
4154
4154
  }, m = function() {
4155
4155
  if (s.containerGroups = s.containers.map(function(k) {
4156
- var E = md(k, a.tabbableOptions), O = pd(k, a.tabbableOptions), S = E.length > 0 ? E[0] : void 0, U = E.length > 0 ? E[E.length - 1] : void 0, H = O.find(function(w) {
4157
- return Fn(w);
4158
- }), ae = O.slice().reverse().find(function(w) {
4159
- return Fn(w);
4160
- }), re = !!E.find(function(w) {
4161
- return yn(w) > 0;
4156
+ var E = md(k, a.tabbableOptions), O = pd(k, a.tabbableOptions), S = E.length > 0 ? E[0] : void 0, U = E.length > 0 ? E[E.length - 1] : void 0, H = O.find(function(D) {
4157
+ return Fn(D);
4158
+ }), ae = O.slice().reverse().find(function(D) {
4159
+ return Fn(D);
4160
+ }), re = !!E.find(function(D) {
4161
+ return yn(D) > 0;
4162
4162
  });
4163
4163
  return {
4164
4164
  container: k,
@@ -4232,18 +4232,18 @@ var Cu = {
4232
4232
  if (ae < 0)
4233
4233
  U ? H = s.tabbableGroups[s.tabbableGroups.length - 1].lastTabbableNode : H = s.tabbableGroups[0].firstTabbableNode;
4234
4234
  else if (U) {
4235
- var w = _u(s.tabbableGroups, function(P) {
4236
- var L = P.firstTabbableNode;
4235
+ var D = _u(s.tabbableGroups, function(N) {
4236
+ var L = N.firstTabbableNode;
4237
4237
  return E === L;
4238
4238
  });
4239
- if (w < 0 && (re.container === E || Bi(E, a.tabbableOptions) && !Fn(E, a.tabbableOptions) && !re.nextTabbableNode(E, !1)) && (w = ae), w >= 0) {
4240
- var X = w === 0 ? s.tabbableGroups.length - 1 : w - 1, V = s.tabbableGroups[X];
4239
+ if (D < 0 && (re.container === E || Bi(E, a.tabbableOptions) && !Fn(E, a.tabbableOptions) && !re.nextTabbableNode(E, !1)) && (D = ae), D >= 0) {
4240
+ var X = D === 0 ? s.tabbableGroups.length - 1 : D - 1, V = s.tabbableGroups[X];
4241
4241
  H = yn(E) >= 0 ? V.lastTabbableNode : V.lastDomTabbableNode;
4242
4242
  } else
4243
4243
  Or(O) || (H = re.nextTabbableNode(E, !1));
4244
4244
  } else {
4245
- var F = _u(s.tabbableGroups, function(P) {
4246
- var L = P.lastTabbableNode;
4245
+ var F = _u(s.tabbableGroups, function(N) {
4246
+ var L = N.lastTabbableNode;
4247
4247
  return E === L;
4248
4248
  });
4249
4249
  if (F < 0 && (re.container === E || Bi(E, a.tabbableOptions) && !Fn(E, a.tabbableOptions) && !re.nextTabbableNode(E)) && (F = ae), F >= 0) {
@@ -4283,14 +4283,14 @@ var Cu = {
4283
4283
  if (yn(s.mostRecentlyFocusedNode) > 0) {
4284
4284
  var H = u(s.mostRecentlyFocusedNode), ae = s.containerGroups[H].tabbableNodes;
4285
4285
  if (ae.length > 0) {
4286
- var re = ae.findIndex(function(w) {
4287
- return w === s.mostRecentlyFocusedNode;
4286
+ var re = ae.findIndex(function(D) {
4287
+ return D === s.mostRecentlyFocusedNode;
4288
4288
  });
4289
4289
  re >= 0 && (a.isKeyForward(s.recentNavEvent) ? re + 1 < ae.length && (S = ae[re + 1], U = !1) : re - 1 >= 0 && (S = ae[re - 1], U = !1));
4290
4290
  }
4291
4291
  } else
4292
- s.containerGroups.some(function(w) {
4293
- return w.tabbableNodes.some(function(X) {
4292
+ s.containerGroups.some(function(D) {
4293
+ return D.tabbableNodes.some(function(X) {
4294
4294
  return yn(X) > 0;
4295
4295
  });
4296
4296
  }) || (U = !1);
@@ -4321,7 +4321,7 @@ var Cu = {
4321
4321
  }, x = function(k) {
4322
4322
  var E = ui(k);
4323
4323
  u(E, k) >= 0 || Cr(a.clickOutsideDeactivates, k) || Cr(a.allowOutsideClick, k) || (k.preventDefault(), k.stopImmediatePropagation());
4324
- }, D = function() {
4324
+ }, w = function() {
4325
4325
  if (s.active)
4326
4326
  return Cu.activateTrap(i, o), s.delayInitialFocusTimer = a.delayInitialFocus ? Eu(function() {
4327
4327
  g(h());
@@ -4349,9 +4349,9 @@ var Cu = {
4349
4349
  });
4350
4350
  });
4351
4351
  E && g(h());
4352
- }, N = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(I) : void 0, z = function() {
4353
- N && (N.disconnect(), s.active && !s.paused && s.containers.map(function(k) {
4354
- N.observe(k, {
4352
+ }, P = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(I) : void 0, z = function() {
4353
+ P && (P.disconnect(), s.active && !s.paused && s.containers.map(function(k) {
4354
+ P.observe(k, {
4355
4355
  subtree: !0,
4356
4356
  childList: !0
4357
4357
  });
@@ -4370,7 +4370,7 @@ var Cu = {
4370
4370
  var E = l(k, "onActivate"), O = l(k, "onPostActivate"), S = l(k, "checkCanFocusTrap");
4371
4371
  S || m(), s.active = !0, s.paused = !1, s.nodeFocusedBeforeActivation = r.activeElement, E == null || E();
4372
4372
  var U = function() {
4373
- S && m(), D(), z(), O == null || O();
4373
+ S && m(), w(), z(), O == null || O();
4374
4374
  };
4375
4375
  return S ? (S(s.containers.concat()).then(U, U), this) : (U(), this);
4376
4376
  },
@@ -4402,7 +4402,7 @@ var Cu = {
4402
4402
  if (!s.paused || !s.active)
4403
4403
  return this;
4404
4404
  var E = l(k, "onUnpause"), O = l(k, "onPostUnpause");
4405
- return s.paused = !1, E == null || E(), m(), D(), z(), O == null || O(), this;
4405
+ return s.paused = !1, E == null || E(), m(), w(), z(), O == null || O(), this;
4406
4406
  },
4407
4407
  updateContainerElements: function(k) {
4408
4408
  var E = [].concat(k).filter(Boolean);
@@ -4766,12 +4766,12 @@ const En = ({
4766
4766
  className: d = "",
4767
4767
  gtmContext: h = "Modal"
4768
4768
  }) => {
4769
- const m = ce(), { registerOverlay: p, unregisterOverlay: g } = Tm(), [f, v] = le(t), [b, C] = le(null), _ = ke(null), B = (N) => {
4770
- f && N.key === "Escape" && T(!1);
4771
- }, x = (N) => {
4772
- C(N.target);
4773
- }, D = (N) => {
4774
- b === _.current && N.target === _.current && T(!1), C(null);
4769
+ const m = ce(), { registerOverlay: p, unregisterOverlay: g } = Tm(), [f, v] = le(t), [b, C] = le(null), _ = ke(null), B = (P) => {
4770
+ f && P.key === "Escape" && T(!1);
4771
+ }, x = (P) => {
4772
+ C(P.target);
4773
+ }, w = (P) => {
4774
+ b === _.current && P.target === _.current && T(!1), C(null);
4775
4775
  };
4776
4776
  de(() => {
4777
4777
  if (f)
@@ -4779,16 +4779,16 @@ const En = ({
4779
4779
  window.removeEventListener("keyup", B);
4780
4780
  };
4781
4781
  }, [f]), de(() => {
4782
- const N = _.current;
4783
- return N && (N.addEventListener("mousedown", x), N.addEventListener("mouseup", D)), () => {
4784
- N && (N.removeEventListener("mousedown", x), N.removeEventListener("mouseup", D));
4782
+ const P = _.current;
4783
+ return P && (P.addEventListener("mousedown", x), P.addEventListener("mouseup", w)), () => {
4784
+ P && (P.removeEventListener("mousedown", x), P.removeEventListener("mouseup", w));
4785
4785
  };
4786
4786
  }, [b]);
4787
- const T = (N) => {
4788
- if (v(N), N)
4787
+ const T = (P) => {
4788
+ if (v(P), P)
4789
4789
  i(), p(e);
4790
4790
  else {
4791
- if (f === N)
4791
+ if (f === P)
4792
4792
  return;
4793
4793
  a(), g(e);
4794
4794
  }
@@ -5452,7 +5452,7 @@ const J_ = ({ tabs: e, className: t = "", preventLocationChange: n }) => {
5452
5452
  if (B && !h(B))
5453
5453
  return;
5454
5454
  f = r(f, v, x);
5455
- const D = s === f, T = {};
5455
+ const w = s === f, T = {};
5456
5456
  C || (T["aria-controls"] = f, T.onClick = (I) => {
5457
5457
  I.preventDefault(), I.stopPropagation(), o(f), !n && (window.location.hash = `#${f}`);
5458
5458
  }, p.push(
@@ -5460,10 +5460,10 @@ const J_ = ({ tabs: e, className: t = "", preventLocationChange: n }) => {
5460
5460
  "section",
5461
5461
  {
5462
5462
  id: f,
5463
- hidden: !D,
5463
+ hidden: !w,
5464
5464
  role: "tabpanel",
5465
5465
  "aria-labelledby": `tab-${f}`,
5466
- "aria-live": D ? "assertive" : "off",
5466
+ "aria-live": w ? "assertive" : "off",
5467
5467
  children: typeof b == "string" ? /* @__PURE__ */ c.jsx("p", { children: b }) : b
5468
5468
  },
5469
5469
  `section-${f}`
@@ -5475,10 +5475,10 @@ const J_ = ({ tabs: e, className: t = "", preventLocationChange: n }) => {
5475
5475
  href: C || `#${f}`,
5476
5476
  id: `tab-${f}`,
5477
5477
  "aria-controls": f,
5478
- className: K({ selected: D }),
5478
+ className: K({ selected: w }),
5479
5479
  role: "tab",
5480
- tabIndex: D ? 0 : -1,
5481
- "aria-selected": D,
5480
+ tabIndex: w ? 0 : -1,
5481
+ "aria-selected": w,
5482
5482
  onKeyDown: (I) => d(I, x),
5483
5483
  ...T,
5484
5484
  children: v
@@ -5780,12 +5780,12 @@ const Zn = {
5780
5780
  d && !g ? (async () => {
5781
5781
  try {
5782
5782
  const x = await o(d) || [];
5783
- f((D) => ({
5784
- ...D,
5783
+ f((w) => ({
5784
+ ...w,
5785
5785
  predictions: x
5786
5786
  }));
5787
5787
  } catch (x) {
5788
- console.error("Error fetching predictions:", x), f((D) => ({ ...D, predictions: [] }));
5788
+ console.error("Error fetching predictions:", x), f((w) => ({ ...w, predictions: [] }));
5789
5789
  }
5790
5790
  })() : f((B) => ({ ...B, predictions: [] }));
5791
5791
  }, [d, g]), de(() => {
@@ -5848,8 +5848,8 @@ const Zn = {
5848
5848
  "li",
5849
5849
  {
5850
5850
  onClick: () => _(B),
5851
- onMouseEnter: () => f((D) => ({
5852
- ...D,
5851
+ onMouseEnter: () => f((w) => ({
5852
+ ...w,
5853
5853
  activePredictionIndex: x
5854
5854
  })),
5855
5855
  className: K("predictions-list-item", {
@@ -5927,13 +5927,13 @@ const Dd = ({
5927
5927
  case "ArrowLeft":
5928
5928
  case "ArrowRight":
5929
5929
  C.stopPropagation(), C.preventDefault();
5930
- const D = C.currentTarget;
5931
- let T = D == null ? void 0 : D.nextElementSibling;
5930
+ const w = C.currentTarget;
5931
+ let T = w == null ? void 0 : w.nextElementSibling;
5932
5932
  if (C.key === "ArrowLeft") {
5933
- const I = D == null ? void 0 : D.previousElementSibling;
5934
- I ? T = I : T = (_ = D == null ? void 0 : D.parentElement) == null ? void 0 : _.lastElementChild;
5933
+ const I = w == null ? void 0 : w.previousElementSibling;
5934
+ I ? T = I : T = (_ = w == null ? void 0 : w.parentElement) == null ? void 0 : _.lastElementChild;
5935
5935
  } else
5936
- T || (T = (B = D == null ? void 0 : D.parentElement) == null ? void 0 : B.firstElementChild);
5936
+ T || (T = (B = w == null ? void 0 : w.parentElement) == null ? void 0 : B.firstElementChild);
5937
5937
  T && ((x = T == null ? void 0 : T.querySelector("label")) == null || x.focus());
5938
5938
  break;
5939
5939
  }
@@ -5979,12 +5979,12 @@ const ng = ({
5979
5979
  const { onChange: C, onMultiSelectSubmit: _, ...B } = i, x = (T) => {
5980
5980
  if (o) {
5981
5981
  let I = [];
5982
- f != null && f.includes(T.id) ? I = f.filter((N) => N !== T.id) : I = [...f, T.id], v([...I]), C && C([...I]);
5982
+ f != null && f.includes(T.id) ? I = f.filter((P) => P !== T.id) : I = [...f, T.id], v([...I]), C && C([...I]);
5983
5983
  } else
5984
5984
  v([T]), C && C(T.id), m(!1);
5985
- }, D = (T) => {
5985
+ }, w = (T) => {
5986
5986
  if (T === "all") {
5987
- const I = (t == null ? void 0 : t.map((N) => N.id)) || [];
5987
+ const I = (t == null ? void 0 : t.map((P) => P.id)) || [];
5988
5988
  v(I), C && C(I);
5989
5989
  } else
5990
5990
  v([]), C && C([]);
@@ -6014,7 +6014,7 @@ const ng = ({
6014
6014
  defaultValue: b.id,
6015
6015
  onChange: (T) => {
6016
6016
  T.preventDefault(), T.stopPropagation();
6017
- const I = t && t.find((N) => N.id === T.target.value);
6017
+ const I = t && t.find((P) => P.id === T.target.value);
6018
6018
  x(I);
6019
6019
  },
6020
6020
  hidden: !h,
@@ -6048,7 +6048,7 @@ const ng = ({
6048
6048
  {
6049
6049
  variant: "tertiary",
6050
6050
  size: "small",
6051
- onClick: () => D("all"),
6051
+ onClick: () => w("all"),
6052
6052
  className: "gtm-trackable",
6053
6053
  "data-gtm-event-type": "all-click",
6054
6054
  "data-gtm-event-context": a,
@@ -6060,7 +6060,7 @@ const ng = ({
6060
6060
  {
6061
6061
  variant: "tertiary",
6062
6062
  size: "small",
6063
- onClick: () => D("none"),
6063
+ onClick: () => w("none"),
6064
6064
  className: "gtm-trackable",
6065
6065
  "data-gtm-event-type": "none-click",
6066
6066
  "data-gtm-event-context": a,
@@ -6080,8 +6080,8 @@ const ng = ({
6080
6080
  }),
6081
6081
  "data-gtm-event-type": `${T.id}-click`,
6082
6082
  "data-gtm-event-context": a,
6083
- onClick: (N) => {
6084
- N.preventDefault(), N.stopPropagation(), x(T);
6083
+ onClick: (P) => {
6084
+ P.preventDefault(), P.stopPropagation(), x(T);
6085
6085
  },
6086
6086
  role: "menuitem",
6087
6087
  "aria-current": I,
@@ -6149,13 +6149,13 @@ const Fu = ({
6149
6149
  const B = `${r}_${v}`, x = () => {
6150
6150
  if (_)
6151
6151
  return;
6152
- let D;
6152
+ let w;
6153
6153
  if (a) {
6154
6154
  const T = g == null ? void 0 : g.indexOf(C);
6155
- Array.isArray(g) && T >= 0 ? (D = g, D.splice(T, 1)) : (!g || g.length === 0 ? D = [] : D = g, D.push(C));
6155
+ Array.isArray(g) && T >= 0 ? (w = g, w.splice(T, 1)) : (!g || g.length === 0 ? w = [] : w = g, w.push(C));
6156
6156
  } else
6157
- D = f === C ? void 0 : C;
6158
- t.onChange(D);
6157
+ w = f === C ? void 0 : C;
6158
+ t.onChange(w);
6159
6159
  };
6160
6160
  return /* @__PURE__ */ c.jsx(
6161
6161
  Dd,
@@ -6263,12 +6263,12 @@ const Yn = {
6263
6263
  functions: Sn(i),
6264
6264
  value: u
6265
6265
  };
6266
- const D = ($) => {
6266
+ const w = ($) => {
6267
6267
  x["aria-describedby"] ? x["aria-describedby"] += ` ${$}` : x["aria-describedby"] = $;
6268
6268
  };
6269
6269
  if (a > 0) {
6270
6270
  const $ = Qp(a, i.onChange);
6271
- D(`${_}-info`), x = {
6271
+ w(`${_}-info`), x = {
6272
6272
  ...x,
6273
6273
  ...$
6274
6274
  }, $.functions && typeof $.functions == "object" && (x.functions = {
@@ -6276,7 +6276,7 @@ const Yn = {
6276
6276
  ...$.functions
6277
6277
  });
6278
6278
  }
6279
- o && Yn[o] && Yn[o].props && (x = { ...x, ...Yn[o].props }), v && (x.intlPath = `${t}_${e}`), r && (x["aria-invalid"] = !0, x["aria-errormessage"] = C, D(C));
6279
+ o && Yn[o] && Yn[o].props && (x = { ...x, ...Yn[o].props }), v && (x.intlPath = `${t}_${e}`), r && (x["aria-invalid"] = !0, x["aria-errormessage"] = C, w(C));
6280
6280
  const T = h.label || m.formatMessage({ id: t ? `${t}_${e}` : e }), I = ({ ...$ }) => r ? te.createElement(
6281
6281
  $.as || "p",
6282
6282
  {
@@ -6298,8 +6298,8 @@ const Yn = {
6298
6298
  ),
6299
6299
  /* @__PURE__ */ c.jsx(I, { as: "p" })
6300
6300
  ] });
6301
- const N = {};
6302
- v || (N.className = "field-label");
6301
+ const P = {};
6302
+ v || (P.className = "field-label");
6303
6303
  const z = ($) => te.createElement($.element || "label", {
6304
6304
  ...$,
6305
6305
  className: "checkboxes-label text-small",
@@ -6311,7 +6311,7 @@ const Yn = {
6311
6311
  /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
6312
6312
  te.createElement(
6313
6313
  v ? te.Fragment : "p",
6314
- N,
6314
+ P,
6315
6315
  /* @__PURE__ */ c.jsxs(z, { ...B, children: [
6316
6316
  T,
6317
6317
  p && s && /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
@@ -6464,13 +6464,13 @@ const dn = ({
6464
6464
  showRequiredLabels: B = !0,
6465
6465
  showSuccessMessage: x = !1
6466
6466
  } = l || {}, {
6467
- onSuccess: D = async () => {
6467
+ onSuccess: w = async () => {
6468
6468
  },
6469
6469
  onCancel: T = () => {
6470
6470
  },
6471
6471
  onCatch: I = () => {
6472
6472
  },
6473
- onFailure: N = () => {
6473
+ onFailure: P = () => {
6474
6474
  }
6475
6475
  } = h || {}, z = ce(), $ = {};
6476
6476
  t.length && t.forEach((A) => {
@@ -6512,9 +6512,9 @@ const dn = ({
6512
6512
  const ae = ke(null), re = i || ae;
6513
6513
  if (!t.length)
6514
6514
  return null;
6515
- const w = {};
6516
- s.children && (w.default = s.children), f.text && typeof f.text == "string" && (w.default = f.text), ["default", "submitting", "submitted"].forEach((A) => {
6517
- f.text && typeof f.text != "string" && A in f.text ? w[A] = f.text[A] : w[A] || (w[A] = z.formatMessage({
6515
+ const D = {};
6516
+ s.children && (D.default = s.children), f.text && typeof f.text == "string" && (D.default = f.text), ["default", "submitting", "submitted"].forEach((A) => {
6517
+ f.text && typeof f.text != "string" && A in f.text ? D[A] = f.text[A] : D[A] || (D[A] = z.formatMessage({
6518
6518
  id: `form_${A === "default" ? "submit" : A}`
6519
6519
  }));
6520
6520
  }), delete f.text;
@@ -6541,7 +6541,7 @@ const dn = ({
6541
6541
  dispatch: E,
6542
6542
  onSuccess: async (A) => {
6543
6543
  try {
6544
- await D(A), E({ type: C ? "formSubmittedAndReset" : "formSubmitted" });
6544
+ await w(A), E({ type: C ? "formSubmittedAndReset" : "formSubmitted" });
6545
6545
  } catch (j) {
6546
6546
  I(j), E({
6547
6547
  type: "updateValue",
@@ -6550,7 +6550,7 @@ const dn = ({
6550
6550
  }
6551
6551
  },
6552
6552
  onFailure: (A, j) => {
6553
- N(A, j), E({
6553
+ P(A, j), E({
6554
6554
  type: "updateValue",
6555
6555
  payload: { key: "isSubmitting", value: !1 }
6556
6556
  });
@@ -6568,8 +6568,8 @@ const dn = ({
6568
6568
  const Z = document.getElementById(re.current.id);
6569
6569
  Z && (j = Z.getBoundingClientRect().top + window.scrollY);
6570
6570
  }
6571
- const P = document.getElementById("header");
6572
- P && (j = j - P.offsetHeight - v), j < 0 && (j = 0), window.scrollTo({ top: j, behavior: "smooth" }), X();
6571
+ const N = document.getElementById("header");
6572
+ N && (j = j - N.offsetHeight - v), j < 0 && (j = 0), window.scrollTo({ top: j, behavior: "smooth" }), X();
6573
6573
  }, F = [
6574
6574
  {
6575
6575
  ...f,
@@ -6579,7 +6579,7 @@ const dn = ({
6579
6579
  disabled: S || U || s.disabled,
6580
6580
  "data-gtm-event-context": d.context,
6581
6581
  "data-gtm-event-type": d.event,
6582
- children: w[S ? "submitting" : U ? "submitted" : "default"]
6582
+ children: D[S ? "submitting" : U ? "submitted" : "default"]
6583
6583
  }
6584
6584
  ];
6585
6585
  return b && F.unshift({
@@ -6610,18 +6610,18 @@ const dn = ({
6610
6610
  u,
6611
6611
  (!_ || !S && !U || p) && t.map((A, j) => {
6612
6612
  const {
6613
- id: P = A.name || j,
6613
+ id: N = A.name || j,
6614
6614
  component: L,
6615
6615
  functions: Z = { onChange: () => {
6616
6616
  } },
6617
6617
  submitOnEnter: q = !1
6618
6618
  } = A;
6619
6619
  if (L)
6620
- return /* @__PURE__ */ c.jsx(L, { ...A.props || {} }, `component-${P}-${j}`);
6621
- const ne = (H == null ? void 0 : H[P]) || "", ue = {
6620
+ return /* @__PURE__ */ c.jsx(L, { ...A.props || {} }, `component-${N}-${j}`);
6621
+ const ne = (H == null ? void 0 : H[N]) || "", ue = {
6622
6622
  ...Z,
6623
6623
  onChange: (Q) => {
6624
- E({ type: "updateValue", payload: { key: P, value: Q } }), Z.onChange(Q && Q.toString(), E);
6624
+ E({ type: "updateValue", payload: { key: N, value: Q } }), Z.onChange(Q && Q.toString(), E);
6625
6625
  }
6626
6626
  };
6627
6627
  return q && (ue.onKeyDown = (Q) => {
@@ -6633,10 +6633,10 @@ const dn = ({
6633
6633
  ...A,
6634
6634
  showRequiredLabels: B,
6635
6635
  value: ne,
6636
- error: O == null ? void 0 : O[P],
6636
+ error: O == null ? void 0 : O[N],
6637
6637
  functions: ue
6638
6638
  },
6639
- P
6639
+ N
6640
6640
  );
6641
6641
  }),
6642
6642
  g ? null : (S || U) && p ? p : /* @__PURE__ */ c.jsx(
@@ -6911,29 +6911,29 @@ function hv(e, t, n) {
6911
6911
  if (typeof e != "function")
6912
6912
  throw new TypeError(cv);
6913
6913
  t = Ou(t) || 0, lv(n) && (d = !!n.leading, h = "maxWait" in n, a = h ? dv(Ou(n.maxWait) || 0, t) : a, m = "trailing" in n ? !!n.trailing : m);
6914
- function p(D) {
6914
+ function p(w) {
6915
6915
  var T = r, I = i;
6916
- return r = i = void 0, u = D, s = e.apply(I, T), s;
6916
+ return r = i = void 0, u = w, s = e.apply(I, T), s;
6917
6917
  }
6918
- function g(D) {
6919
- return u = D, o = setTimeout(b, t), d ? p(D) : s;
6918
+ function g(w) {
6919
+ return u = w, o = setTimeout(b, t), d ? p(w) : s;
6920
6920
  }
6921
- function f(D) {
6922
- var T = D - l, I = D - u, N = t - T;
6923
- return h ? fv(N, a - I) : N;
6921
+ function f(w) {
6922
+ var T = w - l, I = w - u, P = t - T;
6923
+ return h ? fv(P, a - I) : P;
6924
6924
  }
6925
- function v(D) {
6926
- var T = D - l, I = D - u;
6925
+ function v(w) {
6926
+ var T = w - l, I = w - u;
6927
6927
  return l === void 0 || T >= t || T < 0 || h && I >= a;
6928
6928
  }
6929
6929
  function b() {
6930
- var D = Pa();
6931
- if (v(D))
6932
- return C(D);
6933
- o = setTimeout(b, f(D));
6930
+ var w = Pa();
6931
+ if (v(w))
6932
+ return C(w);
6933
+ o = setTimeout(b, f(w));
6934
6934
  }
6935
- function C(D) {
6936
- return o = void 0, m && r ? p(D) : (r = i = void 0, s);
6935
+ function C(w) {
6936
+ return o = void 0, m && r ? p(w) : (r = i = void 0, s);
6937
6937
  }
6938
6938
  function _() {
6939
6939
  o !== void 0 && clearTimeout(o), u = 0, r = l = i = o = void 0;
@@ -6942,8 +6942,8 @@ function hv(e, t, n) {
6942
6942
  return o === void 0 ? s : C(Pa());
6943
6943
  }
6944
6944
  function x() {
6945
- var D = Pa(), T = v(D);
6946
- if (r = arguments, i = this, l = D, T) {
6945
+ var w = Pa(), T = v(w);
6946
+ if (r = arguments, i = this, l = w, T) {
6947
6947
  if (o === void 0)
6948
6948
  return g(l);
6949
6949
  if (h)
@@ -7003,23 +7003,23 @@ const xv = /* @__PURE__ */ In(yv), Pu = (e) => typeof e == "object" && e != null
7003
7003
  }
7004
7004
  g != null && g === document.body && Na(g) && !Na(document.documentElement) || g != null && Na(g, d) && p.push(g);
7005
7005
  }
7006
- const f = (r = (n = window.visualViewport) == null ? void 0 : n.width) != null ? r : innerWidth, v = (a = (i = window.visualViewport) == null ? void 0 : i.height) != null ? a : innerHeight, { scrollX: b, scrollY: C } = window, { height: _, width: B, top: x, right: D, bottom: T, left: I } = e.getBoundingClientRect(), { top: N, right: z, bottom: $, left: k } = ((U) => {
7006
+ const f = (r = (n = window.visualViewport) == null ? void 0 : n.width) != null ? r : innerWidth, v = (a = (i = window.visualViewport) == null ? void 0 : i.height) != null ? a : innerHeight, { scrollX: b, scrollY: C } = window, { height: _, width: B, top: x, right: w, bottom: T, left: I } = e.getBoundingClientRect(), { top: P, right: z, bottom: $, left: k } = ((U) => {
7007
7007
  const H = window.getComputedStyle(U);
7008
7008
  return { top: parseFloat(H.scrollMarginTop) || 0, right: parseFloat(H.scrollMarginRight) || 0, bottom: parseFloat(H.scrollMarginBottom) || 0, left: parseFloat(H.scrollMarginLeft) || 0 };
7009
7009
  })(e);
7010
- let E = o === "start" || o === "nearest" ? x - N : o === "end" ? T + $ : x + _ / 2 - N + $, O = l === "center" ? I + B / 2 - k + z : l === "end" ? D + z : I - k;
7010
+ let E = o === "start" || o === "nearest" ? x - P : o === "end" ? T + $ : x + _ / 2 - P + $, O = l === "center" ? I + B / 2 - k + z : l === "end" ? w + z : I - k;
7011
7011
  const S = [];
7012
7012
  for (let U = 0; U < p.length; U++) {
7013
- const H = p[U], { height: ae, width: re, top: w, right: X, bottom: V, left: F } = H.getBoundingClientRect();
7014
- if (s === "if-needed" && x >= 0 && I >= 0 && T <= v && D <= f && x >= w && T <= V && I >= F && D <= X)
7013
+ const H = p[U], { height: ae, width: re, top: D, right: X, bottom: V, left: F } = H.getBoundingClientRect();
7014
+ if (s === "if-needed" && x >= 0 && I >= 0 && T <= v && w <= f && x >= D && T <= V && I >= F && w <= X)
7015
7015
  return S;
7016
- const A = getComputedStyle(H), j = parseInt(A.borderLeftWidth, 10), P = parseInt(A.borderTopWidth, 10), L = parseInt(A.borderRightWidth, 10), Z = parseInt(A.borderBottomWidth, 10);
7016
+ const A = getComputedStyle(H), j = parseInt(A.borderLeftWidth, 10), N = parseInt(A.borderTopWidth, 10), L = parseInt(A.borderRightWidth, 10), Z = parseInt(A.borderBottomWidth, 10);
7017
7017
  let q = 0, ne = 0;
7018
- const ue = "offsetWidth" in H ? H.offsetWidth - H.clientWidth - j - L : 0, Q = "offsetHeight" in H ? H.offsetHeight - H.clientHeight - P - Z : 0, ve = "offsetWidth" in H ? H.offsetWidth === 0 ? 0 : re / H.offsetWidth : 0, ge = "offsetHeight" in H ? H.offsetHeight === 0 ? 0 : ae / H.offsetHeight : 0;
7018
+ const ue = "offsetWidth" in H ? H.offsetWidth - H.clientWidth - j - L : 0, Q = "offsetHeight" in H ? H.offsetHeight - H.clientHeight - N - Z : 0, ve = "offsetWidth" in H ? H.offsetWidth === 0 ? 0 : re / H.offsetWidth : 0, ge = "offsetHeight" in H ? H.offsetHeight === 0 ? 0 : ae / H.offsetHeight : 0;
7019
7019
  if (m === H)
7020
- q = o === "start" ? E : o === "end" ? E - v : o === "nearest" ? mi(C, C + v, v, P, Z, C + E, C + E + _, _) : E - v / 2, ne = l === "start" ? O : l === "center" ? O - f / 2 : l === "end" ? O - f : mi(b, b + f, f, j, L, b + O, b + O + B, B), q = Math.max(0, q + C), ne = Math.max(0, ne + b);
7020
+ q = o === "start" ? E : o === "end" ? E - v : o === "nearest" ? mi(C, C + v, v, N, Z, C + E, C + E + _, _) : E - v / 2, ne = l === "start" ? O : l === "center" ? O - f / 2 : l === "end" ? O - f : mi(b, b + f, f, j, L, b + O, b + O + B, B), q = Math.max(0, q + C), ne = Math.max(0, ne + b);
7021
7021
  else {
7022
- q = o === "start" ? E - w - P : o === "end" ? E - V + Z + Q : o === "nearest" ? mi(w, V, ae, P, Z + Q, E, E + _, _) : E - (w + ae / 2) + Q / 2, ne = l === "start" ? O - F - j : l === "center" ? O - (F + re / 2) + ue / 2 : l === "end" ? O - X + L + ue : mi(F, X, re, j, L + ue, O, O + B, B);
7022
+ q = o === "start" ? E - D - N : o === "end" ? E - V + Z + Q : o === "nearest" ? mi(D, V, ae, N, Z + Q, E, E + _, _) : E - (D + ae / 2) + Q / 2, ne = l === "start" ? O - F - j : l === "center" ? O - (F + re / 2) + ue / 2 : l === "end" ? O - X + L + ue : mi(F, X, re, j, L + ue, O, O + B, B);
7023
7023
  const { scrollLeft: Te, scrollTop: je } = H;
7024
7024
  q = ge === 0 ? 0 : Math.max(0, Math.min(je + q / ge, H.scrollHeight - ae / ge + Q)), ne = ve === 0 ? 0 : Math.max(0, Math.min(Te + ne / ve, H.scrollWidth - re / ve + ue)), E += je - q, O += Te - ne;
7025
7025
  }
@@ -7829,28 +7829,28 @@ var Lv = (e, t, n) => {
7829
7829
  case "merge_node": {
7830
7830
  var {
7831
7831
  path: b
7832
- } = n, C = oe.get(e, b), _ = R.previous(b), B = oe.get(e, _), x = oe.parent(e, b), D = b[b.length - 1];
7832
+ } = n, C = oe.get(e, b), _ = R.previous(b), B = oe.get(e, _), x = oe.parent(e, b), w = b[b.length - 1];
7833
7833
  if (me.isText(C) && me.isText(B))
7834
7834
  B.text += C.text;
7835
7835
  else if (!me.isText(C) && !me.isText(B))
7836
7836
  B.children.push(...C.children);
7837
7837
  else
7838
7838
  throw new Error('Cannot apply a "merge_node" operation at path ['.concat(b, "] to nodes of different interfaces: ").concat(ot.stringify(C), " ").concat(ot.stringify(B)));
7839
- if (x.children.splice(D, 1), t)
7839
+ if (x.children.splice(w, 1), t)
7840
7840
  for (var [T, I] of G.points(t))
7841
7841
  t[I] = Ae.transform(T, n);
7842
7842
  break;
7843
7843
  }
7844
7844
  case "move_node": {
7845
7845
  var {
7846
- path: N,
7846
+ path: P,
7847
7847
  newPath: z
7848
7848
  } = n;
7849
- if (R.isAncestor(N, z))
7850
- throw new Error("Cannot move a path [".concat(N, "] to new path [").concat(z, "] because the destination is inside itself."));
7851
- var $ = oe.get(e, N), k = oe.parent(e, N), E = N[N.length - 1];
7849
+ if (R.isAncestor(P, z))
7850
+ throw new Error("Cannot move a path [".concat(P, "] to new path [").concat(z, "] because the destination is inside itself."));
7851
+ var $ = oe.get(e, P), k = oe.parent(e, P), E = P[P.length - 1];
7852
7852
  k.children.splice(E, 1);
7853
- var O = R.transform(N, n), S = oe.get(e, R.parent(O)), U = O[O.length - 1];
7853
+ var O = R.transform(P, n), S = oe.get(e, R.parent(O)), U = O[O.length - 1];
7854
7854
  if (S.children.splice(U, 0, $), t)
7855
7855
  for (var [H, ae] of G.points(t))
7856
7856
  t[ae] = Ae.transform(H, n);
@@ -7859,23 +7859,23 @@ var Lv = (e, t, n) => {
7859
7859
  case "remove_node": {
7860
7860
  var {
7861
7861
  path: re
7862
- } = n, w = re[re.length - 1], X = oe.parent(e, re);
7863
- if (X.children.splice(w, 1), t)
7862
+ } = n, D = re[re.length - 1], X = oe.parent(e, re);
7863
+ if (X.children.splice(D, 1), t)
7864
7864
  for (var [V, F] of G.points(t)) {
7865
7865
  var A = Ae.transform(V, n);
7866
7866
  if (t != null && A != null)
7867
7867
  t[F] = A;
7868
7868
  else {
7869
- var j = void 0, P = void 0;
7869
+ var j = void 0, N = void 0;
7870
7870
  for (var [L, Z] of oe.texts(e))
7871
7871
  if (R.compare(Z, re) === -1)
7872
7872
  j = [L, Z];
7873
7873
  else {
7874
- P = [L, Z];
7874
+ N = [L, Z];
7875
7875
  break;
7876
7876
  }
7877
7877
  var q = !1;
7878
- j && P && (R.equals(P[1], re) ? q = !R.hasPrevious(P[1]) : q = R.common(j[1], re).length < R.common(P[1], re).length), j && !q ? (V.path = j[1], V.offset = j[0].text.length) : P ? (V.path = P[1], V.offset = 0) : t = null;
7878
+ j && N && (R.equals(N[1], re) ? q = !R.hasPrevious(N[1]) : q = R.common(j[1], re).length < R.common(N[1], re).length), j && !q ? (V.path = j[1], V.offset = j[0].text.length) : N ? (V.path = N[1], V.offset = 0) : t = null;
7879
7879
  }
7880
7880
  }
7881
7881
  break;
@@ -9180,14 +9180,14 @@ var _0 = (e, t) => {
9180
9180
  case "remove_node": {
9181
9181
  var {
9182
9182
  path: x
9183
- } = t, D = R.ancestors(x);
9184
- return [...D];
9183
+ } = t, w = R.ancestors(x);
9184
+ return [...w];
9185
9185
  }
9186
9186
  case "split_node": {
9187
9187
  var {
9188
9188
  path: T
9189
- } = t, I = R.levels(T), N = R.next(T);
9190
- return [...I, N];
9189
+ } = t, I = R.levels(T), P = R.next(T);
9190
+ return [...I, P];
9191
9191
  }
9192
9192
  default:
9193
9193
  return [];
@@ -9926,8 +9926,8 @@ function Db(e) {
9926
9926
  }
9927
9927
  }
9928
9928
  }
9929
- function x(D, T, I) {
9930
- return T === "character" ? vo(D, I) : T === "word" ? n0(D, I) : T === "line" || T === "block" ? D.length : 1;
9929
+ function x(w, T, I) {
9930
+ return T === "character" ? vo(w, I) : T === "word" ? n0(w, I) : T === "line" || T === "block" ? w.length : 1;
9931
9931
  }
9932
9932
  }();
9933
9933
  }
@@ -10156,13 +10156,13 @@ var Fb = (e, t) => {
10156
10156
  match: (ge) => he.isElement(ge) && y.isBlock(t, ge),
10157
10157
  at: _,
10158
10158
  voids: l
10159
- }), D = B && x && !R.equals(B[1], x[1]), T = R.equals(C.path, _.path), I = l ? null : (r = y.void(t, {
10159
+ }), w = B && x && !R.equals(B[1], x[1]), T = R.equals(C.path, _.path), I = l ? null : (r = y.void(t, {
10160
10160
  at: C,
10161
10161
  mode: "highest"
10162
10162
  })) !== null && r !== void 0 ? r : y.elementReadOnly(t, {
10163
10163
  at: C,
10164
10164
  mode: "highest"
10165
- }), N = l ? null : (i = y.void(t, {
10165
+ }), P = l ? null : (i = y.void(t, {
10166
10166
  at: _,
10167
10167
  mode: "highest"
10168
10168
  })) !== null && i !== void 0 ? i : y.elementReadOnly(t, {
@@ -10173,7 +10173,7 @@ var Fb = (e, t) => {
10173
10173
  var z = y.before(t, C);
10174
10174
  z && B && R.isAncestor(B[1], z.path) && (C = z);
10175
10175
  }
10176
- if (N) {
10176
+ if (P) {
10177
10177
  var $ = y.after(t, _);
10178
10178
  $ && x && R.isAncestor(x[1], $.path) && (_ = $);
10179
10179
  }
@@ -10188,7 +10188,7 @@ var Fb = (e, t) => {
10188
10188
  var H = Array.from(k, (ge) => {
10189
10189
  var [, Te] = ge;
10190
10190
  return y.pathRef(t, Te);
10191
- }), ae = y.pointRef(t, C), re = y.pointRef(t, _), w = "";
10191
+ }), ae = y.pointRef(t, C), re = y.pointRef(t, _), D = "";
10192
10192
  if (!T && !I) {
10193
10193
  var X = ae.current, [V] = y.leaf(t, X), {
10194
10194
  path: F
@@ -10200,27 +10200,27 @@ var Fb = (e, t) => {
10200
10200
  path: F,
10201
10201
  offset: A,
10202
10202
  text: j
10203
- }), w = j);
10203
+ }), D = j);
10204
10204
  }
10205
10205
  if (H.reverse().map((ge) => ge.unref()).filter((ge) => ge !== null).forEach((ge) => J.removeNodes(t, {
10206
10206
  at: ge,
10207
10207
  voids: l
10208
- })), !N) {
10209
- var P = re.current, [L] = y.leaf(t, P), {
10208
+ })), !P) {
10209
+ var N = re.current, [L] = y.leaf(t, N), {
10210
10210
  path: Z
10211
- } = P, q = T ? C.offset : 0, ne = L.text.slice(q, _.offset);
10211
+ } = N, q = T ? C.offset : 0, ne = L.text.slice(q, _.offset);
10212
10212
  ne.length > 0 && (t.apply({
10213
10213
  type: "remove_text",
10214
10214
  path: Z,
10215
10215
  offset: q,
10216
10216
  text: ne
10217
- }), w = ne);
10217
+ }), D = ne);
10218
10218
  }
10219
- !T && D && re.current && ae.current && J.mergeNodes(t, {
10219
+ !T && w && re.current && ae.current && J.mergeNodes(t, {
10220
10220
  at: re.current,
10221
10221
  hanging: !0,
10222
10222
  voids: l
10223
- }), h && a && s === "character" && w.length > 1 && w.match(/[\u0E00-\u0E7F]+/) && J.insertText(t, w.slice(0, w.length - o));
10223
+ }), h && a && s === "character" && D.length > 1 && D.match(/[\u0E00-\u0E7F]+/) && J.insertText(t, D.slice(0, D.length - o));
10224
10224
  var ue = ae.unref(), Q = re.unref(), ve = a ? ue || Q : Q || ue;
10225
10225
  n.at == null && ve && J.select(t, ve);
10226
10226
  }
@@ -10280,18 +10280,18 @@ var Fb = (e, t) => {
10280
10280
  voids: a
10281
10281
  }), [, f] = g, v = y.isStart(t, s, f), b = y.isEnd(t, s, f), C = v && b, _ = !v || v && b, B = !b, [, x] = oe.first({
10282
10282
  children: n
10283
- }, []), [, D] = oe.last({
10283
+ }, []), [, w] = oe.last({
10284
10284
  children: n
10285
10285
  }, []), T = [], I = (j) => {
10286
- var [P, L] = j, Z = L.length === 0;
10287
- return Z ? !1 : C ? !0 : !(_ && R.isAncestor(L, x) && he.isElement(P) && !t.isVoid(P) && !t.isInline(P) || B && R.isAncestor(L, D) && he.isElement(P) && !t.isVoid(P) && !t.isInline(P));
10286
+ var [N, L] = j, Z = L.length === 0;
10287
+ return Z ? !1 : C ? !0 : !(_ && R.isAncestor(L, x) && he.isElement(N) && !t.isVoid(N) && !t.isInline(N) || B && R.isAncestor(L, w) && he.isElement(N) && !t.isVoid(N) && !t.isInline(N));
10288
10288
  };
10289
- for (var N of oe.nodes({
10289
+ for (var P of oe.nodes({
10290
10290
  children: n
10291
10291
  }, {
10292
10292
  pass: I
10293
10293
  }))
10294
- I(N) && T.push(N);
10294
+ I(P) && T.push(P);
10295
10295
  var z = [], $ = [], k = [], E = !0, O = !1;
10296
10296
  for (var [S] of T)
10297
10297
  he.isElement(S) && !t.isInline(S) ? (E = !1, O = !0, $.push(S)) : E ? z.push(S) : k.push(S);
@@ -10300,7 +10300,7 @@ var Fb = (e, t) => {
10300
10300
  match: (j) => me.isText(j) || y.isInline(t, j),
10301
10301
  mode: "highest",
10302
10302
  voids: a
10303
- }), [, H] = U, ae = y.isStart(t, s, H), re = y.isEnd(t, s, H), w = y.pathRef(t, b && !k.length ? R.next(f) : f), X = y.pathRef(t, re ? R.next(H) : H);
10303
+ }), [, H] = U, ae = y.isStart(t, s, H), re = y.isEnd(t, s, H), D = y.pathRef(t, b && !k.length ? R.next(f) : f), X = y.pathRef(t, re ? R.next(H) : H);
10304
10304
  J.splitNodes(t, {
10305
10305
  at: s,
10306
10306
  match: (j) => O ? he.isElement(j) && y.isBlock(t, j) : me.isText(j) || y.isInline(t, j),
@@ -10319,7 +10319,7 @@ var Fb = (e, t) => {
10319
10319
  at: f,
10320
10320
  voids: a
10321
10321
  }), J.insertNodes(t, $, {
10322
- at: w.current,
10322
+ at: D.current,
10323
10323
  match: (j) => he.isElement(j) && y.isBlock(t, j),
10324
10324
  mode: "lowest",
10325
10325
  voids: a,
@@ -10332,12 +10332,12 @@ var Fb = (e, t) => {
10332
10332
  batchDirty: o
10333
10333
  }), !r.at) {
10334
10334
  var F;
10335
- if (k.length > 0 && X.current ? F = R.previous(X.current) : $.length > 0 && w.current ? F = R.previous(w.current) : V.current && (F = R.previous(V.current)), F) {
10335
+ if (k.length > 0 && X.current ? F = R.previous(X.current) : $.length > 0 && D.current ? F = R.previous(D.current) : V.current && (F = R.previous(V.current)), F) {
10336
10336
  var A = y.end(t, F);
10337
10337
  J.select(t, A);
10338
10338
  }
10339
10339
  }
10340
- V.unref(), w.unref(), X.unref();
10340
+ V.unref(), D.unref(), X.unref();
10341
10341
  }
10342
10342
  }
10343
10343
  });
@@ -10518,7 +10518,7 @@ var Ib = function(t, n) {
10518
10518
  at: _
10519
10519
  }))) {
10520
10520
  if (o) {
10521
- var x = [], D = R.levels(_);
10521
+ var x = [], w = R.levels(_);
10522
10522
  E0(t, () => {
10523
10523
  var z = function() {
10524
10524
  var E = _.concat(B);
@@ -10528,15 +10528,15 @@ var Ib = function(t, n) {
10528
10528
  path: E,
10529
10529
  node: $
10530
10530
  };
10531
- t.apply(O), l = R.next(l), x.push(O), me.isText ? D.push(...Array.from(oe.nodes($), (S) => {
10531
+ t.apply(O), l = R.next(l), x.push(O), me.isText ? w.push(...Array.from(oe.nodes($), (S) => {
10532
10532
  var [, U] = S;
10533
10533
  return E.concat(U);
10534
- })) : D.push(E);
10534
+ })) : w.push(E);
10535
10535
  };
10536
10536
  for (var $ of n)
10537
10537
  z();
10538
10538
  }, () => {
10539
- Ld(t, D, (z) => {
10539
+ Ld(t, w, (z) => {
10540
10540
  var $ = z;
10541
10541
  for (var k of x)
10542
10542
  if (R.operationCanTransformPath(k) && ($ = R.transform($, k), !$))
@@ -10554,8 +10554,8 @@ var Ib = function(t, n) {
10554
10554
  }), l = R.next(l);
10555
10555
  }
10556
10556
  if (l = R.previous(l), d) {
10557
- var N = y.end(t, l);
10558
- N && J.select(t, N);
10557
+ var P = y.end(t, l);
10558
+ P && J.select(t, P);
10559
10559
  }
10560
10560
  }
10561
10561
  }
@@ -10682,21 +10682,21 @@ var Ib = function(t, n) {
10682
10682
  at: g,
10683
10683
  mode: "highest",
10684
10684
  match: (z) => B.includes(z) && zd(t, z)
10685
- }), D = x && y.pathRef(t, x[1]), T, I;
10685
+ }), w = x && y.pathRef(t, x[1]), T, I;
10686
10686
  if (me.isText(p) && me.isText(f)) {
10687
- var N = ln(p, Ub);
10688
- I = f.text.length, T = N;
10687
+ var P = ln(p, Ub);
10688
+ I = f.text.length, T = P;
10689
10689
  } else if (he.isElement(p) && he.isElement(f)) {
10690
- var N = ln(p, Wb);
10691
- I = f.children.length, T = N;
10690
+ var P = ln(p, Wb);
10691
+ I = f.children.length, T = P;
10692
10692
  } else
10693
10693
  throw new Error("Cannot merge the node at path [".concat(g, "] with the previous sibling because it is not the same kind: ").concat(ot.stringify(p), " ").concat(ot.stringify(f)));
10694
10694
  _ || J.moveNodes(t, {
10695
10695
  at: g,
10696
10696
  to: b,
10697
10697
  voids: s
10698
- }), D && J.removeNodes(t, {
10699
- at: D.current,
10698
+ }), w && J.removeNodes(t, {
10699
+ at: w.current,
10700
10700
  voids: s
10701
10701
  }), he.isElement(f) && y.isEmpty(t, f) || me.isText(f) && f.text === "" && v[v.length - 1] !== 0 ? J.removeNodes(t, {
10702
10702
  at: v,
@@ -10706,7 +10706,7 @@ var Ib = function(t, n) {
10706
10706
  path: b,
10707
10707
  position: I,
10708
10708
  properties: T
10709
- }), D && D.unref();
10709
+ }), w && w.unref();
10710
10710
  }
10711
10711
  }
10712
10712
  }
@@ -10819,7 +10819,7 @@ var Ib = function(t, n) {
10819
10819
  always: !b
10820
10820
  }), a = m.unref(), r.at == null && J.select(t, a);
10821
10821
  }
10822
- s || (s = (I, N) => I !== N);
10822
+ s || (s = (I, P) => I !== P);
10823
10823
  for (var [C, _] of y.nodes(t, {
10824
10824
  at: a,
10825
10825
  match: i,
@@ -10828,10 +10828,10 @@ var Ib = function(t, n) {
10828
10828
  })) {
10829
10829
  var B = {}, x = {};
10830
10830
  if (_.length !== 0) {
10831
- var D = !1;
10831
+ var w = !1;
10832
10832
  for (var T in n)
10833
- T === "children" || T === "text" || s(n[T], C[T]) && (D = !0, C.hasOwnProperty(T) && (B[T] = C[T]), o ? n[T] != null && (x[T] = o(C[T], n[T])) : n[T] != null && (x[T] = n[T]));
10834
- D && t.apply({
10833
+ T === "children" || T === "text" || s(n[T], C[T]) && (w = !0, C.hasOwnProperty(T) && (B[T] = C[T]), o ? n[T] != null && (x[T] = o(C[T], n[T])) : n[T] != null && (x[T] = n[T]));
10834
+ w && t.apply({
10835
10835
  type: "set_node",
10836
10836
  path: _,
10837
10837
  properties: B,
@@ -10896,13 +10896,13 @@ var Ib = function(t, n) {
10896
10896
  }
10897
10897
  s = _, l = !0;
10898
10898
  }
10899
- var D = s.path.length - C.length;
10900
- o = D + 1, l = !0;
10899
+ var w = s.path.length - C.length;
10900
+ o = w + 1, l = !0;
10901
10901
  }
10902
10902
  p = y.pointRef(t, s);
10903
- var T = s.path.length - o, [, I] = g, N = s.path.slice(0, T), z = o === 0 ? s.offset : s.path[T] + v;
10903
+ var T = s.path.length - o, [, I] = g, P = s.path.slice(0, T), z = o === 0 ? s.offset : s.path[T] + v;
10904
10904
  for (var [$, k] of y.levels(t, {
10905
- at: N,
10905
+ at: P,
10906
10906
  reverse: !0,
10907
10907
  voids: i
10908
10908
  })) {
@@ -11043,10 +11043,10 @@ var Xb = function(t, n) {
11043
11043
  voids: s
11044
11044
  }));
11045
11045
  if (C.length > 0) {
11046
- var [_] = C, B = C[C.length - 1], [, x] = _, [, D] = B;
11047
- if (x.length === 0 && D.length === 0)
11046
+ var [_] = C, B = C[C.length - 1], [, x] = _, [, w] = B;
11047
+ if (x.length === 0 && w.length === 0)
11048
11048
  return 0;
11049
- var T = R.equals(x, D) ? R.parent(x) : R.common(x, D), I = y.range(t, x, D), N = y.node(t, T), [z] = N, $ = T.length + 1, k = R.next(D.slice(0, $)), E = Dl(Dl({}, n), {}, {
11049
+ var T = R.equals(x, w) ? R.parent(x) : R.common(x, w), I = y.range(t, x, w), P = y.node(t, T), [z] = P, $ = T.length + 1, k = R.next(w.slice(0, $)), E = Dl(Dl({}, n), {}, {
11050
11050
  children: []
11051
11051
  });
11052
11052
  J.insertNodes(t, E, {
@@ -11540,11 +11540,11 @@ var On = function(e) {
11540
11540
  return gi.get(e);
11541
11541
  if (Ud(e))
11542
11542
  return gi.set(e, _l), _l;
11543
- var n = getComputedStyle(e), r = yo(e) && e.ownerSVGElement && e.getBBox(), i = !oy && n.boxSizing === "border-box", a = sy.test(n.writingMode || ""), s = !r && El.test(n.overflowY || ""), o = !r && El.test(n.overflowX || ""), l = r ? 0 : Ht(n.paddingTop), u = r ? 0 : Ht(n.paddingRight), d = r ? 0 : Ht(n.paddingBottom), h = r ? 0 : Ht(n.paddingLeft), m = r ? 0 : Ht(n.borderTopWidth), p = r ? 0 : Ht(n.borderRightWidth), g = r ? 0 : Ht(n.borderBottomWidth), f = r ? 0 : Ht(n.borderLeftWidth), v = h + u, b = l + d, C = f + p, _ = m + g, B = o ? e.offsetHeight - _ - e.clientHeight : 0, x = s ? e.offsetWidth - C - e.clientWidth : 0, D = i ? v + C : 0, T = i ? b + _ : 0, I = r ? r.width : Ht(n.width) - D - x, N = r ? r.height : Ht(n.height) - T - B, z = I + v + x + C, $ = N + b + B + _, k = On({
11544
- devicePixelContentBoxSize: ar(Math.round(I * devicePixelRatio), Math.round(N * devicePixelRatio), a),
11543
+ var n = getComputedStyle(e), r = yo(e) && e.ownerSVGElement && e.getBBox(), i = !oy && n.boxSizing === "border-box", a = sy.test(n.writingMode || ""), s = !r && El.test(n.overflowY || ""), o = !r && El.test(n.overflowX || ""), l = r ? 0 : Ht(n.paddingTop), u = r ? 0 : Ht(n.paddingRight), d = r ? 0 : Ht(n.paddingBottom), h = r ? 0 : Ht(n.paddingLeft), m = r ? 0 : Ht(n.borderTopWidth), p = r ? 0 : Ht(n.borderRightWidth), g = r ? 0 : Ht(n.borderBottomWidth), f = r ? 0 : Ht(n.borderLeftWidth), v = h + u, b = l + d, C = f + p, _ = m + g, B = o ? e.offsetHeight - _ - e.clientHeight : 0, x = s ? e.offsetWidth - C - e.clientWidth : 0, w = i ? v + C : 0, T = i ? b + _ : 0, I = r ? r.width : Ht(n.width) - w - x, P = r ? r.height : Ht(n.height) - T - B, z = I + v + x + C, $ = P + b + B + _, k = On({
11544
+ devicePixelContentBoxSize: ar(Math.round(I * devicePixelRatio), Math.round(P * devicePixelRatio), a),
11545
11545
  borderBoxSize: ar(z, $, a),
11546
- contentBoxSize: ar(I, N, a),
11547
- contentRect: new qd(h, l, I, N)
11546
+ contentBoxSize: ar(I, P, a),
11547
+ contentRect: new qd(h, l, I, P)
11548
11548
  });
11549
11549
  return gi.set(e, k), k;
11550
11550
  }, Hd = function(e, t, n) {
@@ -12258,8 +12258,8 @@ var ee = {
12258
12258
  }), u = _.textContent.length, v = l;
12259
12259
  }
12260
12260
  } else if (g) {
12261
- for (var x = g.querySelectorAll("[data-slate-leaf]"), D = 0; D < x.length; D++) {
12262
- var T = x[D];
12261
+ for (var x = g.querySelectorAll("[data-slate-leaf]"), w = 0; w < x.length; w++) {
12262
+ var T = x[w];
12263
12263
  if (ee.hasDOMNode(e, T)) {
12264
12264
  f = T;
12265
12265
  break;
@@ -12288,10 +12288,10 @@ var ee = {
12288
12288
  if (I && ee.hasDOMNode(e, I, {
12289
12289
  editable: !0
12290
12290
  })) {
12291
- var N = ee.toSlateNode(e, I), {
12291
+ var P = ee.toSlateNode(e, I), {
12292
12292
  path: z,
12293
12293
  offset: $
12294
- } = y.start(e, ee.findPath(e, N));
12294
+ } = y.start(e, ee.findPath(e, P));
12295
12295
  return I.querySelector("[data-slate-leaf]") || ($ = s), {
12296
12296
  path: z,
12297
12297
  offset: $
@@ -12320,10 +12320,10 @@ var ee = {
12320
12320
  u = t.focusNode;
12321
12321
  var m = t.getRangeAt(0), p = t.getRangeAt(t.rangeCount - 1);
12322
12322
  if (u instanceof HTMLTableRowElement && m.startContainer instanceof HTMLTableRowElement && p.startContainer instanceof HTMLTableRowElement) {
12323
- let D = function(T) {
12324
- return T.childElementCount > 0 ? D(T.children[0]) : T;
12323
+ let w = function(T) {
12324
+ return T.childElementCount > 0 ? w(T.children[0]) : T;
12325
12325
  };
12326
- var g = m.startContainer, f = p.startContainer, v = D(g.children[m.startOffset]), b = D(f.children[p.startOffset]);
12326
+ var g = m.startContainer, f = p.startContainer, v = w(g.children[m.startOffset]), b = w(f.children[p.startOffset]);
12327
12327
  d = 0, b.childNodes.length > 0 ? o = b.childNodes[0] : o = b, v.childNodes.length > 0 ? u = v.childNodes[0] : u = v, b instanceof HTMLElement ? l = b.innerHTML.length : l = 0;
12328
12328
  } else
12329
12329
  m.startContainer === u ? (o = p.endContainer, l = p.endOffset, d = m.startOffset) : (o = m.startContainer, l = m.endOffset, d = p.startOffset);
@@ -12698,8 +12698,8 @@ function n1(e) {
12698
12698
  return;
12699
12699
  }
12700
12700
  E && n(), n.flush(), r.flush(), d();
12701
- var w = an.get(t);
12702
- an.delete(t), w !== void 0 && (t.marks = w, t.onChange());
12701
+ var D = an.get(t);
12702
+ an.delete(t), D !== void 0 && (t.marks = D, t.onChange());
12703
12703
  }, p = (k) => {
12704
12704
  a && clearTimeout(a), a = setTimeout(() => {
12705
12705
  Tn.set(t, !1), m();
@@ -12718,7 +12718,7 @@ function n1(e) {
12718
12718
  }, v = (k, E) => {
12719
12719
  var O, S = (O = _t.get(t)) !== null && O !== void 0 ? O : [];
12720
12720
  _t.set(t, S);
12721
- var U = oe.leaf(t, k), H = S.findIndex((w) => R.equals(w.path, k));
12721
+ var U = oe.leaf(t, k), H = S.findIndex((D) => R.equals(D.path, k));
12722
12722
  if (H < 0) {
12723
12723
  var ae = uf(U.text, E);
12724
12724
  ae && S.push({
@@ -12761,7 +12761,7 @@ function n1(e) {
12761
12761
  exactMatch: !1,
12762
12762
  suppressThrow: !0
12763
12763
  })), S = (E = S) !== null && E !== void 0 ? E : t.selection, !!S) {
12764
- var w = !0;
12764
+ var D = !0;
12765
12765
  if (O.startsWith("delete")) {
12766
12766
  if (G.isExpanded(S)) {
12767
12767
  var [X, V] = G.edges(S), F = oe.leaf(t, X.path);
@@ -12776,21 +12776,21 @@ function n1(e) {
12776
12776
  });
12777
12777
  }
12778
12778
  }
12779
- var j = O.endsWith("Backward") ? "backward" : "forward", [P, L] = G.edges(S), [Z, q] = y.leaf(t, P.path), ne = {
12779
+ var j = O.endsWith("Backward") ? "backward" : "forward", [N, L] = G.edges(S), [Z, q] = y.leaf(t, N.path), ne = {
12780
12780
  text: "",
12781
- start: P.offset,
12781
+ start: N.offset,
12782
12782
  end: L.offset
12783
12783
  }, ue = _t.get(t), Q = ue == null ? void 0 : ue.find((be) => R.equals(be.path, q)), ve = Q ? [Q.diff, ne] : [ne], ge = of(Z.text, ...ve);
12784
- if (ge.length === 0 && (w = !1), G.isExpanded(S)) {
12785
- if (w && R.equals(S.anchor.path, S.focus.path)) {
12784
+ if (ge.length === 0 && (D = !1), G.isExpanded(S)) {
12785
+ if (D && R.equals(S.anchor.path, S.focus.path)) {
12786
12786
  var Te = {
12787
12787
  path: S.anchor.path,
12788
- offset: P.offset
12788
+ offset: N.offset
12789
12789
  }, je = y.range(t, Te, Te);
12790
12790
  return T(je), v(S.anchor.path, {
12791
12791
  text: "",
12792
12792
  end: L.offset,
12793
- start: P.offset
12793
+ start: N.offset
12794
12794
  });
12795
12795
  }
12796
12796
  return b(() => y.deleteFragment(t, {
@@ -12812,7 +12812,7 @@ function n1(e) {
12812
12812
  var {
12813
12813
  anchor: Oe
12814
12814
  } = S;
12815
- if (w && G.isCollapsed(S)) {
12815
+ if (D && G.isCollapsed(S)) {
12816
12816
  var We = oe.leaf(t, Oe.path);
12817
12817
  if (Oe.offset < We.text.length)
12818
12818
  return v(Oe.path, {
@@ -12829,7 +12829,7 @@ function n1(e) {
12829
12829
  var He, {
12830
12830
  anchor: Ze
12831
12831
  } = S, it = Is(H) ? H.isCollapsed : !!((He = H) !== null && He !== void 0 && He.collapsed);
12832
- return w && it && G.isCollapsed(S) && Ze.offset > 0 ? v(Ze.path, {
12832
+ return D && it && G.isCollapsed(S) && Ze.offset > 0 ? v(Ze.path, {
12833
12833
  text: "",
12834
12834
  start: Ze.offset - 1,
12835
12835
  end: Ze.offset
@@ -12928,7 +12928,7 @@ function n1(e) {
12928
12928
  O === "insertText" ? u === null ? u = W : u && G.isCollapsed(S) && u.end + u.text.length === Ye.offset ? u = xi(xi({}, u), {}, {
12929
12929
  text: u.text + Se
12930
12930
  }) : u = !1 : u = !1;
12931
- if (w) {
12931
+ if (D) {
12932
12932
  v(Ye.path, W);
12933
12933
  return;
12934
12934
  }
@@ -12942,7 +12942,7 @@ function n1(e) {
12942
12942
  }, _ = () => !!vn.get(t), B = () => {
12943
12943
  var k;
12944
12944
  return !!((k = _t.get(t)) !== null && k !== void 0 && k.length);
12945
- }, x = () => _() || B(), D = () => i, T = (k) => {
12945
+ }, x = () => _() || B(), w = () => i, T = (k) => {
12946
12946
  bn.set(t, k), s && (clearTimeout(s), s = null);
12947
12947
  var {
12948
12948
  selection: E
@@ -12953,7 +12953,7 @@ function n1(e) {
12953
12953
  }
12954
12954
  }, I = () => {
12955
12955
  (_() || !B()) && m();
12956
- }, N = (k) => {
12956
+ }, P = (k) => {
12957
12957
  B() || (f(!0), setTimeout(f));
12958
12958
  }, z = () => {
12959
12959
  _() || (o = setTimeout(m));
@@ -12969,12 +12969,12 @@ function n1(e) {
12969
12969
  hasPendingDiffs: B,
12970
12970
  hasPendingAction: _,
12971
12971
  hasPendingChanges: x,
12972
- isFlushing: D,
12972
+ isFlushing: w,
12973
12973
  handleUserSelect: T,
12974
12974
  handleCompositionEnd: p,
12975
12975
  handleCompositionStart: g,
12976
12976
  handleDOMBeforeInput: C,
12977
- handleKeyDown: N,
12977
+ handleKeyDown: P,
12978
12978
  handleDomMutations: $,
12979
12979
  handleInput: I
12980
12980
  };
@@ -13562,11 +13562,11 @@ var I1 = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, hf(e)), L1 =
13562
13562
  as: m = "div",
13563
13563
  disableDefaultStyles: p = !1
13564
13564
  } = e, g = dr(e, R1), f = Un(), [v, b] = le(!1), C = ke(null), _ = ke([]), [B, x] = le(), {
13565
- onUserInput: D,
13565
+ onUserInput: w,
13566
13566
  receivedUserInput: T
13567
13567
  } = B1(), [, I] = pr((A) => A + 1, 0);
13568
13568
  tf.set(f, I), Rs.set(f, s);
13569
- var N = Gt(() => ({
13569
+ var P = Gt(() => ({
13570
13570
  isDraggingInternally: !1,
13571
13571
  isUpdatingSelection: !1,
13572
13572
  latestElement: null,
@@ -13577,11 +13577,11 @@ var I1 = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, hf(e)), L1 =
13577
13577
  }, [n]);
13578
13578
  var z = ke(), $ = Gt(() => xv(() => {
13579
13579
  var A = z.current;
13580
- if ((Dt || !ee.isComposing(f)) && (!N.isUpdatingSelection || A != null && A.isFlushing()) && !N.isDraggingInternally) {
13580
+ if ((Dt || !ee.isComposing(f)) && (!P.isUpdatingSelection || A != null && A.isFlushing()) && !P.isDraggingInternally) {
13581
13581
  var j = ee.findDocumentOrShadowRoot(f), {
13582
- activeElement: P
13582
+ activeElement: N
13583
13583
  } = j, L = ee.toDOMNode(f, f), Z = j.getSelection();
13584
- if (P === L ? (N.latestElement = P, Dn.set(f, !0)) : Dn.delete(f), !Z)
13584
+ if (N === L ? (P.latestElement = N, Dn.set(f, !0)) : Dn.delete(f), !Z)
13585
13585
  return J.deselect(f);
13586
13586
  var {
13587
13587
  anchorNode: q,
@@ -13596,14 +13596,14 @@ var I1 = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, hf(e)), L1 =
13596
13596
  }
13597
13597
  s && (!ue || !Q) && J.deselect(f);
13598
13598
  }
13599
- }, 100), [f, s, N]), k = Gt(() => mv($, 0), [$]);
13599
+ }, 100), [f, s, P]), k = Gt(() => mv($, 0), [$]);
13600
13600
  z.current = u1({
13601
13601
  node: C,
13602
13602
  onDOMSelectionChange: $,
13603
13603
  scheduleOnDOMSelectionChange: k
13604
13604
  }), Gr(() => {
13605
- var A, j, P;
13606
- C.current && (P = ko(C.current)) ? (ef.set(f, P), Oi.set(f, C.current), Pn.set(f, C.current), Yr.set(C.current, f)) : Pn.delete(f);
13605
+ var A, j, N;
13606
+ C.current && (N = ko(C.current)) ? (ef.set(f, N), Oi.set(f, C.current), Pn.set(f, C.current), Yr.set(C.current, f)) : Pn.delete(f);
13607
13607
  var {
13608
13608
  selection: L
13609
13609
  } = f, Z = ee.findDocumentOrShadowRoot(f), q = Z.getSelection();
@@ -13627,7 +13627,7 @@ var I1 = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, hf(e)), L1 =
13627
13627
  });
13628
13628
  if (Se && G.equals(Se, L)) {
13629
13629
  var Ye;
13630
- if (!N.hasMarkPlaceholder || (Ye = Oe) !== null && Ye !== void 0 && (Ye = Ye.parentElement) !== null && Ye !== void 0 && Ye.hasAttribute("data-slate-mark-placeholder"))
13630
+ if (!P.hasMarkPlaceholder || (Ye = Oe) !== null && Ye !== void 0 && (Ye = Ye.parentElement) !== null && Ye !== void 0 && Ye.hasAttribute("data-slate-mark-placeholder"))
13631
13631
  return;
13632
13632
  }
13633
13633
  }
@@ -13638,7 +13638,7 @@ var I1 = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, hf(e)), L1 =
13638
13638
  });
13639
13639
  return;
13640
13640
  }
13641
- N.isUpdatingSelection = !0;
13641
+ P.isUpdatingSelection = !0;
13642
13642
  var xe = L && ee.toDOMRange(f, L);
13643
13643
  return xe ? (ee.isComposing(f) && !Dt ? q.collapseToEnd() : G.isBackward(L) ? q.setBaseAndExtent(xe.endContainer, xe.endOffset, xe.startContainer, xe.startOffset) : q.setBaseAndExtent(xe.startContainer, xe.startOffset, xe.endContainer, xe.endOffset), d(f, xe)) : q.removeAllRanges(), xe;
13644
13644
  }
@@ -13647,7 +13647,7 @@ var I1 = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, hf(e)), L1 =
13647
13647
  var ue = ((j = z.current) === null || j === void 0 ? void 0 : j.isFlushing()) === "action";
13648
13648
  if (!Dt || !ue) {
13649
13649
  setTimeout(() => {
13650
- N.isUpdatingSelection = !1;
13650
+ P.isUpdatingSelection = !1;
13651
13651
  });
13652
13652
  return;
13653
13653
  }
@@ -13661,7 +13661,7 @@ var I1 = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, hf(e)), L1 =
13661
13661
  }
13662
13662
  };
13663
13663
  ge(), Q = setTimeout(() => {
13664
- ge(!0), N.isUpdatingSelection = !1;
13664
+ ge(!0), P.isUpdatingSelection = !1;
13665
13665
  });
13666
13666
  }
13667
13667
  });
@@ -13671,31 +13671,31 @@ var I1 = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, hf(e)), L1 =
13671
13671
  }
13672
13672
  });
13673
13673
  var E = Me((A) => {
13674
- if (D(), !s && ee.hasEditableTarget(f, A.target) && !W1(A, i)) {
13674
+ if (w(), !s && ee.hasEditableTarget(f, A.target) && !W1(A, i)) {
13675
13675
  var j;
13676
13676
  if (z.current)
13677
13677
  return z.current.handleDOMBeforeInput(A);
13678
13678
  k.flush(), $.flush();
13679
13679
  var {
13680
- selection: P
13680
+ selection: N
13681
13681
  } = f, {
13682
13682
  inputType: L
13683
13683
  } = A, Z = A.dataTransfer || A.data || void 0, q = L === "insertCompositionText" || L === "deleteCompositionText";
13684
13684
  if (q && ee.isComposing(f))
13685
13685
  return;
13686
13686
  var ne = !1;
13687
- if (L === "insertText" && P && G.isCollapsed(P) && // Only use native character insertion for single characters a-z or space for now.
13687
+ if (L === "insertText" && N && G.isCollapsed(N) && // Only use native character insertion for single characters a-z or space for now.
13688
13688
  // Long-press events (hold a + press 4 = ä) to choose a special character otherwise
13689
13689
  // causes duplicate inserts.
13690
13690
  A.data && A.data.length === 1 && /[a-z ]/i.test(A.data) && // Chrome has issues correctly editing the start of nodes: https://bugs.chromium.org/p/chromium/issues/detail?id=1249405
13691
13691
  // When there is an inline element, e.g. a link, and you select
13692
13692
  // right after it (the start of the next node).
13693
- P.anchor.offset !== 0) {
13693
+ N.anchor.offset !== 0) {
13694
13694
  var ue, Q;
13695
13695
  ne = !0, f.marks && (ne = !1);
13696
13696
  var {
13697
13697
  anchor: ve
13698
- } = P, [ge, Te] = ee.toDOMPoint(f, ve), je = (ue = ge.parentElement) === null || ue === void 0 ? void 0 : ue.closest("a"), Oe = ee.getWindow(f);
13698
+ } = N, [ge, Te] = ee.toDOMPoint(f, ve), je = (ue = ge.parentElement) === null || ue === void 0 ? void 0 : ue.closest("a"), Oe = ee.getWindow(f);
13699
13699
  if (ne && je && ee.hasDOMNode(f, je)) {
13700
13700
  var We, He = Oe == null ? void 0 : Oe.document.createTreeWalker(je, NodeFilter.SHOW_TEXT).lastChild();
13701
13701
  He === ge && ((We = He.textContent) === null || We === void 0 ? void 0 : We.length) === Te && (ne = !1);
@@ -13715,7 +13715,7 @@ var I1 = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, hf(e)), L1 =
13715
13715
  exactMatch: !1,
13716
13716
  suppressThrow: !1
13717
13717
  });
13718
- if (!P || !G.equals(P, Se)) {
13718
+ if (!N || !G.equals(N, Se)) {
13719
13719
  ne = !1;
13720
13720
  var Ye = !q && f.selection && y.rangeRef(f, f.selection);
13721
13721
  J.select(f, Se), Ye && Mr.set(f, Ye);
@@ -13724,7 +13724,7 @@ var I1 = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, hf(e)), L1 =
13724
13724
  }
13725
13725
  if (q)
13726
13726
  return;
13727
- if (ne || A.preventDefault(), P && G.isExpanded(P) && L.startsWith("delete")) {
13727
+ if (ne || A.preventDefault(), N && G.isExpanded(N) && L.startsWith("delete")) {
13728
13728
  var xe = L.endsWith("Backward") ? "backward" : "forward";
13729
13729
  y.deleteFragment(f, {
13730
13730
  direction: xe
@@ -13811,7 +13811,7 @@ var I1 = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, hf(e)), L1 =
13811
13811
  var W = (j = Mr.get(f)) === null || j === void 0 ? void 0 : j.unref();
13812
13812
  Mr.delete(f), W && (!f.selection || !G.equals(f.selection, W)) && J.select(f, W);
13813
13813
  }
13814
- }, [f, $, D, i, s, k]), O = Me((A) => {
13814
+ }, [f, $, w, i, s, k]), O = Me((A) => {
13815
13815
  A == null ? ($.cancel(), k.cancel(), Oi.delete(f), Pn.delete(f), C.current && pn && C.current.removeEventListener("beforeinput", E)) : pn && A.addEventListener("beforeinput", E), C.current = A;
13816
13816
  }, [$, k, f, E]);
13817
13817
  Gr(() => {
@@ -13840,20 +13840,20 @@ var I1 = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, hf(e)), L1 =
13840
13840
  var {
13841
13841
  marks: re
13842
13842
  } = f;
13843
- if (N.hasMarkPlaceholder = !1, f.selection && G.isCollapsed(f.selection) && re) {
13843
+ if (P.hasMarkPlaceholder = !1, f.selection && G.isCollapsed(f.selection) && re) {
13844
13844
  var {
13845
- anchor: w
13846
- } = f.selection, X = oe.leaf(f, w.path), V = dr(X, $1);
13845
+ anchor: D
13846
+ } = f.selection, X = oe.leaf(f, D.path), V = dr(X, $1);
13847
13847
  if (!me.equals(X, re, {
13848
13848
  loose: !0
13849
13849
  })) {
13850
- N.hasMarkPlaceholder = !0;
13850
+ P.hasMarkPlaceholder = !0;
13851
13851
  var F = Object.fromEntries(Object.keys(V).map((A) => [A, null]));
13852
13852
  S.push(Kt(Kt(Kt({
13853
13853
  [nf]: !0
13854
13854
  }, F), re), {}, {
13855
- anchor: w,
13856
- focus: w
13855
+ anchor: D,
13856
+ focus: D
13857
13857
  }));
13858
13858
  }
13859
13859
  }
@@ -13865,8 +13865,8 @@ var I1 = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, hf(e)), L1 =
13865
13865
  if (A) {
13866
13866
  var {
13867
13867
  anchor: j
13868
- } = A, P = oe.leaf(f, j.path);
13869
- if (re && !me.equals(P, re, {
13868
+ } = A, N = oe.leaf(f, j.path);
13869
+ if (re && !me.equals(N, re, {
13870
13870
  loose: !0
13871
13871
  })) {
13872
13872
  Lt.set(f, re);
@@ -13932,15 +13932,15 @@ var I1 = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, hf(e)), L1 =
13932
13932
  }
13933
13933
  }, [g.onInput]),
13934
13934
  onBlur: Me((A) => {
13935
- if (!(s || N.isUpdatingSelection || !ee.hasSelectableTarget(f, A.target) || bt(A, g.onBlur))) {
13935
+ if (!(s || P.isUpdatingSelection || !ee.hasSelectableTarget(f, A.target) || bt(A, g.onBlur))) {
13936
13936
  var j = ee.findDocumentOrShadowRoot(f);
13937
- if (N.latestElement !== j.activeElement) {
13937
+ if (P.latestElement !== j.activeElement) {
13938
13938
  var {
13939
- relatedTarget: P
13939
+ relatedTarget: N
13940
13940
  } = A, L = ee.toDOMNode(f, f);
13941
- if (P !== L && !(Mt(P) && P.hasAttribute("data-slate-spacer"))) {
13942
- if (P != null && Cn(P) && ee.hasDOMNode(f, P)) {
13943
- var Z = ee.toSlateNode(f, P);
13941
+ if (N !== L && !(Mt(N) && N.hasAttribute("data-slate-spacer"))) {
13942
+ if (N != null && Cn(N) && ee.hasDOMNode(f, N)) {
13943
+ var Z = ee.toSlateNode(f, N);
13944
13944
  if (he.isElement(Z) && !f.isVoid(Z))
13945
13945
  return;
13946
13946
  }
@@ -13952,20 +13952,20 @@ var I1 = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, hf(e)), L1 =
13952
13952
  }
13953
13953
  }
13954
13954
  }
13955
- }, [s, N.isUpdatingSelection, N.latestElement, f, g.onBlur]),
13955
+ }, [s, P.isUpdatingSelection, P.latestElement, f, g.onBlur]),
13956
13956
  onClick: Me((A) => {
13957
13957
  if (ee.hasTarget(f, A.target) && !bt(A, g.onClick) && Cn(A.target)) {
13958
- var j = ee.toSlateNode(f, A.target), P = ee.findPath(f, j);
13959
- if (!y.hasPath(f, P) || oe.get(f, P) !== j)
13958
+ var j = ee.toSlateNode(f, A.target), N = ee.findPath(f, j);
13959
+ if (!y.hasPath(f, N) || oe.get(f, N) !== j)
13960
13960
  return;
13961
- if (A.detail === T1 && P.length >= 1) {
13962
- var L = P;
13961
+ if (A.detail === T1 && N.length >= 1) {
13962
+ var L = N;
13963
13963
  if (!(he.isElement(j) && y.isBlock(f, j))) {
13964
13964
  var Z, q = y.above(f, {
13965
13965
  match: (je) => he.isElement(je) && y.isBlock(f, je),
13966
- at: P
13966
+ at: N
13967
13967
  });
13968
- L = (Z = q == null ? void 0 : q[1]) !== null && Z !== void 0 ? Z : P.slice(0, 1);
13968
+ L = (Z = q == null ? void 0 : q[1]) !== null && Z !== void 0 ? Z : N.slice(0, 1);
13969
13969
  }
13970
13970
  var ne = y.range(f, L);
13971
13971
  J.select(f, ne);
@@ -13973,7 +13973,7 @@ var I1 = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, hf(e)), L1 =
13973
13973
  }
13974
13974
  if (s)
13975
13975
  return;
13976
- var ue = y.start(f, P), Q = y.end(f, P), ve = y.void(f, {
13976
+ var ue = y.start(f, N), Q = y.end(f, N), ve = y.void(f, {
13977
13977
  at: ue
13978
13978
  }), ge = y.void(f, {
13979
13979
  at: Q
@@ -13992,8 +13992,8 @@ var I1 = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, hf(e)), L1 =
13992
13992
  }), (j = z.current) === null || j === void 0 || j.handleCompositionEnd(A), bt(A, g.onCompositionEnd) || Dt)
13993
13993
  return;
13994
13994
  if (!jr && !Oy && !By && !Ny && !Py && A.data) {
13995
- var P = Lt.get(f);
13996
- Lt.delete(f), P !== void 0 && (an.set(f, f.marks), f.marks = P), y.insertText(f, A.data);
13995
+ var N = Lt.get(f);
13996
+ Lt.delete(f), N !== void 0 && (an.set(f, f.marks), f.marks = N), y.insertText(f, A.data);
13997
13997
  var L = an.get(f);
13998
13998
  an.delete(f), L !== void 0 && (f.marks = L);
13999
13999
  }
@@ -14009,9 +14009,9 @@ var I1 = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, hf(e)), L1 =
14009
14009
  return;
14010
14010
  b(!0);
14011
14011
  var {
14012
- selection: P
14012
+ selection: N
14013
14013
  } = f;
14014
- if (P && G.isExpanded(P)) {
14014
+ if (N && G.isExpanded(N)) {
14015
14015
  y.deleteFragment(f);
14016
14016
  return;
14017
14017
  }
@@ -14030,8 +14030,8 @@ var I1 = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, hf(e)), L1 =
14030
14030
  if (G.isExpanded(j))
14031
14031
  y.deleteFragment(f);
14032
14032
  else {
14033
- var P = oe.parent(f, j.anchor.path);
14034
- y.isVoid(f, P) && J.delete(f);
14033
+ var N = oe.parent(f, j.anchor.path);
14034
+ y.isVoid(f, N) && J.delete(f);
14035
14035
  }
14036
14036
  }
14037
14037
  }, [s, f, g.onCut]),
@@ -14043,81 +14043,81 @@ var I1 = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, hf(e)), L1 =
14043
14043
  }, [g.onDragOver, f]),
14044
14044
  onDragStart: Me((A) => {
14045
14045
  if (!s && ee.hasTarget(f, A.target) && !bt(A, g.onDragStart)) {
14046
- var j = ee.toSlateNode(f, A.target), P = ee.findPath(f, j), L = he.isElement(j) && y.isVoid(f, j) || y.void(f, {
14047
- at: P,
14046
+ var j = ee.toSlateNode(f, A.target), N = ee.findPath(f, j), L = he.isElement(j) && y.isVoid(f, j) || y.void(f, {
14047
+ at: N,
14048
14048
  voids: !0
14049
14049
  });
14050
14050
  if (L) {
14051
- var Z = y.range(f, P);
14051
+ var Z = y.range(f, N);
14052
14052
  J.select(f, Z);
14053
14053
  }
14054
- N.isDraggingInternally = !0, ee.setFragmentData(f, A.dataTransfer, "drag");
14054
+ P.isDraggingInternally = !0, ee.setFragmentData(f, A.dataTransfer, "drag");
14055
14055
  }
14056
- }, [s, f, g.onDragStart, N]),
14056
+ }, [s, f, g.onDragStart, P]),
14057
14057
  onDrop: Me((A) => {
14058
14058
  if (!s && ee.hasTarget(f, A.target) && !bt(A, g.onDrop)) {
14059
14059
  A.preventDefault();
14060
- var j = f.selection, P = ee.findEventRange(f, A), L = A.dataTransfer;
14061
- J.select(f, P), N.isDraggingInternally && j && !G.equals(j, P) && !y.void(f, {
14062
- at: P,
14060
+ var j = f.selection, N = ee.findEventRange(f, A), L = A.dataTransfer;
14061
+ J.select(f, N), P.isDraggingInternally && j && !G.equals(j, N) && !y.void(f, {
14062
+ at: N,
14063
14063
  voids: !0
14064
14064
  }) && J.delete(f, {
14065
14065
  at: j
14066
14066
  }), ee.insertData(f, L), ee.isFocused(f) || ee.focus(f);
14067
14067
  }
14068
- N.isDraggingInternally = !1;
14069
- }, [s, f, g.onDrop, N]),
14068
+ P.isDraggingInternally = !1;
14069
+ }, [s, f, g.onDrop, P]),
14070
14070
  onDragEnd: Me((A) => {
14071
- !s && N.isDraggingInternally && g.onDragEnd && ee.hasTarget(f, A.target) && g.onDragEnd(A), N.isDraggingInternally = !1;
14072
- }, [s, N, g, f]),
14071
+ !s && P.isDraggingInternally && g.onDragEnd && ee.hasTarget(f, A.target) && g.onDragEnd(A), P.isDraggingInternally = !1;
14072
+ }, [s, P, g, f]),
14073
14073
  onFocus: Me((A) => {
14074
- if (!s && !N.isUpdatingSelection && ee.hasEditableTarget(f, A.target) && !bt(A, g.onFocus)) {
14075
- var j = ee.toDOMNode(f, f), P = ee.findDocumentOrShadowRoot(f);
14076
- if (N.latestElement = P.activeElement, tr && A.target !== j) {
14074
+ if (!s && !P.isUpdatingSelection && ee.hasEditableTarget(f, A.target) && !bt(A, g.onFocus)) {
14075
+ var j = ee.toDOMNode(f, f), N = ee.findDocumentOrShadowRoot(f);
14076
+ if (P.latestElement = N.activeElement, tr && A.target !== j) {
14077
14077
  j.focus();
14078
14078
  return;
14079
14079
  }
14080
14080
  Dn.set(f, !0);
14081
14081
  }
14082
- }, [s, N, f, g.onFocus]),
14082
+ }, [s, P, f, g.onFocus]),
14083
14083
  onKeyDown: Me((A) => {
14084
14084
  if (!s && ee.hasEditableTarget(f, A.target)) {
14085
14085
  var j;
14086
14086
  (j = z.current) === null || j === void 0 || j.handleKeyDown(A);
14087
14087
  var {
14088
- nativeEvent: P
14088
+ nativeEvent: N
14089
14089
  } = A;
14090
- if (ee.isComposing(f) && P.isComposing === !1 && (Tn.set(f, !1), b(!1)), bt(A, g.onKeyDown) || ee.isComposing(f))
14090
+ if (ee.isComposing(f) && N.isComposing === !1 && (Tn.set(f, !1), b(!1)), bt(A, g.onKeyDown) || ee.isComposing(f))
14091
14091
  return;
14092
14092
  var {
14093
14093
  selection: L
14094
14094
  } = f, Z = f.children[L !== null ? L.focus.path[0] : 0], q = Fd(oe.string(Z)) === "rtl";
14095
- if (Xe.isRedo(P)) {
14095
+ if (Xe.isRedo(N)) {
14096
14096
  A.preventDefault();
14097
14097
  var ne = f;
14098
14098
  typeof ne.redo == "function" && ne.redo();
14099
14099
  return;
14100
14100
  }
14101
- if (Xe.isUndo(P)) {
14101
+ if (Xe.isUndo(N)) {
14102
14102
  A.preventDefault();
14103
14103
  var ue = f;
14104
14104
  typeof ue.undo == "function" && ue.undo();
14105
14105
  return;
14106
14106
  }
14107
- if (Xe.isMoveLineBackward(P)) {
14107
+ if (Xe.isMoveLineBackward(N)) {
14108
14108
  A.preventDefault(), J.move(f, {
14109
14109
  unit: "line",
14110
14110
  reverse: !0
14111
14111
  });
14112
14112
  return;
14113
14113
  }
14114
- if (Xe.isMoveLineForward(P)) {
14114
+ if (Xe.isMoveLineForward(N)) {
14115
14115
  A.preventDefault(), J.move(f, {
14116
14116
  unit: "line"
14117
14117
  });
14118
14118
  return;
14119
14119
  }
14120
- if (Xe.isExtendLineBackward(P)) {
14120
+ if (Xe.isExtendLineBackward(N)) {
14121
14121
  A.preventDefault(), J.move(f, {
14122
14122
  unit: "line",
14123
14123
  edge: "focus",
@@ -14125,14 +14125,14 @@ var I1 = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, hf(e)), L1 =
14125
14125
  });
14126
14126
  return;
14127
14127
  }
14128
- if (Xe.isExtendLineForward(P)) {
14128
+ if (Xe.isExtendLineForward(N)) {
14129
14129
  A.preventDefault(), J.move(f, {
14130
14130
  unit: "line",
14131
14131
  edge: "focus"
14132
14132
  });
14133
14133
  return;
14134
14134
  }
14135
- if (Xe.isMoveBackward(P)) {
14135
+ if (Xe.isMoveBackward(N)) {
14136
14136
  A.preventDefault(), L && G.isCollapsed(L) ? J.move(f, {
14137
14137
  reverse: !q
14138
14138
  }) : J.collapse(f, {
@@ -14140,7 +14140,7 @@ var I1 = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, hf(e)), L1 =
14140
14140
  });
14141
14141
  return;
14142
14142
  }
14143
- if (Xe.isMoveForward(P)) {
14143
+ if (Xe.isMoveForward(N)) {
14144
14144
  A.preventDefault(), L && G.isCollapsed(L) ? J.move(f, {
14145
14145
  reverse: q
14146
14146
  }) : J.collapse(f, {
@@ -14148,7 +14148,7 @@ var I1 = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, hf(e)), L1 =
14148
14148
  });
14149
14149
  return;
14150
14150
  }
14151
- if (Xe.isMoveWordBackward(P)) {
14151
+ if (Xe.isMoveWordBackward(N)) {
14152
14152
  A.preventDefault(), L && G.isExpanded(L) && J.collapse(f, {
14153
14153
  edge: "focus"
14154
14154
  }), J.move(f, {
@@ -14157,7 +14157,7 @@ var I1 = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, hf(e)), L1 =
14157
14157
  });
14158
14158
  return;
14159
14159
  }
14160
- if (Xe.isMoveWordForward(P)) {
14160
+ if (Xe.isMoveWordForward(N)) {
14161
14161
  A.preventDefault(), L && G.isExpanded(L) && J.collapse(f, {
14162
14162
  edge: "focus"
14163
14163
  }), J.move(f, {
@@ -14167,7 +14167,7 @@ var I1 = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, hf(e)), L1 =
14167
14167
  return;
14168
14168
  }
14169
14169
  if (pn) {
14170
- if ((Xd || jr) && L && (Xe.isDeleteBackward(P) || Xe.isDeleteForward(P)) && G.isCollapsed(L)) {
14170
+ if ((Xd || jr) && L && (Xe.isDeleteBackward(N) || Xe.isDeleteForward(N)) && G.isCollapsed(L)) {
14171
14171
  var Q = oe.parent(f, L.anchor.path);
14172
14172
  if (he.isElement(Q) && y.isVoid(f, Q) && (y.isInline(f, Q) || y.isBlock(f, Q))) {
14173
14173
  A.preventDefault(), y.deleteBackward(f, {
@@ -14177,31 +14177,31 @@ var I1 = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, hf(e)), L1 =
14177
14177
  }
14178
14178
  }
14179
14179
  } else {
14180
- if (Xe.isBold(P) || Xe.isItalic(P) || Xe.isTransposeCharacter(P)) {
14180
+ if (Xe.isBold(N) || Xe.isItalic(N) || Xe.isTransposeCharacter(N)) {
14181
14181
  A.preventDefault();
14182
14182
  return;
14183
14183
  }
14184
- if (Xe.isSoftBreak(P)) {
14184
+ if (Xe.isSoftBreak(N)) {
14185
14185
  A.preventDefault(), y.insertSoftBreak(f);
14186
14186
  return;
14187
14187
  }
14188
- if (Xe.isSplitBlock(P)) {
14188
+ if (Xe.isSplitBlock(N)) {
14189
14189
  A.preventDefault(), y.insertBreak(f);
14190
14190
  return;
14191
14191
  }
14192
- if (Xe.isDeleteBackward(P)) {
14192
+ if (Xe.isDeleteBackward(N)) {
14193
14193
  A.preventDefault(), L && G.isExpanded(L) ? y.deleteFragment(f, {
14194
14194
  direction: "backward"
14195
14195
  }) : y.deleteBackward(f);
14196
14196
  return;
14197
14197
  }
14198
- if (Xe.isDeleteForward(P)) {
14198
+ if (Xe.isDeleteForward(N)) {
14199
14199
  A.preventDefault(), L && G.isExpanded(L) ? y.deleteFragment(f, {
14200
14200
  direction: "forward"
14201
14201
  }) : y.deleteForward(f);
14202
14202
  return;
14203
14203
  }
14204
- if (Xe.isDeleteLineBackward(P)) {
14204
+ if (Xe.isDeleteLineBackward(N)) {
14205
14205
  A.preventDefault(), L && G.isExpanded(L) ? y.deleteFragment(f, {
14206
14206
  direction: "backward"
14207
14207
  }) : y.deleteBackward(f, {
@@ -14209,7 +14209,7 @@ var I1 = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, hf(e)), L1 =
14209
14209
  });
14210
14210
  return;
14211
14211
  }
14212
- if (Xe.isDeleteLineForward(P)) {
14212
+ if (Xe.isDeleteLineForward(N)) {
14213
14213
  A.preventDefault(), L && G.isExpanded(L) ? y.deleteFragment(f, {
14214
14214
  direction: "forward"
14215
14215
  }) : y.deleteForward(f, {
@@ -14217,7 +14217,7 @@ var I1 = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, hf(e)), L1 =
14217
14217
  });
14218
14218
  return;
14219
14219
  }
14220
- if (Xe.isDeleteWordBackward(P)) {
14220
+ if (Xe.isDeleteWordBackward(N)) {
14221
14221
  A.preventDefault(), L && G.isExpanded(L) ? y.deleteFragment(f, {
14222
14222
  direction: "backward"
14223
14223
  }) : y.deleteBackward(f, {
@@ -14225,7 +14225,7 @@ var I1 = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, hf(e)), L1 =
14225
14225
  });
14226
14226
  return;
14227
14227
  }
14228
- if (Xe.isDeleteWordForward(P)) {
14228
+ if (Xe.isDeleteWordForward(N)) {
14229
14229
  A.preventDefault(), L && G.isExpanded(L) ? y.deleteFragment(f, {
14230
14230
  direction: "forward"
14231
14231
  }) : y.deleteForward(f, {
@@ -14459,15 +14459,15 @@ var Q1 = function(t) {
14459
14459
  d.push(...Gn(r, _));
14460
14460
  var B;
14461
14461
  R.isBefore(u.path, u.newPath) ? (d.push(...Gn(r, R.parent(u.path))), B = u.newPath) : (d.push(...Gn(r, R.parent(u.newPath))), B = u.path);
14462
- var x = oe.get(t, R.parent(B)), D = ee.findKey(r, x), T = y.pathRef(r, R.parent(B));
14463
- h.push([T, D]);
14462
+ var x = oe.get(t, R.parent(B)), w = ee.findKey(r, x), T = y.pathRef(r, R.parent(B));
14463
+ h.push([T, w]);
14464
14464
  break;
14465
14465
  }
14466
14466
  }
14467
14467
  i(u);
14468
- for (var [I, N] of d) {
14468
+ for (var [I, P] of d) {
14469
14469
  var [z] = y.node(r, I);
14470
- Qi.set(z, N);
14470
+ Qi.set(z, P);
14471
14471
  }
14472
14472
  for (var [$, k] of h)
14473
14473
  if ($.current) {
@@ -14500,10 +14500,10 @@ var Q1 = function(t) {
14500
14500
  var x = b.ownerDocument.createElement("span");
14501
14501
  x.style.whiteSpace = "pre", x.appendChild(b), v.appendChild(x), b = x;
14502
14502
  }
14503
- var D = r.getFragment(), T = JSON.stringify(D), I = window.btoa(encodeURIComponent(T));
14503
+ var w = r.getFragment(), T = JSON.stringify(w), I = window.btoa(encodeURIComponent(T));
14504
14504
  b.setAttribute("data-slate-fragment", I), u.setData("application/".concat(n), I);
14505
- var N = v.ownerDocument.createElement("div");
14506
- return N.appendChild(v), N.setAttribute("hidden", "true"), v.ownerDocument.body.appendChild(N), u.setData("text/html", N.innerHTML), u.setData("text/plain", sf(N)), v.ownerDocument.body.removeChild(N), u;
14505
+ var P = v.ownerDocument.createElement("div");
14506
+ return P.appendChild(v), P.setAttribute("hidden", "true"), v.ownerDocument.body.appendChild(P), u.setData("text/html", P.innerHTML), u.setData("text/plain", sf(P)), v.ownerDocument.body.removeChild(P), u;
14507
14507
  }
14508
14508
  }
14509
14509
  }, r.insertData = (u) => {
@@ -16124,16 +16124,16 @@ function Px(e) {
16124
16124
  if (r++, t.containerState._closeFlow) {
16125
16125
  t.containerState._closeFlow = void 0, i && C();
16126
16126
  const B = t.events.length;
16127
- let x = B, D;
16127
+ let x = B, w;
16128
16128
  for (; x--; )
16129
16129
  if (t.events[x][0] === "exit" && t.events[x][1].type === "chunkFlow") {
16130
- D = t.events[x][1].end;
16130
+ w = t.events[x][1].end;
16131
16131
  break;
16132
16132
  }
16133
16133
  b(r);
16134
16134
  let T = B;
16135
16135
  for (; T < t.events.length; )
16136
- t.events[T][1].end = Object.assign({}, D), T++;
16136
+ t.events[T][1].end = Object.assign({}, w), T++;
16137
16137
  return cn(
16138
16138
  t.events,
16139
16139
  x + 1,
@@ -16194,33 +16194,33 @@ function Px(e) {
16194
16194
  function v(_, B) {
16195
16195
  const x = t.sliceStream(_);
16196
16196
  if (B && x.push(null), _.previous = a, a && (a.next = _), a = _, i.defineSkip(_.start), i.write(x), t.parser.lazy[_.start.line]) {
16197
- let D = i.events.length;
16198
- for (; D--; )
16197
+ let w = i.events.length;
16198
+ for (; w--; )
16199
16199
  if (
16200
16200
  // The token starts before the line ending…
16201
- i.events[D][1].start.offset < s && // …and either is not ended yet…
16202
- (!i.events[D][1].end || // …or ends after it.
16203
- i.events[D][1].end.offset > s)
16201
+ i.events[w][1].start.offset < s && // …and either is not ended yet…
16202
+ (!i.events[w][1].end || // …or ends after it.
16203
+ i.events[w][1].end.offset > s)
16204
16204
  )
16205
16205
  return;
16206
16206
  const T = t.events.length;
16207
- let I = T, N, z;
16207
+ let I = T, P, z;
16208
16208
  for (; I--; )
16209
16209
  if (t.events[I][0] === "exit" && t.events[I][1].type === "chunkFlow") {
16210
- if (N) {
16210
+ if (P) {
16211
16211
  z = t.events[I][1].end;
16212
16212
  break;
16213
16213
  }
16214
- N = !0;
16214
+ P = !0;
16215
16215
  }
16216
- for (b(r), D = T; D < t.events.length; )
16217
- t.events[D][1].end = Object.assign({}, z), D++;
16216
+ for (b(r), w = T; w < t.events.length; )
16217
+ t.events[w][1].end = Object.assign({}, z), w++;
16218
16218
  cn(
16219
16219
  t.events,
16220
16220
  I + 1,
16221
16221
  0,
16222
16222
  t.events.slice(T)
16223
- ), t.events.length = D;
16223
+ ), t.events.length = w;
16224
16224
  }
16225
16225
  }
16226
16226
  function b(_) {
@@ -16457,67 +16457,67 @@ function Vx(e, t, n) {
16457
16457
  };
16458
16458
  let a = 0, s = 0, o;
16459
16459
  return l;
16460
- function l(D) {
16461
- return u(D);
16460
+ function l(w) {
16461
+ return u(w);
16462
16462
  }
16463
- function u(D) {
16463
+ function u(w) {
16464
16464
  const T = r.events[r.events.length - 1];
16465
- return a = T && T[1].type === "linePrefix" ? T[2].sliceSerialize(T[1], !0).length : 0, o = D, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), d(D);
16465
+ return a = T && T[1].type === "linePrefix" ? T[2].sliceSerialize(T[1], !0).length : 0, o = w, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), d(w);
16466
16466
  }
16467
- function d(D) {
16468
- return D === o ? (s++, e.consume(D), d) : s < 3 ? n(D) : (e.exit("codeFencedFenceSequence"), Ie(D) ? Ge(e, h, "whitespace")(D) : h(D));
16467
+ function d(w) {
16468
+ return w === o ? (s++, e.consume(w), d) : s < 3 ? n(w) : (e.exit("codeFencedFenceSequence"), Ie(w) ? Ge(e, h, "whitespace")(w) : h(w));
16469
16469
  }
16470
- function h(D) {
16471
- return D === null || we(D) ? (e.exit("codeFencedFence"), r.interrupt ? t(D) : e.check(fc, f, B)(D)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
16470
+ function h(w) {
16471
+ return w === null || we(w) ? (e.exit("codeFencedFence"), r.interrupt ? t(w) : e.check(fc, f, B)(w)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
16472
16472
  contentType: "string"
16473
- }), m(D));
16473
+ }), m(w));
16474
16474
  }
16475
- function m(D) {
16476
- return D === null || we(D) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), h(D)) : Ie(D) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), Ge(e, p, "whitespace")(D)) : D === 96 && D === o ? n(D) : (e.consume(D), m);
16475
+ function m(w) {
16476
+ return w === null || we(w) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), h(w)) : Ie(w) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), Ge(e, p, "whitespace")(w)) : w === 96 && w === o ? n(w) : (e.consume(w), m);
16477
16477
  }
16478
- function p(D) {
16479
- return D === null || we(D) ? h(D) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
16478
+ function p(w) {
16479
+ return w === null || we(w) ? h(w) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
16480
16480
  contentType: "string"
16481
- }), g(D));
16481
+ }), g(w));
16482
16482
  }
16483
- function g(D) {
16484
- return D === null || we(D) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), h(D)) : D === 96 && D === o ? n(D) : (e.consume(D), g);
16483
+ function g(w) {
16484
+ return w === null || we(w) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), h(w)) : w === 96 && w === o ? n(w) : (e.consume(w), g);
16485
16485
  }
16486
- function f(D) {
16487
- return e.attempt(i, B, v)(D);
16486
+ function f(w) {
16487
+ return e.attempt(i, B, v)(w);
16488
16488
  }
16489
- function v(D) {
16490
- return e.enter("lineEnding"), e.consume(D), e.exit("lineEnding"), b;
16489
+ function v(w) {
16490
+ return e.enter("lineEnding"), e.consume(w), e.exit("lineEnding"), b;
16491
16491
  }
16492
- function b(D) {
16493
- return a > 0 && Ie(D) ? Ge(e, C, "linePrefix", a + 1)(D) : C(D);
16492
+ function b(w) {
16493
+ return a > 0 && Ie(w) ? Ge(e, C, "linePrefix", a + 1)(w) : C(w);
16494
16494
  }
16495
- function C(D) {
16496
- return D === null || we(D) ? e.check(fc, f, B)(D) : (e.enter("codeFlowValue"), _(D));
16495
+ function C(w) {
16496
+ return w === null || we(w) ? e.check(fc, f, B)(w) : (e.enter("codeFlowValue"), _(w));
16497
16497
  }
16498
- function _(D) {
16499
- return D === null || we(D) ? (e.exit("codeFlowValue"), C(D)) : (e.consume(D), _);
16498
+ function _(w) {
16499
+ return w === null || we(w) ? (e.exit("codeFlowValue"), C(w)) : (e.consume(w), _);
16500
16500
  }
16501
- function B(D) {
16502
- return e.exit("codeFenced"), t(D);
16501
+ function B(w) {
16502
+ return e.exit("codeFenced"), t(w);
16503
16503
  }
16504
- function x(D, T, I) {
16505
- let N = 0;
16504
+ function x(w, T, I) {
16505
+ let P = 0;
16506
16506
  return z;
16507
16507
  function z(S) {
16508
- return D.enter("lineEnding"), D.consume(S), D.exit("lineEnding"), $;
16508
+ return w.enter("lineEnding"), w.consume(S), w.exit("lineEnding"), $;
16509
16509
  }
16510
16510
  function $(S) {
16511
- return D.enter("codeFencedFence"), Ie(S) ? Ge(D, k, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(S) : k(S);
16511
+ return w.enter("codeFencedFence"), Ie(S) ? Ge(w, k, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(S) : k(S);
16512
16512
  }
16513
16513
  function k(S) {
16514
- return S === o ? (D.enter("codeFencedFenceSequence"), E(S)) : I(S);
16514
+ return S === o ? (w.enter("codeFencedFenceSequence"), E(S)) : I(S);
16515
16515
  }
16516
16516
  function E(S) {
16517
- return S === o ? (N++, D.consume(S), E) : N >= s ? (D.exit("codeFencedFenceSequence"), Ie(S) ? Ge(D, O, "whitespace")(S) : O(S)) : I(S);
16517
+ return S === o ? (P++, w.consume(S), E) : P >= s ? (w.exit("codeFencedFenceSequence"), Ie(S) ? Ge(w, O, "whitespace")(S) : O(S)) : I(S);
16518
16518
  }
16519
16519
  function O(S) {
16520
- return S === null || we(S) ? (D.exit("codeFencedFence"), T(S)) : I(S);
16520
+ return S === null || we(S) ? (w.exit("codeFencedFence"), T(S)) : I(S);
16521
16521
  }
16522
16522
  }
16523
16523
  }
@@ -17166,13 +17166,13 @@ function wD(e, t, n) {
17166
17166
  return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(F), h;
17167
17167
  }
17168
17168
  function h(F) {
17169
- return F === 33 ? (e.consume(F), m) : F === 47 ? (e.consume(F), a = !0, f) : F === 63 ? (e.consume(F), i = 3, r.interrupt ? t : w) : Yt(F) ? (e.consume(F), s = String.fromCharCode(F), v) : n(F);
17169
+ return F === 33 ? (e.consume(F), m) : F === 47 ? (e.consume(F), a = !0, f) : F === 63 ? (e.consume(F), i = 3, r.interrupt ? t : D) : Yt(F) ? (e.consume(F), s = String.fromCharCode(F), v) : n(F);
17170
17170
  }
17171
17171
  function m(F) {
17172
- return F === 45 ? (e.consume(F), i = 2, p) : F === 91 ? (e.consume(F), i = 5, o = 0, g) : Yt(F) ? (e.consume(F), i = 4, r.interrupt ? t : w) : n(F);
17172
+ return F === 45 ? (e.consume(F), i = 2, p) : F === 91 ? (e.consume(F), i = 5, o = 0, g) : Yt(F) ? (e.consume(F), i = 4, r.interrupt ? t : D) : n(F);
17173
17173
  }
17174
17174
  function p(F) {
17175
- return F === 45 ? (e.consume(F), r.interrupt ? t : w) : n(F);
17175
+ return F === 45 ? (e.consume(F), r.interrupt ? t : D) : n(F);
17176
17176
  }
17177
17177
  function g(F) {
17178
17178
  const A = "CDATA[";
@@ -17201,18 +17201,18 @@ function wD(e, t, n) {
17201
17201
  return F === 45 || F === 46 || F === 58 || F === 95 || zt(F) ? (e.consume(F), B) : x(F);
17202
17202
  }
17203
17203
  function x(F) {
17204
- return F === 61 ? (e.consume(F), D) : Ie(F) ? (e.consume(F), x) : _(F);
17204
+ return F === 61 ? (e.consume(F), w) : Ie(F) ? (e.consume(F), x) : _(F);
17205
17205
  }
17206
- function D(F) {
17207
- return F === null || F === 60 || F === 61 || F === 62 || F === 96 ? n(F) : F === 34 || F === 39 ? (e.consume(F), l = F, T) : Ie(F) ? (e.consume(F), D) : I(F);
17206
+ function w(F) {
17207
+ return F === null || F === 60 || F === 61 || F === 62 || F === 96 ? n(F) : F === 34 || F === 39 ? (e.consume(F), l = F, T) : Ie(F) ? (e.consume(F), w) : I(F);
17208
17208
  }
17209
17209
  function T(F) {
17210
- return F === l ? (e.consume(F), l = null, N) : F === null || we(F) ? n(F) : (e.consume(F), T);
17210
+ return F === l ? (e.consume(F), l = null, P) : F === null || we(F) ? n(F) : (e.consume(F), T);
17211
17211
  }
17212
17212
  function I(F) {
17213
17213
  return F === null || F === 34 || F === 39 || F === 47 || F === 60 || F === 61 || F === 62 || F === 96 || Ft(F) ? x(F) : (e.consume(F), I);
17214
17214
  }
17215
- function N(F) {
17215
+ function P(F) {
17216
17216
  return F === 47 || F === 62 || Ie(F) ? _(F) : n(F);
17217
17217
  }
17218
17218
  function z(F) {
@@ -17222,7 +17222,7 @@ function wD(e, t, n) {
17222
17222
  return F === null || we(F) ? k(F) : Ie(F) ? (e.consume(F), $) : n(F);
17223
17223
  }
17224
17224
  function k(F) {
17225
- return F === 45 && i === 2 ? (e.consume(F), U) : F === 60 && i === 1 ? (e.consume(F), H) : F === 62 && i === 4 ? (e.consume(F), X) : F === 63 && i === 3 ? (e.consume(F), w) : F === 93 && i === 5 ? (e.consume(F), re) : we(F) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(yD, V, E)(F)) : F === null || we(F) ? (e.exit("htmlFlowData"), E(F)) : (e.consume(F), k);
17225
+ return F === 45 && i === 2 ? (e.consume(F), U) : F === 60 && i === 1 ? (e.consume(F), H) : F === 62 && i === 4 ? (e.consume(F), X) : F === 63 && i === 3 ? (e.consume(F), D) : F === 93 && i === 5 ? (e.consume(F), re) : we(F) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(yD, V, E)(F)) : F === null || we(F) ? (e.exit("htmlFlowData"), E(F)) : (e.consume(F), k);
17226
17226
  }
17227
17227
  function E(F) {
17228
17228
  return e.check(xD, O, V)(F);
@@ -17234,7 +17234,7 @@ function wD(e, t, n) {
17234
17234
  return F === null || we(F) ? E(F) : (e.enter("htmlFlowData"), k(F));
17235
17235
  }
17236
17236
  function U(F) {
17237
- return F === 45 ? (e.consume(F), w) : k(F);
17237
+ return F === 45 ? (e.consume(F), D) : k(F);
17238
17238
  }
17239
17239
  function H(F) {
17240
17240
  return F === 47 ? (e.consume(F), s = "", ae) : k(F);
@@ -17247,10 +17247,10 @@ function wD(e, t, n) {
17247
17247
  return Yt(F) && s.length < 8 ? (e.consume(F), s += String.fromCharCode(F), ae) : k(F);
17248
17248
  }
17249
17249
  function re(F) {
17250
- return F === 93 ? (e.consume(F), w) : k(F);
17250
+ return F === 93 ? (e.consume(F), D) : k(F);
17251
17251
  }
17252
- function w(F) {
17253
- return F === 62 ? (e.consume(F), X) : F === 45 && i === 2 ? (e.consume(F), w) : k(F);
17252
+ function D(F) {
17253
+ return F === 62 ? (e.consume(F), X) : F === 45 && i === 2 ? (e.consume(F), D) : k(F);
17254
17254
  }
17255
17255
  function X(F) {
17256
17256
  return F === null || we(F) ? (e.exit("htmlFlowData"), V(F)) : (e.consume(F), X);
@@ -17283,93 +17283,93 @@ function kD(e, t, n) {
17283
17283
  const r = this;
17284
17284
  let i, a, s;
17285
17285
  return o;
17286
- function o(w) {
17287
- return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(w), l;
17286
+ function o(D) {
17287
+ return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(D), l;
17288
17288
  }
17289
- function l(w) {
17290
- return w === 33 ? (e.consume(w), u) : w === 47 ? (e.consume(w), x) : w === 63 ? (e.consume(w), _) : Yt(w) ? (e.consume(w), I) : n(w);
17289
+ function l(D) {
17290
+ return D === 33 ? (e.consume(D), u) : D === 47 ? (e.consume(D), x) : D === 63 ? (e.consume(D), _) : Yt(D) ? (e.consume(D), I) : n(D);
17291
17291
  }
17292
- function u(w) {
17293
- return w === 45 ? (e.consume(w), d) : w === 91 ? (e.consume(w), a = 0, g) : Yt(w) ? (e.consume(w), C) : n(w);
17292
+ function u(D) {
17293
+ return D === 45 ? (e.consume(D), d) : D === 91 ? (e.consume(D), a = 0, g) : Yt(D) ? (e.consume(D), C) : n(D);
17294
17294
  }
17295
- function d(w) {
17296
- return w === 45 ? (e.consume(w), p) : n(w);
17295
+ function d(D) {
17296
+ return D === 45 ? (e.consume(D), p) : n(D);
17297
17297
  }
17298
- function h(w) {
17299
- return w === null ? n(w) : w === 45 ? (e.consume(w), m) : we(w) ? (s = h, H(w)) : (e.consume(w), h);
17298
+ function h(D) {
17299
+ return D === null ? n(D) : D === 45 ? (e.consume(D), m) : we(D) ? (s = h, H(D)) : (e.consume(D), h);
17300
17300
  }
17301
- function m(w) {
17302
- return w === 45 ? (e.consume(w), p) : h(w);
17301
+ function m(D) {
17302
+ return D === 45 ? (e.consume(D), p) : h(D);
17303
17303
  }
17304
- function p(w) {
17305
- return w === 62 ? U(w) : w === 45 ? m(w) : h(w);
17304
+ function p(D) {
17305
+ return D === 62 ? U(D) : D === 45 ? m(D) : h(D);
17306
17306
  }
17307
- function g(w) {
17307
+ function g(D) {
17308
17308
  const X = "CDATA[";
17309
- return w === X.charCodeAt(a++) ? (e.consume(w), a === X.length ? f : g) : n(w);
17309
+ return D === X.charCodeAt(a++) ? (e.consume(D), a === X.length ? f : g) : n(D);
17310
17310
  }
17311
- function f(w) {
17312
- return w === null ? n(w) : w === 93 ? (e.consume(w), v) : we(w) ? (s = f, H(w)) : (e.consume(w), f);
17311
+ function f(D) {
17312
+ return D === null ? n(D) : D === 93 ? (e.consume(D), v) : we(D) ? (s = f, H(D)) : (e.consume(D), f);
17313
17313
  }
17314
- function v(w) {
17315
- return w === 93 ? (e.consume(w), b) : f(w);
17314
+ function v(D) {
17315
+ return D === 93 ? (e.consume(D), b) : f(D);
17316
17316
  }
17317
- function b(w) {
17318
- return w === 62 ? U(w) : w === 93 ? (e.consume(w), b) : f(w);
17317
+ function b(D) {
17318
+ return D === 62 ? U(D) : D === 93 ? (e.consume(D), b) : f(D);
17319
17319
  }
17320
- function C(w) {
17321
- return w === null || w === 62 ? U(w) : we(w) ? (s = C, H(w)) : (e.consume(w), C);
17320
+ function C(D) {
17321
+ return D === null || D === 62 ? U(D) : we(D) ? (s = C, H(D)) : (e.consume(D), C);
17322
17322
  }
17323
- function _(w) {
17324
- return w === null ? n(w) : w === 63 ? (e.consume(w), B) : we(w) ? (s = _, H(w)) : (e.consume(w), _);
17323
+ function _(D) {
17324
+ return D === null ? n(D) : D === 63 ? (e.consume(D), B) : we(D) ? (s = _, H(D)) : (e.consume(D), _);
17325
17325
  }
17326
- function B(w) {
17327
- return w === 62 ? U(w) : _(w);
17326
+ function B(D) {
17327
+ return D === 62 ? U(D) : _(D);
17328
17328
  }
17329
- function x(w) {
17330
- return Yt(w) ? (e.consume(w), D) : n(w);
17329
+ function x(D) {
17330
+ return Yt(D) ? (e.consume(D), w) : n(D);
17331
17331
  }
17332
- function D(w) {
17333
- return w === 45 || zt(w) ? (e.consume(w), D) : T(w);
17332
+ function w(D) {
17333
+ return D === 45 || zt(D) ? (e.consume(D), w) : T(D);
17334
17334
  }
17335
- function T(w) {
17336
- return we(w) ? (s = T, H(w)) : Ie(w) ? (e.consume(w), T) : U(w);
17335
+ function T(D) {
17336
+ return we(D) ? (s = T, H(D)) : Ie(D) ? (e.consume(D), T) : U(D);
17337
17337
  }
17338
- function I(w) {
17339
- return w === 45 || zt(w) ? (e.consume(w), I) : w === 47 || w === 62 || Ft(w) ? N(w) : n(w);
17338
+ function I(D) {
17339
+ return D === 45 || zt(D) ? (e.consume(D), I) : D === 47 || D === 62 || Ft(D) ? P(D) : n(D);
17340
17340
  }
17341
- function N(w) {
17342
- return w === 47 ? (e.consume(w), U) : w === 58 || w === 95 || Yt(w) ? (e.consume(w), z) : we(w) ? (s = N, H(w)) : Ie(w) ? (e.consume(w), N) : U(w);
17341
+ function P(D) {
17342
+ return D === 47 ? (e.consume(D), U) : D === 58 || D === 95 || Yt(D) ? (e.consume(D), z) : we(D) ? (s = P, H(D)) : Ie(D) ? (e.consume(D), P) : U(D);
17343
17343
  }
17344
- function z(w) {
17345
- return w === 45 || w === 46 || w === 58 || w === 95 || zt(w) ? (e.consume(w), z) : $(w);
17344
+ function z(D) {
17345
+ return D === 45 || D === 46 || D === 58 || D === 95 || zt(D) ? (e.consume(D), z) : $(D);
17346
17346
  }
17347
- function $(w) {
17348
- return w === 61 ? (e.consume(w), k) : we(w) ? (s = $, H(w)) : Ie(w) ? (e.consume(w), $) : N(w);
17347
+ function $(D) {
17348
+ return D === 61 ? (e.consume(D), k) : we(D) ? (s = $, H(D)) : Ie(D) ? (e.consume(D), $) : P(D);
17349
17349
  }
17350
- function k(w) {
17351
- return w === null || w === 60 || w === 61 || w === 62 || w === 96 ? n(w) : w === 34 || w === 39 ? (e.consume(w), i = w, E) : we(w) ? (s = k, H(w)) : Ie(w) ? (e.consume(w), k) : (e.consume(w), O);
17350
+ function k(D) {
17351
+ return D === null || D === 60 || D === 61 || D === 62 || D === 96 ? n(D) : D === 34 || D === 39 ? (e.consume(D), i = D, E) : we(D) ? (s = k, H(D)) : Ie(D) ? (e.consume(D), k) : (e.consume(D), O);
17352
17352
  }
17353
- function E(w) {
17354
- return w === i ? (e.consume(w), i = void 0, S) : w === null ? n(w) : we(w) ? (s = E, H(w)) : (e.consume(w), E);
17353
+ function E(D) {
17354
+ return D === i ? (e.consume(D), i = void 0, S) : D === null ? n(D) : we(D) ? (s = E, H(D)) : (e.consume(D), E);
17355
17355
  }
17356
- function O(w) {
17357
- return w === null || w === 34 || w === 39 || w === 60 || w === 61 || w === 96 ? n(w) : w === 47 || w === 62 || Ft(w) ? N(w) : (e.consume(w), O);
17356
+ function O(D) {
17357
+ return D === null || D === 34 || D === 39 || D === 60 || D === 61 || D === 96 ? n(D) : D === 47 || D === 62 || Ft(D) ? P(D) : (e.consume(D), O);
17358
17358
  }
17359
- function S(w) {
17360
- return w === 47 || w === 62 || Ft(w) ? N(w) : n(w);
17359
+ function S(D) {
17360
+ return D === 47 || D === 62 || Ft(D) ? P(D) : n(D);
17361
17361
  }
17362
- function U(w) {
17363
- return w === 62 ? (e.consume(w), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(w);
17362
+ function U(D) {
17363
+ return D === 62 ? (e.consume(D), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(D);
17364
17364
  }
17365
- function H(w) {
17366
- return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(w), e.exit("lineEnding"), ae;
17365
+ function H(D) {
17366
+ return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(D), e.exit("lineEnding"), ae;
17367
17367
  }
17368
- function ae(w) {
17369
- return Ie(w) ? Ge(e, re, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(w) : re(w);
17368
+ function ae(D) {
17369
+ return Ie(D) ? Ge(e, re, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(D) : re(D);
17370
17370
  }
17371
- function re(w) {
17372
- return e.enter("htmlTextData"), s(w);
17371
+ function re(D) {
17372
+ return e.enter("htmlTextData"), s(D);
17373
17373
  }
17374
17374
  }
17375
17375
  const So = {
@@ -17842,8 +17842,8 @@ function rw(e, t, n) {
17842
17842
  enter: _,
17843
17843
  exit: B,
17844
17844
  attempt: T(x),
17845
- check: T(D),
17846
- interrupt: T(D, {
17845
+ check: T(w),
17846
+ interrupt: T(w, {
17847
17847
  interrupt: !0
17848
17848
  })
17849
17849
  }, u = {
@@ -17910,21 +17910,21 @@ function rw(e, t, n) {
17910
17910
  function x($, k) {
17911
17911
  I($, k.from);
17912
17912
  }
17913
- function D($, k) {
17913
+ function w($, k) {
17914
17914
  k.restore();
17915
17915
  }
17916
17916
  function T($, k) {
17917
17917
  return E;
17918
17918
  function E(O, S, U) {
17919
- let H, ae, re, w;
17919
+ let H, ae, re, D;
17920
17920
  return Array.isArray(O) ? V(O) : "tokenize" in O ? (
17921
17921
  // @ts-expect-error Looks like a construct.
17922
17922
  V([O])
17923
17923
  ) : X(O);
17924
- function X(P) {
17924
+ function X(N) {
17925
17925
  return L;
17926
17926
  function L(Z) {
17927
- const q = Z !== null && P[Z], ne = Z !== null && P.null, ue = [
17927
+ const q = Z !== null && N[Z], ne = Z !== null && N.null, ue = [
17928
17928
  // To do: add more extension tests.
17929
17929
  /* c8 ignore next 2 */
17930
17930
  ...Array.isArray(q) ? q : q ? [q] : [],
@@ -17933,13 +17933,13 @@ function rw(e, t, n) {
17933
17933
  return V(ue)(Z);
17934
17934
  }
17935
17935
  }
17936
- function V(P) {
17937
- return H = P, ae = 0, P.length === 0 ? U : F(P[ae]);
17936
+ function V(N) {
17937
+ return H = N, ae = 0, N.length === 0 ? U : F(N[ae]);
17938
17938
  }
17939
- function F(P) {
17939
+ function F(N) {
17940
17940
  return L;
17941
17941
  function L(Z) {
17942
- return w = N(), re = P, P.partial || (u.currentConstruct = P), P.name && u.parser.constructs.disable.null.includes(P.name) ? j() : P.tokenize.call(
17942
+ return D = P(), re = N, N.partial || (u.currentConstruct = N), N.name && u.parser.constructs.disable.null.includes(N.name) ? j() : N.tokenize.call(
17943
17943
  // If we do have fields, create an object w/ `context` as its
17944
17944
  // prototype.
17945
17945
  // This allows a “live binding”, which is needed for `interrupt`.
@@ -17950,11 +17950,11 @@ function rw(e, t, n) {
17950
17950
  )(Z);
17951
17951
  }
17952
17952
  }
17953
- function A(P) {
17954
- return $(re, w), S;
17953
+ function A(N) {
17954
+ return $(re, D), S;
17955
17955
  }
17956
- function j(P) {
17957
- return w.restore(), ++ae < H.length ? F(H[ae]) : U;
17956
+ function j(N) {
17957
+ return D.restore(), ++ae < H.length ? F(H[ae]) : U;
17958
17958
  }
17959
17959
  }
17960
17960
  }
@@ -17966,7 +17966,7 @@ function rw(e, t, n) {
17966
17966
  $.resolve(u.events.slice(k), u)
17967
17967
  ), $.resolveTo && (u.events = $.resolveTo(u.events, u));
17968
17968
  }
17969
- function N() {
17969
+ function P() {
17970
17970
  const $ = g(), k = u.previous, E = u.currentConstruct, O = u.events.length, S = Array.from(o);
17971
17971
  return {
17972
17972
  restore: U,
@@ -18191,20 +18191,20 @@ function Cw(e) {
18191
18191
  canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
18192
18192
  enter: {
18193
18193
  autolink: a(We),
18194
- autolinkProtocol: N,
18195
- autolinkEmail: N,
18194
+ autolinkProtocol: P,
18195
+ autolinkEmail: P,
18196
18196
  atxHeading: a(ge),
18197
18197
  blockQuote: a(q),
18198
- characterEscape: N,
18199
- characterReference: N,
18198
+ characterEscape: P,
18199
+ characterReference: P,
18200
18200
  codeFenced: a(ne),
18201
18201
  codeFencedFenceInfo: s,
18202
18202
  codeFencedFenceMeta: s,
18203
18203
  codeIndented: a(ne, s),
18204
18204
  codeText: a(ue, s),
18205
- codeTextData: N,
18206
- data: N,
18207
- codeFlowValue: N,
18205
+ codeTextData: P,
18206
+ data: P,
18207
+ codeFlowValue: P,
18208
18208
  definition: a(Q),
18209
18209
  definitionDestinationString: s,
18210
18210
  definitionLabelString: s,
@@ -18213,9 +18213,9 @@ function Cw(e) {
18213
18213
  hardBreakEscape: a(Te),
18214
18214
  hardBreakTrailing: a(Te),
18215
18215
  htmlFlow: a(je, s),
18216
- htmlFlowData: N,
18216
+ htmlFlowData: P,
18217
18217
  htmlText: a(je, s),
18218
- htmlTextData: N,
18218
+ htmlTextData: P,
18219
18219
  image: a(Oe),
18220
18220
  label: s,
18221
18221
  link: a(We),
@@ -18242,7 +18242,7 @@ function Cw(e) {
18242
18242
  characterEscapeValue: z,
18243
18243
  characterReferenceMarkerHexadecimal: j,
18244
18244
  characterReferenceMarkerNumeric: j,
18245
- characterReferenceValue: P,
18245
+ characterReferenceValue: N,
18246
18246
  codeFenced: l(v),
18247
18247
  codeFencedFence: f,
18248
18248
  codeFencedFenceInfo: p,
@@ -18273,12 +18273,12 @@ function Cw(e) {
18273
18273
  listUnordered: l(),
18274
18274
  paragraph: l(),
18275
18275
  referenceString: A,
18276
- resourceDestinationString: w,
18276
+ resourceDestinationString: D,
18277
18277
  resourceTitleString: X,
18278
18278
  resource: V,
18279
18279
  setextHeading: l(I),
18280
18280
  setextHeadingLineSequence: T,
18281
- setextHeadingText: D,
18281
+ setextHeadingText: w,
18282
18282
  strong: l(),
18283
18283
  thematicBreak: l()
18284
18284
  }
@@ -18490,7 +18490,7 @@ function Cw(e) {
18490
18490
  ie.depth = pe;
18491
18491
  }
18492
18492
  }
18493
- function D() {
18493
+ function w() {
18494
18494
  this.data.setextHeadingSlurpLineEnding = !0;
18495
18495
  }
18496
18496
  function T(W) {
@@ -18500,7 +18500,7 @@ function Cw(e) {
18500
18500
  function I() {
18501
18501
  this.data.setextHeadingSlurpLineEnding = void 0;
18502
18502
  }
18503
- function N(W) {
18503
+ function P(W) {
18504
18504
  const pe = this.stack[this.stack.length - 1].children;
18505
18505
  let be = pe[pe.length - 1];
18506
18506
  (!be || be.type !== "text") && (be = Ye(), be.position = {
@@ -18520,7 +18520,7 @@ function Cw(e) {
18520
18520
  pe.position.end = gn(W.end), this.data.atHardBreak = void 0;
18521
18521
  return;
18522
18522
  }
18523
- !this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(ie.type) && (N.call(this, W), z.call(this, W));
18523
+ !this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(ie.type) && (P.call(this, W), z.call(this, W));
18524
18524
  }
18525
18525
  function k() {
18526
18526
  this.data.atHardBreak = !0;
@@ -18567,7 +18567,7 @@ function Cw(e) {
18567
18567
  } else
18568
18568
  pe.alt = ie;
18569
18569
  }
18570
- function w() {
18570
+ function D() {
18571
18571
  const W = this.resume(), ie = this.stack[this.stack.length - 1];
18572
18572
  ie.url = W;
18573
18573
  }
@@ -18590,7 +18590,7 @@ function Cw(e) {
18590
18590
  function j(W) {
18591
18591
  this.data.characterReferenceType = W.type;
18592
18592
  }
18593
- function P(W) {
18593
+ function N(W) {
18594
18594
  const ie = this.sliceSerialize(W), pe = this.data.characterReferenceType;
18595
18595
  let be;
18596
18596
  pe ? (be = Df(
@@ -19325,14 +19325,14 @@ const Rf = ({ formID: e, label: t, showLabel: n }) => {
19325
19325
  case "ArrowRight":
19326
19326
  v.stopPropagation(), v.preventDefault();
19327
19327
  const x = v.currentTarget.closest("li");
19328
- let D = x == null ? void 0 : x.nextElementSibling;
19328
+ let w = x == null ? void 0 : x.nextElementSibling;
19329
19329
  if (v.key === "ArrowLeft") {
19330
- const N = x == null ? void 0 : x.previousElementSibling;
19331
- N ? D = N : D = (b = x == null ? void 0 : x.parentElement) == null ? void 0 : b.lastElementChild;
19330
+ const P = x == null ? void 0 : x.previousElementSibling;
19331
+ P ? w = P : w = (b = x == null ? void 0 : x.parentElement) == null ? void 0 : b.lastElementChild;
19332
19332
  } else
19333
- D || (D = (C = x == null ? void 0 : x.parentElement) == null ? void 0 : C.firstElementChild);
19334
- const T = D == null ? void 0 : D.className.split(" ")[0];
19335
- T && (m(T), (_ = D == null ? void 0 : D.querySelector("button")) == null || _.focus());
19333
+ w || (w = (C = x == null ? void 0 : x.parentElement) == null ? void 0 : C.firstElementChild);
19334
+ const T = w == null ? void 0 : w.className.split(" ")[0];
19335
+ T && (m(T), (_ = w == null ? void 0 : w.querySelector("button")) == null || _.focus());
19336
19336
  break;
19337
19337
  default:
19338
19338
  const I = v.currentTarget.closest("fieldset");
@@ -19506,7 +19506,7 @@ const Lw = () => {
19506
19506
  }, 500);
19507
19507
  }, [u.selection]);
19508
19508
  const b = [], C = ["open", "edit", "remove"].map((x) => {
19509
- const D = {
19509
+ const w = {
19510
19510
  variant: "tertiary",
19511
19511
  size: "small",
19512
19512
  children: e.formatMessage(
@@ -19516,20 +19516,20 @@ const Lw = () => {
19516
19516
  };
19517
19517
  switch (b.push({ className: x }), x) {
19518
19518
  case "open":
19519
- D.href = (d == null ? void 0 : d.full) || "", D.onClick = (T) => {
19519
+ w.href = (d == null ? void 0 : d.full) || "", w.onClick = (T) => {
19520
19520
  T.preventDefault(), T.stopPropagation(), window.open((d == null ? void 0 : d.full) || "", "_blank"), s([{ type: "showLinkEditor", value: !1 }]);
19521
- }, D.children = /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
19522
- D.children,
19521
+ }, w.children = /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
19522
+ w.children,
19523
19523
  /* @__PURE__ */ c.jsx(qe, { children: e.formatMessage({ id: `${t}${x}_text` }) })
19524
19524
  ] });
19525
19525
  break;
19526
19526
  case "edit":
19527
- D.onClick = () => {
19527
+ w.onClick = () => {
19528
19528
  g(!1);
19529
19529
  };
19530
19530
  break;
19531
19531
  case "remove":
19532
- D.onClick = () => {
19532
+ w.onClick = () => {
19533
19533
  const T = [
19534
19534
  { type: "showLinkEditor", value: !1 }
19535
19535
  ];
@@ -19537,7 +19537,7 @@ const Lw = () => {
19537
19537
  };
19538
19538
  break;
19539
19539
  }
19540
- return D;
19540
+ return w;
19541
19541
  }), _ = [
19542
19542
  {
19543
19543
  id: "url",
@@ -19563,8 +19563,8 @@ const Lw = () => {
19563
19563
  if (!u)
19564
19564
  return;
19565
19565
  x.preventDefault(), x.stopPropagation();
19566
- const D = y.end(u, []);
19567
- J.select(u, D), ee.focus(u);
19566
+ const w = y.end(u, []);
19567
+ J.select(u, w), ee.focus(u);
19568
19568
  }
19569
19569
  }
19570
19570
  }
@@ -19609,15 +19609,15 @@ const Lw = () => {
19609
19609
  functions: {
19610
19610
  onSuccess: async (x) => {
19611
19611
  setTimeout(async () => {
19612
- const D = [
19612
+ const w = [
19613
19613
  { type: "showLinkEditor", value: !1 }
19614
19614
  ];
19615
19615
  let T = x.url;
19616
19616
  if (x.url) {
19617
19617
  const { full: I } = ro(x.url);
19618
- T = I, d != null && d.full ? Iw(u, T, n, l) : $w(u, T, n, l), D.push({ type: "lastAnchor", value: null });
19618
+ T = I, d != null && d.full ? Iw(u, T, n, l) : $w(u, T, n, l), w.push({ type: "lastAnchor", value: null });
19619
19619
  }
19620
- if (s(D), x.url && o && (!m || a && (d == null ? void 0 : d.full) === a.url)) {
19620
+ if (s(w), x.url && o && (!m || a && (d == null ? void 0 : d.full) === a.url)) {
19621
19621
  const I = await o(T);
19622
19622
  I.url && s([{ type: "enrichedUrl", value: I }]);
19623
19623
  }
@@ -20594,10 +20594,10 @@ const Gf = ({
20594
20594
  hasInteracted: !1,
20595
20595
  hasLoaded: !1,
20596
20596
  enrichedUrl: !1
20597
- }, [x, D] = pr(ua, B), {
20597
+ }, [x, w] = pr(ua, B), {
20598
20598
  editorKey: T,
20599
20599
  originalValue: I,
20600
- initialValue: N,
20600
+ initialValue: P,
20601
20601
  stringValue: z,
20602
20602
  lastAnchor: $,
20603
20603
  lastKey: k,
@@ -20606,11 +20606,11 @@ const Gf = ({
20606
20606
  enrichedUrl: S,
20607
20607
  mentionPopover: U
20608
20608
  } = x, H = (j) => {
20609
- j && D([{ type: "tabbableOption", value: j || Ji[0] }]);
20609
+ j && w([{ type: "tabbableOption", value: j || Ji[0] }]);
20610
20610
  }, ae = async (j) => {
20611
- const P = await v(j);
20612
- P.url && D([{ type: "enrichedUrl", value: P }]);
20613
- }, re = `rte-${e}`, w = Me(
20611
+ const N = await v(j);
20612
+ N.url && w([{ type: "enrichedUrl", value: N }]);
20613
+ }, re = `rte-${e}`, D = Me(
20614
20614
  (j) => /* @__PURE__ */ c.jsx(cg, { ...j }),
20615
20615
  []
20616
20616
  ), X = Me((j) => /* @__PURE__ */ c.jsx(dg, { ...j }), []), V = Gt(
@@ -20629,13 +20629,13 @@ const Gf = ({
20629
20629
  ), F = (j) => {
20630
20630
  if (!V || j !== re)
20631
20631
  return;
20632
- const P = y.end(V, []);
20633
- J.select(V, P), ee.focus(V);
20632
+ const N = y.end(V, []);
20633
+ J.select(V, N), ee.focus(V);
20634
20634
  };
20635
20635
  de(() => {
20636
- const j = (P) => {
20636
+ const j = (N) => {
20637
20637
  var q;
20638
- const L = P, Z = ((q = L == null ? void 0 : L.detail) == null ? void 0 : q.id) || null;
20638
+ const L = N, Z = ((q = L == null ? void 0 : L.detail) == null ? void 0 : q.id) || null;
20639
20639
  Z && F(Z);
20640
20640
  };
20641
20641
  return window.addEventListener("focusEditor", j), () => {
@@ -20643,14 +20643,14 @@ const Gf = ({
20643
20643
  };
20644
20644
  }, []), de(() => {
20645
20645
  if (V.children.length > 0 && !O) {
20646
- if (D([{ type: "hasLoaded", value: !0 }]), !s)
20646
+ if (w([{ type: "hasLoaded", value: !0 }]), !s)
20647
20647
  return;
20648
20648
  F(re);
20649
20649
  }
20650
- }, [V.children.length, N]), de(() => {
20650
+ }, [V.children.length, P]), de(() => {
20651
20651
  I && (async () => {
20652
- let P = Sn(I);
20653
- if (P.includes("<")) {
20652
+ let N = Sn(I);
20653
+ if (N.includes("<")) {
20654
20654
  Qr.prototype.escape = (Z) => Z;
20655
20655
  const L = new Qr();
20656
20656
  L.addRule("br", {
@@ -20658,32 +20658,32 @@ const Gf = ({
20658
20658
  replacement: (Z) => Z + `
20659
20659
 
20660
20660
  `
20661
- }), P = L.turndown(P);
20661
+ }), N = L.turndown(N);
20662
20662
  }
20663
- o && o.mentions && (P = await Yc({
20664
- text: P,
20663
+ o && o.mentions && (N = await Yc({
20664
+ text: N,
20665
20665
  template: `[${Us}{{name}}]({{id}})`,
20666
20666
  mentions: o.mentions,
20667
20667
  listMembers: m || (() => Promise.resolve([]))
20668
- })), Fw(P, (L) => {
20668
+ })), Fw(N, (L) => {
20669
20669
  const Z = [
20670
20670
  { type: "initialValue", value: L },
20671
20671
  { type: "editorKey", value: I.toString() }
20672
20672
  ];
20673
- o != null && o.link && (Z.push({ type: "enrichedUrl", value: o.link }), o.link.url && ae(o.link.url)), D(Z), setTimeout(() => {
20674
- D([{ type: "stringValue", value: bc(V) }]);
20673
+ o != null && o.link && (Z.push({ type: "enrichedUrl", value: o.link }), o.link.url && ae(o.link.url)), w(Z), setTimeout(() => {
20674
+ w([{ type: "stringValue", value: bc(V) }]);
20675
20675
  }, 150);
20676
20676
  });
20677
20677
  })();
20678
20678
  }, [I]), de(() => {
20679
20679
  if (S === void 0 && V) {
20680
- const P = Tw(V);
20681
- P && ae(P);
20680
+ const N = Tw(V);
20681
+ N && ae(N);
20682
20682
  }
20683
- const j = (P) => {
20683
+ const j = (N) => {
20684
20684
  var q;
20685
- const L = P, Z = ((q = L == null ? void 0 : L.detail) == null ? void 0 : q.url) || null;
20686
- Z && S && S.url === Z && D([{ type: "enrichedUrl", value: void 0 }]);
20685
+ const L = N, Z = ((q = L == null ? void 0 : L.detail) == null ? void 0 : q.url) || null;
20686
+ Z && S && S.url === Z && w([{ type: "enrichedUrl", value: void 0 }]);
20687
20687
  };
20688
20688
  return window.addEventListener("linkRemoved", j), () => {
20689
20689
  window.removeEventListener("linkRemoved", j);
@@ -20692,7 +20692,7 @@ const Gf = ({
20692
20692
  if (t) {
20693
20693
  $i.lastIndex = 0;
20694
20694
  const j = t.match($i);
20695
- j && j.length === 1 && j[0].length === t.length && !E && D([{ type: "originalValue", value: t }]);
20695
+ j && j.length === 1 && j[0].length === t.length && !E && w([{ type: "originalValue", value: t }]);
20696
20696
  }
20697
20697
  t !== "" || !V || Mi(I, t) && !E || (y.withoutNormalizing(V, () => {
20698
20698
  J.delete(V, {
@@ -20701,7 +20701,7 @@ const Gf = ({
20701
20701
  focus: y.end(V, [])
20702
20702
  }
20703
20703
  }), J.deselect(V), V.children.length !== 0 && J.unwrapNodes(V, { at: [0] }), J.insertNodes(V, _, { at: [0] });
20704
- }), D([
20704
+ }), w([
20705
20705
  { type: "initialValue", value: _ },
20706
20706
  { type: "lastAnchor", value: null },
20707
20707
  { type: "enrichedUrl", value: !1 }
@@ -20709,7 +20709,7 @@ const Gf = ({
20709
20709
  }, [t]), de(() => {
20710
20710
  f({ link: S });
20711
20711
  }, [S]), de(() => {
20712
- z === "" && S && D([{ type: "enrichedUrl", value: void 0 }]);
20712
+ z === "" && S && w([{ type: "enrichedUrl", value: void 0 }]);
20713
20713
  }, [z]);
20714
20714
  const A = qc(() => {
20715
20715
  jw({
@@ -20717,10 +20717,10 @@ const Gf = ({
20717
20717
  isShowing: U.show,
20718
20718
  numberOfUsers: U.numberOfUsers,
20719
20719
  listMembers: m,
20720
- dispatch: D
20720
+ dispatch: w
20721
20721
  });
20722
20722
  }, 100);
20723
- return N ? /* @__PURE__ */ c.jsx("div", { id: re, className: "rich-text-editor", children: /* @__PURE__ */ c.jsxs(
20723
+ return P ? /* @__PURE__ */ c.jsx("div", { id: re, className: "rich-text-editor", children: /* @__PURE__ */ c.jsxs(
20724
20724
  fn.Provider,
20725
20725
  {
20726
20726
  value: {
@@ -20728,7 +20728,7 @@ const Gf = ({
20728
20728
  id: re,
20729
20729
  isInOverlay: h,
20730
20730
  setFocus: H,
20731
- dispatch: D,
20731
+ dispatch: w,
20732
20732
  getLinkPreview: v,
20733
20733
  onMention: b,
20734
20734
  reportError: C
@@ -20738,11 +20738,11 @@ const Gf = ({
20738
20738
  Y1,
20739
20739
  {
20740
20740
  editor: V,
20741
- initialValue: N,
20741
+ initialValue: P,
20742
20742
  onChange: (j) => {
20743
20743
  if (V.operations.some((L) => L.type !== "set_selection")) {
20744
20744
  let L = Pw(j);
20745
- L === "<br>" && (L = ""), g(L, S), D([{ type: "stringValue", value: bc(V) }]), E || D([{ type: "hasInteracted", value: !0 }]), A(), d && console.log({ serialized: L, json: j });
20745
+ L === "<br>" && (L = ""), g(L, S), w([{ type: "stringValue", value: bc(V) }]), E || w([{ type: "hasInteracted", value: !0 }]), A(), d && console.log({ serialized: L, json: j });
20746
20746
  }
20747
20747
  },
20748
20748
  ...l,
@@ -20751,13 +20751,13 @@ const Gf = ({
20751
20751
  L1,
20752
20752
  {
20753
20753
  className: "input",
20754
- renderElement: w,
20754
+ renderElement: D,
20755
20755
  renderLeaf: X,
20756
20756
  placeholder: n || u.formatMessage({ id: "richTextEditor_placeholder" }),
20757
20757
  autoFocus: s,
20758
20758
  tabIndex: 0,
20759
20759
  onPaste: async (j) => {
20760
- const P = S !== !1, L = j.clipboardData.getData("text");
20760
+ const N = S !== !1, L = j.clipboardData.getData("text");
20761
20761
  if (((q) => {
20762
20762
  try {
20763
20763
  return new URL(q), !0;
@@ -20770,18 +20770,18 @@ const Gf = ({
20770
20770
  const { full: ne } = ro(L);
20771
20771
  q = ne;
20772
20772
  }
20773
- if (L && v && !P) {
20773
+ if (L && v && !N) {
20774
20774
  const ne = await v(q);
20775
- ne.url && D([{ type: "enrichedUrl", value: ne }]);
20775
+ ne.url && w([{ type: "enrichedUrl", value: ne }]);
20776
20776
  }
20777
20777
  }
20778
20778
  },
20779
20779
  onKeyDown: (j) => {
20780
20780
  if (j.key === "Enter") {
20781
- U.show && (j.preventDefault(), j.stopPropagation(), Pf(V, U, D, re));
20782
- const { selection: P } = V;
20783
- if (P) {
20784
- const L = G.isCollapsed(P), [Z, q] = y.node(V, P, { depth: 1 });
20781
+ U.show && (j.preventDefault(), j.stopPropagation(), Pf(V, U, w, re));
20782
+ const { selection: N } = V;
20783
+ if (N) {
20784
+ const L = G.isCollapsed(N), [Z, q] = y.node(V, N, { depth: 1 });
20785
20785
  let ne = Z, ue = ne.type;
20786
20786
  const Q = ne.children[0];
20787
20787
  if (Q && [Y.ol, Y.ul].includes(Q.type) && (ne = Q, ue = Q.type), ne && he.isElement(ne) && ue !== Y.paragraph) {
@@ -20790,7 +20790,7 @@ const Gf = ({
20790
20790
  return;
20791
20791
  }
20792
20792
  if (L) {
20793
- const [ve, ge] = y.parent(V, P, {
20793
+ const [ve, ge] = y.parent(V, N, {
20794
20794
  edge: "end"
20795
20795
  }), je = ve.type;
20796
20796
  if ([Y.ul, Y.ol].includes(ue))
@@ -20819,34 +20819,34 @@ const Gf = ({
20819
20819
  }
20820
20820
  } else if (j.key === "Escape") {
20821
20821
  if (U.show) {
20822
- j.preventDefault(), j.stopPropagation(), D([
20822
+ j.preventDefault(), j.stopPropagation(), w([
20823
20823
  { type: "mentionPopover", value: { ...U, show: !1 } }
20824
20824
  ]);
20825
20825
  return;
20826
20826
  }
20827
20827
  } else if (["ArrowUp", "ArrowDown"].includes(j.key) && U.show) {
20828
20828
  j.preventDefault(), j.stopPropagation();
20829
- const { selectedUser: P, possibleUsers: L } = U;
20830
- let Z = j.key === "ArrowUp" ? P - 1 : P + 1;
20831
- Z < 0 && (Z = L.length - 1), Z >= L.length + 1 && (Z = 0), D([
20829
+ const { selectedUser: N, possibleUsers: L } = U;
20830
+ let Z = j.key === "ArrowUp" ? N - 1 : N + 1;
20831
+ Z < 0 && (Z = L.length - 1), Z >= L.length + 1 && (Z = 0), w([
20832
20832
  {
20833
20833
  type: "mentionPopover",
20834
20834
  value: { ...U, selectedUser: Z }
20835
20835
  }
20836
20836
  ]);
20837
20837
  }
20838
- D([{ type: "lastKey", value: j.key }]), Sw(j, V, D, C);
20838
+ w([{ type: "lastKey", value: j.key }]), Sw(j, V, w, C);
20839
20839
  },
20840
20840
  onBlur: () => {
20841
- V.selection && D([{ type: "lastAnchor", value: V.selection.anchor }]);
20841
+ V.selection && w([{ type: "lastAnchor", value: V.selection.anchor }]);
20842
20842
  },
20843
20843
  onFocus: () => {
20844
20844
  if ($) {
20845
20845
  if (!R.isPath($.path) || !oe.has(V, $.path))
20846
20846
  return;
20847
20847
  const j = oe.get(V, $.path);
20848
- let P = 0;
20849
- if (me.isText(j) ? P = j.text.length : j.children && (P = j.children.length), $.offset > P)
20848
+ let N = 0;
20849
+ if (me.isText(j) ? N = j.text.length : j.children && (N = j.children.length), $.offset > N)
20850
20850
  return;
20851
20851
  try {
20852
20852
  J.select(V, {
@@ -20867,7 +20867,7 @@ const Gf = ({
20867
20867
  data: S,
20868
20868
  variant: "condensed",
20869
20869
  onClick: () => {
20870
- D([{ type: "enrichedUrl", value: !1 }]);
20870
+ w([{ type: "enrichedUrl", value: !1 }]);
20871
20871
  const j = new CustomEvent("ariaLive", {
20872
20872
  detail: {
20873
20873
  message: u.formatMessage({
@@ -20979,9 +20979,9 @@ function SC({
20979
20979
  const x = B.target.files && B.target.files[0];
20980
20980
  if (!x || !t)
20981
20981
  throw m(!1), new Error("Image file or userID is missing");
20982
- const D = await i({ fileObject: x, userId: t }), T = {
20983
- thumbnail: D.thumbnailURL,
20984
- full: D.originalURL
20982
+ const w = await i({ fileObject: x, userId: t }), T = {
20983
+ thumbnail: w.thumbnailURL,
20984
+ full: w.originalURL
20985
20985
  };
20986
20986
  d(T), s(T);
20987
20987
  } catch {
@@ -21135,11 +21135,11 @@ const OC = ({ emails: e, setEmails: t, setIsDisabled: n }) => {
21135
21135
  "SUCCESS"
21136
21136
  /* SUCCESS */
21137
21137
  );
21138
- } catch (D) {
21138
+ } catch (w) {
21139
21139
  v(
21140
21140
  "ERROR"
21141
21141
  /* ERROR */
21142
- ), l(D);
21142
+ ), l(w);
21143
21143
  }
21144
21144
  }, _ = (x) => {
21145
21145
  x.preventDefault(), v(
@@ -21269,129 +21269,138 @@ const OC = ({ emails: e, setEmails: t, setIsDisabled: n }) => {
21269
21269
  r && /* @__PURE__ */ c.jsx(zn, { variant: "error", text: r })
21270
21270
  ] });
21271
21271
  };
21272
- const NC = ({ hooks: e, functions: t, meta: n = {}, gtm: r }) => {
21273
- var B, x;
21274
- const i = ce(), a = "profileForm_", s = Re(pt), [o, l] = le(s.image), [u, d] = le(!1), {
21275
- uploadImage: h,
21276
- onSuccess: m = async (D) => {
21272
+ const NC = ({
21273
+ isCreateProfile: e = !1,
21274
+ hooks: t,
21275
+ functions: n,
21276
+ meta: r = {},
21277
+ gtm: i
21278
+ }) => {
21279
+ var T, I;
21280
+ const a = ce(), s = "profileForm_", o = Re(pt), [l, u] = le(o.image), [d, h] = le(!1), {
21281
+ uploadImage: m = () => {
21277
21282
  },
21278
- onCancel: p = () => {
21283
+ onSuccess: p = async (P) => {
21279
21284
  },
21280
- onFailure: g = () => {
21285
+ onCancel: g = () => {
21286
+ },
21287
+ onFailure: f = () => {
21281
21288
  }
21282
- } = t, { buildLocation: f, isValidPlace: v, predictPlaces: b } = e.useMaps(), { context: C = "ProfileForm", event: _ = "profile-form-submit-click" } = r || {};
21283
- return /* @__PURE__ */ c.jsx(
21284
- dn,
21289
+ } = n, { buildLocation: v, isValidPlace: b, predictPlaces: C } = t.useMaps(), { context: _ = "ProfileForm", event: B = "profile-form-submit-click" } = i || {}, x = [
21285
21290
  {
21286
- id: "profile-details-form",
21287
- fields: [
21288
- {
21289
- component: SC,
21290
- props: {
21291
- userName: s.name,
21292
- userId: s.id,
21293
- src: o,
21294
- uploadImage: h,
21295
- callback: l,
21296
- button: {
21297
- text: {
21298
- upload: i.formatMessage({ id: `${a}image` })
21299
- }
21300
- }
21301
- }
21302
- },
21303
- {
21304
- id: "name",
21305
- type: "text",
21306
- label: i.formatMessage({ id: `${a}name` }),
21307
- placeholder: i.formatMessage({ id: `${a}name_placeholder` }),
21308
- value: s.name,
21309
- autoComplete: "name",
21310
- validation: [{ condition: "required" }]
21311
- },
21312
- {
21313
- id: "jobTitle",
21314
- type: "text",
21315
- label: i.formatMessage({ id: `${a}jobTitle` }),
21316
- placeholder: i.formatMessage({ id: `${a}jobTitle_placeholder` }),
21317
- value: s.jobTitle,
21318
- validation: [{ condition: "required" }]
21319
- },
21291
+ id: "jobTitle",
21292
+ type: "text",
21293
+ label: a.formatMessage({ id: `${s}jobTitle` }),
21294
+ placeholder: a.formatMessage({ id: `${s}jobTitle_placeholder` }),
21295
+ value: o.jobTitle,
21296
+ validation: [{ condition: "required" }]
21297
+ },
21298
+ {
21299
+ id: "organization",
21300
+ type: "text",
21301
+ label: a.formatMessage({ id: `${s}organization` }),
21302
+ placeholder: a.formatMessage({
21303
+ id: `${s}organization_placeholder`
21304
+ }),
21305
+ value: o.organization,
21306
+ validation: [{ condition: "required" }]
21307
+ },
21308
+ {
21309
+ id: "location",
21310
+ type: "autocomplete",
21311
+ label: a.formatMessage({ id: `${s}location` }),
21312
+ placeholder: a.formatMessage({ id: `${s}location_placeholder` }),
21313
+ value: ((T = o.location) == null ? void 0 : T.en) || ((I = o.location) == null ? void 0 : I.country),
21314
+ validation: [
21315
+ { condition: "required" },
21320
21316
  {
21321
- id: "organization",
21322
- type: "text",
21323
- label: i.formatMessage({ id: `${a}organization` }),
21324
- placeholder: i.formatMessage({
21325
- id: `${a}organization_placeholder`
21326
- }),
21327
- value: s.organization,
21328
- validation: [{ condition: "required" }]
21317
+ condition: ({ location: P }) => P && !d ? !1 : !b(P),
21318
+ error: a.formatMessage({ id: `${s}location_error` })
21319
+ }
21320
+ ],
21321
+ functions: {
21322
+ onChange: () => {
21323
+ d || h(!0);
21329
21324
  },
21330
- {
21331
- id: "location",
21332
- type: "autocomplete",
21333
- label: i.formatMessage({ id: `${a}location` }),
21334
- placeholder: i.formatMessage({ id: `${a}location_placeholder` }),
21335
- value: ((B = s.location) == null ? void 0 : B.en) || ((x = s.location) == null ? void 0 : x.country),
21336
- validation: [
21337
- { condition: "required" },
21338
- {
21339
- condition: ({ location: D }) => D && !u ? !1 : !v(D),
21340
- error: i.formatMessage({ id: `${a}location_error` })
21341
- }
21342
- ],
21343
- functions: {
21344
- onChange: () => {
21345
- u || d(!0);
21346
- },
21347
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
21348
- // @ts-ignore
21349
- onKeyInput: b
21325
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
21326
+ // @ts-ignore
21327
+ onKeyInput: C
21328
+ }
21329
+ }
21330
+ ], w = [
21331
+ {
21332
+ component: SC,
21333
+ props: {
21334
+ userName: o.name,
21335
+ userId: o.id,
21336
+ src: l,
21337
+ uploadImage: m,
21338
+ callback: u,
21339
+ button: {
21340
+ text: {
21341
+ upload: a.formatMessage({ id: `${s}image` })
21350
21342
  }
21351
- },
21352
- {
21353
- id: "biography",
21354
- type: "textarea",
21355
- label: i.formatMessage({ id: `${a}bio` }),
21356
- placeholder: i.formatMessage({ id: `${a}bio_placeholder` }),
21357
- limit: 1e3,
21358
- value: s.biography
21359
- },
21360
- {
21361
- component: un
21362
21343
  }
21363
- ],
21344
+ }
21345
+ },
21346
+ {
21347
+ id: "name",
21348
+ type: "text",
21349
+ label: a.formatMessage({ id: `${s}name` }),
21350
+ placeholder: a.formatMessage({ id: `${s}name_placeholder` }),
21351
+ value: o.name,
21352
+ autoComplete: "name",
21353
+ validation: [{ condition: "required" }]
21354
+ },
21355
+ ...x,
21356
+ {
21357
+ id: "biography",
21358
+ type: "textarea",
21359
+ label: a.formatMessage({ id: `${s}bio` }),
21360
+ placeholder: a.formatMessage({ id: `${s}bio_placeholder` }),
21361
+ limit: 1e3,
21362
+ value: o.biography
21363
+ },
21364
+ {
21365
+ component: un
21366
+ }
21367
+ ];
21368
+ return /* @__PURE__ */ c.jsx(
21369
+ dn,
21370
+ {
21371
+ id: "profile-details-form",
21372
+ fields: e ? x : w,
21364
21373
  meta: {
21365
- shouldShowCancelButton: !0,
21374
+ shouldShowCancelButton: !e,
21366
21375
  shouldReset: !1,
21367
21376
  shouldHide: !1,
21368
- showRequiredLabels: !1,
21369
- ...n
21377
+ showRequiredLabels: e,
21378
+ ...r
21370
21379
  },
21371
- intlPath: a,
21372
- gtm: { context: C, event: _ },
21380
+ intlPath: s,
21381
+ gtm: { context: _, event: B },
21373
21382
  functions: {
21374
- onSuccess: async (D) => {
21383
+ onSuccess: async (P) => {
21375
21384
  try {
21376
- const T = {
21377
- ...D,
21378
- image: o || null,
21379
- location: u ? await f(D == null ? void 0 : D.location) : s.location
21385
+ const z = {
21386
+ ...P,
21387
+ image: l || null,
21388
+ location: d ? await v(P == null ? void 0 : P.location) : o.location
21380
21389
  };
21381
- s.updateDetails && s.updateDetails((I) => ({ ...I, ...T })), await m(T);
21390
+ o.updateDetails && o.updateDetails(($) => ({ ...$, ...z })), await p(z);
21382
21391
  } catch {
21383
- g();
21392
+ f();
21384
21393
  }
21385
21394
  },
21386
- onCancel: p,
21387
- onFailure: g
21395
+ onCancel: g,
21396
+ onFailure: f
21388
21397
  },
21389
21398
  button: {
21390
21399
  size: "large",
21391
21400
  text: {
21392
- default: i.formatMessage({ id: `${a}cta` }),
21393
- submitting: i.formatMessage({ id: `${a}cta_submitting` }),
21394
- submitted: i.formatMessage({ id: `${a}cta_submitted` })
21401
+ default: a.formatMessage({ id: `${s}cta` }),
21402
+ submitting: a.formatMessage({ id: `${s}cta_submitting` }),
21403
+ submitted: a.formatMessage({ id: `${s}cta_submitted` })
21395
21404
  }
21396
21405
  }
21397
21406
  }
@@ -21413,9 +21422,9 @@ const yt = "publishArticleForm_", _c = {}, kc = 10, nk = ({
21413
21422
  }, [t.body]);
21414
21423
  const b = () => {
21415
21424
  !s || !s.id ? g(a.formatMessage({ id: `${yt}error_loggedOut` })) : p && g(!1);
21416
- }, C = (D) => ({
21425
+ }, C = (w) => ({
21417
21426
  condition: (T) => {
21418
- const I = T[D];
21427
+ const I = T[w];
21419
21428
  return !I || typeof I != "string" ? !0 : I.length < kc;
21420
21429
  },
21421
21430
  error: a.formatMessage(
@@ -21477,8 +21486,8 @@ const yt = "publishArticleForm_", _c = {}, kc = 10, nk = ({
21477
21486
  meta: { isInOverlay: d },
21478
21487
  autoFocus: !1,
21479
21488
  functions: {
21480
- onChange: (D) => {
21481
- m(D), b();
21489
+ onChange: (w) => {
21490
+ m(w), b();
21482
21491
  }
21483
21492
  },
21484
21493
  "aria-invalid": !!p,
@@ -21498,11 +21507,11 @@ const yt = "publishArticleForm_", _c = {}, kc = 10, nk = ({
21498
21507
  showRequiredLabels: !1
21499
21508
  },
21500
21509
  functions: {
21501
- onSuccess: async (D) => {
21510
+ onSuccess: async (w) => {
21502
21511
  if (!s || !s.id || _)
21503
21512
  return;
21504
21513
  os && clearTimeout(os);
21505
- const T = { ...D, body: h };
21514
+ const T = { ...w, body: h };
21506
21515
  try {
21507
21516
  o && await o(T), os = setTimeout(() => {
21508
21517
  m(""), v(a.formatMessage({ id: `${yt}aria_success` })), l(T);
@@ -21903,11 +21912,11 @@ const zC = {
21903
21912
  shouldManuallyApprove: _,
21904
21913
  shouldDisableButton: B,
21905
21914
  showSuccessMessage: x,
21906
- showError: D
21915
+ showError: w
21907
21916
  } = f, [T, I] = $c([
21908
21917
  "signup-this-session",
21909
21918
  "functional-cookie-consent"
21910
- ]), N = {
21919
+ ]), P = {
21911
21920
  form: te.createRef(),
21912
21921
  name: te.createRef(),
21913
21922
  email: te.createRef(),
@@ -21917,7 +21926,7 @@ const zC = {
21917
21926
  hiddenValidation: te.createRef()
21918
21927
  };
21919
21928
  de(() => {
21920
- _ === !0 && N.jobTitle.current && N.jobTitle.current.focus();
21929
+ _ === !0 && P.jobTitle.current && P.jobTitle.current.focus();
21921
21930
  }, [_]), de(() => {
21922
21931
  T["signup-this-session"] && v([{ type: "showSuccessMessage", value: !0 }]);
21923
21932
  }, [T]), de(() => {
@@ -21931,12 +21940,12 @@ const zC = {
21931
21940
  labels: t,
21932
21941
  shouldShow: g,
21933
21942
  functions: r,
21934
- refs: N,
21943
+ refs: P,
21935
21944
  state: f,
21936
21945
  dispatch: v,
21937
21946
  dataToSubmit: s,
21938
21947
  intl: l
21939
- }), [s, r, l, N, g, f]), $ = B ? !0 : _ ? !Object.values(b).every((k) => k === !0) : !b.name || !b.email || ["exists", "pending", "verify"].includes(C.boxType);
21948
+ }), [s, r, l, P, g, f]), $ = B ? !0 : _ ? !Object.values(b).every((k) => k === !0) : !b.name || !b.email || ["exists", "pending", "verify"].includes(C.boxType);
21940
21949
  return g.successMessage && x ? /* @__PURE__ */ c.jsx(LC, { className: e }) : /* @__PURE__ */ c.jsxs(
21941
21950
  "fieldset",
21942
21951
  {
@@ -21944,7 +21953,7 @@ const zC = {
21944
21953
  "data-testid": "signup-form",
21945
21954
  children: [
21946
21955
  g.title && /* @__PURE__ */ c.jsx("p", { className: "signup-title", children: /* @__PURE__ */ c.jsx(mt, { id: "signup_title" }) }),
21947
- D && /* @__PURE__ */ c.jsx(
21956
+ w && /* @__PURE__ */ c.jsx(
21948
21957
  zn,
21949
21958
  {
21950
21959
  variant: "error",
@@ -21955,7 +21964,7 @@ const zC = {
21955
21964
  dn,
21956
21965
  {
21957
21966
  className: "signup-form",
21958
- formRef: N.form,
21967
+ formRef: P.form,
21959
21968
  id: "sign-up-form",
21960
21969
  fields: z,
21961
21970
  intlPath: "signup",
@@ -21989,7 +21998,7 @@ const zC = {
21989
21998
  functions: {
21990
21999
  onSuccess: async () => {
21991
22000
  await $C({
21992
- refs: N,
22001
+ refs: P,
21993
22002
  dataToSubmit: s,
21994
22003
  createAccount: r.createAccount,
21995
22004
  onSuccess: r.onSuccess,
@@ -22006,7 +22015,7 @@ const zC = {
22006
22015
  }
22007
22016
  }
22008
22017
  ),
22009
- /* @__PURE__ */ c.jsx("button", { className: "validation-button", ref: N.hiddenValidation })
22018
+ /* @__PURE__ */ c.jsx("button", { className: "validation-button", ref: P.hiddenValidation })
22010
22019
  ]
22011
22020
  }
22012
22021
  );
@@ -23158,10 +23167,10 @@ const HC = () => {
23158
23167
  variant: h = "default",
23159
23168
  circle: m = "default",
23160
23169
  modal: p = "default"
23161
- } = a, g = Rh(), [f, v] = le(""), b = (D) => {
23170
+ } = a, g = Rh(), [f, v] = le(""), b = (w) => {
23162
23171
  const {
23163
23172
  detail: { message: T }
23164
- } = D;
23173
+ } = w;
23165
23174
  v(T);
23166
23175
  };
23167
23176
  de(() => (window.scrollTo(0, 0), document.addEventListener("ariaLive", b), () => {
@@ -23483,10 +23492,10 @@ const rt = "discussion_form_", va = ({
23483
23492
  isInOverlay: _ = !1,
23484
23493
  isAutoFocused: B = !1,
23485
23494
  isEditing: x = !1,
23486
- hasTitleField: D = !1,
23495
+ hasTitleField: w = !1,
23487
23496
  isPrepopulated: T = !1,
23488
23497
  showTitle: I = !1,
23489
- showGuidelines: N = !0,
23498
+ showGuidelines: P = !0,
23490
23499
  showDivider: z = !1,
23491
23500
  showSuccessMessage: $ = !0,
23492
23501
  showPostType: k = !1,
@@ -23504,7 +23513,7 @@ const rt = "discussion_form_", va = ({
23504
23513
  },
23505
23514
  onMention: re = () => {
23506
23515
  },
23507
- listMembers: w = () => Promise.resolve([]),
23516
+ listMembers: D = () => Promise.resolve([]),
23508
23517
  clickMentionFallback: X = () => {
23509
23518
  },
23510
23519
  getLinkPreview: V = () => Promise.resolve({}),
@@ -23512,11 +23521,11 @@ const rt = "discussion_form_", va = ({
23512
23521
  create: { projectNames: ["questions-answers"] }
23513
23522
  }
23514
23523
  } = d, [A, j] = le({
23515
- title: D && D.text || "",
23524
+ title: w && w.text || "",
23516
23525
  body: x && x.text || T && T.text || "",
23517
23526
  categories: x && x.categories ? x.categories : "",
23518
23527
  data: h != null && h.link ? { link: h == null ? void 0 : h.link } : {}
23519
- }), [P, L] = le(l.error || !1), [Z, q] = le(!1);
23528
+ }), [N, L] = le(l.error || !1), [Z, q] = le(!1);
23520
23529
  if (de(() => {
23521
23530
  u && !x && T && T !== A.body && j((xe) => ({ ...xe, body: T.text || "" }));
23522
23531
  }, [T]), b)
@@ -23540,7 +23549,7 @@ const rt = "discussion_form_", va = ({
23540
23549
  `${rt}error_noPermission`,
23541
23550
  n.type,
23542
23551
  "action"
23543
- ), ie ? L(ie) : P && L(!1);
23552
+ ), ie ? L(ie) : N && L(!1);
23544
23553
  };
23545
23554
  let ue = `${n.type}-form`;
23546
23555
  if (n.type === "response" || n.type === "reply") {
@@ -23627,14 +23636,14 @@ const rt = "discussion_form_", va = ({
23627
23636
  j((W) => ({ ...W, data: xe }));
23628
23637
  }, Te = !A.title || !Li(A.title), je = !A.body || !Li(A.body);
23629
23638
  let Oe = je;
23630
- D && (Oe = Te && je);
23639
+ w && (Oe = Te && je);
23631
23640
  const We = Z === "submitting", He = [
23632
23641
  {
23633
23642
  component: XC,
23634
23643
  props: {
23635
23644
  formID: ue,
23636
23645
  intlPath: rt,
23637
- showLabel: D !== !1,
23646
+ showLabel: w !== !1,
23638
23647
  type: n.type
23639
23648
  }
23640
23649
  },
@@ -23642,7 +23651,7 @@ const rt = "discussion_form_", va = ({
23642
23651
  component: Gf,
23643
23652
  props: {
23644
23653
  id: `${ue}-input`,
23645
- value: Z === "submitting" && !P ? "" : A.body,
23654
+ value: Z === "submitting" && !N ? "" : A.body,
23646
23655
  placeholder: a || It(
23647
23656
  p.formatMessage,
23648
23657
  `${rt}placeholder`,
@@ -23655,25 +23664,25 @@ const rt = "discussion_form_", va = ({
23655
23664
  onChange: ne,
23656
23665
  onChangeData: ge,
23657
23666
  onMention: re,
23658
- listMembers: w,
23667
+ listMembers: D,
23659
23668
  clickMentionFallback: X,
23660
23669
  getLinkPreview: V
23661
23670
  },
23662
23671
  data: h,
23663
- autoFocus: x !== !1 || B && !D,
23664
- "aria-invalid": !!P,
23672
+ autoFocus: x !== !1 || B && !w,
23673
+ "aria-invalid": !!N,
23665
23674
  "aria-errormessage": "error-message"
23666
23675
  }
23667
23676
  },
23668
23677
  {
23669
23678
  component: JC,
23670
- props: { intlPath: rt, showGuidelines: N, type: n.type, gtmContext: m }
23679
+ props: { intlPath: rt, showGuidelines: P, type: n.type, gtmContext: m }
23671
23680
  }
23672
23681
  ];
23673
- z && He.push({ component: un }), D && He.unshift({
23682
+ z && He.push({ component: un }), w && He.unshift({
23674
23683
  id: "title",
23675
23684
  type: "text",
23676
- value: D.text,
23685
+ value: w.text,
23677
23686
  limit: 250,
23678
23687
  label: p.formatMessage({ id: `${rt}titleField_label` }),
23679
23688
  placeholder: p.formatMessage({ id: `${rt}titleField_placeholder` }),
@@ -23715,7 +23724,7 @@ const rt = "discussion_form_", va = ({
23715
23724
  }
23716
23725
  });
23717
23726
  let Ze = !g || !g.id || !r || Oe || We;
23718
- return x && (D ? Ze = Ze || A.body === x.text && A.title === D.text : Ze = Ze || A.body === x.text), /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
23727
+ return x && (w ? Ze = Ze || A.body === x.text && A.title === w.text : Ze = Ze || A.body === x.text), /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
23719
23728
  /* @__PURE__ */ c.jsxs(
23720
23729
  dn,
23721
23730
  {
@@ -23794,15 +23803,15 @@ const rt = "discussion_form_", va = ({
23794
23803
  }
23795
23804
  ),
23796
23805
  Z === "submitted" && $ && /* @__PURE__ */ c.jsx(Ur, { className: "success", "data-testid": "success", children: It(p.formatMessage, `${rt}success`, n.type, "action") }),
23797
- P && /* @__PURE__ */ c.jsx(Ur, { id: "error-message", className: "error", "data-testid": "error", children: l.error ? l.error : typeof P == "string" ? P.includes(" ") ? P : p.formatMessage(
23798
- { id: P },
23806
+ N && /* @__PURE__ */ c.jsx(Ur, { id: "error-message", className: "error", "data-testid": "error", children: l.error ? l.error : typeof N == "string" ? N.includes(" ") ? N : p.formatMessage(
23807
+ { id: N },
23799
23808
  {
23800
23809
  action: p.formatMessage({
23801
23810
  id: `discussion_action_${n.type}`
23802
23811
  }),
23803
23812
  maxLength: s
23804
23813
  }
23805
- ) : P }),
23814
+ ) : N }),
23806
23815
  f && /* @__PURE__ */ c.jsx(qe, { "aria-live": "polite", showOnFocus: !1, children: f })
23807
23816
  ] });
23808
23817
  }, eE = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -23877,7 +23886,7 @@ const sE = ({
23877
23886
  ignoreInteractions: _,
23878
23887
  showLikers: B,
23879
23888
  tabbableLink: x,
23880
- showLikesModal: D
23889
+ showLikesModal: w
23881
23890
  } = f, T = rE(v);
23882
23891
  de(() => {
23883
23892
  v([{ type: "userLikedContent", value: i }]);
@@ -23885,7 +23894,7 @@ const sE = ({
23885
23894
  const I = Gt(
23886
23895
  () => nE(n, aE),
23887
23896
  [n]
23888
- ), N = (E) => {
23897
+ ), P = (E) => {
23889
23898
  if (E.preventDefault(), E.stopPropagation(), v([{ type: "showLikers", value: !1 }]), Lr)
23890
23899
  return ms(), !1;
23891
23900
  if (ms(), _ || !s)
@@ -23954,7 +23963,7 @@ const sE = ({
23954
23963
  "data-testid": "like-button",
23955
23964
  "data-gtm-event-context": "Likes",
23956
23965
  "data-gtm-event-type": `like-${a.type}-click`,
23957
- onClick: N,
23966
+ onClick: P,
23958
23967
  screenreaderText: s ? p.formatMessage(
23959
23968
  {
23960
23969
  id: `discussion_likes_${C ? "unlike" : "like"}`
@@ -24045,14 +24054,14 @@ const sE = ({
24045
24054
  ] })
24046
24055
  }
24047
24056
  ),
24048
- D && /* @__PURE__ */ c.jsx(Xr, { children: /* @__PURE__ */ c.jsx(Mc, { children: /* @__PURE__ */ c.jsx(
24057
+ w && /* @__PURE__ */ c.jsx(Xr, { children: /* @__PURE__ */ c.jsx(Mc, { children: /* @__PURE__ */ c.jsx(
24049
24058
  iE,
24050
24059
  {
24051
24060
  activityId: o,
24052
24061
  basePath: l,
24053
24062
  parentId: u,
24054
24063
  likeCount: t,
24055
- showModal: D,
24064
+ showModal: w,
24056
24065
  functions: {
24057
24066
  onClose: () => v([{ type: "showLikesModal", value: !1 }]),
24058
24067
  likes: {
@@ -24557,7 +24566,7 @@ function wE({
24557
24566
  },
24558
24567
  user: h,
24559
24568
  ...m
24560
- }, g = xE({ ...p, mutationFn: e }), f = DE({ ...p, mutationFn: t }), v = CE({ ...p, mutationFn: n }), b = kE({ ...p, mutationFn: i }), C = FE({ ...p, mutationFn: a }), _ = _E({ ...p, mutationFn: s }), B = AE({ ...p, mutationFn: o }), { activities: x, ...D } = EE({
24569
+ }, g = xE({ ...p, mutationFn: e }), f = DE({ ...p, mutationFn: t }), v = CE({ ...p, mutationFn: n }), b = kE({ ...p, mutationFn: i }), C = FE({ ...p, mutationFn: a }), _ = _E({ ...p, mutationFn: s }), B = AE({ ...p, mutationFn: o }), { activities: x, ...w } = EE({
24561
24570
  queryKey: l,
24562
24571
  queryFn: r,
24563
24572
  filterOption: u
@@ -24574,7 +24583,7 @@ function wE({
24574
24583
  unpin: B
24575
24584
  },
24576
24585
  user: h,
24577
- ...D
24586
+ ...w
24578
24587
  };
24579
24588
  }
24580
24589
  function CE({
@@ -24712,7 +24721,7 @@ const ck = ({
24712
24721
  fetchNextPage: C,
24713
24722
  hasNextPage: _,
24714
24723
  isLoading: B,
24715
- mutations: { create: x, edit: D, remove: T, like: I, unlike: N, pin: z, unpin: $ }
24724
+ mutations: { create: x, edit: w, remove: T, like: I, unlike: P, pin: z, unpin: $ }
24716
24725
  } = wE({
24717
24726
  queryKey: [e, t, "activities", m],
24718
24727
  queryFns: a,
@@ -24814,11 +24823,11 @@ const ck = ({
24814
24823
  id: H,
24815
24824
  own_reactions: ae,
24816
24825
  latest_reactions: re,
24817
- reaction_counts: w,
24826
+ reaction_counts: D,
24818
24827
  mentioned_users: X,
24819
24828
  total_replies: V,
24820
24829
  additional_data: F
24821
- } = S, A = (((Z = re == null ? void 0 : re.like) == null ? void 0 : Z.length) || 0) > 0, j = (((q = ae == null ? void 0 : ae.like) == null ? void 0 : q.length) || 0) > 0, P = j ? ae == null ? void 0 : ae.like[0].id : "", L = A ? (ne = re == null ? void 0 : re.like) == null ? void 0 : ne.map((ue) => {
24830
+ } = S, A = (((Z = re == null ? void 0 : re.like) == null ? void 0 : Z.length) || 0) > 0, j = (((q = ae == null ? void 0 : ae.like) == null ? void 0 : q.length) || 0) > 0, N = j ? ae == null ? void 0 : ae.like[0].id : "", L = A ? (ne = re == null ? void 0 : re.like) == null ? void 0 : ne.map((ue) => {
24822
24831
  var Q, ve, ge;
24823
24832
  return {
24824
24833
  id: (Q = ue == null ? void 0 : ue.user) == null ? void 0 : Q.id,
@@ -24841,14 +24850,14 @@ const ck = ({
24841
24850
  slug: H,
24842
24851
  author: ti(S == null ? void 0 : S.actor),
24843
24852
  userLiked: j,
24844
- likes: (w == null ? void 0 : w.like) || 0,
24853
+ likes: (D == null ? void 0 : D.like) || 0,
24845
24854
  comments: V || 0,
24846
24855
  peopleWhoLiked: L,
24847
24856
  data: {
24848
24857
  mentions: X,
24849
24858
  ...F || {}
24850
24859
  },
24851
- pinned: (w == null ? void 0 : w.pin) && (w == null ? void 0 : w.pin) > 0 || !1,
24860
+ pinned: (D == null ? void 0 : D.pin) && (D == null ? void 0 : D.pin) > 0 || !1,
24852
24861
  categories: (S == null ? void 0 : S.categories) || []
24853
24862
  },
24854
24863
  links: {
@@ -24861,11 +24870,11 @@ const ck = ({
24861
24870
  createContent: () => null,
24862
24871
  deleteContent: () => T({ activityId: H }),
24863
24872
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
24864
- updateContent: (ue, { body: Q }) => D({ activityId: H, content: Q })
24873
+ updateContent: (ue, { body: Q }) => w({ activityId: H, content: Q })
24865
24874
  },
24866
24875
  likes: {
24867
24876
  createLike: () => I({ activityId: H }),
24868
- deleteLike: () => N({ activityId: H, reactionId: P }),
24877
+ deleteLike: () => P({ activityId: H, reactionId: N }),
24869
24878
  listLikes: (ue) => u.list({ activityId: H, ...ue })
24870
24879
  },
24871
24880
  comments: {
@@ -25625,7 +25634,7 @@ const NE = ({
25625
25634
  queryFns: {
25626
25635
  ...a,
25627
25636
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
25628
- list: (D) => a.list({ ...D, reactionId: r })
25637
+ list: (w) => a.list({ ...w, reactionId: r })
25629
25638
  }
25630
25639
  });
25631
25640
  Wc([p]);
@@ -25666,7 +25675,7 @@ const NE = ({
25666
25675
  },
25667
25676
  functions: {
25668
25677
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
25669
- create: (D, { body: T }) => g({ activityId: n, replyId: r, content: T }),
25678
+ create: (w, { body: T }) => g({ activityId: n, replyId: r, content: T }),
25670
25679
  ...s
25671
25680
  },
25672
25681
  meta: {
@@ -25676,26 +25685,26 @@ const NE = ({
25676
25685
  showSuccessMessage: !1
25677
25686
  }
25678
25687
  },
25679
- children: d && d.length > 0 ? d == null ? void 0 : d.map((D) => {
25680
- var w, X, V, F, A, j, P;
25688
+ children: d && d.length > 0 ? d == null ? void 0 : d.map((w) => {
25689
+ var D, X, V, F, A, j, N;
25681
25690
  const {
25682
25691
  id: T,
25683
25692
  own_children: I,
25684
- latest_children: N,
25693
+ latest_children: P,
25685
25694
  children_counts: z,
25686
25695
  data: { mentioned_users: $, additional_data: k }
25687
- } = D, O = (((w = I == null ? void 0 : I.like) == null ? void 0 : w.length) || 0) > 0 ? (X = I == null ? void 0 : I.like) == null ? void 0 : X.find((L) => {
25696
+ } = w, O = (((D = I == null ? void 0 : I.like) == null ? void 0 : D.length) || 0) > 0 ? (X = I == null ? void 0 : I.like) == null ? void 0 : X.find((L) => {
25688
25697
  var Z;
25689
25698
  return ((Z = L == null ? void 0 : L.user) == null ? void 0 : Z.id) === (_ == null ? void 0 : _.id);
25690
- }) : !1, S = O ? O == null ? void 0 : O.id : "", U = !!O, ae = (((V = N == null ? void 0 : N.like) == null ? void 0 : V.length) || 0) > 0 ? (F = N == null ? void 0 : N.like) == null ? void 0 : F.map((L) => {
25699
+ }) : !1, S = O ? O == null ? void 0 : O.id : "", U = !!O, ae = (((V = P == null ? void 0 : P.like) == null ? void 0 : V.length) || 0) > 0 ? (F = P == null ? void 0 : P.like) == null ? void 0 : F.map((L) => {
25691
25700
  var Z, q, ne;
25692
25701
  return {
25693
25702
  id: (Z = L == null ? void 0 : L.user) == null ? void 0 : Z.id,
25694
25703
  name: (ne = (q = L == null ? void 0 : L.user) == null ? void 0 : q.data) == null ? void 0 : ne.name
25695
25704
  };
25696
- }) : !1, re = typeof D.data.content == "string" ? (A = D == null ? void 0 : D.data) == null ? void 0 : A.content : (
25705
+ }) : !1, re = typeof w.data.content == "string" ? (A = w == null ? void 0 : w.data) == null ? void 0 : A.content : (
25697
25706
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
25698
- ((P = (j = D == null ? void 0 : D.data) == null ? void 0 : j.content) == null ? void 0 : P.text) || ""
25707
+ ((N = (j = w == null ? void 0 : w.data) == null ? void 0 : j.content) == null ? void 0 : N.text) || ""
25699
25708
  );
25700
25709
  return /* @__PURE__ */ c.jsx(
25701
25710
  ba,
@@ -25706,16 +25715,16 @@ const NE = ({
25706
25715
  type: "reply",
25707
25716
  body: re,
25708
25717
  canLike: i,
25709
- createdAt: D == null ? void 0 : D.created_at,
25718
+ createdAt: w == null ? void 0 : w.created_at,
25710
25719
  slugs: {
25711
25720
  question: `${e}/${t}`,
25712
25721
  answer: n,
25713
25722
  // Stop-gap solution to avoid having to change the DiscussionPost component
25714
25723
  // The `reply` is currently used to define the form ID which handles the focus
25715
- reply: D == null ? void 0 : D.parent
25724
+ reply: w == null ? void 0 : w.parent
25716
25725
  },
25717
25726
  slug: "",
25718
- author: ti(D == null ? void 0 : D.user),
25727
+ author: ti(w == null ? void 0 : w.user),
25719
25728
  userLiked: U,
25720
25729
  likes: (z == null ? void 0 : z.like) || 0,
25721
25730
  peopleWhoLiked: ae,
@@ -25782,7 +25791,7 @@ const ME = ({
25782
25791
  } = oh({
25783
25792
  queryKey: [e, t, n, "replies"],
25784
25793
  queryFns: u
25785
- }), D = () => {
25794
+ }), w = () => {
25786
25795
  I(m.length), p();
25787
25796
  }, [T, I] = le(null);
25788
25797
  return Wc([f]), sh(), /* @__PURE__ */ c.jsxs("section", { className: "replies-feed", children: [
@@ -25801,7 +25810,7 @@ const ME = ({
25801
25810
  content: { type: "reply", slugs: {} },
25802
25811
  functions: {
25803
25812
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
25804
- create: (N, { body: z }) => v({ activityId: n, content: z }),
25813
+ create: (P, { body: z }) => v({ activityId: n, content: z }),
25805
25814
  ...a
25806
25815
  },
25807
25816
  meta: {
@@ -25822,26 +25831,26 @@ const ME = ({
25822
25831
  }
25823
25832
  }
25824
25833
  ),
25825
- m == null ? void 0 : m.map((N, z) => {
25826
- var A, j, P, L, Z, q, ne;
25834
+ m == null ? void 0 : m.map((P, z) => {
25835
+ var A, j, N, L, Z, q, ne;
25827
25836
  const {
25828
25837
  id: $,
25829
25838
  own_children: k,
25830
25839
  latest_children: E,
25831
25840
  children_counts: O,
25832
25841
  data: { mentioned_users: S, additional_data: U }
25833
- } = N, ae = (((A = k == null ? void 0 : k.like) == null ? void 0 : A.length) || 0) > 0 ? (j = k == null ? void 0 : k.like) == null ? void 0 : j.find((ue) => {
25842
+ } = P, ae = (((A = k == null ? void 0 : k.like) == null ? void 0 : A.length) || 0) > 0 ? (j = k == null ? void 0 : k.like) == null ? void 0 : j.find((ue) => {
25834
25843
  var Q;
25835
25844
  return ((Q = ue == null ? void 0 : ue.user) == null ? void 0 : Q.id) === (x == null ? void 0 : x.id);
25836
- }) : !1, re = ae ? ae == null ? void 0 : ae.id : "", w = !!ae, V = (((P = E == null ? void 0 : E.like) == null ? void 0 : P.length) || 0) > 0 ? (L = E == null ? void 0 : E.like) == null ? void 0 : L.map((ue) => {
25845
+ }) : !1, re = ae ? ae == null ? void 0 : ae.id : "", D = !!ae, V = (((N = E == null ? void 0 : E.like) == null ? void 0 : N.length) || 0) > 0 ? (L = E == null ? void 0 : E.like) == null ? void 0 : L.map((ue) => {
25837
25846
  var Q, ve, ge;
25838
25847
  return {
25839
25848
  id: (Q = ue == null ? void 0 : ue.user) == null ? void 0 : Q.id,
25840
25849
  name: (ge = (ve = ue == null ? void 0 : ue.user) == null ? void 0 : ve.data) == null ? void 0 : ge.name
25841
25850
  };
25842
- }) : !1, F = typeof N.data.content == "string" ? (Z = N == null ? void 0 : N.data) == null ? void 0 : Z.content : (
25851
+ }) : !1, F = typeof P.data.content == "string" ? (Z = P == null ? void 0 : P.data) == null ? void 0 : Z.content : (
25843
25852
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
25844
- ((ne = (q = N == null ? void 0 : N.data) == null ? void 0 : q.content) == null ? void 0 : ne.text) || ""
25853
+ ((ne = (q = P == null ? void 0 : P.data) == null ? void 0 : q.content) == null ? void 0 : ne.text) || ""
25845
25854
  );
25846
25855
  return /* @__PURE__ */ c.jsx(QC, { children: /* @__PURE__ */ c.jsx(
25847
25856
  ba,
@@ -25852,15 +25861,15 @@ const ME = ({
25852
25861
  type: "reply",
25853
25862
  body: F,
25854
25863
  canLike: i,
25855
- createdAt: N == null ? void 0 : N.created_at,
25864
+ createdAt: P == null ? void 0 : P.created_at,
25856
25865
  slugs: {
25857
25866
  question: `${e}/${t}`,
25858
25867
  answer: n,
25859
25868
  reply: $
25860
25869
  },
25861
25870
  slug: $,
25862
- author: ti(N == null ? void 0 : N.user),
25863
- userLiked: w,
25871
+ author: ti(P == null ? void 0 : P.user),
25872
+ userLiked: D,
25864
25873
  likes: (O == null ? void 0 : O.like) || 0,
25865
25874
  peopleWhoLiked: V,
25866
25875
  data: {
@@ -25923,7 +25932,7 @@ const ME = ({
25923
25932
  la,
25924
25933
  {
25925
25934
  hasNextPage: g,
25926
- loadNextPage: D,
25935
+ loadNextPage: w,
25927
25936
  icon: { icon: "arrow-down", position: "right" },
25928
25937
  messages: {
25929
25938
  button: h.formatMessage({ id: "loadMore_button" }),
@@ -26131,10 +26140,10 @@ const ba = ({
26131
26140
  parentId: B
26132
26141
  }) => {
26133
26142
  var Ye, xe, W, ie, pe, be, _e, et, tt, dt;
26134
- const x = ce(), D = Re(pt), T = Re($o), {
26143
+ const x = ce(), w = Re(pt), T = Re($o), {
26135
26144
  createContent: I = async () => {
26136
26145
  },
26137
- deleteContent: N = async () => {
26146
+ deleteContent: P = async () => {
26138
26147
  },
26139
26148
  updateContent: z = async () => {
26140
26149
  }
@@ -26150,12 +26159,12 @@ const ba = ({
26150
26159
  author: H,
26151
26160
  canLike: ae,
26152
26161
  createdAt: re,
26153
- id: w,
26162
+ id: D,
26154
26163
  likes: X = 0,
26155
26164
  userLiked: V,
26156
26165
  comments: F = 0,
26157
26166
  data: A
26158
- } = t, j = D && D.id && typeof H != "string" && H.id && H.id === D.id || !1, P = typeof ae == "boolean" ? ae : !0, L = j && (!t.createdAt || Hh(t.createdAt, 10, "seconds")), Z = ke(null), [q, ne] = le({
26167
+ } = t, j = w && w.id && typeof H != "string" && H.id && H.id === w.id || !1, N = typeof ae == "boolean" ? ae : !0, L = j && (!t.createdAt || Hh(t.createdAt, 10, "seconds")), Z = ke(null), [q, ne] = le({
26159
26168
  title: t && t.body !== t.title && t.title || "",
26160
26169
  body: t && t.body || "",
26161
26170
  isEditing: !1,
@@ -26245,7 +26254,7 @@ const ba = ({
26245
26254
  }, it = async () => {
26246
26255
  Q(!1);
26247
26256
  try {
26248
- await N(Tc(t.slugs));
26257
+ await P(Tc(t.slugs));
26249
26258
  } catch {
26250
26259
  je("delete-error");
26251
26260
  }
@@ -26324,7 +26333,7 @@ const ba = ({
26324
26333
  /* @__PURE__ */ c.jsxs(
26325
26334
  "div",
26326
26335
  {
26327
- id: w || t.slug,
26336
+ id: D || t.slug,
26328
26337
  className: K("discussion-card", t.type, {
26329
26338
  editing: q.isEditing,
26330
26339
  "has-link": l.post && !q.isEditing
@@ -26448,7 +26457,7 @@ const ba = ({
26448
26457
  slugs: t.slugs,
26449
26458
  slug: t.slug
26450
26459
  },
26451
- canLike: P,
26460
+ canLike: N,
26452
26461
  peopleWhoLiked: t.peopleWhoLiked,
26453
26462
  activityId: t.id || t.slug,
26454
26463
  functions: {
@@ -26990,12 +26999,12 @@ const fk = ({
26990
26999
  profile: m,
26991
27000
  categories: p
26992
27001
  }) => {
26993
- var U, H, ae, re, w, X;
27002
+ var U, H, ae, re, D, X;
26994
27003
  const g = ce(), {
26995
27004
  activity: f,
26996
27005
  error: v,
26997
27006
  isLoading: b,
26998
- mutations: { edit: C, like: _, unlike: B, pin: x, unpin: D }
27007
+ mutations: { edit: C, like: _, unlike: B, pin: x, unpin: w }
26999
27008
  } = e_({
27000
27009
  queryFns: s,
27001
27010
  queryKey: [e, t, n]
@@ -27010,7 +27019,7 @@ const fk = ({
27010
27019
  text: g.formatMessage({ id: "activitySection_notFoundError" })
27011
27020
  }
27012
27021
  );
27013
- const { own_reactions: T, latest_reactions: I, mentioned_users: N, additional_data: z } = f, $ = (((U = I == null ? void 0 : I.like) == null ? void 0 : U.length) || 0) > 0, k = (((H = T == null ? void 0 : T.like) == null ? void 0 : H.length) || 0) > 0, E = k ? T == null ? void 0 : T.like[0].id : "", O = $ ? (ae = I == null ? void 0 : I.like) == null ? void 0 : ae.map((V) => {
27022
+ const { own_reactions: T, latest_reactions: I, mentioned_users: P, additional_data: z } = f, $ = (((U = I == null ? void 0 : I.like) == null ? void 0 : U.length) || 0) > 0, k = (((H = T == null ? void 0 : T.like) == null ? void 0 : H.length) || 0) > 0, E = k ? T == null ? void 0 : T.like[0].id : "", O = $ ? (ae = I == null ? void 0 : I.like) == null ? void 0 : ae.map((V) => {
27014
27023
  var F, A, j;
27015
27024
  return {
27016
27025
  id: (F = V == null ? void 0 : V.user) == null ? void 0 : F.id,
@@ -27042,10 +27051,10 @@ const fk = ({
27042
27051
  comments: (f == null ? void 0 : f.total_replies) || 0,
27043
27052
  peopleWhoLiked: O,
27044
27053
  data: {
27045
- mentions: N,
27054
+ mentions: P,
27046
27055
  ...z || {}
27047
27056
  },
27048
- pinned: ((w = f == null ? void 0 : f.reaction_counts) == null ? void 0 : w.pin) && ((X = f == null ? void 0 : f.reaction_counts) == null ? void 0 : X.pin) > 0 || !1
27057
+ pinned: ((D = f == null ? void 0 : f.reaction_counts) == null ? void 0 : D.pin) && ((X = f == null ? void 0 : f.reaction_counts) == null ? void 0 : X.pin) > 0 || !1
27049
27058
  },
27050
27059
  originalAuthorId: S == null ? void 0 : S.id,
27051
27060
  forceHide: { comments: !0 },
@@ -27070,7 +27079,7 @@ const fk = ({
27070
27079
  // there will only ever be one pin so we can just grab the first one
27071
27080
  deletePin: () => {
27072
27081
  var V;
27073
- return D({ activityId: n, reactionId: (V = I == null ? void 0 : I.pin) == null ? void 0 : V[0].id });
27082
+ return w({ activityId: n, reactionId: (V = I == null ? void 0 : I.pin) == null ? void 0 : V[0].id });
27074
27083
  }
27075
27084
  },
27076
27085
  form: u
@@ -27918,36 +27927,36 @@ const dh = ({
27918
27927
  length: B,
27919
27928
  gtmEvent: x
27920
27929
  } = oa[b];
27921
- let D = f.slug ? `${C}${f.slug}` : !1;
27922
- f.slug && (f.slug.slice(0, 4) === "http" || f.slug.slice(0, 2) === "//" || f.slug.slice(0, 6) === "mailto" || f.slug.slice(0, 3) === "tel") && (D = f.slug);
27930
+ let w = f.slug ? `${C}${f.slug}` : !1;
27931
+ f.slug && (f.slug.slice(0, 4) === "http" || f.slug.slice(0, 2) === "//" || f.slug.slice(0, 6) === "mailto" || f.slug.slice(0, 3) === "tel") && (w = f.slug);
27923
27932
  const T = (E) => {
27924
- D && (E.preventDefault(), E.stopPropagation(), window.location.href = D);
27933
+ w && (E.preventDefault(), E.stopPropagation(), window.location.href = w);
27925
27934
  }, I = { ...h_, ...B };
27926
- let N = { className: "card" }, z = {};
27927
- return D && (z = {
27928
- href: D,
27935
+ let P = { className: "card" }, z = {};
27936
+ return w && (z = {
27937
+ href: w,
27929
27938
  className: "gtm-trackable",
27930
27939
  "data-gtm-event-context": `${s}-CarouselCard`,
27931
27940
  "data-gtm-event-type": `${x}-click`,
27932
27941
  "data-testid": "link"
27933
- }, f.openInNewTab && (z.target = "_blank"), N = {
27942
+ }, f.openInNewTab && (z.target = "_blank"), P = {
27934
27943
  onClick: T,
27935
27944
  className: "card gtm-trackable",
27936
27945
  "data-gtm-event-context": `${s}-CarouselCard`,
27937
27946
  "data-gtm-event-type": `${x}-click`
27938
- }), l && (N = {
27939
- ...N,
27947
+ }), l && (P = {
27948
+ ...P,
27940
27949
  tabIndex: "0"
27941
27950
  }, ($ = m == null ? void 0 : m.current) == null || $.focus(), (k = m == null ? void 0 : m.current) == null || k.scrollIntoView({ behavior: "smooth" })), /* @__PURE__ */ c.jsx(
27942
27951
  "li",
27943
27952
  {
27944
27953
  className: K("card-wrapper text-medium", _, t, {
27945
- "has-link": D,
27946
- "no-link": !D,
27954
+ "has-link": w,
27955
+ "no-link": !w,
27947
27956
  "has-image": f.banner
27948
27957
  }),
27949
27958
  "data-testid": `${b}-card`,
27950
- children: /* @__PURE__ */ c.jsxs("div", { ...N, ref: m, children: [
27959
+ children: /* @__PURE__ */ c.jsxs("div", { ...P, ref: m, children: [
27951
27960
  /* @__PURE__ */ c.jsx(
27952
27961
  lm,
27953
27962
  {
@@ -28012,7 +28021,7 @@ const dh = ({
28012
28021
  O,
28013
28022
  I[E]
28014
28023
  );
28015
- return ["title", "text"].includes(E) && D ? (H.wrapper = "a", /* @__PURE__ */ c.jsx("p", { ...U, children: /* @__PURE__ */ c.jsx(Qt, { options: H, ...z, children: ae }) })) : /* @__PURE__ */ c.jsx(Qt, { options: H, ...U, children: ae });
28024
+ return ["title", "text"].includes(E) && w ? (H.wrapper = "a", /* @__PURE__ */ c.jsx("p", { ...U, children: /* @__PURE__ */ c.jsx(Qt, { options: H, ...z, children: ae }) })) : /* @__PURE__ */ c.jsx(Qt, { options: H, ...U, children: ae });
28016
28025
  }),
28017
28026
  i.contentType === "communityPage" && (i.slug || f.slug) && r && /* @__PURE__ */ c.jsx(
28018
28027
  p_,
@@ -28022,7 +28031,7 @@ const dh = ({
28022
28031
  }
28023
28032
  ),
28024
28033
  /* @__PURE__ */ c.jsx(f_, { type: _ || "", data: f }),
28025
- /* @__PURE__ */ c.jsx(m_, { data: f, cta: a, link: D || "", gtmContext: s })
28034
+ /* @__PURE__ */ c.jsx(m_, { data: f, cta: a, link: w || "", gtmContext: s })
28026
28035
  ] })
28027
28036
  }
28028
28037
  );
@@ -28088,7 +28097,7 @@ const y_ = ({
28088
28097
  }), { cardsPerPage: m, isLoading: p } = d, [g, f] = le({
28089
28098
  currentPage: 0,
28090
28099
  loadedPages: [0]
28091
- }), { currentPage: v, loadedPages: b } = g, [C, _] = le(""), B = t.length, x = Math.ceil(B / m), D = ke(null), T = gr(!0, !0, D == null ? void 0 : D.current);
28100
+ }), { currentPage: v, loadedPages: b } = g, [C, _] = le(""), B = t.length, x = Math.ceil(B / m), w = ke(null), T = gr(!0, !0, w == null ? void 0 : w.current);
28092
28101
  de(() => {
28093
28102
  let E = 1;
28094
28103
  T && (T >= ys.fourCards ? E = 4 : T >= ys.threeCards ? E = 3 : T >= ys.twoCards && (E = 2), E > B && (E = B)), h((O) => ({
@@ -28137,7 +28146,7 @@ const y_ = ({
28137
28146
  )
28138
28147
  );
28139
28148
  }, 500);
28140
- }, N = (E) => {
28149
+ }, P = (E) => {
28141
28150
  _i = E.touches[0].clientX;
28142
28151
  }, z = (E) => {
28143
28152
  if (_i === null)
@@ -28160,7 +28169,7 @@ const y_ = ({
28160
28169
  return /* @__PURE__ */ c.jsxs(
28161
28170
  "section",
28162
28171
  {
28163
- ref: D,
28172
+ ref: w,
28164
28173
  className: K("carousel-wrapper", a),
28165
28174
  "data-testid": "carousel",
28166
28175
  children: [
@@ -28169,7 +28178,7 @@ const y_ = ({
28169
28178
  "ul",
28170
28179
  {
28171
28180
  className: "carousel",
28172
- onTouchStart: N,
28181
+ onTouchStart: P,
28173
28182
  onTouchMove: z,
28174
28183
  style: $,
28175
28184
  "data-testid": "carousel-list",
@@ -28462,11 +28471,11 @@ const _k = ({
28462
28471
  isIntroduction: _,
28463
28472
  optional: B,
28464
28473
  slug: x,
28465
- subsectionId: D,
28474
+ subsectionId: w,
28466
28475
  title: T,
28467
28476
  type: I
28468
28477
  }) => {
28469
- const N = i && t || _, z = {};
28478
+ const P = i && t || _, z = {};
28470
28479
  return C && (z.style = { "--image": `url(${C})` }), /* @__PURE__ */ c.jsx(
28471
28480
  "li",
28472
28481
  {
@@ -28475,13 +28484,13 @@ const _k = ({
28475
28484
  discussion: v === ii.DISCUSSION,
28476
28485
  quiz: v === ii.QUIZ,
28477
28486
  completed: g && v === ii.ARTICLE,
28478
- locked: !N
28487
+ locked: !P
28479
28488
  }),
28480
28489
  ...z,
28481
28490
  children: /* @__PURE__ */ c.jsx(
28482
28491
  Ln,
28483
28492
  {
28484
- href: N ? `/microcourses/en/${o}/${x}` : void 0,
28493
+ href: P ? `/microcourses/en/${o}/${x}` : void 0,
28485
28494
  fallbackElement: "span",
28486
28495
  className: "inner",
28487
28496
  gtmContext: `MicrocourseOutline${Lh(T)}`,
@@ -28491,7 +28500,7 @@ const _k = ({
28491
28500
  x_,
28492
28501
  {
28493
28502
  sectionId: a,
28494
- subsectionId: D,
28503
+ subsectionId: w,
28495
28504
  title: T,
28496
28505
  className: "course-title"
28497
28506
  }