@apolitical/component-library 5.3.5 → 5.3.6-ac.0

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
@@ -1,6 +1,6 @@
1
1
  import te, { memo as Jt, useState as ue, useEffect as de, useRef as ke, useMemo as Yt, forwardRef as Ys, Children as vs, createContext as kt, useContext as Le, useCallback as Re, lazy as fr, useReducer as hr, useLayoutEffect as hh, Component as mh, Fragment as Ir, Suspense as Sc } from "react";
2
2
  import { useIntl as le, FormattedMessage as ht, IntlProvider as ph, createIntl as gh } from "react-intl";
3
- import An from "lodash.clonedeep";
3
+ import Bn from "lodash.clonedeep";
4
4
  import vh from "lodash.set";
5
5
  import jc from "react-dom";
6
6
  import Gt from "markdown-to-jsx";
@@ -14,7 +14,7 @@ import Pc from "lodash.get";
14
14
  import { ErrorBoundary as Ch } from "react-error-boundary";
15
15
  import { ReactMultiEmail as Eh } from "react-multi-email";
16
16
  var ti = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
17
- function Mn(e) {
17
+ function Rn(e) {
18
18
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
19
19
  }
20
20
  function Nc(e) {
@@ -75,7 +75,7 @@ var Mc = { exports: {} };
75
75
  })();
76
76
  })(Mc);
77
77
  var _h = Mc.exports;
