@fileverse-dev/ddoc 3.0.60-theme-fix-1 → 3.0.61-tag-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -2,7 +2,7 @@ var IQ = Object.defineProperty;
2
2
  var LQ = (e, t, n) => t in e ? IQ(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var Xe = (e, t, n) => LQ(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import * as Nn from "react";
5
- import _t, { createRef as UQ, memo as Oh, createContext as Bd, createElement as nb, useContext as Md, version as GC, useRef as Ge, useState as Ne, useDebugValue as Ak, useEffect as Oe, forwardRef as yr, useLayoutEffect as Od, useCallback as Te, useMemo as jt, Fragment as PQ, useReducer as zQ, cloneElement as QR, useImperativeHandle as eI } from "react";
5
+ import _t, { createRef as UQ, memo as Oh, createContext as Bd, createElement as nb, useContext as Md, version as GC, useRef as Ge, useState as Ne, useDebugValue as Ak, useEffect as Oe, forwardRef as yr, useLayoutEffect as Od, useCallback as je, useMemo as jt, Fragment as PQ, useReducer as zQ, cloneElement as QR, useImperativeHandle as eI } from "react";
6
6
  import tI, { flushSync as $Q, createPortal as ng } from "react-dom";
7
7
  import { Drawer as nI, DrawerContent as HQ, DrawerHeader as WQ, DrawerTitle as qQ, DrawerClose as VQ, LucideIcon as Ue, useTheme as GQ, Button as qt, TextField as ba, DynamicDropdown as lr, Tooltip as dn, IconButton as Cn, Avatar as Sk, cn as Ke, ButtonGroup as Tk, Skeleton as on, TextAreaFieldV2 as rb, DatePicker as KQ, TimePicker as YQ, Divider as If, BottomDrawer as rI, DynamicModal as jk, Select as Lf, SelectTrigger as Uf, SelectValue as ob, SelectContent as Pf, SelectItem as zf, DynamicDropdownV2 as Nk, Popover as $f, PopoverTrigger as Hf, PopoverContent as Wf, toast as Bk, UltimateIcons as XQ, PopoverClose as oI, SelectGroup as iI, SelectLabel as ZQ, Checkbox as JQ, DrawerTrigger as KC, AnimatedLoader as QQ, Label as eee, DynamicDrawer as tee, DynamicDrawerV2 as nee, Tag as ib, TagInput as sI } from "@fileverse/ui";
8
8
  import { isAddress as ree, createPublicClient as oee, http as iee } from "viem";
@@ -84,16 +84,16 @@ function Fee() {
84
84
  var b = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
85
85
  function y(xe) {
86
86
  {
87
- for (var Ie = arguments.length, it = new Array(Ie > 1 ? Ie - 1 : 0), ft = 1; ft < Ie; ft++)
88
- it[ft - 1] = arguments[ft];
89
- x("error", xe, it);
87
+ for (var Ie = arguments.length, ot = new Array(Ie > 1 ? Ie - 1 : 0), ft = 1; ft < Ie; ft++)
88
+ ot[ft - 1] = arguments[ft];
89
+ x("error", xe, ot);
90
90
  }
91
91
  }
92
- function x(xe, Ie, it) {
92
+ function x(xe, Ie, ot) {
93
93
  {
94
94
  var ft = b.ReactDebugCurrentFrame, Yt = ft.getStackAddendum();
95
- Yt !== "" && (Ie += "%s", it = it.concat([Yt]));
96
- var an = it.map(function($t) {
95
+ Yt !== "" && (Ie += "%s", ot = ot.concat([Yt]));
96
+ var an = ot.map(function($t) {
97
97
  return String($t);
98
98
  });
99
99
  an.unshift("Warning: " + Ie), Function.prototype.apply.call(console[xe], console, an);
@@ -108,12 +108,12 @@ function Fee() {
108
108
  // with.
109
109
  xe.$$typeof === A || xe.getModuleId !== void 0));
110
110
  }
111
- function O(xe, Ie, it) {
111
+ function O(xe, Ie, ot) {
112
112
  var ft = xe.displayName;
113
113
  if (ft)
114
114
  return ft;
115
115
  var Yt = Ie.displayName || Ie.name || "";
116
- return Yt !== "" ? it + "(" + Yt + ")" : it;
116
+ return Yt !== "" ? ot + "(" + Yt + ")" : ot;
117
117
  }
118
118
  function _(xe) {
119
119
  return xe.displayName || "Context";
@@ -145,8 +145,8 @@ function Fee() {
145
145
  var Ie = xe;
146
146
  return _(Ie) + ".Consumer";
147
147
  case s:
148
- var it = xe;
149
- return _(it._context) + ".Provider";
148
+ var ot = xe;
149
+ return _(ot._context) + ".Provider";
150
150
  case l:
151
151
  return O(xe, xe.render, "ForwardRef");
152
152
  case d:
@@ -226,7 +226,7 @@ function Fee() {
226
226
  }
227
227
  }
228
228
  var X = b.ReactCurrentDispatcher, oe;
229
- function Z(xe, Ie, it) {
229
+ function Z(xe, Ie, ot) {
230
230
  {
231
231
  if (oe === void 0)
232
232
  try {
@@ -248,9 +248,9 @@ function Fee() {
248
248
  if (!xe || ae)
249
249
  return "";
250
250
  {
251
- var it = j.get(xe);
252
- if (it !== void 0)
253
- return it;
251
+ var ot = j.get(xe);
252
+ if (ot !== void 0)
253
+ return ot;
254
254
  }
255
255
  var ft;
256
256
  ae = !0;
@@ -315,14 +315,14 @@ function Fee() {
315
315
  var lt = xe ? xe.displayName || xe.name : "", Jt = lt ? Z(lt) : "";
316
316
  return typeof xe == "function" && j.set(xe, Jt), Jt;
317
317
  }
318
- function ue(xe, Ie, it) {
318
+ function ue(xe, Ie, ot) {
319
319
  return ee(xe, !1);
320
320
  }
321
321
  function B(xe) {
322
322
  var Ie = xe.prototype;
323
323
  return !!(Ie && Ie.isReactComponent);
324
324
  }
325
- function te(xe, Ie, it) {
325
+ function te(xe, Ie, ot) {
326
326
  if (xe == null)
327
327
  return "";
328
328
  if (typeof xe == "function")
@@ -340,11 +340,11 @@ function Fee() {
340
340
  case l:
341
341
  return ue(xe.render);
342
342
  case d:
343
- return te(xe.type, Ie, it);
343
+ return te(xe.type, Ie, ot);
344
344
  case p: {
345
345
  var ft = xe, Yt = ft._payload, an = ft._init;
346
346
  try {
347
- return te(an(Yt), Ie, it);
347
+ return te(an(Yt), Ie, ot);
348
348
  } catch {
349
349
  }
350
350
  }
@@ -354,12 +354,12 @@ function Fee() {
354
354
  var le = Object.prototype.hasOwnProperty, G = {}, V = b.ReactDebugCurrentFrame;
355
355
  function Q(xe) {
356
356
  if (xe) {
357
- var Ie = xe._owner, it = te(xe.type, xe._source, Ie ? Ie.type : null);
358
- V.setExtraStackFrame(it);
357
+ var Ie = xe._owner, ot = te(xe.type, xe._source, Ie ? Ie.type : null);
358
+ V.setExtraStackFrame(ot);
359
359
  } else
360
360
  V.setExtraStackFrame(null);
361
361
  }
362
- function Fe(xe, Ie, it, ft, Yt) {
362
+ function Fe(xe, Ie, ot, ft, Yt) {
363
363
  {
364
364
  var an = Function.call.bind(le);
365
365
  for (var $t in xe)
@@ -367,14 +367,14 @@ function Fee() {
367
367
  var Dt = void 0;
368
368
  try {
369
369
  if (typeof xe[$t] != "function") {
370
- var _r = Error((ft || "React class") + ": " + it + " type `" + $t + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof xe[$t] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
370
+ var _r = Error((ft || "React class") + ": " + ot + " type `" + $t + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof xe[$t] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
371
371
  throw _r.name = "Invariant Violation", _r;
372
372
  }
373
- Dt = xe[$t](Ie, $t, ft, it, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
373
+ Dt = xe[$t](Ie, $t, ft, ot, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
374
374
  } catch (Qe) {
375
375
  Dt = Qe;
376
376
  }
377
- Dt && !(Dt instanceof Error) && (Q(Yt), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", ft || "React class", it, $t, typeof Dt), Q(null)), Dt instanceof Error && !(Dt.message in G) && (G[Dt.message] = !0, Q(Yt), y("Failed %s type: %s", it, Dt.message), Q(null));
377
+ Dt && !(Dt instanceof Error) && (Q(Yt), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", ft || "React class", ot, $t, typeof Dt), Q(null)), Dt instanceof Error && !(Dt.message in G) && (G[Dt.message] = !0, Q(Yt), y("Failed %s type: %s", ot, Dt.message), Q(null));
378
378
  }
379
379
  }
380
380
  }
@@ -384,8 +384,8 @@ function Fee() {
384
384
  }
385
385
  function ce(xe) {
386
386
  {
387
- var Ie = typeof Symbol == "function" && Symbol.toStringTag, it = Ie && xe[Symbol.toStringTag] || xe.constructor.name || "Object";
388
- return it;
387
+ var Ie = typeof Symbol == "function" && Symbol.toStringTag, ot = Ie && xe[Symbol.toStringTag] || xe.constructor.name || "Object";
388
+ return ot;
389
389
  }
390
390
  }
391
391
  function de(xe) {
@@ -429,34 +429,34 @@ function Fee() {
429
429
  }
430
430
  function fe(xe, Ie) {
431
431
  {
432
- var it = function() {
432
+ var ot = function() {
433
433
  pe || (pe = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", Ie));
434
434
  };
435
- it.isReactWarning = !0, Object.defineProperty(xe, "key", {
436
- get: it,
435
+ ot.isReactWarning = !0, Object.defineProperty(xe, "key", {
436
+ get: ot,
437
437
  configurable: !0
438
438
  });
439
439
  }
440
440
  }
441
441
  function Se(xe, Ie) {
442
442
  {
443
- var it = function() {
443
+ var ot = function() {
444
444
  ye || (ye = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", Ie));
445
445
  };
446
- it.isReactWarning = !0, Object.defineProperty(xe, "ref", {
447
- get: it,
446
+ ot.isReactWarning = !0, Object.defineProperty(xe, "ref", {
447
+ get: ot,
448
448
  configurable: !0
449
449
  });
450
450
  }
451
451
  }
452
- var _e = function(xe, Ie, it, ft, Yt, an, $t) {
452
+ var _e = function(xe, Ie, ot, ft, Yt, an, $t) {
453
453
  var Dt = {
454
454
  // This tag allows us to uniquely identify this as a React Element
455
455
  $$typeof: t,
456
456
  // Built-in properties that belong on the element
457
457
  type: xe,
458
458
  key: Ie,
459
- ref: it,
459
+ ref: ot,
460
460
  props: $t,
461
461
  // Record the component responsible for creating this element.
462
462
  _owner: an
@@ -478,10 +478,10 @@ function Fee() {
478
478
  value: Yt
479
479
  }), Object.freeze && (Object.freeze(Dt.props), Object.freeze(Dt)), Dt;
480
480
  };
481
- function je(xe, Ie, it, ft, Yt) {
481
+ function Te(xe, Ie, ot, ft, Yt) {
482
482
  {
483
483
  var an, $t = {}, Dt = null, _r = null;
484
- it !== void 0 && (R(it), Dt = "" + it), Ee(Ie) && (R(Ie.key), Dt = "" + Ie.key), me(Ie) && (_r = Ie.ref, Ce(Ie, Yt));
484
+ ot !== void 0 && (R(ot), Dt = "" + ot), Ee(Ie) && (R(Ie.key), Dt = "" + Ie.key), me(Ie) && (_r = Ie.ref, Ce(Ie, Yt));
485
485
  for (an in Ie)
486
486
  le.call(Ie, an) && !re.hasOwnProperty(an) && ($t[an] = Ie[an]);
487
487
  if (xe && xe.defaultProps) {
@@ -496,13 +496,13 @@ function Fee() {
496
496
  return _e(xe, Dt, _r, Yt, ft, W.current, $t);
497
497
  }
498
498
  }
499
- var Be = b.ReactCurrentOwner, ot = b.ReactDebugCurrentFrame;
499
+ var Be = b.ReactCurrentOwner, at = b.ReactDebugCurrentFrame;
500
500
  function dt(xe) {
501
501
  if (xe) {
502
- var Ie = xe._owner, it = te(xe.type, xe._source, Ie ? Ie.type : null);
503
- ot.setExtraStackFrame(it);
502
+ var Ie = xe._owner, ot = te(xe.type, xe._source, Ie ? Ie.type : null);
503
+ at.setExtraStackFrame(ot);
504
504
  } else
505
- ot.setExtraStackFrame(null);
505
+ at.setExtraStackFrame(null);
506
506
  }
507
507
  var mt;
508
508
  mt = !1;
@@ -529,10 +529,10 @@ Check the render method of \`` + xe + "`.";
529
529
  {
530
530
  var Ie = He();
531
531
  if (!Ie) {
532
- var it = typeof xe == "string" ? xe : xe.displayName || xe.name;
533
- it && (Ie = `
532
+ var ot = typeof xe == "string" ? xe : xe.displayName || xe.name;
533
+ ot && (Ie = `
534
534
 
535
- Check the top-level render call using <` + it + ">.");
535
+ Check the top-level render call using <` + ot + ">.");
536
536
  }
537
537
  return Ie;
538
538
  }
@@ -542,12 +542,12 @@ Check the top-level render call using <` + it + ">.");
542
542
  if (!xe._store || xe._store.validated || xe.key != null)
543
543
  return;
544
544
  xe._store.validated = !0;
545
- var it = Le(Ie);
546
- if (nt[it])
545
+ var ot = Le(Ie);
546
+ if (nt[ot])
547
547
  return;
548
- nt[it] = !0;
548
+ nt[ot] = !0;
549
549
  var ft = "";
550
- xe && xe._owner && xe._owner !== Be.current && (ft = " It was passed a child from " + M(xe._owner.type) + "."), dt(xe), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', it, ft), dt(null);
550
+ xe && xe._owner && xe._owner !== Be.current && (ft = " It was passed a child from " + M(xe._owner.type) + "."), dt(xe), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', ot, ft), dt(null);
551
551
  }
552
552
  }
553
553
  function Lt(xe, Ie) {
@@ -555,8 +555,8 @@ Check the top-level render call using <` + it + ">.");
555
555
  if (typeof xe != "object")
556
556
  return;
557
557
  if (ge(xe))
558
- for (var it = 0; it < xe.length; it++) {
559
- var ft = xe[it];
558
+ for (var ot = 0; ot < xe.length; ot++) {
559
+ var ft = xe[ot];
560
560
  Me(ft) && bt(ft, Ie);
561
561
  }
562
562
  else if (Me(xe))
@@ -574,18 +574,18 @@ Check the top-level render call using <` + it + ">.");
574
574
  var Ie = xe.type;
575
575
  if (Ie == null || typeof Ie == "string")
576
576
  return;
577
- var it;
577
+ var ot;
578
578
  if (typeof Ie == "function")
579
- it = Ie.propTypes;
579
+ ot = Ie.propTypes;
580
580
  else if (typeof Ie == "object" && (Ie.$$typeof === l || // Note: Memo only checks outer props here.
581
581
  // Inner props are checked in the reconciler.
582
582
  Ie.$$typeof === d))
583
- it = Ie.propTypes;
583
+ ot = Ie.propTypes;
584
584
  else
585
585
  return;
586
- if (it) {
586
+ if (ot) {
587
587
  var ft = M(Ie);
588
- Fe(it, xe.props, "prop", ft, xe);
588
+ Fe(ot, xe.props, "prop", ft, xe);
589
589
  } else if (Ie.PropTypes !== void 0 && !mt) {
590
590
  mt = !0;
591
591
  var Yt = M(Ie);
@@ -596,8 +596,8 @@ Check the top-level render call using <` + it + ">.");
596
596
  }
597
597
  function wn(xe) {
598
598
  {
599
- for (var Ie = Object.keys(xe.props), it = 0; it < Ie.length; it++) {
600
- var ft = Ie[it];
599
+ for (var Ie = Object.keys(xe.props), ot = 0; ot < Ie.length; ot++) {
600
+ var ft = Ie[ot];
601
601
  if (ft !== "children" && ft !== "key") {
602
602
  dt(xe), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", ft), dt(null);
603
603
  break;
@@ -607,7 +607,7 @@ Check the top-level render call using <` + it + ">.");
607
607
  }
608
608
  }
609
609
  var Zt = {};
610
- function Mn(xe, Ie, it, ft, Yt, an) {
610
+ function Mn(xe, Ie, ot, ft, Yt, an) {
611
611
  {
612
612
  var $t = N(xe);
613
613
  if (!$t) {
@@ -618,7 +618,7 @@ Check the top-level render call using <` + it + ">.");
618
618
  var Qe;
619
619
  xe === null ? Qe = "null" : ge(xe) ? Qe = "array" : xe !== void 0 && xe.$$typeof === t ? (Qe = "<" + (M(xe.type) || "Unknown") + " />", Dt = " Did you accidentally export a JSX literal instead of a component?") : Qe = typeof xe, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Qe, Dt);
620
620
  }
621
- var we = je(xe, Ie, it, Yt, an);
621
+ var we = Te(xe, Ie, ot, Yt, an);
622
622
  if (we == null)
623
623
  return we;
624
624
  if ($t) {
@@ -651,11 +651,11 @@ React keys must be passed directly to JSX without using spread:
651
651
  return xe === r ? wn(we) : tn(we), we;
652
652
  }
653
653
  }
654
- function An(xe, Ie, it) {
655
- return Mn(xe, Ie, it, !0);
654
+ function An(xe, Ie, ot) {
655
+ return Mn(xe, Ie, ot, !0);
656
656
  }
657
- function gn(xe, Ie, it) {
658
- return Mn(xe, Ie, it, !1);
657
+ function gn(xe, Ie, ot) {
658
+ return Mn(xe, Ie, ot, !1);
659
659
  }
660
660
  var Dn = gn, $n = An;
661
661
  p0.Fragment = r, p0.jsx = Dn, p0.jsxs = $n;
@@ -17913,7 +17913,7 @@ var QU = { exports: {} };
17913
17913
  })();
17914
17914
  })(QU);
17915
17915
  var Tae = QU.exports;
17916
- const st = /* @__PURE__ */ ic(Tae);
17916
+ const it = /* @__PURE__ */ ic(Tae);
17917
17917
  var Ye = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.HEADING = 1] = "HEADING", e[e.TEXT_COLOR = 2] = "TEXT_COLOR", e[e.HIGHLIGHT = 3] = "HIGHLIGHT", e[e.LINK = 4] = "LINK", e[e.FONT_FAMILY = 5] = "FONT_FAMILY", e[e.ALIGNMENT = 6] = "ALIGNMENT", e[e.LIST = 7] = "LIST", e[e.TEXT_FORMATING = 8] = "TEXT_FORMATING", e[e.TEXT_COLOR_PICKER = 9] = "TEXT_COLOR_PICKER", e[e.LINK_POPUP = 10] = "LINK_POPUP", e[e.SCRIPTS = 11] = "SCRIPTS", e[e.FONT_SIZE = 12] = "FONT_SIZE", e[e.LINE_HEIGHT = 13] = "LINE_HEIGHT", e))(Ye || {});
17918
17918
  function jae(e) {
17919
17919
  const [t, n] = Ne(e), r = Ge(null), o = (i) => {
@@ -18128,7 +18128,7 @@ const Wae = ({
18128
18128
  /* @__PURE__ */ F.jsx(
18129
18129
  "div",
18130
18130
  {
18131
- className: st(
18131
+ className: it(
18132
18132
  "flex flex-col gap-4 w-full h-full pb-4 text-base color-text-default",
18133
18133
  o
18134
18134
  ),
@@ -19107,18 +19107,18 @@ function vle(e, t, n, r, o, i, s) {
19107
19107
  previousLocation: fe,
19108
19108
  scrollLooper: Se,
19109
19109
  slideLooper: _e,
19110
- dragHandler: je,
19110
+ dragHandler: Te,
19111
19111
  animation: Be,
19112
- eventHandler: ot,
19112
+ eventHandler: at,
19113
19113
  scrollBounds: dt,
19114
19114
  options: {
19115
19115
  loop: mt
19116
19116
  }
19117
19117
  }, Me) => {
19118
- const He = ye.settled(), ut = !dt.shouldConstrain(), nt = mt ? He : He && ut, Le = nt && !je.pointerDown();
19118
+ const He = ye.settled(), ut = !dt.shouldConstrain(), nt = mt ? He : He && ut, Le = nt && !Te.pointerDown();
19119
19119
  Le && Be.stop();
19120
19120
  const bt = Ee.get() * Me + fe.get() * (1 - Me);
19121
- Ce.set(bt), mt && (Se.loop(ye.direction()), _e.loop()), me.to(Ce.get()), Le && ot.emit("settle"), nt || ot.emit("scroll");
19121
+ Ce.set(bt), mt && (Se.loop(ye.direction()), _e.loop()), me.to(Ce.get()), Le && at.emit("settle"), nt || at.emit("scroll");
19122
19122
  }, B = Zae(r, o, () => ee(pe), (ye) => ue(pe, ye)), te = 0.68, le = oe[ae.get()], G = q0(le), V = q0(le), Q = q0(le), Fe = q0(le), De = ole(G, Q, V, Fe, p, te), ge = ple(d, oe, ie, Z, Fe), ce = hle(B, ae, j, De, ge, Fe, s), de = ule(Z), he = i1(), R = ble(t, n, s, g), {
19123
19123
  slideRegistry: W
19124
19124
  } = dle(S, y, oe, X, U, K), re = fle(e, n, W, ce, De, he, s, w), pe = {
@@ -19369,7 +19369,7 @@ function Fb(e, t, n) {
19369
19369
  }
19370
19370
  Fb.globalOptions = void 0;
19371
19371
  function k8(e = {}, t = []) {
19372
- const n = Ge(e), r = Ge(t), [o, i] = Ne(), [s, a] = Ne(), l = Te(() => {
19372
+ const n = Ge(e), r = Ge(t), [o, i] = Ne(), [s, a] = Ne(), l = je(() => {
19373
19373
  o && o.reInit(n.current, r.current);
19374
19374
  }, [o]);
19375
19375
  return Oe(() => {
@@ -19409,13 +19409,13 @@ const aP = yr(
19409
19409
  axis: e === "horizontal" ? "x" : "y"
19410
19410
  },
19411
19411
  r
19412
- ), [c, d] = Ne(!1), [p, h] = Ne(!1), f = Te((y) => {
19412
+ ), [c, d] = Ne(!1), [p, h] = Ne(!1), f = je((y) => {
19413
19413
  y && (d(y.canScrollPrev()), h(y.canScrollNext()));
19414
- }, []), g = Te(() => {
19414
+ }, []), g = je(() => {
19415
19415
  u == null || u.scrollPrev();
19416
- }, [u]), m = Te(() => {
19416
+ }, [u]), m = je(() => {
19417
19417
  u == null || u.scrollNext();
19418
- }, [u]), b = Te(
19418
+ }, [u]), b = je(
19419
19419
  (y) => {
19420
19420
  y.key === "ArrowLeft" ? (y.preventDefault(), g()) : y.key === "ArrowRight" && (y.preventDefault(), m());
19421
19421
  },
@@ -19446,7 +19446,7 @@ const aP = yr(
19446
19446
  {
19447
19447
  ref: a,
19448
19448
  onKeyDownCapture: b,
19449
- className: st("relative", o),
19449
+ className: it("relative", o),
19450
19450
  role: "region",
19451
19451
  "aria-roledescription": "carousel",
19452
19452
  ...s,
@@ -19464,7 +19464,7 @@ const lP = yr(({ className: e, ...t }, n) => {
19464
19464
  "div",
19465
19465
  {
19466
19466
  ref: n,
19467
- className: st(
19467
+ className: it(
19468
19468
  "flex",
19469
19469
  o === "horizontal" ? "-ml-4" : "-mt-4 flex-col",
19470
19470
  e
@@ -19483,7 +19483,7 @@ const mw = yr(
19483
19483
  ref: n,
19484
19484
  role: "group",
19485
19485
  "aria-roledescription": "slide",
19486
- className: st(
19486
+ className: it(
19487
19487
  "min-w-0 shrink-0 grow-0 basis-full",
19488
19488
  r === "horizontal" ? "pl-4" : "pt-4",
19489
19489
  e
@@ -19495,14 +19495,14 @@ const mw = yr(
19495
19495
  );
19496
19496
  mw.displayName = "CarouselItem";
19497
19497
  const uP = yr(({ index: e, className: t, ...n }, r) => {
19498
- const { api: o } = cg(), [i, s] = Ne(0), [, a] = Ne([]), l = Te(
19498
+ const { api: o } = cg(), [i, s] = Ne(0), [, a] = Ne([]), l = je(
19499
19499
  (p) => {
19500
19500
  o && o.scrollTo(p);
19501
19501
  },
19502
19502
  [o]
19503
- ), u = Te((p) => {
19503
+ ), u = je((p) => {
19504
19504
  p && a(p.scrollSnapList());
19505
- }, []), c = Te((p) => {
19505
+ }, []), c = je((p) => {
19506
19506
  p && s(p.selectedScrollSnap());
19507
19507
  }, []);
19508
19508
  Oe(() => {
@@ -19513,7 +19513,7 @@ const uP = yr(({ index: e, className: t, ...n }, r) => {
19513
19513
  "button",
19514
19514
  {
19515
19515
  ref: r,
19516
- className: st(
19516
+ className: it(
19517
19517
  "w-2 h-2 transition-colors duration-200 rounded-full",
19518
19518
  d ? "bg-black" : "bg-[#E8EBEC] hover:bg-black/50",
19519
19519
  t
@@ -19530,7 +19530,7 @@ const Ele = _t.forwardRef(({ className: e, ...t }, n) => {
19530
19530
  "button",
19531
19531
  {
19532
19532
  ref: n,
19533
- className: st(
19533
+ className: it(
19534
19534
  "btn color-bg-default hover:color-bg-default-hover transition color-text-default flex items-center border-2 rounded h-9 px-4 py-2 text-sm font-medium disabled:bg-[#E8EBEC] disabled:text-[#A1AAB1]",
19535
19535
  e
19536
19536
  ),
@@ -19548,7 +19548,7 @@ const Cle = _t.forwardRef(({ className: e, ...t }, n) => {
19548
19548
  "button",
19549
19549
  {
19550
19550
  ref: n,
19551
- className: st(
19551
+ className: it(
19552
19552
  "btn bg-black hover:bg-black color-text-default flex items-center border-2 rounded h-9 px-4 py-2 text-sm font-medium disabled:bg-[#E8EBEC] disabled:text-[#A1AAB1]",
19553
19553
  e
19554
19554
  ),
@@ -28114,7 +28114,7 @@ const wz = Bd(void 0), Vde = ({
28114
28114
  handleClick: !1
28115
28115
  }), ee = localStorage.getItem("ensCache"), [ue, B] = Ne(
28116
28116
  ee ? JSON.parse(ee) : {}
28117
- ), [te, le] = Ne([]), G = Te(
28117
+ ), [te, le] = Ne([]), G = je(
28118
28118
  async (Me, He) => {
28119
28119
  if (te.includes(Me)) {
28120
28120
  He({
@@ -28172,10 +28172,10 @@ const wz = Bd(void 0), Vde = ({
28172
28172
  dg([ne, X, oe], () => {
28173
28173
  U && (ie(!0), P(!1));
28174
28174
  });
28175
- const Fe = Te(() => {
28175
+ const Fe = je(() => {
28176
28176
  const { state: Me } = t, { from: He, to: ut } = Me.selection, nt = Me.doc.textBetween(He, ut, " ");
28177
28177
  Z ? Q && q(Q.selectedContent || "") : q(nt), P(!0), w == null || w();
28178
- }, [t, Z, Q, w]), De = Te(
28178
+ }, [t, Z, Q, w]), De = je(
28179
28179
  (Me, He = "", ut) => ({
28180
28180
  id: `comment-${Uu()}`,
28181
28181
  tabId: u,
@@ -28187,7 +28187,7 @@ const wz = Bd(void 0), Vde = ({
28187
28187
  createdAt: /* @__PURE__ */ new Date()
28188
28188
  }),
28189
28189
  [u]
28190
- ), ge = Te(
28190
+ ), ge = je(
28191
28191
  (Me, He) => {
28192
28192
  const ut = Ace(n);
28193
28193
  if (!He()) return;
@@ -28199,7 +28199,7 @@ const wz = Bd(void 0), Vde = ({
28199
28199
  };
28200
28200
  },
28201
28201
  [n]
28202
- ), ce = Te(
28202
+ ), ce = je(
28203
28203
  (Me, He) => {
28204
28204
  if (!t) return;
28205
28205
  const { state: ut } = t, { from: nt, to: Le } = ut.selection, bt = ut.doc.textBetween(nt, Le, " "), Lt = De(
@@ -28222,7 +28222,7 @@ const wz = Bd(void 0), Vde = ({
28222
28222
  d,
28223
28223
  ge
28224
28224
  ]
28225
- ), de = Te(
28225
+ ), de = je(
28226
28226
  (Me) => {
28227
28227
  const He = ge(
28228
28228
  "resolve",
@@ -28231,7 +28231,7 @@ const wz = Bd(void 0), Vde = ({
28231
28231
  f == null || f(Me, He);
28232
28232
  },
28233
28233
  [t, f, ge]
28234
- ), he = Te(
28234
+ ), he = je(
28235
28235
  (Me) => {
28236
28236
  const He = ge(
28237
28237
  "unresolve",
@@ -28240,7 +28240,7 @@ const wz = Bd(void 0), Vde = ({
28240
28240
  g == null || g(Me, He);
28241
28241
  },
28242
28242
  [t, g, ge]
28243
- ), R = Te(
28243
+ ), R = je(
28244
28244
  (Me) => {
28245
28245
  const He = ge(
28246
28246
  "delete",
@@ -28249,7 +28249,7 @@ const wz = Bd(void 0), Vde = ({
28249
28249
  m == null || m(Me, He);
28250
28250
  },
28251
28251
  [t, m, ge]
28252
- ), W = Te(
28252
+ ), W = je(
28253
28253
  (Me, He, ut) => {
28254
28254
  if (!He.trim()) return;
28255
28255
  const nt = {
@@ -28264,7 +28264,7 @@ const wz = Bd(void 0), Vde = ({
28264
28264
  ut == null || ut(Me, nt);
28265
28265
  },
28266
28266
  [u, i]
28267
- ), re = Te(
28267
+ ), re = je(
28268
28268
  (Me) => {
28269
28269
  var ut, nt;
28270
28270
  if (!t || !((ut = t.view) != null && ut.dom) || !V.length) return;
@@ -28299,19 +28299,19 @@ const wz = Bd(void 0), Vde = ({
28299
28299
  }
28300
28300
  },
28301
28301
  [t, V, l]
28302
- ), pe = Te(
28302
+ ), pe = je(
28303
28303
  (Me) => {
28304
28304
  const He = Me.target.value;
28305
28305
  _(He), He || (Me.target.style.height = "40px");
28306
28306
  },
28307
28307
  []
28308
- ), ye = Te(
28308
+ ), ye = je(
28309
28309
  (Me) => {
28310
28310
  const He = Me.target.value;
28311
28311
  E(He), He || (Me.target.style.height = "40px");
28312
28312
  },
28313
28313
  []
28314
- ), me = Te(() => {
28314
+ ), me = je(() => {
28315
28315
  if (!M.trim() || !i) return;
28316
28316
  const Me = {
28317
28317
  id: `comment-${Uu()}`,
@@ -28337,21 +28337,21 @@ const wz = Bd(void 0), Vde = ({
28337
28337
  l,
28338
28338
  k,
28339
28339
  L
28340
- ]), Ee = Te(
28340
+ ]), Ee = je(
28341
28341
  (Me) => {
28342
28342
  Me.key === "Enter" && !Me.shiftKey && (Me.preventDefault(), me());
28343
28343
  },
28344
28344
  [me]
28345
- ), Ce = Te(() => {
28345
+ ), Ce = je(() => {
28346
28346
  !a || !O.trim() || (W(a, O, p), _(""));
28347
- }, [a, O, W, p]), fe = Te(
28347
+ }, [a, O, W, p]), fe = je(
28348
28348
  (Me) => {
28349
28349
  Me.key === "Enter" && !Me.shiftKey && (Me.preventDefault(), Ce());
28350
28350
  },
28351
28351
  [Ce]
28352
- ), Se = Te(() => {
28352
+ ), Se = je(() => {
28353
28353
  N((Me) => !Me);
28354
- }, []), _e = Te(
28354
+ }, []), _e = je(
28355
28355
  (Me, He) => {
28356
28356
  Me.currentTarget.style.height = "auto";
28357
28357
  const ut = Math.min(
@@ -28362,18 +28362,18 @@ const wz = Bd(void 0), Vde = ({
28362
28362
  Me.currentTarget.style.height = `${ut}px`;
28363
28363
  },
28364
28364
  []
28365
- ), je = jt(
28365
+ ), Te = jt(
28366
28366
  () => V.filter(
28367
28367
  (Me) => !Me.resolved && Me.selectedContent && Me.selectedContent.length > 0 && !Me.deleted
28368
28368
  ),
28369
28369
  [V]
28370
28370
  ), Be = jt(
28371
- () => je.findIndex((Me) => Me.id === a),
28372
- [je, a]
28373
- ), ot = Te(() => {
28371
+ () => Te.findIndex((Me) => Me.id === a),
28372
+ [Te, a]
28373
+ ), at = je(() => {
28374
28374
  var Me, He;
28375
28375
  if ((Me = t.view) != null && Me.dom && Be > 0) {
28376
- const ut = je[Be - 1], nt = t.view.dom.querySelector(
28376
+ const ut = Te[Be - 1], nt = t.view.dom.querySelector(
28377
28377
  `[data-comment-id="${ut.id}"]`
28378
28378
  );
28379
28379
  if (nt) {
@@ -28381,10 +28381,10 @@ const wz = Bd(void 0), Vde = ({
28381
28381
  t.commands.setTextSelection({ from: Le, to: bt }), re(ut.id || "");
28382
28382
  }
28383
28383
  }
28384
- }, [Be, je, t, re]), dt = Te(() => {
28384
+ }, [Be, Te, t, re]), dt = je(() => {
28385
28385
  var Me, He;
28386
- if ((Me = t.view) != null && Me.dom && Be < je.length - 1) {
28387
- const ut = je[Be + 1], nt = t.view.dom.querySelector(
28386
+ if ((Me = t.view) != null && Me.dom && Be < Te.length - 1) {
28387
+ const ut = Te[Be + 1], nt = t.view.dom.querySelector(
28388
28388
  `[data-comment-id="${ut.id}"]`
28389
28389
  );
28390
28390
  if (nt) {
@@ -28392,7 +28392,7 @@ const wz = Bd(void 0), Vde = ({
28392
28392
  t.commands.setTextSelection({ from: Le, to: bt }), re(ut.id || "");
28393
28393
  }
28394
28394
  }
28395
- }, [Be, je, t, re]), mt = jt(
28395
+ }, [Be, Te, t, re]), mt = jt(
28396
28396
  () => ({
28397
28397
  comments: V,
28398
28398
  showResolved: A,
@@ -28421,7 +28421,7 @@ const wz = Bd(void 0), Vde = ({
28421
28421
  reply: O,
28422
28422
  setComment: E,
28423
28423
  setReply: _,
28424
- onPrevComment: ot,
28424
+ onPrevComment: at,
28425
28425
  onNextComment: dt,
28426
28426
  activeCommentIndex: Be,
28427
28427
  activeComment: Q,
@@ -28434,7 +28434,7 @@ const wz = Bd(void 0), Vde = ({
28434
28434
  buttonRef: X,
28435
28435
  replySectionRef: z,
28436
28436
  dropdownRef: oe,
28437
- activeComments: je,
28437
+ activeComments: Te,
28438
28438
  handleInput: _e,
28439
28439
  isCommentActive: Z,
28440
28440
  isCommentResolved: ae,
@@ -28480,7 +28480,7 @@ const wz = Bd(void 0), Vde = ({
28480
28480
  O,
28481
28481
  E,
28482
28482
  _,
28483
- ot,
28483
+ at,
28484
28484
  dt,
28485
28485
  Be,
28486
28486
  Q,
@@ -28489,7 +28489,7 @@ const wz = Bd(void 0), Vde = ({
28489
28489
  Fe,
28490
28490
  Y,
28491
28491
  ie,
28492
- je,
28492
+ Te,
28493
28493
  _e,
28494
28494
  Z,
28495
28495
  ae,
@@ -31834,8 +31834,8 @@ function Zz() {
31834
31834
  const ye = Gt({}, ["audio", "video", "img", "source", "image", "track"]);
31835
31835
  let me = null;
31836
31836
  const Ee = Gt({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Ce = "http://www.w3.org/1998/Math/MathML", fe = "http://www.w3.org/2000/svg", Se = "http://www.w3.org/1999/xhtml";
31837
- let _e = Se, je = !1, Be = null;
31838
- const ot = Gt({}, [Ce, fe, Se], E4);
31837
+ let _e = Se, Te = !1, Be = null;
31838
+ const at = Gt({}, [Ce, fe, Se], E4);
31839
31839
  let dt = Gt({}, ["mi", "mo", "mn", "ms", "mtext"]), mt = Gt({}, ["annotation-xml"]);
31840
31840
  const Me = Gt({}, ["title", "style", "font", "a", "script"]);
31841
31841
  let He = null;
@@ -31847,7 +31847,7 @@ function Zz() {
31847
31847
  let we = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
31848
31848
  if (!(bt && bt === we)) {
31849
31849
  if ((!we || typeof we != "object") && (we = {}), we = rl(we), He = // eslint-disable-next-line unicorn/prefer-includes
31850
- ut.indexOf(we.PARSER_MEDIA_TYPE) === -1 ? nt : we.PARSER_MEDIA_TYPE, Le = He === "application/xhtml+xml" ? E4 : R2, U = bs(we, "ALLOWED_TAGS") ? Gt({}, we.ALLOWED_TAGS, Le) : P, Y = bs(we, "ALLOWED_ATTR") ? Gt({}, we.ALLOWED_ATTR, Le) : ie, Be = bs(we, "ALLOWED_NAMESPACES") ? Gt({}, we.ALLOWED_NAMESPACES, E4) : ot, me = bs(we, "ADD_URI_SAFE_ATTR") ? Gt(rl(Ee), we.ADD_URI_SAFE_ATTR, Le) : Ee, pe = bs(we, "ADD_DATA_URI_TAGS") ? Gt(rl(ye), we.ADD_DATA_URI_TAGS, Le) : ye, W = bs(we, "FORBID_CONTENTS") ? Gt({}, we.FORBID_CONTENTS, Le) : re, X = bs(we, "FORBID_TAGS") ? Gt({}, we.FORBID_TAGS, Le) : rl({}), oe = bs(we, "FORBID_ATTR") ? Gt({}, we.FORBID_ATTR, Le) : rl({}), R = bs(we, "USE_PROFILES") ? we.USE_PROFILES : !1, ae = we.ALLOW_ARIA_ATTR !== !1, j = we.ALLOW_DATA_ATTR !== !1, K = we.ALLOW_UNKNOWN_PROTOCOLS || !1, ee = we.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ue = we.SAFE_FOR_TEMPLATES || !1, B = we.SAFE_FOR_XML !== !1, te = we.WHOLE_DOCUMENT || !1, V = we.RETURN_DOM || !1, Q = we.RETURN_DOM_FRAGMENT || !1, Fe = we.RETURN_TRUSTED_TYPE || !1, G = we.FORCE_BODY || !1, De = we.SANITIZE_DOM !== !1, ge = we.SANITIZE_NAMED_PROPS || !1, de = we.KEEP_CONTENT !== !1, he = we.IN_PLACE || !1, q = we.ALLOWED_URI_REGEXP || Yz, _e = we.NAMESPACE || Se, dt = we.MATHML_TEXT_INTEGRATION_POINTS || dt, mt = we.HTML_INTEGRATION_POINTS || mt, ne = we.CUSTOM_ELEMENT_HANDLING || {}, we.CUSTOM_ELEMENT_HANDLING && tn(we.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (ne.tagNameCheck = we.CUSTOM_ELEMENT_HANDLING.tagNameCheck), we.CUSTOM_ELEMENT_HANDLING && tn(we.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (ne.attributeNameCheck = we.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), we.CUSTOM_ELEMENT_HANDLING && typeof we.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (ne.allowCustomizedBuiltInElements = we.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), ue && (j = !1), Q && (V = !0), R && (U = Gt({}, OS), Y = [], R.html === !0 && (Gt(U, MS), Gt(Y, RS)), R.svg === !0 && (Gt(U, _4), Gt(Y, T4), Gt(Y, Fm)), R.svgFilters === !0 && (Gt(U, A4), Gt(Y, T4), Gt(Y, Fm)), R.mathMl === !0 && (Gt(U, S4), Gt(Y, IS), Gt(Y, Fm))), we.ADD_TAGS && (typeof we.ADD_TAGS == "function" ? Z.tagCheck = we.ADD_TAGS : (U === P && (U = rl(U)), Gt(U, we.ADD_TAGS, Le))), we.ADD_ATTR && (typeof we.ADD_ATTR == "function" ? Z.attributeCheck = we.ADD_ATTR : (Y === ie && (Y = rl(Y)), Gt(Y, we.ADD_ATTR, Le))), we.ADD_URI_SAFE_ATTR && Gt(me, we.ADD_URI_SAFE_ATTR, Le), we.FORBID_CONTENTS && (W === re && (W = rl(W)), Gt(W, we.FORBID_CONTENTS, Le)), de && (U["#text"] = !0), te && Gt(U, ["html", "head", "body"]), U.table && (Gt(U, ["tbody"]), delete X.tbody), we.TRUSTED_TYPES_POLICY) {
31850
+ ut.indexOf(we.PARSER_MEDIA_TYPE) === -1 ? nt : we.PARSER_MEDIA_TYPE, Le = He === "application/xhtml+xml" ? E4 : R2, U = bs(we, "ALLOWED_TAGS") ? Gt({}, we.ALLOWED_TAGS, Le) : P, Y = bs(we, "ALLOWED_ATTR") ? Gt({}, we.ALLOWED_ATTR, Le) : ie, Be = bs(we, "ALLOWED_NAMESPACES") ? Gt({}, we.ALLOWED_NAMESPACES, E4) : at, me = bs(we, "ADD_URI_SAFE_ATTR") ? Gt(rl(Ee), we.ADD_URI_SAFE_ATTR, Le) : Ee, pe = bs(we, "ADD_DATA_URI_TAGS") ? Gt(rl(ye), we.ADD_DATA_URI_TAGS, Le) : ye, W = bs(we, "FORBID_CONTENTS") ? Gt({}, we.FORBID_CONTENTS, Le) : re, X = bs(we, "FORBID_TAGS") ? Gt({}, we.FORBID_TAGS, Le) : rl({}), oe = bs(we, "FORBID_ATTR") ? Gt({}, we.FORBID_ATTR, Le) : rl({}), R = bs(we, "USE_PROFILES") ? we.USE_PROFILES : !1, ae = we.ALLOW_ARIA_ATTR !== !1, j = we.ALLOW_DATA_ATTR !== !1, K = we.ALLOW_UNKNOWN_PROTOCOLS || !1, ee = we.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ue = we.SAFE_FOR_TEMPLATES || !1, B = we.SAFE_FOR_XML !== !1, te = we.WHOLE_DOCUMENT || !1, V = we.RETURN_DOM || !1, Q = we.RETURN_DOM_FRAGMENT || !1, Fe = we.RETURN_TRUSTED_TYPE || !1, G = we.FORCE_BODY || !1, De = we.SANITIZE_DOM !== !1, ge = we.SANITIZE_NAMED_PROPS || !1, de = we.KEEP_CONTENT !== !1, he = we.IN_PLACE || !1, q = we.ALLOWED_URI_REGEXP || Yz, _e = we.NAMESPACE || Se, dt = we.MATHML_TEXT_INTEGRATION_POINTS || dt, mt = we.HTML_INTEGRATION_POINTS || mt, ne = we.CUSTOM_ELEMENT_HANDLING || {}, we.CUSTOM_ELEMENT_HANDLING && tn(we.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (ne.tagNameCheck = we.CUSTOM_ELEMENT_HANDLING.tagNameCheck), we.CUSTOM_ELEMENT_HANDLING && tn(we.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (ne.attributeNameCheck = we.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), we.CUSTOM_ELEMENT_HANDLING && typeof we.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (ne.allowCustomizedBuiltInElements = we.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), ue && (j = !1), Q && (V = !0), R && (U = Gt({}, OS), Y = [], R.html === !0 && (Gt(U, MS), Gt(Y, RS)), R.svg === !0 && (Gt(U, _4), Gt(Y, T4), Gt(Y, Fm)), R.svgFilters === !0 && (Gt(U, A4), Gt(Y, T4), Gt(Y, Fm)), R.mathMl === !0 && (Gt(U, S4), Gt(Y, IS), Gt(Y, Fm))), we.ADD_TAGS && (typeof we.ADD_TAGS == "function" ? Z.tagCheck = we.ADD_TAGS : (U === P && (U = rl(U)), Gt(U, we.ADD_TAGS, Le))), we.ADD_ATTR && (typeof we.ADD_ATTR == "function" ? Z.attributeCheck = we.ADD_ATTR : (Y === ie && (Y = rl(Y)), Gt(Y, we.ADD_ATTR, Le))), we.ADD_URI_SAFE_ATTR && Gt(me, we.ADD_URI_SAFE_ATTR, Le), we.FORBID_CONTENTS && (W === re && (W = rl(W)), Gt(W, we.FORBID_CONTENTS, Le)), de && (U["#text"] = !0), te && Gt(U, ["html", "head", "body"]), U.table && (Gt(U, ["tbody"]), delete X.tbody), we.TRUSTED_TYPES_POLICY) {
31851
31851
  if (typeof we.TRUSTED_TYPES_POLICY.createHTML != "function")
31852
31852
  throw m0('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
31853
31853
  if (typeof we.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -31915,7 +31915,7 @@ function Zz() {
31915
31915
  if (!Pe || !Pe.documentElement) {
31916
31916
  Pe = w.createDocument(_e, "template", null);
31917
31917
  try {
31918
- Pe.documentElement.innerHTML = je ? D : Jt;
31918
+ Pe.documentElement.innerHTML = Te ? D : Jt;
31919
31919
  } catch {
31920
31920
  }
31921
31921
  }
@@ -31931,7 +31931,7 @@ function Zz() {
31931
31931
  );
31932
31932
  }, Ie = function(we) {
31933
31933
  return we instanceof d && (typeof we.nodeName != "string" || typeof we.textContent != "string" || typeof we.removeChild != "function" || !(we.attributes instanceof c) || typeof we.removeAttribute != "function" || typeof we.setAttribute != "function" || typeof we.namespaceURI != "string" || typeof we.insertBefore != "function" || typeof we.hasChildNodes != "function");
31934
- }, it = function(we) {
31934
+ }, ot = function(we) {
31935
31935
  return typeof a == "function" && we instanceof a;
31936
31936
  };
31937
31937
  function ft(Qe, we, Pe) {
@@ -31947,7 +31947,7 @@ function Zz() {
31947
31947
  if (ft(O.uponSanitizeElement, we, {
31948
31948
  tagName: lt,
31949
31949
  allowedTags: U
31950
- }), B && we.hasChildNodes() && !it(we.firstElementChild) && Ao(/<[/\w!]/g, we.innerHTML) && Ao(/<[/\w!]/g, we.textContent) || we.nodeType === y0.progressingInstruction || B && we.nodeType === y0.comment && Ao(/<[/\w]/g, we.data))
31950
+ }), B && we.hasChildNodes() && !ot(we.firstElementChild) && Ao(/<[/\w!]/g, we.innerHTML) && Ao(/<[/\w!]/g, we.textContent) || we.nodeType === y0.progressingInstruction || B && we.nodeType === y0.comment && Ao(/<[/\w]/g, we.data))
31951
31951
  return gn(we), !0;
31952
31952
  if (!(Z.tagCheck instanceof Function && Z.tagCheck(lt)) && (!U[lt] || X[lt])) {
31953
31953
  if (!X[lt] && $t(lt) && (ne.tagNameCheck instanceof RegExp && Ao(ne.tagNameCheck, lt) || ne.tagNameCheck instanceof Function && ne.tagNameCheck(lt)))
@@ -32076,7 +32076,7 @@ function Zz() {
32076
32076
  };
32077
32077
  return t.sanitize = function(Qe) {
32078
32078
  let we = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, Pe = null, lt = null, Jt = null, et = null;
32079
- if (je = !Qe, je && (Qe = "<!-->"), typeof Qe != "string" && !it(Qe))
32079
+ if (Te = !Qe, Te && (Qe = "<!-->"), typeof Qe != "string" && !ot(Qe))
32080
32080
  if (typeof Qe.toString == "function") {
32081
32081
  if (Qe = Qe.toString(), typeof Qe != "string")
32082
32082
  throw m0("dirty is not a string, aborting");
@@ -36492,7 +36492,7 @@ const L2 = (e) => {
36492
36492
  onClick: () => {
36493
36493
  e.chain().focus().toggleHighlight({ color: r.color }).run(), t(Ye.NONE);
36494
36494
  },
36495
- className: st(
36495
+ className: it(
36496
36496
  "w-5 rounded-full flex items-center justify-center cursor-pointer ease-in duration-200 hover:scale-[1.05] h-5",
36497
36497
  r.code
36498
36498
  ),
@@ -36500,7 +36500,7 @@ const L2 = (e) => {
36500
36500
  Ue,
36501
36501
  {
36502
36502
  name: "Check",
36503
- className: st(
36503
+ className: it(
36504
36504
  "w-[14px] aspect-square",
36505
36505
  e.isActive("highlight", {
36506
36506
  color: r.color
@@ -36538,7 +36538,7 @@ const L2 = (e) => {
36538
36538
  "div",
36539
36539
  {
36540
36540
  ref: e,
36541
- className: st(
36541
+ className: it(
36542
36542
  "z-50 h-auto w-48 color-bg-default px-1 py-2 shadow-elevation-1 transition-all rounded",
36543
36543
  "max-h-[80vh] overflow-y-auto"
36544
36544
  ),
@@ -36552,7 +36552,7 @@ const L2 = (e) => {
36552
36552
  style: {
36553
36553
  fontFamily: r.title
36554
36554
  },
36555
- className: st(
36555
+ className: it(
36556
36556
  "flex w-full items-center space-x-2 rounded px-2 py-1 text-left text-sm color-text-default transition",
36557
36557
  t.isActive("textStyle", { fontFamily: r.value }) ? "color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]" : "hover:color-bg-default-hover"
36558
36558
  ),
@@ -36578,7 +36578,7 @@ const L2 = (e) => {
36578
36578
  onClick: () => {
36579
36579
  t == null || t.chain().focus().setTextAlign("left").run(), n(Ye.NONE);
36580
36580
  },
36581
- className: st(
36581
+ className: it(
36582
36582
  "rounded w-8 h-8 p-1 flex justify-center items-center cursor-pointer transition",
36583
36583
  t.isActive({ textAlign: "left" }) ? "color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]" : "hover:color-bg-default-hover"
36584
36584
  ),
@@ -36592,7 +36592,7 @@ const L2 = (e) => {
36592
36592
  onClick: () => {
36593
36593
  t == null || t.chain().focus().setTextAlign("center").run(), n(Ye.NONE);
36594
36594
  },
36595
- className: st(
36595
+ className: it(
36596
36596
  "rounded w-8 h-8 p-1 flex justify-center items-center cursor-pointer transition",
36597
36597
  t.isActive({ textAlign: "center" }) ? "color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]" : "hover:color-bg-default-hover"
36598
36598
  ),
@@ -36606,7 +36606,7 @@ const L2 = (e) => {
36606
36606
  onClick: () => {
36607
36607
  t == null || t.chain().focus().setTextAlign("right").run(), n(Ye.NONE);
36608
36608
  },
36609
- className: st(
36609
+ className: it(
36610
36610
  "rounded w-8 h-8 p-1 flex justify-center items-center cursor-pointer transition",
36611
36611
  t.isActive({ textAlign: "right" }) ? "color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]" : "hover:color-bg-default-hover"
36612
36612
  ),
@@ -36620,7 +36620,7 @@ const L2 = (e) => {
36620
36620
  onClick: () => {
36621
36621
  t == null || t.chain().focus().setTextAlign("justify").run(), n(Ye.NONE);
36622
36622
  },
36623
- className: st(
36623
+ className: it(
36624
36624
  "rounded w-8 h-8 p-1 flex justify-center items-center cursor-pointer transition",
36625
36625
  t.isActive({ textAlign: "justify" }) ? "color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]" : "hover:color-bg-default-hover"
36626
36626
  ),
@@ -36637,7 +36637,7 @@ const L2 = (e) => {
36637
36637
  setIsLinkPopupOpen: o,
36638
36638
  onError: i
36639
36639
  }) => {
36640
- const [s, a] = Ne(t.getAttributes("link").href), l = Te(() => {
36640
+ const [s, a] = Ne(t.getAttributes("link").href), l = je(() => {
36641
36641
  if (s === "" || s === void 0) {
36642
36642
  t.chain().focus().extendMarkRange("link").unsetLink().run();
36643
36643
  return;
@@ -36716,7 +36716,7 @@ const L2 = (e) => {
36716
36716
  onClick: () => {
36717
36717
  r.command();
36718
36718
  },
36719
- className: st(
36719
+ className: it(
36720
36720
  "flex items-center justify-between w-full px-2 py-1 text-body-sm",
36721
36721
  r.isActive() && "color-bg-brand hover:!bg-[#B6A02E] dark:text-[#363B3F]"
36722
36722
  ),
@@ -36753,7 +36753,7 @@ const L2 = (e) => {
36753
36753
  onClick: () => {
36754
36754
  e && (e.chain().focus().setColor(a).run(), t(Ye.NONE));
36755
36755
  },
36756
- className: st(
36756
+ className: it(
36757
36757
  "w-5 rounded-full flex justify-center items-center cursor-pointer ease-in duration-200 hover:scale-[1.05] h-5"
36758
36758
  ),
36759
36759
  style: { backgroundColor: a },
@@ -36761,7 +36761,7 @@ const L2 = (e) => {
36761
36761
  Ue,
36762
36762
  {
36763
36763
  name: "Check",
36764
- className: st(
36764
+ className: it(
36765
36765
  "w-[14px] aspect-square",
36766
36766
  e != null && e.isActive("textStyle", {
36767
36767
  color: a
@@ -36837,7 +36837,7 @@ const L2 = (e) => {
36837
36837
  "div",
36838
36838
  {
36839
36839
  ref: n,
36840
- className: st(
36840
+ className: it(
36841
36841
  "z-50 flex w-48 flex-col overflow-hidden rounded color-bg-default p-1 shadow-elevation-1"
36842
36842
  ),
36843
36843
  children: r.map((o) => /* @__PURE__ */ F.jsxs(
@@ -36847,7 +36847,7 @@ const L2 = (e) => {
36847
36847
  onClick: () => {
36848
36848
  o.command(e), t(Ye.NONE);
36849
36849
  },
36850
- className: st(
36850
+ className: it(
36851
36851
  "flex w-full items-center space-x-2 rounded-md px-2 py-1 text-left text-sm color-text-default transition",
36852
36852
  {
36853
36853
  "color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]": o.isActive(),
@@ -36882,7 +36882,7 @@ const L2 = (e) => {
36882
36882
  "div",
36883
36883
  {
36884
36884
  ref: n,
36885
- className: st(
36885
+ className: it(
36886
36886
  "z-50 flex flex-col justify-center items-center overflow-hidden rounded color-bg-default p-2 gap-1 shadow-elevation-1"
36887
36887
  ),
36888
36888
  children: i.map((s) => /* @__PURE__ */ F.jsx(
@@ -36892,7 +36892,7 @@ const L2 = (e) => {
36892
36892
  onClick: () => {
36893
36893
  o(s.value), t(Ye.NONE);
36894
36894
  },
36895
- className: st(
36895
+ className: it(
36896
36896
  "flex w-full items-center justify-center rounded px-2 py-1 text-center text-sm color-text-default transition",
36897
36897
  {
36898
36898
  "color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]": r === s.value,
@@ -36916,7 +36916,7 @@ const L2 = (e) => {
36916
36916
  "div",
36917
36917
  {
36918
36918
  ref: t,
36919
- className: st(
36919
+ className: it(
36920
36920
  "z-50 flex flex-col justify-center items-center overflow-hidden rounded color-bg-default p-2 gap-1 shadow-elevation-1"
36921
36921
  ),
36922
36922
  children: o.map((i) => /* @__PURE__ */ F.jsxs(
@@ -36926,7 +36926,7 @@ const L2 = (e) => {
36926
36926
  onClick: () => {
36927
36927
  r(i.value), e(Ye.NONE);
36928
36928
  },
36929
- className: st(
36929
+ className: it(
36930
36930
  "flex w-full items-center gap-2 rounded px-2 py-1 text-sm color-text-default transition min-w-[120px]",
36931
36931
  {
36932
36932
  "color-bg-default-hover": n === i.value,
@@ -37172,7 +37172,7 @@ const L2 = (e) => {
37172
37172
  "button",
37173
37173
  {
37174
37174
  onClick: () => e && u.command(e),
37175
- className: st(
37175
+ className: it(
37176
37176
  "flex w-fit items-center font-medium space-x-2 rounded p-2 text-center text-sm color-text-default transition",
37177
37177
  {
37178
37178
  "color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]": u.isActive(),
@@ -37188,7 +37188,7 @@ const L2 = (e) => {
37188
37188
  "button",
37189
37189
  {
37190
37190
  onClick: () => e && u.command(e),
37191
- className: st(
37191
+ className: it(
37192
37192
  "flex items-center space-x-2 rounded px-4 py-1 color-text-default transition h-9",
37193
37193
  {
37194
37194
  "color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]": u.isActive(),
@@ -37203,7 +37203,7 @@ const L2 = (e) => {
37203
37203
  "button",
37204
37204
  {
37205
37205
  onClick: () => e && u.command(e),
37206
- className: st(
37206
+ className: it(
37207
37207
  "flex items-center space-x-2 rounded px-4 py-1 color-text-default transition h-9",
37208
37208
  {
37209
37209
  "color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]": u.isActive(),
@@ -37220,7 +37220,7 @@ const L2 = (e) => {
37220
37220
  "button",
37221
37221
  {
37222
37222
  onClick: () => e && u.command(e),
37223
- className: st(
37223
+ className: it(
37224
37224
  "flex items-center space-x-2 rounded px-4 py-1 color-text-default transition h-9",
37225
37225
  {
37226
37226
  "color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]": u.isActive(),
@@ -37235,7 +37235,7 @@ const L2 = (e) => {
37235
37235
  "button",
37236
37236
  {
37237
37237
  onClick: () => e && u.command(e),
37238
- className: st(
37238
+ className: it(
37239
37239
  "flex items-center space-x-2 rounded px-4 py-1 color-text-default transition h-9",
37240
37240
  {
37241
37241
  "color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]": u.isActive(),
@@ -37251,7 +37251,7 @@ const L2 = (e) => {
37251
37251
  "button",
37252
37252
  {
37253
37253
  onClick: () => e && u.command(e),
37254
- className: st(
37254
+ className: it(
37255
37255
  "flex items-center space-x-2 rounded px-4 py-1 color-text-default transition h-9",
37256
37256
  {
37257
37257
  "color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]": u.isActive(),
@@ -37305,7 +37305,7 @@ const L2 = (e) => {
37305
37305
  onClick: () => {
37306
37306
  e && e.chain().setColor(u.color).run();
37307
37307
  },
37308
- className: st(
37308
+ className: it(
37309
37309
  "w-6 h-6 mb-1 drop-shadow rounded-full flex justify-center items-center cursor-pointer transition",
37310
37310
  u.code
37311
37311
  ),
@@ -37313,7 +37313,7 @@ const L2 = (e) => {
37313
37313
  Ue,
37314
37314
  {
37315
37315
  name: "Check",
37316
- className: st(
37316
+ className: it(
37317
37317
  "w-[14px] aspect-square",
37318
37318
  e != null && e.isActive("textStyle", {
37319
37319
  color: u.color
@@ -37678,7 +37678,7 @@ const L2 = (e) => {
37678
37678
  onClick: () => {
37679
37679
  o.command();
37680
37680
  },
37681
- className: st(
37681
+ className: it(
37682
37682
  "flex items-center justify-between rounded-sm px-2 py-1 text-body-sm hover:color-bg-default-hover transition-all",
37683
37683
  {
37684
37684
  "color-bg-brand hover:color-bg-brand-hover dark:text-[#363B3F]": o.isActive()
@@ -37832,7 +37832,7 @@ const L2 = (e) => {
37832
37832
  const T = m.current.closest('[role="dialog"]');
37833
37833
  T && T.remove();
37834
37834
  }
37835
- }, E = Te(() => {
37835
+ }, E = je(() => {
37836
37836
  if (!(o != null && o.length)) return null;
37837
37837
  let S = o.sort(
37838
37838
  (T, L) => new Date(T.createdAt || /* @__PURE__ */ new Date()).getTime() - new Date(L.createdAt || /* @__PURE__ */ new Date()).getTime()
@@ -38699,12 +38699,12 @@ const Vge = /* @__PURE__ */ ic(qge), w0 = () => {
38699
38699
  });
38700
38700
  }), !c;
38701
38701
  }, I$ = (e) => {
38702
- const t = Te(
38702
+ const t = je(
38703
38703
  (o) => {
38704
38704
  e && e.chain().focus().setFontSize(o).run();
38705
38705
  },
38706
38706
  [e]
38707
- ), n = Te(
38707
+ ), n = je(
38708
38708
  (o) => {
38709
38709
  if (!e) return;
38710
38710
  const { from: i, to: s } = e.state.selection;
@@ -39727,7 +39727,7 @@ const H$ = yr(
39727
39727
  className: r,
39728
39728
  ...o
39729
39729
  }, i) => {
39730
- const s = st(
39730
+ const s = it(
39731
39731
  "color-text-default inline-flex h-full leading-none gap-0.5",
39732
39732
  n ? "flex-col p-2" : "flex-row p-1 items-center",
39733
39733
  r
@@ -39738,7 +39738,7 @@ const H$ = yr(
39738
39738
  H$.displayName = "Toolbar";
39739
39739
  const rme = yr(
39740
39740
  ({ horizontal: e, className: t, ...n }, r) => {
39741
- const o = st(
39741
+ const o = it(
39742
39742
  "bg-neutral-200",
39743
39743
  e ? "w-full min-w-[1.5rem] h-[1px] my-1 first:mt-0 last:mt-0" : "h-full min-h-[1.5rem] w-[1px] mx-1 first:ml-0 last:mr-0",
39744
39744
  t
@@ -39750,16 +39750,16 @@ rme.displayName = "Toolbar.Divider";
39750
39750
  const ome = {
39751
39751
  Wrapper: H$
39752
39752
  }, ime = ({ editor: e, appendTo: t }) => {
39753
- const n = Te(() => nme(e, "columns"), [e]), r = Te(() => {
39753
+ const n = je(() => nme(e, "columns"), [e]), r = je(() => {
39754
39754
  const l = !e.isEditable;
39755
39755
  return e.isActive("columns") && !l;
39756
- }, [e]), o = Te(() => {
39756
+ }, [e]), o = je(() => {
39757
39757
  e.chain().focus().setLayout(jc.AlignLeft).run();
39758
- }, [e]), i = Te(() => {
39758
+ }, [e]), i = je(() => {
39759
39759
  e.chain().focus().setLayout(jc.AlignRight).run();
39760
- }, [e]), s = Te(() => {
39760
+ }, [e]), s = je(() => {
39761
39761
  e.chain().focus().setLayout(jc.AlignCenter).run();
39762
- }, [e]), a = Te(() => {
39762
+ }, [e]), a = je(() => {
39763
39763
  e.chain().focus().deleteNode("columns").run();
39764
39764
  }, [e]);
39765
39765
  return /* @__PURE__ */ F.jsx(
@@ -40246,13 +40246,13 @@ const Ame = ({
40246
40246
  ydoc: n,
40247
40247
  exportOptions: r
40248
40248
  }) => {
40249
- const o = Te(
40249
+ const o = je(
40250
40250
  (b) => (b || "Untitled").replace(/\s+/g, " ").trim(),
40251
40251
  []
40252
- ), i = Te(
40252
+ ), i = je(
40253
40253
  (b) => b.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;"),
40254
40254
  []
40255
- ), s = Te((b) => b.includes("(.pdf)") ? "pdf" : b.includes("(.md)") ? "md" : b.includes("(.html)") ? "html" : b.includes("(.txt)") ? "txt" : "", []), a = jt(
40255
+ ), s = je((b) => b.includes("(.pdf)") ? "pdf" : b.includes("(.md)") ? "md" : b.includes("(.html)") ? "html" : b.includes("(.txt)") ? "txt" : "", []), a = jt(
40256
40256
  () => r.filter((b) => b !== null).reduce((b, y) => {
40257
40257
  const x = s(y.title);
40258
40258
  return x && (b[x] = y), b;
@@ -40264,26 +40264,26 @@ const Ame = ({
40264
40264
  label: y.title
40265
40265
  })),
40266
40266
  [a]
40267
- ), u = Te(() => {
40267
+ ), u = je(() => {
40268
40268
  if (!e) return "Untitled";
40269
40269
  const b = e.getJSON();
40270
40270
  return L2(
40271
40271
  b
40272
40272
  ) || "Untitled";
40273
- }, [e]), c = Te(
40273
+ }, [e]), c = je(
40274
40274
  async (b, y) => {
40275
40275
  const x = a[b];
40276
40276
  !x || x.disabled || x.onClick(y);
40277
40277
  },
40278
40278
  [a]
40279
- ), d = Te(
40279
+ ), d = je(
40280
40280
  (b) => {
40281
40281
  if (!e || !n) return null;
40282
40282
  const y = n.getXmlFragment(b), x = _me(y);
40283
40283
  return Fg(e, x);
40284
40284
  },
40285
40285
  [e, n]
40286
- ), p = Te(async () => {
40286
+ ), p = je(async () => {
40287
40287
  if (!e || !n || t.length === 0) return;
40288
40288
  const b = [];
40289
40289
  try {
@@ -40313,7 +40313,7 @@ const Ame = ({
40313
40313
  o,
40314
40314
  t,
40315
40315
  n
40316
- ]), h = Te(
40316
+ ]), h = je(
40317
40317
  async (b) => {
40318
40318
  if (!e || !n || t.length === 0) return;
40319
40319
  const y = b || u(), x = [];
@@ -40342,7 +40342,7 @@ ${M}`.trim());
40342
40342
  }
40343
40343
  },
40344
40344
  [d, e, u, o, t, n]
40345
- ), f = Te(
40345
+ ), f = je(
40346
40346
  async (b) => {
40347
40347
  if (!e || !n || t.length === 0) return;
40348
40348
  const y = b || u(), x = [];
@@ -40376,7 +40376,7 @@ ${O.getHTML()}`
40376
40376
  t,
40377
40377
  n
40378
40378
  ]
40379
- ), g = Te(
40379
+ ), g = je(
40380
40380
  async (b) => {
40381
40381
  if (!e || !n || t.length === 0) return;
40382
40382
  const y = b || u(), x = [];
@@ -40404,7 +40404,7 @@ ${O.getHTML()}`
40404
40404
  }
40405
40405
  },
40406
40406
  [d, e, u, t, n]
40407
- ), m = Te(
40407
+ ), m = je(
40408
40408
  ({ format: b, tab: y, name: x }) => {
40409
40409
  (async () => {
40410
40410
  if (!e) return;
@@ -40468,7 +40468,7 @@ ${O.getHTML()}`
40468
40468
  { id: "all", label: "All tabs" }
40469
40469
  ],
40470
40470
  []
40471
- ), C = s.length > 1, A = Te(
40471
+ ), C = s.length > 1, A = je(
40472
40472
  (N = "pdf", O) => {
40473
40473
  if (D.find(
40474
40474
  (M) => M.id === N
@@ -46508,7 +46508,7 @@ const MH = (e, t) => ({ node: n, updateAttributes: r, deleteNode: o }) => {
46508
46508
  Ca,
46509
46509
  {
46510
46510
  as: "article",
46511
- className: st(
46511
+ className: it(
46512
46512
  "media-node-view not-prose transition-all ease-in-out w-full",
46513
46513
  S && `f-${n.attrs.dataFloat}`,
46514
46514
  L && `justify-${n.attrs.dataAlign}`
@@ -46518,7 +46518,7 @@ const MH = (e, t) => ({ node: n, updateAttributes: r, deleteNode: o }) => {
46518
46518
  {
46519
46519
  draggable: b,
46520
46520
  "data-drag-handle": b,
46521
- className: st(
46521
+ className: it(
46522
46522
  "w-fit flex flex-col relative group transition-all ease-in-out",
46523
46523
  b && "opacity-50"
46524
46524
  ),
@@ -46530,7 +46530,7 @@ const MH = (e, t) => ({ node: n, updateAttributes: r, deleteNode: o }) => {
46530
46530
  /* @__PURE__ */ F.jsxs(
46531
46531
  "div",
46532
46532
  {
46533
- className: st(
46533
+ className: it(
46534
46534
  "relative",
46535
46535
  n.attrs.dataAlign === "start" && "self-start",
46536
46536
  n.attrs.dataAlign === "center" && "self-center",
@@ -46595,7 +46595,7 @@ const MH = (e, t) => ({ node: n, updateAttributes: r, deleteNode: o }) => {
46595
46595
  "iframe",
46596
46596
  {
46597
46597
  ref: f,
46598
- className: st(
46598
+ className: it(
46599
46599
  "rounded-lg max-w-full",
46600
46600
  g && "pointer-events-none"
46601
46601
  ),
@@ -46649,7 +46649,7 @@ const MH = (e, t) => ({ node: n, updateAttributes: r, deleteNode: o }) => {
46649
46649
  Y.style.fontSize = "16px";
46650
46650
  },
46651
46651
  autoFocus: !0,
46652
- className: st(
46652
+ className: it(
46653
46653
  "bg-transparent color-text-secondary dark:!text-[#888888] resize-none !mt-2",
46654
46654
  "placeholder-disabled",
46655
46655
  {
@@ -48063,7 +48063,7 @@ const aF = _t.use || // This extra generic is to avoid TypeScript mixing up the
48063
48063
  }, [
48064
48064
  r,
48065
48065
  b
48066
- ]), z = rg.useSyncExternalStore(Te(
48066
+ ]), z = rg.useSyncExternalStore(je(
48067
48067
  (ue) => _(b, (B, te) => {
48068
48068
  T(te, B) || ue();
48069
48069
  }),
@@ -48072,7 +48072,7 @@ const aF = _t.use || // This extra generic is to avoid TypeScript mixing up the
48072
48072
  r,
48073
48073
  b
48074
48074
  ]
48075
- ), L[0], L[1]), $ = !x.current, q = h[b] && h[b].length > 0, U = z.data, P = rn(U) ? S && qH(S) ? aF(S) : S : U, Y = z.error, ie = Ge(P), ne = p ? rn(U) ? rn(ie.current) ? P : ie.current : U : P, X = q && !rn(Y) ? !1 : $ && !rn(a) ? a : C().isPaused() ? !1 : i ? rn(P) ? !1 : l : rn(P) || l, oe = !!(b && t && $ && X), Z = rn(z.isValidating) ? oe : z.isValidating, ae = rn(z.isLoading) ? oe : z.isLoading, j = Te(
48075
+ ), L[0], L[1]), $ = !x.current, q = h[b] && h[b].length > 0, U = z.data, P = rn(U) ? S && qH(S) ? aF(S) : S : U, Y = z.error, ie = Ge(P), ne = p ? rn(U) ? rn(ie.current) ? P : ie.current : U : P, X = q && !rn(Y) ? !1 : $ && !rn(a) ? a : C().isPaused() ? !1 : i ? rn(P) ? !1 : l : rn(P) || l, oe = !!(b && t && $ && X), Z = rn(z.isValidating) ? oe : z.isValidating, ae = rn(z.isLoading) ? oe : z.isLoading, j = je(
48076
48076
  async (ue) => {
48077
48077
  const B = w.current;
48078
48078
  if (!b || !B || v.current || C().isPaused())
@@ -48135,7 +48135,7 @@ const aF = _t.use || // This extra generic is to avoid TypeScript mixing up the
48135
48135
  b,
48136
48136
  r
48137
48137
  ]
48138
- ), K = Te(
48138
+ ), K = je(
48139
48139
  // Use callback to make sure `keyRef.current` returns latest result every time
48140
48140
  (...ue) => GH(r, D.current, ...ue),
48141
48141
  // eslint-disable-next-line react-hooks/exhaustive-deps
@@ -48385,7 +48385,7 @@ const nve = ({
48385
48385
  fD.delete(y), l.current && (cancelAnimationFrame(l.current), l.current = null);
48386
48386
  };
48387
48387
  }, [n]);
48388
- const u = Te(() => {
48388
+ const u = je(() => {
48389
48389
  const { doc: y } = n.state, x = y.content.content.filter(
48390
48390
  (C) => {
48391
48391
  var A, N, O;
@@ -48404,7 +48404,7 @@ const nve = ({
48404
48404
  headingCount: x
48405
48405
  };
48406
48406
  return o.current = k, i.current = v, ep = k, LT = D, k;
48407
- }, [n]), c = Te((y) => {
48407
+ }, [n]), c = je((y) => {
48408
48408
  var k;
48409
48409
  const { doc: x } = y.state, v = /* @__PURE__ */ new Map(), D = [];
48410
48410
  let w = 0;
@@ -48499,7 +48499,7 @@ const nve = ({
48499
48499
  u,
48500
48500
  e.content,
48501
48501
  s
48502
- ]), m = Te(() => {
48502
+ ]), m = je(() => {
48503
48503
  var C;
48504
48504
  if (!h) return;
48505
48505
  const y = t(), { headingMap: x } = u(), v = x.get(h);
@@ -48527,7 +48527,7 @@ const nve = ({
48527
48527
  const A = t() + e.nodeSize;
48528
48528
  n.chain().focus(A - 1).run();
48529
48529
  });
48530
- }, [n, h, u, t, e]), b = Te(() => {
48530
+ }, [n, h, u, t, e]), b = je(() => {
48531
48531
  var C, A;
48532
48532
  if (!h) return t() + e.nodeSize;
48533
48533
  const { headingMap: y } = u(), x = y.get(h);
@@ -48661,7 +48661,7 @@ const nve = ({
48661
48661
  }
48662
48662
  };
48663
48663
  function ove(e) {
48664
- const [t, n] = Ne(!1), r = Ge(e), o = Ge(null), i = Te(() => {
48664
+ const [t, n] = Ne(!1), r = Ge(e), o = Ge(null), i = je(() => {
48665
48665
  if (!r.current) {
48666
48666
  n(!1);
48667
48667
  return;
@@ -48692,10 +48692,10 @@ function ove(e) {
48692
48692
  );
48693
48693
  }
48694
48694
  const ive = (e, t, n) => {
48695
- const r = ove(e), o = Te(() => {
48695
+ const r = ove(e), o = je(() => {
48696
48696
  const l = e.chain();
48697
48697
  l.setNodeSelection(n).unsetAllMarks(), (t == null ? void 0 : t.type.name) !== "paragraph" && l.setParagraph(), l.run();
48698
- }, [e, n, t == null ? void 0 : t.type.name]), i = Te(() => {
48698
+ }, [e, n, t == null ? void 0 : t.type.name]), i = je(() => {
48699
48699
  if (r)
48700
48700
  return;
48701
48701
  e.commands.setNodeSelection(n);
@@ -48704,13 +48704,13 @@ const ive = (e, t, n) => {
48704
48704
  n + ((t == null ? void 0 : t.nodeSize) || 0),
48705
48705
  u.toJSON()
48706
48706
  ).run();
48707
- }, [e, n, t == null ? void 0 : t.nodeSize]), s = Te(() => {
48707
+ }, [e, n, t == null ? void 0 : t.nodeSize]), s = je(() => {
48708
48708
  e.chain().setMeta("hideDragHandle", !0).setNodeSelection(n).run(), document.execCommand("copy"), Bk({
48709
48709
  title: "Copied to clipboard",
48710
48710
  toastType: "mini",
48711
48711
  variant: "success"
48712
48712
  });
48713
- }, [e, n]), a = Te(() => {
48713
+ }, [e, n]), a = je(() => {
48714
48714
  rve(e, n), e.chain().setMeta("hideDragHandle", !0).setNodeSelection(n).deleteSelection().run();
48715
48715
  }, [e, n]);
48716
48716
  return {
@@ -52042,7 +52042,7 @@ const Ive = _t.memo(
52042
52042
  node: e,
52043
52043
  getPos: t,
52044
52044
  editor: n
52045
- }), k = Te(() => {
52045
+ }), k = je(() => {
52046
52046
  const { content: j } = e.content, K = j[0].attrs.id, ee = j[0].content.content[0].text, ue = S9(ee), B = K.replace(/-/g, "").substring(0, 8), te = `heading=${ue}-${B}`;
52047
52047
  i == null || i(te);
52048
52048
  }, [e.content, i]), C = jt(() => {
@@ -52108,31 +52108,31 @@ const Ive = _t.memo(
52108
52108
  }, M = (j, K) => {
52109
52109
  const ee = t(), ue = ee + e.nodeSize;
52110
52110
  j === "img" ? n == null || n.chain().focus(ee).deleteRange({ from: ee === 0 ? ee : ee + 1, to: ue }).setMedia({ src: K, "media-type": "img" }).run() : j !== "secure-img" && (n == null || n.chain().focus(ee).deleteRange({ from: ee === 0 ? ee : ee + 1, to: ue }).setIframe({ src: K, width: 640, height: 360 }).run());
52111
- }, E = Te((j) => {
52111
+ }, E = je((j) => {
52112
52112
  j.altKey ? T() : S();
52113
- }, []), S = Te(() => {
52113
+ }, []), S = je(() => {
52114
52114
  const j = t() + e.nodeSize;
52115
52115
  n.commands.insertContentAt(j, {
52116
52116
  type: "dBlock",
52117
52117
  content: [{ type: "paragraph" }]
52118
52118
  });
52119
- }, [t, n, e.nodeSize]), T = Te(() => {
52119
+ }, [t, n, e.nodeSize]), T = je(() => {
52120
52120
  const j = t();
52121
52121
  n.commands.insertContentAt(j, {
52122
52122
  type: "dBlock",
52123
52123
  content: [{ type: "paragraph" }]
52124
52124
  });
52125
- }, [t, n]), L = Te(
52125
+ }, [t, n]), L = je(
52126
52126
  (j) => {
52127
52127
  j.altKey ? r() : l((K) => !K);
52128
52128
  },
52129
52129
  [r]
52130
- ), z = Te(() => {
52130
+ ), z = je(() => {
52131
52131
  _();
52132
52132
  }, [A, O]), $ = jt(
52133
52133
  () => A9(z, 1e3),
52134
52134
  [z]
52135
- ), q = Te(
52135
+ ), q = je(
52136
52136
  (j) => {
52137
52137
  const K = t() + e.nodeSize;
52138
52138
  n.commands.insertContentAt(K - 4, j);
@@ -52144,7 +52144,7 @@ const Ive = _t.memo(
52144
52144
  ), P = jt(
52145
52145
  () => uve(q),
52146
52146
  [q]
52147
- ), Y = Te(() => {
52147
+ ), Y = je(() => {
52148
52148
  c(!u), p(u ? 2 : P.length);
52149
52149
  }, [u, P.length]), ie = jt(() => {
52150
52150
  switch (w) {
@@ -54308,20 +54308,20 @@ function wFe(e, t) {
54308
54308
  if (_e === void 0 && (_e = !0), C.forEach(function(Be) {
54309
54309
  Be[fe] && Be[fe].apply(Be, Se);
54310
54310
  }), _e) {
54311
- var je;
54312
- (je = v.props)[fe].apply(je, Se);
54311
+ var Te;
54312
+ (Te = v.props)[fe].apply(Te, Se);
54313
54313
  }
54314
54314
  }
54315
54315
  function $() {
54316
54316
  var fe = v.props.aria;
54317
54317
  if (fe.content) {
54318
- var Se = "aria-" + fe.content, _e = w.id, je = Fp(v.props.triggerTarget || e);
54319
- je.forEach(function(Be) {
54320
- var ot = Be.getAttribute(Se);
54318
+ var Se = "aria-" + fe.content, _e = w.id, Te = Fp(v.props.triggerTarget || e);
54319
+ Te.forEach(function(Be) {
54320
+ var at = Be.getAttribute(Se);
54321
54321
  if (v.state.isVisible)
54322
- Be.setAttribute(Se, ot ? ot + " " + _e : _e);
54322
+ Be.setAttribute(Se, at ? at + " " + _e : _e);
54323
54323
  else {
54324
- var dt = ot && ot.replace(_e, "").trim();
54324
+ var dt = at && at.replace(_e, "").trim();
54325
54325
  dt ? Be.setAttribute(Se, dt) : Be.removeAttribute(Se);
54326
54326
  }
54327
54327
  });
@@ -54381,17 +54381,17 @@ function wFe(e, t) {
54381
54381
  }
54382
54382
  function ae(fe, Se) {
54383
54383
  var _e = S().box;
54384
- function je(Be) {
54385
- Be.target === _e && (fF(_e, "remove", je), Se());
54384
+ function Te(Be) {
54385
+ Be.target === _e && (fF(_e, "remove", Te), Se());
54386
54386
  }
54387
54387
  if (fe === 0)
54388
54388
  return Se();
54389
- fF(_e, "remove", d), fF(_e, "add", je), d = je;
54389
+ fF(_e, "remove", d), fF(_e, "add", Te), d = Te;
54390
54390
  }
54391
54391
  function j(fe, Se, _e) {
54392
54392
  _e === void 0 && (_e = !1);
54393
- var je = Fp(v.props.triggerTarget || e);
54394
- je.forEach(function(Be) {
54393
+ var Te = Fp(v.props.triggerTarget || e);
54394
+ Te.forEach(function(Be) {
54395
54395
  Be.addEventListener(fe, Se, _e), h.push({
54396
54396
  node: Be,
54397
54397
  eventType: fe,
@@ -54422,31 +54422,31 @@ function wFe(e, t) {
54422
54422
  }
54423
54423
  function ee() {
54424
54424
  h.forEach(function(fe) {
54425
- var Se = fe.node, _e = fe.eventType, je = fe.handler, Be = fe.options;
54426
- Se.removeEventListener(_e, je, Be);
54425
+ var Se = fe.node, _e = fe.eventType, Te = fe.handler, Be = fe.options;
54426
+ Se.removeEventListener(_e, Te, Be);
54427
54427
  }), h = [];
54428
54428
  }
54429
54429
  function ue(fe) {
54430
54430
  var Se, _e = !1;
54431
54431
  if (!(!v.state.isEnabled || G(fe) || a)) {
54432
- var je = ((Se = c) == null ? void 0 : Se.type) === "focus";
54432
+ var Te = ((Se = c) == null ? void 0 : Se.type) === "focus";
54433
54433
  c = fe, g = fe.currentTarget, q(), !v.state.isVisible && rFe(fe) && Om.forEach(function(Be) {
54434
54434
  return Be(fe);
54435
- }), fe.type === "click" && (v.props.trigger.indexOf("mouseenter") < 0 || s) && v.props.hideOnClick !== !1 && v.state.isVisible ? _e = !0 : ge(fe), fe.type === "click" && (s = !_e), _e && !je && ce(fe);
54435
+ }), fe.type === "click" && (v.props.trigger.indexOf("mouseenter") < 0 || s) && v.props.hideOnClick !== !1 && v.state.isVisible ? _e = !0 : ge(fe), fe.type === "click" && (s = !_e), _e && !Te && ce(fe);
54436
54436
  }
54437
54437
  }
54438
54438
  function B(fe) {
54439
54439
  var Se = fe.target, _e = M().contains(Se) || w.contains(Se);
54440
54440
  if (!(fe.type === "mousemove" && _e)) {
54441
- var je = De().concat(w).map(function(Be) {
54442
- var ot, dt = Be._tippy, mt = (ot = dt.popperInstance) == null ? void 0 : ot.state;
54441
+ var Te = De().concat(w).map(function(Be) {
54442
+ var at, dt = Be._tippy, mt = (at = dt.popperInstance) == null ? void 0 : at.state;
54443
54443
  return mt ? {
54444
54444
  popperRect: Be.getBoundingClientRect(),
54445
54445
  popperState: mt,
54446
54446
  props: n
54447
54447
  } : null;
54448
54448
  }).filter(Boolean);
54449
- aFe(je, fe) && (U(), ce(fe));
54449
+ aFe(Te, fe) && (U(), ce(fe));
54450
54450
  }
54451
54451
  }
54452
54452
  function te(fe) {
@@ -54467,7 +54467,7 @@ function wFe(e, t) {
54467
54467
  }
54468
54468
  function V() {
54469
54469
  Q();
54470
- var fe = v.props, Se = fe.popperOptions, _e = fe.placement, je = fe.offset, Be = fe.getReferenceClientRect, ot = fe.moveTransition, dt = _() ? vD(w).arrow : null, mt = Be ? {
54470
+ var fe = v.props, Se = fe.popperOptions, _e = fe.placement, Te = fe.offset, Be = fe.getReferenceClientRect, at = fe.moveTransition, dt = _() ? vD(w).arrow : null, mt = Be ? {
54471
54471
  getBoundingClientRect: Be,
54472
54472
  contextElement: Be.contextElement || M()
54473
54473
  } : e, Me = {
@@ -54487,7 +54487,7 @@ function wFe(e, t) {
54487
54487
  }, He = [{
54488
54488
  name: "offset",
54489
54489
  options: {
54490
- offset: je
54490
+ offset: Te
54491
54491
  }
54492
54492
  }, {
54493
54493
  name: "preventOverflow",
@@ -54507,7 +54507,7 @@ function wFe(e, t) {
54507
54507
  }, {
54508
54508
  name: "computeStyles",
54509
54509
  options: {
54510
- adaptive: !ot
54510
+ adaptive: !at
54511
54511
  }
54512
54512
  }, Me];
54513
54513
  _() && dt && He.push({
@@ -54540,8 +54540,8 @@ function wFe(e, t) {
54540
54540
  }
54541
54541
  function ge(fe) {
54542
54542
  v.clearDelayTimeouts(), fe && z("onTrigger", [v, fe]), ne();
54543
- var Se = T(!0), _e = N(), je = _e[0], Be = _e[1];
54544
- ia.isTouch && je === "hold" && Be && (Se = Be), Se ? r = setTimeout(function() {
54543
+ var Se = T(!0), _e = N(), Te = _e[0], Be = _e[1];
54544
+ ia.isTouch && Te === "hold" && Be && (Se = Be), Se ? r = setTimeout(function() {
54545
54545
  v.show();
54546
54546
  }, Se) : v.show();
54547
54547
  }
@@ -54574,10 +54574,10 @@ function wFe(e, t) {
54574
54574
  var Se = v.props, _e = pj(e, Object.assign({}, Se, aj(fe), {
54575
54575
  ignoreAttributes: !0
54576
54576
  }));
54577
- v.props = _e, K(), Se.interactiveDebounce !== _e.interactiveDebounce && (U(), f = ij(B, _e.interactiveDebounce)), Se.triggerTarget && !_e.triggerTarget ? Fp(Se.triggerTarget).forEach(function(je) {
54578
- je.removeAttribute("aria-expanded");
54579
- }) : _e.triggerTarget && e.removeAttribute("aria-expanded"), q(), L(), k && k(Se, _e), v.popperInstance && (V(), De().forEach(function(je) {
54580
- requestAnimationFrame(je._tippy.popperInstance.forceUpdate);
54577
+ v.props = _e, K(), Se.interactiveDebounce !== _e.interactiveDebounce && (U(), f = ij(B, _e.interactiveDebounce)), Se.triggerTarget && !_e.triggerTarget ? Fp(Se.triggerTarget).forEach(function(Te) {
54578
+ Te.removeAttribute("aria-expanded");
54579
+ }) : _e.triggerTarget && e.removeAttribute("aria-expanded"), q(), L(), k && k(Se, _e), v.popperInstance && (V(), De().forEach(function(Te) {
54580
+ requestAnimationFrame(Te._tippy.popperInstance.forceUpdate);
54581
54581
  })), z("onAfterUpdate", [v, fe]);
54582
54582
  }
54583
54583
  }
@@ -54588,10 +54588,10 @@ function wFe(e, t) {
54588
54588
  }
54589
54589
  function pe() {
54590
54590
  process.env.NODE_ENV !== "production" && al(v.state.isDestroyed, tp("show"));
54591
- var fe = v.state.isVisible, Se = v.state.isDestroyed, _e = !v.state.isEnabled, je = ia.isTouch && !v.props.touch, Be = pF(v.props.duration, 0, Si.duration);
54592
- if (!(fe || Se || _e || je) && !M().hasAttribute("disabled") && (z("onShow", [v], !1), v.props.onShow(v) !== !1)) {
54591
+ var fe = v.state.isVisible, Se = v.state.isDestroyed, _e = !v.state.isEnabled, Te = ia.isTouch && !v.props.touch, Be = pF(v.props.duration, 0, Si.duration);
54592
+ if (!(fe || Se || _e || Te) && !M().hasAttribute("disabled") && (z("onShow", [v], !1), v.props.onShow(v) !== !1)) {
54593
54593
  if (v.state.isVisible = !0, _() && (w.style.visibility = "visible"), L(), ne(), v.state.isMounted || (w.style.transition = "none"), _()) {
54594
- var ot = S(), dt = ot.box, mt = ot.content;
54594
+ var at = S(), dt = at.box, mt = at.content;
54595
54595
  hF([dt, mt], 0);
54596
54596
  }
54597
54597
  p = function() {
@@ -54610,13 +54610,13 @@ function wFe(e, t) {
54610
54610
  }
54611
54611
  function ye() {
54612
54612
  process.env.NODE_ENV !== "production" && al(v.state.isDestroyed, tp("hide"));
54613
- var fe = !v.state.isVisible, Se = v.state.isDestroyed, _e = !v.state.isEnabled, je = pF(v.props.duration, 1, Si.duration);
54613
+ var fe = !v.state.isVisible, Se = v.state.isDestroyed, _e = !v.state.isEnabled, Te = pF(v.props.duration, 1, Si.duration);
54614
54614
  if (!(fe || Se || _e) && (z("onHide", [v], !1), v.props.onHide(v) !== !1)) {
54615
54615
  if (v.state.isVisible = !1, v.state.isShown = !1, u = !1, s = !1, _() && (w.style.visibility = "hidden"), U(), X(), L(!0), _()) {
54616
- var Be = S(), ot = Be.box, dt = Be.content;
54617
- v.props.animation && (hF([ot, dt], je), lj([ot, dt], "hidden"));
54616
+ var Be = S(), at = Be.box, dt = Be.content;
54617
+ v.props.animation && (hF([at, dt], Te), lj([at, dt], "hidden"));
54618
54618
  }
54619
- $(), q(), v.props.animation ? _() && oe(je, v.unmount) : v.unmount();
54619
+ $(), q(), v.props.animation ? _() && oe(Te, v.unmount) : v.unmount();
54620
54620
  }
54621
54621
  }
54622
54622
  function me(fe) {
@@ -55050,7 +55050,7 @@ const jFe = [
55050
55050
  {
55051
55051
  ref: s,
55052
55052
  tabIndex: 0,
55053
- className: st("trigger-button", { hidden: i }),
55053
+ className: it("trigger-button", { hidden: i }),
55054
55054
  contentEditable: !1,
55055
55055
  onClick: c,
55056
55056
  onMouseDown: (p) => {
@@ -69145,15 +69145,15 @@ https://github.com/nodeca/pako/blob/main/LICENSE
69145
69145
  for (Q.max_code = W, Fe = V.heap_len >> 1; 1 <= Fe; Fe--) K(V, ce, Fe);
69146
69146
  for (ge = R; Fe = V.heap[1], V.heap[1] = V.heap[V.heap_len--], K(V, ce, 1), De = V.heap[1], V.heap[--V.heap_max] = Fe, V.heap[--V.heap_max] = De, ce[2 * ge] = ce[2 * Fe] + ce[2 * De], V.depth[ge] = (V.depth[Fe] >= V.depth[De] ? V.depth[Fe] : V.depth[De]) + 1, ce[2 * Fe + 1] = ce[2 * De + 1] = ge, V.heap[1] = ge++, K(V, ce, 1), 2 <= V.heap_len; ) ;
69147
69147
  V.heap[--V.heap_max] = V.heap[1], function(re, pe) {
69148
- var ye, me, Ee, Ce, fe, Se, _e = pe.dyn_tree, je = pe.max_code, Be = pe.stat_desc.static_tree, ot = pe.stat_desc.has_stree, dt = pe.stat_desc.extra_bits, mt = pe.stat_desc.extra_base, Me = pe.stat_desc.max_length, He = 0;
69148
+ var ye, me, Ee, Ce, fe, Se, _e = pe.dyn_tree, Te = pe.max_code, Be = pe.stat_desc.static_tree, at = pe.stat_desc.has_stree, dt = pe.stat_desc.extra_bits, mt = pe.stat_desc.extra_base, Me = pe.stat_desc.max_length, He = 0;
69149
69149
  for (Ce = 0; Ce <= m; Ce++) re.bl_count[Ce] = 0;
69150
- for (_e[2 * re.heap[re.heap_max] + 1] = 0, ye = re.heap_max + 1; ye < g; ye++) Me < (Ce = _e[2 * _e[2 * (me = re.heap[ye]) + 1] + 1] + 1) && (Ce = Me, He++), _e[2 * me + 1] = Ce, je < me || (re.bl_count[Ce]++, fe = 0, mt <= me && (fe = dt[me - mt]), Se = _e[2 * me], re.opt_len += Se * (Ce + fe), ot && (re.static_len += Se * (Be[2 * me + 1] + fe)));
69150
+ for (_e[2 * re.heap[re.heap_max] + 1] = 0, ye = re.heap_max + 1; ye < g; ye++) Me < (Ce = _e[2 * _e[2 * (me = re.heap[ye]) + 1] + 1] + 1) && (Ce = Me, He++), _e[2 * me + 1] = Ce, Te < me || (re.bl_count[Ce]++, fe = 0, mt <= me && (fe = dt[me - mt]), Se = _e[2 * me], re.opt_len += Se * (Ce + fe), at && (re.static_len += Se * (Be[2 * me + 1] + fe)));
69151
69151
  if (He !== 0) {
69152
69152
  do {
69153
69153
  for (Ce = Me - 1; re.bl_count[Ce] === 0; ) Ce--;
69154
69154
  re.bl_count[Ce]--, re.bl_count[Ce + 1] += 2, re.bl_count[Me]--, He -= 2;
69155
69155
  } while (0 < He);
69156
- for (Ce = Me; Ce !== 0; Ce--) for (me = re.bl_count[Ce]; me !== 0; ) je < (Ee = re.heap[--ye]) || (_e[2 * Ee + 1] !== Ce && (re.opt_len += (Ce - _e[2 * Ee + 1]) * _e[2 * Ee], _e[2 * Ee + 1] = Ce), me--);
69156
+ for (Ce = Me; Ce !== 0; Ce--) for (me = re.bl_count[Ce]; me !== 0; ) Te < (Ee = re.heap[--ye]) || (_e[2 * Ee + 1] !== Ce && (re.opt_len += (Ce - _e[2 * Ee + 1]) * _e[2 * Ee], _e[2 * Ee + 1] = Ce), me--);
69157
69157
  }
69158
69158
  }(V, Q), oe(ce, W, V.bl_count);
69159
69159
  }
@@ -83253,7 +83253,7 @@ var e2 = [
83253
83253
  mop: Zn
83254
83254
  }
83255
83255
  }, YY = {}, Xy = {}, Zy = {};
83256
- function at(e) {
83256
+ function st(e) {
83257
83257
  for (var {
83258
83258
  type: t,
83259
83259
  names: n,
@@ -83282,7 +83282,7 @@ function Hd(e) {
83282
83282
  htmlBuilder: n,
83283
83283
  mathmlBuilder: r
83284
83284
  } = e;
83285
- at({
83285
+ st({
83286
83286
  type: t,
83287
83287
  names: [],
83288
83288
  props: {
@@ -83932,7 +83932,7 @@ var K7 = (e, t) => {
83932
83932
  var n = e.isStretchy ? Ll.mathMLnode(e.label) : new We.MathNode("mo", [fs(e.label, e.mode)]), r = new We.MathNode("mover", [Rn(e.base, t), n]);
83933
83933
  return r.setAttribute("accent", "true"), r;
83934
83934
  }, wNe = new RegExp(["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring"].map((e) => "\\" + e).join("|"));
83935
- at({
83935
+ st({
83936
83936
  type: "accent",
83937
83937
  names: ["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring", "\\widecheck", "\\widehat", "\\widetilde", "\\overrightarrow", "\\overleftarrow", "\\Overrightarrow", "\\overleftrightarrow", "\\overgroup", "\\overlinesegment", "\\overleftharpoon", "\\overrightharpoon"],
83938
83938
  props: {
@@ -83952,7 +83952,7 @@ at({
83952
83952
  htmlBuilder: K7,
83953
83953
  mathmlBuilder: eX
83954
83954
  });
83955
- at({
83955
+ st({
83956
83956
  type: "accent",
83957
83957
  names: ["\\'", "\\`", "\\^", "\\~", "\\=", "\\u", "\\.", '\\"', "\\c", "\\r", "\\H", "\\v", "\\textcircled"],
83958
83958
  props: {
@@ -83976,7 +83976,7 @@ at({
83976
83976
  htmlBuilder: K7,
83977
83977
  mathmlBuilder: eX
83978
83978
  });
83979
- at({
83979
+ st({
83980
83980
  type: "accentUnder",
83981
83981
  names: ["\\underleftarrow", "\\underrightarrow", "\\underleftrightarrow", "\\undergroup", "\\underlinesegment", "\\utilde"],
83982
83982
  props: {
@@ -84021,7 +84021,7 @@ var r2 = (e) => {
84021
84021
  var t = new We.MathNode("mpadded", e ? [e] : []);
84022
84022
  return t.setAttribute("width", "+0.6em"), t.setAttribute("lspace", "0.3em"), t;
84023
84023
  };
84024
- at({
84024
+ st({
84025
84025
  type: "xArrow",
84026
84026
  names: [
84027
84027
  "\\xleftarrow",
@@ -84141,7 +84141,7 @@ function nX(e, t) {
84141
84141
  var n, r = xi(e.body, t);
84142
84142
  return e.mclass === "minner" ? n = new We.MathNode("mpadded", r) : e.mclass === "mord" ? e.isCharacterBox ? (n = r[0], n.type = "mi") : n = new We.MathNode("mi", r) : (e.isCharacterBox ? (n = r[0], n.type = "mo") : n = new We.MathNode("mo", r), e.mclass === "mbin" ? (n.attributes.lspace = "0.22em", n.attributes.rspace = "0.22em") : e.mclass === "mpunct" ? (n.attributes.lspace = "0em", n.attributes.rspace = "0.17em") : e.mclass === "mopen" || e.mclass === "mclose" ? (n.attributes.lspace = "0em", n.attributes.rspace = "0em") : e.mclass === "minner" && (n.attributes.lspace = "0.0556em", n.attributes.width = "+0.1111em")), n;
84143
84143
  }
84144
- at({
84144
+ st({
84145
84145
  type: "mclass",
84146
84146
  names: ["\\mathord", "\\mathbin", "\\mathrel", "\\mathopen", "\\mathclose", "\\mathpunct", "\\mathinner"],
84147
84147
  props: {
@@ -84169,7 +84169,7 @@ var bv = (e) => {
84169
84169
  var t = e.type === "ordgroup" && e.body.length ? e.body[0] : e;
84170
84170
  return t.type === "atom" && (t.family === "bin" || t.family === "rel") ? "m" + t.family : "mord";
84171
84171
  };
84172
- at({
84172
+ st({
84173
84173
  type: "mclass",
84174
84174
  names: ["\\@binrel"],
84175
84175
  props: {
@@ -84188,7 +84188,7 @@ at({
84188
84188
  };
84189
84189
  }
84190
84190
  });
84191
- at({
84191
+ st({
84192
84192
  type: "mclass",
84193
84193
  names: ["\\stackrel", "\\overset", "\\underset"],
84194
84194
  props: {
@@ -84227,7 +84227,7 @@ at({
84227
84227
  htmlBuilder: tX,
84228
84228
  mathmlBuilder: nX
84229
84229
  });
84230
- at({
84230
+ st({
84231
84231
  type: "pmb",
84232
84232
  names: ["\\pmb"],
84233
84233
  props: {
@@ -84382,7 +84382,7 @@ function _Ne(e) {
84382
84382
  hLinesBeforeRow: new Array(o.length + 1).fill([])
84383
84383
  };
84384
84384
  }
84385
- at({
84385
+ st({
84386
84386
  type: "cdlabel",
84387
84387
  names: ["\\\\cdleft", "\\\\cdright"],
84388
84388
  props: {
@@ -84409,7 +84409,7 @@ at({
84409
84409
  return n = new We.MathNode("mpadded", [n]), n.setAttribute("width", "0"), e.side === "left" && n.setAttribute("lspace", "-1width"), n.setAttribute("voffset", "0.7em"), n = new We.MathNode("mstyle", [n]), n.setAttribute("displaystyle", "false"), n.setAttribute("scriptlevel", "1"), n;
84410
84410
  }
84411
84411
  });
84412
- at({
84412
+ st({
84413
84413
  type: "cdlabelparent",
84414
84414
  names: ["\\\\cdparent"],
84415
84415
  props: {
@@ -84433,7 +84433,7 @@ at({
84433
84433
  return new We.MathNode("mrow", [Rn(e.fragment, t)]);
84434
84434
  }
84435
84435
  });
84436
- at({
84436
+ st({
84437
84437
  type: "textord",
84438
84438
  names: ["\\@char"],
84439
84439
  props: {
@@ -84466,7 +84466,7 @@ var rX = (e, t) => {
84466
84466
  var n = xi(e.body, t.withColor(e.color)), r = new We.MathNode("mstyle", n);
84467
84467
  return r.setAttribute("mathcolor", e.color), r;
84468
84468
  };
84469
- at({
84469
+ st({
84470
84470
  type: "color",
84471
84471
  names: ["\\textcolor"],
84472
84472
  props: {
@@ -84488,7 +84488,7 @@ at({
84488
84488
  htmlBuilder: rX,
84489
84489
  mathmlBuilder: oX
84490
84490
  });
84491
- at({
84491
+ st({
84492
84492
  type: "color",
84493
84493
  names: ["\\color"],
84494
84494
  props: {
@@ -84513,7 +84513,7 @@ at({
84513
84513
  htmlBuilder: rX,
84514
84514
  mathmlBuilder: oX
84515
84515
  });
84516
- at({
84516
+ st({
84517
84517
  type: "cr",
84518
84518
  names: ["\\\\"],
84519
84519
  props: {
@@ -84570,7 +84570,7 @@ var JD = {
84570
84570
  unexpandable: !e.gullet.isExpandable(n.text)
84571
84571
  }), e.gullet.macros.set(t, o, r);
84572
84572
  };
84573
- at({
84573
+ st({
84574
84574
  type: "internal",
84575
84575
  names: [
84576
84576
  "\\global",
@@ -84594,7 +84594,7 @@ at({
84594
84594
  throw new Ve("Invalid token after macro prefix", r);
84595
84595
  }
84596
84596
  });
84597
- at({
84597
+ st({
84598
84598
  type: "internal",
84599
84599
  names: ["\\def", "\\gdef", "\\edef", "\\xdef"],
84600
84600
  props: {
@@ -84638,7 +84638,7 @@ at({
84638
84638
  };
84639
84639
  }
84640
84640
  });
84641
- at({
84641
+ st({
84642
84642
  type: "internal",
84643
84643
  names: [
84644
84644
  "\\let",
@@ -84663,7 +84663,7 @@ at({
84663
84663
  };
84664
84664
  }
84665
84665
  });
84666
- at({
84666
+ st({
84667
84667
  type: "internal",
84668
84668
  names: [
84669
84669
  "\\futurelet",
@@ -84967,7 +84967,7 @@ function yv(e, t) {
84967
84967
  return n;
84968
84968
  throw n ? new Ve("Invalid delimiter '" + n.text + "' after '" + t.funcName + "'", e) : new Ve("Invalid delimiter type '" + e.type + "'", e);
84969
84969
  }
84970
- at({
84970
+ st({
84971
84971
  type: "delimsizing",
84972
84972
  names: ["\\bigl", "\\Bigl", "\\biggl", "\\Biggl", "\\bigr", "\\Bigr", "\\biggr", "\\Biggr", "\\bigm", "\\Bigm", "\\biggm", "\\Biggm", "\\big", "\\Big", "\\bigg", "\\Bigg"],
84973
84973
  props: {
@@ -84998,7 +84998,7 @@ function eO(e) {
84998
84998
  if (!e.body)
84999
84999
  throw new Error("Bug: The leftright ParseNode wasn't fully parsed.");
85000
85000
  }
85001
- at({
85001
+ st({
85002
85002
  type: "leftright-right",
85003
85003
  names: ["\\right"],
85004
85004
  props: {
@@ -85018,7 +85018,7 @@ at({
85018
85018
  };
85019
85019
  }
85020
85020
  });
85021
- at({
85021
+ st({
85022
85022
  type: "leftright",
85023
85023
  names: ["\\left"],
85024
85024
  props: {
@@ -85074,7 +85074,7 @@ at({
85074
85074
  return q7(n);
85075
85075
  }
85076
85076
  });
85077
- at({
85077
+ st({
85078
85078
  type: "middle",
85079
85079
  names: ["\\middle"],
85080
85080
  props: {
@@ -85220,7 +85220,7 @@ var X7 = (e, t) => {
85220
85220
  }
85221
85221
  return e.backgroundColor && r.setAttribute("mathbackground", e.backgroundColor), r;
85222
85222
  };
85223
- at({
85223
+ st({
85224
85224
  type: "enclose",
85225
85225
  names: ["\\colorbox"],
85226
85226
  props: {
@@ -85244,7 +85244,7 @@ at({
85244
85244
  htmlBuilder: X7,
85245
85245
  mathmlBuilder: Z7
85246
85246
  });
85247
- at({
85247
+ st({
85248
85248
  type: "enclose",
85249
85249
  names: ["\\fcolorbox"],
85250
85250
  props: {
@@ -85269,7 +85269,7 @@ at({
85269
85269
  htmlBuilder: X7,
85270
85270
  mathmlBuilder: Z7
85271
85271
  });
85272
- at({
85272
+ st({
85273
85273
  type: "enclose",
85274
85274
  names: ["\\fbox"],
85275
85275
  props: {
@@ -85289,7 +85289,7 @@ at({
85289
85289
  };
85290
85290
  }
85291
85291
  });
85292
- at({
85292
+ st({
85293
85293
  type: "enclose",
85294
85294
  names: ["\\cancel", "\\bcancel", "\\xcancel", "\\sout", "\\phase"],
85295
85295
  props: {
@@ -85310,7 +85310,7 @@ at({
85310
85310
  htmlBuilder: X7,
85311
85311
  mathmlBuilder: Z7
85312
85312
  });
85313
- at({
85313
+ st({
85314
85314
  type: "enclose",
85315
85315
  names: ["\\angl"],
85316
85316
  props: {
@@ -85879,7 +85879,7 @@ Wa({
85879
85879
  });
85880
85880
  se("\\nonumber", "\\gdef\\@eqnsw{0}");
85881
85881
  se("\\notag", "\\nonumber");
85882
- at({
85882
+ st({
85883
85883
  type: "text",
85884
85884
  // Doesn't matter what this is.
85885
85885
  names: ["\\hline", "\\hdashline"],
@@ -85893,7 +85893,7 @@ at({
85893
85893
  }
85894
85894
  });
85895
85895
  var nO = gX;
85896
- at({
85896
+ st({
85897
85897
  type: "environment",
85898
85898
  names: ["\\begin", "\\end"],
85899
85899
  props: {
@@ -85946,7 +85946,7 @@ var yX = (e, t) => {
85946
85946
  "\\frak": "\\mathfrak",
85947
85947
  "\\bm": "\\boldsymbol"
85948
85948
  };
85949
- at({
85949
+ st({
85950
85950
  type: "font",
85951
85951
  names: [
85952
85952
  // styles, except \boldsymbol defined below
@@ -85986,7 +85986,7 @@ at({
85986
85986
  htmlBuilder: yX,
85987
85987
  mathmlBuilder: xX
85988
85988
  });
85989
- at({
85989
+ st({
85990
85990
  type: "mclass",
85991
85991
  names: ["\\boldsymbol", "\\bm"],
85992
85992
  props: {
@@ -86010,7 +86010,7 @@ at({
86010
86010
  };
86011
86011
  }
86012
86012
  });
86013
- at({
86013
+ st({
86014
86014
  type: "font",
86015
86015
  names: ["\\rm", "\\sf", "\\tt", "\\bf", "\\it", "\\cal"],
86016
86016
  props: {
@@ -86124,7 +86124,7 @@ var vX = (e, t) => {
86124
86124
  }
86125
86125
  return n;
86126
86126
  };
86127
- at({
86127
+ st({
86128
86128
  type: "genfrac",
86129
86129
  names: [
86130
86130
  "\\dfrac",
@@ -86197,7 +86197,7 @@ at({
86197
86197
  htmlBuilder: eC,
86198
86198
  mathmlBuilder: tC
86199
86199
  });
86200
- at({
86200
+ st({
86201
86201
  type: "genfrac",
86202
86202
  names: ["\\cfrac"],
86203
86203
  props: {
@@ -86222,7 +86222,7 @@ at({
86222
86222
  };
86223
86223
  }
86224
86224
  });
86225
- at({
86225
+ st({
86226
86226
  type: "infix",
86227
86227
  names: ["\\over", "\\choose", "\\atop", "\\brace", "\\brack"],
86228
86228
  props: {
@@ -86266,7 +86266,7 @@ var oO = ["display", "text", "script", "scriptscript"], iO = function(t) {
86266
86266
  var n = null;
86267
86267
  return t.length > 0 && (n = t, n = n === "." ? null : n), n;
86268
86268
  };
86269
- at({
86269
+ st({
86270
86270
  type: "genfrac",
86271
86271
  names: ["\\genfrac"],
86272
86272
  props: {
@@ -86303,7 +86303,7 @@ at({
86303
86303
  htmlBuilder: eC,
86304
86304
  mathmlBuilder: tC
86305
86305
  });
86306
- at({
86306
+ st({
86307
86307
  type: "infix",
86308
86308
  names: ["\\above"],
86309
86309
  props: {
@@ -86326,7 +86326,7 @@ at({
86326
86326
  };
86327
86327
  }
86328
86328
  });
86329
- at({
86329
+ st({
86330
86330
  type: "genfrac",
86331
86331
  names: ["\\\\abovefrac"],
86332
86332
  props: {
@@ -86417,7 +86417,7 @@ var FX = (e, t) => {
86417
86417
  var n = Ll.mathMLnode(e.label);
86418
86418
  return new We.MathNode(e.isOver ? "mover" : "munder", [Rn(e.base, t), n]);
86419
86419
  };
86420
- at({
86420
+ st({
86421
86421
  type: "horizBrace",
86422
86422
  names: ["\\overbrace", "\\underbrace"],
86423
86423
  props: {
@@ -86439,7 +86439,7 @@ at({
86439
86439
  htmlBuilder: FX,
86440
86440
  mathmlBuilder: $Ne
86441
86441
  });
86442
- at({
86442
+ st({
86443
86443
  type: "href",
86444
86444
  names: ["\\href"],
86445
86445
  props: {
@@ -86470,7 +86470,7 @@ at({
86470
86470
  return n instanceof Ti || (n = new Ti("mrow", [n])), n.setAttribute("href", e.href), n;
86471
86471
  }
86472
86472
  });
86473
- at({
86473
+ st({
86474
86474
  type: "href",
86475
86475
  names: ["\\url"],
86476
86476
  props: {
@@ -86509,7 +86509,7 @@ at({
86509
86509
  };
86510
86510
  }
86511
86511
  });
86512
- at({
86512
+ st({
86513
86513
  type: "hbox",
86514
86514
  names: ["\\hbox"],
86515
86515
  props: {
@@ -86536,7 +86536,7 @@ at({
86536
86536
  return new We.MathNode("mrow", xi(e.body, t));
86537
86537
  }
86538
86538
  });
86539
- at({
86539
+ st({
86540
86540
  type: "html",
86541
86541
  names: ["\\htmlClass", "\\htmlId", "\\htmlStyle", "\\htmlData"],
86542
86542
  props: {
@@ -86604,7 +86604,7 @@ at({
86604
86604
  },
86605
86605
  mathmlBuilder: (e, t) => rc(e.body, t)
86606
86606
  });
86607
- at({
86607
+ st({
86608
86608
  type: "htmlmathml",
86609
86609
  names: ["\\html@mathml"],
86610
86610
  props: {
@@ -86646,7 +86646,7 @@ var e5 = function(t) {
86646
86646
  throw new Ve("Invalid unit: '" + r.unit + "' in \\includegraphics.");
86647
86647
  return r;
86648
86648
  };
86649
- at({
86649
+ st({
86650
86650
  type: "includegraphics",
86651
86651
  names: ["\\includegraphics"],
86652
86652
  props: {
@@ -86728,7 +86728,7 @@ at({
86728
86728
  return n.setAttribute("src", e.src), n;
86729
86729
  }
86730
86730
  });
86731
- at({
86731
+ st({
86732
86732
  type: "kern",
86733
86733
  names: ["\\kern", "\\mkern", "\\hskip", "\\mskip"],
86734
86734
  props: {
@@ -86760,7 +86760,7 @@ at({
86760
86760
  return new We.SpaceNode(n);
86761
86761
  }
86762
86762
  });
86763
- at({
86763
+ st({
86764
86764
  type: "lap",
86765
86765
  names: ["\\mathllap", "\\mathrlap", "\\mathclap"],
86766
86766
  props: {
@@ -86794,7 +86794,7 @@ at({
86794
86794
  return n.setAttribute("width", "0px"), n;
86795
86795
  }
86796
86796
  });
86797
- at({
86797
+ st({
86798
86798
  type: "styling",
86799
86799
  names: ["\\(", "$"],
86800
86800
  props: {
@@ -86817,7 +86817,7 @@ at({
86817
86817
  };
86818
86818
  }
86819
86819
  });
86820
- at({
86820
+ st({
86821
86821
  type: "text",
86822
86822
  // Doesn't matter what this is.
86823
86823
  names: ["\\)", "\\]"],
@@ -86844,7 +86844,7 @@ var sO = (e, t) => {
86844
86844
  return e.text;
86845
86845
  }
86846
86846
  };
86847
- at({
86847
+ st({
86848
86848
  type: "mathchoice",
86849
86849
  names: ["\\mathchoice"],
86850
86850
  props: {
@@ -87028,7 +87028,7 @@ var wX = (e, t, n, r, o, i, s) => {
87028
87028
  "⨄": "\\biguplus",
87029
87029
  "⨆": "\\bigsqcup"
87030
87030
  };
87031
- at({
87031
+ st({
87032
87032
  type: "op",
87033
87033
  names: ["\\coprod", "\\bigvee", "\\bigwedge", "\\biguplus", "\\bigcap", "\\bigcup", "\\intop", "\\prod", "\\sum", "\\bigotimes", "\\bigoplus", "\\bigodot", "\\bigsqcup", "\\smallint", "∏", "∐", "∑", "⋀", "⋁", "⋂", "⋃", "⨀", "⨁", "⨂", "⨄", "⨆"],
87034
87034
  props: {
@@ -87051,7 +87051,7 @@ at({
87051
87051
  htmlBuilder: i0,
87052
87052
  mathmlBuilder: Gg
87053
87053
  });
87054
- at({
87054
+ st({
87055
87055
  type: "op",
87056
87056
  names: ["\\mathop"],
87057
87057
  props: {
@@ -87082,7 +87082,7 @@ var WNe = {
87082
87082
  "∯": "\\oiint",
87083
87083
  "∰": "\\oiiint"
87084
87084
  };
87085
- at({
87085
+ st({
87086
87086
  type: "op",
87087
87087
  names: ["\\arcsin", "\\arccos", "\\arctan", "\\arctg", "\\arcctg", "\\arg", "\\ch", "\\cos", "\\cosec", "\\cosh", "\\cot", "\\cotg", "\\coth", "\\csc", "\\ctg", "\\cth", "\\deg", "\\dim", "\\exp", "\\hom", "\\ker", "\\lg", "\\ln", "\\log", "\\sec", "\\sin", "\\sinh", "\\sh", "\\tan", "\\tanh", "\\tg", "\\th"],
87088
87088
  props: {
@@ -87105,7 +87105,7 @@ at({
87105
87105
  htmlBuilder: i0,
87106
87106
  mathmlBuilder: Gg
87107
87107
  });
87108
- at({
87108
+ st({
87109
87109
  type: "op",
87110
87110
  names: ["\\det", "\\gcd", "\\inf", "\\lim", "\\max", "\\min", "\\Pr", "\\sup"],
87111
87111
  props: {
@@ -87128,7 +87128,7 @@ at({
87128
87128
  htmlBuilder: i0,
87129
87129
  mathmlBuilder: Gg
87130
87130
  });
87131
- at({
87131
+ st({
87132
87132
  type: "op",
87133
87133
  names: ["\\int", "\\iint", "\\iiint", "\\oint", "\\oiint", "\\oiiint", "∫", "∬", "∭", "∮", "∯", "∰"],
87134
87134
  props: {
@@ -87202,7 +87202,7 @@ var kX = (e, t) => {
87202
87202
  var u = new We.MathNode("mo", [fs("⁡", "text")]);
87203
87203
  return e.parentIsSupSub ? new We.MathNode("mrow", [l, u]) : We.newDocumentFragment([l, u]);
87204
87204
  };
87205
- at({
87205
+ st({
87206
87206
  type: "operatorname",
87207
87207
  names: ["\\operatorname@", "\\operatornamewithlimits"],
87208
87208
  props: {
@@ -87235,7 +87235,7 @@ Hd({
87235
87235
  return rc(e.body, t, !0);
87236
87236
  }
87237
87237
  });
87238
- at({
87238
+ st({
87239
87239
  type: "overline",
87240
87240
  names: ["\\overline"],
87241
87241
  props: {
@@ -87277,7 +87277,7 @@ at({
87277
87277
  return r.setAttribute("accent", "true"), r;
87278
87278
  }
87279
87279
  });
87280
- at({
87280
+ st({
87281
87281
  type: "phantom",
87282
87282
  names: ["\\phantom"],
87283
87283
  props: {
@@ -87303,7 +87303,7 @@ at({
87303
87303
  return new We.MathNode("mphantom", n);
87304
87304
  }
87305
87305
  });
87306
- at({
87306
+ st({
87307
87307
  type: "hphantom",
87308
87308
  names: ["\\hphantom"],
87309
87309
  props: {
@@ -87338,7 +87338,7 @@ at({
87338
87338
  return o.setAttribute("height", "0px"), o.setAttribute("depth", "0px"), o;
87339
87339
  }
87340
87340
  });
87341
- at({
87341
+ st({
87342
87342
  type: "vphantom",
87343
87343
  names: ["\\vphantom"],
87344
87344
  props: {
@@ -87364,7 +87364,7 @@ at({
87364
87364
  return o.setAttribute("width", "0px"), o;
87365
87365
  }
87366
87366
  });
87367
- at({
87367
+ st({
87368
87368
  type: "raisebox",
87369
87369
  names: ["\\raisebox"],
87370
87370
  props: {
@@ -87399,7 +87399,7 @@ at({
87399
87399
  return n.setAttribute("voffset", r), n;
87400
87400
  }
87401
87401
  });
87402
- at({
87402
+ st({
87403
87403
  type: "internal",
87404
87404
  names: ["\\relax"],
87405
87405
  props: {
@@ -87417,7 +87417,7 @@ at({
87417
87417
  };
87418
87418
  }
87419
87419
  });
87420
- at({
87420
+ st({
87421
87421
  type: "rule",
87422
87422
  names: ["\\rule"],
87423
87423
  props: {
@@ -87461,7 +87461,7 @@ var aO = ["\\tiny", "\\sixptsize", "\\scriptsize", "\\footnotesize", "\\small",
87461
87461
  var n = t.havingSize(e.size);
87462
87462
  return EX(e.body, n, t);
87463
87463
  };
87464
- at({
87464
+ st({
87465
87465
  type: "sizing",
87466
87466
  names: aO,
87467
87467
  props: {
@@ -87488,7 +87488,7 @@ at({
87488
87488
  return o.setAttribute("mathsize", Ze(n.sizeMultiplier)), o;
87489
87489
  }
87490
87490
  });
87491
- at({
87491
+ st({
87492
87492
  type: "smash",
87493
87493
  names: ["\\smash"],
87494
87494
  props: {
@@ -87547,7 +87547,7 @@ at({
87547
87547
  return e.smashHeight && n.setAttribute("height", "0px"), e.smashDepth && n.setAttribute("depth", "0px"), n;
87548
87548
  }
87549
87549
  });
87550
- at({
87550
+ st({
87551
87551
  type: "sqrt",
87552
87552
  names: ["\\sqrt"],
87553
87553
  props: {
@@ -87622,7 +87622,7 @@ var lO = {
87622
87622
  script: vt.SCRIPT,
87623
87623
  scriptscript: vt.SCRIPTSCRIPT
87624
87624
  };
87625
- at({
87625
+ st({
87626
87626
  type: "styling",
87627
87627
  names: ["\\displaystyle", "\\textstyle", "\\scriptstyle", "\\scriptscriptstyle"],
87628
87628
  props: {
@@ -87897,7 +87897,7 @@ var cO = {
87897
87897
  } else return t;
87898
87898
  return t.withTextFontShape(KNe[n]);
87899
87899
  };
87900
- at({
87900
+ st({
87901
87901
  type: "text",
87902
87902
  names: [
87903
87903
  // Font families
@@ -87941,7 +87941,7 @@ at({
87941
87941
  return rc(e.body, n);
87942
87942
  }
87943
87943
  });
87944
- at({
87944
+ st({
87945
87945
  type: "underline",
87946
87946
  names: ["\\underline"],
87947
87947
  props: {
@@ -87985,7 +87985,7 @@ at({
87985
87985
  return r.setAttribute("accentunder", "true"), r;
87986
87986
  }
87987
87987
  });
87988
- at({
87988
+ st({
87989
87989
  type: "vcenter",
87990
87990
  names: ["\\vcenter"],
87991
87991
  props: {
@@ -88019,7 +88019,7 @@ at({
88019
88019
  return new We.MathNode("mpadded", [Rn(e.body, t)], ["vcenter"]);
88020
88020
  }
88021
88021
  });
88022
- at({
88022
+ st({
88023
88023
  type: "verb",
88024
88024
  names: ["\\verb"],
88025
88025
  props: {
@@ -90232,7 +90232,7 @@ var oBe = function(t, n) {
90232
90232
  * which directly produce parse tree elements
90233
90233
  * and have their own html/mathml builders
90234
90234
  */
90235
- __defineFunction: at,
90235
+ __defineFunction: st,
90236
90236
  /**
90237
90237
  * adds a new macro to builtin macro list
90238
90238
  */
@@ -106566,19 +106566,19 @@ function ZRe({
106566
106566
  var yZ = ZRe;
106567
106567
  const xZ = yr(
106568
106568
  (e, t) => {
106569
- const [n, r] = Ne(0), o = Te(
106569
+ const [n, r] = Ne(0), o = je(
106570
106570
  (l) => {
106571
106571
  const u = e.items[l];
106572
106572
  u && e.command(u);
106573
106573
  },
106574
106574
  [e]
106575
- ), i = Te(() => {
106575
+ ), i = je(() => {
106576
106576
  r(
106577
106577
  (l) => (l + e.items.length - 1) % e.items.length
106578
106578
  );
106579
- }, [e.items.length]), s = Te(() => {
106579
+ }, [e.items.length]), s = je(() => {
106580
106580
  r((l) => (l + 1) % e.items.length);
106581
- }, [e.items.length]), a = Te(() => {
106581
+ }, [e.items.length]), a = je(() => {
106582
106582
  o(n);
106583
106583
  }, [o, n]);
106584
106584
  return Oe(() => {
@@ -167247,7 +167247,7 @@ const dIe = ({
167247
167247
  command: t,
167248
167248
  editor: n
167249
167249
  }) => {
167250
- const [r, o] = Ne(0), [i, s] = Ne(e), a = Vn("(max-width: 640px)"), l = g2(n, "callout"), u = g2(n, "codeBlock"), c = g2(n, "column"), d = g2(n, "table"), p = Te(
167250
+ const [r, o] = Ne(0), [i, s] = Ne(e), a = Vn("(max-width: 640px)"), l = g2(n, "callout"), u = g2(n, "codeBlock"), c = g2(n, "column"), d = g2(n, "table"), p = je(
167251
167251
  (f) => {
167252
167252
  const g = i[f];
167253
167253
  g && (g.title === "Continue writing" || t(g));
@@ -167671,7 +167671,7 @@ const dIe = ({
167671
167671
  return /* @__PURE__ */ F.jsxs(
167672
167672
  Ca,
167673
167673
  {
167674
- className: st("flex relative w-full h-full justify-center items-center"),
167674
+ className: it("flex relative w-full h-full justify-center items-center"),
167675
167675
  style: a,
167676
167676
  children: [
167677
167677
  /* @__PURE__ */ F.jsx(
@@ -168936,7 +168936,7 @@ const HO = () => {
168936
168936
  }, [u]), Oe(() => {
168937
168937
  c(A), p(!!N);
168938
168938
  }, [A, N]);
168939
- const P = Te(() => {
168939
+ const P = je(() => {
168940
168940
  var pe, ye;
168941
168941
  if (!D) return "";
168942
168942
  const V = t.getJSON();
@@ -168968,7 +168968,7 @@ const HO = () => {
168968
168968
  }
168969
168969
  return De = (ce + R).trim(), De && (De = `Document context (${de} chars before, ${W} chars after):
168970
168970
  ${De}`), De;
168971
- }, [t, n, D]), Y = Te(async () => {
168971
+ }, [t, n, D]), Y = je(async () => {
168972
168972
  var V;
168973
168973
  if (u.trim())
168974
168974
  try {
@@ -169025,7 +169025,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
169025
169025
  P,
169026
169026
  D,
169027
169027
  r
169028
- ]), ie = Te(() => {
169028
+ ]), ie = je(() => {
169029
169029
  if (z.current) {
169030
169030
  z.current.abort(), l(!1), s(!1);
169031
169031
  const V = setTimeout(() => {
@@ -169037,7 +169037,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
169037
169037
  }, 0);
169038
169038
  return () => clearTimeout(V);
169039
169039
  }
169040
- }, []), ne = Te(() => {
169040
+ }, []), ne = je(() => {
169041
169041
  if (typeof n == "function") {
169042
169042
  m(!0);
169043
169043
  const V = setTimeout(() => {
@@ -169056,7 +169056,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
169056
169056
  }, 150);
169057
169057
  return () => clearTimeout(V);
169058
169058
  }
169059
- }, [n, t, e.nodeSize, N, o]), X = Te(() => {
169059
+ }, [n, t, e.nodeSize, N, o]), X = je(() => {
169060
169060
  if (typeof n == "function") {
169061
169061
  m(!0);
169062
169062
  const V = setTimeout(() => {
@@ -169075,14 +169075,14 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
169075
169075
  }, 150);
169076
169076
  return () => clearTimeout(V);
169077
169077
  }
169078
- }, [n, t, e.nodeSize, o]), oe = Te(
169078
+ }, [n, t, e.nodeSize, o]), oe = je(
169079
169079
  (V) => {
169080
169080
  c(V.target.value);
169081
169081
  },
169082
169082
  []
169083
- ), Z = Te(() => {
169083
+ ), Z = je(() => {
169084
169084
  r && u !== A && r({ prompt: u });
169085
- }, [r, u, A]), ae = Te(
169085
+ }, [r, u, A]), ae = je(
169086
169086
  (V) => {
169087
169087
  r == null || r({ model: V });
169088
169088
  const Q = L == null ? void 0 : L.defaultModels.find(
@@ -169091,22 +169091,22 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
169091
169091
  Q && (L != null && L.setActiveModel) && L.setActiveModel(Q);
169092
169092
  },
169093
169093
  [r, L]
169094
- ), j = Te(() => {
169094
+ ), j = je(() => {
169095
169095
  var Q, Fe;
169096
169096
  if (r == null || r({ content: "" }), p(!1), f(""), !O.current) return;
169097
169097
  (Q = O.current) == null || Q.focus();
169098
169098
  const V = O.current.value.length;
169099
169099
  (Fe = O.current) == null || Fe.setSelectionRange(V, V), O.current.scrollTop = O.current.scrollHeight;
169100
- }, [r]), K = Te(() => {
169100
+ }, [r]), K = je(() => {
169101
169101
  y(!0);
169102
- }, []), ee = Te(() => {
169102
+ }, []), ee = je(() => {
169103
169103
  if (U) {
169104
169104
  const V = U.getHTML();
169105
169105
  y(!1), r == null || r({ content: V }), f(V);
169106
169106
  }
169107
- }, [U, r]), ue = Te(() => {
169107
+ }, [U, r]), ue = je(() => {
169108
169108
  y(!1), U && U.commands.setContent(h || N || "");
169109
- }, [U, h, N]), B = Te(
169109
+ }, [U, h, N]), B = je(
169110
169110
  (V) => {
169111
169111
  V.key === "Enter" && (V.ctrlKey || V.metaKey) && !V.shiftKey ? (V.preventDefault(), d && ne()) : V.key === "Enter" && !V.shiftKey && !b ? (V.preventDefault(), u.trim() && Y()) : V.key === "Escape" ? (V.preventDefault(), a ? ie() : X()) : V.key === " " && !u.trim() ? (V.preventDefault(), X()) : V.key === "r" && (V.ctrlKey || V.metaKey) ? (V.preventDefault(), j()) : V.key === "e" && (V.ctrlKey || V.metaKey) && (V.preventDefault(), K());
169112
169112
  },
@@ -169122,7 +169122,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
169122
169122
  a,
169123
169123
  ie
169124
169124
  ]
169125
- ), te = Te((V) => {
169125
+ ), te = je((V) => {
169126
169126
  V ? localStorage.setItem("include-ddoc-context", "true") : localStorage.removeItem("include-ddoc-context");
169127
169127
  }, []);
169128
169128
  Oe(() => {
@@ -169156,7 +169156,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
169156
169156
  return () => clearInterval(V);
169157
169157
  }
169158
169158
  }, [i]);
169159
- const le = Te(
169159
+ const le = je(
169160
169160
  () => /* @__PURE__ */ F.jsx("span", { className: "text-body-sm color-text-secondary pt-1 flex items-center gap-1", children: /* @__PURE__ */ F.jsx(Ih, { mode: "wait", children: /* @__PURE__ */ F.jsxs(
169161
169161
  "span",
169162
169162
  {
@@ -169532,20 +169532,20 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
169532
169532
  Oe(() => {
169533
169533
  U && ne(null);
169534
169534
  }, [U, ne]);
169535
- const V = (_e, je) => {
169536
- const { state: Be } = _e, { selection: ot } = Be, { from: dt, to: mt, empty: Me } = ot;
169537
- if (je.key === "Backspace" || je.key === "Delete") {
169535
+ const V = (_e, Te) => {
169536
+ const { state: Be } = _e, { selection: at } = Be, { from: dt, to: mt, empty: Me } = at;
169537
+ if (Te.key === "Backspace" || Te.key === "Delete") {
169538
169538
  let He = !1;
169539
169539
  if (!Me)
169540
169540
  Be.doc.nodesBetween(dt, mt, (ut) => {
169541
169541
  ut.type.name === "reminderBlock" && (He = !0);
169542
169542
  });
169543
169543
  else {
169544
- const ut = ot.$from, nt = je.key === "Backspace" ? ut.nodeBefore : ut.nodeAfter;
169544
+ const ut = at.$from, nt = Te.key === "Backspace" ? ut.nodeBefore : ut.nodeAfter;
169545
169545
  (nt == null ? void 0 : nt.type.name) === "reminderBlock" && (He = !0);
169546
169546
  }
169547
169547
  if (He)
169548
- return je.preventDefault(), !0;
169548
+ return Te.preventDefault(), !0;
169549
169549
  }
169550
169550
  }, Q = gU(
169551
169551
  {
@@ -169559,10 +169559,10 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
169559
169559
  ...Bme,
169560
169560
  handleDOMEvents: {
169561
169561
  mouseover: ee,
169562
- keydown: (_e, je) => {
169563
- if (V(_e, je), ["ArrowUp", "ArrowDown", "Enter"].includes(je.key)) {
169564
- const Be = document.querySelector("#slash-command"), ot = document.querySelector("#emoji-list");
169565
- if (Be || ot)
169562
+ keydown: (_e, Te) => {
169563
+ if (V(_e, Te), ["ArrowUp", "ArrowDown", "Enter"].includes(Te.key)) {
169564
+ const Be = document.querySelector("#slash-command"), at = document.querySelector("#emoji-list");
169565
+ if (Be || at)
169566
169566
  return !0;
169567
169567
  }
169568
169568
  },
@@ -169570,18 +169570,18 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
169570
169570
  Q == null || Q.commands.unsetCommentActive();
169571
169571
  }
169572
169572
  },
169573
- handleClick: (_e, je, Be) => {
169574
- const ot = Be.metaKey || Be.ctrlKey, mt = Be.target.closest("a");
169573
+ handleClick: (_e, Te, Be) => {
169574
+ const at = Be.metaKey || Be.ctrlKey, mt = Be.target.closest("a");
169575
169575
  if (mt && mt.href) {
169576
169576
  if (o)
169577
169577
  return !1;
169578
169578
  if (mt.textContent.match(wC)) {
169579
- if (ot)
169579
+ if (at)
169580
169580
  return Be.preventDefault(), window.open(mt.href, "_blank"), !0;
169581
169581
  } else
169582
169582
  return Be.preventDefault(), window.open(mt.href, "_blank"), !0;
169583
169583
  }
169584
- return ue ? ue(_e, je, Be) : !1;
169584
+ return ue ? ue(_e, Te, Be) : !1;
169585
169585
  },
169586
169586
  attributes: {
169587
169587
  spellCheck: "true"
@@ -169623,21 +169623,24 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
169623
169623
  }, [Q, ge]), Oe(() => {
169624
169624
  Fe && A(!l);
169625
169625
  }, [Fe, l]);
169626
- const ce = Ge(!1), de = Ge(null), he = Te(
169626
+ const ce = Ge(!1), de = Ge(null), he = je(
169627
169627
  (_e) => {
169628
- const je = _e.map((Be) => In(Be));
169629
- Ta(e, ca(je), "self");
169628
+ const Te = _e.map((Be) => In(Be));
169629
+ Ta(e, ca(Te), "self");
169630
169630
  },
169631
169631
  [e]
169632
- ), R = Te(
169632
+ ), R = je(
169633
169633
  (_e) => Array.isArray(_e) || typeof _e == "string" && !EZ(_e),
169634
169634
  []
169635
169635
  );
169636
169636
  Oe(() => {
169637
- const _e = s || i != null;
169638
169637
  if (!Q || !e)
169639
169638
  return;
169640
- if (!_e) {
169639
+ if (s) {
169640
+ C(!1);
169641
+ return;
169642
+ }
169643
+ if (i === null) {
169641
169644
  C(!0);
169642
169645
  return;
169643
169646
  }
@@ -169645,24 +169648,24 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
169645
169648
  C(!0);
169646
169649
  return;
169647
169650
  }
169648
- const Be = `${r || "no-version-id"}:${U || "default"}`;
169651
+ const Te = `${r || "no-version-id"}:${U || "default"}`;
169649
169652
  if (!t && ce.current) {
169650
169653
  C(!1);
169651
169654
  return;
169652
169655
  }
169653
- if (t && de.current === Be) {
169656
+ if (t && de.current === Te) {
169654
169657
  C(!1);
169655
169658
  return;
169656
169659
  }
169657
169660
  C(!0), queueMicrotask(() => {
169658
- if (i !== "" && (R(i) ? Array.isArray(i) ? he(i) : Ta(e, In(i), "self") : Q.commands.setContent(
169661
+ if (i !== "" && i !== void 0 && (R(i) ? Array.isArray(i) ? he(i) : Ta(e, In(i), "self") : Q.commands.setContent(
169659
169662
  CZ({
169660
169663
  data: i,
169661
169664
  ignoreCorruptedData: E,
169662
169665
  onInvalidContentError: M
169663
169666
  })
169664
169667
  )), O && c5.setZoom(O), t) {
169665
- de.current = Be, C(!1);
169668
+ de.current = Te, C(!1);
169666
169669
  return;
169667
169670
  }
169668
169671
  z().finally(() => {
@@ -169671,6 +169674,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
169671
169674
  }), ce.current = !0;
169672
169675
  }, [
169673
169676
  i,
169677
+ s,
169674
169678
  Q,
169675
169679
  e,
169676
169680
  O,
@@ -169703,13 +169707,13 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
169703
169707
  return () => clearTimeout(_e);
169704
169708
  }, [O, q, i, Q == null ? void 0 : Q.isEmpty]), Oe(() => {
169705
169709
  if (!Q) return;
169706
- const _e = ({ editor: je }) => {
169707
- const Be = je.state.selection.from;
169710
+ const _e = ({ editor: Te }) => {
169711
+ const Be = Te.state.selection.from;
169708
169712
  setTimeout(() => {
169709
- const ot = je.state.selection.from, dt = [];
169710
- je.state.doc.nodesBetween(
169713
+ const at = Te.state.selection.from, dt = [];
169714
+ Te.state.doc.nodesBetween(
169711
169715
  Be,
169712
- ot,
169716
+ at,
169713
169717
  (mt, Me) => {
169714
169718
  mt.marks && mt.marks.forEach((He) => {
169715
169719
  He.type.name === "textStyle" && He.attrs.color && dt.push({
@@ -169719,10 +169723,10 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
169719
169723
  });
169720
169724
  });
169721
169725
  }
169722
- ), je.chain().setTextSelection({ from: Be, to: ot }).setColor("").run(), dt.forEach(({ from: mt, to: Me, mark: He }) => {
169726
+ ), Te.chain().setTextSelection({ from: Be, to: at }).setColor("").run(), dt.forEach(({ from: mt, to: Me, mark: He }) => {
169723
169727
  const ut = He.attrs.color;
169724
- w$(ut) || je.chain().setTextSelection({ from: mt, to: Me }).setColor(ut).run();
169725
- }), je.commands.setTextSelection(ot);
169728
+ w$(ut) || Te.chain().setTextSelection({ from: mt, to: Me }).setColor(ut).run();
169729
+ }), Te.commands.setTextSelection(at);
169726
169730
  }, 0);
169727
169731
  };
169728
169732
  return Q.on("paste", _e), () => {
@@ -169743,8 +169747,8 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
169743
169747
  Q.off("update", _e), pe.current && clearTimeout(pe.current);
169744
169748
  };
169745
169749
  }, [Q]), Oe(() => {
169746
- const _e = (je) => {
169747
- (je.ctrlKey || je.metaKey) && je.key === "p" && (je.preventDefault(), Q && (_ ? fP(te) : E8(Q.getHTML())));
169750
+ const _e = (Te) => {
169751
+ (Te.ctrlKey || Te.metaKey) && Te.key === "p" && (Te.preventDefault(), Q && (_ ? fP(te) : E8(Q.getHTML())));
169748
169752
  };
169749
169753
  return window.addEventListener("keydown", _e), () => {
169750
169754
  window.removeEventListener("keydown", _e);
@@ -169763,21 +169767,21 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
169763
169767
  }), () => {
169764
169768
  W.current();
169765
169769
  }), [s, !!a]);
169766
- const ye = window.location.hash.startsWith("#") ? window.location.hash.substring(1) : window.location.hash, { isNativeMobile: me } = Hl(), Ee = new URLSearchParams(ye), Ce = Ee.get("heading"), fe = Ce == null ? void 0 : Ce.split("-").pop(), Se = Te(
169770
+ const ye = window.location.hash.startsWith("#") ? window.location.hash.substring(1) : window.location.hash, { isNativeMobile: me } = Hl(), Ee = new URLSearchParams(ye), Ce = Ee.get("heading"), fe = Ce == null ? void 0 : Ce.split("-").pop(), Se = je(
169767
169771
  (_e) => {
169768
169772
  if (Q)
169769
169773
  try {
169770
- const je = Q.view.dom.querySelectorAll("[data-toc-id]"), Be = Array.from(je).find(
169774
+ const Te = Q.view.dom.querySelectorAll("[data-toc-id]"), Be = Array.from(Te).find(
169771
169775
  (Le) => {
169772
169776
  var bt;
169773
169777
  return (bt = Le.dataset.tocId) == null ? void 0 : bt.includes(_e);
169774
169778
  }
169775
169779
  );
169776
169780
  if (!Be) return;
169777
- const ot = S9(
169781
+ const at = S9(
169778
169782
  Be == null ? void 0 : Be.textContent
169779
169783
  ), dt = Ce == null ? void 0 : Ce.split("-").slice(0, -1).join("-");
169780
- ot !== dt && (Ee.set("heading", `${ot}-${_e}`), window.location.hash = Ee.toString());
169784
+ at !== dt && (Ee.set("heading", `${at}-${_e}`), window.location.hash = Ee.toString());
169781
169785
  const mt = Q.view.posAtDOM(Be, 0), Me = Q.view.state.tr;
169782
169786
  Me.setSelection(new pt(Me.doc.resolve(mt))), Q.view.dispatch(Me);
169783
169787
  const nt = [
@@ -169817,8 +169821,8 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
169817
169821
  if (!Q || q || !i)
169818
169822
  return;
169819
169823
  const _e = setTimeout(() => {
169820
- const { tr: je, doc: Be } = Q.state;
169821
- let ot = !1;
169824
+ const { tr: Te, doc: Be } = Q.state;
169825
+ let at = !1;
169822
169826
  Be.descendants((dt, mt) => {
169823
169827
  if (!dt.marks || dt.marks.length === 0) return;
169824
169828
  const Me = dt.marks.find(
@@ -169830,15 +169834,15 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
169830
169834
  return;
169831
169835
  const ut = Wx(He, P);
169832
169836
  if (ut !== Me.attrs.color) {
169833
- ot = !0;
169837
+ at = !0;
169834
169838
  const nt = Me.type.create({
169835
169839
  ...Me.attrs,
169836
169840
  color: ut,
169837
169841
  "data-original-color": He
169838
169842
  });
169839
- je.removeMark(mt, mt + dt.nodeSize, Me), je.addMark(mt, mt + dt.nodeSize, nt);
169843
+ Te.removeMark(mt, mt + dt.nodeSize, Me), Te.addMark(mt, mt + dt.nodeSize, nt);
169840
169844
  }
169841
- }), ot && (je.setMeta("addToHistory", !1), Q.view.dispatch(je));
169845
+ }), at && (Te.setMeta("addToHistory", !1), Q.view.dispatch(Te));
169842
169846
  }, 0);
169843
169847
  return () => clearTimeout(_e);
169844
169848
  }, [Q, i, q, P]), Oe(() => () => {
@@ -169856,7 +169860,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
169856
169860
  isContentLoading: q
169857
169861
  };
169858
169862
  }, QIe = () => {
169859
- const [e, t] = Ne(null), n = Ge(null), r = Te((o) => {
169863
+ const [e, t] = Ne(null), n = Ge(null), r = je((o) => {
169860
169864
  if (!n.current) return;
169861
169865
  const i = n.current.querySelector(`input#${o}`);
169862
169866
  i && i.scrollIntoView({
@@ -169879,7 +169883,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
169879
169883
  const a = o.current[e];
169880
169884
  a && n(a);
169881
169885
  }, [e]);
169882
- const s = Te(
169886
+ const s = je(
169883
169887
  (a, l) => {
169884
169888
  const u = e, c = () => {
169885
169889
  o.current = {
@@ -169936,7 +169940,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
169936
169940
  disableInlineComment: l
169937
169941
  };
169938
169942
  }, [u, a, l]);
169939
- const x = Te(
169943
+ const x = je(
169940
169944
  () => yIe(
169941
169945
  (C) => t == null ? void 0 : t(C),
169942
169946
  n,
@@ -169951,7 +169955,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
169951
169955
  onCommentActivated: f
169952
169956
  }),
169953
169957
  [f]
169954
- ), D = Te(() => [
169958
+ ), D = je(() => [
169955
169959
  ...vZ({
169956
169960
  onError: (A) => t == null ? void 0 : t(A),
169957
169961
  ipfsImageUploadFn: n,
@@ -170013,7 +170017,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
170013
170017
  }, nLe = ({
170014
170018
  onCommentInteraction: e
170015
170019
  }) => {
170016
- const t = Te(
170020
+ const t = je(
170017
170021
  (o, i, s) => {
170018
170022
  let a = !1;
170019
170023
  return o.doc.nodesBetween(i, s, (l) => {
@@ -170023,7 +170027,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
170023
170027
  }), a;
170024
170028
  },
170025
170029
  []
170026
- ), n = Te(
170030
+ ), n = je(
170027
170031
  (o, i) => {
170028
170032
  const s = i.target;
170029
170033
  if (!s || s.nodeName !== "MARK" || s.dataset.color !== "yellow")
@@ -170046,7 +170050,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
170046
170050
  e == null || e(p);
170047
170051
  },
170048
170052
  [t, e]
170049
- ), r = Te(
170053
+ ), r = je(
170050
170054
  (o, i, s) => n(o, s),
170051
170055
  [n]
170052
170056
  );
@@ -170128,7 +170132,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
170128
170132
  return () => window.clearTimeout(i);
170129
170133
  }, [e, t, n]);
170130
170134
  }, iLe = (e) => {
170131
- const t = Ge([]), n = Ge([]), r = Ge(!1), o = Te(
170135
+ const t = Ge([]), n = Ge([]), r = Ge(!1), o = je(
170132
170136
  (l, u) => {
170133
170137
  const { tabs: c } = pu(e), d = c.get(l.tabId);
170134
170138
  if (!(d instanceof io))
@@ -170145,15 +170149,15 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
170145
170149
  return !0;
170146
170150
  },
170147
170151
  [e]
170148
- ), i = Te(() => {
170152
+ ), i = je(() => {
170149
170153
  const l = t.current.length > 0 ? t.current[t.current.length - 1] : void 0;
170150
170154
  return !l || !o(l, "undo") ? !1 : (t.current.pop(), n.current.push(l), !0);
170151
- }, [o]), s = Te(() => {
170155
+ }, [o]), s = je(() => {
170152
170156
  const l = n.current, u = l.length ? l[l.length - 1] : void 0;
170153
170157
  return !u || !o(u, "redo") ? !1 : (l.pop(), t.current.push(u), !0);
170154
170158
  }, [o]);
170155
170159
  return {
170156
- applyRename: Te(
170160
+ applyRename: je(
170157
170161
  ({ tabId: l, newName: u, emoji: c }) => {
170158
170162
  const { tabs: d } = pu(e), p = d.get(l);
170159
170163
  if (!(p instanceof io))
@@ -170185,7 +170189,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
170185
170189
  onVersionHistoryActiveTabChange: a,
170186
170190
  getEditor: l
170187
170191
  }) => {
170188
- const u = n || t != null, c = jt(() => e ? u ? t || r && !n && t === "" ? Wde(t, e, {
170192
+ const u = n || t !== null, c = jt(() => e ? u ? t || r && !n && t === "" ? Wde(t, e, {
170189
170193
  createDefaultTabIfMissing: o
170190
170194
  }) : { tabList: [], activeTabId: "default" } : { tabList: [], activeTabId: "default" } : { tabList: [], activeTabId: "default" }, [
170191
170195
  e,
@@ -170211,7 +170215,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
170211
170215
  const E = d || null;
170212
170216
  a == null || a(E);
170213
170217
  }, [d, a]);
170214
- const w = Te(
170218
+ const w = je(
170215
170219
  (E) => {
170216
170220
  if (!e || E === d) return;
170217
170221
  if (!i || !u) {
@@ -170265,7 +170269,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
170265
170269
  E.unobserveDeep(S);
170266
170270
  };
170267
170271
  }, [e, s, i, u]);
170268
- const k = Te(() => {
170272
+ const k = je(() => {
170269
170273
  const E = e.getMap("ddocTabs"), S = E.get("order"), T = E.get("tabs"), L = E.get("activeTabId");
170270
170274
  if (!(S instanceof Fl))
170271
170275
  throw new Error("Invalid ddocTabs.order");
@@ -170280,7 +170284,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
170280
170284
  const q = new io();
170281
170285
  q.set("name", $.name), q.set("emoji", $.emoji), T.set($.id, q), e.getXmlFragment($.id), i && L instanceof oi && (L.delete(0, L.length), L.insert(0, z)), S.push([$.id]);
170282
170286
  }), p(z), z;
170283
- }, [i, e]), C = Te(
170287
+ }, [i, e]), C = je(
170284
170288
  (E) => {
170285
170289
  const { order: S, tabs: T, activeTab: L } = pu(e);
170286
170290
  if (S.length <= 1)
@@ -170302,7 +170306,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
170302
170306
  }), U && P && p(P);
170303
170307
  },
170304
170308
  [e, i]
170305
- ), A = Te(() => {
170309
+ ), A = je(() => {
170306
170310
  const E = m.current;
170307
170311
  if (!E) return !1;
170308
170312
  if (Date.now() - E.timestamp > VO)
@@ -170314,7 +170318,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
170314
170318
  const $ = Math.min(E.orderIndex, S.length);
170315
170319
  S.insert($, [E.tabId]), i && L instanceof oi && (L.delete(0, L.length), L.insert(0, E.tabId));
170316
170320
  }), p(E.tabId), m.current = null, !0);
170317
- }, [e, i]), N = Te(() => {
170321
+ }, [e, i]), N = je(() => {
170318
170322
  const E = l == null ? void 0 : l();
170319
170323
  if (!E || E.isDestroyed)
170320
170324
  return !0;
@@ -170340,7 +170344,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
170340
170344
  A,
170341
170345
  v
170342
170346
  ]);
170343
- const O = Te(
170347
+ const O = je(
170344
170348
  (E, { newName: S, emoji: T }) => {
170345
170349
  x({ tabId: E, newName: S, emoji: T }).tabNotFound && Bk({
170346
170350
  title: "Rename tab error",
@@ -170348,7 +170352,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
170348
170352
  });
170349
170353
  },
170350
170354
  [x]
170351
- ), _ = Te(
170355
+ ), _ = je(
170352
170356
  (E) => {
170353
170357
  const { tabs: S, order: T, activeTab: L } = pu(e), z = S.get(E);
170354
170358
  if (!z || !(z instanceof io)) {
@@ -170366,7 +170370,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
170366
170370
  }), p($), $;
170367
170371
  },
170368
170372
  [e, i]
170369
- ), M = Te(
170373
+ ), M = je(
170370
170374
  (E, S) => {
170371
170375
  const { order: T } = pu(e), L = T.toArray(), z = L.indexOf(S), $ = L.indexOf(E);
170372
170376
  z === -1 || $ === -1 || e.transact(() => {
@@ -176651,8 +176655,8 @@ var HJ = {};
176651
176655
  oe[j] = Z[j] - ae[j];
176652
176656
  }
176653
176657
  function k(oe, Z, ae) {
176654
- let j, K, ee = 0, ue = 0, B = 0, te = 0, le = 0, G = 0, V = 0, Q = 0, Fe = 0, De = 0, ge = 0, ce = 0, de = 0, he = 0, R = 0, W = 0, re = 0, pe = 0, ye = 0, me = 0, Ee = 0, Ce = 0, fe = 0, Se = 0, _e = 0, je = 0, Be = 0, ot = 0, dt = 0, mt = 0, Me = 0, He = ae[0], ut = ae[1], nt = ae[2], Le = ae[3], bt = ae[4], Lt = ae[5], tn = ae[6], wn = ae[7], Zt = ae[8], Mn = ae[9], An = ae[10], gn = ae[11], Dn = ae[12], $n = ae[13], xe = ae[14], Ie = ae[15];
176655
- j = Z[0], ee += j * He, ue += j * ut, B += j * nt, te += j * Le, le += j * bt, G += j * Lt, V += j * tn, Q += j * wn, Fe += j * Zt, De += j * Mn, ge += j * An, ce += j * gn, de += j * Dn, he += j * $n, R += j * xe, W += j * Ie, j = Z[1], ue += j * He, B += j * ut, te += j * nt, le += j * Le, G += j * bt, V += j * Lt, Q += j * tn, Fe += j * wn, De += j * Zt, ge += j * Mn, ce += j * An, de += j * gn, he += j * Dn, R += j * $n, W += j * xe, re += j * Ie, j = Z[2], B += j * He, te += j * ut, le += j * nt, G += j * Le, V += j * bt, Q += j * Lt, Fe += j * tn, De += j * wn, ge += j * Zt, ce += j * Mn, de += j * An, he += j * gn, R += j * Dn, W += j * $n, re += j * xe, pe += j * Ie, j = Z[3], te += j * He, le += j * ut, G += j * nt, V += j * Le, Q += j * bt, Fe += j * Lt, De += j * tn, ge += j * wn, ce += j * Zt, de += j * Mn, he += j * An, R += j * gn, W += j * Dn, re += j * $n, pe += j * xe, ye += j * Ie, j = Z[4], le += j * He, G += j * ut, V += j * nt, Q += j * Le, Fe += j * bt, De += j * Lt, ge += j * tn, ce += j * wn, de += j * Zt, he += j * Mn, R += j * An, W += j * gn, re += j * Dn, pe += j * $n, ye += j * xe, me += j * Ie, j = Z[5], G += j * He, V += j * ut, Q += j * nt, Fe += j * Le, De += j * bt, ge += j * Lt, ce += j * tn, de += j * wn, he += j * Zt, R += j * Mn, W += j * An, re += j * gn, pe += j * Dn, ye += j * $n, me += j * xe, Ee += j * Ie, j = Z[6], V += j * He, Q += j * ut, Fe += j * nt, De += j * Le, ge += j * bt, ce += j * Lt, de += j * tn, he += j * wn, R += j * Zt, W += j * Mn, re += j * An, pe += j * gn, ye += j * Dn, me += j * $n, Ee += j * xe, Ce += j * Ie, j = Z[7], Q += j * He, Fe += j * ut, De += j * nt, ge += j * Le, ce += j * bt, de += j * Lt, he += j * tn, R += j * wn, W += j * Zt, re += j * Mn, pe += j * An, ye += j * gn, me += j * Dn, Ee += j * $n, Ce += j * xe, fe += j * Ie, j = Z[8], Fe += j * He, De += j * ut, ge += j * nt, ce += j * Le, de += j * bt, he += j * Lt, R += j * tn, W += j * wn, re += j * Zt, pe += j * Mn, ye += j * An, me += j * gn, Ee += j * Dn, Ce += j * $n, fe += j * xe, Se += j * Ie, j = Z[9], De += j * He, ge += j * ut, ce += j * nt, de += j * Le, he += j * bt, R += j * Lt, W += j * tn, re += j * wn, pe += j * Zt, ye += j * Mn, me += j * An, Ee += j * gn, Ce += j * Dn, fe += j * $n, Se += j * xe, _e += j * Ie, j = Z[10], ge += j * He, ce += j * ut, de += j * nt, he += j * Le, R += j * bt, W += j * Lt, re += j * tn, pe += j * wn, ye += j * Zt, me += j * Mn, Ee += j * An, Ce += j * gn, fe += j * Dn, Se += j * $n, _e += j * xe, je += j * Ie, j = Z[11], ce += j * He, de += j * ut, he += j * nt, R += j * Le, W += j * bt, re += j * Lt, pe += j * tn, ye += j * wn, me += j * Zt, Ee += j * Mn, Ce += j * An, fe += j * gn, Se += j * Dn, _e += j * $n, je += j * xe, Be += j * Ie, j = Z[12], de += j * He, he += j * ut, R += j * nt, W += j * Le, re += j * bt, pe += j * Lt, ye += j * tn, me += j * wn, Ee += j * Zt, Ce += j * Mn, fe += j * An, Se += j * gn, _e += j * Dn, je += j * $n, Be += j * xe, ot += j * Ie, j = Z[13], he += j * He, R += j * ut, W += j * nt, re += j * Le, pe += j * bt, ye += j * Lt, me += j * tn, Ee += j * wn, Ce += j * Zt, fe += j * Mn, Se += j * An, _e += j * gn, je += j * Dn, Be += j * $n, ot += j * xe, dt += j * Ie, j = Z[14], R += j * He, W += j * ut, re += j * nt, pe += j * Le, ye += j * bt, me += j * Lt, Ee += j * tn, Ce += j * wn, fe += j * Zt, Se += j * Mn, _e += j * An, je += j * gn, Be += j * Dn, ot += j * $n, dt += j * xe, mt += j * Ie, j = Z[15], W += j * He, re += j * ut, pe += j * nt, ye += j * Le, me += j * bt, Ee += j * Lt, Ce += j * tn, fe += j * wn, Se += j * Zt, _e += j * Mn, je += j * An, Be += j * gn, ot += j * Dn, dt += j * $n, mt += j * xe, Me += j * Ie, ee += 38 * re, ue += 38 * pe, B += 38 * ye, te += 38 * me, le += 38 * Ee, G += 38 * Ce, V += 38 * fe, Q += 38 * Se, Fe += 38 * _e, De += 38 * je, ge += 38 * Be, ce += 38 * ot, de += 38 * dt, he += 38 * mt, R += 38 * Me, K = 1, j = ee + K + 65535, K = Math.floor(j / 65536), ee = j - K * 65536, j = ue + K + 65535, K = Math.floor(j / 65536), ue = j - K * 65536, j = B + K + 65535, K = Math.floor(j / 65536), B = j - K * 65536, j = te + K + 65535, K = Math.floor(j / 65536), te = j - K * 65536, j = le + K + 65535, K = Math.floor(j / 65536), le = j - K * 65536, j = G + K + 65535, K = Math.floor(j / 65536), G = j - K * 65536, j = V + K + 65535, K = Math.floor(j / 65536), V = j - K * 65536, j = Q + K + 65535, K = Math.floor(j / 65536), Q = j - K * 65536, j = Fe + K + 65535, K = Math.floor(j / 65536), Fe = j - K * 65536, j = De + K + 65535, K = Math.floor(j / 65536), De = j - K * 65536, j = ge + K + 65535, K = Math.floor(j / 65536), ge = j - K * 65536, j = ce + K + 65535, K = Math.floor(j / 65536), ce = j - K * 65536, j = de + K + 65535, K = Math.floor(j / 65536), de = j - K * 65536, j = he + K + 65535, K = Math.floor(j / 65536), he = j - K * 65536, j = R + K + 65535, K = Math.floor(j / 65536), R = j - K * 65536, j = W + K + 65535, K = Math.floor(j / 65536), W = j - K * 65536, ee += K - 1 + 37 * (K - 1), K = 1, j = ee + K + 65535, K = Math.floor(j / 65536), ee = j - K * 65536, j = ue + K + 65535, K = Math.floor(j / 65536), ue = j - K * 65536, j = B + K + 65535, K = Math.floor(j / 65536), B = j - K * 65536, j = te + K + 65535, K = Math.floor(j / 65536), te = j - K * 65536, j = le + K + 65535, K = Math.floor(j / 65536), le = j - K * 65536, j = G + K + 65535, K = Math.floor(j / 65536), G = j - K * 65536, j = V + K + 65535, K = Math.floor(j / 65536), V = j - K * 65536, j = Q + K + 65535, K = Math.floor(j / 65536), Q = j - K * 65536, j = Fe + K + 65535, K = Math.floor(j / 65536), Fe = j - K * 65536, j = De + K + 65535, K = Math.floor(j / 65536), De = j - K * 65536, j = ge + K + 65535, K = Math.floor(j / 65536), ge = j - K * 65536, j = ce + K + 65535, K = Math.floor(j / 65536), ce = j - K * 65536, j = de + K + 65535, K = Math.floor(j / 65536), de = j - K * 65536, j = he + K + 65535, K = Math.floor(j / 65536), he = j - K * 65536, j = R + K + 65535, K = Math.floor(j / 65536), R = j - K * 65536, j = W + K + 65535, K = Math.floor(j / 65536), W = j - K * 65536, ee += K - 1 + 37 * (K - 1), oe[0] = ee, oe[1] = ue, oe[2] = B, oe[3] = te, oe[4] = le, oe[5] = G, oe[6] = V, oe[7] = Q, oe[8] = Fe, oe[9] = De, oe[10] = ge, oe[11] = ce, oe[12] = de, oe[13] = he, oe[14] = R, oe[15] = W;
176658
+ let j, K, ee = 0, ue = 0, B = 0, te = 0, le = 0, G = 0, V = 0, Q = 0, Fe = 0, De = 0, ge = 0, ce = 0, de = 0, he = 0, R = 0, W = 0, re = 0, pe = 0, ye = 0, me = 0, Ee = 0, Ce = 0, fe = 0, Se = 0, _e = 0, Te = 0, Be = 0, at = 0, dt = 0, mt = 0, Me = 0, He = ae[0], ut = ae[1], nt = ae[2], Le = ae[3], bt = ae[4], Lt = ae[5], tn = ae[6], wn = ae[7], Zt = ae[8], Mn = ae[9], An = ae[10], gn = ae[11], Dn = ae[12], $n = ae[13], xe = ae[14], Ie = ae[15];
176659
+ j = Z[0], ee += j * He, ue += j * ut, B += j * nt, te += j * Le, le += j * bt, G += j * Lt, V += j * tn, Q += j * wn, Fe += j * Zt, De += j * Mn, ge += j * An, ce += j * gn, de += j * Dn, he += j * $n, R += j * xe, W += j * Ie, j = Z[1], ue += j * He, B += j * ut, te += j * nt, le += j * Le, G += j * bt, V += j * Lt, Q += j * tn, Fe += j * wn, De += j * Zt, ge += j * Mn, ce += j * An, de += j * gn, he += j * Dn, R += j * $n, W += j * xe, re += j * Ie, j = Z[2], B += j * He, te += j * ut, le += j * nt, G += j * Le, V += j * bt, Q += j * Lt, Fe += j * tn, De += j * wn, ge += j * Zt, ce += j * Mn, de += j * An, he += j * gn, R += j * Dn, W += j * $n, re += j * xe, pe += j * Ie, j = Z[3], te += j * He, le += j * ut, G += j * nt, V += j * Le, Q += j * bt, Fe += j * Lt, De += j * tn, ge += j * wn, ce += j * Zt, de += j * Mn, he += j * An, R += j * gn, W += j * Dn, re += j * $n, pe += j * xe, ye += j * Ie, j = Z[4], le += j * He, G += j * ut, V += j * nt, Q += j * Le, Fe += j * bt, De += j * Lt, ge += j * tn, ce += j * wn, de += j * Zt, he += j * Mn, R += j * An, W += j * gn, re += j * Dn, pe += j * $n, ye += j * xe, me += j * Ie, j = Z[5], G += j * He, V += j * ut, Q += j * nt, Fe += j * Le, De += j * bt, ge += j * Lt, ce += j * tn, de += j * wn, he += j * Zt, R += j * Mn, W += j * An, re += j * gn, pe += j * Dn, ye += j * $n, me += j * xe, Ee += j * Ie, j = Z[6], V += j * He, Q += j * ut, Fe += j * nt, De += j * Le, ge += j * bt, ce += j * Lt, de += j * tn, he += j * wn, R += j * Zt, W += j * Mn, re += j * An, pe += j * gn, ye += j * Dn, me += j * $n, Ee += j * xe, Ce += j * Ie, j = Z[7], Q += j * He, Fe += j * ut, De += j * nt, ge += j * Le, ce += j * bt, de += j * Lt, he += j * tn, R += j * wn, W += j * Zt, re += j * Mn, pe += j * An, ye += j * gn, me += j * Dn, Ee += j * $n, Ce += j * xe, fe += j * Ie, j = Z[8], Fe += j * He, De += j * ut, ge += j * nt, ce += j * Le, de += j * bt, he += j * Lt, R += j * tn, W += j * wn, re += j * Zt, pe += j * Mn, ye += j * An, me += j * gn, Ee += j * Dn, Ce += j * $n, fe += j * xe, Se += j * Ie, j = Z[9], De += j * He, ge += j * ut, ce += j * nt, de += j * Le, he += j * bt, R += j * Lt, W += j * tn, re += j * wn, pe += j * Zt, ye += j * Mn, me += j * An, Ee += j * gn, Ce += j * Dn, fe += j * $n, Se += j * xe, _e += j * Ie, j = Z[10], ge += j * He, ce += j * ut, de += j * nt, he += j * Le, R += j * bt, W += j * Lt, re += j * tn, pe += j * wn, ye += j * Zt, me += j * Mn, Ee += j * An, Ce += j * gn, fe += j * Dn, Se += j * $n, _e += j * xe, Te += j * Ie, j = Z[11], ce += j * He, de += j * ut, he += j * nt, R += j * Le, W += j * bt, re += j * Lt, pe += j * tn, ye += j * wn, me += j * Zt, Ee += j * Mn, Ce += j * An, fe += j * gn, Se += j * Dn, _e += j * $n, Te += j * xe, Be += j * Ie, j = Z[12], de += j * He, he += j * ut, R += j * nt, W += j * Le, re += j * bt, pe += j * Lt, ye += j * tn, me += j * wn, Ee += j * Zt, Ce += j * Mn, fe += j * An, Se += j * gn, _e += j * Dn, Te += j * $n, Be += j * xe, at += j * Ie, j = Z[13], he += j * He, R += j * ut, W += j * nt, re += j * Le, pe += j * bt, ye += j * Lt, me += j * tn, Ee += j * wn, Ce += j * Zt, fe += j * Mn, Se += j * An, _e += j * gn, Te += j * Dn, Be += j * $n, at += j * xe, dt += j * Ie, j = Z[14], R += j * He, W += j * ut, re += j * nt, pe += j * Le, ye += j * bt, me += j * Lt, Ee += j * tn, Ce += j * wn, fe += j * Zt, Se += j * Mn, _e += j * An, Te += j * gn, Be += j * Dn, at += j * $n, dt += j * xe, mt += j * Ie, j = Z[15], W += j * He, re += j * ut, pe += j * nt, ye += j * Le, me += j * bt, Ee += j * Lt, Ce += j * tn, fe += j * wn, Se += j * Zt, _e += j * Mn, Te += j * An, Be += j * gn, at += j * Dn, dt += j * $n, mt += j * xe, Me += j * Ie, ee += 38 * re, ue += 38 * pe, B += 38 * ye, te += 38 * me, le += 38 * Ee, G += 38 * Ce, V += 38 * fe, Q += 38 * Se, Fe += 38 * _e, De += 38 * Te, ge += 38 * Be, ce += 38 * at, de += 38 * dt, he += 38 * mt, R += 38 * Me, K = 1, j = ee + K + 65535, K = Math.floor(j / 65536), ee = j - K * 65536, j = ue + K + 65535, K = Math.floor(j / 65536), ue = j - K * 65536, j = B + K + 65535, K = Math.floor(j / 65536), B = j - K * 65536, j = te + K + 65535, K = Math.floor(j / 65536), te = j - K * 65536, j = le + K + 65535, K = Math.floor(j / 65536), le = j - K * 65536, j = G + K + 65535, K = Math.floor(j / 65536), G = j - K * 65536, j = V + K + 65535, K = Math.floor(j / 65536), V = j - K * 65536, j = Q + K + 65535, K = Math.floor(j / 65536), Q = j - K * 65536, j = Fe + K + 65535, K = Math.floor(j / 65536), Fe = j - K * 65536, j = De + K + 65535, K = Math.floor(j / 65536), De = j - K * 65536, j = ge + K + 65535, K = Math.floor(j / 65536), ge = j - K * 65536, j = ce + K + 65535, K = Math.floor(j / 65536), ce = j - K * 65536, j = de + K + 65535, K = Math.floor(j / 65536), de = j - K * 65536, j = he + K + 65535, K = Math.floor(j / 65536), he = j - K * 65536, j = R + K + 65535, K = Math.floor(j / 65536), R = j - K * 65536, j = W + K + 65535, K = Math.floor(j / 65536), W = j - K * 65536, ee += K - 1 + 37 * (K - 1), K = 1, j = ee + K + 65535, K = Math.floor(j / 65536), ee = j - K * 65536, j = ue + K + 65535, K = Math.floor(j / 65536), ue = j - K * 65536, j = B + K + 65535, K = Math.floor(j / 65536), B = j - K * 65536, j = te + K + 65535, K = Math.floor(j / 65536), te = j - K * 65536, j = le + K + 65535, K = Math.floor(j / 65536), le = j - K * 65536, j = G + K + 65535, K = Math.floor(j / 65536), G = j - K * 65536, j = V + K + 65535, K = Math.floor(j / 65536), V = j - K * 65536, j = Q + K + 65535, K = Math.floor(j / 65536), Q = j - K * 65536, j = Fe + K + 65535, K = Math.floor(j / 65536), Fe = j - K * 65536, j = De + K + 65535, K = Math.floor(j / 65536), De = j - K * 65536, j = ge + K + 65535, K = Math.floor(j / 65536), ge = j - K * 65536, j = ce + K + 65535, K = Math.floor(j / 65536), ce = j - K * 65536, j = de + K + 65535, K = Math.floor(j / 65536), de = j - K * 65536, j = he + K + 65535, K = Math.floor(j / 65536), he = j - K * 65536, j = R + K + 65535, K = Math.floor(j / 65536), R = j - K * 65536, j = W + K + 65535, K = Math.floor(j / 65536), W = j - K * 65536, ee += K - 1 + 37 * (K - 1), oe[0] = ee, oe[1] = ue, oe[2] = B, oe[3] = te, oe[4] = le, oe[5] = G, oe[6] = V, oe[7] = Q, oe[8] = Fe, oe[9] = De, oe[10] = ge, oe[11] = ce, oe[12] = de, oe[13] = he, oe[14] = R, oe[15] = W;
176656
176660
  }
176657
176661
  function C(oe, Z) {
176658
176662
  k(oe, Z, Z);
@@ -177110,11 +177114,11 @@ var XJ = { exports: {} };
177110
177114
  return new p(this.value >= 0 ? this.value : -this.value);
177111
177115
  };
177112
177116
  function A(R, W) {
177113
- var re = R.length, pe = W.length, ye = re + pe, me = b(ye), Ee = r, Ce, fe, Se, _e, je;
177117
+ var re = R.length, pe = W.length, ye = re + pe, me = b(ye), Ee = r, Ce, fe, Se, _e, Te;
177114
177118
  for (Se = 0; Se < re; ++Se) {
177115
177119
  _e = R[Se];
177116
177120
  for (var Be = 0; Be < pe; ++Be)
177117
- je = W[Be], Ce = _e * je + me[Se + Be], fe = Math.floor(Ce / Ee), me[Se + Be] = Ce - fe * Ee, me[Se + Be + 1] += fe;
177121
+ Te = W[Be], Ce = _e * Te + me[Se + Be], fe = Math.floor(Ce / Ee), me[Se + Be] = Ce - fe * Ee, me[Se + Be + 1] += fe;
177118
177122
  }
177119
177123
  return m(me), me;
177120
177124
  }
@@ -177183,31 +177187,31 @@ var XJ = { exports: {} };
177183
177187
  return new p(this.value * this.value);
177184
177188
  };
177185
177189
  function T(R, W) {
177186
- var re = R.length, pe = W.length, ye = r, me = b(W.length), Ee = W[pe - 1], Ce = Math.ceil(ye / (2 * Ee)), fe = N(R, Ce), Se = N(W, Ce), _e, je, Be, ot, dt, mt, Me;
177187
- for (fe.length <= re && fe.push(0), Se.push(0), Ee = Se[pe - 1], je = re - pe; je >= 0; je--) {
177188
- for (_e = ye - 1, fe[je + pe] !== Ee && (_e = Math.floor((fe[je + pe] * ye + fe[je + pe - 1]) / Ee)), Be = 0, ot = 0, mt = Se.length, dt = 0; dt < mt; dt++)
177189
- Be += _e * Se[dt], Me = Math.floor(Be / ye), ot += fe[je + dt] - (Be - Me * ye), Be = Me, ot < 0 ? (fe[je + dt] = ot + ye, ot = -1) : (fe[je + dt] = ot, ot = 0);
177190
- for (; ot !== 0; ) {
177190
+ var re = R.length, pe = W.length, ye = r, me = b(W.length), Ee = W[pe - 1], Ce = Math.ceil(ye / (2 * Ee)), fe = N(R, Ce), Se = N(W, Ce), _e, Te, Be, at, dt, mt, Me;
177191
+ for (fe.length <= re && fe.push(0), Se.push(0), Ee = Se[pe - 1], Te = re - pe; Te >= 0; Te--) {
177192
+ for (_e = ye - 1, fe[Te + pe] !== Ee && (_e = Math.floor((fe[Te + pe] * ye + fe[Te + pe - 1]) / Ee)), Be = 0, at = 0, mt = Se.length, dt = 0; dt < mt; dt++)
177193
+ Be += _e * Se[dt], Me = Math.floor(Be / ye), at += fe[Te + dt] - (Be - Me * ye), Be = Me, at < 0 ? (fe[Te + dt] = at + ye, at = -1) : (fe[Te + dt] = at, at = 0);
177194
+ for (; at !== 0; ) {
177191
177195
  for (_e -= 1, Be = 0, dt = 0; dt < mt; dt++)
177192
- Be += fe[je + dt] - ye + Se[dt], Be < 0 ? (fe[je + dt] = Be + ye, Be = 0) : (fe[je + dt] = Be, Be = 1);
177193
- ot += Be;
177196
+ Be += fe[Te + dt] - ye + Se[dt], Be < 0 ? (fe[Te + dt] = Be + ye, Be = 0) : (fe[Te + dt] = Be, Be = 1);
177197
+ at += Be;
177194
177198
  }
177195
- me[je] = _e;
177199
+ me[Te] = _e;
177196
177200
  }
177197
177201
  return fe = z(fe, Ce)[0], [g(me), g(fe)];
177198
177202
  }
177199
177203
  function L(R, W) {
177200
- for (var re = R.length, pe = W.length, ye = [], me = [], Ee = r, Ce, fe, Se, _e, je; re; ) {
177204
+ for (var re = R.length, pe = W.length, ye = [], me = [], Ee = r, Ce, fe, Se, _e, Te; re; ) {
177201
177205
  if (me.unshift(R[--re]), m(me), q(me, W) < 0) {
177202
177206
  ye.push(0);
177203
177207
  continue;
177204
177208
  }
177205
177209
  fe = me.length, Se = me[fe - 1] * Ee + me[fe - 2], _e = W[pe - 1] * Ee + W[pe - 2], fe > pe && (Se = (Se + 1) * Ee), Ce = Math.ceil(Se / _e);
177206
177210
  do {
177207
- if (je = N(W, Ce), q(je, me) <= 0) break;
177211
+ if (Te = N(W, Ce), q(Te, me) <= 0) break;
177208
177212
  Ce--;
177209
177213
  } while (Ce);
177210
- ye.push(Ce), me = w(me, je);
177214
+ ye.push(Ce), me = w(me, Te);
177211
177215
  }
177212
177216
  return ye.reverse(), [g(ye), g(me)];
177213
177217
  }
@@ -177240,8 +177244,8 @@ var XJ = { exports: {} };
177240
177244
  if (Se === -1) return [u[0], R];
177241
177245
  if (Se === 0) return [u[R.sign === pe.sign ? 1 : -1], u[0]];
177242
177246
  ye.length + me.length <= 200 ? re = T(ye, me) : re = L(ye, me), Ee = re[0];
177243
- var _e = R.sign !== pe.sign, je = re[1], Be = R.sign;
177244
- return typeof Ee == "number" ? (_e && (Ee = -Ee), Ee = new d(Ee)) : Ee = new c(Ee, _e), typeof je == "number" ? (Be && (je = -je), je = new d(je)) : je = new c(je, Be), [Ee, je];
177247
+ var _e = R.sign !== pe.sign, Te = re[1], Be = R.sign;
177248
+ return typeof Ee == "number" ? (_e && (Ee = -Ee), Ee = new d(Ee)) : Ee = new c(Ee, _e), typeof Te == "number" ? (Be && (Te = -Te), Te = new d(Te)) : Te = new c(Te, Be), [Ee, Te];
177245
177249
  }
177246
177250
  c.prototype.divmod = function(R) {
177247
177251
  var W = $(this, R);
@@ -177459,10 +177463,10 @@ var XJ = { exports: {} };
177459
177463
  }, p.prototype.shiftRight = d.prototype.shiftRight = c.prototype.shiftRight;
177460
177464
  function oe(R, W, re) {
177461
177465
  W = de(W);
177462
- for (var pe = R.isNegative(), ye = W.isNegative(), me = pe ? R.not() : R, Ee = ye ? W.not() : W, Ce = 0, fe = 0, Se = null, _e = null, je = []; !me.isZero() || !Ee.isZero(); )
177463
- Se = $(me, ne), Ce = Se[1].toJSNumber(), pe && (Ce = ne - 1 - Ce), _e = $(Ee, ne), fe = _e[1].toJSNumber(), ye && (fe = ne - 1 - fe), me = Se[0], Ee = _e[0], je.push(re(Ce, fe));
177464
- for (var Be = re(pe ? 1 : 0, ye ? 1 : 0) !== 0 ? t(-1) : t(0), ot = je.length - 1; ot >= 0; ot -= 1)
177465
- Be = Be.multiply(ne).add(t(je[ot]));
177466
+ for (var pe = R.isNegative(), ye = W.isNegative(), me = pe ? R.not() : R, Ee = ye ? W.not() : W, Ce = 0, fe = 0, Se = null, _e = null, Te = []; !me.isZero() || !Ee.isZero(); )
177467
+ Se = $(me, ne), Ce = Se[1].toJSNumber(), pe && (Ce = ne - 1 - Ce), _e = $(Ee, ne), fe = _e[1].toJSNumber(), ye && (fe = ne - 1 - fe), me = Se[0], Ee = _e[0], Te.push(re(Ce, fe));
177468
+ for (var Be = re(pe ? 1 : 0, ye ? 1 : 0) !== 0 ? t(-1) : t(0), at = Te.length - 1; at >= 0; at -= 1)
177469
+ Be = Be.multiply(ne).add(t(Te[at]));
177466
177470
  return Be;
177467
177471
  }
177468
177472
  c.prototype.not = function() {
@@ -177525,7 +177529,7 @@ var XJ = { exports: {} };
177525
177529
  var pe = re || Math.random, ye = ue(R, W), me = ee(R, W), Ee = me.subtract(ye).add(1);
177526
177530
  if (Ee.isSmall) return ye.add(Math.floor(pe() * Ee));
177527
177531
  for (var Ce = Fe(Ee, r).value, fe = [], Se = !0, _e = 0; _e < Ce.length; _e++) {
177528
- var je = Se ? Ce[_e] + (_e + 1 < Ce.length ? Ce[_e + 1] / r : 0) : r, Be = y(pe() * je);
177532
+ var Te = Se ? Ce[_e] + (_e + 1 < Ce.length ? Ce[_e + 1] / r : 0) : r, Be = y(pe() * Te);
177529
177533
  fe.push(Be), Be < Ce[_e] && (Se = !1);
177530
177534
  }
177531
177535
  return ye.add(u.fromArray(fe, r, !1));
@@ -177548,11 +177552,11 @@ var XJ = { exports: {} };
177548
177552
  var fe = R[me];
177549
177553
  if (fe in Ce) Se.push(de(Ce[fe]));
177550
177554
  else if (fe === "<") {
177551
- var je = me;
177555
+ var Te = me;
177552
177556
  do
177553
177557
  me++;
177554
177558
  while (R[me] !== ">" && me < R.length);
177555
- Se.push(de(R.slice(je + 1, me)));
177559
+ Se.push(de(R.slice(Te + 1, me)));
177556
177560
  } else throw new Error(fe + " is not a valid character");
177557
177561
  }
177558
177562
  return V(Se, W, _e);
@@ -177651,8 +177655,8 @@ var XJ = { exports: {} };
177651
177655
  if (!Ce) throw new Error("Invalid integer: " + R);
177652
177656
  if (l)
177653
177657
  return new p(BigInt(re ? "-" + R : R));
177654
- for (var fe = [], Se = R.length, _e = o, je = Se - _e; Se > 0; )
177655
- fe.push(+R.slice(je, Se)), je -= _e, je < 0 && (je = 0), Se -= _e;
177658
+ for (var fe = [], Se = R.length, _e = o, Te = Se - _e; Se > 0; )
177659
+ fe.push(+R.slice(Te, Se)), Te -= _e, Te < 0 && (Te = 0), Se -= _e;
177656
177660
  return m(fe), new c(fe, re);
177657
177661
  }
177658
177662
  function ce(R) {
@@ -180635,11 +180639,11 @@ function fWe(e) {
180635
180639
  function gWe(e) {
180636
180640
  for (var t = [], n = 1; n < arguments.length; n++)
180637
180641
  t[n - 1] = arguments[n];
180638
- var r = hWe(t, 1), o = r[0], i = o === void 0 ? {} : o, s = uWe(e, i), a = Te(function() {
180642
+ var r = hWe(t, 1), o = r[0], i = o === void 0 ? {} : o, s = uWe(e, i), a = je(function() {
180639
180643
  return s.status === Qn.NotStarted ? i.state ? Ei.create(i.state) : s.machine.initialState : s.getSnapshot();
180640
- }, [s]), l = Te(function(d, p) {
180644
+ }, [s]), l = je(function(d, p) {
180641
180645
  return pWe(s, d, p);
180642
- }, [s]), u = Te(function(d) {
180646
+ }, [s]), u = je(function(d) {
180643
180647
  var p = s.subscribe(d).unsubscribe;
180644
180648
  return p;
180645
180649
  }, [s]), c = p8.useSyncExternalStoreWithSelector(u, a, a, fWe, l);
@@ -180666,10 +180670,10 @@ var bWe = function(e, t) {
180666
180670
  };
180667
180671
  function P0(e, t, n, r) {
180668
180672
  n === void 0 && (n = bWe);
180669
- var o = Ge(null), i = Te(function(l) {
180673
+ var o = Ge(null), i = je(function(l) {
180670
180674
  var u = e.subscribe(l).unsubscribe;
180671
180675
  return u;
180672
- }, [e]), s = Te(function() {
180676
+ }, [e]), s = je(function() {
180673
180677
  return yWe(e, o);
180674
180678
  }, [e, r]), a = p8.useSyncExternalStoreWithSelector(i, s, s, t, n);
180675
180679
  return a;
@@ -181164,7 +181168,7 @@ const YWe = (e) => e.context.awareness, XWe = (e) => !!(e.context.isReady && e.c
181164
181168
  }), o = P0(r, YWe), i = P0(r, XWe), s = P0(r, ZWe), a = P0(r, JWe), l = P0(
181165
181169
  r,
181166
181170
  QWe
181167
- ), u = Te(
181171
+ ), u = je(
181168
181172
  (p) => {
181169
181173
  n({
181170
181174
  type: "CONNECT",
@@ -181176,12 +181180,12 @@ const YWe = (e) => e.context.awareness, XWe = (e) => !!(e.context.isReady && e.c
181176
181180
  },
181177
181181
  // eslint-disable-next-line react-hooks/exhaustive-deps
181178
181182
  [e.ydoc]
181179
- ), c = Te(() => {
181183
+ ), c = je(() => {
181180
181184
  n({
181181
181185
  type: "DISCONNECT",
181182
181186
  data: {}
181183
181187
  });
181184
- }, [n]), d = Te(() => {
181188
+ }, [n]), d = je(() => {
181185
181189
  n({
181186
181190
  type: "TERMINATE_SESSION",
181187
181191
  data: {}
@@ -181752,10 +181756,7 @@ const iqe = async (e, t, n) => {
181752
181756
  const u = El(
181753
181757
  r == null ? void 0 : r.canvasBackground,
181754
181758
  o
181755
- ), c = El(
181756
- r == null ? void 0 : r.textColor,
181757
- o
181758
- ), d = c ? mC(r == null ? void 0 : r.textColor) ? c : Wx(c, o) : void 0, p = {
181759
+ ), c = El(r == null ? void 0 : r.textColor, o), d = c ? mC(r == null ? void 0 : r.textColor) ? c : Wx(c, o) : void 0, p = {
181759
181760
  ...u && {
181760
181761
  backgroundColor: u
181761
181762
  },
@@ -182222,10 +182223,7 @@ const yqe = ({
182222
182223
  const u = El(
182223
182224
  s == null ? void 0 : s.canvasBackground,
182224
182225
  a
182225
- ), c = El(
182226
- s == null ? void 0 : s.textColor,
182227
- a
182228
- ), d = c ? mC(s == null ? void 0 : s.textColor) ? c : Wx(c, a) : void 0, p = {
182226
+ ), c = El(s == null ? void 0 : s.textColor, a), d = c ? mC(s == null ? void 0 : s.textColor) ? c : Wx(c, a) : void 0, p = {
182229
182227
  ...u && {
182230
182228
  backgroundColor: u
182231
182229
  },
@@ -182281,7 +182279,7 @@ const yqe = ({
182281
182279
  ].includes(ne.name)
182282
182280
  ),
182283
182281
  editable: !a
182284
- }), [a]), z = Te(async () => {
182282
+ }), [a]), z = je(async () => {
182285
182283
  var j;
182286
182284
  if (!e || !((j = e.view) != null && j.dom)) return;
182287
182285
  if (!a && e.view.dom.querySelector(".is-editor-empty")) {
@@ -182324,13 +182322,13 @@ const yqe = ({
182324
182322
  Oe(() => {
182325
182323
  z();
182326
182324
  }, [e.state.doc]);
182327
- const $ = Te(() => {
182325
+ const $ = je(() => {
182328
182326
  C ? r((ne) => !ne) : document.fullscreenElement ? document.exitFullscreen ? document.exitFullscreen().then(() => r(!1)).catch(() => {
182329
182327
  r(!1);
182330
182328
  }) : r(!1) : document.documentElement.requestFullscreen ? document.documentElement.requestFullscreen().then(() => r(!0)).catch(() => {
182331
182329
  r(!0);
182332
182330
  }) : r(!0);
182333
- }, [C]), q = Te(
182331
+ }, [C]), q = je(
182334
182332
  (ne) => {
182335
182333
  ne.key === "ArrowRight" || ne.key === "ArrowDown" || ne.code === "Space" ? (ne.preventDefault(), ne.stopPropagation(), S("forward"), D((X) => Math.min(X + 1, c.length - 1))) : ne.key === "ArrowLeft" || ne.key === "ArrowUp" ? (S("backward"), D((X) => Math.max(X - 1, 0))) : ne.key === "Escape" ? !a && t() : (ne.key === "f" || ne.key === "F") && $();
182336
182334
  },
@@ -182348,7 +182346,7 @@ const yqe = ({
182348
182346
  _(null), N(ne.targetTouches[0].clientX);
182349
182347
  }, P = (ne) => {
182350
182348
  _(ne.targetTouches[0].clientX);
182351
- }, Y = Te(() => {
182349
+ }, Y = je(() => {
182352
182350
  if (!A || !O) return;
182353
182351
  const ne = A - O, X = ne > M, oe = ne < -M;
182354
182352
  X && (S("forward"), D((Z) => Math.min(Z + 1, c.length - 1))), oe && (S("backward"), D((Z) => Math.max(Z - 1, 0)));
@@ -182953,7 +182951,7 @@ const yqe = ({
182953
182951
  onOpenChange: t,
182954
182952
  noOverlay: !0,
182955
182953
  side: "right",
182956
- className: st(
182954
+ className: it(
182957
182955
  "p-0 !w-screen md:!w-[384px] !z-50 !color-bg-default",
182958
182956
  !l && "!h-screen"
182959
182957
  ),
@@ -182990,7 +182988,7 @@ const yqe = ({
182990
182988
  side: "right",
182991
182989
  rounded: !0,
182992
182990
  dismissible: !0,
182993
- className: st(
182991
+ className: it(
182994
182992
  "w-[calc(100vw-24px)] !z-40 md:w-[384px] right-0 shadow-elevation-4 rounded-lg border color-border-default",
182995
182993
  e && "right-2 md:!right-4",
182996
182994
  n ? `h-[calc(98vh-140px)] ${i ? "top-[4rem]" : "top-[7.25rem] "}` : "top-[4rem] h-[calc(100vh-90px)] xl:h-[calc(99vh-90px)]",
@@ -183119,7 +183117,7 @@ const yqe = ({
183119
183117
  orientation: r
183120
183118
  // onItemRemove,
183121
183119
  }) => {
183122
- const o = Te(
183120
+ const o = je(
183123
183121
  (a) => {
183124
183122
  a.preventDefault(), a.stopPropagation(), t(a, e.id);
183125
183123
  },
@@ -183161,7 +183159,7 @@ const gQ = Oh(
183161
183159
  const [o, i] = Ne(null), s = Vn("(max-width: 1280px)"), a = Ge(null), l = Ge(0), u = Ge(null), c = jt(() => e.map((m) => ({
183162
183160
  ...m,
183163
183161
  isActive: m.id === o
183164
- })), [e, o]), d = Te(() => {
183162
+ })), [e, o]), d = je(() => {
183165
183163
  var m;
183166
183164
  if (t && ((m = t.view) != null && m.dom) && (!a.current || Date.now() - l.current > 250)) {
183167
183165
  const b = /* @__PURE__ */ new Map();
@@ -183183,7 +183181,7 @@ const gQ = Oh(
183183
183181
  t.off("update", m), t.off("selectionUpdate", m), u.current && cancelAnimationFrame(u.current);
183184
183182
  };
183185
183183
  }, [t, d]);
183186
- const p = Te(
183184
+ const p = je(
183187
183185
  (m) => {
183188
183186
  if (!t) return;
183189
183187
  const { doc: b } = t.state;
@@ -183198,7 +183196,7 @@ const gQ = Oh(
183198
183196
  }), y !== -1 && t.chain().setNodeSelection(y).updateAttributes("heading", { isCollapsed: !1 }).run();
183199
183197
  },
183200
183198
  [t]
183201
- ), h = Te(
183199
+ ), h = je(
183202
183200
  (m) => {
183203
183201
  if (!t) return;
183204
183202
  p(m);
@@ -183226,7 +183224,7 @@ const gQ = Oh(
183226
183224
  }
183227
183225
  },
183228
183226
  [e, t, p]
183229
- ), f = Te(
183227
+ ), f = je(
183230
183228
  (m, b) => {
183231
183229
  var y;
183232
183230
  if (m.preventDefault(), m.stopPropagation(), i(b), t && ((y = t.view) != null && y.dom)) {
@@ -183261,7 +183259,7 @@ const gQ = Oh(
183261
183259
  }
183262
183260
  },
183263
183261
  [t, h, d, s]
183264
- ), g = Te(
183262
+ ), g = je(
183265
183263
  (m, b) => {
183266
183264
  m.preventDefault(), m.stopPropagation(), n((y) => {
183267
183265
  var D;
@@ -183399,7 +183397,7 @@ const jqe = [
183399
183397
  // @ts-ignore
183400
183398
  !a.current.contains(g.target) && s(!1);
183401
183399
  });
183402
- const f = Te(() => {
183400
+ const f = je(() => {
183403
183401
  var m;
183404
183402
  const g = (m = l.current) == null ? void 0 : m.getBoundingClientRect();
183405
183403
  if (g) {
@@ -183708,7 +183706,7 @@ const Pqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
183708
183706
  transform: xee.Transform.toString(o),
183709
183707
  transition: i
183710
183708
  },
183711
- className: st(s && "opacity-0", "w-full"),
183709
+ className: it(s && "opacity-0", "w-full"),
183712
183710
  children: /* @__PURE__ */ F.jsx(
183713
183711
  yQ,
183714
183712
  {
@@ -183854,7 +183852,7 @@ const Pqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
183854
183852
  },
183855
183853
  onClick: s,
183856
183854
  ...u,
183857
- className: st(
183855
+ className: it(
183858
183856
  "flex items-center active:cursor-grabbing relative justify-between h-[40px] px-[12px] py-[8px] rounded-full",
183859
183857
  a && "color-bg-default-hover"
183860
183858
  ),
@@ -183936,7 +183934,7 @@ const Pqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
183936
183934
  "div",
183937
183935
  {
183938
183936
  "data-testid": `tab-menu-${e.id}`,
183939
- className: st(Pqe, e.disabled && "!cursor-not-allowed"),
183937
+ className: it(Pqe, e.disabled && "!cursor-not-allowed"),
183940
183938
  onClick: (i) => {
183941
183939
  var s;
183942
183940
  i.stopPropagation(), !e.disabled && ((s = e.onSelect) == null || s.call(e));
@@ -183947,13 +183945,13 @@ const Pqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
183947
183945
  {
183948
183946
  name: e.icon,
183949
183947
  stroke: e.iconStroke,
183950
- className: st("w-[16px] h-[16px]")
183948
+ className: it("w-[16px] h-[16px]")
183951
183949
  }
183952
183950
  ),
183953
183951
  /* @__PURE__ */ F.jsx(
183954
183952
  "p",
183955
183953
  {
183956
- className: st(
183954
+ className: it(
183957
183955
  "text-heading-xsm color-text-default",
183958
183956
  e.textClassName
183959
183957
  ),
@@ -183995,7 +183993,7 @@ const Pqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
183995
183993
  elevation: 2,
183996
183994
  side: t,
183997
183995
  sideOffset: 4,
183998
- className: st("w-[160px] space-xsm", n),
183996
+ className: it("w-[160px] space-xsm", n),
183999
183997
  children: r.map((o, i) => /* @__PURE__ */ F.jsxs("div", { children: [
184000
183998
  i > 0 && /* @__PURE__ */ F.jsx("hr", { className: "border-t space-x-xsm color-border-default my-[4px] w-full" }),
184001
183999
  o.map((s) => /* @__PURE__ */ F.jsx(Hqe, { item: s }, s.id))
@@ -184103,10 +184101,10 @@ const Pqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
184103
184101
  ), N = jt(
184104
184102
  () => e.find((U) => U.id === k),
184105
184103
  [e, k]
184106
- ), [O, _] = Ne(null), [M, E] = Ne(!1), [S, T] = Ne({}), L = Te(
184104
+ ), [O, _] = Ne(null), [M, E] = Ne(!1), [S, T] = Ne({}), L = je(
184107
184105
  (U) => U === t ? S[U] ?? !1 : !1,
184108
184106
  [t, S]
184109
- ), z = Te(
184107
+ ), z = je(
184110
184108
  (U, P) => {
184111
184109
  if (U !== t) {
184112
184110
  n(U), T((Y) => ({
@@ -184122,7 +184120,7 @@ const Pqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
184122
184120
  }));
184123
184121
  },
184124
184122
  [t, n]
184125
- ), $ = Te(
184123
+ ), $ = je(
184126
184124
  (U) => {
184127
184125
  if (U !== t) {
184128
184126
  n(U), T((P) => ({
@@ -184164,7 +184162,7 @@ const Pqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
184164
184162
  "div",
184165
184163
  {
184166
184164
  "data-testid": "tab-sidebar",
184167
- className: st(
184165
+ className: it(
184168
184166
  "flex flex-col items-start w-full h-full overflow-y-auto justify-start left-0 px-4 z-20",
184169
184167
  // Keep landscape TOC responsive: it can shrink to 182px on tighter widths
184170
184168
  // and grow up to the original 263px when space allows.
@@ -184187,7 +184185,7 @@ const Pqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
184187
184185
  onMouseEnter: () => !r && E(!0),
184188
184186
  onMouseLeave: () => E(!1),
184189
184187
  onClick: () => o == null ? void 0 : o((U) => !U),
184190
- className: st(
184188
+ className: it(
184191
184189
  "group flex items-center h-[30px] !min-w-[30px] min-h-[30px] p-[8px] rounded-full hover:color-bg-secondary-hover transition-[width,background-color] duration-200 ease-out overflow-hidden",
184192
184190
  !r && "hover:min-w-[156px] gap-[8px]",
184193
184191
  e.length > 0 && !r && "color-bg-secondary-hover"
@@ -184203,7 +184201,7 @@ const Pqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
184203
184201
  /* @__PURE__ */ F.jsx(
184204
184202
  "span",
184205
184203
  {
184206
- className: st(
184204
+ className: it(
184207
184205
  "whitespace-nowrap text-heading-xsm color-text-default max-w-[110px] truncate transition-opacity duration-150",
184208
184206
  e.length === 1 && !q && !r && "hidden"
184209
184207
  ),
@@ -184365,7 +184363,7 @@ const Pqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
184365
184363
  /* @__PURE__ */ F.jsx(
184366
184364
  "div",
184367
184365
  {
184368
- className: st(
184366
+ className: it(
184369
184367
  "table-of-contents animate-in fade-in slide-in-from-left-5",
184370
184368
  x && !m ? "block" : "hidden"
184371
184369
  ),
@@ -184495,7 +184493,7 @@ const Pqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
184495
184493
  "div",
184496
184494
  {
184497
184495
  "data-testid": "mobile-tab-panel",
184498
- className: st("fixed w-full flex flex-col z-[9]"),
184496
+ className: it("fixed w-full flex flex-col z-[9]"),
184499
184497
  style: {
184500
184498
  bottom: ne || p && !f ? "0px" : f ? "var(--version-sheet-bottom, 24px)" : "24px"
184501
184499
  },
@@ -184503,7 +184501,7 @@ const Pqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
184503
184501
  /* @__PURE__ */ F.jsx(
184504
184502
  "div",
184505
184503
  {
184506
- className: st(
184504
+ className: it(
184507
184505
  "rounded-t-[12px] color-bg-default flex flex-col w-full gap-[8px] overflow-hidden",
184508
184506
  ne ? "h-[300px] space-md shadow-[0_-12px_32px_rgba(0,0,0,0.18)]" : " px-[8px] py-[2px] border color-bg-secondary shadow-none"
184509
184507
  ),
@@ -184512,7 +184510,7 @@ const Pqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
184512
184510
  /* @__PURE__ */ F.jsxs(
184513
184511
  "div",
184514
184512
  {
184515
- className: st("gap-xsm flex items-center justify-between w-full"),
184513
+ className: it("gap-xsm flex items-center justify-between w-full"),
184516
184514
  children: [
184517
184515
  /* @__PURE__ */ F.jsx("h2", { className: "text-heading-xsm color-text-default", children: "Document tabs" }),
184518
184516
  /* @__PURE__ */ F.jsx(
@@ -184530,7 +184528,7 @@ const Pqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
184530
184528
  /* @__PURE__ */ F.jsx(
184531
184529
  "div",
184532
184530
  {
184533
- className: st(
184531
+ className: it(
184534
184532
  "w-full no-scrollbar overflow-y-auto flex-1",
184535
184533
  "min-h-0",
184536
184534
  "transition-opacity duration-300"
@@ -184564,7 +184562,7 @@ const Pqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
184564
184562
  /* @__PURE__ */ F.jsx(
184565
184563
  "div",
184566
184564
  {
184567
- className: st(
184565
+ className: it(
184568
184566
  "table-of-contents transition-all duration-300 ease-[cubic-bezier(0.22,1,0.36,1)]",
184569
184567
  oe.id === t ? "opacity-100 translate-x-0" : "opacity-0 -translate-x-2 h-0 overflow-hidden"
184570
184568
  ),
@@ -184589,7 +184587,7 @@ const Pqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
184589
184587
  "div",
184590
184588
  {
184591
184589
  id: "tab-nav",
184592
- className: st(
184590
+ className: it(
184593
184591
  "flex justify-between items-center w-full",
184594
184592
  "transition-all duration-300 animate-in fade-in slide-in-from-bottom-1"
184595
184593
  ),
@@ -184601,7 +184599,7 @@ const Pqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
184601
184599
  onClick: z,
184602
184600
  disabled: !E,
184603
184601
  "aria-label": "Go to previous tab",
184604
- className: st(
184602
+ className: it(
184605
184603
  "h-[36px] w-[36px] flex items-center justify-center transition-opacity duration-200",
184606
184604
  E ? "cursor-pointer" : "opacity-40 cursor-not-allowed"
184607
184605
  ),
@@ -184651,7 +184649,7 @@ const Pqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
184651
184649
  onClick: $,
184652
184650
  disabled: !S,
184653
184651
  "aria-label": "Go to next tab",
184654
- className: st(
184652
+ className: it(
184655
184653
  "h-[36px] w-[36px] flex items-center justify-center transition-opacity duration-200",
184656
184654
  S ? "cursor-pointer" : "opacity-40 cursor-not-allowed"
184657
184655
  ),
@@ -184663,7 +184661,7 @@ const Pqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
184663
184661
  ) : /* @__PURE__ */ F.jsxs(
184664
184662
  "div",
184665
184663
  {
184666
- className: st(
184664
+ className: it(
184667
184665
  "flex justify-between items-center w-full",
184668
184666
  "transition-all duration-300 animate-in fade-in slide-in-from-bottom-1"
184669
184667
  ),
@@ -184984,15 +184982,15 @@ const Pqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
184984
184982
  )) return !1;
184985
184983
  const { state: p } = u, { selection: h } = p, f = Cx(h.$from, u.schema.marks.link);
184986
184984
  return f ? p.doc.textBetween(f.from, f.to) === c : !1;
184987
- }, i = Te(() => {
184985
+ }, i = je(() => {
184988
184986
  const u = e.state.selection.to, c = e.getAttributes("link").href;
184989
184987
  e.commands.extendMarkRange("link", { href: c }), e.chain().focus().setTextSelection(u).unsetMark("link").insertContent(" ").run();
184990
- }, [e]), s = Te(
184988
+ }, [e]), s = je(
184991
184989
  (u) => {
184992
184990
  r.current && r.current.contains(u.target) || i();
184993
184991
  },
184994
184992
  [i]
184995
- ), a = Te(
184993
+ ), a = je(
184996
184994
  (u) => {
184997
184995
  var f, g;
184998
184996
  const { key: c } = u, d = document.activeElement;
@@ -185186,9 +185184,9 @@ const Pqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
185186
185184
  extensions: fe,
185187
185185
  onCopyHeadingLink: Se,
185188
185186
  tabConfig: _e,
185189
- footerHeight: je,
185187
+ footerHeight: Te,
185190
185188
  ipfsImageFetchFn: Be,
185191
- fetchV1ImageFn: ot,
185189
+ fetchV1ImageFn: at,
185192
185190
  activeModel: dt,
185193
185191
  maxTokens: mt,
185194
185192
  isAIAgentEnabled: Me,
@@ -185237,7 +185235,7 @@ const Pqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
185237
185235
  if (!kt) return {};
185238
185236
  const Ct = {}, nn = Kqe[Tt];
185239
185237
  return typeof kt.width == "number" ? (Ct.width = `${kt.width}px`, Ct.maxWidth = `${kt.width}px`) : (Ct.width = nn.zoomFitWidth, Ct.maxWidth = `${nn.zoomFitMaxWidth}px`), kt.minHeight && (Ct.minHeight = kt.minHeight), Ct;
185240
- }, it = Ge(null), ft = Vn("(min-width: 1500px)"), Yt = Vn("(min-width: 3000px)"), an = Vn("(min-width: 1600px)"), $t = Vn("(min-width: 1360px)"), { isNativeMobile: Dt, isIOS: _r } = Hl(), [Qe, we] = Ne(!1), Pe = Ge(null), lt = (D == null ? void 0 : D.slice(0, 4)) || [], Jt = D ? Math.max(0, D.length - 4) : 0;
185238
+ }, ot = Ge(null), ft = Vn("(min-width: 1500px)"), Yt = Vn("(min-width: 3000px)"), an = Vn("(min-width: 1600px)"), $t = Vn("(min-width: 1360px)"), { isNativeMobile: Dt, isIOS: _r } = Hl(), [Qe, we] = Ne(!1), Pe = Ge(null), lt = (D == null ? void 0 : D.slice(0, 4)) || [], Jt = D ? Math.max(0, D.length - 4) : 0;
185241
185239
  dg(Pe, () => {
185242
185240
  we(!1);
185243
185241
  }), Oe(() => {
@@ -185270,7 +185268,7 @@ const Pqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
185270
185268
  } = dQ({
185271
185269
  documentStyling: Le,
185272
185270
  ipfsImageFetchFn: Be,
185273
- fetchV1ImageFn: ot,
185271
+ fetchV1ImageFn: at,
185274
185272
  enableIndexeddbSync: O,
185275
185273
  ddocId: _,
185276
185274
  isPreviewMode: e,
@@ -185458,7 +185456,7 @@ const Pqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
185458
185456
  "div",
185459
185457
  {
185460
185458
  id: "toolbar",
185461
- className: st(
185459
+ className: it(
185462
185460
  "z-[45] hidden mobile:flex items-center justify-center w-full h-[52px] fixed left-0 color-bg-default border-b color-border-default transition-transform duration-300 top-[3.5rem]",
185463
185461
  {
185464
185462
  "translate-y-0": L,
@@ -185483,7 +185481,7 @@ const Pqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
185483
185481
  onDocxImport: X,
185484
185482
  isLoading: !et || dr,
185485
185483
  ipfsImageFetchFn: Be,
185486
- fetchV1ImageFn: ot,
185484
+ fetchV1ImageFn: at,
185487
185485
  isConnected: he,
185488
185486
  tabs: nm,
185489
185487
  ydoc: Or,
@@ -185512,7 +185510,7 @@ const Pqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
185512
185510
  onTxtExport: ne,
185513
185511
  ipfsImageFetchFn: Be,
185514
185512
  onDocxImport: X,
185515
- fetchV1ImageFn: ot,
185513
+ fetchV1ImageFn: at,
185516
185514
  isConnected: he
185517
185515
  }
185518
185516
  ),
@@ -185535,7 +185533,7 @@ const Pqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
185535
185533
  isContentLoading: dr,
185536
185534
  ipfsImageFetchFn: Be,
185537
185535
  documentStyling: Le,
185538
- fetchV1ImageFn: ot,
185536
+ fetchV1ImageFn: at,
185539
185537
  theme: ge ?? "light"
185540
185538
  }
185541
185539
  ),
@@ -185569,7 +185567,7 @@ const Pqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
185569
185567
  "div",
185570
185568
  {
185571
185569
  id: "editor-wrapper",
185572
- className: st(
185570
+ className: it(
185573
185571
  "w-full mx-auto rounded transition-all duration-300 ease-in-out",
185574
185572
  !(Le != null && Le.canvasBackground) && "color-bg-default",
185575
185573
  !e && (L ? "-mt-[1.5rem] md:!mt-[0.8rem] pt-0 md:pt-[5rem]" : "pt-0 md:pt-[1.5rem]"),
@@ -185605,7 +185603,7 @@ const Pqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
185605
185603
  "div",
185606
185604
  {
185607
185605
  ref: mn,
185608
- className: st(
185606
+ className: it(
185609
185607
  "w-full h-full pt-8 md:pt-0",
185610
185608
  { "custom-ios-padding": _r },
185611
185609
  {
@@ -185636,7 +185634,7 @@ const Pqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
185636
185634
  activeCommentId: rr,
185637
185635
  isCollabDocumentPublished: ye,
185638
185636
  ipfsImageFetchFn: Be,
185639
- fetchV1ImageFn: ot,
185637
+ fetchV1ImageFn: at,
185640
185638
  ipfsImageUploadFn: g,
185641
185639
  onReminderCreate: (Xs = (nn = fe == null ? void 0 : fe.find(
185642
185640
  (ln) => ln.name === "reminderBlock"
@@ -185672,7 +185670,7 @@ const Pqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
185672
185670
  "div",
185673
185671
  {
185674
185672
  ref: Pe,
185675
- className: st(
185673
+ className: it(
185676
185674
  "flex flex-wrap px-4 md:px-8 lg:px-[80px] mb-8 items-center gap-1 mt-4 lg:!mt-0",
185677
185675
  { "pt-12": e }
185678
185676
  ),
@@ -185741,7 +185739,7 @@ const Pqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
185741
185739
  {
185742
185740
  editor: et,
185743
185741
  id: "editor",
185744
- className: st(
185742
+ className: it(
185745
185743
  "w-full h-auto",
185746
185744
  e && "preview-mode",
185747
185745
  dt !== void 0 && Me && "has-available-models",
@@ -185762,12 +185760,12 @@ const Pqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
185762
185760
  h && !Dt && /* @__PURE__ */ F.jsx(
185763
185761
  qt,
185764
185762
  {
185765
- ref: it,
185763
+ ref: ot,
185766
185764
  onClick: () => {
185767
185765
  et && (p == null || p(et));
185768
185766
  },
185769
185767
  variant: "ghost",
185770
- className: st(
185768
+ className: it(
185771
185769
  "absolute w-12 h-12 color-bg-default rounded-full shadow-xl top-[70px] right-[-23px]"
185772
185770
  ),
185773
185771
  children: /* @__PURE__ */ F.jsx(Ue, { name: "MessageSquareText", size: "sm" })
@@ -185776,7 +185774,7 @@ const Pqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
185776
185774
  !e && !m && /* @__PURE__ */ F.jsx(
185777
185775
  "div",
185778
185776
  {
185779
- className: st(
185777
+ className: it(
185780
185778
  "flex mobile:hidden items-center w-full h-[52px] fixed left-0 z-10 px-4 color-bg-default transition-all duration-300 ease-in-out border-b border-color-default",
185781
185779
  tn && "hidden",
185782
185780
  { "top-14": L, "top-0": !L }
@@ -185792,7 +185790,7 @@ const Pqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
185792
185790
  ipfsImageUploadFn: g,
185793
185791
  isLoading: !et || dr,
185794
185792
  ipfsImageFetchFn: Be,
185795
- fetchV1ImageFn: ot
185793
+ fetchV1ImageFn: at
185796
185794
  }
185797
185795
  )
185798
185796
  }
@@ -185828,18 +185826,18 @@ const Pqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
185828
185826
  children: /* @__PURE__ */ F.jsx(
185829
185827
  "div",
185830
185828
  {
185831
- className: st(
185829
+ className: it(
185832
185830
  "w-full",
185833
185831
  S ? "color-bg-default" : "color-bg-secondary"
185834
185832
  ),
185835
185833
  style: {
185836
- height: e ? `calc(100vh - 52px - ${je || "0px"})` : L ? `calc(100vh - 108px - ${je || "0px"})` : `calc(100vh - 52px - ${je || "0px"})`
185834
+ height: e ? `calc(100vh - 52px - ${Te || "0px"})` : L ? `calc(100vh - 108px - ${Te || "0px"})` : `calc(100vh - 52px - ${Te || "0px"})`
185837
185835
  },
185838
185836
  children: /* @__PURE__ */ F.jsxs(
185839
185837
  "div",
185840
185838
  {
185841
185839
  id: "editor-canvas",
185842
- className: st(
185840
+ className: it(
185843
185841
  "h-[100%] w-full custom-scrollbar relative",
185844
185842
  !e && (L ? "mt-[6.7rem]" : "mt-[3.3rem]"),
185845
185843
  e && "mt-[3.5rem]",
@@ -185856,7 +185854,7 @@ const Pqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
185856
185854
  "nav",
185857
185855
  {
185858
185856
  id: "Navbar",
185859
- className: st(
185857
+ className: it(
185860
185858
  "h-14 color-bg-default py-2 px-0 md:px-4 flex gap-2 items-center justify-between w-screen fixed left-0 top-0 border-b color-border-default z-[45] transition-transform duration-300",
185861
185859
  {
185862
185860
  "translate-y-0": L,
@@ -186297,7 +186295,7 @@ const Pqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
186297
186295
  ({ node: e, editor: t, deleteNode: n }) => {
186298
186296
  const r = e.attrs.reminder, [o, i] = Ne(
186299
186297
  r != null && r.timestamp ? new Date(r.timestamp).getTime() < Date.now() : !1
186300
- ), s = t.isEditable === !1, a = Te(() => {
186298
+ ), s = t.isEditable === !1, a = je(() => {
186301
186299
  const c = [];
186302
186300
  return t.state.doc.descendants((d) => {
186303
186301
  d.type.name === "reminderBlock" && c.push({
@@ -186307,7 +186305,7 @@ const Pqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
186307
186305
  }), c.sort(
186308
186306
  (d, p) => new Date(d.timestamp).getTime() - new Date(p.timestamp).getTime()
186309
186307
  );
186310
- }, [t]), l = Te(
186308
+ }, [t]), l = je(
186311
186309
  (c) => {
186312
186310
  const d = a(), p = d.findIndex((g) => g.id === r.id);
186313
186311
  if (p === -1) return;
@@ -186340,7 +186338,7 @@ const Pqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
186340
186338
  return () => clearTimeout(h);
186341
186339
  }
186342
186340
  }, [o, r.timestamp]);
186343
- const u = Te(() => {
186341
+ const u = je(() => {
186344
186342
  var d;
186345
186343
  const c = (d = t.extensionManager.extensions.find(
186346
186344
  (p) => p.name === "reminderBlock"