bi-components-library 1.3.2-next.31 → 1.3.2-next.32

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
@@ -1,6 +1,6 @@
1
1
  import { jsx as y, jsxs as j, Fragment as ot } from "react/jsx-runtime";
2
- import ye, { useState as ee, useRef as ne, useMemo as Ke, useCallback as V, useEffect as ve, createContext as to, useContext as pf, useLayoutEffect as Xe, useDebugValue as mf, forwardRef as Ob } from "react";
3
- import { Button as Kn, Card as no, Modal as Rb, Table as ro, Flex as Eu, Spin as lo, Empty as Mb, Select as Dl, Form as Ql, Input as ao, Space as Db, unstableSetRender as Lb, Tooltip as io, DatePicker as Pb, Cascader as Bb, Image as bf, message as Ir, Dropdown as Fb, ConfigProvider as Hb, Progress as Ub, Pagination as zb, theme as Vb } from "antd";
2
+ import Ee, { useState as ee, useRef as ne, useMemo as Ke, useCallback as V, useEffect as ye, createContext as to, useContext as pf, useLayoutEffect as Xe, useDebugValue as mf, forwardRef as Ob } from "react";
3
+ import { Button as Qn, Card as no, Modal as Rb, Table as ro, Flex as Eu, Spin as lo, Empty as Mb, Select as Dl, Form as Ql, Input as ao, Space as Db, unstableSetRender as Lb, Tooltip as io, DatePicker as Pb, Cascader as Bb, Image as bf, message as Ir, Dropdown as Fb, ConfigProvider as Hb, Progress as Ub, Pagination as zb, theme as Vb } from "antd";
4
4
  import { createFromIconfontCN as $b, LeftOutlined as qb, SearchOutlined as Wb, ReloadOutlined as Yb, CloseCircleFilled as gf, InfoCircleOutlined as jb, SendOutlined as Gb, PauseCircleOutlined as Kb, PlayCircleOutlined as Qb } from "@ant-design/icons";
5
5
  import { createRoot as Xb } from "react-dom/client";
6
6
  import Jb, { createPortal as so } from "react-dom";
