@fileverse-dev/ddoc 3.0.97-fragment-0 → 3.0.97-fragment-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
@@ -4,7 +4,7 @@ var ut = (e, t, n) => jJ(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import * as En from "react";
5
5
  import _t, { createRef as BJ, memo as g1, createContext as ud, createElement as l2, useContext as cd, version as J7, useRef as qe, useState as Be, useDebugValue as TD, useEffect as Me, forwardRef as ur, useLayoutEffect as oh, useCallback as Se, useMemo as kt, Fragment as NJ, useReducer as MJ, cloneElement as $O, useImperativeHandle as HO } from "react";
6
6
  import WO, { flushSync as OJ, createPortal as m1 } from "react-dom";
7
- import { Drawer as qO, DrawerContent as RJ, DrawerHeader as IJ, DrawerTitle as LJ, DrawerClose as UJ, LucideIcon as Ue, useTheme as PJ, Button as Xt, TextField as Pc, DynamicDropdown as Ur, Tooltip as en, IconButton as Dn, Avatar as u2, cn as Ye, ButtonGroup as jD, Skeleton as hr, TextAreaFieldV2 as c2, DynamicModal as BD, Select as J0, SelectTrigger as Q0, SelectValue as d2, SelectContent as ef, SelectItem as tf, DynamicDropdownV2 as yy, Popover as nf, PopoverTrigger as rf, PopoverContent as of, toast as ND, Divider as p2, UltimateIcons as zJ, PopoverClose as VO, SelectGroup as GO, SelectLabel as $J, Checkbox as HJ, DrawerTrigger as Q7, AnimatedLoader as WJ, Label as qJ, DynamicDrawer as VJ, DynamicDrawerV2 as GJ, BottomDrawer as KJ, Tag as h2, TagInput as KO } from "@fileverse/ui";
7
+ import { Drawer as qO, DrawerContent as RJ, DrawerHeader as IJ, DrawerTitle as LJ, DrawerClose as UJ, LucideIcon as Ue, useTheme as PJ, Button as Xt, TextField as Pc, DynamicDropdown as Ur, Tooltip as Jt, IconButton as kn, Avatar as u2, cn as Ye, ButtonGroup as jD, Skeleton as hr, TextAreaFieldV2 as c2, DynamicModal as BD, Select as J0, SelectTrigger as Q0, SelectValue as d2, SelectContent as ef, SelectItem as tf, DynamicDropdownV2 as yy, Popover as nf, PopoverTrigger as rf, PopoverContent as of, toast as ND, Divider as p2, UltimateIcons as zJ, PopoverClose as VO, SelectGroup as GO, SelectLabel as $J, Checkbox as HJ, DrawerTrigger as Q7, AnimatedLoader as WJ, Label as qJ, DynamicDrawer as VJ, DynamicDrawerV2 as GJ, BottomDrawer as KJ, Tag as h2, TagInput as KO } from "@fileverse/ui";
8
8
  import { isAddress as XJ, createPublicClient as YJ, http as ZJ } from "viem";
9
9
  import { mainnet as JJ } from "viem/chains";
10
10
  import { motion as Xa, AnimatePresence as ih, MotionConfig as QJ } from "framer-motion";
@@ -14,7 +14,7 @@ import { useSensors as rQ, useSensor as oQ, PointerSensor as iQ, DndContext as s
14
14
  import { useSortable as uQ, SortableContext as cQ, verticalListSortingStrategy as dQ } from "@dnd-kit/sortable";
15
15
  import { CSS as pQ } from "@dnd-kit/utilities";
16
16
  import { EmojiPicker as fc } from "frimousse";
17
- var Bt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
17
+ var jt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
18
18
  function Lu(e) {
19
19
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
20
20
  }
@@ -525,7 +525,7 @@ Check the render method of \`` + ve + "`.";
525
525
  return "";
526
526
  }
527
527
  var at = {};
528
- function Ve(ve) {
528
+ function Ge(ve) {
529
529
  {
530
530
  var Ie = Re();
531
531
  if (!Ie) {
@@ -542,7 +542,7 @@ Check the top-level render call using <` + rt + ">.");
542
542
  if (!ve._store || ve._store.validated || ve.key != null)
543
543
  return;
544
544
  ve._store.validated = !0;
545
- var rt = Ve(Ie);
545
+ var rt = Ge(Ie);
546
546
  if (at[rt])
547
547
  return;
548
548
  at[rt] = !0;
@@ -569,7 +569,7 @@ Check the top-level render call using <` + rt + ">.");
569
569
  }
570
570
  }
571
571
  }
572
- function wt(ve) {
572
+ function xt(ve) {
573
573
  {
574
574
  var Ie = ve.type;
575
575
  if (Ie == null || typeof Ie == "string")
@@ -594,7 +594,7 @@ Check the top-level render call using <` + rt + ">.");
594
594
  typeof Ie.getDefaultProps == "function" && !Ie.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
595
595
  }
596
596
  }
597
- function Tt(ve) {
597
+ function Nt(ve) {
598
598
  {
599
599
  for (var Ie = Object.keys(ve.props), rt = 0; rt < Ie.length; rt++) {
600
600
  var mt = Ie[rt];
@@ -606,8 +606,8 @@ Check the top-level render call using <` + rt + ">.");
606
606
  ve.ref !== null && (pt(ve), y("Invalid attribute `ref` supplied to `React.Fragment`."), pt(null));
607
607
  }
608
608
  }
609
- var tn = {};
610
- function cn(ve, Ie, rt, mt, Zt, nn) {
609
+ var en = {};
610
+ function ln(ve, Ie, rt, mt, Zt, nn) {
611
611
  {
612
612
  var Pt = R(ve);
613
613
  if (!Pt) {
@@ -638,27 +638,27 @@ Check the top-level render call using <` + rt + ">.");
638
638
  var Gt = N(ve), Vt = Object.keys(Ie).filter(function(Yr) {
639
639
  return Yr !== "key";
640
640
  }), yn = Vt.length > 0 ? "{key: someKey, " + Vt.join(": ..., ") + ": ...}" : "{key: someKey}";
641
- if (!tn[Gt + yn]) {
641
+ if (!en[Gt + yn]) {
642
642
  var vr = Vt.length > 0 ? "{" + Vt.join(": ..., ") + ": ...}" : "{}";
643
643
  y(`A props object containing a "key" prop is being spread into JSX:
644
644
  let props = %s;
645
645
  <%s {...props} />
646
646
  React keys must be passed directly to JSX without using spread:
647
647
  let props = %s;
648
- <%s key={someKey} {...props} />`, yn, Gt, vr, Gt), tn[Gt + yn] = !0;
648
+ <%s key={someKey} {...props} />`, yn, Gt, vr, Gt), en[Gt + yn] = !0;
649
649
  }
650
650
  }
651
- return ve === r ? Tt(we) : wt(we), we;
651
+ return ve === r ? Nt(we) : xt(we), we;
652
652
  }
653
653
  }
654
- function sn(ve, Ie, rt) {
655
- return cn(ve, Ie, rt, !0);
654
+ function un(ve, Ie, rt) {
655
+ return ln(ve, Ie, rt, !0);
656
656
  }
657
- function an(ve, Ie, rt) {
658
- return cn(ve, Ie, rt, !1);
657
+ function rn(ve, Ie, rt) {
658
+ return ln(ve, Ie, rt, !1);
659
659
  }
660
- var ln = an, kn = sn;
661
- Ih.Fragment = r, Ih.jsx = ln, Ih.jsxs = kn;
660
+ var cn = rn, Fn = un;
661
+ Ih.Fragment = r, Ih.jsx = cn, Ih.jsxs = Fn;
662
662
  }()), Ih;
663
663
  }
664
664
  process.env.NODE_ENV === "production" ? B6.exports = hQ() : B6.exports = fQ();
@@ -10978,7 +10978,7 @@ function jI(e) {
10978
10978
  });
10979
10979
  }), t;
10980
10980
  }
