@apolitical/component-library 5.2.2-ac.1 → 5.2.2-ac.11

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
@@ -175,7 +175,7 @@ function Sh() {
175
175
  function A(O) {
176
176
  return O.displayName || "Context";
177
177
  }
178
- function _(O) {
178
+ function k(O) {
179
179
  if (O == null)
180
180
  return null;
181
181
  if (typeof O.tag == "number" && x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof O == "function")
@@ -208,11 +208,11 @@ function Sh() {
208
208
  return M(O, O.render, "ForwardRef");
209
209
  case h:
210
210
  var Ce = O.displayName || null;
211
- return Ce !== null ? Ce : _(O.type) || "Memo";
211
+ return Ce !== null ? Ce : k(O.type) || "Memo";
212
212
  case m: {
213
213
  var $e = O, Ve = $e._payload, Me = $e._init;
214
214
  try {
215
- return _(Me(Ve));
215
+ return k(Me(Ve));
216
216
  } catch {
217
217
  return null;
218
218
  }
@@ -221,9 +221,9 @@ function Sh() {
221
221
  return null;
222
222
  }
223
223
  var T = Object.assign, N = 0, q, U, Y, ie, D, $, X;
224
- function k() {
224
+ function _() {
225
225
  }
226
- k.__reactDisabledLog = !0;
226
+ _.__reactDisabledLog = !0;
227
227
  function B() {
228
228
  {
229
229
  if (N === 0) {
@@ -231,7 +231,7 @@ function Sh() {
231
231
  var O = {
232
232
  configurable: !0,
233
233
  enumerable: !0,
234
- value: k,
234
+ value: _,
235
235
  writable: !0
236
236
  };
237
237
  Object.defineProperties(console, {
@@ -484,8 +484,8 @@ function Sh() {
484
484
  }
485
485
  function st(O, ae) {
486
486
  if (typeof O.ref == "string" && pe.current && ae && pe.current.stateNode !== ae) {
487
- var fe = _(pe.current.type);
488
- et[fe] || (x('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', _(pe.current.type), O.ref), et[fe] = !0);
487
+ var fe = k(pe.current.type);
488
+ et[fe] || (x('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', k(pe.current.type), O.ref), et[fe] = !0);
489
489
  }
490
490
  }
491
491
  function it(O, ae) {
@@ -573,7 +573,7 @@ function Sh() {
573
573
  function zo() {
574
574
  {
575
575
  if (br.current) {
576
- var O = _(br.current.type);
576
+ var O = k(br.current.type);
577
577
  if (O)
578
578
  return `
579
579
 
@@ -616,7 +616,7 @@ Check the top-level render call using <` + fe + ">.");
616
616
  return;
617
617
  qo[fe] = !0;
618
618
  var Ce = "";
619
- O && O._owner && O._owner !== br.current && (Ce = " It was passed a child from " + _(O._owner.type) + "."), Un(O), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', fe, Ce), Un(null);
619
+ O && O._owner && O._owner !== br.current && (Ce = " It was passed a child from " + k(O._owner.type) + "."), Un(O), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', fe, Ce), Un(null);
620
620
  }
621
621
  }
622
622
  function Uo(O, ae) {
@@ -653,11 +653,11 @@ Check the top-level render call using <` + fe + ">.");
653
653
  else
654
654
  return;
655
655
  if (fe) {
656
- var Ce = _(ae);
656
+ var Ce = k(ae);
657
657
  Qe(fe, O.props, "prop", Ce, O);
658
658
  } else if (ae.PropTypes !== void 0 && !ga) {
659
659
  ga = !0;
660
- var $e = _(ae);
660
+ var $e = k(ae);
661
661
  x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", $e || "Unknown");
662
662
  }
663
663
  typeof ae.getDefaultProps == "function" && !ae.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
@@ -684,7 +684,7 @@ Check the top-level render call using <` + fe + ">.");
684
684
  var pt = oh($e);
685
685
  pt ? Oe += pt : Oe += zo();
686
686
  var tt;
687
- O === null ? tt = "null" : ve(O) ? tt = "array" : O !== void 0 && O.$$typeof === t ? (tt = "<" + (_(O.type) || "Unknown") + " />", Oe = " Did you accidentally export a JSX literal instead of a component?") : tt = typeof O, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", tt, Oe);
687
+ O === null ? tt = "null" : ve(O) ? tt = "array" : O !== void 0 && O.$$typeof === t ? (tt = "<" + (k(O.type) || "Unknown") + " />", Oe = " Did you accidentally export a JSX literal instead of a component?") : tt = typeof O, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", tt, Oe);
688
688
  }
689
689
  var at = Wn(O, ae, fe, $e, Ve);
690
690
  if (at == null)
@@ -762,8 +762,8 @@ function Rc(e, t, n) {
762
762
  if (C(M))
763
763
  return S(M);
764
764
  if (h.current) {
765
- var A = t - (M - i.current), _ = b ? Math.min(A, x - (M - a.current)) : A;
766
- w(z, _);
765
+ var A = t - (M - i.current), k = b ? Math.min(A, x - (M - a.current)) : A;
766
+ w(z, k);
767
767
  }
768
768
  }, j = function() {
769
769
  if (m || v) {
@@ -903,15 +903,15 @@ const Yo = {}, pr = Ys(
903
903
  }, []), de(() => {
904
904
  if (f !== "open")
905
905
  return;
906
- const A = (_) => {
907
- _.key === "Escape" && (_.stopPropagation(), _.preventDefault(), b("closed"));
906
+ const A = (k) => {
907
+ k.key === "Escape" && (k.stopPropagation(), k.preventDefault(), b("closed"));
908
908
  };
909
909
  return document.addEventListener("keyup", A), () => {
910
910
  document.removeEventListener("keyup", A);
911
911
  };
912
912
  }, [f]);
913
913
  const j = ({ propertyName: A }) => {
914
- A === "opacity" && (L !== !1 && clearTimeout(L), b((_) => (_ === "open" ? F() : _ === "closed" && w(), _ === "opening" ? "open" : _ === "closing" ? "closed" : _ === "closed" ? "hidden" : _)));
914
+ A === "opacity" && (L !== !1 && clearTimeout(L), b((k) => (k === "open" ? F() : k === "closed" && w(), k === "opening" ? "open" : k === "closing" ? "closed" : k === "closed" ? "hidden" : k)));
915
915
  };
916
916
  Lr(() => {
917
917
  L !== !1 && clearTimeout(L);
@@ -2930,8 +2930,8 @@ const yn = ({
2930
2930
  href: j,
2931
2931
  gtmType: o,
2932
2932
  gtmContext: s,
2933
- onClick: (_) => {
2934
- if (_ == null || _.preventDefault(), _ == null || _.stopPropagation(), !j)
2933
+ onClick: (k) => {
2934
+ if (k == null || k.preventDefault(), k == null || k.stopPropagation(), !j)
2935
2935
  return;
2936
2936
  ii && clearTimeout(ii), ii = setTimeout(() => {
2937
2937
  window.location.href = j;
@@ -3002,8 +3002,8 @@ const yn = ({
3002
3002
  {
3003
3003
  variant: "tertiary",
3004
3004
  size: "small",
3005
- onClick: (_) => {
3006
- _.preventDefault(), _.stopPropagation(), w(!0);
3005
+ onClick: (k) => {
3006
+ k.preventDefault(), k.stopPropagation(), w(!0);
3007
3007
  },
3008
3008
  "data-testid": "profile-button",
3009
3009
  children: h.formatMessage({ id: "member_profile" })
@@ -3218,7 +3218,7 @@ function Im() {
3218
3218
  }
3219
3219
  }
3220
3220
  }
3221
- var w = l, C = u, S = o, L = s, j = t, z = d, M = r, A = g, _ = p, T = n, N = a, q = i, U = h, Y = !1;
3221
+ var w = l, C = u, S = o, L = s, j = t, z = d, M = r, A = g, k = p, T = n, N = a, q = i, U = h, Y = !1;
3222
3222
  function ie(Q) {
3223
3223
  return Y || (Y = !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) || F(Q) === l;
3224
3224
  }
@@ -3231,7 +3231,7 @@ function Im() {
3231
3231
  function X(Q) {
3232
3232
  return F(Q) === s;
3233
3233
  }
3234
- function k(Q) {
3234
+ function _(Q) {
3235
3235
  return typeof Q == "object" && Q !== null && Q.$$typeof === t;
3236
3236
  }
3237
3237
  function B(Q) {
@@ -3258,7 +3258,7 @@ function Im() {
3258
3258
  function ce(Q) {
3259
3259
  return F(Q) === h;
3260
3260
  }
3261
- qe.AsyncMode = w, qe.ConcurrentMode = C, qe.ContextConsumer = S, qe.ContextProvider = L, qe.Element = j, qe.ForwardRef = z, qe.Fragment = M, qe.Lazy = A, qe.Memo = _, qe.Portal = T, qe.Profiler = N, qe.StrictMode = q, qe.Suspense = U, qe.isAsyncMode = ie, qe.isConcurrentMode = D, qe.isContextConsumer = $, qe.isContextProvider = X, qe.isElement = k, qe.isForwardRef = B, qe.isFragment = I, qe.isLazy = R, qe.isMemo = W, qe.isPortal = ee, qe.isProfiler = H, qe.isStrictMode = ne, qe.isSuspense = ce, qe.isValidElementType = E, qe.typeOf = F;
3261
+ qe.AsyncMode = w, qe.ConcurrentMode = C, qe.ContextConsumer = S, qe.ContextProvider = L, qe.Element = j, qe.ForwardRef = z, qe.Fragment = M, qe.Lazy = A, qe.Memo = k, qe.Portal = T, qe.Profiler = N, qe.StrictMode = q, qe.Suspense = U, qe.isAsyncMode = ie, qe.isConcurrentMode = D, qe.isContextConsumer = $, qe.isContextProvider = X, qe.isElement = _, qe.isForwardRef = B, qe.isFragment = I, qe.isLazy = R, qe.isMemo = W, qe.isPortal = ee, qe.isProfiler = H, qe.isStrictMode = ne, qe.isSuspense = ce, qe.isValidElementType = E, qe.typeOf = F;
3262
3262
  }()), qe;
3263
3263
  }
3264
3264
  var cu;
@@ -3423,7 +3423,7 @@ function zm() {
3423
3423
  oneOf: S,
3424
3424
  oneOfType: j,
3425
3425
  shape: A,
3426
- exact: _
3426
+ exact: k
3427
3427
  };
3428
3428
  function g(D, $) {
3429
3429
  return D === $ ? D !== 0 || 1 / D === 1 / $ : D !== D && $ !== $;
@@ -3435,7 +3435,7 @@ function zm() {
3435
3435
  function b(D) {
3436
3436
  if (process.env.NODE_ENV !== "production")
3437
3437
  var $ = {}, X = 0;
3438
- function k(I, R, W, ee, H, ne, ce) {
3438
+ function _(I, R, W, ee, H, ne, ce) {
3439
3439
  if (ee = ee || m, ne = ne || W, ce !== n) {
3440
3440
  if (l) {
3441
3441
  var Q = new Error(
@@ -3452,12 +3452,12 @@ function zm() {
3452
3452
  }
3453
3453
  return R[W] == null ? I ? R[W] === null ? new f("The " + H + " `" + ne + "` is marked as required " + ("in `" + ee + "`, but its value is `null`.")) : new f("The " + H + " `" + ne + "` is marked as required in " + ("`" + ee + "`, but its value is `undefined`.")) : null : D(R, W, ee, H, ne);
3454
3454
  }
3455
- var B = k.bind(null, !1);
3456
- return B.isRequired = k.bind(null, !0), B;
3455
+ var B = _.bind(null, !1);
3456
+ return B.isRequired = _.bind(null, !0), B;
3457
3457
  }
3458
3458
  function v(D) {
3459
- function $(X, k, B, I, R, W) {
3460
- var ee = X[k], H = q(ee);
3459
+ function $(X, _, B, I, R, W) {
3460
+ var ee = X[_], H = q(ee);
3461
3461
  if (H !== D) {
3462
3462
  var ne = U(ee);
3463
3463
  return new f(
@@ -3473,10 +3473,10 @@ function zm() {
3473
3473
  return b(s);
3474
3474
  }
3475
3475
  function E(D) {
3476
- function $(X, k, B, I, R) {
3476
+ function $(X, _, B, I, R) {
3477
3477
  if (typeof D != "function")
3478
3478
  return new f("Property `" + R + "` of component `" + B + "` has invalid PropType notation inside arrayOf.");
3479
- var W = X[k];
3479
+ var W = X[_];
3480
3480
  if (!Array.isArray(W)) {
3481
3481
  var ee = q(W);
3482
3482
  return new f("Invalid " + I + " `" + R + "` of type " + ("`" + ee + "` supplied to `" + B + "`, expected an array."));
@@ -3491,31 +3491,31 @@ function zm() {
3491
3491
  return b($);
3492
3492
  }
3493
3493
  function F() {
3494
- function D($, X, k, B, I) {
3494
+ function D($, X, _, B, I) {
3495
3495
  var R = $[X];
3496
3496
  if (!o(R)) {
3497
3497
  var W = q(R);
3498
- return new f("Invalid " + B + " `" + I + "` of type " + ("`" + W + "` supplied to `" + k + "`, expected a single ReactElement."));
3498
+ return new f("Invalid " + B + " `" + I + "` of type " + ("`" + W + "` supplied to `" + _ + "`, expected a single ReactElement."));
3499
3499
  }
3500
3500
  return null;
3501
3501
  }
3502
3502
  return b(D);
3503
3503
  }
3504
3504
  function w() {
3505
- function D($, X, k, B, I) {
3505
+ function D($, X, _, B, I) {
3506
3506
  var R = $[X];
3507
3507
  if (!e.isValidElementType(R)) {
3508
3508
  var W = q(R);
3509
- return new f("Invalid " + B + " `" + I + "` of type " + ("`" + W + "` supplied to `" + k + "`, expected a single ReactElement type."));
3509
+ return new f("Invalid " + B + " `" + I + "` of type " + ("`" + W + "` supplied to `" + _ + "`, expected a single ReactElement type."));
3510
3510
  }
3511
3511
  return null;
3512
3512
  }
3513
3513
  return b(D);
3514
3514
  }
3515
3515
  function C(D) {
3516
- function $(X, k, B, I, R) {
3517
- if (!(X[k] instanceof D)) {
3518
- var W = D.name || m, ee = ie(X[k]);
3516
+ function $(X, _, B, I, R) {
3517
+ if (!(X[_] instanceof D)) {
3518
+ var W = D.name || m, ee = ie(X[_]);
3519
3519
  return new f("Invalid " + I + " `" + R + "` of type " + ("`" + ee + "` supplied to `" + B + "`, expected ") + ("instance of `" + W + "`."));
3520
3520
  }
3521
3521
  return null;
@@ -3527,8 +3527,8 @@ function zm() {
3527
3527
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
3528
3528
  "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])."
3529
3529
  ) : a("Invalid argument supplied to oneOf, expected an array.")), s;
3530
- function $(X, k, B, I, R) {
3531
- for (var W = X[k], ee = 0; ee < D.length; ee++)
3530
+ function $(X, _, B, I, R) {
3531
+ for (var W = X[_], ee = 0; ee < D.length; ee++)
3532
3532
  if (g(W, D[ee]))
3533
3533
  return null;
3534
3534
  var H = JSON.stringify(D, function(ce, Q) {
@@ -3540,10 +3540,10 @@ function zm() {
3540
3540
  return b($);
3541
3541
  }
3542
3542
  function L(D) {
3543
- function $(X, k, B, I, R) {
3543
+ function $(X, _, B, I, R) {
3544
3544
  if (typeof D != "function")
3545
3545
  return new f("Property `" + R + "` of component `" + B + "` has invalid PropType notation inside objectOf.");
3546
- var W = X[k], ee = q(W);
3546
+ var W = X[_], ee = q(W);
3547
3547
  if (ee !== "object")
3548
3548
  return new f("Invalid " + I + " `" + R + "` of type " + ("`" + ee + "` supplied to `" + B + "`, expected an object."));
3549
3549
  for (var H in W)
@@ -3566,7 +3566,7 @@ function zm() {
3566
3566
  "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Y(X) + " at index " + $ + "."
3567
3567
  ), s;
3568
3568
  }
3569
- function k(B, I, R, W, ee) {
3569
+ function _(B, I, R, W, ee) {
3570
3570
  for (var H = [], ne = 0; ne < D.length; ne++) {
3571
3571
  var ce = D[ne], Q = ce(B, I, R, W, ee, n);
3572
3572
  if (Q == null)
@@ -3576,22 +3576,22 @@ function zm() {
3576
3576
  var De = H.length > 0 ? ", expected one of type [" + H.join(", ") + "]" : "";
3577
3577
  return new f("Invalid " + W + " `" + ee + "` supplied to " + ("`" + R + "`" + De + "."));
3578
3578
  }
3579
- return b(k);
3579
+ return b(_);
3580
3580
  }
3581
3581
  function z() {
3582
- function D($, X, k, B, I) {
3583
- return T($[X]) ? null : new f("Invalid " + B + " `" + I + "` supplied to " + ("`" + k + "`, expected a ReactNode."));
3582
+ function D($, X, _, B, I) {
3583
+ return T($[X]) ? null : new f("Invalid " + B + " `" + I + "` supplied to " + ("`" + _ + "`, expected a ReactNode."));
3584
3584
  }
3585
3585
  return b(D);
3586
3586
  }
3587
- function M(D, $, X, k, B) {
3587
+ function M(D, $, X, _, B) {
3588
3588
  return new f(
3589
- (D || "React class") + ": " + $ + " type `" + X + "." + k + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + B + "`."
3589
+ (D || "React class") + ": " + $ + " type `" + X + "." + _ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + B + "`."
3590
3590
  );
3591
3591
  }
3592
3592
  function A(D) {
3593
- function $(X, k, B, I, R) {
3594
- var W = X[k], ee = q(W);
3593
+ function $(X, _, B, I, R) {
3594
+ var W = X[_], ee = q(W);
3595
3595
  if (ee !== "object")
3596
3596
  return new f("Invalid " + I + " `" + R + "` of type `" + ee + "` " + ("supplied to `" + B + "`, expected `object`."));
3597
3597
  for (var H in D) {
@@ -3606,19 +3606,19 @@ function zm() {
3606
3606
  }
3607
3607
  return b($);
3608
3608
  }
3609
- function _(D) {
3610
- function $(X, k, B, I, R) {
3611
- var W = X[k], ee = q(W);
3609
+ function k(D) {
3610
+ function $(X, _, B, I, R) {
3611
+ var W = X[_], ee = q(W);
3612
3612
  if (ee !== "object")
3613
3613
  return new f("Invalid " + I + " `" + R + "` of type `" + ee + "` " + ("supplied to `" + B + "`, expected `object`."));
3614
- var H = t({}, X[k], D);
3614
+ var H = t({}, X[_], D);
3615
3615
  for (var ne in H) {
3616
3616
  var ce = D[ne];
3617
3617
  if (r(D, ne) && typeof ce != "function")
3618
3618
  return M(B, I, R, ne, U(ce));
3619
3619
  if (!ce)
3620
3620
  return new f(
3621
- "Invalid " + I + " `" + R + "` key `" + ne + "` supplied to `" + B + "`.\nBad object: " + JSON.stringify(X[k], null, " ") + `
3621
+ "Invalid " + I + " `" + R + "` key `" + ne + "` supplied to `" + B + "`.\nBad object: " + JSON.stringify(X[_], null, " ") + `
3622
3622
  Valid keys: ` + JSON.stringify(Object.keys(D), null, " ")
3623
3623
  );
3624
3624
  var Q = ce(W, ne, B, I, R + "." + ne, n);
@@ -3644,14 +3644,14 @@ Valid keys: ` + JSON.stringify(Object.keys(D), null, " ")
3644
3644
  return !0;
3645
3645
  var $ = h(D);
3646
3646
  if ($) {
3647
- var X = $.call(D), k;
3647
+ var X = $.call(D), _;
3648
3648
  if ($ !== D.entries) {
3649
- for (; !(k = X.next()).done; )
3650
- if (!T(k.value))
3649
+ for (; !(_ = X.next()).done; )
3650
+ if (!T(_.value))
3651
3651
  return !1;
3652
3652
  } else
3653
- for (; !(k = X.next()).done; ) {
3654
- var B = k.value;
3653
+ for (; !(_ = X.next()).done; ) {
3654
+ var B = _.value;
3655
3655
  if (B && !T(B[1]))
3656
3656
  return !1;
3657
3657
  }
@@ -4087,10 +4087,10 @@ var Du = {
4087
4087
  delayInitialFocusTimer: void 0,
4088
4088
  // the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
4089
4089
  recentNavEvent: void 0
4090
- }, o, l = function(A, _, T) {
4091
- return A && A[_] !== void 0 ? A[_] : a[T || _];
4092
- }, u = function(A, _) {
4093
- var T = typeof (_ == null ? void 0 : _.composedPath) == "function" ? _.composedPath() : void 0;
4090
+ }, o, l = function(A, k, T) {
4091
+ return A && A[k] !== void 0 ? A[k] : a[T || k];
4092
+ }, u = function(A, k) {
4093
+ var T = typeof (k == null ? void 0 : k.composedPath) == "function" ? k.composedPath() : void 0;
4094
4094
  return s.containerGroups.findIndex(function(N) {
4095
4095
  var q = N.container, U = N.tabbableNodes;
4096
4096
  return q.contains(A) || // fall back to explicit tabbable search which will take into consideration any
@@ -4102,19 +4102,19 @@ var Du = {
4102
4102
  });
4103
4103
  });
4104
4104
  }, d = function(A) {
4105
- var _ = a[A];
4106
- if (typeof _ == "function") {
4105
+ var k = a[A];
4106
+ if (typeof k == "function") {
4107
4107
  for (var T = arguments.length, N = new Array(T > 1 ? T - 1 : 0), q = 1; q < T; q++)
4108
4108
  N[q - 1] = arguments[q];
4109
- _ = _.apply(void 0, N);
4109
+ k = k.apply(void 0, N);
4110
4110
  }
4111
- if (_ === !0 && (_ = void 0), !_) {
4112
- if (_ === void 0 || _ === !1)
4113
- return _;
4111
+ if (k === !0 && (k = void 0), !k) {
4112
+ if (k === void 0 || k === !1)
4113
+ return k;
4114
4114
  throw new Error("`".concat(A, "` was specified but was not a node, or did not return a node"));
4115
4115
  }
4116
- var U = _;
4117
- if (typeof _ == "string" && (U = r.querySelector(_), !U))
4116
+ var U = k;
4117
+ if (typeof k == "string" && (U = r.querySelector(k), !U))
4118
4118
  throw new Error("`".concat(A, "` as selector refers to no known node"));
4119
4119
  return U;
4120
4120
  }, h = function() {
@@ -4125,7 +4125,7 @@ var Du = {
4125
4125
  if (u(r.activeElement) >= 0)
4126
4126
  A = r.activeElement;
4127
4127
  else {
4128
- var _ = s.tabbableGroups[0], T = _ && _.firstTabbableNode;
4128
+ var k = s.tabbableGroups[0], T = k && k.firstTabbableNode;
4129
4129
  A = T || d("fallbackFocus");
4130
4130
  }
4131
4131
  if (!A)
@@ -4133,16 +4133,16 @@ var Du = {
4133
4133
  return A;
4134
4134
  }, m = function() {
4135
4135
  if (s.containerGroups = s.containers.map(function(A) {
4136
- var _ = fd(A, a.tabbableOptions), T = hd(A, a.tabbableOptions), N = _.length > 0 ? _[0] : void 0, q = _.length > 0 ? _[_.length - 1] : void 0, U = T.find(function(D) {
4136
+ var k = fd(A, a.tabbableOptions), T = hd(A, a.tabbableOptions), N = k.length > 0 ? k[0] : void 0, q = k.length > 0 ? k[k.length - 1] : void 0, U = T.find(function(D) {
4137
4137
  return En(D);
4138
4138
  }), Y = T.slice().reverse().find(function(D) {
4139
4139
  return En(D);
4140
- }), ie = !!_.find(function(D) {
4140
+ }), ie = !!k.find(function(D) {
4141
4141
  return gn(D) > 0;
4142
4142
  });
4143
4143
  return {
4144
4144
  container: A,
4145
- tabbableNodes: _,
4145
+ tabbableNodes: k,
4146
4146
  focusableNodes: T,
4147
4147
  /** True if at least one node with positive `tabindex` was found in this container. */
4148
4148
  posTabIndexesFound: ie,
@@ -4170,12 +4170,12 @@ var Du = {
4170
4170
  * @returns {HTMLElement|undefined} The next tabbable node, if any.
4171
4171
  */
4172
4172
  nextTabbableNode: function($) {
4173
- var X = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, k = _.indexOf($);
4174
- return k < 0 ? X ? T.slice(T.indexOf($) + 1).find(function(B) {
4173
+ var X = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, _ = k.indexOf($);
4174
+ return _ < 0 ? X ? T.slice(T.indexOf($) + 1).find(function(B) {
4175
4175
  return En(B);
4176
4176
  }) : T.slice(0, T.indexOf($)).reverse().find(function(B) {
4177
4177
  return En(B);
4178
- }) : _[k + (X ? 1 : -1)];
4178
+ }) : k[_ + (X ? 1 : -1)];
4179
4179
  }
4180
4180
  };
4181
4181
  }), s.tabbableGroups = s.containerGroups.filter(function(A) {
@@ -4187,9 +4187,9 @@ var Du = {
4187
4187
  }) && s.containerGroups.length > 1)
4188
4188
  throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.");
4189
4189
  }, p = function M(A) {
4190
- var _ = A.activeElement;
4191
- if (_)
4192
- return _.shadowRoot && _.shadowRoot.activeElement !== null ? M(_.shadowRoot) : _;
4190
+ var k = A.activeElement;
4191
+ if (k)
4192
+ return k.shadowRoot && k.shadowRoot.activeElement !== null ? M(k.shadowRoot) : k;
4193
4193
  }, g = function M(A) {
4194
4194
  if (A !== !1 && A !== p(document)) {
4195
4195
  if (!A || !A.focus) {
@@ -4201,43 +4201,43 @@ var Du = {
4201
4201
  }), s.mostRecentlyFocusedNode = A, dp(A) && A.select();
4202
4202
  }
4203
4203
  }, f = function(A) {
4204
- var _ = d("setReturnFocus", A);
4205
- return _ || (_ === !1 ? !1 : A);
4204
+ var k = d("setReturnFocus", A);
4205
+ return k || (k === !1 ? !1 : A);
4206
4206
  }, b = function(A) {
4207
- var _ = A.target, T = A.event, N = A.isBackward, q = N === void 0 ? !1 : N;
4208
- _ = _ || si(T), m();
4207
+ var k = A.target, T = A.event, N = A.isBackward, q = N === void 0 ? !1 : N;
4208
+ k = k || si(T), m();
4209
4209
  var U = null;
4210
4210
  if (s.tabbableGroups.length > 0) {
4211
- var Y = u(_, T), ie = Y >= 0 ? s.containerGroups[Y] : void 0;
4211
+ var Y = u(k, T), ie = Y >= 0 ? s.containerGroups[Y] : void 0;
4212
4212
  if (Y < 0)
4213
4213
  q ? U = s.tabbableGroups[s.tabbableGroups.length - 1].lastTabbableNode : U = s.tabbableGroups[0].firstTabbableNode;
4214
4214
  else if (q) {
4215
4215
  var D = wu(s.tabbableGroups, function(R) {
4216
4216
  var W = R.firstTabbableNode;
4217
- return _ === W;
4217
+ return k === W;
4218
4218
  });
4219
- if (D < 0 && (ie.container === _ || Fi(_, a.tabbableOptions) && !En(_, a.tabbableOptions) && !ie.nextTabbableNode(_, !1)) && (D = Y), D >= 0) {
4219
+ if (D < 0 && (ie.container === k || Fi(k, a.tabbableOptions) && !En(k, a.tabbableOptions) && !ie.nextTabbableNode(k, !1)) && (D = Y), D >= 0) {
4220
4220
  var $ = D === 0 ? s.tabbableGroups.length - 1 : D - 1, X = s.tabbableGroups[$];
4221
- U = gn(_) >= 0 ? X.lastTabbableNode : X.lastDomTabbableNode;
4221
+ U = gn(k) >= 0 ? X.lastTabbableNode : X.lastDomTabbableNode;
4222
4222
  } else
4223
- Sr(T) || (U = ie.nextTabbableNode(_, !1));
4223
+ Sr(T) || (U = ie.nextTabbableNode(k, !1));
4224
4224
  } else {
4225
- var k = wu(s.tabbableGroups, function(R) {
4225
+ var _ = wu(s.tabbableGroups, function(R) {
4226
4226
  var W = R.lastTabbableNode;
4227
- return _ === W;
4227
+ return k === W;
4228
4228
  });
4229
- if (k < 0 && (ie.container === _ || Fi(_, a.tabbableOptions) && !En(_, a.tabbableOptions) && !ie.nextTabbableNode(_)) && (k = Y), k >= 0) {
4230
- var B = k === s.tabbableGroups.length - 1 ? 0 : k + 1, I = s.tabbableGroups[B];
4231
- U = gn(_) >= 0 ? I.firstTabbableNode : I.firstDomTabbableNode;
4229
+ if (_ < 0 && (ie.container === k || Fi(k, a.tabbableOptions) && !En(k, a.tabbableOptions) && !ie.nextTabbableNode(k)) && (_ = Y), _ >= 0) {
4230
+ var B = _ === s.tabbableGroups.length - 1 ? 0 : _ + 1, I = s.tabbableGroups[B];
4231
+ U = gn(k) >= 0 ? I.firstTabbableNode : I.firstDomTabbableNode;
4232
4232
  } else
4233
- Sr(T) || (U = ie.nextTabbableNode(_));
4233
+ Sr(T) || (U = ie.nextTabbableNode(k));
4234
4234
  }
4235
4235
  } else
4236
4236
  U = d("fallbackFocus");
4237
4237
  return U;
4238
4238
  }, v = function(A) {
4239
- var _ = si(A);
4240
- if (!(u(_, A) >= 0)) {
4239
+ var k = si(A);
4240
+ if (!(u(k, A) >= 0)) {
4241
4241
  if (xr(a.clickOutsideDeactivates, A)) {
4242
4242
  o.deactivate({
4243
4243
  // NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
@@ -4253,9 +4253,9 @@ var Du = {
4253
4253
  xr(a.allowOutsideClick, A) || A.preventDefault();
4254
4254
  }
4255
4255
  }, x = function(A) {
4256
- var _ = si(A), T = u(_, A) >= 0;
4257
- if (T || _ instanceof Document)
4258
- T && (s.mostRecentlyFocusedNode = _);
4256
+ var k = si(A), T = u(k, A) >= 0;
4257
+ if (T || k instanceof Document)
4258
+ T && (s.mostRecentlyFocusedNode = k);
4259
4259
  else {
4260
4260
  A.stopImmediatePropagation();
4261
4261
  var N, q = !0;
@@ -4285,11 +4285,11 @@ var Du = {
4285
4285
  }
4286
4286
  s.recentNavEvent = void 0;
4287
4287
  }, E = function(A) {
4288
- var _ = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
4288
+ var k = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
4289
4289
  s.recentNavEvent = A;
4290
4290
  var T = b({
4291
4291
  event: A,
4292
- isBackward: _
4292
+ isBackward: k
4293
4293
  });
4294
4294
  T && (Sr(A) && A.preventDefault(), g(T));
4295
4295
  }, F = function(A) {
@@ -4299,8 +4299,8 @@ var Du = {
4299
4299
  }
4300
4300
  (a.isKeyForward(A) || a.isKeyBackward(A)) && E(A, a.isKeyBackward(A));
4301
4301
  }, w = function(A) {
4302
- var _ = si(A);
4303
- u(_, A) >= 0 || xr(a.clickOutsideDeactivates, A) || xr(a.allowOutsideClick, A) || (A.preventDefault(), A.stopImmediatePropagation());
4302
+ var k = si(A);
4303
+ u(k, A) >= 0 || xr(a.clickOutsideDeactivates, A) || xr(a.allowOutsideClick, A) || (A.preventDefault(), A.stopImmediatePropagation());
4304
4304
  }, C = function() {
4305
4305
  if (s.active)
4306
4306
  return Du.activateTrap(i, o), s.delayInitialFocusTimer = a.delayInitialFocus ? xu(function() {
@@ -4322,13 +4322,13 @@ var Du = {
4322
4322
  if (s.active)
4323
4323
  return r.removeEventListener("focusin", x, !0), r.removeEventListener("mousedown", v, !0), r.removeEventListener("touchstart", v, !0), r.removeEventListener("click", w, !0), r.removeEventListener("keydown", F, !0), o;
4324
4324
  }, L = function(A) {
4325
- var _ = A.some(function(T) {
4325
+ var k = A.some(function(T) {
4326
4326
  var N = Array.from(T.removedNodes);
4327
4327
  return N.some(function(q) {
4328
4328
  return q === s.mostRecentlyFocusedNode;
4329
4329
  });
4330
4330
  });
4331
- _ && g(h());
4331
+ k && g(h());
4332
4332
  }, j = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(L) : void 0, z = function() {
4333
4333
  j && (j.disconnect(), s.active && !s.paused && s.containers.map(function(A) {
4334
4334
  j.observe(A, {
@@ -4347,8 +4347,8 @@ var Du = {
4347
4347
  activate: function(A) {
4348
4348
  if (s.active)
4349
4349
  return this;
4350
- var _ = l(A, "onActivate"), T = l(A, "onPostActivate"), N = l(A, "checkCanFocusTrap");
4351
- N || m(), s.active = !0, s.paused = !1, s.nodeFocusedBeforeActivation = r.activeElement, _ == null || _();
4350
+ var k = l(A, "onActivate"), T = l(A, "onPostActivate"), N = l(A, "checkCanFocusTrap");
4351
+ N || m(), s.active = !0, s.paused = !1, s.nodeFocusedBeforeActivation = r.activeElement, k == null || k();
4352
4352
  var q = function() {
4353
4353
  N && m(), C(), z(), T == null || T();
4354
4354
  };
@@ -4357,13 +4357,13 @@ var Du = {
4357
4357
  deactivate: function(A) {
4358
4358
  if (!s.active)
4359
4359
  return this;
4360
- var _ = yu({
4360
+ var k = yu({
4361
4361
  onDeactivate: a.onDeactivate,
4362
4362
  onPostDeactivate: a.onPostDeactivate,
4363
4363
  checkCanReturnFocus: a.checkCanReturnFocus
4364
4364
  }, A);
4365
4365
  clearTimeout(s.delayInitialFocusTimer), s.delayInitialFocusTimer = void 0, S(), s.active = !1, s.paused = !1, z(), Du.deactivateTrap(i, o);
4366
- var T = l(_, "onDeactivate"), N = l(_, "onPostDeactivate"), q = l(_, "checkCanReturnFocus"), U = l(_, "returnFocus", "returnFocusOnDeactivate");
4366
+ var T = l(k, "onDeactivate"), N = l(k, "onPostDeactivate"), q = l(k, "checkCanReturnFocus"), U = l(k, "returnFocus", "returnFocusOnDeactivate");
4367
4367
  T == null || T();
4368
4368
  var Y = function() {
4369
4369
  xu(function() {
@@ -4375,18 +4375,18 @@ var Du = {
4375
4375
  pause: function(A) {
4376
4376
  if (s.paused || !s.active)
4377
4377
  return this;
4378
- var _ = l(A, "onPause"), T = l(A, "onPostPause");
4379
- return s.paused = !0, _ == null || _(), S(), z(), T == null || T(), this;
4378
+ var k = l(A, "onPause"), T = l(A, "onPostPause");
4379
+ return s.paused = !0, k == null || k(), S(), z(), T == null || T(), this;
4380
4380
  },
4381
4381
  unpause: function(A) {
4382
4382
  if (!s.paused || !s.active)
4383
4383
  return this;
4384
- var _ = l(A, "onUnpause"), T = l(A, "onPostUnpause");
4385
- return s.paused = !1, _ == null || _(), m(), C(), z(), T == null || T(), this;
4384
+ var k = l(A, "onUnpause"), T = l(A, "onPostUnpause");
4385
+ return s.paused = !1, k == null || k(), m(), C(), z(), T == null || T(), this;
4386
4386
  },
4387
4387
  updateContainerElements: function(A) {
4388
- var _ = [].concat(A).filter(Boolean);
4389
- return s.containers = _.map(function(T) {
4388
+ var k = [].concat(A).filter(Boolean);
4389
+ return s.containers = k.map(function(T) {
4390
4390
  return typeof T == "string" ? r.querySelector(T) : T;
4391
4391
  }), s.active && m(), z(), this;
4392
4392
  }
@@ -6451,7 +6451,7 @@ const Ln = ({
6451
6451
  const I = B.id || B.name;
6452
6452
  I && (M[I] = B.value || "");
6453
6453
  });
6454
- const [A, _] = hr(eg, {
6454
+ const [A, k] = hr(eg, {
6455
6455
  isSubmitting: !1,
6456
6456
  formSubmitted: !1,
6457
6457
  errors: {},
@@ -6459,7 +6459,7 @@ const Ln = ({
6459
6459
  }), { errors: T, isSubmitting: N, formSubmitted: q, values: U } = A;
6460
6460
  de(() => {
6461
6461
  x && q && (Ta = setTimeout(() => {
6462
- _({
6462
+ k({
6463
6463
  type: "updateValue",
6464
6464
  payload: { key: "formSubmitted", value: !1 }
6465
6465
  });
@@ -6468,7 +6468,7 @@ const Ln = ({
6468
6468
  Ta && clearTimeout(Ta);
6469
6469
  }, []), de(() => {
6470
6470
  const B = (I) => {
6471
- _({
6471
+ k({
6472
6472
  type: "updateValue",
6473
6473
  payload: { key: I.detail.id, value: I.detail.value }
6474
6474
  });
@@ -6494,37 +6494,37 @@ const Ln = ({
6494
6494
  }), delete f.text;
6495
6495
  const $ = () => {
6496
6496
  if (!N) {
6497
- if (_({
6497
+ if (k({
6498
6498
  type: "updateValue",
6499
6499
  payload: { key: "isSubmitting", value: !0 }
6500
6500
  }), s.disabled) {
6501
- typeof s.disabled == "object" && s.disabled.isClickable && _({
6501
+ typeof s.disabled == "object" && s.disabled.isClickable && k({
6502
6502
  type: "submitForm",
6503
6503
  payload: {
6504
6504
  fields: t,
6505
- dispatch: _,
6505
+ dispatch: k,
6506
6506
  intl: z
6507
6507
  }
6508
6508
  });
6509
6509
  return;
6510
6510
  }
6511
- _({
6511
+ k({
6512
6512
  type: "submitForm",
6513
6513
  payload: {
6514
6514
  fields: t,
6515
- dispatch: _,
6515
+ dispatch: k,
6516
6516
  onSuccess: async (B) => {
6517
6517
  try {
6518
- await C(B), _({ type: x ? "formSubmittedAndReset" : "formSubmitted" });
6518
+ await C(B), k({ type: x ? "formSubmittedAndReset" : "formSubmitted" });
6519
6519
  } catch (I) {
6520
- L(I), _({
6520
+ L(I), k({
6521
6521
  type: "updateValue",
6522
6522
  payload: { key: "isSubmitting", value: !1 }
6523
6523
  });
6524
6524
  }
6525
6525
  },
6526
6526
  onFailure: (B, I) => {
6527
- j(B, I), _({
6527
+ j(B, I), k({
6528
6528
  type: "updateValue",
6529
6529
  payload: { key: "isSubmitting", value: !1 }
6530
6530
  });
@@ -6533,7 +6533,7 @@ const Ln = ({
6533
6533
  }
6534
6534
  });
6535
6535
  }
6536
- }, k = [
6536
+ }, _ = [
6537
6537
  {
6538
6538
  ...f,
6539
6539
  icon: q ? { icon: "tick", position: "left" } : !1,
@@ -6556,7 +6556,7 @@ const Ln = ({
6556
6556
  children: D[N ? "submitting" : q ? "submitted" : "default"]
6557
6557
  }
6558
6558
  ];
6559
- return v && k.unshift({
6559
+ return v && _.unshift({
6560
6560
  ...o,
6561
6561
  className: "gtm-trackable",
6562
6562
  "data-gtm-event-context": d.context,
@@ -6595,7 +6595,7 @@ const Ln = ({
6595
6595
  const ne = (U == null ? void 0 : U[R]) || "", ce = {
6596
6596
  ...ee,
6597
6597
  onChange: (Q) => {
6598
- _({ type: "updateValue", payload: { key: R, value: Q } }), ee.onChange(Q && Q.toString(), _);
6598
+ k({ type: "updateValue", payload: { key: R, value: Q } }), ee.onChange(Q && Q.toString(), k);
6599
6599
  }
6600
6600
  };
6601
6601
  return H && (ce.onKeyDown = (Q) => {
@@ -6620,7 +6620,7 @@ const Ln = ({
6620
6620
  center: N || q,
6621
6621
  submitted: q
6622
6622
  }),
6623
- buttons: k
6623
+ buttons: _
6624
6624
  }
6625
6625
  )
6626
6626
  ] })
@@ -8202,8 +8202,8 @@ var Hg = (e, t, n) => {
8202
8202
  } = n;
8203
8203
  if (P.isAncestor(j, z))
8204
8204
  throw new Error("Cannot move a path [".concat(j, "] to new path [").concat(z, "] because the destination is inside itself."));
8205
- var M = oe.get(e, j), A = oe.parent(e, j), _ = j[j.length - 1];
8206
- A.children.splice(_, 1);
8205
+ var M = oe.get(e, j), A = oe.parent(e, j), k = j[j.length - 1];
8206
+ A.children.splice(k, 1);
8207
8207
  var T = P.transform(j, n), N = oe.get(e, P.parent(T)), q = T[T.length - 1];
8208
8208
  if (N.children.splice(q, 0, M), t)
8209
8209
  for (var [U, Y] of Z.points(t))
@@ -8215,10 +8215,10 @@ var Hg = (e, t, n) => {
8215
8215
  path: ie
8216
8216
  } = n, D = ie[ie.length - 1], $ = oe.parent(e, ie);
8217
8217
  if ($.children.splice(D, 1), t)
8218
- for (var [X, k] of Z.points(t)) {
8218
+ for (var [X, _] of Z.points(t)) {
8219
8219
  var B = Ae.transform(X, n);
8220
8220
  if (t != null && B != null)
8221
- t[k] = B;
8221
+ t[_] = B;
8222
8222
  else {
8223
8223
  var I = void 0, R = void 0;
8224
8224
  for (var [W, ee] of oe.texts(e))
@@ -10531,13 +10531,13 @@ var j0 = (e, t) => {
10531
10531
  var M = y.after(t, E);
10532
10532
  M && w && P.isAncestor(w[1], M.path) && (E = M);
10533
10533
  }
10534
- var A = [], _;
10534
+ var A = [], k;
10535
10535
  for (var T of y.nodes(t, {
10536
10536
  at: u,
10537
10537
  voids: l
10538
10538
  })) {
10539
10539
  var [N, q] = T;
10540
- _ && P.compare(q, _) === 0 || (!l && he.isElement(N) && (y.isVoid(t, N) || y.isElementReadOnly(t, N)) || !P.isCommon(q, x.path) && !P.isCommon(q, E.path)) && (A.push(T), _ = q);
10540
+ k && P.compare(q, k) === 0 || (!l && he.isElement(N) && (y.isVoid(t, N) || y.isElementReadOnly(t, N)) || !P.isCommon(q, x.path) && !P.isCommon(q, E.path)) && (A.push(T), k = q);
10541
10541
  }
10542
10542
  var U = Array.from(A, (ge) => {
10543
10543
  var [, Fe] = ge;
@@ -10545,13 +10545,13 @@ var j0 = (e, t) => {
10545
10545
  }), Y = y.pointRef(t, x), ie = y.pointRef(t, E), D = "";
10546
10546
  if (!S && !L) {
10547
10547
  var $ = Y.current, [X] = y.leaf(t, $), {
10548
- path: k
10548
+ path: _
10549
10549
  } = $, {
10550
10550
  offset: B
10551
10551
  } = x, I = X.text.slice(B);
10552
10552
  I.length > 0 && (t.apply({
10553
10553
  type: "remove_text",
10554
- path: k,
10554
+ path: _,
10555
10555
  offset: B,
10556
10556
  text: I
10557
10557
  }), D = I);
@@ -10646,9 +10646,9 @@ var j0 = (e, t) => {
10646
10646
  pass: L
10647
10647
  }))
10648
10648
  L(j) && S.push(j);
10649
- var z = [], M = [], A = [], _ = !0, T = !1;
10649
+ var z = [], M = [], A = [], k = !0, T = !1;
10650
10650
  for (var [N] of S)
10651
- he.isElement(N) && !t.isInline(N) ? (_ = !1, T = !0, M.push(N)) : _ ? z.push(N) : A.push(N);
10651
+ he.isElement(N) && !t.isInline(N) ? (k = !1, T = !0, M.push(N)) : k ? z.push(N) : A.push(N);
10652
10652
  var [q] = y.nodes(t, {
10653
10653
  at: s,
10654
10654
  match: (I) => me.isText(I) || y.isInline(t, I),
@@ -10685,9 +10685,9 @@ var j0 = (e, t) => {
10685
10685
  voids: a,
10686
10686
  batchDirty: o
10687
10687
  }), !r.at) {
10688
- var k;
10689
- if (A.length > 0 && $.current ? k = P.previous($.current) : M.length > 0 && D.current ? k = P.previous(D.current) : X.current && (k = P.previous(X.current)), k) {
10690
- var B = y.end(t, k);
10688
+ var _;
10689
+ if (A.length > 0 && $.current ? _ = P.previous($.current) : M.length > 0 && D.current ? _ = P.previous(D.current) : X.current && (_ = P.previous(X.current)), _) {
10690
+ var B = y.end(t, _);
10691
10691
  J.select(t, B);
10692
10692
  }
10693
10693
  }
@@ -10875,17 +10875,17 @@ var U0 = function(t, n) {
10875
10875
  var w = [], C = P.levels(E);
10876
10876
  Bv(t, () => {
10877
10877
  var z = function() {
10878
- var _ = E.concat(F);
10878
+ var k = E.concat(F);
10879
10879
  F++;
10880
10880
  var T = {
10881
10881
  type: "insert_node",
10882
- path: _,
10882
+ path: k,
10883
10883
  node: M
10884
10884
  };
10885
10885
  t.apply(T), l = P.next(l), w.push(T), me.isText ? C.push(...Array.from(oe.nodes(M), (N) => {
10886
10886
  var [, q] = N;
10887
- return _.concat(q);
10888
- })) : C.push(_);
10887
+ return k.concat(q);
10888
+ })) : C.push(k);
10889
10889
  };
10890
10890
  for (var M of n)
10891
10891
  z();
@@ -11260,12 +11260,12 @@ var U0 = function(t, n) {
11260
11260
  reverse: !0,
11261
11261
  voids: i
11262
11262
  })) {
11263
- var _ = !1;
11263
+ var k = !1;
11264
11264
  if (A.length < L.length || A.length === 0 || !i && he.isElement(M) && y.isVoid(t, M))
11265
11265
  break;
11266
11266
  var T = m.current, N = y.isEnd(t, T, A);
11267
11267
  if (l || !m || !y.isEdge(t, T, A)) {
11268
- _ = !0;
11268
+ k = !0;
11269
11269
  var q = oe.extractProps(M);
11270
11270
  t.apply({
11271
11271
  type: "split_node",
@@ -11274,7 +11274,7 @@ var U0 = function(t, n) {
11274
11274
  properties: q
11275
11275
  });
11276
11276
  }
11277
- z = A[A.length - 1] + (_ || N ? 1 : 0);
11277
+ z = A[A.length - 1] + (k || N ? 1 : 0);
11278
11278
  }
11279
11279
  if (n.at == null) {
11280
11280
  var U = p.current || y.end(t, []);
@@ -11400,10 +11400,10 @@ var ib = function(t, n) {
11400
11400
  var [E] = x, F = x[x.length - 1], [, w] = E, [, C] = F;
11401
11401
  if (w.length === 0 && C.length === 0)
11402
11402
  return 0;
11403
- var S = P.equals(w, C) ? P.parent(w) : P.common(w, C), L = y.range(t, w, C), j = y.node(t, S), [z] = j, M = S.length + 1, A = P.next(C.slice(0, M)), _ = dl(dl({}, n), {}, {
11403
+ var S = P.equals(w, C) ? P.parent(w) : P.common(w, C), L = y.range(t, w, C), j = y.node(t, S), [z] = j, M = S.length + 1, A = P.next(C.slice(0, M)), k = dl(dl({}, n), {}, {
11404
11404
  children: []
11405
11405
  });
11406
- J.insertNodes(t, _, {
11406
+ J.insertNodes(t, k, {
11407
11407
  at: A,
11408
11408
  voids: s
11409
11409
  }), J.moveNodes(t, {
@@ -12100,21 +12100,21 @@ const by = /* @__PURE__ */ Mn(vy), bl = (e) => typeof e == "object" && e != null
12100
12100
  const U = window.getComputedStyle(q);
12101
12101
  return { top: parseFloat(U.scrollMarginTop) || 0, right: parseFloat(U.scrollMarginRight) || 0, bottom: parseFloat(U.scrollMarginBottom) || 0, left: parseFloat(U.scrollMarginLeft) || 0 };
12102
12102
  })(e);
12103
- let _ = o === "start" || o === "nearest" ? w - j : o === "end" ? S + M : w + E / 2 - j + M, T = l === "center" ? L + F / 2 - A + z : l === "end" ? C + z : L - A;
12103
+ let k = o === "start" || o === "nearest" ? w - j : o === "end" ? S + M : w + E / 2 - j + M, T = l === "center" ? L + F / 2 - A + z : l === "end" ? C + z : L - A;
12104
12104
  const N = [];
12105
12105
  for (let q = 0; q < p.length; q++) {
12106
- const U = p[q], { height: Y, width: ie, top: D, right: $, bottom: X, left: k } = U.getBoundingClientRect();
12107
- if (s === "if-needed" && w >= 0 && L >= 0 && S <= b && C <= f && w >= D && S <= X && L >= k && C <= $)
12106
+ const U = p[q], { height: Y, width: ie, top: D, right: $, bottom: X, left: _ } = U.getBoundingClientRect();
12107
+ if (s === "if-needed" && w >= 0 && L >= 0 && S <= b && C <= f && w >= D && S <= X && L >= _ && C <= $)
12108
12108
  return N;
12109
12109
  const B = getComputedStyle(U), I = parseInt(B.borderLeftWidth, 10), R = parseInt(B.borderTopWidth, 10), W = parseInt(B.borderRightWidth, 10), ee = parseInt(B.borderBottomWidth, 10);
12110
12110
  let H = 0, ne = 0;
12111
12111
  const ce = "offsetWidth" in U ? U.offsetWidth - U.clientWidth - I - W : 0, Q = "offsetHeight" in U ? U.offsetHeight - U.clientHeight - R - ee : 0, De = "offsetWidth" in U ? U.offsetWidth === 0 ? 0 : ie / U.offsetWidth : 0, ge = "offsetHeight" in U ? U.offsetHeight === 0 ? 0 : Y / U.offsetHeight : 0;
12112
12112
  if (m === U)
12113
- H = o === "start" ? _ : o === "end" ? _ - b : o === "nearest" ? hi(x, x + b, b, R, ee, x + _, x + _ + E, E) : _ - b / 2, ne = l === "start" ? T : l === "center" ? T - f / 2 : l === "end" ? T - f : hi(v, v + f, f, I, W, v + T, v + T + F, F), H = Math.max(0, H + x), ne = Math.max(0, ne + v);
12113
+ H = o === "start" ? k : o === "end" ? k - b : o === "nearest" ? hi(x, x + b, b, R, ee, x + k, x + k + E, E) : k - b / 2, ne = l === "start" ? T : l === "center" ? T - f / 2 : l === "end" ? T - f : hi(v, v + f, f, I, W, v + T, v + T + F, F), H = Math.max(0, H + x), ne = Math.max(0, ne + v);
12114
12114
  else {
12115
- H = o === "start" ? _ - D - R : o === "end" ? _ - X + ee + Q : o === "nearest" ? hi(D, X, Y, R, ee + Q, _, _ + E, E) : _ - (D + Y / 2) + Q / 2, ne = l === "start" ? T - k - I : l === "center" ? T - (k + ie / 2) + ce / 2 : l === "end" ? T - $ + W + ce : hi(k, $, ie, I, W + ce, T, T + F, F);
12115
+ H = o === "start" ? k - D - R : o === "end" ? k - X + ee + Q : o === "nearest" ? hi(D, X, Y, R, ee + Q, k, k + E, E) : k - (D + Y / 2) + Q / 2, ne = l === "start" ? T - _ - I : l === "center" ? T - (_ + ie / 2) + ce / 2 : l === "end" ? T - $ + W + ce : hi(_, $, ie, I, W + ce, T, T + F, F);
12116
12116
  const { scrollLeft: Fe, scrollTop: Ne } = U;
12117
- H = ge === 0 ? 0 : Math.max(0, Math.min(Ne + H / ge, U.scrollHeight - Y / ge + Q)), ne = De === 0 ? 0 : Math.max(0, Math.min(Fe + ne / De, U.scrollWidth - ie / De + ce)), _ += Ne - H, T += Fe - ne;
12117
+ H = ge === 0 ? 0 : Math.max(0, Math.min(Ne + H / ge, U.scrollHeight - Y / ge + Q)), ne = De === 0 ? 0 : Math.max(0, Math.min(Fe + ne / De, U.scrollWidth - ie / De + ce)), k += Ne - H, T += Fe - ne;
12118
12118
  }
12119
12119
  N.push({ el: U, top: H, left: ne });
12120
12120
  }
@@ -12984,9 +12984,9 @@ var te = {
12984
12984
  return null;
12985
12985
  throw new Error("Cannot resolve a Slate point from DOM point: ".concat(t));
12986
12986
  }
12987
- var A = te.toSlateNode(e, l), _ = te.findPath(e, A);
12987
+ var A = te.toSlateNode(e, l), k = te.findPath(e, A);
12988
12988
  return {
12989
- path: _,
12989
+ path: k,
12990
12990
  offset: u
12991
12991
  };
12992
12992
  },
@@ -13336,19 +13336,19 @@ function C1(e) {
13336
13336
  var A = pn.get(t);
13337
13337
  if (pn.delete(t), A) {
13338
13338
  var {
13339
- selection: _
13339
+ selection: k
13340
13340
  } = t, T = Sl(t, A);
13341
- T && (!_ || !Z.equals(T, _)) && J.select(t, T);
13341
+ T && (!k || !Z.equals(T, k)) && J.select(t, T);
13342
13342
  }
13343
13343
  }, h = () => {
13344
13344
  var A = mn.get(t);
13345
13345
  if (mn.delete(t), !!A) {
13346
13346
  if (A.at) {
13347
- var _ = Ae.isPoint(A.at) ? Is(t, A.at) : Sl(t, A.at);
13348
- if (!_)
13347
+ var k = Ae.isPoint(A.at) ? Is(t, A.at) : Sl(t, A.at);
13348
+ if (!k)
13349
13349
  return;
13350
- var T = y.range(t, _);
13351
- (!t.selection || !Z.equals(t.selection, T)) && J.select(t, _);
13350
+ var T = y.range(t, k);
13351
+ (!t.selection || !Z.equals(t.selection, T)) && J.select(t, k);
13352
13352
  }
13353
13353
  A.run();
13354
13354
  }
@@ -13362,7 +13362,7 @@ function C1(e) {
13362
13362
  affinity: "forward"
13363
13363
  });
13364
13364
  nn.set(t, t.marks), x1("flush", mn.get(t), Ct.get(t));
13365
- for (var _ = F(), T; T = (N = Ct.get(t)) === null || N === void 0 ? void 0 : N[0]; ) {
13365
+ for (var k = F(), T; T = (N = Ct.get(t)) === null || N === void 0 ? void 0 : N[0]; ) {
13366
13366
  var N, q, U = $t.get(t);
13367
13367
  U !== void 0 && ($t.delete(t), t.marks = U), U && u === !1 && (u = null);
13368
13368
  var Y = v1(T);
@@ -13371,14 +13371,14 @@ function C1(e) {
13371
13371
  id: X
13372
13372
  } = $;
13373
13373
  return X !== T.id;
13374
- })), h1(t, T) || (_ = !1, mn.delete(t), nn.delete(t), i = "action", pn.delete(t), n.cancel(), r.cancel(), A == null || A.unref());
13374
+ })), h1(t, T) || (k = !1, mn.delete(t), nn.delete(t), i = "action", pn.delete(t), n.cancel(), r.cancel(), A == null || A.unref());
13375
13375
  }
13376
13376
  var ie = A == null ? void 0 : A.unref();
13377
13377
  if (ie && !pn.get(t) && (!t.selection || !Z.equals(ie, t.selection)) && J.select(t, ie), E()) {
13378
13378
  h();
13379
13379
  return;
13380
13380
  }
13381
- _ && n(), n.flush(), r.flush(), d();
13381
+ k && n(), n.flush(), r.flush(), d();
13382
13382
  var D = nn.get(t);
13383
13383
  nn.delete(t), D !== void 0 && (t.marks = D, t.onChange());
13384
13384
  }, p = (A) => {
@@ -13388,28 +13388,28 @@ function C1(e) {
13388
13388
  }, g = (A) => {
13389
13389
  Fn.set(t, !0), a && (clearTimeout(a), a = null);
13390
13390
  }, f = function() {
13391
- var _ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, T = Ps.get(t);
13391
+ var k = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, T = Ps.get(t);
13392
13392
  if (T) {
13393
- if (F() || _) {
13393
+ if (F() || k) {
13394
13394
  T.style.display = "none";
13395
13395
  return;
13396
13396
  }
13397
13397
  T.style.removeProperty("display");
13398
13398
  }
13399
- }, b = (A, _) => {
13399
+ }, b = (A, k) => {
13400
13400
  var T, N = (T = Ct.get(t)) !== null && T !== void 0 ? T : [];
13401
13401
  Ct.set(t, N);
13402
13402
  var q = oe.leaf(t, A), U = N.findIndex((D) => P.equals(D.path, A));
13403
13403
  if (U < 0) {
13404
- var Y = ff(q.text, _);
13404
+ var Y = ff(q.text, k);
13405
13405
  Y && N.push({
13406
13406
  path: A,
13407
- diff: _,
13407
+ diff: k,
13408
13408
  id: l++
13409
13409
  }), f();
13410
13410
  return;
13411
13411
  }
13412
- var ie = g1(q.text, N[U].diff, _);
13412
+ var ie = g1(q.text, N[U].diff, k);
13413
13413
  if (!ie) {
13414
13414
  N.splice(U, 1), f();
13415
13415
  return;
@@ -13417,16 +13417,16 @@ function C1(e) {
13417
13417
  N[U] = bi(bi({}, N[U]), {}, {
13418
13418
  diff: ie
13419
13419
  });
13420
- }, v = function(_) {
13420
+ }, v = function(k) {
13421
13421
  var {
13422
13422
  at: T
13423
13423
  } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
13424
13424
  u = !1, pn.delete(t), n.cancel(), r.cancel(), E() && m(), mn.set(t, {
13425
13425
  at: T,
13426
- run: _
13426
+ run: k
13427
13427
  }), o = setTimeout(m);
13428
13428
  }, x = (A) => {
13429
- var _;
13429
+ var k;
13430
13430
  s && (clearTimeout(s), s = null);
13431
13431
  var {
13432
13432
  inputType: T
@@ -13441,12 +13441,12 @@ function C1(e) {
13441
13441
  if (!N && ie && (U = ie, N = te.toSlateRange(t, ie, {
13442
13442
  exactMatch: !1,
13443
13443
  suppressThrow: !0
13444
- })), N = (_ = N) !== null && _ !== void 0 ? _ : t.selection, !!N) {
13444
+ })), N = (k = N) !== null && k !== void 0 ? k : t.selection, !!N) {
13445
13445
  var D = !0;
13446
13446
  if (T.startsWith("delete")) {
13447
13447
  if (Z.isExpanded(N)) {
13448
- var [$, X] = Z.edges(N), k = oe.leaf(t, $.path);
13449
- if (k.text.length === $.offset && X.offset === 0) {
13448
+ var [$, X] = Z.edges(N), _ = oe.leaf(t, $.path);
13449
+ if (_.text.length === $.offset && X.offset === 0) {
13450
13450
  var B = y.next(t, {
13451
13451
  at: $.path,
13452
13452
  match: me.isText
@@ -13626,10 +13626,10 @@ function C1(e) {
13626
13626
  }, w = () => E() || F(), C = () => i, S = (A) => {
13627
13627
  pn.set(t, A), s && (clearTimeout(s), s = null);
13628
13628
  var {
13629
- selection: _
13629
+ selection: k
13630
13630
  } = t;
13631
13631
  if (A) {
13632
- var T = !_ || !P.equals(_.anchor.path, A.anchor.path), N = !_ || !P.equals(_.anchor.path.slice(0, -1), A.anchor.path.slice(0, -1));
13632
+ var T = !k || !P.equals(k.anchor.path, A.anchor.path), N = !k || !P.equals(k.anchor.path.slice(0, -1), A.anchor.path.slice(0, -1));
13633
13633
  (T && u || N) && (u = !1), (T || F()) && (s = setTimeout(m, D1));
13634
13634
  }
13635
13635
  }, L = () => {
@@ -13640,8 +13640,8 @@ function C1(e) {
13640
13640
  E() || (o = setTimeout(m));
13641
13641
  }, M = (A) => {
13642
13642
  if (!(F() || E()) && A.some((T) => ko(t, T, A))) {
13643
- var _;
13644
- (_ = sf.get(t)) === null || _ === void 0 || _();
13643
+ var k;
13644
+ (k = sf.get(t)) === null || k === void 0 || k();
13645
13645
  }
13646
13646
  };
13647
13647
  return {
@@ -14351,7 +14351,7 @@ var sD = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, vf(e)), oD =
14351
14351
  };
14352
14352
  }
14353
14353
  });
14354
- var _ = Re((B) => {
14354
+ var k = Re((B) => {
14355
14355
  if (C(), !s && te.hasEditableTarget(f, B.target) && !dD(B, i)) {
14356
14356
  var I;
14357
14357
  if (z.current)
@@ -14493,8 +14493,8 @@ var sD = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, vf(e)), oD =
14493
14493
  Pr.delete(f), V && (!f.selection || !Z.equals(f.selection, V)) && J.select(f, V);
14494
14494
  }
14495
14495
  }, [f, M, C, i, s, A]), T = Re((B) => {
14496
- B == null ? (M.cancel(), A.cancel(), Si.delete(f), Sn.delete(f), x.current && fn && x.current.removeEventListener("beforeinput", _)) : fn && B.addEventListener("beforeinput", _), x.current = B;
14497
- }, [M, A, f, _]);
14496
+ B == null ? (M.cancel(), A.cancel(), Si.delete(f), Sn.delete(f), x.current && fn && x.current.removeEventListener("beforeinput", k)) : fn && B.addEventListener("beforeinput", k), x.current = B;
14497
+ }, [M, A, f, k]);
14498
14498
  Zr(() => {
14499
14499
  var B = te.getWindow(f);
14500
14500
  return B.document.addEventListener("selectionchange", A), () => {
@@ -14529,10 +14529,10 @@ var sD = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, vf(e)), oD =
14529
14529
  loose: !0
14530
14530
  })) {
14531
14531
  j.hasMarkPlaceholder = !0;
14532
- var k = Object.fromEntries(Object.keys(X).map((B) => [B, null]));
14532
+ var _ = Object.fromEntries(Object.keys(X).map((B) => [B, null]));
14533
14533
  N.push(Ht(Ht(Ht({
14534
14534
  [of]: !0
14535
- }, k), ie), {}, {
14535
+ }, _), ie), {}, {
14536
14536
  anchor: D,
14537
14537
  focus: D
14538
14538
  }));
@@ -15152,8 +15152,8 @@ var bD = function(t) {
15152
15152
  }
15153
15153
  for (var [M, A] of h)
15154
15154
  if (M.current) {
15155
- var [_] = y.node(r, M.current);
15156
- Yi.set(_, A);
15155
+ var [k] = y.node(r, M.current);
15156
+ Yi.set(k, A);
15157
15157
  }
15158
15158
  }, r.setFragmentData = (u) => {
15159
15159
  var {
@@ -17255,10 +17255,10 @@ function gx(e, t, n) {
17255
17255
  return C.enter("codeFencedFence"), Le(N) ? Ke(C, A, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(N) : A(N);
17256
17256
  }
17257
17257
  function A(N) {
17258
- return N === o ? (C.enter("codeFencedFenceSequence"), _(N)) : L(N);
17258
+ return N === o ? (C.enter("codeFencedFenceSequence"), k(N)) : L(N);
17259
17259
  }
17260
- function _(N) {
17261
- return N === o ? (j++, C.consume(N), _) : j >= s ? (C.exit("codeFencedFenceSequence"), Le(N) ? Ke(C, T, "whitespace")(N) : T(N)) : L(N);
17260
+ function k(N) {
17261
+ return N === o ? (j++, C.consume(N), k) : j >= s ? (C.exit("codeFencedFenceSequence"), Le(N) ? Ke(C, T, "whitespace")(N) : T(N)) : L(N);
17262
17262
  }
17263
17263
  function T(N) {
17264
17264
  return N === null || we(N) ? (C.exit("codeFencedFence"), S(N)) : L(N);
@@ -17903,104 +17903,104 @@ function Vx(e, t, n) {
17903
17903
  const r = this;
17904
17904
  let i, a, s, o, l;
17905
17905
  return u;
17906
- function u(k) {
17907
- return d(k);
17906
+ function u(_) {
17907
+ return d(_);
17908
17908
  }
17909
- function d(k) {
17910
- return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(k), h;
17909
+ function d(_) {
17910
+ return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(_), h;
17911
17911
  }
17912
- function h(k) {
17913
- return k === 33 ? (e.consume(k), m) : k === 47 ? (e.consume(k), a = !0, f) : k === 63 ? (e.consume(k), i = 3, r.interrupt ? t : D) : Kt(k) ? (e.consume(k), s = String.fromCharCode(k), b) : n(k);
17912
+ function h(_) {
17913
+ return _ === 33 ? (e.consume(_), m) : _ === 47 ? (e.consume(_), a = !0, f) : _ === 63 ? (e.consume(_), i = 3, r.interrupt ? t : D) : Kt(_) ? (e.consume(_), s = String.fromCharCode(_), b) : n(_);
17914
17914
  }
17915
- function m(k) {
17916
- return k === 45 ? (e.consume(k), i = 2, p) : k === 91 ? (e.consume(k), i = 5, o = 0, g) : Kt(k) ? (e.consume(k), i = 4, r.interrupt ? t : D) : n(k);
17915
+ function m(_) {
17916
+ return _ === 45 ? (e.consume(_), i = 2, p) : _ === 91 ? (e.consume(_), i = 5, o = 0, g) : Kt(_) ? (e.consume(_), i = 4, r.interrupt ? t : D) : n(_);
17917
17917
  }
17918
- function p(k) {
17919
- return k === 45 ? (e.consume(k), r.interrupt ? t : D) : n(k);
17918
+ function p(_) {
17919
+ return _ === 45 ? (e.consume(_), r.interrupt ? t : D) : n(_);
17920
17920
  }
17921
- function g(k) {
17921
+ function g(_) {
17922
17922
  const B = "CDATA[";
17923
- return k === B.charCodeAt(o++) ? (e.consume(k), o === B.length ? r.interrupt ? t : A : g) : n(k);
17923
+ return _ === B.charCodeAt(o++) ? (e.consume(_), o === B.length ? r.interrupt ? t : A : g) : n(_);
17924
17924
  }
17925
- function f(k) {
17926
- return Kt(k) ? (e.consume(k), s = String.fromCharCode(k), b) : n(k);
17925
+ function f(_) {
17926
+ return Kt(_) ? (e.consume(_), s = String.fromCharCode(_), b) : n(_);
17927
17927
  }
17928
- function b(k) {
17929
- if (k === null || k === 47 || k === 62 || _t(k)) {
17930
- const B = k === 47, I = s.toLowerCase();
17931
- return !B && !a && hc.includes(I) ? (i = 1, r.interrupt ? t(k) : A(k)) : zx.includes(s.toLowerCase()) ? (i = 6, B ? (e.consume(k), v) : r.interrupt ? t(k) : A(k)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(k) : a ? x(k) : E(k));
17928
+ function b(_) {
17929
+ if (_ === null || _ === 47 || _ === 62 || _t(_)) {
17930
+ const B = _ === 47, I = s.toLowerCase();
17931
+ return !B && !a && hc.includes(I) ? (i = 1, r.interrupt ? t(_) : A(_)) : zx.includes(s.toLowerCase()) ? (i = 6, B ? (e.consume(_), v) : r.interrupt ? t(_) : A(_)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(_) : a ? x(_) : E(_));
17932
17932
  }
17933
- return k === 45 || Lt(k) ? (e.consume(k), s += String.fromCharCode(k), b) : n(k);
17933
+ return _ === 45 || Lt(_) ? (e.consume(_), s += String.fromCharCode(_), b) : n(_);
17934
17934
  }
17935
- function v(k) {
17936
- return k === 62 ? (e.consume(k), r.interrupt ? t : A) : n(k);
17935
+ function v(_) {
17936
+ return _ === 62 ? (e.consume(_), r.interrupt ? t : A) : n(_);
17937
17937
  }
17938
- function x(k) {
17939
- return Le(k) ? (e.consume(k), x) : z(k);
17938
+ function x(_) {
17939
+ return Le(_) ? (e.consume(_), x) : z(_);
17940
17940
  }
17941
- function E(k) {
17942
- return k === 47 ? (e.consume(k), z) : k === 58 || k === 95 || Kt(k) ? (e.consume(k), F) : Le(k) ? (e.consume(k), E) : z(k);
17941
+ function E(_) {
17942
+ return _ === 47 ? (e.consume(_), z) : _ === 58 || _ === 95 || Kt(_) ? (e.consume(_), F) : Le(_) ? (e.consume(_), E) : z(_);
17943
17943
  }
17944
- function F(k) {
17945
- return k === 45 || k === 46 || k === 58 || k === 95 || Lt(k) ? (e.consume(k), F) : w(k);
17944
+ function F(_) {
17945
+ return _ === 45 || _ === 46 || _ === 58 || _ === 95 || Lt(_) ? (e.consume(_), F) : w(_);
17946
17946
  }
17947
- function w(k) {
17948
- return k === 61 ? (e.consume(k), C) : Le(k) ? (e.consume(k), w) : E(k);
17947
+ function w(_) {
17948
+ return _ === 61 ? (e.consume(_), C) : Le(_) ? (e.consume(_), w) : E(_);
17949
17949
  }
17950
- function C(k) {
17951
- return k === null || k === 60 || k === 61 || k === 62 || k === 96 ? n(k) : k === 34 || k === 39 ? (e.consume(k), l = k, S) : Le(k) ? (e.consume(k), C) : L(k);
17950
+ function C(_) {
17951
+ return _ === null || _ === 60 || _ === 61 || _ === 62 || _ === 96 ? n(_) : _ === 34 || _ === 39 ? (e.consume(_), l = _, S) : Le(_) ? (e.consume(_), C) : L(_);
17952
17952
  }
17953
- function S(k) {
17954
- return k === l ? (e.consume(k), l = null, j) : k === null || we(k) ? n(k) : (e.consume(k), S);
17953
+ function S(_) {
17954
+ return _ === l ? (e.consume(_), l = null, j) : _ === null || we(_) ? n(_) : (e.consume(_), S);
17955
17955
  }
17956
- function L(k) {
17957
- return k === null || k === 34 || k === 39 || k === 47 || k === 60 || k === 61 || k === 62 || k === 96 || _t(k) ? w(k) : (e.consume(k), L);
17956
+ function L(_) {
17957
+ return _ === null || _ === 34 || _ === 39 || _ === 47 || _ === 60 || _ === 61 || _ === 62 || _ === 96 || _t(_) ? w(_) : (e.consume(_), L);
17958
17958
  }
17959
- function j(k) {
17960
- return k === 47 || k === 62 || Le(k) ? E(k) : n(k);
17959
+ function j(_) {
17960
+ return _ === 47 || _ === 62 || Le(_) ? E(_) : n(_);
17961
17961
  }
17962
- function z(k) {
17963
- return k === 62 ? (e.consume(k), M) : n(k);
17962
+ function z(_) {
17963
+ return _ === 62 ? (e.consume(_), M) : n(_);
17964
17964
  }
17965
- function M(k) {
17966
- return k === null || we(k) ? A(k) : Le(k) ? (e.consume(k), M) : n(k);
17965
+ function M(_) {
17966
+ return _ === null || we(_) ? A(_) : Le(_) ? (e.consume(_), M) : n(_);
17967
17967
  }
17968
- function A(k) {
17969
- return k === 45 && i === 2 ? (e.consume(k), q) : k === 60 && i === 1 ? (e.consume(k), U) : k === 62 && i === 4 ? (e.consume(k), $) : k === 63 && i === 3 ? (e.consume(k), D) : k === 93 && i === 5 ? (e.consume(k), ie) : we(k) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(Wx, X, _)(k)) : k === null || we(k) ? (e.exit("htmlFlowData"), _(k)) : (e.consume(k), A);
17968
+ function A(_) {
17969
+ return _ === 45 && i === 2 ? (e.consume(_), q) : _ === 60 && i === 1 ? (e.consume(_), U) : _ === 62 && i === 4 ? (e.consume(_), $) : _ === 63 && i === 3 ? (e.consume(_), D) : _ === 93 && i === 5 ? (e.consume(_), ie) : we(_) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(Wx, X, k)(_)) : _ === null || we(_) ? (e.exit("htmlFlowData"), k(_)) : (e.consume(_), A);
17970
17970
  }
17971
- function _(k) {
17972
- return e.check(Ux, T, X)(k);
17971
+ function k(_) {
17972
+ return e.check(Ux, T, X)(_);
17973
17973
  }
17974
- function T(k) {
17975
- return e.enter("lineEnding"), e.consume(k), e.exit("lineEnding"), N;
17974
+ function T(_) {
17975
+ return e.enter("lineEnding"), e.consume(_), e.exit("lineEnding"), N;
17976
17976
  }
17977
- function N(k) {
17978
- return k === null || we(k) ? _(k) : (e.enter("htmlFlowData"), A(k));
17977
+ function N(_) {
17978
+ return _ === null || we(_) ? k(_) : (e.enter("htmlFlowData"), A(_));
17979
17979
  }
17980
- function q(k) {
17981
- return k === 45 ? (e.consume(k), D) : A(k);
17980
+ function q(_) {
17981
+ return _ === 45 ? (e.consume(_), D) : A(_);
17982
17982
  }
17983
- function U(k) {
17984
- return k === 47 ? (e.consume(k), s = "", Y) : A(k);
17983
+ function U(_) {
17984
+ return _ === 47 ? (e.consume(_), s = "", Y) : A(_);
17985
17985
  }
17986
- function Y(k) {
17987
- if (k === 62) {
17986
+ function Y(_) {
17987
+ if (_ === 62) {
17988
17988
  const B = s.toLowerCase();
17989
- return hc.includes(B) ? (e.consume(k), $) : A(k);
17989
+ return hc.includes(B) ? (e.consume(_), $) : A(_);
17990
17990
  }
17991
- return Kt(k) && s.length < 8 ? (e.consume(k), s += String.fromCharCode(k), Y) : A(k);
17991
+ return Kt(_) && s.length < 8 ? (e.consume(_), s += String.fromCharCode(_), Y) : A(_);
17992
17992
  }
17993
- function ie(k) {
17994
- return k === 93 ? (e.consume(k), D) : A(k);
17993
+ function ie(_) {
17994
+ return _ === 93 ? (e.consume(_), D) : A(_);
17995
17995
  }
17996
- function D(k) {
17997
- return k === 62 ? (e.consume(k), $) : k === 45 && i === 2 ? (e.consume(k), D) : A(k);
17996
+ function D(_) {
17997
+ return _ === 62 ? (e.consume(_), $) : _ === 45 && i === 2 ? (e.consume(_), D) : A(_);
17998
17998
  }
17999
- function $(k) {
18000
- return k === null || we(k) ? (e.exit("htmlFlowData"), X(k)) : (e.consume(k), $);
17999
+ function $(_) {
18000
+ return _ === null || we(_) ? (e.exit("htmlFlowData"), X(_)) : (e.consume(_), $);
18001
18001
  }
18002
- function X(k) {
18003
- return e.exit("htmlFlow"), t(k);
18002
+ function X(_) {
18003
+ return e.exit("htmlFlow"), t(_);
18004
18004
  }
18005
18005
  }
18006
18006
  function Kx(e, t, n) {
@@ -18092,10 +18092,10 @@ function Gx(e, t, n) {
18092
18092
  return D === 61 ? (e.consume(D), A) : we(D) ? (s = M, U(D)) : Le(D) ? (e.consume(D), M) : j(D);
18093
18093
  }
18094
18094
  function A(D) {
18095
- return D === null || D === 60 || D === 61 || D === 62 || D === 96 ? n(D) : D === 34 || D === 39 ? (e.consume(D), i = D, _) : we(D) ? (s = A, U(D)) : Le(D) ? (e.consume(D), A) : (e.consume(D), T);
18095
+ return D === null || D === 60 || D === 61 || D === 62 || D === 96 ? n(D) : D === 34 || D === 39 ? (e.consume(D), i = D, k) : we(D) ? (s = A, U(D)) : Le(D) ? (e.consume(D), A) : (e.consume(D), T);
18096
18096
  }
18097
- function _(D) {
18098
- return D === i ? (e.consume(D), i = void 0, N) : D === null ? n(D) : we(D) ? (s = _, U(D)) : (e.consume(D), _);
18097
+ function k(D) {
18098
+ return D === i ? (e.consume(D), i = void 0, N) : D === null ? n(D) : we(D) ? (s = k, U(D)) : (e.consume(D), k);
18099
18099
  }
18100
18100
  function T(D) {
18101
18101
  return D === null || D === 34 || D === 39 || D === 60 || D === 61 || D === 96 ? n(D) : D === 47 || D === 62 || _t(D) ? j(D) : (e.consume(D), T);
@@ -18614,11 +18614,11 @@ function Fw(e, t, n) {
18614
18614
  return Aw(s, M);
18615
18615
  }
18616
18616
  function g() {
18617
- const { line: M, column: A, offset: _, _index: T, _bufferIndex: N } = r;
18617
+ const { line: M, column: A, offset: k, _index: T, _bufferIndex: N } = r;
18618
18618
  return {
18619
18619
  line: M,
18620
18620
  column: A,
18621
- offset: _,
18621
+ offset: k,
18622
18622
  _index: T,
18623
18623
  _bufferIndex: N
18624
18624
  };
@@ -18644,8 +18644,8 @@ function Fw(e, t, n) {
18644
18644
  we(M) ? (r.line++, r.column = 1, r.offset += M === -3 ? 2 : 1, z()) : M !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === s[r._index].length && (r._bufferIndex = -1, r._index++)), u.previous = M;
18645
18645
  }
18646
18646
  function E(M, A) {
18647
- const _ = A || {};
18648
- return _.type = M, _.start = g(), u.events.push(["enter", _, u]), o.push(_), _;
18647
+ const k = A || {};
18648
+ return k.type = M, k.start = g(), u.events.push(["enter", k, u]), o.push(k), k;
18649
18649
  }
18650
18650
  function F(M) {
18651
18651
  const A = o.pop();
@@ -18658,8 +18658,8 @@ function Fw(e, t, n) {
18658
18658
  A.restore();
18659
18659
  }
18660
18660
  function S(M, A) {
18661
- return _;
18662
- function _(T, N, q) {
18661
+ return k;
18662
+ function k(T, N, q) {
18663
18663
  let U, Y, ie, D;
18664
18664
  return Array.isArray(T) ? X(T) : "tokenize" in T ? (
18665
18665
  // @ts-expect-error Looks like a construct.
@@ -18678,9 +18678,9 @@ function Fw(e, t, n) {
18678
18678
  }
18679
18679
  }
18680
18680
  function X(R) {
18681
- return U = R, Y = 0, R.length === 0 ? q : k(R[Y]);
18681
+ return U = R, Y = 0, R.length === 0 ? q : _(R[Y]);
18682
18682
  }
18683
- function k(R) {
18683
+ function _(R) {
18684
18684
  return W;
18685
18685
  function W(ee) {
18686
18686
  return D = j(), ie = R, R.partial || (u.currentConstruct = R), R.name && u.parser.constructs.disable.null.includes(R.name) ? I() : R.tokenize.call(
@@ -18698,7 +18698,7 @@ function Fw(e, t, n) {
18698
18698
  return M(ie, D), N;
18699
18699
  }
18700
18700
  function I(R) {
18701
- return D.restore(), ++Y < U.length ? k(U[Y]) : q;
18701
+ return D.restore(), ++Y < U.length ? _(U[Y]) : q;
18702
18702
  }
18703
18703
  }
18704
18704
  }
@@ -18711,13 +18711,13 @@ function Fw(e, t, n) {
18711
18711
  ), M.resolveTo && (u.events = M.resolveTo(u.events, u));
18712
18712
  }
18713
18713
  function j() {
18714
- const M = g(), A = u.previous, _ = u.currentConstruct, T = u.events.length, N = Array.from(o);
18714
+ const M = g(), A = u.previous, k = u.currentConstruct, T = u.events.length, N = Array.from(o);
18715
18715
  return {
18716
18716
  restore: q,
18717
18717
  from: T
18718
18718
  };
18719
18719
  function q() {
18720
- r = M, u.previous = A, u.currentConstruct = _, u.events.length = T, o = N, z();
18720
+ r = M, u.previous = A, u.currentConstruct = k, u.events.length = T, o = N, z();
18721
18721
  }
18722
18722
  }
18723
18723
  function z() {
@@ -18968,7 +18968,7 @@ function Kw(e) {
18968
18968
  listOrdered: a(Ge, h),
18969
18969
  listUnordered: a(Ge),
18970
18970
  paragraph: a(rt),
18971
- reference: k,
18971
+ reference: _,
18972
18972
  referenceString: s,
18973
18973
  resourceDestinationString: s,
18974
18974
  resourceTitleString: s,
@@ -19003,7 +19003,7 @@ function Kw(e) {
19003
19003
  emphasis: l(),
19004
19004
  hardBreakEscape: l(A),
19005
19005
  hardBreakTrailing: l(A),
19006
- htmlFlow: l(_),
19006
+ htmlFlow: l(k),
19007
19007
  htmlFlowData: z,
19008
19008
  htmlText: l(T),
19009
19009
  htmlTextData: z,
@@ -19269,7 +19269,7 @@ function Kw(e) {
19269
19269
  function A() {
19270
19270
  this.data.atHardBreak = !0;
19271
19271
  }
19272
- function _() {
19272
+ function k() {
19273
19273
  const V = this.resume(), se = this.stack[this.stack.length - 1];
19274
19274
  se.value = V;
19275
19275
  }
@@ -19322,7 +19322,7 @@ function Kw(e) {
19322
19322
  function X() {
19323
19323
  this.data.inReference = void 0;
19324
19324
  }
19325
- function k() {
19325
+ function _() {
19326
19326
  this.data.referenceType = "collapsed";
19327
19327
  }
19328
19328
  function B(V) {
@@ -20512,7 +20512,7 @@ const EC = ({
20512
20512
  lastKey: z,
20513
20513
  hasInteracted: M,
20514
20514
  hasLoaded: A,
20515
- mentionPopover: _
20515
+ mentionPopover: k
20516
20516
  } = E, T = ($) => {
20517
20517
  const X = $ || Gi[0];
20518
20518
  $ && F([{ type: "tabbableOption", value: X }]);
@@ -20546,7 +20546,7 @@ const EC = ({
20546
20546
  de(() => {
20547
20547
  const $ = (X) => {
20548
20548
  var I;
20549
- const k = X, B = ((I = k == null ? void 0 : k.detail) == null ? void 0 : I.id) || null;
20549
+ const _ = X, B = ((I = _ == null ? void 0 : _.detail) == null ? void 0 : I.id) || null;
20550
20550
  B && ie(B);
20551
20551
  };
20552
20552
  return window.addEventListener("focusEditor", $), () => {
@@ -20563,22 +20563,22 @@ const EC = ({
20563
20563
  let X = An(C);
20564
20564
  if (X.includes("<")) {
20565
20565
  zr.prototype.escape = (B) => B;
20566
- const k = new zr();
20567
- k.addRule("br", {
20566
+ const _ = new zr();
20567
+ _.addRule("br", {
20568
20568
  filter: ["br"],
20569
20569
  replacement: (B) => B + `
20570
20570
 
20571
20571
  `
20572
- }), X = k.turndown(X);
20572
+ }), X = _.turndown(X);
20573
20573
  }
20574
20574
  o && o.mentions && (X = await Uc({
20575
20575
  text: X,
20576
20576
  template: `[${zs}{{name}}]({{id}})`,
20577
20577
  mentions: o.mentions,
20578
20578
  listMembers: m || (() => Promise.resolve([]))
20579
- })), Qw(X, (k) => {
20579
+ })), Qw(X, (_) => {
20580
20580
  F([
20581
- { type: "initialValue", value: k },
20581
+ { type: "initialValue", value: _ },
20582
20582
  { type: "editorKey", value: C.toString() }
20583
20583
  ]), setTimeout(() => {
20584
20584
  F([{ type: "stringValue", value: vc(Y) }]);
@@ -20601,8 +20601,8 @@ const EC = ({
20601
20601
  const D = Rc(() => {
20602
20602
  tC({
20603
20603
  editor: Y,
20604
- isShowing: _.show,
20605
- numberOfUsers: _.numberOfUsers,
20604
+ isShowing: k.show,
20605
+ numberOfUsers: k.numberOfUsers,
20606
20606
  listMembers: m,
20607
20607
  dispatch: F
20608
20608
  });
@@ -20626,9 +20626,9 @@ const EC = ({
20626
20626
  editor: Y,
20627
20627
  initialValue: S,
20628
20628
  onChange: ($) => {
20629
- if (Y.operations.some((k) => k.type !== "set_selection")) {
20630
- const k = rC($);
20631
- g(k), F([{ type: "stringValue", value: vc(Y) }]), M || F([{ type: "hasInteracted", value: !0 }]), D(), d && console.log({ serialized: k, json: $ });
20629
+ if (Y.operations.some((_) => _.type !== "set_selection")) {
20630
+ const _ = rC($);
20631
+ g(_), F([{ type: "stringValue", value: vc(Y) }]), M || F([{ type: "hasInteracted", value: !0 }]), D(), d && console.log({ serialized: _, json: $ });
20632
20632
  }
20633
20633
  },
20634
20634
  ...l,
@@ -20644,10 +20644,10 @@ const EC = ({
20644
20644
  tabIndex: 0,
20645
20645
  onKeyDown: ($) => {
20646
20646
  if ($.key === "Enter") {
20647
- _.show && ($.preventDefault(), $.stopPropagation(), If(Y, _, F, N));
20647
+ k.show && ($.preventDefault(), $.stopPropagation(), If(Y, k, F, N));
20648
20648
  const { selection: X } = Y;
20649
20649
  if (X) {
20650
- const k = Z.isCollapsed(X), [B, I] = y.node(Y, X, { depth: 1 });
20650
+ const _ = Z.isCollapsed(X), [B, I] = y.node(Y, X, { depth: 1 });
20651
20651
  let R = B, W = R.type;
20652
20652
  const ee = R.children[0];
20653
20653
  if (ee && [G.ol, G.ul].includes(ee.type) && (R = ee, W = ee.type), R && he.isElement(R) && W !== G.paragraph) {
@@ -20655,7 +20655,7 @@ const EC = ({
20655
20655
  $.stopPropagation(), $.preventDefault(), J.insertNodes(Y, v);
20656
20656
  return;
20657
20657
  }
20658
- if (k) {
20658
+ if (_) {
20659
20659
  const [H, ne] = y.parent(Y, X, {
20660
20660
  edge: "end"
20661
20661
  }), Q = H.type;
@@ -20684,20 +20684,20 @@ const EC = ({
20684
20684
  }
20685
20685
  }
20686
20686
  } else if ($.key === "Escape") {
20687
- if (_.show) {
20687
+ if (k.show) {
20688
20688
  $.preventDefault(), $.stopPropagation(), F([
20689
- { type: "mentionPopover", value: { ..._, show: !1 } }
20689
+ { type: "mentionPopover", value: { ...k, show: !1 } }
20690
20690
  ]);
20691
20691
  return;
20692
20692
  }
20693
- } else if (["ArrowUp", "ArrowDown"].includes($.key) && _.show) {
20693
+ } else if (["ArrowUp", "ArrowDown"].includes($.key) && k.show) {
20694
20694
  $.preventDefault(), $.stopPropagation();
20695
- const { selectedUser: X, possibleUsers: k } = _;
20695
+ const { selectedUser: X, possibleUsers: _ } = k;
20696
20696
  let B = $.key === "ArrowUp" ? X - 1 : X + 1;
20697
- B < 0 && (B = k.length - 1), B >= k.length + 1 && (B = 0), F([
20697
+ B < 0 && (B = _.length - 1), B >= _.length + 1 && (B = 0), F([
20698
20698
  {
20699
20699
  type: "mentionPopover",
20700
- value: { ..._, selectedUser: B }
20700
+ value: { ...k, selectedUser: B }
20701
20701
  }
20702
20702
  ]);
20703
20703
  }
@@ -20719,8 +20719,8 @@ const EC = ({
20719
20719
  anchor: j,
20720
20720
  focus: j
20721
20721
  });
20722
- } catch (k) {
20723
- const B = k.message;
20722
+ } catch (_) {
20723
+ const B = _.message;
20724
20724
  b(`Error focusing editor: ${B}`);
20725
20725
  }
20726
20726
  }
@@ -23154,7 +23154,7 @@ const nt = "discussion_form_", ma = ({
23154
23154
  showDivider: z = !1,
23155
23155
  showSuccessMessage: M = !0,
23156
23156
  showPostType: A = !1,
23157
- postCategories: _ = []
23157
+ postCategories: k = []
23158
23158
  } = i || {}, {
23159
23159
  onChange: T = () => {
23160
23160
  },
@@ -23174,12 +23174,13 @@ const nt = "discussion_form_", ma = ({
23174
23174
  props: X = {
23175
23175
  create: { projectNames: ["questions-answers"] }
23176
23176
  }
23177
- } = d, [k, B] = ue({
23177
+ } = d, [_, B] = ue({
23178
23178
  title: C && C.text || "",
23179
- body: w && w.text || S && S.text || ""
23179
+ body: w && w.text || S && S.text || "",
23180
+ categories: ""
23180
23181
  }), [I, R] = ue(l.error || !1), [W, ee] = ue(!1);
23181
23182
  if (de(() => {
23182
- u && !w && S && S !== k.body && B({ ...k, body: S.text || "" });
23183
+ u && !w && S && S !== _.body && B({ ..._, body: S.text || "" });
23183
23184
  }, [S]), v)
23184
23185
  return /* @__PURE__ */ c.jsx(
23185
23186
  zt,
@@ -23189,7 +23190,7 @@ const nt = "discussion_form_", ma = ({
23189
23190
  }
23190
23191
  );
23191
23192
  const H = (ve) => {
23192
- B({ ...k, body: ve }), T({ body: ve });
23193
+ B({ ..._, body: ve }), T({ body: ve });
23193
23194
  let Te;
23194
23195
  !g || !g.id ? Te = It(
23195
23196
  p.formatMessage,
@@ -23218,11 +23219,15 @@ const nt = "discussion_form_", ma = ({
23218
23219
  let Te;
23219
23220
  switch (n.type) {
23220
23221
  case "post":
23221
- Te = await N({ title: k.title, content: k.body });
23222
+ Te = await N({
23223
+ title: _.title,
23224
+ content: _.body,
23225
+ categories: _.categories
23226
+ });
23222
23227
  break;
23223
23228
  case "question":
23224
23229
  Te = await N({
23225
- title: k.body,
23230
+ title: _.body,
23226
23231
  authorId: g && g.id,
23227
23232
  ...X == null ? void 0 : X.create
23228
23233
  });
@@ -23230,20 +23235,20 @@ const nt = "discussion_form_", ma = ({
23230
23235
  case "response":
23231
23236
  Te = await N(
23232
23237
  { questionSlug: n.slugs.question },
23233
- { body: k.body, authorId: g && g.id, contentPath: ve }
23238
+ { body: _.body, authorId: g && g.id, contentPath: ve }
23234
23239
  );
23235
23240
  break;
23236
23241
  case "reply":
23237
23242
  Te = await N(
23238
23243
  { questionSlug: n.slugs.question, answerSlug: n.slugs.answer },
23239
- { body: k.body, authorId: g && g.id, contentPath: ve }
23244
+ { body: _.body, authorId: g && g.id, contentPath: ve }
23240
23245
  );
23241
23246
  break;
23242
23247
  default:
23243
23248
  break;
23244
23249
  }
23245
23250
  await qh(1e3), Y && await Y(Te), xi = setTimeout(() => {
23246
- B({ title: "", body: "" }), ee("submitted"), b(
23251
+ B({ title: "", body: "", categories: "" }), ee("submitted"), b(
23247
23252
  It(p.formatMessage, `${nt}success`, n.type, "action")
23248
23253
  );
23249
23254
  const Se = new Event(ut.DISCUSSION_FORM_SUBMITTED);
@@ -23268,7 +23273,7 @@ const nt = "discussion_form_", ma = ({
23268
23273
  xi = setTimeout(() => {
23269
23274
  R(!1), ee(!1), b("");
23270
23275
  }, 5e3);
23271
- }, De = !k.title || !Qo(k.title), ge = !k.body || !Qo(k.body);
23276
+ }, De = !_.title || !Qo(_.title), ge = !_.body || !Qo(_.body);
23272
23277
  let Fe = ge;
23273
23278
  C && (Fe = De && ge);
23274
23279
  const Ne = W === "submitting", Pe = [
@@ -23285,7 +23290,7 @@ const nt = "discussion_form_", ma = ({
23285
23290
  component: EC,
23286
23291
  props: {
23287
23292
  id: `${ne}-input`,
23288
- value: W === "submitting" && !I ? "" : k.body,
23293
+ value: W === "submitting" && !I ? "" : _.body,
23289
23294
  placeholder: a || It(
23290
23295
  p.formatMessage,
23291
23296
  `${nt}placeholder`,
@@ -23322,7 +23327,7 @@ const nt = "discussion_form_", ma = ({
23322
23327
  },
23323
23328
  className: "post-type filters",
23324
23329
  label: p.formatMessage({ id: `${nt}postType_label` }),
23325
- options: _.map((ve) => ({
23330
+ options: k.map((ve) => ({
23326
23331
  id: ve.slug,
23327
23332
  label: ve.name
23328
23333
  })),
@@ -23333,7 +23338,7 @@ const nt = "discussion_form_", ma = ({
23333
23338
  ],
23334
23339
  functions: {
23335
23340
  onChange: (ve) => {
23336
- T({ postType: ve });
23341
+ B({ ..._, categories: ve }), T({ postType: ve });
23337
23342
  }
23338
23343
  }
23339
23344
  }), C && Pe.unshift({
@@ -23346,7 +23351,7 @@ const nt = "discussion_form_", ma = ({
23346
23351
  placeholder: p.formatMessage({ id: `${nt}titleField_placeholder` }),
23347
23352
  functions: {
23348
23353
  onChange: (ve) => {
23349
- B({ ...k, title: ve }), T({ title: ve });
23354
+ B({ ..._, title: ve }), T({ title: ve });
23350
23355
  }
23351
23356
  },
23352
23357
  validation: [
@@ -23357,7 +23362,7 @@ const nt = "discussion_form_", ma = ({
23357
23362
  ]
23358
23363
  });
23359
23364
  let He = !g || !g.id || !r || Fe || Ne;
23360
- return w && (C ? He = He || k.body === w.text && k.title === C.text : He = He || k.body === w.text), /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
23365
+ return w && (C ? He = He || _.body === w.text && _.title === C.text : He = He || _.body === w.text), /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
23361
23366
  /* @__PURE__ */ c.jsxs(
23362
23367
  Ln,
23363
23368
  {
@@ -23372,9 +23377,9 @@ const nt = "discussion_form_", ma = ({
23372
23377
  shouldShowCancelButton: w && !Ne || l.cancel
23373
23378
  },
23374
23379
  functions: {
23375
- onSuccess: async () => {
23380
+ onSuccess: async (ve) => {
23376
23381
  if (w) {
23377
- ee("submitting"), q(k);
23382
+ ee("submitting"), q(_);
23378
23383
  return;
23379
23384
  }
23380
23385
  await ce();
@@ -23406,7 +23411,7 @@ const nt = "discussion_form_", ma = ({
23406
23411
  className: "gtm-trackable",
23407
23412
  "data-gtm-event-context": m,
23408
23413
  "data-gtm-event-type": `cancel-${n.type}-click`,
23409
- disabled: !l.cancel && (!g || !g.id || !k.body),
23414
+ disabled: !l.cancel && (!g || !g.id || !_.body),
23410
23415
  text: o != null && o.cancel ? o == null ? void 0 : o.cancel : p.formatMessage({ id: `${nt}cancel` })
23411
23416
  },
23412
23417
  gtm: { context: m, event: `${n.type}-form` },
@@ -23565,7 +23570,7 @@ const XC = ({
23565
23570
  ds = setTimeout(() => {
23566
23571
  v([{ type: "showLikers", value: !1 }]);
23567
23572
  }, 500);
23568
- }, _ = () => {
23573
+ }, k = () => {
23569
23574
  ds && clearTimeout(ds);
23570
23575
  };
23571
23576
  return re.createElement(
@@ -23576,7 +23581,7 @@ const XC = ({
23576
23581
  T.key === "Escape" && v([{ type: "showLikers", value: !1 }]);
23577
23582
  },
23578
23583
  onMouseEnter: () => {
23579
- _(), v([{ type: "showLikers", value: !0 }]);
23584
+ k(), v([{ type: "showLikers", value: !0 }]);
23580
23585
  },
23581
23586
  onMouseLeave: () => {
23582
23587
  A();
@@ -23625,12 +23630,12 @@ const XC = ({
23625
23630
  element: "button",
23626
23631
  className: "tertiary small icon navigation_arrow",
23627
23632
  onFocus: () => {
23628
- _();
23633
+ k();
23629
23634
  },
23630
23635
  onBlur: () => A,
23631
23636
  onClick: (T) => {
23632
23637
  var q;
23633
- T.preventDefault(), T.stopPropagation(), _(), v([{ type: "showLikers", value: !0 }]);
23638
+ T.preventDefault(), T.stopPropagation(), k(), v([{ type: "showLikers", value: !0 }]);
23634
23639
  const N = (q = T.currentTarget.nextSibling) == null ? void 0 : q.childNodes[0];
23635
23640
  if (N) {
23636
23641
  const U = N.querySelector(
@@ -23669,7 +23674,7 @@ const XC = ({
23669
23674
  href: T.id ? `/profiles/${T.id}` : void 0,
23670
23675
  gtmContext: "Likes",
23671
23676
  gtmType: "liked-name-click",
23672
- onFocus: () => _(),
23677
+ onFocus: () => k(),
23673
23678
  onKeyDown: L,
23674
23679
  ...q,
23675
23680
  children: T.name ? T.name : /* @__PURE__ */ c.jsx("span", { className: "deleted-user", children: g.formatMessage({ id: "member_deleted" }) })
@@ -23681,7 +23686,7 @@ const XC = ({
23681
23686
  {
23682
23687
  variant: "tertiary",
23683
23688
  onClick: () => {
23684
- _(), A(), v([{ type: "showLikesModal", value: !0 }]);
23689
+ k(), A(), v([{ type: "showLikesModal", value: !0 }]);
23685
23690
  },
23686
23691
  onKeyDown: L,
23687
23692
  children: g.formatMessage({ id: "discussion_likes_showAll" })
@@ -23768,10 +23773,12 @@ function Gf(e) {
23768
23773
  }
23769
23774
  };
23770
23775
  }
23771
- function iE({ title: e, content: t }) {
23772
- return {
23776
+ function iE({ title: e, content: t, categories: n }) {
23777
+ const r = [];
23778
+ return n && !["no-category", ""].includes(n) && r.push(n), {
23773
23779
  title: e,
23774
23780
  content: t,
23781
+ categories: r,
23775
23782
  id: Yf,
23776
23783
  time: (/* @__PURE__ */ new Date()).toISOString(),
23777
23784
  verb: eE
@@ -24382,7 +24389,7 @@ const rk = ({
24382
24389
  )
24383
24390
  );
24384
24391
  }, [h, i]);
24385
- const [_, T] = ue(null), N = () => {
24392
+ const [k, T] = ue(null), N = () => {
24386
24393
  T(v.length), E();
24387
24394
  };
24388
24395
  return th(), x ? /* @__PURE__ */ c.jsx(In, { variant: "error", text: x.message }) : /* @__PURE__ */ c.jsxs("section", { children: [
@@ -24468,7 +24475,7 @@ const rk = ({
24468
24475
  latest_reactions: D,
24469
24476
  reaction_counts: $,
24470
24477
  mentioned_users: X,
24471
- total_replies: k
24478
+ total_replies: _
24472
24479
  } = q, B = (((ee = D == null ? void 0 : D.like) == null ? void 0 : ee.length) || 0) > 0, I = (((H = ie == null ? void 0 : ie.like) == null ? void 0 : H.length) || 0) > 0, R = I ? ie == null ? void 0 : ie.like[0].id : "", W = B ? (ne = D == null ? void 0 : D.like) == null ? void 0 : ne.map((ce) => {
24473
24480
  var Q, De, ge;
24474
24481
  return {
@@ -24493,7 +24500,7 @@ const rk = ({
24493
24500
  author: Xr(q == null ? void 0 : q.actor),
24494
24501
  userLiked: I,
24495
24502
  likes: ($ == null ? void 0 : $.like) || 0,
24496
- comments: k || 0,
24503
+ comments: _ || 0,
24497
24504
  peopleWhoLiked: W,
24498
24505
  mentions: X,
24499
24506
  pinned: ($ == null ? void 0 : $.pin) && ($ == null ? void 0 : $.pin) > 0 || !1,
@@ -24528,7 +24535,7 @@ const rk = ({
24528
24535
  },
24529
24536
  isTruncated: !0,
24530
24537
  styling: { showShareLinkButton: !0 },
24531
- setFocus: U === _,
24538
+ setFocus: U === k,
24532
24539
  userHasOwnerPermissions: r,
24533
24540
  badges: {
24534
24541
  showBadges: !0,
@@ -25322,23 +25329,23 @@ const AE = ({
25322
25329
  }
25323
25330
  },
25324
25331
  children: d && d.length > 0 ? d == null ? void 0 : d.map((C) => {
25325
- var ie, D, $, X, k, B, I;
25332
+ var ie, D, $, X, _, B, I;
25326
25333
  const {
25327
25334
  id: S,
25328
25335
  own_children: L,
25329
25336
  latest_children: j,
25330
25337
  children_counts: z,
25331
25338
  data: { mentioned_users: M }
25332
- } = C, _ = (((ie = L == null ? void 0 : L.like) == null ? void 0 : ie.length) || 0) > 0 ? (D = L == null ? void 0 : L.like) == null ? void 0 : D.find((R) => {
25339
+ } = C, k = (((ie = L == null ? void 0 : L.like) == null ? void 0 : ie.length) || 0) > 0 ? (D = L == null ? void 0 : L.like) == null ? void 0 : D.find((R) => {
25333
25340
  var W;
25334
25341
  return ((W = R == null ? void 0 : R.user) == null ? void 0 : W.id) === (E == null ? void 0 : E.id);
25335
- }) : !1, T = _ ? _ == null ? void 0 : _.id : "", N = !!_, U = ((($ = j == null ? void 0 : j.like) == null ? void 0 : $.length) || 0) > 0 ? (X = j == null ? void 0 : j.like) == null ? void 0 : X.map((R) => {
25342
+ }) : !1, T = k ? k == null ? void 0 : k.id : "", N = !!k, U = ((($ = j == null ? void 0 : j.like) == null ? void 0 : $.length) || 0) > 0 ? (X = j == null ? void 0 : j.like) == null ? void 0 : X.map((R) => {
25336
25343
  var W, ee, H;
25337
25344
  return {
25338
25345
  id: (W = R == null ? void 0 : R.user) == null ? void 0 : W.id,
25339
25346
  name: (H = (ee = R == null ? void 0 : R.user) == null ? void 0 : ee.data) == null ? void 0 : H.name
25340
25347
  };
25341
- }) : !1, Y = typeof C.data.content == "string" ? (k = C == null ? void 0 : C.data) == null ? void 0 : k.content : (
25348
+ }) : !1, Y = typeof C.data.content == "string" ? (_ = C == null ? void 0 : C.data) == null ? void 0 : _.content : (
25342
25349
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
25343
25350
  ((I = (B = C == null ? void 0 : C.data) == null ? void 0 : B.content) == null ? void 0 : I.text) || ""
25344
25351
  );
@@ -25461,17 +25468,17 @@ const BE = ({
25461
25468
  }
25462
25469
  ),
25463
25470
  m == null ? void 0 : m.map((j, z) => {
25464
- var k, B, I, R, W, ee, H;
25471
+ var _, B, I, R, W, ee, H;
25465
25472
  const {
25466
25473
  id: M,
25467
25474
  own_children: A,
25468
- latest_children: _,
25475
+ latest_children: k,
25469
25476
  children_counts: T,
25470
25477
  data: { mentioned_users: N }
25471
- } = j, U = (((k = A == null ? void 0 : A.like) == null ? void 0 : k.length) || 0) > 0 ? (B = A == null ? void 0 : A.like) == null ? void 0 : B.find((ne) => {
25478
+ } = j, U = (((_ = A == null ? void 0 : A.like) == null ? void 0 : _.length) || 0) > 0 ? (B = A == null ? void 0 : A.like) == null ? void 0 : B.find((ne) => {
25472
25479
  var ce;
25473
25480
  return ((ce = ne == null ? void 0 : ne.user) == null ? void 0 : ce.id) === (w == null ? void 0 : w.id);
25474
- }) : !1, Y = U ? U == null ? void 0 : U.id : "", ie = !!U, $ = (((I = _ == null ? void 0 : _.like) == null ? void 0 : I.length) || 0) > 0 ? (R = _ == null ? void 0 : _.like) == null ? void 0 : R.map((ne) => {
25481
+ }) : !1, Y = U ? U == null ? void 0 : U.id : "", ie = !!U, $ = (((I = k == null ? void 0 : k.like) == null ? void 0 : I.length) || 0) > 0 ? (R = k == null ? void 0 : k.like) == null ? void 0 : R.map((ne) => {
25475
25482
  var ce, Q, De;
25476
25483
  return {
25477
25484
  id: (ce = ne == null ? void 0 : ne.user) == null ? void 0 : ce.id,
@@ -25782,7 +25789,7 @@ const pa = ({
25782
25789
  },
25783
25790
  deleteLike: A = () => {
25784
25791
  },
25785
- listLikes: _ = async () => ({})
25792
+ listLikes: k = async () => ({})
25786
25793
  } = o.likes || {}, { openComments: T = () => {
25787
25794
  } } = o.comments || {}, { listMembers: N = () => Promise.resolve([]), clickMentionFallback: q = () => {
25788
25795
  } } = o.mentions || {}, {
@@ -25792,7 +25799,7 @@ const pa = ({
25792
25799
  id: D,
25793
25800
  likes: $ = 0,
25794
25801
  userLiked: X,
25795
- comments: k = 0,
25802
+ comments: _ = 0,
25796
25803
  mentions: B
25797
25804
  } = t, I = C && C.id && typeof U != "string" && U.id && U.id === C.id || !1, R = typeof Y == "boolean" ? Y : !0, W = I && (!t.createdAt || Lh(t.createdAt, 10, "seconds")), ee = ke(null), [H, ne] = ue({
25798
25805
  title: t && t.body !== t.title && t.title || "",
@@ -26052,10 +26059,10 @@ const pa = ({
26052
26059
  }
26053
26060
  )
26054
26061
  ] }),
26055
- x && ((V = t.categories) == null ? void 0 : V.length) && /* @__PURE__ */ c.jsx("ul", { className: "categories-list", children: t.categories.map((xe) => {
26062
+ x && ((V = t.categories) != null && V.length) ? /* @__PURE__ */ c.jsx("ul", { className: "categories-list", children: t.categories.map((xe) => {
26056
26063
  const je = x == null ? void 0 : x.find((st) => st.slug === xe);
26057
26064
  return je ? /* @__PURE__ */ c.jsx(an, { size: "small", element: "li", children: je.name }, je.slug) : null;
26058
- }) }),
26065
+ }) }) : /* @__PURE__ */ c.jsx(c.Fragment, {}),
26059
26066
  !H.isEditing && !(s != null && s.actionBar) && /* @__PURE__ */ c.jsxs(
26060
26067
  "ul",
26061
26068
  {
@@ -26080,7 +26087,7 @@ const pa = ({
26080
26087
  functions: {
26081
26088
  createLike: M,
26082
26089
  deleteLike: A,
26083
- listLikes: _
26090
+ listLikes: k
26084
26091
  },
26085
26092
  badges: v,
26086
26093
  basePath: E,
@@ -26098,11 +26105,11 @@ const pa = ({
26098
26105
  "data-gtm-event-type": `answer-${t.type}-click`,
26099
26106
  screenreaderText: w.formatMessage(
26100
26107
  { id: `${Ut}comments_screenReader` },
26101
- { count: k }
26108
+ { count: _ }
26102
26109
  ),
26103
26110
  children: w.formatMessage(
26104
26111
  { id: `${Ut}comments` },
26105
- { count: k }
26112
+ { count: _ }
26106
26113
  )
26107
26114
  }
26108
26115
  ) }),
@@ -26637,11 +26644,11 @@ const ak = ({
26637
26644
  text: g.formatMessage({ id: "activitySection_notFoundError" })
26638
26645
  }
26639
26646
  );
26640
- const { own_reactions: S, latest_reactions: L, mentioned_users: j } = f, z = (((N = L == null ? void 0 : L.like) == null ? void 0 : N.length) || 0) > 0, M = (((q = S == null ? void 0 : S.like) == null ? void 0 : q.length) || 0) > 0, A = M ? S == null ? void 0 : S.like[0].id : "", _ = z ? (U = L == null ? void 0 : L.like) == null ? void 0 : U.map(($) => {
26641
- var X, k, B;
26647
+ const { own_reactions: S, latest_reactions: L, mentioned_users: j } = f, z = (((N = L == null ? void 0 : L.like) == null ? void 0 : N.length) || 0) > 0, M = (((q = S == null ? void 0 : S.like) == null ? void 0 : q.length) || 0) > 0, A = M ? S == null ? void 0 : S.like[0].id : "", k = z ? (U = L == null ? void 0 : L.like) == null ? void 0 : U.map(($) => {
26648
+ var X, _, B;
26642
26649
  return {
26643
26650
  id: (X = $ == null ? void 0 : $.user) == null ? void 0 : X.id,
26644
- name: (B = (k = $ == null ? void 0 : $.user) == null ? void 0 : k.data) == null ? void 0 : B.name
26651
+ name: (B = (_ = $ == null ? void 0 : $.user) == null ? void 0 : _.data) == null ? void 0 : B.name
26645
26652
  };
26646
26653
  }) : !1, T = f == null ? void 0 : f.actor;
26647
26654
  return /* @__PURE__ */ c.jsxs("section", { className: "activity-section", children: [
@@ -26667,7 +26674,7 @@ const ak = ({
26667
26674
  userLiked: M,
26668
26675
  likes: ((Y = f == null ? void 0 : f.reaction_counts) == null ? void 0 : Y.like) || 0,
26669
26676
  comments: (f == null ? void 0 : f.total_replies) || 0,
26670
- peopleWhoLiked: _,
26677
+ peopleWhoLiked: k,
26671
26678
  mentions: j,
26672
26679
  pinned: ((ie = f == null ? void 0 : f.reaction_counts) == null ? void 0 : ie.pin) && ((D = f == null ? void 0 : f.reaction_counts) == null ? void 0 : D.pin) > 0 || !1
26673
26680
  },
@@ -26678,7 +26685,7 @@ const ak = ({
26678
26685
  createContent: () => null,
26679
26686
  deleteContent: a,
26680
26687
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
26681
- updateContent: ($, { title: X, body: k }) => x({ title: X, content: k })
26688
+ updateContent: ($, { title: X, body: _ }) => x({ title: X, content: _ })
26682
26689
  },
26683
26690
  likes: {
26684
26691
  createLike: () => E({ activityId: n }),
@@ -27513,9 +27520,9 @@ const sh = ({
27513
27520
  isLoading: !0
27514
27521
  });
27515
27522
  de(() => {
27516
- n(i, h).then((_) => {
27517
- g({ data: _, isLoading: !1 });
27518
- }).catch(() => g((_) => ({ ..._, isLoading: !1 })));
27523
+ n(i, h).then((k) => {
27524
+ g({ data: k, isLoading: !1 });
27525
+ }).catch(() => g((k) => ({ ...k, isLoading: !1 })));
27519
27526
  }, [i, h, n]);
27520
27527
  const { data: f, isLoading: b } = p;
27521
27528
  if (b || !f)
@@ -27542,8 +27549,8 @@ const sh = ({
27542
27549
  } = ia[v];
27543
27550
  let C = f.slug ? `${x}${f.slug}` : !1;
27544
27551
  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") && (C = f.slug);
27545
- const S = (_) => {
27546
- C && (_.preventDefault(), _.stopPropagation(), window.location.href = C);
27552
+ const S = (k) => {
27553
+ C && (k.preventDefault(), k.stopPropagation(), window.location.href = C);
27547
27554
  }, L = { ...s_, ...F };
27548
27555
  let j = { className: "card" }, z = {};
27549
27556
  return C && (z = {
@@ -27618,12 +27625,12 @@ const sh = ({
27618
27625
  { partner: f.partner[0], number: f.partner.length - 1 }
27619
27626
  ) : ar(f.partner[0], L.partner) }),
27620
27627
  /* Text */
27621
- ["title", "text", "secondaryText"].map((_) => {
27622
- const T = f[_];
27628
+ ["title", "text", "secondaryText"].map((k) => {
27629
+ const T = f[k];
27623
27630
  if (!T)
27624
27631
  return null;
27625
- const N = Ph(_), q = {
27626
- key: _,
27632
+ const N = Ph(k), q = {
27633
+ key: k,
27627
27634
  className: N,
27628
27635
  "data-testid": N
27629
27636
  }, U = {
@@ -27632,9 +27639,9 @@ const sh = ({
27632
27639
  forceInline: !0
27633
27640
  }, Y = ar(
27634
27641
  T,
27635
- L[_]
27642
+ L[k]
27636
27643
  );
27637
- return ["title", "text"].includes(_) && C ? (U.wrapper = "a", /* @__PURE__ */ c.jsx("p", { ...q, children: /* @__PURE__ */ c.jsx(Yt, { options: U, ...z, children: Y }) })) : /* @__PURE__ */ c.jsx(Yt, { options: U, ...q, children: Y });
27644
+ return ["title", "text"].includes(k) && C ? (U.wrapper = "a", /* @__PURE__ */ c.jsx("p", { ...q, children: /* @__PURE__ */ c.jsx(Yt, { options: U, ...z, children: Y }) })) : /* @__PURE__ */ c.jsx(Yt, { options: U, ...q, children: Y });
27638
27645
  }),
27639
27646
  i.contentType === "communityPage" && (i.slug || f.slug) && r && /* @__PURE__ */ c.jsx(
27640
27647
  u_,
@@ -27712,18 +27719,18 @@ const f_ = ({
27712
27719
  loadedPages: [0]
27713
27720
  }), { currentPage: b, loadedPages: v } = g, [x, E] = ue(""), F = t.length, w = Math.ceil(F / m), C = ke(null), S = mr(!0, !0, C == null ? void 0 : C.current);
27714
27721
  de(() => {
27715
- let _ = 1;
27716
- S && (S >= ps.fourCards ? _ = 4 : S >= ps.threeCards ? _ = 3 : S >= ps.twoCards && (_ = 2), _ > F && (_ = F)), h((T) => ({
27722
+ let k = 1;
27723
+ S && (S >= ps.fourCards ? k = 4 : S >= ps.threeCards ? k = 3 : S >= ps.twoCards && (k = 2), k > F && (k = F)), h((T) => ({
27717
27724
  ...T,
27718
- cardsPerPage: _,
27725
+ cardsPerPage: k,
27719
27726
  isLoading: !1
27720
27727
  }));
27721
27728
  }, [S, F]);
27722
- const L = (_ = "next") => {
27729
+ const L = (k = "next") => {
27723
27730
  gs && clearTimeout(gs);
27724
27731
  let T = b;
27725
- if (typeof _ == "string")
27726
- if (_ === "next")
27732
+ if (typeof k == "string")
27733
+ if (k === "next")
27727
27734
  if (b < w - 1)
27728
27735
  T = b + 1;
27729
27736
  else
@@ -27733,7 +27740,7 @@ const f_ = ({
27733
27740
  else
27734
27741
  return;
27735
27742
  else
27736
- T = _;
27743
+ T = k;
27737
27744
  E(""), f((q) => ({
27738
27745
  ...q,
27739
27746
  currentPage: T,
@@ -27747,24 +27754,24 @@ const f_ = ({
27747
27754
  E(
27748
27755
  l.formatMessage(
27749
27756
  {
27750
- id: `${u}ariaLive${typeof _ == "string" ? "" : "_slide"}`
27757
+ id: `${u}ariaLive${typeof k == "string" ? "" : "_slide"}`
27751
27758
  },
27752
27759
  {
27753
27760
  direction: l.formatMessage({
27754
- id: `${u}${typeof _ == "string" ? _ : "next"}`
27761
+ id: `${u}${typeof k == "string" ? k : "next"}`
27755
27762
  }),
27756
- slide: typeof _ == "string" ? 1 : _ + 1,
27763
+ slide: typeof k == "string" ? 1 : k + 1,
27757
27764
  count: N()
27758
27765
  }
27759
27766
  )
27760
27767
  );
27761
27768
  }, 500);
27762
- }, j = (_) => {
27763
- Ci = _.touches[0].clientX;
27764
- }, z = (_) => {
27769
+ }, j = (k) => {
27770
+ Ci = k.touches[0].clientX;
27771
+ }, z = (k) => {
27765
27772
  if (Ci === null)
27766
27773
  return;
27767
- const T = _.touches[0].clientX, N = Ci - T;
27774
+ const T = k.touches[0].clientX, N = Ci - T;
27768
27775
  N > 5 ? L("next") : N < -5 && L("previous"), Ci = null;
27769
27776
  }, M = {
27770
27777
  "--width": `${S || 0}px`,
@@ -27774,10 +27781,10 @@ const f_ = ({
27774
27781
  };
27775
27782
  if (p)
27776
27783
  return /* @__PURE__ */ c.jsx(no, { layout: `carousel${i ? "-with-title" : ""}` });
27777
- const A = (_, T) => {
27784
+ const A = (k, T) => {
27778
27785
  var q;
27779
27786
  let N = null;
27780
- return (q = _ == null ? void 0 : _.sys) != null && q.id ? N = `card-${_.sys.id}` : _ != null && _.slug ? N = `card-${_.slug}` : [n[T], _.contentType].includes("customCard") && (N = `card-${window.btoa(`${_.title} ${_.createdAt}`)}-${T}`), N;
27787
+ return (q = k == null ? void 0 : k.sys) != null && q.id ? N = `card-${k.sys.id}` : k != null && k.slug ? N = `card-${k.slug}` : [n[T], k.contentType].includes("customCard") && (N = `card-${window.btoa(`${k.title} ${k.createdAt}`)}-${T}`), N;
27781
27788
  };
27782
27789
  return /* @__PURE__ */ c.jsxs(
27783
27790
  "section",
@@ -27795,13 +27802,13 @@ const f_ = ({
27795
27802
  onTouchMove: z,
27796
27803
  style: M,
27797
27804
  "data-testid": "carousel-list",
27798
- children: t.map((_, T) => {
27799
- let N = A(_, T);
27805
+ children: t.map((k, T) => {
27806
+ let N = A(k, T);
27800
27807
  return N && c_(T, m, b, v) ? /* @__PURE__ */ c.jsx(
27801
27808
  sh,
27802
27809
  {
27803
27810
  id: N,
27804
- card: { ..._, contentType: n[T] },
27811
+ card: { ...k, contentType: n[T] },
27805
27812
  buildCardData: r,
27806
27813
  gtmContext: s,
27807
27814
  ...o
@@ -27827,8 +27834,8 @@ const f_ = ({
27827
27834
  variant: "secondary",
27828
27835
  size: "large",
27829
27836
  icon: { icon: "chevron_left" },
27830
- onClick: (_) => {
27831
- _.preventDefault(), _.stopPropagation(), L("previous");
27837
+ onClick: (k) => {
27838
+ k.preventDefault(), k.stopPropagation(), L("previous");
27832
27839
  },
27833
27840
  screenreaderText: l.formatMessage({
27834
27841
  id: `${u}previousSlide`
@@ -27836,7 +27843,7 @@ const f_ = ({
27836
27843
  disabled: b <= 0
27837
27844
  }
27838
27845
  ) }),
27839
- [...Array(w)].map((_, T) => /* @__PURE__ */ c.jsx(
27846
+ [...Array(w)].map((k, T) => /* @__PURE__ */ c.jsx(
27840
27847
  "li",
27841
27848
  {
27842
27849
  "data-testid": "carousel-controls-button",
@@ -27864,8 +27871,8 @@ const f_ = ({
27864
27871
  variant: "secondary",
27865
27872
  size: "large",
27866
27873
  icon: { icon: "chevron_right" },
27867
- onClick: (_) => {
27868
- _.preventDefault(), _.stopPropagation(), L("next");
27874
+ onClick: (k) => {
27875
+ k.preventDefault(), k.stopPropagation(), L("next");
27869
27876
  },
27870
27877
  screenreaderText: l.formatMessage({
27871
27878
  id: `${u}nextSlide`