bi-components-library 1.3.2-next.52 → 1.3.2-next.54

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,5 +1,5 @@
1
1
  import { jsx as v, jsxs as W, Fragment as ot } from "react/jsx-runtime";
2
- import ye, { useState as J, useRef as te, useMemo as Ue, useCallback as V, useEffect as be, createContext as go, useContext as Ff, useLayoutEffect as We, useDebugValue as Hf, forwardRef as ob } from "react";
2
+ import ye, { useState as J, useRef as te, useMemo as Ue, useCallback as V, useEffect as ge, createContext as go, useContext as Ff, useLayoutEffect as We, useDebugValue as Hf, forwardRef as ob } from "react";
3
3
  import { Button as Jn, Card as vo, Modal as ub, Table as yo, Flex as Vu, Spin as Za, Empty as cb, Select as Hl, Form as na, Input as Eo, Space as db, unstableSetRender as fb, Tooltip as To, DatePicker as hb, Cascader as pb, Popover as Oa, Image as Uf, App as dr, Dropdown as mb, Popconfirm as bb, ConfigProvider as gb, Progress as vb, Pagination as yb, theme as Eb } from "antd";
4
4
  import { createFromIconfontCN as Tb, LeftOutlined as Cb, SearchOutlined as xb, ReloadOutlined as Sb, CloseCircleFilled as zf, InfoCircleOutlined as kb, SendOutlined as Ab, PauseCircleOutlined as Nb, PlayCircleOutlined as wb } from "@ant-design/icons";
5
5
  import { createRoot as _b } from "react-dom/client";
@@ -610,7 +610,7 @@ const { Option: Ub } = Hl, zb = ({
610
610
  };
611
611
  b($), k(q);
612
612
  }, [a]);