10981
- function Nt(...e) {
10981
+ function Bt(...e) {
10982
10982
  return e.filter((t) => !!t).reduce((t, n) => {
10983
10983
  const r = { ...t };
10984
10984
  return Object.entries(n).forEach(([o, i]) => {
@@ -11006,7 +11006,7 @@ function Nt(...e) {
11006
11006
  function ff(e, t) {
11007
11007
  return t.filter((n) => n.type === e.type.name).filter((n) => n.attribute.rendered).map((n) => n.attribute.renderHTML ? n.attribute.renderHTML(e.attrs) || {} : {
11008
11008
  [n.name]: e.attrs[n.name]
11009
- }).reduce((n, r) => Nt(n, r), {});
11009
+ }).reduce((n, r) => Bt(n, r), {});
11010
11010
  }
11011
11011
  function fre(e) {
11012
11012
  return typeof e != "string" ? e : e.match(/^[+-]?(?:\d*\.)?\d+$/) ? Number(e) : e === "true" ? !0 : e === "false" ? !1 : e;
@@ -12288,7 +12288,7 @@ t8(zI, {
12288
12288
  TextDirection: () => QI,
12289
12289
  focusEventsPluginKey: () => KI
12290
12290
  });
12291
- var Ft = class $I extends l8 {
12291
+ var wt = class $I extends l8 {
12292
12292
  constructor() {
12293
12293
  super(...arguments), this.type = "extension";
12294
12294
  }
@@ -12307,7 +12307,7 @@ var Ft = class $I extends l8 {
12307
12307
  const n = typeof t == "function" ? t() : t;
12308
12308
  return super.extend(n);
12309
12309
  }
12310
- }, HI = Ft.create({
12310
+ }, HI = wt.create({
12311
12311
  name: "clipboardTextSerializer",
12312
12312
  addOptions() {
12313
12313
  return {
@@ -12330,14 +12330,14 @@ var Ft = class $I extends l8 {
12330
12330
  })
12331
12331
  ];
12332
12332
  }
12333
- }), WI = Ft.create({
12333
+ }), WI = wt.create({
12334
12334
  name: "commands",
12335
12335
  addCommands() {
12336
12336
  return {
12337
12337
  ...wI
12338
12338
  };
12339
12339
  }
12340
- }), qI = Ft.create({
12340
+ }), qI = wt.create({
12341
12341
  name: "delete",
12342
12342
  onUpdate({ transaction: e, appendedTransactions: t }) {
12343
12343
  var n, r, o;
@@ -12393,7 +12393,7 @@ var Ft = class $I extends l8 {
12393
12393
  };
12394
12394
  (o = (r = (n = this.editor.options.coreExtensionOptions) == null ? void 0 : n.delete) == null ? void 0 : r.async) == null || o ? setTimeout(i, 0) : i();
12395
12395
  }
12396
- }), VI = Ft.create({
12396
+ }), VI = wt.create({
12397
12397
  name: "drop",
12398
12398
  addProseMirrorPlugins() {
12399
12399
  return [
@@ -12412,7 +12412,7 @@ var Ft = class $I extends l8 {
12412
12412
  })
12413
12413
  ];
12414
12414
  }
12415
- }), GI = Ft.create({
12415
+ }), GI = wt.create({
12416
12416
  name: "editable",
12417
12417
  addProseMirrorPlugins() {
12418
12418
  return [
@@ -12424,7 +12424,7 @@ var Ft = class $I extends l8 {
12424
12424
  })
12425
12425
  ];
12426
12426
  }
12427
- }), KI = new St("focusEvents"), XI = Ft.create({
12427
+ }), KI = new St("focusEvents"), XI = wt.create({
12428
12428
  name: "focusEvents",
12429
12429
  addProseMirrorPlugins() {
12430
12430
  const { editor: e } = this;
@@ -12448,7 +12448,7 @@ var Ft = class $I extends l8 {
12448
12448
  })
12449
12449
  ];
12450
12450
  }
12451
- }), YI = Ft.create({
12451
+ }), YI = wt.create({
12452
12452
  name: "keymap",
12453
12453
  addKeyboardShortcuts() {
12454
12454
  const e = () => this.editor.commands.first(({ commands: s }) => [
@@ -12526,7 +12526,7 @@ var Ft = class $I extends l8 {
12526
12526
  })
12527
12527
  ];
12528
12528
  }
12529
- }), ZI = Ft.create({
12529
+ }), ZI = wt.create({
12530
12530
  name: "paste",
12531
12531
  addProseMirrorPlugins() {
12532
12532
  return [
@@ -12544,7 +12544,7 @@ var Ft = class $I extends l8 {
12544
12544
  })
12545
12545
  ];
12546
12546
  }
12547
- }), JI = Ft.create({
12547
+ }), JI = wt.create({
12548
12548
  name: "tabindex",
12549
12549
  addProseMirrorPlugins() {
12550
12550
  return [
@@ -12556,7 +12556,7 @@ var Ft = class $I extends l8 {
12556
12556
  })
12557
12557
  ];
12558
12558
  }
12559
- }), QI = Ft.create({
12559
+ }), QI = wt.create({
12560
12560
  name: "textDirection",
12561
12561
  addOptions() {
12562
12562
  return {
@@ -17641,7 +17641,7 @@ var wse = class {
17641
17641
  key: typeof e.pluginKey == "string" ? new St(e.pluginKey) : e.pluginKey,
17642
17642
  view: (t) => new wse({ view: t, ...e })
17643
17643
  });
17644
- Ft.create({
17644
+ wt.create({
17645
17645
  name: "bubbleMenu",
17646
17646
  addOptions() {
17647
17647
  return {
@@ -17772,7 +17772,7 @@ var Dse = class {
17772
17772
  key: typeof e.pluginKey == "string" ? new St(e.pluginKey) : e.pluginKey,
17773
17773
  view: (t) => new Dse({ view: t, ...e })
17774
17774
  });
17775
- Ft.create({
17775
+ wt.create({
17776
17776
  name: "floatingMenu",
17777
17777
  addOptions() {
17778
17778
  return {
@@ -19115,10 +19115,10 @@ function fae(e, t, n, r, o, i, s) {
19115
19115
  loop: nt
19116
19116
  }
19117
19117
  }, je) => {
19118
- const Re = xe.settled(), He = !pt.shouldConstrain(), at = nt ? Re : Re && He, Ve = at && !Le.pointerDown();
19119
- Ve && Pe.stop();
19118
+ const Re = xe.settled(), He = !pt.shouldConstrain(), at = nt ? Re : Re && He, Ge = at && !Le.pointerDown();
19119
+ Ge && Pe.stop();
19120
19120
  const We = Ee.get() * je + ge.get() * (1 - je);
19121
- Ce.set(We), nt && (Te.loop(xe.direction()), Ne.loop()), be.to(Ce.get()), Ve && ft.emit("settle"), at || ft.emit("scroll");
19121
+ Ce.set(We), nt && (Te.loop(xe.direction()), Ne.loop()), be.to(Ce.get()), Ge && ft.emit("settle"), at || ft.emit("scroll");
19122
19122
  }, B = qse(r, o, () => Z(pe), (xe) => ue(pe, xe)), ee = 0.68, ae = Q[oe.get()], K = d0(ae), V = d0(ae), ie = d0(ae), he = d0(ae), De = Jse(K, ie, V, he, p, ee), me = sae(d, Q, le, Y, he), ce = aae(B, oe, S, De, me, he, s), de = rae(Y), fe = vf(), O = dae(t, n, s, g), {
19123
19123
  slideRegistry: W
19124
19124
  } = iae(M, y, Q, G, z, X), te = lae(e, n, W, ce, De, fe, s, w), pe = {
@@ -19560,7 +19560,7 @@ const vae = _t.forwardRef(({ className: e, ...t }, n) => {
19560
19560
  );
19561
19561
  });
19562
19562
  vae.displayName = "CarouselNext";
19563
- var Fae = typeof Bt == "object" && Bt && Bt.Object === Object && Bt, wae = typeof self == "object" && self && self.Object === Object && self;
19563
+ var Fae = typeof jt == "object" && jt && jt.Object === Object && jt, wae = typeof self == "object" && self && self.Object === Object && self;
19564
19564
  Fae || wae || Function("return this")();
19565
19565
  var JL = typeof window < "u" ? oh : Me;
19566
19566
  function Dae(e, t, n, r) {
@@ -21474,7 +21474,7 @@ var iU = function e(t) {
21474
21474
  }, Xae = function(t) {
21475
21475
  var n = /^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(t);
21476
21476
  return n ? n[2] !== ":" || !/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(n[1]) ? null : n[1].toLowerCase() : "_relative";
21477
- }, un = {
21477
+ }, an = {
21478
21478
  deflt: zae,
21479
21479
  escape: Vae,
21480
21480
  hyphenate: Hae,
@@ -21634,7 +21634,7 @@ class E8 {
21634
21634
  */
21635
21635
  isTrusted(t) {
21636
21636
  if (t.url && !t.protocol) {
21637
- var n = un.protocolFromUrl(t.url);
21637
+ var n = an.protocolFromUrl(t.url);
21638
21638
  if (n == null)
21639
21639
  return !1;
21640
21640
  t.protocol = n;
@@ -21693,7 +21693,7 @@ class Ol {
21693
21693
  return this.size >= 2;
21694
21694
  }
21695
21695
  }
21696
- var C8 = 0, T2 = 1, dp = 2, Qa = 3, Df = 4, Pi = 5, Np = 6, wo = 7, $s = [new Ol(C8, 0, !1), new Ol(T2, 0, !0), new Ol(dp, 1, !1), new Ol(Qa, 1, !0), new Ol(Df, 2, !1), new Ol(Pi, 2, !0), new Ol(Np, 3, !1), new Ol(wo, 3, !0)], Zae = [Df, Pi, Df, Pi, Np, wo, Np, wo], Jae = [Pi, Pi, Pi, Pi, wo, wo, wo, wo], Qae = [dp, Qa, Df, Pi, Np, wo, Np, wo], ele = [Qa, Qa, Pi, Pi, wo, wo, wo, wo], tle = [T2, T2, Qa, Qa, Pi, Pi, wo, wo], nle = [C8, T2, dp, Qa, dp, Qa, dp, Qa], vt = {
21696
+ var C8 = 0, T2 = 1, dp = 2, Qa = 3, Df = 4, Pi = 5, Np = 6, wo = 7, $s = [new Ol(C8, 0, !1), new Ol(T2, 0, !0), new Ol(dp, 1, !1), new Ol(Qa, 1, !0), new Ol(Df, 2, !1), new Ol(Pi, 2, !0), new Ol(Np, 3, !1), new Ol(wo, 3, !0)], Zae = [Df, Pi, Df, Pi, Np, wo, Np, wo], Jae = [Pi, Pi, Pi, Pi, wo, wo, wo, wo], Qae = [dp, Qa, Df, Pi, Np, wo, Np, wo], ele = [Qa, Qa, Pi, Pi, wo, wo, wo, wo], tle = [T2, T2, Qa, Qa, Pi, Pi, wo, wo], nle = [C8, T2, dp, Qa, dp, Qa, dp, Qa], Ft = {
21697
21697
  DISPLAY: $s[C8],
21698
21698
  TEXT: $s[dp],
21699
21699
  SCRIPT: $s[Df],
@@ -24771,16 +24771,16 @@ var k5 = {
24771
24771
  return n;
24772
24772
  }, yle = /[\s"'>/=\x00-\x1f]/, dU = function(t) {
24773
24773
  var n = "<" + t;
24774
- this.classes.length && (n += ' class="' + un.escape(Eu(this.classes)) + '"');
24774
+ this.classes.length && (n += ' class="' + an.escape(Eu(this.classes)) + '"');
24775
24775
  var r = "";
24776
24776
  for (var o in this.style)
24777
- this.style.hasOwnProperty(o) && (r += un.hyphenate(o) + ":" + this.style[o] + ";");
24778
- r && (n += ' style="' + un.escape(r) + '"');
24777
+ this.style.hasOwnProperty(o) && (r += an.hyphenate(o) + ":" + this.style[o] + ";");
24778
+ r && (n += ' style="' + an.escape(r) + '"');
24779
24779
  for (var i in this.attributes)
24780
24780
  if (this.attributes.hasOwnProperty(i)) {
24781
24781
  if (yle.test(i))
24782
24782
  throw new Xe("Invalid attribute name '" + i + "'");
24783
- n += " " + i + '="' + un.escape(this.attributes[i]) + '"';
24783
+ n += " " + i + '="' + an.escape(this.attributes[i]) + '"';
24784
24784
  }
24785
24785
  n += ">";
24786
24786
  for (var s = 0; s < this.children.length; s++)
@@ -24841,10 +24841,10 @@ class xle {
24841
24841
  return t;
24842
24842
  }
24843
24843
  toMarkup() {
24844
- var t = '<img src="' + un.escape(this.src) + '"' + (' alt="' + un.escape(this.alt) + '"'), n = "";
24844
+ var t = '<img src="' + an.escape(this.src) + '"' + (' alt="' + an.escape(this.alt) + '"'), n = "";
24845
24845
  for (var r in this.style)
24846
- this.style.hasOwnProperty(r) && (n += un.hyphenate(r) + ":" + this.style[r] + ";");
24847
- return n && (t += ' style="' + un.escape(n) + '"'), t += "'/>", t;
24846
+ this.style.hasOwnProperty(r) && (n += an.hyphenate(r) + ":" + this.style[r] + ";");
24847
+ return n && (t += ' style="' + an.escape(n) + '"'), t += "'/>", t;
24848
24848
  }
24849
24849
  }
24850
24850
  var vle = {
@@ -24879,13 +24879,13 @@ class Ki {
24879
24879
  */
24880
24880
  toMarkup() {
24881
24881
  var t = !1, n = "<span";
24882
- this.classes.length && (t = !0, n += ' class="', n += un.escape(Eu(this.classes)), n += '"');
24882
+ this.classes.length && (t = !0, n += ' class="', n += an.escape(Eu(this.classes)), n += '"');
24883
24883
  var r = "";
24884
24884
  this.italic > 0 && (r += "margin-right:" + this.italic + "em;");
24885
24885
  for (var o in this.style)
24886
- this.style.hasOwnProperty(o) && (r += un.hyphenate(o) + ":" + this.style[o] + ";");
24887
- r && (t = !0, n += ' style="' + un.escape(r) + '"');
24888
- var i = un.escape(this.text);
24886
+ this.style.hasOwnProperty(o) && (r += an.hyphenate(o) + ":" + this.style[o] + ";");
24887
+ r && (t = !0, n += ' style="' + an.escape(r) + '"');
24888
+ var i = an.escape(this.text);
24889
24889
  return t ? (n += ">", n += i, n += "</span>", n) : i;
24890
24890
  }
24891
24891
  }
@@ -24904,7 +24904,7 @@ class il {
24904
24904
  toMarkup() {
24905
24905
  var t = '<svg xmlns="http://www.w3.org/2000/svg"';
24906
24906
  for (var n in this.attributes)
24907
- Object.prototype.hasOwnProperty.call(this.attributes, n) && (t += " " + n + '="' + un.escape(this.attributes[n]) + '"');
24907
+ Object.prototype.hasOwnProperty.call(this.attributes, n) && (t += " " + n + '="' + an.escape(this.attributes[n]) + '"');
24908
24908
  t += ">";
24909
24909
  for (var r = 0; r < this.children.length; r++)
24910
24910
  t += this.children[r].toMarkup();
@@ -24920,7 +24920,7 @@ class Cu {
24920
24920
  return this.alternate ? n.setAttribute("d", this.alternate) : n.setAttribute("d", W_[this.pathName]), n;
24921
24921
  }
24922
24922
  toMarkup() {
24923
- return this.alternate ? '<path d="' + un.escape(this.alternate) + '"/>' : '<path d="' + un.escape(W_[this.pathName]) + '"/>';
24923
+ return this.alternate ? '<path d="' + an.escape(this.alternate) + '"/>' : '<path d="' + an.escape(W_[this.pathName]) + '"/>';
24924
24924
  }
24925
24925
  }
24926
24926
  class E5 {
@@ -24936,7 +24936,7 @@ class E5 {
24936
24936
  toMarkup() {
24937
24937
  var t = "<line";
24938
24938
  for (var n in this.attributes)
24939
- Object.prototype.hasOwnProperty.call(this.attributes, n) && (t += " " + n + '="' + un.escape(this.attributes[n]) + '"');
24939
+ Object.prototype.hasOwnProperty.call(this.attributes, n) && (t += " " + n + '="' + an.escape(this.attributes[n]) + '"');
24940
24940
  return t += "/>", t;
24941
24941
  }
24942
24942
  }
@@ -24974,7 +24974,7 @@ function U(e, t, n, r, o, i) {
24974
24974
  replace: r
24975
24975
  }, i && r && (Tn[e][r] = Tn[e][o]);
24976
24976
  }
24977
- var H = "math", $e = "text", J = "main", ye = "ams", Ln = "accent-token", lt = "bin", No = "close", uh = "inner", xt = "mathord", cr = "op-token", Di = "open", qy = "punct", Fe = "rel", Fl = "spacing", ke = "textord";
24977
+ var H = "math", $e = "text", J = "main", ye = "ams", Ln = "accent-token", lt = "bin", No = "close", uh = "inner", vt = "mathord", cr = "op-token", Di = "open", qy = "punct", Fe = "rel", Fl = "spacing", ke = "textord";
24978
24978
  U(H, J, Fe, "≡", "\\equiv", !0);
24979
24979
  U(H, J, Fe, "≺", "\\prec", !0);
24980
24980
  U(H, J, Fe, "≻", "\\succ", !0);
@@ -25339,36 +25339,36 @@ U(H, J, ke, "⊤", "\\top");
25339
25339
  U(H, J, ke, "⊥", "\\bot");
25340
25340
  U(H, J, ke, "∅", "\\emptyset");
25341
25341
  U(H, ye, ke, "∅", "\\varnothing");
25342
- U(H, J, xt, "α", "\\alpha", !0);
25343
- U(H, J, xt, "β", "\\beta", !0);
25344
- U(H, J, xt, "γ", "\\gamma", !0);
25345
- U(H, J, xt, "δ", "\\delta", !0);
25346
- U(H, J, xt, "ϵ", "\\epsilon", !0);
25347
- U(H, J, xt, "ζ", "\\zeta", !0);
25348
- U(H, J, xt, "η", "\\eta", !0);
25349
- U(H, J, xt, "θ", "\\theta", !0);
25350
- U(H, J, xt, "ι", "\\iota", !0);
25351
- U(H, J, xt, "κ", "\\kappa", !0);
25352
- U(H, J, xt, "λ", "\\lambda", !0);
25353
- U(H, J, xt, "μ", "\\mu", !0);
25354
- U(H, J, xt, "ν", "\\nu", !0);
25355
- U(H, J, xt, "ξ", "\\xi", !0);
25356
- U(H, J, xt, "ο", "\\omicron", !0);
25357
- U(H, J, xt, "π", "\\pi", !0);
25358
- U(H, J, xt, "ρ", "\\rho", !0);
25359
- U(H, J, xt, "σ", "\\sigma", !0);
25360
- U(H, J, xt, "τ", "\\tau", !0);
25361
- U(H, J, xt, "υ", "\\upsilon", !0);
25362
- U(H, J, xt, "ϕ", "\\phi", !0);
25363
- U(H, J, xt, "χ", "\\chi", !0);
25364
- U(H, J, xt, "ψ", "\\psi", !0);
25365
- U(H, J, xt, "ω", "\\omega", !0);
25366
- U(H, J, xt, "ε", "\\varepsilon", !0);
25367
- U(H, J, xt, "ϑ", "\\vartheta", !0);
25368
- U(H, J, xt, "ϖ", "\\varpi", !0);
25369
- U(H, J, xt, "ϱ", "\\varrho", !0);
25370
- U(H, J, xt, "ς", "\\varsigma", !0);
25371
- U(H, J, xt, "φ", "\\varphi", !0);
25342
+ U(H, J, vt, "α", "\\alpha", !0);
25343
+ U(H, J, vt, "β", "\\beta", !0);
25344
+ U(H, J, vt, "γ", "\\gamma", !0);
25345
+ U(H, J, vt, "δ", "\\delta", !0);
25346
+ U(H, J, vt, "ϵ", "\\epsilon", !0);
25347
+ U(H, J, vt, "ζ", "\\zeta", !0);
25348
+ U(H, J, vt, "η", "\\eta", !0);
25349
+ U(H, J, vt, "θ", "\\theta", !0);
25350
+ U(H, J, vt, "ι", "\\iota", !0);
25351
+ U(H, J, vt, "κ", "\\kappa", !0);
25352
+ U(H, J, vt, "λ", "\\lambda", !0);
25353
+ U(H, J, vt, "μ", "\\mu", !0);
25354
+ U(H, J, vt, "ν", "\\nu", !0);
25355
+ U(H, J, vt, "ξ", "\\xi", !0);
25356
+ U(H, J, vt, "ο", "\\omicron", !0);
25357
+ U(H, J, vt, "π", "\\pi", !0);
25358
+ U(H, J, vt, "ρ", "\\rho", !0);
25359
+ U(H, J, vt, "σ", "\\sigma", !0);
25360
+ U(H, J, vt, "τ", "\\tau", !0);
25361
+ U(H, J, vt, "υ", "\\upsilon", !0);
25362
+ U(H, J, vt, "ϕ", "\\phi", !0);
25363
+ U(H, J, vt, "χ", "\\chi", !0);
25364
+ U(H, J, vt, "ψ", "\\psi", !0);
25365
+ U(H, J, vt, "ω", "\\omega", !0);
25366
+ U(H, J, vt, "ε", "\\varepsilon", !0);
25367
+ U(H, J, vt, "ϑ", "\\vartheta", !0);
25368
+ U(H, J, vt, "ϖ", "\\varpi", !0);
25369
+ U(H, J, vt, "ϱ", "\\varrho", !0);
25370
+ U(H, J, vt, "ς", "\\varsigma", !0);
25371
+ U(H, J, vt, "φ", "\\varphi", !0);
25372
25372
  U(H, J, lt, "∗", "*", !0);
25373
25373
  U(H, J, lt, "+", "+");
25374
25374
  U(H, J, lt, "−", "-", !0);
@@ -25520,8 +25520,8 @@ U(H, J, Ln, "^", "\\hat");
25520
25520
  U(H, J, Ln, "⃗", "\\vec");
25521
25521
  U(H, J, Ln, "˙", "\\dot");
25522
25522
  U(H, J, Ln, "˚", "\\mathring");
25523
- U(H, J, xt, "", "\\@imath");
25524
- U(H, J, xt, "", "\\@jmath");
25523
+ U(H, J, vt, "", "\\@imath");
25524
+ U(H, J, vt, "", "\\@jmath");
25525
25525
  U(H, J, ke, "ı", "ı");
25526
25526
  U(H, J, ke, "ȷ", "ȷ");
25527
25527
  U($e, J, ke, "ı", "\\i", !0);
@@ -25586,7 +25586,7 @@ for (var dv = 0; dv < Z_.length; dv++) {
25586
25586
  var j2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
25587
25587
  for (var pv = 0; pv < j2.length; pv++) {
25588
25588
  var Cg = j2.charAt(pv);
25589
- U(H, J, xt, Cg, Cg), U($e, J, ke, Cg, Cg);
25589
+ U(H, J, vt, Cg, Cg), U($e, J, ke, Cg, Cg);
25590
25590
  }
25591
25591
  U(H, ye, ke, "C", "ℂ");
25592
25592
  U($e, ye, ke, "C", "ℂ");
@@ -25602,24 +25602,24 @@ U(H, ye, ke, "R", "ℝ");
25602
25602
  U($e, ye, ke, "R", "ℝ");
25603
25603
  U(H, ye, ke, "Z", "ℤ");
25604
25604
  U($e, ye, ke, "Z", "ℤ");
25605
- U(H, J, xt, "h", "ℎ");
25606
- U($e, J, xt, "h", "ℎ");
25605
+ U(H, J, vt, "h", "ℎ");
25606
+ U($e, J, vt, "h", "ℎ");
25607
25607
  var Ct = "";
25608
25608
  for (var fo = 0; fo < j2.length; fo++) {
25609
25609
  var Wn = j2.charAt(fo);
25610
- Ct = String.fromCharCode(55349, 56320 + fo), U(H, J, xt, Wn, Ct), U($e, J, ke, Wn, Ct), Ct = String.fromCharCode(55349, 56372 + fo), U(H, J, xt, Wn, Ct), U($e, J, ke, Wn, Ct), Ct = String.fromCharCode(55349, 56424 + fo), U(H, J, xt, Wn, Ct), U($e, J, ke, Wn, Ct), Ct = String.fromCharCode(55349, 56580 + fo), U(H, J, xt, Wn, Ct), U($e, J, ke, Wn, Ct), Ct = String.fromCharCode(55349, 56684 + fo), U(H, J, xt, Wn, Ct), U($e, J, ke, Wn, Ct), Ct = String.fromCharCode(55349, 56736 + fo), U(H, J, xt, Wn, Ct), U($e, J, ke, Wn, Ct), Ct = String.fromCharCode(55349, 56788 + fo), U(H, J, xt, Wn, Ct), U($e, J, ke, Wn, Ct), Ct = String.fromCharCode(55349, 56840 + fo), U(H, J, xt, Wn, Ct), U($e, J, ke, Wn, Ct), Ct = String.fromCharCode(55349, 56944 + fo), U(H, J, xt, Wn, Ct), U($e, J, ke, Wn, Ct), fo < 26 && (Ct = String.fromCharCode(55349, 56632 + fo), U(H, J, xt, Wn, Ct), U($e, J, ke, Wn, Ct), Ct = String.fromCharCode(55349, 56476 + fo), U(H, J, xt, Wn, Ct), U($e, J, ke, Wn, Ct));
25610
+ Ct = String.fromCharCode(55349, 56320 + fo), U(H, J, vt, Wn, Ct), U($e, J, ke, Wn, Ct), Ct = String.fromCharCode(55349, 56372 + fo), U(H, J, vt, Wn, Ct), U($e, J, ke, Wn, Ct), Ct = String.fromCharCode(55349, 56424 + fo), U(H, J, vt, Wn, Ct), U($e, J, ke, Wn, Ct), Ct = String.fromCharCode(55349, 56580 + fo), U(H, J, vt, Wn, Ct), U($e, J, ke, Wn, Ct), Ct = String.fromCharCode(55349, 56684 + fo), U(H, J, vt, Wn, Ct), U($e, J, ke, Wn, Ct), Ct = String.fromCharCode(55349, 56736 + fo), U(H, J, vt, Wn, Ct), U($e, J, ke, Wn, Ct), Ct = String.fromCharCode(55349, 56788 + fo), U(H, J, vt, Wn, Ct), U($e, J, ke, Wn, Ct), Ct = String.fromCharCode(55349, 56840 + fo), U(H, J, vt, Wn, Ct), U($e, J, ke, Wn, Ct), Ct = String.fromCharCode(55349, 56944 + fo), U(H, J, vt, Wn, Ct), U($e, J, ke, Wn, Ct), fo < 26 && (Ct = String.fromCharCode(55349, 56632 + fo), U(H, J, vt, Wn, Ct), U($e, J, ke, Wn, Ct), Ct = String.fromCharCode(55349, 56476 + fo), U(H, J, vt, Wn, Ct), U($e, J, ke, Wn, Ct));
25611
25611
  }
25612
25612
  Ct = "𝕜";
25613
- U(H, J, xt, "k", Ct);
25613
+ U(H, J, vt, "k", Ct);
25614
25614
  U($e, J, ke, "k", Ct);
25615
25615
  for (var Ju = 0; Ju < 10; Ju++) {
25616
25616
  var Rl = Ju.toString();
25617
- Ct = String.fromCharCode(55349, 57294 + Ju), U(H, J, xt, Rl, Ct), U($e, J, ke, Rl, Ct), Ct = String.fromCharCode(55349, 57314 + Ju), U(H, J, xt, Rl, Ct), U($e, J, ke, Rl, Ct), Ct = String.fromCharCode(55349, 57324 + Ju), U(H, J, xt, Rl, Ct), U($e, J, ke, Rl, Ct), Ct = String.fromCharCode(55349, 57334 + Ju), U(H, J, xt, Rl, Ct), U($e, J, ke, Rl, Ct);
25617
+ Ct = String.fromCharCode(55349, 57294 + Ju), U(H, J, vt, Rl, Ct), U($e, J, ke, Rl, Ct), Ct = String.fromCharCode(55349, 57314 + Ju), U(H, J, vt, Rl, Ct), U($e, J, ke, Rl, Ct), Ct = String.fromCharCode(55349, 57324 + Ju), U(H, J, vt, Rl, Ct), U($e, J, ke, Rl, Ct), Ct = String.fromCharCode(55349, 57334 + Ju), U(H, J, vt, Rl, Ct), U($e, J, ke, Rl, Ct);
25618
25618
  }
25619
25619
  var C5 = "ÐÞþ";
25620
25620
  for (var hv = 0; hv < C5.length; hv++) {
25621
25621
  var _g = C5.charAt(hv);
25622
- U(H, J, xt, _g, _g), U($e, J, ke, _g, _g);
25622
+ U(H, J, vt, _g, _g), U($e, J, ke, _g, _g);
25623
25623
  }
25624
25624
  var Ag = [
25625
25625
  ["mathbf", "textbf", "Main-Bold"],
@@ -26119,10 +26119,10 @@ var M2 = function(t) {
26119
26119
  }, Zn = function(t) {
26120
26120
  return t.type === "ordgroup" ? t.body : [t];
26121
26121
  }, sl = _e.makeSpan, Ule = ["leftmost", "mbin", "mopen", "mrel", "mop", "mpunct"], Ple = ["rightmost", "mrel", "mclose", "mpunct"], zle = {
26122
- display: vt.DISPLAY,
26123
- text: vt.TEXT,
26124
- script: vt.SCRIPT,
26125
- scriptscript: vt.SCRIPTSCRIPT
26122
+ display: Ft.DISPLAY,
26123
+ text: Ft.TEXT,
26124
+ script: Ft.SCRIPT,
26125
+ scriptscript: Ft.SCRIPTSCRIPT
26126
26126
  }, $le = {
26127
26127
  mord: "mord",
26128
26128
  mop: "mop",
@@ -26135,7 +26135,7 @@ var M2 = function(t) {
26135
26135
  }, br = function(t, n, r, o) {
26136
26136
  o === void 0 && (o = [null, null]);
26137
26137
  for (var i = [], s = 0; s < t.length; s++) {
26138
- var a = on(t[s], n);
26138
+ var a = sn(t[s], n);
26139
26139
  if (a instanceof C1) {
26140
26140
  var l = a.children;
26141
26141
  i.push(...l);
@@ -26199,7 +26199,7 @@ var M2 = function(t) {
26199
26199
  }, kf = function(t, n) {
26200
26200
  var r = ["nulldelimiter"].concat(t.baseSizingClasses());
26201
26201
  return sl(n.concat(r));
26202
- }, on = function(t, n, r) {
26202
+ }, sn = function(t, n, r) {
26203
26203
  if (!t)
26204
26204
  return sl();
26205
26205
  if (B2[t.type]) {
@@ -26281,8 +26281,8 @@ class gi {
26281
26281
  toMarkup() {
26282
26282
  var t = "<" + this.type;
26283
26283
  for (var n in this.attributes)
26284
- Object.prototype.hasOwnProperty.call(this.attributes, n) && (t += " " + n + '="', t += un.escape(this.attributes[n]), t += '"');
26285
- this.classes.length > 0 && (t += ' class ="' + un.escape(Eu(this.classes)) + '"'), t += ">";
26284
+ Object.prototype.hasOwnProperty.call(this.attributes, n) && (t += " " + n + '="', t += an.escape(this.attributes[n]), t += '"');
26285
+ this.classes.length > 0 && (t += ' class ="' + an.escape(Eu(this.classes)) + '"'), t += ">";
26286
26286
  for (var r = 0; r < this.children.length; r++)
26287
26287
  t += this.children[r].toMarkup();
26288
26288
  return t += "</" + this.type + ">", t;
@@ -26309,7 +26309,7 @@ class Ks {
26309
26309
  * (representing the text itself).
26310
26310
  */
26311
26311
  toMarkup() {
26312
- return un.escape(this.toText());
26312
+ return an.escape(this.toText());
26313
26313
  }
26314
26314
  /**
26315
26315
  * Converts the text node into a string
@@ -26348,15 +26348,15 @@ class Wle {
26348
26348
  return this.character ? this.character : " ";
26349
26349
  }
26350
26350
  }
26351
- var Ge = {
26351
+ var Ve = {
26352
26352
  MathNode: gi,
26353
26353
  TextNode: Ks,
26354
26354
  SpaceNode: Wle,
26355
26355
  newDocumentFragment: xU
26356
26356
  }, Xi = function(t, n, r) {
26357
- return Tn[n][t] && Tn[n][t].replace && t.charCodeAt(0) !== 55349 && !(pU.hasOwnProperty(t) && r && (r.fontFamily && r.fontFamily.slice(4, 6) === "tt" || r.font && r.font.slice(4, 6) === "tt")) && (t = Tn[n][t].replace), new Ge.TextNode(t);
26357
+ return Tn[n][t] && Tn[n][t].replace && t.charCodeAt(0) !== 55349 && !(pU.hasOwnProperty(t) && r && (r.fontFamily && r.fontFamily.slice(4, 6) === "tt" || r.font && r.font.slice(4, 6) === "tt")) && (t = Tn[n][t].replace), new Ve.TextNode(t);
26358
26358
  }, T8 = function(t) {
26359
- return t.length === 1 ? t[0] : new Ge.MathNode("mrow", t);
26359
+ return t.length === 1 ? t[0] : new Ve.MathNode("mrow", t);
26360
26360
  }, j8 = function(t, n) {
26361
26361
  if (n.fontFamily === "texttt")
26362
26362
  return "monospace";
@@ -26446,7 +26446,7 @@ var ni = function(t, n, r) {
26446
26446
  return T8(ni(t, n, r));
26447
26447
  }, _n = function(t, n) {
26448
26448
  if (!t)
26449
- return new Ge.MathNode("mrow");
26449
+ return new Ve.MathNode("mrow");
26450
26450
  if (N2[t.type]) {
26451
26451
  var r = N2[t.type](t, n);
26452
26452
  return r;
@@ -26455,17 +26455,17 @@ var ni = function(t, n, r) {
26455
26455
  };
26456
26456
  function tA(e, t, n, r, o) {
26457
26457
  var i = ni(e, n), s;
26458
- i.length === 1 && i[0] instanceof gi && ["mrow", "mtable"].includes(i[0].type) ? s = i[0] : s = new Ge.MathNode("mrow", i);
26459
- var a = new Ge.MathNode("annotation", [new Ge.TextNode(t)]);
26458
+ i.length === 1 && i[0] instanceof gi && ["mrow", "mtable"].includes(i[0].type) ? s = i[0] : s = new Ve.MathNode("mrow", i);
26459
+ var a = new Ve.MathNode("annotation", [new Ve.TextNode(t)]);
26460
26460
  a.setAttribute("encoding", "application/x-tex");
26461
- var l = new Ge.MathNode("semantics", [s, a]), u = new Ge.MathNode("math", [l]);
26461
+ var l = new Ve.MathNode("semantics", [s, a]), u = new Ve.MathNode("math", [l]);
26462
26462
  u.setAttribute("xmlns", "http://www.w3.org/1998/Math/MathML"), r && u.setAttribute("display", "block");
26463
26463
  var c = o ? "katex" : "katex-mathml";
26464
26464
  return _e.makeSpan([c], [u]);
26465
26465
  }
26466
26466
  var vU = function(t) {
26467
26467
  return new aU({
26468
- style: t.displayMode ? vt.DISPLAY : vt.TEXT,
26468
+ style: t.displayMode ? Ft.DISPLAY : Ft.TEXT,
26469
26469
  maxSize: t.maxSize,
26470
26470
  minRuleThickness: t.minRuleThickness
26471
26471
  });
@@ -26536,7 +26536,7 @@ var vU = function(t) {
26536
26536
  "\\cdleftarrow": "←",
26537
26537
  "\\cdlongequal": "="
26538
26538
  }, Kle = function(t) {
26539
- var n = new Ge.MathNode("mo", [new Ge.TextNode(Gle[t.replace(/^\\/, "")])]);
26539
+ var n = new Ve.MathNode("mo", [new Ve.TextNode(Gle[t.replace(/^\\/, "")])]);
26540
26540
  return n.setAttribute("stretchy", "true"), n;
26541
26541
  }, Xle = {
26542
26542
  // path(s), minWidth, height, align
@@ -26699,10 +26699,10 @@ function Gy(e) {
26699
26699
  }
26700
26700
  var N8 = (e, t) => {
26701
26701
  var n, r, o;
26702
- e && e.type === "supsub" ? (r = Ut(e.base, "accent"), n = r.base, e.base = n, o = Fle(on(e, t)), e.base = r) : (r = Ut(e, "accent"), n = r.base);
26703
- var i = on(n, t.havingCrampedStyle()), s = r.isShifty && un.isCharacterBox(n), a = 0;
26702
+ e && e.type === "supsub" ? (r = Ut(e.base, "accent"), n = r.base, e.base = n, o = Fle(sn(e, t)), e.base = r) : (r = Ut(e, "accent"), n = r.base);
26703
+ var i = sn(n, t.havingCrampedStyle()), s = r.isShifty && an.isCharacterBox(n), a = 0;
26704
26704
  if (s) {
26705
- var l = un.getBaseElem(n), u = on(l, t.havingCrampedStyle());
26705
+ var l = an.getBaseElem(n), u = sn(l, t.havingCrampedStyle());
26706
26706
  a = K_(u).skew;
26707
26707
  }
26708
26708
  var c = r.label === "\\c", d = c ? i.height + i.depth : Math.min(i.height, t.fontMetrics().xHeight), p;
@@ -26748,7 +26748,7 @@ var N8 = (e, t) => {
26748
26748
  var b = _e.makeSpan(["mord", "accent"], [p], t);
26749
26749
  return o ? (o.children[0] = b, o.height = Math.max(b.height, o.height), o.classes[0] = "mord", o) : b;
26750
26750
  }, wU = (e, t) => {
26751
- var n = e.isStretchy ? al.mathMLnode(e.label) : new Ge.MathNode("mo", [Xi(e.label, e.mode)]), r = new Ge.MathNode("mover", [_n(e.base, t), n]);
26751
+ var n = e.isStretchy ? al.mathMLnode(e.label) : new Ve.MathNode("mo", [Xi(e.label, e.mode)]), r = new Ve.MathNode("mover", [_n(e.base, t), n]);
26752
26752
  return r.setAttribute("accent", "true"), r;
26753
26753
  }, Qle = new RegExp(["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring"].map((e) => "\\" + e).join("|"));
26754
26754
  st({
@@ -26814,7 +26814,7 @@ st({
26814
26814
  };
26815
26815
  },
26816
26816
  htmlBuilder: (e, t) => {
26817
- var n = on(e.base, t), r = al.svgSpan(e, t), o = e.label === "\\utilde" ? 0.12 : 0, i = _e.makeVList({
26817
+ var n = sn(e.base, t), r = al.svgSpan(e, t), o = e.label === "\\utilde" ? 0.12 : 0, i = _e.makeVList({
26818
26818
  positionType: "top",
26819
26819
  positionData: n.height,
26820
26820
  children: [{
@@ -26832,12 +26832,12 @@ st({
26832
26832
  return _e.makeSpan(["mord", "accentunder"], [i], t);
26833
26833
  },
26834
26834
  mathmlBuilder: (e, t) => {
26835
- var n = al.mathMLnode(e.label), r = new Ge.MathNode("munder", [_n(e.base, t), n]);
26835
+ var n = al.mathMLnode(e.label), r = new Ve.MathNode("munder", [_n(e.base, t), n]);
26836
26836
  return r.setAttribute("accentunder", "true"), r;
26837
26837
  }
26838
26838
  });
26839
26839
  var jg = (e) => {
26840
- var t = new Ge.MathNode("mpadded", e ? [e] : []);
26840
+ var t = new Ve.MathNode("mpadded", e ? [e] : []);
26841
26841
  return t.setAttribute("width", "+0.6em"), t.setAttribute("lspace", "0.3em"), t;
26842
26842
  };
26843
26843
  st({
@@ -26892,10 +26892,10 @@ st({
26892
26892
  // Flow is unable to correctly infer the type of `group`, even though it's
26893
26893
  // unambiguously determined from the passed-in `type` above.
26894
26894
  htmlBuilder(e, t) {
26895
- var n = t.style, r = t.havingStyle(n.sup()), o = _e.wrapFragment(on(e.body, r, t), t), i = e.label.slice(0, 2) === "\\x" ? "x" : "cd";
26895
+ var n = t.style, r = t.havingStyle(n.sup()), o = _e.wrapFragment(sn(e.body, r, t), t), i = e.label.slice(0, 2) === "\\x" ? "x" : "cd";
26896
26896
  o.classes.push(i + "-arrow-pad");
26897
26897
  var s;
26898
- e.below && (r = t.havingStyle(n.sub()), s = _e.wrapFragment(on(e.below, r, t), t), s.classes.push(i + "-arrow-pad"));
26898
+ e.below && (r = t.havingStyle(n.sub()), s = _e.wrapFragment(sn(e.below, r, t), t), s.classes.push(i + "-arrow-pad"));
26899
26899
  var a = al.svgSpan(e, t), l = -t.fontMetrics().axisHeight + 0.5 * a.height, u = -t.fontMetrics().axisHeight - 0.5 * a.height - 0.111;
26900
26900
  (o.depth > 0.25 || e.label === "\\xleftequilibrium") && (u -= o.depth);
26901
26901
  var c;
@@ -26940,14 +26940,14 @@ st({
26940
26940
  var o = jg(_n(e.body, t));
26941
26941
  if (e.below) {
26942
26942
  var i = jg(_n(e.below, t));
26943
- r = new Ge.MathNode("munderover", [n, i, o]);
26943
+ r = new Ve.MathNode("munderover", [n, i, o]);
26944
26944
  } else
26945
- r = new Ge.MathNode("mover", [n, o]);
26945
+ r = new Ve.MathNode("mover", [n, o]);
26946
26946
  } else if (e.below) {
26947
26947
  var s = jg(_n(e.below, t));
26948
- r = new Ge.MathNode("munder", [n, s]);
26948
+ r = new Ve.MathNode("munder", [n, s]);
26949
26949
  } else
26950
- r = jg(), r = new Ge.MathNode("mover", [n, r]);
26950
+ r = jg(), r = new Ve.MathNode("mover", [n, r]);
26951
26951
  return r;
26952
26952
  }
26953
26953
  });
@@ -26958,7 +26958,7 @@ function DU(e, t) {
26958
26958
  }
26959
26959
  function kU(e, t) {
26960
26960
  var n, r = ni(e.body, t);
26961
- return e.mclass === "minner" ? n = new Ge.MathNode("mpadded", r) : e.mclass === "mord" ? e.isCharacterBox ? (n = r[0], n.type = "mi") : n = new Ge.MathNode("mi", r) : (e.isCharacterBox ? (n = r[0], n.type = "mo") : n = new Ge.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;
26961
+ return e.mclass === "minner" ? n = new Ve.MathNode("mpadded", r) : e.mclass === "mord" ? e.isCharacterBox ? (n = r[0], n.type = "mi") : n = new Ve.MathNode("mi", r) : (e.isCharacterBox ? (n = r[0], n.type = "mo") : n = new Ve.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;
26962
26962
  }
26963
26963
  st({
26964
26964
  type: "mclass",
@@ -26978,7 +26978,7 @@ st({
26978
26978
  mclass: "m" + r.slice(5),
26979
26979
  // TODO(kevinb): don't prefix with 'm'
26980
26980
  body: Zn(o),
26981
- isCharacterBox: un.isCharacterBox(o)
26981
+ isCharacterBox: an.isCharacterBox(o)
26982
26982
  };
26983
26983
  },
26984
26984
  htmlBuilder: DU,
@@ -27003,7 +27003,7 @@ st({
27003
27003
  mode: n.mode,
27004
27004
  mclass: Ky(t[0]),
27005
27005
  body: Zn(t[1]),
27006
- isCharacterBox: un.isCharacterBox(t[1])
27006
+ isCharacterBox: an.isCharacterBox(t[1])
27007
27007
  };
27008
27008
  }
27009
27009
  });
@@ -27040,7 +27040,7 @@ st({
27040
27040
  mode: n.mode,
27041
27041
  mclass: s,
27042
27042
  body: [l],
27043
- isCharacterBox: un.isCharacterBox(l)
27043
+ isCharacterBox: an.isCharacterBox(l)
27044
27044
  };
27045
27045
  },
27046
27046
  htmlBuilder: DU,
@@ -27069,7 +27069,7 @@ st({
27069
27069
  return r.style.textShadow = "0.02em 0.01em 0.04px", r;
27070
27070
  },
27071
27071
  mathmlBuilder(e, t) {
27072
- var n = ni(e.body, t), r = new Ge.MathNode("mstyle", n);
27072
+ var n = ni(e.body, t), r = new Ve.MathNode("mstyle", n);
27073
27073
  return r.setAttribute("style", "text-shadow: 0.02em 0.01em 0.04px"), r;
27074
27074
  }
27075
27075
  });
@@ -27220,12 +27220,12 @@ st({
27220
27220
  };
27221
27221
  },
27222
27222
  htmlBuilder(e, t) {
27223
- var n = t.havingStyle(t.style.sup()), r = _e.wrapFragment(on(e.label, n, t), t);
27223
+ var n = t.havingStyle(t.style.sup()), r = _e.wrapFragment(sn(e.label, n, t), t);
27224
27224
  return r.classes.push("cd-label-" + e.side), r.style.bottom = Je(0.8 - r.depth), r.height = 0, r.depth = 0, r;
27225
27225
  },
27226
27226
  mathmlBuilder(e, t) {
27227
- var n = new Ge.MathNode("mrow", [_n(e.label, t)]);
27228
- return n = new Ge.MathNode("mpadded", [n]), n.setAttribute("width", "0"), e.side === "left" && n.setAttribute("lspace", "-1width"), n.setAttribute("voffset", "0.7em"), n = new Ge.MathNode("mstyle", [n]), n.setAttribute("displaystyle", "false"), n.setAttribute("scriptlevel", "1"), n;
27227
+ var n = new Ve.MathNode("mrow", [_n(e.label, t)]);
27228
+ return n = new Ve.MathNode("mpadded", [n]), n.setAttribute("width", "0"), e.side === "left" && n.setAttribute("lspace", "-1width"), n.setAttribute("voffset", "0.7em"), n = new Ve.MathNode("mstyle", [n]), n.setAttribute("displaystyle", "false"), n.setAttribute("scriptlevel", "1"), n;
27229
27229
  }
27230
27230
  });
27231
27231
  st({
@@ -27245,11 +27245,11 @@ st({
27245
27245
  };
27246
27246
  },
27247
27247
  htmlBuilder(e, t) {
27248
- var n = _e.wrapFragment(on(e.fragment, t), t);
27248
+ var n = _e.wrapFragment(sn(e.fragment, t), t);
27249
27249
  return n.classes.push("cd-vert-arrow"), n;
27250
27250
  },
27251
27251
  mathmlBuilder(e, t) {
27252
- return new Ge.MathNode("mrow", [_n(e.fragment, t)]);
27252
+ return new Ve.MathNode("mrow", [_n(e.fragment, t)]);
27253
27253
  }
27254
27254
  });
27255
27255
  st({
@@ -27282,7 +27282,7 @@ var EU = (e, t) => {
27282
27282
  var n = br(e.body, t.withColor(e.color), !1);
27283
27283
  return _e.makeFragment(n);
27284
27284
  }, CU = (e, t) => {
27285
- var n = ni(e.body, t.withColor(e.color)), r = new Ge.MathNode("mstyle", n);
27285
+ var n = ni(e.body, t.withColor(e.color)), r = new Ve.MathNode("mstyle", n);
27286
27286
  return r.setAttribute("mathcolor", e.color), r;
27287
27287
  };
27288
27288
  st({
@@ -27358,7 +27358,7 @@ st({
27358
27358
  return e.newLine && (n.classes.push("newline"), e.size && (n.style.marginTop = Je(zn(e.size, t)))), n;
27359
27359
  },
27360
27360
  mathmlBuilder(e, t) {
27361
- var n = new Ge.MathNode("mspace");
27361
+ var n = new Ve.MathNode("mspace");
27362
27362
  return e.newLine && (n.setAttribute("linebreak", "newline"), e.size && n.setAttribute("height", Je(zn(e.size, t)))), n;
27363
27363
  }
27364
27364
  });
@@ -27522,8 +27522,8 @@ var p0 = function(t, n, r) {
27522
27522
  }, aue = function(t, n, r, o) {
27523
27523
  return _e.makeSymbol(t, "Size" + n + "-Regular", r, o);
27524
27524
  }, TU = function(t, n, r, o, i, s) {
27525
- var a = aue(t, n, i, o), l = M8(_e.makeSpan(["delimsizing", "size" + n], [a], o), vt.TEXT, o, s);
27526
- return r && SU(l, o, vt.TEXT), l;
27525
+ var a = aue(t, n, i, o), l = M8(_e.makeSpan(["delimsizing", "size" + n], [a], o), Ft.TEXT, o, s);
27526
+ return r && SU(l, o, Ft.TEXT), l;
27527
27527
  }, gv = function(t, n, r) {
27528
27528
  var o;
27529
27529
  n === "Size1-Regular" ? o = "delim-size1" : o = "delim-size4";
@@ -27581,12 +27581,12 @@ var p0 = function(t, n, r) {
27581
27581
  }
27582
27582
  _.push(Bg), _.push(gv(a, h, i));
27583
27583
  }
27584
- var re = o.havingBaseStyle(vt.TEXT), le = _e.makeVList({
27584
+ var re = o.havingBaseStyle(Ft.TEXT), le = _e.makeVList({
27585
27585
  positionType: "bottom",
27586
27586
  positionData: T,
27587
27587
  children: _
27588
27588
  }, re);
27589
- return M8(_e.makeSpan(["delimsizing", "mult"], [le], re), vt.TEXT, o, s);
27589
+ return M8(_e.makeSpan(["delimsizing", "mult"], [le], re), Ft.TEXT, o, s);
27590
27590
  }, bv = 80, yv = 0.08, xv = function(t, n, r, o, i) {
27591
27591
  var s = dle(t, o, r), a = new Cu(t, s), l = new il([a], {
27592
27592
  // Note: 1000:1 ratio of viewBox to document em width.
@@ -27615,13 +27615,13 @@ var p0 = function(t, n, r) {
27615
27615
  throw new Xe("Illegal delimiter: '" + t + "'");
27616
27616
  }, hue = [{
27617
27617
  type: "small",
27618
- style: vt.SCRIPTSCRIPT
27618
+ style: Ft.SCRIPTSCRIPT
27619
27619
  }, {
27620
27620
  type: "small",
27621
- style: vt.SCRIPT
27621
+ style: Ft.SCRIPT
27622
27622
  }, {
27623
27623
  type: "small",
27624
- style: vt.TEXT
27624
+ style: Ft.TEXT
27625
27625
  }, {
27626
27626
  type: "large",
27627
27627
  size: 1
@@ -27636,24 +27636,24 @@ var p0 = function(t, n, r) {
27636
27636
  size: 4
27637
27637
  }], fue = [{
27638
27638
  type: "small",
27639
- style: vt.SCRIPTSCRIPT
27639
+ style: Ft.SCRIPTSCRIPT
27640
27640
  }, {
27641
27641
  type: "small",
27642
- style: vt.SCRIPT
27642
+ style: Ft.SCRIPT
27643
27643
  }, {
27644
27644
  type: "small",
27645
- style: vt.TEXT
27645
+ style: Ft.TEXT
27646
27646
  }, {
27647
27647
  type: "stack"
27648
27648
  }], MU = [{
27649
27649
  type: "small",
27650
- style: vt.SCRIPTSCRIPT
27650
+ style: Ft.SCRIPTSCRIPT
27651
27651
  }, {
27652
27652
  type: "small",
27653
- style: vt.SCRIPT
27653
+ style: Ft.SCRIPT
27654
27654
  }, {
27655
27655
  type: "small",
27656
- style: vt.TEXT
27656
+ style: Ft.TEXT
27657
27657
  }, {
27658
27658
  type: "large",
27659
27659
  size: 1
@@ -27807,7 +27807,7 @@ st({
27807
27807
  mathmlBuilder: (e) => {
27808
27808
  var t = [];
27809
27809
  e.delim !== "." && t.push(Xi(e.delim, e.mode));
27810
- var n = new Ge.MathNode("mo", t);
27810
+ var n = new Ve.MathNode("mo", t);
27811
27811
  e.mclass === "mopen" || e.mclass === "mclose" ? n.setAttribute("fence", "true") : n.setAttribute("fence", "false"), n.setAttribute("stretchy", "true");
27812
27812
  var r = Je(el.sizeToMaxHeight[e.size]);
27813
27813
  return n.setAttribute("minsize", r), n.setAttribute("maxsize", r), n;
@@ -27883,11 +27883,11 @@ st({
27883
27883
  iA(e);
27884
27884
  var n = ni(e.body, t);
27885
27885
  if (e.left !== ".") {
27886
- var r = new Ge.MathNode("mo", [Xi(e.left, e.mode)]);
27886
+ var r = new Ve.MathNode("mo", [Xi(e.left, e.mode)]);
27887
27887
  r.setAttribute("fence", "true"), n.unshift(r);
27888
27888
  }
27889
27889
  if (e.right !== ".") {
27890
- var o = new Ge.MathNode("mo", [Xi(e.right, e.mode)]);
27890
+ var o = new Ve.MathNode("mo", [Xi(e.right, e.mode)]);
27891
27891
  o.setAttribute("fence", "true"), e.rightColor && o.setAttribute("mathcolor", e.rightColor), n.push(o);
27892
27892
  }
27893
27893
  return T8(n);
@@ -27925,12 +27925,12 @@ st({
27925
27925
  return n;
27926
27926
  },
27927
27927
  mathmlBuilder: (e, t) => {
27928
- var n = e.delim === "\\vert" || e.delim === "|" ? Xi("|", "text") : Xi(e.delim, e.mode), r = new Ge.MathNode("mo", [n]);
27928
+ var n = e.delim === "\\vert" || e.delim === "|" ? Xi("|", "text") : Xi(e.delim, e.mode), r = new Ve.MathNode("mo", [n]);
27929
27929
  return r.setAttribute("fence", "true"), r.setAttribute("lspace", "0.05em"), r.setAttribute("rspace", "0.05em"), r;
27930
27930
  }
27931
27931
  });
27932
27932
  var O8 = (e, t) => {
27933
- var n = _e.wrapFragment(on(e.body, t), t), r = e.label.slice(1), o = t.sizeMultiplier, i, s = 0, a = un.isCharacterBox(e.body);
27933
+ var n = _e.wrapFragment(sn(e.body, t), t), r = e.label.slice(1), o = t.sizeMultiplier, i, s = 0, a = an.isCharacterBox(e.body);
27934
27934
  if (r === "sout")
27935
27935
  i = _e.makeSpan(["stretchy", "sout"]), i.height = t.fontMetrics().defaultRuleThickness / o, s = -0.5 * t.fontMetrics().xHeight;
27936
27936
  else if (r === "phase") {
@@ -28001,7 +28001,7 @@ var O8 = (e, t) => {
28001
28001
  }
28002
28002
  return /cancel/.test(r) && (y.height = n.height, y.depth = n.depth), /cancel/.test(r) && !a ? _e.makeSpan(["mord", "cancel-lap"], [y], t) : _e.makeSpan(["mord"], [y], t);
28003
28003
  }, R8 = (e, t) => {
28004
- var n = 0, r = new Ge.MathNode(e.label.indexOf("colorbox") > -1 ? "mpadded" : "menclose", [_n(e.body, t)]);
28004
+ var n = 0, r = new Ve.MathNode(e.label.indexOf("colorbox") > -1 ? "mpadded" : "menclose", [_n(e.body, t)]);
28005
28005
  switch (e.label) {
28006
28006
  case "\\cancel":
28007
28007
  r.setAttribute("notation", "updiagonalstrike");
@@ -28273,7 +28273,7 @@ var ya = function(t, n) {
28273
28273
  // User override.
28274
28274
  ), d = 1 / n.fontMetrics().ptPerEm, p = 5 * d;
28275
28275
  if (t.colSeparationType && t.colSeparationType === "small") {
28276
- var h = n.havingStyle(vt.SCRIPT).sizeMultiplier;
28276
+ var h = n.havingStyle(Ft.SCRIPT).sizeMultiplier;
28277
28277
  p = 0.2778 * (h / n.sizeMultiplier);
28278
28278
  }
28279
28279
  var f = t.colSeparationType === "CD" ? zn({
@@ -28292,7 +28292,7 @@ var ya = function(t, n) {
28292
28292
  a < k.length && (a = k.length);
28293
28293
  var C = new Array(k.length);
28294
28294
  for (o = 0; o < k.length; ++o) {
28295
- var A = on(k[o], n);
28295
+ var A = sn(k[o], n);
28296
28296
  D < A.depth && (D = A.depth), w < A.height && (w = A.height), C[o] = A;
28297
28297
  }
28298
28298
  var R = t.rowGaps[r], T = 0;
@@ -28327,7 +28327,7 @@ var ya = function(t, n) {
28327
28327
  }
28328
28328
  if (!(o >= a)) {
28329
28329
  var Q = void 0;
28330
- (o > 0 || t.hskipBeforeAndAfter) && (Q = un.deflt($.pregap, p), Q !== 0 && (M = _e.makeSpan(["arraycolsep"], []), M.style.width = Je(Q), E.push(M)));
28330
+ (o > 0 || t.hskipBeforeAndAfter) && (Q = an.deflt($.pregap, p), Q !== 0 && (M = _e.makeSpan(["arraycolsep"], []), M.style.width = Je(Q), E.push(M)));
28331
28331
  var Y = [];
28332
28332
  for (r = 0; r < i; ++r) {
28333
28333
  var oe = l[r], S = oe[o];
@@ -28343,7 +28343,7 @@ var ya = function(t, n) {
28343
28343
  Y = _e.makeVList({
28344
28344
  positionType: "individualShift",
28345
28345
  children: Y
28346
- }, n), Y = _e.makeSpan(["col-align-" + ($.align || "c")], [Y]), E.push(Y), (o < a - 1 || t.hskipBeforeAndAfter) && (Q = un.deflt($.postgap, p), Q !== 0 && (M = _e.makeSpan(["arraycolsep"], []), M.style.width = Je(Q), E.push(M)));
28346
+ }, n), Y = _e.makeSpan(["col-align-" + ($.align || "c")], [Y]), E.push(Y), (o < a - 1 || t.hskipBeforeAndAfter) && (Q = an.deflt($.postgap, p), Q !== 0 && (M = _e.makeSpan(["arraycolsep"], []), M.style.width = Je(Q), E.push(M)));
28347
28347
  }
28348
28348
  }
28349
28349
  if (l = _e.makeSpan(["mtable"], E), u.length > 0) {
@@ -28380,12 +28380,12 @@ var ya = function(t, n) {
28380
28380
  l: "left ",
28381
28381
  r: "right "
28382
28382
  }, xa = function(t, n) {
28383
- for (var r = [], o = new Ge.MathNode("mtd", [], ["mtr-glue"]), i = new Ge.MathNode("mtd", [], ["mml-eqn-num"]), s = 0; s < t.body.length; s++) {
28383
+ for (var r = [], o = new Ve.MathNode("mtd", [], ["mtr-glue"]), i = new Ve.MathNode("mtd", [], ["mml-eqn-num"]), s = 0; s < t.body.length; s++) {
28384
28384
  for (var a = t.body[s], l = [], u = 0; u < a.length; u++)
28385
- l.push(new Ge.MathNode("mtd", [_n(a[u], n)]));
28386
- t.tags && t.tags[s] && (l.unshift(o), l.push(o), t.leqno ? l.unshift(i) : l.push(i)), r.push(new Ge.MathNode("mtr", l));
28385
+ l.push(new Ve.MathNode("mtd", [_n(a[u], n)]));
28386
+ t.tags && t.tags[s] && (l.unshift(o), l.push(o), t.leqno ? l.unshift(i) : l.push(i)), r.push(new Ve.MathNode("mtr", l));
28387
28387
  }
28388
- var c = new Ge.MathNode("mtable", r), d = t.arraystretch === 0.5 ? 0.1 : 0.16 + t.arraystretch - 1 + (t.addJot ? 0.09 : 0);
28388
+ var c = new Ve.MathNode("mtable", r), d = t.arraystretch === 0.5 ? 0.1 : 0.16 + t.arraystretch - 1 + (t.addJot ? 0.09 : 0);
28389
28389
  c.setAttribute("rowspacing", Je(d));
28390
28390
  var p = "", h = "";
28391
28391
  if (t.cols && t.cols.length > 0) {
@@ -28404,7 +28404,7 @@ var ya = function(t, n) {
28404
28404
  p += C[0].length > 0 ? "left " : "", p += C[C.length - 1].length > 0 ? "right " : "";
28405
28405
  for (var A = 1; A < C.length - 1; A++)
28406
28406
  D += C[A].length === 0 ? "none " : C[A][0] ? "dashed " : "solid ";
28407
- return /[sd]/.test(D) && c.setAttribute("rowlines", D.trim()), p !== "" && (c = new Ge.MathNode("menclose", [c]), c.setAttribute("notation", p.trim())), t.arraystretch && t.arraystretch < 1 && (c = new Ge.MathNode("mstyle", [c]), c.setAttribute("scriptlevel", "1")), c;
28407
+ return /[sd]/.test(D) && c.setAttribute("rowlines", D.trim()), p !== "" && (c = new Ve.MathNode("menclose", [c]), c.setAttribute("notation", p.trim())), t.arraystretch && t.arraystretch < 1 && (c = new Ve.MathNode("mstyle", [c]), c.setAttribute("scriptlevel", "1")), c;
28408
28408
  }, UU = function(t, n) {
28409
28409
  t.envName.indexOf("ed") === -1 && Yy(t);
28410
28410
  var r = [], o = t.envName.indexOf("at") > -1 ? "alignat" : "align", i = t.envName === "split", s = zu(t.parser, {
@@ -28755,7 +28755,7 @@ st({
28755
28755
  });
28756
28756
  var PU = (e, t) => {
28757
28757
  var n = e.font, r = t.withFont(n);
28758
- return on(e.body, r);
28758
+ return sn(e.body, r);
28759
28759
  }, zU = (e, t) => {
28760
28760
  var n = e.font, r = t.withFont(n);
28761
28761
  return _n(e.body, r);
@@ -28814,7 +28814,7 @@ st({
28814
28814
  handler: (e, t) => {
28815
28815
  var {
28816
28816
  parser: n
28817
- } = e, r = t[0], o = un.isCharacterBox(r);
28817
+ } = e, r = t[0], o = an.isCharacterBox(r);
28818
28818
  return {
28819
28819
  type: "mclass",
28820
28820
  mode: n.mode,
@@ -28860,20 +28860,20 @@ st({
28860
28860
  });
28861
28861
  var $U = (e, t) => {
28862
28862
  var n = t;
28863
- return e === "display" ? n = n.id >= vt.SCRIPT.id ? n.text() : vt.DISPLAY : e === "text" && n.size === vt.DISPLAY.size ? n = vt.TEXT : e === "script" ? n = vt.SCRIPT : e === "scriptscript" && (n = vt.SCRIPTSCRIPT), n;
28863
+ return e === "display" ? n = n.id >= Ft.SCRIPT.id ? n.text() : Ft.DISPLAY : e === "text" && n.size === Ft.DISPLAY.size ? n = Ft.TEXT : e === "script" ? n = Ft.SCRIPT : e === "scriptscript" && (n = Ft.SCRIPTSCRIPT), n;
28864
28864
  }, U8 = (e, t) => {
28865
28865
  var n = $U(e.size, t.style), r = n.fracNum(), o = n.fracDen(), i;
28866
28866
  i = t.havingStyle(r);
28867
- var s = on(e.numer, i, t);
28867
+ var s = sn(e.numer, i, t);
28868
28868
  if (e.continued) {
28869
28869
  var a = 8.5 / t.fontMetrics().ptPerEm, l = 3.5 / t.fontMetrics().ptPerEm;
28870
28870
  s.height = s.height < a ? a : s.height, s.depth = s.depth < l ? l : s.depth;
28871
28871
  }
28872
28872
  i = t.havingStyle(o);
28873
- var u = on(e.denom, i, t), c, d, p;
28873
+ var u = sn(e.denom, i, t), c, d, p;
28874
28874
  e.hasBarLine ? (e.barSize ? (d = zn(e.barSize, t), c = _e.makeLineSpan("frac-line", t, d)) : c = _e.makeLineSpan("frac-line", t), d = c.height, p = c.height) : (c = null, d = 0, p = t.fontMetrics().defaultRuleThickness);
28875
28875
  var h, f, g;
28876
- n.size === vt.DISPLAY.size || e.size === "display" ? (h = t.fontMetrics().num1, d > 0 ? f = 3 * p : f = 7 * p, g = t.fontMetrics().denom1) : (d > 0 ? (h = t.fontMetrics().num2, f = p) : (h = t.fontMetrics().num3, f = 3 * p), g = t.fontMetrics().denom2);
28876
+ n.size === Ft.DISPLAY.size || e.size === "display" ? (h = t.fontMetrics().num1, d > 0 ? f = 3 * p : f = 7 * p, g = t.fontMetrics().denom1) : (d > 0 ? (h = t.fontMetrics().num2, f = p) : (h = t.fontMetrics().num3, f = 3 * p), g = t.fontMetrics().denom2);
28877
28877
  var m;
28878
28878
  if (c) {
28879
28879
  var y = t.fontMetrics().axisHeight;
@@ -28912,11 +28912,11 @@ var $U = (e, t) => {
28912
28912
  }
28913
28913
  i = t.havingStyle(n), m.height *= i.sizeMultiplier / t.sizeMultiplier, m.depth *= i.sizeMultiplier / t.sizeMultiplier;
28914
28914
  var v;
28915
- n.size === vt.DISPLAY.size ? v = t.fontMetrics().delim1 : n.size === vt.SCRIPTSCRIPT.size ? v = t.havingStyle(vt.SCRIPT).fontMetrics().delim2 : v = t.fontMetrics().delim2;
28915
+ n.size === Ft.DISPLAY.size ? v = t.fontMetrics().delim1 : n.size === Ft.SCRIPTSCRIPT.size ? v = t.havingStyle(Ft.SCRIPT).fontMetrics().delim2 : v = t.fontMetrics().delim2;
28916
28916
  var k, w;
28917
28917
  return e.leftDelim == null ? k = kf(t, ["mopen"]) : k = el.customSizedDelim(e.leftDelim, v, !0, t.havingStyle(n), e.mode, ["mopen"]), e.continued ? w = _e.makeSpan([]) : e.rightDelim == null ? w = kf(t, ["mclose"]) : w = el.customSizedDelim(e.rightDelim, v, !0, t.havingStyle(n), e.mode, ["mclose"]), _e.makeSpan(["mord"].concat(i.sizingClasses(t)), [k, _e.makeSpan(["mfrac"], [m]), w], t);
28918
28918
  }, P8 = (e, t) => {
28919
- var n = new Ge.MathNode("mfrac", [_n(e.numer, t), _n(e.denom, t)]);
28919
+ var n = new Ve.MathNode("mfrac", [_n(e.numer, t), _n(e.denom, t)]);
28920
28920
  if (!e.hasBarLine)
28921
28921
  n.setAttribute("linethickness", "0px");
28922
28922
  else if (e.barSize) {
@@ -28925,18 +28925,18 @@ var $U = (e, t) => {
28925
28925
  }
28926
28926
  var o = $U(e.size, t.style);
28927
28927
  if (o.size !== t.style.size) {
28928
- n = new Ge.MathNode("mstyle", [n]);
28929
- var i = o.size === vt.DISPLAY.size ? "true" : "false";
28928
+ n = new Ve.MathNode("mstyle", [n]);
28929
+ var i = o.size === Ft.DISPLAY.size ? "true" : "false";
28930
28930
  n.setAttribute("displaystyle", i), n.setAttribute("scriptlevel", "0");
28931
28931
  }
28932
28932
  if (e.leftDelim != null || e.rightDelim != null) {
28933
28933
  var s = [];
28934
28934
  if (e.leftDelim != null) {
28935
- var a = new Ge.MathNode("mo", [new Ge.TextNode(e.leftDelim.replace("\\", ""))]);
28935
+ var a = new Ve.MathNode("mo", [new Ve.TextNode(e.leftDelim.replace("\\", ""))]);
28936
28936
  a.setAttribute("fence", "true"), s.push(a);
28937
28937
  }
28938
28938
  if (s.push(n), e.rightDelim != null) {
28939
- var l = new Ge.MathNode("mo", [new Ge.TextNode(e.rightDelim.replace("\\", ""))]);
28939
+ var l = new Ve.MathNode("mo", [new Ve.TextNode(e.rightDelim.replace("\\", ""))]);
28940
28940
  l.setAttribute("fence", "true"), s.push(l);
28941
28941
  }
28942
28942
  return T8(s);
@@ -29175,8 +29175,8 @@ st({
29175
29175
  });
29176
29176
  var HU = (e, t) => {
29177
29177
  var n = t.style, r, o;
29178
- e.type === "supsub" ? (r = e.sup ? on(e.sup, t.havingStyle(n.sup()), t) : on(e.sub, t.havingStyle(n.sub()), t), o = Ut(e.base, "horizBrace")) : o = Ut(e, "horizBrace");
29179
- var i = on(o.base, t.havingBaseStyle(vt.DISPLAY)), s = al.svgSpan(o, t), a;
29178
+ e.type === "supsub" ? (r = e.sup ? sn(e.sup, t.havingStyle(n.sup()), t) : sn(e.sub, t.havingStyle(n.sub()), t), o = Ut(e.base, "horizBrace")) : o = Ut(e, "horizBrace");
29179
+ var i = sn(o.base, t.havingBaseStyle(Ft.DISPLAY)), s = al.svgSpan(o, t), a;
29180
29180
  if (o.isOver ? (a = _e.makeVList({
29181
29181
  positionType: "firstBaseline",
29182
29182
  children: [{
@@ -29234,7 +29234,7 @@ var HU = (e, t) => {
29234
29234
  return _e.makeSpan(["mord", o.isOver ? "mover" : "munder"], [a], t);
29235
29235
  }, xue = (e, t) => {
29236
29236
  var n = al.mathMLnode(e.label);
29237
- return new Ge.MathNode(e.isOver ? "mover" : "munder", [_n(e.base, t), n]);
29237
+ return new Ve.MathNode(e.isOver ? "mover" : "munder", [_n(e.base, t), n]);
29238
29238
  };
29239
29239
  st({
29240
29240
  type: "horizBrace",
@@ -29352,7 +29352,7 @@ st({
29352
29352
  return _e.makeFragment(n);
29353
29353
  },
29354
29354
  mathmlBuilder(e, t) {
29355
- return new Ge.MathNode("mrow", ni(e.body, t));
29355
+ return new Ve.MathNode("mrow", ni(e.body, t));
29356
29356
  }
29357
29357
  });
29358
29358
  st({
@@ -29537,7 +29537,7 @@ st({
29537
29537
  return s.height = n, s.depth = r, s;
29538
29538
  },
29539
29539
  mathmlBuilder: (e, t) => {
29540
- var n = new Ge.MathNode("mglyph", []);
29540
+ var n = new Ve.MathNode("mglyph", []);
29541
29541
  n.setAttribute("alt", e.alt);
29542
29542
  var r = zn(e.height, t), o = 0;
29543
29543
  if (e.totalheight.number > 0 && (o = zn(e.totalheight, t) - r, n.setAttribute("valign", Je(-o))), n.setAttribute("height", Je(r + o)), e.width.number > 0) {
@@ -29576,7 +29576,7 @@ st({
29576
29576
  },
29577
29577
  mathmlBuilder(e, t) {
29578
29578
  var n = zn(e.dimension, t);
29579
- return new Ge.SpaceNode(n);
29579
+ return new Ve.SpaceNode(n);
29580
29580
  }
29581
29581
  });
29582
29582
  st({
@@ -29600,12 +29600,12 @@ st({
29600
29600
  },
29601
29601
  htmlBuilder: (e, t) => {
29602
29602
  var n;
29603
- e.alignment === "clap" ? (n = _e.makeSpan([], [on(e.body, t)]), n = _e.makeSpan(["inner"], [n], t)) : n = _e.makeSpan(["inner"], [on(e.body, t)]);
29603
+ e.alignment === "clap" ? (n = _e.makeSpan([], [sn(e.body, t)]), n = _e.makeSpan(["inner"], [n], t)) : n = _e.makeSpan(["inner"], [sn(e.body, t)]);
29604
29604
  var r = _e.makeSpan(["fix"], []), o = _e.makeSpan([e.alignment], [n, r], t), i = _e.makeSpan(["strut"]);
29605
29605
  return i.style.height = Je(o.height + o.depth), o.depth && (i.style.verticalAlign = Je(-o.depth)), o.children.unshift(i), o = _e.makeSpan(["thinbox"], [o], t), _e.makeSpan(["mord", "vbox"], [o], t);
29606
29606
  },
29607
29607
  mathmlBuilder: (e, t) => {
29608
- var n = new Ge.MathNode("mpadded", [_n(e.body, t)]);
29608
+ var n = new Ve.MathNode("mpadded", [_n(e.body, t)]);
29609
29609
  if (e.alignment !== "rlap") {
29610
29610
  var r = e.alignment === "llap" ? "-1" : "-0.5";
29611
29611
  n.setAttribute("lspace", r + "width");
@@ -29651,13 +29651,13 @@ st({
29651
29651
  });
29652
29652
  var dA = (e, t) => {
29653
29653
  switch (t.style.size) {
29654
- case vt.DISPLAY.size:
29654
+ case Ft.DISPLAY.size:
29655
29655
  return e.display;
29656
- case vt.TEXT.size:
29656
+ case Ft.TEXT.size:
29657
29657
  return e.text;
29658
- case vt.SCRIPT.size:
29658
+ case Ft.SCRIPT.size:
29659
29659
  return e.script;
29660
- case vt.SCRIPTSCRIPT.size:
29660
+ case Ft.SCRIPTSCRIPT.size:
29661
29661
  return e.scriptscript;
29662
29662
  default:
29663
29663
  return e.text;
@@ -29694,16 +29694,16 @@ st({
29694
29694
  });
29695
29695
  var WU = (e, t, n, r, o, i, s) => {
29696
29696
  e = _e.makeSpan([], [e]);
29697
- var a = n && un.isCharacterBox(n), l, u;
29697
+ var a = n && an.isCharacterBox(n), l, u;
29698
29698
  if (t) {
29699
- var c = on(t, r.havingStyle(o.sup()), r);
29699
+ var c = sn(t, r.havingStyle(o.sup()), r);
29700
29700
  u = {
29701
29701
  elem: c,
29702
29702
  kern: Math.max(r.fontMetrics().bigOpSpacing1, r.fontMetrics().bigOpSpacing3 - c.depth)
29703
29703
  };
29704
29704
  }
29705
29705
  if (n) {
29706
- var d = on(n, r.havingStyle(o.sub()), r);
29706
+ var d = sn(n, r.havingStyle(o.sub()), r);
29707
29707
  l = {
29708
29708
  elem: d,
29709
29709
  kern: Math.max(r.fontMetrics().bigOpSpacing2, r.fontMetrics().bigOpSpacing4 - d.height)
@@ -29792,7 +29792,7 @@ var WU = (e, t, n, r, o, i, s) => {
29792
29792
  var n, r, o = !1, i;
29793
29793
  e.type === "supsub" ? (n = e.sup, r = e.sub, i = Ut(e.base, "op"), o = !0) : i = Ut(e, "op");
29794
29794
  var s = t.style, a = !1;
29795
- s.size === vt.DISPLAY.size && i.symbol && !qU.includes(i.name) && (a = !0);
29795
+ s.size === Ft.DISPLAY.size && i.symbol && !qU.includes(i.name) && (a = !0);
29796
29796
  var l;
29797
29797
  if (i.symbol) {
29798
29798
  var u = a ? "Size2-Regular" : "Size1-Regular", c = "";
@@ -29993,7 +29993,7 @@ var VU = (e, t) => {
29993
29993
  }, wue = (e, t) => {
29994
29994
  for (var n = ni(e.body, t.withFont("mathrm")), r = !0, o = 0; o < n.length; o++) {
29995
29995
  var i = n[o];
29996
- if (!(i instanceof Ge.SpaceNode)) if (i instanceof Ge.MathNode)
29996
+ if (!(i instanceof Ve.SpaceNode)) if (i instanceof Ve.MathNode)
29997
29997
  switch (i.type) {
29998
29998
  case "mi":
29999
29999
  case "mn":
@@ -30003,7 +30003,7 @@ var VU = (e, t) => {
30003
30003
  break;
30004
30004
  case "mo": {
30005
30005
  var s = i.children[0];
30006
- i.children.length === 1 && s instanceof Ge.TextNode ? s.text = s.text.replace(/\u2212/, "-").replace(/\u2217/, "*") : r = !1;
30006
+ i.children.length === 1 && s instanceof Ve.TextNode ? s.text = s.text.replace(/\u2212/, "-").replace(/\u2217/, "*") : r = !1;
30007
30007
  break;
30008
30008
  }
30009
30009
  default:
@@ -30014,12 +30014,12 @@ var VU = (e, t) => {
30014
30014
  }
30015
30015
  if (r) {
30016
30016
  var a = n.map((c) => c.toText()).join("");
30017
- n = [new Ge.TextNode(a)];
30017
+ n = [new Ve.TextNode(a)];
30018
30018
  }
30019
- var l = new Ge.MathNode("mi", n);
30019
+ var l = new Ve.MathNode("mi", n);
30020
30020
  l.setAttribute("mathvariant", "normal");
30021
- var u = new Ge.MathNode("mo", [Xi("⁡", "text")]);
30022
- return e.parentIsSupSub ? new Ge.MathNode("mrow", [l, u]) : Ge.newDocumentFragment([l, u]);
30021
+ var u = new Ve.MathNode("mo", [Xi("⁡", "text")]);
30022
+ return e.parentIsSupSub ? new Ve.MathNode("mrow", [l, u]) : Ve.newDocumentFragment([l, u]);
30023
30023
  };
30024
30024
  st({
30025
30025
  type: "operatorname",
@@ -30071,7 +30071,7 @@ st({
30071
30071
  };
30072
30072
  },
30073
30073
  htmlBuilder(e, t) {
30074
- var n = on(e.body, t.havingCrampedStyle()), r = _e.makeLineSpan("overline-line", t), o = t.fontMetrics().defaultRuleThickness, i = _e.makeVList({
30074
+ var n = sn(e.body, t.havingCrampedStyle()), r = _e.makeLineSpan("overline-line", t), o = t.fontMetrics().defaultRuleThickness, i = _e.makeVList({
30075
30075
  positionType: "firstBaseline",
30076
30076
  children: [{
30077
30077
  type: "elem",
@@ -30090,9 +30090,9 @@ st({
30090
30090
  return _e.makeSpan(["mord", "overline"], [i], t);
30091
30091
  },
30092
30092
  mathmlBuilder(e, t) {
30093
- var n = new Ge.MathNode("mo", [new Ge.TextNode("‾")]);
30093
+ var n = new Ve.MathNode("mo", [new Ve.TextNode("‾")]);
30094
30094
  n.setAttribute("stretchy", "true");
30095
- var r = new Ge.MathNode("mover", [_n(e.body, t), n]);
30095
+ var r = new Ve.MathNode("mover", [_n(e.body, t), n]);
30096
30096
  return r.setAttribute("accent", "true"), r;
30097
30097
  }
30098
30098
  });
@@ -30119,7 +30119,7 @@ st({
30119
30119
  },
30120
30120
  mathmlBuilder: (e, t) => {
30121
30121
  var n = ni(e.body, t);
30122
- return new Ge.MathNode("mphantom", n);
30122
+ return new Ve.MathNode("mphantom", n);
30123
30123
  }
30124
30124
  });
30125
30125
  st({
@@ -30140,7 +30140,7 @@ st({
30140
30140
  };
30141
30141
  },
30142
30142
  htmlBuilder: (e, t) => {
30143
- var n = _e.makeSpan([], [on(e.body, t.withPhantom())]);
30143
+ var n = _e.makeSpan([], [sn(e.body, t.withPhantom())]);
30144
30144
  if (n.height = 0, n.depth = 0, n.children)
30145
30145
  for (var r = 0; r < n.children.length; r++)
30146
30146
  n.children[r].height = 0, n.children[r].depth = 0;
@@ -30153,7 +30153,7 @@ st({
30153
30153
  }, t), _e.makeSpan(["mord"], [n], t);
30154
30154
  },
30155
30155
  mathmlBuilder: (e, t) => {
30156
- var n = ni(Zn(e.body), t), r = new Ge.MathNode("mphantom", n), o = new Ge.MathNode("mpadded", [r]);
30156
+ var n = ni(Zn(e.body), t), r = new Ve.MathNode("mphantom", n), o = new Ve.MathNode("mpadded", [r]);
30157
30157
  return o.setAttribute("height", "0px"), o.setAttribute("depth", "0px"), o;
30158
30158
  }
30159
30159
  });
@@ -30175,11 +30175,11 @@ st({
30175
30175
  };
30176
30176
  },
30177
30177
  htmlBuilder: (e, t) => {
30178
- var n = _e.makeSpan(["inner"], [on(e.body, t.withPhantom())]), r = _e.makeSpan(["fix"], []);
30178
+ var n = _e.makeSpan(["inner"], [sn(e.body, t.withPhantom())]), r = _e.makeSpan(["fix"], []);
30179
30179
  return _e.makeSpan(["mord", "rlap"], [n, r], t);
30180
30180
  },
30181
30181
  mathmlBuilder: (e, t) => {
30182
- var n = ni(Zn(e.body), t), r = new Ge.MathNode("mphantom", n), o = new Ge.MathNode("mpadded", [r]);
30182
+ var n = ni(Zn(e.body), t), r = new Ve.MathNode("mphantom", n), o = new Ve.MathNode("mpadded", [r]);
30183
30183
  return o.setAttribute("width", "0px"), o;
30184
30184
  }
30185
30185
  });
@@ -30203,7 +30203,7 @@ st({
30203
30203
  };
30204
30204
  },
30205
30205
  htmlBuilder(e, t) {
30206
- var n = on(e.body, t), r = zn(e.dy, t);
30206
+ var n = sn(e.body, t), r = zn(e.dy, t);
30207
30207
  return _e.makeVList({
30208
30208
  positionType: "shift",
30209
30209
  positionData: -r,
@@ -30214,7 +30214,7 @@ st({
30214
30214
  }, t);
30215
30215
  },
30216
30216
  mathmlBuilder(e, t) {
30217
- var n = new Ge.MathNode("mpadded", [_n(e.body, t)]), r = e.dy.number + e.dy.unit;
30217
+ var n = new Ve.MathNode("mpadded", [_n(e.body, t)]), r = e.dy.number + e.dy.unit;
30218
30218
  return n.setAttribute("voffset", r), n;
30219
30219
  }
30220
30220
  });
@@ -30263,9 +30263,9 @@ st({
30263
30263
  return n.style.borderRightWidth = Je(r), n.style.borderTopWidth = Je(o), n.style.bottom = Je(i), n.width = r, n.height = o + i, n.depth = -i, n.maxFontSize = o * 1.125 * t.sizeMultiplier, n;
30264
30264
  },
30265
30265
  mathmlBuilder(e, t) {
30266
- var n = zn(e.width, t), r = zn(e.height, t), o = e.shift ? zn(e.shift, t) : 0, i = t.color && t.getColor() || "black", s = new Ge.MathNode("mspace");
30266
+ var n = zn(e.width, t), r = zn(e.height, t), o = e.shift ? zn(e.shift, t) : 0, i = t.color && t.getColor() || "black", s = new Ve.MathNode("mspace");
30267
30267
  s.setAttribute("mathbackground", i), s.setAttribute("width", Je(n)), s.setAttribute("height", Je(r));
30268
- var a = new Ge.MathNode("mpadded", [s]);
30268
+ var a = new Ve.MathNode("mpadded", [s]);
30269
30269
  return o >= 0 ? a.setAttribute("height", Je(o)) : (a.setAttribute("height", Je(o)), a.setAttribute("depth", Je(-o))), a.setAttribute("voffset", Je(o)), a;
30270
30270
  }
30271
30271
  });
@@ -30303,7 +30303,7 @@ st({
30303
30303
  },
30304
30304
  htmlBuilder: Due,
30305
30305
  mathmlBuilder: (e, t) => {
30306
- var n = t.havingSize(e.size), r = ni(e.body, n), o = new Ge.MathNode("mstyle", r);
30306
+ var n = t.havingSize(e.size), r = ni(e.body, n), o = new Ve.MathNode("mstyle", r);
30307
30307
  return o.setAttribute("mathsize", Je(n.sizeMultiplier)), o;
30308
30308
  }
30309
30309
  });
@@ -30343,7 +30343,7 @@ st({
30343
30343
  };
30344
30344
  },
30345
30345
  htmlBuilder: (e, t) => {
30346
- var n = _e.makeSpan([], [on(e.body, t)]);
30346
+ var n = _e.makeSpan([], [sn(e.body, t)]);
30347
30347
  if (!e.smashHeight && !e.smashDepth)
30348
30348
  return n;
30349
30349
  if (e.smashHeight && (n.height = 0, n.children))
@@ -30362,7 +30362,7 @@ st({
30362
30362
  return _e.makeSpan(["mord"], [i], t);
30363
30363
  },
30364
30364
  mathmlBuilder: (e, t) => {
30365
- var n = new Ge.MathNode("mpadded", [_n(e.body, t)]);
30365
+ var n = new Ve.MathNode("mpadded", [_n(e.body, t)]);
30366
30366
  return e.smashHeight && n.setAttribute("height", "0px"), e.smashDepth && n.setAttribute("depth", "0px"), n;
30367
30367
  }
30368
30368
  });
@@ -30385,10 +30385,10 @@ st({
30385
30385
  };
30386
30386
  },
30387
30387
  htmlBuilder(e, t) {
30388
- var n = on(e.body, t.havingCrampedStyle());
30388
+ var n = sn(e.body, t.havingCrampedStyle());
30389
30389
  n.height === 0 && (n.height = t.fontMetrics().xHeight), n = _e.wrapFragment(n, t);
30390
30390
  var r = t.fontMetrics(), o = r.defaultRuleThickness, i = o;
30391
- t.style.id < vt.TEXT.id && (i = t.fontMetrics().xHeight);
30391
+ t.style.id < Ft.TEXT.id && (i = t.fontMetrics().xHeight);
30392
30392
  var s = o + i / 4, a = n.height + n.depth + s + o, {
30393
30393
  span: l,
30394
30394
  ruleWidth: u,
@@ -30415,7 +30415,7 @@ st({
30415
30415
  }]
30416
30416
  }, t);
30417
30417
  if (e.index) {
30418
- var f = t.havingStyle(vt.SCRIPTSCRIPT), g = on(e.index, f, t), m = 0.6 * (h.height - h.depth), b = _e.makeVList({
30418
+ var f = t.havingStyle(Ft.SCRIPTSCRIPT), g = sn(e.index, f, t), m = 0.6 * (h.height - h.depth), b = _e.makeVList({
30419
30419
  positionType: "shift",
30420
30420
  positionData: -m,
30421
30421
  children: [{
@@ -30432,14 +30432,14 @@ st({
30432
30432
  body: n,
30433
30433
  index: r
30434
30434
  } = e;
30435
- return r ? new Ge.MathNode("mroot", [_n(n, t), _n(r, t)]) : new Ge.MathNode("msqrt", [_n(n, t)]);
30435
+ return r ? new Ve.MathNode("mroot", [_n(n, t), _n(r, t)]) : new Ve.MathNode("msqrt", [_n(n, t)]);
30436
30436
  }
30437
30437
  });
30438
30438
  var hA = {
30439
- display: vt.DISPLAY,
30440
- text: vt.TEXT,
30441
- script: vt.SCRIPT,
30442
- scriptscript: vt.SCRIPTSCRIPT
30439
+ display: Ft.DISPLAY,
30440
+ text: Ft.TEXT,
30441
+ script: Ft.SCRIPT,
30442
+ scriptscript: Ft.SCRIPTSCRIPT
30443
30443
  };
30444
30444
  st({
30445
30445
  type: "styling",
@@ -30469,7 +30469,7 @@ st({
30469
30469
  return GU(e.body, r, t);
30470
30470
  },
30471
30471
  mathmlBuilder(e, t) {
30472
- var n = hA[e.style], r = t.havingStyle(n), o = ni(e.body, r), i = new Ge.MathNode("mstyle", o), s = {
30472
+ var n = hA[e.style], r = t.havingStyle(n), o = ni(e.body, r), i = new Ve.MathNode("mstyle", o), s = {
30473
30473
  display: ["0", "true"],
30474
30474
  text: ["0", "false"],
30475
30475
  script: ["1", "false"],
@@ -30482,14 +30482,14 @@ var kue = function(t, n) {
30482
30482
  var r = t.base;
30483
30483
  if (r)
30484
30484
  if (r.type === "op") {
30485
- var o = r.limits && (n.style.size === vt.DISPLAY.size || r.alwaysHandleSupSub);
30485
+ var o = r.limits && (n.style.size === Ft.DISPLAY.size || r.alwaysHandleSupSub);
30486
30486
  return o ? ch : null;
30487
30487
  } else if (r.type === "operatorname") {
30488
- var i = r.alwaysHandleSupSub && (n.style.size === vt.DISPLAY.size || r.limits);
30488
+ var i = r.alwaysHandleSupSub && (n.style.size === Ft.DISPLAY.size || r.limits);
30489
30489
  return i ? VU : null;
30490
30490
  } else {
30491
30491
  if (r.type === "accent")
30492
- return un.isCharacterBox(r.base) ? N8 : null;
30492
+ return an.isCharacterBox(r.base) ? N8 : null;
30493
30493
  if (r.type === "horizBrace") {
30494
30494
  var s = !t.sub;
30495
30495
  return s === r.isOver ? HU : null;
@@ -30508,17 +30508,17 @@ pd({
30508
30508
  base: r,
30509
30509
  sup: o,
30510
30510
  sub: i
30511
- } = e, s = on(r, t), a, l, u = t.fontMetrics(), c = 0, d = 0, p = r && un.isCharacterBox(r);
30511
+ } = e, s = sn(r, t), a, l, u = t.fontMetrics(), c = 0, d = 0, p = r && an.isCharacterBox(r);
30512
30512
  if (o) {
30513
30513
  var h = t.havingStyle(t.style.sup());
30514
- a = on(o, h, t), p || (c = s.height - h.fontMetrics().supDrop * h.sizeMultiplier / t.sizeMultiplier);
30514
+ a = sn(o, h, t), p || (c = s.height - h.fontMetrics().supDrop * h.sizeMultiplier / t.sizeMultiplier);
30515
30515
  }
30516
30516
  if (i) {
30517
30517
  var f = t.havingStyle(t.style.sub());
30518
- l = on(i, f, t), p || (d = s.depth + f.fontMetrics().subDrop * f.sizeMultiplier / t.sizeMultiplier);
30518
+ l = sn(i, f, t), p || (d = s.depth + f.fontMetrics().subDrop * f.sizeMultiplier / t.sizeMultiplier);
30519
30519
  }
30520
30520
  var g;
30521
- t.style === vt.DISPLAY ? g = u.sup1 : t.style.cramped ? g = u.sup3 : g = u.sup2;
30521
+ t.style === Ft.DISPLAY ? g = u.sup1 : t.style.cramped ? g = u.sup3 : g = u.sup2;
30522
30522
  var m = t.sizeMultiplier, b = Je(0.5 / u.ptPerEm / m), y = null;
30523
30523
  if (l) {
30524
30524
  var x = e.base && e.base.type === "op" && e.base.name && (e.base.name === "\\oiint" || e.base.name === "\\oiiint");
@@ -30588,16 +30588,16 @@ pd({
30588
30588
  else if (e.sub)
30589
30589
  if (e.sup) {
30590
30590
  var u = e.base;
30591
- u && u.type === "op" && u.limits && t.style === vt.DISPLAY || u && u.type === "operatorname" && u.alwaysHandleSupSub && (t.style === vt.DISPLAY || u.limits) ? s = "munderover" : s = "msubsup";
30591
+ u && u.type === "op" && u.limits && t.style === Ft.DISPLAY || u && u.type === "operatorname" && u.alwaysHandleSupSub && (t.style === Ft.DISPLAY || u.limits) ? s = "munderover" : s = "msubsup";
30592
30592
  } else {
30593
30593
  var l = e.base;
30594
- l && l.type === "op" && l.limits && (t.style === vt.DISPLAY || l.alwaysHandleSupSub) || l && l.type === "operatorname" && l.alwaysHandleSupSub && (l.limits || t.style === vt.DISPLAY) ? s = "munder" : s = "msub";
30594
+ l && l.type === "op" && l.limits && (t.style === Ft.DISPLAY || l.alwaysHandleSupSub) || l && l.type === "operatorname" && l.alwaysHandleSupSub && (l.limits || t.style === Ft.DISPLAY) ? s = "munder" : s = "msub";
30595
30595
  }
30596
30596
  else {
30597
30597
  var a = e.base;
30598
- a && a.type === "op" && a.limits && (t.style === vt.DISPLAY || a.alwaysHandleSupSub) || a && a.type === "operatorname" && a.alwaysHandleSupSub && (a.limits || t.style === vt.DISPLAY) ? s = "mover" : s = "msup";
30598
+ a && a.type === "op" && a.limits && (t.style === Ft.DISPLAY || a.alwaysHandleSupSub) || a && a.type === "operatorname" && a.alwaysHandleSupSub && (a.limits || t.style === Ft.DISPLAY) ? s = "mover" : s = "msup";
30599
30599
  }
30600
- return new Ge.MathNode(s, i);
30600
+ return new Ve.MathNode(s, i);
30601
30601
  }
30602
30602
  });
30603
30603
  pd({
@@ -30606,7 +30606,7 @@ pd({
30606
30606
  return _e.mathsym(e.text, e.mode, t, ["m" + e.family]);
30607
30607
  },
30608
30608
  mathmlBuilder(e, t) {
30609
- var n = new Ge.MathNode("mo", [Xi(e.text, e.mode)]);
30609
+ var n = new Ve.MathNode("mo", [Xi(e.text, e.mode)]);
30610
30610
  if (e.family === "bin") {
30611
30611
  var r = j8(e, t);
30612
30612
  r === "bold-italic" && n.setAttribute("mathvariant", r);
@@ -30625,7 +30625,7 @@ pd({
30625
30625
  return _e.makeOrd(e, t, "mathord");
30626
30626
  },
30627
30627
  mathmlBuilder(e, t) {
30628
- var n = new Ge.MathNode("mi", [Xi(e.text, e.mode, t)]), r = j8(e, t) || "italic";
30628
+ var n = new Ve.MathNode("mi", [Xi(e.text, e.mode, t)]), r = j8(e, t) || "italic";
30629
30629
  return r !== KU[n.type] && n.setAttribute("mathvariant", r), n;
30630
30630
  }
30631
30631
  });
@@ -30636,7 +30636,7 @@ pd({
30636
30636
  },
30637
30637
  mathmlBuilder(e, t) {
30638
30638
  var n = Xi(e.text, e.mode, t), r = j8(e, t) || "normal", o;
30639
- return e.mode === "text" ? o = new Ge.MathNode("mtext", [n]) : /[0-9]/.test(e.text) ? o = new Ge.MathNode("mn", [n]) : e.text === "\\prime" ? o = new Ge.MathNode("mo", [n]) : o = new Ge.MathNode("mi", [n]), r !== KU[o.type] && o.setAttribute("mathvariant", r), o;
30639
+ return e.mode === "text" ? o = new Ve.MathNode("mtext", [n]) : /[0-9]/.test(e.text) ? o = new Ve.MathNode("mn", [n]) : e.text === "\\prime" ? o = new Ve.MathNode("mo", [n]) : o = new Ve.MathNode("mi", [n]), r !== KU[o.type] && o.setAttribute("mathvariant", r), o;
30640
30640
  }
30641
30641
  });
30642
30642
  var Fv = {
@@ -30672,23 +30672,23 @@ pd({
30672
30672
  mathmlBuilder(e, t) {
30673
30673
  var n;
30674
30674
  if (wv.hasOwnProperty(e.text))
30675
- n = new Ge.MathNode("mtext", [new Ge.TextNode(" ")]);
30675
+ n = new Ve.MathNode("mtext", [new Ve.TextNode(" ")]);
30676
30676
  else {
30677
30677
  if (Fv.hasOwnProperty(e.text))
30678
- return new Ge.MathNode("mspace");
30678
+ return new Ve.MathNode("mspace");
30679
30679
  throw new Xe('Unknown type of space "' + e.text + '"');
30680
30680
  }
30681
30681
  return n;
30682
30682
  }
30683
30683
  });
30684
30684
  var fA = () => {
30685
- var e = new Ge.MathNode("mtd", []);
30685
+ var e = new Ve.MathNode("mtd", []);
30686
30686
  return e.setAttribute("width", "50%"), e;
30687
30687
  };
30688
30688
  pd({
30689
30689
  type: "tag",
30690
30690
  mathmlBuilder(e, t) {
30691
- var n = new Ge.MathNode("mtable", [new Ge.MathNode("mtr", [fA(), new Ge.MathNode("mtd", [_u(e.body, t)]), fA(), new Ge.MathNode("mtd", [_u(e.tag, t)])])]);
30691
+ var n = new Ve.MathNode("mtable", [new Ve.MathNode("mtr", [fA(), new Ve.MathNode("mtd", [_u(e.body, t)]), fA(), new Ve.MathNode("mtd", [_u(e.tag, t)])])]);
30692
30692
  return n.setAttribute("width", "100%"), n;
30693
30693
  }
30694
30694
  });
@@ -30778,7 +30778,7 @@ st({
30778
30778
  };
30779
30779
  },
30780
30780
  htmlBuilder(e, t) {
30781
- var n = on(e.body, t), r = _e.makeLineSpan("underline-line", t), o = t.fontMetrics().defaultRuleThickness, i = _e.makeVList({
30781
+ var n = sn(e.body, t), r = _e.makeLineSpan("underline-line", t), o = t.fontMetrics().defaultRuleThickness, i = _e.makeVList({
30782
30782
  positionType: "top",
30783
30783
  positionData: n.height,
30784
30784
  children: [{
@@ -30798,9 +30798,9 @@ st({
30798
30798
  return _e.makeSpan(["mord", "underline"], [i], t);
30799
30799
  },
30800
30800
  mathmlBuilder(e, t) {
30801
- var n = new Ge.MathNode("mo", [new Ge.TextNode("‾")]);
30801
+ var n = new Ve.MathNode("mo", [new Ve.TextNode("‾")]);
30802
30802
  n.setAttribute("stretchy", "true");
30803
- var r = new Ge.MathNode("munder", [_n(e.body, t), n]);
30803
+ var r = new Ve.MathNode("munder", [_n(e.body, t), n]);
30804
30804
  return r.setAttribute("accentunder", "true"), r;
30805
30805
  }
30806
30806
  });
@@ -30824,7 +30824,7 @@ st({
30824
30824
  };
30825
30825
  },
30826
30826
  htmlBuilder(e, t) {
30827
- var n = on(e.body, t), r = t.fontMetrics().axisHeight, o = 0.5 * (n.height - r - (n.depth + r));
30827
+ var n = sn(e.body, t), r = t.fontMetrics().axisHeight, o = 0.5 * (n.height - r - (n.depth + r));
30828
30828
  return _e.makeVList({
30829
30829
  positionType: "shift",
30830
30830
  positionData: o,
@@ -30835,7 +30835,7 @@ st({
30835
30835
  }, t);
30836
30836
  },
30837
30837
  mathmlBuilder(e, t) {
30838
- return new Ge.MathNode("mpadded", [_n(e.body, t)], ["vcenter"]);
30838
+ return new Ve.MathNode("mpadded", [_n(e.body, t)], ["vcenter"]);
30839
30839
  }
30840
30840
  });
30841
30841
  st({
@@ -30856,7 +30856,7 @@ st({
30856
30856
  return _e.makeSpan(["mord", "text"].concat(o.sizingClasses(t)), _e.tryCombineChars(r), o);
30857
30857
  },
30858
30858
  mathmlBuilder(e, t) {
30859
- var n = new Ge.TextNode(yA(e)), r = new Ge.MathNode("mtext", [n]);
30859
+ var n = new Ve.TextNode(yA(e)), r = new Ve.MathNode("mtext", [n]);
30860
30860
  return r.setAttribute("mathvariant", "monospace"), r;
30861
30861
  }
30862
30862
  });
@@ -34807,7 +34807,7 @@ class Yi extends hP {
34807
34807
  */
34808
34808
  load() {
34809
34809
  const t = this._item;
34810
- t !== null && !this.shouldLoad && wn(
34810
+ t !== null && !this.shouldLoad && Dn(
34811
34811
  /** @type {any} */
34812
34812
  t.parent.doc,
34813
34813
  (n) => {
@@ -34837,7 +34837,7 @@ class Yi extends hP {
34837
34837
  * @public
34838
34838
  */
34839
34839
  transact(t, n = null) {
34840
- return wn(this, t, n);
34840
+ return Dn(this, t, n);
34841
34841
  }
34842
34842
  /**
34843
34843
  * Define a shared data type.
@@ -34977,7 +34977,7 @@ class Yi extends hP {
34977
34977
  /** @type {ContentDoc} */
34978
34978
  t.content
34979
34979
  );
34980
- n.doc = new Yi({ guid: this.guid, ...n.opts, shouldLoad: !1 }), n.doc._item = t, wn(
34980
+ n.doc = new Yi({ guid: this.guid, ...n.opts, shouldLoad: !1 }), n.doc._item = t, Dn(
34981
34981
  /** @type {any} */
34982
34982
  t.parent.doc,
34983
34983
  (r) => {
@@ -35579,7 +35579,7 @@ const Pde = (e, t, n, r) => {
35579
35579
  return sk(h, a, /* @__PURE__ */ new Map()), Wt(h.restEncoder, 0), { missing: l, update: h.toUint8Array() };
35580
35580
  }
35581
35581
  return null;
35582
- }, Hde = (e, t) => sk(e, t.doc.store, t.beforeState), Wde = (e, t, n, r = new Lp(e)) => wn(t, (o) => {
35582
+ }, Hde = (e, t) => sk(e, t.doc.store, t.beforeState), Wde = (e, t, n, r = new Lp(e)) => Dn(t, (o) => {
35583
35583
  o.local = !1;
35584
35584
  let i = !1;
35585
35585
  const s = o.doc, a = s.store, l = zde(r, s), u = $de(o, a, l), c = a.pendingStructs;
@@ -35953,7 +35953,7 @@ const VA = (e, t) => t.deleteSet.clients.size === 0 && !xce(t.afterState, (n, r)
35953
35953
  }), u.forEach((c) => r.subdocs.delete(c)), r.emit("subdocs", [{ loaded: l, added: a, removed: u }, r, n]), u.forEach((c) => c.destroy())), e.length <= t + 1 ? (r._transactionCleanups = [], r.emit("afterAllTransactions", [r, e])) : GP(e, t + 1);
35954
35954
  }
35955
35955
  }
35956
- }, wn = (e, t, n = null, r = !0) => {
35956
+ }, Dn = (e, t, n = null, r = !0) => {
35957
35957
  const o = e._transactionCleanups;
35958
35958
  let i = !1, s = null;
35959
35959
  e._transaction === null && (i = !0, e._transaction = new ope(e, n, r), o.push(e._transaction), o.length === 1 && e.emit("beforeAllTransactions", [e]), e.emit("beforeTransaction", [e._transaction, e]));
@@ -35987,7 +35987,7 @@ const KA = (e, t, n) => {
35987
35987
  }, XA = (e, t, n) => {
35988
35988
  let r = null;
35989
35989
  const o = e.doc, i = e.scope;
35990
- wn(o, (a) => {
35990
+ Dn(o, (a) => {
35991
35991
  for (; t.length > 0 && e.currStackItem === null; ) {
35992
35992
  const l = o.store, u = (
35993
35993
  /** @type {StackItem} */
@@ -37017,7 +37017,7 @@ class Nc extends Tr {
37017
37017
  * @param {Array<T>} content The array of content
37018
37018
  */
37019
37019
  insert(t, n) {
37020
- this.doc !== null ? wn(this.doc, (r) => {
37020
+ this.doc !== null ? Dn(this.doc, (r) => {
37021
37021
  oz(
37022
37022
  r,
37023
37023
  this,
@@ -37035,7 +37035,7 @@ class Nc extends Tr {
37035
37035
  * @todo Use the following implementation in all types.
37036
37036
  */
37037
37037
  push(t) {
37038
- this.doc !== null ? wn(this.doc, (n) => {
37038
+ this.doc !== null ? Dn(this.doc, (n) => {
37039
37039
  ype(
37040
37040
  n,
37041
37041
  this,
@@ -37059,7 +37059,7 @@ class Nc extends Tr {
37059
37059
  * @param {number} length The number of elements to remove. Defaults to 1.
37060
37060
  */
37061
37061
  delete(t, n = 1) {
37062
- this.doc !== null ? wn(this.doc, (r) => {
37062
+ this.doc !== null ? Dn(this.doc, (r) => {
37063
37063
  iz(r, this, t, n);
37064
37064
  }) : this._prelimContent.splice(t, n);
37065
37065
  }
@@ -37287,7 +37287,7 @@ class Tu extends Tr {
37287
37287
  * @param {string} key The key of the element to remove.
37288
37288
  */
37289
37289
  delete(t) {
37290
- this.doc !== null ? wn(this.doc, (n) => {
37290
+ this.doc !== null ? Dn(this.doc, (n) => {
37291
37291
  U2(n, this, t);
37292
37292
  }) : this._prelimContent.delete(t);
37293
37293
  }
@@ -37300,7 +37300,7 @@ class Tu extends Tr {
37300
37300
  * @return {VAL}
37301
37301
  */
37302
37302
  set(t, n) {
37303
- return this.doc !== null ? wn(this.doc, (r) => {
37303
+ return this.doc !== null ? Dn(this.doc, (r) => {
37304
37304
  pk(
37305
37305
  r,
37306
37306
  this,
@@ -37335,7 +37335,7 @@ class Tu extends Tr {
37335
37335
  * Removes all elements from this YMap.
37336
37336
  */
37337
37337
  clear() {
37338
- this.doc !== null ? wn(this.doc, (t) => {
37338
+ this.doc !== null ? Dn(this.doc, (t) => {
37339
37339
  this.forEach(function(n, r, o) {
37340
37340
  U2(t, o, r);
37341
37341
  });
@@ -37551,7 +37551,7 @@ const ZA = (e, t, n) => {
37551
37551
  }
37552
37552
  }, Epe = (e) => {
37553
37553
  let t = 0;
37554
- return wn(
37554
+ return Dn(
37555
37555
  /** @type {Doc} */
37556
37556
  e.doc,
37557
37557
  (n) => {
@@ -37597,7 +37597,7 @@ const ZA = (e, t, n) => {
37597
37597
  }
37598
37598
  );
37599
37599
  }
37600
- wn(n, (r) => {
37600
+ Dn(n, (r) => {
37601
37601
  Su(e, e.deleteSet, (o) => {
37602
37602
  if (o instanceof Ii || !/** @type {YText} */
37603
37603
  o.parent._hasFormatting || t.has(
@@ -37678,7 +37678,7 @@ class _pe extends tx {
37678
37678
  /** @type {Doc} */
37679
37679
  this.target.doc
37680
37680
  ), n = [];
37681
- wn(t, (r) => {
37681
+ Dn(t, (r) => {
37682
37682
  const o = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
37683
37683
  let s = this.target._start, a = null;
37684
37684
  const l = {};
@@ -37842,7 +37842,7 @@ class ca extends Tr {
37842
37842
  * @public
37843
37843
  */
37844
37844
  applyDelta(t, { sanitize: n = !0 } = {}) {
37845
- this.doc !== null ? wn(this.doc, (r) => {
37845
+ this.doc !== null ? Dn(this.doc, (r) => {
37846
37846
  const o = new $5(null, this._start, 0, /* @__PURE__ */ new Map());
37847
37847
  for (let i = 0; i < t.length; i++) {
37848
37848
  const s = t[i];
@@ -37922,7 +37922,7 @@ class ca extends Tr {
37922
37922
  }
37923
37923
  u();
37924
37924
  };
37925
- return t || n ? wn(s, (d) => {
37925
+ return t || n ? Dn(s, (d) => {
37926
37926
  t && P5(d, t), n && P5(d, n), c();
37927
37927
  }, "cleanup") : c(), o;
37928
37928
  }
@@ -37940,7 +37940,7 @@ class ca extends Tr {
37940
37940
  if (n.length <= 0)
37941
37941
  return;
37942
37942
  const o = this.doc;
37943
- o !== null ? wn(o, (i) => {
37943
+ o !== null ? Dn(o, (i) => {
37944
37944
  const s = Rg(i, this, t, !r);
37945
37945
  r || (r = {}, s.currentAttributes.forEach((a, l) => {
37946
37946
  r[l] = a;
@@ -37959,7 +37959,7 @@ class ca extends Tr {
37959
37959
  */
37960
37960
  insertEmbed(t, n, r) {
37961
37961
  const o = this.doc;
37962
- o !== null ? wn(o, (i) => {
37962
+ o !== null ? Dn(o, (i) => {
37963
37963
  const s = Rg(i, this, t, !r);
37964
37964
  Nv(i, this, s, n, r || {});
37965
37965
  }) : this._pending.push(() => this.insertEmbed(t, n, r || {}));
@@ -37976,7 +37976,7 @@ class ca extends Tr {
37976
37976
  if (n === 0)
37977
37977
  return;
37978
37978
  const r = this.doc;
37979
- r !== null ? wn(r, (o) => {
37979
+ r !== null ? Dn(r, (o) => {
37980
37980
  QA(o, Rg(o, this, t, !0), n);
37981
37981
  }) : this._pending.push(() => this.delete(t, n));
37982
37982
  }
@@ -37994,7 +37994,7 @@ class ca extends Tr {
37994
37994
  if (n === 0)
37995
37995
  return;
37996
37996
  const o = this.doc;
37997
- o !== null ? wn(o, (i) => {
37997
+ o !== null ? Dn(o, (i) => {
37998
37998
  const s = Rg(i, this, t, !1);
37999
37999
  s.right !== null && JA(i, this, s, n, r);
38000
38000
  }) : this._pending.push(() => this.format(t, n, r));
@@ -38009,7 +38009,7 @@ class ca extends Tr {
38009
38009
  * @public
38010
38010
  */
38011
38011
  removeAttribute(t) {
38012
- this.doc !== null ? wn(this.doc, (n) => {
38012
+ this.doc !== null ? Dn(this.doc, (n) => {
38013
38013
  U2(n, this, t);
38014
38014
  }) : this._pending.push(() => this.removeAttribute(t));
38015
38015
  }
@@ -38024,7 +38024,7 @@ class ca extends Tr {
38024
38024
  * @public
38025
38025
  */
38026
38026
  setAttribute(t, n) {
38027
- this.doc !== null ? wn(this.doc, (r) => {
38027
+ this.doc !== null ? Dn(this.doc, (r) => {
38028
38028
  pk(r, this, t, n);
38029
38029
  }) : this._pending.push(() => this.setAttribute(t, n));
38030
38030
  }
@@ -38265,7 +38265,7 @@ class Xc extends Tr {
38265
38265
  * @param {Array<YXmlElement|YXmlText>} content The array of content
38266
38266
  */
38267
38267
  insert(t, n) {
38268
- this.doc !== null ? wn(this.doc, (r) => {
38268
+ this.doc !== null ? Dn(this.doc, (r) => {
38269
38269
  oz(r, this, t, n);
38270
38270
  }) : this._prelimContent.splice(t, 0, ...n);
38271
38271
  }
@@ -38281,7 +38281,7 @@ class Xc extends Tr {
38281
38281
  */
38282
38282
  insertAfter(t, n) {
38283
38283
  if (this.doc !== null)
38284
- wn(this.doc, (r) => {
38284
+ Dn(this.doc, (r) => {
38285
38285
  const o = t && t instanceof Tr ? t._item : t;
38286
38286
  L2(r, this, o, n);
38287
38287
  });
@@ -38302,7 +38302,7 @@ class Xc extends Tr {
38302
38302
  * @param {number} [length=1] The number of elements to remove. Defaults to 1.
38303
38303
  */
38304
38304
  delete(t, n = 1) {
38305
- this.doc !== null ? wn(this.doc, (r) => {
38305
+ this.doc !== null ? Dn(this.doc, (r) => {
38306
38306
  iz(r, this, t, n);
38307
38307
  }) : this._prelimContent.splice(t, n);
38308
38308
  }
@@ -38464,7 +38464,7 @@ class Ar extends Xc {
38464
38464
  * @public
38465
38465
  */
38466
38466
  removeAttribute(t) {
38467
- this.doc !== null ? wn(this.doc, (n) => {
38467
+ this.doc !== null ? Dn(this.doc, (n) => {
38468
38468
  U2(n, this, t);
38469
38469
  }) : this._prelimAttrs.delete(t);
38470
38470
  }
@@ -38479,7 +38479,7 @@ class Ar extends Xc {
38479
38479
  * @public
38480
38480
  */
38481
38481
  setAttribute(t, n) {
38482
- this.doc !== null ? wn(this.doc, (r) => {
38482
+ this.doc !== null ? Dn(this.doc, (r) => {
38483
38483
  pk(r, this, t, n);
38484
38484
  }) : this._prelimAttrs.set(t, n);
38485
38485
  }
@@ -40300,12 +40300,12 @@ const kz = ud(void 0), khe = ({
40300
40300
  }
40301
40301
  try {
40302
40302
  ae((We) => [...We, je]);
40303
- const { name: He, isEns: at, resolved: Ve } = await fce(
40303
+ const { name: He, isEns: at, resolved: Ge } = await fce(
40304
40304
  je,
40305
40305
  h
40306
40306
  // Add definite assignment assertion if ensResolutionUrl is guaranteed
40307
40307
  );
40308
- Ve && B((We) => {
40308
+ Ge && B((We) => {
40309
40309
  const gt = {
40310
40310
  ...We,
40311
40311
  [je]: { name: He, isEns: at }
@@ -40353,27 +40353,27 @@ const kz = ud(void 0), khe = ({
40353
40353
  (je, Re) => {
40354
40354
  const He = Yde(n);
40355
40355
  if (!Re()) return;
40356
- const Ve = Fo(n, He);
40357
- if (!(!Ve || Ve.byteLength === 0))
40356
+ const Ge = Fo(n, He);
40357
+ if (!(!Ge || Ge.byteLength === 0))
40358
40358
  return {
40359
40359
  type: je,
40360
- updateChunk: Qr(Ve)
40360
+ updateChunk: Qr(Ge)
40361
40361
  };
40362
40362
  },
40363
40363
  [n]
40364
40364
  ), ce = Se(
40365
40365
  (je, Re) => {
40366
40366
  if (!t) return;
40367
- const { state: He } = t, { from: at, to: Ve } = He.selection, We = He.doc.textBetween(at, Ve, " "), gt = De(
40367
+ const { state: He } = t, { from: at, to: Ge } = He.selection, We = He.doc.textBetween(at, Ge, " "), gt = De(
40368
40368
  We,
40369
40369
  je,
40370
40370
  Re || i
40371
- ), wt = me(
40371
+ ), xt = me(
40372
40372
  "create",
40373
40373
  () => t.commands.setComment(gt.id || "")
40374
40374
  );
40375
- if (!(gt.selectedContent && !wt))
40376
- return l(gt.id || ""), setTimeout(c, 0), d == null || d(gt, wt), gt.id;
40375
+ if (!(gt.selectedContent && !xt))
40376
+ return l(gt.id || ""), setTimeout(c, 0), d == null || d(gt, xt), gt.id;
40377
40377
  },
40378
40378
  [
40379
40379
  t,
@@ -40430,23 +40430,23 @@ const kz = ud(void 0), khe = ({
40430
40430
  (je) => {
40431
40431
  var He, at;
40432
40432
  if (!t || !((He = t.view) != null && He.dom) || !V.length) return;
40433
- const Re = V.find((Ve) => Ve.id === je);
40433
+ const Re = V.find((Ge) => Ge.id === je);
40434
40434
  if (Re) {
40435
40435
  if (Re.selectedContent) {
40436
- const Ve = t.view.dom.querySelector(
40436
+ const Ge = t.view.dom.querySelector(
40437
40437
  `[data-comment-id="${je}"]`
40438
40438
  );
40439
- if (Ve) {
40440
- const We = t.view.posAtDOM(Ve, 0), gt = We + (((at = Ve.textContent) == null ? void 0 : at.length) ?? 0);
40439
+ if (Ge) {
40440
+ const We = t.view.posAtDOM(Ge, 0), gt = We + (((at = Ge.textContent) == null ? void 0 : at.length) ?? 0);
40441
40441
  t.commands.setTextSelection({ from: We, to: gt });
40442
- const wt = K8({
40443
- targetElement: Ve,
40442
+ const xt = K8({
40443
+ targetElement: Ge,
40444
40444
  editorRoot: t.view.dom
40445
40445
  });
40446
- wt && requestAnimationFrame(() => {
40447
- const Tt = wt.getBoundingClientRect(), tn = Ve.getBoundingClientRect(), cn = tn.top - Tt.top - Tt.height / 2 + tn.height / 2;
40448
- wt.scrollBy({
40449
- top: cn,
40446
+ xt && requestAnimationFrame(() => {
40447
+ const Nt = xt.getBoundingClientRect(), en = Ge.getBoundingClientRect(), ln = en.top - Nt.top - Nt.height / 2 + en.height / 2;
40448
+ xt.scrollBy({
40449
+ top: ln,
40450
40450
  behavior: "smooth"
40451
40451
  });
40452
40452
  });
@@ -40534,8 +40534,8 @@ const kz = ud(void 0), khe = ({
40534
40534
  `[data-comment-id="${He.id}"]`
40535
40535
  );
40536
40536
  if (at) {
40537
- const Ve = t.view.posAtDOM(at, 0), We = Ve + (((Re = at.textContent) == null ? void 0 : Re.length) ?? 0);
40538
- t.commands.setTextSelection({ from: Ve, to: We }), te(He.id || "");
40537
+ const Ge = t.view.posAtDOM(at, 0), We = Ge + (((Re = at.textContent) == null ? void 0 : Re.length) ?? 0);
40538
+ t.commands.setTextSelection({ from: Ge, to: We }), te(He.id || "");
40539
40539
  }
40540
40540
  }
40541
40541
  }, [Pe, Le, t, te]), pt = Se(() => {
@@ -40545,8 +40545,8 @@ const kz = ud(void 0), khe = ({
40545
40545
  `[data-comment-id="${He.id}"]`
40546
40546
  );
40547
40547
  if (at) {
40548
- const Ve = t.view.posAtDOM(at, 0), We = Ve + (((Re = at.textContent) == null ? void 0 : Re.length) ?? 0);
40549
- t.commands.setTextSelection({ from: Ve, to: We }), te(He.id || "");
40548
+ const Ge = t.view.posAtDOM(at, 0), We = Ge + (((Re = at.textContent) == null ? void 0 : Re.length) ?? 0);
40549
+ t.commands.setTextSelection({ from: Ge, to: We }), te(He.id || "");
40550
40550
  }
40551
40551
  }
40552
40552
  }, [Pe, Le, t, te]), nt = kt(
@@ -43997,14 +43997,14 @@ function Qz() {
43997
43997
  const je = Kt({}, ["title", "style", "font", "a", "script"]);
43998
43998
  let Re = null;
43999
43999
  const He = ["application/xhtml+xml", "text/html"], at = "text/html";
44000
- let Ve = null, We = null;
44001
- const gt = n.createElement("form"), wt = function(we) {
44000
+ let Ge = null, We = null;
44001
+ const gt = n.createElement("form"), xt = function(we) {
44002
44002
  return we instanceof RegExp || we instanceof Function;
44003
- }, Tt = function() {
44003
+ }, Nt = function() {
44004
44004
  let we = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
44005
44005
  if (!(We && We === we)) {
44006
44006
  if ((!we || typeof we != "object") && (we = {}), we = Ia(we), Re = // eslint-disable-next-line unicorn/prefer-includes
44007
- He.indexOf(we.PARSER_MEDIA_TYPE) === -1 ? at : we.PARSER_MEDIA_TYPE, Ve = Re === "application/xhtml+xml" ? Hv : Vm, z = rs(we, "ALLOWED_TAGS") ? Kt({}, we.ALLOWED_TAGS, Ve) : $, re = rs(we, "ALLOWED_ATTR") ? Kt({}, we.ALLOWED_ATTR, Ve) : le, Pe = rs(we, "ALLOWED_NAMESPACES") ? Kt({}, we.ALLOWED_NAMESPACES, Hv) : ft, be = rs(we, "ADD_URI_SAFE_ATTR") ? Kt(Ia(Ee), we.ADD_URI_SAFE_ATTR, Ve) : Ee, pe = rs(we, "ADD_DATA_URI_TAGS") ? Kt(Ia(xe), we.ADD_DATA_URI_TAGS, Ve) : xe, W = rs(we, "FORBID_CONTENTS") ? Kt({}, we.FORBID_CONTENTS, Ve) : te, G = rs(we, "FORBID_TAGS") ? Kt({}, we.FORBID_TAGS, Ve) : Ia({}), Q = rs(we, "FORBID_ATTR") ? Kt({}, we.FORBID_ATTR, Ve) : Ia({}), O = rs(we, "USE_PROFILES") ? we.USE_PROFILES : !1, oe = we.ALLOW_ARIA_ATTR !== !1, S = we.ALLOW_DATA_ATTR !== !1, X = we.ALLOW_UNKNOWN_PROTOCOLS || !1, Z = we.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ue = we.SAFE_FOR_TEMPLATES || !1, B = we.SAFE_FOR_XML !== !1, ee = we.WHOLE_DOCUMENT || !1, V = we.RETURN_DOM || !1, ie = we.RETURN_DOM_FRAGMENT || !1, he = we.RETURN_TRUSTED_TYPE || !1, K = we.FORCE_BODY || !1, De = we.SANITIZE_DOM !== !1, me = we.SANITIZE_NAMED_PROPS || !1, de = we.KEEP_CONTENT !== !1, fe = we.IN_PLACE || !1, q = we.ALLOWED_URI_REGEXP || Zz, Ne = we.NAMESPACE || Te, pt = we.MATHML_TEXT_INTEGRATION_POINTS || pt, nt = we.HTML_INTEGRATION_POINTS || nt, ne = we.CUSTOM_ELEMENT_HANDLING || {}, we.CUSTOM_ELEMENT_HANDLING && wt(we.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (ne.tagNameCheck = we.CUSTOM_ELEMENT_HANDLING.tagNameCheck), we.CUSTOM_ELEMENT_HANDLING && wt(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 && (S = !1), ie && (V = !0), O && (z = Kt({}, ES), re = [], O.html === !0 && (Kt(z, kS), Kt(re, CS)), O.svg === !0 && (Kt(z, qv), Kt(re, Kv), Kt(re, zg)), O.svgFilters === !0 && (Kt(z, Vv), Kt(re, Kv), Kt(re, zg)), O.mathMl === !0 && (Kt(z, Gv), Kt(re, _S), Kt(re, zg))), we.ADD_TAGS && (typeof we.ADD_TAGS == "function" ? Y.tagCheck = we.ADD_TAGS : (z === $ && (z = Ia(z)), Kt(z, we.ADD_TAGS, Ve))), we.ADD_ATTR && (typeof we.ADD_ATTR == "function" ? Y.attributeCheck = we.ADD_ATTR : (re === le && (re = Ia(re)), Kt(re, we.ADD_ATTR, Ve))), we.ADD_URI_SAFE_ATTR && Kt(be, we.ADD_URI_SAFE_ATTR, Ve), we.FORBID_CONTENTS && (W === te && (W = Ia(W)), Kt(W, we.FORBID_CONTENTS, Ve)), de && (z["#text"] = !0), ee && Kt(z, ["html", "head", "body"]), z.table && (Kt(z, ["tbody"]), delete G.tbody), we.TRUSTED_TYPES_POLICY) {
44007
+ He.indexOf(we.PARSER_MEDIA_TYPE) === -1 ? at : we.PARSER_MEDIA_TYPE, Ge = Re === "application/xhtml+xml" ? Hv : Vm, z = rs(we, "ALLOWED_TAGS") ? Kt({}, we.ALLOWED_TAGS, Ge) : $, re = rs(we, "ALLOWED_ATTR") ? Kt({}, we.ALLOWED_ATTR, Ge) : le, Pe = rs(we, "ALLOWED_NAMESPACES") ? Kt({}, we.ALLOWED_NAMESPACES, Hv) : ft, be = rs(we, "ADD_URI_SAFE_ATTR") ? Kt(Ia(Ee), we.ADD_URI_SAFE_ATTR, Ge) : Ee, pe = rs(we, "ADD_DATA_URI_TAGS") ? Kt(Ia(xe), we.ADD_DATA_URI_TAGS, Ge) : xe, W = rs(we, "FORBID_CONTENTS") ? Kt({}, we.FORBID_CONTENTS, Ge) : te, G = rs(we, "FORBID_TAGS") ? Kt({}, we.FORBID_TAGS, Ge) : Ia({}), Q = rs(we, "FORBID_ATTR") ? Kt({}, we.FORBID_ATTR, Ge) : Ia({}), O = rs(we, "USE_PROFILES") ? we.USE_PROFILES : !1, oe = we.ALLOW_ARIA_ATTR !== !1, S = we.ALLOW_DATA_ATTR !== !1, X = we.ALLOW_UNKNOWN_PROTOCOLS || !1, Z = we.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ue = we.SAFE_FOR_TEMPLATES || !1, B = we.SAFE_FOR_XML !== !1, ee = we.WHOLE_DOCUMENT || !1, V = we.RETURN_DOM || !1, ie = we.RETURN_DOM_FRAGMENT || !1, he = we.RETURN_TRUSTED_TYPE || !1, K = we.FORCE_BODY || !1, De = we.SANITIZE_DOM !== !1, me = we.SANITIZE_NAMED_PROPS || !1, de = we.KEEP_CONTENT !== !1, fe = we.IN_PLACE || !1, q = we.ALLOWED_URI_REGEXP || Zz, Ne = we.NAMESPACE || Te, pt = we.MATHML_TEXT_INTEGRATION_POINTS || pt, nt = we.HTML_INTEGRATION_POINTS || nt, ne = we.CUSTOM_ELEMENT_HANDLING || {}, we.CUSTOM_ELEMENT_HANDLING && xt(we.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (ne.tagNameCheck = we.CUSTOM_ELEMENT_HANDLING.tagNameCheck), we.CUSTOM_ELEMENT_HANDLING && xt(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 && (S = !1), ie && (V = !0), O && (z = Kt({}, ES), re = [], O.html === !0 && (Kt(z, kS), Kt(re, CS)), O.svg === !0 && (Kt(z, qv), Kt(re, Kv), Kt(re, zg)), O.svgFilters === !0 && (Kt(z, Vv), Kt(re, Kv), Kt(re, zg)), O.mathMl === !0 && (Kt(z, Gv), Kt(re, _S), Kt(re, zg))), we.ADD_TAGS && (typeof we.ADD_TAGS == "function" ? Y.tagCheck = we.ADD_TAGS : (z === $ && (z = Ia(z)), Kt(z, we.ADD_TAGS, Ge))), we.ADD_ATTR && (typeof we.ADD_ATTR == "function" ? Y.attributeCheck = we.ADD_ATTR : (re === le && (re = Ia(re)), Kt(re, we.ADD_ATTR, Ge))), we.ADD_URI_SAFE_ATTR && Kt(be, we.ADD_URI_SAFE_ATTR, Ge), we.FORBID_CONTENTS && (W === te && (W = Ia(W)), Kt(W, we.FORBID_CONTENTS, Ge)), de && (z["#text"] = !0), ee && Kt(z, ["html", "head", "body"]), z.table && (Kt(z, ["tbody"]), delete G.tbody), we.TRUSTED_TYPES_POLICY) {
44008
44008
  if (typeof we.TRUSTED_TYPES_POLICY.createHTML != "function")
44009
44009
  throw zh('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
44010
44010
  if (typeof we.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -44014,15 +44014,15 @@ function Qz() {
44014
44014
  v === void 0 && (v = T1e(h, o)), v !== null && typeof k == "string" && (k = v.createHTML(""));
44015
44015
  To && To(we), We = we;
44016
44016
  }
44017
- }, tn = Kt({}, [...qv, ...Vv, ...x1e]), cn = Kt({}, [...Gv, ...v1e]), sn = function(we) {
44017
+ }, en = Kt({}, [...qv, ...Vv, ...x1e]), ln = Kt({}, [...Gv, ...v1e]), un = function(we) {
44018
44018
  let Ae = x(we);
44019
44019
  (!Ae || !Ae.tagName) && (Ae = {
44020
44020
  namespaceURI: Ne,
44021
44021
  tagName: "template"
44022
44022
  });
44023
44023
  const it = Vm(we.tagName), Gt = Vm(Ae.tagName);
44024
- return Pe[we.namespaceURI] ? we.namespaceURI === ge ? Ae.namespaceURI === Te ? it === "svg" : Ae.namespaceURI === Ce ? it === "svg" && (Gt === "annotation-xml" || pt[Gt]) : !!tn[it] : we.namespaceURI === Ce ? Ae.namespaceURI === Te ? it === "math" : Ae.namespaceURI === ge ? it === "math" && nt[Gt] : !!cn[it] : we.namespaceURI === Te ? Ae.namespaceURI === ge && !nt[Gt] || Ae.namespaceURI === Ce && !pt[Gt] ? !1 : !cn[it] && (je[it] || !tn[it]) : !!(Re === "application/xhtml+xml" && Pe[we.namespaceURI]) : !1;
44025
- }, an = function(we) {
44024
+ return Pe[we.namespaceURI] ? we.namespaceURI === ge ? Ae.namespaceURI === Te ? it === "svg" : Ae.namespaceURI === Ce ? it === "svg" && (Gt === "annotation-xml" || pt[Gt]) : !!en[it] : we.namespaceURI === Ce ? Ae.namespaceURI === Te ? it === "math" : Ae.namespaceURI === ge ? it === "math" && nt[Gt] : !!ln[it] : we.namespaceURI === Te ? Ae.namespaceURI === ge && !nt[Gt] || Ae.namespaceURI === Ce && !pt[Gt] ? !1 : !ln[it] && (je[it] || !en[it]) : !!(Re === "application/xhtml+xml" && Pe[we.namespaceURI]) : !1;
44025
+ }, rn = function(we) {
44026
44026
  Uh(t.removed, {
44027
44027
  element: we
44028
44028
  });
@@ -44031,7 +44031,7 @@ function Qz() {
44031
44031
  } catch {
44032
44032
  m(we);
44033
44033
  }
44034
- }, ln = function(we, Ae) {
44034
+ }, cn = function(we, Ae) {
44035
44035
  try {
44036
44036
  Uh(t.removed, {
44037
44037
  attribute: Ae.getAttributeNode(we),
@@ -44046,7 +44046,7 @@ function Qz() {
44046
44046
  if (Ae.removeAttribute(we), we === "is")
44047
44047
  if (V || ie)
44048
44048
  try {
44049
- an(Ae);
44049
+ rn(Ae);
44050
44050
  } catch {
44051
44051
  }
44052
44052
  else
@@ -44054,7 +44054,7 @@ function Qz() {
44054
44054
  Ae.setAttribute(we, "");
44055
44055
  } catch {
44056
44056
  }
44057
- }, kn = function(we) {
44057
+ }, Fn = function(we) {
44058
44058
  let Ae = null, it = null;
44059
44059
  if (K)
44060
44060
  we = "<remove></remove>" + we;
@@ -44099,13 +44099,13 @@ function Qz() {
44099
44099
  const Zt = function(we) {
44100
44100
  let Ae = null;
44101
44101
  if (mt(T.beforeSanitizeElements, we, null), Ie(we))
44102
- return an(we), !0;
44103
- const it = Ve(we.nodeName);
44102
+ return rn(we), !0;
44103
+ const it = Ge(we.nodeName);
44104
44104
  if (mt(T.uponSanitizeElement, we, {
44105
44105
  tagName: it,
44106
44106
  allowedTags: z
44107
44107
  }), B && we.hasChildNodes() && !rt(we.firstElementChild) && go(/<[/\w!]/g, we.innerHTML) && go(/<[/\w!]/g, we.textContent) || we.nodeType === Hh.progressingInstruction || B && we.nodeType === Hh.comment && go(/<[/\w]/g, we.data))
44108
- return an(we), !0;
44108
+ return rn(we), !0;
44109
44109
  if (!(Y.tagCheck instanceof Function && Y.tagCheck(it)) && (!z[it] || G[it])) {
44110
44110
  if (!G[it] && Pt(it) && (ne.tagNameCheck instanceof RegExp && go(ne.tagNameCheck, it) || ne.tagNameCheck instanceof Function && ne.tagNameCheck(it)))
44111
44111
  return !1;
@@ -44119,9 +44119,9 @@ function Qz() {
44119
44119
  }
44120
44120
  }
44121
44121
  }
44122
- return an(we), !0;
44122
+ return rn(we), !0;
44123
44123
  }
44124
- return we instanceof l && !sn(we) || (it === "noscript" || it === "noembed" || it === "noframes") && go(/<\/no(script|embed|frames)/i, we.innerHTML) ? (an(we), !0) : (ue && we.nodeType === Hh.text && (Ae = we.textContent, Pg([_, N, E], (Gt) => {
44124
+ return we instanceof l && !un(we) || (it === "noscript" || it === "noembed" || it === "noframes") && go(/<\/no(script|embed|frames)/i, we.innerHTML) ? (rn(we), !0) : (ue && we.nodeType === Hh.text && (Ae = we.textContent, Pg([_, N, E], (Gt) => {
44125
44125
  Ae = Ph(Ae, Gt, " ");
44126
44126
  }), we.textContent !== Ae && (Uh(t.removed, {
44127
44127
  element: we.cloneNode()
@@ -44177,32 +44177,32 @@ function Qz() {
44177
44177
  name: yn,
44178
44178
  namespaceURI: vr,
44179
44179
  value: Yr
44180
- } = Vt, Nl = Ve(yn), Nh = Yr;
44180
+ } = Vt, Nl = Ge(yn), Nh = Yr;
44181
44181
  let dr = yn === "value" ? Nh : m1e(Nh);
44182
- if (it.attrName = Nl, it.attrValue = dr, it.keepAttr = !0, it.forceKeepAttr = void 0, mt(T.uponSanitizeAttribute, we, it), dr = it.attrValue, me && (Nl === "id" || Nl === "name") && (ln(yn, we), dr = ce + dr), B && go(/((--!?|])>)|<\/(style|title|textarea)/i, dr)) {
44183
- ln(yn, we);
44182
+ if (it.attrName = Nl, it.attrValue = dr, it.keepAttr = !0, it.forceKeepAttr = void 0, mt(T.uponSanitizeAttribute, we, it), dr = it.attrValue, me && (Nl === "id" || Nl === "name") && (cn(yn, we), dr = ce + dr), B && go(/((--!?|])>)|<\/(style|title|textarea)/i, dr)) {
44183
+ cn(yn, we);
44184
44184
  continue;
44185
44185
  }
44186
44186
  if (Nl === "attributename" && Wv(dr, "href")) {
44187
- ln(yn, we);
44187
+ cn(yn, we);
44188
44188
  continue;
44189
44189
  }
44190
44190
  if (it.forceKeepAttr)
44191
44191
  continue;
44192
44192
  if (!it.keepAttr) {
44193
- ln(yn, we);
44193
+ cn(yn, we);
44194
44194
  continue;
44195
44195
  }
44196
44196
  if (!Z && go(/\/>/i, dr)) {
44197
- ln(yn, we);
44197
+ cn(yn, we);
44198
44198
  continue;
44199
44199
  }
44200
44200
  ue && Pg([_, N, E], (Mh) => {
44201
44201
  dr = Ph(dr, Mh, " ");
44202
44202
  });
44203
- const dg = Ve(we.nodeName);
44203
+ const dg = Ge(we.nodeName);
44204
44204
  if (!nn(dg, Nl, dr)) {
44205
- ln(yn, we);
44205
+ cn(yn, we);
44206
44206
  continue;
44207
44207
  }
44208
44208
  if (v && typeof h == "object" && typeof h.getAttributeType == "function" && !vr)
@@ -44218,9 +44218,9 @@ function Qz() {
44218
44218
  }
44219
44219
  if (dr !== Nh)
44220
44220
  try {
44221
- vr ? we.setAttributeNS(vr, yn, dr) : we.setAttribute(yn, dr), Ie(we) ? an(we) : DS(t.removed);
44221
+ vr ? we.setAttributeNS(vr, yn, dr) : we.setAttribute(yn, dr), Ie(we) ? rn(we) : DS(t.removed);
44222
44222
  } catch {
44223
- ln(yn, we);
44223
+ cn(yn, we);
44224
44224
  }
44225
44225
  }
44226
44226
  mt(T.afterSanitizeAttributes, we, null);
@@ -44241,22 +44241,22 @@ function Qz() {
44241
44241
  throw zh("toString is not a function");
44242
44242
  if (!t.isSupported)
44243
44243
  return et;
44244
- if (ae || Tt(we), t.removed = [], typeof et == "string" && (fe = !1), fe) {
44244
+ if (ae || Nt(we), t.removed = [], typeof et == "string" && (fe = !1), fe) {
44245
44245
  if (et.nodeName) {
44246
- const Yr = Ve(et.nodeName);
44246
+ const Yr = Ge(et.nodeName);
44247
44247
  if (!z[Yr] || G[Yr])
44248
44248
  throw zh("root node is forbidden and cannot be sanitized in-place");
44249
44249
  }
44250
44250
  } else if (et instanceof a)
44251
- Ae = kn("<!---->"), it = Ae.ownerDocument.importNode(et, !0), it.nodeType === Hh.element && it.nodeName === "BODY" || it.nodeName === "HTML" ? Ae = it : Ae.appendChild(it);
44251
+ Ae = Fn("<!---->"), it = Ae.ownerDocument.importNode(et, !0), it.nodeType === Hh.element && it.nodeName === "BODY" || it.nodeName === "HTML" ? Ae = it : Ae.appendChild(it);
44252
44252
  else {
44253
44253
  if (!V && !ue && !ee && // eslint-disable-next-line unicorn/prefer-includes
44254
44254
  et.indexOf("<") === -1)
44255
44255
  return v && he ? v.createHTML(et) : et;
44256
- if (Ae = kn(et), !Ae)
44256
+ if (Ae = Fn(et), !Ae)
44257
44257
  return V ? null : he ? k : "";
44258
44258
  }
44259
- Ae && K && an(Ae.firstChild);
44259
+ Ae && K && rn(Ae.firstChild);
44260
44260
  const yn = ve(fe ? et : Ae);
44261
44261
  for (; Gt = yn.nextNode(); )
44262
44262
  Zt(Gt), Rt(Gt), Gt.content instanceof i && er(Gt.content);
@@ -44277,12 +44277,12 @@ function Qz() {
44277
44277
  }), v && he ? v.createHTML(vr) : vr;
44278
44278
  }, t.setConfig = function() {
44279
44279
  let et = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
44280
- Tt(et), ae = !0;
44280
+ Nt(et), ae = !0;
44281
44281
  }, t.clearConfig = function() {
44282
44282
  We = null, ae = !1;
44283
44283
  }, t.isValidAttribute = function(et, we, Ae) {
44284
- We || Tt({});
44285
- const it = Ve(et), Gt = Ve(we);
44284
+ We || Nt({});
44285
+ const it = Ge(et), Gt = Ge(we);
44286
44286
  return nn(it, Gt, Ae);
44287
44287
  }, t.addHook = function(et, we) {
44288
44288
  typeof we == "function" && Uh(T[et], we);
@@ -46144,7 +46144,7 @@ pn.addRule("linkDefinition", {
46144
46144
 
46145
46145
  `
46146
46146
  });
46147
- const Hge = (e, t, n) => Ft.create({
46147
+ const Hge = (e, t, n) => wt.create({
46148
46148
  name: "markdownPasteHandler",
46149
46149
  addProseMirrorPlugins() {
46150
46150
  return [
@@ -48486,8 +48486,8 @@ const N0 = (e) => {
48486
48486
  const u = (c) => {
48487
48487
  c.preventDefault();
48488
48488
  };
48489
- return r ? /* @__PURE__ */ F.jsx(en, { text: r, children: /* @__PURE__ */ F.jsx(
48490
- Dn,
48489
+ return r ? /* @__PURE__ */ F.jsx(Jt, { text: r, children: /* @__PURE__ */ F.jsx(
48490
+ kn,
48491
48491
  {
48492
48492
  ref: l,
48493
48493
  variant: a,
@@ -48500,7 +48500,7 @@ const N0 = (e) => {
48500
48500
  disabled: i
48501
48501
  }
48502
48502
  ) }) : /* @__PURE__ */ F.jsx(
48503
- Dn,
48503
+ kn,
48504
48504
  {
48505
48505
  ref: l,
48506
48506
  variant: "ghost",
@@ -48627,7 +48627,7 @@ const N0 = (e) => {
48627
48627
  className: "text-helper-text-sm color-text-secondary hover:underline text-left pl-2 pb-3 border-l custom-border cursor-pointer flex items-center gap-1",
48628
48628
  children: [
48629
48629
  /* @__PURE__ */ F.jsx(
48630
- Dn,
48630
+ kn,
48631
48631
  {
48632
48632
  icon: "ChevronDown",
48633
48633
  variant: "ghost",
@@ -48698,20 +48698,20 @@ const N0 = (e) => {
48698
48698
  /* @__PURE__ */ F.jsxs("div", { className: "flex justify-between items-center", children: [
48699
48699
  /* @__PURE__ */ F.jsx(j$, { username: e, createdAt: r }),
48700
48700
  f === "2" ? /* @__PURE__ */ F.jsx(
48701
- en,
48701
+ Jt,
48702
48702
  {
48703
48703
  text: p ? "Available in a moment" : "",
48704
48704
  sideOffset: 0,
48705
48705
  position: "top",
48706
48706
  children: /* @__PURE__ */ F.jsxs(jD, { className: "!space-x-0", children: [
48707
48707
  !u && o && o.length === 0 && /* @__PURE__ */ F.jsx(
48708
- en,
48708
+ Jt,
48709
48709
  {
48710
48710
  text: p ? "" : "Add reply",
48711
48711
  sideOffset: 0,
48712
48712
  position: "bottom",
48713
48713
  children: /* @__PURE__ */ F.jsx(
48714
- Dn,
48714
+ kn,
48715
48715
  {
48716
48716
  variant: "ghost",
48717
48717
  icon: "MessageSquarePlus",
@@ -48724,13 +48724,13 @@ const N0 = (e) => {
48724
48724
  }
48725
48725
  ),
48726
48726
  /* @__PURE__ */ F.jsx(
48727
- en,
48727
+ Jt,
48728
48728
  {
48729
48729
  text: p ? "" : "Coming soon",
48730
48730
  sideOffset: 0,
48731
48731
  position: "bottom",
48732
48732
  children: /* @__PURE__ */ F.jsx(
48733
- Dn,
48733
+ kn,
48734
48734
  {
48735
48735
  variant: "ghost",
48736
48736
  icon: "Smile",
@@ -48747,7 +48747,7 @@ const N0 = (e) => {
48747
48747
  align: "end",
48748
48748
  sideOffset: 4,
48749
48749
  anchorTrigger: /* @__PURE__ */ F.jsx(
48750
- Dn,
48750
+ kn,
48751
48751
  {
48752
48752
  icon: "Ellipsis",
48753
48753
  variant: "ghost",
@@ -48796,8 +48796,8 @@ const N0 = (e) => {
48796
48796
  )
48797
48797
  ] })
48798
48798
  }
48799
- ) : /* @__PURE__ */ F.jsx(en, { text: "Actions are not supported for old comments", children: /* @__PURE__ */ F.jsx(
48800
- Dn,
48799
+ ) : /* @__PURE__ */ F.jsx(Jt, { text: "Actions are not supported for old comments", children: /* @__PURE__ */ F.jsx(
48800
+ kn,
48801
48801
  {
48802
48802
  icon: "Info",
48803
48803
  variant: "ghost",
@@ -48982,7 +48982,7 @@ const N0 = (e) => {
48982
48982
  ")"
48983
48983
  ] }),
48984
48984
  /* @__PURE__ */ F.jsx("div", { className: "relative flex items-center gap-1", children: (M || i) && !re && /* @__PURE__ */ F.jsxs(
48985
- en,
48985
+ Jt,
48986
48986
  {
48987
48987
  text: o ? "Available in a moment" : "",
48988
48988
  sideOffset: 0,
@@ -48994,7 +48994,7 @@ const N0 = (e) => {
48994
48994
  align: "end",
48995
48995
  sideOffset: 4,
48996
48996
  anchorTrigger: /* @__PURE__ */ F.jsx(
48997
- Dn,
48997
+ kn,
48998
48998
  {
48999
48999
  onClick: S,
49000
49000
  icon: "Ellipsis",
@@ -49029,13 +49029,13 @@ const N0 = (e) => {
49029
49029
  "more-actions"
49030
49030
  ),
49031
49031
  /* @__PURE__ */ F.jsx(
49032
- en,
49032
+ Jt,
49033
49033
  {
49034
49034
  text: o ? "" : D != null && D.resolved ? "Unresolve" : "Resolve",
49035
49035
  sideOffset: 5,
49036
49036
  position: "bottom",
49037
49037
  children: /* @__PURE__ */ F.jsx(
49038
- Dn,
49038
+ kn,
49039
49039
  {
49040
49040
  "data-testid": D != null && D.resolved ? "comment-unresolve-btn" : "comment-resolve-btn",
49041
49041
  icon: D != null && D.resolved ? "CircleCheck2" : "CircleCheck",
@@ -49133,7 +49133,7 @@ J2.exports;
49133
49133
  var n = {
49134
49134
  function: !0,
49135
49135
  object: !0
49136
- }, r = n[typeof window] && window || this, o = t, i = e && !e.nodeType && e, s = o && i && typeof Bt == "object" && Bt;
49136
+ }, r = n[typeof window] && window || this, o = t, i = e && !e.nodeType && e, s = o && i && typeof jt == "object" && jt;
49137
49137
  s && (s.global === s || s.window === s || s.self === s) && (r = s);
49138
49138
  var a = Math.pow(2, 53) - 1, l = /\bOpera/, u = Object.prototype, c = u.hasOwnProperty, d = u.toString;
49139
49139
  function p(C) {
@@ -49465,7 +49465,7 @@ J2.exports;
49465
49465
  o && i ? m(D, function(C, A) {
49466
49466
  o[A] = C;
49467
49467
  }) : r.platform = D;
49468
- }).call(Bt);
49468
+ }).call(jt);
49469
49469
  })(J2, J2.exports);
49470
49470
  var ume = J2.exports;
49471
49471
  const cme = /* @__PURE__ */ Lu(ume), qh = () => {
@@ -49988,7 +49988,7 @@ const cme = /* @__PURE__ */ Lu(ume), qh = () => {
49988
49988
  renderHTML({ HTMLAttributes: e }) {
49989
49989
  return [
49990
49990
  "div",
49991
- Nt(e, { "data-type": "column" }),
49991
+ Bt(e, { "data-type": "column" }),
49992
49992
  0
49993
49993
  ];
49994
49994
  },
@@ -50978,8 +50978,8 @@ ${N.getHTML()}`
50978
50978
  onClose: () => {
50979
50979
  t(!1), p(!1), c(!1);
50980
50980
  },
50981
- anchorTrigger: /* @__PURE__ */ F.jsx(en, { text: "Export/Import", children: /* @__PURE__ */ F.jsx(
50982
- Dn,
50981
+ anchorTrigger: /* @__PURE__ */ F.jsx(Jt, { text: "Export/Import", children: /* @__PURE__ */ F.jsx(
50982
+ kn,
50983
50983
  {
50984
50984
  icon: "File",
50985
50985
  variant: "ghost",
@@ -51157,7 +51157,7 @@ ${N.getHTML()}`
51157
51157
  Ur,
51158
51158
  {
51159
51159
  sideOffset: 8,
51160
- anchorTrigger: /* @__PURE__ */ F.jsx(en, { text: e.title, children: /* @__PURE__ */ F.jsx(Dn, { icon: e.icon, variant: "ghost", size: "sm" }) }),
51160
+ anchorTrigger: /* @__PURE__ */ F.jsx(Jt, { text: e.title, children: /* @__PURE__ */ F.jsx(kn, { icon: e.icon, variant: "ghost", size: "sm" }) }),
51161
51161
  content: n(e)
51162
51162
  },
51163
51163
  e.title
@@ -51302,7 +51302,7 @@ ${N.getHTML()}`
51302
51302
  "markdown-dropdown-transition"
51303
51303
  ),
51304
51304
  /* @__PURE__ */ F.jsx("div", { className: "w-[1px] h-4 vertical-divider mx-1" }),
51305
- /* @__PURE__ */ F.jsx("div", { className: "flex gap-1 justify-center items-center", children: C.map((S, X) => S ? /* @__PURE__ */ F.jsx(en, { text: S.title, children: h ? xo(
51305
+ /* @__PURE__ */ F.jsx("div", { className: "flex gap-1 justify-center items-center", children: C.map((S, X) => S ? /* @__PURE__ */ F.jsx(Jt, { text: S.title, children: h ? xo(
51306
51306
  /* @__PURE__ */ F.jsx(
51307
51307
  hr,
51308
51308
  {
@@ -51312,7 +51312,7 @@ ${N.getHTML()}`
51312
51312
  "redo-skeleton-transition"
51313
51313
  ) : Uo(
51314
51314
  /* @__PURE__ */ F.jsx(
51315
- Dn,
51315
+ kn,
51316
51316
  {
51317
51317
  className: "disabled:bg-transparent",
51318
51318
  variant: "ghost",
@@ -51528,8 +51528,8 @@ ${N.getHTML()}`
51528
51528
  {
51529
51529
  align: "end",
51530
51530
  sideOffset: 8,
51531
- anchorTrigger: /* @__PURE__ */ F.jsx(en, { text: "More", children: /* @__PURE__ */ F.jsx(
51532
- Dn,
51531
+ anchorTrigger: /* @__PURE__ */ F.jsx(Jt, { text: "More", children: /* @__PURE__ */ F.jsx(
51532
+ kn,
51533
51533
  {
51534
51534
  id: "more-dropdown",
51535
51535
  icon: "Ellipsis",
@@ -51577,7 +51577,7 @@ ${N.getHTML()}`
51577
51577
  /* @__PURE__ */ F.jsx(hr, { className: "w-[36px] h-[36px] rounded-sm" }),
51578
51578
  S.title + "skeleton"
51579
51579
  ) : Uo(
51580
- /* @__PURE__ */ F.jsx(en, { text: S.title, children: /* @__PURE__ */ F.jsx(
51580
+ /* @__PURE__ */ F.jsx(Jt, { text: S.title, children: /* @__PURE__ */ F.jsx(
51581
51581
  fr,
51582
51582
  {
51583
51583
  icon: S.icon,
@@ -51598,8 +51598,8 @@ ${N.getHTML()}`
51598
51598
  ] }),
51599
51599
  /* @__PURE__ */ F.jsxs("div", { className: "flex items-center gap-1", children: [
51600
51600
  /* @__PURE__ */ F.jsx("div", { className: "w-[1px] h-4 vertical-divider mx-2" }),
51601
- /* @__PURE__ */ F.jsx(en, { text: "Enter focus mode", children: /* @__PURE__ */ F.jsx(
51602
- Dn,
51601
+ /* @__PURE__ */ F.jsx(Jt, { text: "Enter focus mode", children: /* @__PURE__ */ F.jsx(
51602
+ kn,
51603
51603
  {
51604
51604
  icon: "Maximize",
51605
51605
  size: "sm",
@@ -51612,7 +51612,7 @@ ${N.getHTML()}`
51612
51612
  "chevronUp-skeleton"
51613
51613
  ) : Uo(
51614
51614
  /* @__PURE__ */ F.jsx(
51615
- Dn,
51615
+ kn,
51616
51616
  {
51617
51617
  size: "sm",
51618
51618
  variant: "ghost",
@@ -52619,7 +52619,7 @@ const p2e = (e, t, n) => e !== t, h2e = (e) => {
52619
52619
  };
52620
52620
  }
52621
52621
  });
52622
- var w2e = Ft.create({
52622
+ var w2e = wt.create({
52623
52623
  name: "collaboration",
52624
52624
  priority: 1e3,
52625
52625
  addOptions() {
@@ -52726,7 +52726,7 @@ var w2e = Ft.create({
52726
52726
  return [{ tag: "blockquote" }];
52727
52727
  },
52728
52728
  renderHTML({ HTMLAttributes: e }) {
52729
- return /* @__PURE__ */ ib("blockquote", { ...Nt(this.options.HTMLAttributes, e), children: /* @__PURE__ */ ib("slot", {}) });
52729
+ return /* @__PURE__ */ ib("blockquote", { ...Bt(this.options.HTMLAttributes, e), children: /* @__PURE__ */ ib("slot", {}) });
52730
52730
  },
52731
52731
  parseMarkdown: (e, t) => t.createNode("blockquote", void 0, t.parseChildren(e.tokens || [])),
52732
52732
  renderMarkdown: (e, t) => {
@@ -52789,7 +52789,7 @@ ${n}
52789
52789
  ];
52790
52790
  },
52791
52791
  renderHTML({ HTMLAttributes: e }) {
52792
- return /* @__PURE__ */ ib("strong", { ...Nt(this.options.HTMLAttributes, e), children: /* @__PURE__ */ ib("slot", {}) });
52792
+ return /* @__PURE__ */ ib("strong", { ...Bt(this.options.HTMLAttributes, e), children: /* @__PURE__ */ ib("slot", {}) });
52793
52793
  },
52794
52794
  markdownTokenName: "strong",
52795
52795
  parseMarkdown: (e, t) => t.applyMark("bold", t.parseInline(e.tokens || [])),
@@ -52845,7 +52845,7 @@ ${n}
52845
52845
  return [{ tag: "code" }];
52846
52846
  },
52847
52847
  renderHTML({ HTMLAttributes: e }) {
52848
- return ["code", Nt(this.options.HTMLAttributes, e), 0];
52848
+ return ["code", Bt(this.options.HTMLAttributes, e), 0];
52849
52849
  },
52850
52850
  markdownTokenName: "codespan",
52851
52851
  parseMarkdown: (e, t) => t.applyMark("code", [{ type: "text", text: e.text || "" }]),
@@ -52923,7 +52923,7 @@ ${n}
52923
52923
  renderHTML({ node: e, HTMLAttributes: t }) {
52924
52924
  return [
52925
52925
  "pre",
52926
- Nt(this.options.HTMLAttributes, t),
52926
+ Bt(this.options.HTMLAttributes, t),
52927
52927
  [
52928
52928
  "code",
52929
52929
  {
@@ -53111,7 +53111,7 @@ ${n}
53111
53111
  return [{ tag: "br" }];
53112
53112
  },
53113
53113
  renderHTML({ HTMLAttributes: e }) {
53114
- return ["br", Nt(this.options.HTMLAttributes, e)];
53114
+ return ["br", Bt(this.options.HTMLAttributes, e)];
53115
53115
  },
53116
53116
  renderText() {
53117
53117
  return `
@@ -53174,7 +53174,7 @@ ${n}
53174
53174
  }));
53175
53175
  },
53176
53176
  renderHTML({ node: e, HTMLAttributes: t }) {
53177
- return [`h${this.options.levels.includes(e.attrs.level) ? e.attrs.level : this.options.levels[0]}`, Nt(this.options.HTMLAttributes, t), 0];
53177
+ return [`h${this.options.levels.includes(e.attrs.level) ? e.attrs.level : this.options.levels[0]}`, Bt(this.options.HTMLAttributes, t), 0];
53178
53178
  },
53179
53179
  parseMarkdown: (e, t) => t.createNode("heading", { level: e.depth || 1 }, t.parseInline(e.tokens || [])),
53180
53180
  renderMarkdown: (e, t) => {
@@ -53219,7 +53219,7 @@ ${n}
53219
53219
  return [{ tag: "hr" }];
53220
53220
  },
53221
53221
  renderHTML({ HTMLAttributes: e }) {
53222
- return ["hr", Nt(this.options.HTMLAttributes, e)];
53222
+ return ["hr", Bt(this.options.HTMLAttributes, e)];
53223
53223
  },
53224
53224
  markdownTokenName: "hr",
53225
53225
  parseMarkdown: (e, t) => t.createNode("horizontalRule"),
@@ -53282,7 +53282,7 @@ ${n}
53282
53282
  ];
53283
53283
  },
53284
53284
  renderHTML({ HTMLAttributes: e }) {
53285
- return ["em", Nt(this.options.HTMLAttributes, e), 0];
53285
+ return ["em", Bt(this.options.HTMLAttributes, e), 0];
53286
53286
  },
53287
53287
  addCommands() {
53288
53288
  return {
@@ -54215,7 +54215,7 @@ var fbe = Mr.create({
54215
54215
  defaultValidate: (t) => !!tc(t, this.options.protocols),
54216
54216
  protocols: this.options.protocols,
54217
54217
  defaultProtocol: this.options.defaultProtocol
54218
- }) ? ["a", Nt(this.options.HTMLAttributes, e), 0] : ["a", Nt(this.options.HTMLAttributes, { ...e, href: "" }), 0];
54218
+ }) ? ["a", Bt(this.options.HTMLAttributes, e), 0] : ["a", Bt(this.options.HTMLAttributes, { ...e, href: "" }), 0];
54219
54219
  },
54220
54220
  markdownTokenName: "link",
54221
54221
  parseMarkdown: (e, t) => t.applyMark("link", t.parseInline(e.tokens || []), {
@@ -54332,7 +54332,7 @@ var fbe = Mr.create({
54332
54332
  return [{ tag: "ul" }];
54333
54333
  },
54334
54334
  renderHTML({ HTMLAttributes: e }) {
54335
- return ["ul", Nt(this.options.HTMLAttributes, e), 0];
54335
+ return ["ul", Bt(this.options.HTMLAttributes, e), 0];
54336
54336
  },
54337
54337
  markdownTokenName: "list",
54338
54338
  parseMarkdown: (e, t) => e.type !== "list" || e.ordered ? [] : {
@@ -54387,7 +54387,7 @@ var fbe = Mr.create({
54387
54387
  ];
54388
54388
  },
54389
54389
  renderHTML({ HTMLAttributes: e }) {
54390
- return ["li", Nt(this.options.HTMLAttributes, e), 0];
54390
+ return ["li", Bt(this.options.HTMLAttributes, e), 0];
54391
54391
  },
54392
54392
  markdownTokenName: "list_item",
54393
54393
  parseMarkdown: (e, t) => {
@@ -54513,7 +54513,7 @@ var U1 = (e, t) => {
54513
54513
  var n;
54514
54514
  const { $anchor: r } = t.selection, o = t.doc.resolve(r.pos - r.parentOffset - 2);
54515
54515
  return !(o.index() === o.parent.childCount - 1 || ((n = o.nodeAfter) == null ? void 0 : n.type.name) !== e);
54516
- }, dH = Ft.create({
54516
+ }, dH = wt.create({
54517
54517
  name: "listKeymap",
54518
54518
  addOptions() {
54519
54519
  return {
@@ -54695,7 +54695,7 @@ var Dbe = "listItem", tT = "textStyle", nT = /^(\d+)\.\s$/, hH = At.create({
54695
54695
  },
54696
54696
  renderHTML({ HTMLAttributes: e }) {
54697
54697
  const { start: t, ...n } = e;
54698
- return t === 1 ? ["ol", Nt(this.options.HTMLAttributes, n), 0] : ["ol", Nt(this.options.HTMLAttributes, e), 0];
54698
+ return t === 1 ? ["ol", Bt(this.options.HTMLAttributes, n), 0] : ["ol", Bt(this.options.HTMLAttributes, e), 0];
54699
54699
  },
54700
54700
  markdownTokenName: "list",
54701
54701
  parseMarkdown: (e, t) => {
@@ -54807,7 +54807,7 @@ var Dbe = "listItem", tT = "textStyle", nT = /^(\d+)\.\s$/, hH = At.create({
54807
54807
  renderHTML({ node: e, HTMLAttributes: t }) {
54808
54808
  return [
54809
54809
  "li",
54810
- Nt(this.options.HTMLAttributes, t, {
54810
+ Bt(this.options.HTMLAttributes, t, {
54811
54811
  "data-type": this.name
54812
54812
  }),
54813
54813
  [
@@ -54912,7 +54912,7 @@ var Dbe = "listItem", tT = "textStyle", nT = /^(\d+)\.\s$/, hH = At.create({
54912
54912
  ];
54913
54913
  },
54914
54914
  renderHTML({ HTMLAttributes: e }) {
54915
- return ["ul", Nt(this.options.HTMLAttributes, e, { "data-type": this.name }), 0];
54915
+ return ["ul", Bt(this.options.HTMLAttributes, e, { "data-type": this.name }), 0];
54916
54916
  },
54917
54917
  parseMarkdown: (e, t) => t.createNode("taskList", {}, t.parseChildren(e.items || [])),
54918
54918
  renderMarkdown: (e, t) => e.content ? t.renderChildren(e.content, `
@@ -55004,7 +55004,7 @@ var Dbe = "listItem", tT = "textStyle", nT = /^(\d+)\.\s$/, hH = At.create({
55004
55004
  };
55005
55005
  }
55006
55006
  });
55007
- Ft.create({
55007
+ wt.create({
55008
55008
  name: "listKit",
55009
55009
  addExtensions() {
55010
55010
  const e = [];
@@ -55025,7 +55025,7 @@ var Ebe = At.create({
55025
55025
  return [{ tag: "p" }];
55026
55026
  },
55027
55027
  renderHTML({ HTMLAttributes: e }) {
55028
- return ["p", Nt(this.options.HTMLAttributes, e), 0];
55028
+ return ["p", Bt(this.options.HTMLAttributes, e), 0];
55029
55029
  },
55030
55030
  parseMarkdown: (e, t) => {
55031
55031
  const n = e.tokens || [];
@@ -55073,7 +55073,7 @@ var Ebe = At.create({
55073
55073
  ];
55074
55074
  },
55075
55075
  renderHTML({ HTMLAttributes: e }) {
55076
- return ["s", Nt(this.options.HTMLAttributes, e), 0];
55076
+ return ["s", Bt(this.options.HTMLAttributes, e), 0];
55077
55077
  },
55078
55078
  markdownTokenName: "del",
55079
55079
  parseMarkdown: (e, t) => t.applyMark("strike", t.parseInline(e.tokens || [])),
@@ -55134,7 +55134,7 @@ var Ebe = At.create({
55134
55134
  ];
55135
55135
  },
55136
55136
  renderHTML({ HTMLAttributes: e }) {
55137
- return ["u", Nt(this.options.HTMLAttributes, e), 0];
55137
+ return ["u", Bt(this.options.HTMLAttributes, e), 0];
55138
55138
  },
55139
55139
  parseMarkdown(e, t) {
55140
55140
  return t.applyMark(this.name || "underline", t.parseInline(e.tokens || []));
@@ -55789,7 +55789,7 @@ function yH(e, t) {
55789
55789
  };
55790
55790
  }
55791
55791
  const xH = yH(!1, !0), vH = yH(!0, !0);
55792
- var Xbe = Ft.create({
55792
+ var Xbe = wt.create({
55793
55793
  name: "characterCount",
55794
55794
  addOptions() {
55795
55795
  return {
@@ -55857,7 +55857,7 @@ var Xbe = Ft.create({
55857
55857
  })
55858
55858
  ];
55859
55859
  }
55860
- }), FH = Ft.create({
55860
+ }), FH = wt.create({
55861
55861
  name: "dropCursor",
55862
55862
  addOptions() {
55863
55863
  return {
@@ -55870,7 +55870,7 @@ var Xbe = Ft.create({
55870
55870
  return [jbe(this.options)];
55871
55871
  }
55872
55872
  });
55873
- Ft.create({
55873
+ wt.create({
55874
55874
  name: "focus",
55875
55875
  addOptions() {
55876
55876
  return {
@@ -55913,7 +55913,7 @@ Ft.create({
55913
55913
  ];
55914
55914
  }
55915
55915
  });
55916
- var wH = Ft.create({
55916
+ var wH = wt.create({
55917
55917
  name: "gapCursor",
55918
55918
  addProseMirrorPlugins() {
55919
55919
  return [Obe()];
@@ -55929,7 +55929,7 @@ var wH = Ft.create({
55929
55929
  allowGapCursor: (t = hn(bt(e, "allowGapCursor", n))) != null ? t : null
55930
55930
  };
55931
55931
  }
55932
- }), Ybe = Ft.create({
55932
+ }), Ybe = wt.create({
55933
55933
  name: "placeholder",
55934
55934
  addOptions() {
55935
55935
  return {
@@ -55975,7 +55975,7 @@ var wH = Ft.create({
55975
55975
  ];
55976
55976
  }
55977
55977
  });
55978
- Ft.create({
55978
+ wt.create({
55979
55979
  name: "selection",
55980
55980
  addOptions() {
55981
55981
  return {
@@ -56003,7 +56003,7 @@ Ft.create({
56003
56003
  function iT({ types: e, node: t }) {
56004
56004
  return t && Array.isArray(e) && e.includes(t.type) || (t == null ? void 0 : t.type) === e;
56005
56005
  }
56006
- var Zbe = Ft.create({
56006
+ var Zbe = wt.create({
56007
56007
  name: "trailingNode",
56008
56008
  addOptions() {
56009
56009
  return {
@@ -56037,7 +56037,7 @@ var Zbe = Ft.create({
56037
56037
  })
56038
56038
  ];
56039
56039
  }
56040
- }), Jbe = Ft.create({
56040
+ }), Jbe = wt.create({
56041
56041
  name: "undoRedo",
56042
56042
  addOptions() {
56043
56043
  return {
@@ -56064,7 +56064,7 @@ var Zbe = Ft.create({
56064
56064
  "Shift-Mod-я": () => this.editor.commands.redo()
56065
56065
  };
56066
56066
  }
56067
- }), Qbe = Ft.create({
56067
+ }), Qbe = wt.create({
56068
56068
  name: "starterKit",
56069
56069
  addExtensions() {
56070
56070
  var e, t, n, r;
@@ -56104,7 +56104,7 @@ var Zbe = Ft.create({
56104
56104
  ];
56105
56105
  },
56106
56106
  renderHTML({ HTMLAttributes: e }) {
56107
- return ["span", Nt(this.options.HTMLAttributes, e), 0];
56107
+ return ["span", Bt(this.options.HTMLAttributes, e), 0];
56108
56108
  },
56109
56109
  addCommands() {
56110
56110
  return {
@@ -56119,7 +56119,7 @@ var Zbe = Ft.create({
56119
56119
  }
56120
56120
  };
56121
56121
  }
56122
- }), nye = Ft.create({
56122
+ }), nye = wt.create({
56123
56123
  name: "backgroundColor",
56124
56124
  addOptions() {
56125
56125
  return {
@@ -56163,7 +56163,7 @@ var Zbe = Ft.create({
56163
56163
  unsetBackgroundColor: () => ({ chain: e }) => e().setMark("textStyle", { backgroundColor: null }).removeEmptyTextStyle().run()
56164
56164
  };
56165
56165
  }
56166
- }), CH = Ft.create({
56166
+ }), CH = wt.create({
56167
56167
  name: "color",
56168
56168
  addOptions() {
56169
56169
  return {
@@ -56207,7 +56207,7 @@ var Zbe = Ft.create({
56207
56207
  unsetColor: () => ({ chain: e }) => e().setMark("textStyle", { color: null }).removeEmptyTextStyle().run()
56208
56208
  };
56209
56209
  }
56210
- }), _H = Ft.create({
56210
+ }), _H = wt.create({
56211
56211
  name: "fontFamily",
56212
56212
  addOptions() {
56213
56213
  return {
@@ -56236,7 +56236,7 @@ var Zbe = Ft.create({
56236
56236
  unsetFontFamily: () => ({ chain: e }) => e().setMark("textStyle", { fontFamily: null }).removeEmptyTextStyle().run()
56237
56237
  };
56238
56238
  }
56239
- }), rye = Ft.create({
56239
+ }), rye = wt.create({
56240
56240
  name: "fontSize",
56241
56241
  addOptions() {
56242
56242
  return {
@@ -56265,7 +56265,7 @@ var Zbe = Ft.create({
56265
56265
  unsetFontSize: () => ({ chain: e }) => e().setMark("textStyle", { fontSize: null }).removeEmptyTextStyle().run()
56266
56266
  };
56267
56267
  }
56268
- }), oye = Ft.create({
56268
+ }), oye = wt.create({
56269
56269
  name: "lineHeight",
56270
56270
  addOptions() {
56271
56271
  return {
@@ -56295,14 +56295,14 @@ var Zbe = Ft.create({
56295
56295
  };
56296
56296
  }
56297
56297
  });
56298
- Ft.create({
56298
+ wt.create({
56299
56299
  name: "textStyleKit",
56300
56300
  addExtensions() {
56301
56301
  const e = [];
56302
56302
  return this.options.backgroundColor !== !1 && e.push(nye.configure(this.options.backgroundColor)), this.options.color !== !1 && e.push(CH.configure(this.options.color)), this.options.fontFamily !== !1 && e.push(_H.configure(this.options.fontFamily)), this.options.fontSize !== !1 && e.push(rye.configure(this.options.fontSize)), this.options.lineHeight !== !1 && e.push(oye.configure(this.options.lineHeight)), this.options.textStyle !== !1 && e.push(EH.configure(this.options.textStyle)), e;
56303
56303
  }
56304
56304
  });
56305
- var iye = _H, sye = Ft.create({
56305
+ var iye = _H, sye = wt.create({
56306
56306
  name: "textAlign",
56307
56307
  addOptions() {
56308
56308
  return {
@@ -56482,7 +56482,7 @@ var pye = ({
56482
56482
  n(o, s);
56483
56483
  }
56484
56484
  e.storage.anchors = i, e.storage.content = o, t.state.tr.setMeta("toc", o), t.view.dispatch(t.state.tr);
56485
- }, fye = Ft.create({
56485
+ }, fye = wt.create({
56486
56486
  name: "tableOfContents",
56487
56487
  addStorage() {
56488
56488
  return {
@@ -56633,7 +56633,7 @@ var pye = ({
56633
56633
  ];
56634
56634
  },
56635
56635
  renderHTML({ HTMLAttributes: e }) {
56636
- return ["mark", Nt(this.options.HTMLAttributes, e), 0];
56636
+ return ["mark", Bt(this.options.HTMLAttributes, e), 0];
56637
56637
  },
56638
56638
  renderMarkdown: (e, t) => `==${t.renderChildren(e)}==`,
56639
56639
  parseMarkdown: (e, t) => t.applyMark("highlight", t.parseInline(e.tokens || [])),
@@ -56687,17 +56687,17 @@ const xye = L2e.extend({
56687
56687
  renderHTML() {
56688
56688
  return [
56689
56689
  "div",
56690
- Nt(this.options.HTMLAttributes, { "data-type": this.name }),
56690
+ Bt(this.options.HTMLAttributes, { "data-type": this.name }),
56691
56691
  ["hr"]
56692
56692
  ];
56693
56693
  }
56694
- }), vye = Ft.create({
56694
+ }), vye = wt.create({
56695
56695
  name: "columnExtension",
56696
56696
  addExtensions() {
56697
56697
  const e = [];
56698
56698
  return this.options.column !== !1 && e.push(O$), this.options.columns !== !1 && e.push(eb), e;
56699
56699
  }
56700
- }), Fye = Ft.create({
56700
+ }), Fye = wt.create({
56701
56701
  name: "CustomKeymap",
56702
56702
  addCommands() {
56703
56703
  return {
@@ -57266,7 +57266,7 @@ const xye = L2e.extend({
57266
57266
  renderHTML({ HTMLAttributes: e }) {
57267
57267
  return [
57268
57268
  "iframe",
57269
- Nt(this.options.HTMLAttributes, e)
57269
+ Bt(this.options.HTMLAttributes, e)
57270
57270
  ];
57271
57271
  },
57272
57272
  addCommands() {
@@ -58239,17 +58239,17 @@ const Ha = /* @__PURE__ */ new WeakMap(), cu = () => {
58239
58239
  }, eo = (
58240
58240
  /*#__NOINLINE__*/
58241
58241
  cu()
58242
- ), Fw = Object, rn = (e) => e === eo, qs = (e) => typeof e == "function", Nu = (e, t) => ({
58242
+ ), Fw = Object, on = (e) => e === eo, qs = (e) => typeof e == "function", Nu = (e, t) => ({
58243
58243
  ...e,
58244
58244
  ...t
58245
58245
  }), PH = (e) => qs(e.then), m4 = {}, Xg = {}, Jk = "undefined", P1 = typeof window != Jk, ww = typeof document != Jk, B3e = P1 && "Deno" in window, N3e = () => P1 && typeof window.requestAnimationFrame != Jk, zH = (e, t) => {
58246
58246
  const n = Ha.get(e);
58247
58247
  return [
58248
58248
  // Getter
58249
- () => !rn(t) && e.get(t) || m4,
58249
+ () => !on(t) && e.get(t) || m4,
58250
58250
  // Setter
58251
58251
  (r) => {
58252
- if (!rn(t)) {
58252
+ if (!on(t)) {
58253
58253
  const o = e.get(t);
58254
58254
  t in Xg || (Xg[t] = o), n[5](t, Nu(o, r), o || m4);
58255
58255
  }
@@ -58257,7 +58257,7 @@ const Ha = /* @__PURE__ */ new WeakMap(), cu = () => {
58257
58257
  // Subscriber
58258
58258
  n[6],
58259
58259
  // Get server cache snapshot
58260
- () => !rn(t) && t in Xg ? Xg[t] : !rn(t) && e.get(t) || m4
58260
+ () => !on(t) && t in Xg ? Xg[t] : !on(t) && e.get(t) || m4
58261
58261
  ];
58262
58262
  };
58263
58263
  let Dw = !0;
@@ -58269,7 +58269,7 @@ const M3e = () => Dw, [kw, Ew] = P1 && window.addEventListener ? [
58269
58269
  cu
58270
58270
  ], O3e = () => {
58271
58271
  const e = ww && document.visibilityState;
58272
- return rn(e) || e !== "hidden";
58272
+ return on(e) || e !== "hidden";
58273
58273
  }, R3e = (e) => (ww && document.addEventListener("visibilitychange", e), kw("focus", e), () => {
58274
58274
  ww && document.removeEventListener("visibilitychange", e), Ew("focus", e);
58275
58275
  }), I3e = (e) => {
@@ -58305,8 +58305,8 @@ const Cw = (e) => {
58305
58305
  if (i) {
58306
58306
  s = "#";
58307
58307
  const l = Fw.keys(e).sort();
58308
- for (; !rn(a = l.pop()); )
58309
- rn(e[a]) || (s += a + ":" + Cw(e[a]) + ",");
58308
+ for (; !on(a = l.pop()); )
58309
+ on(e[a]) || (s += a + ":" + Cw(e[a]) + ",");
58310
58310
  Yg.set(e, s);
58311
58311
  }
58312
58312
  } else
@@ -58361,7 +58361,7 @@ async function $H(...e) {
58361
58361
  C,
58362
58362
  0
58363
58363
  ];
58364
- const A = !rn(l), R = f(), T = R.data, _ = R._c, N = rn(_) ? T : _;
58364
+ const A = !on(l), R = f(), T = R.data, _ = R._c, N = on(_) ? T : _;
58365
58365
  if (A && (l = qs(l) ? l(N, T) : l, g({
58366
58366
  data: l,
58367
58367
  _c: N
@@ -58451,7 +58451,7 @@ const bT = (e, t) => {
58451
58451
  ];
58452
58452
  }, q3e = (e, t, n, r, o) => {
58453
58453
  const i = n.errorRetryCount, s = o.retryCount, a = ~~((Math.random() + 0.5) * (1 << (s < 8 ? s : 8))) * n.errorRetryInterval;
58454
- !rn(i) && s > i || setTimeout(r, a, o);
58454
+ !on(i) && s > i || setTimeout(r, a, o);
58455
58455
  }, V3e = vw, [HH, G3e] = W3e(/* @__PURE__ */ new Map()), K3e = Nu(
58456
58456
  {
58457
58457
  // events
@@ -58506,7 +58506,7 @@ const bT = (e, t) => {
58506
58506
  if (s.startsWith(Z3e))
58507
58507
  return n(...i);
58508
58508
  const l = a[s];
58509
- return rn(l) ? n(...i) : (delete a[s], l);
58509
+ return on(l) ? n(...i) : (delete a[s], l);
58510
58510
  }), r), rve = J3e.concat(nve), ove = (e) => function(...n) {
58511
58511
  const r = tve(), [o, i, s] = eve(n), a = X3e(r, s);
58512
58512
  let l = e;
@@ -58544,18 +58544,18 @@ const v4 = _t.use || // This extra generic is to avoid TypeScript mixing up the
58544
58544
  }), F4 = {
58545
58545
  dedupe: !0
58546
58546
  }, yT = Promise.resolve(eo), sve = (e, t, n) => {
58547
- const { cache: r, compare: o, suspense: i, fallbackData: s, revalidateOnMount: a, revalidateIfStale: l, refreshInterval: u, refreshWhenHidden: c, refreshWhenOffline: d, keepPreviousData: p } = n, [h, f, g, m] = Ha.get(r), [b, y] = Qk(e), x = qe(!1), v = qe(!1), k = qe(b), w = qe(t), D = qe(n), C = () => D.current, A = () => C().isVisible() && C().isOnline(), [R, T, _, N] = zH(r, b), E = qe({}).current, M = rn(s) ? rn(n.fallback) ? eo : n.fallback[b] : s, j = (ue, B) => {
58547
+ const { cache: r, compare: o, suspense: i, fallbackData: s, revalidateOnMount: a, revalidateIfStale: l, refreshInterval: u, refreshWhenHidden: c, refreshWhenOffline: d, keepPreviousData: p } = n, [h, f, g, m] = Ha.get(r), [b, y] = Qk(e), x = qe(!1), v = qe(!1), k = qe(b), w = qe(t), D = qe(n), C = () => D.current, A = () => C().isVisible() && C().isOnline(), [R, T, _, N] = zH(r, b), E = qe({}).current, M = on(s) ? on(n.fallback) ? eo : n.fallback[b] : s, j = (ue, B) => {
58548
58548
  for (const ee in E) {
58549
58549
  const ae = ee;
58550
58550
  if (ae === "data") {
58551
- if (!o(ue[ae], B[ae]) && (!rn(ue[ae]) || !o(ne, B[ae])))
58551
+ if (!o(ue[ae], B[ae]) && (!on(ue[ae]) || !o(ne, B[ae])))
58552
58552
  return !1;
58553
58553
  } else if (B[ae] !== ue[ae])
58554
58554
  return !1;
58555
58555
  }
58556
58556
  return !0;
58557
58557
  }, P = kt(() => {
58558
- const ue = !b || !t ? !1 : rn(a) ? C().isPaused() || i ? !1 : l !== !1 : a, B = (he) => {
58558
+ const ue = !b || !t ? !1 : on(a) ? C().isPaused() || i ? !1 : l !== !1 : a, B = (he) => {
58559
58559
  const De = Nu(he);
58560
58560
  return delete De._k, ue ? {
58561
58561
  isValidating: !0,
@@ -58583,7 +58583,7 @@ const v4 = _t.use || // This extra generic is to avoid TypeScript mixing up the
58583
58583
  r,
58584
58584
  b
58585
58585
  ]
58586
- ), P[0], P[1]), I = !x.current, q = h[b] && h[b].length > 0, z = L.data, $ = rn(z) ? M && PH(M) ? v4(M) : M : z, re = L.error, le = qe($), ne = p ? rn(z) ? rn(le.current) ? $ : le.current : z : $, G = q && !rn(re) ? !1 : I && !rn(a) ? a : C().isPaused() ? !1 : i ? rn($) ? !1 : l : rn($) || l, Q = !!(b && t && I && G), Y = rn(L.isValidating) ? Q : L.isValidating, oe = rn(L.isLoading) ? Q : L.isLoading, S = Se(
58586
+ ), P[0], P[1]), I = !x.current, q = h[b] && h[b].length > 0, z = L.data, $ = on(z) ? M && PH(M) ? v4(M) : M : z, re = L.error, le = qe($), ne = p ? on(z) ? on(le.current) ? $ : le.current : z : $, G = q && !on(re) ? !1 : I && !on(a) ? a : C().isPaused() ? !1 : i ? on($) ? !1 : l : on($) || l, Q = !!(b && t && I && G), Y = on(L.isValidating) ? Q : L.isValidating, oe = on(L.isLoading) ? Q : L.isLoading, S = Se(
58587
58587
  async (ue) => {
58588
58588
  const B = w.current;
58589
58589
  if (!b || !B || v.current || C().isPaused())
@@ -58600,9 +58600,9 @@ const v4 = _t.use || // This extra generic is to avoid TypeScript mixing up the
58600
58600
  }, de = {
58601
58601
  isValidating: !0
58602
58602
  };
58603
- rn(R().data) && (de.isLoading = !0);
58603
+ on(R().data) && (de.isLoading = !0);
58604
58604
  try {
58605
- if (ie && (T(de), n.loadingTimeout && rn(R().data) && setTimeout(() => {
58605
+ if (ie && (T(de), n.loadingTimeout && on(R().data) && setTimeout(() => {
58606
58606
  K && he() && C().onLoadingSlow(b, n);
58607
58607
  }, n.loadingTimeout), g[b] = [
58608
58608
  B(y),
@@ -58611,7 +58611,7 @@ const v4 = _t.use || // This extra generic is to avoid TypeScript mixing up the
58611
58611
  return ie && he() && C().onDiscarded(b), !1;
58612
58612
  De.error = eo;
58613
58613
  const fe = f[b];
58614
- if (!rn(fe) && // case 1
58614
+ if (!on(fe) && // case 1
58615
58615
  (ae <= fe[0] || // case 2
58616
58616
  ae <= fe[1] || // case 3
58617
58617
  fe[1] === 0))
@@ -58653,7 +58653,7 @@ const v4 = _t.use || // This extra generic is to avoid TypeScript mixing up the
58653
58653
  []
58654
58654
  );
58655
58655
  if (b4(() => {
58656
- w.current = t, D.current = n, rn(z) || (le.current = z);
58656
+ w.current = t, D.current = n, on(z) || (le.current = z);
58657
58657
  }), b4(() => {
58658
58658
  if (!b) return;
58659
58659
  const ue = S.bind(eo, F4);
@@ -58674,7 +58674,7 @@ const v4 = _t.use || // This extra generic is to avoid TypeScript mixing up the
58674
58674
  });
58675
58675
  return v.current = !1, k.current = b, x.current = !0, T({
58676
58676
  _k: y
58677
- }), G && (g[b] || (rn($) || qf ? ue() : P3e(ue))), () => {
58677
+ }), G && (g[b] || (on($) || qf ? ue() : P3e(ue))), () => {
58678
58678
  v.current = !0, ae();
58679
58679
  };
58680
58680
  }, [
@@ -58697,15 +58697,15 @@ const v4 = _t.use || // This extra generic is to avoid TypeScript mixing up the
58697
58697
  d,
58698
58698
  b
58699
58699
  ]), TD(ne), i) {
58700
- const ue = b && rn($);
58700
+ const ue = b && on($);
58701
58701
  if (!gT && qf && ue)
58702
58702
  throw new Error("Fallback data is required when using Suspense in SSR.");
58703
58703
  ue && (w.current = t, D.current = n, v.current = !1);
58704
- const B = m[b], ee = !rn(B) && ue ? X(B) : yT;
58705
- if (v4(ee), !rn(re) && ue)
58704
+ const B = m[b], ee = !on(B) && ue ? X(B) : yT;
58705
+ if (v4(ee), !on(re) && ue)
58706
58706
  throw re;
58707
58707
  const ae = ue ? S(F4) : yT;
58708
- !rn(ne) && ue && (ae.status = "fulfilled", ae.value = !0), v4(ae);
58708
+ !on(ne) && ue && (ae.status = "fulfilled", ae.value = !0), v4(ae);
58709
58709
  }
58710
58710
  return {
58711
58711
  mutate: X,
@@ -58831,7 +58831,7 @@ const dve = (e, t, n) => {
58831
58831
  renderHTML({ HTMLAttributes: e }) {
58832
58832
  return [
58833
58833
  "div",
58834
- Nt(this.options.HTMLAttributes, e)
58834
+ Bt(this.options.HTMLAttributes, e)
58835
58835
  ];
58836
58836
  },
58837
58837
  addNodeView() {
@@ -62203,7 +62203,7 @@ const Cve = _t.memo(
62203
62203
  text: e,
62204
62204
  position: t = "bottom",
62205
62205
  children: n
62206
- }) => /* @__PURE__ */ F.jsx(en, { text: e, position: t, children: n })
62206
+ }) => /* @__PURE__ */ F.jsx(Jt, { text: e, position: t, children: n })
62207
62207
  ), Tve = _t.memo(
62208
62208
  ({ children: e }) => /* @__PURE__ */ F.jsx(
62209
62209
  gx,
@@ -62849,7 +62849,7 @@ const QH = At.create({
62849
62849
  renderHTML({ HTMLAttributes: e }) {
62850
62850
  return [
62851
62851
  "div",
62852
- Nt(e, { "data-type": "d-block" }),
62852
+ Bt(e, { "data-type": "d-block" }),
62853
62853
  0
62854
62854
  ];
62855
62855
  },
@@ -63440,7 +63440,7 @@ const o4e = At.create({
63440
63440
  );
63441
63441
  return [
63442
63442
  "table",
63443
- Nt(this.options.HTMLAttributes, t, {
63443
+ Bt(this.options.HTMLAttributes, t, {
63444
63444
  style: r ? `width: ${r}` : `min-width: ${o}`
63445
63445
  }),
63446
63446
  n,
@@ -65031,12 +65031,12 @@ function IFe(e, t) {
65031
65031
  phase: "beforeWrite",
65032
65032
  requires: ["computeStyles"],
65033
65033
  fn: function(at) {
65034
- var Ve = at.state;
65034
+ var Ge = at.state;
65035
65035
  if (_()) {
65036
65036
  var We = M(), gt = We.box;
65037
- ["placement", "reference-hidden", "escaped"].forEach(function(wt) {
65038
- wt === "placement" ? gt.setAttribute("data-placement", Ve.placement) : Ve.attributes.popper["data-popper-" + wt] ? gt.setAttribute("data-" + wt, "") : gt.removeAttribute("data-" + wt);
65039
- }), Ve.attributes.popper = {};
65037
+ ["placement", "reference-hidden", "escaped"].forEach(function(xt) {
65038
+ xt === "placement" ? gt.setAttribute("data-placement", Ge.placement) : Ge.attributes.popper["data-popper-" + xt] ? gt.setAttribute("data-" + xt, "") : gt.removeAttribute("data-" + xt);
65039
+ }), Ge.attributes.popper = {};
65040
65040
  }
65041
65041
  }
65042
65042
  }, Re = [{
@@ -65153,8 +65153,8 @@ function IFe(e, t) {
65153
65153
  var Re;
65154
65154
  if (!(!v.state.isVisible || u)) {
65155
65155
  if (u = !0, w.offsetHeight, w.style.transition = v.props.moveTransition, _() && v.props.animation) {
65156
- var He = M(), at = He.box, Ve = He.content;
65157
- C4([at, Ve], Pe), WT([at, Ve], "visible");
65156
+ var He = M(), at = He.box, Ge = He.content;
65157
+ C4([at, Ge], Pe), WT([at, Ge], "visible");
65158
65158
  }
65159
65159
  I(), q(), $T(A4, v), (Re = v.popperInstance) == null || Re.forceUpdate(), L("onMount", [v]), v.props.animation && _() && Y(Pe, function() {
65160
65160
  v.state.isShown = !0, L("onShown", [v]);
@@ -65659,7 +65659,7 @@ const VFe = [
65659
65659
  renderHTML({ HTMLAttributes: e }) {
65660
65660
  return [
65661
65661
  "td",
65662
- Nt(this.options.HTMLAttributes, e),
65662
+ Bt(this.options.HTMLAttributes, e),
65663
65663
  0
65664
65664
  ];
65665
65665
  },
@@ -65702,7 +65702,7 @@ const VFe = [
65702
65702
  renderHTML({ HTMLAttributes: e }) {
65703
65703
  return [
65704
65704
  "th",
65705
- Nt(this.options.HTMLAttributes, e),
65705
+ Bt(this.options.HTMLAttributes, e),
65706
65706
  0
65707
65707
  ];
65708
65708
  },
@@ -65738,7 +65738,7 @@ const VFe = [
65738
65738
  renderHTML({ HTMLAttributes: e }) {
65739
65739
  return [
65740
65740
  "tr",
65741
- Nt(this.options.HTMLAttributes, e),
65741
+ Bt(this.options.HTMLAttributes, e),
65742
65742
  0
65743
65743
  ];
65744
65744
  },
@@ -65840,7 +65840,7 @@ const VFe = [
65840
65840
  function ej({ types: e, node: t }) {
65841
65841
  return t != null && t.type ? Array.isArray(e) && e.includes(t.type) || t.type === e : !1;
65842
65842
  }
65843
- const JFe = Ft.create({
65843
+ const JFe = wt.create({
65844
65844
  name: "trailingNode",
65845
65845
  addOptions() {
65846
65846
  return {
@@ -66182,7 +66182,7 @@ const JFe = Ft.create({
66182
66182
  renderHTML({ HTMLAttributes: e }) {
66183
66183
  return [
66184
66184
  "div",
66185
- Nt(e, { "data-action-node": "" }),
66185
+ Bt(e, { "data-action-node": "" }),
66186
66186
  0
66187
66187
  ];
66188
66188
  },
@@ -66899,7 +66899,7 @@ function F6e(e) {
66899
66899
  }
66900
66900
  const w6e = /* @__PURE__ */ Lu(c6e);
66901
66901
  var D6e = Object.defineProperty, k6e = (e, t, n) => t in e ? D6e(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ib = (e, t, n) => (k6e(e, typeof t != "symbol" ? t + "" : t, n), n);
66902
- const E6e = Ft.create({
66902
+ const E6e = wt.create({
66903
66903
  name: "markdownTightLists",
66904
66904
  addOptions: () => ({
66905
66905
  tight: !0,
@@ -67633,7 +67633,7 @@ class F5e {
67633
67633
  return t.renderer.rules.hardbreak = n(t.renderer.rules.hardbreak), t.renderer.rules.softbreak = n(t.renderer.rules.softbreak), t.renderer.rules.fence = n(t.renderer.rules.fence), t.renderer.rules.code_block = n(t.renderer.rules.code_block), t.renderer.renderToken = n(t.renderer.renderToken.bind(t.renderer)), t;
67634
67634
  }
67635
67635
  }
67636
- const w5e = Ft.create({
67636
+ const w5e = wt.create({
67637
67637
  name: "markdownClipboard",
67638
67638
  addOptions() {
67639
67639
  return {
@@ -67663,7 +67663,7 @@ const w5e = Ft.create({
67663
67663
  }
67664
67664
  })];
67665
67665
  }
67666
- }), D5e = Ft.create({
67666
+ }), D5e = wt.create({
67667
67667
  name: "markdown",
67668
67668
  priority: 50,
67669
67669
  addOptions() {
@@ -67781,7 +67781,7 @@ var k5e = (e) => yt({
67781
67781
  }), q5e = (e) => yt({
67782
67782
  find: /(?:^|\s)(3\/4)\s$/,
67783
67783
  replace: e ?? "¾"
67784
- }), V5e = Ft.create({
67784
+ }), V5e = wt.create({
67785
67785
  name: "typography",
67786
67786
  addOptions() {
67787
67787
  return {
@@ -72659,7 +72659,7 @@ const CCe = async (e) => await yke.format(e, {
72659
72659
  plugins: [ECe],
72660
72660
  tabWidth: 2,
72661
72661
  useTabs: !1
72662
- }), _Ce = (e, t) => Ft.create({
72662
+ }), _Ce = (e, t) => wt.create({
72663
72663
  name: "htmlExport",
72664
72664
  addCommands() {
72665
72665
  return {
@@ -72731,7 +72731,7 @@ const CCe = async (e) => await yke.format(e, {
72731
72731
  }
72732
72732
  };
72733
72733
  }
72734
- }), ACe = () => Ft.create({
72734
+ }), ACe = () => wt.create({
72735
72735
  name: "textExport",
72736
72736
  addCommands() {
72737
72737
  return {
@@ -74032,7 +74032,7 @@ var K4, NB;
74032
74032
  function jn() {
74033
74033
  if (NB) return K4;
74034
74034
  NB = 1;
74035
- var e = Eh(), t = typeof navigator > "u", n = { e: {} }, r, o = typeof self < "u" ? self : typeof window < "u" ? window : typeof Bt < "u" || Bt !== void 0 ? Bt : null;
74035
+ var e = Eh(), t = typeof navigator > "u", n = { e: {} }, r, o = typeof self < "u" ? self : typeof window < "u" ? window : typeof jt < "u" || jt !== void 0 ? jt : null;
74036
74036
  function i() {
74037
74037
  try {
74038
74038
  var $ = r;
@@ -74300,9 +74300,9 @@ function n_e() {
74300
74300
  `);
74301
74301
  }, r = e.getNativePromise();
74302
74302
  if (e.isNode && typeof MutationObserver > "u") {
74303
- var o = Bt.setImmediate, i = process.nextTick;
74303
+ var o = jt.setImmediate, i = process.nextTick;
74304
74304
  t = e.isRecentNode ? function(a) {
74305
- o.call(Bt, a);
74305
+ o.call(jt, a);
74306
74306
  } : function(a) {
74307
74307
  i.call(process, a);
74308
74308
  };
@@ -77297,7 +77297,7 @@ function M_e() {
77297
77297
  promise: n
77298
77298
  };
77299
77299
  }
77300
- var Jt = {}, O_e = Qn, Gr = Jt.types = {
77300
+ var Qt = {}, O_e = Qn, Gr = Qt.types = {
77301
77301
  document: "document",
77302
77302
  paragraph: "paragraph",
77303
77303
  run: "run",
@@ -77495,27 +77495,27 @@ function Z_e(e) {
77495
77495
  name: e.name
77496
77496
  };
77497
77497
  }
77498
- Jt.document = Jt.Document = R_e;
77499
- Jt.paragraph = Jt.Paragraph = I_e;
77500
- Jt.run = Jt.Run = L_e;
77501
- Jt.text = Jt.Text = U_e;
77502
- Jt.tab = Jt.Tab = P_e;
77503
- Jt.checkbox = Jt.Checkbox = z_e;
77504
- Jt.Hyperlink = $_e;
77505
- Jt.noteReference = Jt.NoteReference = H_e;
77506
- Jt.Notes = Wx;
77507
- Jt.Note = W_e;
77508
- Jt.commentReference = q_e;
77509
- Jt.comment = V_e;
77510
- Jt.Image = G_e;
77511
- Jt.Table = K_e;
77512
- Jt.TableRow = X_e;
77513
- Jt.TableCell = Y_e;
77514
- Jt.lineBreak = jE("line");
77515
- Jt.pageBreak = jE("page");
77516
- Jt.columnBreak = jE("column");
77517
- Jt.BookmarkStart = Z_e;
77518
- Jt.verticalAlignment = ZG;
77498
+ Qt.document = Qt.Document = R_e;
77499
+ Qt.paragraph = Qt.Paragraph = I_e;
77500
+ Qt.run = Qt.Run = L_e;
77501
+ Qt.text = Qt.Text = U_e;
77502
+ Qt.tab = Qt.Tab = P_e;
77503
+ Qt.checkbox = Qt.Checkbox = z_e;
77504
+ Qt.Hyperlink = $_e;
77505
+ Qt.noteReference = Qt.NoteReference = H_e;
77506
+ Qt.Notes = Wx;
77507
+ Qt.Note = W_e;
77508
+ Qt.commentReference = q_e;
77509
+ Qt.comment = V_e;
77510
+ Qt.Image = G_e;
77511
+ Qt.Table = K_e;
77512
+ Qt.TableRow = X_e;
77513
+ Qt.TableCell = Y_e;
77514
+ Qt.lineBreak = jE("line");
77515
+ Qt.pageBreak = jE("page");
77516
+ Qt.columnBreak = jE("column");
77517
+ Qt.BookmarkStart = Z_e;
77518
+ Qt.verticalAlignment = ZG;
77519
77519
  var Ei = {}, o1 = Qn;
77520
77520
  Ei.Result = pa;
77521
77521
  Ei.success = J_e;
@@ -78642,7 +78642,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
78642
78642
  r.exports = function(g) {
78643
78643
  h.push(g) !== 1 || a || s();
78644
78644
  };
78645
- }).call(this, typeof Bt < "u" ? Bt : typeof self < "u" ? self : typeof window < "u" ? window : {});
78645
+ }).call(this, typeof jt < "u" ? jt : typeof self < "u" ? self : typeof window < "u" ? window : {});
78646
78646
  }, {}], 37: [function(n, r, o) {
78647
78647
  var i = n("immediate");
78648
78648
  function s() {
@@ -79881,7 +79881,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
79881
79881
  v.source === s && typeof v.data == "string" && v.data.indexOf(d) === 0 && y(+v.data.slice(d.length));
79882
79882
  }
79883
79883
  })(typeof self > "u" ? i === void 0 ? this : i : self);
79884
- }).call(this, typeof Bt < "u" ? Bt : typeof self < "u" ? self : typeof window < "u" ? window : {});
79884
+ }).call(this, typeof jt < "u" ? jt : typeof self < "u" ? self : typeof window < "u" ? window : {});
79885
79885
  }, {}] }, {}, [10])(10);
79886
79886
  });
79887
79887
  })(QG);
@@ -83830,7 +83830,7 @@ function Xu() {
83830
83830
  }, t = function(u) {
83831
83831
  return o(u.valueOf) ? u.valueOf() : u;
83832
83832
  }, Ba.assign = e, Ba.isFunction = o, Ba.isObject = i, Ba.isArray = n, Ba.isEmpty = r, Ba.isPlainObject = s, Ba.getValue = t;
83833
- }).call(Bt)), Ba;
83833
+ }).call(jt)), Ba;
83834
83834
  }
83835
83835
  var AF = { exports: {} }, SF = { exports: {} }, TF = { exports: {} }, jF = { exports: {} }, SN;
83836
83836
  function RK() {
@@ -83851,7 +83851,7 @@ function RK() {
83851
83851
  return t = t || this.name, t == null ? "parent: <" + this.parent.name + ">" : "attribute: {" + t + "}, parent: <" + this.parent.name + ">";
83852
83852
  }, e;
83853
83853
  }();
83854
- }).call(Bt)), jF.exports;
83854
+ }).call(jt)), jF.exports;
83855
83855
  }
83856
83856
  var TN;
83857
83857
  function Yx() {
@@ -83906,7 +83906,7 @@ function Yx() {
83906
83906
  return this.attribute(c, d);
83907
83907
  }, u;
83908
83908
  }(t);
83909
- }).call(Bt)), TF.exports;
83909
+ }).call(jt)), TF.exports;
83910
83910
  }
83911
83911
  var BF = { exports: {} }, jN;
83912
83912
  function Zx() {
@@ -83932,7 +83932,7 @@ function Zx() {
83932
83932
  return this.options.writer.set(i).cdata(this);
83933
83933
  }, o;
83934
83934
  }(e);
83935
- }).call(Bt)), BF.exports;
83935
+ }).call(jt)), BF.exports;
83936
83936
  }
83937
83937
  var NF = { exports: {} }, BN;
83938
83938
  function Jx() {
@@ -83958,7 +83958,7 @@ function Jx() {
83958
83958
  return this.options.writer.set(i).comment(this);
83959
83959
  }, o;
83960
83960
  }(e);
83961
- }).call(Bt)), NF.exports;
83961
+ }).call(jt)), NF.exports;
83962
83962
  }
83963
83963
  var MF = { exports: {} }, NN;
83964
83964
  function Qx() {
@@ -83981,7 +83981,7 @@ function Qx() {
83981
83981
  return this.options.writer.set(s).declaration(this);
83982
83982
  }, i;
83983
83983
  }(e);
83984
- }).call(Bt)), MF.exports;
83984
+ }).call(jt)), MF.exports;
83985
83985
  }
83986
83986
  var OF = { exports: {} }, RF = { exports: {} }, MN;
83987
83987
  function e3() {
@@ -84015,7 +84015,7 @@ function e3() {
84015
84015
  return this.options.writer.set(i).dtdAttList(this);
84016
84016
  }, o;
84017
84017
  }(e);
84018
- }).call(Bt)), RF.exports;
84018
+ }).call(jt)), RF.exports;
84019
84019
  }
84020
84020
  var IF = { exports: {} }, ON;
84021
84021
  function t3() {
@@ -84050,7 +84050,7 @@ function t3() {
84050
84050
  return this.options.writer.set(s).dtdEntity(this);
84051
84051
  }, i;
84052
84052
  }(e);
84053
- }).call(Bt)), IF.exports;
84053
+ }).call(jt)), IF.exports;
84054
84054
  }
84055
84055
  var LF = { exports: {} }, RN;
84056
84056
  function n3() {
@@ -84074,7 +84074,7 @@ function n3() {
84074
84074
  return this.options.writer.set(i).dtdElement(this);
84075
84075
  }, o;
84076
84076
  }(e);
84077
- }).call(Bt)), LF.exports;
84077
+ }).call(jt)), LF.exports;
84078
84078
  }
84079
84079
  var UF = { exports: {} }, IN;
84080
84080
  function r3() {
@@ -84100,7 +84100,7 @@ function r3() {
84100
84100
  return this.options.writer.set(i).dtdNotation(this);
84101
84101
  }, o;
84102
84102
  }(e);
84103
- }).call(Bt)), UF.exports;
84103
+ }).call(jt)), UF.exports;
84104
84104
  }
84105
84105
  var LN;
84106
84106
  function o3() {
@@ -84150,7 +84150,7 @@ function o3() {
84150
84150
  return this.root() || this.documentObject;
84151
84151
  }, u;
84152
84152
  }(o);
84153
- }).call(Bt)), OF.exports;
84153
+ }).call(jt)), OF.exports;
84154
84154
  }
84155
84155
  var PF = { exports: {} }, UN;
84156
84156
  function i3() {
@@ -84176,7 +84176,7 @@ function i3() {
84176
84176
  return this.options.writer.set(i).raw(this);
84177
84177
  }, o;
84178
84178
  }(e);
84179
- }).call(Bt)), PF.exports;
84179
+ }).call(jt)), PF.exports;
84180
84180
  }
84181
84181
  var zF = { exports: {} }, PN;
84182
84182
  function s3() {
@@ -84202,7 +84202,7 @@ function s3() {
84202
84202
  return this.options.writer.set(i).text(this);
84203
84203
  }, o;
84204
84204
  }(e);
84205
- }).call(Bt)), zF.exports;
84205
+ }).call(jt)), zF.exports;
84206
84206
  }
84207
84207
  var $F = { exports: {} }, zN;
84208
84208
  function a3() {
@@ -84228,7 +84228,7 @@ function a3() {
84228
84228
  return this.options.writer.set(i).processingInstruction(this);
84229
84229
  }, o;
84230
84230
  }(e);
84231
- }).call(Bt)), $F.exports;
84231
+ }).call(jt)), $F.exports;
84232
84232
  }
84233
84233
  var HF = { exports: {} }, $N;
84234
84234
  function qE() {
@@ -84252,7 +84252,7 @@ function qE() {
84252
84252
  return "";
84253
84253
  }, o;
84254
84254
  }(e);
84255
- }).call(Bt)), HF.exports;
84255
+ }).call(jt)), HF.exports;
84256
84256
  }
84257
84257
  var HN;
84258
84258
  function si() {
@@ -84430,7 +84430,7 @@ function si() {
84430
84430
  return this.importDocument(m);
84431
84431
  }, g;
84432
84432
  }();
84433
- }).call(Bt)), SF.exports;
84433
+ }).call(jt)), SF.exports;
84434
84434
  }
84435
84435
  var WF = { exports: {} }, WN;
84436
84436
  function IK() {
@@ -84507,7 +84507,7 @@ function IK() {
84507
84507
  return o = this.noDoubleEncoding ? /(?!&\S+;)&/g : /&/g, r.replace(o, "&amp;").replace(/</g, "&lt;").replace(/"/g, "&quot;").replace(/\t/g, "&#x9;").replace(/\n/g, "&#xA;").replace(/\r/g, "&#xD;");
84508
84508
  }, n;
84509
84509
  }();
84510
- }).call(Bt)), WF.exports;
84510
+ }).call(jt)), WF.exports;
84511
84511
  }
84512
84512
  var qF = { exports: {} }, VF = { exports: {} }, qN;
84513
84513
  function LK() {
@@ -84533,7 +84533,7 @@ function LK() {
84533
84533
  return this.pretty ? (r = (n || 0) + this.offset + 1, r > 0 ? new Array(r).join(this.indent) : "") : "";
84534
84534
  }, t;
84535
84535
  }();
84536
- }).call(Bt)), VF.exports;
84536
+ }).call(jt)), VF.exports;
84537
84537
  }
84538
84538
  var VN;
84539
84539
  function VE() {
@@ -84684,7 +84684,7 @@ function VE() {
84684
84684
  }
84685
84685
  }, b;
84686
84686
  }(h);
84687
- }).call(Bt)), qF.exports;
84687
+ }).call(jt)), qF.exports;
84688
84688
  }
84689
84689
  var GN;
84690
84690
  function $Ae() {
@@ -84709,7 +84709,7 @@ function $Ae() {
84709
84709
  return this.options.writer.set(l).document(this);
84710
84710
  }, a;
84711
84711
  }(e);
84712
- }).call(Bt)), AF.exports;
84712
+ }).call(jt)), AF.exports;
84713
84713
  }
84714
84714
  var GF = { exports: {} }, KN;
84715
84715
  function HAe() {
@@ -84855,7 +84855,7 @@ function HAe() {
84855
84855
  return this.notation(w, D);
84856
84856
  }, k;
84857
84857
  }();
84858
- }).call(Bt)), GF.exports;
84858
+ }).call(jt)), GF.exports;
84859
84859
  }
84860
84860
  var KF = { exports: {} }, XN;
84861
84861
  function WAe() {
@@ -84994,7 +84994,7 @@ function WAe() {
84994
84994
  return y.isLastRootNode ? "" : this.newline;
84995
84995
  }, b;
84996
84996
  }(h);
84997
- }).call(Bt)), KF.exports;
84997
+ }).call(jt)), KF.exports;
84998
84998
  }
84999
84999
  (function() {
85000
85000
  var e, t, n, r, o, i, s;
@@ -85011,7 +85011,7 @@ function WAe() {
85011
85011
  }, x0.streamWriter = function(a, l) {
85012
85012
  return new n(a, l);
85013
85013
  };
85014
- }).call(Bt);
85014
+ }).call(jt);
85015
85015
  var YN = Qn, qAe = x0;
85016
85016
  OK.writeString = VAe;
85017
85017
  function VAe(e, t) {
@@ -86167,7 +86167,7 @@ var eSe = [
86167
86167
  { "Typeface name": "Wingdings 3", "Dingbat dec": "240", "Dingbat hex": "F0", "Unicode dec": "129175", "Unicode hex": "1F897" }
86168
86168
  ];
86169
86169
  KE.default = eSe;
86170
- var tSe = Bt && Bt.__importDefault || function(e) {
86170
+ var tSe = jt && jt.__importDefault || function(e) {
86171
86171
  return e && e.__esModule ? e : { default: e };
86172
86172
  };
86173
86173
  Object.defineProperty(xu, "__esModule", { value: !0 });
@@ -86253,7 +86253,7 @@ function pSe(e, t) {
86253
86253
  }
86254
86254
  GE.createBodyReader = fSe;
86255
86255
  GE._readNumberingProperties = VK;
86256
- var eM = xu, Mi = Qn, Nn = Jt, qK = Ei.Result, Na = Ei.warning, hSe = Tl, tM = Yu, nM = ZE;
86256
+ var eM = xu, Mi = Qn, Nn = Qt, qK = Ei.Result, Na = Ei.warning, hSe = Tl, tM = Yu, nM = ZE;
86257
86257
  function fSe(e) {
86258
86258
  return {
86259
86259
  readXmlElement: function(t) {
@@ -86770,7 +86770,7 @@ function bSe(e) {
86770
86770
  }
86771
86771
  var GK = {};
86772
86772
  GK.DocumentXmlReader = vSe;
86773
- var ySe = Jt, xSe = Ei.Result;
86773
+ var ySe = Qt, xSe = Ei.Result;
86774
86774
  function vSe(e) {
86775
86775
  var t = e.bodyReader;
86776
86776
  function n(r) {
@@ -86980,9 +86980,9 @@ function jSe(e, t) {
86980
86980
  function XK(e) {
86981
86981
  return e.attributes["w:styleId"];
86982
86982
  }
86983
- var t7 = {}, BSe = Jt, NSe = Ei.Result;
86984
- t7.createFootnotesReader = YK.bind(Bt, "footnote");
86985
- t7.createEndnotesReader = YK.bind(Bt, "endnote");
86983
+ var t7 = {}, BSe = Qt, NSe = Ei.Result;
86984
+ t7.createFootnotesReader = YK.bind(jt, "footnote");
86985
+ t7.createEndnotesReader = YK.bind(jt, "endnote");
86986
86986
  function YK(e, t) {
86987
86987
  function n(i) {
86988
86988
  return NSe.combine(i.getElementsByTagName("w:" + e).filter(r).map(o));
@@ -86999,7 +86999,7 @@ function YK(e, t) {
86999
86999
  }
87000
87000
  return n;
87001
87001
  }
87002
- var ZK = {}, MSe = Jt, OSe = Ei.Result;
87002
+ var ZK = {}, MSe = Qt, OSe = Ei.Result;
87003
87003
  function RSe(e) {
87004
87004
  function t(r) {
87005
87005
  return OSe.combine(r.getElementsByTagName("w:comment").map(n));
@@ -87034,7 +87034,7 @@ cannot open linked files from a web browser`));
87034
87034
  }
87035
87035
  TE.read = qSe;
87036
87036
  TE._findPartPaths = eX;
87037
- var USe = Or, PSe = Jt, ZF = Ei.Result, ny = tg, QK = NE.readXmlFromZipFile, zSe = GE.createBodyReader, $Se = GK.DocumentXmlReader, eh = c3, iM = QE, sM = d3, aM = p3, lM = t7, HSe = ZK, WSe = JK.Files;
87037
+ var USe = Or, PSe = Qt, ZF = Ei.Result, ny = tg, QK = NE.readXmlFromZipFile, zSe = GE.createBodyReader, $Se = GK.DocumentXmlReader, eh = c3, iM = QE, sM = d3, aM = p3, lM = t7, HSe = ZK, WSe = JK.Files;
87038
87038
  function qSe(e, t, n) {
87039
87039
  t = t || {}, n = n || {};
87040
87040
  var r = new WSe({
@@ -87643,7 +87643,7 @@ iX.writer = bTe;
87643
87643
  function bTe(e) {
87644
87644
  return e = e || {}, e.outputFormat === "markdown" ? mTe.writer() : gTe.writer(e);
87645
87645
  }
87646
- var Xl = Qn, mM = Or, n2 = Jt, _i = f3(), iD = Ei, yTe = o7, Qt = h3(), xTe = iX;
87646
+ var Xl = Qn, mM = Or, n2 = Qt, _i = f3(), iD = Ei, yTe = o7, tn = h3(), xTe = iX;
87647
87647
  r7.DocumentConverter = vTe;
87648
87648
  function vTe(e) {
87649
87649
  return {
@@ -87684,7 +87684,7 @@ function FTe(e, t) {
87684
87684
  prettyPrint: e.prettyPrint,
87685
87685
  outputFormat: e.outputFormat
87686
87686
  });
87687
- return Qt.write(le, Qt.simplify(re(q))), new iD.Result(le.asString(), I);
87687
+ return tn.write(le, tn.simplify(re(q))), new iD.Result(le.asString(), I);
87688
87688
  });
87689
87689
  }
87690
87690
  function c(L, I, q) {
@@ -87701,7 +87701,7 @@ function FTe(e, t) {
87701
87701
  function p(L, I, q) {
87702
87702
  return h(L, I).wrap(function() {
87703
87703
  var z = c(L.children, I, q);
87704
- return s ? z : [Qt.forceWrite].concat(z);
87704
+ return s ? z : [tn.forceWrite].concat(z);
87705
87705
  });
87706
87706
  }
87707
87707
  function h(L, I) {
@@ -87790,51 +87790,51 @@ function FTe(e, t) {
87790
87790
  Xl.extend({}, q, { isTableHeader: !1 })
87791
87791
  );
87792
87792
  $ = [
87793
- Qt.freshElement("thead", {}, re),
87794
- Qt.freshElement("tbody", {}, le)
87793
+ tn.freshElement("thead", {}, re),
87794
+ tn.freshElement("tbody", {}, le)
87795
87795
  ];
87796
87796
  }
87797
- return [Qt.forceWrite].concat($);
87797
+ return [tn.forceWrite].concat($);
87798
87798
  }
87799
87799
  function T(L, I, q) {
87800
87800
  var z = c(L.children, I, q);
87801
87801
  return [
87802
- Qt.freshElement("tr", {}, [Qt.forceWrite].concat(z))
87802
+ tn.freshElement("tr", {}, [tn.forceWrite].concat(z))
87803
87803
  ];
87804
87804
  }
87805
87805
  function _(L, I, q) {
87806
87806
  var z = q.isTableHeader ? "th" : "td", $ = c(L.children, I, q), re = {};
87807
87807
  return L.colSpan !== 1 && (re.colspan = L.colSpan.toString()), L.rowSpan !== 1 && (re.rowspan = L.rowSpan.toString()), [
87808
- Qt.freshElement(z, re, [Qt.forceWrite].concat($))
87808
+ tn.freshElement(z, re, [tn.forceWrite].concat($))
87809
87809
  ];
87810
87810
  }
87811
87811
  function N(L, I, q) {
87812
87812
  return m(L, _i.ignore).wrap(function() {
87813
87813
  var z = t[L.commentId], $ = o.length + 1, re = "[" + kTe(z) + $ + "]";
87814
87814
  return o.push({ label: re, comment: z }), [
87815
- Qt.freshElement("a", {
87815
+ tn.freshElement("a", {
87816
87816
  href: "#" + k("comment", L.commentId),
87817
87817
  id: w("comment", L.commentId)
87818
- }, [Qt.text(re)])
87818
+ }, [tn.text(re)])
87819
87819
  ];
87820
87820
  });
87821
87821
  }
87822
87822
  function E(L, I, q) {
87823
87823
  var z = L.label, $ = L.comment, re = c($.body, I, q).concat([
87824
- Qt.nonFreshElement("p", {}, [
87825
- Qt.text(" "),
87826
- Qt.freshElement("a", { href: "#" + w("comment", $.commentId) }, [
87827
- Qt.text("↑")
87824
+ tn.nonFreshElement("p", {}, [
87825
+ tn.text(" "),
87826
+ tn.freshElement("a", { href: "#" + w("comment", $.commentId) }, [
87827
+ tn.text("↑")
87828
87828
  ])
87829
87829
  ])
87830
87830
  ]);
87831
87831
  return [
87832
- Qt.freshElement(
87832
+ tn.freshElement(
87833
87833
  "dt",
87834
87834
  { id: k("comment", $.commentId) },
87835
- [Qt.text("Comment " + z)]
87835
+ [tn.text("Comment " + z)]
87836
87836
  ),
87837
- Qt.freshElement("dd", {}, re)
87837
+ tn.freshElement("dd", {}, re)
87838
87838
  ];
87839
87839
  }
87840
87840
  function M(L, I, q) {
@@ -87852,8 +87852,8 @@ function FTe(e, t) {
87852
87852
  return L.notes.resolve(le);
87853
87853
  }), re = c($, I, q);
87854
87854
  return z.concat([
87855
- Qt.freshElement("ol", {}, re),
87856
- Qt.freshElement("dl", {}, QF(o, function(le) {
87855
+ tn.freshElement("ol", {}, re),
87856
+ tn.freshElement("dl", {}, QF(o, function(le) {
87857
87857
  return E(le, I, q);
87858
87858
  }))
87859
87859
  ]);
@@ -87861,41 +87861,41 @@ function FTe(e, t) {
87861
87861
  paragraph: p,
87862
87862
  run: f,
87863
87863
  text: function(L, I, q) {
87864
- return [Qt.text(L.value)];
87864
+ return [tn.text(L.value)];
87865
87865
  },
87866
87866
  tab: function(L, I, q) {
87867
- return [Qt.text(" ")];
87867
+ return [tn.text(" ")];
87868
87868
  },
87869
87869
  hyperlink: function(L, I, q) {
87870
87870
  var z = L.anchor ? "#" + D(L.anchor) : L.href, $ = { href: z };
87871
87871
  L.targetFrame != null && ($.target = L.targetFrame);
87872
87872
  var re = c(L.children, I, q);
87873
- return [Qt.nonFreshElement("a", $, re)];
87873
+ return [tn.nonFreshElement("a", $, re)];
87874
87874
  },
87875
87875
  checkbox: function(L) {
87876
87876
  var I = { type: "checkbox" };
87877
- return L.checked && (I.checked = "checked"), [Qt.freshElement("input", I)];
87877
+ return L.checked && (I.checked = "checked"), [tn.freshElement("input", I)];
87878
87878
  },
87879
87879
  bookmarkStart: function(L, I, q) {
87880
- var z = Qt.freshElement("a", {
87880
+ var z = tn.freshElement("a", {
87881
87881
  id: D(L.name)
87882
- }, [Qt.forceWrite]);
87882
+ }, [tn.forceWrite]);
87883
87883
  return [z];
87884
87884
  },
87885
87885
  noteReference: function(L, I, q) {
87886
87886
  r.push(L);
87887
- var z = Qt.freshElement("a", {
87887
+ var z = tn.freshElement("a", {
87888
87888
  href: "#" + x(L),
87889
87889
  id: v(L)
87890
- }, [Qt.text("[" + n++ + "]")]);
87891
- return [Qt.freshElement("sup", {}, [z])];
87890
+ }, [tn.text("[" + n++ + "]")]);
87891
+ return [tn.freshElement("sup", {}, [z])];
87892
87892
  },
87893
87893
  note: function(L, I, q) {
87894
- var z = c(L.body, I, q), $ = Qt.elementWithTag(_i.element("p", {}, { fresh: !1 }), [
87895
- Qt.text(" "),
87896
- Qt.freshElement("a", { href: "#" + v(L) }, [Qt.text("↑")])
87894
+ var z = c(L.body, I, q), $ = tn.elementWithTag(_i.element("p", {}, { fresh: !1 }), [
87895
+ tn.text(" "),
87896
+ tn.freshElement("a", { href: "#" + v(L) }, [tn.text("↑")])
87897
87897
  ]), re = z.concat([$]);
87898
- return Qt.freshElement("li", { id: x(L) }, re);
87898
+ return tn.freshElement("li", { id: x(L) }, re);
87899
87899
  },
87900
87900
  commentReference: N,
87901
87901
  comment: E,
@@ -87938,7 +87938,7 @@ function pX(e, t) {
87938
87938
  }
87939
87939
  var kTe = r7.commentAuthorLabel = function(t) {
87940
87940
  return t.authorInitials || "";
87941
- }, hX = {}, ETe = Jt;
87941
+ }, hX = {}, ETe = Qt;
87942
87942
  function fX(e) {
87943
87943
  if (e.type === "text")
87944
87944
  return e.value;
@@ -89108,7 +89108,7 @@ function Dje(e, t) {
89108
89108
  Qo.styleMapping = function() {
89109
89109
  throw new Error(`Use a raw string instead of mammoth.styleMapping e.g. "p[style-name='Title'] => h1" instead of mammoth.styleMapping("p[style-name='Title'] => h1")`);
89110
89110
  };
89111
- const kje = Ft.create({
89111
+ const kje = wt.create({
89112
89112
  name: "docxFileHandler",
89113
89113
  addCommands() {
89114
89114
  return {
@@ -90063,7 +90063,7 @@ const LX = { addInlineMath: !0, evaluation: !1, delimiters: "dollar", renderText
90063
90063
  let n = "x";
90064
90064
  return e.attrs.latex && typeof e.attrs.latex == "string" && (n = e.attrs.latex), [
90065
90065
  "span",
90066
- Nt(t, {
90066
+ Bt(t, {
90067
90067
  "data-type": this.name
90068
90068
  }),
90069
90069
  mm(e.attrs.display === "yes" ? "block" : "inline", "start", this.options) + n + mm(e.attrs.display === "yes" ? "block" : "inline", "end", this.options)
@@ -90144,7 +90144,7 @@ function mm(e, t, n) {
90144
90144
  var r, o, i, s;
90145
90145
  return n.delimiters === void 0 || n.delimiters === "dollar" ? e === "inline" ? "$" : "$$" : n.delimiters === "bracket" ? e === "inline" ? t === "start" ? String.raw`\(` : String.raw`\)` : t === "start" ? String.raw`\[` : String.raw`\]` : e === "inline" ? t === "start" ? (r = n.delimiters.inlineStart) !== null && r !== void 0 ? r : "$" : (o = n.delimiters.inlineEnd) !== null && o !== void 0 ? o : "$" : t === "start" ? (i = n.delimiters.blockStart) !== null && i !== void 0 ? i : "$$" : (s = n.delimiters.blockEnd) !== null && s !== void 0 ? s : "$$";
90146
90146
  }
90147
- const wBe = "mathExtension", DBe = Ft.create({
90147
+ const wBe = "mathExtension", DBe = wt.create({
90148
90148
  name: wBe,
90149
90149
  addOptions() {
90150
90150
  return LX;
@@ -90165,7 +90165,7 @@ const wBe = "mathExtension", DBe = Ft.create({
90165
90165
  ];
90166
90166
  },
90167
90167
  renderHTML({ HTMLAttributes: e }) {
90168
- return ["footnote", Nt(e), 0];
90168
+ return ["footnote", Bt(e), 0];
90169
90169
  }
90170
90170
  });
90171
90171
  At.create({
@@ -90188,7 +90188,7 @@ At.create({
90188
90188
  ];
90189
90189
  },
90190
90190
  renderHTML({ HTMLAttributes: e }) {
90191
- return ["footnote-ref", Nt(e)];
90191
+ return ["footnote-ref", Bt(e)];
90192
90192
  }
90193
90193
  });
90194
90194
  var EBe = Mr.create({
@@ -90212,7 +90212,7 @@ var EBe = Mr.create({
90212
90212
  ];
90213
90213
  },
90214
90214
  renderHTML({ HTMLAttributes: e }) {
90215
- return ["sup", Nt(this.options.HTMLAttributes, e), 0];
90215
+ return ["sup", Bt(this.options.HTMLAttributes, e), 0];
90216
90216
  },
90217
90217
  addCommands() {
90218
90218
  return {
@@ -90247,7 +90247,7 @@ var EBe = Mr.create({
90247
90247
  ];
90248
90248
  },
90249
90249
  renderHTML({ HTMLAttributes: e }) {
90250
- return ["sub", Nt(this.options.HTMLAttributes, e), 0];
90250
+ return ["sub", Bt(this.options.HTMLAttributes, e), 0];
90251
90251
  },
90252
90252
  addCommands() {
90253
90253
  return {
@@ -90423,10 +90423,10 @@ const SBe = (e, t) => new Et({
90423
90423
  const { "media-type": t } = e;
90424
90424
  return t === "img" ? [
90425
90425
  "img",
90426
- Nt(this.options.HTMLAttributes, e)
90426
+ Bt(this.options.HTMLAttributes, e)
90427
90427
  ] : t === "secure-img" ? [
90428
90428
  "img",
90429
- Nt(this.options.HTMLAttributes, e)
90429
+ Bt(this.options.HTMLAttributes, e)
90430
90430
  ] : t === "video" ? [
90431
90431
  "video",
90432
90432
  { controls: "true", style: "width: 100%", ...e },
@@ -90435,7 +90435,7 @@ const SBe = (e, t) => new Et({
90435
90435
  "TiptapMediaExtension-renderHTML method: Media Type not set, going default with image"
90436
90436
  ), [
90437
90437
  "img",
90438
- Nt(this.options.HTMLAttributes, e)
90438
+ Bt(this.options.HTMLAttributes, e)
90439
90439
  ]);
90440
90440
  },
90441
90441
  addCommands() {
@@ -90626,7 +90626,7 @@ const NBe = ({
90626
90626
  ] })
90627
90627
  ] })
90628
90628
  ] }) : /* @__PURE__ */ F.jsx("p", { className: "text-helper-text-sm color-text-secondary", children: "No preview available" }) });
90629
- }, MBe = Ft.create({
90629
+ }, MBe = wt.create({
90630
90630
  name: "linkPreview",
90631
90631
  addProseMirrorPlugins() {
90632
90632
  if (!this.options.metadataProxyUrl) return [];
@@ -90749,11 +90749,11 @@ const NBe = ({
90749
90749
  renderHTML({ HTMLAttributes: e }) {
90750
90750
  return [
90751
90751
  "aside",
90752
- Nt(this.options.HTMLAttributes, e),
90752
+ Bt(this.options.HTMLAttributes, e),
90753
90753
  0
90754
90754
  ];
90755
90755
  }
90756
- }), RBe = Ft.create({
90756
+ }), RBe = wt.create({
90757
90757
  name: "fontSize",
90758
90758
  addOptions() {
90759
90759
  return {
@@ -90847,7 +90847,7 @@ const NBe = ({
90847
90847
  "Mod-Shift-,": () => this.editor.commands.decreaseFontSize()
90848
90848
  };
90849
90849
  }
90850
- }), IBe = Ft.create({
90850
+ }), IBe = wt.create({
90851
90851
  name: "fontFamilyPersistence",
90852
90852
  addCommands() {
90853
90853
  const e = (t) => {
@@ -90890,7 +90890,7 @@ const NBe = ({
90890
90890
  }
90891
90891
  ];
90892
90892
  }
90893
- }), LBe = Ft.create({
90893
+ }), LBe = wt.create({
90894
90894
  name: "typographyPersistence",
90895
90895
  addProseMirrorPlugins() {
90896
90896
  return [
@@ -92230,7 +92230,7 @@ function UNe({
92230
92230
  value: a,
92231
92231
  onValueChange: (y) => t({ language: y }),
92232
92232
  children: [
92233
- /* @__PURE__ */ F.jsx(Q0, { className: "!min-w-24 text-helper-text-sm h-7 px-2 py-1 color-bg-secondary border-none", children: /* @__PURE__ */ F.jsxs(en, { text: "Select language", children: [
92233
+ /* @__PURE__ */ F.jsx(Q0, { className: "!min-w-24 text-helper-text-sm h-7 px-2 py-1 color-bg-secondary border-none", children: /* @__PURE__ */ F.jsxs(Jt, { text: "Select language", children: [
92234
92234
  /* @__PURE__ */ F.jsx(d2, { placeholder: "Select language" }),
92235
92235
  /* @__PURE__ */ F.jsx("span", { className: "w-1" })
92236
92236
  ] }) }),
@@ -92257,7 +92257,7 @@ function UNe({
92257
92257
  }
92258
92258
  ),
92259
92259
  /* @__PURE__ */ F.jsx("div", { className: "w-[1px] h-4 vertical-divider mx-1" }),
92260
- /* @__PURE__ */ F.jsx(en, { text: "Copy code", children: /* @__PURE__ */ F.jsx(
92260
+ /* @__PURE__ */ F.jsx(Jt, { text: "Copy code", children: /* @__PURE__ */ F.jsx(
92261
92261
  Xt,
92262
92262
  {
92263
92263
  variant: "ghost",
@@ -92291,7 +92291,7 @@ function UNe({
92291
92291
  }
92292
92292
  ) }),
92293
92293
  /* @__PURE__ */ F.jsx("div", { className: "w-[1px] h-4 vertical-divider mx-1" }),
92294
- /* @__PURE__ */ F.jsx(en, { text: "Line numbers", children: /* @__PURE__ */ F.jsx(
92294
+ /* @__PURE__ */ F.jsx(Jt, { text: "Line numbers", children: /* @__PURE__ */ F.jsx(
92295
92295
  Xt,
92296
92296
  {
92297
92297
  variant: "ghost",
@@ -92305,7 +92305,7 @@ function UNe({
92305
92305
  }
92306
92306
  ) }),
92307
92307
  /* @__PURE__ */ F.jsx("div", { className: "w-[1px] h-4 vertical-divider mx-1" }),
92308
- /* @__PURE__ */ F.jsx(en, { text: "Word wrap", children: /* @__PURE__ */ F.jsx(
92308
+ /* @__PURE__ */ F.jsx(Jt, { text: "Word wrap", children: /* @__PURE__ */ F.jsx(
92309
92309
  Xt,
92310
92310
  {
92311
92311
  variant: "ghost",
@@ -92325,7 +92325,7 @@ function UNe({
92325
92325
  value: String(d),
92326
92326
  onValueChange: (y) => t({ tabSize: Number(y) }),
92327
92327
  children: [
92328
- /* @__PURE__ */ F.jsx(Q0, { className: "w-full text-helper-text-sm h-7 px-2 py-1 color-bg-secondary border-none", children: /* @__PURE__ */ F.jsxs(en, { text: "Tab size", children: [
92328
+ /* @__PURE__ */ F.jsx(Q0, { className: "w-full text-helper-text-sm h-7 px-2 py-1 color-bg-secondary border-none", children: /* @__PURE__ */ F.jsxs(Jt, { text: "Tab size", children: [
92329
92329
  /* @__PURE__ */ F.jsxs("span", { className: "!hidden sm:!block", children: [
92330
92330
  "Tab: ",
92331
92331
  d
@@ -92352,7 +92352,7 @@ function UNe({
92352
92352
  }
92353
92353
  )
92354
92354
  ] }),
92355
- /* @__PURE__ */ F.jsx(en, { text: "Delete code block", children: /* @__PURE__ */ F.jsx(
92355
+ /* @__PURE__ */ F.jsx(Jt, { text: "Delete code block", children: /* @__PURE__ */ F.jsx(
92356
92356
  Ue,
92357
92357
  {
92358
92358
  name: "Trash2",
@@ -92371,7 +92371,7 @@ function UNe({
92371
92371
  "absolute top-3 right-3 hidden z-10 color-bg-default",
92372
92372
  l && "flex"
92373
92373
  ),
92374
- children: /* @__PURE__ */ F.jsx(en, { text: "Copy code", children: /* @__PURE__ */ F.jsxs("div", { className: "relative w-4 h-4", onClick: b, children: [
92374
+ children: /* @__PURE__ */ F.jsx(Jt, { text: "Copy code", children: /* @__PURE__ */ F.jsxs("div", { className: "relative w-4 h-4", onClick: b, children: [
92375
92375
  /* @__PURE__ */ F.jsx(
92376
92376
  Ue,
92377
92377
  {
@@ -102950,9 +102950,9 @@ function iY(e) {
102950
102950
  return e ? typeof e == "string" ? e : e.source : null;
102951
102951
  }
102952
102952
  function i0(e) {
102953
- return Fn("(?=", e, ")");
102953
+ return wn("(?=", e, ")");
102954
102954
  }
102955
- function Fn(...e) {
102955
+ function wn(...e) {
102956
102956
  return e.map((n) => iY(n)).join("");
102957
102957
  }
102958
102958
  function GMe(e) {
@@ -102962,7 +102962,7 @@ function GMe(e) {
102962
102962
  function bo(...e) {
102963
102963
  return "(" + (GMe(e).capture ? "" : "?:") + e.map((r) => iY(r)).join("|") + ")";
102964
102964
  }
102965
- const v7 = (e) => Fn(
102965
+ const v7 = (e) => wn(
102966
102966
  /\b/,
102967
102967
  e,
102968
102968
  /\w$/.test(e) ? /\b/ : /\B/
@@ -103208,7 +103208,7 @@ const v7 = (e) => Fn(
103208
103208
  /[\uFE20-\uFE2F]/
103209
103209
  // TODO: The following characters are also allowed, but the regex isn't supported yet.
103210
103210
  // /[\u{E0100}-\u{E01EF}]/u
103211
- ), a6 = Fn(sY, aY, "*"), lY = bo(
103211
+ ), a6 = wn(sY, aY, "*"), lY = bo(
103212
103212
  /[a-zA-Z_]/,
103213
103213
  /[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,
103214
103214
  /[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,
@@ -103230,10 +103230,10 @@ const v7 = (e) => Fn(
103230
103230
  lY,
103231
103231
  /\d/,
103232
103232
  /[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/
103233
- ), Is = Fn(lY, sy, "*"), Dm = Fn(/[A-Z]/, sy, "*"), JMe = [
103233
+ ), Is = wn(lY, sy, "*"), Dm = wn(/[A-Z]/, sy, "*"), JMe = [
103234
103234
  "attached",
103235
103235
  "autoclosure",
103236
- Fn(/convention\(/, bo("swift", "block", "c"), /\)/),
103236
+ wn(/convention\(/, bo("swift", "block", "c"), /\)/),
103237
103237
  "discardableResult",
103238
103238
  "dynamicCallable",
103239
103239
  "dynamicMemberLookup",
@@ -103252,7 +103252,7 @@ const v7 = (e) => Fn(
103252
103252
  "NSApplicationMain",
103253
103253
  "NSCopying",
103254
103254
  "NSManaged",
103255
- Fn(/objc\(/, Is, /\)/),
103255
+ wn(/objc\(/, Is, /\)/),
103256
103256
  "objc",
103257
103257
  "objcMembers",
103258
103258
  "propertyWrapper",
@@ -103297,7 +103297,7 @@ function eOe(e) {
103297
103297
  className: { 2: "keyword" }
103298
103298
  }, i = {
103299
103299
  // Consume .keyword to prevent highlighting properties and methods as keywords.
103300
- match: Fn(/\./, bo(...s6)),
103300
+ match: wn(/\./, bo(...s6)),
103301
103301
  relevance: 0
103302
103302
  }, s = s6.filter((ae) => typeof ae == "string").concat(["_|0"]), a = s6.filter((ae) => typeof ae != "string").concat(XMe).map(v7), l = { variants: [
103303
103303
  {
@@ -103319,11 +103319,11 @@ function eOe(e) {
103319
103319
  l
103320
103320
  ], d = {
103321
103321
  // Consume .built_in to prevent highlighting properties and methods.
103322
- match: Fn(/\./, bo(...PM)),
103322
+ match: wn(/\./, bo(...PM)),
103323
103323
  relevance: 0
103324
103324
  }, p = {
103325
103325
  className: "built_in",
103326
- match: Fn(/\b/, bo(...PM), /(?=\()/)
103326
+ match: wn(/\b/, bo(...PM), /(?=\()/)
103327
103327
  }, h = [
103328
103328
  d,
103329
103329
  p
@@ -103362,28 +103362,28 @@ function eOe(e) {
103362
103362
  }, v = (ae = "") => ({
103363
103363
  className: "subst",
103364
103364
  variants: [
103365
- { match: Fn(/\\/, ae, /[0\\tnr"']/) },
103366
- { match: Fn(/\\/, ae, /u\{[0-9a-fA-F]{1,8}\}/) }
103365
+ { match: wn(/\\/, ae, /[0\\tnr"']/) },
103366
+ { match: wn(/\\/, ae, /u\{[0-9a-fA-F]{1,8}\}/) }
103367
103367
  ]
103368
103368
  }), k = (ae = "") => ({
103369
103369
  className: "subst",
103370
- match: Fn(/\\/, ae, /[\t ]*(?:[\r\n]|\r\n)/)
103370
+ match: wn(/\\/, ae, /[\t ]*(?:[\r\n]|\r\n)/)
103371
103371
  }), w = (ae = "") => ({
103372
103372
  className: "subst",
103373
103373
  label: "interpol",
103374
- begin: Fn(/\\/, ae, /\(/),
103374
+ begin: wn(/\\/, ae, /\(/),
103375
103375
  end: /\)/
103376
103376
  }), D = (ae = "") => ({
103377
- begin: Fn(ae, /"""/),
103378
- end: Fn(/"""/, ae),
103377
+ begin: wn(ae, /"""/),
103378
+ end: wn(/"""/, ae),
103379
103379
  contains: [
103380
103380
  v(ae),
103381
103381
  k(ae),
103382
103382
  w(ae)
103383
103383
  ]
103384
103384
  }), C = (ae = "") => ({
103385
- begin: Fn(ae, /"/),
103386
- end: Fn(/"/, ae),
103385
+ begin: wn(ae, /"/),
103386
+ end: wn(/"/, ae),
103387
103387
  contains: [
103388
103388
  v(ae),
103389
103389
  w(ae)
@@ -103413,7 +103413,7 @@ function eOe(e) {
103413
103413
  end: /\//,
103414
103414
  contains: R
103415
103415
  }, _ = (ae) => {
103416
- const K = Fn(ae, /\//), V = Fn(/\//, ae);
103416
+ const K = wn(ae, /\//), V = wn(/\//, ae);
103417
103417
  return {
103418
103418
  begin: K,
103419
103419
  end: V,
@@ -103434,7 +103434,7 @@ function eOe(e) {
103434
103434
  _("#"),
103435
103435
  T
103436
103436
  ]
103437
- }, E = { match: Fn(/`/, Is, /`/) }, M = {
103437
+ }, E = { match: wn(/`/, Is, /`/) }, M = {
103438
103438
  className: "variable",
103439
103439
  match: /\$\d+/
103440
103440
  }, j = {
@@ -103461,10 +103461,10 @@ function eOe(e) {
103461
103461
  ] }
103462
103462
  }, I = {
103463
103463
  scope: "keyword",
103464
- match: Fn(/@/, bo(...JMe), i0(bo(/\(/, /\s+/)))
103464
+ match: wn(/@/, bo(...JMe), i0(bo(/\(/, /\s+/)))
103465
103465
  }, q = {
103466
103466
  scope: "meta",
103467
- match: Fn(/@/, Is)
103467
+ match: wn(/@/, Is)
103468
103468
  }, z = [
103469
103469
  L,
103470
103470
  I,
@@ -103476,7 +103476,7 @@ function eOe(e) {
103476
103476
  {
103477
103477
  // Common Apple frameworks, for relevance boost
103478
103478
  className: "type",
103479
- match: Fn(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/, sy, "+")
103479
+ match: wn(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/, sy, "+")
103480
103480
  },
103481
103481
  {
103482
103482
  // Type identifier
@@ -103496,7 +103496,7 @@ function eOe(e) {
103496
103496
  },
103497
103497
  {
103498
103498
  // Protocol composition
103499
- match: Fn(/\s+&\s+/, i0(Dm)),
103499
+ match: wn(/\s+&\s+/, i0(Dm)),
103500
103500
  relevance: 0
103501
103501
  }
103502
103502
  ]
@@ -103514,7 +103514,7 @@ function eOe(e) {
103514
103514
  };
103515
103515
  $.contains.push(re);
103516
103516
  const le = {
103517
- match: Fn(Is, /\s*:/),
103517
+ match: wn(Is, /\s*:/),
103518
103518
  keywords: "_|0",
103519
103519
  relevance: 0
103520
103520
  }, ne = {
@@ -103546,8 +103546,8 @@ function eOe(e) {
103546
103546
  ]
103547
103547
  }, Q = {
103548
103548
  begin: bo(
103549
- i0(Fn(Is, /\s*:/)),
103550
- i0(Fn(Is, /\s+/, Is, /\s*:/))
103549
+ i0(wn(Is, /\s*:/)),
103550
+ i0(wn(Is, /\s+/, Is, /\s*:/))
103551
103551
  ),
103552
103552
  end: /:/,
103553
103553
  relevance: 0,
@@ -105338,7 +105338,7 @@ class cOe {
105338
105338
  return "";
105339
105339
  }
105340
105340
  }
105341
- const dOe = Ft.create({
105341
+ const dOe = wt.create({
105342
105342
  name: "lineHeight",
105343
105343
  addOptions() {
105344
105344
  return {
@@ -166194,7 +166194,7 @@ const yOe = 200, xOe = new St("emoji"), vOe = At.create({
166194
166194
  return !0;
166195
166195
  }
166196
166196
  return !1;
166197
- }, jOe = Ft.create({
166197
+ }, jOe = wt.create({
166198
166198
  name: "slash-command",
166199
166199
  addOptions() {
166200
166200
  return {
@@ -166358,7 +166358,7 @@ const yOe = 200, xOe = new St("emoji"), vOe = At.create({
166358
166358
  render: NOe
166359
166359
  }
166360
166360
  });
166361
- }, xY = Ft.create({
166361
+ }, xY = wt.create({
166362
166362
  name: "customTextInputRules",
166363
166363
  addInputRules() {
166364
166364
  return [
@@ -166686,7 +166686,7 @@ const yOe = 200, xOe = new St("emoji"), vOe = At.create({
166686
166686
  }
166687
166687
  ) }),
166688
166688
  /* @__PURE__ */ F.jsx(
166689
- en,
166689
+ Jt,
166690
166690
  {
166691
166691
  sideOffset: 5,
166692
166692
  position: "bottom",
@@ -166736,7 +166736,7 @@ const yOe = 200, xOe = new St("emoji"), vOe = At.create({
166736
166736
  ];
166737
166737
  },
166738
166738
  renderHTML({ HTMLAttributes: e }) {
166739
- return ["br", Nt(this.options.HTMLAttributes, e)];
166739
+ return ["br", Bt(this.options.HTMLAttributes, e)];
166740
166740
  },
166741
166741
  addCommands() {
166742
166742
  return {
@@ -166893,7 +166893,7 @@ const l6 = aD.getInstance(), IOe = (e) => ({
166893
166893
  renderHTML({ HTMLAttributes: e }) {
166894
166894
  return [
166895
166895
  "span",
166896
- Nt(this.options.HTMLAttributes, e),
166896
+ Bt(this.options.HTMLAttributes, e),
166897
166897
  0
166898
166898
  ];
166899
166899
  },
@@ -167704,7 +167704,7 @@ let jY = class {
167704
167704
  }
167705
167705
  };
167706
167706
  new jY();
167707
- const aRe = Ft.create({
167707
+ const aRe = wt.create({
167708
167708
  name: "aiAutocomplete",
167709
167709
  addOptions() {
167710
167710
  return {
@@ -168433,7 +168433,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
168433
168433
  renderHTML({ HTMLAttributes: e }) {
168434
168434
  return [
168435
168435
  "div",
168436
- Nt(
168436
+ Bt(
168437
168437
  this.options.HTMLAttributes,
168438
168438
  { "data-type": "ai-writer" },
168439
168439
  e
@@ -168573,36 +168573,35 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
168573
168573
  }
168574
168574
  },
168575
168575
  handleClick: (nt, je, Re) => {
168576
- const He = Re.metaKey || Re.ctrlKey, Ve = Re.target.closest("a");
168577
- if (Ve && Ve.href) {
168578
- const We = new URL(Ve.href, window.location.href);
168579
- if (We.hash && We.origin === window.location.origin && We.pathname === window.location.pathname) {
168580
- const Tt = decodeURIComponent(We.hash.slice(1)), cn = new URLSearchParams(Tt).get("heading");
168581
- if (cn) {
168582
- Re.preventDefault();
168583
- const sn = cn.split("-").pop();
168584
- if (sn) {
168585
- const an = document.querySelectorAll("[data-toc-id]"), ln = Array.from(an).find(
168586
- (kn) => {
168587
- var ve;
168588
- return (ve = kn.dataset.tocId) == null ? void 0 : ve.includes(sn);
168576
+ const He = Re.metaKey || Re.ctrlKey, Ge = Re.target.closest("a");
168577
+ if (Ge && Ge.href) {
168578
+ const We = new URL(Ge.href, window.location.href);
168579
+ if (We.hash && We.origin === window.location.origin) {
168580
+ const xt = decodeURIComponent(We.hash.slice(1)), en = new URLSearchParams(xt).get("heading");
168581
+ if (en) {
168582
+ const ln = en.split("-").pop();
168583
+ if (ln) {
168584
+ const un = document.querySelectorAll("[data-toc-id]"), rn = Array.from(un).find(
168585
+ (cn) => {
168586
+ var Fn;
168587
+ return (Fn = cn.dataset.tocId) == null ? void 0 : Fn.includes(ln);
168589
168588
  }
168590
168589
  );
168591
- ln && ln.scrollIntoView({
168592
- behavior: "smooth",
168593
- block: "nearest"
168594
- });
168590
+ if (rn)
168591
+ return Re.preventDefault(), rn.scrollIntoView({
168592
+ behavior: "smooth",
168593
+ block: "nearest"
168594
+ }), !0;
168595
168595
  }
168596
- return !0;
168597
168596
  }
168598
168597
  }
168599
168598
  if (o)
168600
168599
  return !1;
168601
- if (Ve.textContent.match(_7)) {
168600
+ if (Ge.textContent.match(_7)) {
168602
168601
  if (He)
168603
- return Re.preventDefault(), window.open(Ve.href, "_blank"), !0;
168602
+ return Re.preventDefault(), window.open(Ge.href, "_blank"), !0;
168604
168603
  } else
168605
- return Re.preventDefault(), window.open(Ve.href, "_blank"), !0;
168604
+ return Re.preventDefault(), window.open(Ge.href, "_blank"), !0;
168606
168605
  }
168607
168606
  return ee ? ee(nt, je, Re) : !1;
168608
168607
  },
@@ -168647,21 +168646,22 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
168647
168646
  const He = Re.closest("a");
168648
168647
  if (He != null && He.href)
168649
168648
  try {
168650
- const Ve = new URL(He.href, window.location.href);
168651
- if (!Ve.hash || Ve.origin !== window.location.origin || Ve.pathname !== window.location.pathname)
168652
- return;
168653
- const We = decodeURIComponent(Ve.hash.slice(1)), wt = new URLSearchParams(We).get("heading");
168654
- if (!wt) return;
168655
- je.preventDefault(), je.stopPropagation();
168656
- const Tt = wt.split("-").pop();
168657
- if (Tt) {
168658
- const tn = Array.from(
168649
+ const Ge = new URL(He.href, window.location.href);
168650
+ if (!Ge.hash || Ge.origin !== window.location.origin) return;
168651
+ const We = decodeURIComponent(Ge.hash.slice(1)), xt = new URLSearchParams(We).get("heading");
168652
+ if (!xt) return;
168653
+ const Nt = xt.split("-").pop();
168654
+ if (Nt) {
168655
+ const en = Array.from(
168659
168656
  document.querySelectorAll("[data-toc-id]")
168660
- ).find((cn) => {
168661
- var sn;
168662
- return (sn = cn.dataset.tocId) == null ? void 0 : sn.includes(Tt);
168657
+ ).find((ln) => {
168658
+ var un;
168659
+ return (un = ln.dataset.tocId) == null ? void 0 : un.includes(Nt);
168663
168660
  });
168664
- tn == null || tn.scrollIntoView({ behavior: "smooth", block: "nearest" });
168661
+ if (en) {
168662
+ je.preventDefault(), je.stopPropagation(), en.scrollIntoView({ behavior: "smooth", block: "nearest" });
168663
+ return;
168664
+ }
168665
168665
  }
168666
168666
  } catch {
168667
168667
  }
@@ -168761,18 +168761,18 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
168761
168761
  je.state.doc.nodesBetween(
168762
168762
  Re,
168763
168763
  He,
168764
- (Ve, We) => {
168765
- Ve.marks && Ve.marks.forEach((gt) => {
168764
+ (Ge, We) => {
168765
+ Ge.marks && Ge.marks.forEach((gt) => {
168766
168766
  gt.type.name === "textStyle" && gt.attrs.color && at.push({
168767
168767
  from: We,
168768
- to: We + Ve.nodeSize,
168768
+ to: We + Ge.nodeSize,
168769
168769
  mark: gt
168770
168770
  });
168771
168771
  });
168772
168772
  }
168773
- ), je.chain().setTextSelection({ from: Re, to: He }).setColor("").run(), at.forEach(({ from: Ve, to: We, mark: gt }) => {
168774
- const wt = gt.attrs.color;
168775
- y$(wt) || je.chain().setTextSelection({ from: Ve, to: We }).setColor(wt).run();
168773
+ ), je.chain().setTextSelection({ from: Re, to: He }).setColor("").run(), at.forEach(({ from: Ge, to: We, mark: gt }) => {
168774
+ const xt = gt.attrs.color;
168775
+ y$(xt) || je.chain().setTextSelection({ from: Ge, to: We }).setColor(xt).run();
168776
168776
  }), je.commands.setTextSelection(He);
168777
168777
  }, 0);
168778
168778
  };
@@ -168834,9 +168834,9 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
168834
168834
  if (he)
168835
168835
  try {
168836
168836
  const je = he.view.dom.querySelectorAll("[data-toc-id]"), Re = Array.from(je).find(
168837
- (wt) => {
168838
- var Tt;
168839
- return (Tt = wt.dataset.tocId) == null ? void 0 : Tt.includes(nt);
168837
+ (xt) => {
168838
+ var Nt;
168839
+ return (Nt = xt.dataset.tocId) == null ? void 0 : Nt.includes(nt);
168840
168840
  }
168841
168841
  );
168842
168842
  if (!Re) return;
@@ -168844,16 +168844,16 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
168844
168844
  Re == null ? void 0 : Re.textContent
168845
168845
  ), at = Pe == null ? void 0 : Pe.split("-").slice(0, -1).join("-");
168846
168846
  He !== at && (Le.set("heading", `${He}-${nt}`), window.location.hash = Le.toString());
168847
- const Ve = he.view.posAtDOM(Re, 0), We = he.view.state.tr;
168848
- We.setSelection(new ct(We.doc.resolve(Ve))), he.view.dispatch(We);
168847
+ const Ge = he.view.posAtDOM(Re, 0), We = he.view.state.tr;
168848
+ We.setSelection(new ct(We.doc.resolve(Ge))), he.view.dispatch(We);
168849
168849
  const gt = K8({
168850
168850
  targetElement: Re,
168851
168851
  editorRoot: he.view.dom
168852
168852
  });
168853
168853
  gt && requestAnimationFrame(() => {
168854
- const wt = gt.getBoundingClientRect(), Tt = Re.getBoundingClientRect(), tn = Tt.top - wt.top - wt.height / (Ne ? 5 : 7) + Tt.height / (Ne ? 5 : 7);
168854
+ const xt = gt.getBoundingClientRect(), Nt = Re.getBoundingClientRect(), en = Nt.top - xt.top - xt.height / (Ne ? 5 : 7) + Nt.height / (Ne ? 5 : 7);
168855
168855
  gt.scrollBy({
168856
- top: tn,
168856
+ top: en,
168857
168857
  behavior: "smooth"
168858
168858
  });
168859
168859
  });
@@ -168880,24 +168880,24 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
168880
168880
  const nt = setTimeout(() => {
168881
168881
  const { tr: je, doc: Re } = he.state;
168882
168882
  let He = !1;
168883
- Re.descendants((at, Ve) => {
168883
+ Re.descendants((at, Ge) => {
168884
168884
  if (!at.marks || at.marks.length === 0) return;
168885
168885
  const We = at.marks.find(
168886
- (Tt) => Tt.type.name === "textStyle" && Tt.attrs.color
168886
+ (Nt) => Nt.type.name === "textStyle" && Nt.attrs.color
168887
168887
  );
168888
168888
  if (!We) return;
168889
168889
  const gt = We.attrs["data-original-color"] || We.attrs.color;
168890
168890
  if (gt.startsWith("var(--color-editor-") || gt === "inherit")
168891
168891
  return;
168892
- const wt = nU(gt, $);
168893
- if (wt !== We.attrs.color) {
168892
+ const xt = nU(gt, $);
168893
+ if (xt !== We.attrs.color) {
168894
168894
  He = !0;
168895
- const Tt = We.type.create({
168895
+ const Nt = We.type.create({
168896
168896
  ...We.attrs,
168897
- color: wt,
168897
+ color: xt,
168898
168898
  "data-original-color": gt
168899
168899
  });
168900
- je.removeMark(Ve, Ve + at.nodeSize, We), je.addMark(Ve, Ve + at.nodeSize, Tt);
168900
+ je.removeMark(Ge, Ge + at.nodeSize, We), je.addMark(Ge, Ge + at.nodeSize, Nt);
168901
168901
  }
168902
168902
  }), He && (je.setMeta("addToHistory", !1), he.view.dispatch(je));
168903
168903
  }, 0);
@@ -169516,7 +169516,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
169516
169516
  [MY]
169517
169517
  );
169518
169518
  return SRe(r, RRe(e._dbref, !1)).then((o) => {
169519
- e._destroyed || (t(r), wn(e.doc, () => {
169519
+ e._destroyed || (t(r), Dn(e.doc, () => {
169520
169520
  o.forEach((i) => ys(e.doc, i));
169521
169521
  }, e, !1), n(r));
169522
169522
  }).then(() => jRe(r).then((o) => {
@@ -173094,8 +173094,8 @@ var cZ = {};
173094
173094
  Q[S] = Y[S] - oe[S];
173095
173095
  }
173096
173096
  function D(Q, Y, oe) {
173097
- let S, X, Z = 0, ue = 0, B = 0, ee = 0, ae = 0, K = 0, V = 0, ie = 0, he = 0, De = 0, me = 0, ce = 0, de = 0, fe = 0, O = 0, W = 0, te = 0, pe = 0, xe = 0, be = 0, Ee = 0, Ce = 0, ge = 0, Te = 0, Ne = 0, Le = 0, Pe = 0, ft = 0, pt = 0, nt = 0, je = 0, Re = oe[0], He = oe[1], at = oe[2], Ve = oe[3], We = oe[4], gt = oe[5], wt = oe[6], Tt = oe[7], tn = oe[8], cn = oe[9], sn = oe[10], an = oe[11], ln = oe[12], kn = oe[13], ve = oe[14], Ie = oe[15];
173098
- S = Y[0], Z += S * Re, ue += S * He, B += S * at, ee += S * Ve, ae += S * We, K += S * gt, V += S * wt, ie += S * Tt, he += S * tn, De += S * cn, me += S * sn, ce += S * an, de += S * ln, fe += S * kn, O += S * ve, W += S * Ie, S = Y[1], ue += S * Re, B += S * He, ee += S * at, ae += S * Ve, K += S * We, V += S * gt, ie += S * wt, he += S * Tt, De += S * tn, me += S * cn, ce += S * sn, de += S * an, fe += S * ln, O += S * kn, W += S * ve, te += S * Ie, S = Y[2], B += S * Re, ee += S * He, ae += S * at, K += S * Ve, V += S * We, ie += S * gt, he += S * wt, De += S * Tt, me += S * tn, ce += S * cn, de += S * sn, fe += S * an, O += S * ln, W += S * kn, te += S * ve, pe += S * Ie, S = Y[3], ee += S * Re, ae += S * He, K += S * at, V += S * Ve, ie += S * We, he += S * gt, De += S * wt, me += S * Tt, ce += S * tn, de += S * cn, fe += S * sn, O += S * an, W += S * ln, te += S * kn, pe += S * ve, xe += S * Ie, S = Y[4], ae += S * Re, K += S * He, V += S * at, ie += S * Ve, he += S * We, De += S * gt, me += S * wt, ce += S * Tt, de += S * tn, fe += S * cn, O += S * sn, W += S * an, te += S * ln, pe += S * kn, xe += S * ve, be += S * Ie, S = Y[5], K += S * Re, V += S * He, ie += S * at, he += S * Ve, De += S * We, me += S * gt, ce += S * wt, de += S * Tt, fe += S * tn, O += S * cn, W += S * sn, te += S * an, pe += S * ln, xe += S * kn, be += S * ve, Ee += S * Ie, S = Y[6], V += S * Re, ie += S * He, he += S * at, De += S * Ve, me += S * We, ce += S * gt, de += S * wt, fe += S * Tt, O += S * tn, W += S * cn, te += S * sn, pe += S * an, xe += S * ln, be += S * kn, Ee += S * ve, Ce += S * Ie, S = Y[7], ie += S * Re, he += S * He, De += S * at, me += S * Ve, ce += S * We, de += S * gt, fe += S * wt, O += S * Tt, W += S * tn, te += S * cn, pe += S * sn, xe += S * an, be += S * ln, Ee += S * kn, Ce += S * ve, ge += S * Ie, S = Y[8], he += S * Re, De += S * He, me += S * at, ce += S * Ve, de += S * We, fe += S * gt, O += S * wt, W += S * Tt, te += S * tn, pe += S * cn, xe += S * sn, be += S * an, Ee += S * ln, Ce += S * kn, ge += S * ve, Te += S * Ie, S = Y[9], De += S * Re, me += S * He, ce += S * at, de += S * Ve, fe += S * We, O += S * gt, W += S * wt, te += S * Tt, pe += S * tn, xe += S * cn, be += S * sn, Ee += S * an, Ce += S * ln, ge += S * kn, Te += S * ve, Ne += S * Ie, S = Y[10], me += S * Re, ce += S * He, de += S * at, fe += S * Ve, O += S * We, W += S * gt, te += S * wt, pe += S * Tt, xe += S * tn, be += S * cn, Ee += S * sn, Ce += S * an, ge += S * ln, Te += S * kn, Ne += S * ve, Le += S * Ie, S = Y[11], ce += S * Re, de += S * He, fe += S * at, O += S * Ve, W += S * We, te += S * gt, pe += S * wt, xe += S * Tt, be += S * tn, Ee += S * cn, Ce += S * sn, ge += S * an, Te += S * ln, Ne += S * kn, Le += S * ve, Pe += S * Ie, S = Y[12], de += S * Re, fe += S * He, O += S * at, W += S * Ve, te += S * We, pe += S * gt, xe += S * wt, be += S * Tt, Ee += S * tn, Ce += S * cn, ge += S * sn, Te += S * an, Ne += S * ln, Le += S * kn, Pe += S * ve, ft += S * Ie, S = Y[13], fe += S * Re, O += S * He, W += S * at, te += S * Ve, pe += S * We, xe += S * gt, be += S * wt, Ee += S * Tt, Ce += S * tn, ge += S * cn, Te += S * sn, Ne += S * an, Le += S * ln, Pe += S * kn, ft += S * ve, pt += S * Ie, S = Y[14], O += S * Re, W += S * He, te += S * at, pe += S * Ve, xe += S * We, be += S * gt, Ee += S * wt, Ce += S * Tt, ge += S * tn, Te += S * cn, Ne += S * sn, Le += S * an, Pe += S * ln, ft += S * kn, pt += S * ve, nt += S * Ie, S = Y[15], W += S * Re, te += S * He, pe += S * at, xe += S * Ve, be += S * We, Ee += S * gt, Ce += S * wt, ge += S * Tt, Te += S * tn, Ne += S * cn, Le += S * sn, Pe += S * an, ft += S * ln, pt += S * kn, nt += S * ve, je += S * Ie, Z += 38 * te, ue += 38 * pe, B += 38 * xe, ee += 38 * be, ae += 38 * Ee, K += 38 * Ce, V += 38 * ge, ie += 38 * Te, he += 38 * Ne, De += 38 * Le, me += 38 * Pe, ce += 38 * ft, de += 38 * pt, fe += 38 * nt, O += 38 * je, X = 1, S = Z + X + 65535, X = Math.floor(S / 65536), Z = S - X * 65536, S = ue + X + 65535, X = Math.floor(S / 65536), ue = S - X * 65536, S = B + X + 65535, X = Math.floor(S / 65536), B = S - X * 65536, S = ee + X + 65535, X = Math.floor(S / 65536), ee = S - X * 65536, S = ae + X + 65535, X = Math.floor(S / 65536), ae = S - X * 65536, S = K + X + 65535, X = Math.floor(S / 65536), K = S - X * 65536, S = V + X + 65535, X = Math.floor(S / 65536), V = S - X * 65536, S = ie + X + 65535, X = Math.floor(S / 65536), ie = S - X * 65536, S = he + X + 65535, X = Math.floor(S / 65536), he = S - X * 65536, S = De + X + 65535, X = Math.floor(S / 65536), De = S - X * 65536, S = me + X + 65535, X = Math.floor(S / 65536), me = S - X * 65536, S = ce + X + 65535, X = Math.floor(S / 65536), ce = S - X * 65536, S = de + X + 65535, X = Math.floor(S / 65536), de = S - X * 65536, S = fe + X + 65535, X = Math.floor(S / 65536), fe = S - X * 65536, S = O + X + 65535, X = Math.floor(S / 65536), O = S - X * 65536, S = W + X + 65535, X = Math.floor(S / 65536), W = S - X * 65536, Z += X - 1 + 37 * (X - 1), X = 1, S = Z + X + 65535, X = Math.floor(S / 65536), Z = S - X * 65536, S = ue + X + 65535, X = Math.floor(S / 65536), ue = S - X * 65536, S = B + X + 65535, X = Math.floor(S / 65536), B = S - X * 65536, S = ee + X + 65535, X = Math.floor(S / 65536), ee = S - X * 65536, S = ae + X + 65535, X = Math.floor(S / 65536), ae = S - X * 65536, S = K + X + 65535, X = Math.floor(S / 65536), K = S - X * 65536, S = V + X + 65535, X = Math.floor(S / 65536), V = S - X * 65536, S = ie + X + 65535, X = Math.floor(S / 65536), ie = S - X * 65536, S = he + X + 65535, X = Math.floor(S / 65536), he = S - X * 65536, S = De + X + 65535, X = Math.floor(S / 65536), De = S - X * 65536, S = me + X + 65535, X = Math.floor(S / 65536), me = S - X * 65536, S = ce + X + 65535, X = Math.floor(S / 65536), ce = S - X * 65536, S = de + X + 65535, X = Math.floor(S / 65536), de = S - X * 65536, S = fe + X + 65535, X = Math.floor(S / 65536), fe = S - X * 65536, S = O + X + 65535, X = Math.floor(S / 65536), O = S - X * 65536, S = W + X + 65535, X = Math.floor(S / 65536), W = S - X * 65536, Z += X - 1 + 37 * (X - 1), Q[0] = Z, Q[1] = ue, Q[2] = B, Q[3] = ee, Q[4] = ae, Q[5] = K, Q[6] = V, Q[7] = ie, Q[8] = he, Q[9] = De, Q[10] = me, Q[11] = ce, Q[12] = de, Q[13] = fe, Q[14] = O, Q[15] = W;
173097
+ let S, X, Z = 0, ue = 0, B = 0, ee = 0, ae = 0, K = 0, V = 0, ie = 0, he = 0, De = 0, me = 0, ce = 0, de = 0, fe = 0, O = 0, W = 0, te = 0, pe = 0, xe = 0, be = 0, Ee = 0, Ce = 0, ge = 0, Te = 0, Ne = 0, Le = 0, Pe = 0, ft = 0, pt = 0, nt = 0, je = 0, Re = oe[0], He = oe[1], at = oe[2], Ge = oe[3], We = oe[4], gt = oe[5], xt = oe[6], Nt = oe[7], en = oe[8], ln = oe[9], un = oe[10], rn = oe[11], cn = oe[12], Fn = oe[13], ve = oe[14], Ie = oe[15];
173098
+ S = Y[0], Z += S * Re, ue += S * He, B += S * at, ee += S * Ge, ae += S * We, K += S * gt, V += S * xt, ie += S * Nt, he += S * en, De += S * ln, me += S * un, ce += S * rn, de += S * cn, fe += S * Fn, O += S * ve, W += S * Ie, S = Y[1], ue += S * Re, B += S * He, ee += S * at, ae += S * Ge, K += S * We, V += S * gt, ie += S * xt, he += S * Nt, De += S * en, me += S * ln, ce += S * un, de += S * rn, fe += S * cn, O += S * Fn, W += S * ve, te += S * Ie, S = Y[2], B += S * Re, ee += S * He, ae += S * at, K += S * Ge, V += S * We, ie += S * gt, he += S * xt, De += S * Nt, me += S * en, ce += S * ln, de += S * un, fe += S * rn, O += S * cn, W += S * Fn, te += S * ve, pe += S * Ie, S = Y[3], ee += S * Re, ae += S * He, K += S * at, V += S * Ge, ie += S * We, he += S * gt, De += S * xt, me += S * Nt, ce += S * en, de += S * ln, fe += S * un, O += S * rn, W += S * cn, te += S * Fn, pe += S * ve, xe += S * Ie, S = Y[4], ae += S * Re, K += S * He, V += S * at, ie += S * Ge, he += S * We, De += S * gt, me += S * xt, ce += S * Nt, de += S * en, fe += S * ln, O += S * un, W += S * rn, te += S * cn, pe += S * Fn, xe += S * ve, be += S * Ie, S = Y[5], K += S * Re, V += S * He, ie += S * at, he += S * Ge, De += S * We, me += S * gt, ce += S * xt, de += S * Nt, fe += S * en, O += S * ln, W += S * un, te += S * rn, pe += S * cn, xe += S * Fn, be += S * ve, Ee += S * Ie, S = Y[6], V += S * Re, ie += S * He, he += S * at, De += S * Ge, me += S * We, ce += S * gt, de += S * xt, fe += S * Nt, O += S * en, W += S * ln, te += S * un, pe += S * rn, xe += S * cn, be += S * Fn, Ee += S * ve, Ce += S * Ie, S = Y[7], ie += S * Re, he += S * He, De += S * at, me += S * Ge, ce += S * We, de += S * gt, fe += S * xt, O += S * Nt, W += S * en, te += S * ln, pe += S * un, xe += S * rn, be += S * cn, Ee += S * Fn, Ce += S * ve, ge += S * Ie, S = Y[8], he += S * Re, De += S * He, me += S * at, ce += S * Ge, de += S * We, fe += S * gt, O += S * xt, W += S * Nt, te += S * en, pe += S * ln, xe += S * un, be += S * rn, Ee += S * cn, Ce += S * Fn, ge += S * ve, Te += S * Ie, S = Y[9], De += S * Re, me += S * He, ce += S * at, de += S * Ge, fe += S * We, O += S * gt, W += S * xt, te += S * Nt, pe += S * en, xe += S * ln, be += S * un, Ee += S * rn, Ce += S * cn, ge += S * Fn, Te += S * ve, Ne += S * Ie, S = Y[10], me += S * Re, ce += S * He, de += S * at, fe += S * Ge, O += S * We, W += S * gt, te += S * xt, pe += S * Nt, xe += S * en, be += S * ln, Ee += S * un, Ce += S * rn, ge += S * cn, Te += S * Fn, Ne += S * ve, Le += S * Ie, S = Y[11], ce += S * Re, de += S * He, fe += S * at, O += S * Ge, W += S * We, te += S * gt, pe += S * xt, xe += S * Nt, be += S * en, Ee += S * ln, Ce += S * un, ge += S * rn, Te += S * cn, Ne += S * Fn, Le += S * ve, Pe += S * Ie, S = Y[12], de += S * Re, fe += S * He, O += S * at, W += S * Ge, te += S * We, pe += S * gt, xe += S * xt, be += S * Nt, Ee += S * en, Ce += S * ln, ge += S * un, Te += S * rn, Ne += S * cn, Le += S * Fn, Pe += S * ve, ft += S * Ie, S = Y[13], fe += S * Re, O += S * He, W += S * at, te += S * Ge, pe += S * We, xe += S * gt, be += S * xt, Ee += S * Nt, Ce += S * en, ge += S * ln, Te += S * un, Ne += S * rn, Le += S * cn, Pe += S * Fn, ft += S * ve, pt += S * Ie, S = Y[14], O += S * Re, W += S * He, te += S * at, pe += S * Ge, xe += S * We, be += S * gt, Ee += S * xt, Ce += S * Nt, ge += S * en, Te += S * ln, Ne += S * un, Le += S * rn, Pe += S * cn, ft += S * Fn, pt += S * ve, nt += S * Ie, S = Y[15], W += S * Re, te += S * He, pe += S * at, xe += S * Ge, be += S * We, Ee += S * gt, Ce += S * xt, ge += S * Nt, Te += S * en, Ne += S * ln, Le += S * un, Pe += S * rn, ft += S * cn, pt += S * Fn, nt += S * ve, je += S * Ie, Z += 38 * te, ue += 38 * pe, B += 38 * xe, ee += 38 * be, ae += 38 * Ee, K += 38 * Ce, V += 38 * ge, ie += 38 * Te, he += 38 * Ne, De += 38 * Le, me += 38 * Pe, ce += 38 * ft, de += 38 * pt, fe += 38 * nt, O += 38 * je, X = 1, S = Z + X + 65535, X = Math.floor(S / 65536), Z = S - X * 65536, S = ue + X + 65535, X = Math.floor(S / 65536), ue = S - X * 65536, S = B + X + 65535, X = Math.floor(S / 65536), B = S - X * 65536, S = ee + X + 65535, X = Math.floor(S / 65536), ee = S - X * 65536, S = ae + X + 65535, X = Math.floor(S / 65536), ae = S - X * 65536, S = K + X + 65535, X = Math.floor(S / 65536), K = S - X * 65536, S = V + X + 65535, X = Math.floor(S / 65536), V = S - X * 65536, S = ie + X + 65535, X = Math.floor(S / 65536), ie = S - X * 65536, S = he + X + 65535, X = Math.floor(S / 65536), he = S - X * 65536, S = De + X + 65535, X = Math.floor(S / 65536), De = S - X * 65536, S = me + X + 65535, X = Math.floor(S / 65536), me = S - X * 65536, S = ce + X + 65535, X = Math.floor(S / 65536), ce = S - X * 65536, S = de + X + 65535, X = Math.floor(S / 65536), de = S - X * 65536, S = fe + X + 65535, X = Math.floor(S / 65536), fe = S - X * 65536, S = O + X + 65535, X = Math.floor(S / 65536), O = S - X * 65536, S = W + X + 65535, X = Math.floor(S / 65536), W = S - X * 65536, Z += X - 1 + 37 * (X - 1), X = 1, S = Z + X + 65535, X = Math.floor(S / 65536), Z = S - X * 65536, S = ue + X + 65535, X = Math.floor(S / 65536), ue = S - X * 65536, S = B + X + 65535, X = Math.floor(S / 65536), B = S - X * 65536, S = ee + X + 65535, X = Math.floor(S / 65536), ee = S - X * 65536, S = ae + X + 65535, X = Math.floor(S / 65536), ae = S - X * 65536, S = K + X + 65535, X = Math.floor(S / 65536), K = S - X * 65536, S = V + X + 65535, X = Math.floor(S / 65536), V = S - X * 65536, S = ie + X + 65535, X = Math.floor(S / 65536), ie = S - X * 65536, S = he + X + 65535, X = Math.floor(S / 65536), he = S - X * 65536, S = De + X + 65535, X = Math.floor(S / 65536), De = S - X * 65536, S = me + X + 65535, X = Math.floor(S / 65536), me = S - X * 65536, S = ce + X + 65535, X = Math.floor(S / 65536), ce = S - X * 65536, S = de + X + 65535, X = Math.floor(S / 65536), de = S - X * 65536, S = fe + X + 65535, X = Math.floor(S / 65536), fe = S - X * 65536, S = O + X + 65535, X = Math.floor(S / 65536), O = S - X * 65536, S = W + X + 65535, X = Math.floor(S / 65536), W = S - X * 65536, Z += X - 1 + 37 * (X - 1), Q[0] = Z, Q[1] = ue, Q[2] = B, Q[3] = ee, Q[4] = ae, Q[5] = K, Q[6] = V, Q[7] = ie, Q[8] = he, Q[9] = De, Q[10] = me, Q[11] = ce, Q[12] = de, Q[13] = fe, Q[14] = O, Q[15] = W;
173099
173099
  }
173100
173100
  function C(Q, Y) {
173101
173101
  D(Q, Y, Y);
@@ -174330,7 +174330,7 @@ const sO = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", IUe
174330
174330
  t += sO[Math.floor(Math.random() * sO.length)];
174331
174331
  return t;
174332
174332
  };
174333
- function jt(e, t) {
174333
+ function Tt(e, t) {
174334
174334
  return typeof e == "object" && e != null && t in e;
174335
174335
  }
174336
174336
  function Vr(e) {
@@ -174368,7 +174368,7 @@ function PUe(e) {
174368
174368
  }
174369
174369
  }
174370
174370
  function zUe(e) {
174371
- return Vr(e) && jt(e, "major") && typeof e.major == "number" && jt(e, "minor") && typeof e.minor == "number" && jt(e, "patch") && typeof e.patch == "number";
174371
+ return Vr(e) && Tt(e, "major") && typeof e.major == "number" && Tt(e, "minor") && typeof e.minor == "number" && Tt(e, "patch") && typeof e.patch == "number";
174372
174372
  }
174373
174373
  const $Ue = /^0|[1-9]\d*/, HUe = (e) => (t) => {
174374
174374
  const n = t.match(e);
@@ -174404,7 +174404,7 @@ function VUe(e, t) {
174404
174404
  }
174405
174405
  const ir = "*", FZ = "/";
174406
174406
  function GUe(e) {
174407
- return e === ir || Vr(e) && jt(e, "namespace") && typeof e.namespace == "string" && jt(e, "segments") && Array.isArray(e.segments) && e.segments.every((t) => typeof t == "string");
174407
+ return e === ir || Vr(e) && Tt(e, "namespace") && typeof e.namespace == "string" && Tt(e, "segments") && Array.isArray(e.segments) && e.segments.every((t) => typeof t == "string");
174408
174408
  }
174409
174409
  function KUe(e) {
174410
174410
  return e.join(FZ);
@@ -174429,7 +174429,7 @@ function YUe(e) {
174429
174429
  }
174430
174430
  const wD = ":";
174431
174431
  function ZUe(e) {
174432
- return Vr(e) && jt(e, "scheme") && typeof e.scheme == "string" && jt(e, "hierPart") && (e.hierPart === ir || typeof e.hierPart == "string");
174432
+ return Vr(e) && Tt(e, "scheme") && typeof e.scheme == "string" && Tt(e, "hierPart") && (e.hierPart === ir || typeof e.hierPart == "string");
174433
174433
  }
174434
174434
  function JUe(e) {
174435
174435
  return {
@@ -174445,10 +174445,10 @@ function ePe(e) {
174445
174445
  return { scheme: t, hierPart: n.join(wD) };
174446
174446
  }
174447
174447
  function f1(e) {
174448
- return Vr(e) && jt(e, "with") && ZUe(e.with) && jt(e, "can") && GUe(e.can);
174448
+ return Vr(e) && Tt(e, "with") && ZUe(e.with) && Tt(e, "can") && GUe(e.can);
174449
174449
  }
174450
174450
  function wZ(e) {
174451
- return Vr(e) && jt(e, "with") && typeof e.with == "string" && jt(e, "can") && typeof e.can == "string";
174451
+ return Vr(e) && Tt(e, "with") && typeof e.with == "string" && Tt(e, "can") && typeof e.can == "string";
174452
174452
  }
174453
174453
  function tPe(e) {
174454
174454
  return {
@@ -174469,28 +174469,28 @@ function rPe(e) {
174469
174469
  };
174470
174470
  }
174471
174471
  function M7(e) {
174472
- return Vr(e) && jt(e, "jwtAlg") && typeof e.jwtAlg == "string" && jt(e, "sign") && typeof e.sign == "function";
174472
+ return Vr(e) && Tt(e, "jwtAlg") && typeof e.jwtAlg == "string" && Tt(e, "sign") && typeof e.sign == "function";
174473
174473
  }
174474
174474
  function oPe(e) {
174475
- return Vr(e) && jt(e, "alg") && typeof e.alg == "string" && jt(e, "typ") && typeof e.typ == "string" && jt(e, "ucv") && zUe(e.ucv);
174475
+ return Vr(e) && Tt(e, "alg") && typeof e.alg == "string" && Tt(e, "typ") && typeof e.typ == "string" && Tt(e, "ucv") && zUe(e.ucv);
174476
174476
  }
174477
174477
  function iPe(e) {
174478
- return Vr(e) && jt(e, "iss") && typeof e.iss == "string" && jt(e, "aud") && typeof e.aud == "string" && jt(e, "exp") && typeof e.exp == "number" && (!jt(e, "nbf") || typeof e.nbf == "number") && (!jt(e, "nnc") || typeof e.nnc == "string") && jt(e, "att") && Array.isArray(e.att) && e.att.every((t) => f1(t) || wZ(t)) && (!jt(e, "fct") || Array.isArray(e.fct) && e.fct.every(Vr)) && jt(e, "prf") && Array.isArray(e.prf) && e.prf.every((t) => typeof t == "string");
174478
+ return Vr(e) && Tt(e, "iss") && typeof e.iss == "string" && Tt(e, "aud") && typeof e.aud == "string" && Tt(e, "exp") && typeof e.exp == "number" && (!Tt(e, "nbf") || typeof e.nbf == "number") && (!Tt(e, "nnc") || typeof e.nnc == "string") && Tt(e, "att") && Array.isArray(e.att) && e.att.every((t) => f1(t) || wZ(t)) && (!Tt(e, "fct") || Array.isArray(e.fct) && e.fct.every(Vr)) && Tt(e, "prf") && Array.isArray(e.prf) && e.prf.every((t) => typeof t == "string");
174479
174479
  }
174480
174480
  const sPe = { major: 0, minor: 3, patch: 0 };
174481
174481
  function aPe(e) {
174482
- return Vr(e) && jt(e, "alg") && typeof e.alg == "string" && jt(e, "typ") && typeof e.typ == "string" && jt(e, "uav") && typeof e.uav == "string";
174482
+ return Vr(e) && Tt(e, "alg") && typeof e.alg == "string" && Tt(e, "typ") && typeof e.typ == "string" && Tt(e, "uav") && typeof e.uav == "string";
174483
174483
  }
174484
174484
  function lPe(e) {
174485
- return Vr(e) && jt(e, "iss") && typeof e.iss == "string" && jt(e, "aud") && typeof e.aud == "string" && (!jt(e, "nbf") || typeof e.nbf == "number") && jt(e, "exp") && typeof e.exp == "number" && jt(e, "rsc") && (typeof e.rsc == "string" || Vr(e)) && jt(e, "ptc") && typeof e.ptc == "string" && (!jt(e, "prf") || typeof e.prf == "string");
174485
+ return Vr(e) && Tt(e, "iss") && typeof e.iss == "string" && Tt(e, "aud") && typeof e.aud == "string" && (!Tt(e, "nbf") || typeof e.nbf == "number") && Tt(e, "exp") && typeof e.exp == "number" && Tt(e, "rsc") && (typeof e.rsc == "string" || Vr(e)) && Tt(e, "ptc") && typeof e.ptc == "string" && (!Tt(e, "prf") || typeof e.prf == "string");
174486
174486
  }
174487
174487
  function uPe(e, t) {
174488
174488
  const n = (o, i) => new Error(`Can't parse UCAN ${o}: ${i}`);
174489
174489
  if (!Vr(e))
174490
174490
  throw n("header", "Invalid format: Expected a record");
174491
174491
  let r = "0.9.1";
174492
- if (!jt(e, "ucv") || typeof e.ucv != "string") {
174493
- if (!jt(e, "uav") || typeof e.uav != "string")
174492
+ if (!Tt(e, "ucv") || typeof e.ucv != "string") {
174493
+ if (!Tt(e, "uav") || typeof e.uav != "string")
174494
174494
  throw n("header", "Invalid format: Missing version indicator");
174495
174495
  if (e.uav !== "1.0.0")
174496
174496
  throw n("header", `Unsupported version 'uav: ${e.uav}'`);
@@ -175120,10 +175120,10 @@ var jPe = function(e, t, n, r) {
175120
175120
  });
175121
175121
  };
175122
175122
  function cO(e) {
175123
- return Vr(e) && jt(e, "issuer") && M7(e.issuer) && jt(e, "audience") && typeof e.audience == "string" && jt(e, "expiration") && typeof e.expiration == "number";
175123
+ return Vr(e) && Tt(e, "issuer") && M7(e.issuer) && Tt(e, "audience") && typeof e.audience == "string" && Tt(e, "expiration") && typeof e.expiration == "number";
175124
175124
  }
175125
175125
  function BPe(e) {
175126
- return Vr(e) && jt(e, "issuer") && M7(e.issuer) && jt(e, "expiration") && typeof e.expiration == "number";
175126
+ return Vr(e) && Tt(e, "issuer") && M7(e.issuer) && Tt(e, "expiration") && typeof e.expiration == "number";
175127
175127
  }
175128
175128
  const NPe = (e) => class ns {
175129
175129
  constructor(n, r) {
@@ -175190,7 +175190,7 @@ const NPe = (e) => class ns {
175190
175190
  withNotBefore(n) {
175191
175191
  if (typeof n != "number" || !isFinite(n))
175192
175192
  throw new TypeError(`Expected notBeforeTimestamp as number, but got ${n}`);
175193
- if (jt(this.state, "expiration") && typeof this.state.expiration == "number" && this.state.expiration < n)
175193
+ if (Tt(this.state, "expiration") && typeof this.state.expiration == "number" && this.state.expiration < n)
175194
175194
  throw new Error(`Can't set 'notBefore' to ${n} which is after expiration: ${this.state.expiration}`);
175195
175195
  return new ns(this.state, Object.assign(Object.assign({}, this.defaultable), { notBefore: n }));
175196
175196
  }
@@ -175216,7 +175216,7 @@ const NPe = (e) => class ns {
175216
175216
  if (!BPe(this.state))
175217
175217
  throw new Error("Can't delegate capabilities without having these paramenters set in the builder: issuer and expiration.");
175218
175218
  function i(s) {
175219
- return jt(s, "capability") || jt(s, "ownershipDID");
175219
+ return Tt(s, "capability") || Tt(s, "ownershipDID");
175220
175220
  }
175221
175221
  if (i(r)) {
175222
175222
  if (o == null)
@@ -179870,7 +179870,7 @@ const u$e = ({
179870
179870
  !n && /* @__PURE__ */ F.jsxs("div", { className: "absolute top-0 px-4 py-2 border-b color-border-default right-0 flex gap-2 color-bg-default w-full justify-between z-50", children: [
179871
179871
  a ? /* @__PURE__ */ F.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ F.jsx("p", { className: "max-w-[300px] truncate md:max-w-full w-full", children: l }) }) : /* @__PURE__ */ F.jsxs("div", { className: "flex items-center gap-2", children: [
179872
179872
  /* @__PURE__ */ F.jsx(
179873
- Dn,
179873
+ kn,
179874
179874
  {
179875
179875
  variant: "ghost",
179876
179876
  onClick: t,
@@ -179882,8 +179882,8 @@ const u$e = ({
179882
179882
  ] }),
179883
179883
  /* @__PURE__ */ F.jsxs("div", { className: "flex justify-center items-center gap-2", children: [
179884
179884
  p == null ? void 0 : p(),
179885
- !a && /* @__PURE__ */ F.jsx(en, { text: "Download", sideOffset: 10, children: /* @__PURE__ */ F.jsx(
179886
- Dn,
179885
+ !a && /* @__PURE__ */ F.jsx(Jt, { text: "Download", sideOffset: 10, children: /* @__PURE__ */ F.jsx(
179886
+ kn,
179887
179887
  {
179888
179888
  variant: "ghost",
179889
179889
  onClick: () => cP(c),
@@ -179891,8 +179891,8 @@ const u$e = ({
179891
179891
  size: "md"
179892
179892
  }
179893
179893
  ) }),
179894
- /* @__PURE__ */ F.jsx(en, { text: "Comments", sideOffset: 10, children: /* @__PURE__ */ F.jsx(
179895
- Dn,
179894
+ /* @__PURE__ */ F.jsx(Jt, { text: "Comments", sideOffset: 10, children: /* @__PURE__ */ F.jsx(
179895
+ kn,
179896
179896
  {
179897
179897
  variant: "ghost",
179898
179898
  icon: "MessageSquareText",
@@ -179901,13 +179901,13 @@ const u$e = ({
179901
179901
  }
179902
179902
  ) }),
179903
179903
  !a && /* @__PURE__ */ F.jsxs(
179904
- en,
179904
+ Jt,
179905
179905
  {
179906
179906
  text: s ? "Copy to Share" : "Link is preparing...",
179907
179907
  sideOffset: 10,
179908
179908
  children: [
179909
179909
  /* @__PURE__ */ F.jsx(
179910
- Dn,
179910
+ kn,
179911
179911
  {
179912
179912
  variant: "ghost",
179913
179913
  icon: "Link",
@@ -179932,8 +179932,8 @@ const u$e = ({
179932
179932
  ]
179933
179933
  }
179934
179934
  ),
179935
- /* @__PURE__ */ F.jsx(en, { text: "Press F to toggle fullscreen", sideOffset: 10, children: /* @__PURE__ */ F.jsx(
179936
- Dn,
179935
+ /* @__PURE__ */ F.jsx(Jt, { text: "Press F to toggle fullscreen", sideOffset: 10, children: /* @__PURE__ */ F.jsx(
179936
+ kn,
179937
179937
  {
179938
179938
  variant: "ghost",
179939
179939
  onClick: I,
@@ -180015,7 +180015,7 @@ const u$e = ({
180015
180015
  ] }) }) }),
180016
180016
  n && C && /* @__PURE__ */ F.jsxs(F.Fragment, { children: [
180017
180017
  /* @__PURE__ */ F.jsx("div", { className: "fixed top-2 right-4 z-50", children: /* @__PURE__ */ F.jsx(
180018
- Dn,
180018
+ kn,
180019
180019
  {
180020
180020
  variant: "ghost",
180021
180021
  onClick: I,
@@ -180452,13 +180452,13 @@ const u$e = ({
180452
180452
  /* @__PURE__ */ F.jsxs("div", { className: "flex p-4 border-b flex-row gap-4 items-center color-bg-default", children: [
180453
180453
  /* @__PURE__ */ F.jsx("p", { className: "text-heading-sm", children: "Comments" }),
180454
180454
  /* @__PURE__ */ F.jsx("div", { className: "absolute top-[2px] right-10 p-2", children: /* @__PURE__ */ F.jsx(
180455
- en,
180455
+ Jt,
180456
180456
  {
180457
180457
  text: a ? "Hide resolved" : "Show resolved",
180458
180458
  sideOffset: 0,
180459
180459
  position: "bottom",
180460
180460
  children: /* @__PURE__ */ F.jsx(
180461
- Dn,
180461
+ kn,
180462
180462
  {
180463
180463
  icon: a ? "Eye" : "EyeOff",
180464
180464
  variant: "ghost",
@@ -180492,13 +180492,13 @@ const u$e = ({
180492
180492
  title: "Comments",
180493
180493
  content: /* @__PURE__ */ F.jsxs(_t.Fragment, { children: [
180494
180494
  /* @__PURE__ */ F.jsx("div", { className: "absolute -top-[2px] right-10 p-3", children: /* @__PURE__ */ F.jsx(
180495
- en,
180495
+ Jt,
180496
180496
  {
180497
180497
  text: a ? "Hide resolved" : "Show resolved",
180498
180498
  sideOffset: 0,
180499
180499
  position: "bottom",
180500
180500
  children: /* @__PURE__ */ F.jsx(
180501
- Dn,
180501
+ kn,
180502
180502
  {
180503
180503
  icon: a ? "Eye" : "EyeOff",
180504
180504
  variant: "ghost",
@@ -180646,20 +180646,27 @@ const u$e = ({
180646
180646
  href: u,
180647
180647
  onClick: l,
180648
180648
  "data-item-index": e.itemIndex,
180649
- className: "flex items-center justify-between pl-2 gap-1 h-[36px] transition-all no-underline w-full group",
180649
+ className: "flex items-center justify-between pl-2 gap-1 h-[36px] transition-all no-underline w-full group/toc-item",
180650
180650
  children: [
180651
180651
  /* @__PURE__ */ F.jsx("span", { className: "truncate", children: e.textContent }),
180652
180652
  /* @__PURE__ */ F.jsx(
180653
- Dn,
180653
+ Jt,
180654
180654
  {
180655
- icon: i ? "Check" : "Clipboard",
180656
- size: "sm",
180657
- variant: "ghost",
180658
- className: Ye(
180659
- "!bg-transparent group-hover:opacity-100 opacity-0 transition-all color-text-secondary active:scale-75",
180660
- e.isActive ? "max-[1280px]:visible" : "max-[1280px]:invisible"
180661
- ),
180662
- onClick: () => a(u)
180655
+ text: i ? "Heading link copied" : "Copy heading link",
180656
+ position: "right",
180657
+ children: /* @__PURE__ */ F.jsx(
180658
+ kn,
180659
+ {
180660
+ icon: i ? "Check" : "Clipboard",
180661
+ size: "sm",
180662
+ variant: "ghost",
180663
+ className: Ye(
180664
+ "!bg-transparent group-hover/toc-item:opacity-100 opacity-0 transition-all color-text-secondary active:scale-75",
180665
+ e.isActive ? "max-[1280px]:visible" : "max-[1280px]:invisible"
180666
+ ),
180667
+ onClick: () => a(u)
180668
+ }
180669
+ )
180663
180670
  }
180664
180671
  )
180665
180672
  ]
@@ -181014,7 +181021,7 @@ const D$e = [
181014
181021
  ref: (g) => {
181015
181022
  l.current = g;
181016
181023
  },
181017
- children: /* @__PURE__ */ F.jsx(en, { position: "top", text: "Choose emoji", children: /* @__PURE__ */ F.jsx(
181024
+ children: /* @__PURE__ */ F.jsx(Jt, { position: "top", text: "Choose emoji", children: /* @__PURE__ */ F.jsx(
181018
181025
  Ue,
181019
181026
  {
181020
181027
  onClick: () => {
@@ -181410,7 +181417,7 @@ const B$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
181410
181417
  },
181411
181418
  className: "h-[24px] px-[6px] py-0 rounded-[6px] text-heading-xsm border-transparent focus-visible:ring-2 focus-visible:ring-[hsl(var(--color-border-focused))]"
181412
181419
  }
181413
- ) : /* @__PURE__ */ F.jsx("div", { className: "min-w-0 flex [&>*]:w-full", children: /* @__PURE__ */ F.jsx(en, { text: _, position: "bottom", children: /* @__PURE__ */ F.jsx(
181420
+ ) : /* @__PURE__ */ F.jsx("div", { className: "min-w-0 flex [&>*]:w-full", children: /* @__PURE__ */ F.jsx(Jt, { text: _, position: "bottom", children: /* @__PURE__ */ F.jsx(
181414
181421
  "span",
181415
181422
  {
181416
181423
  "data-testid": `tab-name-${e}`,
@@ -181480,7 +181487,7 @@ const B$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
181480
181487
  onMouseEnter: () => n(!0),
181481
181488
  onMouseLeave: () => n(!1),
181482
181489
  className: "[&_[data-testid='tooltip-trigger']]:w-full [&_[data-testid='tooltip-trigger']]:block",
181483
- children: /* @__PURE__ */ F.jsx(en, { text: e.tooltipText, position: "top", open: t, children: o })
181490
+ children: /* @__PURE__ */ F.jsx(Jt, { text: e.tooltipText, position: "top", open: t, children: o })
181484
181491
  }
181485
181492
  ) : o;
181486
181493
  }, uJ = ({
@@ -181699,7 +181706,7 @@ const B$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
181699
181706
  ),
181700
181707
  children: [
181701
181708
  (!z || r) && /* @__PURE__ */ F.jsx(
181702
- en,
181709
+ Jt,
181703
181710
  {
181704
181711
  text: r ? "Hide tabs and outlines" : "Show tabs and outlines",
181705
181712
  position: "right",
@@ -181750,7 +181757,7 @@ const B$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
181750
181757
  }
181751
181758
  ),
181752
181759
  !s && /* @__PURE__ */ F.jsx(
181753
- Dn,
181760
+ kn,
181754
181761
  {
181755
181762
  "data-testid": "tab-create-button",
181756
181763
  icon: "Plus",
@@ -182327,12 +182334,12 @@ const B$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
182327
182334
  ),
182328
182335
  children: [
182329
182336
  /* @__PURE__ */ F.jsx(
182330
- en,
182337
+ Jt,
182331
182338
  {
182332
182339
  text: o ? "Hide document outline" : "Show document outline",
182333
182340
  position: "right",
182334
182341
  children: /* @__PURE__ */ F.jsx(
182335
- Dn,
182342
+ kn,
182336
182343
  {
182337
182344
  icon: o ? "ChevronLeft" : "List",
182338
182345
  variant: "ghost",
@@ -182694,12 +182701,12 @@ const B$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
182694
182701
  "zoom-levels"
182695
182702
  ),
182696
182703
  /* @__PURE__ */ F.jsx(
182697
- en,
182704
+ Jt,
182698
182705
  {
182699
182706
  text: o ? "Hide tabs and outlines sidebar" : "Show tabs and outlines sidebar",
182700
182707
  position: "bottom",
182701
182708
  children: /* @__PURE__ */ F.jsx(
182702
- Dn,
182709
+ kn,
182703
182710
  {
182704
182711
  icon: "List",
182705
182712
  size: "sm",
@@ -182710,8 +182717,8 @@ const B$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
182710
182717
  )
182711
182718
  }
182712
182719
  ),
182713
- /* @__PURE__ */ F.jsx(en, { text: "Exist focus mode", children: /* @__PURE__ */ F.jsx(
182714
- Dn,
182720
+ /* @__PURE__ */ F.jsx(Jt, { text: "Exist focus mode", children: /* @__PURE__ */ F.jsx(
182721
+ kn,
182715
182722
  {
182716
182723
  icon: "Minimize",
182717
182724
  size: "sm",
@@ -182806,9 +182813,9 @@ const B$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
182806
182813
  // Document styling object
182807
182814
  documentStyling: He,
182808
182815
  ...at
182809
- }, Ve) => {
182816
+ }, Ge) => {
182810
182817
  var Z7;
182811
- const { isFocusMode: We, toggleFocusMode: gt } = dJ({ onFocusMode: z }), [wt, Tt] = Be(!1), [tn, cn] = Be(!1), sn = qe(null), ln = (() => {
182818
+ const { isFocusMode: We, toggleFocusMode: gt } = dJ({ onFocusMode: z }), [xt, Nt] = Be(!1), [en, ln] = Be(!1), un = qe(null), cn = (() => {
182812
182819
  if (!He)
182813
182820
  return { canvas: void 0, background: void 0 };
182814
182821
  const dt = {}, Mt = {}, dn = ce ?? "light";
@@ -182837,7 +182844,7 @@ const B$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
182837
182844
  canvas: Object.keys(dt).length > 0 ? dt : void 0,
182838
182845
  background: Object.keys(Mt).length > 0 ? Mt : void 0
182839
182846
  };
182840
- })(), kn = () => ln.canvas, ve = () => ln.background, Ie = qe(null), { isNativeMobile: rt, isIOS: mt } = Dl(), [Zt, nn] = Be(!1), Pt = qe(null), Rt = (k == null ? void 0 : k.slice(0, 4)) || [], er = k ? Math.max(0, k.length - 4) : 0;
182847
+ })(), Fn = () => cn.canvas, ve = () => cn.background, Ie = qe(null), { isNativeMobile: rt, isIOS: mt } = Dl(), [Zt, nn] = Be(!1), Pt = qe(null), Rt = (k == null ? void 0 : k.slice(0, 4)) || [], er = k ? Math.max(0, k.length - 4) : 0;
182841
182848
  E1(Pt, () => {
182842
182849
  nn(!1);
182843
182850
  }), Me(() => {
@@ -182914,7 +182921,7 @@ const B$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
182914
182921
  ...at
182915
182922
  });
182916
182923
  HO(
182917
- Ve,
182924
+ Ge,
182918
182925
  () => ({
182919
182926
  getEditor: () => Ae,
182920
182927
  getYdoc: () => Vt,
@@ -182950,7 +182957,7 @@ const B$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
182950
182957
  },
182951
182958
  exportCurrentTabOrOpenExportModal: (dt = "pdf", Mt) => {
182952
182959
  var dn;
182953
- (dn = sn.current) == null || dn.call(sn, dt, Mt);
182960
+ (dn = un.current) == null || dn.call(un, dt, Mt);
182954
182961
  },
182955
182962
  terminateSession: gJ
182956
182963
  }),
@@ -182985,9 +182992,9 @@ const B$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
182985
182992
  Me(() => {
182986
182993
  if (Ae && rt) {
182987
182994
  const { selection: dt } = Ae.state, Mt = Sy(dt), dn = () => {
182988
- Tt(!0);
182995
+ Nt(!0);
182989
182996
  }, Bn = () => {
182990
- Tt(!1);
182997
+ Nt(!1);
182991
182998
  };
182992
182999
  return !Mt && Ae.on("focus", dn), Mt && Ae.on("blur", Bn), () => {
182993
183000
  Ae.off("focus", dn), Ae.off("blur", Bn);
@@ -183087,7 +183094,7 @@ const B$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
183087
183094
  ydoc: Vt,
183088
183095
  toggleFocusMode: gt,
183089
183096
  onRegisterExportTrigger: (dt) => {
183090
- sn.current = dt;
183097
+ un.current = dt;
183091
183098
  }
183092
183099
  }
183093
183100
  ) })
@@ -183100,7 +183107,7 @@ const B$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
183100
183107
  ydoc: Vt,
183101
183108
  tabs: pg,
183102
183109
  onRegisterExportTrigger: (dt) => {
183103
- sn.current = dt;
183110
+ un.current = dt;
183104
183111
  },
183105
183112
  onError: m,
183106
183113
  ipfsImageUploadFn: f,
@@ -183120,8 +183127,8 @@ const B$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
183120
183127
  {
183121
183128
  editor: Ae,
183122
183129
  onClose: kJ,
183123
- isFullscreen: tn,
183124
- setIsFullscreen: cn,
183130
+ isFullscreen: en,
183131
+ setIsFullscreen: ln,
183125
183132
  onError: m,
183126
183133
  setCommentDrawerOpen: B,
183127
183134
  sharedSlidesLink: oe,
@@ -183221,7 +183228,7 @@ const B$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
183221
183228
  },
183222
183229
  flexShrink: 0,
183223
183230
  minHeight: "100%",
183224
- ...We ? {} : kn() || {}
183231
+ ...We ? {} : Fn() || {}
183225
183232
  },
183226
183233
  children: [
183227
183234
  Ml && e && /* @__PURE__ */ F.jsxs("p", { className: "text-center color-text-secondary text-helper-text-sm flex gap-2 items-center justify-center mt-3", children: [
@@ -183311,8 +183318,8 @@ const B$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
183311
183318
  "flex flex-wrap px-4 md:px-8 lg:px-[80px] mb-8 items-center gap-1 mt-4 lg:!mt-0",
183312
183319
  { "pt-12": e }
183313
183320
  ),
183314
- ...!We && kn() && {
183315
- style: kn()
183321
+ ...!We && Fn() && {
183322
+ style: Fn()
183316
183323
  },
183317
183324
  children: [
183318
183325
  Rt.map((dt, Mt) => /* @__PURE__ */ F.jsx(
@@ -183445,7 +183452,7 @@ const B$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
183445
183452
  {
183446
183453
  className: tt(
183447
183454
  "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",
183448
- wt && "hidden",
183455
+ xt && "hidden",
183449
183456
  { "top-14": P, "top-0": !P }
183450
183457
  ),
183451
183458
  children: /* @__PURE__ */ F.jsx(
@@ -183453,7 +183460,7 @@ const B$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
183453
183460
  {
183454
183461
  onError: m,
183455
183462
  editor: Ae,
183456
- isKeyboardVisible: wt,
183463
+ isKeyboardVisible: xt,
183457
183464
  isNavbarVisible: P,
183458
183465
  setIsNavbarVisible: L,
183459
183466
  ipfsImageUploadFn: f,