@goodhood-web/nebenan-base 4.3.0-development.2 → 4.3.0-development.3

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.
Files changed (3) hide show
  1. package/index.js +2 -2
  2. package/index.mjs +200 -199
  3. package/package.json +1 -1
package/index.mjs CHANGED
@@ -3,7 +3,7 @@ var Ox = (n, e, t) => e in n ? Px(n, e, { enumerable: !0, configurable: !0, writ
3
3
  var Re = (n, e, t) => Ox(n, typeof e != "symbol" ? e + "" : e, t);
4
4
  import { jsxs as j, Fragment as Te, jsx as p } from "react/jsx-runtime";
5
5
  import * as w from "react";
6
- import re, { useState as Q, useCallback as ke, useEffect as se, Component as tf, createContext as ra, useContext as ss, useReducer as Bx, useDebugValue as Mx, useId as os, useMemo as dn, useRef as te, forwardRef as I, Fragment as aw, useLayoutEffect as hi, createElement as sw, Suspense as Sx, cloneElement as ow, useImperativeHandle as xr, createRef as lw, Children as Ex, isValidElement as Fx } from "react";
6
+ import re, { useState as Q, useCallback as ke, useEffect as ae, Component as tf, createContext as ra, useContext as ss, useReducer as Bx, useDebugValue as Mx, useId as os, useRef as te, useMemo as dn, forwardRef as I, Fragment as aw, useLayoutEffect as hi, createElement as sw, Suspense as Sx, cloneElement as ow, useImperativeHandle as xr, createRef as lw, Children as Ex, isValidElement as Fx } from "react";
7
7
  import { Typography as _, Icon as Sn, Button as $n, Card as rt, CardBody as In, Thumbnail as zl, IconButton as Fe, EmptyState as eu, Loader as Lg, TextButton as vn, TextInput as gr, Sheet as Xi, ListItem as jg, ButtonPrimary as Qn, ButtonTertiary as Hg, ButtonSecondary as Zg, ProgressBar as uw, CheckboxInput as Tx, ContentCreatorTile as dw, InputFieldSpecial as Rx, FlagIcon as Nx, Select as U0, RadioButton as cw, RadioButtonCluster as Dx, TextAreaInput as fw, ToggleInput as Ix, Sticker as gi, CardHeader as Zi, ButtonGoogleSSO as hw, Image as Wg, BottomSheet as Gg, Notice as Yg, SelectablePillGroup as Lx, Divider as nu, Form as jx, Fieldset as Hx, Markdown as gw, Modal as tu, Popup as iu, Badge as mw, PoiAvatar as Zx, GalleryPlaceholder as Wx, AvatarWithPlaceholder as Gx, LabelPill as pw, CarouselIndicator as Yx, CarouselNavigation as ic, DropdownItem as Qx, InputDetails as Xx, UserAvatar as rf, DropdownButton as Kx, Snackbar as af, OverlayButton as Qg, DropdownCard as Xg, FeedItemCategory as Ux, ThumbnailWrapper as Vx, useCopyToClipboard as Jx, BodyText as qx, CopyLinkButton as _x, Tooltip as $x, UserAvatarCluster as eC } from "@goodhood-web/ui";
8
8
  import { debounce as nC, noop as tC } from "lodash";
9
9
  import { API as mi } from "@goodhood-web/api/core";
@@ -314,7 +314,7 @@ const sP = /* @__PURE__ */ Qt(aP), ls = 799, oP = 690, Yn = (n = ls) => {
314
314
  }, 300),
315
315
  [n]
316
316
  );