613
- return be(() => {
613
+ return ge(() => {
614
614
  const L = Object.keys(o).length > 0;
615
615
  (s && !O.current || L) && (A(), O.current = !0);
616
616
  }, [s, o, A]), /* @__PURE__ */ W("div", { children: [
@@ -880,7 +880,7 @@ function Wf(e, t) {
880
880
  function Cl(e) {
881
881
  return e.toLowerCase();
882
882
  }
883
- class Nt {
883
+ class wt {
884
884
  /**
885
885
  * @param {string} property
886
886
  * Property.
@@ -893,20 +893,20 @@ class Nt {
893
893
  this.attribute = n, this.property = t;
894
894
  }
895
895
  }
896
- Nt.prototype.attribute = "";
897
- Nt.prototype.booleanish = !1;
898
- Nt.prototype.boolean = !1;
899
- Nt.prototype.commaOrSpaceSeparated = !1;
900
- Nt.prototype.commaSeparated = !1;
901
- Nt.prototype.defined = !1;
902
- Nt.prototype.mustUseProperty = !1;
903
- Nt.prototype.number = !1;
904
- Nt.prototype.overloadedBoolean = !1;
905
- Nt.prototype.property = "";
906
- Nt.prototype.spaceSeparated = !1;
907
- Nt.prototype.space = void 0;
896
+ wt.prototype.attribute = "";
897
+ wt.prototype.booleanish = !1;
898
+ wt.prototype.boolean = !1;
899
+ wt.prototype.commaOrSpaceSeparated = !1;
900
+ wt.prototype.commaSeparated = !1;
901
+ wt.prototype.defined = !1;
902
+ wt.prototype.mustUseProperty = !1;
903
+ wt.prototype.number = !1;
904
+ wt.prototype.overloadedBoolean = !1;
905
+ wt.prototype.property = "";
906
+ wt.prototype.spaceSeparated = !1;
907
+ wt.prototype.space = void 0;
908
908
  let Jb = 0;
909
- const Ce = fr(), Ye = fr(), Os = fr(), Z = fr(), Fe = fr(), wr = fr(), _t = fr();
909
+ const Ce = fr(), Ye = fr(), Os = fr(), Z = fr(), Fe = fr(), wr = fr(), It = fr();
910
910
  function fr() {
911
911
  return 2 ** ++Jb;
912
912
  }
@@ -914,7 +914,7 @@ const Ms = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
914
914
  __proto__: null,
915
915
  boolean: Ce,
916
916
  booleanish: Ye,
917
- commaOrSpaceSeparated: _t,
917
+ commaOrSpaceSeparated: It,
918
918
  commaSeparated: wr,
919
919
  number: Z,
920
920
  overloadedBoolean: Os,
@@ -923,7 +923,7 @@ const Ms = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
923
923
  /** @type {ReadonlyArray<keyof typeof types>} */
924
924
  Object.keys(Ms)
925
925
  );
926
- class xo extends Nt {
926
+ class xo extends wt {
927
927
  /**
928
928
  * @constructor
929
929
  * @param {string} property
@@ -1563,7 +1563,7 @@ const Zb = Ur({
1563
1563
  timelineBegin: "timelinebegin"
1564
1564
  },
1565
1565
  properties: {
1566
- about: _t,
1566
+ about: It,
1567
1567
  accentHeight: Z,
1568
1568
  accumulate: null,
1569
1569
  additive: null,
@@ -1675,7 +1675,7 @@ const Zb = Ur({
1675
1675
  k2: Z,
1676
1676
  k3: Z,
1677
1677
  k4: Z,
1678
- kernelMatrix: _t,
1678
+ kernelMatrix: It,
1679
1679
  kernelUnitLength: null,
1680
1680
  keyPoints: null,
1681
1681
  // SEMI_COLON_SEPARATED
@@ -1832,21 +1832,21 @@ const Zb = Ur({
1832
1832
  preserveAspectRatio: null,
1833
1833
  primitiveUnits: null,
1834
1834
  propagate: null,
1835
- property: _t,
1835
+ property: It,
1836
1836
  r: null,
1837
1837
  radius: null,
1838
1838
  referrerPolicy: null,
1839
1839
  refX: null,
1840
1840
  refY: null,
1841
- rel: _t,
1842
- rev: _t,
1841
+ rel: It,
1842
+ rev: It,
1843
1843
  renderingIntent: null,
1844
1844
  repeatCount: null,
1845
1845
  repeatDur: null,
1846
- requiredExtensions: _t,
1847
- requiredFeatures: _t,
1848
- requiredFonts: _t,
1849
- requiredFormats: _t,
1846
+ requiredExtensions: It,
1847
+ requiredFeatures: It,
1848
+ requiredFonts: It,
1849
+ requiredFormats: It,
1850
1850
  resource: null,
1851
1851
  restart: null,
1852
1852
  result: null,
@@ -1874,7 +1874,7 @@ const Zb = Ur({
1874
1874
  strikethroughThickness: Z,
1875
1875
  string: null,
1876
1876
  stroke: null,
1877
- strokeDashArray: _t,
1877
+ strokeDashArray: It,
1878
1878
  strokeDashOffset: null,
1879
1879
  strokeLineCap: null,
1880
1880
  strokeLineJoin: null,
@@ -1888,7 +1888,7 @@ const Zb = Ur({
1888
1888
  syncMaster: null,
1889
1889
  syncTolerance: null,
1890
1890
  syncToleranceDefault: null,
1891
- systemLanguage: _t,
1891
+ systemLanguage: It,
1892
1892
  tabIndex: Z,
1893
1893
  tableValues: null,
1894
1894
  target: null,
@@ -1902,7 +1902,7 @@ const Zb = Ur({
1902
1902
  title: null,
1903
1903
  transformBehavior: null,
1904
1904
  type: null,
1905
- typeOf: _t,
1905
+ typeOf: It,
1906
1906
  to: null,
1907
1907
  transform: null,
1908
1908
  transformOrigin: null,
@@ -1991,7 +1991,7 @@ const Zb = Ur({
1991
1991
  }, n1 = /[A-Z]/g, ju = /-[a-z]/g, r1 = /^data[-\w.:]+$/i;
1992
1992
  function ei(e, t) {
1993
1993
  const n = Cl(t);
1994
- let r = t, l = Nt;
1994
+ let r = t, l = wt;
1995
1995
  if (n in e.normal)
1996
1996
  return e.property[e.normal[n]];
1997
1997
  if (n.length > 4 && n.slice(0, 4) === "data" && r1.test(t)) {
@@ -2200,7 +2200,7 @@ function Zu(e) {
2200
2200
  function ec(e) {
2201
2201
  return e && typeof e == "number" ? e : 1;
2202
2202
  }
2203
- class ft extends Error {
2203
+ class ht extends Error {
2204
2204
  /**
2205
2205
  * Create a message for `reason`.
2206
2206
  *
@@ -2274,19 +2274,19 @@ class ft extends Error {
2274
2274
  this.ancestors = a.ancestors || void 0, this.cause = a.cause || void 0, this.column = s ? s.column : void 0, this.fatal = void 0, this.file = "", this.message = l, this.line = s ? s.line : void 0, this.name = ul(a.place) || "1:1", this.place = a.place || void 0, this.reason = this.message, this.ruleId = a.ruleId || void 0, this.source = a.source || void 0, this.stack = i && a.cause && typeof a.cause.stack == "string" ? a.cause.stack : "", this.actual = void 0, this.expected = void 0, this.note = void 0, this.url = void 0;
2275
2275
  }
2276
2276
  }
2277
- ft.prototype.file = "";
2278
- ft.prototype.name = "";
2279
- ft.prototype.reason = "";
2280
- ft.prototype.message = "";
2281
- ft.prototype.stack = "";
2282
- ft.prototype.column = void 0;
2283
- ft.prototype.line = void 0;
2284
- ft.prototype.ancestors = void 0;
2285
- ft.prototype.cause = void 0;
2286
- ft.prototype.fatal = void 0;
2287
- ft.prototype.place = void 0;
2288
- ft.prototype.ruleId = void 0;
2289
- ft.prototype.source = void 0;
2277
+ ht.prototype.file = "";
2278
+ ht.prototype.name = "";
2279
+ ht.prototype.reason = "";
2280
+ ht.prototype.message = "";
2281
+ ht.prototype.stack = "";
2282
+ ht.prototype.column = void 0;
2283
+ ht.prototype.line = void 0;
2284
+ ht.prototype.ancestors = void 0;
2285
+ ht.prototype.cause = void 0;
2286
+ ht.prototype.fatal = void 0;
2287
+ ht.prototype.place = void 0;
2288
+ ht.prototype.ruleId = void 0;
2289
+ ht.prototype.source = void 0;
2290
2290
  const ko = {}.hasOwnProperty, f1 = /* @__PURE__ */ new Map(), h1 = /[A-Z]/g, p1 = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), m1 = /* @__PURE__ */ new Set(["td", "th"]), th = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
2291
2291
  function b1(e, t) {
2292
2292
  if (!t || t.Fragment === void 0)
@@ -2509,7 +2509,7 @@ function w1(e, t) {
2509
2509
  const r = (
2510
2510
  /** @type {Error} */
2511
2511
  n
2512
- ), l = new ft("Cannot parse `style` attribute", {
2512
+ ), l = new ht("Cannot parse `style` attribute", {
2513
2513
  ancestors: e.ancestors,
2514
2514
  cause: r,
2515
2515
  ruleId: "style",
@@ -2550,7 +2550,7 @@ function lh(e, t, n) {
2550
2550
  xl(e);
2551
2551
  }
2552
2552
  function xl(e, t) {
2553
- const n = new ft(
2553
+ const n = new ht(
2554
2554
  "Cannot handle MDX estrees without `createEvaluater`",
2555
2555
  {
2556
2556
  ancestors: e.ancestors,
@@ -2690,7 +2690,7 @@ function ih(e, t) {
2690
2690
  function _r(e) {
2691
2691
  return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
2692
2692
  }
2693
- const Zt = Pn(/[A-Za-z]/), Ot = Pn(/[\dA-Za-z]/), F1 = Pn(/[#-'*+\--9=?A-Z^-~]/);
2693
+ const Zt = Pn(/[A-Za-z]/), Mt = Pn(/[\dA-Za-z]/), F1 = Pn(/[#-'*+\--9=?A-Z^-~]/);
2694
2694
  function Ds(e) {
2695
2695
  return (
2696
2696
  // Special whitespace codes (which have negative values), C0 and Control
@@ -2721,7 +2721,7 @@ function zr(e) {
2721
2721
  for (; ++n < e.length; ) {
2722
2722
  const a = e.charCodeAt(n);
2723
2723
  let i = "";
2724
- if (a === 37 && Ot(e.charCodeAt(n + 1)) && Ot(e.charCodeAt(n + 2)))
2724
+ if (a === 37 && Mt(e.charCodeAt(n + 1)) && Mt(e.charCodeAt(n + 2)))
2725
2725
  l = 2;
2726
2726
  else if (a < 128)
2727
2727
  /[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a)) || (i = String.fromCharCode(a));
@@ -3003,10 +3003,10 @@ function K1(e, t, n) {
3003
3003
  return Zt(h) ? (e.consume(h), i) : h === 64 ? n(h) : u(h);
3004
3004
  }
3005
3005
  function i(h) {
3006
- return h === 43 || h === 45 || h === 46 || Ot(h) ? (r = 1, s(h)) : u(h);
3006
+ return h === 43 || h === 45 || h === 46 || Mt(h) ? (r = 1, s(h)) : u(h);
3007
3007
  }
3008
3008
  function s(h) {
3009
- return h === 58 ? (e.consume(h), r = 0, o) : (h === 43 || h === 45 || h === 46 || Ot(h)) && r++ < 32 ? (e.consume(h), s) : (r = 0, u(h));
3009
+ return h === 58 ? (e.consume(h), r = 0, o) : (h === 43 || h === 45 || h === 46 || Mt(h)) && r++ < 32 ? (e.consume(h), s) : (r = 0, u(h));
3010
3010
  }
3011
3011
  function o(h) {
3012
3012
  return h === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(h), e.exit("autolinkMarker"), e.exit("autolink"), t) : h === null || h === 32 || h === 60 || Ds(h) ? n(h) : (e.consume(h), o);
@@ -3015,13 +3015,13 @@ function K1(e, t, n) {
3015
3015
  return h === 64 ? (e.consume(h), c) : F1(h) ? (e.consume(h), u) : n(h);
3016
3016
  }
3017
3017
  function c(h) {
3018
- return Ot(h) ? d(h) : n(h);
3018
+ return Mt(h) ? d(h) : n(h);
3019
3019
  }
3020
3020
  function d(h) {
3021
3021
  return h === 46 ? (e.consume(h), r = 0, c) : h === 62 ? (e.exit("autolinkProtocol").type = "autolinkEmail", e.enter("autolinkMarker"), e.consume(h), e.exit("autolinkMarker"), e.exit("autolink"), t) : f(h);
3022
3022
  }
3023
3023
  function f(h) {
3024
- if ((h === 45 || Ot(h)) && r++ < 63) {
3024
+ if ((h === 45 || Mt(h)) && r++ < 63) {
3025
3025
  const m = h === 45 ? f : d;
3026
3026
  return e.consume(h), m;
3027
3027
  }
@@ -3103,7 +3103,7 @@ function tg(e, t, n) {
3103
3103
  return e.enter("characterReference"), e.enter("characterReferenceMarker"), e.consume(d), e.exit("characterReferenceMarker"), o;
3104
3104
  }
3105
3105
  function o(d) {
3106
- return d === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(d), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), a = 31, i = Ot, c(d));
3106
+ return d === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(d), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), a = 31, i = Mt, c(d));
3107
3107
  }
3108
3108
  function u(d) {
3109
3109
  return d === 88 || d === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(d), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), a = 6, i = H1, c) : (e.enter("characterReferenceValue"), a = 7, i = Ls, c(d));
@@ -3111,7 +3111,7 @@ function tg(e, t, n) {
3111
3111
  function c(d) {
3112
3112
  if (d === 59 && l) {
3113
3113
  const f = e.exit("characterReferenceValue");
3114
- return i === Ot && !Sl(r.sliceSerialize(f)) ? n(d) : (e.enter("characterReferenceMarker"), e.consume(d), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
3114
+ return i === Mt && !Sl(r.sliceSerialize(f)) ? n(d) : (e.enter("characterReferenceMarker"), e.consume(d), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
3115
3115
  }
3116
3116
  return i(d) && l++ < a ? (e.consume(d), c) : n(d);
3117
3117
  }
@@ -3852,18 +3852,18 @@ function Mg(e, t, n) {
3852
3852
  return D === 45 ? (e.consume(D), r.interrupt ? t : C) : n(D);
3853
3853
  }
3854
3854
  function m(D) {
3855
- const me = "CDATA[";
3856
- return D === me.charCodeAt(s++) ? (e.consume(D), s === me.length ? r.interrupt ? t : B : m) : n(D);
3855
+ const be = "CDATA[";
3856
+ return D === be.charCodeAt(s++) ? (e.consume(D), s === be.length ? r.interrupt ? t : B : m) : n(D);
3857
3857
  }
3858
3858
  function b(D) {
3859
3859
  return Zt(D) ? (e.consume(D), i = String.fromCharCode(D), g) : n(D);
3860
3860
  }
3861
3861
  function g(D) {
3862
3862
  if (D === null || D === 47 || D === 62 || $e(D)) {
3863
- const me = D === 47, Ie = i.toLowerCase();
3864
- return !me && !a && uc.includes(Ie) ? (l = 1, r.interrupt ? t(D) : B(D)) : Ng.includes(i.toLowerCase()) ? (l = 6, me ? (e.consume(D), y) : r.interrupt ? t(D) : B(D)) : (l = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(D) : a ? I(D) : k(D));
3863
+ const be = D === 47, Ie = i.toLowerCase();
3864
+ return !be && !a && uc.includes(Ie) ? (l = 1, r.interrupt ? t(D) : B(D)) : Ng.includes(i.toLowerCase()) ? (l = 6, be ? (e.consume(D), y) : r.interrupt ? t(D) : B(D)) : (l = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(D) : a ? I(D) : k(D));
3865
3865
  }
3866
- return D === 45 || Ot(D) ? (e.consume(D), i += String.fromCharCode(D), g) : n(D);
3866
+ return D === 45 || Mt(D) ? (e.consume(D), i += String.fromCharCode(D), g) : n(D);
3867
3867
  }
3868
3868
  function y(D) {
3869
3869
  return D === 62 ? (e.consume(D), r.interrupt ? t : B) : n(D);
@@ -3875,7 +3875,7 @@ function Mg(e, t, n) {
3875
3875
  return D === 47 ? (e.consume(D), P) : D === 58 || D === 95 || Zt(D) ? (e.consume(D), R) : Re(D) ? (e.consume(D), k) : P(D);
3876
3876
  }
3877
3877
  function R(D) {
3878
- return D === 45 || D === 46 || D === 58 || D === 95 || Ot(D) ? (e.consume(D), R) : w(D);
3878
+ return D === 45 || D === 46 || D === 58 || D === 95 || Mt(D) ? (e.consume(D), R) : w(D);
3879
3879
  }
3880
3880
  function w(D) {
3881
3881
  return D === 61 ? (e.consume(D), T) : Re(D) ? (e.consume(D), w) : k(D);
@@ -3918,8 +3918,8 @@ function Mg(e, t, n) {
3918
3918
  }
3919
3919
  function q(D) {
3920
3920
  if (D === 62) {
3921
- const me = i.toLowerCase();
3922
- return uc.includes(me) ? (e.consume(D), se) : B(D);
3921
+ const be = i.toLowerCase();
3922
+ return uc.includes(be) ? (e.consume(D), se) : B(D);
3923
3923
  }
3924
3924
  return Zt(D) && i.length < 8 ? (e.consume(D), i += String.fromCharCode(D), q) : B(D);
3925
3925
  }
@@ -4007,19 +4007,19 @@ function Pg(e, t, n) {
4007
4007
  return Zt(C) ? (e.consume(C), T) : n(C);
4008
4008
  }
4009
4009
  function T(C) {
4010
- return C === 45 || Ot(C) ? (e.consume(C), T) : O(C);
4010
+ return C === 45 || Mt(C) ? (e.consume(C), T) : O(C);
4011
4011
  }
4012
4012
  function O(C) {
4013
4013
  return ue(C) ? (i = O, $(C)) : Re(C) ? (e.consume(C), O) : F(C);
4014
4014
  }
4015
4015
  function _(C) {
4016
- return C === 45 || Ot(C) ? (e.consume(C), _) : C === 47 || C === 62 || $e(C) ? A(C) : n(C);
4016
+ return C === 45 || Mt(C) ? (e.consume(C), _) : C === 47 || C === 62 || $e(C) ? A(C) : n(C);
4017
4017
  }
4018
4018
  function A(C) {
4019
4019
  return C === 47 ? (e.consume(C), F) : C === 58 || C === 95 || Zt(C) ? (e.consume(C), P) : ue(C) ? (i = A, $(C)) : Re(C) ? (e.consume(C), A) : F(C);
4020
4020
  }
4021
4021
  function P(C) {
4022
- return C === 45 || C === 46 || C === 58 || C === 95 || Ot(C) ? (e.consume(C), P) : S(C);
4022
+ return C === 45 || C === 46 || C === 58 || C === 95 || Mt(C) ? (e.consume(C), P) : S(C);
4023
4023
  }
4024
4024
  function S(C) {
4025
4025
  return C === 61 ? (e.consume(C), B) : ue(C) ? (i = S, $(C)) : Re(C) ? (e.consume(C), S) : A(C);
@@ -4253,7 +4253,7 @@ function Xg(e, t, n) {
4253
4253
  return u === l ? (e.consume(u), r++, o) : (e.exit("thematicBreakSequence"), Re(u) ? De(e, s, "whitespace")(u) : s(u));
4254
4254
  }
4255
4255
  }
4256
- const St = {
4256
+ const kt = {
4257
4257
  continuation: {
4258
4258
  tokenize: tv
4259
4259
  },
@@ -4314,7 +4314,7 @@ function tv(e, t, n) {
4314
4314
  return r.containerState.furtherBlankLines || !Re(s) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, i(s)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(Zg, t, i)(s));
4315
4315
  }
4316
4316
  function i(s) {
4317
- return r.containerState._closeFlow = !0, r.interrupt = void 0, De(e, e.attempt(St, t, n), "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(s);
4317
+ return r.containerState._closeFlow = !0, r.interrupt = void 0, De(e, e.attempt(kt, t, n), "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(s);
4318
4318
  }
4319
4319
  }
4320
4320
  function nv(e, t, n) {
@@ -4506,19 +4506,19 @@ function fv(e, t) {
4506
4506
  return e;
4507
4507
  }
4508
4508
  const hv = {
4509
- 42: St,
4510
- 43: St,
4511
- 45: St,
4512
- 48: St,
4513
- 49: St,
4514
- 50: St,
4515
- 51: St,
4516
- 52: St,
4517
- 53: St,
4518
- 54: St,
4519
- 55: St,
4520
- 56: St,
4521
- 57: St,
4509
+ 42: kt,
4510
+ 43: kt,
4511
+ 45: kt,
4512
+ 48: kt,
4513
+ 49: kt,
4514
+ 50: kt,
4515
+ 51: kt,
4516
+ 52: kt,
4517
+ 53: kt,
4518
+ 54: kt,
4519
+ 55: kt,
4520
+ 56: kt,
4521
+ 57: kt,
4522
4522
  62: sh
4523
4523
  }, pv = {
4524
4524
  91: vg
@@ -4678,10 +4678,10 @@ function xv(e, t, n) {
4678
4678
  L
4679
4679
  ])
4680
4680
  ) : se(L);
4681
- function se(Ne) {
4681
+ function se(we) {
4682
4682
  return fe;
4683
4683
  function fe(pe) {
4684
- const Le = pe !== null && Ne[pe], Te = pe !== null && Ne.null, nt = [
4684
+ const Le = pe !== null && we[pe], Te = pe !== null && we.null, nt = [
4685
4685
  // To do: add more extension tests.
4686
4686
  /* c8 ignore next 2 */
4687
4687
  ...Array.isArray(Le) ? Le : Le ? [Le] : [],
@@ -4690,27 +4690,27 @@ function xv(e, t, n) {
4690
4690
  return ce(nt)(pe);
4691
4691
  }
4692
4692
  }
4693
- function ce(Ne) {
4694
- return $ = Ne, q = 0, Ne.length === 0 ? F : D(Ne[q]);
4693
+ function ce(we) {
4694
+ return $ = we, q = 0, we.length === 0 ? F : D(we[q]);
4695
4695
  }
4696
- function D(Ne) {
4696
+ function D(we) {
4697
4697
  return fe;
4698
4698
  function fe(pe) {
4699
- return C = A(), K = Ne, Ne.partial || (u.currentConstruct = Ne), Ne.name && u.parser.constructs.disable.null.includes(Ne.name) ? Ie() : Ne.tokenize.call(
4699
+ return C = A(), K = we, we.partial || (u.currentConstruct = we), we.name && u.parser.constructs.disable.null.includes(we.name) ? Ie() : we.tokenize.call(
4700
4700
  // If we do have fields, create an object w/ `context` as its
4701
4701
  // prototype.
4702
4702
  // This allows a “live binding”, which is needed for `interrupt`.
4703
4703
  B ? Object.assign(Object.create(u), B) : u,
4704
4704
  o,
4705
- me,
4705
+ be,
4706
4706
  Ie
4707
4707
  )(pe);
4708
4708
  }
4709
4709
  }
4710
- function me(Ne) {
4710
+ function be(we) {
4711
4711
  return S(K, C), E;
4712
4712
  }
4713
- function Ie(Ne) {
4713
+ function Ie(we) {
4714
4714
  return C.restore(), ++q < $.length ? D($[q]) : F;
4715
4715
  }
4716
4716
  }
@@ -4871,7 +4871,7 @@ function Rv(e) {
4871
4871
  transforms: [],
4872
4872
  canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
4873
4873
  enter: {
4874
- autolink: a(Tt),
4874
+ autolink: a(Ct),
4875
4875
  autolinkProtocol: A,
4876
4876
  autolinkEmail: A,
4877
4877
  atxHeading: a(pn),
@@ -4882,7 +4882,7 @@ function Rv(e) {
4882
4882
  codeFencedFenceInfo: i,
4883
4883
  codeFencedFenceMeta: i,
4884
4884
  codeIndented: a(nt, i),
4885
- codeText: a(Dt, i),
4885
+ codeText: a(Lt, i),
4886
4886
  codeTextData: A,
4887
4887
  data: A,
4888
4888
  codeFlowValue: A,
@@ -4897,14 +4897,14 @@ function Rv(e) {
4897
4897
  htmlFlowData: A,
4898
4898
  htmlText: a(Ve, i),
4899
4899
  htmlTextData: A,
4900
- image: a(mt),
4900
+ image: a(bt),
4901
4901
  label: i,
4902
- link: a(Tt),
4902
+ link: a(Ct),
4903
4903
  listItem: a(Ql),
4904
4904
  listItemValue: f,
4905
- listOrdered: a(bt, d),
4906
- listUnordered: a(bt),
4907
- paragraph: a(wt),
4905
+ listOrdered: a(gt, d),
4906
+ listUnordered: a(gt),
4907
+ paragraph: a(ut),
4908
4908
  reference: D,
4909
4909
  referenceString: i,
4910
4910
  resourceDestinationString: i,
@@ -4923,7 +4923,7 @@ function Rv(e) {
4923
4923
  characterEscapeValue: P,
4924
4924
  characterReferenceMarkerHexadecimal: Ie,
4925
4925
  characterReferenceMarkerNumeric: Ie,
4926
- characterReferenceValue: Ne,
4926
+ characterReferenceValue: we,
4927
4927
  characterReference: fe,
4928
4928
  codeFenced: o(g),
4929
4929
  codeFencedFence: b,
@@ -4954,7 +4954,7 @@ function Rv(e) {
4954
4954
  listOrdered: o(),
4955
4955
  listUnordered: o(),
4956
4956
  paragraph: o(),
4957
- referenceString: me,
4957
+ referenceString: be,
4958
4958
  resourceDestinationString: C,
4959
4959
  resourceTitleString: se,
4960
4960
  resource: ce,
@@ -4973,7 +4973,7 @@ function Rv(e) {
4973
4973
  type: "root",
4974
4974
  children: []
4975
4975
  };
4976
- const ge = {
4976
+ const ve = {
4977
4977
  stack: [ee],
4978
4978
  tokenStack: [],
4979
4979
  config: t,
@@ -4996,11 +4996,11 @@ function Rv(e) {
4996
4996
  const rt = t[j[Pe][0]];
4997
4997
  bh.call(rt, j[Pe][1].type) && rt[j[Pe][1].type].call(Object.assign({
4998
4998
  sliceSerialize: j[Pe][2].sliceSerialize
4999
- }, ge), j[Pe][1]);
4999
+ }, ve), j[Pe][1]);
5000
5000
  }
5001
- if (ge.tokenStack.length > 0) {
5002
- const rt = ge.tokenStack[ge.tokenStack.length - 1];
5003
- (rt[1] || fc).call(ge, void 0, rt[0]);
5001
+ if (ve.tokenStack.length > 0) {
5002
+ const rt = ve.tokenStack[ve.tokenStack.length - 1];
5003
+ (rt[1] || fc).call(ve, void 0, rt[0]);
5004
5004
  }
5005
5005
  for (ee.position = {
5006
5006
  start: gn(j.length > 0 ? j[0][1].start : {
@@ -5017,9 +5017,9 @@ function Rv(e) {
5017
5017
  ee = t.transforms[Pe](ee) || ee;
5018
5018
  return ee;
5019
5019
  }
5020
- function l(j, ee, ge) {
5021
- let ke = ee - 1, Pe = -1, rt = !1, Lt, qt, Vn, an;
5022
- for (; ++ke <= ge; ) {
5020
+ function l(j, ee, ve) {
5021
+ let ke = ee - 1, Pe = -1, rt = !1, Pt, qt, Vn, an;
5022
+ for (; ++ke <= ve; ) {
5023
5023
  const Qe = j[ke];
5024
5024
  switch (Qe[1].type) {
5025
5025
  case "listUnordered":
@@ -5029,7 +5029,7 @@ function Rv(e) {
5029
5029
  break;
5030
5030
  }
5031
5031
  case "lineEndingBlank": {
5032
- Qe[0] === "enter" && (Lt && !an && !Pe && !Vn && (Vn = ke), an = void 0);
5032
+ Qe[0] === "enter" && (Pt && !an && !Pe && !Vn && (Vn = ke), an = void 0);
5033
5033
  break;
5034
5034
  }
5035
5035
  case "linePrefix":
@@ -5042,7 +5042,7 @@ function Rv(e) {
5042
5042
  an = void 0;
5043
5043
  }
5044
5044
  if (!Pe && Qe[0] === "enter" && Qe[1].type === "listItemPrefix" || Pe === -1 && Qe[0] === "exit" && (Qe[1].type === "listUnordered" || Qe[1].type === "listOrdered")) {
5045
- if (Lt) {
5045
+ if (Pt) {
5046
5046
  let bn = ke;
5047
5047
  for (qt = void 0; bn--; ) {
5048
5048
  const Wt = j[bn];
@@ -5051,7 +5051,7 @@ function Rv(e) {
5051
5051
  qt && (j[qt][1].type = "lineEndingBlank", rt = !0), Wt[1].type = "lineEnding", qt = bn;
5052
5052
  } else if (!(Wt[1].type === "linePrefix" || Wt[1].type === "blockQuotePrefix" || Wt[1].type === "blockQuotePrefixWhitespace" || Wt[1].type === "blockQuoteMarker" || Wt[1].type === "listItemIndent")) break;
5053
5053
  }
5054
- Vn && (!qt || Vn < qt) && (Lt._spread = !0), Lt.end = Object.assign({}, qt ? j[qt][1].start : Qe[1].end), j.splice(qt || ke, 0, ["exit", Lt, Qe[2]]), ke++, ge++;
5054
+ Vn && (!qt || Vn < qt) && (Pt._spread = !0), Pt.end = Object.assign({}, qt ? j[qt][1].start : Qe[1].end), j.splice(qt || ke, 0, ["exit", Pt, Qe[2]]), ke++, ve++;
5055
5055
  }
5056
5056
  if (Qe[1].type === "listItemPrefix") {
5057
5057
  const bn = {
@@ -5061,15 +5061,15 @@ function Rv(e) {
5061
5061
  // @ts-expect-error: we’ll add `end` in a second.
5062
5062
  end: void 0
5063
5063
  };
5064
- Lt = bn, j.splice(ke, 0, ["enter", bn, Qe[2]]), ke++, ge++, Vn = void 0, an = !0;
5064
+ Pt = bn, j.splice(ke, 0, ["enter", bn, Qe[2]]), ke++, ve++, Vn = void 0, an = !0;
5065
5065
  }
5066
5066
  }
5067
5067
  }
5068
- return j[ee][1]._spread = rt, ge;
5068
+ return j[ee][1]._spread = rt, ve;
5069
5069
  }
5070
5070
  function a(j, ee) {
5071
- return ge;
5072
- function ge(ke) {
5071
+ return ve;
5072
+ function ve(ke) {
5073
5073
  s.call(this, j(ke), ke), ee && ee.call(this, ke);
5074
5074
  }
5075
5075
  }
@@ -5079,8 +5079,8 @@ function Rv(e) {
5079
5079
  children: []
5080
5080
  });
5081
5081
  }
5082
- function s(j, ee, ge) {
5083
- this.stack[this.stack.length - 1].children.push(j), this.stack.push(j), this.tokenStack.push([ee, ge || void 0]), j.position = {
5082
+ function s(j, ee, ve) {
5083
+ this.stack[this.stack.length - 1].children.push(j), this.stack.push(j), this.tokenStack.push([ee, ve || void 0]), j.position = {
5084
5084
  start: gn(ee.start),
5085
5085
  // @ts-expect-error: `end` will be patched later.
5086
5086
  end: void 0
@@ -5088,19 +5088,19 @@ function Rv(e) {
5088
5088
  }
5089
5089
  function o(j) {
5090
5090
  return ee;
5091
- function ee(ge) {
5092
- j && j.call(this, ge), u.call(this, ge);
5091
+ function ee(ve) {
5092
+ j && j.call(this, ve), u.call(this, ve);
5093
5093
  }
5094
5094
  }
5095
5095
  function u(j, ee) {
5096
- const ge = this.stack.pop(), ke = this.tokenStack.pop();
5096
+ const ve = this.stack.pop(), ke = this.tokenStack.pop();
5097
5097
  if (ke)
5098
5098
  ke[0].type !== j.type && (ee ? ee.call(this, j, ke[0]) : (ke[1] || fc).call(this, j, ke[0]));
5099
5099
  else throw new Error("Cannot close `" + j.type + "` (" + ul({
5100
5100
  start: j.start,
5101
5101
  end: j.end
5102
5102
  }) + "): it’s not open");
5103
- ge.position.end = gn(j.end);
5103
+ ve.position.end = gn(j.end);
5104
5104
  }
5105
5105
  function c() {
5106
5106
  return R1(this.stack.pop());
@@ -5134,8 +5134,8 @@ function Rv(e) {
5134
5134
  ee.value = j.replace(/(\r?\n|\r)$/g, "");
5135
5135
  }
5136
5136
  function I(j) {
5137
- const ee = this.resume(), ge = this.stack[this.stack.length - 1];
5138
- ge.label = ee, ge.identifier = _r(this.sliceSerialize(j)).toLowerCase();
5137
+ const ee = this.resume(), ve = this.stack[this.stack.length - 1];
5138
+ ve.label = ee, ve.identifier = _r(this.sliceSerialize(j)).toLowerCase();
5139
5139
  }
5140
5140
  function k() {
5141
5141
  const j = this.resume(), ee = this.stack[this.stack.length - 1];
@@ -5148,8 +5148,8 @@ function Rv(e) {
5148
5148
  function w(j) {
5149
5149
  const ee = this.stack[this.stack.length - 1];
5150
5150
  if (!ee.depth) {
5151
- const ge = this.sliceSerialize(j).length;
5152
- ee.depth = ge;
5151
+ const ve = this.sliceSerialize(j).length;
5152
+ ee.depth = ve;
5153
5153
  }
5154
5154
  }
5155
5155
  function T() {
@@ -5163,13 +5163,13 @@ function Rv(e) {
5163
5163
  this.data.setextHeadingSlurpLineEnding = void 0;
5164
5164
  }
5165
5165
  function A(j) {
5166
- const ge = this.stack[this.stack.length - 1].children;
5167
- let ke = ge[ge.length - 1];
5166
+ const ve = this.stack[this.stack.length - 1].children;
5167
+ let ke = ve[ve.length - 1];
5168
5168
  (!ke || ke.type !== "text") && (ke = ki(), ke.position = {
5169
5169
  start: gn(j.start),
5170
5170
  // @ts-expect-error: we’ll add `end` later.
5171
5171
  end: void 0
5172
- }, ge.push(ke)), this.stack.push(ke);
5172
+ }, ve.push(ke)), this.stack.push(ke);
5173
5173
  }
5174
5174
  function P(j) {
5175
5175
  const ee = this.stack.pop();
@@ -5178,8 +5178,8 @@ function Rv(e) {
5178
5178
  function S(j) {
5179
5179
  const ee = this.stack[this.stack.length - 1];
5180
5180
  if (this.data.atHardBreak) {
5181
- const ge = ee.children[ee.children.length - 1];
5182
- ge.position.end = gn(j.end), this.data.atHardBreak = void 0;
5181
+ const ve = ee.children[ee.children.length - 1];
5182
+ ve.position.end = gn(j.end), this.data.atHardBreak = void 0;
5183
5183
  return;
5184
5184
  }
5185
5185
  !this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(ee.type) && (A.call(this, j), P.call(this, j));
@@ -5218,16 +5218,16 @@ function Rv(e) {
5218
5218
  this.data.referenceType = void 0;
5219
5219
  }
5220
5220
  function q(j) {
5221
- const ee = this.sliceSerialize(j), ge = this.stack[this.stack.length - 2];
5222
- ge.label = Iv(ee), ge.identifier = _r(ee).toLowerCase();
5221
+ const ee = this.sliceSerialize(j), ve = this.stack[this.stack.length - 2];
5222
+ ve.label = Iv(ee), ve.identifier = _r(ee).toLowerCase();
5223
5223
  }
5224
5224
  function K() {
5225
- const j = this.stack[this.stack.length - 1], ee = this.resume(), ge = this.stack[this.stack.length - 1];
5226
- if (this.data.inReference = !0, ge.type === "link") {
5225
+ const j = this.stack[this.stack.length - 1], ee = this.resume(), ve = this.stack[this.stack.length - 1];
5226
+ if (this.data.inReference = !0, ve.type === "link") {
5227
5227
  const ke = j.children;
5228
- ge.children = ke;
5228
+ ve.children = ke;
5229
5229
  } else
5230
- ge.alt = ee;
5230
+ ve.alt = ee;
5231
5231
  }
5232
5232
  function C() {
5233
5233
  const j = this.resume(), ee = this.stack[this.stack.length - 1];
@@ -5243,17 +5243,17 @@ function Rv(e) {
5243
5243
  function D() {
5244
5244
  this.data.referenceType = "collapsed";
5245
5245
  }
5246
- function me(j) {
5247
- const ee = this.resume(), ge = this.stack[this.stack.length - 1];
5248
- ge.label = ee, ge.identifier = _r(this.sliceSerialize(j)).toLowerCase(), this.data.referenceType = "full";
5246
+ function be(j) {
5247
+ const ee = this.resume(), ve = this.stack[this.stack.length - 1];
5248
+ ve.label = ee, ve.identifier = _r(this.sliceSerialize(j)).toLowerCase(), this.data.referenceType = "full";
5249
5249
  }
5250
5250
  function Ie(j) {
5251
5251
  this.data.characterReferenceType = j.type;
5252
5252
  }
5253
- function Ne(j) {
5254
- const ee = this.sliceSerialize(j), ge = this.data.characterReferenceType;
5253
+ function we(j) {
5254
+ const ee = this.sliceSerialize(j), ve = this.data.characterReferenceType;
5255
5255
  let ke;
5256
- ge ? (ke = ih(ee, ge === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : ke = Sl(ee);
5256
+ ve ? (ke = ih(ee, ve === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : ke = Sl(ee);
5257
5257
  const Pe = this.stack[this.stack.length - 1];
5258
5258
  Pe.value += ke;
5259
5259
  }
@@ -5285,7 +5285,7 @@ function Rv(e) {
5285
5285
  value: ""
5286
5286
  };
5287
5287
  }
5288
- function Dt() {
5288
+ function Lt() {
5289
5289
  return {
5290
5290
  type: "inlineCode",
5291
5291
  value: ""
@@ -5325,7 +5325,7 @@ function Rv(e) {
5325
5325
  value: ""
5326
5326
  };
5327
5327
  }
5328
- function mt() {
5328
+ function bt() {
5329
5329
  return {
5330
5330
  type: "image",
5331
5331
  title: null,
@@ -5333,7 +5333,7 @@ function Rv(e) {
5333
5333
  alt: null
5334
5334
  };
5335
5335
  }
5336
- function Tt() {
5336
+ function Ct() {
5337
5337
  return {
5338
5338
  type: "link",
5339
5339
  title: null,
@@ -5341,7 +5341,7 @@ function Rv(e) {
5341
5341
  children: []
5342
5342
  };
5343
5343
  }
5344
- function bt(j) {
5344
+ function gt(j) {
5345
5345
  return {
5346
5346
  type: "list",
5347
5347
  ordered: j.type === "listOrdered",
@@ -5358,7 +5358,7 @@ function Rv(e) {
5358
5358
  children: []
5359
5359
  };
5360
5360
  }
5361
- function wt() {
5361
+ function ut() {
5362
5362
  return {
5363
5363
  type: "paragraph",
5364
5364
  children: []
@@ -6917,7 +6917,7 @@ class Ah {
6917
6917
  * Message.
6918
6918
  */
6919
6919
  message(t, n, r) {
6920
- const l = new ft(
6920
+ const l = new ht(
6921
6921
  // @ts-expect-error: the overloads are fine.
6922
6922
  t,
6923
6923
  n,
@@ -8113,7 +8113,7 @@ var x;
8113
8113
  (function(e) {
8114
8114
  e[e.EOF = -1] = "EOF", e[e.NULL = 0] = "NULL", e[e.TABULATION = 9] = "TABULATION", e[e.CARRIAGE_RETURN = 13] = "CARRIAGE_RETURN", e[e.LINE_FEED = 10] = "LINE_FEED", e[e.FORM_FEED = 12] = "FORM_FEED", e[e.SPACE = 32] = "SPACE", e[e.EXCLAMATION_MARK = 33] = "EXCLAMATION_MARK", e[e.QUOTATION_MARK = 34] = "QUOTATION_MARK", e[e.AMPERSAND = 38] = "AMPERSAND", e[e.APOSTROPHE = 39] = "APOSTROPHE", e[e.HYPHEN_MINUS = 45] = "HYPHEN_MINUS", e[e.SOLIDUS = 47] = "SOLIDUS", e[e.DIGIT_0 = 48] = "DIGIT_0", e[e.DIGIT_9 = 57] = "DIGIT_9", e[e.SEMICOLON = 59] = "SEMICOLON", e[e.LESS_THAN_SIGN = 60] = "LESS_THAN_SIGN", e[e.EQUALS_SIGN = 61] = "EQUALS_SIGN", e[e.GREATER_THAN_SIGN = 62] = "GREATER_THAN_SIGN", e[e.QUESTION_MARK = 63] = "QUESTION_MARK", e[e.LATIN_CAPITAL_A = 65] = "LATIN_CAPITAL_A", e[e.LATIN_CAPITAL_Z = 90] = "LATIN_CAPITAL_Z", e[e.RIGHT_SQUARE_BRACKET = 93] = "RIGHT_SQUARE_BRACKET", e[e.GRAVE_ACCENT = 96] = "GRAVE_ACCENT", e[e.LATIN_SMALL_A = 97] = "LATIN_SMALL_A", e[e.LATIN_SMALL_Z = 122] = "LATIN_SMALL_Z";
8115
8115
  })(x || (x = {}));
8116
- const xt = {
8116
+ const St = {
8117
8117
  DASH_DASH: "--",
8118
8118
  CDATA_START: "[CDATA[",
8119
8119
  DOCTYPE: "doctype",
@@ -8223,10 +8223,10 @@ class R2 {
8223
8223
  this.isEol = !1;
8224
8224
  }
8225
8225
  }
8226
- var Ae;
8226
+ var Ne;
8227
8227
  (function(e) {
8228
8228
  e[e.CHARACTER = 0] = "CHARACTER", e[e.NULL_CHARACTER = 1] = "NULL_CHARACTER", e[e.WHITESPACE_CHARACTER = 2] = "WHITESPACE_CHARACTER", e[e.START_TAG = 3] = "START_TAG", e[e.END_TAG = 4] = "END_TAG", e[e.COMMENT = 5] = "COMMENT", e[e.DOCTYPE = 6] = "DOCTYPE", e[e.EOF = 7] = "EOF", e[e.HIBERNATION = 8] = "HIBERNATION";
8229
- })(Ae || (Ae = {}));
8229
+ })(Ne || (Ne = {}));
8230
8230
  function Lh(e, t) {
8231
8231
  for (let n = e.attrs.length - 1; n >= 0; n--)
8232
8232
  if (e.attrs[n].name === t)
@@ -8864,7 +8864,7 @@ class G2 {
8864
8864
  //Token creation
8865
8865
  _createStartTagToken() {
8866
8866
  this.currentToken = {
8867
- type: Ae.START_TAG,
8867
+ type: Ne.START_TAG,
8868
8868
  tagName: "",
8869
8869
  tagID: p.UNKNOWN,
8870
8870
  selfClosing: !1,
@@ -8875,7 +8875,7 @@ class G2 {
8875
8875
  }
8876
8876
  _createEndTagToken() {
8877
8877
  this.currentToken = {
8878
- type: Ae.END_TAG,
8878
+ type: Ne.END_TAG,
8879
8879
  tagName: "",
8880
8880
  tagID: p.UNKNOWN,
8881
8881
  selfClosing: !1,
@@ -8886,14 +8886,14 @@ class G2 {
8886
8886
  }
8887
8887
  _createCommentToken(t) {
8888
8888
  this.currentToken = {
8889
- type: Ae.COMMENT,
8889
+ type: Ne.COMMENT,
8890
8890
  data: "",
8891
8891
  location: this.getCurrentLocation(t)
8892
8892
  };
8893
8893
  }
8894
8894
  _createDoctypeToken(t) {
8895
8895
  this.currentToken = {
8896
- type: Ae.DOCTYPE,
8896
+ type: Ne.DOCTYPE,
8897
8897
  name: t,
8898
8898
  forceQuirks: !1,
8899
8899
  publicId: null,
@@ -8935,7 +8935,7 @@ class G2 {
8935
8935
  }
8936
8936
  emitCurrentTagToken() {
8937
8937
  const t = this.currentToken;
8938
- this.prepareToken(t), t.tagID = $r(t.tagName), t.type === Ae.START_TAG ? (this.lastStartTagName = t.tagName, this.handler.onStartTag(t)) : (t.attrs.length > 0 && this._err(Y.endTagWithAttributes), t.selfClosing && this._err(Y.endTagWithTrailingSolidus), this.handler.onEndTag(t)), this.preprocessor.dropParsedChunk();
8938
+ this.prepareToken(t), t.tagID = $r(t.tagName), t.type === Ne.START_TAG ? (this.lastStartTagName = t.tagName, this.handler.onStartTag(t)) : (t.attrs.length > 0 && this._err(Y.endTagWithAttributes), t.selfClosing && this._err(Y.endTagWithTrailingSolidus), this.handler.onEndTag(t)), this.preprocessor.dropParsedChunk();
8939
8939
  }
8940
8940
  emitCurrentComment(t) {
8941
8941
  this.prepareToken(t), this.handler.onComment(t), this.preprocessor.dropParsedChunk();
@@ -8946,15 +8946,15 @@ class G2 {
8946
8946
  _emitCurrentCharacterToken(t) {
8947
8947
  if (this.currentCharacterToken) {
8948
8948
  switch (t && this.currentCharacterToken.location && (this.currentCharacterToken.location.endLine = t.startLine, this.currentCharacterToken.location.endCol = t.startCol, this.currentCharacterToken.location.endOffset = t.startOffset), this.currentCharacterToken.type) {
8949
- case Ae.CHARACTER: {
8949
+ case Ne.CHARACTER: {
8950
8950
  this.handler.onCharacter(this.currentCharacterToken);
8951
8951
  break;
8952
8952
  }
8953
- case Ae.NULL_CHARACTER: {
8953
+ case Ne.NULL_CHARACTER: {
8954
8954
  this.handler.onNullCharacter(this.currentCharacterToken);
8955
8955
  break;
8956
8956
  }
8957
- case Ae.WHITESPACE_CHARACTER: {
8957
+ case Ne.WHITESPACE_CHARACTER: {
8958
8958
  this.handler.onWhitespaceCharacter(this.currentCharacterToken);
8959
8959
  break;
8960
8960
  }
@@ -8964,7 +8964,7 @@ class G2 {
8964
8964
  }
8965
8965
  _emitEOFToken() {
8966
8966
  const t = this.getCurrentLocation(0);
8967
- t && (t.endLine = t.startLine, t.endCol = t.startCol, t.endOffset = t.startOffset), this._emitCurrentCharacterToken(t), this.handler.onEof({ type: Ae.EOF, location: t }), this.active = !1;
8967
+ t && (t.endLine = t.startLine, t.endCol = t.startCol, t.endOffset = t.startOffset), this._emitCurrentCharacterToken(t), this.handler.onEof({ type: Ne.EOF, location: t }), this.active = !1;
8968
8968
  }
8969
8969
  //Characters emission
8970
8970
  //OPTIMIZATION: The specification uses only one type of character token (one token per character).
@@ -8985,13 +8985,13 @@ class G2 {
8985
8985
  this._createCharacterToken(t, n);
8986
8986
  }
8987
8987
  _emitCodePoint(t) {
8988
- const n = Ph(t) ? Ae.WHITESPACE_CHARACTER : t === x.NULL ? Ae.NULL_CHARACTER : Ae.CHARACTER;
8988
+ const n = Ph(t) ? Ne.WHITESPACE_CHARACTER : t === x.NULL ? Ne.NULL_CHARACTER : Ne.CHARACTER;
8989
8989
  this._appendCharToCurrentCharacterToken(n, String.fromCodePoint(t));
8990
8990
  }
8991
8991
  //NOTE: used when we emit characters explicitly.
8992
8992
  //This is always for non-whitespace and non-null characters, which allows us to avoid additional checks.
8993
8993
  _emitChars(t) {
8994
- this._appendCharToCurrentCharacterToken(Ae.CHARACTER, t);
8994
+ this._appendCharToCurrentCharacterToken(Ne.CHARACTER, t);
8995
8995
  }
8996
8996
  // Character reference helpers
8997
8997
  _startCharacterReference() {
@@ -9664,9 +9664,9 @@ class G2 {
9664
9664
  // Script data double escape start state
9665
9665
  //------------------------------------------------------------------
9666
9666
  _stateScriptDataDoubleEscapeStart(t) {
9667
- if (this.preprocessor.startsWith(xt.SCRIPT, !1) && Lc(this.preprocessor.peek(xt.SCRIPT.length))) {
9667
+ if (this.preprocessor.startsWith(St.SCRIPT, !1) && Lc(this.preprocessor.peek(St.SCRIPT.length))) {
9668
9668
  this._emitCodePoint(t);
9669
- for (let n = 0; n < xt.SCRIPT.length; n++)
9669
+ for (let n = 0; n < St.SCRIPT.length; n++)
9670
9670
  this._emitCodePoint(this._consume());
9671
9671
  this.state = N.SCRIPT_DATA_DOUBLE_ESCAPED;
9672
9672
  } else this._ensureHibernation() || (this.state = N.SCRIPT_DATA_ESCAPED, this._stateScriptDataEscaped(t));
@@ -9755,9 +9755,9 @@ class G2 {
9755
9755
  // Script data double escape end state
9756
9756
  //------------------------------------------------------------------
9757
9757
  _stateScriptDataDoubleEscapeEnd(t) {
9758
- if (this.preprocessor.startsWith(xt.SCRIPT, !1) && Lc(this.preprocessor.peek(xt.SCRIPT.length))) {
9758
+ if (this.preprocessor.startsWith(St.SCRIPT, !1) && Lc(this.preprocessor.peek(St.SCRIPT.length))) {
9759
9759
  this._emitCodePoint(t);
9760
- for (let n = 0; n < xt.SCRIPT.length; n++)
9760
+ for (let n = 0; n < St.SCRIPT.length; n++)
9761
9761
  this._emitCodePoint(this._consume());
9762
9762
  this.state = N.SCRIPT_DATA_ESCAPED;
9763
9763
  } else this._ensureHibernation() || (this.state = N.SCRIPT_DATA_DOUBLE_ESCAPED, this._stateScriptDataDoubleEscaped(t));
@@ -10026,7 +10026,7 @@ class G2 {
10026
10026
  // Markup declaration open state
10027
10027
  //------------------------------------------------------------------
10028
10028
  _stateMarkupDeclarationOpen(t) {
10029
- this._consumeSequenceIfMatch(xt.DASH_DASH, !0) ? (this._createCommentToken(xt.DASH_DASH.length + 1), this.state = N.COMMENT_START) : this._consumeSequenceIfMatch(xt.DOCTYPE, !1) ? (this.currentLocation = this.getCurrentLocation(xt.DOCTYPE.length + 1), this.state = N.DOCTYPE) : this._consumeSequenceIfMatch(xt.CDATA_START, !0) ? this.inForeignNode ? this.state = N.CDATA_SECTION : (this._err(Y.cdataInHtmlContent), this._createCommentToken(xt.CDATA_START.length + 1), this.currentToken.data = "[CDATA[", this.state = N.BOGUS_COMMENT) : this._ensureHibernation() || (this._err(Y.incorrectlyOpenedComment), this._createCommentToken(2), this.state = N.BOGUS_COMMENT, this._stateBogusComment(t));
10029
+ this._consumeSequenceIfMatch(St.DASH_DASH, !0) ? (this._createCommentToken(St.DASH_DASH.length + 1), this.state = N.COMMENT_START) : this._consumeSequenceIfMatch(St.DOCTYPE, !1) ? (this.currentLocation = this.getCurrentLocation(St.DOCTYPE.length + 1), this.state = N.DOCTYPE) : this._consumeSequenceIfMatch(St.CDATA_START, !0) ? this.inForeignNode ? this.state = N.CDATA_SECTION : (this._err(Y.cdataInHtmlContent), this._createCommentToken(St.CDATA_START.length + 1), this.currentToken.data = "[CDATA[", this.state = N.BOGUS_COMMENT) : this._ensureHibernation() || (this._err(Y.incorrectlyOpenedComment), this._createCommentToken(2), this.state = N.BOGUS_COMMENT, this._stateBogusComment(t));
10030
10030
  }
10031
10031
  // Comment start state
10032
10032
  //------------------------------------------------------------------
@@ -10291,7 +10291,7 @@ class G2 {
10291
10291
  break;
10292
10292
  }
10293
10293
  default:
10294
- this._consumeSequenceIfMatch(xt.PUBLIC, !1) ? this.state = N.AFTER_DOCTYPE_PUBLIC_KEYWORD : this._consumeSequenceIfMatch(xt.SYSTEM, !1) ? this.state = N.AFTER_DOCTYPE_SYSTEM_KEYWORD : this._ensureHibernation() || (this._err(Y.invalidCharacterSequenceAfterDoctypeName), n.forceQuirks = !0, this.state = N.BOGUS_DOCTYPE, this._stateBogusDoctype(t));
10294
+ this._consumeSequenceIfMatch(St.PUBLIC, !1) ? this.state = N.AFTER_DOCTYPE_PUBLIC_KEYWORD : this._consumeSequenceIfMatch(St.SYSTEM, !1) ? this.state = N.AFTER_DOCTYPE_SYSTEM_KEYWORD : this._ensureHibernation() || (this._err(Y.invalidCharacterSequenceAfterDoctypeName), n.forceQuirks = !0, this.state = N.BOGUS_DOCTYPE, this._stateBogusDoctype(t));
10295
10295
  }
10296
10296
  }
10297
10297
  // After DOCTYPE public keyword state
@@ -11653,7 +11653,7 @@ class $c {
11653
11653
  const r = n.location, l = this.treeAdapter.getTagName(t), a = (
11654
11654
  // NOTE: For cases like <p> <p> </p> - First 'p' closes without a closing
11655
11655
  // tag and for cases like <td> <p> </td> - 'p' closes without a closing tag.
11656
- n.type === Ae.END_TAG && l === n.tagName ? {
11656
+ n.type === Ne.END_TAG && l === n.tagName ? {
11657
11657
  endTag: { ...r },
11658
11658
  endLine: r.endLine,
11659
11659
  endCol: r.endCol,
@@ -11682,35 +11682,35 @@ class $c {
11682
11682
  /** @protected */
11683
11683
  _processToken(t) {
11684
11684
  switch (t.type) {
11685
- case Ae.CHARACTER: {
11685
+ case Ne.CHARACTER: {
11686
11686
  this.onCharacter(t);
11687
11687
  break;
11688
11688
  }
11689
- case Ae.NULL_CHARACTER: {
11689
+ case Ne.NULL_CHARACTER: {
11690
11690
  this.onNullCharacter(t);
11691
11691
  break;
11692
11692
  }
11693
- case Ae.COMMENT: {
11693
+ case Ne.COMMENT: {
11694
11694
  this.onComment(t);
11695
11695
  break;
11696
11696
  }
11697
- case Ae.DOCTYPE: {
11697
+ case Ne.DOCTYPE: {
11698
11698
  this.onDoctype(t);
11699
11699
  break;
11700
11700
  }
11701
- case Ae.START_TAG: {
11701
+ case Ne.START_TAG: {
11702
11702
  this._processStartTag(t);
11703
11703
  break;
11704
11704
  }
11705
- case Ae.END_TAG: {
11705
+ case Ne.END_TAG: {
11706
11706
  this.onEndTag(t);
11707
11707
  break;
11708
11708
  }
11709
- case Ae.EOF: {
11709
+ case Ne.EOF: {
11710
11710
  this.onEof(t);
11711
11711
  break;
11712
11712
  }
11713
- case Ae.WHITESPACE_CHARACTER: {
11713
+ case Ne.WHITESPACE_CHARACTER: {
11714
11714
  this.onWhitespaceCharacter(t);
11715
11715
  break;
11716
11716
  }
@@ -12092,7 +12092,7 @@ class $c {
12092
12092
  break;
12093
12093
  }
12094
12094
  case M.IN_BODY: {
12095
- ht(this, t);
12095
+ pt(this, t);
12096
12096
  break;
12097
12097
  }
12098
12098
  case M.IN_TABLE: {
@@ -12459,7 +12459,7 @@ function dl(e, t) {
12459
12459
  function PE(e, t) {
12460
12460
  switch (t.tagID) {
12461
12461
  case p.HTML: {
12462
- ht(e, t);
12462
+ pt(e, t);
12463
12463
  break;
12464
12464
  }
12465
12465
  case p.HEAD: {
@@ -12480,7 +12480,7 @@ function fl(e, t) {
12480
12480
  function Gt(e, t) {
12481
12481
  switch (t.tagID) {
12482
12482
  case p.HTML: {
12483
- ht(e, t);
12483
+ pt(e, t);
12484
12484
  break;
12485
12485
  }
12486
12486
  case p.BASE:
@@ -12549,7 +12549,7 @@ function hl(e, t) {
12549
12549
  function HE(e, t) {
12550
12550
  switch (t.tagID) {
12551
12551
  case p.HTML: {
12552
- ht(e, t);
12552
+ pt(e, t);
12553
12553
  break;
12554
12554
  }
12555
12555
  case p.BASEFONT:
@@ -12585,13 +12585,13 @@ function UE(e, t) {
12585
12585
  }
12586
12586
  }
12587
12587
  function pl(e, t) {
12588
- const n = t.type === Ae.EOF ? Y.openElementsLeftAfterEof : Y.disallowedContentInNoscriptInHead;
12588
+ const n = t.type === Ne.EOF ? Y.openElementsLeftAfterEof : Y.disallowedContentInNoscriptInHead;
12589
12589
  e._err(t, n), e.openElements.pop(), e.insertionMode = M.IN_HEAD, e._processToken(t);
12590
12590
  }
12591
12591
  function zE(e, t) {
12592
12592
  switch (t.tagID) {
12593
12593
  case p.HTML: {
12594
- ht(e, t);
12594
+ pt(e, t);
12595
12595
  break;
12596
12596
  }
12597
12597
  case p.BODY: {
@@ -12644,27 +12644,27 @@ function ml(e, t) {
12644
12644
  }
12645
12645
  function ii(e, t) {
12646
12646
  switch (t.type) {
12647
- case Ae.CHARACTER: {
12647
+ case Ne.CHARACTER: {
12648
12648
  Wh(e, t);
12649
12649
  break;
12650
12650
  }
12651
- case Ae.WHITESPACE_CHARACTER: {
12651
+ case Ne.WHITESPACE_CHARACTER: {
12652
12652
  qh(e, t);
12653
12653
  break;
12654
12654
  }
12655
- case Ae.COMMENT: {
12655
+ case Ne.COMMENT: {
12656
12656
  $s(e, t);
12657
12657
  break;
12658
12658
  }
12659
- case Ae.START_TAG: {
12660
- ht(e, t);
12659
+ case Ne.START_TAG: {
12660
+ pt(e, t);
12661
12661
  break;
12662
12662
  }
12663
- case Ae.END_TAG: {
12663
+ case Ne.END_TAG: {
12664
12664
  si(e, t);
12665
12665
  break;
12666
12666
  }
12667
- case Ae.EOF: {
12667
+ case Ne.EOF: {
12668
12668
  Kh(e, t);
12669
12669
  break;
12670
12670
  }
@@ -12788,7 +12788,7 @@ function bT(e, t) {
12788
12788
  function Wc(e, t) {
12789
12789
  e._reconstructActiveFormattingElements(), e._insertElement(t, G.HTML);
12790
12790
  }
12791
- function ht(e, t) {
12791
+ function pt(e, t) {
12792
12792
  switch (t.tagID) {
12793
12793
  case p.I:
12794
12794
  case p.S:
@@ -13161,11 +13161,11 @@ function wT(e, t) {
13161
13161
  function Qi(e, t) {
13162
13162
  if (e.openElements.currentTagId !== void 0 && $h.has(e.openElements.currentTagId))
13163
13163
  switch (e.pendingCharacterTokens.length = 0, e.hasNonWhitespacePendingCharacterToken = !1, e.originalInsertionMode = e.insertionMode, e.insertionMode = M.IN_TABLE_TEXT, t.type) {
13164
- case Ae.CHARACTER: {
13164
+ case Ne.CHARACTER: {
13165
13165
  Xh(e, t);
13166
13166
  break;
13167
13167
  }
13168
- case Ae.WHITESPACE_CHARACTER: {
13168
+ case Ne.WHITESPACE_CHARACTER: {
13169
13169
  Qh(e, t);
13170
13170
  break;
13171
13171
  }
@@ -13294,7 +13294,7 @@ function nl(e, t) {
13294
13294
  const Jh = /* @__PURE__ */ new Set([p.CAPTION, p.COL, p.COLGROUP, p.TBODY, p.TD, p.TFOOT, p.TH, p.THEAD, p.TR]);
13295
13295
  function BT(e, t) {
13296
13296
  const n = t.tagID;
13297
- Jh.has(n) ? e.openElements.hasInTableScope(p.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(p.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = M.IN_TABLE, Rr(e, t)) : ht(e, t);
13297
+ Jh.has(n) ? e.openElements.hasInTableScope(p.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(p.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = M.IN_TABLE, Rr(e, t)) : pt(e, t);
13298
13298
  }
13299
13299
  function FT(e, t) {
13300
13300
  const n = t.tagID;
@@ -13322,7 +13322,7 @@ function FT(e, t) {
13322
13322
  function Uo(e, t) {
13323
13323
  switch (t.tagID) {
13324
13324
  case p.HTML: {
13325
- ht(e, t);
13325
+ pt(e, t);
13326
13326
  break;
13327
13327
  }
13328
13328
  case p.COL: {
@@ -13457,7 +13457,7 @@ function Zh(e, t) {
13457
13457
  }
13458
13458
  function UT(e, t) {
13459
13459
  const n = t.tagID;
13460
- Jh.has(n) ? (e.openElements.hasInTableScope(p.TD) || e.openElements.hasInTableScope(p.TH)) && (e._closeTableCell(), ui(e, t)) : ht(e, t);
13460
+ Jh.has(n) ? (e.openElements.hasInTableScope(p.TD) || e.openElements.hasInTableScope(p.TH)) && (e._closeTableCell(), ui(e, t)) : pt(e, t);
13461
13461
  }
13462
13462
  function zT(e, t) {
13463
13463
  const n = t.tagID;
@@ -13488,7 +13488,7 @@ function zT(e, t) {
13488
13488
  function ep(e, t) {
13489
13489
  switch (t.tagID) {
13490
13490
  case p.HTML: {
13491
- ht(e, t);
13491
+ pt(e, t);
13492
13492
  break;
13493
13493
  }
13494
13494
  case p.OPTION: {
@@ -13584,7 +13584,7 @@ function qT(e, t) {
13584
13584
  break;
13585
13585
  }
13586
13586
  default:
13587
- e.tmplInsertionModeStack[0] = M.IN_BODY, e.insertionMode = M.IN_BODY, ht(e, t);
13587
+ e.tmplInsertionModeStack[0] = M.IN_BODY, e.insertionMode = M.IN_BODY, pt(e, t);
13588
13588
  }
13589
13589
  }
13590
13590
  function WT(e, t) {
@@ -13594,7 +13594,7 @@ function np(e, t) {
13594
13594
  e.openElements.tmplCount > 0 ? (e.openElements.popUntilTagNamePopped(p.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode(), e.onEof(t)) : Ho(e, t);
13595
13595
  }
13596
13596
  function YT(e, t) {
13597
- t.tagID === p.HTML ? ht(e, t) : La(e, t);
13597
+ t.tagID === p.HTML ? pt(e, t) : La(e, t);
13598
13598
  }
13599
13599
  function rp(e, t) {
13600
13600
  var n;
@@ -13613,7 +13613,7 @@ function La(e, t) {
13613
13613
  function jT(e, t) {
13614
13614
  switch (t.tagID) {
13615
13615
  case p.HTML: {
13616
- ht(e, t);
13616
+ pt(e, t);
13617
13617
  break;
13618
13618
  }
13619
13619
  case p.FRAMESET: {
@@ -13636,7 +13636,7 @@ function GT(e, t) {
13636
13636
  function KT(e, t) {
13637
13637
  switch (t.tagID) {
13638
13638
  case p.HTML: {
13639
- ht(e, t);
13639
+ pt(e, t);
13640
13640
  break;
13641
13641
  }
13642
13642
  case p.NOFRAMES: {
@@ -13649,7 +13649,7 @@ function QT(e, t) {
13649
13649
  t.tagID === p.HTML && (e.insertionMode = M.AFTER_AFTER_FRAMESET);
13650
13650
  }
13651
13651
  function XT(e, t) {
13652
- t.tagID === p.HTML ? ht(e, t) : xa(e, t);
13652
+ t.tagID === p.HTML ? pt(e, t) : xa(e, t);
13653
13653
  }
13654
13654
  function xa(e, t) {
13655
13655
  e.insertionMode = M.IN_BODY, ii(e, t);
@@ -13657,7 +13657,7 @@ function xa(e, t) {
13657
13657
  function JT(e, t) {
13658
13658
  switch (t.tagID) {
13659
13659
  case p.HTML: {
13660
- ht(e, t);
13660
+ pt(e, t);
13661
13661
  break;
13662
13662
  }
13663
13663
  case p.NOFRAMES: {
@@ -13754,7 +13754,7 @@ function i3(e, t) {
13754
13754
  function s3(e, t) {
13755
13755
  t.parser.tokenizer.state > 4 && (t.parser.tokenizer.state = 0);
13756
13756
  const n = {
13757
- type: Ae.CHARACTER,
13757
+ type: Ne.CHARACTER,
13758
13758
  chars: e.value,
13759
13759
  location: ql(e)
13760
13760
  };
@@ -13762,7 +13762,7 @@ function s3(e, t) {
13762
13762
  }
13763
13763
  function o3(e, t) {
13764
13764
  const n = {
13765
- type: Ae.DOCTYPE,
13765
+ type: Ne.DOCTYPE,
13766
13766
  name: "html",
13767
13767
  forceQuirks: !1,
13768
13768
  publicId: "",
@@ -13785,7 +13785,7 @@ function u3(e, t) {
13785
13785
  }
13786
13786
  function sp(e, t) {
13787
13787
  const n = e.value, r = {
13788
- type: Ae.COMMENT,
13788
+ type: Ne.COMMENT,
13789
13789
  data: n,
13790
13790
  location: ql(e)
13791
13791
  };
@@ -13844,7 +13844,7 @@ function f3(e, t) {
13844
13844
  { ...e, children: [] },
13845
13845
  { space: l === Gn.svg ? "svg" : "html" }
13846
13846
  ), i = {
13847
- type: Ae.START_TAG,
13847
+ type: Ne.START_TAG,
13848
13848
  tagName: n,
13849
13849
  tagID: $r(n),
13850
13850
  // We always send start and end tags.
@@ -13862,7 +13862,7 @@ function h3(e, t) {
13862
13862
  if (!t.parser.tokenizer.inForeignNode && w2.includes(n) || t.parser.tokenizer.state === qe.PLAINTEXT) return;
13863
13863
  qr(t, ti(e));
13864
13864
  const r = {
13865
- type: Ae.END_TAG,
13865
+ type: Ne.END_TAG,
13866
13866
  tagName: n,
13867
13867
  tagID: $r(n),
13868
13868
  selfClosing: !1,
@@ -15213,7 +15213,7 @@ const CC = {
15213
15213
  onClose: r
15214
15214
  }) => {
15215
15215
  const l = pr(), a = Array.isArray(e.platforms) ? e.platforms : [], i = a.length, [s, o] = J(t), [u, c] = J(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)), y = h[g], I = m[g] || "", k = (e.description || "").trim(), R = (e.disclaimer || "").trim(), w = i > 1;
15216
- be(() => {
15216
+ ge(() => {
15217
15217
  const O = (_) => {
15218
15218
  _.key === "Escape" ? r() : _.key === "ArrowLeft" && g > 0 ? c(g - 1) : _.key === "ArrowRight" && g < b - 1 && c(g + 1);
15219
15219
  };
@@ -15432,7 +15432,7 @@ const CC = {
15432
15432
  );
15433
15433
  We(() => {
15434
15434
  b.current !== i ? (b.current = i, w(!1)) : w(!0);
15435
- }, [w, i, s]), be(() => {
15435
+ }, [w, i, s]), ge(() => {
15436
15436
  const A = h.current;
15437
15437
  if (!A || typeof ResizeObserver > "u") return;
15438
15438
  const P = A.closest(".rte-editor");
@@ -15660,7 +15660,7 @@ const Yo = {
15660
15660
  return () => {
15661
15661
  window.cancelAnimationFrame(f), window.clearTimeout(h);
15662
15662
  };
15663
- }, [d]), be(() => {
15663
+ }, [d]), ge(() => {
15664
15664
  if (!("fonts" in document)) return;
15665
15665
  let f = !1;
15666
15666
  const h = document.fonts;
@@ -15753,18 +15753,18 @@ const vp = ye.memo(
15753
15753
  const _ = m.current;
15754
15754
  if (!_) return;
15755
15755
  const A = _.querySelector(".ant-select-selection-item"), P = _.querySelector(".ant-select-selection-placeholder"), S = A || P, B = (S?.textContent || "").trim() || R(), z = _.querySelector(".ant-select-selector"), L = S || z || _, E = window.getComputedStyle(L), F = S ? E.fontSize : "16px", $ = E.fontFamily || "sans-serif", q = E.fontWeight || "400", C = `${E.fontStyle || "normal"} ${q} ${F} ${$}`, ce = document.createElement("canvas").getContext("2d"), D = ce ? Math.ceil((ce.font = C, ce.measureText(B).width || 0)) : 0;
15756
- let me = 0;
15756
+ let be = 0;
15757
15757
  if (z) {
15758
15758
  const Te = window.getComputedStyle(z);
15759
- me = (Number.parseFloat(Te.paddingLeft) || 0) + (Number.parseFloat(Te.paddingRight) || 0);
15759
+ be = (Number.parseFloat(Te.paddingLeft) || 0) + (Number.parseFloat(Te.paddingRight) || 0);
15760
15760
  }
15761
- const Ie = _.querySelector(".ant-select-arrow"), Ne = Ie ? Math.ceil(Ie.getBoundingClientRect().width) : 12, fe = _.querySelector(".ant-select-clear");
15761
+ const Ie = _.querySelector(".ant-select-arrow"), we = Ie ? Math.ceil(Ie.getBoundingClientRect().width) : 12, fe = _.querySelector(".ant-select-clear");
15762
15762
  let pe = 0;
15763
15763
  if (fe) {
15764
15764
  const Te = window.getComputedStyle(fe);
15765
15765
  Te.display !== "none" && Te.visibility !== "hidden" && (pe = Math.ceil(fe.getBoundingClientRect().width));
15766
15766
  }
15767
- const Le = Math.min(240, Math.max(80, D + me + Ne + pe + 4));
15767
+ const Le = Math.min(240, Math.max(80, D + be + we + pe + 4));
15768
15768
  h((Te) => Te === Le ? Te : Le);
15769
15769
  }, [R]);
15770
15770
  We(() => {
@@ -15772,7 +15772,7 @@ const vp = ye.memo(
15772
15772
  return () => {
15773
15773
  window.cancelAnimationFrame(_), window.clearTimeout(A);
15774
15774
  };
15775
- }, [w]), be(() => {
15775
+ }, [w]), ge(() => {
15776
15776
  if (!("fonts" in document)) return;
15777
15777
  let _ = !1;
15778
15778
  const A = document.fonts;
@@ -16034,24 +16034,24 @@ function Ep() {
16034
16034
  return K ? nt : nt.endOf(u);
16035
16035
  }, ce = function(Le, Te) {
16036
16036
  return S.w(q.toDate()[Le].apply(q.toDate("s"), (K ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Te)), q);
16037
- }, D = this.$W, me = this.$M, Ie = this.$D, Ne = "set" + (this.$u ? "UTC" : "");
16037
+ }, D = this.$W, be = this.$M, Ie = this.$D, we = "set" + (this.$u ? "UTC" : "");
16038
16038
  switch (C) {
16039
16039
  case h:
16040
16040
  return K ? se(1, 0) : se(31, 11);
16041
16041
  case d:
16042
- return K ? se(1, me) : se(0, me + 1);
16042
+ return K ? se(1, be) : se(0, be + 1);
16043
16043
  case c:
16044
16044
  var fe = this.$locale().weekStart || 0, pe = (D < fe ? D + 7 : D) - fe;
16045
- return se(K ? Ie - pe : Ie + (6 - pe), me);
16045
+ return se(K ? Ie - pe : Ie + (6 - pe), be);
16046
16046
  case u:
16047
16047
  case m:
16048
- return ce(Ne + "Hours", 0);
16048
+ return ce(we + "Hours", 0);
16049
16049
  case o:
16050
- return ce(Ne + "Minutes", 1);
16050
+ return ce(we + "Minutes", 1);
16051
16051
  case s:
16052
- return ce(Ne + "Seconds", 2);
16052
+ return ce(we + "Seconds", 2);
16053
16053
  case i:
16054
- return ce(Ne + "Milliseconds", 3);
16054
+ return ce(we + "Milliseconds", 3);
16055
16055
  default:
16056
16056
  return this.clone();
16057
16057
  }
@@ -16071,9 +16071,9 @@ function Ep() {
16071
16071
  }, E.add = function(F, $) {
16072
16072
  var q, K = this;
16073
16073
  F = Number(F);
16074
- var C = S.p($), se = function(me) {
16074
+ var C = S.p($), se = function(be) {
16075
16075
  var Ie = P(K);
16076
- return S.w(Ie.date(Ie.date() + Math.round(me * F)), K);
16076
+ return S.w(Ie.date(Ie.date() + Math.round(be * F)), K);
16077
16077
  };
16078
16078
  if (C === d) return this.set(d, this.$M + F);
16079
16079
  if (C === h) return this.set(h, this.$y + F);
@@ -16086,17 +16086,17 @@ function Ep() {
16086
16086
  }, E.format = function(F) {
16087
16087
  var $ = this, q = this.$locale();
16088
16088
  if (!this.isValid()) return q.invalidDate || b;
16089
- var K = F || "YYYY-MM-DDTHH:mm:ssZ", C = S.z(this), se = this.$H, ce = this.$m, D = this.$M, me = q.weekdays, Ie = q.months, Ne = q.meridiem, fe = function(Te, nt, Dt, $t) {
16090
- return Te && (Te[nt] || Te($, K)) || Dt[nt].slice(0, $t);
16089
+ var K = F || "YYYY-MM-DDTHH:mm:ssZ", C = S.z(this), se = this.$H, ce = this.$m, D = this.$M, be = q.weekdays, Ie = q.months, we = q.meridiem, fe = function(Te, nt, Lt, $t) {
16090
+ return Te && (Te[nt] || Te($, K)) || Lt[nt].slice(0, $t);
16091
16091
  }, pe = function(Te) {
16092
16092
  return S.s(se % 12 || 12, Te, "0");
16093
- }, Le = Ne || function(Te, nt, Dt) {
16093
+ }, Le = we || function(Te, nt, Lt) {
16094
16094
  var $t = Te < 12 ? "AM" : "PM";
16095
- return Dt ? $t.toLowerCase() : $t;
16095
+ return Lt ? $t.toLowerCase() : $t;
16096
16096
  };
16097
16097
  return K.replace(y, function(Te, nt) {
16098
- return nt || function(Dt) {
16099
- switch (Dt) {
16098
+ return nt || function(Lt) {
16099
+ switch (Lt) {
16100
16100
  case "YY":
16101
16101
  return String($.$y).slice(-2);
16102
16102
  case "YYYY":
@@ -16116,11 +16116,11 @@ function Ep() {
16116
16116
  case "d":
16117
16117
  return String($.$W);
16118
16118
  case "dd":
16119
- return fe(q.weekdaysMin, $.$W, me, 2);
16119
+ return fe(q.weekdaysMin, $.$W, be, 2);
16120
16120
  case "ddd":
16121
- return fe(q.weekdaysShort, $.$W, me, 3);
16121
+ return fe(q.weekdaysShort, $.$W, be, 3);
16122
16122
  case "dddd":
16123
- return me[$.$W];
16123
+ return be[$.$W];
16124
16124
  case "H":
16125
16125
  return String(se);
16126
16126
  case "HH":
@@ -16152,7 +16152,7 @@ function Ep() {
16152
16152
  }, E.utcOffset = function() {
16153
16153
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
16154
16154
  }, E.diff = function(F, $, q) {
16155
- var K, C = this, se = S.p($), ce = P(F), D = (ce.utcOffset() - this.utcOffset()) * r, me = this - ce, Ie = function() {
16155
+ var K, C = this, se = S.p($), ce = P(F), D = (ce.utcOffset() - this.utcOffset()) * r, be = this - ce, Ie = function() {
16156
16156
  return S.m(C, ce);
16157
16157
  };
16158
16158
  switch (se) {
@@ -16166,22 +16166,22 @@ function Ep() {
16166
16166
  K = Ie() / 3;
16167
16167
  break;
16168
16168
  case c:
16169
- K = (me - D) / 6048e5;
16169
+ K = (be - D) / 6048e5;
16170
16170
  break;
16171
16171
  case u:
16172
- K = (me - D) / 864e5;
16172
+ K = (be - D) / 864e5;
16173
16173
  break;
16174
16174
  case o:
16175
- K = me / l;
16175
+ K = be / l;
16176
16176
  break;
16177
16177
  case s:
16178
- K = me / r;
16178
+ K = be / r;
16179
16179
  break;
16180
16180
  case i:
16181
- K = me / n;
16181
+ K = be / n;
16182
16182
  break;
16183
16183
  default:
16184
- K = me;
16184
+ K = be;
16185
16185
  }
16186
16186
  return q ? K : S.a(K);
16187
16187
  }, E.daysInMonth = function() {
@@ -22169,7 +22169,7 @@ const qC = [
22169
22169
  }, Cp = ye.memo(
22170
22170
  ({ node: e, value: t, onChange: n, disabled: r, error: l }) => {
22171
22171
  const a = e.cascaderOptions && e.cascaderOptions.length > 0 ? e.cascaderOptions : qC, i = e.placeholder || "请选择省市区", s = t ?? e.defaultValue, [o, u] = J(() => as(s)), [c, d] = J(0), [f, h] = J(100), m = te(null);
22172
- be(() => {
22172
+ ge(() => {
22173
22173
  u(as(s));
22174
22174
  }, [s]);
22175
22175
  const b = o.length >= 2, g = V(
@@ -22214,7 +22214,7 @@ const qC = [
22214
22214
  return () => {
22215
22215
  window.cancelAnimationFrame(w), window.clearTimeout(T);
22216
22216
  };
22217
- }, [R]), be(() => {
22217
+ }, [R]), ge(() => {
22218
22218
  if (!("fonts" in document)) return;
22219
22219
  let w = !1;
22220
22220
  const T = document.fonts;
@@ -22336,7 +22336,7 @@ const jo = (e) => {
22336
22336
  open: o
22337
22337
  }) => {
22338
22338
  const [u, c] = J(!1), [d, f] = J(null), [h, m] = J(""), b = te(0), g = te(null);
22339
- be(() => {
22339
+ ge(() => {
22340
22340
  if (!o) return;
22341
22341
  const T = ++b.current;
22342
22342
  c(!0), n({ nodeKey: e, nodeType: t }).then((O) => {
@@ -22355,7 +22355,7 @@ const jo = (e) => {
22355
22355
  (T) => s ? T.filter((O) => jC(O.url) === s) : T,
22356
22356
  [s]
22357
22357
  );
22358
- be(() => {
22358
+ ge(() => {
22359
22359
  if (!o || !s || !d) return;
22360
22360
  const T = d.tabs.find((O) => y(O.items).length > 0);
22361
22361
  T && m((O) => O === T.key ? O : T.key);
@@ -22466,14 +22466,14 @@ const jo = (e) => {
22466
22466
  new CustomEvent("rte-report-dropdown-opening", { detail: b })
22467
22467
  ), h(!0);
22468
22468
  }, [b]);
22469
- be(() => {
22469
+ ge(() => {
22470
22470
  c !== void 0 && T();
22471
- }, [c, T]), be(() => {
22471
+ }, [c, T]), ge(() => {
22472
22472
  const A = (P) => {
22473
22473
  P.detail !== b && h(!1);
22474
22474
  };
22475
22475
  return document.addEventListener("rte-report-dropdown-opening", A), () => document.removeEventListener("rte-report-dropdown-opening", A);
22476
- }, [b]), be(() => {
22476
+ }, [b]), ge(() => {
22477
22477
  if (!f) return;
22478
22478
  const A = (P) => {
22479
22479
  const S = e.current, B = P.target;
@@ -22876,7 +22876,7 @@ const kp = ({
22876
22876
  Ap.displayName = "MultiVariableSelectNode";
22877
22877
  function Np(e) {
22878
22878
  const t = Ue(() => e == null ? "" : typeof e == "string" ? e : typeof URL > "u" || typeof URL.createObjectURL != "function" ? "" : URL.createObjectURL(e), [e]);
22879
- return be(() => {
22879
+ return ge(() => {
22880
22880
  if (t && !(typeof e != "object" || e === null))
22881
22881
  return () => {
22882
22882
  typeof URL < "u" && typeof URL.revokeObjectURL == "function" && URL.revokeObjectURL(t);
@@ -23415,7 +23415,7 @@ const ud = 2 * Math.PI * 6.5, _p = "data:image/svg+xml,%3Csvg xmlns='http://www.
23415
23415
  C = Math.min(C + Math.random() * 15 + 5, 90), d(C);
23416
23416
  }, 400);
23417
23417
  }, [B]);
23418
- be(() => () => B(), [B]);
23418
+ ge(() => () => B(), [B]);
23419
23419
  const L = V(
23420
23420
  async (C) => {
23421
23421
  if (!a) return;
@@ -23424,13 +23424,13 @@ const ud = 2 * Math.PI * 6.5, _p = "data:image/svg+xml,%3Csvg xmlns='http://www.
23424
23424
  const ce = cd(se), D = y.current += 1;
23425
23425
  u("loading"), d(0), h(ce), b(""), z();
23426
23426
  try {
23427
- const me = await a({ url: ce });
23428
- if (B(), r(e.key, me.videoUrl), l?.(e.key, me.thumbnail || ""), u("success"), !me.thumbnail && me.videoUrl) {
23429
- const Ie = `/api/download-report-pdf?url=${encodeURIComponent(me.videoUrl)}`, Ne = await fx(Ie);
23430
- Ne && y.current === D && l?.(e.key, Ne);
23427
+ const be = await a({ url: ce });
23428
+ if (B(), r(e.key, be.videoUrl), l?.(e.key, be.thumbnail || ""), u("success"), !be.thumbnail && be.videoUrl) {
23429
+ const Ie = `/api/download-report-pdf?url=${encodeURIComponent(be.videoUrl)}`, we = await fx(Ie);
23430
+ we && y.current === D && l?.(e.key, we);
23431
23431
  }
23432
- } catch (me) {
23433
- B(), u("error"), b(me instanceof Error ? me.message : "解析失败");
23432
+ } catch (be) {
23433
+ B(), u("error"), b(be instanceof Error ? be.message : "解析失败");
23434
23434
  }
23435
23435
  },
23436
23436
  [
@@ -23858,7 +23858,7 @@ const yx = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
23858
23858
  open: s
23859
23859
  }) => {
23860
23860
  const [o, u] = J(!1), [c, d] = J(null), [f, h] = J(""), m = te(0), b = te(null);
23861
- be(() => {
23861
+ ge(() => {
23862
23862
  if (!s) return;
23863
23863
  const w = ++m.current;
23864
23864
  u(!0), t({ nodeKey: e, nodeType: "report-url" }).then((T) => {
@@ -23877,7 +23877,7 @@ const yx = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
23877
23877
  (w) => i ? w.filter((T) => Lp(T.url) === i) : w,
23878
23878
  [i]
23879
23879
  );
23880
- be(() => {
23880
+ ge(() => {
23881
23881
  if (!s || !i || !c) return;
23882
23882
  const w = c.tabs.find((T) => g(T.items).length > 0);
23883
23883
  w && h((T) => T === w.key ? T : w.key);
@@ -23982,7 +23982,7 @@ const yx = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
23982
23982
  },
23983
23983
  [r]
23984
23984
  );
23985
- be(() => {
23985
+ ge(() => {
23986
23986
  m || (P.current = "");
23987
23987
  }, [m]);
23988
23988
  const B = V(() => {
@@ -24009,7 +24009,7 @@ const yx = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
24009
24009
  },
24010
24010
  [e.key, n, s]
24011
24011
  );
24012
- be(() => {
24012
+ ge(() => {
24013
24013
  const Oe = (Ve) => {
24014
24014
  Ve.detail !== A && _(!1);
24015
24015
  };
@@ -24024,8 +24024,8 @@ const yx = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
24024
24024
  ].filter(Boolean).join(" "), q = te(null), K = te(null), [C, se] = J("bottomLeft"), ce = V(() => {
24025
24025
  const Oe = K.current;
24026
24026
  if (!Oe) return;
24027
- const Ve = Oe.getBoundingClientRect(), mt = 236, Tt = window.innerHeight - Ve.bottom;
24028
- se(Tt < mt ? "topLeft" : "bottomLeft");
24027
+ const Ve = Oe.getBoundingClientRect(), bt = 236, Ct = window.innerHeight - Ve.bottom;
24028
+ se(Ct < bt ? "topLeft" : "bottomLeft");
24029
24029
  }, []);
24030
24030
  We(() => {
24031
24031
  O && ce();
@@ -24037,15 +24037,15 @@ const yx = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
24037
24037
  }),
24038
24038
  [C]
24039
24039
  );
24040
- be(() => {
24040
+ ge(() => {
24041
24041
  if (!O) return;
24042
24042
  const Oe = (Ve) => {
24043
- const mt = K.current, Tt = Ve.target;
24044
- mt?.contains(Tt) || document.querySelector(".rte-report-dropdown-overlay")?.contains(Tt) || _(!1);
24043
+ const bt = K.current, Ct = Ve.target;
24044
+ bt?.contains(Ct) || document.querySelector(".rte-report-dropdown-overlay")?.contains(Ct) || _(!1);
24045
24045
  };
24046
24046
  return document.addEventListener("mousedown", Oe), () => document.removeEventListener("mousedown", Oe);
24047
24047
  }, [O]);
24048
- const me = I ? /* @__PURE__ */ v(
24048
+ const be = I ? /* @__PURE__ */ v(
24049
24049
  "span",
24050
24050
  {
24051
24051
  ref: q,
@@ -24082,11 +24082,11 @@ const yx = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
24082
24082
  onMouseDown: F,
24083
24083
  children: /* @__PURE__ */ v("span", { className: "rte-report-chip-clear-icon", title: "清除", children: /* @__PURE__ */ v(zf, {}) })
24084
24084
  }
24085
- ) : null, Ne = e.placeholder ?? "粘贴报告链接", fe = m || Ne, pe = te(null), [Le, Te] = J(0);
24085
+ ) : null, we = e.placeholder ?? "粘贴报告链接", fe = m || we, pe = te(null), [Le, Te] = J(0);
24086
24086
  We(() => {
24087
24087
  pe.current && Te(pe.current.offsetWidth);
24088
24088
  });
24089
- const nt = Le > 0 ? Math.max(60, Le + 2) : Cx(fe) + 6, Dt = Ue(() => {
24089
+ const nt = Le > 0 ? Math.max(60, Le + 2) : Cx(fe) + 6, Lt = Ue(() => {
24090
24090
  if (b) return "";
24091
24091
  const Oe = m.trim();
24092
24092
  return /^https?:\/\//i.test(Oe) ? Lp(Oe) : "";
@@ -24142,11 +24142,11 @@ const yx = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
24142
24142
  K.current?.querySelector(".rte-report-dropdown-host")?.click();
24143
24143
  },
24144
24144
  disabled: c || w,
24145
- placeholder: Ne,
24145
+ placeholder: we,
24146
24146
  style: { ...Tx, width: nt }
24147
24147
  }
24148
24148
  ),
24149
- me,
24149
+ be,
24150
24150
  Ie
24151
24151
  ]
24152
24152
  }
@@ -24159,7 +24159,7 @@ const yx = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
24159
24159
  onGoGenerate: a,
24160
24160
  onViewReport: o,
24161
24161
  hideCurrentSessionReport: u,
24162
- preciseMatchKey: Dt,
24162
+ preciseMatchKey: Lt,
24163
24163
  open: O
24164
24164
  }
24165
24165
  ) : null;
@@ -27218,15 +27218,15 @@ class Qs {
27218
27218
  return (this.delInfo & wa) > 0;
27219
27219
  }
27220
27220
  }
27221
- class It {
27221
+ class Ot {
27222
27222
  /**
27223
27223
  Create a position map. The modifications to the document are
27224
27224
  represented as an array of numbers, in which each group of three
27225
27225
  represents a modified chunk as `[start, oldSize, newSize]`.
27226
27226
  */
27227
27227
  constructor(t, n = !1) {
27228
- if (this.ranges = t, this.inverted = n, !t.length && It.empty)
27229
- return It.empty;
27228
+ if (this.ranges = t, this.inverted = n, !t.length && Ot.empty)
27229
+ return Ot.empty;
27230
27230
  }
27231
27231
  /**
27232
27232
  @internal
@@ -27297,7 +27297,7 @@ class It {
27297
27297
  map positions in the post-step document to the pre-step document.
27298
27298
  */
27299
27299
  invert() {
27300
- return new It(this.ranges, !this.inverted);
27300
+ return new Ot(this.ranges, !this.inverted);
27301
27301
  }
27302
27302
  /**
27303
27303
  @internal
@@ -27311,10 +27311,10 @@ class It {
27311
27311
  sub-document to a larger document, or vice-versa.
27312
27312
  */
27313
27313
  static offset(t) {
27314
- return t == 0 ? It.empty : new It(t < 0 ? [0, -t, 0] : [0, 0, t]);
27314
+ return t == 0 ? Ot.empty : new Ot(t < 0 ? [0, -t, 0] : [0, 0, t]);
27315
27315
  }
27316
27316
  }
27317
- It.empty = new It([]);
27317
+ Ot.empty = new Ot([]);
27318
27318
  class Ol {
27319
27319
  /**
27320
27320
  Create a new mapping with the given position maps.
@@ -27423,14 +27423,14 @@ class Ol {
27423
27423
  }
27424
27424
  }
27425
27425
  const ss = /* @__PURE__ */ Object.create(null);
27426
- class pt {
27426
+ class mt {
27427
27427
  /**
27428
27428
  Get the step map that represents the changes made by this step,
27429
27429
  and which can be used to transform between positions in the old
27430
27430
  and the new document.
27431
27431
  */
27432
27432
  getMap() {
27433
- return It.empty;
27433
+ return Ot.empty;
27434
27434
  }
27435
27435
  /**
27436
27436
  Try to merge this step with another one, to be applied directly
@@ -27506,7 +27506,7 @@ function Go(e, t, n) {
27506
27506
  }
27507
27507
  return Q.fromArray(r);
27508
27508
  }
27509
- class An extends pt {
27509
+ class An extends mt {
27510
27510
  /**
27511
27511
  Create a mark step.
27512
27512
  */
@@ -27544,8 +27544,8 @@ class An extends pt {
27544
27544
  return new An(n.from, n.to, t.markFromJSON(n.mark));
27545
27545
  }
27546
27546
  }
27547
- pt.jsonID("addMark", An);
27548
- class en extends pt {
27547
+ mt.jsonID("addMark", An);
27548
+ class en extends mt {
27549
27549
  /**
27550
27550
  Create a mark-removing step.
27551
27551
  */
@@ -27583,8 +27583,8 @@ class en extends pt {
27583
27583
  return new en(n.from, n.to, t.markFromJSON(n.mark));
27584
27584
  }
27585
27585
  }
27586
- pt.jsonID("removeMark", en);
27587
- class Nn extends pt {
27586
+ mt.jsonID("removeMark", en);
27587
+ class Nn extends mt {
27588
27588
  /**
27589
27589
  Create a node mark step.
27590
27590
  */
@@ -27627,8 +27627,8 @@ class Nn extends pt {
27627
27627
  return new Nn(n.pos, t.markFromJSON(n.mark));
27628
27628
  }
27629
27629
  }
27630
- pt.jsonID("addNodeMark", Nn);
27631
- class or extends pt {
27630
+ mt.jsonID("addNodeMark", Nn);
27631
+ class or extends mt {
27632
27632
  /**
27633
27633
  Create a mark-removing step.
27634
27634
  */
@@ -27662,8 +27662,8 @@ class or extends pt {
27662
27662
  return new or(n.pos, t.markFromJSON(n.mark));
27663
27663
  }
27664
27664
  }
27665
- pt.jsonID("removeNodeMark", or);
27666
- class je extends pt {
27665
+ mt.jsonID("removeNodeMark", or);
27666
+ class je extends mt {
27667
27667
  /**
27668
27668
  The given `slice` should fit the 'gap' between `from` and
27669
27669
  `to`—the depths must line up, and the surrounding nodes must be
@@ -27680,7 +27680,7 @@ class je extends pt {
27680
27680
  return this.structure && Xs(t, this.from, this.to) ? Ke.fail("Structure replace would overwrite content") : Ke.fromReplace(t, this.from, this.to, this.slice);
27681
27681
  }
27682
27682
  getMap() {
27683
- return new It([this.from, this.to - this.from, this.slice.size]);
27683
+ return new Ot([this.from, this.to - this.from, this.slice.size]);
27684
27684
  }
27685
27685
  invert(t) {
27686
27686
  return new je(this.from, this.from + this.slice.size, t.slice(this.from, this.to));
@@ -27715,8 +27715,8 @@ class je extends pt {
27715
27715
  }
27716
27716
  }
27717
27717
  je.MAP_BIAS = 1;
27718
- pt.jsonID("replace", je);
27719
- class Ze extends pt {
27718
+ mt.jsonID("replace", je);
27719
+ class Ze extends mt {
27720
27720
  /**
27721
27721
  Create a replace-around step with the given range and gap.
27722
27722
  `insert` should be the point in the slice into which the content
@@ -27736,7 +27736,7 @@ class Ze extends pt {
27736
27736
  return r ? Ke.fromReplace(t, this.from, this.to, r) : Ke.fail("Content does not fit in gap");
27737
27737
  }
27738
27738
  getMap() {
27739
- return new It([
27739
+ return new Ot([
27740
27740
  this.from,
27741
27741
  this.gapFrom - this.from,
27742
27742
  this.insert,
@@ -27773,7 +27773,7 @@ class Ze extends pt {
27773
27773
  return new Ze(n.from, n.to, n.gapFrom, n.gapTo, ae.fromJSON(t, n.slice), n.insert, !!n.structure);
27774
27774
  }
27775
27775
  }
27776
- pt.jsonID("replaceAround", Ze);
27776
+ mt.jsonID("replaceAround", Ze);
27777
27777
  function Xs(e, t, n) {
27778
27778
  let r = e.resolve(t), l = n - t, a = r.depth;
27779
27779
  for (; l > 0 && a > 0 && r.indexAfter(a) == r.node(a).childCount; )
@@ -28375,7 +28375,7 @@ function mm(e, t) {
28375
28375
  }
28376
28376
  return n;
28377
28377
  }
28378
- class Ir extends pt {
28378
+ class Ir extends mt {
28379
28379
  /**
28380
28380
  Construct an attribute step.
28381
28381
  */
@@ -28394,7 +28394,7 @@ class Ir extends pt {
28394
28394
  return Ke.fromReplace(t, this.pos, this.pos + 1, new ae(Q.from(l), 0, n.isLeaf ? 0 : 1));
28395
28395
  }
28396
28396
  getMap() {
28397
- return It.empty;
28397
+ return Ot.empty;
28398
28398
  }
28399
28399
  invert(t) {
28400
28400
  return new Ir(this.pos, this.attr, t.nodeAt(this.pos).attrs[this.attr]);
@@ -28412,8 +28412,8 @@ class Ir extends pt {
28412
28412
  return new Ir(n.pos, n.attr, n.value);
28413
28413
  }
28414
28414
  }
28415
- pt.jsonID("attr", Ir);
28416
- class Ml extends pt {
28415
+ mt.jsonID("attr", Ir);
28416
+ class Ml extends mt {
28417
28417
  /**
28418
28418
  Construct an attribute step.
28419
28419
  */
@@ -28429,7 +28429,7 @@ class Ml extends pt {
28429
28429
  return Ke.ok(r);
28430
28430
  }
28431
28431
  getMap() {
28432
- return It.empty;
28432
+ return Ot.empty;
28433
28433
  }
28434
28434
  invert(t) {
28435
28435
  return new Ml(this.attr, t.attrs[this.attr]);
@@ -28446,7 +28446,7 @@ class Ml extends pt {
28446
28446
  return new Ml(n.attr, n.value);
28447
28447
  }
28448
28448
  }
28449
- pt.jsonID("docAttr", Ml);
28449
+ mt.jsonID("docAttr", Ml);
28450
28450
  let Dr = class extends Error {
28451
28451
  };
28452
28452
  Dr = function e(t) {
@@ -28808,7 +28808,7 @@ class xe {
28808
28808
  negative, it will search backwards first.
28809
28809
  */
28810
28810
  static near(t, n = 1) {
28811
- return this.findFrom(t, n) || this.findFrom(t, -n) || new Rt(t.node(0));
28811
+ return this.findFrom(t, n) || this.findFrom(t, -n) || new Dt(t.node(0));
28812
28812
  }
28813
28813
  /**
28814
28814
  Find the cursor or leaf node selection closest to the start of
@@ -28817,14 +28817,14 @@ class xe {
28817
28817
  exists.
28818
28818
  */
28819
28819
  static atStart(t) {
28820
- return Cr(t, t, 0, 0, 1) || new Rt(t);
28820
+ return Cr(t, t, 0, 0, 1) || new Dt(t);
28821
28821
  }
28822
28822
  /**
28823
28823
  Find the cursor or leaf node selection closest to the end of the
28824
28824
  given document.
28825
28825
  */
28826
28826
  static atEnd(t) {
28827
- return Cr(t, t, t.content.size, t.childCount, -1) || new Rt(t);
28827
+ return Cr(t, t, t.content.size, t.childCount, -1) || new Dt(t);
28828
28828
  }
28829
28829
  /**
28830
28830
  Deserialize the JSON representation of a selection. Must be
@@ -29020,7 +29020,7 @@ class Xo {
29020
29020
  return r && de.isSelectable(r) ? new de(n) : xe.near(n);
29021
29021
  }
29022
29022
  }
29023
- class Rt extends xe {
29023
+ class Dt extends xe {
29024
29024
  /**
29025
29025
  Create an all-selection over the given document.
29026
29026
  */
@@ -29042,25 +29042,25 @@ class Rt extends xe {
29042
29042
  @internal
29043
29043
  */
29044
29044
  static fromJSON(t) {
29045
- return new Rt(t);
29045
+ return new Dt(t);
29046
29046
  }
29047
29047
  map(t) {
29048
- return new Rt(t);
29048
+ return new Dt(t);
29049
29049
  }
29050
29050
  eq(t) {
29051
- return t instanceof Rt;
29051
+ return t instanceof Dt;
29052
29052
  }
29053
29053
  getBookmark() {
29054
29054
  return C6;
29055
29055
  }
29056
29056
  }
29057
- xe.jsonID("all", Rt);
29057
+ xe.jsonID("all", Dt);
29058
29058
  const C6 = {
29059
29059
  map() {
29060
29060
  return this;
29061
29061
  },
29062
29062
  resolve(e) {
29063
- return new Rt(e);
29063
+ return new Dt(e);
29064
29064
  }
29065
29065
  };
29066
29066
  function Cr(e, t, n, r, l, a = !1) {
@@ -29467,7 +29467,7 @@ function bm(e, t, n) {
29467
29467
  }
29468
29468
  return n;
29469
29469
  }
29470
- class Et {
29470
+ class Tt {
29471
29471
  /**
29472
29472
  Create a plugin.
29473
29473
  */
@@ -29619,9 +29619,9 @@ function O6(e, t, n) {
29619
29619
  return { node: r.startContainer, offset: Math.min(Ut(r.startContainer), r.startOffset) };
29620
29620
  }
29621
29621
  }
29622
- const nn = typeof navigator < "u" ? navigator : null, Od = typeof document < "u" ? document : null, Hn = nn && nn.userAgent || "", Zs = /Edge\/(\d+)/.exec(Hn), vm = /MSIE \d/.exec(Hn), eo = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Hn), kt = !!(vm || eo || Zs), In = vm ? document.documentMode : eo ? +eo[1] : Zs ? +Zs[1] : 0, zt = !kt && /gecko\/(\d+)/i.test(Hn);
29622
+ const nn = typeof navigator < "u" ? navigator : null, Od = typeof document < "u" ? document : null, Hn = nn && nn.userAgent || "", Zs = /Edge\/(\d+)/.exec(Hn), vm = /MSIE \d/.exec(Hn), eo = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Hn), At = !!(vm || eo || Zs), In = vm ? document.documentMode : eo ? +eo[1] : Zs ? +Zs[1] : 0, zt = !At && /gecko\/(\d+)/i.test(Hn);
29623
29623
  zt && +(/Firefox\/(\d+)/.exec(Hn) || [0, 0])[1];
29624
- const to = !kt && /Chrome\/(\d+)/.exec(Hn), st = !!to, ym = to ? +to[1] : 0, ct = !kt && !!nn && /Apple Computer/.test(nn.vendor), Pr = ct && (/Mobile\/\w+/.test(Hn) || !!nn && nn.maxTouchPoints > 2), Bt = Pr || (nn ? /Mac/.test(nn.platform) : !1), Em = nn ? /Win/.test(nn.platform) : !1, dn = /Android \d/.test(Hn), Gl = !!Od && "webkitFontSmoothing" in Od.documentElement.style, M6 = Gl ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
29624
+ const to = !At && /Chrome\/(\d+)/.exec(Hn), st = !!to, ym = to ? +to[1] : 0, dt = !At && !!nn && /Apple Computer/.test(nn.vendor), Pr = dt && (/Mobile\/\w+/.test(Hn) || !!nn && nn.maxTouchPoints > 2), Bt = Pr || (nn ? /Mac/.test(nn.platform) : !1), Em = nn ? /Win/.test(nn.platform) : !1, dn = /Android \d/.test(Hn), Gl = !!Od && "webkitFontSmoothing" in Od.documentElement.style, M6 = Gl ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
29625
29625
  function R6(e) {
29626
29626
  let t = e.defaultView && e.defaultView.visualViewport;
29627
29627
  return t ? {
@@ -29809,7 +29809,7 @@ function V6(e, t) {
29809
29809
  if (!Jo(t, u) || (i = Sm(e.dom, t, u), !i))
29810
29810
  return null;
29811
29811
  }
29812
- if (ct)
29812
+ if (dt)
29813
29813
  for (let u = i; r && u; u = Lr(u))
29814
29814
  u.draggable && (r = void 0);
29815
29815
  if (i = H6(i, t), r) {
@@ -30217,7 +30217,7 @@ class Kl {
30217
30217
  m = g;
30218
30218
  }
30219
30219
  let s = this.domFromPos(t, t ? -1 : 1), o = n == t ? s : this.domFromPos(n, n ? -1 : 1), u = r.root.getSelection(), c = r.domSelectionRange(), d = !1;
30220
- if ((zt || ct) && t == n) {
30220
+ if ((zt || dt) && t == n) {
30221
30221
  let { node: h, offset: m } = s;
30222
30222
  if (h.nodeType == 3) {
30223
30223
  if (d = !!(m && h.nodeValue[m - 1] == `
@@ -30240,7 +30240,7 @@ class Kl {
30240
30240
  let h = c.focusNode.childNodes[c.focusOffset];
30241
30241
  h && h.contentEditable == "false" && (l = !0);
30242
30242
  }
30243
- if (!(l || d && ct) && ur(s.node, s.offset, c.anchorNode, c.anchorOffset) && ur(o.node, o.offset, c.focusNode, c.focusOffset))
30243
+ if (!(l || d && dt) && ur(s.node, s.offset, c.anchorNode, c.anchorOffset) && ur(o.node, o.offset, c.focusNode, c.focusOffset))
30244
30244
  return;
30245
30245
  let f = !1;
30246
30246
  if ((u.extend || t == n) && !(d && zt)) {
@@ -30846,7 +30846,7 @@ class X6 {
30846
30846
  for (; t instanceof cr; )
30847
30847
  n = t, t = n.children[n.children.length - 1];
30848
30848
  (!t || // Empty textblock
30849
- !(t instanceof mi) || /\n$/.test(t.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(t.node.text)) && ((ct || st) && t && t.dom.contentEditable == "false" && this.addHackNode("IMG", n), this.addHackNode("BR", this.top));
30849
+ !(t instanceof mi) || /\n$/.test(t.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(t.node.text)) && ((dt || st) && t && t.dom.contentEditable == "false" && this.addHackNode("IMG", n), this.addHackNode("BR", this.top));
30850
30850
  }
30851
30851
  addHackNode(t, n) {
30852
30852
  if (n == this.top && this.index < n.children.length && n.children[this.index].matchesHack(t))
@@ -31038,10 +31038,10 @@ function hn(e, t = !1) {
31038
31038
  e.domObserver.setCurSelection(), e.domObserver.connectSelection();
31039
31039
  }
31040
31040
  }
31041
- const Ud = ct || st && ym < 63;
31041
+ const Ud = dt || st && ym < 63;
31042
31042
  function zd(e, t) {
31043
31043
  let { node: n, offset: r } = e.docView.domFromPos(t, 0), l = r < n.childNodes.length ? n.childNodes[r] : null, a = r ? n.childNodes[r - 1] : null;
31044
- if (ct && l && l.contentEditable == "false")
31044
+ if (dt && l && l.contentEditable == "false")
31045
31045
  return ms(l);
31046
31046
  if ((!l || l.contentEditable == "false") && (!a || a.contentEditable == "false")) {
31047
31047
  if (l)
@@ -31051,7 +31051,7 @@ function zd(e, t) {
31051
31051
  }
31052
31052
  }
31053
31053
  function ms(e) {
31054
- return e.contentEditable = "true", ct && e.draggable && (e.draggable = !1, e.wasDraggable = !0), e;
31054
+ return e.contentEditable = "true", dt && e.draggable && (e.draggable = !1, e.wasDraggable = !0), e;
31055
31055
  }
31056
31056
  function Vd(e) {
31057
31057
  e.contentEditable = "false", e.wasDraggable && (e.draggable = !0, e.wasDraggable = null);
@@ -31071,7 +31071,7 @@ function lS(e) {
31071
31071
  if (!t)
31072
31072
  return;
31073
31073
  let n = e.cursorWrapper.dom, r = n.nodeName == "IMG";
31074
- r ? t.collapse(n.parentNode, at(n) + 1) : t.collapse(n, 0), !r && !e.state.selection.visible && kt && In <= 11 && (n.disabled = !0, n.disabled = !1);
31074
+ r ? t.collapse(n.parentNode, at(n) + 1) : t.collapse(n, 0), !r && !e.state.selection.visible && At && In <= 11 && (n.disabled = !0, n.disabled = !1);
31075
31075
  }
31076
31076
  function Rm(e, t) {
31077
31077
  if (t instanceof de) {
@@ -31292,7 +31292,7 @@ function jd(e, t, n) {
31292
31292
  return Cn(e, i);
31293
31293
  }
31294
31294
  if (!l.parent.inlineContent) {
31295
- let i = t < 0 ? l : a, s = r instanceof Rt ? xe.near(i, t) : xe.findFrom(i, t);
31295
+ let i = t < 0 ? l : a, s = r instanceof Dt ? xe.near(i, t) : xe.findFrom(i, t);
31296
31296
  return s ? Cn(e, s) : !1;
31297
31297
  }
31298
31298
  return !1;
@@ -31318,7 +31318,7 @@ function Kd(e, t, n) {
31318
31318
  e.domObserver.stop(), t.contentEditable = n, e.domObserver.start();
31319
31319
  }
31320
31320
  function cS(e) {
31321
- if (!ct || e.state.selection.$head.parentOffset > 0)
31321
+ if (!dt || e.state.selection.$head.parentOffset > 0)
31322
31322
  return !1;
31323
31323
  let { focusNode: t, focusOffset: n } = e.domSelectionRange();
31324
31324
  if (t && t.nodeType == 1 && n == 0 && t.firstChild && t.firstChild.contentEditable == "false") {
@@ -31545,20 +31545,20 @@ function vS(e, t) {
31545
31545
  }
31546
31546
  return new ae(l, a, i);
31547
31547
  }
31548
- const gt = {}, vt = {}, yS = { touchstart: !0, touchmove: !0 };
31548
+ const vt = {}, yt = {}, yS = { touchstart: !0, touchmove: !0 };
31549
31549
  class ES {
31550
31550
  constructor() {
31551
31551
  this.shiftKey = !1, this.mouseDown = null, this.lastKeyCode = null, this.lastKeyCodeTime = 0, this.lastClick = { time: 0, x: 0, y: 0, type: "", button: 0 }, this.lastSelectionOrigin = null, this.lastSelectionTime = 0, this.lastIOSEnter = 0, this.lastIOSEnterFallbackTimeout = -1, this.lastFocus = 0, this.lastTouch = 0, this.lastChromeDelete = 0, this.composing = !1, this.compositionNode = null, this.composingTimeout = -1, this.compositionNodes = [], this.compositionEndedAt = -2e8, this.compositionID = 1, this.badSafariComposition = !1, this.compositionPendingChanges = 0, this.domChangeCount = 0, this.eventHandlers = /* @__PURE__ */ Object.create(null), this.hideSelectionGuard = null;
31552
31552
  }
31553
31553
  }
31554
31554
  function TS(e) {
31555
- for (let t in gt) {
31556
- let n = gt[t];
31555
+ for (let t in vt) {
31556
+ let n = vt[t];
31557
31557
  e.dom.addEventListener(t, e.input.eventHandlers[t] = (r) => {
31558
- xS(e, r) && !nu(e, r) && (e.editable || !(r.type in vt)) && n(e, r);
31558
+ xS(e, r) && !nu(e, r) && (e.editable || !(r.type in yt)) && n(e, r);
31559
31559
  }, yS[t] ? { passive: !0 } : void 0);
31560
31560
  }
31561
- ct && e.dom.addEventListener("input", () => null), so(e);
31561
+ dt && e.dom.addEventListener("input", () => null), so(e);
31562
31562
  }
31563
31563
  function wn(e, t) {
31564
31564
  e.input.lastSelectionOrigin = t, e.input.lastSelectionTime = Date.now();
@@ -31592,9 +31592,9 @@ function xS(e, t) {
31592
31592
  return !0;
31593
31593
  }
31594
31594
  function SS(e, t) {
31595
- !nu(e, t) && gt[t.type] && (e.editable || !(t.type in vt)) && gt[t.type](e, t);
31595
+ !nu(e, t) && vt[t.type] && (e.editable || !(t.type in yt)) && vt[t.type](e, t);
31596
31596
  }
31597
- vt.keydown = (e, t) => {
31597
+ yt.keydown = (e, t) => {
31598
31598
  let n = t;
31599
31599
  if (e.input.shiftKey = n.keyCode == 16 || n.shiftKey, !$m(e, n) && (e.input.lastKeyCode = n.keyCode, e.input.lastKeyCodeTime = Date.now(), !(dn && st && n.keyCode == 13)))
31600
31600
  if (n.keyCode != 229 && e.domObserver.forceFlush(), Pr && n.keyCode == 13 && !n.ctrlKey && !n.altKey && !n.metaKey) {
@@ -31604,10 +31604,10 @@ vt.keydown = (e, t) => {
31604
31604
  }, 200);
31605
31605
  } else e.someProp("handleKeyDown", (r) => r(e, n)) || fS(e, n) ? n.preventDefault() : wn(e, "key");
31606
31606
  };
31607
- vt.keyup = (e, t) => {
31607
+ yt.keyup = (e, t) => {
31608
31608
  t.keyCode == 16 && (e.input.shiftKey = !1);
31609
31609
  };
31610
- vt.keypress = (e, t) => {
31610
+ yt.keypress = (e, t) => {
31611
31611
  let n = t;
31612
31612
  if ($m(e, n) || !n.charCode || n.ctrlKey && !n.altKey || Bt && n.metaKey)
31613
31613
  return;
@@ -31695,7 +31695,7 @@ function lu(e) {
31695
31695
  return qa(e);
31696
31696
  }
31697
31697
  const Vm = Bt ? "metaKey" : "ctrlKey";
31698
- gt.mousedown = (e, t) => {
31698
+ vt.mousedown = (e, t) => {
31699
31699
  let n = t;
31700
31700
  e.input.shiftKey = n.shiftKey;
31701
31701
  let r = lu(e), l = Date.now(), a = "singleClick";
@@ -31733,7 +31733,7 @@ class MS {
31733
31733
  return;
31734
31734
  let n = this.pos;
31735
31735
  this.view.state.doc != this.startDoc && (n = this.view.posAtCoords(bi(t))), this.updateAllowDefault(t), this.allowDefault || !n ? wn(this.view, "pointer") : wS(this.view, n.pos, n.inside, t, this.selectNode) ? t.preventDefault() : t.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
31736
- ct && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
31736
+ dt && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
31737
31737
  // cursor, but still report that the node is selected
31738
31738
  // when asked through getSelection. You'll then get a
31739
31739
  // situation where clicking at the point where that
@@ -31749,18 +31749,18 @@ class MS {
31749
31749
  !this.allowDefault && (Math.abs(this.event.x - t.clientX) > 4 || Math.abs(this.event.y - t.clientY) > 4) && (this.allowDefault = !0);
31750
31750
  }
31751
31751
  }
31752
- gt.touchstart = (e) => {
31752
+ vt.touchstart = (e) => {
31753
31753
  e.input.lastTouch = Date.now(), lu(e), wn(e, "pointer");
31754
31754
  };
31755
- gt.touchmove = (e) => {
31755
+ vt.touchmove = (e) => {
31756
31756
  e.input.lastTouch = Date.now(), wn(e, "pointer");
31757
31757
  };
31758
- gt.contextmenu = (e) => lu(e);
31758
+ vt.contextmenu = (e) => lu(e);
31759
31759
  function $m(e, t) {
31760
- return e.composing ? !0 : ct && Math.abs(t.timeStamp - e.input.compositionEndedAt) < 500 ? (e.input.compositionEndedAt = -2e8, !0) : !1;
31760
+ return e.composing ? !0 : dt && Math.abs(t.timeStamp - e.input.compositionEndedAt) < 500 ? (e.input.compositionEndedAt = -2e8, !0) : !1;
31761
31761
  }
31762
31762
  const RS = dn ? 5e3 : -1;
31763
- vt.compositionstart = vt.compositionupdate = (e) => {
31763
+ yt.compositionstart = yt.compositionupdate = (e) => {
31764
31764
  if (!e.composing) {
31765
31765
  e.domObserver.flush();
31766
31766
  let { state: t } = e, n = t.selection.$to;
@@ -31791,7 +31791,7 @@ function DS(e) {
31791
31791
  let r = t.childNodes[n];
31792
31792
  return r.nodeType == 1 && r.contentEditable == "false";
31793
31793
  }
31794
- vt.compositionend = (e, t) => {
31794
+ yt.compositionend = (e, t) => {
31795
31795
  e.composing && (e.input.composing = !1, e.input.compositionEndedAt = t.timeStamp, e.input.compositionPendingChanges = e.domObserver.pendingRecords().length ? e.input.compositionID : 0, e.input.compositionNode = null, e.input.badSafariComposition ? e.domObserver.forceFlush() : e.input.compositionPendingChanges && Promise.resolve().then(() => e.domObserver.flush()), e.input.compositionID++, qm(e, 20));
31796
31796
  };
31797
31797
  function qm(e, t) {
@@ -31843,8 +31843,8 @@ function BS(e, t) {
31843
31843
  n.parentNode && n.parentNode.removeChild(n), e.focus();
31844
31844
  }, 50);
31845
31845
  }
31846
- const Rl = kt && In < 15 || Pr && M6 < 604;
31847
- gt.copy = vt.cut = (e, t) => {
31846
+ const Rl = At && In < 15 || Pr && M6 < 604;
31847
+ vt.copy = yt.cut = (e, t) => {
31848
31848
  let n = t, r = e.state.selection, l = n.type == "cut";
31849
31849
  if (r.empty)
31850
31850
  return;
@@ -31880,7 +31880,7 @@ function Ym(e) {
31880
31880
  let n = e.getData("text/uri-list");
31881
31881
  return n ? n.replace(/\r?\n/g, " ") : "";
31882
31882
  }
31883
- vt.paste = (e, t) => {
31883
+ yt.paste = (e, t) => {
31884
31884
  let n = t;
31885
31885
  if (e.composing && !dn)
31886
31886
  return;
@@ -31899,7 +31899,7 @@ function Gm(e, t) {
31899
31899
  n = n || r(t);
31900
31900
  }), n != null ? !n : !t[US];
31901
31901
  }
31902
- gt.dragstart = (e, t) => {
31902
+ vt.dragstart = (e, t) => {
31903
31903
  let n = t, r = e.input.mouseDown;
31904
31904
  if (r && r.done(), !n.dataTransfer)
31905
31905
  return;
@@ -31915,14 +31915,14 @@ gt.dragstart = (e, t) => {
31915
31915
  let s = (i || e.state.selection).content(), { dom: o, text: u, slice: c } = tu(e, s);
31916
31916
  (!n.dataTransfer.files.length || !st || ym > 120) && n.dataTransfer.clearData(), n.dataTransfer.setData(Rl ? "Text" : "text/html", o.innerHTML), n.dataTransfer.effectAllowed = "copyMove", Rl || n.dataTransfer.setData("text/plain", u), e.dragging = new jm(c, Gm(e, n), i);
31917
31917
  };
31918
- gt.dragend = (e) => {
31918
+ vt.dragend = (e) => {
31919
31919
  let t = e.dragging;
31920
31920
  window.setTimeout(() => {
31921
31921
  e.dragging == t && (e.dragging = null);
31922
31922
  }, 50);
31923
31923
  };
31924
- vt.dragover = vt.dragenter = (e, t) => t.preventDefault();
31925
- vt.drop = (e, t) => {
31924
+ yt.dragover = yt.dragenter = (e, t) => t.preventDefault();
31925
+ yt.drop = (e, t) => {
31926
31926
  try {
31927
31927
  zS(e, t, e.dragging);
31928
31928
  } finally {
@@ -31966,16 +31966,16 @@ function zS(e, t, n) {
31966
31966
  }
31967
31967
  e.focus(), e.dispatch(o.setMeta("uiEvent", "drop"));
31968
31968
  }
31969
- gt.focus = (e) => {
31969
+ vt.focus = (e) => {
31970
31970
  e.input.lastFocus = Date.now(), e.focused || (e.domObserver.stop(), e.dom.classList.add("ProseMirror-focused"), e.domObserver.start(), e.focused = !0, setTimeout(() => {
31971
31971
  e.docView && e.hasFocus() && !e.domObserver.currentSelection.eq(e.domSelectionRange()) && hn(e);
31972
31972
  }, 20));
31973
31973
  };
31974
- gt.blur = (e, t) => {
31974
+ vt.blur = (e, t) => {
31975
31975
  let n = t;
31976
31976
  e.focused && (e.domObserver.stop(), e.dom.classList.remove("ProseMirror-focused"), e.domObserver.start(), n.relatedTarget && e.dom.contains(n.relatedTarget) && e.domObserver.currentSelection.clear(), e.focused = !1);
31977
31977
  };
31978
- gt.beforeinput = (e, t) => {
31978
+ vt.beforeinput = (e, t) => {
31979
31979
  if (st && dn && t.inputType == "deleteContentBackward") {
31980
31980
  e.domObserver.flushSoon();
31981
31981
  let { domChangeCount: r } = e.input;
@@ -31987,8 +31987,8 @@ gt.beforeinput = (e, t) => {
31987
31987
  }, 50);
31988
31988
  }
31989
31989
  };
31990
- for (let e in vt)
31991
- gt[e] = vt[e];
31990
+ for (let e in yt)
31991
+ vt[e] = yt[e];
31992
31992
  function Ll(e, t) {
31993
31993
  if (e == t)
31994
31994
  return !0;
@@ -32006,7 +32006,7 @@ class Wa {
32006
32006
  }
32007
32007
  map(t, n, r, l) {
32008
32008
  let { pos: a, deleted: i } = t.mapResult(n.from + l, this.side < 0 ? -1 : 1);
32009
- return i ? null : new Mt(a - r, a - r, this);
32009
+ return i ? null : new Rt(a - r, a - r, this);
32010
32010
  }
32011
32011
  valid() {
32012
32012
  return !0;
@@ -32024,7 +32024,7 @@ class Mn {
32024
32024
  }
32025
32025
  map(t, n, r, l) {
32026
32026
  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;
32027
- return a >= i ? null : new Mt(a, i, this);
32027
+ return a >= i ? null : new Rt(a, i, this);
32028
32028
  }
32029
32029
  valid(t, n) {
32030
32030
  return n.from < n.to;
@@ -32047,7 +32047,7 @@ class au {
32047
32047
  if (a.deleted)
32048
32048
  return null;
32049
32049
  let i = t.mapResult(n.to + l, -1);
32050
- return i.deleted || i.pos <= a.pos ? null : new Mt(a.pos - r, i.pos - r, this);
32050
+ return i.deleted || i.pos <= a.pos ? null : new Rt(a.pos - r, i.pos - r, this);
32051
32051
  }
32052
32052
  valid(t, n) {
32053
32053
  let { index: r, offset: l } = t.content.findIndex(n.from), a;
@@ -32059,7 +32059,7 @@ class au {
32059
32059
  destroy() {
32060
32060
  }
32061
32061
  }
32062
- class Mt {
32062
+ class Rt {
32063
32063
  /**
32064
32064
  @internal
32065
32065
  */
@@ -32070,7 +32070,7 @@ class Mt {
32070
32070
  @internal
32071
32071
  */
32072
32072
  copy(t, n) {
32073
- return new Mt(t, n, this.type);
32073
+ return new Rt(t, n, this.type);
32074
32074
  }
32075
32075
  /**
32076
32076
  @internal
@@ -32093,14 +32093,14 @@ class Mt {
32093
32093
  widget's current document position.
32094
32094
  */
32095
32095
  static widget(t, n, r) {
32096
- return new Mt(t, t, new Wa(n, r));
32096
+ return new Rt(t, t, new Wa(n, r));
32097
32097
  }
32098
32098
  /**
32099
32099
  Creates an inline decoration, which adds the given attributes to
32100
32100
  each inline node between `from` and `to`.
32101
32101
  */
32102
32102
  static inline(t, n, r, l) {
32103
- return new Mt(t, n, new Mn(r, l));
32103
+ return new Rt(t, n, new Mn(r, l));
32104
32104
  }
32105
32105
  /**
32106
32106
  Creates a node decoration. `from` and `to` should point precisely
@@ -32108,7 +32108,7 @@ class Mt {
32108
32108
  node, will receive the given attributes.
32109
32109
  */
32110
32110
  static node(t, n, r, l) {
32111
- return new Mt(t, n, new au(r, l));
32111
+ return new Rt(t, n, new au(r, l));
32112
32112
  }
32113
32113
  /**
32114
32114
  The spec provided when creating this decoration. Can be useful
@@ -32144,7 +32144,7 @@ class Ge {
32144
32144
  you must make a copy if you want need to preserve that.
32145
32145
  */
32146
32146
  static create(t, n) {
32147
- return n.length ? Ya(n, t, 0, rr) : ut;
32147
+ return n.length ? Ya(n, t, 0, rr) : ct;
32148
32148
  }
32149
32149
  /**
32150
32150
  Find all decorations in this set which touch the given range
@@ -32174,7 +32174,7 @@ class Ge {
32174
32174
  document.
32175
32175
  */
32176
32176
  map(t, n, r) {
32177
- return this == ut || t.maps.length == 0 ? this : this.mapInner(t, n, 0, 0, r || rr);
32177
+ return this == ct || t.maps.length == 0 ? this : this.mapInner(t, n, 0, 0, r || rr);
32178
32178
  }
32179
32179
  /**
32180
32180
  @internal
@@ -32185,7 +32185,7 @@ class Ge {
32185
32185
  let o = this.local[s].map(t, r, l);
32186
32186
  o && o.type.valid(n, o) ? (i || (i = [])).push(o) : a.onRemove && a.onRemove(this.local[s].spec);
32187
32187
  }
32188
- return this.children.length ? VS(this.children, i || [], t, n, r, l, a) : i ? new Ge(i.sort(lr), xr) : ut;
32188
+ return this.children.length ? VS(this.children, i || [], t, n, r, l, a) : i ? new Ge(i.sort(lr), xr) : ct;
32189
32189
  }
32190
32190
  /**
32191
32191
  Add the given array of decorations to the ones in the set,
@@ -32194,7 +32194,7 @@ class Ge {
32194
32194
  structure.
32195
32195
  */
32196
32196
  add(t, n) {
32197
- return n.length ? this == ut ? Ge.create(t, n) : this.addInner(t, n, 0) : this;
32197
+ return n.length ? this == ct ? Ge.create(t, n) : this.addInner(t, n, 0) : this;
32198
32198
  }
32199
32199
  addInner(t, n, r) {
32200
32200
  let l, a = 0;
@@ -32216,7 +32216,7 @@ class Ge {
32216
32216
  the ones in the given array.
32217
32217
  */
32218
32218
  remove(t) {
32219
- return t.length == 0 || this == ut ? this : this.removeInner(t, 0);
32219
+ return t.length == 0 || this == ct ? this : this.removeInner(t, 0);
32220
32220
  }
32221
32221
  removeInner(t, n) {
32222
32222
  let r = this.children, l = this.local;
@@ -32228,7 +32228,7 @@ class Ge {
32228
32228
  continue;
32229
32229
  r == this.children && (r = this.children.slice());
32230
32230
  let u = r[a + 2].removeInner(i, s + 1);
32231
- u != ut ? r[a + 2] = u : (r.splice(a, 3), a -= 3);
32231
+ u != ct ? r[a + 2] = u : (r.splice(a, 3), a -= 3);
32232
32232
  }
32233
32233
  if (l.length) {
32234
32234
  for (let a = 0, i; a < t.length; a++)
@@ -32236,10 +32236,10 @@ class Ge {
32236
32236
  for (let s = 0; s < l.length; s++)
32237
32237
  l[s].eq(i, n) && (l == this.local && (l = this.local.slice()), l.splice(s--, 1));
32238
32238
  }
32239
- return r == this.children && l == this.local ? this : l.length || r.length ? new Ge(l, r) : ut;
32239
+ return r == this.children && l == this.local ? this : l.length || r.length ? new Ge(l, r) : ct;
32240
32240
  }
32241
32241
  forChild(t, n) {
32242
- if (this == ut)
32242
+ if (this == ct)
32243
32243
  return this;
32244
32244
  if (n.isLeaf)
32245
32245
  return Ge.empty;
@@ -32261,7 +32261,7 @@ class Ge {
32261
32261
  let s = new Ge(l.sort(lr), xr);
32262
32262
  return r ? new Sn([s, r]) : s;
32263
32263
  }
32264
- return r || ut;
32264
+ return r || ct;
32265
32265
  }
32266
32266
  /**
32267
32267
  @internal
@@ -32289,7 +32289,7 @@ class Ge {
32289
32289
  @internal
32290
32290
  */
32291
32291
  localsInner(t) {
32292
- if (this == ut)
32292
+ if (this == ct)
32293
32293
  return xr;
32294
32294
  if (t.inlineContent || !this.local.some(Mn.is))
32295
32295
  return this.local;
@@ -32304,7 +32304,7 @@ class Ge {
32304
32304
  }
32305
32305
  Ge.empty = new Ge([], []);
32306
32306
  Ge.removeOverlap = iu;
32307
- const ut = Ge.empty;
32307
+ const ct = Ge.empty;
32308
32308
  class Sn {
32309
32309
  constructor(t) {
32310
32310
  this.members = t;
@@ -32319,7 +32319,7 @@ class Sn {
32319
32319
  let r = [];
32320
32320
  for (let l = 0; l < this.members.length; l++) {
32321
32321
  let a = this.members[l].forChild(t, n);
32322
- a != ut && (a instanceof Sn ? r = r.concat(a.members) : r.push(a));
32322
+ a != ct && (a instanceof Sn ? r = r.concat(a.members) : r.push(a));
32323
32323
  }
32324
32324
  return Sn.from(r);
32325
32325
  }
@@ -32351,7 +32351,7 @@ class Sn {
32351
32351
  static from(t) {
32352
32352
  switch (t.length) {
32353
32353
  case 0:
32354
- return ut;
32354
+ return ct;
32355
32355
  case 1:
32356
32356
  return t[0];
32357
32357
  default:
@@ -32394,7 +32394,7 @@ function VS(e, t, n, r, l, a, i) {
32394
32394
  let f = n.map(e[u + 1] + a, -1), h = f - l, { index: m, offset: b } = r.content.findIndex(d), g = r.maybeChild(m);
32395
32395
  if (g && b == d && b + g.nodeSize == h) {
32396
32396
  let y = s[u + 2].mapInner(n, g, c + 1, e[u] + a + 1, i);
32397
- y != ut ? (s[u] = d, s[u + 1] = h, s[u + 2] = y) : (s[u + 1] = -2, o = !0);
32397
+ y != ct ? (s[u] = d, s[u + 1] = h, s[u + 2] = y) : (s[u + 1] = -2, o = !0);
32398
32398
  } else
32399
32399
  o = !0;
32400
32400
  }
@@ -32418,7 +32418,7 @@ function Km(e, t) {
32418
32418
  let n = [];
32419
32419
  for (let r = 0; r < e.length; r++) {
32420
32420
  let l = e[r];
32421
- n.push(new Mt(l.from + t, l.to + t, l.type));
32421
+ n.push(new Rt(l.from + t, l.to + t, l.type));
32422
32422
  }
32423
32423
  return n;
32424
32424
  }
@@ -32456,13 +32456,13 @@ function Ya(e, t, n, r) {
32456
32456
  if (u) {
32457
32457
  a = !0;
32458
32458
  let c = Ya(u, s, n + o + 1, r);
32459
- c != ut && l.push(o, o + s.nodeSize, c);
32459
+ c != ct && l.push(o, o + s.nodeSize, c);
32460
32460
  }
32461
32461
  });
32462
32462
  let i = Km(a ? Xm(e) : e, -n).sort(lr);
32463
32463
  for (let s = 0; s < i.length; s++)
32464
32464
  i[s].type.valid(t, i[s]) || (r.onRemove && r.onRemove(i[s].spec), i.splice(s--, 1));
32465
- return i.length || l.length ? new Ge(i, l) : ut;
32465
+ return i.length || l.length ? new Ge(i, l) : ct;
32466
32466
  }
32467
32467
  function lr(e, t) {
32468
32468
  return e.from - t.from || e.to - t.to;
@@ -32494,7 +32494,7 @@ function gs(e) {
32494
32494
  let t = [];
32495
32495
  return e.someProp("decorations", (n) => {
32496
32496
  let r = n(e.state);
32497
- r && r != ut && t.push(r);
32497
+ r && r != ct && t.push(r);
32498
32498
  }), e.cursorWrapper && t.push(Ge.create(e.state.doc, [e.cursorWrapper.deco])), Sn.from(t);
32499
32499
  }
32500
32500
  const qS = {
@@ -32504,7 +32504,7 @@ const qS = {
32504
32504
  attributes: !0,
32505
32505
  attributeOldValue: !0,
32506
32506
  subtree: !0
32507
- }, WS = kt && In <= 11;
32507
+ }, WS = At && In <= 11;
32508
32508
  class YS {
32509
32509
  constructor() {
32510
32510
  this.anchorNode = null, this.anchorOffset = 0, this.focusNode = null, this.focusOffset = 0;
@@ -32524,7 +32524,7 @@ class jS {
32524
32524
  this.view = t, this.handleDOMChange = n, this.queue = [], this.flushingSoon = -1, this.observer = null, this.currentSelection = new YS(), this.onCharData = null, this.suppressingSelectionUpdates = !1, this.lastChangedTextNode = null, this.observer = window.MutationObserver && new window.MutationObserver((r) => {
32525
32525
  for (let l = 0; l < r.length; l++)
32526
32526
  this.queue.push(r[l]);
32527
- kt && In <= 11 && r.some((l) => l.type == "childList" && l.removedNodes.length || l.type == "characterData" && l.oldValue.length > l.target.nodeValue.length) ? this.flushSoon() : ct && t.composing && r.some((l) => l.type == "childList" && l.target.nodeName == "TR") ? (t.input.badSafariComposition = !0, this.flushSoon()) : this.flush();
32527
+ At && In <= 11 && r.some((l) => l.type == "childList" && l.removedNodes.length || l.type == "characterData" && l.oldValue.length > l.target.nodeValue.length) ? this.flushSoon() : dt && t.composing && r.some((l) => l.type == "childList" && l.target.nodeName == "TR") ? (t.input.badSafariComposition = !0, this.flushSoon()) : this.flush();
32528
32528
  }), WS && (this.onCharData = (r) => {
32529
32529
  this.queue.push({ target: r.target, type: "characterData", oldValue: r.prevValue }), this.flushSoon();
32530
32530
  }), this.onSelectionChange = this.onSelectionChange.bind(this);
@@ -32565,7 +32565,7 @@ class jS {
32565
32565
  if (qd(this.view)) {
32566
32566
  if (this.suppressingSelectionUpdates)
32567
32567
  return hn(this.view);
32568
- if (kt && In <= 11 && !this.view.state.selection.empty) {
32568
+ if (At && In <= 11 && !this.view.state.selection.empty) {
32569
32569
  let t = this.view.domSelectionRange();
32570
32570
  if (t.focusNode && ur(t.focusNode, t.focusOffset, t.anchorNode, t.anchorOffset))
32571
32571
  return this.flushSoon();
@@ -32655,7 +32655,7 @@ class jS {
32655
32655
  if (r.contentDOM && r.contentDOM != r.dom && !r.contentDOM.contains(t.target))
32656
32656
  return { from: r.posBefore, to: r.posAfter };
32657
32657
  let l = t.previousSibling, a = t.nextSibling;
32658
- if (kt && In <= 11 && t.addedNodes.length)
32658
+ if (At && In <= 11 && t.addedNodes.length)
32659
32659
  for (let c = 0; c < t.addedNodes.length; c++) {
32660
32660
  let { previousSibling: d, nextSibling: f } = t.addedNodes[c];
32661
32661
  (!d || Array.prototype.indexOf.call(t.addedNodes, d) < 0) && (l = d), (!f || Array.prototype.indexOf.call(t.addedNodes, f) < 0) && (a = f);
@@ -32760,10 +32760,10 @@ function ZS(e) {
32760
32760
  if (t)
32761
32761
  return t.parseRule();
32762
32762
  if (e.nodeName == "BR" && e.parentNode) {
32763
- if (ct && /^(ul|ol)$/i.test(e.parentNode.nodeName)) {
32763
+ if (dt && /^(ul|ol)$/i.test(e.parentNode.nodeName)) {
32764
32764
  let n = document.createElement("div");
32765
32765
  return n.appendChild(document.createElement("li")), { skip: n };
32766
- } else if (e.parentNode.lastChild == e || ct && /^(tr|table)$/i.test(e.parentNode.nodeName))
32766
+ } else if (e.parentNode.lastChild == e || dt && /^(tr|table)$/i.test(e.parentNode.nodeName))
32767
32767
  return { ignore: !0 };
32768
32768
  } else if (e.nodeName == "IMG" && e.getAttribute("mark-placeholder"))
32769
32769
  return { ignore: !0 };
@@ -32804,7 +32804,7 @@ function tk(e, t, n, r, l) {
32804
32804
  }
32805
32805
  return;
32806
32806
  }
32807
- e.state.selection.from < e.state.selection.to && m.start == m.endB && e.state.selection instanceof Ee && (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)), kt && 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--);
32807
+ e.state.selection.from < e.state.selection.to && m.start == m.endB && e.state.selection instanceof Ee && (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)), At && 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--);
32808
32808
  let b = u.doc.resolveNoCache(m.start - u.from), g = u.doc.resolveNoCache(m.endB - u.from), y = c.resolve(m.start), I = b.sameParent(g) && b.parent.inlineContent && y.end() >= m.endA;
32809
32809
  if ((Pr && e.input.lastIOSEnter > Date.now() - 225 && (!I || l.some((O) => O.nodeName == "DIV" || O.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", (O) => O(e, Yn(13, "Enter")))) {
32810
32810
  e.input.lastIOSEnter = 0;
@@ -32823,13 +32823,13 @@ function tk(e, t, n, r, l) {
32823
32823
  let _ = O || e.state.tr.replace(k, R, u.doc.slice(m.start - u.from, m.endB - u.from));
32824
32824
  if (u.sel) {
32825
32825
  let A = nf(e, _.doc, u.sel);
32826
- A && !(st && e.composing && A.empty && (m.start != m.endB || e.input.lastChromeDelete < Date.now() - 100) && (A.head == k || A.head == _.mapping.map(R) - 1) || kt && A.empty && A.head == k) && _.setSelection(A);
32826
+ A && !(st && e.composing && A.empty && (m.start != m.endB || e.input.lastChromeDelete < Date.now() - 100) && (A.head == k || A.head == _.mapping.map(R) - 1) || At && A.empty && A.head == k) && _.setSelection(A);
32827
32827
  }
32828
32828
  return a && _.setMeta("composition", a), _.scrollIntoView();
32829
32829
  }, T;
32830
32830
  if (I)
32831
32831
  if (b.pos == g.pos) {
32832
- kt && In <= 11 && b.parentOffset == 0 && (e.domObserver.suppressSelectionUpdates(), setTimeout(() => hn(e), 20));
32832
+ At && In <= 11 && b.parentOffset == 0 && (e.domObserver.suppressSelectionUpdates(), setTimeout(() => hn(e), 20));
32833
32833
  let O = w(e.state.tr.delete(k, R)), _ = c.resolve(m.start).marksAcross(c.resolve(m.endA));
32834
32834
  _ && O.ensureMarks(_), e.dispatch(O);
32835
32835
  } else if (
@@ -32996,7 +32996,7 @@ class Jm {
32996
32996
  let f = c == "preserve" && i && this.dom.style.overflowAnchor == null && L6(this);
32997
32997
  if (i) {
32998
32998
  this.domObserver.stop();
32999
- let h = d && (kt || st) && !this.composing && !l.selection.empty && !t.selection.empty && ak(l.selection, t.selection);
32999
+ let h = d && (At || st) && !this.composing && !l.selection.empty && !t.selection.empty && ak(l.selection, t.selection);
33000
33000
  if (d) {
33001
33001
  let m = st ? this.trackWrites = this.domSelectionRange().focusNode : null;
33002
33002
  this.composing && (this.input.compositionNode = LS(this)), (a || !this.docView.update(t.doc, u, o, this)) && (this.docView.updateOuterDeco(u), this.docView.destroy(), this.docView = Fd(t.doc, u, o, this.dom, this)), m && (!this.trackWrites || !this.dom.contains(this.trackWrites)) && (h = !0);
@@ -33071,7 +33071,7 @@ class Jm {
33071
33071
  Query whether the view has focus.
33072
33072
  */
33073
33073
  hasFocus() {
33074
- if (kt) {
33074
+ if (At) {
33075
33075
  let t = this.root.activeElement;
33076
33076
  if (t == this.dom)
33077
33077
  return !0;
@@ -33242,7 +33242,7 @@ class Jm {
33242
33242
  */
33243
33243
  domSelectionRange() {
33244
33244
  let t = this.domSelection();
33245
- return t ? ct && this.root.nodeType === 11 && I6(this.dom.ownerDocument) == this.dom && KS(this, t) || t : { focusNode: null, focusOffset: 0, anchorNode: null, anchorOffset: 0 };
33245
+ return t ? dt && this.root.nodeType === 11 && I6(this.dom.ownerDocument) == this.dom && KS(this, t) || t : { focusNode: null, focusOffset: 0, anchorNode: null, anchorOffset: 0 };
33246
33246
  }
33247
33247
  /**
33248
33248
  @internal
@@ -33261,12 +33261,12 @@ function lf(e) {
33261
33261
  if (typeof n == "function" && (n = n(e.state)), n)
33262
33262
  for (let r in n)
33263
33263
  r == "class" ? t.class += " " + n[r] : r == "style" ? t.style = (t.style ? t.style + ";" : "") + n[r] : !t[r] && r != "contenteditable" && r != "nodeName" && (t[r] = String(n[r]));
33264
- }), t.translate || (t.translate = "no"), [Mt.node(0, e.state.doc.content.size, t)];
33264
+ }), t.translate || (t.translate = "no"), [Rt.node(0, e.state.doc.content.size, t)];
33265
33265
  }
33266
33266
  function af(e) {
33267
33267
  if (e.markCursor) {
33268
33268
  let t = document.createElement("img");
33269
- t.className = "ProseMirror-separator", t.setAttribute("mark-placeholder", "true"), t.setAttribute("alt", ""), e.cursorWrapper = { dom: t, deco: Mt.widget(e.state.selection.from, t, { raw: !0, marks: e.markCursor }) };
33269
+ t.className = "ProseMirror-separator", t.setAttribute("mark-placeholder", "true"), t.setAttribute("alt", ""), e.cursorWrapper = { dom: t, deco: Rt.widget(e.state.selection.from, t, { raw: !0, marks: e.markCursor }) };
33270
33270
  } else
33271
33271
  e.cursorWrapper = null;
33272
33272
  }
@@ -33420,7 +33420,7 @@ function Es(e, t, n = !0) {
33420
33420
  return t.altKey && (e = "Alt-" + e), t.ctrlKey && (e = "Ctrl-" + e), t.metaKey && (e = "Meta-" + e), n && t.shiftKey && (e = "Shift-" + e), e;
33421
33421
  }
33422
33422
  function pk(e) {
33423
- return new Et({ props: { handleKeyDown: Zm(e) } });
33423
+ return new Tt({ props: { handleKeyDown: Zm(e) } });
33424
33424
  }
33425
33425
  function Zm(e) {
33426
33426
  let t = hk(e);
@@ -33647,7 +33647,7 @@ const Ek = (e, t) => {
33647
33647
  return !0;
33648
33648
  }, o0 = (e, t) => {
33649
33649
  let n = e.selection, { $from: r, $to: l } = n;
33650
- if (n instanceof Rt || r.parent.inlineContent || l.parent.inlineContent)
33650
+ if (n instanceof Dt || r.parent.inlineContent || l.parent.inlineContent)
33651
33651
  return !1;
33652
33652
  let a = cu(l.parent.contentMatchAt(l.indexAfter()));
33653
33653
  if (!a || !a.isTextblock)
@@ -33687,7 +33687,7 @@ function Tk(e) {
33687
33687
  a.unshift(null);
33688
33688
  }
33689
33689
  let c = t.tr;
33690
- (t.selection instanceof Ee || t.selection instanceof Rt) && c.deleteSelection();
33690
+ (t.selection instanceof Ee || t.selection instanceof Dt) && c.deleteSelection();
33691
33691
  let d = c.mapping.map(r.pos), f = fn(c.doc, d, a.length, a);
33692
33692
  if (f || (a[0] = s ? { type: s } : null, f = fn(c.doc, d, a.length, a)), !f)
33693
33693
  return !1;
@@ -34071,7 +34071,7 @@ function tt(e, t) {
34071
34071
  }
34072
34072
  return e;
34073
34073
  }
34074
- function yt(...e) {
34074
+ function Et(...e) {
34075
34075
  return e.filter((t) => !!t).reduce((t, n) => {
34076
34076
  const r = { ...t };
34077
34077
  return Object.entries(n).forEach(([l, a]) => {
@@ -34099,7 +34099,7 @@ function yt(...e) {
34099
34099
  function oo(e, t) {
34100
34100
  return t.filter((n) => n.type === e.type.name).filter((n) => n.attribute.rendered).map((n) => n.attribute.renderHTML ? n.attribute.renderHTML(e.attrs) || {} : {
34101
34101
  [n.name]: e.attrs[n.name]
34102
- }).reduce((n, r) => yt(n, r), {});
34102
+ }).reduce((n, r) => Et(n, r), {});
34103
34103
  }
34104
34104
  function h0(e) {
34105
34105
  return typeof e == "function";
@@ -34301,7 +34301,7 @@ function fa(e) {
34301
34301
  }), c;
34302
34302
  }
34303
34303
  function zk(e) {
34304
- const { editor: t, rules: n } = e, r = new Et({
34304
+ const { editor: t, rules: n } = e, r = new Tt({
34305
34305
  state: {
34306
34306
  init() {
34307
34307
  return null;
@@ -34514,7 +34514,7 @@ function Gk(e) {
34514
34514
  return i = typeof ClipboardEvent < "u" ? new ClipboardEvent("paste") : null, b;
34515
34515
  }
34516
34516
  };
34517
- return n.map((c) => new Et({
34517
+ return n.map((c) => new Tt({
34518
34518
  // we register a global drag handler to track the current drag source element
34519
34519
  view(d) {
34520
34520
  const f = (m) => {
@@ -34744,7 +34744,7 @@ class Nr {
34744
34744
  });
34745
34745
  }
34746
34746
  }
34747
- class dt {
34747
+ class ft {
34748
34748
  constructor(t = {}) {
34749
34749
  this.type = "extension", this.name = "extension", this.parent = null, this.child = null, this.config = {
34750
34750
  name: this.name,
@@ -34760,7 +34760,7 @@ class dt {
34760
34760
  })) || {};
34761
34761
  }
34762
34762
  static create(t = {}) {
34763
- return new dt(t);
34763
+ return new ft(t);
34764
34764
  }
34765
34765
  configure(t = {}) {
34766
34766
  const n = this.extend({
@@ -34770,7 +34770,7 @@ class dt {
34770
34770
  return n.name = this.name, n.parent = this.parent, n;
34771
34771
  }
34772
34772
  extend(t = {}) {
34773
- const n = new dt({ ...this.config, ...t });
34773
+ const n = new ft({ ...this.config, ...t });
34774
34774
  return n.parent = this, this.child = n, n.name = t.name ? t.name : n.parent.name, t.defaultOptions && Object.keys(t.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`), n.options = Se(oe(n, "addOptions", {
34775
34775
  name: n.name
34776
34776
  })), n.storage = Se(oe(n, "addStorage", {
@@ -34802,7 +34802,7 @@ function p0(e, t, n) {
34802
34802
  function m0(e) {
34803
34803
  return Object.fromEntries(Object.entries(e.nodes).filter(([, t]) => t.spec.toText).map(([t, n]) => [t, n.spec.toText]));
34804
34804
  }
34805
- const Qk = dt.create({
34805
+ const Qk = ft.create({
34806
34806
  name: "clipboardTextSerializer",
34807
34807
  addOptions() {
34808
34808
  return {
@@ -34811,7 +34811,7 @@ const Qk = dt.create({
34811
34811
  },
34812
34812
  addProseMirrorPlugins() {
34813
34813
  return [
34814
- new Et({
34814
+ new Tt({
34815
34815
  key: new Kt("clipboardTextSerializer"),
34816
34816
  props: {
34817
34817
  clipboardTextSerializer: () => {
@@ -35219,7 +35219,7 @@ const MA = (e, t) => ({ tr: n, state: r, dispatch: l }) => {
35219
35219
  }), !0) : !1;
35220
35220
  }, RA = () => ({ tr: e, dispatch: t }) => (t && e.scrollIntoView(), !0), DA = () => ({ tr: e, dispatch: t }) => {
35221
35221
  if (t) {
35222
- const n = new Rt(e.doc);
35222
+ const n = new Dt(e.doc);
35223
35223
  e.setSelection(n);
35224
35224
  }
35225
35225
  return !0;
@@ -35716,18 +35716,18 @@ var hN = /* @__PURE__ */ Object.freeze({
35716
35716
  wrapIn: dN,
35717
35717
  wrapInList: fN
35718
35718
  });
35719
- const pN = dt.create({
35719
+ const pN = ft.create({
35720
35720
  name: "commands",
35721
35721
  addCommands() {
35722
35722
  return {
35723
35723
  ...hN
35724
35724
  };
35725
35725
  }
35726
- }), mN = dt.create({
35726
+ }), mN = ft.create({
35727
35727
  name: "drop",
35728
35728
  addProseMirrorPlugins() {
35729
35729
  return [
35730
- new Et({
35730
+ new Tt({
35731
35731
  key: new Kt("tiptapDrop"),
35732
35732
  props: {
35733
35733
  handleDrop: (e, t, n, r) => {
@@ -35742,11 +35742,11 @@ const pN = dt.create({
35742
35742
  })
35743
35743
  ];
35744
35744
  }
35745
- }), bN = dt.create({
35745
+ }), bN = ft.create({
35746
35746
  name: "editable",
35747
35747
  addProseMirrorPlugins() {
35748
35748
  return [
35749
- new Et({
35749
+ new Tt({
35750
35750
  key: new Kt("editable"),
35751
35751
  props: {
35752
35752
  editable: () => this.editor.options.editable
@@ -35754,12 +35754,12 @@ const pN = dt.create({
35754
35754
  })
35755
35755
  ];
35756
35756
  }
35757
- }), gN = new Kt("focusEvents"), vN = dt.create({
35757
+ }), gN = new Kt("focusEvents"), vN = ft.create({
35758
35758
  name: "focusEvents",
35759
35759
  addProseMirrorPlugins() {
35760
35760
  const { editor: e } = this;
35761
35761
  return [
35762
- new Et({
35762
+ new Tt({
35763
35763
  key: gN,
35764
35764
  props: {
35765
35765
  handleDOMEvents: {
@@ -35778,7 +35778,7 @@ const pN = dt.create({
35778
35778
  })
35779
35779
  ];
35780
35780
  }
35781
- }), yN = dt.create({
35781
+ }), yN = ft.create({
35782
35782
  name: "keymap",
35783
35783
  addKeyboardShortcuts() {
35784
35784
  const e = () => this.editor.commands.first(({ commands: i }) => [
@@ -35832,7 +35832,7 @@ const pN = dt.create({
35832
35832
  // to a paragraph if necessary.
35833
35833
  // This is an alternative to ProseMirror's `AllSelection`, which doesn’t work well
35834
35834
  // with many other commands.
35835
- new Et({
35835
+ new Tt({
35836
35836
  key: new Kt("clearDocument"),
35837
35837
  appendTransaction: (e, t, n) => {
35838
35838
  if (e.some((b) => b.getMeta("composition")))
@@ -35856,11 +35856,11 @@ const pN = dt.create({
35856
35856
  })
35857
35857
  ];
35858
35858
  }
35859
- }), EN = dt.create({
35859
+ }), EN = ft.create({
35860
35860
  name: "paste",
35861
35861
  addProseMirrorPlugins() {
35862
35862
  return [
35863
- new Et({
35863
+ new Tt({
35864
35864
  key: new Kt("tiptapPaste"),
35865
35865
  props: {
35866
35866
  handlePaste: (e, t, n) => {
@@ -35874,11 +35874,11 @@ const pN = dt.create({
35874
35874
  })
35875
35875
  ];
35876
35876
  }
35877
- }), TN = dt.create({
35877
+ }), TN = ft.create({
35878
35878
  name: "tabindex",
35879
35879
  addProseMirrorPlugins() {
35880
35880
  return [
35881
- new Et({
35881
+ new Tt({
35882
35882
  key: new Kt("tabindex"),
35883
35883
  props: {
35884
35884
  attributes: () => this.editor.isEditable ? { tabindex: "0" } : {}
@@ -36516,7 +36516,7 @@ function Fl(e) {
36516
36516
  }
36517
36517
  });
36518
36518
  }
36519
- class At {
36519
+ class Nt {
36520
36520
  constructor(t = {}) {
36521
36521
  this.type = "node", this.name = "node", this.parent = null, this.child = null, this.config = {
36522
36522
  name: this.name,
@@ -36532,7 +36532,7 @@ class At {
36532
36532
  })) || {};
36533
36533
  }
36534
36534
  static create(t = {}) {
36535
- return new At(t);
36535
+ return new Nt(t);
36536
36536
  }
36537
36537
  configure(t = {}) {
36538
36538
  const n = this.extend({
@@ -36542,7 +36542,7 @@ class At {
36542
36542
  return n.name = this.name, n.parent = this.parent, n;
36543
36543
  }
36544
36544
  extend(t = {}) {
36545
- const n = new At(t);
36545
+ const n = new Nt(t);
36546
36546
  return n.parent = this, this.child = n, n.name = t.name ? t.name : n.parent.name, t.defaultOptions && Object.keys(t.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`), n.options = Se(oe(n, "addOptions", {
36547
36547
  name: n.name
36548
36548
  })), n.storage = Se(oe(n, "addStorage", {
@@ -36970,7 +36970,7 @@ function HN() {
36970
36970
  }
36971
36971
  process.env.NODE_ENV === "production" ? po.exports = FN() : po.exports = HN();
36972
36972
  var UN = po.exports;
36973
- const zN = typeof window < "u" ? We : be;
36973
+ const zN = typeof window < "u" ? We : ge;
36974
36974
  class VN {
36975
36975
  constructor(t) {
36976
36976
  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);
@@ -37156,7 +37156,7 @@ function WN(e = {}, t = []) {
37156
37156
  const n = te(e);
37157
37157
  n.current = e;
37158
37158
  const [r] = J(() => new bu(n)), l = Si.useSyncExternalStore(r.subscribe, r.getEditor, r.getServerSnapshot);
37159
- return Hf(l), be(r.onRender(t)), $N({
37159
+ return Hf(l), ge(r.onRender(t)), $N({
37160
37160
  editor: l,
37161
37161
  selector: ({ transactionNumber: a }) => e.shouldRerenderOnTransaction === !1 ? null : e.immediatelyRender && a === 0 ? 0 : a + 1
37162
37162
  }), l;
@@ -37178,7 +37178,7 @@ ye.forwardRef((e, t) => {
37178
37178
  } })
37179
37179
  );
37180
37180
  });
37181
- const KN = /^\s*>\s$/, QN = At.create({
37181
+ const KN = /^\s*>\s$/, QN = Nt.create({
37182
37182
  name: "blockquote",
37183
37183
  addOptions() {
37184
37184
  return {
@@ -37194,7 +37194,7 @@ const KN = /^\s*>\s$/, QN = At.create({
37194
37194
  ];
37195
37195
  },
37196
37196
  renderHTML({ HTMLAttributes: e }) {
37197
- return ["blockquote", yt(this.options.HTMLAttributes, e), 0];
37197
+ return ["blockquote", Et(this.options.HTMLAttributes, e), 0];
37198
37198
  },
37199
37199
  addCommands() {
37200
37200
  return {
@@ -37243,7 +37243,7 @@ const KN = /^\s*>\s$/, QN = At.create({
37243
37243
  ];
37244
37244
  },
37245
37245
  renderHTML({ HTMLAttributes: e }) {
37246
- return ["strong", yt(this.options.HTMLAttributes, e), 0];
37246
+ return ["strong", Et(this.options.HTMLAttributes, e), 0];
37247
37247
  },
37248
37248
  addCommands() {
37249
37249
  return {
@@ -37282,7 +37282,7 @@ const KN = /^\s*>\s$/, QN = At.create({
37282
37282
  })
37283
37283
  ];
37284
37284
  }
37285
- }), n4 = "listItem", Sf = "textStyle", kf = /^\s*([-+*])\s$/, r4 = At.create({
37285
+ }), n4 = "listItem", Sf = "textStyle", kf = /^\s*([-+*])\s$/, r4 = Nt.create({
37286
37286
  name: "bulletList",
37287
37287
  addOptions() {
37288
37288
  return {
@@ -37302,7 +37302,7 @@ const KN = /^\s*>\s$/, QN = At.create({
37302
37302
  ];
37303
37303
  },
37304
37304
  renderHTML({ HTMLAttributes: e }) {
37305
- return ["ul", yt(this.options.HTMLAttributes, e), 0];
37305
+ return ["ul", Et(this.options.HTMLAttributes, e), 0];
37306
37306
  },
37307
37307
  addCommands() {
37308
37308
  return {
@@ -37346,7 +37346,7 @@ const KN = /^\s*>\s$/, QN = At.create({
37346
37346
  ];
37347
37347
  },
37348
37348
  renderHTML({ HTMLAttributes: e }) {
37349
- return ["code", yt(this.options.HTMLAttributes, e), 0];
37349
+ return ["code", Et(this.options.HTMLAttributes, e), 0];
37350
37350
  },
37351
37351
  addCommands() {
37352
37352
  return {
@@ -37376,7 +37376,7 @@ const KN = /^\s*>\s$/, QN = At.create({
37376
37376
  })
37377
37377
  ];
37378
37378
  }
37379
- }), s4 = /^```([a-z]+)?[\s\n]$/, o4 = /^~~~([a-z]+)?[\s\n]$/, u4 = At.create({
37379
+ }), s4 = /^```([a-z]+)?[\s\n]$/, o4 = /^~~~([a-z]+)?[\s\n]$/, u4 = Nt.create({
37380
37380
  name: "codeBlock",
37381
37381
  addOptions() {
37382
37382
  return {
@@ -37416,7 +37416,7 @@ const KN = /^\s*>\s$/, QN = At.create({
37416
37416
  renderHTML({ node: e, HTMLAttributes: t }) {
37417
37417
  return [
37418
37418
  "pre",
37419
- yt(this.options.HTMLAttributes, t),
37419
+ Et(this.options.HTMLAttributes, t),
37420
37420
  [
37421
37421
  "code",
37422
37422
  {
@@ -37486,7 +37486,7 @@ const KN = /^\s*>\s$/, QN = At.create({
37486
37486
  return [
37487
37487
  // this plugin creates a code block for pasted content from VS Code
37488
37488
  // we can also detect the copied code language
37489
- new Et({
37489
+ new Tt({
37490
37490
  key: new Kt("codeBlockVSCodeHandler"),
37491
37491
  props: {
37492
37492
  handlePaste: (e, t) => {
@@ -37503,13 +37503,13 @@ const KN = /^\s*>\s$/, QN = At.create({
37503
37503
  })
37504
37504
  ];
37505
37505
  }
37506
- }), c4 = At.create({
37506
+ }), c4 = Nt.create({
37507
37507
  name: "doc",
37508
37508
  topNode: !0,
37509
37509
  content: "block+"
37510
37510
  });
37511
37511
  function d4(e = {}) {
37512
- return new Et({
37512
+ return new Tt({
37513
37513
  view(t) {
37514
37514
  return new f4(t, e);
37515
37515
  }
@@ -37589,7 +37589,7 @@ class f4 {
37589
37589
  this.editorView.dom.contains(t.relatedTarget) || this.setCursor(null);
37590
37590
  }
37591
37591
  }
37592
- const h4 = dt.create({
37592
+ const h4 = ft.create({
37593
37593
  name: "dropCursor",
37594
37594
  addOptions() {
37595
37595
  return {
@@ -37742,7 +37742,7 @@ function m4(e) {
37742
37742
  return !0;
37743
37743
  }
37744
37744
  function b4() {
37745
- return new Et({
37745
+ return new Tt({
37746
37746
  props: {
37747
37747
  decorations: E4,
37748
37748
  createSelectionBetween(e, t, n) {
@@ -37798,9 +37798,9 @@ function E4(e) {
37798
37798
  if (!(e.selection instanceof ze))
37799
37799
  return null;
37800
37800
  let t = document.createElement("div");
37801
- return t.className = "ProseMirror-gapcursor", Ge.create(e.doc, [Mt.widget(e.selection.head, t, { key: "gapcursor" })]);
37801
+ return t.className = "ProseMirror-gapcursor", Ge.create(e.doc, [Rt.widget(e.selection.head, t, { key: "gapcursor" })]);
37802
37802
  }
37803
- const T4 = dt.create({
37803
+ const T4 = ft.create({
37804
37804
  name: "gapCursor",
37805
37805
  addProseMirrorPlugins() {
37806
37806
  return [
@@ -37818,7 +37818,7 @@ const T4 = dt.create({
37818
37818
  allowGapCursor: (t = Se(oe(e, "allowGapCursor", n))) !== null && t !== void 0 ? t : null
37819
37819
  };
37820
37820
  }
37821
- }), C4 = At.create({
37821
+ }), C4 = Nt.create({
37822
37822
  name: "hardBreak",
37823
37823
  addOptions() {
37824
37824
  return {
@@ -37836,7 +37836,7 @@ const T4 = dt.create({
37836
37836
  ];
37837
37837
  },
37838
37838
  renderHTML({ HTMLAttributes: e }) {
37839
- return ["br", yt(this.options.HTMLAttributes, e)];
37839
+ return ["br", Et(this.options.HTMLAttributes, e)];
37840
37840
  },
37841
37841
  renderText() {
37842
37842
  return `
@@ -37868,7 +37868,7 @@ const T4 = dt.create({
37868
37868
  "Shift-Enter": () => this.editor.commands.setHardBreak()
37869
37869
  };
37870
37870
  }
37871
- }), x4 = At.create({
37871
+ }), x4 = Nt.create({
37872
37872
  name: "heading",
37873
37873
  addOptions() {
37874
37874
  return {
@@ -37894,7 +37894,7 @@ const T4 = dt.create({
37894
37894
  }));
37895
37895
  },
37896
37896
  renderHTML({ node: e, HTMLAttributes: t }) {
37897
- return [`h${this.options.levels.includes(e.attrs.level) ? e.attrs.level : this.options.levels[0]}`, yt(this.options.HTMLAttributes, t), 0];
37897
+ return [`h${this.options.levels.includes(e.attrs.level) ? e.attrs.level : this.options.levels[0]}`, Et(this.options.HTMLAttributes, t), 0];
37898
37898
  },
37899
37899
  addCommands() {
37900
37900
  return {
@@ -38221,7 +38221,7 @@ function M4(e = {}) {
38221
38221
  return e = {
38222
38222
  depth: e.depth || 100,
38223
38223
  newGroupDelay: e.newGroupDelay || 500
38224
- }, new Et({
38224
+ }, new Tt({
38225
38225
  key: ar,
38226
38226
  state: {
38227
38227
  init() {
@@ -38254,7 +38254,7 @@ function k0(e, t) {
38254
38254
  return !0;
38255
38255
  };
38256
38256
  }
38257
- const A0 = k0(!1, !0), N0 = k0(!0, !0), R4 = dt.create({
38257
+ const A0 = k0(!1, !0), N0 = k0(!0, !0), R4 = ft.create({
38258
38258
  name: "history",
38259
38259
  addOptions() {
38260
38260
  return {
@@ -38283,7 +38283,7 @@ const A0 = k0(!1, !0), N0 = k0(!0, !0), R4 = dt.create({
38283
38283
  "Shift-Mod-я": () => this.editor.commands.redo()
38284
38284
  };
38285
38285
  }
38286
- }), D4 = At.create({
38286
+ }), D4 = Nt.create({
38287
38287
  name: "horizontalRule",
38288
38288
  addOptions() {
38289
38289
  return {
@@ -38295,7 +38295,7 @@ const A0 = k0(!1, !0), N0 = k0(!0, !0), R4 = dt.create({
38295
38295
  return [{ tag: "hr" }];
38296
38296
  },
38297
38297
  renderHTML({ HTMLAttributes: e }) {
38298
- return ["hr", yt(this.options.HTMLAttributes, e)];
38298
+ return ["hr", Et(this.options.HTMLAttributes, e)];
38299
38299
  },
38300
38300
  addCommands() {
38301
38301
  return {
@@ -38361,7 +38361,7 @@ const A0 = k0(!1, !0), N0 = k0(!0, !0), R4 = dt.create({
38361
38361
  ];
38362
38362
  },
38363
38363
  renderHTML({ HTMLAttributes: e }) {
38364
- return ["em", yt(this.options.HTMLAttributes, e), 0];
38364
+ return ["em", Et(this.options.HTMLAttributes, e), 0];
38365
38365
  },
38366
38366
  addCommands() {
38367
38367
  return {
@@ -38400,7 +38400,7 @@ const A0 = k0(!1, !0), N0 = k0(!0, !0), R4 = dt.create({
38400
38400
  })
38401
38401
  ];
38402
38402
  }
38403
- }), U4 = At.create({
38403
+ }), U4 = Nt.create({
38404
38404
  name: "listItem",
38405
38405
  addOptions() {
38406
38406
  return {
@@ -38419,7 +38419,7 @@ const A0 = k0(!1, !0), N0 = k0(!0, !0), R4 = dt.create({
38419
38419
  ];
38420
38420
  },
38421
38421
  renderHTML({ HTMLAttributes: e }) {
38422
- return ["li", yt(this.options.HTMLAttributes, e), 0];
38422
+ return ["li", Et(this.options.HTMLAttributes, e), 0];
38423
38423
  },
38424
38424
  addKeyboardShortcuts() {
38425
38425
  return {
@@ -38428,7 +38428,7 @@ const A0 = k0(!1, !0), N0 = k0(!0, !0), R4 = dt.create({
38428
38428
  "Shift-Tab": () => this.editor.commands.liftListItem(this.name)
38429
38429
  };
38430
38430
  }
38431
- }), z4 = "listItem", wf = "textStyle", _f = /^(\d+)\.\s$/, V4 = At.create({
38431
+ }), z4 = "listItem", wf = "textStyle", _f = /^(\d+)\.\s$/, V4 = Nt.create({
38432
38432
  name: "orderedList",
38433
38433
  addOptions() {
38434
38434
  return {
@@ -38463,7 +38463,7 @@ const A0 = k0(!1, !0), N0 = k0(!0, !0), R4 = dt.create({
38463
38463
  },
38464
38464
  renderHTML({ HTMLAttributes: e }) {
38465
38465
  const { start: t, ...n } = e;
38466
- return t === 1 ? ["ol", yt(this.options.HTMLAttributes, n), 0] : ["ol", yt(this.options.HTMLAttributes, e), 0];
38466
+ return t === 1 ? ["ol", Et(this.options.HTMLAttributes, n), 0] : ["ol", Et(this.options.HTMLAttributes, e), 0];
38467
38467
  },
38468
38468
  addCommands() {
38469
38469
  return {
@@ -38494,7 +38494,7 @@ const A0 = k0(!1, !0), N0 = k0(!0, !0), R4 = dt.create({
38494
38494
  e
38495
38495
  ];
38496
38496
  }
38497
- }), $4 = At.create({
38497
+ }), $4 = Nt.create({
38498
38498
  name: "paragraph",
38499
38499
  priority: 1e3,
38500
38500
  addOptions() {
@@ -38510,7 +38510,7 @@ const A0 = k0(!1, !0), N0 = k0(!0, !0), R4 = dt.create({
38510
38510
  ];
38511
38511
  },
38512
38512
  renderHTML({ HTMLAttributes: e }) {
38513
- return ["p", yt(this.options.HTMLAttributes, e), 0];
38513
+ return ["p", Et(this.options.HTMLAttributes, e), 0];
38514
38514
  },
38515
38515
  addCommands() {
38516
38516
  return {
@@ -38548,7 +38548,7 @@ const A0 = k0(!1, !0), N0 = k0(!0, !0), R4 = dt.create({
38548
38548
  ];
38549
38549
  },
38550
38550
  renderHTML({ HTMLAttributes: e }) {
38551
- return ["s", yt(this.options.HTMLAttributes, e), 0];
38551
+ return ["s", Et(this.options.HTMLAttributes, e), 0];
38552
38552
  },
38553
38553
  addCommands() {
38554
38554
  return {
@@ -38578,16 +38578,16 @@ const A0 = k0(!1, !0), N0 = k0(!0, !0), R4 = dt.create({
38578
38578
  })
38579
38579
  ];
38580
38580
  }
38581
- }), j4 = At.create({
38581
+ }), j4 = Nt.create({
38582
38582
  name: "text",
38583
38583
  group: "inline"
38584
- }), G4 = dt.create({
38584
+ }), G4 = ft.create({
38585
38585
  name: "starterKit",
38586
38586
  addExtensions() {
38587
38587
  const e = [];
38588
38588
  return this.options.bold !== !1 && e.push(t4.configure(this.options.bold)), this.options.blockquote !== !1 && e.push(QN.configure(this.options.blockquote)), this.options.bulletList !== !1 && e.push(r4.configure(this.options.bulletList)), this.options.code !== !1 && e.push(i4.configure(this.options.code)), this.options.codeBlock !== !1 && e.push(u4.configure(this.options.codeBlock)), this.options.document !== !1 && e.push(c4.configure(this.options.document)), this.options.dropcursor !== !1 && e.push(h4.configure(this.options.dropcursor)), this.options.gapcursor !== !1 && e.push(T4.configure(this.options.gapcursor)), this.options.hardBreak !== !1 && e.push(C4.configure(this.options.hardBreak)), this.options.heading !== !1 && e.push(x4.configure(this.options.heading)), this.options.history !== !1 && e.push(R4.configure(this.options.history)), this.options.horizontalRule !== !1 && e.push(D4.configure(this.options.horizontalRule)), this.options.italic !== !1 && e.push(H4.configure(this.options.italic)), this.options.listItem !== !1 && e.push(U4.configure(this.options.listItem)), this.options.orderedList !== !1 && e.push(V4.configure(this.options.orderedList)), this.options.paragraph !== !1 && e.push($4.configure(this.options.paragraph)), this.options.strike !== !1 && e.push(Y4.configure(this.options.strike)), this.options.text !== !1 && e.push(j4.configure(this.options.text)), e;
38589
38589
  }
38590
- }), K4 = dt.create({
38590
+ }), K4 = ft.create({
38591
38591
  name: "placeholder",
38592
38592
  addOptions() {
38593
38593
  return {
@@ -38601,7 +38601,7 @@ const A0 = k0(!1, !0), N0 = k0(!0, !0), R4 = dt.create({
38601
38601
  },
38602
38602
  addProseMirrorPlugins() {
38603
38603
  return [
38604
- new Et({
38604
+ new Tt({
38605
38605
  key: new Kt("placeholder"),
38606
38606
  props: {
38607
38607
  decorations: ({ doc: e, selection: t }) => {
@@ -38614,7 +38614,7 @@ const A0 = k0(!1, !0), N0 = k0(!0, !0), R4 = dt.create({
38614
38614
  if ((o || !this.options.showOnlyCurrent) && u) {
38615
38615
  const c = [this.options.emptyNodeClass];
38616
38616
  a && c.push(this.options.emptyEditorClass);
38617
- const d = Mt.node(s, s + i.nodeSize, {
38617
+ const d = Rt.node(s, s + i.nodeSize, {
38618
38618
  class: c.join(" "),
38619
38619
  "data-placeholder": typeof this.options.placeholder == "function" ? this.options.placeholder({
38620
38620
  editor: this.editor,
@@ -38661,9 +38661,9 @@ const X4 = ({ expanded: e, onToggle: t }) => /* @__PURE__ */ W(
38661
38661
  ), w0 = ye.memo(
38662
38662
  ({ node: e, value: t, onChange: n, disabled: r, error: l, nodeDefaults: a, onExpandChange: i }) => {
38663
38663
  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] = J(!1), h = te(n), m = te(e.key);
38664
- be(() => {
38664
+ ge(() => {
38665
38665
  h.current = n;
38666
- }, [n]), be(() => {
38666
+ }, [n]), ge(() => {
38667
38667
  m.current = e.key;
38668
38668
  }, [e.key]);
38669
38669
  const b = WN({
@@ -38682,11 +38682,11 @@ const X4 = ({ expanded: e, onToggle: t }) => /* @__PURE__ */ W(
38682
38682
  }
38683
38683
  }
38684
38684
  });
38685
- be(() => {
38685
+ ge(() => {
38686
38686
  if (!b) return;
38687
38687
  const k = b.getHTML(), R = t ?? "";
38688
38688
  k !== R && (b.isFocused || b.commands.setContent(R, !1));
38689
- }, [t, b]), be(() => {
38689
+ }, [t, b]), ge(() => {
38690
38690
  b && b.setEditable(!r);
38691
38691
  }, [r, b]);
38692
38692
  const g = V(() => {
@@ -38992,7 +38992,7 @@ const If = (e) => typeof e == "string" || Array.isArray(e) && e.every((t) => typ
38992
38992
  };
38993
38993
  function ew(e, t, n, r, l, a) {
38994
38994
  const i = te({});
38995
- be(() => {
38995
+ ge(() => {
38996
38996
  if (!e) return;
38997
38997
  const s = Z4(r);
38998
38998
  n((u) => {
@@ -39694,7 +39694,7 @@ const gw = ["全部技能", "我的技能", "订阅技能", "系统技能"], vw
39694
39694
  S.classList.remove("is-scrolling");
39695
39695
  }, 300));
39696
39696
  }, []);
39697
- be(() => {
39697
+ ge(() => {
39698
39698
  const S = window.setTimeout(() => y(m.trim()), 300);
39699
39699
  return () => window.clearTimeout(S);
39700
39700
  }, [m]);
@@ -39717,7 +39717,7 @@ const gw = ["全部技能", "我的技能", "订阅技能", "系统技能"], vw
39717
39717
  S === R.current && h(!1);
39718
39718
  }
39719
39719
  }, [l, o, g]);
39720
- be(() => {
39720
+ ge(() => {
39721
39721
  _();
39722
39722
  }, [_]);
39723
39723
  const A = (S) => {
@@ -39832,7 +39832,7 @@ const ya = 8, Uw = () => /* @__PURE__ */ v(
39832
39832
  return S && I.current && S.observe(I.current), () => {
39833
39833
  cancelAnimationFrame(P), window.removeEventListener("scroll", w, !0), window.removeEventListener("resize", w), S?.disconnect();
39834
39834
  };
39835
- }, [h, w]), be(() => {
39835
+ }, [h, w]), ge(() => {
39836
39836
  if (!h) return;
39837
39837
  const P = (S) => {
39838
39838
  const B = S.target;
@@ -40192,9 +40192,9 @@ const Pf = 9999, Xw = ({ messageRef: e }) => {
40192
40192
  onSkillPanelOpenChange: se,
40193
40193
  selectedSkill: ce,
40194
40194
  loading: D,
40195
- hideButtons: me,
40195
+ hideButtons: be,
40196
40196
  footerPadding: Ie,
40197
- showFooterUpload: Ne,
40197
+ showFooterUpload: we,
40198
40198
  // TODO(Phase 2+): lockStructure=false 模式(text 节点可编辑)暂未在 StructuredEditor 中实现。
40199
40199
  // 当前 Phase 1 仅接收该 prop 以保证类型兼容,不传给任何子组件、不影响行为。
40200
40200
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
@@ -40204,7 +40204,7 @@ const Pf = 9999, Xw = ({ messageRef: e }) => {
40204
40204
  collapseTransitionMs: Te = 260,
40205
40205
  nodeDefaults: nt,
40206
40206
  // 展开态真实高度变化回调:消费端据此算对话列表底部留白,避免最后一条消息被输入框遮挡。
40207
- onExpandedHeightChange: Dt,
40207
+ onExpandedHeightChange: Lt,
40208
40208
  // 折叠态固定总高度(px):传入则折叠 max-height 直接用该值,不传则内部测第一行可视高度。
40209
40209
  collapsedTotalHeight: $t,
40210
40210
  // 点击空白处是否切换折叠态(默认 true)。消费端在非贴底等场景下可传 false 禁用该切换。
@@ -40218,40 +40218,40 @@ const Pf = 9999, Xw = ({ messageRef: e }) => {
40218
40218
  scrollContainerRef: Oe,
40219
40219
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
40220
40220
  autoCollapseOnScroll: Ve
40221
- } = e, [mt, Tt] = J({}), [bt, Ql] = J({}), [wt, mn] = J(u ?? []), [ki, Ai] = J({}), [j, ee] = J(mw), [ge, ke] = J(() => /* @__PURE__ */ new Set()), [Pe, rt] = J({}), [Lt, qt] = J(null), Vn = V(
40222
- () => pn?.() ?? Lt ?? document.body,
40223
- [pn, Lt]
40221
+ } = e, [bt, Ct] = J({}), [gt, Ql] = J({}), [ut, mn] = J(u ?? []), [ki, Ai] = J({}), [j, ee] = J(mw), [ve, ke] = J(() => /* @__PURE__ */ new Set()), [Pe, rt] = J({}), [Pt, qt] = J(null), Vn = V(
40222
+ () => pn?.() ?? Pt ?? document.body,
40223
+ [pn, Pt]
40224
40224
  ), an = te(null), [Qe, bn] = J(null), Wt = V((U, ie) => {
40225
40225
  bn(ie ? U : null);
40226
40226
  }, []), br = te(null), [z0, V0] = J(58), [$n, vu] = J(58), [Ni, yu] = J(!1), Eu = te(0), Tu = te(pe), [Xl, Cu] = J(!1);
40227
- Tu.current !== pe && (Tu.current = pe, Eu.current = (typeof performance < "u" ? performance.now() : Date.now()) + Te, Cu(!0)), be(() => {
40227
+ Tu.current !== pe && (Tu.current = pe, Eu.current = (typeof performance < "u" ? performance.now() : Date.now()) + Te, Cu(!0)), ge(() => {
40228
40228
  if (!Xl) return;
40229
40229
  const U = setTimeout(() => Cu(!1), Te);
40230
40230
  return () => clearTimeout(U);
40231
40231
  }, [Xl, pe, Te]);
40232
40232
  const [qn, xu] = J(""), wi = te(null), Su = te(null), [_i, ku] = J(0), Ii = te(!1);
40233
- be(() => {
40234
- if (!u || u.length === wt.length && u.every((re, ne) => {
40235
- const le = wt[ne];
40236
- return le && re.name === le.name && re.size === le.size && re.lastModified === le.lastModified;
40233
+ ge(() => {
40234
+ if (!u || u.length === ut.length && u.every((le, ne) => {
40235
+ const re = ut[ne];
40236
+ return re && le.name === re.name && le.size === re.size && le.lastModified === re.lastModified;
40237
40237
  })) return;
40238
40238
  const ie = 50 * 1024 * 1024;
40239
- if (u.reduce((re, ne) => re + ne.size, 0) > ie) {
40240
- const re = [];
40239
+ if (u.reduce((le, ne) => le + ne.size, 0) > ie) {
40240
+ const le = [];
40241
40241
  let ne = 0;
40242
- for (const le of u) {
40243
- if (ne + le.size > ie) break;
40244
- re.push(le), ne += le.size;
40242
+ for (const re of u) {
40243
+ if (ne + re.size > ie) break;
40244
+ le.push(re), ne += re.size;
40245
40245
  }
40246
- mn(re);
40246
+ mn(le);
40247
40247
  } else
40248
40248
  Ii.current = !0, mn(u);
40249
40249
  }, [u]);
40250
- const Ct = Ue(
40251
- () => pw(t, j, ge),
40252
- [t, j, ge]
40250
+ const xt = Ue(
40251
+ () => pw(t, j, ve),
40252
+ [t, j, ve]
40253
40253
  ), Oi = te(null), Au = te(!1);
40254
- be(() => {
40254
+ ge(() => {
40255
40255
  const U = t.find((ie) => ie.type === "tag")?.text ?? null;
40256
40256
  if (!Au.current) {
40257
40257
  Au.current = !0, Oi.current = U;
@@ -40267,11 +40267,11 @@ const Pf = 9999, Xw = ({ messageRef: e }) => {
40267
40267
  () => t.some((U) => U.type === "tag"),
40268
40268
  [t]
40269
40269
  ), q0 = K ?? !$0;
40270
- ew(i, mt, Tt, Ct, bt, Ql);
40270
+ ew(i, bt, Ct, xt, gt, Ql);
40271
40271
  const Gr = te(/* @__PURE__ */ new Map()), Nu = te(""), wu = (t.find((U) => U.type === "tag")?.text || "") + "||" + t.filter((U) => U.key && U.type !== "report-module" && U.type !== "markdown-module").map((U) => `${U.type}:${U.key}`).join("|");
40272
40272
  Nu.current !== wu && (Nu.current = wu, Gr.current = /* @__PURE__ */ new Map());
40273
- const [Pt, Kr] = J(null);
40274
- be(() => {
40273
+ const [_t, Kr] = J(null);
40274
+ ge(() => {
40275
40275
  ce !== void 0 && Kr(ce);
40276
40276
  }, [ce]);
40277
40277
  const W0 = V(
@@ -40285,48 +40285,48 @@ const Pf = 9999, Xw = ({ messageRef: e }) => {
40285
40285
  },
40286
40286
  [z]
40287
40287
  );
40288
- be(() => {
40288
+ ge(() => {
40289
40289
  jr && Kr(null);
40290
40290
  }, [jr]);
40291
- const { errors: j0, validate: _u, clearError: Iu } = rw(Ct), { excludedKeys: Qr, hideSeparator: G0 } = iw(Ct, mt, bt), { analyzeReport: Jl, analyzeMarkdown: Ou, analyzeMarkdownName: Mu, resolveReportName: Zl } = sw({
40291
+ const { errors: j0, validate: _u, clearError: Iu } = rw(xt), { excludedKeys: Qr, hideSeparator: G0 } = iw(xt, bt, gt), { analyzeReport: Jl, analyzeMarkdown: Ou, analyzeMarkdownName: Mu, resolveReportName: Zl } = sw({
40292
40292
  reportAnalyze: R,
40293
40293
  markdownAnalyze: P,
40294
40294
  markdownNameAnalyze: S,
40295
40295
  reportNameResolve: O
40296
40296
  }), Ru = (U) => typeof U != "string" ? !U : U.replace(/<[^>]*>/g, "").replace(/&nbsp;/gi, "").replace(/\s/g, "").replace(/[​‌‍]/g, "").trim() === "", Mi = V((U, ie) => {
40297
- Tt((re) => ({ ...re, [U]: ie })), Iu(U);
40297
+ Ct((le) => ({ ...le, [U]: ie })), Iu(U);
40298
40298
  const he = /^(.+)__module_\d+$/.exec(U);
40299
40299
  if (he && Ru(ie)) {
40300
- const re = he[1];
40301
- Ct.find(
40302
- (le) => le.key === re && le.type === "markdown-module"
40303
- ) && Tt((le) => {
40304
- const ve = { ...le, [U]: ie };
40305
- return Object.keys(ve).filter((_e) => _e.startsWith(`${re}__module_`)).every((_e) => Ru(ve[_e])) && (ee((_e) => {
40306
- if (!_e.markdownModules[re]) return _e;
40300
+ const le = he[1];
40301
+ xt.find(
40302
+ (re) => re.key === le && re.type === "markdown-module"
40303
+ ) && Ct((re) => {
40304
+ const me = { ...re, [U]: ie };
40305
+ return Object.keys(me).filter((_e) => _e.startsWith(`${le}__module_`)).every((_e) => Ru(me[_e])) && (ee((_e) => {
40306
+ if (!_e.markdownModules[le]) return _e;
40307
40307
  const Me = { ..._e.markdownModules };
40308
- return delete Me[re], { ..._e, markdownModules: Me };
40309
- }), Object.keys(ve).filter((_e) => _e.startsWith(`${re}__module_`)).forEach((_e) => delete ve[_e]), ve[re] = ""), ve;
40308
+ return delete Me[le], { ..._e, markdownModules: Me };
40309
+ }), Object.keys(me).filter((_e) => _e.startsWith(`${le}__module_`)).forEach((_e) => delete me[_e]), me[le] = ""), me;
40310
40310
  });
40311
40311
  return;
40312
40312
  }
40313
40313
  if (typeof ie == "string" && ie.trim() === "") {
40314
- const re = Ct.find((ne) => ne.key === U);
40315
- re?.type === "report-url" ? (ee((ne) => {
40314
+ const le = xt.find((ne) => ne.key === U);
40315
+ le?.type === "report-url" ? (ee((ne) => {
40316
40316
  if (!ne.reportModules[U]) return ne;
40317
- const le = { ...ne.reportModules };
40318
- return delete le[U], { ...ne, reportModules: le };
40317
+ const re = { ...ne.reportModules };
40318
+ return delete re[U], { ...ne, reportModules: re };
40319
40319
  }), rt((ne) => {
40320
40320
  if (!(U in ne)) return ne;
40321
- const le = { ...ne };
40322
- return delete le[U], le;
40323
- })) : (re?.type === "markdown" || re?.type === "markdown-name") && ee((ne) => {
40321
+ const re = { ...ne };
40322
+ return delete re[U], re;
40323
+ })) : (le?.type === "markdown" || le?.type === "markdown-name") && ee((ne) => {
40324
40324
  if (!ne.markdownModules[U]) return ne;
40325
- const le = { ...ne.markdownModules };
40326
- return delete le[U], { ...ne, markdownModules: le };
40325
+ const re = { ...ne.markdownModules };
40326
+ return delete re[U], { ...ne, markdownModules: re };
40327
40327
  });
40328
40328
  }
40329
- }, [Iu, Ct]), K0 = V(
40329
+ }, [Iu, xt]), K0 = V(
40330
40330
  (U, ie) => {
40331
40331
  Ql((he) => ({ ...he, [U]: ie }));
40332
40332
  },
@@ -40339,99 +40339,99 @@ const Pf = 9999, Xw = ({ messageRef: e }) => {
40339
40339
  if (!(U in ie)) return ie;
40340
40340
  const he = U.match(/^(.+)_(\d+)$/);
40341
40341
  if (!he) {
40342
- const we = { ...ie };
40343
- return delete we[U], we;
40344
- }
40345
- const [, re, ne] = he, le = parseInt(ne, 10), ve = {};
40346
- for (const [we, _e] of Object.entries(ie)) {
40347
- if (we === U) continue;
40348
- const Me = we.match(/^(.+)_(\d+)$/);
40349
- if (Me && Me[1] === re) {
40342
+ const Ae = { ...ie };
40343
+ return delete Ae[U], Ae;
40344
+ }
40345
+ const [, le, ne] = he, re = parseInt(ne, 10), me = {};
40346
+ for (const [Ae, _e] of Object.entries(ie)) {
40347
+ if (Ae === U) continue;
40348
+ const Me = Ae.match(/^(.+)_(\d+)$/);
40349
+ if (Me && Me[1] === le) {
40350
40350
  const Yt = parseInt(Me[2], 10);
40351
- Yt > le ? ve[`${re}_${Yt - 1}`] = _e : ve[we] = _e;
40351
+ Yt > re ? me[`${le}_${Yt - 1}`] = _e : me[Ae] = _e;
40352
40352
  } else
40353
- ve[we] = _e;
40353
+ me[Ae] = _e;
40354
40354
  }
40355
- return ve;
40355
+ return me;
40356
40356
  });
40357
40357
  }, []), J0 = V((U, ie) => {
40358
40358
  rt((he) => {
40359
- const re = `${U}_`, ne = [];
40360
- for (const ve of Object.keys(he)) {
40361
- if (!ve.startsWith(re)) continue;
40362
- const we = ve.slice(re.length);
40363
- /^\d+$/.test(we) && ne.push([Number(we), he[ve]]);
40359
+ const le = `${U}_`, ne = [];
40360
+ for (const me of Object.keys(he)) {
40361
+ if (!me.startsWith(le)) continue;
40362
+ const Ae = me.slice(le.length);
40363
+ /^\d+$/.test(Ae) && ne.push([Number(Ae), he[me]]);
40364
40364
  }
40365
40365
  if (ne.length === 0) return he;
40366
- const le = { ...he };
40367
- for (const [ve] of ne) delete le[`${U}_${ve}`];
40368
- for (const [ve, we] of ne) {
40369
- if (ve === ie) continue;
40370
- const _e = ve > ie ? ve - 1 : ve;
40371
- le[`${U}_${_e}`] = we;
40372
- }
40373
- return le;
40366
+ const re = { ...he };
40367
+ for (const [me] of ne) delete re[`${U}_${me}`];
40368
+ for (const [me, Ae] of ne) {
40369
+ if (me === ie) continue;
40370
+ const _e = me > ie ? me - 1 : me;
40371
+ re[`${U}_${_e}`] = Ae;
40372
+ }
40373
+ return re;
40374
40374
  });
40375
40375
  }, []), Ri = V(
40376
40376
  async (U, ie, he) => {
40377
- const re = await Zl(U, ie, he);
40378
- return re.status === "success" && rt((ne) => ({ ...ne, [U]: re.name })), re;
40377
+ const le = await Zl(U, ie, he);
40378
+ return le.status === "success" && rt((ne) => ({ ...ne, [U]: le.name })), le;
40379
40379
  },
40380
40380
  [Zl]
40381
40381
  ), Z0 = V(
40382
40382
  (U, ie) => {
40383
40383
  Jl(U, ie).then((he) => {
40384
- he.status === "success" && ee((re) => ({
40385
- ...re,
40386
- reportModules: { ...re.reportModules, [U]: he.modules }
40384
+ he.status === "success" && ee((le) => ({
40385
+ ...le,
40386
+ reportModules: { ...le.reportModules, [U]: he.modules }
40387
40387
  }));
40388
40388
  });
40389
40389
  },
40390
40390
  [Jl]
40391
40391
  ), Di = V(
40392
40392
  async (U, ie) => {
40393
- Zl(U, ie, "report-url").then((re) => {
40394
- re.status === "success" && rt((ne) => ({ ...ne, [U]: re.name }));
40393
+ Zl(U, ie, "report-url").then((le) => {
40394
+ le.status === "success" && rt((ne) => ({ ...ne, [U]: le.name }));
40395
40395
  });
40396
40396
  const he = await Jl(U, ie);
40397
- he.status === "success" ? (ee((re) => ({
40398
- ...re,
40399
- reportModules: { ...re.reportModules, [U]: he.modules }
40400
- })), Tt((re) => {
40401
- const ne = { ...re };
40402
- return he.modules.forEach((le, ve) => {
40403
- ne[`${U}__module_${ve}`] = le.content;
40397
+ he.status === "success" ? (ee((le) => ({
40398
+ ...le,
40399
+ reportModules: { ...le.reportModules, [U]: he.modules }
40400
+ })), Ct((le) => {
40401
+ const ne = { ...le };
40402
+ return he.modules.forEach((re, me) => {
40403
+ ne[`${U}__module_${me}`] = re.content;
40404
40404
  }), ne;
40405
- })) : he.status === "failed" && (Mi(U, ""), Tt((re) => {
40405
+ })) : he.status === "failed" && (Mi(U, ""), Ct((le) => {
40406
40406
  let ne = !1;
40407
- const le = { ...re };
40408
- for (const ve of Object.keys(le))
40409
- ve.startsWith(`${U}__module_`) && (delete le[ve], ne = !0);
40410
- return ne ? le : re;
40407
+ const re = { ...le };
40408
+ for (const me of Object.keys(re))
40409
+ me.startsWith(`${U}__module_`) && (delete re[me], ne = !0);
40410
+ return ne ? re : le;
40411
40411
  }));
40412
40412
  },
40413
40413
  [Jl, Zl, Mi]
40414
40414
  );
40415
- be(() => {
40415
+ ge(() => {
40416
40416
  if (!i || t.length === 0) return;
40417
40417
  const U = t.filter((he) => he.type === "report-url" && he.key), ie = t.filter((he) => he.type === "multi-variable-select" && he.key);
40418
40418
  if (!(U.length === 0 && ie.length === 0)) {
40419
40419
  for (const he of U) {
40420
- const re = he.key, ne = i[re] ?? i[`${re}__url`];
40420
+ const le = he.key, ne = i[le] ?? i[`${le}__url`];
40421
40421
  if (!ne || typeof ne == "string" && !ne.trim()) continue;
40422
- const le = Array.isArray(ne) ? String(ne[0] ?? "") : String(ne);
40423
- le && Gr.current.get(re) !== le && (Gr.current.set(re, le), setTimeout(() => {
40424
- Di(re, le);
40422
+ const re = Array.isArray(ne) ? String(ne[0] ?? "") : String(ne);
40423
+ re && Gr.current.get(le) !== re && (Gr.current.set(le, re), setTimeout(() => {
40424
+ Di(le, re);
40425
40425
  }, 100));
40426
40426
  }
40427
40427
  for (const he of ie) {
40428
- const re = he.key, ne = i[re];
40429
- !Array.isArray(ne) || ne.length === 0 || ne.forEach((le, ve) => {
40430
- const we = typeof le == "string" ? le.trim() : "";
40431
- if (!we) return;
40432
- const _e = `${re}_${ve}`;
40433
- Gr.current.get(_e) !== we && (Gr.current.set(_e, we), setTimeout(() => {
40434
- Ri(_e, we, "multi-variable-select");
40428
+ const le = he.key, ne = i[le];
40429
+ !Array.isArray(ne) || ne.length === 0 || ne.forEach((re, me) => {
40430
+ const Ae = typeof re == "string" ? re.trim() : "";
40431
+ if (!Ae) return;
40432
+ const _e = `${le}_${me}`;
40433
+ Gr.current.get(_e) !== Ae && (Gr.current.set(_e, Ae), setTimeout(() => {
40434
+ Ri(_e, Ae, "multi-variable-select");
40435
40435
  }, 100));
40436
40436
  });
40437
40437
  }
@@ -40440,26 +40440,26 @@ const Pf = 9999, Xw = ({ messageRef: e }) => {
40440
40440
  const ea = V(
40441
40441
  async (U, ie, he) => {
40442
40442
  const ne = Date.now();
40443
- ke((le) => {
40444
- const ve = new Set(le);
40445
- return ve.add(U), ve;
40443
+ ke((re) => {
40444
+ const me = new Set(re);
40445
+ return me.add(U), me;
40446
40446
  });
40447
40447
  try {
40448
- const le = await he(U, ie), ve = Date.now() - ne;
40449
- ve < 500 && await new Promise((we) => setTimeout(we, 500 - ve)), le && (ee((we) => ({
40450
- ...we,
40451
- markdownModules: { ...we.markdownModules, [U]: le.modules }
40452
- })), Tt((we) => {
40453
- const _e = { ...we };
40454
- return le.modules.forEach((Me, Yt) => {
40448
+ const re = await he(U, ie), me = Date.now() - ne;
40449
+ me < 500 && await new Promise((Ae) => setTimeout(Ae, 500 - me)), re && (ee((Ae) => ({
40450
+ ...Ae,
40451
+ markdownModules: { ...Ae.markdownModules, [U]: re.modules }
40452
+ })), Ct((Ae) => {
40453
+ const _e = { ...Ae };
40454
+ return re.modules.forEach((Me, Yt) => {
40455
40455
  _e[`${U}__module_${Yt}`] = Me.content;
40456
40456
  }), _e;
40457
40457
  }));
40458
40458
  } finally {
40459
- ke((le) => {
40460
- if (!le.has(U)) return le;
40461
- const ve = new Set(le);
40462
- return ve.delete(U), ve;
40459
+ ke((re) => {
40460
+ if (!re.has(U)) return re;
40461
+ const me = new Set(re);
40462
+ return me.delete(U), me;
40463
40463
  });
40464
40464
  }
40465
40465
  },
@@ -40471,42 +40471,47 @@ const Pf = 9999, Xw = ({ messageRef: e }) => {
40471
40471
  (U, ie) => ea(U, ie, Mu),
40472
40472
  [ea, Mu]
40473
40473
  );
40474
- be(() => {
40475
- s?.(bt);
40476
- }, [bt, s]), be(() => {
40474
+ ge(() => {
40475
+ s?.(gt);
40476
+ }, [gt, s]), ge(() => {
40477
40477
  if (Ii.current) {
40478
40478
  Ii.current = !1;
40479
40479
  return;
40480
40480
  }
40481
- o?.(wt);
40482
- }, [wt, o]);
40481
+ o?.(ut);
40482
+ }, [ut, o]);
40483
40483
  const Li = V(async () => {
40484
40484
  if (r || l) return;
40485
- const U = Pt ? { skillCode: Pt.id } : void 0;
40485
+ const U = _t ? { skillCode: _t.id, skillName: _t.title } : void 0;
40486
40486
  if (t.length === 0) {
40487
40487
  const ne = qn.trim();
40488
- if (!ne) return;
40489
- const le = Pt ? `【${Pt.title}】${ne}` : ne;
40490
- n(ne, le, U), xu("");
40488
+ if (!ne && !ut.length) return;
40489
+ const re = _t ? `【${_t.title}】${ne}` : ne;
40490
+ if (ut.length) {
40491
+ const me = new FormData();
40492
+ ne && me.append("prompt", ne), ut.forEach((Ae) => me.append("files", Ae)), n(me, re, U);
40493
+ } else
40494
+ n(ne, re, U);
40495
+ xu("");
40491
40496
  return;
40492
40497
  }
40493
- if (!_u(mt, bt, Qr)) return;
40494
- const { formData: ie, fullPrompt: he, hasContent: re } = await hw({
40495
- config: Ct,
40496
- values: mt,
40497
- files: bt,
40498
- footerFiles: wt,
40498
+ if (!_u(bt, gt, Qr)) return;
40499
+ const { formData: ie, fullPrompt: he, hasContent: le } = await hw({
40500
+ config: xt,
40501
+ values: bt,
40502
+ files: gt,
40503
+ footerFiles: ut,
40499
40504
  markdownModules: j.markdownModules
40500
40505
  });
40501
- re && n(ie, he, U);
40506
+ le && n(ie, he, U);
40502
40507
  }, [
40503
40508
  t.length,
40504
40509
  qn,
40505
- Pt,
40506
- Ct,
40507
- mt,
40510
+ _t,
40511
+ xt,
40508
40512
  bt,
40509
- wt,
40513
+ gt,
40514
+ ut,
40510
40515
  j.markdownModules,
40511
40516
  r,
40512
40517
  l,
@@ -40518,9 +40523,9 @@ const Pf = 9999, Xw = ({ messageRef: e }) => {
40518
40523
  U.key === "Enter" && (U.nativeEvent.isComposing || U.keyCode === 229 || U.shiftKey || (U.preventDefault(), Li()));
40519
40524
  },
40520
40525
  [Li]
40521
- ), rb = Ue(() => t.length === 0 ? qn.trim().length > 0 : nw(Ct, mt, bt, Qr), [t.length, qn, Ct, mt, bt, Qr]);
40526
+ ), rb = Ue(() => t.length === 0 ? qn.trim().length > 0 : nw(xt, bt, gt, Qr), [t.length, qn, xt, bt, gt, Qr]);
40522
40527
  We(() => {
40523
- if (!Pt) {
40528
+ if (!_t) {
40524
40529
  ku(0);
40525
40530
  return;
40526
40531
  }
@@ -40528,7 +40533,7 @@ const Pf = 9999, Xw = ({ messageRef: e }) => {
40528
40533
  if (!U) return;
40529
40534
  const ie = U.getBoundingClientRect().width - 2;
40530
40535
  ku(Math.max(0, ie));
40531
- }, [Pt, t.length]), We(() => {
40536
+ }, [_t, t.length]), We(() => {
40532
40537
  const U = wi.current;
40533
40538
  U && (U.style.height = "auto", U.style.height = `${U.scrollHeight}px`);
40534
40539
  }, [qn, _i]);
@@ -40575,39 +40580,39 @@ const Pf = 9999, Xw = ({ messageRef: e }) => {
40575
40580
  if (!pe && (typeof performance < "u" ? performance.now() : Date.now()) >= Eu.current) {
40576
40581
  const he = U.style.maxHeight;
40577
40582
  U.style.maxHeight = "none";
40578
- const re = U.offsetHeight, ne = U.scrollHeight, le = U.parentElement;
40579
- let ve = 1 / 0;
40580
- if (le) {
40583
+ const le = U.offsetHeight, ne = U.scrollHeight, re = U.parentElement;
40584
+ let me = 1 / 0;
40585
+ if (re) {
40581
40586
  let Me = 0;
40582
- for (const zu of Array.from(le.children))
40587
+ for (const zu of Array.from(re.children))
40583
40588
  zu !== U && (Me += zu.offsetHeight);
40584
- const Yt = getComputedStyle(le), sb = parseFloat(Yt.paddingTop) + parseFloat(Yt.paddingBottom);
40585
- ve = Math.max(0, le.clientHeight - Me - sb);
40589
+ const Yt = getComputedStyle(re), sb = parseFloat(Yt.paddingTop) + parseFloat(Yt.paddingBottom);
40590
+ me = Math.max(0, re.clientHeight - Me - sb);
40586
40591
  }
40587
40592
  U.style.maxHeight = he;
40588
- const we = Math.max(Math.ceil(ne || 0), Math.ceil(re || 0)), _e = Math.min(we, Math.ceil(ve));
40593
+ const Ae = Math.max(Math.ceil(ne || 0), Math.ceil(le || 0)), _e = Math.min(Ae, Math.ceil(me));
40589
40594
  _e > 0 && vu((Me) => Me === _e ? Me : _e);
40590
40595
  }
40591
40596
  try {
40592
- const ie = U.getBoundingClientRect(), he = U.querySelector(".rte-config-fade") ?? U, re = document.createRange();
40593
- re.selectNodeContents(he);
40594
- const ne = Array.from(re.getClientRects());
40597
+ const ie = U.getBoundingClientRect(), he = U.querySelector(".rte-config-fade") ?? U, le = document.createRange();
40598
+ le.selectNodeContents(he);
40599
+ const ne = Array.from(le.getClientRects());
40595
40600
  if (ne.length > 0) {
40596
- const le = Math.min(...ne.map((Me) => Me.top)), ve = 2;
40597
- let we = 0;
40601
+ const re = Math.min(...ne.map((Me) => Me.top)), me = 2;
40602
+ let Ae = 0;
40598
40603
  for (const Me of ne)
40599
- Math.abs(Me.top - le) <= ve && (we = Math.max(we, Me.bottom));
40600
- const _e = we > 0 ? Math.ceil(we - ie.top) : 0;
40604
+ Math.abs(Me.top - re) <= me && (Ae = Math.max(Ae, Me.bottom));
40605
+ const _e = Ae > 0 ? Math.ceil(Ae - ie.top) : 0;
40601
40606
  _e > 0 && V0((Me) => Me === _e ? Me : _e);
40602
40607
  }
40603
40608
  } catch {
40604
40609
  }
40605
40610
  }
40606
40611
  }, [pe]), gr = Ue(
40607
- () => Ct.filter((U) => U.key && U.type !== "report-module" && U.type !== "markdown-module").map((U) => `${U.type}:${U.key}`).join("|"),
40608
- [Ct]
40612
+ () => xt.filter((U) => U.key && U.type !== "report-module" && U.type !== "markdown-module").map((U) => `${U.type}:${U.key}`).join("|"),
40613
+ [xt]
40609
40614
  ), Fu = te(gr);
40610
- Fu.current !== gr && (Fu.current = gr, pe || (vu(Pf), yu(!0))), be(() => {
40615
+ Fu.current !== gr && (Fu.current = gr, pe || (vu(Pf), yu(!0))), ge(() => {
40611
40616
  if (!Ni) return;
40612
40617
  const U = setTimeout(() => yu(!1), Te);
40613
40618
  return () => clearTimeout(U);
@@ -40615,22 +40620,22 @@ const Pf = 9999, Xw = ({ messageRef: e }) => {
40615
40620
  const U = br.current;
40616
40621
  if (!U || (ta(), typeof ResizeObserver > "u")) return;
40617
40622
  const ie = () => {
40618
- const le = br.current;
40619
- if (!le) return;
40620
- (typeof performance < "u" ? performance.now() : Date.now()) - Bu.current < 600 && le.contains(document.activeElement) && le.scrollHeight > le.clientHeight && (le.scrollTop = le.scrollHeight);
40623
+ const re = br.current;
40624
+ if (!re) return;
40625
+ (typeof performance < "u" ? performance.now() : Date.now()) - Bu.current < 600 && re.contains(document.activeElement) && re.scrollHeight > re.clientHeight && (re.scrollTop = re.scrollHeight);
40621
40626
  }, he = new ResizeObserver(() => ta());
40622
40627
  he.observe(U);
40623
- const re = U.querySelector(".rte-default-textarea, .rte-config-fade"), ne = re ? new ResizeObserver(() => {
40628
+ const le = U.querySelector(".rte-default-textarea, .rte-config-fade"), ne = le ? new ResizeObserver(() => {
40624
40629
  ta(), ie();
40625
40630
  }) : null;
40626
- return re && ne && ne.observe(re), () => {
40631
+ return le && ne && ne.observe(le), () => {
40627
40632
  he.disconnect(), ne?.disconnect();
40628
40633
  };
40629
- }, [ta, Ct, bt, wt.length, Pe, pe, gr, qn]);
40634
+ }, [ta, xt, gt, ut.length, Pe, pe, gr, qn]);
40630
40635
  const Hu = te(-1);
40631
- be(() => {
40632
- pe || $n <= 0 || $n >= Pf || Hu.current !== $n && (Hu.current = $n, Dt?.($n));
40633
- }, [$n, pe, Dt]);
40636
+ ge(() => {
40637
+ pe || $n <= 0 || $n >= Pf || Hu.current !== $n && (Hu.current = $n, Lt?.($n));
40638
+ }, [$n, pe, Lt]);
40634
40639
  const Uu = Ue(
40635
40640
  () => /* @__PURE__ */ new Set([
40636
40641
  "pdf",
@@ -40698,29 +40703,29 @@ const Pf = 9999, Xw = ({ messageRef: e }) => {
40698
40703
  (U) => {
40699
40704
  const ie = U.clipboardData?.files;
40700
40705
  if (!ie || ie.length === 0 || (U.preventDefault(), t.some((Me) => Me.type === "tag"))) return;
40701
- const re = [];
40706
+ const le = [];
40702
40707
  let ne = !1;
40703
40708
  for (const Me of Array.from(ie)) {
40704
40709
  const Yt = (Me.name || "").split(".").pop()?.toLowerCase() || "";
40705
- Uu.has(Yt) ? re.push(Me) : ne = !0;
40710
+ Uu.has(Yt) ? le.push(Me) : ne = !0;
40706
40711
  }
40707
- if (ne && an.current?.error("粘贴文件中含不支持的类型,已自动过滤"), re.length === 0) return;
40708
- const le = 50 * 1024 * 1024, ve = wt.reduce((Me, Yt) => Me + Yt.size, 0), we = [];
40709
- let _e = ve;
40710
- for (const Me of re) {
40711
- if (_e + Me.size > le) {
40712
+ if (ne && an.current?.error("粘贴文件中含不支持的类型,已自动过滤"), le.length === 0) return;
40713
+ const re = 50 * 1024 * 1024, me = ut.reduce((Me, Yt) => Me + Yt.size, 0), Ae = [];
40714
+ let _e = me;
40715
+ for (const Me of le) {
40716
+ if (_e + Me.size > re) {
40712
40717
  an.current?.error("文件总大小不能超过 50MB");
40713
40718
  break;
40714
40719
  }
40715
- we.push(Me), _e += Me.size;
40720
+ Ae.push(Me), _e += Me.size;
40716
40721
  }
40717
- we.length > 0 && mn((Me) => [...we, ...Me]);
40722
+ Ae.length > 0 && mn((Me) => [...Ae, ...Me]);
40718
40723
  },
40719
- [Uu, t, wt]
40724
+ [Uu, t, ut]
40720
40725
  );
40721
- return /* @__PURE__ */ v(gb, { getPopupContainer: Vn, children: /* @__PURE__ */ W(dr, { component: !1, message: { getContainer: () => Lt ?? document.body }, children: [
40726
+ return /* @__PURE__ */ v(gb, { getPopupContainer: Vn, children: /* @__PURE__ */ W(dr, { component: !1, message: { getContainer: () => Pt ?? document.body }, children: [
40722
40727
  /* @__PURE__ */ v(Xw, { messageRef: an }),
40723
- /* @__PURE__ */ W(hp.Provider, { value: Lt, children: [
40728
+ /* @__PURE__ */ W(hp.Provider, { value: Pt, children: [
40724
40729
  /* @__PURE__ */ W(
40725
40730
  "div",
40726
40731
  {
@@ -40729,19 +40734,19 @@ const Pf = 9999, Xw = ({ messageRef: e }) => {
40729
40734
  style: lb,
40730
40735
  onPaste: ib,
40731
40736
  children: [
40732
- /* @__PURE__ */ v(H0, { files: wt, onChange: mn }),
40737
+ /* @__PURE__ */ v(H0, { files: ut, onChange: mn }),
40733
40738
  t.length === 0 ? /* @__PURE__ */ W(
40734
40739
  "div",
40735
40740
  {
40736
40741
  ref: br,
40737
- className: `rte-editor rte-editor-default${Pt ? " rte-editor-default-with-skill" : ""}`,
40742
+ className: `rte-editor rte-editor-default${_t ? " rte-editor-default-with-skill" : ""}`,
40738
40743
  style: Lu,
40739
40744
  onClick: Pu,
40740
40745
  children: [
40741
- Pt && /* @__PURE__ */ v("span", { ref: Su, className: "rte-skill-inline-tag-wrap", contentEditable: !1, children: /* @__PURE__ */ v(
40746
+ _t && /* @__PURE__ */ v("span", { ref: Su, className: "rte-skill-inline-tag-wrap", contentEditable: !1, children: /* @__PURE__ */ v(
40742
40747
  Co,
40743
40748
  {
40744
- node: { type: "tag", text: Pt.title, tooltip: "点击退出技能" },
40749
+ node: { type: "tag", text: _t.title, tooltip: "点击退出技能" },
40745
40750
  onClose: () => Kr(null)
40746
40751
  }
40747
40752
  ) }),
@@ -40753,7 +40758,7 @@ const Pf = 9999, Xw = ({ messageRef: e }) => {
40753
40758
  value: qn,
40754
40759
  onChange: (U) => xu(U.target.value),
40755
40760
  onKeyDown: nb,
40756
- placeholder: Pt?.usageInstruction || a || "",
40761
+ placeholder: _t?.usageInstruction || a || "",
40757
40762
  disabled: l,
40758
40763
  rows: 1,
40759
40764
  style: _i ? { textIndent: `${_i}px` } : void 0
@@ -40769,15 +40774,15 @@ const Pf = 9999, Xw = ({ messageRef: e }) => {
40769
40774
  style: Lu,
40770
40775
  onClick: Pu,
40771
40776
  onInput: ab,
40772
- children: /* @__PURE__ */ v("div", { className: "rte-config-fade", children: Ct.map((U, ie) => {
40777
+ children: /* @__PURE__ */ v("div", { className: "rte-config-fade", children: xt.map((U, ie) => {
40773
40778
  if (U.key && Qr.has(U.key) || G0 && U.exclusionGroup === "separator" || Qe && U.key !== Qe) return null;
40774
40779
  const he = (U.type === "report-module" || U.type === "markdown-module") && U.key ? `${U.key}__module_${U.moduleIndex ?? 0}` : U.key;
40775
40780
  return /* @__PURE__ */ v(
40776
40781
  _0,
40777
40782
  {
40778
40783
  node: U,
40779
- value: he ? mt[he] : void 0,
40780
- files: bt,
40784
+ value: he ? bt[he] : void 0,
40785
+ files: gt,
40781
40786
  onChange: Mi,
40782
40787
  onFileChange: K0,
40783
40788
  thumbnails: ki,
@@ -40794,7 +40799,7 @@ const Pf = 9999, Xw = ({ messageRef: e }) => {
40794
40799
  onAnalyzeMultiReport: Z0,
40795
40800
  onShiftReportNames: J0,
40796
40801
  onAgentExit: L,
40797
- hideAgentClose: me === "hideTagClose",
40802
+ hideAgentClose: be === "hideTagClose",
40798
40803
  onReportUrlParse: Di,
40799
40804
  onMarkdownParse: eb,
40800
40805
  onMarkdownNameParse: tb,
@@ -40816,14 +40821,14 @@ const Pf = 9999, Xw = ({ messageRef: e }) => {
40816
40821
  loading: D,
40817
40822
  disabled: l,
40818
40823
  sendDisabled: !rb,
40819
- showFooterUpload: Ne,
40820
- footerFiles: wt,
40824
+ showFooterUpload: we,
40825
+ footerFiles: ut,
40821
40826
  onFooterFilesChange: mn,
40822
40827
  agentOptions: B,
40823
40828
  onAgentSelect: Y0,
40824
- hideAgentButton: me === "hideAgent",
40829
+ hideAgentButton: be === "hideAgent",
40825
40830
  currentAgent: jr,
40826
- selectedSkill: Pt,
40831
+ selectedSkill: _t,
40827
40832
  onSkillSelect: W0,
40828
40833
  onSkillCardClick: F,
40829
40834
  onSkillAction: E,
@@ -41173,7 +41178,7 @@ const n5 = ({
41173
41178
  ...i
41174
41179
  }) => {
41175
41180
  const [s, o] = J(""), [u, c] = J(0), [d, f] = J(!1), [h, m] = J(!1), [b, g] = J(!1), y = te(void 0), I = te(void 0), k = te(e), R = te(u), w = te(h), T = te(s);
41176
- be(() => {
41181
+ ge(() => {
41177
41182
  k.current = e, R.current = u, w.current = h, T.current = s;
41178
41183
  });
41179
41184
  const O = V((L, E) => {
@@ -41205,9 +41210,9 @@ const n5 = ({
41205
41210
  }, 2e3);
41206
41211
  });
41207
41212
  }, [_, O]);
41208
- return be(() => (r && e.length > 0 && !h && A(), () => {
41213
+ return ge(() => (r && e.length > 0 && !h && A(), () => {
41209
41214
  y.current && window.clearTimeout(y.current), I.current && window.clearTimeout(I.current);
41210
- }), [u, h, r, e.length, A]), be(() => {
41215
+ }), [u, h, r, e.length, A]), ge(() => {
41211
41216
  !d && r && e.length > 0 && !h && A();
41212
41217
  }, [u, d, r, e.length, h, A]), /* @__PURE__ */ W("div", { style: { position: "relative" }, children: [
41213
41218
  /* @__PURE__ */ v(
@@ -41354,7 +41359,7 @@ const r5 = ({
41354
41359
  // 其他原生属性
41355
41360
  }) => {
41356
41361
  const [m, b] = J(""), [g, y] = J(0), [I, k] = J(!1), [R, w] = J(!1), [T, O] = J(!1), [_, A] = J(l || ""), P = te(void 0), S = te(void 0), B = te(e), z = te(g), L = te(R), E = te(m), F = te(null);
41357
- be(() => {
41362
+ ge(() => {
41358
41363
  B.current = e, z.current = g, L.current = R, E.current = m;
41359
41364
  });
41360
41365
  const $ = V((fe, pe) => {
@@ -41386,9 +41391,9 @@ const r5 = ({
41386
41391
  }, 2e3);
41387
41392
  });
41388
41393
  }, [q, $]);
41389
- be(() => (r && e.length > 0 && !R && K(), () => {
41394
+ ge(() => (r && e.length > 0 && !R && K(), () => {
41390
41395
  P.current && window.clearTimeout(P.current), S.current && window.clearTimeout(S.current);
41391
- }), [g, R, r, e.length, K]), be(() => {
41396
+ }), [g, R, r, e.length, K]), ge(() => {
41392
41397
  !I && r && e.length > 0 && !R && K();
41393
41398
  }, [g, I, r, e.length, R, K]);
41394
41399
  const C = (fe) => {
@@ -41401,9 +41406,9 @@ const r5 = ({
41401
41406
  }, D = () => {
41402
41407
  const fe = a ? l : _;
41403
41408
  fe.trim() && !c && (i?.(fe), a || A(""));
41404
- }, me = (fe) => {
41409
+ }, be = (fe) => {
41405
41410
  (fe.ctrlKey || fe.metaKey) && fe.key === "Enter" && (fe.preventDefault(), D()), h.onKeyDown?.(fe);
41406
- }, Ie = a ? l : _, Ne = c || !Ie.trim() || (s ? Ie.length > s : !1);
41411
+ }, Ie = a ? l : _, we = c || !Ie.trim() || (s ? Ie.length > s : !1);
41407
41412
  return /* @__PURE__ */ W("div", { style: { position: "relative", ...f }, children: [
41408
41413
  /* @__PURE__ */ W("div", { style: { position: "relative" }, children: [
41409
41414
  /* @__PURE__ */ v(
@@ -41418,7 +41423,7 @@ const r5 = ({
41418
41423
  onBlur: (fe) => {
41419
41424
  fe.target.style.borderColor = "#d9d9d9", fe.target.style.boxShadow = "none", se(fe);
41420
41425
  },
41421
- onKeyDown: me,
41426
+ onKeyDown: be,
41422
41427
  placeholder: R || Ie ? t : "",
41423
41428
  maxLength: s,
41424
41429
  rows: d,
@@ -41498,7 +41503,7 @@ const r5 = ({
41498
41503
  size: "small",
41499
41504
  icon: /* @__PURE__ */ v(Ab, {}),
41500
41505
  onClick: D,
41501
- disabled: Ne,
41506
+ disabled: we,
41502
41507
  style: {
41503
41508
  borderRadius: 6,
41504
41509
  minWidth: 32,
@@ -41847,14 +41852,14 @@ const l5 = (e) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mk
41847
41852
  const w = Math.max(...R);
41848
41853
  y.style.height = `${w}px`;
41849
41854
  }, [e, u, n]);
41850
- be(() => {
41855
+ ge(() => {
41851
41856
  const g = () => {
41852
41857
  const y = f();
41853
41858
  y !== u && c(y);
41854
41859
  };
41855
41860
  if (r)
41856
41861
  return window.addEventListener("resize", g), g(), () => window.removeEventListener("resize", g);
41857
- }, [r, f, u]), be(() => {
41862
+ }, [r, f, u]), ge(() => {
41858
41863
  const g = setTimeout(() => {
41859
41864
  h();
41860
41865
  }, 100);