78
- const V = /* @__PURE__ */ Mn(_h), kh = ({
78
+ const V = /* @__PURE__ */ Rn(_h), kh = ({
79
79
  element: e = "span",
80
80
  showOnFocus: t = !0,
81
81
  children: n,
@@ -156,10 +156,10 @@ function Bh() {
156
156
  Ve.unshift("Warning: " + ae), Function.prototype.apply.call(console[M], console, Ve);
157
157
  }
158
158
  }
159
- var B = !1, D = !1, C = !1, S = !1, I = !1, P;
159
+ var B = !1, D = !1, C = !1, T = !1, I = !1, P;
160
160
  P = Symbol.for("react.module.reference");
161
161
  function L(M) {
162
- return !!(typeof M == "string" || typeof M == "function" || M === r || M === a || I || M === i || M === u || M === d || S || M === p || B || D || C || typeof M == "object" && M !== null && (M.$$typeof === m || M.$$typeof === h || M.$$typeof === s || M.$$typeof === o || M.$$typeof === l || // This needs to include all possible module reference object
162
+ return !!(typeof M == "string" || typeof M == "function" || M === r || M === a || I || M === i || M === u || M === d || T || M === p || B || D || C || typeof M == "object" && M !== null && (M.$$typeof === m || M.$$typeof === h || M.$$typeof === s || M.$$typeof === o || M.$$typeof === l || // This needs to include all possible module reference object
163
163
  // types supported by any Flight configuration anywhere since
164
164
  // we don't know which Flight build this will end up being used
165
165
  // with.
@@ -220,7 +220,7 @@ function Bh() {
220
220
  }
221
221
  return null;
222
222
  }
223
- var T = Object.assign, j = 0, H, W, ie, ne, x, z, re;
223
+ var S = Object.assign, j = 0, H, W, ie, ne, x, z, re;
224
224
  function F() {
225
225
  }
226
226
  F.__reactDisabledLog = !0;
@@ -256,25 +256,25 @@ function Bh() {
256
256
  writable: !0
257
257
  };
258
258
  Object.defineProperties(console, {
259
- log: T({}, M, {
259
+ log: S({}, M, {
260
260
  value: H
261
261
  }),
262
- info: T({}, M, {
262
+ info: S({}, M, {
263
263
  value: W
264
264
  }),
265
- warn: T({}, M, {
265
+ warn: S({}, M, {
266
266
  value: ie
267
267
  }),
268
- error: T({}, M, {
268
+ error: S({}, M, {
269
269
  value: ne
270
270
  }),
271
- group: T({}, M, {
271
+ group: S({}, M, {
272
272
  value: x
273
273
  }),
274
- groupCollapsed: T({}, M, {
274
+ groupCollapsed: S({}, M, {
275
275
  value: z
276
276
  }),
277
- groupEnd: T({}, M, {
277
+ groupEnd: S({}, M, {
278
278
  value: re
279
279
  })
280
280
  });
@@ -755,12 +755,12 @@ function Rc(e, t, n) {
755
755
  return !1;
756
756
  var $ = L - i.current;
757
757
  return !i.current || $ >= t || $ < 0 || b && L - a.current >= w;
758
- }, S = function(L) {
758
+ }, T = function(L) {
759
759
  return s.current = null, f && o.current ? B(L) : (o.current = l.current = null, u.current);
760
760
  }, I = function L() {
761
761
  var $ = Date.now();
762
762
  if (C($))
763
- return S($);
763
+ return T($);
764
764
  if (h.current) {
765
765
  var A = t - ($ - i.current), _ = b ? Math.min(A, w - ($ - a.current)) : A;
766
766
  D(L, _);
@@ -782,7 +782,7 @@ function Rc(e, t, n) {
782
782
  }, P.isPending = function() {
783
783
  return !!s.current;
784
784
  }, P.flush = function() {
785
- return s.current ? S(Date.now()) : u.current;
785
+ return s.current ? T(Date.now()) : u.current;
786
786
  }, P;
787
787
  }, [g, b, t, w, f, p, m, v]);
788
788
  return E;
@@ -893,7 +893,7 @@ const Yo = {}, pr = Ys(
893
893
  }, d) => {
894
894
  const h = le(), [m] = ue(e || Date.now().toString()), p = ke(null), g = d || p, [f, b] = ue(n ? "open" : "hidden"), { extraPadding: v = !0, hasPointer: w = !1, hasForm: E = !1 } = t, { onOpen: B = () => {
895
895
  }, onClose: D = () => {
896
- } } = o, { readToScreenreadersWhenClosed: C = !1, ...S } = l, I = Yo[m];
896
+ } } = o, { readToScreenreadersWhenClosed: C = !1, ...T } = l, I = Yo[m];
897
897
  de(() => {
898
898
  const A = g == null ? void 0 : g.current;
899
899
  if (A)
@@ -922,7 +922,7 @@ const Yo = {}, pr = Ys(
922
922
  }, [n]);
923
923
  const L = {
924
924
  ...u,
925
- ...S
925
+ ...T
926
926
  };
927
927
  s && s.onBlur && (L.onBlur = s.onBlur);
928
928
  const $ = {
@@ -946,7 +946,7 @@ const Yo = {}, pr = Ys(
946
946
  }
947
947
  ), aa = (e, t) => {
948
948
  Array.isArray(t) || (t = [t]);
949
- const n = An(e);
949
+ const n = Bn(e);
950
950
  return t.forEach(({ type: r, value: i }) => {
951
951
  vh(n, r, i);
952
952
  }), n;
@@ -983,7 +983,7 @@ function P_(e) {
983
983
  "--icon": `url(${sn}icons/${e}.svg)`
984
984
  } : {};
985
985
  }
986
- const kn = {
986
+ const Fn = {
987
987
  milliseconds: {
988
988
  inSecond: 1e3,
989
989
  inMinute: 6e4,
@@ -1007,13 +1007,13 @@ const kn = {
1007
1007
  } catch {
1008
1008
  return "";
1009
1009
  }
1010
- const i = t / kn.milliseconds.inHour, a = Math.floor(t / kn.milliseconds.inDay);
1010
+ const i = t / Fn.milliseconds.inHour, a = Math.floor(t / Fn.milliseconds.inDay);
1011
1011
  if (a < 1)
1012
1012
  return i < 1 ? { path: "now" } : { path: "hours", number: Math.floor(i) };
1013
1013
  if (a < 7)
1014
1014
  return { path: "days", number: a };
1015
1015
  const s = Math.floor(a / 7);
1016
- return s <= kn.year.weeks ? { path: "weeks", number: s } : { path: "years", number: Math.floor(a / kn.year.days) };
1016
+ return s <= Fn.year.weeks ? { path: "weeks", number: s } : { path: "years", number: Math.floor(a / Fn.year.days) };
1017
1017
  }, Mi = (e) => {
1018
1018
  const n = (e || /* @__PURE__ */ new Date()).toUTCString();
1019
1019
  return new Date(n);
@@ -1027,11 +1027,11 @@ const kn = {
1027
1027
  }
1028
1028
  switch (n) {
1029
1029
  case "seconds":
1030
- return r / kn.milliseconds.inSecond <= t;
1030
+ return r / Fn.milliseconds.inSecond <= t;
1031
1031
  case "minutes":
1032
- return r / kn.milliseconds.inMinute <= t;
1032
+ return r / Fn.milliseconds.inMinute <= t;
1033
1033
  case "hours":
1034
- return r / kn.milliseconds.inHour <= t;
1034
+ return r / Fn.milliseconds.inHour <= t;
1035
1035
  }
1036
1036
  return !1;
1037
1037
  }, Ih = (e, t) => {
@@ -1286,6 +1286,8 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1286
1286
  inviteForm_email_placeholder: "Add email addresses...",
1287
1287
  inviteForm_title: "Know someone who might like to join this workshop?",
1288
1288
  inviteForm_label: "Invite your colleagues by typing or pasting their email addresses below",
1289
+ inviteForm_message_label: "Add an invitation note",
1290
+ inviteForm_message_placeholder: "Add a personal note to your invitation...",
1289
1291
  inviteForm_ctaMessage: "Send",
1290
1292
  inviteForm_success: "Invitation Sent!",
1291
1293
  inviteForm_error: "Something went wrong!",
@@ -1934,7 +1936,7 @@ const N_ = ({ image: e, className: t = "", testId: n }) => /* @__PURE__ */ c.jsx
1934
1936
  "data-testid": n || "image-container",
1935
1937
  children: e && /* @__PURE__ */ c.jsx(Gr, { image: { ...e }, className: "image" })
1936
1938
  }
1937
- ), Rn = ({
1939
+ ), $n = ({
1938
1940
  href: e,
1939
1941
  children: t,
1940
1942
  fallbackElement: n,
@@ -2161,7 +2163,7 @@ const zt = ({
2161
2163
  }
2162
2164
  );
2163
2165
  };
2164
- const $n = ({
2166
+ const In = ({
2165
2167
  variant: e = "empty",
2166
2168
  text: t = !1,
2167
2169
  button: n = !1,
@@ -2815,7 +2817,7 @@ const ws = {
2815
2817
  if (r <= t * (i + 1))
2816
2818
  return ri[i];
2817
2819
  };
2818
- const su = 256, In = ({
2820
+ const su = 256, Ln = ({
2819
2821
  className: e = "",
2820
2822
  src: t = "",
2821
2823
  name: n,
@@ -2909,7 +2911,7 @@ const yn = ({
2909
2911
  C.name || (C.name = h.formatMessage({
2910
2912
  id: `member_${typeof t == "string" ? t : "community"}`
2911
2913
  }));
2912
- const { name: S, image: I } = C;
2914
+ const { name: T, image: I } = C;
2913
2915
  let { url: P } = C;
2914
2916
  typeof t == "object" && t.link !== void 0 && (t.link === !1 ? P = void 0 : P = t.link);
2915
2917
  const L = Sm(C), $ = r && r.createdAt ? Ds(r.createdAt) : !1, A = r && r.createdAt ? Wc(r.createdAt) : "";
@@ -2921,7 +2923,7 @@ const yn = ({
2921
2923
  ...p,
2922
2924
  children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
2923
2925
  /* @__PURE__ */ c.jsxs(
2924
- Rn,
2926
+ $n,
2925
2927
  {
2926
2928
  href: P,
2927
2929
  gtmType: o,
@@ -2932,13 +2934,13 @@ const yn = ({
2932
2934
  ii && clearTimeout(ii), ii = setTimeout(() => {
2933
2935
  window.location.href = P;
2934
2936
  }, 150);
2935
- const T = new CustomEvent(ut.MEMBER_CLICKED, {
2937
+ const S = new CustomEvent(ut.MEMBER_CLICKED, {
2936
2938
  detail: { link: P, timeout: ii }
2937
2939
  });
2938
- document.dispatchEvent(T);
2940
+ document.dispatchEvent(S);
2939
2941
  },
2940
2942
  children: [
2941
- /* @__PURE__ */ c.jsx(In, { name: S, src: I, alt: n }),
2943
+ /* @__PURE__ */ c.jsx(Ln, { name: T, src: I, alt: n }),
2942
2944
  /* @__PURE__ */ c.jsxs("div", { className: "details", children: [
2943
2945
  /* @__PURE__ */ c.jsxs(
2944
2946
  "div",
@@ -2946,7 +2948,7 @@ const yn = ({
2946
2948
  className: V("name", { "new-line": v }),
2947
2949
  "data-testid": "member-name",
2948
2950
  children: [
2949
- /* @__PURE__ */ c.jsx("span", { children: S }),
2951
+ /* @__PURE__ */ c.jsx("span", { children: T }),
2950
2952
  (u == null ? void 0 : u.showBadges) && (C == null ? void 0 : C.badges) && /* @__PURE__ */ c.jsx(Fm, { userBadges: C.badges, badgeOptions: u }),
2951
2953
  r && /* @__PURE__ */ c.jsxs(
2952
2954
  "span",
@@ -3057,7 +3059,7 @@ const ou = {
3057
3059
  if (s)
3058
3060
  return /* @__PURE__ */ c.jsx(qt, { element: "li", className: "contributor" }, p);
3059
3061
  g = /* @__PURE__ */ c.jsx(
3060
- In,
3062
+ Ln,
3061
3063
  {
3062
3064
  name: b,
3063
3065
  src: v,
@@ -3214,7 +3216,7 @@ function Mm() {
3214
3216
  }
3215
3217
  }
3216
3218
  }
3217
- var D = l, C = u, S = o, I = s, P = t, L = d, $ = r, A = g, _ = p, T = n, j = a, H = i, W = h, ie = !1;
3219
+ var D = l, C = u, T = o, I = s, P = t, L = d, $ = r, A = g, _ = p, S = n, j = a, H = i, W = h, ie = !1;
3218
3220
  function ne(G) {
3219
3221
  return ie || (ie = !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.")), x(G) || B(G) === l;
3220
3222
  }
@@ -3254,7 +3256,7 @@ function Mm() {
3254
3256
  function ce(G) {
3255
3257
  return B(G) === h;
3256
3258
  }
3257
- qe.AsyncMode = D, qe.ConcurrentMode = C, qe.ContextConsumer = S, qe.ContextProvider = I, qe.Element = P, qe.ForwardRef = L, qe.Fragment = $, qe.Lazy = A, qe.Memo = _, qe.Portal = T, qe.Profiler = j, qe.StrictMode = H, qe.Suspense = W, qe.isAsyncMode = ne, qe.isConcurrentMode = x, qe.isContextConsumer = z, qe.isContextProvider = re, qe.isElement = F, qe.isForwardRef = k, qe.isFragment = N, qe.isLazy = O, qe.isMemo = q, qe.isPortal = J, qe.isProfiler = U, qe.isStrictMode = X, qe.isSuspense = ce, qe.isValidElementType = E, qe.typeOf = B;
3259
+ qe.AsyncMode = D, qe.ConcurrentMode = C, qe.ContextConsumer = T, qe.ContextProvider = I, qe.Element = P, qe.ForwardRef = L, qe.Fragment = $, qe.Lazy = A, qe.Memo = _, qe.Portal = S, qe.Profiler = j, qe.StrictMode = H, qe.Suspense = W, qe.isAsyncMode = ne, qe.isConcurrentMode = x, qe.isContextConsumer = z, qe.isContextProvider = re, qe.isElement = F, qe.isForwardRef = k, qe.isFragment = N, qe.isLazy = O, qe.isMemo = q, qe.isPortal = J, qe.isProfiler = U, qe.isStrictMode = X, qe.isSuspense = ce, qe.isValidElementType = E, qe.typeOf = B;
3258
3260
  }()), qe;
3259
3261
  }
3260
3262
  var cu;
@@ -3416,7 +3418,7 @@ function Im() {
3416
3418
  instanceOf: C,
3417
3419
  node: L(),
3418
3420
  objectOf: I,
3419
- oneOf: S,
3421
+ oneOf: T,
3420
3422
  oneOfType: P,
3421
3423
  shape: A,
3422
3424
  exact: _
@@ -3518,7 +3520,7 @@ function Im() {
3518
3520
  }
3519
3521
  return b(z);
3520
3522
  }
3521
- function S(x) {
3523
+ function T(x) {
3522
3524
  if (!Array.isArray(x))
3523
3525
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
3524
3526
  "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])."
@@ -3576,7 +3578,7 @@ function Im() {
3576
3578
  }
3577
3579
  function L() {
3578
3580
  function x(z, re, F, k, N) {
3579
- return T(z[re]) ? null : new f("Invalid " + k + " `" + N + "` supplied to " + ("`" + F + "`, expected a ReactNode."));
3581
+ return S(z[re]) ? null : new f("Invalid " + k + " `" + N + "` supplied to " + ("`" + F + "`, expected a ReactNode."));
3580
3582
  }
3581
3583
  return b(x);
3582
3584
  }
@@ -3625,7 +3627,7 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
3625
3627
  }
3626
3628
  return b(z);
3627
3629
  }
3628
- function T(x) {
3630
+ function S(x) {
3629
3631
  switch (typeof x) {
3630
3632
  case "number":
3631
3633
  case "string":
@@ -3635,7 +3637,7 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
3635
3637
  return !x;
3636
3638
  case "object":
3637
3639
  if (Array.isArray(x))
3638
- return x.every(T);
3640
+ return x.every(S);
3639
3641
  if (x === null || o(x))
3640
3642
  return !0;
3641
3643
  var z = h(x);
@@ -3643,12 +3645,12 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
3643
3645
  var re = z.call(x), F;
3644
3646
  if (z !== x.entries) {
3645
3647
  for (; !(F = re.next()).done; )
3646
- if (!T(F.value))
3648
+ if (!S(F.value))
3647
3649
  return !1;
3648
3650
  } else
3649
3651
  for (; !(F = re.next()).done; ) {
3650
3652
  var k = F.value;
3651
- if (k && !T(k[1]))
3653
+ if (k && !S(k[1]))
3652
3654
  return !1;
3653
3655
  }
3654
3656
  } else
@@ -3756,7 +3758,7 @@ var Wm = Cs.exports;
3756
3758
  * tabbable 6.2.0
3757
3759
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
3758
3760
  */
3759
- var id = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], $i = /* @__PURE__ */ id.join(","), ad = typeof Element > "u", jn = ad ? function() {
3761
+ var id = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], $i = /* @__PURE__ */ id.join(","), ad = typeof Element > "u", On = ad ? function() {
3760
3762
  } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Ii = !ad && Element.prototype.getRootNode ? function(e) {
3761
3763
  var t;
3762
3764
  return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
@@ -3774,7 +3776,7 @@ var id = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
3774
3776
  if (Li(t))
3775
3777
  return [];
3776
3778
  var i = Array.prototype.slice.apply(t.querySelectorAll($i));
3777
- return n && jn.call(t, $i) && i.unshift(t), i = i.filter(r), i;
3779
+ return n && On.call(t, $i) && i.unshift(t), i = i.filter(r), i;
3778
3780
  }, od = function e(t, n, r) {
3779
3781
  for (var i = [], a = Array.from(t); a.length; ) {
3780
3782
  var s = a.shift();
@@ -3786,7 +3788,7 @@ var id = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
3786
3788
  candidates: u
3787
3789
  });
3788
3790
  } else {
3789
- var d = jn.call(s, $i);
3791
+ var d = On.call(s, $i);
3790
3792
  d && r.filter(s) && (n || !t.includes(s)) && i.push(s);
3791
3793
  var h = s.shadowRoot || // check for an undisclosed shadow
3792
3794
  typeof r.getShadowRoot == "function" && r.getShadowRoot(s), m = !Li(h, !1) && (!r.shadowRootFilter || r.shadowRootFilter(s));
@@ -3862,8 +3864,8 @@ var id = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
3862
3864
  var r = n.displayCheck, i = n.getShadowRoot;
3863
3865
  if (getComputedStyle(t).visibility === "hidden")
3864
3866
  return !0;
3865
- var a = jn.call(t, "details>summary:first-of-type"), s = a ? t.parentElement : t;
3866
- if (jn.call(s, "details:not([open]) *"))
3867
+ var a = On.call(t, "details>summary:first-of-type"), s = a ? t.parentElement : t;
3868
+ if (On.call(s, "details:not([open]) *"))
3867
3869
  return !0;
3868
3870
  if (!r || r === "full" || r === "legacy-full") {
3869
3871
  if (typeof i == "function") {
@@ -3889,7 +3891,7 @@ var id = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
3889
3891
  for (var r = 0; r < n.children.length; r++) {
3890
3892
  var i = n.children.item(r);
3891
3893
  if (i.tagName === "LEGEND")
3892
- return jn.call(n, "fieldset[disabled] *") ? !0 : !i.contains(t);
3894
+ return On.call(n, "fieldset[disabled] *") ? !0 : !i.contains(t);
3893
3895
  }
3894
3896
  return !0;
3895
3897
  }
@@ -3938,21 +3940,21 @@ var id = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
3938
3940
  flatten: !0,
3939
3941
  getShadowRoot: n.getShadowRoot
3940
3942
  }) : r = sd(t, n.includeContainer, zi.bind(null, n)), r;
3941
- }, En = function(t, n) {
3943
+ }, _n = function(t, n) {
3942
3944
  if (n = n || {}, !t)
3943
3945
  throw new Error("No node provided");
3944
- return jn.call(t, $i) === !1 ? !1 : Es(n, t);
3946
+ return On.call(t, $i) === !1 ? !1 : Es(n, t);
3945
3947
  }, ip = /* @__PURE__ */ id.concat("iframe").join(","), Fi = function(t, n) {
3946
3948
  if (n = n || {}, !t)
3947
3949
  throw new Error("No node provided");
3948
- return jn.call(t, ip) === !1 ? !1 : zi(n, t);
3950
+ return On.call(t, ip) === !1 ? !1 : zi(n, t);
3949
3951
  };
3950
3952
  const ap = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3951
3953
  __proto__: null,
3952
3954
  focusable: dd,
3953
3955
  getTabIndex: gn,
3954
3956
  isFocusable: Fi,
3955
- isTabbable: En,
3957
+ isTabbable: _n,
3956
3958
  tabbable: cd
3957
3959
  }, Symbol.toStringTag, { value: "Module" }));
3958
3960
  /*!
@@ -4083,24 +4085,24 @@ var Du = {
4083
4085
  delayInitialFocusTimer: void 0,
4084
4086
  // the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
4085
4087
  recentNavEvent: void 0
4086
- }, o, l = function(A, _, T) {
4087
- return A && A[_] !== void 0 ? A[_] : a[T || _];
4088
+ }, o, l = function(A, _, S) {
4089
+ return A && A[_] !== void 0 ? A[_] : a[S || _];
4088
4090
  }, u = function(A, _) {
4089
- var T = typeof (_ == null ? void 0 : _.composedPath) == "function" ? _.composedPath() : void 0;
4091
+ var S = typeof (_ == null ? void 0 : _.composedPath) == "function" ? _.composedPath() : void 0;
4090
4092
  return s.containerGroups.findIndex(function(j) {
4091
4093
  var H = j.container, W = j.tabbableNodes;
4092
4094
  return H.contains(A) || // fall back to explicit tabbable search which will take into consideration any
4093
4095
  // web components if the `tabbableOptions.getShadowRoot` option was used for
4094
4096
  // the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
4095
4097
  // look inside web components even if open)
4096
- (T == null ? void 0 : T.includes(H)) || W.find(function(ie) {
4098
+ (S == null ? void 0 : S.includes(H)) || W.find(function(ie) {
4097
4099
  return ie === A;
4098
4100
  });
4099
4101
  });
4100
4102
  }, d = function(A) {
4101
4103
  var _ = a[A];
4102
4104
  if (typeof _ == "function") {
4103
- for (var T = arguments.length, j = new Array(T > 1 ? T - 1 : 0), H = 1; H < T; H++)
4105
+ for (var S = arguments.length, j = new Array(S > 1 ? S - 1 : 0), H = 1; H < S; H++)
4104
4106
  j[H - 1] = arguments[H];
4105
4107
  _ = _.apply(void 0, j);
4106
4108
  }
@@ -4121,25 +4123,25 @@ var Du = {
4121
4123
  if (u(r.activeElement) >= 0)
4122
4124
  A = r.activeElement;
4123
4125
  else {
4124
- var _ = s.tabbableGroups[0], T = _ && _.firstTabbableNode;
4125
- A = T || d("fallbackFocus");
4126
+ var _ = s.tabbableGroups[0], S = _ && _.firstTabbableNode;
4127
+ A = S || d("fallbackFocus");
4126
4128
  }
4127
4129
  if (!A)
4128
4130
  throw new Error("Your focus-trap needs to have at least one focusable element");
4129
4131
  return A;
4130
4132
  }, m = function() {
4131
4133
  if (s.containerGroups = s.containers.map(function(A) {
4132
- var _ = cd(A, a.tabbableOptions), T = dd(A, a.tabbableOptions), j = _.length > 0 ? _[0] : void 0, H = _.length > 0 ? _[_.length - 1] : void 0, W = T.find(function(x) {
4133
- return En(x);
4134
- }), ie = T.slice().reverse().find(function(x) {
4135
- return En(x);
4134
+ var _ = cd(A, a.tabbableOptions), S = dd(A, a.tabbableOptions), j = _.length > 0 ? _[0] : void 0, H = _.length > 0 ? _[_.length - 1] : void 0, W = S.find(function(x) {
4135
+ return _n(x);
4136
+ }), ie = S.slice().reverse().find(function(x) {
4137
+ return _n(x);
4136
4138
  }), ne = !!_.find(function(x) {
4137
4139
  return gn(x) > 0;
4138
4140
  });
4139
4141
  return {
4140
4142
  container: A,
4141
4143
  tabbableNodes: _,
4142
- focusableNodes: T,
4144
+ focusableNodes: S,
4143
4145
  /** True if at least one node with positive `tabindex` was found in this container. */
4144
4146
  posTabIndexesFound: ne,
4145
4147
  /** First tabbable node in container, __tabindex__ order; `undefined` if none. */
@@ -4167,10 +4169,10 @@ var Du = {
4167
4169
  */
4168
4170
  nextTabbableNode: function(z) {
4169
4171
  var re = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, F = _.indexOf(z);
4170
- return F < 0 ? re ? T.slice(T.indexOf(z) + 1).find(function(k) {
4171
- return En(k);
4172
- }) : T.slice(0, T.indexOf(z)).reverse().find(function(k) {
4173
- return En(k);
4172
+ return F < 0 ? re ? S.slice(S.indexOf(z) + 1).find(function(k) {
4173
+ return _n(k);
4174
+ }) : S.slice(0, S.indexOf(z)).reverse().find(function(k) {
4175
+ return _n(k);
4174
4176
  }) : _[F + (re ? 1 : -1)];
4175
4177
  }
4176
4178
  };
@@ -4200,11 +4202,11 @@ var Du = {
4200
4202
  var _ = d("setReturnFocus", A);
4201
4203
  return _ || (_ === !1 ? !1 : A);
4202
4204
  }, b = function(A) {
4203
- var _ = A.target, T = A.event, j = A.isBackward, H = j === void 0 ? !1 : j;
4204
- _ = _ || si(T), m();
4205
+ var _ = A.target, S = A.event, j = A.isBackward, H = j === void 0 ? !1 : j;
4206
+ _ = _ || si(S), m();
4205
4207
  var W = null;
4206
4208
  if (s.tabbableGroups.length > 0) {
4207
- var ie = u(_, T), ne = ie >= 0 ? s.containerGroups[ie] : void 0;
4209
+ var ie = u(_, S), ne = ie >= 0 ? s.containerGroups[ie] : void 0;
4208
4210
  if (ie < 0)
4209
4211
  H ? W = s.tabbableGroups[s.tabbableGroups.length - 1].lastTabbableNode : W = s.tabbableGroups[0].firstTabbableNode;
4210
4212
  else if (H) {
@@ -4212,21 +4214,21 @@ var Du = {
4212
4214
  var q = O.firstTabbableNode;
4213
4215
  return _ === q;
4214
4216
  });
4215
- if (x < 0 && (ne.container === _ || Fi(_, a.tabbableOptions) && !En(_, a.tabbableOptions) && !ne.nextTabbableNode(_, !1)) && (x = ie), x >= 0) {
4217
+ if (x < 0 && (ne.container === _ || Fi(_, a.tabbableOptions) && !_n(_, a.tabbableOptions) && !ne.nextTabbableNode(_, !1)) && (x = ie), x >= 0) {
4216
4218
  var z = x === 0 ? s.tabbableGroups.length - 1 : x - 1, re = s.tabbableGroups[z];
4217
4219
  W = gn(_) >= 0 ? re.lastTabbableNode : re.lastDomTabbableNode;
4218
4220
  } else
4219
- Sr(T) || (W = ne.nextTabbableNode(_, !1));
4221
+ Sr(S) || (W = ne.nextTabbableNode(_, !1));
4220
4222
  } else {
4221
4223
  var F = wu(s.tabbableGroups, function(O) {
4222
4224
  var q = O.lastTabbableNode;
4223
4225
  return _ === q;
4224
4226
  });
4225
- if (F < 0 && (ne.container === _ || Fi(_, a.tabbableOptions) && !En(_, a.tabbableOptions) && !ne.nextTabbableNode(_)) && (F = ie), F >= 0) {
4227
+ if (F < 0 && (ne.container === _ || Fi(_, a.tabbableOptions) && !_n(_, a.tabbableOptions) && !ne.nextTabbableNode(_)) && (F = ie), F >= 0) {
4226
4228
  var k = F === s.tabbableGroups.length - 1 ? 0 : F + 1, N = s.tabbableGroups[k];
4227
4229
  W = gn(_) >= 0 ? N.firstTabbableNode : N.firstDomTabbableNode;
4228
4230
  } else
4229
- Sr(T) || (W = ne.nextTabbableNode(_));
4231
+ Sr(S) || (W = ne.nextTabbableNode(_));
4230
4232
  }
4231
4233
  } else
4232
4234
  W = d("fallbackFocus");
@@ -4249,9 +4251,9 @@ var Du = {
4249
4251
  xr(a.allowOutsideClick, A) || A.preventDefault();
4250
4252
  }
4251
4253
  }, w = function(A) {
4252
- var _ = si(A), T = u(_, A) >= 0;
4253
- if (T || _ instanceof Document)
4254
- T && (s.mostRecentlyFocusedNode = _);
4254
+ var _ = si(A), S = u(_, A) >= 0;
4255
+ if (S || _ instanceof Document)
4256
+ S && (s.mostRecentlyFocusedNode = _);
4255
4257
  else {
4256
4258
  A.stopImmediatePropagation();
4257
4259
  var j, H = !0;
@@ -4283,11 +4285,11 @@ var Du = {
4283
4285
  }, E = function(A) {
4284
4286
  var _ = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
4285
4287
  s.recentNavEvent = A;
4286
- var T = b({
4288
+ var S = b({
4287
4289
  event: A,
4288
4290
  isBackward: _
4289
4291
  });
4290
- T && (Sr(A) && A.preventDefault(), g(T));
4292
+ S && (Sr(A) && A.preventDefault(), g(S));
4291
4293
  }, B = function(A) {
4292
4294
  if (cp(A) && xr(a.escapeDeactivates, A) !== !1) {
4293
4295
  A.preventDefault(), o.deactivate();
@@ -4314,12 +4316,12 @@ var Du = {
4314
4316
  capture: !0,
4315
4317
  passive: !1
4316
4318
  }), o;
4317
- }, S = function() {
4319
+ }, T = function() {
4318
4320
  if (s.active)
4319
4321
  return r.removeEventListener("focusin", w, !0), r.removeEventListener("mousedown", v, !0), r.removeEventListener("touchstart", v, !0), r.removeEventListener("click", D, !0), r.removeEventListener("keydown", B, !0), o;
4320
4322
  }, I = function(A) {
4321
- var _ = A.some(function(T) {
4322
- var j = Array.from(T.removedNodes);
4323
+ var _ = A.some(function(S) {
4324
+ var j = Array.from(S.removedNodes);
4323
4325
  return j.some(function(H) {
4324
4326
  return H === s.mostRecentlyFocusedNode;
4325
4327
  });
@@ -4343,10 +4345,10 @@ var Du = {
4343
4345
  activate: function(A) {
4344
4346
  if (s.active)
4345
4347
  return this;
4346
- var _ = l(A, "onActivate"), T = l(A, "onPostActivate"), j = l(A, "checkCanFocusTrap");
4348
+ var _ = l(A, "onActivate"), S = l(A, "onPostActivate"), j = l(A, "checkCanFocusTrap");
4347
4349
  j || m(), s.active = !0, s.paused = !1, s.nodeFocusedBeforeActivation = r.activeElement, _ == null || _();
4348
4350
  var H = function() {
4349
- j && m(), C(), L(), T == null || T();
4351
+ j && m(), C(), L(), S == null || S();
4350
4352
  };
4351
4353
  return j ? (j(s.containers.concat()).then(H, H), this) : (H(), this);
4352
4354
  },
@@ -4358,9 +4360,9 @@ var Du = {
4358
4360
  onPostDeactivate: a.onPostDeactivate,
4359
4361
  checkCanReturnFocus: a.checkCanReturnFocus
4360
4362
  }, A);
4361
- clearTimeout(s.delayInitialFocusTimer), s.delayInitialFocusTimer = void 0, S(), s.active = !1, s.paused = !1, L(), Du.deactivateTrap(i, o);
4362
- var T = l(_, "onDeactivate"), j = l(_, "onPostDeactivate"), H = l(_, "checkCanReturnFocus"), W = l(_, "returnFocus", "returnFocusOnDeactivate");
4363
- T == null || T();
4363
+ clearTimeout(s.delayInitialFocusTimer), s.delayInitialFocusTimer = void 0, T(), s.active = !1, s.paused = !1, L(), Du.deactivateTrap(i, o);
4364
+ var S = l(_, "onDeactivate"), j = l(_, "onPostDeactivate"), H = l(_, "checkCanReturnFocus"), W = l(_, "returnFocus", "returnFocusOnDeactivate");
4365
+ S == null || S();
4364
4366
  var ie = function() {
4365
4367
  xu(function() {
4366
4368
  W && g(f(s.nodeFocusedBeforeActivation)), j == null || j();
@@ -4371,19 +4373,19 @@ var Du = {
4371
4373
  pause: function(A) {
4372
4374
  if (s.paused || !s.active)
4373
4375
  return this;
4374
- var _ = l(A, "onPause"), T = l(A, "onPostPause");
4375
- return s.paused = !0, _ == null || _(), S(), L(), T == null || T(), this;
4376
+ var _ = l(A, "onPause"), S = l(A, "onPostPause");
4377
+ return s.paused = !0, _ == null || _(), T(), L(), S == null || S(), this;
4376
4378
  },
4377
4379
  unpause: function(A) {
4378
4380
  if (!s.paused || !s.active)
4379
4381
  return this;
4380
- var _ = l(A, "onUnpause"), T = l(A, "onPostUnpause");
4381
- return s.paused = !1, _ == null || _(), m(), C(), L(), T == null || T(), this;
4382
+ var _ = l(A, "onUnpause"), S = l(A, "onPostUnpause");
4383
+ return s.paused = !1, _ == null || _(), m(), C(), L(), S == null || S(), this;
4382
4384
  },
4383
4385
  updateContainerElements: function(A) {
4384
4386
  var _ = [].concat(A).filter(Boolean);
4385
- return s.containers = _.map(function(T) {
4386
- return typeof T == "string" ? r.querySelector(T) : T;
4387
+ return s.containers = _.map(function(S) {
4388
+ return typeof S == "string" ? r.querySelector(S) : S;
4387
4389
  }), s.active && m(), L(), this;
4388
4390
  }
4389
4391
  }, o.updateContainerElements(t), o;
@@ -4726,7 +4728,7 @@ ao.defaultProps = {
4726
4728
  _createFocusTrap: Fp
4727
4729
  };
4728
4730
  var Tp = ao;
4729
- const Sp = /* @__PURE__ */ Mn(Tp);
4731
+ const Sp = /* @__PURE__ */ Rn(Tp);
4730
4732
  const xn = ({
4731
4733
  id: e = "content-overlay",
4732
4734
  isOpen: t = !1,
@@ -4743,11 +4745,11 @@ const xn = ({
4743
4745
  gtmContext: h = "Modal"
4744
4746
  }) => {
4745
4747
  const m = le(), { registerOverlay: p, unregisterOverlay: g } = Cm(), [f, b] = ue(t), [v, w] = ue(null), E = ke(null), B = (P) => {
4746
- f && P.key === "Escape" && S(!1);
4748
+ f && P.key === "Escape" && T(!1);
4747
4749
  }, D = (P) => {
4748
4750
  w(P.target);
4749
4751
  }, C = (P) => {
4750
- v === E.current && P.target === E.current && S(!1), w(null);
4752
+ v === E.current && P.target === E.current && T(!1), w(null);
4751
4753
  };
4752
4754
  de(() => {
4753
4755
  if (f)
@@ -4760,7 +4762,7 @@ const xn = ({
4760
4762
  P && (P.removeEventListener("mousedown", D), P.removeEventListener("mouseup", C));
4761
4763
  };
4762
4764
  }, [v]);
4763
- const S = (P) => {
4765
+ const T = (P) => {
4764
4766
  if (b(P), P)
4765
4767
  i(), p(e);
4766
4768
  else {
@@ -4769,7 +4771,7 @@ const xn = ({
4769
4771
  a(), g(e);
4770
4772
  }
4771
4773
  };
4772
- de(() => (S(t), () => {
4774
+ de(() => (T(t), () => {
4773
4775
  f && g(e);
4774
4776
  }), [t]);
4775
4777
  const I = r ? { "--max-width": `${r / 16}rem` } : {};
@@ -4801,7 +4803,7 @@ const xn = ({
4801
4803
  variant: "tertiary",
4802
4804
  size: "medium",
4803
4805
  icon: { icon: "close" },
4804
- onClick: () => S(!1),
4806
+ onClick: () => T(!1),
4805
4807
  className: "gtm-trackable",
4806
4808
  "data-gtm-event-type": "close-modal-click",
4807
4809
  "data-gtm-event-context": h,
@@ -4956,7 +4958,7 @@ const W_ = ({ breadcrumbs: e, cutoff: t = 20, className: n = "" }) => {
4956
4958
  children: r.formatMessage({ id: "breadcrumbs_currentPage" })
4957
4959
  }
4958
4960
  ),
4959
- /* @__PURE__ */ c.jsx(Rn, { href: s ? void 0 : a, ...l, children: ar(i, t) })
4961
+ /* @__PURE__ */ c.jsx($n, { href: s ? void 0 : a, ...l, children: ar(i, t) })
4960
4962
  ] }, `${window.btoa(i)}_${o}`);
4961
4963
  }
4962
4964
  ) })
@@ -5107,7 +5109,7 @@ const ui = "languageSwitcher_", U_ = ({
5107
5109
  }
5108
5110
  };
5109
5111
  }
5110
- return /* @__PURE__ */ c.jsx("li", { children: /* @__PURE__ */ c.jsx(Rn, { ...w, fallbackElement: "span", children: Da[b] }) }, b);
5112
+ return /* @__PURE__ */ c.jsx("li", { children: /* @__PURE__ */ c.jsx($n, { ...w, fallbackElement: "span", children: Da[b] }) }, b);
5111
5113
  }) }),
5112
5114
  s !== "short" && !f && /* @__PURE__ */ c.jsx("p", { children: u.formatMessage({
5113
5115
  id: `${ui}translation_${t ? "original" : n ? "human" : "machine"}`
@@ -5428,8 +5430,8 @@ const V_ = ({ tabs: e, className: t = "", preventLocationChange: n }) => {
5428
5430
  if (B && !h(B))
5429
5431
  return;
5430
5432
  f = r(f, b, D);
5431
- const C = s === f, S = {};
5432
- w || (S["aria-controls"] = f, S.onClick = (I) => {
5433
+ const C = s === f, T = {};
5434
+ w || (T["aria-controls"] = f, T.onClick = (I) => {
5433
5435
  I.preventDefault(), I.stopPropagation(), o(f), !n && (window.location.hash = `#${f}`);
5434
5436
  }, p.push(
5435
5437
  /* @__PURE__ */ c.jsx(
@@ -5456,7 +5458,7 @@ const V_ = ({ tabs: e, className: t = "", preventLocationChange: n }) => {
5456
5458
  tabIndex: C ? 0 : -1,
5457
5459
  "aria-selected": C,
5458
5460
  onKeyDown: (I) => d(I, D),
5459
- ...S,
5461
+ ...T,
5460
5462
  children: b
5461
5463
  }
5462
5464
  ) }, `tab-${f}`)
@@ -5904,13 +5906,13 @@ const gd = ({
5904
5906
  case "ArrowRight":
5905
5907
  w.stopPropagation(), w.preventDefault();
5906
5908
  const C = w.currentTarget;
5907
- let S = C == null ? void 0 : C.nextElementSibling;
5909
+ let T = C == null ? void 0 : C.nextElementSibling;
5908
5910
  if (w.key === "ArrowLeft") {
5909
5911
  const I = C == null ? void 0 : C.previousElementSibling;
5910
- I ? S = I : S = (E = C == null ? void 0 : C.parentElement) == null ? void 0 : E.lastElementChild;
5912
+ I ? T = I : T = (E = C == null ? void 0 : C.parentElement) == null ? void 0 : E.lastElementChild;
5911
5913
  } else
5912
- S || (S = (B = C == null ? void 0 : C.parentElement) == null ? void 0 : B.firstElementChild);
5913
- S && ((D = S == null ? void 0 : S.querySelector("label")) == null || D.focus());
5914
+ T || (T = (B = C == null ? void 0 : C.parentElement) == null ? void 0 : B.firstElementChild);
5915
+ T && ((D = T == null ? void 0 : T.querySelector("label")) == null || D.focus());
5914
5916
  break;
5915
5917
  }
5916
5918
  } : void 0,
@@ -5949,17 +5951,17 @@ const Gp = ({
5949
5951
  }) => {
5950
5952
  const d = le(), [h, m] = ue(!1), p = r || n, g = Array.isArray(p) ? [...p] : p ? [p] : [], [f, b] = ue(g);
5951
5953
  let v;
5952
- Array.isArray(f) && f.length === 1 && typeof f[0] == "string" ? v = t && f ? t.find((S) => S.id === f[0]) : t ? t[0] : { id: "", label: "" } : Array.isArray(f) && f.length === 1 && typeof f[0] != "string" ? v = f[0] : v = { id: "", label: "" }, de(() => {
5954
+ Array.isArray(f) && f.length === 1 && typeof f[0] == "string" ? v = t && f ? t.find((T) => T.id === f[0]) : t ? t[0] : { id: "", label: "" } : Array.isArray(f) && f.length === 1 && typeof f[0] != "string" ? v = f[0] : v = { id: "", label: "" }, de(() => {
5953
5955
  b(g);
5954
5956
  }, [r, n]);
5955
- const { onChange: w, onMultiSelectSubmit: E, ...B } = i, D = (S) => {
5957
+ const { onChange: w, onMultiSelectSubmit: E, ...B } = i, D = (T) => {
5956
5958
  if (o) {
5957
5959
  let I = [];
5958
- f != null && f.includes(S.id) ? I = f.filter((P) => P !== S.id) : I = [...f, S.id], b([...I]), w && w([...I]);
5960
+ f != null && f.includes(T.id) ? I = f.filter((P) => P !== T.id) : I = [...f, T.id], b([...I]), w && w([...I]);
5959
5961
  } else
5960
- b([S]), w && w(S.id), m(!1);
5961
- }, C = (S) => {
5962
- if (S === "all") {
5962
+ b([T]), w && w(T.id), m(!1);
5963
+ }, C = (T) => {
5964
+ if (T === "all") {
5963
5965
  const I = (t == null ? void 0 : t.map((P) => P.id)) || [];
5964
5966
  b(I), w && w(I);
5965
5967
  } else
@@ -5973,8 +5975,8 @@ const Gp = ({
5973
5975
  "aria-expanded": h,
5974
5976
  "aria-haspopup": "listbox",
5975
5977
  "aria-controls": "dropdown-list",
5976
- onClick: (S) => {
5977
- S.preventDefault(), S.stopPropagation(), m(!h);
5978
+ onClick: (T) => {
5979
+ T.preventDefault(), T.stopPropagation(), m(!h);
5978
5980
  },
5979
5981
  "data-testid": "dropdown-selector",
5980
5982
  ...B,
@@ -5988,23 +5990,23 @@ const Gp = ({
5988
5990
  "select",
5989
5991
  {
5990
5992
  defaultValue: v.id,
5991
- onChange: (S) => {
5992
- S.preventDefault(), S.stopPropagation();
5993
- const I = t && t.find((P) => P.id === S.target.value);
5993
+ onChange: (T) => {
5994
+ T.preventDefault(), T.stopPropagation();
5995
+ const I = t && t.find((P) => P.id === T.target.value);
5994
5996
  D(I);
5995
5997
  },
5996
5998
  hidden: !h,
5997
5999
  ...B,
5998
- children: t == null ? void 0 : t.map((S) => /* @__PURE__ */ c.jsx(
6000
+ children: t == null ? void 0 : t.map((T) => /* @__PURE__ */ c.jsx(
5999
6001
  "option",
6000
6002
  {
6001
- value: S.id,
6003
+ value: T.id,
6002
6004
  className: "gtm-trackable",
6003
- "data-gtm-event-type": `${S.id}-click`,
6005
+ "data-gtm-event-type": `${T.id}-click`,
6004
6006
  "data-gtm-event-context": a,
6005
- children: S.label
6007
+ children: T.label
6006
6008
  },
6007
- S.id
6009
+ T.id
6008
6010
  ))
6009
6011
  }
6010
6012
  ),
@@ -6045,8 +6047,8 @@ const Gp = ({
6045
6047
  ) })
6046
6048
  ] })
6047
6049
  ] }),
6048
- /* @__PURE__ */ c.jsx("ul", { children: t == null ? void 0 : t.map((S) => {
6049
- const I = S.id === v.id || (f == null ? void 0 : f.includes(S)) || (f == null ? void 0 : f.includes(S.id));
6050
+ /* @__PURE__ */ c.jsx("ul", { children: t == null ? void 0 : t.map((T) => {
6051
+ const I = T.id === v.id || (f == null ? void 0 : f.includes(T)) || (f == null ? void 0 : f.includes(T.id));
6050
6052
  return /* @__PURE__ */ c.jsx("li", { "data-testid": "dropdown-options", children: /* @__PURE__ */ c.jsxs(
6051
6053
  "button",
6052
6054
  {
@@ -6054,20 +6056,20 @@ const Gp = ({
6054
6056
  selected: I,
6055
6057
  "selected-single": I && !o
6056
6058
  }),
6057
- "data-gtm-event-type": `${S.id}-click`,
6059
+ "data-gtm-event-type": `${T.id}-click`,
6058
6060
  "data-gtm-event-context": a,
6059
6061
  onClick: (P) => {
6060
- P.preventDefault(), P.stopPropagation(), D(S);
6062
+ P.preventDefault(), P.stopPropagation(), D(T);
6061
6063
  },
6062
6064
  role: "menuitem",
6063
6065
  "aria-current": I,
6064
6066
  "data-testid": I ? "current-selection" : "",
6065
6067
  children: [
6066
6068
  o && /* @__PURE__ */ c.jsx("span", { className: "pretty-checkbox", "data-testid": "pretty-checkbox" }),
6067
- /* @__PURE__ */ c.jsx("span", { className: V({ "menu-option-label": o }), children: S.label })
6069
+ /* @__PURE__ */ c.jsx("span", { className: V({ "menu-option-label": o }), children: T.label })
6068
6070
  ]
6069
6071
  }
6070
- ) }, S.id);
6072
+ ) }, T.id);
6071
6073
  }) })
6072
6074
  ] }),
6073
6075
  (l == null ? void 0 : l.submitSection) && /* @__PURE__ */ c.jsx("p", { className: "submit", children: /* @__PURE__ */ c.jsx(
@@ -6127,8 +6129,8 @@ const Eu = ({
6127
6129
  return;
6128
6130
  let C;
6129
6131
  if (a) {
6130
- const S = g == null ? void 0 : g.indexOf(w);
6131
- Array.isArray(g) && S >= 0 ? (C = g, C.splice(S, 1)) : (!g || g.length === 0 ? C = [] : C = g, C.push(w));
6132
+ const T = g == null ? void 0 : g.indexOf(w);
6133
+ Array.isArray(g) && T >= 0 ? (C = g, C.splice(T, 1)) : (!g || g.length === 0 ? C = [] : C = g, C.push(w));
6132
6134
  } else
6133
6135
  C = f === w ? void 0 : w;
6134
6136
  t.onChange(C);
@@ -6236,7 +6238,7 @@ const Kn = {
6236
6238
  type: o,
6237
6239
  required: p,
6238
6240
  "aria-required": p,
6239
- functions: An(i),
6241
+ functions: Bn(i),
6240
6242
  value: u
6241
6243
  };
6242
6244
  const C = ($) => {
@@ -6253,7 +6255,7 @@ const Kn = {
6253
6255
  });
6254
6256
  }
6255
6257
  o && Kn[o] && Kn[o].props && (D = { ...D, ...Kn[o].props }), b && (D.intlPath = `${t}_${e}`), r && (D["aria-invalid"] = !0, D["aria-errormessage"] = w, C(w));
6256
- const S = h.label || m.formatMessage({ id: t ? `${t}_${e}` : e }), I = ({ ...$ }) => r ? te.createElement(
6258
+ const T = h.label || m.formatMessage({ id: t ? `${t}_${e}` : e }), I = ({ ...$ }) => r ? te.createElement(
6257
6259
  $.as || "p",
6258
6260
  {
6259
6261
  id: w,
@@ -6268,7 +6270,7 @@ const Kn = {
6268
6270
  f,
6269
6271
  {
6270
6272
  ...D,
6271
- label: S,
6273
+ label: T,
6272
6274
  className: V("field-wrapper", n)
6273
6275
  }
6274
6276
  ),
@@ -6289,7 +6291,7 @@ const Kn = {
6289
6291
  b ? te.Fragment : "p",
6290
6292
  P,
6291
6293
  /* @__PURE__ */ c.jsxs(L, { ...B, children: [
6292
- S,
6294
+ T,
6293
6295
  p && s && /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
6294
6296
  " ",
6295
6297
  /* @__PURE__ */ c.jsxs("small", { children: [
@@ -6321,7 +6323,7 @@ const Kn = {
6321
6323
  ] })
6322
6324
  ) });
6323
6325
  }, Xp = (e, t) => {
6324
- const { type: n, payload: r } = t, i = e.errors ? An(e.errors) : {}, a = e.values ? An(e.values) : {};
6326
+ const { type: n, payload: r } = t, i = e.errors ? Bn(e.errors) : {}, a = e.values ? Bn(e.values) : {};
6325
6327
  switch (n) {
6326
6328
  case "updateValue":
6327
6329
  if (r != null && r.key && i[r == null ? void 0 : r.key] && delete i[r == null ? void 0 : r.key], r != null && r.key) {
@@ -6352,7 +6354,7 @@ const Kn = {
6352
6354
  onFailure: u = () => {
6353
6355
  },
6354
6356
  intl: d
6355
- } = r, h = An(Object.keys(i));
6357
+ } = r, h = Bn(Object.keys(i));
6356
6358
  for (const m of s)
6357
6359
  if (m.validation)
6358
6360
  for (let p = 0; p < m.validation.length; p++) {
@@ -6411,7 +6413,7 @@ const Kn = {
6411
6413
  }
6412
6414
  };
6413
6415
  let Ta = null;
6414
- const Ln = ({
6416
+ const wn = ({
6415
6417
  element: e = "form",
6416
6418
  fields: t,
6417
6419
  className: n = "",
@@ -6442,7 +6444,7 @@ const Ln = ({
6442
6444
  } = l || {}, {
6443
6445
  onSuccess: C = async () => {
6444
6446
  },
6445
- onCancel: S = () => {
6447
+ onCancel: T = () => {
6446
6448
  },
6447
6449
  onCatch: I = () => {
6448
6450
  },
@@ -6458,7 +6460,7 @@ const Ln = ({
6458
6460
  formSubmitted: !1,
6459
6461
  errors: {},
6460
6462
  values: $
6461
- }), { errors: T, isSubmitting: j, formSubmitted: H, values: W } = A;
6463
+ }), { errors: S, isSubmitting: j, formSubmitted: H, values: W } = A;
6462
6464
  de(() => {
6463
6465
  w && H && (Ta = setTimeout(() => {
6464
6466
  _({
@@ -6564,7 +6566,7 @@ const Ln = ({
6564
6566
  "data-gtm-event-context": d.context,
6565
6567
  "data-gtm-event-type": d.event,
6566
6568
  disabled: j || H,
6567
- onClick: S,
6569
+ onClick: T,
6568
6570
  children: o.text || L.formatMessage({ id: "form_cancel" })
6569
6571
  }), /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
6570
6572
  te.createElement(
@@ -6576,8 +6578,8 @@ const Ln = ({
6576
6578
  ref: ne
6577
6579
  },
6578
6580
  /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
6579
- T != null && T.general ? /* @__PURE__ */ c.jsx(
6580
- $n,
6581
+ S != null && S.general ? /* @__PURE__ */ c.jsx(
6582
+ In,
6581
6583
  {
6582
6584
  variant: "error",
6583
6585
  text: L.formatMessage({ id: "form_error_generalError" })
@@ -6609,7 +6611,7 @@ const Ln = ({
6609
6611
  ...k,
6610
6612
  showRequiredLabels: B,
6611
6613
  value: X,
6612
- error: T == null ? void 0 : T[O],
6614
+ error: S == null ? void 0 : S[O],
6613
6615
  functions: ce
6614
6616
  },
6615
6617
  O
@@ -7460,10 +7462,10 @@ function Et(e, ...t) {
7460
7462
  );
7461
7463
  }
7462
7464
  var ur = Object.getPrototypeOf;
7463
- function On(e) {
7465
+ function Pn(e) {
7464
7466
  return !!e && !!e[Tt];
7465
7467
  }
7466
- function Pn(e) {
7468
+ function Nn(e) {
7467
7469
  var t;
7468
7470
  return e ? Ad(e) || Array.isArray(e) || !!e[Au] || !!((t = e.constructor) != null && t[Au]) || ua(e) || la(e) : !1;
7469
7471
  }
@@ -7502,7 +7504,7 @@ function ua(e) {
7502
7504
  function la(e) {
7503
7505
  return e instanceof Set;
7504
7506
  }
7505
- function _n(e) {
7507
+ function kn(e) {
7506
7508
  return e.copy_ || e.base_;
7507
7509
  }
7508
7510
  function As(e, t) {
@@ -7537,7 +7539,7 @@ function As(e, t) {
7537
7539
  }
7538
7540
  }
7539
7541
  function co(e, t = !1) {
7540
- return ca(e) || On(e) || !Pn(e) || (oa(e) > 1 && (e.set = e.add = e.clear = e.delete = Sg), Object.freeze(e), t && Object.entries(e).forEach(([n, r]) => co(r, !0))), e;
7542
+ return ca(e) || Pn(e) || !Nn(e) || (oa(e) > 1 && (e.set = e.add = e.clear = e.delete = Sg), Object.freeze(e), t && Object.entries(e).forEach(([n, r]) => co(r, !0))), e;
7541
7543
  }
7542
7544
  function Sg() {
7543
7545
  Et(2);
@@ -7546,7 +7548,7 @@ function ca(e) {
7546
7548
  return Object.isFrozen(e);
7547
7549
  }
7548
7550
  var jg = {};
7549
- function Nn(e) {
7551
+ function Mn(e) {
7550
7552
  const t = jg[e];
7551
7553
  return t || Et(0, e), t;
7552
7554
  }
@@ -7566,7 +7568,7 @@ function Og(e, t) {
7566
7568
  };
7567
7569
  }
7568
7570
  function Bu(e, t) {
7569
- t && (Nn("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
7571
+ t && (Mn("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
7570
7572
  }
7571
7573
  function Bs(e) {
7572
7574
  Ts(e), e.drafts_.forEach(Pg), e.drafts_ = null;
@@ -7584,7 +7586,7 @@ function Pg(e) {
7584
7586
  function Su(e, t) {
7585
7587
  t.unfinalizedDrafts_ = t.drafts_.length;
7586
7588
  const n = t.drafts_[0];
7587
- return e !== void 0 && e !== n ? (n[Tt].modified_ && (Bs(t), Et(4)), Pn(e) && (e = Hi(t, e), t.parent_ || Vi(t, e)), t.patches_ && Nn("Patches").generateReplacementPatches_(
7589
+ return e !== void 0 && e !== n ? (n[Tt].modified_ && (Bs(t), Et(4)), Nn(e) && (e = Hi(t, e), t.parent_ || Vi(t, e)), t.patches_ && Mn("Patches").generateReplacementPatches_(
7588
7590
  n[Tt].base_,
7589
7591
  e,
7590
7592
  t.patches_,
@@ -7611,7 +7613,7 @@ function Hi(e, t, n) {
7611
7613
  r.type_ === 3 && (a = new Set(i), i.clear(), s = !0), Ui(
7612
7614
  a,
7613
7615
  (o, l) => ju(e, r, i, o, l, n, s)
7614
- ), Vi(e, i, !1), n && e.patches_ && Nn("Patches").generatePatches_(
7616
+ ), Vi(e, i, !1), n && e.patches_ && Mn("Patches").generatePatches_(
7615
7617
  r,
7616
7618
  n,
7617
7619
  e.patches_,
@@ -7621,16 +7623,16 @@ function Hi(e, t, n) {
7621
7623
  return r.copy_;
7622
7624
  }
7623
7625
  function ju(e, t, n, r, i, a, s) {
7624
- if (process.env.NODE_ENV !== "production" && i === n && Et(5), On(i)) {
7626
+ if (process.env.NODE_ENV !== "production" && i === n && Et(5), Pn(i)) {
7625
7627
  const o = a && t && t.type_ !== 3 && // Set objects are atomic since they have no keys.
7626
7628
  !Fs(t.assigned_, r) ? a.concat(r) : void 0, l = Hi(e, i, o);
7627
- if (Bd(n, r, l), On(l))
7629
+ if (Bd(n, r, l), Pn(l))
7628
7630
  e.canAutoFreeze_ = !1;
7629
7631
  else
7630
7632
  return;
7631
7633
  } else
7632
7634
  s && n.add(i);
7633
- if (Pn(i) && !ca(i)) {
7635
+ if (Nn(i) && !ca(i)) {
7634
7636
  if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1)
7635
7637
  return;
7636
7638
  Hi(e, i), (!t || !t.scope_.parent_) && typeof r != "symbol" && Object.prototype.propertyIsEnumerable.call(n, r) && Vi(e, i);
@@ -7672,24 +7674,24 @@ var fo = {
7672
7674
  get(e, t) {
7673
7675
  if (t === Tt)
7674
7676
  return e;
7675
- const n = _n(e);
7677
+ const n = kn(e);
7676
7678
  if (!Fs(n, t))
7677
7679
  return Mg(e, n, t);
7678
7680
  const r = n[t];
7679
- return e.finalized_ || !Pn(r) ? r : r === Pa(e.base_, t) ? (Na(e), e.copy_[t] = js(r, e)) : r;
7681
+ return e.finalized_ || !Nn(r) ? r : r === Pa(e.base_, t) ? (Na(e), e.copy_[t] = js(r, e)) : r;
7680
7682
  },
7681
7683
  has(e, t) {
7682
- return t in _n(e);
7684
+ return t in kn(e);
7683
7685
  },
7684
7686
  ownKeys(e) {
7685
- return Reflect.ownKeys(_n(e));
7687
+ return Reflect.ownKeys(kn(e));
7686
7688
  },
7687
7689
  set(e, t, n) {
7688
- const r = Sd(_n(e), t);
7690
+ const r = Sd(kn(e), t);
7689
7691
  if (r != null && r.set)
7690
7692
  return r.set.call(e.draft_, n), !0;
7691
7693
  if (!e.modified_) {
7692
- const i = Pa(_n(e), t), a = i == null ? void 0 : i[Tt];
7694
+ const i = Pa(kn(e), t), a = i == null ? void 0 : i[Tt];
7693
7695
  if (a && a.base_ === n)
7694
7696
  return e.copy_[t] = n, e.assigned_[t] = !1, !0;
7695
7697
  if (Tg(n, i) && (n !== void 0 || Fs(e.base_, t)))
@@ -7706,7 +7708,7 @@ var fo = {
7706
7708
  // Note: We never coerce `desc.value` into an Immer draft, because we can't make
7707
7709
  // the same guarantee in ES5 mode.
7708
7710
  getOwnPropertyDescriptor(e, t) {
7709
- const n = _n(e), r = Reflect.getOwnPropertyDescriptor(n, t);
7711
+ const n = kn(e), r = Reflect.getOwnPropertyDescriptor(n, t);
7710
7712
  return r && {
7711
7713
  writable: !0,
7712
7714
  configurable: e.type_ !== 1 || t !== "length",
@@ -7737,7 +7739,7 @@ Wr.set = function(e, t, n) {
7737
7739
  };
7738
7740
  function Pa(e, t) {
7739
7741
  const n = e[Tt];
7740
- return (n ? _n(n) : e)[t];
7742
+ return (n ? kn(n) : e)[t];
7741
7743
  }
7742
7744
  function Mg(e, t, n) {
7743
7745
  var i;
@@ -7781,7 +7783,7 @@ var Rg = class {
7781
7783
  }
7782
7784
  typeof n != "function" && Et(6), r !== void 0 && typeof r != "function" && Et(7);
7783
7785
  let i;
7784
- if (Pn(t)) {
7786
+ if (Nn(t)) {
7785
7787
  const a = Tu(this), s = js(t, void 0);
7786
7788
  let o = !0;
7787
7789
  try {
@@ -7793,7 +7795,7 @@ var Rg = class {
7793
7795
  } else if (!t || typeof t != "object") {
7794
7796
  if (i = n(t), i === void 0 && (i = t), i === Fd && (i = void 0), this.autoFreeze_ && co(i, !0), r) {
7795
7797
  const a = [], s = [];
7796
- Nn("Patches").generateReplacementPatches_(t, i, a, s), r(a, s);
7798
+ Mn("Patches").generateReplacementPatches_(t, i, a, s), r(a, s);
7797
7799
  }
7798
7800
  return i;
7799
7801
  } else
@@ -7808,7 +7810,7 @@ var Rg = class {
7808
7810
  }, typeof (e == null ? void 0 : e.autoFreeze) == "boolean" && this.setAutoFreeze(e.autoFreeze), typeof (e == null ? void 0 : e.useStrictShallowCopy) == "boolean" && this.setUseStrictShallowCopy(e.useStrictShallowCopy);
7809
7811
  }
7810
7812
  createDraft(e) {
7811
- Pn(e) || Et(8), On(e) && (e = $g(e));
7813
+ Nn(e) || Et(8), Pn(e) && (e = $g(e));
7812
7814
  const t = Tu(this), n = js(e, void 0);
7813
7815
  return n[Tt].isManual_ = !0, Ts(t), n;
7814
7816
  }
@@ -7844,22 +7846,22 @@ var Rg = class {
7844
7846
  }
7845
7847
  }
7846
7848
  n > -1 && (t = t.slice(n + 1));
7847
- const r = Nn("Patches").applyPatches_;
7848
- return On(e) ? r(e, t) : this.produce(
7849
+ const r = Mn("Patches").applyPatches_;
7850
+ return Pn(e) ? r(e, t) : this.produce(
7849
7851
  e,
7850
7852
  (i) => r(i, t)
7851
7853
  );
7852
7854
  }
7853
7855
  };
7854
7856
  function js(e, t) {
7855
- const n = ua(e) ? Nn("MapSet").proxyMap_(e, t) : la(e) ? Nn("MapSet").proxySet_(e, t) : Ng(e, t);
7857
+ const n = ua(e) ? Mn("MapSet").proxyMap_(e, t) : la(e) ? Mn("MapSet").proxySet_(e, t) : Ng(e, t);
7856
7858
  return (t ? t.scope_ : Td()).drafts_.push(n), n;
7857
7859
  }
7858
7860
  function $g(e) {
7859
- return On(e) || Et(10, e), jd(e);
7861
+ return Pn(e) || Et(10, e), jd(e);
7860
7862
  }
7861
7863
  function jd(e) {
7862
- if (!Pn(e) || ca(e))
7864
+ if (!Nn(e) || ca(e))
7863
7865
  return e;
7864
7866
  const t = e[Tt];
7865
7867
  let n;
@@ -8193,8 +8195,8 @@ var Ug = (e, t, n) => {
8193
8195
  else
8194
8196
  throw new Error('Cannot apply a "merge_node" operation at path ['.concat(v, "] to nodes of different interfaces: ").concat(ot.stringify(w), " ").concat(ot.stringify(B)));
8195
8197
  if (D.children.splice(C, 1), t)
8196
- for (var [S, I] of Y.points(t))
8197
- t[I] = Be.transform(S, n);
8198
+ for (var [T, I] of Y.points(t))
8199
+ t[I] = Be.transform(T, n);
8198
8200
  break;
8199
8201
  }
8200
8202
  case "move_node": {
@@ -8206,7 +8208,7 @@ var Ug = (e, t, n) => {
8206
8208
  throw new Error("Cannot move a path [".concat(P, "] to new path [").concat(L, "] because the destination is inside itself."));
8207
8209
  var $ = oe.get(e, P), A = oe.parent(e, P), _ = P[P.length - 1];
8208
8210
  A.children.splice(_, 1);
8209
- var T = R.transform(P, n), j = oe.get(e, R.parent(T)), H = T[T.length - 1];
8211
+ var S = R.transform(P, n), j = oe.get(e, R.parent(S)), H = S[S.length - 1];
8210
8212
  if (j.children.splice(H, 0, $), t)
8211
8213
  for (var [W, ie] of Y.points(t))
8212
8214
  t[ie] = Be.transform(W, n);
@@ -8327,7 +8329,7 @@ var Ug = (e, t, n) => {
8327
8329
  try {
8328
8330
  n = Ug(e, n, t);
8329
8331
  } finally {
8330
- e.children = Pu(e.children), n ? e.selection = On(n) ? Pu(n) : n : e.selection = null;
8332
+ e.children = Pu(e.children), n ? e.selection = Pn(n) ? Pu(n) : n : e.selection = null;
8331
8333
  }
8332
8334
  }
8333
8335
  }, Vg = {
@@ -9541,8 +9543,8 @@ var Bv = (e, t) => {
9541
9543
  }
9542
9544
  case "split_node": {
9543
9545
  var {
9544
- path: S
9545
- } = t, I = R.levels(S), P = R.next(S);
9546
+ path: T
9547
+ } = t, I = R.levels(T), P = R.next(T);
9546
9548
  return [...I, P];
9547
9549
  }
9548
9550
  default:
@@ -10282,8 +10284,8 @@ function _0(e) {
10282
10284
  }
10283
10285
  }
10284
10286
  }
10285
- function D(C, S, I) {
10286
- return S === "character" ? po(C, I) : S === "word" ? sv(C, I) : S === "line" || S === "block" ? C.length : 1;
10287
+ function D(C, T, I) {
10288
+ return T === "character" ? po(C, I) : T === "word" ? sv(C, I) : T === "line" || T === "block" ? C.length : 1;
10287
10289
  }
10288
10290
  }();
10289
10291
  }
@@ -10512,7 +10514,7 @@ var S0 = (e, t) => {
10512
10514
  match: (De) => he.isElement(De) && y.isBlock(t, De),
10513
10515
  at: E,
10514
10516
  voids: l
10515
- }), C = B && D && !R.equals(B[1], D[1]), S = R.equals(w.path, E.path), I = l ? null : (r = y.void(t, {
10517
+ }), C = B && D && !R.equals(B[1], D[1]), T = R.equals(w.path, E.path), I = l ? null : (r = y.void(t, {
10516
10518
  at: w,
10517
10519
  mode: "highest"
10518
10520
  })) !== null && r !== void 0 ? r : y.elementReadOnly(t, {
@@ -10534,18 +10536,18 @@ var S0 = (e, t) => {
10534
10536
  $ && D && R.isAncestor(D[1], $.path) && (E = $);
10535
10537
  }
10536
10538
  var A = [], _;
10537
- for (var T of y.nodes(t, {
10539
+ for (var S of y.nodes(t, {
10538
10540
  at: u,
10539
10541
  voids: l
10540
10542
  })) {
10541
- var [j, H] = T;
10542
- _ && R.compare(H, _) === 0 || (!l && he.isElement(j) && (y.isVoid(t, j) || y.isElementReadOnly(t, j)) || !R.isCommon(H, w.path) && !R.isCommon(H, E.path)) && (A.push(T), _ = H);
10543
+ var [j, H] = S;
10544
+ _ && R.compare(H, _) === 0 || (!l && he.isElement(j) && (y.isVoid(t, j) || y.isElementReadOnly(t, j)) || !R.isCommon(H, w.path) && !R.isCommon(H, E.path)) && (A.push(S), _ = H);
10543
10545
  }
10544
10546
  var W = Array.from(A, (De) => {
10545
10547
  var [, Fe] = De;
10546
10548
  return y.pathRef(t, Fe);
10547
10549
  }), ie = y.pointRef(t, w), ne = y.pointRef(t, E), x = "";
10548
- if (!S && !I) {
10550
+ if (!T && !I) {
10549
10551
  var z = ie.current, [re] = y.leaf(t, z), {
10550
10552
  path: F
10551
10553
  } = z, {
@@ -10564,7 +10566,7 @@ var S0 = (e, t) => {
10564
10566
  })), !P) {
10565
10567
  var O = ne.current, [q] = y.leaf(t, O), {
10566
10568
  path: J
10567
- } = O, U = S ? w.offset : 0, X = q.text.slice(U, E.offset);
10569
+ } = O, U = T ? w.offset : 0, X = q.text.slice(U, E.offset);
10568
10570
  X.length > 0 && (t.apply({
10569
10571
  type: "remove_text",
10570
10572
  path: J,
@@ -10572,7 +10574,7 @@ var S0 = (e, t) => {
10572
10574
  text: X
10573
10575
  }), x = X);
10574
10576
  }
10575
- !S && C && ne.current && ie.current && Q.mergeNodes(t, {
10577
+ !T && C && ne.current && ie.current && Q.mergeNodes(t, {
10576
10578
  at: ne.current,
10577
10579
  hanging: !0,
10578
10580
  voids: l
@@ -10638,7 +10640,7 @@ var S0 = (e, t) => {
10638
10640
  children: n
10639
10641
  }, []), [, C] = oe.last({
10640
10642
  children: n
10641
- }, []), S = [], I = (N) => {
10643
+ }, []), T = [], I = (N) => {
10642
10644
  var [O, q] = N, J = q.length === 0;
10643
10645
  return J ? !1 : w ? !0 : !(E && R.isAncestor(q, D) && he.isElement(O) && !t.isVoid(O) && !t.isInline(O) || B && R.isAncestor(q, C) && he.isElement(O) && !t.isVoid(O) && !t.isInline(O));
10644
10646
  };
@@ -10647,10 +10649,10 @@ var S0 = (e, t) => {
10647
10649
  }, {
10648
10650
  pass: I
10649
10651
  }))
10650
- I(P) && S.push(P);
10651
- var L = [], $ = [], A = [], _ = !0, T = !1;
10652
- for (var [j] of S)
10653
- he.isElement(j) && !t.isInline(j) ? (_ = !1, T = !0, $.push(j)) : _ ? L.push(j) : A.push(j);
10652
+ I(P) && T.push(P);
10653
+ var L = [], $ = [], A = [], _ = !0, S = !1;
10654
+ for (var [j] of T)
10655
+ he.isElement(j) && !t.isInline(j) ? (_ = !1, S = !0, $.push(j)) : _ ? L.push(j) : A.push(j);
10654
10656
  var [H] = y.nodes(t, {
10655
10657
  at: s,
10656
10658
  match: (N) => me.isText(N) || y.isInline(t, N),
@@ -10659,9 +10661,9 @@ var S0 = (e, t) => {
10659
10661
  }), [, W] = H, ie = y.isStart(t, s, W), ne = y.isEnd(t, s, W), x = y.pathRef(t, v && !A.length ? R.next(f) : f), z = y.pathRef(t, ne ? R.next(W) : W);
10660
10662
  Q.splitNodes(t, {
10661
10663
  at: s,
10662
- match: (N) => T ? he.isElement(N) && y.isBlock(t, N) : me.isText(N) || y.isInline(t, N),
10663
- mode: T ? "lowest" : "highest",
10664
- always: T && (!b || L.length > 0) && (!v || A.length > 0),
10664
+ match: (N) => S ? he.isElement(N) && y.isBlock(t, N) : me.isText(N) || y.isInline(t, N),
10665
+ mode: S ? "lowest" : "highest",
10666
+ always: S && (!b || L.length > 0) && (!v || A.length > 0),
10665
10667
  voids: a
10666
10668
  });
10667
10669
  var re = y.pathRef(t, !ie || ie && ne ? R.next(W) : W);
@@ -10879,12 +10881,12 @@ var W0 = function(t, n) {
10879
10881
  var L = function() {
10880
10882
  var _ = E.concat(B);
10881
10883
  B++;
10882
- var T = {
10884
+ var S = {
10883
10885
  type: "insert_node",
10884
10886
  path: _,
10885
10887
  node: $
10886
10888
  };
10887
- t.apply(T), l = R.next(l), D.push(T), me.isText ? C.push(...Array.from(oe.nodes($), (j) => {
10889
+ t.apply(S), l = R.next(l), D.push(S), me.isText ? C.push(...Array.from(oe.nodes($), (j) => {
10888
10890
  var [, H] = j;
10889
10891
  return _.concat(H);
10890
10892
  })) : C.push(_);
@@ -10901,12 +10903,12 @@ var W0 = function(t, n) {
10901
10903
  });
10902
10904
  });
10903
10905
  } else
10904
- for (var S of n) {
10906
+ for (var T of n) {
10905
10907
  var I = E.concat(B);
10906
10908
  B++, t.apply({
10907
10909
  type: "insert_node",
10908
10910
  path: I,
10909
- node: S
10911
+ node: T
10910
10912
  }), l = R.next(l);
10911
10913
  }
10912
10914
  if (l = R.previous(l), d) {
@@ -11038,13 +11040,13 @@ var W0 = function(t, n) {
11038
11040
  at: g,
11039
11041
  mode: "highest",
11040
11042
  match: (L) => B.includes(L) && Md(t, L)
11041
- }), C = D && y.pathRef(t, D[1]), S, I;
11043
+ }), C = D && y.pathRef(t, D[1]), T, I;
11042
11044
  if (me.isText(p) && me.isText(f)) {
11043
11045
  var P = un(p, K0);
11044
- I = f.text.length, S = P;
11046
+ I = f.text.length, T = P;
11045
11047
  } else if (he.isElement(p) && he.isElement(f)) {
11046
11048
  var P = un(p, Z0);
11047
- I = f.children.length, S = P;
11049
+ I = f.children.length, T = P;
11048
11050
  } else
11049
11051
  throw new Error("Cannot merge the node at path [".concat(g, "] with the previous sibling because it is not the same kind: ").concat(ot.stringify(p), " ").concat(ot.stringify(f)));
11050
11052
  E || Q.moveNodes(t, {
@@ -11061,7 +11063,7 @@ var W0 = function(t, n) {
11061
11063
  type: "merge_node",
11062
11064
  path: v,
11063
11065
  position: I,
11064
- properties: S
11066
+ properties: T
11065
11067
  }), C && C.unref();
11066
11068
  }
11067
11069
  }
@@ -11185,8 +11187,8 @@ var W0 = function(t, n) {
11185
11187
  var B = {}, D = {};
11186
11188
  if (E.length !== 0) {
11187
11189
  var C = !1;
11188
- for (var S in n)
11189
- S === "children" || S === "text" || s(n[S], w[S]) && (C = !0, w.hasOwnProperty(S) && (B[S] = w[S]), o ? n[S] != null && (D[S] = o(w[S], n[S])) : n[S] != null && (D[S] = n[S]));
11190
+ for (var T in n)
11191
+ T === "children" || T === "text" || s(n[T], w[T]) && (C = !0, w.hasOwnProperty(T) && (B[T] = w[T]), o ? n[T] != null && (D[T] = o(w[T], n[T])) : n[T] != null && (D[T] = n[T]));
11190
11192
  C && t.apply({
11191
11193
  type: "set_node",
11192
11194
  path: E,
@@ -11256,7 +11258,7 @@ var W0 = function(t, n) {
11256
11258
  o = C + 1, l = !0;
11257
11259
  }
11258
11260
  p = y.pointRef(t, s);
11259
- var S = s.path.length - o, [, I] = g, P = s.path.slice(0, S), L = o === 0 ? s.offset : s.path[S] + b;
11261
+ var T = s.path.length - o, [, I] = g, P = s.path.slice(0, T), L = o === 0 ? s.offset : s.path[T] + b;
11260
11262
  for (var [$, A] of y.levels(t, {
11261
11263
  at: P,
11262
11264
  reverse: !0,
@@ -11265,8 +11267,8 @@ var W0 = function(t, n) {
11265
11267
  var _ = !1;
11266
11268
  if (A.length < I.length || A.length === 0 || !i && he.isElement($) && y.isVoid(t, $))
11267
11269
  break;
11268
- var T = m.current, j = y.isEnd(t, T, A);
11269
- if (l || !m || !y.isEdge(t, T, A)) {
11270
+ var S = m.current, j = y.isEnd(t, S, A);
11271
+ if (l || !m || !y.isEdge(t, S, A)) {
11270
11272
  _ = !0;
11271
11273
  var H = oe.extractProps($);
11272
11274
  t.apply({
@@ -11402,7 +11404,7 @@ var rb = function(t, n) {
11402
11404
  var [E] = w, B = w[w.length - 1], [, D] = E, [, C] = B;
11403
11405
  if (D.length === 0 && C.length === 0)
11404
11406
  return 0;
11405
- var S = R.equals(D, C) ? R.parent(D) : R.common(D, C), I = y.range(t, D, C), P = y.node(t, S), [L] = P, $ = S.length + 1, A = R.next(C.slice(0, $)), _ = dl(dl({}, n), {}, {
11407
+ var T = R.equals(D, C) ? R.parent(D) : R.common(D, C), I = y.range(t, D, C), P = y.node(t, T), [L] = P, $ = T.length + 1, A = R.next(C.slice(0, $)), _ = dl(dl({}, n), {}, {
11406
11408
  children: []
11407
11409
  });
11408
11410
  Q.insertNodes(t, _, {
@@ -11410,7 +11412,7 @@ var rb = function(t, n) {
11410
11412
  voids: s
11411
11413
  }), Q.moveNodes(t, {
11412
11414
  at: I,
11413
- match: (T) => he.isAncestor(L) && L.children.includes(T),
11415
+ match: (S) => he.isAncestor(L) && L.children.includes(S),
11414
11416
  to: A.concat(0),
11415
11417
  voids: s
11416
11418
  });
@@ -11940,7 +11942,7 @@ var rb = function(t, n) {
11940
11942
  function fb(e) {
11941
11943
  return e = String(e || ""), cb.test(e) ? "rtl" : db.test(e) ? "ltr" : "neutral";
11942
11944
  }
11943
- const Id = /* @__PURE__ */ Mn(lb);
11945
+ const Id = /* @__PURE__ */ Rn(lb);
11944
11946
  function hb(e) {
11945
11947
  var t = typeof e;
11946
11948
  return e != null && (t == "object" || t == "function");
@@ -12007,19 +12009,19 @@ function cy(e, t, n) {
12007
12009
  throw new TypeError(oy);
12008
12010
  t = vl(t) || 0, sy(n) && (d = !!n.leading, h = "maxWait" in n, a = h ? uy(vl(n.maxWait) || 0, t) : a, m = "trailing" in n ? !!n.trailing : m);
12009
12011
  function p(C) {
12010
- var S = r, I = i;
12011
- return r = i = void 0, u = C, s = e.apply(I, S), s;
12012
+ var T = r, I = i;
12013
+ return r = i = void 0, u = C, s = e.apply(I, T), s;
12012
12014
  }
12013
12015
  function g(C) {
12014
12016
  return u = C, o = setTimeout(v, t), d ? p(C) : s;
12015
12017
  }
12016
12018
  function f(C) {
12017
- var S = C - l, I = C - u, P = t - S;
12019
+ var T = C - l, I = C - u, P = t - T;
12018
12020
  return h ? ly(P, a - I) : P;
12019
12021
  }
12020
12022
  function b(C) {
12021
- var S = C - l, I = C - u;
12022
- return l === void 0 || S >= t || S < 0 || h && I >= a;
12023
+ var T = C - l, I = C - u;
12024
+ return l === void 0 || T >= t || T < 0 || h && I >= a;
12023
12025
  }
12024
12026
  function v() {
12025
12027
  var C = $a();
@@ -12037,8 +12039,8 @@ function cy(e, t, n) {
12037
12039
  return o === void 0 ? s : w($a());
12038
12040
  }
12039
12041
  function D() {
12040
- var C = $a(), S = b(C);
12041
- if (r = arguments, i = this, l = C, S) {
12042
+ var C = $a(), T = b(C);
12043
+ if (r = arguments, i = this, l = C, T) {
12042
12044
  if (o === void 0)
12043
12045
  return g(l);
12044
12046
  if (h)
@@ -12049,7 +12051,7 @@ function cy(e, t, n) {
12049
12051
  return D.cancel = E, D.flush = B, D;
12050
12052
  }
12051
12053
  var Wd = cy;
12052
- const dy = /* @__PURE__ */ Mn(Wd);
12054
+ const dy = /* @__PURE__ */ Rn(Wd);
12053
12055
  var fy = Wd, hy = vo, my = "Expected a function";
12054
12056
  function py(e, t, n) {
12055
12057
  var r = !0, i = !0;
@@ -12062,7 +12064,7 @@ function py(e, t, n) {
12062
12064
  });
12063
12065
  }
12064
12066
  var gy = py;
12065
- const vy = /* @__PURE__ */ Mn(gy), bl = (e) => typeof e == "object" && e != null && e.nodeType === 1, yl = (e, t) => (!t || e !== "hidden") && e !== "visible" && e !== "clip", Ia = (e, t) => {
12067
+ const vy = /* @__PURE__ */ Rn(gy), bl = (e) => typeof e == "object" && e != null && e.nodeType === 1, yl = (e, t) => (!t || e !== "hidden") && e !== "visible" && e !== "clip", Ia = (e, t) => {
12066
12068
  if (e.clientHeight < e.scrollHeight || e.clientWidth < e.scrollWidth) {
12067
12069
  const n = getComputedStyle(e, null);
12068
12070
  return yl(n.overflowY, t) || yl(n.overflowX, t) || ((r) => {
@@ -12098,25 +12100,25 @@ const vy = /* @__PURE__ */ Mn(gy), bl = (e) => typeof e == "object" && e != null
12098
12100
  }
12099
12101
  g != null && g === document.body && Ia(g) && !Ia(document.documentElement) || g != null && Ia(g, d) && p.push(g);
12100
12102
  }
12101
- const f = (r = (n = window.visualViewport) == null ? void 0 : n.width) != null ? r : innerWidth, b = (a = (i = window.visualViewport) == null ? void 0 : i.height) != null ? a : innerHeight, { scrollX: v, scrollY: w } = window, { height: E, width: B, top: D, right: C, bottom: S, left: I } = e.getBoundingClientRect(), { top: P, right: L, bottom: $, left: A } = ((H) => {
12103
+ const f = (r = (n = window.visualViewport) == null ? void 0 : n.width) != null ? r : innerWidth, b = (a = (i = window.visualViewport) == null ? void 0 : i.height) != null ? a : innerHeight, { scrollX: v, scrollY: w } = window, { height: E, width: B, top: D, right: C, bottom: T, left: I } = e.getBoundingClientRect(), { top: P, right: L, bottom: $, left: A } = ((H) => {
12102
12104
  const W = window.getComputedStyle(H);
12103
12105
  return { top: parseFloat(W.scrollMarginTop) || 0, right: parseFloat(W.scrollMarginRight) || 0, bottom: parseFloat(W.scrollMarginBottom) || 0, left: parseFloat(W.scrollMarginLeft) || 0 };
12104
12106
  })(e);
12105
- let _ = o === "start" || o === "nearest" ? D - P : o === "end" ? S + $ : D + E / 2 - P + $, T = l === "center" ? I + B / 2 - A + L : l === "end" ? C + L : I - A;
12107
+ let _ = o === "start" || o === "nearest" ? D - P : o === "end" ? T + $ : D + E / 2 - P + $, S = l === "center" ? I + B / 2 - A + L : l === "end" ? C + L : I - A;
12106
12108
  const j = [];
12107
12109
  for (let H = 0; H < p.length; H++) {
12108
12110
  const W = p[H], { height: ie, width: ne, top: x, right: z, bottom: re, left: F } = W.getBoundingClientRect();
12109
- if (s === "if-needed" && D >= 0 && I >= 0 && S <= b && C <= f && D >= x && S <= re && I >= F && C <= z)
12111
+ if (s === "if-needed" && D >= 0 && I >= 0 && T <= b && C <= f && D >= x && T <= re && I >= F && C <= z)
12110
12112
  return j;
12111
12113
  const k = getComputedStyle(W), N = parseInt(k.borderLeftWidth, 10), O = parseInt(k.borderTopWidth, 10), q = parseInt(k.borderRightWidth, 10), J = parseInt(k.borderBottomWidth, 10);
12112
12114
  let U = 0, X = 0;
12113
12115
  const ce = "offsetWidth" in W ? W.offsetWidth - W.clientWidth - N - q : 0, G = "offsetHeight" in W ? W.offsetHeight - W.clientHeight - O - J : 0, ve = "offsetWidth" in W ? W.offsetWidth === 0 ? 0 : ne / W.offsetWidth : 0, De = "offsetHeight" in W ? W.offsetHeight === 0 ? 0 : ie / W.offsetHeight : 0;
12114
12116
  if (m === W)
12115
- U = o === "start" ? _ : o === "end" ? _ - b : o === "nearest" ? hi(w, w + b, b, O, J, w + _, w + _ + E, E) : _ - b / 2, X = l === "start" ? T : l === "center" ? T - f / 2 : l === "end" ? T - f : hi(v, v + f, f, N, q, v + T, v + T + B, B), U = Math.max(0, U + w), X = Math.max(0, X + v);
12117
+ U = o === "start" ? _ : o === "end" ? _ - b : o === "nearest" ? hi(w, w + b, b, O, J, w + _, w + _ + E, E) : _ - b / 2, X = l === "start" ? S : l === "center" ? S - f / 2 : l === "end" ? S - f : hi(v, v + f, f, N, q, v + S, v + S + B, B), U = Math.max(0, U + w), X = Math.max(0, X + v);
12116
12118
  else {
12117
- U = o === "start" ? _ - x - O : o === "end" ? _ - re + J + G : o === "nearest" ? hi(x, re, ie, O, J + G, _, _ + E, E) : _ - (x + ie / 2) + G / 2, X = l === "start" ? T - F - N : l === "center" ? T - (F + ne / 2) + ce / 2 : l === "end" ? T - z + q + ce : hi(F, z, ne, N, q + ce, T, T + B, B);
12119
+ U = o === "start" ? _ - x - O : o === "end" ? _ - re + J + G : o === "nearest" ? hi(x, re, ie, O, J + G, _, _ + E, E) : _ - (x + ie / 2) + G / 2, X = l === "start" ? S - F - N : l === "center" ? S - (F + ne / 2) + ce / 2 : l === "end" ? S - z + q + ce : hi(F, z, ne, N, q + ce, S, S + B, B);
12118
12120
  const { scrollLeft: Fe, scrollTop: Ne } = W;
12119
- U = De === 0 ? 0 : Math.max(0, Math.min(Ne + U / De, W.scrollHeight - ie / De + G)), X = ve === 0 ? 0 : Math.max(0, Math.min(Fe + X / ve, W.scrollWidth - ne / ve + ce)), _ += Ne - U, T += Fe - X;
12121
+ U = De === 0 ? 0 : Math.max(0, Math.min(Ne + U / De, W.scrollHeight - ie / De + G)), X = ve === 0 ? 0 : Math.max(0, Math.min(Fe + X / ve, W.scrollWidth - ne / ve + ce)), _ += Ne - U, S += Fe - X;
12120
12122
  }
12121
12123
  j.push({ el: W, top: U, left: X });
12122
12124
  }
@@ -12145,12 +12147,12 @@ function Dy(e, t) {
12145
12147
  i.scroll({ top: o, left: l, behavior: r });
12146
12148
  }
12147
12149
  }
12148
- var Bn = [], xy = function() {
12149
- return Bn.some(function(e) {
12150
+ var Tn = [], xy = function() {
12151
+ return Tn.some(function(e) {
12150
12152
  return e.activeTargets.length > 0;
12151
12153
  });
12152
12154
  }, wy = function() {
12153
- return Bn.some(function(e) {
12155
+ return Tn.some(function(e) {
12154
12156
  return e.skippedTargets.length > 0;
12155
12157
  });
12156
12158
  }, xl = "ResizeObserver loop completed with undelivered notifications.", Cy = function() {
@@ -12162,16 +12164,16 @@ var Bn = [], xy = function() {
12162
12164
  (function(e) {
12163
12165
  e.BORDER_BOX = "border-box", e.CONTENT_BOX = "content-box", e.DEVICE_PIXEL_CONTENT_BOX = "device-pixel-content-box";
12164
12166
  })(Hr || (Hr = {}));
12165
- var Tn = function(e) {
12167
+ var Sn = function(e) {
12166
12168
  return Object.freeze(e);
12167
12169
  }, Ey = function() {
12168
12170
  function e(t, n) {
12169
- this.inlineSize = t, this.blockSize = n, Tn(this);
12171
+ this.inlineSize = t, this.blockSize = n, Sn(this);
12170
12172
  }
12171
12173
  return e;
12172
12174
  }(), Ud = function() {
12173
12175
  function e(t, n, r, i) {
12174
- return this.x = t, this.y = n, this.width = r, this.height = i, this.top = this.y, this.left = this.x, this.bottom = this.top + this.height, this.right = this.left + this.width, Tn(this);
12176
+ return this.x = t, this.y = n, this.width = r, this.height = i, this.top = this.y, this.left = this.x, this.bottom = this.top + this.height, this.right = this.left + this.width, Sn(this);
12175
12177
  }
12176
12178
  return e.prototype.toJSON = function() {
12177
12179
  var t = this, n = t.x, r = t.y, i = t.top, a = t.right, s = t.bottom, o = t.left, l = t.width, u = t.height;
@@ -12213,7 +12215,7 @@ var Tn = function(e) {
12213
12215
  return parseFloat(e || "0");
12214
12216
  }, rr = function(e, t, n) {
12215
12217
  return e === void 0 && (e = 0), t === void 0 && (t = 0), n === void 0 && (n = !1), new Ey((n ? t : e) || 0, (n ? e : t) || 0);
12216
- }, El = Tn({
12218
+ }, El = Sn({
12217
12219
  devicePixelContentBoxSize: rr(),
12218
12220
  borderBoxSize: rr(),
12219
12221
  contentBoxSize: rr(),
@@ -12223,7 +12225,7 @@ var Tn = function(e) {
12223
12225
  return mi.get(e);
12224
12226
  if (Hd(e))
12225
12227
  return mi.set(e, El), El;
12226
- var n = getComputedStyle(e), r = bo(e) && e.ownerSVGElement && e.getBBox(), i = !Fy && n.boxSizing === "border-box", a = ky.test(n.writingMode || ""), s = !r && Cl.test(n.overflowY || ""), o = !r && Cl.test(n.overflowX || ""), l = r ? 0 : Ut(n.paddingTop), u = r ? 0 : Ut(n.paddingRight), d = r ? 0 : Ut(n.paddingBottom), h = r ? 0 : Ut(n.paddingLeft), m = r ? 0 : Ut(n.borderTopWidth), p = r ? 0 : Ut(n.borderRightWidth), g = r ? 0 : Ut(n.borderBottomWidth), f = r ? 0 : Ut(n.borderLeftWidth), b = h + u, v = l + d, w = f + p, E = m + g, B = o ? e.offsetHeight - E - e.clientHeight : 0, D = s ? e.offsetWidth - w - e.clientWidth : 0, C = i ? b + w : 0, S = i ? v + E : 0, I = r ? r.width : Ut(n.width) - C - D, P = r ? r.height : Ut(n.height) - S - B, L = I + b + D + w, $ = P + v + B + E, A = Tn({
12228
+ var n = getComputedStyle(e), r = bo(e) && e.ownerSVGElement && e.getBBox(), i = !Fy && n.boxSizing === "border-box", a = ky.test(n.writingMode || ""), s = !r && Cl.test(n.overflowY || ""), o = !r && Cl.test(n.overflowX || ""), l = r ? 0 : Ut(n.paddingTop), u = r ? 0 : Ut(n.paddingRight), d = r ? 0 : Ut(n.paddingBottom), h = r ? 0 : Ut(n.paddingLeft), m = r ? 0 : Ut(n.borderTopWidth), p = r ? 0 : Ut(n.borderRightWidth), g = r ? 0 : Ut(n.borderBottomWidth), f = r ? 0 : Ut(n.borderLeftWidth), b = h + u, v = l + d, w = f + p, E = m + g, B = o ? e.offsetHeight - E - e.clientHeight : 0, D = s ? e.offsetWidth - w - e.clientWidth : 0, C = i ? b + w : 0, T = i ? v + E : 0, I = r ? r.width : Ut(n.width) - C - D, P = r ? r.height : Ut(n.height) - T - B, L = I + b + D + w, $ = P + v + B + E, A = Sn({
12227
12229
  devicePixelContentBoxSize: rr(Math.round(I * devicePixelRatio), Math.round(P * devicePixelRatio), a),
12228
12230
  borderBoxSize: rr(L, $, a),
12229
12231
  contentBoxSize: rr(I, P, a),
@@ -12243,7 +12245,7 @@ var Tn = function(e) {
12243
12245
  }, Ay = function() {
12244
12246
  function e(t) {
12245
12247
  var n = Vd(t);
12246
- this.target = t, this.contentRect = n.contentRect, this.borderBoxSize = Tn([n.borderBoxSize]), this.contentBoxSize = Tn([n.contentBoxSize]), this.devicePixelContentBoxSize = Tn([n.devicePixelContentBoxSize]);
12248
+ this.target = t, this.contentRect = n.contentRect, this.borderBoxSize = Sn([n.borderBoxSize]), this.contentBoxSize = Sn([n.contentBoxSize]), this.devicePixelContentBoxSize = Sn([n.devicePixelContentBoxSize]);
12247
12249
  }
12248
12250
  return e;
12249
12251
  }(), Zd = function(e) {
@@ -12254,7 +12256,7 @@ var Tn = function(e) {
12254
12256
  return t;
12255
12257
  }, By = function() {
12256
12258
  var e = 1 / 0, t = [];
12257
- Bn.forEach(function(s) {
12259
+ Tn.forEach(function(s) {
12258
12260
  if (s.activeTargets.length !== 0) {
12259
12261
  var o = [];
12260
12262
  s.activeTargets.forEach(function(u) {
@@ -12271,7 +12273,7 @@ var Tn = function(e) {
12271
12273
  }
12272
12274
  return e;
12273
12275
  }, _l = function(e) {
12274
- Bn.forEach(function(n) {
12276
+ Tn.forEach(function(n) {
12275
12277
  n.activeTargets.splice(0, n.activeTargets.length), n.skippedTargets.splice(0, n.skippedTargets.length), n.observationTargets.forEach(function(i) {
12276
12278
  i.isActive() && (Zd(i.target) > e ? n.activeTargets.push(i) : n.skippedTargets.push(i));
12277
12279
  });
@@ -12392,10 +12394,10 @@ var Tn = function(e) {
12392
12394
  pi.set(t, r);
12393
12395
  }, e.observe = function(t, n, r) {
12394
12396
  var i = pi.get(t), a = i.observationTargets.length === 0;
12395
- Bl(i.observationTargets, n) < 0 && (a && Bn.push(i), i.observationTargets.push(new Iy(n, r && r.box)), Al(1), Os.schedule());
12397
+ Bl(i.observationTargets, n) < 0 && (a && Tn.push(i), i.observationTargets.push(new Iy(n, r && r.box)), Al(1), Os.schedule());
12396
12398
  }, e.unobserve = function(t, n) {
12397
12399
  var r = pi.get(t), i = Bl(r.observationTargets, n), a = r.observationTargets.length === 1;
12398
- i >= 0 && (a && Bn.splice(Bn.indexOf(r), 1), r.observationTargets.splice(i, 1), Al(-1));
12400
+ i >= 0 && (a && Tn.splice(Tn.indexOf(r), 1), r.observationTargets.splice(i, 1), Al(-1));
12399
12401
  }, e.disconnect = function(t) {
12400
12402
  var n = this, r = pi.get(t);
12401
12403
  r.observationTargets.slice().forEach(function(i) {
@@ -12615,14 +12617,14 @@ function Mt(e, t, n) {
12615
12617
  writable: !0
12616
12618
  }) : e[t] = n, e;
12617
12619
  }
12618
- var xo = /* @__PURE__ */ kt(null), wn = () => {
12620
+ var xo = /* @__PURE__ */ kt(null), Cn = () => {
12619
12621
  var e = Le(xo);
12620
12622
  if (!e)
12621
12623
  throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");
12622
12624
  return e;
12623
12625
  }, ef = parseInt(te.version.split(".")[0], 10), Yy = typeof navigator < "u" && typeof window < "u" && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, Tl = typeof navigator < "u" && /Mac OS X/.test(navigator.userAgent), bt = typeof navigator < "u" && /Android/.test(navigator.userAgent), er = typeof navigator < "u" && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent), Tr = typeof navigator < "u" && /AppleWebKit(?!.*Chrome)/i.test(navigator.userAgent), Gy = typeof navigator < "u" && /Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent), tf = typeof navigator < "u" && /Chrome/i.test(navigator.userAgent), Qy = typeof navigator < "u" && /Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent), Jy = bt && typeof navigator < "u" && /Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent), Xy = typeof navigator < "u" && /^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent), e1 = typeof navigator < "u" && /.*UCBrowser/.test(navigator.userAgent), t1 = typeof navigator < "u" && /.*Wechat/.test(navigator.userAgent) && !/.*MacWechat/.test(navigator.userAgent), Ti = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", fn = (!Qy || !Jy) && !Gy && // globalThis is undefined in older browsers
12624
12626
  typeof globalThis < "u" && globalThis.InputEvent && // @ts-ignore The `getTargetRanges` property isn't recognized.
12625
- typeof globalThis.InputEvent.prototype.getTargetRanges == "function", wo = /* @__PURE__ */ new WeakMap(), Co = /* @__PURE__ */ new WeakMap(), nf = /* @__PURE__ */ new WeakMap(), Si = /* @__PURE__ */ new WeakMap(), Ps = /* @__PURE__ */ new WeakMap(), Kr = /* @__PURE__ */ new WeakMap(), Sn = /* @__PURE__ */ new WeakMap(), Yi = /* @__PURE__ */ new WeakMap(), fa = /* @__PURE__ */ new WeakMap(), Ns = /* @__PURE__ */ new WeakMap(), bn = /* @__PURE__ */ new WeakMap(), Fn = /* @__PURE__ */ new WeakMap(), Pr = /* @__PURE__ */ new WeakMap(), Ms = /* @__PURE__ */ new WeakMap(), Eo = /* @__PURE__ */ new WeakMap(), It = /* @__PURE__ */ new WeakMap(), nn = /* @__PURE__ */ new WeakMap(), Ct = /* @__PURE__ */ new WeakMap(), mn = /* @__PURE__ */ new WeakMap(), pn = /* @__PURE__ */ new WeakMap(), rf = /* @__PURE__ */ new WeakMap(), cr = Symbol("placeholder"), af = Symbol("mark-placeholder"), n1 = globalThis.Text, _o = (e) => e && e.ownerDocument && e.ownerDocument.defaultView || null, r1 = (e) => Dn(e) && e.nodeType === 8, Nt = (e) => Dn(e) && e.nodeType === 1, Dn = (e) => {
12627
+ typeof globalThis.InputEvent.prototype.getTargetRanges == "function", wo = /* @__PURE__ */ new WeakMap(), Co = /* @__PURE__ */ new WeakMap(), nf = /* @__PURE__ */ new WeakMap(), Si = /* @__PURE__ */ new WeakMap(), Ps = /* @__PURE__ */ new WeakMap(), Kr = /* @__PURE__ */ new WeakMap(), jn = /* @__PURE__ */ new WeakMap(), Yi = /* @__PURE__ */ new WeakMap(), fa = /* @__PURE__ */ new WeakMap(), Ns = /* @__PURE__ */ new WeakMap(), bn = /* @__PURE__ */ new WeakMap(), An = /* @__PURE__ */ new WeakMap(), Pr = /* @__PURE__ */ new WeakMap(), Ms = /* @__PURE__ */ new WeakMap(), Eo = /* @__PURE__ */ new WeakMap(), It = /* @__PURE__ */ new WeakMap(), nn = /* @__PURE__ */ new WeakMap(), Ct = /* @__PURE__ */ new WeakMap(), mn = /* @__PURE__ */ new WeakMap(), pn = /* @__PURE__ */ new WeakMap(), rf = /* @__PURE__ */ new WeakMap(), cr = Symbol("placeholder"), af = Symbol("mark-placeholder"), n1 = globalThis.Text, _o = (e) => e && e.ownerDocument && e.ownerDocument.defaultView || null, r1 = (e) => Dn(e) && e.nodeType === 8, Nt = (e) => Dn(e) && e.nodeType === 1, Dn = (e) => {
12626
12628
  var t = _o(e);
12627
12629
  return !!t && e instanceof t.Node;
12628
12630
  }, Rs = (e) => {
@@ -12850,7 +12852,7 @@ var ee = {
12850
12852
  },
12851
12853
  insertFragmentData: (e, t) => e.insertFragmentData(t),
12852
12854
  insertTextData: (e, t) => e.insertTextData(t),
12853
- isComposing: (e) => !!Fn.get(e),
12855
+ isComposing: (e) => !!An.get(e),
12854
12856
  isFocused: (e) => !!bn.get(e),
12855
12857
  isReadOnly: (e) => !!Ns.get(e),
12856
12858
  isTargetInsideNonReadonlyVoid: (e, t) => {
@@ -12932,24 +12934,24 @@ var ee = {
12932
12934
  var v = ee.getWindow(e), w = v.document.createRange();
12933
12935
  w.setStart(l, 0), w.setEnd(a, s);
12934
12936
  var E = w.cloneContents(), B = [...Array.prototype.slice.call(E.querySelectorAll("[data-slate-zero-width]")), ...Array.prototype.slice.call(E.querySelectorAll("[contenteditable=false]"))];
12935
- B.forEach((T) => {
12936
- if (bt && !r && T.hasAttribute("data-slate-zero-width") && T.textContent.length > 0 && T.textContext !== "\uFEFF") {
12937
- T.textContent.startsWith("\uFEFF") && (T.textContent = T.textContent.slice(1));
12937
+ B.forEach((S) => {
12938
+ if (bt && !r && S.hasAttribute("data-slate-zero-width") && S.textContent.length > 0 && S.textContext !== "\uFEFF") {
12939
+ S.textContent.startsWith("\uFEFF") && (S.textContent = S.textContent.slice(1));
12938
12940
  return;
12939
12941
  }
12940
- T.parentNode.removeChild(T);
12942
+ S.parentNode.removeChild(S);
12941
12943
  }), u = E.textContent.length, b = l;
12942
12944
  }
12943
12945
  } else if (g) {
12944
12946
  for (var D = g.querySelectorAll("[data-slate-leaf]"), C = 0; C < D.length; C++) {
12945
- var S = D[C];
12946
- if (ee.hasDOMNode(e, S)) {
12947
- f = S;
12947
+ var T = D[C];
12948
+ if (ee.hasDOMNode(e, T)) {
12949
+ f = T;
12948
12950
  break;
12949
12951
  }
12950
12952
  }
12951
- f ? (l = f.closest('[data-slate-node="text"]'), b = f, u = b.textContent.length, b.querySelectorAll("[data-slate-zero-width]").forEach((T) => {
12952
- u -= T.textContent.length;
12953
+ f ? (l = f.closest('[data-slate-node="text"]'), b = f, u = b.textContent.length, b.querySelectorAll("[data-slate-zero-width]").forEach((S) => {
12954
+ u -= S.textContent.length;
12953
12955
  })) : u = 1;
12954
12956
  }
12955
12957
  b && u === b.textContent.length && // COMPAT: Android IMEs might remove the zero width space while composing,
@@ -13003,8 +13005,8 @@ var ee = {
13003
13005
  u = t.focusNode;
13004
13006
  var m = t.getRangeAt(0), p = t.getRangeAt(t.rangeCount - 1);
13005
13007
  if (u instanceof HTMLTableRowElement && m.startContainer instanceof HTMLTableRowElement && p.startContainer instanceof HTMLTableRowElement) {
13006
- let C = function(S) {
13007
- return S.childElementCount > 0 ? C(S.children[0]) : S;
13008
+ let C = function(T) {
13009
+ return T.childElementCount > 0 ? C(T.children[0]) : T;
13008
13010
  };
13009
13011
  var g = m.startContainer, f = p.startContainer, b = C(g.children[m.startOffset]), v = C(f.children[p.startOffset]);
13010
13012
  d = 0, v.childNodes.length > 0 ? o = v.childNodes[0] : o = v, b.childNodes.length > 0 ? u = b.childNodes[0] : u = b, v instanceof HTMLElement ? l = v.innerHTML.length : l = 0;
@@ -13339,8 +13341,8 @@ function w1(e) {
13339
13341
  if (pn.delete(t), A) {
13340
13342
  var {
13341
13343
  selection: _
13342
- } = t, T = Sl(t, A);
13343
- T && (!_ || !Y.equals(T, _)) && Q.select(t, T);
13344
+ } = t, S = Sl(t, A);
13345
+ S && (!_ || !Y.equals(S, _)) && Q.select(t, S);
13344
13346
  }
13345
13347
  }, h = () => {
13346
13348
  var A = mn.get(t);
@@ -13349,8 +13351,8 @@ function w1(e) {
13349
13351
  var _ = Be.isPoint(A.at) ? $s(t, A.at) : Sl(t, A.at);
13350
13352
  if (!_)
13351
13353
  return;
13352
- var T = y.range(t, _);
13353
- (!t.selection || !Y.equals(t.selection, T)) && Q.select(t, _);
13354
+ var S = y.range(t, _);
13355
+ (!t.selection || !Y.equals(t.selection, S)) && Q.select(t, _);
13354
13356
  }
13355
13357
  A.run();
13356
13358
  }
@@ -13364,16 +13366,16 @@ function w1(e) {
13364
13366
  affinity: "forward"
13365
13367
  });
13366
13368
  nn.set(t, t.marks), D1("flush", mn.get(t), Ct.get(t));
13367
- for (var _ = B(), T; T = (j = Ct.get(t)) === null || j === void 0 ? void 0 : j[0]; ) {
13369
+ for (var _ = B(), S; S = (j = Ct.get(t)) === null || j === void 0 ? void 0 : j[0]; ) {
13368
13370
  var j, H, W = It.get(t);
13369
13371
  W !== void 0 && (It.delete(t), t.marks = W), W && u === !1 && (u = null);
13370
- var ie = g1(T);
13371
- (!t.selection || !Y.equals(t.selection, ie)) && Q.select(t, ie), T.diff.text ? y.insertText(t, T.diff.text) : y.deleteFragment(t), Ct.set(t, (H = Ct.get(t)) === null || H === void 0 ? void 0 : H.filter((z) => {
13372
+ var ie = g1(S);
13373
+ (!t.selection || !Y.equals(t.selection, ie)) && Q.select(t, ie), S.diff.text ? y.insertText(t, S.diff.text) : y.deleteFragment(t), Ct.set(t, (H = Ct.get(t)) === null || H === void 0 ? void 0 : H.filter((z) => {
13372
13374
  var {
13373
13375
  id: re
13374
13376
  } = z;
13375
- return re !== T.id;
13376
- })), f1(t, T) || (_ = !1, mn.delete(t), nn.delete(t), i = "action", pn.delete(t), n.cancel(), r.cancel(), A == null || A.unref());
13377
+ return re !== S.id;
13378
+ })), f1(t, S) || (_ = !1, mn.delete(t), nn.delete(t), i = "action", pn.delete(t), n.cancel(), r.cancel(), A == null || A.unref());
13377
13379
  }
13378
13380
  var ne = A == null ? void 0 : A.unref();
13379
13381
  if (ne && !pn.get(t) && (!t.selection || !Y.equals(ne, t.selection)) && Q.select(t, ne), E()) {
@@ -13385,21 +13387,21 @@ function w1(e) {
13385
13387
  nn.delete(t), x !== void 0 && (t.marks = x, t.onChange());
13386
13388
  }, p = (A) => {
13387
13389
  a && clearTimeout(a), a = setTimeout(() => {
13388
- Fn.set(t, !1), m();
13390
+ An.set(t, !1), m();
13389
13391
  }, b1);
13390
13392
  }, g = (A) => {
13391
- Fn.set(t, !0), a && (clearTimeout(a), a = null);
13393
+ An.set(t, !0), a && (clearTimeout(a), a = null);
13392
13394
  }, f = function() {
13393
- var _ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, T = Ps.get(t);
13394
- if (T) {
13395
+ var _ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, S = Ps.get(t);
13396
+ if (S) {
13395
13397
  if (B() || _) {
13396
- T.style.display = "none";
13398
+ S.style.display = "none";
13397
13399
  return;
13398
13400
  }
13399
- T.style.removeProperty("display");
13401
+ S.style.removeProperty("display");
13400
13402
  }
13401
13403
  }, b = (A, _) => {
13402
- var T, j = (T = Ct.get(t)) !== null && T !== void 0 ? T : [];
13404
+ var S, j = (S = Ct.get(t)) !== null && S !== void 0 ? S : [];
13403
13405
  Ct.set(t, j);
13404
13406
  var H = oe.leaf(t, A), W = j.findIndex((x) => R.equals(x.path, A));
13405
13407
  if (W < 0) {
@@ -13421,19 +13423,19 @@ function w1(e) {
13421
13423
  });
13422
13424
  }, v = function(_) {
13423
13425
  var {
13424
- at: T
13426
+ at: S
13425
13427
  } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
13426
13428
  u = !1, pn.delete(t), n.cancel(), r.cancel(), E() && m(), mn.set(t, {
13427
- at: T,
13429
+ at: S,
13428
13430
  run: _
13429
13431
  }), o = setTimeout(m);
13430
13432
  }, w = (A) => {
13431
13433
  var _;
13432
13434
  s && (clearTimeout(s), s = null);
13433
13435
  var {
13434
- inputType: T
13436
+ inputType: S
13435
13437
  } = A, j = null, H = A.dataTransfer || A.data || void 0;
13436
- u !== !1 && T !== "insertText" && T !== "insertCompositionText" && (u = !1);
13438
+ u !== !1 && S !== "insertText" && S !== "insertCompositionText" && (u = !1);
13437
13439
  var [W] = A.getTargetRanges();
13438
13440
  W && (j = ee.toSlateRange(t, W, {
13439
13441
  exactMatch: !1,
@@ -13445,7 +13447,7 @@ function w1(e) {
13445
13447
  suppressThrow: !0
13446
13448
  })), j = (_ = j) !== null && _ !== void 0 ? _ : t.selection, !!j) {
13447
13449
  var x = !0;
13448
- if (T.startsWith("delete")) {
13450
+ if (S.startsWith("delete")) {
13449
13451
  if (Y.isExpanded(j)) {
13450
13452
  var [z, re] = Y.edges(j), F = oe.leaf(t, z.path);
13451
13453
  if (F.text.length === z.offset && re.offset === 0) {
@@ -13459,7 +13461,7 @@ function w1(e) {
13459
13461
  });
13460
13462
  }
13461
13463
  }
13462
- var N = T.endsWith("Backward") ? "backward" : "forward", [O, q] = Y.edges(j), [J, U] = y.leaf(t, O.path), X = {
13464
+ var N = S.endsWith("Backward") ? "backward" : "forward", [O, q] = Y.edges(j), [J, U] = y.leaf(t, O.path), X = {
13463
13465
  text: "",
13464
13466
  start: O.offset,
13465
13467
  end: q.offset
@@ -13470,7 +13472,7 @@ function w1(e) {
13470
13472
  path: j.anchor.path,
13471
13473
  offset: O.offset
13472
13474
  }, Ne = y.range(t, Fe, Fe);
13473
- return S(Ne), b(j.anchor.path, {
13475
+ return T(Ne), b(j.anchor.path, {
13474
13476
  text: "",
13475
13477
  end: q.offset,
13476
13478
  start: O.offset
@@ -13483,7 +13485,7 @@ function w1(e) {
13483
13485
  });
13484
13486
  }
13485
13487
  }
13486
- switch (T) {
13488
+ switch (S) {
13487
13489
  case "deleteByComposition":
13488
13490
  case "deleteByCut":
13489
13491
  case "deleteByDrag":
@@ -13587,7 +13589,7 @@ function w1(e) {
13587
13589
  at: j
13588
13590
  });
13589
13591
  var ge = H ?? "";
13590
- if (It.get(t) && (ge = ge.replace("\uFEFF", "")), T === "insertText" && /.*\n.*\n$/.test(ge) && (ge = ge.slice(0, -1)), ge.includes(`
13592
+ if (It.get(t) && (ge = ge.replace("\uFEFF", "")), S === "insertText" && /.*\n.*\n$/.test(ge) && (ge = ge.slice(0, -1)), ge.includes(`
13591
13593
  `))
13592
13594
  return v(() => {
13593
13595
  var be = ge.split(`
@@ -13604,11 +13606,11 @@ function w1(e) {
13604
13606
  end: je.offset,
13605
13607
  text: ge
13606
13608
  };
13607
- if (ge && u && T === "insertCompositionText") {
13609
+ if (ge && u && S === "insertCompositionText") {
13608
13610
  var se = u.start + u.text.search(/\S|$/), pe = K.start + K.text.search(/\S|$/);
13609
13611
  pe === se + 1 && K.end === u.start + u.text.length ? (K.start -= 1, u = null, L()) : u = !1;
13610
13612
  } else
13611
- T === "insertText" ? u === null ? u = K : u && Y.isCollapsed(j) && u.end + u.text.length === Ae.offset ? u = bi(bi({}, u), {}, {
13613
+ S === "insertText" ? u === null ? u = K : u && Y.isCollapsed(j) && u.end + u.text.length === Ae.offset ? u = bi(bi({}, u), {}, {
13612
13614
  text: u.text + ge
13613
13615
  }) : u = !1 : u = !1;
13614
13616
  if (x) {
@@ -13625,14 +13627,14 @@ function w1(e) {
13625
13627
  }, E = () => !!mn.get(t), B = () => {
13626
13628
  var A;
13627
13629
  return !!((A = Ct.get(t)) !== null && A !== void 0 && A.length);
13628
- }, D = () => E() || B(), C = () => i, S = (A) => {
13630
+ }, D = () => E() || B(), C = () => i, T = (A) => {
13629
13631
  pn.set(t, A), s && (clearTimeout(s), s = null);
13630
13632
  var {
13631
13633
  selection: _
13632
13634
  } = t;
13633
13635
  if (A) {
13634
- var T = !_ || !R.equals(_.anchor.path, A.anchor.path), j = !_ || !R.equals(_.anchor.path.slice(0, -1), A.anchor.path.slice(0, -1));
13635
- (T && u || j) && (u = !1), (T || B()) && (s = setTimeout(m, y1));
13636
+ var S = !_ || !R.equals(_.anchor.path, A.anchor.path), j = !_ || !R.equals(_.anchor.path.slice(0, -1), A.anchor.path.slice(0, -1));
13637
+ (S && u || j) && (u = !1), (S || B()) && (s = setTimeout(m, y1));
13636
13638
  }
13637
13639
  }, I = () => {
13638
13640
  (E() || !B()) && m();
@@ -13641,7 +13643,7 @@ function w1(e) {
13641
13643
  }, L = () => {
13642
13644
  E() || (o = setTimeout(m));
13643
13645
  }, $ = (A) => {
13644
- if (!(B() || E()) && A.some((T) => ko(t, T, A))) {
13646
+ if (!(B() || E()) && A.some((S) => ko(t, S, A))) {
13645
13647
  var _;
13646
13648
  (_ = rf.get(t)) === null || _ === void 0 || _();
13647
13649
  }
@@ -13653,7 +13655,7 @@ function w1(e) {
13653
13655
  hasPendingAction: E,
13654
13656
  hasPendingChanges: D,
13655
13657
  isFlushing: C,
13656
- handleUserSelect: S,
13658
+ handleUserSelect: T,
13657
13659
  handleCompositionEnd: p,
13658
13660
  handleCompositionStart: g,
13659
13661
  handleDOMBeforeInput: w,
@@ -13711,7 +13713,7 @@ var F1 = {
13711
13713
  } = e, n = lr(e, _1);
13712
13714
  if (!bt)
13713
13715
  return null;
13714
- var r = wn(), i = C1(), [a] = ue(() => w1(k1({
13716
+ var r = Cn(), i = C1(), [a] = ue(() => w1(k1({
13715
13717
  editor: r
13716
13718
  }, n)));
13717
13719
  return E1(t, a.handleDomMutations, F1), Eo.set(r, a.scheduleFlush), i && a.flush(), a;
@@ -13764,7 +13766,7 @@ var N1 = (e) => {
13764
13766
  leaf: n,
13765
13767
  parent: r,
13766
13768
  text: i
13767
- } = e, a = wn(), s = ee.findPath(a, i), o = R.parent(s), l = !!n[af];
13769
+ } = e, a = Cn(), s = ee.findPath(a, i), o = R.parent(s), l = !!n[af];
13768
13770
  return a.isVoid(r) ? /* @__PURE__ */ te.createElement(Ua, {
13769
13771
  length: oe.string(r).length
13770
13772
  }) : n.text === "" && r.children[r.children.length - 1] === i && !a.isInline(r) && y.string(a, o) === "" ? /* @__PURE__ */ te.createElement(Ua, {
@@ -13841,7 +13843,7 @@ var I1 = (e) => {
13841
13843
  parent: i,
13842
13844
  renderPlaceholder: a,
13843
13845
  renderLeaf: s = (w) => /* @__PURE__ */ te.createElement(z1, ff({}, w))
13844
- } = e, o = wn(), l = ke(null), u = ke(null), [d, h] = ue(!1), m = ke(null), p = Re((w) => {
13846
+ } = e, o = Cn(), l = ke(null), u = ke(null), [d, h] = ue(!1), m = ke(null), p = Re((w) => {
13845
13847
  if ($1(l, w == null), w == null) {
13846
13848
  var E;
13847
13849
  Ps.delete(o), (E = t.onPlaceholderResize) === null || E === void 0 || E.call(t, null);
@@ -13910,7 +13912,7 @@ var I1 = (e) => {
13910
13912
  renderPlaceholder: i,
13911
13913
  renderLeaf: a,
13912
13914
  text: s
13913
- } = e, o = wn(), l = ke(null), u = me.decorations(s, t), d = ee.findKey(o, s), h = [], m = 0; m < u.length; m++) {
13915
+ } = e, o = Cn(), l = ke(null), u = me.decorations(s, t), d = ee.findKey(o, s), h = [], m = 0; m < u.length; m++) {
13914
13916
  var p = u[m];
13915
13917
  h.push(/* @__PURE__ */ te.createElement(L1, {
13916
13918
  isLast: n && m === u.length - 1,
@@ -13924,7 +13926,7 @@ var I1 = (e) => {
13924
13926
  }
13925
13927
  var g = Re((f) => {
13926
13928
  var b = fa.get(o);
13927
- f ? (b == null || b.set(d, f), Sn.set(s, f), Kr.set(f, s)) : (b == null || b.delete(d), Sn.delete(s), l.current && Kr.delete(l.current)), l.current = f;
13929
+ f ? (b == null || b.set(d, f), jn.set(s, f), Kr.set(f, s)) : (b == null || b.delete(d), jn.delete(s), l.current && Kr.delete(l.current)), l.current = f;
13928
13930
  }, [l, o, d, s]);
13929
13931
  return /* @__PURE__ */ te.createElement("span", {
13930
13932
  "data-slate-node": "text",
@@ -13960,9 +13962,9 @@ var W1 = (e) => {
13960
13962
  renderPlaceholder: i,
13961
13963
  renderLeaf: a,
13962
13964
  selection: s
13963
- } = e, o = wn(), l = Z1(), u = o.isInline(n), d = ee.findKey(o, n), h = Re((w) => {
13965
+ } = e, o = Cn(), l = Z1(), u = o.isInline(n), d = ee.findKey(o, n), h = Re((w) => {
13964
13966
  var E = fa.get(o);
13965
- w ? (E == null || E.set(d, w), Sn.set(n, w), Kr.set(w, n)) : (E == null || E.delete(d), Sn.delete(n));
13967
+ w ? (E == null || E.set(d, w), jn.set(n, w), Kr.set(w, n)) : (E == null || E.delete(d), jn.delete(n));
13966
13968
  }, [o, d, n]), m = pf({
13967
13969
  decorations: t,
13968
13970
  node: n,
@@ -14007,7 +14009,7 @@ var W1 = (e) => {
14007
14009
  attributes: t,
14008
14010
  children: n,
14009
14011
  element: r
14010
- } = e, i = wn(), a = i.isInline(r) ? "span" : "div";
14012
+ } = e, i = Cn(), a = i.isInline(r) ? "span" : "div";
14011
14013
  return /* @__PURE__ */ te.createElement(a, Ls(Ls({}, t), {}, {
14012
14014
  style: {
14013
14015
  position: "relative"
@@ -14021,7 +14023,7 @@ var W1 = (e) => {
14021
14023
  renderPlaceholder: i,
14022
14024
  renderLeaf: a,
14023
14025
  selection: s
14024
- } = e, o = V1(), l = wn(), u = ee.findPath(l, n), d = [], h = he.isElement(n) && !l.isInline(n) && y.hasInlines(l, n), m = 0; m < n.children.length; m++) {
14026
+ } = e, o = V1(), l = Cn(), u = ee.findPath(l, n), d = [], h = he.isElement(n) && !l.isInline(n) && y.hasInlines(l, n), m = 0; m < n.children.length; m++) {
14025
14027
  var p = u.concat(m), g = n.children[m], f = ee.findKey(l, g), b = y.range(l, p), v = s && Y.intersection(b, s), w = o([g, p]);
14026
14028
  for (var E of t) {
14027
14029
  var B = Y.intersection(E, b);
@@ -14059,7 +14061,7 @@ var W1 = (e) => {
14059
14061
  return t;
14060
14062
  };
14061
14063
  function Y1() {
14062
- var e = wn(), t = ke(!1), n = ke(0), r = Re(() => {
14064
+ var e = Cn(), t = ke(!1), n = ke(0), r = Re(() => {
14063
14065
  if (!t.current) {
14064
14066
  t.current = !0;
14065
14067
  var i = ee.getWindow(e);
@@ -14246,7 +14248,7 @@ var aD = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, pf(e)), sD =
14246
14248
  disableDefaultStyles: p = !1
14247
14249
  } = e, g = lr(e, rD), f = zn(), [b, v] = ue(!1), w = ke(null), E = ke([]), [B, D] = ue(), {
14248
14250
  onUserInput: C,
14249
- receivedUserInput: S
14251
+ receivedUserInput: T
14250
14252
  } = Y1(), [, I] = hr((k) => k + 1, 0);
14251
14253
  rf.set(f, I), Ns.set(f, s);
14252
14254
  var P = Yt(() => ({
@@ -14286,7 +14288,7 @@ var aD = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, pf(e)), sD =
14286
14288
  scheduleOnDOMSelectionChange: A
14287
14289
  }), Zr(() => {
14288
14290
  var k, N, O;
14289
- w.current && (O = _o(w.current)) ? (nf.set(f, O), Si.set(f, w.current), Sn.set(f, w.current), Kr.set(w.current, f)) : Sn.delete(f);
14291
+ w.current && (O = _o(w.current)) ? (nf.set(f, O), Si.set(f, w.current), jn.set(f, w.current), Kr.set(w.current, f)) : jn.delete(f);
14290
14292
  var {
14291
14293
  selection: q
14292
14294
  } = f, J = ee.findDocumentOrShadowRoot(f), U = J.getSelection();
@@ -14487,15 +14489,15 @@ var aD = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, pf(e)), sD =
14487
14489
  case "insertFromYank":
14488
14490
  case "insertReplacementText":
14489
14491
  case "insertText": {
14490
- q === "insertFromComposition" && ee.isComposing(f) && (v(!1), Fn.set(f, !1)), (J == null ? void 0 : J.constructor.name) === "DataTransfer" ? ee.insertData(f, J) : typeof J == "string" && (X ? E.current.push(() => y.insertText(f, J)) : y.insertText(f, J));
14492
+ q === "insertFromComposition" && ee.isComposing(f) && (v(!1), An.set(f, !1)), (J == null ? void 0 : J.constructor.name) === "DataTransfer" ? ee.insertData(f, J) : typeof J == "string" && (X ? E.current.push(() => y.insertText(f, J)) : y.insertText(f, J));
14491
14493
  break;
14492
14494
  }
14493
14495
  }
14494
14496
  var K = (N = Pr.get(f)) === null || N === void 0 ? void 0 : N.unref();
14495
14497
  Pr.delete(f), K && (!f.selection || !Y.equals(f.selection, K)) && Q.select(f, K);
14496
14498
  }
14497
- }, [f, $, C, i, s, A]), T = Re((k) => {
14498
- k == null ? ($.cancel(), A.cancel(), Si.delete(f), Sn.delete(f), w.current && fn && w.current.removeEventListener("beforeinput", _)) : fn && k.addEventListener("beforeinput", _), w.current = k;
14499
+ }, [f, $, C, i, s, A]), S = Re((k) => {
14500
+ k == null ? ($.cancel(), A.cancel(), Si.delete(f), jn.delete(f), w.current && fn && w.current.removeEventListener("beforeinput", _)) : fn && k.addEventListener("beforeinput", _), w.current = k;
14499
14501
  }, [$, A, f, _]);
14500
14502
  Zr(() => {
14501
14503
  var k = ee.getWindow(f);
@@ -14564,7 +14566,7 @@ var aD = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, pf(e)), sD =
14564
14566
  value: r
14565
14567
  }, /* @__PURE__ */ te.createElement(nD, {
14566
14568
  node: w,
14567
- receivedUserInput: S
14569
+ receivedUserInput: T
14568
14570
  }, /* @__PURE__ */ te.createElement(m, Vt(Vt({
14569
14571
  role: s ? void 0 : "textbox",
14570
14572
  "aria-multiline": s ? void 0 : !0
@@ -14586,7 +14588,7 @@ var aD = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, pf(e)), sD =
14586
14588
  // this magic zIndex="-1" will fix it
14587
14589
  zindex: -1,
14588
14590
  suppressContentEditableWarning: !0,
14589
- ref: T,
14591
+ ref: S,
14590
14592
  style: Vt(Vt({}, p ? {} : Vt({
14591
14593
  // Allow positioning relative to the editable element.
14592
14594
  position: "relative",
@@ -14671,7 +14673,7 @@ var aD = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, pf(e)), sD =
14671
14673
  if (ee.hasSelectableTarget(f, k.target)) {
14672
14674
  var N;
14673
14675
  if (ee.isComposing(f) && Promise.resolve().then(() => {
14674
- v(!1), Fn.set(f, !1);
14676
+ v(!1), An.set(f, !1);
14675
14677
  }), (N = L.current) === null || N === void 0 || N.handleCompositionEnd(k), gt(k, g.onCompositionEnd) || bt)
14676
14678
  return;
14677
14679
  if (!Tr && !Xy && !Yy && !t1 && !e1 && k.data) {
@@ -14683,7 +14685,7 @@ var aD = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, pf(e)), sD =
14683
14685
  }
14684
14686
  }, [g.onCompositionEnd, f]),
14685
14687
  onCompositionUpdate: Re((k) => {
14686
- ee.hasSelectableTarget(f, k.target) && !gt(k, g.onCompositionUpdate) && (ee.isComposing(f) || (v(!0), Fn.set(f, !0)));
14688
+ ee.hasSelectableTarget(f, k.target) && !gt(k, g.onCompositionUpdate) && (ee.isComposing(f) || (v(!0), An.set(f, !0)));
14687
14689
  }, [g.onCompositionUpdate, f]),
14688
14690
  onCompositionStart: Re((k) => {
14689
14691
  if (ee.hasSelectableTarget(f, k.target)) {
@@ -14770,7 +14772,7 @@ var aD = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, pf(e)), sD =
14770
14772
  var {
14771
14773
  nativeEvent: O
14772
14774
  } = k;
14773
- if (ee.isComposing(f) && O.isComposing === !1 && (Fn.set(f, !1), v(!1)), gt(k, g.onKeyDown) || ee.isComposing(f))
14775
+ if (ee.isComposing(f) && O.isComposing === !1 && (An.set(f, !1), v(!1)), gt(k, g.onKeyDown) || ee.isComposing(f))
14774
14776
  return;
14775
14777
  var {
14776
14778
  selection: q
@@ -15102,7 +15104,7 @@ var vD = function(t) {
15102
15104
  }, r.apply = (u) => {
15103
15105
  var d = [], h = [], m = Ct.get(r);
15104
15106
  if (m != null && m.length) {
15105
- var p = m.map((T) => v1(T, u)).filter(Boolean);
15107
+ var p = m.map((S) => v1(S, u)).filter(Boolean);
15106
15108
  Ct.set(r, p);
15107
15109
  }
15108
15110
  var g = pn.get(r);
@@ -15142,8 +15144,8 @@ var vD = function(t) {
15142
15144
  d.push(...Zn(r, E));
15143
15145
  var B;
15144
15146
  R.isBefore(u.path, u.newPath) ? (d.push(...Zn(r, R.parent(u.path))), B = u.newPath) : (d.push(...Zn(r, R.parent(u.newPath))), B = u.path);
15145
- var D = oe.get(t, R.parent(B)), C = ee.findKey(r, D), S = y.pathRef(r, R.parent(B));
15146
- h.push([S, C]);
15147
+ var D = oe.get(t, R.parent(B)), C = ee.findKey(r, D), T = y.pathRef(r, R.parent(B));
15148
+ h.push([T, C]);
15147
15149
  break;
15148
15150
  }
15149
15151
  }
@@ -15183,7 +15185,7 @@ var vD = function(t) {
15183
15185
  var D = v.ownerDocument.createElement("span");
15184
15186
  D.style.whiteSpace = "pre", D.appendChild(v), b.appendChild(D), v = D;
15185
15187
  }
15186
- var C = r.getFragment(), S = JSON.stringify(C), I = window.btoa(encodeURIComponent(S));
15188
+ var C = r.getFragment(), T = JSON.stringify(C), I = window.btoa(encodeURIComponent(T));
15187
15189
  v.setAttribute("data-slate-fragment", I), u.setData("application/".concat(n), I);
15188
15190
  var P = b.ownerDocument.createElement("div");
15189
15191
  return P.appendChild(b), P.setAttribute("hidden", "true"), b.ownerDocument.body.appendChild(P), u.setData("text/html", P.innerHTML), u.setData("text/plain", uf(P)), b.ownerDocument.body.removeChild(P), u;
@@ -15418,7 +15420,7 @@ var ji = Object.prototype.hasOwnProperty, xf = Object.prototype.toString, Zl = O
15418
15420
  r = Xl(o, n), i = Xl(t, n), o !== i && (d && i && (Ql(i) || (a = Gl(i))) ? (a ? (a = !1, s = r && Gl(r) ? r : []) : s = r && Ql(r) ? r : {}, Jl(o, { name: n, newValue: e(d, s, i) })) : typeof i < "u" && Jl(o, { name: n, newValue: i }));
15419
15421
  return o;
15420
15422
  };
15421
- const Va = /* @__PURE__ */ Mn(wD);
15423
+ const Va = /* @__PURE__ */ Rn(wD);
15422
15424
  function qs(e) {
15423
15425
  if (typeof e != "object" || e === null)
15424
15426
  return !1;
@@ -16776,7 +16778,7 @@ function Cf(e, t) {
16776
16778
  function ir(e) {
16777
16779
  return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
16778
16780
  }
16779
- const Zt = Cn(/[A-Za-z]/), Lt = Cn(/[\dA-Za-z]/), YD = Cn(/[#-'*+\--9=?A-Z^-~]/);
16781
+ const Zt = En(/[A-Za-z]/), Lt = En(/[\dA-Za-z]/), YD = En(/[#-'*+\--9=?A-Z^-~]/);
16780
16782
  function Hs(e) {
16781
16783
  return (
16782
16784
  // Special whitespace codes (which have negative values), C0 and Control
@@ -16784,7 +16786,7 @@ function Hs(e) {
16784
16786
  e !== null && (e < 32 || e === 127)
16785
16787
  );
16786
16788
  }
16787
- const Vs = Cn(/\d/), GD = Cn(/[\dA-Fa-f]/), QD = Cn(/[!-/:-@[-`{-~]/);
16789
+ const Vs = En(/\d/), GD = En(/[\dA-Fa-f]/), QD = En(/[!-/:-@[-`{-~]/);
16788
16790
  function we(e) {
16789
16791
  return e !== null && e < -2;
16790
16792
  }
@@ -16794,8 +16796,8 @@ function _t(e) {
16794
16796
  function Ie(e) {
16795
16797
  return e === -2 || e === -1 || e === 32;
16796
16798
  }
16797
- const JD = Cn(/\p{P}|\p{S}/u), XD = Cn(/\s/);
16798
- function Cn(e) {
16799
+ const JD = En(/\p{P}|\p{S}/u), XD = En(/\s/);
16800
+ function En(e) {
16799
16801
  return t;
16800
16802
  function t(n) {
16801
16803
  return n !== null && n > -1 && e.test(String.fromCharCode(n));
@@ -16879,15 +16881,15 @@ function rx(e) {
16879
16881
  break;
16880
16882
  }
16881
16883
  v(r);
16882
- let S = B;
16883
- for (; S < t.events.length; )
16884
- t.events[S][1].end = Object.assign({}, C), S++;
16884
+ let T = B;
16885
+ for (; T < t.events.length; )
16886
+ t.events[T][1].end = Object.assign({}, C), T++;
16885
16887
  return ln(
16886
16888
  t.events,
16887
16889
  D + 1,
16888
16890
  0,
16889
16891
  t.events.slice(B)
16890
- ), t.events.length = S, u(E);
16892
+ ), t.events.length = T, u(E);
16891
16893
  }
16892
16894
  return o(E);
16893
16895
  }
@@ -16951,8 +16953,8 @@ function rx(e) {
16951
16953
  i.events[C][1].end.offset > s)
16952
16954
  )
16953
16955
  return;
16954
- const S = t.events.length;
16955
- let I = S, P, L;
16956
+ const T = t.events.length;
16957
+ let I = T, P, L;
16956
16958
  for (; I--; )
16957
16959
  if (t.events[I][0] === "exit" && t.events[I][1].type === "chunkFlow") {
16958
16960
  if (P) {
@@ -16961,13 +16963,13 @@ function rx(e) {
16961
16963
  }
16962
16964
  P = !0;
16963
16965
  }
16964
- for (v(r), C = S; C < t.events.length; )
16966
+ for (v(r), C = T; C < t.events.length; )
16965
16967
  t.events[C][1].end = Object.assign({}, L), C++;
16966
16968
  ln(
16967
16969
  t.events,
16968
16970
  I + 1,
16969
16971
  0,
16970
- t.events.slice(S)
16972
+ t.events.slice(T)
16971
16973
  ), t.events.length = C;
16972
16974
  }
16973
16975
  }
@@ -17209,8 +17211,8 @@ function px(e, t, n) {
17209
17211
  return u(C);
17210
17212
  }
17211
17213
  function u(C) {
17212
- const S = r.events[r.events.length - 1];
17213
- return a = S && S[1].type === "linePrefix" ? S[2].sliceSerialize(S[1], !0).length : 0, o = C, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), d(C);
17214
+ const T = r.events[r.events.length - 1];
17215
+ return a = T && T[1].type === "linePrefix" ? T[2].sliceSerialize(T[1], !0).length : 0, o = C, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), d(C);
17214
17216
  }
17215
17217
  function d(C) {
17216
17218
  return C === o ? (s++, e.consume(C), d) : s < 3 ? n(C) : (e.exit("codeFencedFenceSequence"), Ie(C) ? Ke(e, h, "whitespace")(C) : h(C));
@@ -17249,7 +17251,7 @@ function px(e, t, n) {
17249
17251
  function B(C) {
17250
17252
  return e.exit("codeFenced"), t(C);
17251
17253
  }
17252
- function D(C, S, I) {
17254
+ function D(C, T, I) {
17253
17255
  let P = 0;
17254
17256
  return L;
17255
17257
  function L(j) {
@@ -17262,10 +17264,10 @@ function px(e, t, n) {
17262
17264
  return j === o ? (C.enter("codeFencedFenceSequence"), _(j)) : I(j);
17263
17265
  }
17264
17266
  function _(j) {
17265
- return j === o ? (P++, C.consume(j), _) : P >= s ? (C.exit("codeFencedFenceSequence"), Ie(j) ? Ke(C, T, "whitespace")(j) : T(j)) : I(j);
17267
+ return j === o ? (P++, C.consume(j), _) : P >= s ? (C.exit("codeFencedFenceSequence"), Ie(j) ? Ke(C, S, "whitespace")(j) : S(j)) : I(j);
17266
17268
  }
17267
- function T(j) {
17268
- return j === null || we(j) ? (C.exit("codeFencedFence"), S(j)) : I(j);
17269
+ function S(j) {
17270
+ return j === null || we(j) ? (C.exit("codeFencedFence"), T(j)) : I(j);
17269
17271
  }
17270
17272
  }
17271
17273
  }
@@ -17952,10 +17954,10 @@ function Hx(e, t, n) {
17952
17954
  return F === 61 ? (e.consume(F), C) : Ie(F) ? (e.consume(F), D) : E(F);
17953
17955
  }
17954
17956
  function C(F) {
17955
- return F === null || F === 60 || F === 61 || F === 62 || F === 96 ? n(F) : F === 34 || F === 39 ? (e.consume(F), l = F, S) : Ie(F) ? (e.consume(F), C) : I(F);
17957
+ return F === null || F === 60 || F === 61 || F === 62 || F === 96 ? n(F) : F === 34 || F === 39 ? (e.consume(F), l = F, T) : Ie(F) ? (e.consume(F), C) : I(F);
17956
17958
  }
17957
- function S(F) {
17958
- return F === l ? (e.consume(F), l = null, P) : F === null || we(F) ? n(F) : (e.consume(F), S);
17959
+ function T(F) {
17960
+ return F === l ? (e.consume(F), l = null, P) : F === null || we(F) ? n(F) : (e.consume(F), T);
17959
17961
  }
17960
17962
  function I(F) {
17961
17963
  return F === null || F === 34 || F === 39 || F === 47 || F === 60 || F === 61 || F === 62 || F === 96 || _t(F) ? D(F) : (e.consume(F), I);
@@ -17973,9 +17975,9 @@ function Hx(e, t, n) {
17973
17975
  return F === 45 && i === 2 ? (e.consume(F), H) : F === 60 && i === 1 ? (e.consume(F), W) : F === 62 && i === 4 ? (e.consume(F), z) : F === 63 && i === 3 ? (e.consume(F), x) : F === 93 && i === 5 ? (e.consume(F), ne) : we(F) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(qx, re, _)(F)) : F === null || we(F) ? (e.exit("htmlFlowData"), _(F)) : (e.consume(F), A);
17974
17976
  }
17975
17977
  function _(F) {
17976
- return e.check(Wx, T, re)(F);
17978
+ return e.check(Wx, S, re)(F);
17977
17979
  }
17978
- function T(F) {
17980
+ function S(F) {
17979
17981
  return e.enter("lineEnding"), e.consume(F), e.exit("lineEnding"), j;
17980
17982
  }
17981
17983
  function j(F) {
@@ -18078,10 +18080,10 @@ function Yx(e, t, n) {
18078
18080
  return Zt(x) ? (e.consume(x), C) : n(x);
18079
18081
  }
18080
18082
  function C(x) {
18081
- return x === 45 || Lt(x) ? (e.consume(x), C) : S(x);
18083
+ return x === 45 || Lt(x) ? (e.consume(x), C) : T(x);
18082
18084
  }
18083
- function S(x) {
18084
- return we(x) ? (s = S, W(x)) : Ie(x) ? (e.consume(x), S) : H(x);
18085
+ function T(x) {
18086
+ return we(x) ? (s = T, W(x)) : Ie(x) ? (e.consume(x), T) : H(x);
18085
18087
  }
18086
18088
  function I(x) {
18087
18089
  return x === 45 || Lt(x) ? (e.consume(x), I) : x === 47 || x === 62 || _t(x) ? P(x) : n(x);
@@ -18096,13 +18098,13 @@ function Yx(e, t, n) {
18096
18098
  return x === 61 ? (e.consume(x), A) : we(x) ? (s = $, W(x)) : Ie(x) ? (e.consume(x), $) : P(x);
18097
18099
  }
18098
18100
  function A(x) {
18099
- return x === null || x === 60 || x === 61 || x === 62 || x === 96 ? n(x) : x === 34 || x === 39 ? (e.consume(x), i = x, _) : we(x) ? (s = A, W(x)) : Ie(x) ? (e.consume(x), A) : (e.consume(x), T);
18101
+ return x === null || x === 60 || x === 61 || x === 62 || x === 96 ? n(x) : x === 34 || x === 39 ? (e.consume(x), i = x, _) : we(x) ? (s = A, W(x)) : Ie(x) ? (e.consume(x), A) : (e.consume(x), S);
18100
18102
  }
18101
18103
  function _(x) {
18102
18104
  return x === i ? (e.consume(x), i = void 0, j) : x === null ? n(x) : we(x) ? (s = _, W(x)) : (e.consume(x), _);
18103
18105
  }
18104
- function T(x) {
18105
- return x === null || x === 34 || x === 39 || x === 60 || x === 61 || x === 96 ? n(x) : x === 47 || x === 62 || _t(x) ? P(x) : (e.consume(x), T);
18106
+ function S(x) {
18107
+ return x === null || x === 34 || x === 39 || x === 60 || x === 61 || x === 96 ? n(x) : x === 47 || x === 62 || _t(x) ? P(x) : (e.consume(x), S);
18106
18108
  }
18107
18109
  function j(x) {
18108
18110
  return x === 47 || x === 62 || _t(x) ? P(x) : n(x);
@@ -18589,9 +18591,9 @@ function kw(e, t, n) {
18589
18591
  consume: w,
18590
18592
  enter: E,
18591
18593
  exit: B,
18592
- attempt: S(D),
18593
- check: S(C),
18594
- interrupt: S(C, {
18594
+ attempt: T(D),
18595
+ check: T(C),
18596
+ interrupt: T(C, {
18595
18597
  interrupt: !0
18596
18598
  })
18597
18599
  }, u = {
@@ -18618,12 +18620,12 @@ function kw(e, t, n) {
18618
18620
  return Fw(s, $);
18619
18621
  }
18620
18622
  function g() {
18621
- const { line: $, column: A, offset: _, _index: T, _bufferIndex: j } = r;
18623
+ const { line: $, column: A, offset: _, _index: S, _bufferIndex: j } = r;
18622
18624
  return {
18623
18625
  line: $,
18624
18626
  column: A,
18625
18627
  offset: _,
18626
- _index: T,
18628
+ _index: S,
18627
18629
  _bufferIndex: j
18628
18630
  };
18629
18631
  }
@@ -18661,14 +18663,14 @@ function kw(e, t, n) {
18661
18663
  function C($, A) {
18662
18664
  A.restore();
18663
18665
  }
18664
- function S($, A) {
18666
+ function T($, A) {
18665
18667
  return _;
18666
- function _(T, j, H) {
18668
+ function _(S, j, H) {
18667
18669
  let W, ie, ne, x;
18668
- return Array.isArray(T) ? re(T) : "tokenize" in T ? (
18670
+ return Array.isArray(S) ? re(S) : "tokenize" in S ? (
18669
18671
  // @ts-expect-error Looks like a construct.
18670
- re([T])
18671
- ) : z(T);
18672
+ re([S])
18673
+ ) : z(S);
18672
18674
  function z(O) {
18673
18675
  return q;
18674
18676
  function q(J) {
@@ -18715,13 +18717,13 @@ function kw(e, t, n) {
18715
18717
  ), $.resolveTo && (u.events = $.resolveTo(u.events, u));
18716
18718
  }
18717
18719
  function P() {
18718
- const $ = g(), A = u.previous, _ = u.currentConstruct, T = u.events.length, j = Array.from(o);
18720
+ const $ = g(), A = u.previous, _ = u.currentConstruct, S = u.events.length, j = Array.from(o);
18719
18721
  return {
18720
18722
  restore: H,
18721
- from: T
18723
+ from: S
18722
18724
  };
18723
18725
  function H() {
18724
- r = $, u.previous = A, u.currentConstruct = _, u.events.length = T, o = j, L();
18726
+ r = $, u.previous = A, u.currentConstruct = _, u.events.length = S, o = j, L();
18725
18727
  }
18726
18728
  }
18727
18729
  function L() {
@@ -19009,7 +19011,7 @@ function Vw(e) {
19009
19011
  hardBreakTrailing: l(A),
19010
19012
  htmlFlow: l(_),
19011
19013
  htmlFlowData: L,
19012
- htmlText: l(T),
19014
+ htmlText: l(S),
19013
19015
  htmlTextData: L,
19014
19016
  image: l(W),
19015
19017
  label: ne,
@@ -19025,7 +19027,7 @@ function Vw(e) {
19025
19027
  resourceTitleString: z,
19026
19028
  resource: re,
19027
19029
  setextHeading: l(I),
19028
- setextHeadingLineSequence: S,
19030
+ setextHeadingLineSequence: T,
19029
19031
  setextHeadingText: C,
19030
19032
  strong: l(),
19031
19033
  thematicBreak: l()
@@ -19241,7 +19243,7 @@ function Vw(e) {
19241
19243
  function C() {
19242
19244
  this.data.setextHeadingSlurpLineEnding = !0;
19243
19245
  }
19244
- function S(K) {
19246
+ function T(K) {
19245
19247
  const se = this.stack[this.stack.length - 1];
19246
19248
  se.depth = this.sliceSerialize(K).codePointAt(0) === 61 ? 1 : 2;
19247
19249
  }
@@ -19277,7 +19279,7 @@ function Vw(e) {
19277
19279
  const K = this.resume(), se = this.stack[this.stack.length - 1];
19278
19280
  se.value = K;
19279
19281
  }
19280
- function T() {
19282
+ function S() {
19281
19283
  const K = this.resume(), se = this.stack[this.stack.length - 1];
19282
19284
  se.value = K;
19283
19285
  }
@@ -19647,7 +19649,7 @@ const Yw = function(t) {
19647
19649
  }, Gw = (e, t = (n) => {
19648
19650
  }) => {
19649
19651
  ID().use(Zw).use(Yw).process(e).then((n) => {
19650
- const r = An(n.result), i = (s) => {
19652
+ const r = Bn(n.result), i = (s) => {
19651
19653
  const o = s;
19652
19654
  [Z.li, Z.blockquote].includes(o.type) && o.children.map((l, u) => {
19653
19655
  const d = l;
@@ -20061,8 +20063,8 @@ const iC = ({
20061
20063
  P ? C = P : C = (v = D == null ? void 0 : D.parentElement) == null ? void 0 : v.lastElementChild;
20062
20064
  } else
20063
20065
  C || (C = (w = D == null ? void 0 : D.parentElement) == null ? void 0 : w.firstElementChild);
20064
- const S = C == null ? void 0 : C.className.split(" ")[0];
20065
- S && (m(S), (E = C == null ? void 0 : C.querySelector("button")) == null || E.focus());
20066
+ const T = C == null ? void 0 : C.className.split(" ")[0];
20067
+ T && (m(T), (E = C == null ? void 0 : C.querySelector("button")) == null || E.focus());
20066
20068
  break;
20067
20069
  default:
20068
20070
  const I = b.currentTarget.closest("fieldset");
@@ -20246,8 +20248,8 @@ const lC = () => {
20246
20248
  };
20247
20249
  switch (v.push({ className: D }), D) {
20248
20250
  case "open":
20249
- C.href = (d == null ? void 0 : d.full) || "", C.onClick = (S) => {
20250
- S.preventDefault(), S.stopPropagation(), window.open((d == null ? void 0 : d.full) || "", "_blank"), s([{ type: "showLinkEditor", value: !1 }]);
20251
+ C.href = (d == null ? void 0 : d.full) || "", C.onClick = (T) => {
20252
+ T.preventDefault(), T.stopPropagation(), window.open((d == null ? void 0 : d.full) || "", "_blank"), s([{ type: "showLinkEditor", value: !1 }]);
20251
20253
  }, C.children = /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
20252
20254
  C.children,
20253
20255
  /* @__PURE__ */ c.jsx(He, { children: e.formatMessage({ id: `${t}${D}_text` }) })
@@ -20260,10 +20262,10 @@ const lC = () => {
20260
20262
  break;
20261
20263
  case "remove":
20262
20264
  C.onClick = () => {
20263
- const S = [
20265
+ const T = [
20264
20266
  { type: "showLinkEditor", value: !1 }
20265
20267
  ];
20266
- Rr(u) && (zf(u), S.push({ type: "lastAnchor", value: null }), a && (d == null ? void 0 : d.full) === (a == null ? void 0 : a.url) && S.push({ type: "enrichedUrl", value: !1 })), s(S);
20268
+ Rr(u) && (zf(u), T.push({ type: "lastAnchor", value: null }), a && (d == null ? void 0 : d.full) === (a == null ? void 0 : a.url) && T.push({ type: "enrichedUrl", value: !1 })), s(T);
20267
20269
  };
20268
20270
  break;
20269
20271
  }
@@ -20330,7 +20332,7 @@ const lC = () => {
20330
20332
  }
20331
20333
  },
20332
20334
  children: p ? /* @__PURE__ */ c.jsx(Yr, { wrappers: v, buttons: w }) : /* @__PURE__ */ c.jsx(
20333
- Ln,
20335
+ wn,
20334
20336
  {
20335
20337
  element: "fieldset",
20336
20338
  id: `${n}-link-editor`,
@@ -20342,13 +20344,13 @@ const lC = () => {
20342
20344
  const C = [
20343
20345
  { type: "showLinkEditor", value: !1 }
20344
20346
  ];
20345
- let S = D.url;
20347
+ let T = D.url;
20346
20348
  if (D.url) {
20347
20349
  const { full: I } = Hc(D.url);
20348
- S = I, d != null && d.full ? uC(u, S, n, l) : oC(u, S, n, l), C.push({ type: "lastAnchor", value: null });
20350
+ T = I, d != null && d.full ? uC(u, T, n, l) : oC(u, T, n, l), C.push({ type: "lastAnchor", value: null });
20349
20351
  }
20350
20352
  if (s(C), D.url && o && (!m || a && (d == null ? void 0 : d.full) === a.url)) {
20351
- const I = await o(S);
20353
+ const I = await o(T);
20352
20354
  I.url && s([{ type: "enrichedUrl", value: I }]);
20353
20355
  }
20354
20356
  });
@@ -20458,7 +20460,7 @@ function DC(e) {
20458
20460
  var n = t[1];
20459
20461
  return n ? !!(bC.test(n) || yC.test(n)) : !1;
20460
20462
  }
20461
- const xC = /* @__PURE__ */ Mn(gC), wC = (e, t, n) => {
20463
+ const xC = /* @__PURE__ */ Rn(gC), wC = (e, t, n) => {
20462
20464
  const { insertText: r, isInline: i } = e;
20463
20465
  try {
20464
20466
  e.isInline = (a) => {
@@ -20550,14 +20552,14 @@ const _C = ({
20550
20552
  enrichedUrl: !1
20551
20553
  }, [B, D] = hr(aa, E), {
20552
20554
  editorKey: C,
20553
- originalValue: S,
20555
+ originalValue: T,
20554
20556
  initialValue: I,
20555
20557
  stringValue: P,
20556
20558
  lastAnchor: L,
20557
20559
  lastKey: $,
20558
20560
  hasInteracted: A,
20559
20561
  hasLoaded: _,
20560
- enrichedUrl: T,
20562
+ enrichedUrl: S,
20561
20563
  mentionPopover: j
20562
20564
  } = B, H = (k) => {
20563
20565
  k && D([{ type: "tabbableOption", value: k || Gi[0] }]);
@@ -20602,8 +20604,8 @@ const _C = ({
20602
20604
  re(ie);
20603
20605
  }
20604
20606
  }, [z.children.length, I]), de(() => {
20605
- S && (async () => {
20606
- let N = An(S);
20607
+ T && (async () => {
20608
+ let N = Bn(T);
20607
20609
  if (N.includes("<")) {
20608
20610
  zr.prototype.escape = (q) => q;
20609
20611
  const O = new zr();
@@ -20622,33 +20624,33 @@ const _C = ({
20622
20624
  })), Gw(N, (O) => {
20623
20625
  const q = [
20624
20626
  { type: "initialValue", value: O },
20625
- { type: "editorKey", value: S.toString() }
20627
+ { type: "editorKey", value: T.toString() }
20626
20628
  ];
20627
20629
  o != null && o.link && (q.push({ type: "enrichedUrl", value: o.link }), o.link.url && W(o.link.url)), D(q), setTimeout(() => {
20628
20630
  D([{ type: "stringValue", value: vc(z) }]);
20629
20631
  }, 150);
20630
20632
  });
20631
20633
  })();
20632
- }, [S]), de(() => {
20633
- if (T === void 0 && z) {
20634
+ }, [T]), de(() => {
20635
+ if (S === void 0 && z) {
20634
20636
  const N = Xw(z);
20635
20637
  N && W(N);
20636
20638
  }
20637
20639
  const k = (N) => {
20638
20640
  var J;
20639
20641
  const O = N, q = ((J = O == null ? void 0 : O.detail) == null ? void 0 : J.url) || null;
20640
- q && T && T.url === q && D([{ type: "enrichedUrl", value: void 0 }]);
20642
+ q && S && S.url === q && D([{ type: "enrichedUrl", value: void 0 }]);
20641
20643
  };
20642
20644
  return window.addEventListener("linkRemoved", k), () => {
20643
20645
  window.removeEventListener("linkRemoved", k);
20644
20646
  };
20645
- }, [T]), de(() => {
20647
+ }, [S]), de(() => {
20646
20648
  if (t) {
20647
20649
  Ni.lastIndex = 0;
20648
20650
  const k = t.match(Ni);
20649
20651
  k && k.length === 1 && k[0].length === t.length && !A && D([{ type: "originalValue", value: t }]);
20650
20652
  }
20651
- t !== "" || !z || bs(S, t) && !A || (y.withoutNormalizing(z, () => {
20653
+ t !== "" || !z || bs(T, t) && !A || (y.withoutNormalizing(z, () => {
20652
20654
  Q.delete(z, {
20653
20655
  at: {
20654
20656
  anchor: y.start(z, []),
@@ -20661,7 +20663,7 @@ const _C = ({
20661
20663
  { type: "enrichedUrl", value: !1 }
20662
20664
  ]));
20663
20665
  }, [t]), de(() => {
20664
- P === "" && T && D([{ type: "enrichedUrl", value: void 0 }]);
20666
+ P === "" && S && D([{ type: "enrichedUrl", value: void 0 }]);
20665
20667
  }, [P]);
20666
20668
  const F = Rc(() => {
20667
20669
  tC({
@@ -20793,10 +20795,10 @@ const _C = ({
20793
20795
  }
20794
20796
  }
20795
20797
  ),
20796
- T ? /* @__PURE__ */ c.jsx(
20798
+ S ? /* @__PURE__ */ c.jsx(
20797
20799
  Op,
20798
20800
  {
20799
- data: T,
20801
+ data: S,
20800
20802
  variant: "condensed",
20801
20803
  onClick: () => {
20802
20804
  D([{ type: "enrichedUrl", value: !1 }]);
@@ -20812,7 +20814,7 @@ const _C = ({
20812
20814
  "aria-label": u.formatMessage(
20813
20815
  { id: "richTextEditor_link_enrichedUrl_aria" },
20814
20816
  {
20815
- title: T.title || u.formatMessage({
20817
+ title: S.title || u.formatMessage({
20816
20818
  id: "richTextEditor_link_enrichedUrl_aria_fallback"
20817
20819
  })
20818
20820
  }
@@ -20911,11 +20913,11 @@ function kC({
20911
20913
  const D = B.target.files && B.target.files[0];
20912
20914
  if (!D || !t)
20913
20915
  throw m(!1), new Error("Image file or userID is missing");
20914
- const C = await i({ fileObject: D, userId: t }), S = {
20916
+ const C = await i({ fileObject: D, userId: t }), T = {
20915
20917
  thumbnail: C.thumbnailURL,
20916
20918
  full: C.originalURL
20917
20919
  };
20918
- d(S), s(S);
20920
+ d(T), s(T);
20919
20921
  } catch {
20920
20922
  g(!0);
20921
20923
  } finally {
@@ -20929,7 +20931,7 @@ function kC({
20929
20931
  } = (a == null ? void 0 : a.text) || {};
20930
20932
  return /* @__PURE__ */ c.jsxs("div", { className: V("profile-image-change-figure", e), children: [
20931
20933
  /* @__PURE__ */ c.jsx(
20932
- In,
20934
+ Ln,
20933
20935
  {
20934
20936
  className: "profile-image-change-picture",
20935
20937
  name: n,
@@ -20974,7 +20976,7 @@ const FC = ({
20974
20976
  }) => {
20975
20977
  const { context: r = "FooterContactUsForm", event: i = "contact-form-submit-click" } = e || {};
20976
20978
  return /* @__PURE__ */ c.jsx(
20977
- Ln,
20979
+ wn,
20978
20980
  {
20979
20981
  id: "contact-us-form",
20980
20982
  fields: [
@@ -21019,73 +21021,74 @@ const FC = ({
21019
21021
  const AC = ({
21020
21022
  title: e,
21021
21023
  label: t,
21022
- ctaMessage: n,
21023
- titleColor: r,
21024
- labelColor: i,
21025
- backgroundColor: a,
21026
- onClose: s,
21027
- reportError: o,
21028
- sendInvites: l,
21029
- initialFormStatus: u = "NOT_SUBMITTED"
21024
+ messagePlaceholder: n,
21025
+ ctaMessage: r,
21026
+ titleColor: i,
21027
+ labelColor: a,
21028
+ backgroundColor: s,
21029
+ onClose: o,
21030
+ reportError: l,
21031
+ sendInvites: u,
21032
+ initialFormStatus: d = "NOT_SUBMITTED"
21030
21033
  /* NOT_SUBMITTED */
21031
21034
  }) => {
21032
- const [d, h] = ue([]), [m, p] = ue(!0), [g, f] = ue(u), { formatMessage: b } = le(), v = async (B) => {
21033
- B.preventDefault();
21035
+ const [h, m] = ue([]), [p, g] = ue(""), [f, b] = ue(!0), [v, w] = ue(d), { formatMessage: E } = le(), B = async (T) => {
21036
+ T.preventDefault();
21034
21037
  try {
21035
- await l(d), h([]), f(
21038
+ await u(h, p), m([]), w(
21036
21039
  "SUCCESS"
21037
21040
  /* SUCCESS */
21038
21041
  );
21039
- } catch (D) {
21040
- f(
21042
+ } catch (I) {
21043
+ w(
21041
21044
  "ERROR"
21042
21045
  /* ERROR */
21043
- ), o(D);
21046
+ ), l(I);
21044
21047
  }
21045
- }, w = (B) => {
21046
- B.preventDefault(), f(
21048
+ }, D = (T) => {
21049
+ T.preventDefault(), w(
21047
21050
  "NOT_SUBMITTED"
21048
21051
  /* NOT_SUBMITTED */
21049
- ), p(!0), h([]);
21050
- }, E = (B) => {
21051
- B.preventDefault(), s(), f(
21052
+ ), b(!0), m([]);
21053
+ }, C = (T) => {
21054
+ T.preventDefault(), o(), w(
21052
21055
  "CLOSED"
21053
21056
  /* CLOSED */
21054
21057
  );
21055
21058
  };
21056
- return g === "CLOSED" ? null : g === "ERROR" || g === "SUCCESS" ? /* @__PURE__ */ c.jsxs("div", { className: "invite-form-wrapper", children: [
21057
- /* @__PURE__ */ c.jsx("div", { className: "content centred", children: g === "SUCCESS" ? /* @__PURE__ */ c.jsx("h2", { className: "success-title", children: b({ id: "inviteForm_success" }) }) : /* @__PURE__ */ c.jsxs("h2", { className: "error-title", children: [
21059
+ return v === "CLOSED" ? null : v === "ERROR" || v === "SUCCESS" ? /* @__PURE__ */ c.jsxs("div", { className: "invite-form-wrapper", children: [
21060
+ /* @__PURE__ */ c.jsx("div", { className: "content centred", children: v === "SUCCESS" ? /* @__PURE__ */ c.jsx("h2", { className: "success-title", children: E({ id: "inviteForm_success" }) }) : /* @__PURE__ */ c.jsxs("h2", { className: "error-title", children: [
21058
21061
  " ",
21059
- b({ id: "inviteForm_error" })
21062
+ E({ id: "inviteForm_error" })
21060
21063
  ] }) }),
21061
21064
  /* @__PURE__ */ c.jsx(on, {}),
21062
- /* @__PURE__ */ c.jsx("div", { className: "footer", children: g === "SUCCESS" ? /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
21063
- /* @__PURE__ */ c.jsx(Te, { variant: "secondary", onClick: w, children: b({ id: "inviteForm_ctaSendMoreInvites" }) }),
21064
- /* @__PURE__ */ c.jsx(Te, { onClick: E, children: b({ id: "inviteForm_ctaDone" }) })
21065
- ] }) : /* @__PURE__ */ c.jsx(Te, { onClick: w, children: b({ id: "inviteForm_ctaTryAgain" }) }) })
21065
+ /* @__PURE__ */ c.jsx("div", { className: "footer", children: v === "SUCCESS" ? /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
21066
+ /* @__PURE__ */ c.jsx(Te, { variant: "secondary", onClick: D, children: E({ id: "inviteForm_ctaSendMoreInvites" }) }),
21067
+ /* @__PURE__ */ c.jsx(Te, { onClick: C, children: E({ id: "inviteForm_ctaDone" }) })
21068
+ ] }) : /* @__PURE__ */ c.jsx(Te, { onClick: D, children: E({ id: "inviteForm_ctaTryAgain" }) }) })
21066
21069
  ] }) : /* @__PURE__ */ c.jsx("div", { className: "invite-form-wrapper", children: /* @__PURE__ */ c.jsxs(
21067
21070
  "form",
21068
21071
  {
21069
- style: { backgroundColor: a },
21070
- onSubmit: v,
21072
+ style: { backgroundColor: s },
21073
+ onSubmit: B,
21071
21074
  className: V("invite-form gtm-trackable"),
21072
21075
  children: [
21073
21076
  /* @__PURE__ */ c.jsxs("fieldset", { className: "content", children: [
21074
- /* @__PURE__ */ c.jsx("h2", { className: "title", style: { color: r }, children: e }),
21075
- /* @__PURE__ */ c.jsx("label", { htmlFor: "email-input", className: "label", style: { color: i }, children: t }),
21077
+ /* @__PURE__ */ c.jsx("h2", { className: "title", style: { color: i }, children: e }),
21078
+ /* @__PURE__ */ c.jsx("label", { htmlFor: "email-input", className: "label", style: { color: a }, children: t }),
21076
21079
  /* @__PURE__ */ c.jsx(
21077
21080
  Eh,
21078
21081
  {
21079
21082
  id: "email-input",
21080
21083
  inputClassName: "email-input input",
21081
- placeholder: b({ id: "inviteForm_email_placeholder" }),
21082
- emails: d,
21083
- onChange: (B) => {
21084
- h(B), p(!B.length);
21084
+ placeholder: E({ id: "inviteForm_email_placeholder" }),
21085
+ emails: h,
21086
+ onChange: (T) => {
21087
+ m(T), b(!T.length);
21085
21088
  },
21086
21089
  autoFocus: !1,
21087
- getLabel: (B, D, C) => /* @__PURE__ */ c.jsxs("div", { className: "email text-medium", children: [
21088
- /* @__PURE__ */ c.jsx("div", { "data-tag-item": !0, children: B }),
21090
+ getLabel: (T, I, P) => /* @__PURE__ */ c.jsxs("div", { className: "email text-medium", children: [
21091
+ /* @__PURE__ */ c.jsx("div", { "data-tag-item": !0, children: T }),
21089
21092
  /* @__PURE__ */ c.jsx(
21090
21093
  Te,
21091
21094
  {
@@ -21093,18 +21096,39 @@ const AC = ({
21093
21096
  size: "small",
21094
21097
  icon: { icon: "close" },
21095
21098
  onClick: () => {
21096
- C(D), p(!d.length);
21099
+ P(I), b(!h.length);
21097
21100
  },
21098
21101
  className: "remove-email-button",
21099
- screenreaderText: b({ id: "overlay_close" })
21102
+ screenreaderText: E({ id: "overlay_close" })
21100
21103
  }
21101
21104
  )
21102
- ] }, D)
21105
+ ] }, I)
21103
21106
  }
21104
21107
  )
21105
21108
  ] }),
21109
+ /* @__PURE__ */ c.jsx(
21110
+ wn,
21111
+ {
21112
+ id: "invite-form-message",
21113
+ fields: [
21114
+ {
21115
+ id: "message",
21116
+ type: "textarea",
21117
+ label: E({ id: "inviteForm_message_label" }),
21118
+ placeholder: n || E({ id: "inviteForm_message_placeholder" }),
21119
+ functions: {
21120
+ onChange: (T) => g(T)
21121
+ }
21122
+ }
21123
+ ],
21124
+ functions: {},
21125
+ button: {
21126
+ hideButton: !0
21127
+ }
21128
+ }
21129
+ ),
21106
21130
  /* @__PURE__ */ c.jsx(on, {}),
21107
- /* @__PURE__ */ c.jsx("fieldset", { className: "footer", children: /* @__PURE__ */ c.jsx(Te, { className: "sendEmailsButton", disabled: m, children: n }) })
21131
+ /* @__PURE__ */ c.jsx("fieldset", { className: "footer", children: /* @__PURE__ */ c.jsx(Te, { className: "sendEmailsButton", disabled: f, children: r }) })
21108
21132
  ]
21109
21133
  }
21110
21134
  ) });
@@ -21174,8 +21198,8 @@ const AC = ({
21174
21198
  ...t
21175
21199
  };
21176
21200
  return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
21177
- /* @__PURE__ */ c.jsx(Ln, { ...m }),
21178
- r && /* @__PURE__ */ c.jsx($n, { variant: "error", text: r })
21201
+ /* @__PURE__ */ c.jsx(wn, { ...m }),
21202
+ r && /* @__PURE__ */ c.jsx(In, { variant: "error", text: r })
21179
21203
  ] });
21180
21204
  };
21181
21205
  const BC = ({ hooks: e, functions: t, meta: n = {}, gtm: r }) => {
@@ -21190,7 +21214,7 @@ const BC = ({ hooks: e, functions: t, meta: n = {}, gtm: r }) => {
21190
21214
  }
21191
21215
  } = t, { buildLocation: f, isValidPlace: b, predictPlaces: v } = e.useMaps(), { context: w = "ProfileForm", event: E = "profile-form-submit-click" } = r || {};
21192
21216
  return /* @__PURE__ */ c.jsx(
21193
- Ln,
21217
+ wn,
21194
21218
  {
21195
21219
  id: "profile-details-form",
21196
21220
  fields: [
@@ -21282,12 +21306,12 @@ const BC = ({ hooks: e, functions: t, meta: n = {}, gtm: r }) => {
21282
21306
  functions: {
21283
21307
  onSuccess: async (C) => {
21284
21308
  try {
21285
- const S = {
21309
+ const T = {
21286
21310
  ...C,
21287
21311
  image: o || null,
21288
21312
  location: u ? await f(C == null ? void 0 : C.location) : s.location
21289
21313
  };
21290
- s.updateDetails && s.updateDetails((I) => ({ ...I, ...S })), await m(S);
21314
+ s.updateDetails && s.updateDetails((I) => ({ ...I, ...T })), await m(T);
21291
21315
  } catch {
21292
21316
  g();
21293
21317
  }
@@ -21672,7 +21696,7 @@ const NC = {
21672
21696
  shouldDisableButton: B,
21673
21697
  showSuccessMessage: D,
21674
21698
  showError: C
21675
- } = f, [S, I] = Oc([
21699
+ } = f, [T, I] = Oc([
21676
21700
  "signup-this-session",
21677
21701
  "functional-cookie-consent"
21678
21702
  ]), P = {
@@ -21687,9 +21711,9 @@ const NC = {
21687
21711
  de(() => {
21688
21712
  E === !0 && P.jobTitle.current && P.jobTitle.current.focus();
21689
21713
  }, [E]), de(() => {
21690
- S["signup-this-session"] && b([{ type: "showSuccessMessage", value: !0 }]);
21691
- }, [S]), de(() => {
21692
- D && S["functional-cookie-consent"] && I("signup-this-session", "true", {
21714
+ T["signup-this-session"] && b([{ type: "showSuccessMessage", value: !0 }]);
21715
+ }, [T]), de(() => {
21716
+ D && T["functional-cookie-consent"] && I("signup-this-session", "true", {
21693
21717
  path: "/",
21694
21718
  maxAge: 3600
21695
21719
  });
@@ -21713,14 +21737,14 @@ const NC = {
21713
21737
  children: [
21714
21738
  g.title && /* @__PURE__ */ c.jsx("p", { className: "signup-title", children: /* @__PURE__ */ c.jsx(ht, { id: "signup_title" }) }),
21715
21739
  C && /* @__PURE__ */ c.jsx(
21716
- $n,
21740
+ In,
21717
21741
  {
21718
21742
  variant: "error",
21719
21743
  text: l.formatMessage({ id: "signup_error" })
21720
21744
  }
21721
21745
  ),
21722
21746
  /* @__PURE__ */ c.jsx(
21723
- Ln,
21747
+ wn,
21724
21748
  {
21725
21749
  className: "signup-form",
21726
21750
  formRef: P.form,
@@ -21893,7 +21917,7 @@ const MC = ({
21893
21917
  functions: { onClose: p },
21894
21918
  className: V("edit-section-modal"),
21895
21919
  children: b || (n ? /* @__PURE__ */ c.jsx(
21896
- Ln,
21920
+ wn,
21897
21921
  {
21898
21922
  ...n,
21899
21923
  fields: n.fields,
@@ -22025,7 +22049,7 @@ const as = "contactFooter_", ek = ({ onSuccess: e = async () => {
22025
22049
  children: [
22026
22050
  /* @__PURE__ */ c.jsxs("aside", { children: [
22027
22051
  /* @__PURE__ */ c.jsx("p", { children: /* @__PURE__ */ c.jsx(ht, { id: `${as}text` }) }),
22028
- /* @__PURE__ */ c.jsx(Rn, { className: "mailto-link", href: "mailto:hello@apolitical.co", children: /* @__PURE__ */ c.jsx(ht, { id: `${as}email` }) })
22052
+ /* @__PURE__ */ c.jsx($n, { className: "mailto-link", href: "mailto:hello@apolitical.co", children: /* @__PURE__ */ c.jsx(ht, { id: `${as}email` }) })
22029
22053
  ] }),
22030
22054
  /* @__PURE__ */ c.jsx(
22031
22055
  FC,
@@ -22866,7 +22890,7 @@ const Vf = ({ showNavigation: e = !0 }) => {
22866
22890
  ] ? "hide" : "show"}`
22867
22891
  }) }),
22868
22892
  /* @__PURE__ */ c.jsx(
22869
- In,
22893
+ Ln,
22870
22894
  {
22871
22895
  name: n && n.name || "",
22872
22896
  src: n && n.image && n.image.thumbnail || ""
@@ -22901,7 +22925,7 @@ const IC = () => {
22901
22925
  return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
22902
22926
  /* @__PURE__ */ c.jsx(Vf, {}),
22903
22927
  /* @__PURE__ */ c.jsx("div", { id: "content", children: /* @__PURE__ */ c.jsx(
22904
- $n,
22928
+ In,
22905
22929
  {
22906
22930
  variant: "error",
22907
22931
  text: e.formatMessage({ id: "pageLayout_error" })
@@ -22925,9 +22949,9 @@ const IC = () => {
22925
22949
  modal: p = "default"
22926
22950
  } = a, g = Th(), [f, b] = ue(""), v = (C) => {
22927
22951
  const {
22928
- detail: { message: S }
22952
+ detail: { message: T }
22929
22953
  } = C;
22930
- b(S);
22954
+ b(T);
22931
22955
  };
22932
22956
  de(() => (window.scrollTo(0, 0), document.addEventListener("ariaLive", v), () => {
22933
22957
  document.removeEventListener("ariaLive", v);
@@ -23092,7 +23116,7 @@ const qC = 25, WC = ({
23092
23116
  }
23093
23117
  ),
23094
23118
  /* @__PURE__ */ c.jsx(
23095
- Rn,
23119
+ $n,
23096
23120
  {
23097
23121
  href: "/profiles/me",
23098
23122
  className: "text-small",
@@ -23249,7 +23273,7 @@ const nt = "discussion_form_", ma = ({
23249
23273
  isAutoFocused: B = !1,
23250
23274
  isEditing: D = !1,
23251
23275
  hasTitleField: C = !1,
23252
- isPrepopulated: S = !1,
23276
+ isPrepopulated: T = !1,
23253
23277
  showTitle: I = !1,
23254
23278
  showGuidelines: P = !0,
23255
23279
  showDivider: L = !1,
@@ -23257,7 +23281,7 @@ const nt = "discussion_form_", ma = ({
23257
23281
  showPostType: A = !1,
23258
23282
  postCategories: _ = []
23259
23283
  } = i || {}, {
23260
- onChange: T = () => {
23284
+ onChange: S = () => {
23261
23285
  },
23262
23286
  create: j = () => {
23263
23287
  },
@@ -23277,12 +23301,12 @@ const nt = "discussion_form_", ma = ({
23277
23301
  }
23278
23302
  } = d, [F, k] = ue({
23279
23303
  title: C && C.text || "",
23280
- body: D && D.text || S && S.text || "",
23304
+ body: D && D.text || T && T.text || "",
23281
23305
  categories: D ? D.categories : ""
23282
23306
  }), [N, O] = ue(l.error || !1), [q, J] = ue(!1);
23283
23307
  if (de(() => {
23284
- u && !D && S && S !== F.body && k({ ...F, body: S.text || "" });
23285
- }, [S]), v)
23308
+ u && !D && T && T !== F.body && k({ ...F, body: T.text || "" });
23309
+ }, [T]), v)
23286
23310
  return /* @__PURE__ */ c.jsx(
23287
23311
  qt,
23288
23312
  {
@@ -23291,7 +23315,7 @@ const nt = "discussion_form_", ma = ({
23291
23315
  }
23292
23316
  );
23293
23317
  const U = (ge) => {
23294
- k({ ...F, body: ge }), T({ body: ge });
23318
+ k({ ...F, body: ge }), S({ body: ge });
23295
23319
  let Ae;
23296
23320
  !g || !g.id ? Ae = $t(
23297
23321
  p.formatMessage,
@@ -23426,7 +23450,7 @@ const nt = "discussion_form_", ma = ({
23426
23450
  placeholder: p.formatMessage({ id: `${nt}titleField_placeholder` }),
23427
23451
  functions: {
23428
23452
  onChange: (ge) => {
23429
- k({ ...F, title: ge }), T({ title: ge });
23453
+ k({ ...F, title: ge }), S({ title: ge });
23430
23454
  }
23431
23455
  },
23432
23456
  validation: [
@@ -23457,14 +23481,14 @@ const nt = "discussion_form_", ma = ({
23457
23481
  ],
23458
23482
  functions: {
23459
23483
  onChange: (ge) => {
23460
- k((Ae) => ({ ...Ae, categories: ge })), T({ postType: ge });
23484
+ k((Ae) => ({ ...Ae, categories: ge })), S({ postType: ge });
23461
23485
  }
23462
23486
  }
23463
23487
  });
23464
23488
  let We = !g || !g.id || !r || Fe || Ne;
23465
23489
  return D && (C ? We = We || F.body === D.text && F.title === C.text : We = We || F.body === D.text), /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
23466
23490
  /* @__PURE__ */ c.jsxs(
23467
- Ln,
23491
+ wn,
23468
23492
  {
23469
23493
  id: X,
23470
23494
  className: V("discussion-card discussion-form", {
@@ -23625,7 +23649,7 @@ const eE = ({
23625
23649
  ignoreInteractions: B,
23626
23650
  showLikers: D,
23627
23651
  tabbableLink: C,
23628
- showLikesModal: S
23652
+ showLikesModal: T
23629
23653
  } = b, I = QC(v);
23630
23654
  de(() => {
23631
23655
  v([{ type: "userLikedContent", value: i }]);
@@ -23633,8 +23657,8 @@ const eE = ({
23633
23657
  const P = Yt(
23634
23658
  () => GC(n, XC),
23635
23659
  [n]
23636
- ), L = (T) => {
23637
- if (T.preventDefault(), T.stopPropagation(), v([{ type: "showLikers", value: !1 }]), $r)
23660
+ ), L = (S) => {
23661
+ if (S.preventDefault(), S.stopPropagation(), v([{ type: "showLikers", value: !1 }]), $r)
23638
23662
  return cs(), !1;
23639
23663
  if (cs(), B || !s)
23640
23664
  return !1;
@@ -23642,10 +23666,10 @@ const eE = ({
23642
23666
  }, $ = async () => {
23643
23667
  if (cs(), B || !s)
23644
23668
  return !1;
23645
- let T = E ? w - 1 : w + 1;
23646
- T < 0 && (T = 0), v([
23669
+ let S = E ? w - 1 : w + 1;
23670
+ S < 0 && (S = 0), v([
23647
23671
  { type: "ignoreInteractions", value: !0 },
23648
- { type: "numberOfLikes", value: T },
23672
+ { type: "numberOfLikes", value: S },
23649
23673
  { type: "userLikedContent", value: !E }
23650
23674
  ]);
23651
23675
  try {
@@ -23675,8 +23699,8 @@ const eE = ({
23675
23699
  e,
23676
23700
  {
23677
23701
  className: "likes-wrapper",
23678
- onKeyDown: (T) => {
23679
- T.key === "Escape" && v([{ type: "showLikers", value: !1 }]);
23702
+ onKeyDown: (S) => {
23703
+ S.key === "Escape" && v([{ type: "showLikers", value: !1 }]);
23680
23704
  },
23681
23705
  onMouseEnter: () => {
23682
23706
  _(), v([{ type: "showLikers", value: !0 }]);
@@ -23731,10 +23755,10 @@ const eE = ({
23731
23755
  _();
23732
23756
  },
23733
23757
  onBlur: () => A,
23734
- onClick: (T) => {
23758
+ onClick: (S) => {
23735
23759
  var H;
23736
- T.preventDefault(), T.stopPropagation(), _(), v([{ type: "showLikers", value: !0 }]);
23737
- const j = (H = T.currentTarget.nextSibling) == null ? void 0 : H.childNodes[0];
23760
+ S.preventDefault(), S.stopPropagation(), _(), v([{ type: "showLikers", value: !0 }]);
23761
+ const j = (H = S.currentTarget.nextSibling) == null ? void 0 : H.childNodes[0];
23738
23762
  if (j) {
23739
23763
  const W = j.querySelector(
23740
23764
  "li:first-child a"
@@ -23744,8 +23768,8 @@ const eE = ({
23744
23768
  }, 100));
23745
23769
  }
23746
23770
  },
23747
- onKeyDown: (T) => {
23748
- T.key === "Escape" && (T.preventDefault(), T.stopPropagation(), A());
23771
+ onKeyDown: (S) => {
23772
+ S.key === "Escape" && (S.preventDefault(), S.stopPropagation(), A());
23749
23773
  },
23750
23774
  "aria-expanded": D,
23751
23775
  "aria-controls": `likes-tooltip-${a.slug}`,
@@ -23762,22 +23786,22 @@ const eE = ({
23762
23786
  isOpen: D,
23763
23787
  isLoading: n.length === 0,
23764
23788
  children: n.length && /* @__PURE__ */ c.jsxs("ul", { children: [
23765
- P.map((T, j) => {
23766
- if (typeof T == "string")
23789
+ P.map((S, j) => {
23790
+ if (typeof S == "string")
23767
23791
  return null;
23768
23792
  const H = {};
23769
23793
  return C !== j && (H.tabIndex = -1), /* @__PURE__ */ c.jsx("li", { "data-index": j, children: /* @__PURE__ */ c.jsx(
23770
- Rn,
23794
+ $n,
23771
23795
  {
23772
- href: T.id ? `/profiles/${T.id}` : void 0,
23796
+ href: S.id ? `/profiles/${S.id}` : void 0,
23773
23797
  gtmContext: "Likes",
23774
23798
  gtmType: "liked-name-click",
23775
23799
  onFocus: () => _(),
23776
23800
  onKeyDown: I,
23777
23801
  ...H,
23778
- children: T.name ? T.name : /* @__PURE__ */ c.jsx("span", { className: "deleted-user", children: g.formatMessage({ id: "member_deleted" }) })
23802
+ children: S.name ? S.name : /* @__PURE__ */ c.jsx("span", { className: "deleted-user", children: g.formatMessage({ id: "member_deleted" }) })
23779
23803
  }
23780
- ) }, T.id || window.btoa(T.name || ""));
23804
+ ) }, S.id || window.btoa(S.name || ""));
23781
23805
  }),
23782
23806
  /* @__PURE__ */ c.jsx("li", { "data-index": P.length, className: "show-all", children: /* @__PURE__ */ c.jsx(
23783
23807
  Te,
@@ -23793,14 +23817,14 @@ const eE = ({
23793
23817
  ] })
23794
23818
  }
23795
23819
  ),
23796
- S && /* @__PURE__ */ c.jsx(Qr, { children: /* @__PURE__ */ c.jsx(Sc, { children: /* @__PURE__ */ c.jsx(
23820
+ T && /* @__PURE__ */ c.jsx(Qr, { children: /* @__PURE__ */ c.jsx(Sc, { children: /* @__PURE__ */ c.jsx(
23797
23821
  JC,
23798
23822
  {
23799
23823
  activityId: o,
23800
23824
  basePath: l,
23801
23825
  parentId: u,
23802
23826
  likeCount: t,
23803
- showModal: S,
23827
+ showModal: T,
23804
23828
  functions: {
23805
23829
  onClose: () => v([{ type: "showLikesModal", value: !1 }]),
23806
23830
  likes: {
@@ -24460,7 +24484,7 @@ const rk = ({
24460
24484
  fetchNextPage: w,
24461
24485
  hasNextPage: E,
24462
24486
  isLoading: B,
24463
- mutations: { create: D, edit: C, remove: S, like: I, unlike: P, pin: L, unpin: $ }
24487
+ mutations: { create: D, edit: C, remove: T, like: I, unlike: P, pin: L, unpin: $ }
24464
24488
  } = gE({
24465
24489
  queryKey: [e, t, "activities", m],
24466
24490
  queryFns: a,
@@ -24478,10 +24502,10 @@ const rk = ({
24478
24502
  )
24479
24503
  );
24480
24504
  }, [i]);
24481
- const [A, _] = ue(null), T = () => {
24505
+ const [A, _] = ue(null), S = () => {
24482
24506
  _(b.length), w();
24483
24507
  };
24484
- return Xf(), v ? /* @__PURE__ */ c.jsx($n, { variant: "error", text: v.message }) : /* @__PURE__ */ c.jsxs("section", { children: [
24508
+ return Xf(), v ? /* @__PURE__ */ c.jsx(In, { variant: "error", text: v.message }) : /* @__PURE__ */ c.jsxs("section", { children: [
24485
24509
  /* @__PURE__ */ c.jsx(
24486
24510
  nh,
24487
24511
  {
@@ -24603,7 +24627,7 @@ const rk = ({
24603
24627
  functions: {
24604
24628
  content: {
24605
24629
  createContent: () => null,
24606
- deleteContent: () => S({ activityId: W }),
24630
+ deleteContent: () => T({ activityId: W }),
24607
24631
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
24608
24632
  updateContent: (X, { body: ce }) => C({ activityId: W, content: ce })
24609
24633
  },
@@ -24649,7 +24673,7 @@ const rk = ({
24649
24673
  sa,
24650
24674
  {
24651
24675
  hasNextPage: E,
24652
- loadNextPage: T,
24676
+ loadNextPage: S,
24653
24677
  icon: { icon: "arrow-down", position: "right" },
24654
24678
  messages: {
24655
24679
  button: h.formatMessage({ id: "loadMore_button" }),
@@ -25410,7 +25434,7 @@ const BE = ({
25410
25434
  },
25411
25435
  functions: {
25412
25436
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
25413
- create: (C, { body: S }) => g({ activityId: n, replyId: r, content: S }),
25437
+ create: (C, { body: T }) => g({ activityId: n, replyId: r, content: T }),
25414
25438
  listMembers: s.listMembers,
25415
25439
  clickMentionFallback: s.clickMentionFallback
25416
25440
  },
@@ -25424,7 +25448,7 @@ const BE = ({
25424
25448
  children: d && d.length > 0 ? d == null ? void 0 : d.map((C) => {
25425
25449
  var ne, x, z, re, F, k, N;
25426
25450
  const {
25427
- id: S,
25451
+ id: T,
25428
25452
  own_children: I,
25429
25453
  latest_children: P,
25430
25454
  children_counts: L,
@@ -25432,7 +25456,7 @@ const BE = ({
25432
25456
  } = C, _ = (((ne = I == null ? void 0 : I.like) == null ? void 0 : ne.length) || 0) > 0 ? (x = I == null ? void 0 : I.like) == null ? void 0 : x.find((O) => {
25433
25457
  var q;
25434
25458
  return ((q = O == null ? void 0 : O.user) == null ? void 0 : q.id) === (E == null ? void 0 : E.id);
25435
- }) : !1, T = _ ? _ == null ? void 0 : _.id : "", j = !!_, W = (((z = P == null ? void 0 : P.like) == null ? void 0 : z.length) || 0) > 0 ? (re = P == null ? void 0 : P.like) == null ? void 0 : re.map((O) => {
25459
+ }) : !1, S = _ ? _ == null ? void 0 : _.id : "", j = !!_, W = (((z = P == null ? void 0 : P.like) == null ? void 0 : z.length) || 0) > 0 ? (re = P == null ? void 0 : P.like) == null ? void 0 : re.map((O) => {
25436
25460
  var q, J, U;
25437
25461
  return {
25438
25462
  id: (q = O == null ? void 0 : O.user) == null ? void 0 : q.id,
@@ -25447,7 +25471,7 @@ const BE = ({
25447
25471
  {
25448
25472
  isCommunity: !0,
25449
25473
  content: {
25450
- id: S,
25474
+ id: T,
25451
25475
  type: "reply",
25452
25476
  body: ie,
25453
25477
  canLike: i,
@@ -25469,14 +25493,14 @@ const BE = ({
25469
25493
  functions: {
25470
25494
  content: {
25471
25495
  createContent: () => null,
25472
- deleteContent: () => v({ replyId: S }),
25496
+ deleteContent: () => v({ replyId: T }),
25473
25497
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
25474
- updateContent: (O, { body: q }) => f({ replyId: S, content: q })
25498
+ updateContent: (O, { body: q }) => f({ replyId: T, content: q })
25475
25499
  },
25476
25500
  likes: {
25477
- createLike: () => b({ replyId: S }),
25478
- deleteLike: () => w({ replyId: S, reactionId: T }),
25479
- listLikes: (O) => o.list({ replyId: S, ...O })
25501
+ createLike: () => b({ replyId: T }),
25502
+ deleteLike: () => w({ replyId: T, reactionId: S }),
25503
+ listLikes: (O) => o.list({ replyId: T, ...O })
25480
25504
  },
25481
25505
  comments: {},
25482
25506
  mentions: {
@@ -25501,7 +25525,7 @@ const BE = ({
25501
25525
  basePath: e,
25502
25526
  parentId: t
25503
25527
  },
25504
- S
25528
+ T
25505
25529
  );
25506
25530
  }) : null
25507
25531
  }
@@ -25529,7 +25553,7 @@ const TE = ({
25529
25553
  queryFns: u
25530
25554
  }), C = () => {
25531
25555
  I(m.length), p();
25532
- }, [S, I] = ue(null);
25556
+ }, [T, I] = ue(null);
25533
25557
  return Ic([f]), Xf(), /* @__PURE__ */ c.jsxs("section", { className: "replies-feed", children: [
25534
25558
  /* @__PURE__ */ c.jsx(UE, { type: "comment", responses: r, isLoading: f }),
25535
25559
  /* @__PURE__ */ c.jsx(
@@ -25566,7 +25590,7 @@ const TE = ({
25566
25590
  id: $,
25567
25591
  own_children: A,
25568
25592
  latest_children: _,
25569
- children_counts: T,
25593
+ children_counts: S,
25570
25594
  data: { mentioned_users: j }
25571
25595
  } = P, W = (((F = A == null ? void 0 : A.like) == null ? void 0 : F.length) || 0) > 0 ? (k = A == null ? void 0 : A.like) == null ? void 0 : k.find((X) => {
25572
25596
  var ce;
@@ -25599,7 +25623,7 @@ const TE = ({
25599
25623
  slug: $,
25600
25624
  author: Xr(P == null ? void 0 : P.user),
25601
25625
  userLiked: ne,
25602
- likes: (T == null ? void 0 : T.like) || 0,
25626
+ likes: (S == null ? void 0 : S.like) || 0,
25603
25627
  peopleWhoLiked: z,
25604
25628
  mentions: j
25605
25629
  },
@@ -25647,7 +25671,7 @@ const TE = ({
25647
25671
  }
25648
25672
  ),
25649
25673
  styling: { showShareLinkButton: !0 },
25650
- setFocus: L === S,
25674
+ setFocus: L === T,
25651
25675
  basePath: e,
25652
25676
  parentId: t
25653
25677
  },
@@ -25870,7 +25894,7 @@ const pa = ({
25870
25894
  parentId: B
25871
25895
  }) => {
25872
25896
  var Ae, je, K, se, pe, be, _e, Xe, et;
25873
- const D = le(), C = Le(Dt), S = Le(Po), {
25897
+ const D = le(), C = Le(Dt), T = Le(Po), {
25874
25898
  createContent: I = async () => {
25875
25899
  },
25876
25900
  deleteContent: P = async () => {
@@ -25883,7 +25907,7 @@ const pa = ({
25883
25907
  deleteLike: A = () => {
25884
25908
  },
25885
25909
  listLikes: _ = async () => ({})
25886
- } = o.likes || {}, { openComments: T = () => {
25910
+ } = o.likes || {}, { openComments: S = () => {
25887
25911
  } } = o.comments || {}, { listMembers: j = () => Promise.resolve([]), clickMentionFallback: H = () => {
25888
25912
  } } = o.mentions || {}, {
25889
25913
  author: W,
@@ -25962,9 +25986,9 @@ const pa = ({
25962
25986
  Ne(`${Ht}form_error`);
25963
25987
  }
25964
25988
  }, Qe = () => {
25965
- if (S && S.updateConversation) {
25989
+ if (T && T.updateConversation) {
25966
25990
  const xe = { showForm: !0 }, Oe = t.author;
25967
- Oe && Oe.id && (b && (xe.prepopulateForm = `@{{${Oe.id}}}`), xe.mentionData = { id: Oe.id, name: Oe.name }), S.updateConversation(xe);
25991
+ Oe && Oe.id && (b && (xe.prepopulateForm = `@{{${Oe.id}}}`), xe.mentionData = { id: Oe.id, name: Oe.name }), T.updateConversation(xe);
25968
25992
  }
25969
25993
  setTimeout(() => {
25970
25994
  var At, dt, Wn;
@@ -26191,7 +26215,7 @@ const pa = ({
26191
26215
  ea,
26192
26216
  {
26193
26217
  onClick: (xe) => {
26194
- xe.preventDefault(), xe.stopPropagation(), l.comments && (window.location.href = l.comments), typeof T == "function" && T();
26218
+ xe.preventDefault(), xe.stopPropagation(), l.comments && (window.location.href = l.comments), typeof S == "function" && S();
26195
26219
  },
26196
26220
  icon: { icon: "speech-bubble_square" },
26197
26221
  "data-gtm-event-context": d,
@@ -26372,7 +26396,7 @@ const LE = fr(
26372
26396
  },
26373
26397
  "data-testid": "discussion-form-card",
26374
26398
  children: [
26375
- /* @__PURE__ */ c.jsx(In, { name: l.name, src: l.image, alt: "" }),
26399
+ /* @__PURE__ */ c.jsx(Ln, { name: l.name, src: l.image, alt: "" }),
26376
26400
  /* @__PURE__ */ c.jsx(
26377
26401
  sr,
26378
26402
  {
@@ -26462,7 +26486,7 @@ const LE = fr(
26462
26486
  }) => {
26463
26487
  if (a && !i)
26464
26488
  return /* @__PURE__ */ c.jsx(
26465
- $n,
26489
+ In,
26466
26490
  {
26467
26491
  text: l,
26468
26492
  button: {
@@ -26731,19 +26755,19 @@ const ak = ({
26731
26755
  return /* @__PURE__ */ c.jsx(qt, { style: { height: "400px" } });
26732
26756
  if (b || !f)
26733
26757
  return /* @__PURE__ */ c.jsx(
26734
- $n,
26758
+ In,
26735
26759
  {
26736
26760
  variant: "error",
26737
26761
  text: g.formatMessage({ id: "activitySection_notFoundError" })
26738
26762
  }
26739
26763
  );
26740
- const { own_reactions: S, latest_reactions: I, mentioned_users: P } = f, L = (((j = I == null ? void 0 : I.like) == null ? void 0 : j.length) || 0) > 0, $ = (((H = S == null ? void 0 : S.like) == null ? void 0 : H.length) || 0) > 0, A = $ ? S == null ? void 0 : S.like[0].id : "", _ = L ? (W = I == null ? void 0 : I.like) == null ? void 0 : W.map((z) => {
26764
+ const { own_reactions: T, latest_reactions: I, mentioned_users: P } = f, L = (((j = I == null ? void 0 : I.like) == null ? void 0 : j.length) || 0) > 0, $ = (((H = T == null ? void 0 : T.like) == null ? void 0 : H.length) || 0) > 0, A = $ ? T == null ? void 0 : T.like[0].id : "", _ = L ? (W = I == null ? void 0 : I.like) == null ? void 0 : W.map((z) => {
26741
26765
  var re, F, k;
26742
26766
  return {
26743
26767
  id: (re = z == null ? void 0 : z.user) == null ? void 0 : re.id,
26744
26768
  name: (k = (F = z == null ? void 0 : z.user) == null ? void 0 : F.data) == null ? void 0 : k.name
26745
26769
  };
26746
- }) : !1, T = f == null ? void 0 : f.actor;
26770
+ }) : !1, S = f == null ? void 0 : f.actor;
26747
26771
  return /* @__PURE__ */ c.jsxs("section", { className: "activity-section", children: [
26748
26772
  /* @__PURE__ */ c.jsx(
26749
26773
  pa,
@@ -26763,7 +26787,7 @@ const ak = ({
26763
26787
  answer: f == null ? void 0 : f.id
26764
26788
  },
26765
26789
  slug: n,
26766
- author: Xr(T),
26790
+ author: Xr(S),
26767
26791
  userLiked: $,
26768
26792
  likes: ((ie = f == null ? void 0 : f.reaction_counts) == null ? void 0 : ie.like) || 0,
26769
26793
  comments: (f == null ? void 0 : f.total_replies) || 0,
@@ -26771,7 +26795,7 @@ const ak = ({
26771
26795
  mentions: P,
26772
26796
  pinned: ((ne = f == null ? void 0 : f.reaction_counts) == null ? void 0 : ne.pin) && ((x = f == null ? void 0 : f.reaction_counts) == null ? void 0 : x.pin) > 0 || !1
26773
26797
  },
26774
- originalAuthorId: T == null ? void 0 : T.id,
26798
+ originalAuthorId: S == null ? void 0 : S.id,
26775
26799
  forceHide: { comments: !0 },
26776
26800
  functions: {
26777
26801
  content: {
@@ -27017,7 +27041,7 @@ const ok = ({ members: e }) => {
27017
27041
  const [t, n] = ue(!1), r = (i) => {
27018
27042
  const { fullName: a, jobTitle: s, organisation: o, photo: l } = i || {};
27019
27043
  return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
27020
- /* @__PURE__ */ c.jsx(In, { name: a, src: l }),
27044
+ /* @__PURE__ */ c.jsx(Ln, { name: a, src: l }),
27021
27045
  /* @__PURE__ */ c.jsx("p", { children: a }),
27022
27046
  /* @__PURE__ */ c.jsx("small", { className: "text-medium", children: o ? `${s}, ${o}` : s })
27023
27047
  ] });
@@ -27642,7 +27666,7 @@ const ih = ({
27642
27666
  } = ia[v];
27643
27667
  let C = f.slug ? `${w}${f.slug}` : !1;
27644
27668
  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);
27645
- const S = (_) => {
27669
+ const T = (_) => {
27646
27670
  C && (_.preventDefault(), _.stopPropagation(), window.location.href = C);
27647
27671
  }, I = { ...o_, ...B };
27648
27672
  let P = { className: "card" }, L = {};
@@ -27653,7 +27677,7 @@ const ih = ({
27653
27677
  "data-gtm-event-type": `${D}-click`,
27654
27678
  "data-testid": "link"
27655
27679
  }, f.openInNewTab && (L.target = "_blank"), P = {
27656
- onClick: S,
27680
+ onClick: T,
27657
27681
  className: "card gtm-trackable",
27658
27682
  "data-gtm-event-context": `${s}-CarouselCard`,
27659
27683
  "data-gtm-event-type": `${D}-click`
@@ -27693,7 +27717,7 @@ const ih = ({
27693
27717
  f.registered && /* @__PURE__ */ c.jsx(an, { size: "small", variant: "registered", children: u.formatMessage({ id: "card_registered" }) }),
27694
27718
  /* @__PURE__ */ c.jsx(Gr, { image: { ...f.banner, description: "" } })
27695
27719
  ] }) : E === "people" ? /* @__PURE__ */ c.jsx(
27696
- In,
27720
+ Ln,
27697
27721
  {
27698
27722
  name: f.title || "",
27699
27723
  src: f.profile,
@@ -27719,8 +27743,8 @@ const ih = ({
27719
27743
  ) : ar(f.partner[0], I.partner) }),
27720
27744
  /* Text */
27721
27745
  ["title", "text", "secondaryText"].map((_) => {
27722
- const T = f[_];
27723
- if (!T)
27746
+ const S = f[_];
27747
+ if (!S)
27724
27748
  return null;
27725
27749
  const j = jh(_), H = {
27726
27750
  key: _,
@@ -27731,7 +27755,7 @@ const ih = ({
27731
27755
  forceWrapper: !0,
27732
27756
  forceInline: !0
27733
27757
  }, ie = ar(
27734
- T,
27758
+ S,
27735
27759
  I[_]
27736
27760
  );
27737
27761
  return ["title", "text"].includes(_) && C ? (W.wrapper = "a", /* @__PURE__ */ c.jsx("p", { ...H, children: /* @__PURE__ */ c.jsx(Gt, { options: W, ...L, children: ie }) })) : /* @__PURE__ */ c.jsx(Gt, { options: W, ...H, children: ie });
@@ -27810,37 +27834,37 @@ const h_ = ({
27810
27834
  }), { cardsPerPage: m, isLoading: p } = d, [g, f] = ue({
27811
27835
  currentPage: 0,
27812
27836
  loadedPages: [0]
27813
- }), { currentPage: b, loadedPages: v } = g, [w, E] = ue(""), B = t.length, D = Math.ceil(B / m), C = ke(null), S = mr(!0, !0, C == null ? void 0 : C.current);
27837
+ }), { currentPage: b, loadedPages: v } = g, [w, E] = ue(""), B = t.length, D = Math.ceil(B / m), C = ke(null), T = mr(!0, !0, C == null ? void 0 : C.current);
27814
27838
  de(() => {
27815
27839
  let _ = 1;
27816
- S && (S >= ps.fourCards ? _ = 4 : S >= ps.threeCards ? _ = 3 : S >= ps.twoCards && (_ = 2), _ > B && (_ = B)), h((T) => ({
27817
- ...T,
27840
+ T && (T >= ps.fourCards ? _ = 4 : T >= ps.threeCards ? _ = 3 : T >= ps.twoCards && (_ = 2), _ > B && (_ = B)), h((S) => ({
27841
+ ...S,
27818
27842
  cardsPerPage: _,
27819
27843
  isLoading: !1
27820
27844
  }));
27821
- }, [S, B]);
27845
+ }, [T, B]);
27822
27846
  const I = (_ = "next") => {
27823
27847
  gs && clearTimeout(gs);
27824
- let T = b;
27848
+ let S = b;
27825
27849
  if (typeof _ == "string")
27826
27850
  if (_ === "next")
27827
27851
  if (b < D - 1)
27828
- T = b + 1;
27852
+ S = b + 1;
27829
27853
  else
27830
27854
  return;
27831
27855
  else if (b > 0)
27832
- T = b - 1;
27856
+ S = b - 1;
27833
27857
  else
27834
27858
  return;
27835
27859
  else
27836
- T = _;
27860
+ S = _;
27837
27861
  E(""), f((H) => ({
27838
27862
  ...H,
27839
- currentPage: T,
27840
- loadedPages: [.../* @__PURE__ */ new Set([...v, T])]
27863
+ currentPage: S,
27864
+ loadedPages: [.../* @__PURE__ */ new Set([...v, S])]
27841
27865
  }));
27842
27866
  const j = () => {
27843
- const H = T * d.cardsPerPage, W = H + d.cardsPerPage;
27867
+ const H = S * d.cardsPerPage, W = H + d.cardsPerPage;
27844
27868
  return t.slice(H, W).length;
27845
27869
  };
27846
27870
  gs = setTimeout(() => {
@@ -27864,20 +27888,20 @@ const h_ = ({
27864
27888
  }, L = (_) => {
27865
27889
  if (Ci === null)
27866
27890
  return;
27867
- const T = _.touches[0].clientX, j = Ci - T;
27891
+ const S = _.touches[0].clientX, j = Ci - S;
27868
27892
  j > 5 ? I("next") : j < -5 && I("previous"), Ci = null;
27869
27893
  }, $ = {
27870
- "--width": `${S || 0}px`,
27894
+ "--width": `${T || 0}px`,
27871
27895
  "--total-cards": B,
27872
27896
  "--cards-per-page": m,
27873
27897
  "--page": b
27874
27898
  };
27875
27899
  if (p)
27876
27900
  return /* @__PURE__ */ c.jsx(no, { layout: `carousel${i ? "-with-title" : ""}` });
27877
- const A = (_, T) => {
27901
+ const A = (_, S) => {
27878
27902
  var H;
27879
27903
  let j = null;
27880
- return (H = _ == null ? void 0 : _.sys) != null && H.id ? j = `card-${_.sys.id}` : _ != null && _.slug ? j = `card-${_.slug}` : [n[T], _.contentType].includes("customCard") && (j = `card-${window.btoa(`${_.title} ${_.createdAt}`)}-${T}`), j;
27904
+ return (H = _ == null ? void 0 : _.sys) != null && H.id ? j = `card-${_.sys.id}` : _ != null && _.slug ? j = `card-${_.slug}` : [n[S], _.contentType].includes("customCard") && (j = `card-${window.btoa(`${_.title} ${_.createdAt}`)}-${S}`), j;
27881
27905
  };
27882
27906
  return /* @__PURE__ */ c.jsxs(
27883
27907
  "section",
@@ -27895,19 +27919,19 @@ const h_ = ({
27895
27919
  onTouchMove: L,
27896
27920
  style: $,
27897
27921
  "data-testid": "carousel-list",
27898
- children: t.map((_, T) => {
27899
- let j = A(_, T);
27900
- return j && d_(T, m, b, v) ? /* @__PURE__ */ c.jsx(
27922
+ children: t.map((_, S) => {
27923
+ let j = A(_, S);
27924
+ return j && d_(S, m, b, v) ? /* @__PURE__ */ c.jsx(
27901
27925
  ih,
27902
27926
  {
27903
27927
  id: j,
27904
- card: { ..._, contentType: n[T] },
27928
+ card: { ..._, contentType: n[S] },
27905
27929
  buildCardData: r,
27906
27930
  gtmContext: s,
27907
27931
  ...o
27908
27932
  },
27909
27933
  j
27910
- ) : (j = j || `${e}-card-${T}`, /* @__PURE__ */ c.jsx(
27934
+ ) : (j = j || `${e}-card-${S}`, /* @__PURE__ */ c.jsx(
27911
27935
  qt,
27912
27936
  {
27913
27937
  element: "li",
@@ -27936,7 +27960,7 @@ const h_ = ({
27936
27960
  disabled: b <= 0
27937
27961
  }
27938
27962
  ) }),
27939
- [...Array(D)].map((_, T) => /* @__PURE__ */ c.jsx(
27963
+ [...Array(D)].map((_, S) => /* @__PURE__ */ c.jsx(
27940
27964
  "li",
27941
27965
  {
27942
27966
  "data-testid": "carousel-controls-button",
@@ -27944,19 +27968,19 @@ const h_ = ({
27944
27968
  "button",
27945
27969
  {
27946
27970
  className: V("page-indicator", {
27947
- selected: T === b
27971
+ selected: S === b
27948
27972
  }),
27949
27973
  onClick: (j) => {
27950
- j.preventDefault(), j.stopPropagation(), I(T);
27974
+ j.preventDefault(), j.stopPropagation(), I(S);
27951
27975
  },
27952
27976
  children: /* @__PURE__ */ c.jsx(He, { showOnFocus: !1, children: l.formatMessage(
27953
27977
  { id: `${u}slide` },
27954
- { number: T + 1, total: D }
27978
+ { number: S + 1, total: D }
27955
27979
  ) })
27956
27980
  }
27957
27981
  )
27958
27982
  },
27959
- `page-indicator-${T}`
27983
+ `page-indicator-${S}`
27960
27984
  )),
27961
27985
  /* @__PURE__ */ c.jsx("li", { className: "arrow next", children: /* @__PURE__ */ c.jsx(
27962
27986
  Te,
@@ -28145,7 +28169,7 @@ const vk = ({
28145
28169
  optional: B,
28146
28170
  slug: D,
28147
28171
  subsectionId: C,
28148
- title: S,
28172
+ title: T,
28149
28173
  type: I
28150
28174
  }) => {
28151
28175
  const P = i && t || E, L = {};
@@ -28161,12 +28185,12 @@ const vk = ({
28161
28185
  }),
28162
28186
  ...L,
28163
28187
  children: /* @__PURE__ */ c.jsx(
28164
- Rn,
28188
+ $n,
28165
28189
  {
28166
28190
  href: P ? `/microcourses/en/${o}/${D}` : void 0,
28167
28191
  fallbackElement: "span",
28168
28192
  className: "inner",
28169
- gtmContext: `MicrocourseOutline${Oh(S)}`,
28193
+ gtmContext: `MicrocourseOutline${Oh(T)}`,
28170
28194
  gtmType: "article-click",
28171
28195
  children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
28172
28196
  /* @__PURE__ */ c.jsx(
@@ -28174,7 +28198,7 @@ const vk = ({
28174
28198
  {
28175
28199
  sectionId: a,
28176
28200
  subsectionId: C,
28177
- title: S,
28201
+ title: T,
28178
28202
  className: "course-title"
28179
28203
  }
28180
28204
  ),
@@ -28360,13 +28384,13 @@ export {
28360
28384
  Ar as EMAILS,
28361
28385
  J_ as EditSection,
28362
28386
  Vp as EmailHelperTextBox,
28363
- $n as EmptyStateBox,
28387
+ In as EmptyStateBox,
28364
28388
  Op as EnrichedUrl,
28365
28389
  Dm as FeatureFlags,
28366
28390
  Pp as Filters,
28367
28391
  ym as FlagsProvider,
28368
28392
  Hf as Footer,
28369
- Ln as Form,
28393
+ wn as Form,
28370
28394
  Z as Formatting,
28371
28395
  Rt as Fragment,
28372
28396
  qn as FullWidthSection,
@@ -28391,7 +28415,7 @@ export {
28391
28415
  p_ as LessonType,
28392
28416
  OE as LikesFeed,
28393
28417
  PE as LikesModal,
28394
- Rn as Link,
28418
+ $n as Link,
28395
28419
  sa as LoadMore,
28396
28420
  z_ as LoadingBlock,
28397
28421
  qt as LoadingPlaceholder,
@@ -28426,7 +28450,7 @@ export {
28426
28450
  kC as ProfileImageChange,
28427
28451
  Io as ProfileModal,
28428
28452
  rh as ProfileModalLauncher,
28429
- In as ProfilePicture,
28453
+ Ln as ProfilePicture,
28430
28454
  Qc as ProgressBar,
28431
28455
  M_ as ProgressTracker,
28432
28456
  K_ as Rating,