317
- return se(() => {
317
+ return ae(() => {
318
318
  if (typeof window < "u")
319
319
  return i(), window.addEventListener("resize", i), () => {
320
320
  window.removeEventListener("resize", i);
@@ -328,7 +328,7 @@ const sP = /* @__PURE__ */ Qt(aP), ls = 799, oP = 690, Yn = (n = ls) => {
328
328
  const i = new RegExp(`\\{${e}\\}`, "g");
329
329
  return n.replace(i, t);
330
330
  }, lP = (n, e, t = "keypress") => {
331
- se(() => {
331
+ ae(() => {
332
332
  const i = Array.isArray(n) ? n : [n], r = (a) => {
333
333
  i.includes(a.key) && (a.preventDefault(), e(a));
334
334
  };
@@ -749,7 +749,7 @@ const tl = /* @__PURE__ */ Qt(EP), Sw = ra({
749
749
  },
750
750
  [e]
751
751
  );
752
- se(() => {
752
+ ae(() => {
753
753
  c(null, !0);
754
754
  }, [c]);
755
755
  const h = () => {
@@ -1162,7 +1162,7 @@ function Jg(n, e) {
1162
1162
  () => [r.get(n), r, n]
1163
1163
  );
1164
1164
  let u = a;
1165
- if ((s !== r || o !== n) && (l(), u = r.get(n)), se(() => {
1165
+ if ((s !== r || o !== n) && (l(), u = r.get(n)), ae(() => {
1166
1166
  const d = r.sub(n, () => {
1167
1167
  if (i)
1168
1168
  try {
@@ -1505,25 +1505,26 @@ function _g({
1505
1505
  const dO = "_form__error_y3ye0_137", Dw = {
1506
1506
  form__error: dO
1507
1507
  }, cO = () => {
1508
- const { fieldErrors: n, setFieldErrors: e } = ss(qg), { clearErrors: t, setError: i, watch: r } = wn();
1509
- return se(() => {
1510
- !n || Object.keys(n).length === 0 || Object.entries(n).forEach(([a, s]) => {
1511
- i(a, {
1512
- message: Array.isArray(s) ? s.join(`
1513
- `) : s,
1508
+ const { fieldErrors: n, setFieldErrors: e } = ss(qg), { clearErrors: t, setError: i, watch: r } = wn(), a = te(n);
1509
+ return ae(() => {
1510
+ a.current = n;
1511
+ }, [n]), ae(() => {
1512
+ !n || Object.keys(n).length === 0 || Object.entries(n).forEach(([s, o]) => {
1513
+ i(s, {
1514
+ message: Array.isArray(o) ? o.join(`
1515
+ `) : o,
1514
1516
  type: "server"
1515
1517
  });
1516
1518
  });
1517
- }, [n, i]), se(() => {
1518
- if (!n || Object.keys(n).length === 0) return;
1519
- const a = r((s, { name: o }) => {
1520
- o && n[o] && (t(o), e((l) => {
1521
- const { [o]: u, ...d } = l;
1522
- return d;
1519
+ }, [a.current, i]), ae(() => {
1520
+ const s = r((o, { name: l, type: u }) => {
1521
+ u === "change" && typeof l == "string" && a.current[l] && (t(l), e((d) => {
1522
+ const { [l]: f, ...c } = d;
1523
+ return c;
1523
1524
  }));
1524
1525
  });
1525
- return () => a.unsubscribe();
1526
- }, [n, e, r, t]), null;
1526
+ return () => s.unsubscribe();
1527
+ }, [e, r, t]), null;
1527
1528
  };
1528
1529
  function $0({
1529
1530
  fields: n,
@@ -1726,7 +1727,7 @@ function jw({
1726
1727
  reValidateMode: "onBlur",
1727
1728
  resolver: o && hO(o)
1728
1729
  });
1729
- se(() => {
1730
+ ae(() => {
1730
1731
  c.reset(d[t]);
1731
1732
  }, [d[t]]);
1732
1733
  const h = async (m, b) => {
@@ -1917,7 +1918,7 @@ const E9e = ({
1917
1918
  value: l = ""
1918
1919
  }) => {
1919
1920
  const [u, d] = Q(n), [f, c] = Q(l);
1920
- se(() => {
1921
+ ae(() => {
1921
1922
  c(l);
1922
1923
  }, [l]);
1923
1924
  const h = (b) => {
@@ -2236,7 +2237,7 @@ const TO = (n, e, t) => {
2236
2237
  a.current = o;
2237
2238
  }, 0));
2238
2239
  }, [n, e, i, r]);
2239
- se(() => {
2240
+ ae(() => {
2240
2241
  s();
2241
2242
  }, [n, s]);
2242
2243
  }, Gu = (n, e) => {
@@ -2260,9 +2261,9 @@ function Gw({
2260
2261
  // Only validate on submit to prevent immediate errors
2261
2262
  reValidateMode: "onBlur"
2262
2263
  });
2263
- if (se(() => {
2264
+ if (ae(() => {
2264
2265
  O.reset(z[i] || {});
2265
- }, [z[i]]), se(() => {
2266
+ }, [z[i]]), ae(() => {
2266
2267
  var B;
2267
2268
  if (O.clearErrors(), m && Object.keys(m).length > 0) {
2268
2269
  const E = ((B = P == null ? void 0 : P.fields) == null ? void 0 : B.map((R) => R.id)) || [];
@@ -2274,9 +2275,9 @@ function Gw({
2274
2275
  });
2275
2276
  });
2276
2277
  }
2277
- }, [h, m, O]), TO(h, s, { snowplowTrack: v, track: A }), se(() => {
2278
+ }, [h, m, O]), TO(h, s, { snowplowTrack: v, track: A }), ae(() => {
2278
2279
  g(f), u && (a == null || a()), d(null), typeof window < "u" && window.scrollTo(0, 0);
2279
- }, [f]), se(() => {
2280
+ }, [f]), ae(() => {
2280
2281
  c(Gu(r, s));
2281
2282
  }, [r]), !s.length) return null;
2282
2283
  function M() {
@@ -2540,7 +2541,7 @@ const RO = "_root_18h7k_137", NO = "_root__description_18h7k_158", DO = "_root__
2540
2541
  }
2541
2542
  }, Yu = pt(KO), Rp = "*****", UO = ({ email: n = Rp }) => {
2542
2543
  const [e, t] = Q(!0);
2543
- se(() => {
2544
+ ae(() => {
2544
2545
  if (!e) return;
2545
2546
  const r = setTimeout(() => {
2546
2547
  t(!1);
@@ -2978,7 +2979,7 @@ const hB = be.string({ required_error: "Bitte gib eine gültige E-Mail-Adresse e
2978
2979
  onLoginSuccess: t
2979
2980
  }) => {
2980
2981
  const i = Xn(), [r, a] = Q(null), [s, o] = Q(null), [l, u] = Q(Wr.LOGIN_FORM), d = of(th);
2981
- se(() => {
2982
+ ae(() => {
2982
2983
  n && u(Wr.EMAIL_CONFIRMATION);
2983
2984
  }, [n]);
2984
2985
  const f = ({
@@ -3332,7 +3333,7 @@ const NB = be.string({ required_error: "Das Passwort muss mindestens 8 Zeichen l
3332
3333
  token: t
3333
3334
  }) => {
3334
3335
  const [i, r] = Q(null), a = En(800), [s, o] = Q(), l = Xn();
3335
- se(() => {
3336
+ ae(() => {
3336
3337
  if (!t) return o(Zr.RESET_INVALID);
3337
3338
  (async () => {
3338
3339
  var g, m;
@@ -3853,7 +3854,7 @@ const jM = "_dropdown_g8p9y_137", HM = "_dropdown__options_g8p9y_156", Do = {
3853
3854
  style: g = "outline"
3854
3855
  }) => {
3855
3856
  const [m, b] = Q(e), [v, A] = Q(Jn.NONE), [k, z] = Q(0), x = te(null), P = te(null), O = te(null), M = ZM(u, m, d), S = En(800);
3856
- se(() => {
3857
+ ae(() => {
3857
3858
  e !== m && b(e);
3858
3859
  }, [e]);
3859
3860
  const F = ke(
@@ -4034,7 +4035,7 @@ const jM = "_dropdown_g8p9y_137", HM = "_dropdown__options_g8p9y_156", Do = {
4034
4035
  }
4035
4036
  }
4036
4037
  }, [n.dataId, n.endpoint, n.key, n.keyLength, m, c]);
4037
- return se(() => {
4038
+ return ae(() => {
4038
4039
  A();
4039
4040
  }, [A]), /* @__PURE__ */ p(
4040
4041
  GM,
@@ -11317,9 +11318,9 @@ const ur = (n) => {
11317
11318
  value: s = ""
11318
11319
  }) => {
11319
11320
  const [o, l] = Q(s), [u, d] = Q(!1), f = te(null);
11320
- se(() => {
11321
+ ae(() => {
11321
11322
  n && d(!1);
11322
- }, [n]), se(() => {
11323
+ }, [n]), ae(() => {
11323
11324
  l(s);
11324
11325
  }, [s]);
11325
11326
  const c = () => {
@@ -12047,7 +12048,7 @@ const ur = (n) => {
12047
12048
  status: l
12048
12049
  }) => {
12049
12050
  const [u, d] = Q(i), [f, c] = Q(r), [h, g] = Q(!1), [m, b] = Q(n), [v, A] = Q(null), [k, z] = Q("*****"), x = of(th), P = Jg(th);
12050
- se(() => {
12051
+ ae(() => {
12051
12052
  P && S(!0, P), m && !(l != null && l.is_address_verified) && d(Ct.VERIFICATION_FORM);
12052
12053
  }, [l, m, P]);
12053
12054
  const O = ({
@@ -16139,9 +16140,9 @@ function rW(n) {
16139
16140
  validateOnMount: s,
16140
16141
  onSubmit: d
16141
16142
  }, f), h = te(c.initialValues), g = te(c.initialErrors || Aa), m = te(c.initialTouched || sd), b = te(c.initialStatus), v = te(!1), A = te({});
16142
- process.env.NODE_ENV !== "production" && se(function() {
16143
+ process.env.NODE_ENV !== "production" && ae(function() {
16143
16144
  typeof o > "u" || (process.env.NODE_ENV !== "production" ? Ls(!1, "isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead.") : Ls());
16144
- }, []), se(function() {
16145
+ }, []), ae(function() {
16145
16146
  return v.current = !0, function() {
16146
16147
  v.current = !1;
16147
16148
  };
@@ -16213,7 +16214,7 @@ function rW(n) {
16213
16214
  })), ce;
16214
16215
  });
16215
16216
  });
16216
- se(function() {
16217
+ ae(function() {
16217
16218
  s && v.current === !0 && Ba(h.current, c.initialValues) && E(h.current);
16218
16219
  }, [s, E]);
16219
16220
  var R = ke(function(G) {
@@ -16239,19 +16240,19 @@ function rW(n) {
16239
16240
  } else
16240
16241
  xe();
16241
16242
  }, [c.initialErrors, c.initialStatus, c.initialTouched, c.onReset]);
16242
- se(function() {
16243
+ ae(function() {
16243
16244
  v.current === !0 && !Ba(h.current, c.initialValues) && u && (h.current = c.initialValues, R(), s && E(h.current));
16244
- }, [u, c.initialValues, R, s, E]), se(function() {
16245
+ }, [u, c.initialValues, R, s, E]), ae(function() {
16245
16246
  u && v.current === !0 && !Ba(g.current, c.initialErrors) && (g.current = c.initialErrors || Aa, O({
16246
16247
  type: "SET_ERRORS",
16247
16248
  payload: c.initialErrors || Aa
16248
16249
  }));
16249
- }, [u, c.initialErrors]), se(function() {
16250
+ }, [u, c.initialErrors]), ae(function() {
16250
16251
  u && v.current === !0 && !Ba(m.current, c.initialTouched) && (m.current = c.initialTouched || sd, O({
16251
16252
  type: "SET_TOUCHED",
16252
16253
  payload: c.initialTouched || sd
16253
16254
  }));
16254
- }, [u, c.initialTouched]), se(function() {
16255
+ }, [u, c.initialTouched]), ae(function() {
16255
16256
  u && v.current === !0 && !Ba(b.current, c.initialStatus) && (b.current = c.initialStatus, O({
16256
16257
  type: "SET_STATUS",
16257
16258
  payload: c.initialStatus
@@ -16606,7 +16607,7 @@ function uW(n, e, t) {
16606
16607
  return !!e;
16607
16608
  return e && t && !r ? i.concat(t) : r ? i.slice(0, a).concat(i.slice(a + 1)) : i;
16608
16609
  }
16609
- var dW = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? hi : se;
16610
+ var dW = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? hi : ae;
16610
16611
  function Tt(n) {
16611
16612
  var e = te(n);
16612
16613
  return dW(function() {
@@ -17196,7 +17197,7 @@ function _W(n, e, t) {
17196
17197
  s !== null && bm(e, s, r, a, !1);
17197
17198
  }
17198
17199
  function $W(n, e, t) {
17199
- if (ae(n)) {
17200
+ if (se(n)) {
17200
17201
  const i = n.anchor.getNode();
17201
17202
  if (i.is(t) && n.format !== i.getFormat()) return !1;
17202
17203
  }
@@ -17752,7 +17753,7 @@ const Z4 = Me("SELECTION_CHANGE_COMMAND"), sG = Me("SELECTION_INSERT_CLIPBOARD_N
17752
17753
  }(n)) n.preventDefault(), ve(e, Y4, void 0);
17753
17754
  else {
17754
17755
  const t = e._editorState._selection;
17755
- t === null || ae(t) ? t6(n) && (n.preventDefault(), ve(e, Yh, n)) : function(i) {
17756
+ t === null || se(t) ? t6(n) && (n.preventDefault(), ve(e, Yh, n)) : function(i) {
17756
17757
  return Ke(i, "c", rr);
17757
17758
  }(n) ? (n.preventDefault(), ve(e, Bf, n)) : function(i) {
17758
17759
  return Ke(i, "x", rr);
@@ -17770,7 +17771,7 @@ const Z4 = Me("SELECTION_CHANGE_COMMAND"), sG = Me("SELECTION_INSERT_CLIPBOARD_N
17770
17771
  }], ["compositionstart", function(n, e) {
17771
17772
  Bt(e, () => {
17772
17773
  const t = me();
17773
- if (ae(t) && !e.isComposing()) {
17774
+ if (se(t) && !e.isComposing()) {
17774
17775
  const i = t.anchor, r = t.anchor.getNode();
17775
17776
  Dn(i.key), (n.timeStamp < pl + Qh || i.type === "element" || !t.isCollapsed() || r.getFormat() !== t.format || ge(r) && r.getStyle() !== t.style) && ve(e, Gs, WW);
17776
17777
  }
@@ -17783,7 +17784,7 @@ const Z4 = Me("SELECTION_CHANGE_COMMAND"), sG = Me("SELECTION_INSERT_CLIPBOARD_N
17783
17784
  n.stopPropagation(), Bt(e, () => {
17784
17785
  if (tt(n.target) && q3(n.target)) return;
17785
17786
  const t = me(), i = n.data, r = r9(n);
17786
- if (i != null && ae(t) && t9(t, r, i, n.timeStamp, !1)) {
17787
+ if (i != null && se(t) && t9(t, r, i, n.timeStamp, !1)) {
17787
17788
  Qo && (ld(e, i), Qo = !1);
17788
17789
  const a = t.anchor.getNode(), s = Gt(Wt(e));
17789
17790
  if (s === null) return;
@@ -17803,7 +17804,7 @@ const Z4 = Me("SELECTION_CHANGE_COMMAND"), sG = Me("SELECTION_INSERT_CLIPBOARD_N
17803
17804
  Bt(e, () => {
17804
17805
  const t = me(), i = Gt(Wt(e)), r = bo();
17805
17806
  if (i) {
17806
- if (ae(t)) {
17807
+ if (se(t)) {
17807
17808
  const a = t.anchor, s = a.getNode();
17808
17809
  if (a.type === "element" && a.offset === 0 && t.isCollapsed() && !Gn(s) && Ze().getChildrenSize() === 1 && s.getTopLevelElementOrThrow().isEmpty() && r !== null && t.is(r)) i.removeAllRanges(), t.dirty = !0;
17809
17810
  else if (n.detail === 3 && !t.isCollapsed() && s !== t.focus.getNode()) {
@@ -17832,17 +17833,17 @@ xc && Xh.push(["beforeinput", (n, e) => function(t, i) {
17832
17833
  if (r === "deleteContentBackward") {
17833
17834
  if (s === null) {
17834
17835
  const h = bo();
17835
- if (!ae(h)) return;
17836
+ if (!se(h)) return;
17836
17837
  nt(h.clone());
17837
17838
  }
17838
- if (ae(s)) {
17839
+ if (se(s)) {
17839
17840
  const h = s.anchor.key === s.focus.key;
17840
17841
  if (o = t.timeStamp, $4 === "MediaLast" && o < pl + Qh && i.isComposing() && h) {
17841
17842
  if (Dn(null), pl = 0, setTimeout(() => {
17842
17843
  Bt(i, () => {
17843
17844
  Dn(null);
17844
17845
  });
17845
- }, Qh), ae(s)) {
17846
+ }, Qh), se(s)) {
17846
17847
  const g = s.anchor.getNode();
17847
17848
  g.markDirty(), ge(g) || ie(142), i9(s, g);
17848
17849
  }
@@ -17853,14 +17854,14 @@ xc && Xh.push(["beforeinput", (n, e) => function(t, i) {
17853
17854
  if (A && s.isCollapsed() && (A = !We(_h(s.anchor, !0))), !A) {
17854
17855
  ve(i, qr, !0);
17855
17856
  const k = me();
17856
- A3 && ae(k) && k.isCollapsed() && (Fa = k, setTimeout(() => Fa = null));
17857
+ A3 && se(k) && k.isCollapsed() && (Fa = k, setTimeout(() => Fa = null));
17857
17858
  }
17858
17859
  }
17859
17860
  return;
17860
17861
  }
17861
17862
  }
17862
17863
  var o;
17863
- if (!ae(s)) return;
17864
+ if (!se(s)) return;
17864
17865
  const l = t.data;
17865
17866
  Ds !== null && vm(!1, i, Ds), s.dirty && Ds === null || !s.isCollapsed() || Gn(s.anchor.getNode()) || a === null || s.applyDOMRange(a), Ds = null;
17866
17867
  const u = s.anchor, d = s.focus, f = u.getNode(), c = d.getNode();
@@ -17964,11 +17965,11 @@ function M3(n, e, t) {
17964
17965
  if (!t) return void nt(null);
17965
17966
  if (!zu(e, i, a)) return;
17966
17967
  let o = me();
17967
- if (Fa && ae(o) && o.isCollapsed()) {
17968
+ if (Fa && se(o) && o.isCollapsed()) {
17968
17969
  const l = o.anchor, u = Fa.anchor;
17969
17970
  (l.key === u.key && l.offset === u.offset + 1 || l.offset === 1 && u.getNode().is(l.getNode().getPreviousSibling())) && (o = Fa.clone(), nt(o));
17970
17971
  }
17971
- if (Fa = null, ae(o)) {
17972
+ if (Fa = null, se(o)) {
17972
17973
  const l = o.anchor, u = l.getNode();
17973
17974
  if (o.isCollapsed()) {
17974
17975
  n.type === "Range" && n.anchorNode === n.focusNode && (o.dirty = !0);
@@ -18017,7 +18018,7 @@ function ld(n, e) {
18017
18018
  if (e[e.length - 1] === `
18018
18019
  `) {
18019
18020
  const i = me();
18020
- if (ae(i)) {
18021
+ if (se(i)) {
18021
18022
  const r = i.focus;
18022
18023
  return i.anchor.set(r.key, r.offset, r.type), void ve(n, Ql, null);
18023
18024
  }
@@ -18070,16 +18071,16 @@ function Vh(n, e, t) {
18070
18071
  if (r === null) return;
18071
18072
  const a = function(o) {
18072
18073
  const l = me();
18073
- if (!ae(l) || !J(o)) return l;
18074
+ if (!se(l) || !J(o)) return l;
18074
18075
  const { anchor: u, focus: d } = l, f = u.getNode(), c = d.getNode();
18075
18076
  return $h(f, o) && u.set(o.__key, 0, "element"), $h(c, o) && d.set(o.__key, 0, "element"), l;
18076
18077
  }(n);
18077
18078
  let s = !1;
18078
- if (ae(a) && e) {
18079
+ if (se(a) && e) {
18079
18080
  const o = a.anchor, l = a.focus;
18080
18081
  o.key === i && (Nc(o, n, r, n.getPreviousSibling(), n.getNextSibling()), s = !0), l.key === i && (Nc(l, n, r, n.getPreviousSibling(), n.getNextSibling()), s = !0);
18081
18082
  } else ct(a) && e && n.isSelected() && n.selectPrevious();
18082
- if (ae(a) && e && !s) {
18083
+ if (se(a) && e && !s) {
18083
18084
  const o = n.getIndexWithinParent();
18084
18085
  ja(n), Rc(a, r, o, -1);
18085
18086
  } else ja(n);
@@ -18119,7 +18120,7 @@ class Mf {
18119
18120
  if (t == null) return !1;
18120
18121
  const i = t.getNodes().some((r) => r.__key === this.__key);
18121
18122
  if (ge(this)) return i;
18122
- if (ae(t) && t.anchor.type === "element" && t.focus.type === "element") {
18123
+ if (se(t) && t.anchor.type === "element" && t.focus.type === "element") {
18123
18124
  if (t.isCollapsed()) return !1;
18124
18125
  const r = this.getParent();
18125
18126
  if (We(this) && this.isInline() && r) {
@@ -18296,7 +18297,7 @@ class Mf {
18296
18297
  const d = r.getPreviousSibling(), f = r.getNextSibling(), c = r.__prev, h = r.__next, g = r.__parent;
18297
18298
  if (Vh(r, !1, !0), d === null ? l.__first = s : d.getWritable().__next = s, o.__prev = c, f === null ? l.__last = s : f.getWritable().__prev = s, o.__next = h, o.__parent = g, l.__size = u, t && (J(this) && J(o) || ie(139), this.getChildren().forEach((m) => {
18298
18299
  o.append(m);
18299
- })), ae(i)) {
18300
+ })), se(i)) {
18300
18301
  nt(i);
18301
18302
  const m = i.anchor, b = i.focus;
18302
18303
  m.key === a && N3(m, o), b.key === a && N3(b, o);
@@ -18309,13 +18310,13 @@ class Mf {
18309
18310
  let o = !1, l = !1;
18310
18311
  if (a !== null) {
18311
18312
  const h = e.getIndexWithinParent();
18312
- if (ja(r), ae(s)) {
18313
+ if (ja(r), se(s)) {
18313
18314
  const g = a.__key, m = s.anchor, b = s.focus;
18314
18315
  o = m.type === "element" && m.key === g && m.offset === h + 1, l = b.type === "element" && b.key === g && b.offset === h + 1;
18315
18316
  }
18316
18317
  }
18317
18318
  const u = this.getNextSibling(), d = this.getParentOrThrow().getWritable(), f = r.__key, c = i.__next;
18318
- if (u === null ? d.__last = f : u.getWritable().__prev = f, d.__size++, i.__next = f, r.__next = c, r.__prev = i.__key, r.__parent = i.__parent, t && ae(s)) {
18319
+ if (u === null ? d.__last = f : u.getWritable().__prev = f, d.__size++, i.__next = f, r.__next = c, r.__prev = i.__key, r.__parent = i.__parent, t && se(s)) {
18319
18320
  const h = this.getIndexWithinParent();
18320
18321
  Rc(s, d, h + 1);
18321
18322
  const g = d.__key;
@@ -18330,7 +18331,7 @@ class Mf {
18330
18331
  const s = this.getPreviousSibling(), o = this.getParentOrThrow().getWritable(), l = i.__prev, u = this.getIndexWithinParent();
18331
18332
  s === null ? o.__first = a : s.getWritable().__next = a, o.__size++, i.__prev = a, r.__prev = l, r.__next = i.__key, r.__parent = i.__parent;
18332
18333
  const d = me();
18333
- return t && ae(d) && Rc(d, this.getParentOrThrow(), u), e;
18334
+ return t && se(d) && Rc(d, this.getParentOrThrow(), u), e;
18334
18335
  }
18335
18336
  isParentRequired() {
18336
18337
  return !1;
@@ -18628,7 +18629,7 @@ class ps extends Mf {
18628
18629
  const l = s.length;
18629
18630
  i === void 0 && (i = l), r === void 0 && (r = l);
18630
18631
  } else i = 0, r = 0;
18631
- if (!ae(a)) return f9(o, i, o, r, "text", "text");
18632
+ if (!se(a)) return f9(o, i, o, r, "text", "text");
18632
18633
  {
18633
18634
  const l = Kr();
18634
18635
  l !== a.anchor.key && l !== a.focus.key || Dn(o), a.setTextNodeRange(this, i, this, r);
@@ -18647,7 +18648,7 @@ class ps extends Mf {
18647
18648
  let l = e;
18648
18649
  l < 0 && (l = o + l, l < 0 && (l = 0));
18649
18650
  const u = me();
18650
- if (r && ae(u)) {
18651
+ if (r && se(u)) {
18651
18652
  const f = e + o;
18652
18653
  u.setTextNodeRange(a, f, a, f);
18653
18654
  }
@@ -18678,7 +18679,7 @@ class ps extends Mf {
18678
18679
  const h = t.getFormat(), g = t.getStyle(), m = t.__detail;
18679
18680
  let b = !1, v = null, A = null;
18680
18681
  const k = me();
18681
- if (ae(k)) {
18682
+ if (se(k)) {
18682
18683
  const [M, S] = k.isBackward() ? [k.focus, k.anchor] : [k.anchor, k.focus];
18683
18684
  M.type === "text" && M.key === r && (v = M), S.type === "text" && S.key === r && (A = S);
18684
18685
  }
@@ -18707,7 +18708,7 @@ class ps extends Mf {
18707
18708
  C !== null && Ic(C), B !== null && Ic(B);
18708
18709
  })(this);
18709
18710
  const M = f.getWritable(), S = this.getIndexWithinParent();
18710
- b ? (M.splice(S, 0, z), this.remove()) : M.splice(S, 1, z), ae(k) && Rc(k, f, S, u - 1);
18711
+ b ? (M.splice(S, 0, z), this.remove()) : M.splice(S, 1, z), se(k) && Rc(k, f, S, u - 1);
18711
18712
  }
18712
18713
  return z;
18713
18714
  }
@@ -18717,7 +18718,7 @@ class ps extends Mf {
18717
18718
  const i = this.__key, r = e.__key, a = this.__text, s = a.length;
18718
18719
  Kr() === r && Dn(i);
18719
18720
  const o = me();
18720
- if (ae(o)) {
18721
+ if (se(o)) {
18721
18722
  const f = o.anchor, c = o.focus;
18722
18723
  f !== null && f.key === r && W3(f, t, i, e, s), c !== null && c.key === r && W3(c, t, i, e, s);
18723
18724
  }
@@ -18993,7 +18994,7 @@ class Sf {
18993
18994
  for (const t of e) t.remove();
18994
18995
  }
18995
18996
  }
18996
- function ae(n) {
18997
+ function se(n) {
18997
18998
  return n instanceof vs;
18998
18999
  }
18999
19000
  class vs {
@@ -19007,7 +19008,7 @@ class vs {
19007
19008
  this._cachedNodes = e;
19008
19009
  }
19009
19010
  is(e) {
19010
- return !!ae(e) && this.anchor.is(e.anchor) && this.focus.is(e.focus) && this.format === e.format && this.style === e.style;
19011
+ return !!se(e) && this.anchor.is(e.anchor) && this.focus.is(e.focus) && this.format === e.format && this.style === e.style;
19011
19012
  }
19012
19013
  isCollapsed() {
19013
19014
  return this.anchor.is(this.focus);
@@ -19231,7 +19232,7 @@ class vs {
19231
19232
  if (this.isCollapsed() || this.removeText(), this.anchor.key === "root") {
19232
19233
  this.insertParagraph();
19233
19234
  const g = me();
19234
- return ae(g) || ie(134), g.insertNodes(e);
19235
+ return se(g) || ie(134), g.insertNodes(e);
19235
19236
  }
19236
19237
  const t = (this.isBackward() ? this.focus : this.anchor).getNode(), i = K1(t, Gr), r = e[e.length - 1];
19237
19238
  if (J(i) && "__language" in i) {
@@ -19555,7 +19556,7 @@ function d9(n, e, t) {
19555
19556
  const i = n.isBefore(e), r = n.is(e);
19556
19557
  H3(n, i, r), H3(e, !i, r), r && e.set(n.key, n.offset, n.type);
19557
19558
  const a = cn();
19558
- if (a.isComposing() && a._compositionKey !== n.key && ae(t)) {
19559
+ if (a.isComposing() && a._compositionKey !== n.key && se(t)) {
19559
19560
  const s = t.anchor, o = t.focus;
19560
19561
  n.set(s.key, s.offset, s.type, !0), e.set(o.key, o.offset, o.type, !0);
19561
19562
  }
@@ -19563,9 +19564,9 @@ function d9(n, e, t) {
19563
19564
  }
19564
19565
  function c9(n, e, t, i, r, a) {
19565
19566
  if (n === null || t === null || !zu(r, n, t)) return null;
19566
- const s = j3(n, e, ae(a) ? a.anchor : null, r);
19567
+ const s = j3(n, e, se(a) ? a.anchor : null, r);
19567
19568
  if (s === null) return null;
19568
- const o = j3(t, i, ae(a) ? a.focus : null, r);
19569
+ const o = j3(t, i, se(a) ? a.focus : null, r);
19569
19570
  if (o === null) return null;
19570
19571
  if (s.type === "element" && o.type === "element") {
19571
19572
  const l = js(n), u = js(t);
@@ -19592,13 +19593,13 @@ function um(n, e, t, i) {
19592
19593
  if (r === null) return null;
19593
19594
  const a = i || r.event, s = a ? a.type : void 0, o = s === "selectionchange", l = !Dh && (o || s === "beforeinput" || s === "compositionstart" || s === "compositionend" || s === "click" && a && a.detail === 3 || s === "drop" || s === void 0);
19594
19595
  let u, d, f, c;
19595
- if (ae(n) && !l) return n.clone();
19596
+ if (se(n) && !l) return n.clone();
19596
19597
  if (e === null) return null;
19597
- if (u = e.anchorNode, d = e.focusNode, f = e.anchorOffset, c = e.focusOffset, o && ae(n) && !zu(t, u, d)) return n.clone();
19598
+ if (u = e.anchorNode, d = e.focusNode, f = e.anchorOffset, c = e.focusOffset, o && se(n) && !zu(t, u, d)) return n.clone();
19598
19599
  const h = c9(u, f, d, c, t, n);
19599
19600
  if (h === null) return null;
19600
19601
  const [g, m] = h;
19601
- return new vs(g, m, ae(n) ? n.format : 0, ae(n) ? n.style : "");
19602
+ return new vs(g, m, se(n) ? n.format : 0, se(n) ? n.style : "");
19602
19603
  }
19603
19604
  function me() {
19604
19605
  return ua()._selection;
@@ -19671,18 +19672,18 @@ function m9(n, e, t, i, r) {
19671
19672
  function zG(n, e, t, i, r, a, s) {
19672
19673
  const o = i.anchorNode, l = i.focusNode, u = i.anchorOffset, d = i.focusOffset, f = document.activeElement;
19673
19674
  if (r.has(EG) && f !== a || f !== null && gm(f)) return;
19674
- if (!ae(e)) return void (n !== null && zu(t, o, l) && i.removeAllRanges());
19675
+ if (!se(e)) return void (n !== null && zu(t, o, l) && i.removeAllRanges());
19675
19676
  const c = e.anchor, h = e.focus, g = c.key, m = h.key, b = oo(t, g), v = oo(t, m), A = c.offset, k = h.offset, z = e.format, x = e.style, P = e.isCollapsed();
19676
19677
  let O = b, M = v, S = !1;
19677
19678
  if (c.type === "text") {
19678
19679
  O = ao(b);
19679
19680
  const N = c.getNode();
19680
19681
  S = N.getFormat() !== z || N.getStyle() !== x;
19681
- } else ae(n) && n.anchor.type === "text" && (S = !0);
19682
+ } else se(n) && n.anchor.type === "text" && (S = !0);
19682
19683
  var F, C, B, E, R;
19683
- if (h.type === "text" && (M = ao(v)), O !== null && M !== null && (P && (n === null || S || ae(n) && (n.format !== z || n.style !== x)) && (F = z, C = x, B = A, E = g, R = performance.now(), n9 = [F, C, B, E, R]), u !== A || d !== k || o !== O || l !== M || i.type === "Range" && P || (f !== null && a.contains(f) || a.focus({ preventScroll: !0 }), c.type === "element"))) {
19684
+ if (h.type === "text" && (M = ao(v)), O !== null && M !== null && (P && (n === null || S || se(n) && (n.format !== z || n.style !== x)) && (F = z, C = x, B = A, E = g, R = performance.now(), n9 = [F, C, B, E, R]), u !== A || d !== k || o !== O || l !== M || i.type === "Range" && P || (f !== null && a.contains(f) || a.focus({ preventScroll: !0 }), c.type === "element"))) {
19684
19685
  if (m9(i, O, A, M, k), !r.has(FG) && e.isCollapsed() && a !== null && a === document.activeElement) {
19685
- const N = ae(e) && e.anchor.type === "element" ? O.childNodes[A] || null : i.rangeCount > 0 ? i.getRangeAt(0) : null;
19686
+ const N = se(e) && e.anchor.type === "element" ? O.childNodes[A] || null : i.rangeCount > 0 ? i.getRangeAt(0) : null;
19686
19687
  if (N !== null) {
19687
19688
  let L;
19688
19689
  if (N instanceof Text) {
@@ -19725,7 +19726,7 @@ function W1(n) {
19725
19726
  let e = n;
19726
19727
  n.isCollapsed() || e.removeText();
19727
19728
  const t = me();
19728
- ae(t) && (e = t), ae(e) || ie(161);
19729
+ se(t) && (e = t), se(e) || ie(161);
19729
19730
  const i = e.anchor;
19730
19731
  let r = i.getNode(), a = i.offset;
19731
19732
  for (; !Gr(r); ) {
@@ -19897,7 +19898,7 @@ function dr(n, e) {
19897
19898
  }
19898
19899
  (function(P, O, M) {
19899
19900
  let S = P._blockCursorElement;
19900
- if (ae(M) && M.isCollapsed() && M.anchor.type === "element" && O.contains(document.activeElement)) {
19901
+ if (se(M) && M.isCollapsed() && M.anchor.type === "element" && O.contains(document.activeElement)) {
19901
19902
  const F = M.anchor, C = F.getNode(), B = F.offset;
19902
19903
  let E = !1, R = null;
19903
19904
  if (B === C.getChildrenSize())
@@ -19938,7 +19939,7 @@ function dr(n, e) {
19938
19939
  const [R, N] = C[E], L = O.get(N);
19939
19940
  L !== void 0 && R(L, { dirtyLeaves: S, prevEditorState: F, updateTags: M });
19940
19941
  }
19941
- }(n, g, A, m, a), ae(o) || o === null || s !== null && s.is(o) || n.dispatchCommand(Z4, void 0);
19942
+ }(n, g, A, m, a), se(o) || o === null || s !== null && s.is(o) || n.dispatchCommand(Z4, void 0);
19942
19943
  const x = n._pendingDecorators;
19943
19944
  x !== null && (n._decorators = x, n._pendingDecorators = null, bl("decorator", n, !0, x)), function(P, O, M) {
19944
19945
  const S = _3(O), F = _3(M);
@@ -20007,12 +20008,12 @@ function cm(n, e, t) {
20007
20008
  try {
20008
20009
  u && (g ? o._selection !== null && (l._selection = o._selection.clone()) : l._selection = function(A, k) {
20009
20010
  const z = A.getEditorState()._selection, x = Gt(Wt(A));
20010
- return ae(z) || z == null ? um(z, x, A, k) : z.clone();
20011
+ return se(z) || z == null ? um(z, x, A, k) : z.clone();
20011
20012
  }(n, t && t.event || null));
20012
20013
  const b = n._compositionKey;
20013
20014
  e(), a = U3(n, a), function(A, k) {
20014
20015
  const z = k.getEditorState()._selection, x = A._selection;
20015
- if (ae(x)) {
20016
+ if (se(x)) {
20016
20017
  const P = x.anchor, O = x.focus;
20017
20018
  let M;
20018
20019
  if (P.type === "text" && (M = P.getNode(), M.selectionTransform(z, x)), O.type === "text") {
@@ -20064,7 +20065,7 @@ function cm(n, e, t) {
20064
20065
  }
20065
20066
  }(o, l, n._dirtyLeaves, n._dirtyElements)), b !== n._compositionKey && (l._flushSync = !0);
20066
20067
  const v = l._selection;
20067
- if (ae(v)) {
20068
+ if (se(v)) {
20068
20069
  const A = l._nodeMap, k = v.anchor.key, z = v.focus.key;
20069
20070
  A.get(k) !== void 0 && A.get(z) !== void 0 || ie(19);
20070
20071
  } else ct(v) && v._nodes.size === 0 && (l._selection = null);
@@ -20351,7 +20352,7 @@ class wo extends Mf {
20351
20352
  }
20352
20353
  r === void 0 && (r = s), a === void 0 && (a = s);
20353
20354
  const o = this.__key;
20354
- return ae(i) ? (i.anchor.set(o, r, "element"), i.focus.set(o, a, "element"), i.dirty = !0, i) : f9(o, r, o, a, "element", "element");
20355
+ return se(i) ? (i.anchor.set(o, r, "element"), i.focus.set(o, a, "element"), i.dirty = !0, i) : f9(o, r, o, a, "element", "element");
20355
20356
  }
20356
20357
  selectStart() {
20357
20358
  const e = this.getFirstDescendant();
@@ -20432,7 +20433,7 @@ class wo extends Mf {
20432
20433
  }
20433
20434
  if (s.__size = c, u.length) {
20434
20435
  const g = me();
20435
- if (ae(g)) {
20436
+ if (se(g)) {
20436
20437
  const m = new Set(u), b = new Set(l), { anchor: v, focus: A } = g;
20437
20438
  J3(v, m, b) && Nc(v, v.getNode(), this, f, d), J3(A, m, b) && Nc(A, A.getNode(), this, f, d), c !== 0 || this.canBeEmpty() || Mr(this) || this.remove();
20438
20439
  }
@@ -21168,9 +21169,9 @@ function bm(n, e, t, i, r) {
21168
21169
  return;
21169
21170
  }
21170
21171
  const u = a.getParent(), d = bo(), f = a.getTextContentSize(), c = Kr(), h = a.getKey();
21171
- if (a.isToken() || c !== null && h === c && !s || ae(d) && (u !== null && !u.canInsertTextBefore() && d.anchor.offset === 0 || d.anchor.key === n.__key && d.anchor.offset === 0 && !a.canInsertTextBefore() && !s || d.focus.key === n.__key && d.focus.offset === f && !a.canInsertTextAfter() && !s)) return void a.markDirty();
21172
+ if (a.isToken() || c !== null && h === c && !s || se(d) && (u !== null && !u.canInsertTextBefore() && d.anchor.offset === 0 || d.anchor.key === n.__key && d.anchor.offset === 0 && !a.canInsertTextBefore() && !s || d.focus.key === n.__key && d.focus.offset === f && !a.canInsertTextAfter() && !s)) return void a.markDirty();
21172
21173
  const g = me();
21173
- if (!ae(g) || t === null || i === null) return void a.setTextContent(o);
21174
+ if (!se(g) || t === null || i === null) return void a.setTextContent(o);
21174
21175
  if (g.setTextNodeRange(a, t, a, i), a.isSegmented()) {
21175
21176
  const m = ln(a.getTextContent());
21176
21177
  a.replace(m), a = m;
@@ -21198,7 +21199,7 @@ function t6(n) {
21198
21199
  }
21199
21200
  function YG(n) {
21200
21201
  const e = Ze();
21201
- if (ae(n)) {
21202
+ if (se(n)) {
21202
21203
  const t = n.anchor, i = n.focus, r = t.getNode().getTopLevelElementOrThrow().getParentOrThrow();
21203
21204
  return t.set(r.getKey(), 0, "element"), i.set(r.getKey(), r.getChildrenSize(), "element"), Bc(n), n;
21204
21205
  }
@@ -21784,7 +21785,7 @@ function Ul(n, e) {
21784
21785
  Ha(e) ? n.set(t.getKey(), e.offset, "text") : lo(e) ? ge(t) ? n.set(t.getKey(), If(t, i), "text") : n.set(t.getParentOrThrow().getKey(), t.getIndexWithinParent() + (r ? 1 : 0), "element") : (li(e) && J(t) || ie(268), n.set(t.getKey(), r ? 0 : t.getChildrenSize(), "element"));
21785
21786
  }
21786
21787
  function oY(n) {
21787
- const e = me(), t = ae(e) ? e : h9();
21788
+ const e = me(), t = se(e) ? e : h9();
21788
21789
  return Vd(t, n), nt(t), t;
21789
21790
  }
21790
21791
  function Vd(n, e) {
@@ -22130,7 +22131,7 @@ let Om = class Z9 extends wo {
22130
22131
  return !0;
22131
22132
  }
22132
22133
  extractWithChild(e, t, i) {
22133
- if (!ae(t)) return !1;
22134
+ if (!se(t)) return !1;
22134
22135
  const r = t.anchor.getNode(), a = t.focus.getNode();
22135
22136
  return this.isParentOf(r) && this.isParentOf(a) && t.getTextContent().length > 0;
22136
22137
  }
@@ -22267,7 +22268,7 @@ function Yt() {
22267
22268
  throw i.search = r.toString(), Error(`Minified Lexical error #${e}; visit ${i.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`);
22268
22269
  }(8), n;
22269
22270
  }
22270
- const X9 = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, SY = X9 ? hi : se, hd = { tag: Al };
22271
+ const X9 = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, SY = X9 ? hi : ae, hd = { tag: Al };
22271
22272
  function EY({ initialConfig: n, children: e }) {
22272
22273
  const t = dn(() => {
22273
22274
  const { theme: i, namespace: r, nodes: a, onError: s, editorState: o, html: l } = n, u = MY(null, i), d = IG({ editable: n.editable, html: l, namespace: r, nodes: a, onError: (f) => s(f, d), theme: i });
@@ -22333,7 +22334,7 @@ function TY(n) {
22333
22334
  function U9(n) {
22334
22335
  return () => TY(n);
22335
22336
  }
22336
- const V9 = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? hi : se;
22337
+ const V9 = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? hi : ae;
22337
22338
  function RY({ editor: n, ariaActiveDescendant: e, ariaAutoComplete: t, ariaControls: i, ariaDescribedBy: r, ariaErrorMessage: a, ariaExpanded: s, ariaInvalid: o, ariaLabel: l, ariaLabelledBy: u, ariaMultiline: d, ariaOwns: f, ariaRequired: c, autoCapitalize: h, className: g, id: m, role: b = "textbox", spellCheck: v = !0, style: A, tabIndex: k, "data-testid": z, ...x }, P) {
22338
22339
  const [O, M] = Q(n.isEditable()), S = ke((C) => {
22339
22340
  C && C.ownerDocument && C.ownerDocument.defaultView ? n.setRootElement(C) : n.setRootElement(null);
@@ -22421,7 +22422,7 @@ var p6 = { error: null }, jY = function(n) {
22421
22422
  function HY({ children: n, onError: e }) {
22422
22423
  return p(jY, { fallback: p("div", { style: { border: "1px solid #f00", color: "#f00", padding: "8px" }, children: "An error was thrown." }), onError: e, children: n });
22423
22424
  }
22424
- const ZY = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? hi : se;
22425
+ const ZY = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? hi : ae;
22425
22426
  function WY(n) {
22426
22427
  return { initialValueFn: () => n.isEditable(), subscribe: (e) => n.registerEditableListener(e) };
22427
22428
  }
@@ -22457,7 +22458,7 @@ function YY(n) {
22457
22458
  const [u, d, f, c, h, g] = l;
22458
22459
  n.update(() => {
22459
22460
  const m = me();
22460
- if (ae(m)) {
22461
+ if (se(m)) {
22461
22462
  const b = m.anchor;
22462
22463
  let v = b.getNode(), A = 0, k = 0;
22463
22464
  if (ge(v) && u >= 0 && d >= 0 && (A = u, k = u + d, m.setTextNodeRange(v, A, v, k)), A === k && f === "" || (m.insertRawText(f), v = b.getNode()), ge(v)) {
@@ -22585,10 +22586,10 @@ function Hc(n, ...e) {
22585
22586
  throw t.search = i.toString(), Error(`Minified Lexical error #${n}; visit ${t.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`);
22586
22587
  }
22587
22588
  function UY(n, e = me()) {
22588
- return e == null && Hc(166), ae(e) && e.isCollapsed() || e.getNodes().length === 0 ? "" : XY(n, e);
22589
+ return e == null && Hc(166), se(e) && e.isCollapsed() || e.getNodes().length === 0 ? "" : XY(n, e);
22589
22590
  }
22590
22591
  function VY(n, e = me()) {
22591
- return e == null && Hc(166), ae(e) && e.isCollapsed() || e.getNodes().length === 0 ? null : JSON.stringify(JY(n, e));
22592
+ return e == null && Hc(166), se(e) && e.isCollapsed() || e.getNodes().length === 0 ? null : JSON.stringify(JY(n, e));
22592
22593
  }
22593
22594
  function v6(n, e, t) {
22594
22595
  const i = n.getData("application/x-lexical-editor");
@@ -22607,12 +22608,12 @@ function v6(n, e, t) {
22607
22608
  } catch {
22608
22609
  }
22609
22610
  const s = a || n.getData("text/uri-list");
22610
- if (s != null) if (ae(e)) {
22611
+ if (s != null) if (se(e)) {
22611
22612
  const o = s.split(/(\r?\n|\t)/);
22612
22613
  o[o.length - 1] === "" && o.pop();
22613
22614
  for (let l = 0; l < o.length; l++) {
22614
22615
  const u = me();
22615
- if (ae(u)) {
22616
+ if (se(u)) {
22616
22617
  const d = o[l];
22617
22618
  d === `
22618
22619
  ` || d === `\r
@@ -22741,7 +22742,7 @@ function gd(n) {
22741
22742
  }
22742
22743
  function C6(n) {
22743
22744
  const e = me();
22744
- if (!ae(e)) return !1;
22745
+ if (!se(e)) return !1;
22745
22746
  const t = /* @__PURE__ */ new Set(), i = e.getNodes();
22746
22747
  for (let r = 0; r < i.length; r++) {
22747
22748
  const a = i[r], s = a.getKey();
@@ -22766,13 +22767,13 @@ function sQ(n) {
22766
22767
  return !!ct(t) && (t.clear(), !0);
22767
22768
  }, Qe), n.registerCommand(qr, (e) => {
22768
22769
  const t = me();
22769
- return ae(t) ? (t.deleteCharacter(e), !0) : !!ct(t) && (t.deleteNodes(), !0);
22770
+ return se(t) ? (t.deleteCharacter(e), !0) : !!ct(t) && (t.deleteNodes(), !0);
22770
22771
  }, Qe), n.registerCommand(Gl, (e) => {
22771
22772
  const t = me();
22772
- return !!ae(t) && (t.deleteWord(e), !0);
22773
+ return !!se(t) && (t.deleteWord(e), !0);
22773
22774
  }, Qe), n.registerCommand(Yl, (e) => {
22774
22775
  const t = me();
22775
- return !!ae(t) && (t.deleteLine(e), !0);
22776
+ return !!se(t) && (t.deleteLine(e), !0);
22776
22777
  }, Qe), n.registerCommand(Gs, (e) => {
22777
22778
  const t = me();
22778
22779
  if (typeof e == "string") t !== null && t.insertText(e);
@@ -22780,7 +22781,7 @@ function sQ(n) {
22780
22781
  if (t === null) return !1;
22781
22782
  const i = e.dataTransfer;
22782
22783
  if (i != null) v6(i, t, n);
22783
- else if (ae(t)) {
22784
+ else if (se(t)) {
22784
22785
  const r = e.data;
22785
22786
  return r && t.insertText(r), !0;
22786
22787
  }
@@ -22788,13 +22789,13 @@ function sQ(n) {
22788
22789
  return !0;
22789
22790
  }, Qe), n.registerCommand(Gh, () => {
22790
22791
  const e = me();
22791
- return !!ae(e) && (e.removeText(), !0);
22792
+ return !!se(e) && (e.removeText(), !0);
22792
22793
  }, Qe), n.registerCommand(Xr, (e) => {
22793
22794
  const t = me();
22794
- return !!ae(t) && (t.formatText(e), !0);
22795
+ return !!se(t) && (t.formatText(e), !0);
22795
22796
  }, Qe), n.registerCommand(cG, (e) => {
22796
22797
  const t = me();
22797
- if (!ae(t) && !ct(t)) return !1;
22798
+ if (!se(t) && !ct(t)) return !1;
22798
22799
  const i = t.getNodes();
22799
22800
  for (const r of i) {
22800
22801
  const a = jf(r, (s) => J(s) && !s.isInline());
@@ -22803,10 +22804,10 @@ function sQ(n) {
22803
22804
  return !0;
22804
22805
  }, Qe), n.registerCommand(Ws, (e) => {
22805
22806
  const t = me();
22806
- return !!ae(t) && (t.insertLineBreak(e), !0);
22807
+ return !!se(t) && (t.insertLineBreak(e), !0);
22807
22808
  }, Qe), n.registerCommand(Fc, () => {
22808
22809
  const e = me();
22809
- return !!ae(e) && (e.insertParagraph(), !0);
22810
+ return !!se(e) && (e.insertParagraph(), !0);
22810
22811
  }, Qe), n.registerCommand(uG, () => (PG([ku()]), !0), Qe), n.registerCommand(dG, () => C6((e) => {
22811
22812
  const t = e.getIndent();
22812
22813
  e.setIndent(t + 1);
@@ -22818,7 +22819,7 @@ function sQ(n) {
22818
22819
  if (ct(t)) {
22819
22820
  const i = t.getNodes();
22820
22821
  if (i.length > 0) return i[0].selectPrevious(), !0;
22821
- } else if (ae(t)) {
22822
+ } else if (se(t)) {
22822
22823
  const i = _h(t.focus, !0);
22823
22824
  if (!e.shiftKey && We(i) && !i.isIsolated() && !i.isInline()) return i.selectPrevious(), e.preventDefault(), !0;
22824
22825
  }
@@ -22828,7 +22829,7 @@ function sQ(n) {
22828
22829
  if (ct(t)) {
22829
22830
  const i = t.getNodes();
22830
22831
  if (i.length > 0) return i[0].selectNext(0, 0), !0;
22831
- } else if (ae(t)) {
22832
+ } else if (se(t)) {
22832
22833
  if (function(r) {
22833
22834
  const a = r.focus;
22834
22835
  return a.key === "root" && a.offset === Ze().getChildrenSize();
@@ -22843,7 +22844,7 @@ function sQ(n) {
22843
22844
  const i = t.getNodes();
22844
22845
  if (i.length > 0) return e.preventDefault(), i[0].selectPrevious(), !0;
22845
22846
  }
22846
- if (!ae(t)) return !1;
22847
+ if (!se(t)) return !1;
22847
22848
  if (d6(t, !0)) {
22848
22849
  const i = e.shiftKey;
22849
22850
  return e.preventDefault(), c6(t, i, !0), !0;
@@ -22855,13 +22856,13 @@ function sQ(n) {
22855
22856
  const r = t.getNodes();
22856
22857
  if (r.length > 0) return e.preventDefault(), r[0].selectNext(0, 0), !0;
22857
22858
  }
22858
- if (!ae(t)) return !1;
22859
+ if (!se(t)) return !1;
22859
22860
  const i = e.shiftKey;
22860
22861
  return !!d6(t, !1) && (e.preventDefault(), c6(t, i, !1), !0);
22861
22862
  }, Qe), n.registerCommand(V4, (e) => {
22862
22863
  if (z6(e.target)) return !1;
22863
22864
  const t = me();
22864
- if (ae(t)) {
22865
+ if (se(t)) {
22865
22866
  if (function(i) {
22866
22867
  if (!i.isCollapsed()) return !1;
22867
22868
  const { anchor: r } = i;
@@ -22877,10 +22878,10 @@ function sQ(n) {
22877
22878
  }, Qe), n.registerCommand(J4, (e) => {
22878
22879
  if (z6(e.target)) return !1;
22879
22880
  const t = me();
22880
- return !(!ae(t) && !ct(t)) && (e.preventDefault(), n.dispatchCommand(qr, !1));
22881
+ return !(!se(t) && !ct(t)) && (e.preventDefault(), n.dispatchCommand(qr, !1));
22881
22882
  }, Qe), n.registerCommand(Ql, (e) => {
22882
22883
  const t = me();
22883
- if (!ae(t)) return !1;
22884
+ if (!se(t)) return !1;
22884
22885
  if (V1(t), e !== null) {
22885
22886
  if ((y6 || iQ || aQ) && tQ) return !1;
22886
22887
  if (e.preventDefault(), e.shiftKey) return n.dispatchCommand(Ws, !1);
@@ -22888,7 +22889,7 @@ function sQ(n) {
22888
22889
  return n.dispatchCommand(Fc, void 0);
22889
22890
  }, Qe), n.registerCommand(rm, () => {
22890
22891
  const e = me();
22891
- return !!ae(e) && (n.blur(), !0);
22892
+ return !!se(e) && (n.blur(), !0);
22892
22893
  }, Qe), n.registerCommand(sm, (e) => {
22893
22894
  const [, t] = gd(e);
22894
22895
  if (t.length > 0) {
@@ -22910,13 +22911,13 @@ function sQ(n) {
22910
22911
  return e.preventDefault(), !0;
22911
22912
  }
22912
22913
  const i = me();
22913
- return !!ae(i);
22914
+ return !!se(i);
22914
22915
  }, Qe), n.registerCommand(q4, (e) => {
22915
22916
  const [t] = gd(e), i = me();
22916
- return !(t && !ae(i));
22917
+ return !(t && !se(i));
22917
22918
  }, Qe), n.registerCommand(_4, (e) => {
22918
22919
  const [t] = gd(e), i = me();
22919
- if (t && !ae(i)) return !1;
22920
+ if (t && !se(i)) return !1;
22920
22921
  const r = k6(e.clientX, e.clientY);
22921
22922
  if (r !== null) {
22922
22923
  const a = so(r.node);
@@ -22926,7 +22927,7 @@ function sQ(n) {
22926
22927
  }, Qe), n.registerCommand(Yh, () => (YG(), !0), Qe), n.registerCommand(Bf, (e) => (w6(n, Na(e, ClipboardEvent) ? e : null), !0), Qe), n.registerCommand(om, (e) => (async function(t, i) {
22927
22928
  await w6(i, Na(t, ClipboardEvent) ? t : null), i.update(() => {
22928
22929
  const r = me();
22929
- ae(r) ? r.removeText() : ct(r) && r.getNodes().forEach((a) => a.remove());
22930
+ se(r) ? r.removeText() : ct(r) && r.getNodes().forEach((a) => a.remove());
22930
22931
  });
22931
22932
  }(e, n), !0), Qe), n.registerCommand(Of, (e) => {
22932
22933
  const [, t, i] = gd(e);
@@ -22938,13 +22939,13 @@ function sQ(n) {
22938
22939
  }(e, n), !0);
22939
22940
  }, Qe), n.registerCommand(U4, (e) => {
22940
22941
  const t = me();
22941
- return ae(t) && V1(t), !1;
22942
+ return se(t) && V1(t), !1;
22942
22943
  }, Qe), n.registerCommand(am, (e) => {
22943
22944
  const t = me();
22944
- return ae(t) && V1(t), !1;
22945
+ return se(t) && V1(t), !1;
22945
22946
  }, Qe));
22946
22947
  }
22947
- const ag = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? hi : se;
22948
+ const ag = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? hi : ae;
22948
22949
  function P6(n) {
22949
22950
  return n.getEditorState().read(U9(n.isComposing()));
22950
22951
  }
@@ -22955,7 +22956,7 @@ function oQ({ contentEditable: n, placeholder: e = null, ErrorBoundary: t }) {
22955
22956
  jC(() => {
22956
22957
  l(u);
22957
22958
  });
22958
- }), [a]), se(() => {
22959
+ }), [a]), ae(() => {
22959
22960
  l(a.getDecorators());
22960
22961
  }, [a]), dn(() => {
22961
22962
  const u = [], d = Object.keys(o);
@@ -25964,7 +25965,7 @@ button {
25964
25965
  `;
25965
25966
  function iX(n) {
25966
25967
  const e = te(null), t = te(null);
25967
- return t.current && t.current.update(n), se(() => (t.current = new Mm({
25968
+ return t.current && t.current.update(n), ae(() => (t.current = new Mm({
25968
25969
  ...n,
25969
25970
  ref: e
25970
25971
  }), () => {
@@ -25990,7 +25991,7 @@ function e0(n, e, t) {
25990
25991
  }
25991
25992
  var n0 = { click: "onClick", focusin: "onFocus", focusout: "onFocus", mousedown: "onMouseDown", mouseup: "onMouseUp", touchstart: "onTouchStart", touchend: "onTouchEnd" }, zk = function(n) {
25992
25993
  var e = n.children, t = n.onClickAway, i = n.focusEvent, r = i === void 0 ? "focusin" : i, a = n.mouseEvent, s = a === void 0 ? "click" : a, o = n.touchEvent, l = o === void 0 ? "touchend" : o, u = te(null), d = te(null), f = te(!1);
25993
- se(function() {
25994
+ ae(function() {
25994
25995
  return setTimeout(function() {
25995
25996
  f.current = !0;
25996
25997
  }, 0), function() {
@@ -26004,7 +26005,7 @@ var n0 = { click: "onClick", focusin: "onFocus", focusout: "onFocus", mousedown:
26004
26005
  A && A(v);
26005
26006
  };
26006
26007
  };
26007
- se(function() {
26008
+ ae(function() {
26008
26009
  var b, v, A = (b = (v = u.current) === null || v === void 0 ? void 0 : v.ownerDocument) !== null && b !== void 0 ? b : document, k = function(z) {
26009
26010
  f.current && (u.current && u.current.contains(z.target) || d.current === z.target || !A.contains(z.target) || t(z));
26010
26011
  };
@@ -66865,7 +66866,7 @@ function jK() {
66865
66866
  }
66866
66867
  var xl = function(n, e) {
66867
66868
  var t = jK();
66868
- se(function() {
66869
+ ae(function() {
66869
66870
  if (!t)
66870
66871
  return n();
66871
66872
  }, e);
@@ -66931,7 +66932,7 @@ function WK(n) {
66931
66932
  }
66932
66933
  function GK(n) {
66933
66934
  var e = n.src, t = n.onLoadingStart, i = n.onLoadingEnd, r = n.onError, a = n.onLoad, s = n.crossOrigin, o = n.checkOrientation, l = n.canvas, u = n.unloadTime, d = gn(Q(null), 2), f = d[0], c = d[1], h = gn(Q(!1), 2), g = h[0], m = h[1], b = gn(Yk(!1), 2), v = b[0], A = b[1], k = te(null);
66934
- return se(function() {
66935
+ return ae(function() {
66935
66936
  if (k.current !== e)
66936
66937
  if (k.current = e || null, A(!1), e) {
66937
66938
  m(!0), t == null || t();
@@ -66953,7 +66954,7 @@ function GK(n) {
66953
66954
  u ? _6(u).then(function() {
66954
66955
  k.current === e && c(null);
66955
66956
  }) : c(null);
66956
- }, [e, f]), se(function() {
66957
+ }, [e, f]), ae(function() {
66957
66958
  f && A(!0, function() {
66958
66959
  a == null || a(f);
66959
66960
  });
@@ -66974,9 +66975,9 @@ var Xk = function(n) {
66974
66975
  var e = te(n), t = function() {
66975
66976
  e.current && e.current();
66976
66977
  };
66977
- se(function() {
66978
+ ae(function() {
66978
66979
  e.current = n;
66979
- }, [n]), se(function() {
66980
+ }, [n]), ae(function() {
66980
66981
  return window.addEventListener("resize", t), window.addEventListener("orientationchange", t), function() {
66981
66982
  window.removeEventListener("resize", t), window.removeEventListener("orientationchange", t);
66982
66983
  };
@@ -67871,7 +67872,7 @@ const uU = "_sheetBody_1to99_137", dU = "_cropperContainer_1to99_154", cU = "_cr
67871
67872
  footer: mU
67872
67873
  }, pU = (n) => {
67873
67874
  const [e, t] = Q(), i = te("image/jpeg");
67874
- return se(() => {
67875
+ return ae(() => {
67875
67876
  if (n) {
67876
67877
  i.current = n.type;
67877
67878
  const r = new FileReader();
@@ -68142,7 +68143,7 @@ const uU = "_sheetBody_1to99_137", dU = "_cropperContainer_1to99_154", cU = "_cr
68142
68143
  }
68143
68144
  }, MV = (n) => (n == null ? void 0 : n.includes(u7)) ?? !1 ? u7 : mV, SV = ({ embed: n, onDelete: e }) => {
68144
68145
  const [t, i] = lf(uV);
68145
- return se(() => {
68146
+ return ae(() => {
68146
68147
  const r = parseInt(n.gid.split("/").pop() || "0", 10);
68147
68148
  r && (t == null ? void 0 : t.id) !== r && dV(r).then((a) => i(a)).catch((a) => {
68148
68149
  console.error("Error fetching business profile:", a);
@@ -68221,7 +68222,7 @@ const uU = "_sheetBody_1to99_137", dU = "_cropperContainer_1to99_154", cU = "_cr
68221
68222
  desktopPoiSuggestions: LV
68222
68223
  }, jV = ({ onSelect: n, pois: e }) => {
68223
68224
  const [t, i] = Q(null), r = !En(800);
68224
- se(() => {
68225
+ ae(() => {
68225
68226
  cV().then((o) => i(o)).catch((o) => console.log("Error fetching profile:", o));
68226
68227
  }, []);
68227
68228
  const a = (o) => t ? zV(t, o) : !1, s = (o) => {
@@ -68265,9 +68266,9 @@ const uU = "_sheetBody_1to99_137", dU = "_cropperContainer_1to99_154", cU = "_cr
68265
68266
  console.error("Error fetching POIs:", g);
68266
68267
  }
68267
68268
  }, []);
68268
- se(() => {
68269
+ ae(() => {
68269
68270
  i.length >= 3 ? d(i) : s(o);
68270
- }, [i, o, d]), se(() => {
68271
+ }, [i, o, d]), ae(() => {
68271
68272
  t && d("", !0);
68272
68273
  }, [t, d]);
68273
68274
  const f = (c) => {
@@ -71727,7 +71728,7 @@ function Nq(n, e, t) {
71727
71728
  }));
71728
71729
  }
71729
71730
  function Cl(n, e) {
71730
- return typeof window > "u" ? se(n, e) : hi(n, e);
71731
+ return typeof window > "u" ? ae(n, e) : hi(n, e);
71731
71732
  }
71732
71733
  const v7 = /* @__PURE__ */ ra(null), Dq = /* @__PURE__ */ ra(null), Mu = /* @__PURE__ */ I(function(n, e) {
71733
71734
  let {
@@ -71780,9 +71781,9 @@ const v7 = /* @__PURE__ */ ra(null), Dq = /* @__PURE__ */ ra(null), Mu = /* @__P
71780
71781
  v.current.off(Z, C[Z]);
71781
71782
  });
71782
71783
  };
71783
- se(() => () => {
71784
+ ae(() => () => {
71784
71785
  v.current && v.current.off("_beforeBreakpoint", R);
71785
- }), se(() => {
71786
+ }), ae(() => {
71786
71787
  !m.current && v.current && (v.current.emitSlidesClasses(), m.current = !0);
71787
71788
  }), Cl(() => {
71788
71789
  if (e && (e.current = b.current), !!b.current)
@@ -71913,7 +71914,7 @@ const Iq = "_root_1eh3b_137", Lq = "_swiperSlide_1eh3b_149", jq = "_navigation_1
71913
71914
  stickerSlot: r
71914
71915
  }) => {
71915
71916
  const [a, s] = Q(null), o = te(null), l = te(null), u = te(null), [d, f] = Q(n);
71916
- se(() => {
71917
+ ae(() => {
71917
71918
  f(n), a == null || a.slideToLoop(n, 0);
71918
71919
  }, [n, a]);
71919
71920
  const c = (g) => {
@@ -72186,9 +72187,9 @@ const Iq = "_root_1eh3b_137", Lq = "_swiperSlide_1eh3b_149", jq = "_navigation_1
72186
72187
  }
72187
72188
  }) => {
72188
72189
  const a = te(null), [s, o] = Q(e[0]), [l, u] = Q(/* @__PURE__ */ new Set()), { imageSrc: d, imgType: f, loadImage: c } = d_(), { uploadImage: h } = Eu();
72189
- se(() => {
72190
+ ae(() => {
72190
72191
  s && c(s.croppedImg);
72191
- }, [s, c]), se(() => {
72192
+ }, [s, c]), ae(() => {
72192
72193
  (async () => {
72193
72194
  const x = e.filter(
72194
72195
  (S) => !S.signedId && !l.has(S.id)
@@ -72575,14 +72576,14 @@ function Py(n) {
72575
72576
  function w_(n, e, t = Object.freeze({})) {
72576
72577
  const { strlen: i = (a) => a.length, remainingCharacters: r = () => {
72577
72578
  } } = t;
72578
- se(() => {
72579
+ ae(() => {
72579
72580
  n.hasNodes([Zf]) || function(a, ...s) {
72580
72581
  const o = new URL("https://lexical.dev/docs/error"), l = new URLSearchParams();
72581
72582
  l.append("code", a);
72582
72583
  for (const u of s) l.append("v", u);
72583
72584
  throw o.search = l.toString(), Error(`Minified Lexical error #${a}; visit ${o.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`);
72584
72585
  }(57);
72585
- }, [n]), se(() => {
72586
+ }, [n]), ae(() => {
72586
72587
  let a = n.getEditorState().read(K9), s = 0;
72587
72588
  return Ar(n.registerTextContentListener((o) => {
72588
72589
  a = o;
@@ -72623,7 +72624,7 @@ function w_(n, e, t = Object.freeze({})) {
72623
72624
  const P = k.getParent(), O = k.getPreviousSibling(), M = k.getNextSibling();
72624
72625
  f6(k);
72625
72626
  const S = me();
72626
- !ae(S) || S.anchor.getNode().isAttached() && S.focus.getNode().isAttached() || (ge(O) ? O.select() : ge(M) ? M.select() : P !== null && P.select());
72627
+ !se(S) || S.anchor.getNode().isAttached() && S.focus.getNode().isAttached() || (ge(O) ? O.select() : ge(M) ? M.select() : P !== null && P.select());
72627
72628
  } else if (x < g) {
72628
72629
  const P = k.getFirstDescendant(), O = x + (P !== null ? P.getTextContentSize() : 0);
72629
72630
  (ge(P) && P.isSimpleText() || O <= g) && f6(k);
@@ -72647,7 +72648,7 @@ function w_(n, e, t = Object.freeze({})) {
72647
72648
  s = f;
72648
72649
  }), n.registerCommand(qr, (o) => {
72649
72650
  const l = me();
72650
- if (!ae(l)) return !1;
72651
+ if (!se(l)) return !1;
72651
72652
  const u = l.anchor.getNode().getParent(), d = u ? u.getParent() : null, f = d ? d.getNextSibling() : null;
72652
72653
  return l.deleteCharacter(o), d && d.isEmpty() ? d.remove() : J(f) && f.isEmpty() && f.remove(), !0;
72653
72654
  }, Ff));
@@ -72664,7 +72665,7 @@ function A_(n) {
72664
72665
  if (t === null) n.append(...i);
72665
72666
  else for (let s = 0; s < r; s++) t.insertBefore(i[s]);
72666
72667
  const a = me();
72667
- if (ae(a)) {
72668
+ if (se(a)) {
72668
72669
  const s = a.anchor, o = s.getNode(), l = a.focus, u = s.getNode();
72669
72670
  o.is(e) ? s.set(n.getKey(), s.offset, "element") : o.is(n) && s.set(n.getKey(), r + s.offset, "element"), u.is(e) ? l.set(n.getKey(), l.offset, "element") : u.is(n) && l.set(n.getKey(), r + l.offset, "element");
72670
72671
  }
@@ -72695,7 +72696,7 @@ function C_({
72695
72696
  onCharacterCountChange: e
72696
72697
  }) {
72697
72698
  const [t] = Yt(), i = te(null);
72698
- return se(() => {
72699
+ return ae(() => {
72699
72700
  const r = () => {
72700
72701
  const o = Ze().getTextContent().length;
72701
72702
  return e == null || e(o), o;
@@ -72707,7 +72708,7 @@ function C_({
72707
72708
  return t.getEditorState().read(() => {
72708
72709
  r();
72709
72710
  }), a;
72710
- }, [t, e]), se(() => {
72711
+ }, [t, e]), ae(() => {
72711
72712
  if (!n) return;
72712
72713
  const r = () => {
72713
72714
  t.getEditorState().read(() => {
@@ -72730,7 +72731,7 @@ function C_({
72730
72731
  const f = Ze().getTextContent().length;
72731
72732
  if (f > n) {
72732
72733
  const c = me();
72733
- if (ae(c) && c.isCollapsed()) {
72734
+ if (se(c) && c.isCollapsed()) {
72734
72735
  const h = u.read(
72735
72736
  () => Ze().getTextContent().length
72736
72737
  );
@@ -72766,7 +72767,7 @@ function C_({
72766
72767
  const f = Ze().getTextContent().length, c = n - f;
72767
72768
  if (c > 0) {
72768
72769
  const h = me();
72769
- if (ae(h)) {
72770
+ if (se(h)) {
72770
72771
  const g = d.slice(0, c);
72771
72772
  h.insertText(g);
72772
72773
  }
@@ -72858,7 +72859,7 @@ function B_(n, e, t, i) {
72858
72859
  o += m;
72859
72860
  }
72860
72861
  const d = me(), f = d ? d.getNodes().find(ge) : void 0, c = ln(s.getTextContent());
72861
- return c.setFormat(s.getFormat()), c.setDetail(s.getDetail()), c.setStyle(s.getStyle()), r.append(c, ...l), f && f === s && (ae(d) ? c.select(d.anchor.offset, d.focus.offset) : ct(d) && c.select(0, c.getTextContent().length)), s.replace(r), u;
72862
+ return c.setFormat(s.getFormat()), c.setDetail(s.getDetail()), c.setStyle(s.getStyle()), r.append(c, ...l), f && f === s && (se(d) ? c.select(d.anchor.offset, d.focus.offset) : ct(d) && c.select(0, c.getTextContent().length)), s.replace(r), u;
72862
72863
  }
72863
72864
  }
72864
72865
  function p0(n, e, t) {
@@ -72883,7 +72884,7 @@ function ec(n) {
72883
72884
  return n.remove(), e.map((t) => t.getLatest());
72884
72885
  }
72885
72886
  function M_(n, e, t) {
72886
- se(() => {
72887
+ ae(() => {
72887
72888
  n.hasNodes([Hf]) || function(r, ...a) {
72888
72889
  const s = new URL("https://lexical.dev/docs/error"), o = new URLSearchParams();
72889
72890
  o.append("code", r);
@@ -72926,7 +72927,7 @@ function M_(n, e, t) {
72926
72927
  }
72927
72928
  }), n.registerCommand(OY, (r) => {
72928
72929
  const a = me();
72929
- return r !== null || !ae(a) || a.extract().forEach((s) => {
72930
+ return r !== null || !se(a) || a.extract().forEach((s) => {
72930
72931
  const o = s.getParent();
72931
72932
  if (Ta(o)) return o.setIsUnlinked(!o.getIsUnlinked()), o.markDirty(), !0;
72932
72933
  }), !1;
@@ -72955,7 +72956,7 @@ const E_ = /(https?:\/\/)?(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,
72955
72956
  function T_() {
72956
72957
  return /* @__PURE__ */ p(S_, { matchers: F_ });
72957
72958
  }
72958
- const w7 = "startTransition", Pg = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, R_ = Pg ? hi : se, A7 = (n) => {
72959
+ const w7 = "startTransition", Pg = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, R_ = Pg ? hi : ae, A7 = (n) => {
72959
72960
  const e = document.getElementById("typeahead-menu");
72960
72961
  if (!e) return;
72961
72962
  const t = e.getBoundingClientRect();
@@ -72967,7 +72968,7 @@ function k7(n, e) {
72967
72968
  }
72968
72969
  function N_(n, e, t, i) {
72969
72970
  const [r] = Yt();
72970
- se(() => {
72971
+ ae(() => {
72971
72972
  if (e != null && n != null) {
72972
72973
  const a = r.getRootElement(), s = a != null ? function(f, c) {
72973
72974
  let h = getComputedStyle(f);
@@ -72993,14 +72994,14 @@ function N_(n, e, t, i) {
72993
72994
  const y7 = Me("SCROLL_TYPEAHEAD_OPTION_INTO_VIEW_COMMAND");
72994
72995
  function D_({ close: n, editor: e, anchorElementRef: t, resolution: i, options: r, menuRenderFn: a, onSelectOption: s, shouldSplitNodeWithQuery: o = !1, commandPriority: l = Ff, preselectFirstItem: u = !0 }) {
72995
72996
  const [d, f] = Q(null), c = i.match && i.match.matchingString;
72996
- se(() => {
72997
+ ae(() => {
72997
72998
  u && f(0);
72998
72999
  }, [c, u]);
72999
73000
  const h = ke((m) => {
73000
73001
  e.update(() => {
73001
73002
  const b = i.match != null && o ? function(v) {
73002
73003
  const A = me();
73003
- if (!ae(A) || !A.isCollapsed()) return null;
73004
+ if (!se(A) || !A.isCollapsed()) return null;
73004
73005
  const k = A.anchor;
73005
73006
  if (k.type !== "text") return null;
73006
73007
  const z = k.getNode();
@@ -73020,12 +73021,12 @@ function D_({ close: n, editor: e, anchorElementRef: t, resolution: i, options:
73020
73021
  const b = e.getRootElement();
73021
73022
  b !== null && (b.setAttribute("aria-activedescendant", "typeahead-item-" + m), f(m));
73022
73023
  }, [e]);
73023
- return se(() => () => {
73024
+ return ae(() => () => {
73024
73025
  const m = e.getRootElement();
73025
73026
  m !== null && m.removeAttribute("aria-activedescendant");
73026
73027
  }, [e]), R_(() => {
73027
73028
  r === null ? f(null) : d === null && u && g(0);
73028
- }, [r, d, g, u]), se(() => Ar(e.registerCommand(y7, ({ option: m }) => !(!m.ref || m.ref.current == null) && (A7(m.ref.current), !0), l)), [e, g, l]), se(() => Ar(e.registerCommand(im, (m) => {
73029
+ }, [r, d, g, u]), ae(() => Ar(e.registerCommand(y7, ({ option: m }) => !(!m.ref || m.ref.current == null) && (A7(m.ref.current), !0), l)), [e, g, l]), ae(() => Ar(e.registerCommand(im, (m) => {
73029
73030
  const b = m;
73030
73031
  if (r !== null && r.length) {
73031
73032
  const v = d === null ? 0 : d !== r.length - 1 ? d + 1 : 0;
@@ -73081,7 +73082,7 @@ function j_({ options: n, onQueryChange: e, onSelectOption: t, onOpen: i, onClos
73081
73082
  E.isConnected || (x7(E, z), x.append(E)), E.setAttribute("id", "typeahead-menu"), M.current = E, B.setAttribute("aria-controls", "typeahead-menu");
73082
73083
  }
73083
73084
  }, [O, A, P, z, x]);
73084
- se(() => {
73085
+ ae(() => {
73085
73086
  const B = O.getRootElement();
73086
73087
  return A !== null && S(), () => {
73087
73088
  B !== null && B.removeAttribute("aria-controls");
@@ -73100,7 +73101,7 @@ function j_({ options: n, onQueryChange: e, onSelectOption: t, onOpen: i, onClos
73100
73101
  }, [r, h]), v = ke((A) => {
73101
73102
  g(A), i != null && h === null && i(A);
73102
73103
  }, [i, h]);
73103
- return se(() => {
73104
+ return ae(() => {
73104
73105
  const A = c.registerUpdateListener(() => {
73105
73106
  c.getEditorState().read(() => {
73106
73107
  if (!c.isEditable()) return void b();
@@ -73108,7 +73109,7 @@ function j_({ options: n, onQueryChange: e, onSelectOption: t, onOpen: i, onClos
73108
73109
  let F = null;
73109
73110
  return S.getEditorState().read(() => {
73110
73111
  const C = me();
73111
- ae(C) && (F = function(B) {
73112
+ se(C) && (F = function(B) {
73112
73113
  const E = B.anchor;
73113
73114
  if (E.type !== "text") return null;
73114
73115
  const R = E.getNode();
@@ -73118,12 +73119,12 @@ function j_({ options: n, onQueryChange: e, onSelectOption: t, onOpen: i, onClos
73118
73119
  }(C));
73119
73120
  }), F;
73120
73121
  }(c);
73121
- if (!ae(x) || !x.isCollapsed() || P === null || z === null) return void b();
73122
+ if (!se(x) || !x.isCollapsed() || P === null || z === null) return void b();
73122
73123
  const O = s(P, c);
73123
73124
  if (e(O ? O.matchingString : null), O !== null && (f || !function(S, F) {
73124
73125
  return F === 0 && S.getEditorState().read(() => {
73125
73126
  const C = me();
73126
- if (ae(C)) {
73127
+ if (se(C)) {
73127
73128
  const B = C.anchor.getNode().getPreviousSibling();
73128
73129
  return ge(B) && B.isTextEntity();
73129
73130
  }
@@ -73149,7 +73150,7 @@ function j_({ options: n, onQueryChange: e, onSelectOption: t, onOpen: i, onClos
73149
73150
  return () => {
73150
73151
  A();
73151
73152
  };
73152
- }, [c, s, e, h, b, v, f]), se(() => c.registerEditableListener((A) => {
73153
+ }, [c, s, e, h, b, v, f]), ae(() => c.registerEditableListener((A) => {
73153
73154
  A || b();
73154
73155
  }), [c, b]), h === null || c === null || m.current === null ? null : p(D_, { close: b, resolution: h, editor: c, anchorElementRef: m, options: n, menuRenderFn: a, shouldSplitNodeWithQuery: !0, onSelectOption: t, commandPriority: l, preselectFirstItem: d });
73155
73156
  }
@@ -73178,7 +73179,7 @@ function W_({ anchorRef: n }) {
73178
73179
  () => r.filter((f) => f !== null).map((f) => new Z_(f.name, f)),
73179
73180
  [r]
73180
73181
  );
73181
- se(() => {
73182
+ ae(() => {
73182
73183
  t !== null && t.length >= 2 ? H_(t).then((f) => {
73183
73184
  f && a(f.page);
73184
73185
  }).catch(() => a([])) : a([]);
@@ -73195,7 +73196,7 @@ function W_({ anchorRef: n }) {
73195
73196
  );
73196
73197
  c && c.replace(b);
73197
73198
  const v = me();
73198
- if (ae(v)) {
73199
+ if (se(v)) {
73199
73200
  const A = ln(" ");
73200
73201
  b.insertAfter(A), A.select();
73201
73202
  }
@@ -73393,7 +73394,7 @@ function P7(n, e) {
73393
73394
  }
73394
73395
  function V_({ onChange: n, value: e }) {
73395
73396
  const [t] = Yt(), i = te(""), r = te(""), a = te(!1), { fetchLinkMetadata: s } = Y_(), o = te(/* @__PURE__ */ new Set()), l = te(/* @__PURE__ */ new Map());
73396
- return se(() => {
73397
+ return ae(() => {
73397
73398
  if (a.current) {
73398
73399
  a.current = !1;
73399
73400
  return;
@@ -73421,7 +73422,7 @@ function V_({ onChange: n, value: e }) {
73421
73422
  f.append(ln(e.body)), i.current = e.body;
73422
73423
  d.append(f);
73423
73424
  }));
73424
- }, [t, e]), se(() => {
73425
+ }, [t, e]), ae(() => {
73425
73426
  let u = !1;
73426
73427
  return t.registerUpdateListener(({ editorState: f }) => {
73427
73428
  u || f.read(() => {
@@ -73507,10 +73508,10 @@ function q_({
73507
73508
  };
73508
73509
  xr(A, () => ({
73509
73510
  onImageUpload: L
73510
- })), se(() => {
73511
+ })), ae(() => {
73511
73512
  var pe;
73512
73513
  (pe = v.attachments) != null && pe.images && C(v.attachments.images);
73513
- }, [(Vt = v.attachments) == null ? void 0 : Vt.images]), se(() => {
73514
+ }, [(Vt = v.attachments) == null ? void 0 : Vt.images]), ae(() => {
73514
73515
  h && E(!0);
73515
73516
  }, [h]);
73516
73517
  const T = !!s, D = !!u, Z = D && !z && v.body.length === 0, H = dn(
@@ -74038,7 +74039,7 @@ const __ = I(q_), $_ = ({ name: n, ref: e, ...t }) => {
74038
74039
  }
74039
74040
  ], k$ = ({ onClose: n, open: e }) => {
74040
74041
  const t = En(ls), { setValue: i, watch: r } = wn(), { dirtyFields: a } = aC(), s = r("content_type");
74041
- se(() => {
74042
+ ae(() => {
74042
74043
  if (a.reach) return;
74043
74044
  i("reach", s === "marketplace" ? "public" : "extended");
74044
74045
  }, [s]);
@@ -74098,7 +74099,7 @@ const __ = I(q_), $_ = ({ name: n, ref: e, ...t }) => {
74098
74099
  const [o, l] = Q(!0), [u, d] = Q(!1), [f, c] = Q(!1), h = te(null), g = () => {
74099
74100
  h != null && h.current && h.current.onImageUpload();
74100
74101
  };
74101
- se(() => {
74102
+ ae(() => {
74102
74103
  t && (v(), a());
74103
74104
  }, [t]);
74104
74105
  const m = En(ls), b = () => /* @__PURE__ */ p(
@@ -76819,7 +76820,7 @@ const Z7 = {
76819
76820
  return !gue(i, t);
76820
76821
  }, vde = (n, e = !1) => {
76821
76822
  const [t, i] = Q(e);
76822
- return se(() => {
76823
+ return ae(() => {
76823
76824
  if (typeof window < "u") {
76824
76825
  const a = JSON.parse(
76825
76826
  localStorage.getItem("bookmarkedItems") || "[]"
@@ -77145,7 +77146,7 @@ function Ude({
77145
77146
  linkLabel: a
77146
77147
  }) {
77147
77148
  const s = te(null), o = te(null), l = te(null), u = te(null), d = lC(u, !0), f = Cr(), c = Xn(), { highlightVariant: h } = Uy(), g = Wde(t);
77148
- se(() => {
77149
+ ae(() => {
77149
77150
  d && f("view", {
77150
77151
  element_name: g
77151
77152
  });
@@ -77251,7 +77252,7 @@ const Vde = ({
77251
77252
  open: i
77252
77253
  }) => {
77253
77254
  const [r, a] = Q(!1), [s, o] = Q(null), [l, u] = Q(null), [d, f] = Q(void 0);
77254
- return se(() => {
77255
+ return ae(() => {
77255
77256
  i && (a(!0), o(null), Promise.allSettled([
77256
77257
  EC(),
77257
77258
  ...t ? [mi.getApi().GET("/api/core/v3/profile", {})] : []
@@ -77480,7 +77481,7 @@ const Vde = ({
77480
77481
  };
77481
77482
  }, hce = ({ handleOpen: n, id: e, open: t }) => {
77482
77483
  const [i, r] = Q(null);
77483
- if (se(() => {
77484
+ if (ae(() => {
77484
77485
  e && TC({ id: e }).then((s) => {
77485
77486
  r(s);
77486
77487
  }).catch((s) => {
@@ -77688,14 +77689,14 @@ const Vde = ({
77688
77689
  const s = Q7(i, e), [o, l] = Q(null), u = te(null), d = te(null), f = te(null), [c, h] = Q(null), [g, m] = Q(s), b = k0({ activeIndex: n, slides: s }), [v, A] = Q(b >= 0 ? b : 0), k = En(800), z = () => {
77689
77690
  m(Q7(i, e));
77690
77691
  };
77691
- se(() => {
77692
+ ae(() => {
77692
77693
  z();
77693
- }, [k]), se(() => {
77694
+ }, [k]), ae(() => {
77694
77695
  if (a) {
77695
77696
  const M = k0({ activeIndex: n, slides: s });
77696
77697
  A(M >= 0 ? M : 0);
77697
77698
  }
77698
- }, [a]), se(() => {
77699
+ }, [a]), ae(() => {
77699
77700
  if (!a || !o) return;
77700
77701
  const M = k0({ activeIndex: n, slides: g }), S = g[M];
77701
77702
  h(S.type === "ad" ? null : S.slideIndex), o.slideToLoop(M, 0);
@@ -77858,9 +77859,9 @@ const Vde = ({
77858
77859
  const d = te(null), [f, c] = Q(0), [h, g] = Q(0), m = () => {
77859
77860
  g(window.innerWidth);
77860
77861
  };
77861
- se(() => (m(), window.addEventListener("resize", m), () => {
77862
+ ae(() => (m(), window.addEventListener("resize", m), () => {
77862
77863
  window.removeEventListener("resize", m);
77863
- }), []), se(() => {
77864
+ }), []), ae(() => {
77864
77865
  d.current !== null && c(d.current.offsetHeight);
77865
77866
  }, [h]);
77866
77867
  const b = () => {
@@ -78132,7 +78133,7 @@ const Vde = ({
78132
78133
  }, z = () => {
78133
78134
  s(!0), r(!1);
78134
78135
  };
78135
- se(() => {
78136
+ ae(() => {
78136
78137
  u && z();
78137
78138
  }, [u]);
78138
78139
  const x = () => /* @__PURE__ */ j("div", { className: Tn.modalBody, children: [
@@ -78313,7 +78314,7 @@ Namen und Kommentare auf den Beitrag sind nicht öffentlich sichtbar.`
78313
78314
  section: e
78314
78315
  }) => {
78315
78316
  const [t, i] = Q([]), { more_cta_text: r, more_cta_url: a, section_headline: s, section_identifier: o } = e, l = `/feed/${a.split("/").pop()}`;
78316
- return se(() => {
78317
+ return ae(() => {
78317
78318
  if (!n || !e.posts.length)
78318
78319
  return;
78319
78320
  const u = e.posts.map((d) => d.id).filter(Boolean);
@@ -78545,7 +78546,7 @@ const d1e = (n, e) => {
78545
78546
  n.innerHTML = "", n.appendChild(t);
78546
78547
  }, gke = ({ html: n, ...e }) => {
78547
78548
  const t = te(null), i = te(null);
78548
- return se(() => {
78549
+ return ae(() => {
78549
78550
  const r = i.current, a = t.current;
78550
78551
  !r || !a || a.hasBeenExecuted || d1e(r, n);
78551
78552
  }, [n]), /* @__PURE__ */ j(Te, { children: [
@@ -78661,7 +78662,7 @@ const d1e = (n, e) => {
78661
78662
  },
78662
78663
  [n]
78663
78664
  );
78664
- se(() => {
78665
+ ae(() => {
78665
78666
  h(i, null, !0);
78666
78667
  }, [i, h]);
78667
78668
  const g = () => {
@@ -78863,7 +78864,7 @@ const U1e = /* @__PURE__ */ Qt(K1e), V1e = "_mobileLayout_1pm5r_137", J1e = "_mo
78863
78864
  hideAdSlot: a0e
78864
78865
  }, V7 = 50, s0e = 100, o0e = (n) => {
78865
78866
  const [e, t] = Q(!1), i = te(0), r = te(0);
78866
- return se(() => {
78867
+ return ae(() => {
78867
78868
  if (!n) {
78868
78869
  t(!1);
78869
78870
  return;
@@ -78892,7 +78893,7 @@ const U1e = /* @__PURE__ */ Qt(K1e), V1e = "_mobileLayout_1pm5r_137", J1e = "_mo
78892
78893
  showFooter: l = !0
78893
78894
  }) => {
78894
78895
  const u = U1e(), d = o0e(o), f = te(null), [c, h] = Q(0);
78895
- return se(() => {
78896
+ return ae(() => {
78896
78897
  if (!f.current || !t) {
78897
78898
  h(0);
78898
78899
  return;
@@ -78961,7 +78962,7 @@ const U1e = /* @__PURE__ */ Qt(K1e), V1e = "_mobileLayout_1pm5r_137", J1e = "_mo
78961
78962
  mobile: r
78962
78963
  }) => {
78963
78964
  const [a, s] = Q(t ?? null);
78964
- return se(() => {
78965
+ return ae(() => {
78965
78966
  const o = () => {
78966
78967
  s(window.innerWidth < 800);
78967
78968
  };
@@ -84693,7 +84694,7 @@ function L5e(n, {
84693
84694
  },
84694
84695
  [n, A, a, i, k, v]
84695
84696
  );
84696
- return se(() => {
84697
+ return ae(() => {
84697
84698
  if (!window)
84698
84699
  return;
84699
84700
  function x(P) {
@@ -84703,12 +84704,12 @@ function L5e(n, {
84703
84704
  return window.addEventListener("mouseup", x), window.addEventListener("touchend", x), window.addEventListener("pointerup", x), () => {
84704
84705
  window.removeEventListener("mouseup", x), window.removeEventListener("touchend", x), window.removeEventListener("pointerup", x);
84705
84706
  };
84706
- }, [A]), se(
84707
+ }, [A]), ae(
84707
84708
  () => () => {
84708
84709
  g.current !== void 0 && clearTimeout(g.current);
84709
84710
  },
84710
84711
  []
84711
- ), se(() => {
84712
+ ), ae(() => {
84712
84713
  m.current = n;
84713
84714
  }, [n]), z;
84714
84715
  }
@@ -85022,7 +85023,7 @@ const iw = [
85022
85023
  console.error("Error fetching reactions:", S);
85023
85024
  }
85024
85025
  }, [r, f, u, e]);
85025
- se(() => (i && b(), () => {
85026
+ ae(() => (i && b(), () => {
85026
85027
  g([]);
85027
85028
  }), [i, u, b]);
85028
85029
  const v = (S, F) => {