@@ -10,7 +10,7 @@ const Zb = ({
10
10
  children: n,
11
11
  ...r
12
12
  }) => /* @__PURE__ */ y(
13
- Kn,
13
+ Qn,
14
14
  {
15
15
  ...r,
16
16
  type: ((a) => {
@@ -441,7 +441,7 @@ const i0 = ({
441
441
  size: r = "small",
442
442
  type: l = "default"
443
443
  }) => /* @__PURE__ */ y(
444
- Kn,
444
+ Qn,
445
445
  {
446
446
  size: r,
447
447
  type: l,
@@ -497,7 +497,7 @@ const s0 = ({
497
497
  }) => {
498
498
  const r = e ? `px-0 h-auto ${t || ""}` : t;
499
499
  return /* @__PURE__ */ y(
500
- Kn,
500
+ Qn,
501
501
  {
502
502
  type: "link",
503
503
  ...n,
@@ -610,7 +610,7 @@ const { Option: o0 } = Dl, u0 = ({
610
610
  };
611
611
  b($), k(q);
612
612
  }, [a]);
613
- return ve(() => {
613
+ return ye(() => {
614
614
  const L = Object.keys(o).length > 0;
615
615
  (s && !_.current || L) && (A(), _.current = !0);
616
616
  }, [s, o, A]), /* @__PURE__ */ j("div", { children: [
@@ -638,9 +638,9 @@ const { Option: o0 } = Dl, u0 = ({
638
638
  }
639
639
  ) }, L.key)),
640
640
  /* @__PURE__ */ y(Ql.Item, { children: /* @__PURE__ */ j(Db, { children: [
641
- /* @__PURE__ */ y(Kn, { type: "primary", htmlType: "submit", icon: /* @__PURE__ */ y(Wb, {}), children: "查询" }),
642
- /* @__PURE__ */ y(Kn, { onClick: D, children: "重置" }),
643
- l && /* @__PURE__ */ y(Kn, { icon: /* @__PURE__ */ y(Yb, {}), onClick: F, children: "刷新" })
641
+ /* @__PURE__ */ y(Qn, { type: "primary", htmlType: "submit", icon: /* @__PURE__ */ y(Wb, {}), children: "查询" }),
642
+ /* @__PURE__ */ y(Qn, { onClick: D, children: "重置" }),
643
+ l && /* @__PURE__ */ y(Qn, { icon: /* @__PURE__ */ y(Yb, {}), onClick: F, children: "刷新" })
644
644
  ] }) })
645
645
  ]
646
646
  }
@@ -755,7 +755,7 @@ const c0 = ({ node: e, value: t, onChange: n, index: r }) => {
755
755
  }, d0 = /[;;,,。.!!??::、]/, f0 = (e) => {
756
756
  const t = (e ?? "").trim();
757
757
  return t.length === 1 && d0.test(t);
758
- }, vf = ye.memo(({ node: e }) => {
758
+ }, vf = Ee.memo(({ node: e }) => {
759
759
  if (f0(e.text) && !e.className && !e.exclusionGroup)
760
760
  return /* @__PURE__ */ y("span", { "data-type": "text", className: "rte-inline-punct", contentEditable: !1, children: (e.text ?? "").trim() });
761
761
  const t = (e.text ?? "").replace(/\n/g, "<br/>"), n = /* @__PURE__ */ y(
@@ -795,7 +795,7 @@ const h0 = {
795
795
  overlayInnerStyle: h0,
796
796
  children: e
797
797
  }
798
- ), p0 = (e) => e ? typeof e == "string" ? e : JSON.stringify(e) : "", yf = ye.memo(({ node: e, hideClose: t, onClose: n }) => {
798
+ ), p0 = (e) => e ? typeof e == "string" ? e : JSON.stringify(e) : "", yf = Ee.memo(({ node: e, hideClose: t, onClose: n }) => {
799
799
  const r = p0(e.tooltip), l = /* @__PURE__ */ y(
800
800
  "span",
801
801
  {
@@ -907,8 +907,8 @@ It.prototype.property = "";
907
907
  It.prototype.spaceSeparated = !1;
908
908
  It.prototype.space = void 0;
909
909
  let E0 = 0;
910
- const xe = or(), Ye = or(), bs = or(), J = or(), Fe = or(), Ar = or(), Rt = or();
911
- function or() {
910
+ const xe = ur(), Ye = ur(), bs = ur(), J = ur(), Fe = ur(), Ar = ur(), Rt = ur();
911
+ function ur() {
912
912
  return 2 ** ++E0;
913
913
  }
914
914
  const gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -3900,10 +3900,10 @@ function ev(e, t, n) {
3900
3900
  return R === null || ae(R) ? F(R) : Ie(R) ? (e.consume(R), D) : n(R);
3901
3901
  }
3902
3902
  function F(R) {
3903
- return R === 45 && l === 2 ? (e.consume(R), B) : R === 60 && l === 1 ? (e.consume(R), $) : R === 62 && l === 4 ? (e.consume(R), re) : R === 63 && l === 3 ? (e.consume(R), T) : R === 93 && l === 5 ? (e.consume(R), Q) : ae(R) && (l === 6 || l === 7) ? (e.exit("htmlFlowData"), e.check(Xg, ie, U)(R)) : R === null || ae(R) ? (e.exit("htmlFlowData"), U(R)) : (e.consume(R), F);
3903
+ return R === 45 && l === 2 ? (e.consume(R), B) : R === 60 && l === 1 ? (e.consume(R), $) : R === 62 && l === 4 ? (e.consume(R), re) : R === 63 && l === 3 ? (e.consume(R), T) : R === 93 && l === 5 ? (e.consume(R), Q) : ae(R) && (l === 6 || l === 7) ? (e.exit("htmlFlowData"), e.check(Xg, se, U)(R)) : R === null || ae(R) ? (e.exit("htmlFlowData"), U(R)) : (e.consume(R), F);
3904
3904
  }
3905
3905
  function U(R) {
3906
- return e.check(Jg, L, ie)(R);
3906
+ return e.check(Jg, L, se)(R);
3907
3907
  }
3908
3908
  function L(R) {
3909
3909
  return e.enter("lineEnding"), e.consume(R), e.exit("lineEnding"), E;
@@ -3931,9 +3931,9 @@ function ev(e, t, n) {
3931
3931
  return R === 62 ? (e.consume(R), re) : R === 45 && l === 2 ? (e.consume(R), T) : F(R);
3932
3932
  }
3933
3933
  function re(R) {
3934
- return R === null || ae(R) ? (e.exit("htmlFlowData"), ie(R)) : (e.consume(R), re);
3934
+ return R === null || ae(R) ? (e.exit("htmlFlowData"), se(R)) : (e.consume(R), re);
3935
3935
  }
3936
- function ie(R) {
3936
+ function se(R) {
3937
3937
  return e.exit("htmlFlow"), t(R);
3938
3938
  }
3939
3939
  }
@@ -4671,10 +4671,10 @@ function Wv(e, t, n) {
4671
4671
  let $, q, Q, T;
4672
4672
  return Array.isArray(L) ? (
4673
4673
  /* c8 ignore next 1 */
4674
- ie(L)
4674
+ se(L)
4675
4675
  ) : "tokenize" in L ? (
4676
4676
  // Looks like a construct.
4677
- ie([
4677
+ se([
4678
4678
  /** @type {Construct} */
4679
4679
  L
4680
4680
  ])
@@ -4682,16 +4682,16 @@ function Wv(e, t, n) {
4682
4682
  function re(Ae) {
4683
4683
  return ue;
4684
4684
  function ue(_e) {
4685
- const De = _e !== null && Ae[_e], be = _e !== null && Ae.null, ze = [
4685
+ const De = _e !== null && Ae[_e], ge = _e !== null && Ae.null, ze = [
4686
4686
  // To do: add more extension tests.
4687
4687
  /* c8 ignore next 2 */
4688
4688
  ...Array.isArray(De) ? De : De ? [De] : [],
4689
- ...Array.isArray(be) ? be : be ? [be] : []
4689
+ ...Array.isArray(ge) ? ge : ge ? [ge] : []
4690
4690
  ];
4691
- return ie(ze)(_e);
4691
+ return se(ze)(_e);
4692
4692
  }
4693
4693
  }
4694
- function ie(Ae) {
4694
+ function se(Ae) {
4695
4695
  return $ = Ae, q = 0, Ae.length === 0 ? B : R(Ae[q]);
4696
4696
  }
4697
4697
  function R(Ae) {
@@ -4876,7 +4876,7 @@ function t1(e) {
4876
4876
  autolinkProtocol: A,
4877
4877
  autolinkEmail: A,
4878
4878
  atxHeading: a(Bt),
4879
- blockQuote: a(be),
4879
+ blockQuote: a(ge),
4880
4880
  characterEscape: A,
4881
4881
  characterReference: A,
4882
4882
  codeFenced: a(ze),
@@ -4901,18 +4901,18 @@ function t1(e) {
4901
4901
  image: a(vt),
4902
4902
  label: i,
4903
4903
  link: a(ct),
4904
- listItem: a(dr),
4904
+ listItem: a(fr),
4905
4905
  listItemValue: f,
4906
4906
  listOrdered: a(yt, d),
4907
4907
  listUnordered: a(yt),
4908
- paragraph: a(fr),
4908
+ paragraph: a(hr),
4909
4909
  reference: R,
4910
4910
  referenceString: i,
4911
4911
  resourceDestinationString: i,
4912
4912
  resourceTitleString: i,
4913
4913
  setextHeading: a(Bt),
4914
4914
  strong: a(an),
4915
- thematicBreak: a(hr)
4915
+ thematicBreak: a(pr)
4916
4916
  },
4917
4917
  exit: {
4918
4918
  atxHeading: o(),
@@ -4958,7 +4958,7 @@ function t1(e) {
4958
4958
  referenceString: he,
4959
4959
  resourceDestinationString: T,
4960
4960
  resourceTitleString: re,
4961
- resource: ie,
4961
+ resource: se,
4962
4962
  setextHeading: o(N),
4963
4963
  setextHeadingLineSequence: _,
4964
4964
  setextHeadingText: x,
@@ -5238,7 +5238,7 @@ function t1(e) {
5238
5238
  const W = this.resume(), Z = this.stack[this.stack.length - 1];
5239
5239
  Z.title = W;
5240
5240
  }
5241
- function ie() {
5241
+ function se() {
5242
5242
  this.data.inReference = void 0;
5243
5243
  }
5244
5244
  function R() {
@@ -5272,7 +5272,7 @@ function t1(e) {
5272
5272
  const Z = this.stack[this.stack.length - 1];
5273
5273
  Z.url = "mailto:" + this.sliceSerialize(W);
5274
5274
  }
5275
- function be() {
5275
+ function ge() {
5276
5276
  return {
5277
5277
  type: "blockquote",
5278
5278
  children: []
@@ -5351,7 +5351,7 @@ function t1(e) {
5351
5351
  children: []
5352
5352
  };
5353
5353
  }
5354
- function dr(W) {
5354
+ function fr(W) {
5355
5355
  return {
5356
5356
  type: "listItem",
5357
5357
  spread: W._spread,
@@ -5359,7 +5359,7 @@ function t1(e) {
5359
5359
  children: []
5360
5360
  };
5361
5361
  }
5362
- function fr() {
5362
+ function hr() {
5363
5363
  return {
5364
5364
  type: "paragraph",
5365
5365
  children: []
@@ -5377,7 +5377,7 @@ function t1(e) {
5377
5377
  value: ""
5378
5378
  };
5379
5379
  }
5380
- function hr() {
5380
+ function pr() {
5381
5381
  return {
5382
5382
  type: "thematicBreak"
5383
5383
  };
@@ -5955,7 +5955,7 @@ const Qf = -1, ja = 0, al = 1, Sa = 2, bo = 3, go = 4, vo = 5, yo = 6, Xf = 7, J
5955
5955
  }, Qu = (e, { json: t, lossy: n } = {}) => {
5956
5956
  const r = [];
5957
5957
  return M1(!(t || n), !!t, /* @__PURE__ */ new Map(), r)(e), r;
5958
- }, rr = typeof structuredClone == "function" ? (
5958
+ }, lr = typeof structuredClone == "function" ? (
5959
5959
  /* c8 ignore start */
5960
5960
  (e, t) => t && ("json" in t || "lossy" in t) ? Ku(Qu(e, t)) : structuredClone(e)
5961
5961
  ) : (e, t) => Ku(Qu(e, t));
@@ -6024,7 +6024,7 @@ function P1(e) {
6024
6024
  type: "element",
6025
6025
  tagName: a,
6026
6026
  properties: {
6027
- ...rr(i),
6027
+ ...lr(i),
6028
6028
  id: "footnote-label"
6029
6029
  },
6030
6030
  children: [{ type: "text", value: l }]
@@ -6213,10 +6213,10 @@ function Y1(e, t) {
6213
6213
  return h(s, c, d);
6214
6214
  if (s.options.passThrough && s.options.passThrough.includes(f)) {
6215
6215
  if ("children" in c) {
6216
- const { children: b, ...g } = c, v = rr(g);
6216
+ const { children: b, ...g } = c, v = lr(g);
6217
6217
  return v.children = s.all(c), v;
6218
6218
  }
6219
- return rr(c);
6219
+ return lr(c);
6220
6220
  }
6221
6221
  return (s.options.unknownHandler || K1)(s, c, d);
6222
6222
  }
@@ -6253,7 +6253,7 @@ function G1(e, t) {
6253
6253
  const i = "children" in n ? n.children : [n];
6254
6254
  n = { type: "element", tagName: r, properties: {}, children: i };
6255
6255
  }
6256
- n.type === "element" && a && Object.assign(n.properties, rr(a)), "children" in n && n.children && l !== null && l !== void 0 && (n.children = l);
6256
+ n.type === "element" && a && Object.assign(n.properties, lr(a)), "children" in n && n.children && l !== null && l !== void 0 && (n.children = l);
6257
6257
  }
6258
6258
  return n;
6259
6259
  }
@@ -7787,7 +7787,7 @@ function uc(e, t) {
7787
7787
  `, t);
7788
7788
  return r === -1 ? n : n === -1 || n + 1 === r ? r : n < r ? n : r;
7789
7789
  }
7790
- const Wn = {
7790
+ const Yn = {
7791
7791
  html: "http://www.w3.org/1999/xhtml",
7792
7792
  mathml: "http://www.w3.org/1998/Math/MathML",
7793
7793
  svg: "http://www.w3.org/2000/svg",
@@ -7870,7 +7870,7 @@ function ah(e, t) {
7870
7870
  }
7871
7871
  function Fy(e, t) {
7872
7872
  const n = e.schema;
7873
- e.schema = t.namespaceURI === Wn.svg ? Ln : Pl;
7873
+ e.schema = t.namespaceURI === Yn.svg ? Ln : Pl;
7874
7874
  let r = -1;
7875
7875
  const l = {};
7876
7876
  for (; ++r < t.attrs.length; ) {
@@ -8011,7 +8011,7 @@ function Gy(e, t) {
8011
8011
  tagName: e.tagName,
8012
8012
  attrs: l,
8013
8013
  // @ts-expect-error: `parse5` types are wrong.
8014
- namespaceURI: Wn[i],
8014
+ namespaceURI: Yn[i],
8015
8015
  childNodes: [],
8016
8016
  parentNode: null
8017
8017
  };
@@ -8028,7 +8028,7 @@ function Ky(e, t, n) {
8028
8028
  };
8029
8029
  if (r.space && r.space !== "html" && r.space !== "svg") {
8030
8030
  const a = l.name.indexOf(":");
8031
- a < 0 ? l.prefix = "" : (l.name = l.name.slice(a + 1), l.prefix = r.attribute.slice(0, a)), l.namespace = Wn[r.space];
8031
+ a < 0 ? l.prefix = "" : (l.name = l.name.slice(a + 1), l.prefix = r.attribute.slice(0, a)), l.namespace = Yn[r.space];
8032
8032
  }
8033
8033
  return l;
8034
8034
  }
@@ -8513,10 +8513,10 @@ var G;
8513
8513
  (function(e) {
8514
8514
  e.HTML = "http://www.w3.org/1999/xhtml", e.MATHML = "http://www.w3.org/1998/Math/MathML", e.SVG = "http://www.w3.org/2000/svg", e.XLINK = "http://www.w3.org/1999/xlink", e.XML = "http://www.w3.org/XML/1998/namespace", e.XMLNS = "http://www.w3.org/2000/xmlns/";
8515
8515
  })(G || (G = {}));
8516
- var Qn;
8516
+ var Xn;
8517
8517
  (function(e) {
8518
8518
  e.TYPE = "type", e.ACTION = "action", e.ENCODING = "encoding", e.PROMPT = "prompt", e.NAME = "name", e.COLOR = "color", e.FACE = "face", e.SIZE = "size";
8519
- })(Qn || (Qn = {}));
8519
+ })(Xn || (Xn = {}));
8520
8520
  var zt;
8521
8521
  (function(e) {
8522
8522
  e.NO_QUIRKS = "no-quirks", e.QUIRKS = "quirks", e.LIMITED_QUIRKS = "limited-quirks";
@@ -11404,7 +11404,7 @@ const yc = {
11404
11404
  ]);
11405
11405
  function FE(e) {
11406
11406
  const t = e.tagID;
11407
- return t === p.FONT && e.attrs.some(({ name: r }) => r === Qn.COLOR || r === Qn.SIZE || r === Qn.FACE) || BE.has(t);
11407
+ return t === p.FONT && e.attrs.some(({ name: r }) => r === Xn.COLOR || r === Xn.SIZE || r === Xn.FACE) || BE.has(t);
11408
11408
  }
11409
11409
  function gh(e) {
11410
11410
  for (let t = 0; t < e.attrs.length; t++)
@@ -11435,7 +11435,7 @@ function UE(e, t) {
11435
11435
  function zE(e, t, n) {
11436
11436
  if (t === G.MATHML && e === p.ANNOTATION_XML) {
11437
11437
  for (let r = 0; r < n.length; r++)
11438
- if (n[r].name === Qn.ENCODING) {
11438
+ if (n[r].name === Xn.ENCODING) {
11439
11439
  const l = n[r].value.toLowerCase();
11440
11440
  return l === yc.TEXT_HTML || l === yc.APPLICATION_XML;
11441
11441
  }
@@ -12534,14 +12534,14 @@ function iT(e, t) {
12534
12534
  break;
12535
12535
  }
12536
12536
  case p.TEMPLATE: {
12537
- ur(e, t);
12537
+ cr(e, t);
12538
12538
  break;
12539
12539
  }
12540
12540
  default:
12541
12541
  e._err(t, z.endTagWithoutMatchingOpenElement);
12542
12542
  }
12543
12543
  }
12544
- function ur(e, t) {
12544
+ function cr(e, t) {
12545
12545
  e.openElements.tmplCount > 0 ? (e.openElements.generateImpliedEndTagsThoroughly(), e.openElements.currentTagId !== p.TEMPLATE && e._err(t, z.closingOfElementWithOpenChildElements), e.openElements.popUntilTagNamePopped(p.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode()) : e._err(t, z.endTagWithoutMatchingOpenElement);
12546
12546
  }
12547
12547
  function ol(e, t) {
@@ -12633,7 +12633,7 @@ function cT(e, t) {
12633
12633
  break;
12634
12634
  }
12635
12635
  case p.TEMPLATE: {
12636
- ur(e, t);
12636
+ cr(e, t);
12637
12637
  break;
12638
12638
  }
12639
12639
  default:
@@ -12741,7 +12741,7 @@ function xh(e, t) {
12741
12741
  e._reconstructActiveFormattingElements(), e._appendElement(t, G.HTML), e.framesetOk = !1, t.ackSelfClosing = !0;
12742
12742
  }
12743
12743
  function Sh(e) {
12744
- const t = dh(e, Qn.TYPE);
12744
+ const t = dh(e, Xn.TYPE);
12745
12745
  return t != null && t.toLowerCase() === $E;
12746
12746
  }
12747
12747
  function AT(e, t) {
@@ -13142,7 +13142,7 @@ function Xa(e, t) {
13142
13142
  break;
13143
13143
  }
13144
13144
  case p.TEMPLATE: {
13145
- ur(e, t);
13145
+ cr(e, t);
13146
13146
  break;
13147
13147
  }
13148
13148
  default:
@@ -13253,7 +13253,7 @@ function xl(e, t) {
13253
13253
  break;
13254
13254
  }
13255
13255
  case p.TEMPLATE: {
13256
- ur(e, t);
13256
+ cr(e, t);
13257
13257
  break;
13258
13258
  }
13259
13259
  case p.BODY:
@@ -13345,7 +13345,7 @@ function sx(e, t) {
13345
13345
  break;
13346
13346
  }
13347
13347
  case p.TEMPLATE: {
13348
- ur(e, t);
13348
+ cr(e, t);
13349
13349
  break;
13350
13350
  }
13351
13351
  case p.COL:
@@ -13533,7 +13533,7 @@ function Oh(e, t) {
13533
13533
  break;
13534
13534
  }
13535
13535
  case p.TEMPLATE: {
13536
- ur(e, t);
13536
+ cr(e, t);
13537
13537
  break;
13538
13538
  }
13539
13539
  }
@@ -13589,7 +13589,7 @@ function fx(e, t) {
13589
13589
  }
13590
13590
  }
13591
13591
  function hx(e, t) {
13592
- t.tagID === p.TEMPLATE && ur(e, t);
13592
+ t.tagID === p.TEMPLATE && cr(e, t);
13593
13593
  }
13594
13594
  function Rh(e, t) {
13595
13595
  e.openElements.tmplCount > 0 ? (e.openElements.popUntilTagNamePopped(p.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode(), e.onEof(t)) : ko(e, t);
@@ -13838,12 +13838,12 @@ function Dx(e, t) {
13838
13838
  if (t.parser.tokenizer.state === We.PLAINTEXT) return;
13839
13839
  Vr(t, ln(e));
13840
13840
  const r = t.parser.openElements.current;
13841
- let l = "namespaceURI" in r ? r.namespaceURI : Wn.html;
13842
- l === Wn.html && n === "svg" && (l = Wn.svg);
13841
+ let l = "namespaceURI" in r ? r.namespaceURI : Yn.html;
13842
+ l === Yn.html && n === "svg" && (l = Yn.svg);
13843
13843
  const a = Vy(
13844
13844
  // Shallow clone to not delve into `children`: we only need the attributes.
13845
13845
  { ...e, children: [] },
13846
- { space: l === Wn.svg ? "svg" : "html" }
13846
+ { space: l === Yn.svg ? "svg" : "html" }
13847
13847
  ), i = {
13848
13848
  type: ke.START_TAG,
13849
13849
  tagName: n,
@@ -13901,7 +13901,7 @@ function Hl(e) {
13901
13901
  };
13902
13902
  }
13903
13903
  function Bx(e) {
13904
- return "children" in e ? rr({ ...e, children: [] }) : rr(e);
13904
+ return "children" in e ? lr({ ...e, children: [] }) : lr(e);
13905
13905
  }
13906
13906
  function Fx(e) {
13907
13907
  return function(t, n) {
@@ -13911,7 +13911,7 @@ function Fx(e) {
13911
13911
  );
13912
13912
  };
13913
13913
  }
13914
- const Vn = ["ariaDescribedBy", "ariaLabel", "ariaLabelledBy"], Sr = {
13914
+ const $n = ["ariaDescribedBy", "ariaLabel", "ariaLabelledBy"], Sr = {
13915
13915
  ancestors: {
13916
13916
  tbody: ["table"],
13917
13917
  td: ["table"],
@@ -13922,7 +13922,7 @@ const Vn = ["ariaDescribedBy", "ariaLabel", "ariaLabelledBy"], Sr = {
13922
13922
  },
13923
13923
  attributes: {
13924
13924
  a: [
13925
- ...Vn,
13925
+ ...$n,
13926
13926
  // Note: these 3 are used by GFM footnotes, they do work on all links.
13927
13927
  "dataFootnoteBackref",
13928
13928
  "dataFootnoteRef",
@@ -13936,10 +13936,10 @@ const Vn = ["ariaDescribedBy", "ariaLabel", "ariaLabelledBy"], Sr = {
13936
13936
  code: [["className", /^language-./]],
13937
13937
  del: ["cite"],
13938
13938
  div: ["itemScope", "itemType"],
13939
- dl: [...Vn],
13939
+ dl: [...$n],
13940
13940
  // Note: this is used by GFM footnotes.
13941
13941
  h2: [["className", "sr-only"]],
13942
- img: [...Vn, "longDesc", "src"],
13942
+ img: [...$n, "longDesc", "src"],
13943
13943
  // Note: `input` is not normally allowed by GH, when manually writing
13944
13944
  // it in markdown, they add it from tasklists some other way.
13945
13945
  // We can’t do that, so we have to allow it.
@@ -13955,16 +13955,16 @@ const Vn = ["ariaDescribedBy", "ariaLabel", "ariaLabelledBy"], Sr = {
13955
13955
  // Note: this class is not normally allowed by GH, when manually writing
13956
13956
  // `ol` as HTML in markdown, they adds it some other way.
13957
13957
  // We can’t do that, so we have to allow it.
13958
- ol: [...Vn, ["className", "contains-task-list"]],
13958
+ ol: [...$n, ["className", "contains-task-list"]],
13959
13959
  q: ["cite"],
13960
13960
  section: ["dataFootnotes", ["className", "footnotes"]],
13961
13961
  source: ["srcSet"],
13962
- summary: [...Vn],
13963
- table: [...Vn],
13962
+ summary: [...$n],
13963
+ table: [...$n],
13964
13964
  // Note: this class is not normally allowed by GH, when manually writing
13965
13965
  // `ol` as HTML in markdown, they adds it some other way.
13966
13966
  // We can’t do that, so we have to allow it.
13967
- ul: [...Vn, ["className", "contains-task-list"]],
13967
+ ul: [...$n, ["className", "contains-task-list"]],
13968
13968
  "*": [
13969
13969
  "abbr",
13970
13970
  "accept",
@@ -14275,7 +14275,7 @@ function Ul(e, t) {
14275
14275
  // @ts-expect-error: looks like a node.
14276
14276
  t
14277
14277
  );
14278
- t.data && (e.data = rr(t.data)), n && (e.position = n);
14278
+ t.data && (e.data = lr(t.data)), n && (e.position = n);
14279
14279
  }
14280
14280
  function Ac(e, t) {
14281
14281
  let n, r = -1;
@@ -15214,7 +15214,7 @@ const qS = {
15214
15214
  onClose: r
15215
15215
  }) => {
15216
15216
  const l = Vl(), a = Array.isArray(e.platforms) ? e.platforms : [], i = a.length, [s, o] = ee(t), [u, c] = ee(n), d = Math.min(Math.max(s, 0), Math.max(i - 1, 0)), f = a[d], h = Array.isArray(f?.images) ? f.images : [], m = Array.isArray(f?.stepDescriptions) ? f.stepDescriptions : [], b = Math.min(h.length, m.length), g = Math.min(Math.max(u, 0), Math.max(b - 1, 0)), v = h[g], I = m[g] || "", k = (e.description || "").trim(), M = (e.disclaimer || "").trim(), w = i > 1;
15217
- ve(() => {
15217
+ ye(() => {
15218
15218
  const _ = (N) => {
15219
15219
  N.key === "Escape" ? r() : N.key === "ArrowLeft" && g > 0 ? c(g - 1) : N.key === "ArrowRight" && g < b - 1 && c(g + 1);
15220
15220
  };
@@ -15331,7 +15331,7 @@ const qS = {
15331
15331
  ),
15332
15332
  l ?? document.body
15333
15333
  );
15334
- }, Xn = ({ data: e, hidden: t }) => {
15334
+ }, Jn = ({ data: e, hidden: t }) => {
15335
15335
  const [n, r] = ee(!1);
15336
15336
  return t ? null : /* @__PURE__ */ j(ot, { children: [
15337
15337
  /* @__PURE__ */ j(
@@ -15404,7 +15404,7 @@ const qS = {
15404
15404
  }
15405
15405
  ) })
15406
15406
  ] });
15407
- }, ZS = (e) => e ? typeof e == "string" ? e : JSON.stringify(e) : "", Wh = ye.memo(
15407
+ }, ZS = (e) => e ? typeof e == "string" ? e : JSON.stringify(e) : "", Wh = Ee.memo(
15408
15408
  ({ node: e, value: t, onChange: n, disabled: r, error: l }) => {
15409
15409
  const a = ZS(e.tooltip), i = t ?? "", s = e.placeholder || "", o = i.length > 0, u = zl(e.tooltip), c = !!u, d = !!a && !c && !o, f = !!a && !c, h = ne(null), m = ne(null), b = ne(i), [g, v] = ee(
15410
15410
  () => i.includes(`
@@ -15433,7 +15433,7 @@ const qS = {
15433
15433
  );
15434
15434
  Xe(() => {
15435
15435
  b.current !== i ? (b.current = i, w(!1)) : w(!0);
15436
- }, [w, i, s]), ve(() => {
15436
+ }, [w, i, s]), ye(() => {
15437
15437
  const A = h.current;
15438
15438
  if (!A || typeof ResizeObserver > "u") return;
15439
15439
  const P = A.closest(".rte-editor");
@@ -15482,7 +15482,7 @@ const qS = {
15482
15482
  }
15483
15483
  ), N = c ? /* @__PURE__ */ j(ot, { children: [
15484
15484
  _,
15485
- /* @__PURE__ */ y(Xn, { data: u, hidden: o })
15485
+ /* @__PURE__ */ y(Jn, { data: u, hidden: o })
15486
15486
  ] }) : _;
15487
15487
  return e.required ? /* @__PURE__ */ j(
15488
15488
  "span",
@@ -15498,7 +15498,7 @@ const qS = {
15498
15498
  }
15499
15499
  );
15500
15500
  Wh.displayName = "VariableNode";
15501
- const Yh = ye.memo(
15501
+ const Yh = Ee.memo(
15502
15502
  ({ node: e, value: t, onChange: n, disabled: r, error: l }) => {
15503
15503
  const a = t === void 0 && typeof e.defaultNumber == "number" ? String(e.defaultNumber) : t ?? "", i = a !== "", s = V(
15504
15504
  (b) => {
@@ -15627,7 +15627,7 @@ const Ro = {
15627
15627
  htmlRegion: "visible",
15628
15628
  dynamicInset: !0
15629
15629
  }
15630
- }, jh = ye.memo(
15630
+ }, jh = Ee.memo(
15631
15631
  ({ node: e, value: t, onChange: n, disabled: r, error: l }) => {
15632
15632
  const a = V(
15633
15633
  (f) => n(e.key, f),
@@ -15661,7 +15661,7 @@ const Ro = {
15661
15661
  return () => {
15662
15662
  window.cancelAnimationFrame(f), window.clearTimeout(h);
15663
15663
  };
15664
- }, [d]), ve(() => {
15664
+ }, [d]), ye(() => {
15665
15665
  if (!("fonts" in document)) return;
15666
15666
  let f = !1;
15667
15667
  const h = document.fonts;
@@ -15707,7 +15707,7 @@ const Ro = {
15707
15707
  }
15708
15708
  );
15709
15709
  jh.displayName = "SelectNode";
15710
- const Gh = ye.memo(
15710
+ const Gh = Ee.memo(
15711
15711
  ({ node: e, value: t, onChange: n, disabled: r, error: l }) => {
15712
15712
  const a = e.placeholder || "搜索或输入", i = Ke(
15713
15713
  () => e.options ?? [],
@@ -15753,27 +15753,27 @@ const Gh = ye.memo(
15753
15753
  }, [s, u, a]), w = V(() => {
15754
15754
  const N = m.current;
15755
15755
  if (!N) return;
15756
- const A = N.querySelector(".ant-select-selection-item"), P = N.querySelector(".ant-select-selection-placeholder"), D = A || P, F = (D?.textContent || "").trim() || M(), U = N.querySelector(".ant-select-selector"), L = D || U || N, E = window.getComputedStyle(L), B = D ? E.fontSize : "16px", $ = E.fontFamily || "sans-serif", q = E.fontWeight || "400", T = `${E.fontStyle || "normal"} ${q} ${B} ${$}`, ie = document.createElement("canvas").getContext("2d"), R = ie ? Math.ceil((ie.font = T, ie.measureText(F).width || 0)) : 0;
15756
+ const A = N.querySelector(".ant-select-selection-item"), P = N.querySelector(".ant-select-selection-placeholder"), D = A || P, F = (D?.textContent || "").trim() || M(), U = N.querySelector(".ant-select-selector"), L = D || U || N, E = window.getComputedStyle(L), B = D ? E.fontSize : "16px", $ = E.fontFamily || "sans-serif", q = E.fontWeight || "400", T = `${E.fontStyle || "normal"} ${q} ${B} ${$}`, se = document.createElement("canvas").getContext("2d"), R = se ? Math.ceil((se.font = T, se.measureText(F).width || 0)) : 0;
15757
15757
  let he = 0;
15758
15758
  if (U) {
15759
- const be = window.getComputedStyle(U);
15760
- he = (Number.parseFloat(be.paddingLeft) || 0) + (Number.parseFloat(be.paddingRight) || 0);
15759
+ const ge = window.getComputedStyle(U);
15760
+ he = (Number.parseFloat(ge.paddingLeft) || 0) + (Number.parseFloat(ge.paddingRight) || 0);
15761
15761
  }
15762
15762
  const we = N.querySelector(".ant-select-arrow"), Ae = we ? Math.ceil(we.getBoundingClientRect().width) : 12, ue = N.querySelector(".ant-select-clear");
15763
15763
  let _e = 0;
15764
15764
  if (ue) {
15765
- const be = window.getComputedStyle(ue);
15766
- be.display !== "none" && be.visibility !== "hidden" && (_e = Math.ceil(ue.getBoundingClientRect().width));
15765
+ const ge = window.getComputedStyle(ue);
15766
+ ge.display !== "none" && ge.visibility !== "hidden" && (_e = Math.ceil(ue.getBoundingClientRect().width));
15767
15767
  }
15768
15768
  const De = Math.min(240, Math.max(80, R + he + Ae + _e + 4));
15769
- h((be) => be === De ? be : De);
15769
+ h((ge) => ge === De ? ge : De);
15770
15770
  }, [M]);
15771
15771
  Xe(() => {
15772
15772
  const N = window.requestAnimationFrame(() => w()), A = window.setTimeout(() => w(), 60);
15773
15773
  return () => {
15774
15774
  window.cancelAnimationFrame(N), window.clearTimeout(A);
15775
15775
  };
15776
- }, [w]), ve(() => {
15776
+ }, [w]), ye(() => {
15777
15777
  if (!("fonts" in document)) return;
15778
15778
  let N = !1;
15779
15779
  const A = document.fonts;
@@ -16003,8 +16003,8 @@ function Qh() {
16003
16003
  if (typeof q == "string" && !/Z$/i.test(q)) {
16004
16004
  var T = q.match(g);
16005
16005
  if (T) {
16006
- var re = T[2] - 1 || 0, ie = (T[7] || "0").substring(0, 3);
16007
- return Q ? new Date(Date.UTC(T[1], re, T[3] || 1, T[4] || 0, T[5] || 0, T[6] || 0, ie)) : new Date(T[1], re, T[3] || 1, T[4] || 0, T[5] || 0, T[6] || 0, ie);
16006
+ var re = T[2] - 1 || 0, se = (T[7] || "0").substring(0, 3);
16007
+ return Q ? new Date(Date.UTC(T[1], re, T[3] || 1, T[4] || 0, T[5] || 0, T[6] || 0, se)) : new Date(T[1], re, T[3] || 1, T[4] || 0, T[5] || 0, T[6] || 0, se);
16008
16008
  }
16009
16009
  }
16010
16010
  return new Date(q);
@@ -16030,11 +16030,11 @@ function Qh() {
16030
16030
  }, E.valueOf = function() {
16031
16031
  return this.$d.getTime();
16032
16032
  }, E.startOf = function(B, $) {
16033
- var q = this, Q = !!D.u($) || $, T = D.p(B), re = function(De, be) {
16034
- var ze = D.w(q.$u ? Date.UTC(q.$y, be, De) : new Date(q.$y, be, De), q);
16033
+ var q = this, Q = !!D.u($) || $, T = D.p(B), re = function(De, ge) {
16034
+ var ze = D.w(q.$u ? Date.UTC(q.$y, ge, De) : new Date(q.$y, ge, De), q);
16035
16035
  return Q ? ze : ze.endOf(u);
16036
- }, ie = function(De, be) {
16037
- return D.w(q.toDate()[De].apply(q.toDate("s"), (Q ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(be)), q);
16036
+ }, se = function(De, ge) {
16037
+ return D.w(q.toDate()[De].apply(q.toDate("s"), (Q ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ge)), q);
16038
16038
  }, R = this.$W, he = this.$M, we = this.$D, Ae = "set" + (this.$u ? "UTC" : "");
16039
16039
  switch (T) {
16040
16040
  case h:
@@ -16046,24 +16046,24 @@ function Qh() {
16046
16046
  return re(Q ? we - _e : we + (6 - _e), he);
16047
16047
  case u:
16048
16048
  case m:
16049
- return ie(Ae + "Hours", 0);
16049
+ return se(Ae + "Hours", 0);
16050
16050
  case o:
16051
- return ie(Ae + "Minutes", 1);
16051
+ return se(Ae + "Minutes", 1);
16052
16052
  case s:
16053
- return ie(Ae + "Seconds", 2);
16053
+ return se(Ae + "Seconds", 2);
16054
16054
  case i:
16055
- return ie(Ae + "Milliseconds", 3);
16055
+ return se(Ae + "Milliseconds", 3);
16056
16056
  default:
16057
16057
  return this.clone();
16058
16058
  }
16059
16059
  }, E.endOf = function(B) {
16060
16060
  return this.startOf(B, !1);
16061
16061
  }, E.$set = function(B, $) {
16062
- var q, Q = D.p(B), T = "set" + (this.$u ? "UTC" : ""), re = (q = {}, q[u] = T + "Date", q[m] = T + "Date", q[d] = T + "Month", q[h] = T + "FullYear", q[o] = T + "Hours", q[s] = T + "Minutes", q[i] = T + "Seconds", q[a] = T + "Milliseconds", q)[Q], ie = Q === u ? this.$D + ($ - this.$W) : $;
16062
+ var q, Q = D.p(B), T = "set" + (this.$u ? "UTC" : ""), re = (q = {}, q[u] = T + "Date", q[m] = T + "Date", q[d] = T + "Month", q[h] = T + "FullYear", q[o] = T + "Hours", q[s] = T + "Minutes", q[i] = T + "Seconds", q[a] = T + "Milliseconds", q)[Q], se = Q === u ? this.$D + ($ - this.$W) : $;
16063
16063
  if (Q === d || Q === h) {
16064
16064
  var R = this.clone().set(m, 1);
16065
- R.$d[re](ie), R.init(), this.$d = R.set(m, Math.min(this.$D, R.daysInMonth())).$d;
16066
- } else re && this.$d[re](ie);
16065
+ R.$d[re](se), R.init(), this.$d = R.set(m, Math.min(this.$D, R.daysInMonth())).$d;
16066
+ } else re && this.$d[re](se);
16067
16067
  return this.init(), this;
16068
16068
  }, E.set = function(B, $) {
16069
16069
  return this.clone().$set(B, $);
@@ -16080,22 +16080,22 @@ function Qh() {
16080
16080
  if (T === h) return this.set(h, this.$y + B);
16081
16081
  if (T === u) return re(1);
16082
16082
  if (T === c) return re(7);
16083
- var ie = (q = {}, q[s] = r, q[o] = l, q[i] = n, q)[T] || 1, R = this.$d.getTime() + B * ie;
16083
+ var se = (q = {}, q[s] = r, q[o] = l, q[i] = n, q)[T] || 1, R = this.$d.getTime() + B * se;
16084
16084
  return D.w(R, this);
16085
16085
  }, E.subtract = function(B, $) {
16086
16086
  return this.add(-1 * B, $);
16087
16087
  }, E.format = function(B) {
16088
16088
  var $ = this, q = this.$locale();
16089
16089
  if (!this.isValid()) return q.invalidDate || b;
16090
- var Q = B || "YYYY-MM-DDTHH:mm:ssZ", T = D.z(this), re = this.$H, ie = this.$m, R = this.$M, he = q.weekdays, we = q.months, Ae = q.meridiem, ue = function(be, ze, $e, Wt) {
16091
- return be && (be[ze] || be($, Q)) || $e[ze].slice(0, Wt);
16092
- }, _e = function(be) {
16093
- return D.s(re % 12 || 12, be, "0");
16094
- }, De = Ae || function(be, ze, $e) {
16095
- var Wt = be < 12 ? "AM" : "PM";
16090
+ var Q = B || "YYYY-MM-DDTHH:mm:ssZ", T = D.z(this), re = this.$H, se = this.$m, R = this.$M, he = q.weekdays, we = q.months, Ae = q.meridiem, ue = function(ge, ze, $e, Wt) {
16091
+ return ge && (ge[ze] || ge($, Q)) || $e[ze].slice(0, Wt);
16092
+ }, _e = function(ge) {
16093
+ return D.s(re % 12 || 12, ge, "0");
16094
+ }, De = Ae || function(ge, ze, $e) {
16095
+ var Wt = ge < 12 ? "AM" : "PM";
16096
16096
  return $e ? Wt.toLowerCase() : Wt;
16097
16097
  };
16098
- return Q.replace(v, function(be, ze) {
16098
+ return Q.replace(v, function(ge, ze) {
16099
16099
  return ze || function($e) {
16100
16100
  switch ($e) {
16101
16101
  case "YY":
@@ -16131,13 +16131,13 @@ function Qh() {
16131
16131
  case "hh":
16132
16132
  return _e(2);
16133
16133
  case "a":
16134
- return De(re, ie, !0);
16134
+ return De(re, se, !0);
16135
16135
  case "A":
16136
- return De(re, ie, !1);
16136
+ return De(re, se, !1);
16137
16137
  case "m":
16138
- return String(ie);
16138
+ return String(se);
16139
16139
  case "mm":
16140
- return D.s(ie, 2, "0");
16140
+ return D.s(se, 2, "0");
16141
16141
  case "s":
16142
16142
  return String($.$s);
16143
16143
  case "ss":
@@ -16148,13 +16148,13 @@ function Qh() {
16148
16148
  return T;
16149
16149
  }
16150
16150
  return null;
16151
- }(be) || T.replace(":", "");
16151
+ }(ge) || T.replace(":", "");
16152
16152
  });
16153
16153
  }, E.utcOffset = function() {
16154
16154
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
16155
16155
  }, E.diff = function(B, $, q) {
16156
- var Q, T = this, re = D.p($), ie = P(B), R = (ie.utcOffset() - this.utcOffset()) * r, he = this - ie, we = function() {
16157
- return D.m(T, ie);
16156
+ var Q, T = this, re = D.p($), se = P(B), R = (se.utcOffset() - this.utcOffset()) * r, he = this - se, we = function() {
16157
+ return D.m(T, se);
16158
16158
  };
16159
16159
  switch (re) {
16160
16160
  case h:
@@ -16246,7 +16246,7 @@ const { RangePicker: cC } = Pb, dC = (e) => {
16246
16246
  if (t.length !== 2 || !t[0] || !t[1]) return null;
16247
16247
  const n = Na(t[0]), r = Na(t[1]);
16248
16248
  return n.isValid() && r.isValid() ? [n, r] : null;
16249
- }, Xh = ye.memo(
16249
+ }, Xh = Ee.memo(
16250
16250
  ({ node: e, value: t, onChange: n, disabled: r, error: l }) => {
16251
16251
  const a = dC(t), [i, s] = ee(null), o = V(
16252
16252
  (f) => {
@@ -22167,10 +22167,10 @@ const fC = [
22167
22167
  n.push(a.label), r = a.children;
22168
22168
  }
22169
22169
  return n;
22170
- }, Jh = ye.memo(
22170
+ }, Jh = Ee.memo(
22171
22171
  ({ node: e, value: t, onChange: n, disabled: r, error: l }) => {
22172
22172
  const a = e.cascaderOptions && e.cascaderOptions.length > 0 ? e.cascaderOptions : fC, i = e.placeholder || "请选择省市区", s = t ?? e.defaultValue, [o, u] = ee(() => qi(s)), [c, d] = ee(0), [f, h] = ee(100), m = ne(null);
22173
- ve(() => {
22173
+ ye(() => {
22174
22174
  u(qi(s));
22175
22175
  }, [s]);
22176
22176
  const b = o.length >= 2, g = V(
@@ -22204,18 +22204,18 @@ const fC = [
22204
22204
  const x = k(), _ = w.querySelector(".ant-select-selector"), N = w.querySelector(".ant-select-selection-item") || w.querySelector(".ant-select-selection-placeholder"), A = N || _ || w, P = window.getComputedStyle(A), D = N ? P.fontSize : "16px", F = P.fontFamily || "sans-serif", U = P.fontWeight || "400", E = `${P.fontStyle || "normal"} ${U} ${D} ${F}`, $ = document.createElement("canvas").getContext("2d"), q = $ ? Math.ceil(($.font = E, $.measureText(x).width || 0)) : 0;
22205
22205
  let Q = 0;
22206
22206
  if (_) {
22207
- const ie = window.getComputedStyle(_);
22208
- Q = (Number.parseFloat(ie.paddingLeft) || 0) + (Number.parseFloat(ie.paddingRight) || 0);
22207
+ const se = window.getComputedStyle(_);
22208
+ Q = (Number.parseFloat(se.paddingLeft) || 0) + (Number.parseFloat(se.paddingRight) || 0);
22209
22209
  }
22210
22210
  const re = Math.max(80, q + Q + 16 + 10);
22211
- h((ie) => ie === re ? ie : re);
22211
+ h((se) => se === re ? se : re);
22212
22212
  }, [k]);
22213
22213
  return Xe(() => {
22214
22214
  const w = window.requestAnimationFrame(() => M()), x = window.setTimeout(() => M(), 60);
22215
22215
  return () => {
22216
22216
  window.cancelAnimationFrame(w), window.clearTimeout(x);
22217
22217
  };
22218
- }, [M]), ve(() => {
22218
+ }, [M]), ye(() => {
22219
22219
  if (!("fonts" in document)) return;
22220
22220
  let w = !1;
22221
22221
  const x = document.fonts;
@@ -22275,7 +22275,7 @@ const fC = [
22275
22275
  }
22276
22276
  );
22277
22277
  Jh.displayName = "CascaderNode";
22278
- const Zh = ye.memo(
22278
+ const Zh = Ee.memo(
22279
22279
  ({ node: e, value: t, onChange: n, disabled: r, error: l, nodeDefaults: a }) => {
22280
22280
  const i = typeof e.maxHeight == "number" ? e.maxHeight : a?.textarea?.maxHeight ?? 252, s = V(
22281
22281
  (o) => n(e.key, o.target.value),
@@ -22337,7 +22337,7 @@ const Mo = (e) => {
22337
22337
  open: o
22338
22338
  }) => {
22339
22339
  const [u, c] = ee(!1), [d, f] = ee(null), [h, m] = ee(""), b = ne(0), g = ne(null);
22340
- ve(() => {
22340
+ ye(() => {
22341
22341
  if (!o) return;
22342
22342
  const x = ++b.current;
22343
22343
  c(!0), n({ nodeKey: e, nodeType: t }).then((_) => {
@@ -22356,7 +22356,7 @@ const Mo = (e) => {
22356
22356
  (x) => s ? x.filter((_) => mC(_.url) === s) : x,
22357
22357
  [s]
22358
22358
  );
22359
- ve(() => {
22359
+ ye(() => {
22360
22360
  if (!o || !s || !d) return;
22361
22361
  const x = d.tabs.find((_) => v(_.items).length > 0);
22362
22362
  x && m((_) => _ === x.key ? _ : x.key);
@@ -22459,9 +22459,9 @@ const Mo = (e) => {
22459
22459
  new CustomEvent("rte-report-dropdown-opening", { detail: v })
22460
22460
  ), h(!0);
22461
22461
  }, [v]);
22462
- ve(() => {
22462
+ ye(() => {
22463
22463
  c !== void 0 && k();
22464
- }, [c, k]), ve(() => {
22464
+ }, [c, k]), ye(() => {
22465
22465
  const w = (x) => {
22466
22466
  x.detail !== v && h(!1);
22467
22467
  };
@@ -22472,7 +22472,7 @@ const Mo = (e) => {
22472
22472
  return;
22473
22473
  }
22474
22474
  I();
22475
- }, [f, I]), ve(() => {
22475
+ }, [f, I]), ye(() => {
22476
22476
  if (!f) return;
22477
22477
  const w = e.current, x = m.current;
22478
22478
  if (!w) return;
@@ -22482,7 +22482,7 @@ const Mo = (e) => {
22482
22482
  return window.addEventListener("scroll", A, !0), window.addEventListener("resize", A), () => {
22483
22483
  N?.disconnect(), window.removeEventListener("scroll", A, !0), window.removeEventListener("resize", A);
22484
22484
  };
22485
- }, [f, e, I]), ve(() => {
22485
+ }, [f, e, I]), ye(() => {
22486
22486
  if (!f) return;
22487
22487
  const w = (x) => {
22488
22488
  const _ = e.current, N = m.current, A = x.target;
@@ -22557,7 +22557,7 @@ const Mo = (e) => {
22557
22557
  color: "inherit",
22558
22558
  boxSizing: "border-box",
22559
22559
  verticalAlign: "middle"
22560
- }, vC = (e) => e ? typeof e == "string" ? e : JSON.stringify(e) : "", ep = ye.memo(
22560
+ }, vC = (e) => e ? typeof e == "string" ? e : JSON.stringify(e) : "", ep = Ee.memo(
22561
22561
  ({
22562
22562
  node: e,
22563
22563
  value: t,
@@ -22796,7 +22796,7 @@ const tp = ({
22796
22796
  ]
22797
22797
  }
22798
22798
  );
22799
- }, yC = (e) => e ? typeof e == "string" ? e : JSON.stringify(e) : "", np = ye.memo(
22799
+ }, yC = (e) => e ? typeof e == "string" ? e : JSON.stringify(e) : "", np = Ee.memo(
22800
22800
  ({
22801
22801
  node: e,
22802
22802
  value: t,
@@ -22885,14 +22885,14 @@ const tp = ({
22885
22885
  np.displayName = "MultiVariableSelectNode";
22886
22886
  function rp(e) {
22887
22887
  const t = Ke(() => e == null ? "" : typeof e == "string" ? e : typeof URL > "u" || typeof URL.createObjectURL != "function" ? "" : URL.createObjectURL(e), [e]);
22888
- return ve(() => {
22888
+ return ye(() => {
22889
22889
  if (t && !(typeof e != "object" || e === null))
22890
22890
  return () => {
22891
22891
  typeof URL < "u" && typeof URL.revokeObjectURL == "function" && URL.revokeObjectURL(t);
22892
22892
  };
22893
22893
  }, [e, t]), t;
22894
22894
  }
22895
- const EC = /\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i, TC = (e) => EC.test(e), xC = (e) => /^image\//i.test(e.type), ga = ye.memo(
22895
+ const EC = /\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i, TC = (e) => EC.test(e), xC = (e) => /^image\//i.test(e.type), ga = Ee.memo(
22896
22896
  ({
22897
22897
  slotKey: e,
22898
22898
  file: t,
@@ -23084,7 +23084,7 @@ const NC = (e = Date.now()) => e - Uc < AC ? !1 : (Uc = e, !0), wC = 32, _C = (e
23084
23084
  }, OC = (e) => {
23085
23085
  if (e)
23086
23086
  return typeof e == "string" ? e : JSON.stringify(e);
23087
- }, RC = 12, lp = ye.memo(
23087
+ }, RC = 12, lp = Ee.memo(
23088
23088
  ({ node: e, files: t, onFileChange: n, disabled: r, error: l, onValidationError: a }) => {
23089
23089
  const i = typeof e.maxCount == "number" && typeof e.minCount == "number" && e.maxCount > 1, s = IC(e), o = ne(null), u = _C(o), c = zl(e.tooltip), d = !!c, f = d ? void 0 : OC(e.tooltip), h = V(
23090
23090
  (P) => {
@@ -23171,7 +23171,7 @@ const NC = (e = Date.now()) => e - Uc < AC ? !1 : (Uc = e, !0), wC = 32, _C = (e
23171
23171
  "data-group": e.exclusionGroup,
23172
23172
  children: U
23173
23173
  }
23174
- ) : null, $ = d && c ? /* @__PURE__ */ y(Xn, { data: c, hidden: F }) : null;
23174
+ ) : null, $ = d && c ? /* @__PURE__ */ y(Jn, { data: c, hidden: F }) : null;
23175
23175
  return e.required ? /* @__PURE__ */ j("span", { className: l ? "rte-upload-error" : void 0, children: [
23176
23176
  /* @__PURE__ */ j(
23177
23177
  "span",
@@ -23247,7 +23247,7 @@ const NC = (e = Date.now()) => e - Uc < AC ? !1 : (Uc = e, !0), wC = 32, _C = (e
23247
23247
  children: [
23248
23248
  /* @__PURE__ */ y("span", { className: "rte-text-required", children: /* @__PURE__ */ y("i", { className: "iconfont icon-bitian", style: { fontSize: 10 } }) }),
23249
23249
  /* @__PURE__ */ y("span", { className: "rte-upload-batch-chips", ref: o, children: N }),
23250
- d && c ? /* @__PURE__ */ y(Xn, { data: c, hidden: M > 0 }) : null
23250
+ d && c ? /* @__PURE__ */ y(Jn, { data: c, hidden: M > 0 }) : null
23251
23251
  ]
23252
23252
  }
23253
23253
  ) : /* @__PURE__ */ j(
@@ -23257,7 +23257,7 @@ const NC = (e = Date.now()) => e - Uc < AC ? !1 : (Uc = e, !0), wC = 32, _C = (e
23257
23257
  ref: o,
23258
23258
  children: [
23259
23259
  N,
23260
- d && c ? /* @__PURE__ */ y(Xn, { data: c, hidden: M > 0 }) : null
23260
+ d && c ? /* @__PURE__ */ y(Jn, { data: c, hidden: M > 0 }) : null
23261
23261
  ]
23262
23262
  }
23263
23263
  );
@@ -23392,7 +23392,7 @@ const zc = 2 * Math.PI * 6.5, ap = "data:image/svg+xml,%3Csvg xmlns='http://www.
23392
23392
  minWidth: 40,
23393
23393
  boxSizing: "border-box",
23394
23394
  verticalAlign: "middle"
23395
- }, BC = (e) => e ? typeof e == "string" ? e : JSON.stringify(e) : "", up = ye.memo(
23395
+ }, BC = (e) => e ? typeof e == "string" ? e : JSON.stringify(e) : "", up = Ee.memo(
23396
23396
  ({
23397
23397
  node: e,
23398
23398
  value: t,
@@ -23424,16 +23424,16 @@ const zc = 2 * Math.PI * 6.5, ap = "data:image/svg+xml,%3Csvg xmlns='http://www.
23424
23424
  T = Math.min(T + Math.random() * 15 + 5, 90), d(T);
23425
23425
  }, 400);
23426
23426
  }, [F]);
23427
- ve(() => () => F(), [F]);
23427
+ ye(() => () => F(), [F]);
23428
23428
  const L = V(
23429
23429
  async (T) => {
23430
23430
  if (!a) return;
23431
23431
  const re = T.trim();
23432
23432
  if (!re) return;
23433
- const ie = Vc(re), R = v.current += 1;
23434
- u("loading"), d(0), h(ie), b(""), U();
23433
+ const se = Vc(re), R = v.current += 1;
23434
+ u("loading"), d(0), h(se), b(""), U();
23435
23435
  try {
23436
- const he = await a({ url: ie });
23436
+ const he = await a({ url: se });
23437
23437
  if (F(), r(e.key, he.videoUrl), l?.(e.key, he.thumbnail || ""), u("success"), !he.thumbnail && he.videoUrl) {
23438
23438
  const we = `/api/download-report-pdf?url=${encodeURIComponent(he.videoUrl)}`, Ae = await DC(we);
23439
23439
  Ae && v.current === R && l?.(e.key, Ae);
@@ -23460,8 +23460,8 @@ const zc = 2 * Math.PI * 6.5, ap = "data:image/svg+xml,%3Csvg xmlns='http://www.
23460
23460
  const re = T.clipboardData?.getData("text") ?? "";
23461
23461
  if (!re.trim()) return;
23462
23462
  T.preventDefault();
23463
- const ie = Vc(re);
23464
- r(e.key, ie), L(ie);
23463
+ const se = Vc(re);
23464
+ r(e.key, se), L(se);
23465
23465
  },
23466
23466
  [a, e.key, r, L]
23467
23467
  ), $ = V(
@@ -23470,7 +23470,7 @@ const zc = 2 * Math.PI * 6.5, ap = "data:image/svg+xml,%3Csvg xmlns='http://www.
23470
23470
  },
23471
23471
  [e.key, r, l]
23472
23472
  ), q = (T) => {
23473
- const re = A && N ? /* @__PURE__ */ y(Xn, { data: N, hidden: D }) : null;
23473
+ const re = A && N ? /* @__PURE__ */ y(Jn, { data: N, hidden: D }) : null;
23474
23474
  return e.required ? /* @__PURE__ */ j(ot, { children: [
23475
23475
  /* @__PURE__ */ j(
23476
23476
  "span",
@@ -23625,7 +23625,7 @@ const zc = 2 * Math.PI * 6.5, ap = "data:image/svg+xml,%3Csvg xmlns='http://www.
23625
23625
  }
23626
23626
  );
23627
23627
  up.displayName = "VideoUrlNode";
23628
- const FC = (e) => e ? typeof e == "string" ? e : JSON.stringify(e) : "", HC = 1024 * 1024 * 1024, UC = "视频文件不能超过1GB", cp = ye.memo(
23628
+ const FC = (e) => e ? typeof e == "string" ? e : JSON.stringify(e) : "", HC = 1024 * 1024 * 1024, UC = "视频文件不能超过1GB", cp = Ee.memo(
23629
23629
  ({
23630
23630
  node: e,
23631
23631
  value: t,
@@ -23663,7 +23663,7 @@ const FC = (e) => e ? typeof e == "string" ? e : JSON.stringify(e) : "", HC = 10
23663
23663
  },
23664
23664
  [e.key, r, l]
23665
23665
  ), D = (F) => {
23666
- const U = M && k ? /* @__PURE__ */ y(Xn, { data: k, hidden: x }) : null;
23666
+ const U = M && k ? /* @__PURE__ */ y(Jn, { data: k, hidden: x }) : null;
23667
23667
  return e.required ? /* @__PURE__ */ j(ot, { children: [
23668
23668
  /* @__PURE__ */ j(
23669
23669
  "span",
@@ -23867,7 +23867,7 @@ const zC = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
23867
23867
  open: s
23868
23868
  }) => {
23869
23869
  const [o, u] = ee(!1), [c, d] = ee(null), [f, h] = ee(""), m = ne(0), b = ne(null);
23870
- ve(() => {
23870
+ ye(() => {
23871
23871
  if (!s) return;
23872
23872
  const w = ++m.current;
23873
23873
  u(!0), t({ nodeKey: e, nodeType: "report-url" }).then((x) => {
@@ -23886,7 +23886,7 @@ const zC = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
23886
23886
  (w) => i ? w.filter((x) => dp(x.url) === i) : w,
23887
23887
  [i]
23888
23888
  );
23889
- ve(() => {
23889
+ ye(() => {
23890
23890
  if (!s || !i || !c) return;
23891
23891
  const w = c.tabs.find((x) => g(x.items).length > 0);
23892
23892
  w && h((x) => x === w.key ? x : w.key);
@@ -23962,7 +23962,7 @@ const zC = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
23962
23962
  `${w.url}-${x}`
23963
23963
  )) })
23964
23964
  ] }) : null });
23965
- }, fp = ye.memo(
23965
+ }, fp = Ee.memo(
23966
23966
  ({
23967
23967
  node: e,
23968
23968
  value: t,
@@ -23991,7 +23991,7 @@ const zC = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
23991
23991
  },
23992
23992
  [r]
23993
23993
  );
23994
- ve(() => {
23994
+ ye(() => {
23995
23995
  m || (P.current = "");
23996
23996
  }, [m]);
23997
23997
  const F = V(() => {
@@ -24018,7 +24018,7 @@ const zC = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
24018
24018
  },
24019
24019
  [e.key, n, s]
24020
24020
  );
24021
- ve(() => {
24021
+ ye(() => {
24022
24022
  const Te = (Le) => {
24023
24023
  Le.detail !== A && N(!1);
24024
24024
  };
@@ -24030,23 +24030,23 @@ const zC = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
24030
24030
  b ? "rte-report-name-chip" : "",
24031
24031
  d ? "rte-report-url-error" : "",
24032
24032
  M ? "rte-variable-with-icon" : ""
24033
- ].filter(Boolean).join(" "), q = ne(null), Q = ne(null), T = ne(null), [re, ie] = ee(
24033
+ ].filter(Boolean).join(" "), q = ne(null), Q = ne(null), T = ne(null), [re, se] = ee(
24034
24034
  null
24035
24035
  ), R = V(() => {
24036
24036
  const Te = Q.current;
24037
24037
  if (!Te) return;
24038
- const Le = Te.getBoundingClientRect(), vt = 236, yt = window.innerHeight - Le.bottom < vt + 8, dr = T.current?.offsetHeight || vt, fr = yt ? Le.top - dr - 4 : Le.bottom + 4, an = Le.left, mn = f?.getBoundingClientRect(), hr = Math.max(4, fr - (mn?.top ?? 0)), W = an - (mn?.left ?? 0);
24039
- ie(
24040
- (Z) => Z && Z.top === hr && Z.left === W ? Z : { top: hr, left: W }
24038
+ const Le = Te.getBoundingClientRect(), vt = 236, yt = window.innerHeight - Le.bottom < vt + 8, fr = T.current?.offsetHeight || vt, hr = yt ? Le.top - fr - 4 : Le.bottom + 4, an = Le.left, mn = f?.getBoundingClientRect(), pr = Math.max(4, hr - (mn?.top ?? 0)), W = an - (mn?.left ?? 0);
24039
+ se(
24040
+ (Z) => Z && Z.top === pr && Z.left === W ? Z : { top: pr, left: W }
24041
24041
  );
24042
24042
  }, [f]);
24043
24043
  Xe(() => {
24044
24044
  if (!_) {
24045
- ie(null);
24045
+ se(null);
24046
24046
  return;
24047
24047
  }
24048
24048
  R();
24049
- }, [_, R]), ve(() => {
24049
+ }, [_, R]), ye(() => {
24050
24050
  if (!_) return;
24051
24051
  const Te = Q.current, Le = T.current;
24052
24052
  if (!Te) return;
@@ -24056,7 +24056,7 @@ const zC = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
24056
24056
  return window.addEventListener("scroll", yt, !0), window.addEventListener("resize", yt), () => {
24057
24057
  ct?.disconnect(), window.removeEventListener("scroll", yt, !0), window.removeEventListener("resize", yt);
24058
24058
  };
24059
- }, [_, R]), ve(() => {
24059
+ }, [_, R]), ye(() => {
24060
24060
  if (!_) return;
24061
24061
  const Te = (Le) => {
24062
24062
  const vt = Q.current, ct = T.current, yt = Le.target;
@@ -24101,9 +24101,9 @@ const zC = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
24101
24101
  onMouseDown: B,
24102
24102
  children: /* @__PURE__ */ y("span", { className: "rte-report-chip-clear-icon", title: "清除", children: /* @__PURE__ */ y(gf, {}) })
24103
24103
  }
24104
- ) : null, Ae = e.placeholder ?? "粘贴报告链接", ue = m || Ae, _e = ne(null), [De, be] = ee(0);
24104
+ ) : null, Ae = e.placeholder ?? "粘贴报告链接", ue = m || Ae, _e = ne(null), [De, ge] = ee(0);
24105
24105
  Xe(() => {
24106
- _e.current && be(_e.current.offsetWidth);
24106
+ _e.current && ge(_e.current.offsetWidth);
24107
24107
  });
24108
24108
  const ze = De > 0 ? Math.max(60, De + 2) : qC(ue) + 6, $e = Ke(() => {
24109
24109
  if (b) return "";
@@ -24215,7 +24215,7 @@ const zC = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
24215
24215
  );
24216
24216
  fp.displayName = "ReportUrlNode";
24217
24217
  function YC(e, t) {
24218
- const n = ye.memo(({ node: r, value: l, onChange: a, disabled: i, error: s }) => {
24218
+ const n = Ee.memo(({ node: r, value: l, onChange: a, disabled: i, error: s }) => {
24219
24219
  const o = r.moduleIndex ?? 0, u = `${r.key}__module_${o}`, c = ne(null), d = l ?? r.text ?? "";
24220
24220
  Xe(() => {
24221
24221
  const g = c.current;
@@ -24256,7 +24256,7 @@ const hp = { createModuleNode: YC }, jC = hp.createModuleNode(
24256
24256
  "ReportModuleNode"
24257
24257
  );
24258
24258
  function pp(e, t) {
24259
- const n = ye.memo(
24259
+ const n = Ee.memo(
24260
24260
  ({ node: r, value: l, onChange: a, onParse: i, disabled: s, error: o }) => {
24261
24261
  const u = ne(null), [c, d] = ee(!1), f = ne(!0);
24262
24262
  Xe(() => (f.current = !0, () => {
@@ -24323,7 +24323,7 @@ function pp(e, t) {
24323
24323
  )
24324
24324
  ] }) : N, P = /* @__PURE__ */ j(ot, { children: [
24325
24325
  A,
24326
- M ? /* @__PURE__ */ y(Xn, { data: M, hidden: !I }) : null
24326
+ M ? /* @__PURE__ */ y(Jn, { data: M, hidden: !I }) : null
24327
24327
  ] });
24328
24328
  return r.required ? /* @__PURE__ */ j(
24329
24329
  "span",
@@ -25012,12 +25012,12 @@ function yp(e, t, n, r) {
25012
25012
  } else if (n.content.size)
25013
25013
  if (!n.openStart && !n.openEnd && e.depth == r && t.depth == r) {
25014
25014
  let i = e.parent, s = i.content;
25015
- return Zn(i, s.cut(0, e.parentOffset).append(n.content).append(s.cut(t.parentOffset)));
25015
+ return er(i, s.cut(0, e.parentOffset).append(n.content).append(s.cut(t.parentOffset)));
25016
25016
  } else {
25017
25017
  let { start: i, end: s } = JC(n, e);
25018
- return Zn(a, Tp(e, i, s, t, r));
25018
+ return er(a, Tp(e, i, s, t, r));
25019
25019
  }
25020
- else return Zn(a, Ia(e, t, r));
25020
+ else return er(a, Ia(e, t, r));
25021
25021
  }
25022
25022
  function Ep(e, t) {
25023
25023
  if (!t.type.compatibleContent(e.type))
@@ -25027,29 +25027,29 @@ function Os(e, t, n) {
25027
25027
  let r = e.node(n);
25028
25028
  return Ep(r, t.node(n)), r;
25029
25029
  }
25030
- function Jn(e, t) {
25030
+ function Zn(e, t) {
25031
25031
  let n = t.length - 1;
25032
25032
  n >= 0 && e.isText && e.sameMarkup(t[n]) ? t[n] = e.withText(t[n].text + e.text) : t.push(e);
25033
25033
  }
25034
25034
  function dl(e, t, n, r) {
25035
25035
  let l = (t || e).node(n), a = 0, i = t ? t.index(n) : l.childCount;
25036
- e && (a = e.index(n), e.depth > n ? a++ : e.textOffset && (Jn(e.nodeAfter, r), a++));
25036
+ e && (a = e.index(n), e.depth > n ? a++ : e.textOffset && (Zn(e.nodeAfter, r), a++));
25037
25037
  for (let s = a; s < i; s++)
25038
- Jn(l.child(s), r);
25039
- t && t.depth == n && t.textOffset && Jn(t.nodeBefore, r);
25038
+ Zn(l.child(s), r);
25039
+ t && t.depth == n && t.textOffset && Zn(t.nodeBefore, r);
25040
25040
  }
25041
- function Zn(e, t) {
25041
+ function er(e, t) {
25042
25042
  return e.type.checkContent(t), e.copy(t);
25043
25043
  }
25044
25044
  function Tp(e, t, n, r, l) {
25045
25045
  let a = e.depth > l && Os(e, t, l + 1), i = r.depth > l && Os(n, r, l + 1), s = [];
25046
- return dl(null, e, l, s), a && i && t.index(l) == n.index(l) ? (Ep(a, i), Jn(Zn(a, Tp(e, t, n, r, l + 1)), s)) : (a && Jn(Zn(a, Ia(e, t, l + 1)), s), dl(t, n, l, s), i && Jn(Zn(i, Ia(n, r, l + 1)), s)), dl(r, null, l, s), new K(s);
25046
+ return dl(null, e, l, s), a && i && t.index(l) == n.index(l) ? (Ep(a, i), Zn(er(a, Tp(e, t, n, r, l + 1)), s)) : (a && Zn(er(a, Ia(e, t, l + 1)), s), dl(t, n, l, s), i && Zn(er(i, Ia(n, r, l + 1)), s)), dl(r, null, l, s), new K(s);
25047
25047
  }
25048
25048
  function Ia(e, t, n) {
25049
25049
  let r = [];
25050
25050
  if (dl(null, e, n, r), e.depth > n) {
25051
25051
  let l = Os(e, t, n + 1);
25052
- Jn(Zn(l, Ia(e, t, n + 1)), r);
25052
+ Zn(er(l, Ia(e, t, n + 1)), r);
25053
25053
  }
25054
25054
  return dl(t, null, n, r), new K(r);
25055
25055
  }
@@ -25770,7 +25770,7 @@ function xp(e, t) {
25770
25770
  t = e[n].type.name + "(" + t + ")";
25771
25771
  return t;
25772
25772
  }
25773
- class lr {
25773
+ class ar {
25774
25774
  /**
25775
25775
  @internal
25776
25776
  */
@@ -25783,7 +25783,7 @@ class lr {
25783
25783
  static parse(t, n) {
25784
25784
  let r = new nk(t, n);
25785
25785
  if (r.next == null)
25786
- return lr.empty;
25786
+ return ar.empty;
25787
25787
  let l = Sp(r);
25788
25788
  r.next && r.err("Unexpected trailing text");
25789
25789
  let a = uk(ok(l));
@@ -25932,7 +25932,7 @@ class lr {
25932
25932
  `);
25933
25933
  }
25934
25934
  }
25935
- lr.empty = new lr(!0);
25935
+ ar.empty = new ar(!0);
25936
25936
  class nk {
25937
25937
  constructor(t, n) {
25938
25938
  this.string = t, this.nodeTypes = n, this.inline = null, this.pos = 0, this.tokens = t.split(/\s*(?=\b|\W|$)/), this.tokens[this.tokens.length - 1] == "" && this.tokens.pop(), this.tokens[0] == "" && this.tokens.shift();
@@ -26095,7 +26095,7 @@ function uk(e) {
26095
26095
  });
26096
26096
  });
26097
26097
  });
26098
- let a = t[r.join(",")] = new lr(r.indexOf(e.length - 1) > -1);
26098
+ let a = t[r.join(",")] = new ar(r.indexOf(e.length - 1) > -1);
26099
26099
  for (let i = 0; i < l.length; i++) {
26100
26100
  let s = l[i][1].sort(Cp);
26101
26101
  a.next.push({ type: l[i][0], next: t[s.join(",")] || n(s) });
@@ -26178,7 +26178,7 @@ let Yc = class _p {
26178
26178
  True for node types that allow no content.
26179
26179
  */
26180
26180
  get isLeaf() {
26181
- return this.contentMatch == lr.empty;
26181
+ return this.contentMatch == ar.empty;
26182
26182
  }
26183
26183
  /**
26184
26184
  True when this node is an atom, i.e. when it does not have
@@ -26419,7 +26419,7 @@ class Ip {
26419
26419
  if (l in this.marks)
26420
26420
  throw new RangeError(l + " can not be both a node and a mark");
26421
26421
  let a = this.nodes[l], i = a.spec.content || "", s = a.spec.marks;
26422
- if (a.contentMatch = r[i] || (r[i] = lr.parse(i, this.nodes)), a.inlineContent = a.contentMatch.inlineContent, a.spec.linebreakReplacement) {
26422
+ if (a.contentMatch = r[i] || (r[i] = ar.parse(i, this.nodes)), a.inlineContent = a.contentMatch.inlineContent, a.spec.linebreakReplacement) {
26423
26423
  if (this.linebreakReplacement)
26424
26424
  throw new RangeError("Multiple linebreak nodes defined");
26425
26425
  if (!a.isInline || !a.isLeaf)
@@ -27002,7 +27002,7 @@ function Xc(e, t) {
27002
27002
  return !0;
27003
27003
  }
27004
27004
  }
27005
- class cr {
27005
+ class dr {
27006
27006
  /**
27007
27007
  Create a serializer. `nodes` should map node names to functions
27008
27008
  that take a node and return a description of the corresponding
@@ -27091,7 +27091,7 @@ class cr {
27091
27091
  properties in a schema's node and mark specs.
27092
27092
  */
27093
27093
  static fromSchema(t) {
27094
- return t.cached.domSerializer || (t.cached.domSerializer = new cr(this.nodesFromSchema(t), this.marksFromSchema(t)));
27094
+ return t.cached.domSerializer || (t.cached.domSerializer = new dr(this.nodesFromSchema(t), this.marksFromSchema(t)));
27095
27095
  }
27096
27096
  /**
27097
27097
  Gather the serializers in a schema's node specs into an object.
@@ -27618,7 +27618,7 @@ class Nn extends gt {
27618
27618
  return new Nn(this.pos, this.mark);
27619
27619
  }
27620
27620
  }
27621
- return new ar(this.pos, this.mark);
27621
+ return new ir(this.pos, this.mark);
27622
27622
  }
27623
27623
  map(t) {
27624
27624
  let n = t.mapResult(this.pos, 1);
@@ -27637,7 +27637,7 @@ class Nn extends gt {
27637
27637
  }
27638
27638
  }
27639
27639
  gt.jsonID("addNodeMark", Nn);
27640
- class ar extends gt {
27640
+ class ir extends gt {
27641
27641
  /**
27642
27642
  Create a mark-removing step.
27643
27643
  */
@@ -27657,7 +27657,7 @@ class ar extends gt {
27657
27657
  }
27658
27658
  map(t) {
27659
27659
  let n = t.mapResult(this.pos, 1);
27660
- return n.deletedAfter ? null : new ar(n.pos, this.mark);
27660
+ return n.deletedAfter ? null : new ir(n.pos, this.mark);
27661
27661
  }
27662
27662
  toJSON() {
27663
27663
  return { stepType: "removeNodeMark", pos: this.pos, mark: this.mark.toJSON() };
@@ -27668,10 +27668,10 @@ class ar extends gt {
27668
27668
  static fromJSON(t, n) {
27669
27669
  if (typeof n.pos != "number")
27670
27670
  throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");
27671
- return new ar(n.pos, t.markFromJSON(n.mark));
27671
+ return new ir(n.pos, t.markFromJSON(n.mark));
27672
27672
  }
27673
27673
  }
27674
- gt.jsonID("removeNodeMark", ar);
27674
+ gt.jsonID("removeNodeMark", ir);
27675
27675
  class je extends gt {
27676
27676
  /**
27677
27677
  The given `slice` should fit the 'gap' between `from` and
@@ -28661,11 +28661,11 @@ class Vk {
28661
28661
  if (!r)
28662
28662
  throw new RangeError("No node at position " + t);
28663
28663
  if (n instanceof Pe)
28664
- n.isInSet(r.marks) && this.step(new ar(t, n));
28664
+ n.isInSet(r.marks) && this.step(new ir(t, n));
28665
28665
  else {
28666
28666
  let l = r.marks, a, i = [];
28667
28667
  for (; a = n.isInSet(l); )
28668
- i.push(new ar(t, a)), l = a.removeFromSet(l);
28668
+ i.push(new ir(t, a)), l = a.removeFromSet(l);
28669
28669
  for (let s = i.length - 1; s >= 0; s--)
28670
28670
  this.step(i[s]);
28671
28671
  }
@@ -28801,7 +28801,7 @@ class Se {
28801
28801
  found.
28802
28802
  */
28803
28803
  static findFrom(t, n, r = !1) {
28804
- let l = t.parent.inlineContent ? new me(t) : Er(t.node(0), t.parent, t.pos, t.index(), n, r);
28804
+ let l = t.parent.inlineContent ? new be(t) : Er(t.node(0), t.parent, t.pos, t.index(), n, r);
28805
28805
  if (l)
28806
28806
  return l;
28807
28807
  for (let a = t.depth - 1; a >= 0; a--) {
@@ -28868,7 +28868,7 @@ class Se {
28868
28868
  returns the bookmark for that.
28869
28869
  */
28870
28870
  getBookmark() {
28871
- return me.between(this.$anchor, this.$head).getBookmark();
28871
+ return be.between(this.$anchor, this.$head).getBookmark();
28872
28872
  }
28873
28873
  }
28874
28874
  Se.prototype.visible = !0;
@@ -28884,7 +28884,7 @@ let nd = !1;
28884
28884
  function rd(e) {
28885
28885
  !nd && !e.parent.inlineContent && (nd = !0, console.warn("TextSelection endpoint not pointing into a node with inline content (" + e.parent.type.name + ")"));
28886
28886
  }
28887
- class me extends Se {
28887
+ class be extends Se {
28888
28888
  /**
28889
28889
  Construct a text selection between the given points.
28890
28890
  */
@@ -28903,7 +28903,7 @@ class me extends Se {
28903
28903
  if (!r.parent.inlineContent)
28904
28904
  return Se.near(r);
28905
28905
  let l = t.resolve(n.map(this.anchor));
28906
- return new me(l.parent.inlineContent ? l : r, r);
28906
+ return new be(l.parent.inlineContent ? l : r, r);
28907
28907
  }
28908
28908
  replace(t, n = te.empty) {
28909
28909
  if (super.replace(t, n), n == te.empty) {
@@ -28912,7 +28912,7 @@ class me extends Se {
28912
28912
  }
28913
28913
  }
28914
28914
  eq(t) {
28915
- return t instanceof me && t.anchor == this.anchor && t.head == this.head;
28915
+ return t instanceof be && t.anchor == this.anchor && t.head == this.head;
28916
28916
  }
28917
28917
  getBookmark() {
28918
28918
  return new ri(this.anchor, this.head);
@@ -28926,7 +28926,7 @@ class me extends Se {
28926
28926
  static fromJSON(t, n) {
28927
28927
  if (typeof n.anchor != "number" || typeof n.head != "number")
28928
28928
  throw new RangeError("Invalid input for TextSelection.fromJSON");
28929
- return new me(t.resolve(n.anchor), t.resolve(n.head));
28929
+ return new be(t.resolve(n.anchor), t.resolve(n.head));
28930
28930
  }
28931
28931
  /**
28932
28932
  Create a text selection from non-resolved positions.
@@ -28952,10 +28952,10 @@ class me extends Se {
28952
28952
  else
28953
28953
  return Se.near(n, r);
28954
28954
  }
28955
- return t.parent.inlineContent || (l == 0 ? t = n : (t = (Se.findFrom(t, -r, !0) || Se.findFrom(t, r, !0)).$anchor, t.pos < n.pos != l < 0 && (t = n))), new me(t, n);
28955
+ return t.parent.inlineContent || (l == 0 ? t = n : (t = (Se.findFrom(t, -r, !0) || Se.findFrom(t, r, !0)).$anchor, t.pos < n.pos != l < 0 && (t = n))), new be(t, n);
28956
28956
  }
28957
28957
  }
28958
- Se.jsonID("text", me);
28958
+ Se.jsonID("text", be);
28959
28959
  class ri {
28960
28960
  constructor(t, n) {
28961
28961
  this.anchor = t, this.head = n;
@@ -28964,7 +28964,7 @@ class ri {
28964
28964
  return new ri(t.map(this.anchor), t.map(this.head));
28965
28965
  }
28966
28966
  resolve(t) {
28967
- return me.between(t.resolve(this.anchor), t.resolve(this.head));
28967
+ return be.between(t.resolve(this.anchor), t.resolve(this.head));
28968
28968
  }
28969
28969
  }
28970
28970
  class de extends Se {
@@ -29074,7 +29074,7 @@ const qk = {
29074
29074
  };
29075
29075
  function Er(e, t, n, r, l, a = !1) {
29076
29076
  if (t.inlineContent)
29077
- return me.create(e, n);
29077
+ return be.create(e, n);
29078
29078
  for (let i = r - (l > 0 ? 0 : 1); l > 0 ? i < t.childCount : i >= 0; i += l) {
29079
29079
  let s = t.child(i);
29080
29080
  if (s.isAtom) {
@@ -29529,7 +29529,7 @@ const un = function(e, t, n) {
29529
29529
  return r.setEnd(e, n ?? e.nodeValue.length), r.setStart(e, t || 0), r;
29530
29530
  }, jk = function() {
29531
29531
  Bs = null;
29532
- }, ir = function(e, t, n, r) {
29532
+ }, sr = function(e, t, n, r) {
29533
29533
  return n && (od(e, t, n, r, -1) || od(e, t, n, r, 1));
29534
29534
  }, Gk = /^(img|br|input|textarea|hr)$/i;
29535
29535
  function od(e, t, n, r, l) {
@@ -29602,9 +29602,9 @@ function $l(e) {
29602
29602
  return t && t.node && t.node.isBlock && (t.dom == e || t.contentDOM == e);
29603
29603
  }
29604
29604
  const li = function(e) {
29605
- return e.focusNode && ir(e.focusNode, e.focusOffset, e.anchorNode, e.anchorOffset);
29605
+ return e.focusNode && sr(e.focusNode, e.focusOffset, e.anchorNode, e.anchorOffset);
29606
29606
  };
29607
- function $n(e, t) {
29607
+ function qn(e, t) {
29608
29608
  let n = document.createEvent("Event");
29609
29609
  return n.initEvent("keydown", !0, !0), n.keyCode = e, n.key = n.code = t, n;
29610
29610
  }
@@ -29966,7 +29966,7 @@ let fd = null, hd = null, pd = !1;
29966
29966
  function mA(e, t, n) {
29967
29967
  return fd == t && hd == n ? pd : (fd = t, hd = n, pd = n == "up" || n == "down" ? fA(e, t, n) : pA(e, t, n));
29968
29968
  }
29969
- const qt = 0, md = 1, Yn = 2, rn = 3;
29969
+ const qt = 0, md = 1, jn = 2, rn = 3;
29970
29970
  class Wl {
29971
29971
  constructor(t, n, r, l) {
29972
29972
  this.parent = t, this.children = n, this.dom = r, this.contentDOM = l, this.dirty = qt, r.pmViewDesc = this;
@@ -30249,7 +30249,7 @@ class Wl {
30249
30249
  let h = c.focusNode.childNodes[c.focusOffset];
30250
30250
  h && h.contentEditable == "false" && (l = !0);
30251
30251
  }
30252
- if (!(l || d && ht) && ir(s.node, s.offset, c.anchorNode, c.anchorOffset) && ir(o.node, o.offset, c.focusNode, c.focusOffset))
30252
+ if (!(l || d && ht) && sr(s.node, s.offset, c.anchorNode, c.anchorOffset) && sr(o.node, o.offset, c.focusNode, c.focusOffset))
30253
30253
  return;
30254
30254
  let f = !1;
30255
30255
  if ((u.extend || t == n) && !(d && $t)) {
@@ -30282,19 +30282,19 @@ class Wl {
30282
30282
  if (r == i ? t <= i && n >= r : t < i && n > r) {
30283
30283
  let s = r + a.border, o = i - a.border;
30284
30284
  if (t >= s && n <= o) {
30285
- this.dirty = t == r || n == i ? Yn : md, t == s && n == o && (a.contentLost || a.dom.parentNode != this.contentDOM) ? a.dirty = rn : a.markDirty(t - s, n - s);
30285
+ this.dirty = t == r || n == i ? jn : md, t == s && n == o && (a.contentLost || a.dom.parentNode != this.contentDOM) ? a.dirty = rn : a.markDirty(t - s, n - s);
30286
30286
  return;
30287
30287
  } else
30288
- a.dirty = a.dom == a.contentDOM && a.dom.parentNode == this.contentDOM && !a.children.length ? Yn : rn;
30288
+ a.dirty = a.dom == a.contentDOM && a.dom.parentNode == this.contentDOM && !a.children.length ? jn : rn;
30289
30289
  }
30290
30290
  r = i;
30291
30291
  }
30292
- this.dirty = Yn;
30292
+ this.dirty = jn;
30293
30293
  }
30294
30294
  markParentsDirty() {
30295
30295
  let t = 1;
30296
30296
  for (let n = this.parent; n; n = n.parent, t++) {
30297
- let r = t == 1 ? Yn : md;
30297
+ let r = t == 1 ? jn : md;
30298
30298
  n.dirty < r && (n.dirty = r);
30299
30299
  }
30300
30300
  }
@@ -30371,13 +30371,13 @@ class bA extends Wl {
30371
30371
  return t.type === "characterData" && t.target.nodeValue == t.oldValue;
30372
30372
  }
30373
30373
  }
30374
- class sr extends Wl {
30374
+ class or extends Wl {
30375
30375
  constructor(t, n, r, l, a) {
30376
30376
  super(t, [], r, l), this.mark = n, this.spec = a;
30377
30377
  }
30378
30378
  static create(t, n, r, l) {
30379
30379
  let a = l.nodeViews[n.type.name], i = a && a(n, l, r);
30380
- return (!i || !i.dom) && (i = cr.renderSpec(document, n.type.spec.toDOM(n, r), null, n.attrs)), new sr(t, n, i.dom, i.contentDOM || i.dom, i);
30380
+ return (!i || !i.dom) && (i = dr.renderSpec(document, n.type.spec.toDOM(n, r), null, n.attrs)), new or(t, n, i.dom, i.contentDOM || i.dom, i);
30381
30381
  }
30382
30382
  parseRule() {
30383
30383
  return this.dirty & rn || this.mark.type.spec.reparseInView ? null : { mark: this.mark.type.name, attrs: this.mark.attrs, contentElement: this.contentDOM };
@@ -30394,7 +30394,7 @@ class sr extends Wl {
30394
30394
  }
30395
30395
  }
30396
30396
  slice(t, n, r) {
30397
- let l = sr.create(this.parent, this.mark, !0, r), a = this.children, i = this.size;
30397
+ let l = or.create(this.parent, this.mark, !0, r), a = this.children, i = this.size;
30398
30398
  n < i && (a = Vs(a, n, i, r)), t > 0 && (a = Vs(a, 0, t, r));
30399
30399
  for (let s = 0; s < a.length; s++)
30400
30400
  a[s].parent = l;
@@ -30432,7 +30432,7 @@ class On extends Wl {
30432
30432
  c = document.createTextNode(n.text);
30433
30433
  else if (c.nodeType != 3)
30434
30434
  throw new RangeError("Text must be rendered as a DOM text node");
30435
- } else c || ({ dom: c, contentDOM: d } = cr.renderSpec(document, n.type.spec.toDOM(n), null, n.attrs));
30435
+ } else c || ({ dom: c, contentDOM: d } = dr.renderSpec(document, n.type.spec.toDOM(n), null, n.attrs));
30436
30436
  !d && !n.isText && c.nodeName != "BR" && (c.hasAttribute("contenteditable") || (c.contentEditable = "false"), n.type.spec.draggable && (c.draggable = !0));
30437
30437
  let f = c;
30438
30438
  return c = sm(c, r, n), u ? o = new gA(t, n, r, l, c, d || null, f, u, a, i + 1) : n.isText ? new ai(t, n, r, l, c, f, a) : new On(t, n, r, l, c, d || null, f, a, i + 1);
@@ -30478,11 +30478,11 @@ class On extends Wl {
30478
30478
  o.syncToMarks(u.marks, r, t, f);
30479
30479
  let h;
30480
30480
  o.findNodeMatch(u, c, d, f) || s && t.state.selection.from > l && t.state.selection.to < l + u.nodeSize && (h = o.findIndexWithChild(a.node)) > -1 && o.updateNodeAt(u, c, d, h, t) || o.updateNextNode(u, c, d, t, f, l) || o.addNode(u, c, d, t, l), l += u.nodeSize;
30481
- }), o.syncToMarks([], r, t, 0), this.node.isTextblock && o.addTextblockHacks(), o.destroyRest(), (o.changed || this.dirty == Yn) && (i && this.protectLocalComposition(t, i), am(this.contentDOM, this.children, t), Dr && SA(this.dom));
30481
+ }), o.syncToMarks([], r, t, 0), this.node.isTextblock && o.addTextblockHacks(), o.destroyRest(), (o.changed || this.dirty == jn) && (i && this.protectLocalComposition(t, i), am(this.contentDOM, this.children, t), Dr && SA(this.dom));
30482
30482
  }
30483
30483
  localCompositionInfo(t, n) {
30484
30484
  let { from: r, to: l } = t.state.selection;
30485
- if (!(t.state.selection instanceof me) || r < n || l > n + this.node.content.size)
30485
+ if (!(t.state.selection instanceof be) || r < n || l > n + this.node.content.size)
30486
30486
  return null;
30487
30487
  let a = t.input.compositionNode;
30488
30488
  if (!a || !this.dom.contains(a.parentNode))
@@ -30639,7 +30639,7 @@ function am(e, t, n) {
30639
30639
  r = r.nextSibling;
30640
30640
  } else
30641
30641
  l = !0, e.insertBefore(s, r);
30642
- if (i instanceof sr) {
30642
+ if (i instanceof or) {
30643
30643
  let o = r ? r.previousSibling : e.lastChild;
30644
30644
  am(i.contentDOM, i.children, n), r = o ? o.nextSibling : e.firstChild;
30645
30645
  }
@@ -30652,11 +30652,11 @@ const pl = function(e) {
30652
30652
  e && (this.nodeName = e);
30653
30653
  };
30654
30654
  pl.prototype = /* @__PURE__ */ Object.create(null);
30655
- const jn = [new pl()];
30655
+ const Gn = [new pl()];
30656
30656
  function zs(e, t, n) {
30657
30657
  if (e.length == 0)
30658
- return jn;
30659
- let r = n ? jn[0] : new pl(), l = [r];
30658
+ return Gn;
30659
+ let r = n ? Gn[0] : new pl(), l = [r];
30660
30660
  for (let a = 0; a < e.length; a++) {
30661
30661
  let i = e[a].type.attrs;
30662
30662
  if (i) {
@@ -30670,16 +30670,16 @@ function zs(e, t, n) {
30670
30670
  return l;
30671
30671
  }
30672
30672
  function im(e, t, n, r) {
30673
- if (n == jn && r == jn)
30673
+ if (n == Gn && r == Gn)
30674
30674
  return t;
30675
30675
  let l = t;
30676
30676
  for (let a = 0; a < r.length; a++) {
30677
30677
  let i = r[a], s = n[a];
30678
30678
  if (a) {
30679
30679
  let o;
30680
- s && s.nodeName == i.nodeName && l != e && (o = l.parentNode) && o.nodeName.toLowerCase() == i.nodeName || (o = document.createElement(i.nodeName), o.pmIsDeco = !0, o.appendChild(l), s = jn[0]), l = o;
30680
+ s && s.nodeName == i.nodeName && l != e && (o = l.parentNode) && o.nodeName.toLowerCase() == i.nodeName || (o = document.createElement(i.nodeName), o.pmIsDeco = !0, o.appendChild(l), s = Gn[0]), l = o;
30681
30681
  }
30682
- vA(l, s || jn[0], i);
30682
+ vA(l, s || Gn[0], i);
30683
30683
  }
30684
30684
  return l;
30685
30685
  }
@@ -30706,7 +30706,7 @@ function vA(e, t, n) {
30706
30706
  }
30707
30707
  }
30708
30708
  function sm(e, t, n) {
30709
- return im(e, e, jn, zs(t, n, e.nodeType != 1));
30709
+ return im(e, e, Gn, zs(t, n, e.nodeType != 1));
30710
30710
  }
30711
30711
  function Ma(e, t) {
30712
30712
  if (e.length != t.length)
@@ -30759,7 +30759,7 @@ class yA {
30759
30759
  if (o > -1)
30760
30760
  o > this.index && (this.changed = !0, this.destroyBetween(this.index, o)), this.top = this.top.children[this.index];
30761
30761
  else {
30762
- let c = sr.create(this.top, t[i], n, r);
30762
+ let c = or.create(this.top, t[i], n, r);
30763
30763
  this.top.children.splice(this.index, 0, c), this.top = c, this.changed = !0;
30764
30764
  }
30765
30765
  this.index = 0, i++;
@@ -30783,7 +30783,7 @@ class yA {
30783
30783
  }
30784
30784
  updateNodeAt(t, n, r, l, a) {
30785
30785
  let i = this.top.children[l];
30786
- return i.dirty == rn && i.dom == i.contentDOM && (i.dirty = Yn), i.update(t, n, r, a) ? (this.destroyBetween(this.index, l), this.index++, !0) : !1;
30786
+ return i.dirty == rn && i.dom == i.contentDOM && (i.dirty = jn), i.update(t, n, r, a) ? (this.destroyBetween(this.index, l), this.index++, !0) : !1;
30787
30787
  }
30788
30788
  findIndexWithChild(t) {
30789
30789
  for (; ; ) {
@@ -30815,7 +30815,7 @@ class yA {
30815
30815
  if (!f && o.update(t, n, r, l))
30816
30816
  return this.destroyBetween(this.index, s), o.dom != c && (this.changed = !0), this.index++, !0;
30817
30817
  if (!f && (d = this.recreateWrapper(o, t, n, r, l, i)))
30818
- return this.destroyBetween(this.index, s), this.top.children[this.index] = d, d.contentDOM && (d.dirty = Yn, d.updateChildren(l, i + 1), d.dirty = qt), this.changed = !0, this.index++, !0;
30818
+ return this.destroyBetween(this.index, s), this.top.children[this.index] = d, d.contentDOM && (d.dirty = jn, d.updateChildren(l, i + 1), d.dirty = qt), this.changed = !0, this.index++, !0;
30819
30819
  break;
30820
30820
  }
30821
30821
  }
@@ -30852,7 +30852,7 @@ class yA {
30852
30852
  // contentEditable.
30853
30853
  addTextblockHacks() {
30854
30854
  let t = this.top.children[this.index - 1], n = this.top;
30855
- for (; t instanceof sr; )
30855
+ for (; t instanceof or; )
30856
30856
  n = t, t = n.children[n.children.length - 1];
30857
30857
  (!t || // Empty textblock
30858
30858
  !(t instanceof ai) || /\n$/.test(t.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(t.node.text)) && ((ht || st) && t && t.dom.contentEditable == "false" && this.addHackNode("IMG", n), this.addHackNode("BR", this.top));
@@ -30878,7 +30878,7 @@ function EA(e, t) {
30878
30878
  for (; ; )
30879
30879
  if (r) {
30880
30880
  let u = n.children[r - 1];
30881
- if (u instanceof sr)
30881
+ if (u instanceof or)
30882
30882
  n = u, r = u.children.length;
30883
30883
  else {
30884
30884
  s = u, r--;
@@ -31033,7 +31033,7 @@ function pn(e, t = !1) {
31033
31033
  if (um(e, n), !!om(e)) {
31034
31034
  if (!t && e.input.mouseDown && e.input.mouseDown.allowDefault && st) {
31035
31035
  let r = e.domSelectionRange(), l = e.domObserver.currentSelection;
31036
- if (r.anchorNode && l.anchorNode && ir(r.anchorNode, r.anchorOffset, l.anchorNode, l.anchorOffset)) {
31036
+ if (r.anchorNode && l.anchorNode && sr(r.anchorNode, r.anchorOffset, l.anchorNode, l.anchorOffset)) {
31037
31037
  e.input.mouseDown.delayedSelectionSync = !0, e.domObserver.setCurSelection();
31038
31038
  return;
31039
31039
  }
@@ -31042,7 +31042,7 @@ function pn(e, t = !1) {
31042
31042
  AA(e);
31043
31043
  else {
31044
31044
  let { anchor: r, head: l } = n, a, i;
31045
- vd && !(n instanceof me) && (n.$from.parent.inlineContent || (a = yd(e, n.from)), !n.empty && !n.$from.parent.inlineContent && (i = yd(e, n.to))), e.docView.setSelection(r, l, e, t), vd && (a && Ed(a), i && Ed(i)), n.visible ? e.dom.classList.remove("ProseMirror-hideselection") : (e.dom.classList.add("ProseMirror-hideselection"), "onselectionchange" in document && kA(e));
31045
+ vd && !(n instanceof be) && (n.$from.parent.inlineContent || (a = yd(e, n.from)), !n.empty && !n.$from.parent.inlineContent && (i = yd(e, n.to))), e.docView.setSelection(r, l, e, t), vd && (a && Ed(a), i && Ed(i)), n.visible ? e.dom.classList.remove("ProseMirror-hideselection") : (e.dom.classList.add("ProseMirror-hideselection"), "onselectionchange" in document && kA(e));
31046
31046
  }
31047
31047
  e.domObserver.setCurSelection(), e.domObserver.connectSelection();
31048
31048
  }
@@ -31093,7 +31093,7 @@ function Td(e) {
31093
31093
  e.lastSelectedViewDesc && (e.lastSelectedViewDesc.parent && e.lastSelectedViewDesc.deselectNode(), e.lastSelectedViewDesc = void 0);
31094
31094
  }
31095
31095
  function Uo(e, t, n, r) {
31096
- return e.someProp("createSelectionBetween", (l) => l(e, t, n)) || me.between(t, n, r);
31096
+ return e.someProp("createSelectionBetween", (l) => l(e, t, n)) || be.between(t, n, r);
31097
31097
  }
31098
31098
  function xd(e) {
31099
31099
  return e.editable && !e.hasFocus() ? !1 : cm(e);
@@ -31110,7 +31110,7 @@ function cm(e) {
31110
31110
  }
31111
31111
  function NA(e) {
31112
31112
  let t = e.docView.domFromPos(e.state.selection.anchor, 0), n = e.domSelectionRange();
31113
- return ir(t.node, t.offset, n.anchorNode, n.anchorOffset);
31113
+ return sr(t.node, t.offset, n.anchorNode, n.anchorOffset);
31114
31114
  }
31115
31115
  function $s(e, t) {
31116
31116
  let { $anchor: n, $head: r } = e.selection, l = t > 0 ? n.max(r) : n.min(r), a = l.parent.inlineContent ? l.depth ? e.doc.resolve(t > 0 ? l.after() : l.before()) : null : l;
@@ -31121,13 +31121,13 @@ function xn(e, t) {
31121
31121
  }
31122
31122
  function Sd(e, t, n) {
31123
31123
  let r = e.state.selection;
31124
- if (r instanceof me)
31124
+ if (r instanceof be)
31125
31125
  if (n.indexOf("s") > -1) {
31126
31126
  let { $head: l } = r, a = l.textOffset ? null : t < 0 ? l.nodeBefore : l.nodeAfter;
31127
31127
  if (!a || a.isText || !a.isLeaf)
31128
31128
  return !1;
31129
31129
  let i = e.state.doc.resolve(l.pos + a.nodeSize * (t < 0 ? -1 : 1));
31130
- return xn(e, new me(r.$anchor, i));
31130
+ return xn(e, new be(r.$anchor, i));
31131
31131
  } else if (r.empty) {
31132
31132
  if (e.endOfTextblock(t > 0 ? "forward" : "backward")) {
31133
31133
  let l = $s(e.state, t);
@@ -31137,12 +31137,12 @@ function Sd(e, t, n) {
31137
31137
  if (!a || a.isText)
31138
31138
  return !1;
31139
31139
  let s = t < 0 ? l.pos - a.nodeSize : l.pos;
31140
- return a.isAtom || (i = e.docView.descAt(s)) && !i.contentDOM ? de.isSelectable(a) ? xn(e, new de(t < 0 ? e.state.doc.resolve(l.pos - a.nodeSize) : l)) : ql ? xn(e, new me(e.state.doc.resolve(t < 0 ? s : s + a.nodeSize))) : !1 : !1;
31140
+ return a.isAtom || (i = e.docView.descAt(s)) && !i.contentDOM ? de.isSelectable(a) ? xn(e, new de(t < 0 ? e.state.doc.resolve(l.pos - a.nodeSize) : l)) : ql ? xn(e, new be(e.state.doc.resolve(t < 0 ? s : s + a.nodeSize))) : !1 : !1;
31141
31141
  }
31142
31142
  } else return !1;
31143
31143
  else {
31144
31144
  if (r instanceof de && r.node.isInline)
31145
- return xn(e, new me(t > 0 ? r.$to : r.$from));
31145
+ return xn(e, new be(t > 0 ? r.$to : r.$from));
31146
31146
  {
31147
31147
  let l = $s(e.state, t);
31148
31148
  return l ? xn(e, l) : !1;
@@ -31292,7 +31292,7 @@ function Cd(e, t) {
31292
31292
  }
31293
31293
  function kd(e, t, n) {
31294
31294
  let r = e.state.selection;
31295
- if (r instanceof me && !r.empty || n.indexOf("s") > -1 || Ht && n.indexOf("m") > -1)
31295
+ if (r instanceof be && !r.empty || n.indexOf("s") > -1 || Ht && n.indexOf("m") > -1)
31296
31296
  return !1;
31297
31297
  let { $from: l, $to: a } = r;
31298
31298
  if (!l.parent.inlineContent || e.endOfTextblock(t < 0 ? "up" : "down")) {
@@ -31307,7 +31307,7 @@ function kd(e, t, n) {
31307
31307
  return !1;
31308
31308
  }
31309
31309
  function Ad(e, t) {
31310
- if (!(e.state.selection instanceof me))
31310
+ if (!(e.state.selection instanceof be))
31311
31311
  return !0;
31312
31312
  let { $head: n, $anchor: r, empty: l } = e.state.selection;
31313
31313
  if (!n.sameParent(r))
@@ -31374,7 +31374,7 @@ function zo(e, t) {
31374
31374
  let h = r.firstChild;
31375
31375
  n.push(h.type.name, h.attrs != h.type.defaultAttrs ? h.attrs : null), r = h.content;
31376
31376
  }
31377
- let i = e.someProp("clipboardSerializer") || cr.fromSchema(e.state.schema), s = gm(), o = s.createElement("div");
31377
+ let i = e.someProp("clipboardSerializer") || dr.fromSchema(e.state.schema), s = gm(), o = s.createElement("div");
31378
31378
  o.appendChild(i.serializeFragment(r, { document: s }));
31379
31379
  let u = o.firstChild, c, d = 0;
31380
31380
  for (; u && u.nodeType == 1 && (c = bm[u.nodeName.toLowerCase()]); ) {
@@ -31409,7 +31409,7 @@ function fm(e, t, n, r, l) {
31409
31409
  if (d)
31410
31410
  s = d;
31411
31411
  else {
31412
- let f = l.marks(), { schema: h } = e.state, m = cr.fromSchema(h);
31412
+ let f = l.marks(), { schema: h } = e.state, m = dr.fromSchema(h);
31413
31413
  i = document.createElement("div"), t.split(/(?:\r\n?|\n)+/).forEach((b) => {
31414
31414
  let g = i.appendChild(document.createElement("p"));
31415
31415
  b && g.appendChild(m.serializeNode(h.text(b, f)));
@@ -31609,7 +31609,7 @@ xt.keydown = (e, t) => {
31609
31609
  if (n.keyCode != 229 && e.domObserver.forceFlush(), Dr && n.keyCode == 13 && !n.ctrlKey && !n.altKey && !n.metaKey) {
31610
31610
  let r = Date.now();
31611
31611
  e.input.lastIOSEnter = r, e.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
31612
- e.input.lastIOSEnter == r && (e.someProp("handleKeyDown", (l) => l(e, $n(13, "Enter"))), e.input.lastIOSEnter = 0);
31612
+ e.input.lastIOSEnter == r && (e.someProp("handleKeyDown", (l) => l(e, qn(13, "Enter"))), e.input.lastIOSEnter = 0);
31613
31613
  }, 200);
31614
31614
  } else e.someProp("handleKeyDown", (r) => r(e, n)) || DA(e, n) ? n.preventDefault() : wn(e, "key");
31615
31615
  };
@@ -31625,7 +31625,7 @@ xt.keypress = (e, t) => {
31625
31625
  return;
31626
31626
  }
31627
31627
  let r = e.state.selection;
31628
- if (!(r instanceof me) || !r.$from.sameParent(r.$to)) {
31628
+ if (!(r instanceof be) || !r.$from.sameParent(r.$to)) {
31629
31629
  let l = String.fromCharCode(n.charCode), a = () => e.state.tr.insertText(l).scrollIntoView();
31630
31630
  !/[\r\n]/.test(l) && !e.someProp("handleTextInput", (i) => i(e, r.$from.pos, r.$to.pos, l, a)) && e.dispatch(a()), n.preventDefault();
31631
31631
  }
@@ -31687,12 +31687,12 @@ function ZA(e, t, n) {
31687
31687
  return !1;
31688
31688
  let r = e.state.doc;
31689
31689
  if (t == -1)
31690
- return r.inlineContent ? (_r(e, me.create(r, 0, r.content.size)), !0) : !1;
31690
+ return r.inlineContent ? (_r(e, be.create(r, 0, r.content.size)), !0) : !1;
31691
31691
  let l = r.resolve(t);
31692
31692
  for (let a = l.depth + 1; a > 0; a--) {
31693
31693
  let i = a > l.depth ? l.nodeAfter : l.node(a), s = l.before(a);
31694
31694
  if (i.inlineContent)
31695
- _r(e, me.create(r, s + 1, s + 1 + i.content.size));
31695
+ _r(e, be.create(r, s + 1, s + 1 + i.content.size));
31696
31696
  else if (de.isSelectable(i))
31697
31697
  _r(e, de.create(r, s));
31698
31698
  else
@@ -31773,7 +31773,7 @@ xt.compositionstart = xt.compositionupdate = (e) => {
31773
31773
  if (!e.composing) {
31774
31774
  e.domObserver.flush();
31775
31775
  let { state: t } = e, n = t.selection.$to;
31776
- if (t.selection instanceof me && (t.storedMarks || !n.textOffset && n.parentOffset && n.nodeBefore.marks.some((r) => r.type.spec.inclusive === !1) || st && Qp && nN(e)))
31776
+ if (t.selection instanceof be && (t.storedMarks || !n.textOffset && n.parentOffset && n.nodeBefore.marks.some((r) => r.type.spec.inclusive === !1) || st && Qp && nN(e)))
31777
31777
  e.markCursor = e.state.storedMarks || n.marks(), La(e, !0), e.markCursor = null;
31778
31778
  else if (La(e, !t.selection.empty), $t && t.selection.empty && n.parentOffset && !n.textOffset && n.nodeBefore.marks.length) {
31779
31779
  let r = e.domSelectionRange();
@@ -31989,7 +31989,7 @@ Tt.beforeinput = (e, t) => {
31989
31989
  e.domObserver.flushSoon();
31990
31990
  let { domChangeCount: r } = e.input;
31991
31991
  setTimeout(() => {
31992
- if (e.input.domChangeCount != r || (e.dom.blur(), e.focus(), e.someProp("handleKeyDown", (a) => a(e, $n(8, "Backspace")))))
31992
+ if (e.input.domChangeCount != r || (e.dom.blur(), e.focus(), e.someProp("handleKeyDown", (a) => a(e, qn(8, "Backspace")))))
31993
31993
  return;
31994
31994
  let { $cursor: l } = e.state.selection;
31995
31995
  l && l.pos > 0 && e.dispatch(e.state.tr.delete(l.pos - 1, l.pos).scrollIntoView());
@@ -32011,7 +32011,7 @@ function Il(e, t) {
32011
32011
  }
32012
32012
  class Pa {
32013
32013
  constructor(t, n) {
32014
- this.toDOM = t, this.spec = n || er, this.side = this.spec.side || 0;
32014
+ this.toDOM = t, this.spec = n || tr, this.side = this.spec.side || 0;
32015
32015
  }
32016
32016
  map(t, n, r, l) {
32017
32017
  let { pos: a, deleted: i } = t.mapResult(n.from + l, this.side < 0 ? -1 : 1);
@@ -32029,7 +32029,7 @@ class Pa {
32029
32029
  }
32030
32030
  class Rn {
32031
32031
  constructor(t, n) {
32032
- this.attrs = t, this.spec = n || er;
32032
+ this.attrs = t, this.spec = n || tr;
32033
32033
  }
32034
32034
  map(t, n, r, l) {
32035
32035
  let a = t.map(n.from + l, this.spec.inclusiveStart ? -1 : 1) - r, i = t.map(n.to + l, this.spec.inclusiveEnd ? 1 : -1) - r;
@@ -32049,7 +32049,7 @@ class Rn {
32049
32049
  }
32050
32050
  class Wo {
32051
32051
  constructor(t, n) {
32052
- this.attrs = t, this.spec = n || er;
32052
+ this.attrs = t, this.spec = n || tr;
32053
32053
  }
32054
32054
  map(t, n, r, l) {
32055
32055
  let a = t.mapResult(n.from + l, 1);
@@ -32139,7 +32139,7 @@ class Lt {
32139
32139
  return this.type instanceof Pa;
32140
32140
  }
32141
32141
  }
32142
- const Tr = [], er = {};
32142
+ const Tr = [], tr = {};
32143
32143
  class Ge {
32144
32144
  /**
32145
32145
  @internal
@@ -32153,7 +32153,7 @@ class Ge {
32153
32153
  you must make a copy if you want need to preserve that.
32154
32154
  */
32155
32155
  static create(t, n) {
32156
- return n.length ? Ba(n, t, 0, er) : ft;
32156
+ return n.length ? Ba(n, t, 0, tr) : ft;
32157
32157
  }
32158
32158
  /**
32159
32159
  Find all decorations in this set which touch the given range
@@ -32183,7 +32183,7 @@ class Ge {
32183
32183
  document.
32184
32184
  */
32185
32185
  map(t, n, r) {
32186
- return this == ft || t.maps.length == 0 ? this : this.mapInner(t, n, 0, 0, r || er);
32186
+ return this == ft || t.maps.length == 0 ? this : this.mapInner(t, n, 0, 0, r || tr);
32187
32187
  }
32188
32188
  /**
32189
32189
  @internal
@@ -32194,7 +32194,7 @@ class Ge {
32194
32194
  let o = this.local[s].map(t, r, l);
32195
32195
  o && o.type.valid(n, o) ? (i || (i = [])).push(o) : a.onRemove && a.onRemove(this.local[s].spec);
32196
32196
  }
32197
- return this.children.length ? cN(this.children, i || [], t, n, r, l, a) : i ? new Ge(i.sort(tr), Tr) : ft;
32197
+ return this.children.length ? cN(this.children, i || [], t, n, r, l, a) : i ? new Ge(i.sort(nr), Tr) : ft;
32198
32198
  }
32199
32199
  /**
32200
32200
  Add the given array of decorations to the ones in the set,
@@ -32212,13 +32212,13 @@ class Ge {
32212
32212
  if (c = Am(n, s, u)) {
32213
32213
  for (l || (l = this.children.slice()); a < l.length && l[a] < o; )
32214
32214
  a += 3;
32215
- l[a] == o ? l[a + 2] = l[a + 2].addInner(s, c, u + 1) : l.splice(a, 0, o, o + s.nodeSize, Ba(c, s, u + 1, er)), a += 3;
32215
+ l[a] == o ? l[a + 2] = l[a + 2].addInner(s, c, u + 1) : l.splice(a, 0, o, o + s.nodeSize, Ba(c, s, u + 1, tr)), a += 3;
32216
32216
  }
32217
32217
  });
32218
32218
  let i = km(a ? Nm(n) : n, -r);
32219
32219
  for (let s = 0; s < i.length; s++)
32220
32220
  i[s].type.valid(t, i[s]) || i.splice(s--, 1);
32221
- return new Ge(i.length ? this.local.concat(i).sort(tr) : this.local, l || this.children);
32221
+ return new Ge(i.length ? this.local.concat(i).sort(nr) : this.local, l || this.children);
32222
32222
  }
32223
32223
  /**
32224
32224
  Create a new set that contains the decorations in this set, minus
@@ -32267,7 +32267,7 @@ class Ge {
32267
32267
  }
32268
32268
  }
32269
32269
  if (l) {
32270
- let s = new Ge(l.sort(tr), Tr);
32270
+ let s = new Ge(l.sort(nr), Tr);
32271
32271
  return r ? new Cn([s, r]) : s;
32272
32272
  }
32273
32273
  return r || ft;
@@ -32319,7 +32319,7 @@ class Cn {
32319
32319
  this.members = t;
32320
32320
  }
32321
32321
  map(t, n) {
32322
- const r = this.members.map((l) => l.map(t, n, er));
32322
+ const r = this.members.map((l) => l.map(t, n, tr));
32323
32323
  return Cn.from(r);
32324
32324
  }
32325
32325
  forChild(t, n) {
@@ -32353,7 +32353,7 @@ class Cn {
32353
32353
  n.push(a[i]);
32354
32354
  }
32355
32355
  }
32356
- return n ? Yo(r ? n : n.sort(tr)) : Tr;
32356
+ return n ? Yo(r ? n : n.sort(nr)) : Tr;
32357
32357
  }
32358
32358
  // Create a group for the given array of decoration sets, or return
32359
32359
  // a single set when possible.
@@ -32419,7 +32419,7 @@ function cN(e, t, n, r, l, a, i) {
32419
32419
  s.splice(f, 0, c.children[d], c.children[d + 1], c.children[d + 2]);
32420
32420
  }
32421
32421
  }
32422
- return new Ge(t.sort(tr), s);
32422
+ return new Ge(t.sort(nr), s);
32423
32423
  }
32424
32424
  function km(e, t) {
32425
32425
  if (!t || !e.length)
@@ -32468,12 +32468,12 @@ function Ba(e, t, n, r) {
32468
32468
  c != ft && l.push(o, o + s.nodeSize, c);
32469
32469
  }
32470
32470
  });
32471
- let i = km(a ? Nm(e) : e, -n).sort(tr);
32471
+ let i = km(a ? Nm(e) : e, -n).sort(nr);
32472
32472
  for (let s = 0; s < i.length; s++)
32473
32473
  i[s].type.valid(t, i[s]) || (r.onRemove && r.onRemove(i[s].spec), i.splice(s--, 1));
32474
32474
  return i.length || l.length ? new Ge(i, l) : ft;
32475
32475
  }
32476
- function tr(e, t) {
32476
+ function nr(e, t) {
32477
32477
  return e.from - t.from || e.to - t.to;
32478
32478
  }
32479
32479
  function Yo(e) {
@@ -32495,7 +32495,7 @@ function Yo(e) {
32495
32495
  return t;
32496
32496
  }
32497
32497
  function Id(e, t, n) {
32498
- for (; t < e.length && tr(n, e[t]) > 0; )
32498
+ for (; t < e.length && nr(n, e[t]) > 0; )
32499
32499
  t++;
32500
32500
  e.splice(t, 0, n);
32501
32501
  }
@@ -32576,7 +32576,7 @@ class mN {
32576
32576
  return pn(this.view);
32577
32577
  if (wt && In <= 11 && !this.view.state.selection.empty) {
32578
32578
  let t = this.view.domSelectionRange();
32579
- if (t.focusNode && ir(t.focusNode, t.focusOffset, t.anchorNode, t.anchorOffset))
32579
+ if (t.focusNode && sr(t.focusNode, t.focusOffset, t.anchorNode, t.anchorOffset))
32580
32580
  return this.flushSoon();
32581
32581
  }
32582
32582
  this.flush();
@@ -32692,7 +32692,7 @@ function bN(e) {
32692
32692
  }
32693
32693
  function Md(e, t) {
32694
32694
  let n = t.startContainer, r = t.startOffset, l = t.endContainer, a = t.endOffset, i = e.domAtPos(e.state.selection.anchor);
32695
- return ir(i.node, i.offset, l, a) && ([n, r, l, a] = [l, a, n, r]), { anchorNode: n, anchorOffset: r, focusNode: l, focusOffset: a };
32695
+ return sr(i.node, i.offset, l, a) && ([n, r, l, a] = [l, a, n, r]), { anchorNode: n, anchorOffset: r, focusNode: l, focusOffset: a };
32696
32696
  }
32697
32697
  function gN(e, t) {
32698
32698
  if (t.getComposedRanges) {
@@ -32784,7 +32784,7 @@ function SN(e, t, n, r, l) {
32784
32784
  if (e.input.compositionPendingChanges = 0, t < 0) {
32785
32785
  let _ = e.input.lastSelectionTime > Date.now() - 50 ? e.input.lastSelectionOrigin : null, N = Ho(e, _);
32786
32786
  if (N && !e.state.selection.eq(N)) {
32787
- if (st && fn && e.input.lastKeyCode === 13 && Date.now() - 100 < e.input.lastKeyCodeTime && e.someProp("handleKeyDown", (P) => P(e, $n(13, "Enter"))))
32787
+ if (st && fn && e.input.lastKeyCode === 13 && Date.now() - 100 < e.input.lastKeyCodeTime && e.someProp("handleKeyDown", (P) => P(e, qn(13, "Enter"))))
32788
32788
  return;
32789
32789
  let A = e.state.tr.setSelection(N);
32790
32790
  _ == "pointer" ? A.setMeta("pointer", !0) : _ == "key" && A.scrollIntoView(), a && A.setMeta("composition", a), e.dispatch(A);
@@ -32796,12 +32796,12 @@ function SN(e, t, n, r, l) {
32796
32796
  let o = e.state.selection, u = EN(e, t, n), c = e.state.doc, d = c.slice(u.from, u.to), f, h;
32797
32797
  e.input.lastKeyCode === 8 && Date.now() - 100 < e.input.lastKeyCodeTime ? (f = e.state.selection.to, h = "end") : (f = e.state.selection.from, h = "start"), e.input.lastKeyCode = null;
32798
32798
  let m = AN(d.content, u.doc.content, u.from, f, h);
32799
- if (m && e.input.domChangeCount++, (Dr && e.input.lastIOSEnter > Date.now() - 225 || fn) && l.some((_) => _.nodeType == 1 && !xN.test(_.nodeName)) && (!m || m.endA >= m.endB) && e.someProp("handleKeyDown", (_) => _(e, $n(13, "Enter")))) {
32799
+ if (m && e.input.domChangeCount++, (Dr && e.input.lastIOSEnter > Date.now() - 225 || fn) && l.some((_) => _.nodeType == 1 && !xN.test(_.nodeName)) && (!m || m.endA >= m.endB) && e.someProp("handleKeyDown", (_) => _(e, qn(13, "Enter")))) {
32800
32800
  e.input.lastIOSEnter = 0;
32801
32801
  return;
32802
32802
  }
32803
32803
  if (!m)
32804
- if (r && o instanceof me && !o.empty && o.$head.sameParent(o.$anchor) && !e.composing && !(u.sel && u.sel.anchor != u.sel.head))
32804
+ if (r && o instanceof be && !o.empty && o.$head.sameParent(o.$anchor) && !e.composing && !(u.sel && u.sel.anchor != u.sel.head))
32805
32805
  m = { start: o.from, endA: o.to, endB: o.to };
32806
32806
  else {
32807
32807
  if (u.sel) {
@@ -32813,19 +32813,19 @@ function SN(e, t, n, r, l) {
32813
32813
  }
32814
32814
  return;
32815
32815
  }
32816
- e.state.selection.from < e.state.selection.to && m.start == m.endB && e.state.selection instanceof me && (m.start > e.state.selection.from && m.start <= e.state.selection.from + 2 && e.state.selection.from >= u.from ? m.start = e.state.selection.from : m.endA < e.state.selection.to && m.endA >= e.state.selection.to - 2 && e.state.selection.to <= u.to && (m.endB += e.state.selection.to - m.endA, m.endA = e.state.selection.to)), wt && In <= 11 && m.endB == m.start + 1 && m.endA == m.start && m.start > u.from && u.doc.textBetween(m.start - u.from - 1, m.start - u.from + 1) == "  " && (m.start--, m.endA--, m.endB--);
32816
+ e.state.selection.from < e.state.selection.to && m.start == m.endB && e.state.selection instanceof be && (m.start > e.state.selection.from && m.start <= e.state.selection.from + 2 && e.state.selection.from >= u.from ? m.start = e.state.selection.from : m.endA < e.state.selection.to && m.endA >= e.state.selection.to - 2 && e.state.selection.to <= u.to && (m.endB += e.state.selection.to - m.endA, m.endA = e.state.selection.to)), wt && In <= 11 && m.endB == m.start + 1 && m.endA == m.start && m.start > u.from && u.doc.textBetween(m.start - u.from - 1, m.start - u.from + 1) == "  " && (m.start--, m.endA--, m.endB--);
32817
32817
  let b = u.doc.resolveNoCache(m.start - u.from), g = u.doc.resolveNoCache(m.endB - u.from), v = c.resolve(m.start), I = b.sameParent(g) && b.parent.inlineContent && v.end() >= m.endA;
32818
- if ((Dr && e.input.lastIOSEnter > Date.now() - 225 && (!I || l.some((_) => _.nodeName == "DIV" || _.nodeName == "P")) || !I && b.pos < u.doc.content.size && (!b.sameParent(g) || !b.parent.inlineContent) && b.pos < g.pos && !/\S/.test(u.doc.textBetween(b.pos, g.pos, "", ""))) && e.someProp("handleKeyDown", (_) => _(e, $n(13, "Enter")))) {
32818
+ if ((Dr && e.input.lastIOSEnter > Date.now() - 225 && (!I || l.some((_) => _.nodeName == "DIV" || _.nodeName == "P")) || !I && b.pos < u.doc.content.size && (!b.sameParent(g) || !b.parent.inlineContent) && b.pos < g.pos && !/\S/.test(u.doc.textBetween(b.pos, g.pos, "", ""))) && e.someProp("handleKeyDown", (_) => _(e, qn(13, "Enter")))) {
32819
32819
  e.input.lastIOSEnter = 0;
32820
32820
  return;
32821
32821
  }
32822
- if (e.state.selection.anchor > m.start && kN(c, m.start, m.endA, b, g) && e.someProp("handleKeyDown", (_) => _(e, $n(8, "Backspace")))) {
32822
+ if (e.state.selection.anchor > m.start && kN(c, m.start, m.endA, b, g) && e.someProp("handleKeyDown", (_) => _(e, qn(8, "Backspace")))) {
32823
32823
  fn && st && e.domObserver.suppressSelectionUpdates();
32824
32824
  return;
32825
32825
  }
32826
32826
  st && m.endB == m.start && (e.input.lastChromeDelete = Date.now()), fn && !I && b.start() != g.start() && g.parentOffset == 0 && b.depth == g.depth && u.sel && u.sel.anchor == u.sel.head && u.sel.head == m.endA && (m.endB -= 2, g = u.doc.resolveNoCache(m.endB - u.from), setTimeout(() => {
32827
32827
  e.someProp("handleKeyDown", function(_) {
32828
- return _(e, $n(13, "Enter"));
32828
+ return _(e, qn(13, "Enter"));
32829
32829
  });
32830
32830
  }, 20));
32831
32831
  let k = m.start, M = m.endA, w = (_) => {
@@ -33521,7 +33521,7 @@ function Rm(e, t, n) {
33521
33521
  return !1;
33522
33522
  if (n) {
33523
33523
  let c = e.tr.step(u);
33524
- c.setSelection(me.create(c.doc, a)), n(c.scrollIntoView());
33524
+ c.setSelection(be.create(c.doc, a)), n(c.scrollIntoView());
33525
33525
  }
33526
33526
  return !0;
33527
33527
  }
@@ -33663,7 +33663,7 @@ const VN = (e, t) => {
33663
33663
  return !1;
33664
33664
  if (t) {
33665
33665
  let i = (!r.parentOffset && l.index() < l.parent.childCount ? r : l).pos, s = e.tr.insert(i, a.createAndFill());
33666
- s.setSelection(me.create(s.doc, i + 1)), t(s.scrollIntoView());
33666
+ s.setSelection(be.create(s.doc, i + 1)), t(s.scrollIntoView());
33667
33667
  }
33668
33668
  return !0;
33669
33669
  }, Hm = (e, t) => {
@@ -33696,7 +33696,7 @@ function $N(e) {
33696
33696
  a.unshift(null);
33697
33697
  }
33698
33698
  let c = t.tr;
33699
- (t.selection instanceof me || t.selection instanceof Pt) && c.deleteSelection();
33699
+ (t.selection instanceof be || t.selection instanceof Pt) && c.deleteSelection();
33700
33700
  let d = c.mapping.map(r.pos), f = hn(c.doc, d, a.length, a);
33701
33701
  if (f || (a[0] = s ? { type: s } : null, f = hn(c.doc, d, a.length, a)), !f)
33702
33702
  return !1;
@@ -33762,7 +33762,7 @@ function zm(e) {
33762
33762
  return !1;
33763
33763
  a--;
33764
33764
  }
33765
- return l.node(a).isTextblock ? (n && n(t.tr.setSelection(me.create(t.doc, e < 0 ? l.start(a) : l.end(a)))), !0) : !1;
33765
+ return l.node(a).isTextblock ? (n && n(t.tr.setSelection(be.create(t.doc, e < 0 ? l.start(a) : l.end(a)))), !0) : !1;
33766
33766
  };
33767
33767
  }
33768
33768
  const jN = zm(-1), GN = zm(1);
@@ -34231,7 +34231,7 @@ function qd(e, t) {
34231
34231
  return Array.isArray(t) ? t.some((n) => (typeof n == "string" ? n : n.name) === e.name) : t;
34232
34232
  }
34233
34233
  function Jo(e, t) {
34234
- const n = cr.fromSchema(t).serializeFragment(e), l = document.implementation.createHTMLDocument().createElement("div");
34234
+ const n = dr.fromSchema(t).serializeFragment(e), l = document.implementation.createHTMLDocument().createElement("div");
34235
34235
  return l.appendChild(n), l.innerHTML;
34236
34236
  }
34237
34237
  const s2 = (e, t = 500) => {
@@ -34858,7 +34858,7 @@ const v2 = pt.create({
34858
34858
  const { state: l } = n, a = l.doc.slice(e.from, e.to);
34859
34859
  r.deleteRange(e.from, e.to);
34860
34860
  const i = r.mapping.map(t);
34861
- return r.insert(i, a.content), r.setSelection(new me(r.doc.resolve(Math.max(i - 1, 0)))), !0;
34861
+ return r.insert(i, a.content), r.setSelection(new be(r.doc.resolve(Math.max(i - 1, 0)))), !0;
34862
34862
  }, k2 = () => ({ tr: e, dispatch: t }) => {
34863
34863
  const { selection: n } = e, r = n.$anchor.node();
34864
34864
  if (r.content.size > 0)
@@ -34932,7 +34932,7 @@ const O2 = (e, t = {}) => ({ tr: n, state: r, dispatch: l }) => {
34932
34932
  if (l) {
34933
34933
  const d = eu(o, a, t);
34934
34934
  if (d && d.from <= u && d.to >= c) {
34935
- const f = me.create(i, d.from, d.to);
34935
+ const f = be.create(i, d.from, d.to);
34936
34936
  n.setSelection(f);
34937
34937
  }
34938
34938
  }
@@ -34945,9 +34945,9 @@ const O2 = (e, t = {}) => ({ tr: n, state: r, dispatch: l }) => {
34945
34945
  return !1;
34946
34946
  };
34947
34947
  function jm(e) {
34948
- return e instanceof me;
34948
+ return e instanceof be;
34949
34949
  }
34950
- function Gn(e = 0, t = 0, n = 0) {
34950
+ function Kn(e = 0, t = 0, n = 0) {
34951
34951
  return Math.min(Math.max(e, t), n);
34952
34952
  }
34953
34953
  function Gm(e, t = null) {
@@ -34959,7 +34959,7 @@ function Gm(e, t = null) {
34959
34959
  if (t === "end")
34960
34960
  return r;
34961
34961
  const l = n.from, a = r.to;
34962
- return t === "all" ? me.create(e, Gn(0, l, a), Gn(e.content.size, l, a)) : me.create(e, Gn(t, l, a), Gn(t, l, a));
34962
+ return t === "all" ? be.create(e, Kn(0, l, a), Kn(e.content.size, l, a)) : be.create(e, Kn(t, l, a), Kn(t, l, a));
34963
34963
  }
34964
34964
  function Yd() {
34965
34965
  return navigator.platform === "Android" || /android/i.test(navigator.userAgent);
@@ -35442,13 +35442,13 @@ const gw = (e, t = {}) => ({ tr: n, state: r, dispatch: l }) => {
35442
35442
  return n.selection.$anchor.sameParent(n.selection.$head) && (i = n.selection.$anchor.parent.attrs), a.isTextblock ? l().command(({ commands: s }) => zd(a, { ...i, ...t })(n) ? !0 : s.clearNodes()).command(({ state: s }) => zd(a, { ...i, ...t })(s, r)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
35443
35443
  }, Ew = (e) => ({ tr: t, dispatch: n }) => {
35444
35444
  if (n) {
35445
- const { doc: r } = t, l = Gn(e, 0, r.content.size), a = de.create(r, l);
35445
+ const { doc: r } = t, l = Kn(e, 0, r.content.size), a = de.create(r, l);
35446
35446
  t.setSelection(a);
35447
35447
  }
35448
35448
  return !0;
35449
35449
  }, Tw = (e) => ({ tr: t, dispatch: n }) => {
35450
35450
  if (n) {
35451
- const { doc: r } = t, { from: l, to: a } = typeof e == "number" ? { from: e, to: e } : e, i = me.atStart(r).from, s = me.atEnd(r).to, o = Gn(l, i, s), u = Gn(a, i, s), c = me.create(r, o, u);
35451
+ const { doc: r } = t, { from: l, to: a } = typeof e == "number" ? { from: e, to: e } : e, i = be.atStart(r).from, s = be.atEnd(r).to, o = Kn(l, i, s), u = Kn(a, i, s), c = be.create(r, o, u);
35452
35452
  t.setSelection(c);
35453
35453
  }
35454
35454
  return !0;
@@ -35482,7 +35482,7 @@ const Sw = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
35482
35482
  attrs: c
35483
35483
  }
35484
35484
  ] : void 0), r) {
35485
- if (m && (a instanceof me && t.deleteSelection(), t.split(t.mapping.map(s.pos), 1, h), f && !d && !s.parentOffset && s.parent.type !== f)) {
35485
+ if (m && (a instanceof be && t.deleteSelection(), t.split(t.mapping.map(s.pos), 1, h), f && !d && !s.parentOffset && s.parent.type !== f)) {
35486
35486
  const b = t.mapping.map(s.before()), g = t.doc.resolve(b);
35487
35487
  s.node(-1).canReplaceWith(g.index(), g.index() + 1, f) && t.setNodeMarkup(t.mapping.map(s.before()), f);
35488
35488
  }
@@ -35518,7 +35518,7 @@ const Sw = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
35518
35518
  if (_ > -1)
35519
35519
  return !1;
35520
35520
  N.isTextblock && N.content.size === 0 && (_ = A + 1);
35521
- }), _ > -1 && n.setSelection(me.near(n.doc.resolve(_))), n.scrollIntoView();
35521
+ }), _ > -1 && n.setSelection(be.near(n.doc.resolve(_))), n.scrollIntoView();
35522
35522
  }
35523
35523
  return !0;
35524
35524
  }
@@ -35896,7 +35896,7 @@ const Pw = pt.create({
35896
35896
  ];
35897
35897
  }
35898
35898
  });
35899
- class qn {
35899
+ class Wn {
35900
35900
  get name() {
35901
35901
  return this.node.type.name;
35902
35902
  }
@@ -35955,15 +35955,15 @@ class qn {
35955
35955
  if (this.depth === 0)
35956
35956
  return null;
35957
35957
  const t = this.resolvedPos.start(this.resolvedPos.depth - 1), n = this.resolvedPos.doc.resolve(t);
35958
- return new qn(n, this.editor);
35958
+ return new Wn(n, this.editor);
35959
35959
  }
35960
35960
  get before() {
35961
35961
  let t = this.resolvedPos.doc.resolve(this.from - (this.isBlock ? 1 : 2));
35962
- return t.depth !== this.depth && (t = this.resolvedPos.doc.resolve(this.from - 3)), new qn(t, this.editor);
35962
+ return t.depth !== this.depth && (t = this.resolvedPos.doc.resolve(this.from - 3)), new Wn(t, this.editor);
35963
35963
  }
35964
35964
  get after() {
35965
35965
  let t = this.resolvedPos.doc.resolve(this.to + (this.isBlock ? 2 : 1));
35966
- return t.depth !== this.depth && (t = this.resolvedPos.doc.resolve(this.to + 3)), new qn(t, this.editor);
35966
+ return t.depth !== this.depth && (t = this.resolvedPos.doc.resolve(this.to + 3)), new Wn(t, this.editor);
35967
35967
  }
35968
35968
  get children() {
35969
35969
  const t = [];
@@ -35974,8 +35974,8 @@ class qn {
35974
35974
  const s = this.resolvedPos.doc.resolve(i);
35975
35975
  if (!l && s.depth <= this.depth)
35976
35976
  return;
35977
- const o = new qn(s, this.editor, l, l ? n : null);
35978
- l && (o.actualDepth = this.depth + 1), t.push(new qn(s, this.editor, l, l ? n : null));
35977
+ const o = new Wn(s, this.editor, l, l ? n : null);
35978
+ l && (o.actualDepth = this.depth + 1), t.push(new Wn(s, this.editor, l, l ? n : null));
35979
35979
  }), t;
35980
35980
  }
35981
35981
  get firstChild() {
@@ -36445,7 +36445,7 @@ class Yw extends r2 {
36445
36445
  }
36446
36446
  $pos(t) {
36447
36447
  const n = this.state.doc.resolve(t);
36448
- return new qn(n, this);
36448
+ return new Wn(n, this);
36449
36449
  }
36450
36450
  get $doc() {
36451
36451
  return this.$pos(0);
@@ -36610,7 +36610,7 @@ var Qd;
36610
36610
  function Qw() {
36611
36611
  if (Qd) return us;
36612
36612
  Qd = 1;
36613
- var e = ye;
36613
+ var e = Ee;
36614
36614
  function t(d, f) {
36615
36615
  return d === f && (d !== 0 || 1 / d === 1 / f) || d !== d && f !== f;
36616
36616
  }
@@ -36655,7 +36655,7 @@ var Xd;
36655
36655
  function Xw() {
36656
36656
  return Xd || (Xd = 1, process.env.NODE_ENV !== "production" && function() {
36657
36657
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
36658
- var e = ye, t = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
36658
+ var e = Ee, t = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
36659
36659
  function n(k) {
36660
36660
  {
36661
36661
  for (var M = arguments.length, w = new Array(M > 1 ? M - 1 : 0), x = 1; x < M; x++)
@@ -36730,7 +36730,7 @@ const Jw = (...e) => (t) => {
36730
36730
  });
36731
36731
  }, Zw = ({ contentComponent: e }) => {
36732
36732
  const t = pi.useSyncExternalStore(e.subscribe, e.getSnapshot, e.getServerSnapshot);
36733
- return ye.createElement(ye.Fragment, null, Object.values(t));
36733
+ return Ee.createElement(Ee.Fragment, null, Object.values(t));
36734
36734
  };
36735
36735
  function e_() {
36736
36736
  const e = /* @__PURE__ */ new Set();
@@ -36768,10 +36768,10 @@ function e_() {
36768
36768
  }
36769
36769
  };
36770
36770
  }
36771
- class t_ extends ye.Component {
36771
+ class t_ extends Ee.Component {
36772
36772
  constructor(t) {
36773
36773
  var n;
36774
- super(t), this.editorContentRef = ye.createRef(), this.initialized = !1, this.state = {
36774
+ super(t), this.editorContentRef = Ee.createRef(), this.initialized = !1, this.state = {
36775
36775
  hasContentComponentInitialized: !!(!((n = t.editor) === null || n === void 0) && n.contentComponent)
36776
36776
  };
36777
36777
  }
@@ -36809,22 +36809,22 @@ class t_ extends ye.Component {
36809
36809
  }
36810
36810
  render() {
36811
36811
  const { editor: t, innerRef: n, ...r } = this.props;
36812
- return ye.createElement(
36813
- ye.Fragment,
36812
+ return Ee.createElement(
36813
+ Ee.Fragment,
36814
36814
  null,
36815
- ye.createElement("div", { ref: Jw(n, this.editorContentRef), ...r }),
36816
- t?.contentComponent && ye.createElement(Zw, { contentComponent: t.contentComponent })
36815
+ Ee.createElement("div", { ref: Jw(n, this.editorContentRef), ...r }),
36816
+ t?.contentComponent && Ee.createElement(Zw, { contentComponent: t.contentComponent })
36817
36817
  );
36818
36818
  }
36819
36819
  }
36820
36820
  const n_ = Ob((e, t) => {
36821
- const n = ye.useMemo(() => Math.floor(Math.random() * 4294967295).toString(), [e.editor]);
36822
- return ye.createElement(t_, {
36821
+ const n = Ee.useMemo(() => Math.floor(Math.random() * 4294967295).toString(), [e.editor]);
36822
+ return Ee.createElement(t_, {
36823
36823
  key: n,
36824
36824
  innerRef: t,
36825
36825
  ...e
36826
36826
  });
36827
- }), r_ = ye.memo(n_);
36827
+ }), r_ = Ee.memo(n_);
36828
36828
  var l_ = function e(t, n) {
36829
36829
  if (t === n) return !0;
36830
36830
  if (t && n && typeof t == "object" && typeof n == "object") {
@@ -36884,7 +36884,7 @@ var Jd;
36884
36884
  function i_() {
36885
36885
  if (Jd) return ds;
36886
36886
  Jd = 1;
36887
- var e = ye, t = pi;
36887
+ var e = Ee, t = pi;
36888
36888
  function n(u, c) {
36889
36889
  return u === c && (u !== 0 || 1 / u === 1 / c) || u !== u && c !== c;
36890
36890
  }
@@ -36935,7 +36935,7 @@ var Zd;
36935
36935
  function s_() {
36936
36936
  return Zd || (Zd = 1, process.env.NODE_ENV !== "production" && function() {
36937
36937
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
36938
- var e = ye, t = pi;
36938
+ var e = Ee, t = pi;
36939
36939
  function n(c, d) {
36940
36940
  return c === d && (c !== 0 || 1 / c === 1 / d) || c !== c && d !== d;
36941
36941
  }
@@ -36979,7 +36979,7 @@ function s_() {
36979
36979
  }
36980
36980
  process.env.NODE_ENV === "production" ? Js.exports = i_() : Js.exports = s_();
36981
36981
  var o_ = Js.exports;
36982
- const u_ = typeof window < "u" ? Xe : ve;
36982
+ const u_ = typeof window < "u" ? Xe : ye;
36983
36983
  class c_ {
36984
36984
  constructor(t) {
36985
36985
  this.transactionNumber = 0, this.lastTransactionNumber = 0, this.subscribers = /* @__PURE__ */ new Set(), this.editor = t, this.lastSnapshot = { editor: t, transactionNumber: 0 }, this.getSnapshot = this.getSnapshot.bind(this), this.getServerSnapshot = this.getServerSnapshot.bind(this), this.watch = this.watch.bind(this), this.subscribe = this.subscribe.bind(this);
@@ -37165,7 +37165,7 @@ function h_(e = {}, t = []) {
37165
37165
  const n = ne(e);
37166
37166
  n.current = e;
37167
37167
  const [r] = ee(() => new nu(n)), l = pi.useSyncExternalStore(r.subscribe, r.getEditor, r.getServerSnapshot);
37168
- return mf(l), ve(r.onRender(t)), d_({
37168
+ return mf(l), ye(r.onRender(t)), d_({
37169
37169
  editor: l,
37170
37170
  selector: ({ transactionNumber: a }) => e.shouldRerenderOnTransaction === !1 ? null : e.immediatelyRender && a === 0 ? 0 : a + 1
37171
37171
  }), l;
@@ -37177,11 +37177,11 @@ p_.Consumer;
37177
37177
  const m_ = to({
37178
37178
  onDragStart: void 0
37179
37179
  }), b_ = () => pf(m_);
37180
- ye.forwardRef((e, t) => {
37180
+ Ee.forwardRef((e, t) => {
37181
37181
  const { onDragStart: n } = b_(), r = e.as || "div";
37182
37182
  return (
37183
37183
  // @ts-ignore
37184
- ye.createElement(r, { ...e, ref: t, "data-node-view-wrapper": "", onDragStart: n, style: {
37184
+ Ee.createElement(r, { ...e, ref: t, "data-node-view-wrapper": "", onDragStart: n, style: {
37185
37185
  whiteSpace: "normal",
37186
37186
  ...e.style
37187
37187
  } })
@@ -37506,7 +37506,7 @@ const g_ = /^\s*>\s$/, v_ = _t.create({
37506
37506
  return !1;
37507
37507
  const { tr: i, schema: s } = e.state, o = s.text(n.replace(/\r\n?/g, `
37508
37508
  `));
37509
- return i.replaceSelectionWith(this.type.create({ language: a }, o)), i.selection.$from.parent.type !== this.type && i.setSelection(me.near(i.doc.resolve(Math.max(0, i.selection.from - 2)))), i.setMeta("paste", !0), e.dispatch(i), !0;
37509
+ return i.replaceSelectionWith(this.type.create({ language: a }, o)), i.selection.$from.parent.type !== this.type && i.setSelection(be.near(i.doc.resolve(Math.max(0, i.selection.from - 2)))), i.setMeta("paste", !0), e.dispatch(i), !0;
37510
37510
  }
37511
37511
  }
37512
37512
  })
@@ -37773,7 +37773,7 @@ function ca(e, t) {
37773
37773
  const n = e == "vert" ? t > 0 ? "down" : "up" : t > 0 ? "right" : "left";
37774
37774
  return function(r, l, a) {
37775
37775
  let i = r.selection, s = t > 0 ? i.$to : i.$from, o = i.empty;
37776
- if (i instanceof me) {
37776
+ if (i instanceof be) {
37777
37777
  if (!a.endOfTextblock(n) || s.depth == 0)
37778
37778
  return !1;
37779
37779
  o = !1, s = r.doc.resolve(t > 0 ? s.after() : s.before());
@@ -37801,7 +37801,7 @@ function z_(e, t) {
37801
37801
  for (let i = r.length - 1; i >= 0; i--)
37802
37802
  l = K.from(r[i].createAndFill(null, l));
37803
37803
  let a = e.state.tr.replace(n.pos, n.pos, new te(l, 0, 0));
37804
- return a.setSelection(me.near(a.doc.resolve(n.pos + 1))), e.dispatch(a), !1;
37804
+ return a.setSelection(be.near(a.doc.resolve(n.pos + 1))), e.dispatch(a), !1;
37805
37805
  }
37806
37806
  function V_(e) {
37807
37807
  if (!(e.selection instanceof Ve))
@@ -38164,15 +38164,15 @@ class Sn {
38164
38164
  }
38165
38165
  const K_ = 20;
38166
38166
  function Q_(e, t, n, r) {
38167
- let l = n.getMeta(nr), a;
38167
+ let l = n.getMeta(rr), a;
38168
38168
  if (l)
38169
38169
  return l.historyState;
38170
38170
  n.getMeta(Z_) && (e = new Sn(e.done, e.undone, null, 0, -1));
38171
38171
  let i = n.getMeta("appendedTransaction");
38172
38172
  if (n.steps.length == 0)
38173
38173
  return e;
38174
- if (i && i.getMeta(nr))
38175
- return i.getMeta(nr).redo ? new Sn(e.done.addTransform(n, void 0, r, Ta(t)), e.undone, rf(n.mapping.maps), e.prevTime, e.prevComposition) : new Sn(e.done, e.undone.addTransform(n, void 0, r, Ta(t)), null, e.prevTime, e.prevComposition);
38174
+ if (i && i.getMeta(rr))
38175
+ return i.getMeta(rr).redo ? new Sn(e.done.addTransform(n, void 0, r, Ta(t)), e.undone, rf(n.mapping.maps), e.prevTime, e.prevComposition) : new Sn(e.done, e.undone.addTransform(n, void 0, r, Ta(t)), null, e.prevTime, e.prevComposition);
38176
38176
  if (n.getMeta("addToHistory") !== !1 && !(i && i.getMeta("addToHistory") === !1)) {
38177
38177
  let s = n.getMeta("composition"), o = e.prevTime == 0 || !i && e.prevComposition != s && (e.prevTime < (n.time || 0) - r.newGroupDelay || !X_(n, e.prevRanges)), u = i ? hs(e.prevRanges, n.mapping) : rf(n.mapping.maps);
38178
38178
  return new Sn(e.done.addTransform(n, o ? t.selection.getBookmark() : void 0, r, Ta(t)), Yt.empty, u, n.time, s ?? e.prevComposition);
@@ -38206,11 +38206,11 @@ function hs(e, t) {
38206
38206
  return n;
38207
38207
  }
38208
38208
  function J_(e, t, n) {
38209
- let r = Ta(t), l = nr.get(t).spec.config, a = (n ? e.undone : e.done).popEvent(t, r);
38209
+ let r = Ta(t), l = rr.get(t).spec.config, a = (n ? e.undone : e.done).popEvent(t, r);
38210
38210
  if (!a)
38211
38211
  return null;
38212
38212
  let i = a.selection.resolve(a.transform.doc), s = (n ? e.done : e.undone).addTransform(a.transform, t.selection.getBookmark(), l, r), o = new Sn(n ? s : a.remaining, n ? a.remaining : s, null, 0, -1);
38213
- return a.transform.setSelection(i).setMeta(nr, { redo: n, historyState: o });
38213
+ return a.transform.setSelection(i).setMeta(rr, { redo: n, historyState: o });
38214
38214
  }
38215
38215
  let ps = !1, lf = null;
38216
38216
  function Ta(e) {
@@ -38225,13 +38225,13 @@ function Ta(e) {
38225
38225
  }
38226
38226
  return ps;
38227
38227
  }
38228
- const nr = new Gt("history"), Z_ = new Gt("closeHistory");
38228
+ const rr = new Gt("history"), Z_ = new Gt("closeHistory");
38229
38229
  function eI(e = {}) {
38230
38230
  return e = {
38231
38231
  depth: e.depth || 100,
38232
38232
  newGroupDelay: e.newGroupDelay || 500
38233
38233
  }, new Ct({
38234
- key: nr,
38234
+ key: rr,
38235
38235
  state: {
38236
38236
  init() {
38237
38237
  return new Sn(Yt.empty, Yt.empty, null, 0, -1);
@@ -38253,7 +38253,7 @@ function eI(e = {}) {
38253
38253
  }
38254
38254
  function tb(e, t) {
38255
38255
  return (n, r) => {
38256
- let l = nr.getState(n);
38256
+ let l = rr.getState(n);
38257
38257
  if (!l || (e ? l.undone : l.done).eventCount == 0)
38258
38258
  return !1;
38259
38259
  if (r) {
@@ -38324,10 +38324,10 @@ const nb = tb(!1, !0), rb = tb(!0, !0), tI = pt.create({
38324
38324
  if (s) {
38325
38325
  const { $to: u } = i.selection, c = u.end();
38326
38326
  if (u.nodeAfter)
38327
- u.nodeAfter.isTextblock ? i.setSelection(me.create(i.doc, u.pos + 1)) : u.nodeAfter.isBlock ? i.setSelection(de.create(i.doc, u.pos)) : i.setSelection(me.create(i.doc, u.pos));
38327
+ u.nodeAfter.isTextblock ? i.setSelection(be.create(i.doc, u.pos + 1)) : u.nodeAfter.isBlock ? i.setSelection(de.create(i.doc, u.pos)) : i.setSelection(be.create(i.doc, u.pos));
38328
38328
  else {
38329
38329
  const d = (o = u.parent.type.contentMatch.defaultType) === null || o === void 0 ? void 0 : o.create();
38330
- d && (i.insert(c, d), i.setSelection(me.create(i.doc, c + 1)));
38330
+ d && (i.insert(c, d), i.setSelection(be.create(i.doc, c + 1)));
38331
38331
  }
38332
38332
  i.scrollIntoView();
38333
38333
  }
@@ -38667,12 +38667,12 @@ const yI = ({ expanded: e, onToggle: t }) => /* @__PURE__ */ j(
38667
38667
  /* @__PURE__ */ y("span", { className: "rte-richtext-toggle-label", children: e ? "收起" : "展开" })
38668
38668
  ]
38669
38669
  }
38670
- ), lb = ye.memo(
38670
+ ), lb = Ee.memo(
38671
38671
  ({ node: e, value: t, onChange: n, disabled: r, error: l, nodeDefaults: a, onExpandChange: i }) => {
38672
38672
  const s = typeof e.minHeight == "number" ? e.minHeight : a?.richtext?.minHeight ?? 40, o = typeof e.maxHeight == "number" ? e.maxHeight : a?.richtext?.maxHeight ?? 160, u = Math.max(o, s), c = e.expandable !== !1, [d, f] = ee(!1), h = ne(n), m = ne(e.key);
38673
- ve(() => {
38673
+ ye(() => {
38674
38674
  h.current = n;
38675
- }, [n]), ve(() => {
38675
+ }, [n]), ye(() => {
38676
38676
  m.current = e.key;
38677
38677
  }, [e.key]);
38678
38678
  const b = h_({
@@ -38691,11 +38691,11 @@ const yI = ({ expanded: e, onToggle: t }) => /* @__PURE__ */ j(
38691
38691
  }
38692
38692
  }
38693
38693
  });
38694
- ve(() => {
38694
+ ye(() => {
38695
38695
  if (!b) return;
38696
38696
  const k = b.getHTML(), M = t ?? "";
38697
38697
  k !== M && (b.isFocused || b.commands.setContent(M, !1));
38698
- }, [t, b]), ve(() => {
38698
+ }, [t, b]), ye(() => {
38699
38699
  b && b.setEditable(!r);
38700
38700
  }, [r, b]);
38701
38701
  const g = V(() => {
@@ -38986,7 +38986,7 @@ const EI = (e) => {
38986
38986
  }
38987
38987
  );
38988
38988
  }
38989
- }, ab = ye.memo(EI);
38989
+ }, ab = Ee.memo(EI);
38990
38990
  ab.displayName = "NodeRenderer";
38991
38991
  const TI = (e) => typeof e == "string" || Array.isArray(e) && e.every((t) => typeof t == "string"), xI = (e) => {
38992
38992
  const t = /* @__PURE__ */ new Map();
@@ -38998,7 +38998,7 @@ const TI = (e) => typeof e == "string" || Array.isArray(e) && e.every((t) => typ
38998
38998
  return t;
38999
38999
  };
39000
39000
  function SI(e, t, n, r, l, a) {
39001
- ve(() => {
39001
+ ye(() => {
39002
39002
  if (!e) return;
39003
39003
  const i = xI(r);
39004
39004
  n((s) => {
@@ -39431,7 +39431,7 @@ const FI = {
39431
39431
  adjustX: 1,
39432
39432
  adjustY: 0,
39433
39433
  shiftY: !0
39434
- }, ob = ye.memo(({ options: e, onSelect: t, disabled: n, currentAgent: r }) => {
39434
+ }, ob = Ee.memo(({ options: e, onSelect: t, disabled: n, currentAgent: r }) => {
39435
39435
  const l = e.filter((a) => a.isShowNew !== 1).map((a) => ({
39436
39436
  key: a.key,
39437
39437
  label: /* @__PURE__ */ j("div", { style: { display: "flex", alignItems: "center", gap: "4px" }, children: [
@@ -39476,7 +39476,7 @@ const UI = 10 * 1024 * 1024, zI = 50 * 1024 * 1024, VI = "图片大小不能超
39476
39476
  a.push(o), i += o.size;
39477
39477
  }
39478
39478
  return { accepted: a, imageOversize: n, totalExceeded: s };
39479
- }, ub = ye.memo(({ files: e, onChange: t, disabled: n }) => {
39479
+ }, ub = Ee.memo(({ files: e, onChange: t, disabled: n }) => {
39480
39480
  const r = ne(null), l = V(
39481
39481
  (i) => {
39482
39482
  const s = Array.from(i.target.files ?? []);
@@ -39507,7 +39507,7 @@ const UI = 10 * 1024 * 1024, zI = 50 * 1024 * 1024, VI = "图片大小不能超
39507
39507
  ] });
39508
39508
  });
39509
39509
  ub.displayName = "UploadButton";
39510
- const cb = ye.memo(({ onClick: e, loading: t, disabled: n }) => /* @__PURE__ */ y(
39510
+ const cb = Ee.memo(({ onClick: e, loading: t, disabled: n }) => /* @__PURE__ */ y(
39511
39511
  "button",
39512
39512
  {
39513
39513
  type: "button",
@@ -39519,7 +39519,7 @@ const cb = ye.memo(({ onClick: e, loading: t, disabled: n }) => /* @__PURE__ */
39519
39519
  }
39520
39520
  ));
39521
39521
  cb.displayName = "SendButton";
39522
- const db = ye.memo(
39522
+ const db = Ee.memo(
39523
39523
  ({ currentAgent: e }) => {
39524
39524
  const t = e?.points;
39525
39525
  return t == null ? null : /* @__PURE__ */ j("div", { className: "rte-points-badge", style: { position: "relative" }, children: [
@@ -39539,7 +39539,7 @@ const db = ye.memo(
39539
39539
  }
39540
39540
  );
39541
39541
  db.displayName = "PointsBadge";
39542
- const fb = ye.memo(
39542
+ const fb = Ee.memo(
39543
39543
  ({
39544
39544
  isProcessing: e,
39545
39545
  loading: t,
@@ -39640,7 +39640,7 @@ const YI = (e) => e < 1024 ? `${e}B` : e < 1024 * 1024 ? `${Math.round(e / 1024)
39640
39640
  }
39641
39641
  )
39642
39642
  ] });
39643
- }, hb = ye.memo(({ files: e, onChange: t }) => {
39643
+ }, hb = Ee.memo(({ files: e, onChange: t }) => {
39644
39644
  const n = ne(null), [r, l] = ee({
39645
39645
  showLeft: !1,
39646
39646
  showRight: !1
@@ -39727,7 +39727,7 @@ const ff = 9999, TO = (e) => {
39727
39727
  lockStructure: Q = !0,
39728
39728
  collapsed: T = !1,
39729
39729
  onCollapsedChange: re,
39730
- collapseTransitionMs: ie = 260,
39730
+ collapseTransitionMs: se = 260,
39731
39731
  nodeDefaults: R,
39732
39732
  // 展开态真实高度变化回调:消费端据此算对话列表底部留白,避免最后一条消息被输入框遮挡。
39733
39733
  onExpandedHeightChange: he,
@@ -39744,29 +39744,29 @@ const ff = 9999, TO = (e) => {
39744
39744
  scrollContainerRef: _e,
39745
39745
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
39746
39746
  autoCollapseOnScroll: De
39747
- } = e, [be, ze] = ee({}), [$e, Wt] = ee({}), [ut, Bt] = ee(u ?? []), [Te, Le] = ee({}), [vt, ct] = ee(FI), [yt, dr] = ee(() => /* @__PURE__ */ new Set()), [fr, an] = ee({}), [mn, hr] = ee(null), W = V(
39747
+ } = e, [ge, ze] = ee({}), [$e, Wt] = ee({}), [ut, Bt] = ee(u ?? []), [Te, Le] = ee({}), [vt, ct] = ee(FI), [yt, fr] = ee(() => /* @__PURE__ */ new Set()), [hr, an] = ee({}), [mn, pr] = ee(null), W = V(
39748
39748
  () => ue?.() ?? mn ?? document.body,
39749
39749
  [ue, mn]
39750
- ), [Z, pe] = ee(null), Ne = V((Y, se) => {
39751
- pe(se ? Y : null);
39750
+ ), [Z, pe] = ee(null), Ne = V((Y, ie) => {
39751
+ pe(ie ? Y : null);
39752
39752
  }, []), Re = ne(null), [Ot, sn] = ee(58), [rt, bn] = ee(58), [zn, Et] = ee(!1), [Kt, Ft] = ee(!1), lu = ne(0), au = ne(T), [Yl, iu] = ee(!1);
39753
- au.current !== T && (au.current = T, lu.current = (typeof performance < "u" ? performance.now() : Date.now()) + ie, iu(!0)), ve(() => {
39753
+ au.current !== T && (au.current = T, lu.current = (typeof performance < "u" ? performance.now() : Date.now()) + se, iu(!0)), ye(() => {
39754
39754
  if (!Yl) return;
39755
- const Y = setTimeout(() => iu(!1), ie);
39755
+ const Y = setTimeout(() => iu(!1), se);
39756
39756
  return () => clearTimeout(Y);
39757
- }, [Yl, T, ie]);
39758
- const [pr, su] = ee(""), mi = ne(null), bi = ne(!1);
39759
- ve(() => {
39757
+ }, [Yl, T, se]);
39758
+ const [Vn, su] = ee(""), mi = ne(null), bi = ne(!1);
39759
+ ye(() => {
39760
39760
  if (!u || u.length === ut.length && u.every((oe, fe) => {
39761
39761
  const ce = ut[fe];
39762
39762
  return ce && oe.name === ce.name && oe.size === ce.size && oe.lastModified === ce.lastModified;
39763
39763
  })) return;
39764
- const se = 50 * 1024 * 1024;
39765
- if (u.reduce((oe, fe) => oe + fe.size, 0) > se) {
39764
+ const ie = 50 * 1024 * 1024;
39765
+ if (u.reduce((oe, fe) => oe + fe.size, 0) > ie) {
39766
39766
  const oe = [];
39767
39767
  let fe = 0;
39768
39768
  for (const ce of u) {
39769
- if (fe + ce.size > se) break;
39769
+ if (fe + ce.size > ie) break;
39770
39770
  oe.push(ce), fe += ce.size;
39771
39771
  }
39772
39772
  Bt(oe);
@@ -39777,43 +39777,43 @@ const ff = 9999, TO = (e) => {
39777
39777
  () => BI(t, vt, yt),
39778
39778
  [t, vt, yt]
39779
39779
  ), gi = ne(null), ou = ne(!1);
39780
- ve(() => {
39781
- const Y = t.find((se) => se.type === "tag")?.text ?? null;
39780
+ ye(() => {
39781
+ const Y = t.find((ie) => ie.type === "tag")?.text ?? null;
39782
39782
  if (!ou.current) {
39783
39783
  ou.current = !0, gi.current = Y;
39784
39784
  return;
39785
39785
  }
39786
- gi.current !== Y && (gi.current = Y, Bt((se) => se.length === 0 ? se : []));
39786
+ gi.current !== Y && (gi.current = Y, Bt((ie) => ie.length === 0 ? ie : []));
39787
39787
  }, [t]);
39788
39788
  const mb = Ke(() => {
39789
- const Y = t.find((se) => se.type === "tag")?.text;
39789
+ const Y = t.find((ie) => ie.type === "tag")?.text;
39790
39790
  if (!(!Y || !F))
39791
- return F.find((se) => se.label === Y);
39791
+ return F.find((ie) => ie.label === Y);
39792
39792
  }, [t, F]);
39793
- SI(i, be, ze, kt, $e, Wt);
39794
- const { errors: bb, validate: uu, clearError: cu } = AI(kt), { excludedKeys: Wr, hideSeparator: gb } = _I(kt, be, $e), { analyzeReport: jl, analyzeMarkdown: du, analyzeMarkdownName: fu, resolveReportName: Gl } = II({
39793
+ SI(i, ge, ze, kt, $e, Wt);
39794
+ const { errors: bb, validate: uu, clearError: cu } = AI(kt), { excludedKeys: Wr, hideSeparator: gb } = _I(kt, ge, $e), { analyzeReport: jl, analyzeMarkdown: du, analyzeMarkdownName: fu, resolveReportName: Gl } = II({
39795
39795
  reportAnalyze: M,
39796
39796
  markdownAnalyze: P,
39797
39797
  markdownNameAnalyze: D,
39798
39798
  reportNameResolve: _
39799
- }), hu = (Y) => typeof Y != "string" ? !Y : Y.replace(/<[^>]*>/g, "").replace(/&nbsp;/gi, "").replace(/\s/g, "").replace(/[​‌‍]/g, "").trim() === "", vi = V((Y, se) => {
39800
- ze((oe) => ({ ...oe, [Y]: se })), cu(Y);
39801
- const Ee = /^(.+)__module_\d+$/.exec(Y);
39802
- if (Ee && hu(se)) {
39803
- const oe = Ee[1];
39799
+ }), hu = (Y) => typeof Y != "string" ? !Y : Y.replace(/<[^>]*>/g, "").replace(/&nbsp;/gi, "").replace(/\s/g, "").replace(/[​‌‍]/g, "").trim() === "", vi = V((Y, ie) => {
39800
+ ze((oe) => ({ ...oe, [Y]: ie })), cu(Y);
39801
+ const me = /^(.+)__module_\d+$/.exec(Y);
39802
+ if (me && hu(ie)) {
39803
+ const oe = me[1];
39804
39804
  kt.find(
39805
39805
  (ce) => ce.key === oe && ce.type === "markdown-module"
39806
39806
  ) && ze((ce) => {
39807
- const ge = { ...ce, [Y]: se };
39808
- return Object.keys(ge).filter((Me) => Me.startsWith(`${oe}__module_`)).every((Me) => hu(ge[Me])) && (ct((Me) => {
39807
+ const ve = { ...ce, [Y]: ie };
39808
+ return Object.keys(ve).filter((Me) => Me.startsWith(`${oe}__module_`)).every((Me) => hu(ve[Me])) && (ct((Me) => {
39809
39809
  if (!Me.markdownModules[oe]) return Me;
39810
39810
  const He = { ...Me.markdownModules };
39811
39811
  return delete He[oe], { ...Me, markdownModules: He };
39812
- }), Object.keys(ge).filter((Me) => Me.startsWith(`${oe}__module_`)).forEach((Me) => delete ge[Me]), ge[oe] = ""), ge;
39812
+ }), Object.keys(ve).filter((Me) => Me.startsWith(`${oe}__module_`)).forEach((Me) => delete ve[Me]), ve[oe] = ""), ve;
39813
39813
  });
39814
39814
  return;
39815
39815
  }
39816
- if (typeof se == "string" && se.trim() === "") {
39816
+ if (typeof ie == "string" && ie.trim() === "") {
39817
39817
  const oe = kt.find((fe) => fe.key === Y);
39818
39818
  oe?.type === "report-url" ? (ct((fe) => {
39819
39819
  if (!fe.reportModules[Y]) return fe;
@@ -39830,100 +39830,100 @@ const ff = 9999, TO = (e) => {
39830
39830
  });
39831
39831
  }
39832
39832
  }, [cu, kt]), vb = V(
39833
- (Y, se) => {
39834
- Wt((Ee) => ({ ...Ee, [Y]: se }));
39833
+ (Y, ie) => {
39834
+ Wt((me) => ({ ...me, [Y]: ie }));
39835
39835
  },
39836
39836
  []
39837
39837
  ), yb = V(
39838
- (Y, se) => Le((Ee) => ({ ...Ee, [Y]: se })),
39838
+ (Y, ie) => Le((me) => ({ ...me, [Y]: ie })),
39839
39839
  []
39840
39840
  ), Eb = V((Y) => {
39841
- an((se) => {
39842
- if (!(Y in se)) return se;
39843
- const Ee = Y.match(/^(.+)_(\d+)$/);
39844
- if (!Ee) {
39845
- const Be = { ...se };
39841
+ an((ie) => {
39842
+ if (!(Y in ie)) return ie;
39843
+ const me = Y.match(/^(.+)_(\d+)$/);
39844
+ if (!me) {
39845
+ const Be = { ...ie };
39846
39846
  return delete Be[Y], Be;
39847
39847
  }
39848
- const [, oe, fe] = Ee, ce = parseInt(fe, 10), ge = {};
39849
- for (const [Be, Me] of Object.entries(se)) {
39848
+ const [, oe, fe] = me, ce = parseInt(fe, 10), ve = {};
39849
+ for (const [Be, Me] of Object.entries(ie)) {
39850
39850
  if (Be === Y) continue;
39851
39851
  const He = Be.match(/^(.+)_(\d+)$/);
39852
39852
  if (He && He[1] === oe) {
39853
39853
  const dt = parseInt(He[2], 10);
39854
- dt > ce ? ge[`${oe}_${dt - 1}`] = Me : ge[Be] = Me;
39854
+ dt > ce ? ve[`${oe}_${dt - 1}`] = Me : ve[Be] = Me;
39855
39855
  } else
39856
- ge[Be] = Me;
39856
+ ve[Be] = Me;
39857
39857
  }
39858
- return ge;
39858
+ return ve;
39859
39859
  });
39860
- }, []), Tb = V((Y, se) => {
39861
- an((Ee) => {
39860
+ }, []), Tb = V((Y, ie) => {
39861
+ an((me) => {
39862
39862
  const oe = `${Y}_`, fe = [];
39863
- for (const ge of Object.keys(Ee)) {
39864
- if (!ge.startsWith(oe)) continue;
39865
- const Be = ge.slice(oe.length);
39866
- /^\d+$/.test(Be) && fe.push([Number(Be), Ee[ge]]);
39867
- }
39868
- if (fe.length === 0) return Ee;
39869
- const ce = { ...Ee };
39870
- for (const [ge] of fe) delete ce[`${Y}_${ge}`];
39871
- for (const [ge, Be] of fe) {
39872
- if (ge === se) continue;
39873
- const Me = ge > se ? ge - 1 : ge;
39863
+ for (const ve of Object.keys(me)) {
39864
+ if (!ve.startsWith(oe)) continue;
39865
+ const Be = ve.slice(oe.length);
39866
+ /^\d+$/.test(Be) && fe.push([Number(Be), me[ve]]);
39867
+ }
39868
+ if (fe.length === 0) return me;
39869
+ const ce = { ...me };
39870
+ for (const [ve] of fe) delete ce[`${Y}_${ve}`];
39871
+ for (const [ve, Be] of fe) {
39872
+ if (ve === ie) continue;
39873
+ const Me = ve > ie ? ve - 1 : ve;
39874
39874
  ce[`${Y}_${Me}`] = Be;
39875
39875
  }
39876
39876
  return ce;
39877
39877
  });
39878
39878
  }, []), xb = V(
39879
- async (Y, se, Ee) => {
39880
- const oe = await Gl(Y, se, Ee);
39879
+ async (Y, ie, me) => {
39880
+ const oe = await Gl(Y, ie, me);
39881
39881
  return oe.status === "success" && an((fe) => ({ ...fe, [Y]: oe.name })), oe;
39882
39882
  },
39883
39883
  [Gl]
39884
39884
  ), Sb = V(
39885
- (Y, se) => {
39886
- jl(Y, se).then((Ee) => {
39887
- Ee.status === "success" && ct((oe) => ({
39885
+ (Y, ie) => {
39886
+ jl(Y, ie).then((me) => {
39887
+ me.status === "success" && ct((oe) => ({
39888
39888
  ...oe,
39889
- reportModules: { ...oe.reportModules, [Y]: Ee.modules }
39889
+ reportModules: { ...oe.reportModules, [Y]: me.modules }
39890
39890
  }));
39891
39891
  });
39892
39892
  },
39893
39893
  [jl]
39894
39894
  ), Cb = V(
39895
- async (Y, se) => {
39896
- Gl(Y, se, "report-url").then((oe) => {
39895
+ async (Y, ie) => {
39896
+ Gl(Y, ie, "report-url").then((oe) => {
39897
39897
  oe.status === "success" && an((fe) => ({ ...fe, [Y]: oe.name }));
39898
39898
  });
39899
- const Ee = await jl(Y, se);
39900
- Ee.status === "success" ? (ct((oe) => ({
39899
+ const me = await jl(Y, ie);
39900
+ me.status === "success" ? (ct((oe) => ({
39901
39901
  ...oe,
39902
- reportModules: { ...oe.reportModules, [Y]: Ee.modules }
39902
+ reportModules: { ...oe.reportModules, [Y]: me.modules }
39903
39903
  })), ze((oe) => {
39904
39904
  const fe = { ...oe };
39905
- return Ee.modules.forEach((ce, ge) => {
39906
- fe[`${Y}__module_${ge}`] = ce.content;
39905
+ return me.modules.forEach((ce, ve) => {
39906
+ fe[`${Y}__module_${ve}`] = ce.content;
39907
39907
  }), fe;
39908
- })) : Ee.status === "failed" && (vi(Y, ""), ze((oe) => {
39908
+ })) : me.status === "failed" && (vi(Y, ""), ze((oe) => {
39909
39909
  let fe = !1;
39910
39910
  const ce = { ...oe };
39911
- for (const ge of Object.keys(ce))
39912
- ge.startsWith(`${Y}__module_`) && (delete ce[ge], fe = !0);
39911
+ for (const ve of Object.keys(ce))
39912
+ ve.startsWith(`${Y}__module_`) && (delete ce[ve], fe = !0);
39913
39913
  return fe ? ce : oe;
39914
39914
  }));
39915
39915
  },
39916
39916
  [jl, Gl, vi]
39917
39917
  ), Kl = V(
39918
- async (Y, se, Ee) => {
39918
+ async (Y, ie, me) => {
39919
39919
  const fe = Date.now();
39920
- dr((ce) => {
39921
- const ge = new Set(ce);
39922
- return ge.add(Y), ge;
39920
+ fr((ce) => {
39921
+ const ve = new Set(ce);
39922
+ return ve.add(Y), ve;
39923
39923
  });
39924
39924
  try {
39925
- const ce = await Ee(Y, se), ge = Date.now() - fe;
39926
- ge < 500 && await new Promise((Be) => setTimeout(Be, 500 - ge)), ce && (ct((Be) => ({
39925
+ const ce = await me(Y, ie), ve = Date.now() - fe;
39926
+ ve < 500 && await new Promise((Be) => setTimeout(Be, 500 - ve)), ce && (ct((Be) => ({
39927
39927
  ...Be,
39928
39928
  markdownModules: { ...Be.markdownModules, [Y]: ce.modules }
39929
39929
  })), ze((Be) => {
@@ -39933,24 +39933,24 @@ const ff = 9999, TO = (e) => {
39933
39933
  }), Me;
39934
39934
  }));
39935
39935
  } finally {
39936
- dr((ce) => {
39936
+ fr((ce) => {
39937
39937
  if (!ce.has(Y)) return ce;
39938
- const ge = new Set(ce);
39939
- return ge.delete(Y), ge;
39938
+ const ve = new Set(ce);
39939
+ return ve.delete(Y), ve;
39940
39940
  });
39941
39941
  }
39942
39942
  },
39943
39943
  []
39944
39944
  ), kb = V(
39945
- (Y, se) => Kl(Y, se, du),
39945
+ (Y, ie) => Kl(Y, ie, du),
39946
39946
  [Kl, du]
39947
39947
  ), Ab = V(
39948
- (Y, se) => Kl(Y, se, fu),
39948
+ (Y, ie) => Kl(Y, ie, fu),
39949
39949
  [Kl, fu]
39950
39950
  );
39951
- ve(() => {
39951
+ ye(() => {
39952
39952
  s?.($e);
39953
- }, [$e, s]), ve(() => {
39953
+ }, [$e, s]), ye(() => {
39954
39954
  if (bi.current) {
39955
39955
  bi.current = !1;
39956
39956
  return;
@@ -39960,25 +39960,25 @@ const ff = 9999, TO = (e) => {
39960
39960
  const yi = V(async () => {
39961
39961
  if (r || l) return;
39962
39962
  if (t.length === 0) {
39963
- const oe = pr.trim();
39963
+ const oe = Vn.trim();
39964
39964
  if (!oe) return;
39965
39965
  n(oe, oe), su("");
39966
39966
  return;
39967
39967
  }
39968
- if (!uu(be, $e, Wr)) return;
39969
- const { formData: Y, fullPrompt: se, hasContent: Ee } = await PI({
39968
+ if (!uu(ge, $e, Wr)) return;
39969
+ const { formData: Y, fullPrompt: ie, hasContent: me } = await PI({
39970
39970
  config: kt,
39971
- values: be,
39971
+ values: ge,
39972
39972
  files: $e,
39973
39973
  footerFiles: ut,
39974
39974
  markdownModules: vt.markdownModules
39975
39975
  });
39976
- Ee && n(Y, se);
39976
+ me && n(Y, ie);
39977
39977
  }, [
39978
39978
  t.length,
39979
- pr,
39979
+ Vn,
39980
39980
  kt,
39981
- be,
39981
+ ge,
39982
39982
  $e,
39983
39983
  ut,
39984
39984
  vt.markdownModules,
@@ -39992,11 +39992,11 @@ const ff = 9999, TO = (e) => {
39992
39992
  Y.key === "Enter" && (Y.nativeEvent.isComposing || Y.keyCode === 229 || Y.shiftKey || (Y.preventDefault(), yi()));
39993
39993
  },
39994
39994
  [yi]
39995
- ), wb = Ke(() => t.length === 0 ? pr.trim().length > 0 : kI(kt, be, $e, Wr), [t.length, pr, kt, be, $e, Wr]);
39995
+ ), wb = Ke(() => t.length === 0 ? Vn.trim().length > 0 : kI(kt, ge, $e, Wr), [t.length, Vn, kt, ge, $e, Wr]);
39996
39996
  Xe(() => {
39997
39997
  const Y = mi.current;
39998
39998
  Y && (Y.style.height = "auto", Y.style.height = `${Y.scrollHeight}px`);
39999
- }, [pr]);
39999
+ }, [Vn]);
40000
40000
  const _b = {
40001
40001
  width: c,
40002
40002
  background: d,
@@ -40021,7 +40021,7 @@ const ff = 9999, TO = (e) => {
40021
40021
  // 稳定展开态:仅内容「真超出可视区」(bodyOverflowing) 才 auto;放得下时 hidden →
40022
40022
  // editor 不是滚动容器,触控板「使劲滚」不会原地弹性回弹(V1 parity,见 bodyOverflowing 测量)。
40023
40023
  overflow: T || Yl ? "hidden" : zn ? "auto" : "hidden",
40024
- transition: Kt ? "none" : `max-height ${ie}ms cubic-bezier(0.4, 0, 0.2, 1)`,
40024
+ transition: Kt ? "none" : `max-height ${se}ms cubic-bezier(0.4, 0, 0.2, 1)`,
40025
40025
  willChange: "max-height"
40026
40026
  }, bu = V(() => {
40027
40027
  T && Ae && re?.(!1), mi.current?.focus();
@@ -40038,40 +40038,42 @@ const ff = 9999, TO = (e) => {
40038
40038
  Math.ceil(Y.scrollHeight || 0),
40039
40039
  Math.ceil(fe || 0)
40040
40040
  );
40041
- ce > 0 && bn((ge) => ge === ce ? ge : ce);
40041
+ ce > 0 && bn((ve) => ve === ce ? ve : ce);
40042
40042
  }
40043
40043
  try {
40044
- const Ee = Y.getBoundingClientRect(), oe = Y.querySelector(".rte-config-fade") ?? Y, fe = document.createRange();
40044
+ const me = Y.getBoundingClientRect(), oe = Y.querySelector(".rte-config-fade") ?? Y, fe = document.createRange();
40045
40045
  fe.selectNodeContents(oe);
40046
40046
  const ce = Array.from(fe.getClientRects());
40047
40047
  if (ce.length > 0) {
40048
- const ge = Math.min(...ce.map((dt) => dt.top)), Be = 2;
40048
+ const ve = Math.min(...ce.map((dt) => dt.top)), Be = 2;
40049
40049
  let Me = 0;
40050
40050
  for (const dt of ce)
40051
- Math.abs(dt.top - ge) <= Be && (Me = Math.max(Me, dt.bottom));
40052
- const He = Me > 0 ? Math.ceil(Me - Ee.top) : 0;
40051
+ Math.abs(dt.top - ve) <= Be && (Me = Math.max(Me, dt.bottom));
40052
+ const He = Me > 0 ? Math.ceil(Me - me.top) : 0;
40053
40053
  He > 0 && sn((dt) => dt === He ? dt : He);
40054
40054
  }
40055
40055
  } catch {
40056
40056
  }
40057
- const se = Y.scrollHeight > Y.clientHeight + 1;
40058
- Et((Ee) => Ee === se ? Ee : se);
40057
+ const ie = Y.scrollHeight > Y.clientHeight + 1;
40058
+ Et((me) => me === ie ? me : ie);
40059
40059
  }, [T]), mr = Ke(
40060
40060
  () => kt.filter((Y) => Y.key && Y.type !== "report-module" && Y.type !== "markdown-module").map((Y) => `${Y.type}:${Y.key}`).join("|"),
40061
40061
  [kt]
40062
40062
  ), gu = ne(mr);
40063
- gu.current !== mr && (gu.current = mr, T || (bn(ff), Ft(!0))), ve(() => {
40063
+ gu.current !== mr && (gu.current = mr, T || (bn(ff), Ft(!0))), ye(() => {
40064
40064
  if (!Kt) return;
40065
- const Y = setTimeout(() => Ft(!1), ie);
40065
+ const Y = setTimeout(() => Ft(!1), se);
40066
40066
  return () => clearTimeout(Y);
40067
- }, [Kt, mr, ie]), Xe(() => {
40067
+ }, [Kt, mr, se]), Xe(() => {
40068
40068
  const Y = Re.current;
40069
40069
  if (!Y || (Ei(), typeof ResizeObserver > "u")) return;
40070
- const se = new ResizeObserver(() => Ei());
40071
- return se.observe(Y), () => se.disconnect();
40072
- }, [Ei, kt, $e, ut.length, fr, T, mr]);
40070
+ const ie = new ResizeObserver(() => Ei());
40071
+ ie.observe(Y);
40072
+ const me = Y.querySelector(".rte-default-textarea, .rte-config-fade");
40073
+ return me && ie.observe(me), () => ie.disconnect();
40074
+ }, [Ei, kt, $e, ut.length, hr, T, mr, Vn]);
40073
40075
  const vu = ne(-1);
40074
- ve(() => {
40076
+ ye(() => {
40075
40077
  T || rt <= 0 || rt >= ff || vu.current !== rt && (vu.current = rt, he?.(rt));
40076
40078
  }, [rt, T, he]);
40077
40079
  const yu = Ke(
@@ -40139,17 +40141,17 @@ const ff = 9999, TO = (e) => {
40139
40141
  []
40140
40142
  ), Ib = V(
40141
40143
  (Y) => {
40142
- const se = Y.clipboardData?.files;
40143
- if (!se || se.length === 0 || (Y.preventDefault(), t.some((He) => He.type === "tag"))) return;
40144
+ const ie = Y.clipboardData?.files;
40145
+ if (!ie || ie.length === 0 || (Y.preventDefault(), t.some((He) => He.type === "tag"))) return;
40144
40146
  const oe = [];
40145
40147
  let fe = !1;
40146
- for (const He of Array.from(se)) {
40148
+ for (const He of Array.from(ie)) {
40147
40149
  const dt = (He.name || "").split(".").pop()?.toLowerCase() || "";
40148
40150
  yu.has(dt) ? oe.push(He) : fe = !0;
40149
40151
  }
40150
40152
  if (fe && Ir.error("粘贴文件中含不支持的类型,已自动过滤"), oe.length === 0) return;
40151
- const ce = 50 * 1024 * 1024, ge = ut.reduce((He, dt) => He + dt.size, 0), Be = [];
40152
- let Me = ge;
40153
+ const ce = 50 * 1024 * 1024, ve = ut.reduce((He, dt) => He + dt.size, 0), Be = [];
40154
+ let Me = ve;
40153
40155
  for (const He of oe) {
40154
40156
  if (Me + He.size > ce) {
40155
40157
  Ir.error("文件总大小不能超过 50MB");
@@ -40183,7 +40185,7 @@ const ff = 9999, TO = (e) => {
40183
40185
  {
40184
40186
  ref: mi,
40185
40187
  className: "rte-default-textarea",
40186
- value: pr,
40188
+ value: Vn,
40187
40189
  onChange: (Y) => su(Y.target.value),
40188
40190
  onKeyDown: Nb,
40189
40191
  placeholder: a ?? "",
@@ -40199,14 +40201,14 @@ const ff = 9999, TO = (e) => {
40199
40201
  className: `rte-editor${Z ? " rte-richtext-fullscreen-active" : ""}`,
40200
40202
  style: mu,
40201
40203
  onClick: bu,
40202
- children: /* @__PURE__ */ y("div", { className: "rte-config-fade", children: kt.map((Y, se) => {
40204
+ children: /* @__PURE__ */ y("div", { className: "rte-config-fade", children: kt.map((Y, ie) => {
40203
40205
  if (Y.key && Wr.has(Y.key) || gb && Y.exclusionGroup === "separator" || Z && Y.key !== Z) return null;
40204
- const Ee = (Y.type === "report-module" || Y.type === "markdown-module") && Y.key ? `${Y.key}__module_${Y.moduleIndex ?? 0}` : Y.key;
40206
+ const me = (Y.type === "report-module" || Y.type === "markdown-module") && Y.key ? `${Y.key}__module_${Y.moduleIndex ?? 0}` : Y.key;
40205
40207
  return /* @__PURE__ */ y(
40206
40208
  ab,
40207
40209
  {
40208
40210
  node: Y,
40209
- value: Ee ? be[Ee] : void 0,
40211
+ value: me ? ge[me] : void 0,
40210
40212
  files: $e,
40211
40213
  onChange: vi,
40212
40214
  onFileChange: vb,
@@ -40218,7 +40220,7 @@ const ff = 9999, TO = (e) => {
40218
40220
  onReportGoGenerate: x,
40219
40221
  onViewReport: N,
40220
40222
  hideCurrentSessionReport: A,
40221
- reportNames: fr,
40223
+ reportNames: hr,
40222
40224
  onClearReport: Eb,
40223
40225
  onResolveMultiName: xb,
40224
40226
  onAnalyzeMultiReport: Sb,
@@ -40230,11 +40232,11 @@ const ff = 9999, TO = (e) => {
40230
40232
  onMarkdownNameParse: Ab,
40231
40233
  onRichtextExpandChange: Ne,
40232
40234
  disabled: l,
40233
- error: Ee ? bb[Ee] : void 0,
40234
- index: se,
40235
+ error: me ? bb[me] : void 0,
40236
+ index: ie,
40235
40237
  nodeDefaults: R
40236
40238
  },
40237
- Ee ?? `text-${se}`
40239
+ me ?? `text-${ie}`
40238
40240
  );
40239
40241
  }) }, mr)
40240
40242
  }
@@ -40260,7 +40262,7 @@ const ff = 9999, TO = (e) => {
40260
40262
  ]
40261
40263
  }
40262
40264
  ),
40263
- /* @__PURE__ */ y("div", { className: "rte-popup-host", ref: hr })
40265
+ /* @__PURE__ */ y("div", { className: "rte-popup-host", ref: pr })
40264
40266
  ] }) });
40265
40267
  }, hf = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFSSURBVHgB3ZTtccIwDIaVXv83I2SDZgSP0BHMBG0naEZhA2boBGQDswHdQJUOGRxjO0Z8HPDe6eJzJD2W4gjgEYSIn2xwK6EIFHqBGysJpMP3ZB0oRbEtmal1NtIxl4OWWsoxEsvqofJ0rgTNASOYq+7SXKDsuYvAcgkq/PWwBLQWqIfdjeRStaBUc4qzgLi9/BzJNmS/sh6bpvmrTfSFacU3scWy1mQryWdSnXiFE8QVUJINLTuyhWzzz/1OZmTN9hEckqtfUOwIGlGCpVRjE+94JFqpMtTeVzO8/UmPxpZU8Qa7aln8Tb9pfwla4WHWrjPvvbbnTBsX7PmLs83EDAH0BxSw1G31+/1FoDg/vPcXR+wocQS1apj4+P92FfhOoLyuBfYlmPgYnGoCjWADzAkzUyJ430awLmphPaxWQVU22BuuApPkHaanjcXSN3t6/QNjTMSJWDcs1QAAAABJRU5ErkJggg==", QI = [
40266
40268
  { label: "5页", value: 5 },
@@ -40593,7 +40595,7 @@ const eO = ({
40593
40595
  ...i
40594
40596
  }) => {
40595
40597
  const [s, o] = ee(""), [u, c] = ee(0), [d, f] = ee(!1), [h, m] = ee(!1), [b, g] = ee(!1), v = ne(void 0), I = ne(void 0), k = ne(e), M = ne(u), w = ne(h), x = ne(s);
40596
- ve(() => {
40598
+ ye(() => {
40597
40599
  k.current = e, M.current = u, w.current = h, x.current = s;
40598
40600
  });
40599
40601
  const _ = V((L, E) => {
@@ -40625,9 +40627,9 @@ const eO = ({
40625
40627
  }, 2e3);
40626
40628
  });
40627
40629
  }, [N, _]);
40628
- return ve(() => (r && e.length > 0 && !h && A(), () => {
40630
+ return ye(() => (r && e.length > 0 && !h && A(), () => {
40629
40631
  v.current && window.clearTimeout(v.current), I.current && window.clearTimeout(I.current);
40630
- }), [u, h, r, e.length, A]), ve(() => {
40632
+ }), [u, h, r, e.length, A]), ye(() => {
40631
40633
  !d && r && e.length > 0 && !h && A();
40632
40634
  }, [u, d, r, e.length, h, A]), /* @__PURE__ */ j("div", { style: { position: "relative" }, children: [
40633
40635
  /* @__PURE__ */ y(
@@ -40774,16 +40776,16 @@ const tO = ({
40774
40776
  // 其他原生属性
40775
40777
  }) => {
40776
40778
  const [m, b] = ee(""), [g, v] = ee(0), [I, k] = ee(!1), [M, w] = ee(!1), [x, _] = ee(!1), [N, A] = ee(l || ""), P = ne(void 0), D = ne(void 0), F = ne(e), U = ne(g), L = ne(M), E = ne(m), B = ne(null);
40777
- ve(() => {
40779
+ ye(() => {
40778
40780
  F.current = e, U.current = g, L.current = M, E.current = m;
40779
40781
  });
40780
40782
  const $ = V((ue, _e) => {
40781
40783
  let De = 0;
40782
40784
  _(!0);
40783
- const be = () => {
40784
- De < ue.length ? (b(ue.slice(0, De + 1)), De++, D.current = window.setTimeout(be, n)) : (_(!1), _e?.());
40785
+ const ge = () => {
40786
+ De < ue.length ? (b(ue.slice(0, De + 1)), De++, D.current = window.setTimeout(ge, n)) : (_(!1), _e?.());
40785
40787
  };
40786
- be();
40788
+ ge();
40787
40789
  }, [n]), q = V((ue) => {
40788
40790
  let _e = E.current.length;
40789
40791
  const De = () => {
@@ -40806,16 +40808,16 @@ const tO = ({
40806
40808
  }, 2e3);
40807
40809
  });
40808
40810
  }, [q, $]);
40809
- ve(() => (r && e.length > 0 && !M && Q(), () => {
40811
+ ye(() => (r && e.length > 0 && !M && Q(), () => {
40810
40812
  P.current && window.clearTimeout(P.current), D.current && window.clearTimeout(D.current);
40811
- }), [g, M, r, e.length, Q]), ve(() => {
40813
+ }), [g, M, r, e.length, Q]), ye(() => {
40812
40814
  !I && r && e.length > 0 && !M && Q();
40813
40815
  }, [g, I, r, e.length, M, Q]);
40814
40816
  const T = (ue) => {
40815
40817
  w(!0), P.current && window.clearTimeout(P.current), D.current && window.clearTimeout(D.current), k(!1), _(!1), h.onFocus?.(ue);
40816
40818
  }, re = (ue) => {
40817
40819
  w(!1), !l && e.length > 0 && (b(""), v(0)), h.onBlur?.(ue);
40818
- }, ie = (ue) => {
40820
+ }, se = (ue) => {
40819
40821
  const _e = ue.target.value;
40820
40822
  s && _e.length > s || (a ? a(_e) : A(_e), h.onChange?.(ue));
40821
40823
  }, R = () => {
@@ -40831,7 +40833,7 @@ const tO = ({
40831
40833
  {
40832
40834
  ref: B,
40833
40835
  value: a ? l : N,
40834
- onChange: ie,
40836
+ onChange: se,
40835
40837
  onFocus: (ue) => {
40836
40838
  ue.target.style.borderColor = "#1890ff", ue.target.style.boxShadow = "0 0 0 2px rgba(24, 144, 255, 0.2)", T(ue);
40837
40839
  },
@@ -40912,7 +40914,7 @@ const tO = ({
40912
40914
  zIndex: 3
40913
40915
  },
40914
40916
  children: /* @__PURE__ */ y(
40915
- Kn,
40917
+ Qn,
40916
40918
  {
40917
40919
  type: "primary",
40918
40920
  size: "small",
@@ -41267,14 +41269,14 @@ const nO = (e) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mk
41267
41269
  const w = Math.max(...M);
41268
41270
  v.style.height = `${w}px`;
41269
41271
  }, [e, u, n]);
41270
- ve(() => {
41272
+ ye(() => {
41271
41273
  const g = () => {
41272
41274
  const v = f();
41273
41275
  v !== u && c(v);
41274
41276
  };
41275
41277
  if (r)
41276
41278
  return window.addEventListener("resize", g), g(), () => window.removeEventListener("resize", g);
41277
- }, [r, f, u]), ve(() => {
41279
+ }, [r, f, u]), ye(() => {
41278
41280
  const g = setTimeout(() => {
41279
41281
  h();
41280
41282
  }, 100);