bi-components-library 1.3.6-next.0 → 1.3.6-next.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx as v, jsxs as W, Fragment as tt } from "react/jsx-runtime";
2
2
  import ge, { useState as G, useRef as te, useMemo as Ve, useCallback as V, useEffect as be, createContext as Mo, useContext as rh, useLayoutEffect as $e, useDebugValue as lh, forwardRef as Pb } from "react";
3
- import { Button as ar, Card as Ro, Modal as Bb, Table as Do, Flex as sc, Spin as di, Empty as Fb, Select as Kl, Form as pa, Input as Lo, Space as Hb, unstableSetRender as Ub, Tooltip as Po, DatePicker as zb, Cascader as Vb, Popover as $a, Image as ah, App as Un, Dropdown as $b, Popconfirm as qb, ConfigProvider as Wb, Progress as Yb, Pagination as jb, theme as Kb } from "antd";
3
+ import { Button as ar, Card as Ro, Modal as Bb, Table as Do, Flex as sc, Spin as di, Empty as Fb, Select as jl, Form as pa, Input as Lo, Space as Hb, unstableSetRender as Ub, Tooltip as Po, DatePicker as zb, Cascader as Vb, Popover as $a, Image as ah, App as Un, Dropdown as $b, Popconfirm as qb, ConfigProvider as Wb, Progress as Yb, Pagination as jb, theme as Kb } from "antd";
4
4
  import { createFromIconfontCN as Gb, LeftOutlined as Qb, SearchOutlined as Xb, ReloadOutlined as Jb, CloseCircleFilled as ih, InfoCircleOutlined as Zb, SendOutlined as e1, PauseCircleOutlined as t1, PlayCircleOutlined as n1 } from "@ant-design/icons";
5
5
  import { createRoot as r1 } from "react-dom/client";
6
6
  import l1, { createPortal as sh } from "react-dom";
@@ -543,7 +543,7 @@ h1.__docgenInfo = {
543
543
  }
544
544
  }
545
545
  };
546
- const { Option: p1 } = Kl, m1 = ({
546
+ const { Option: p1 } = jl, m1 = ({
547
547
  columns: e,
548
548
  request: t,
549
549
  searchFields: n = [],
@@ -629,7 +629,7 @@ const { Option: p1 } = Kl, m1 = ({
629
629
  style: { width: 200 }
630
630
  }
631
631
  ) : /* @__PURE__ */ v(
632
- Kl,
632
+ jl,
633
633
  {
634
634
  placeholder: L.placeholder || `请选择${L.label}`,
635
635
  style: { width: 200 },
@@ -853,7 +853,7 @@ function k1(e) {
853
853
  function cc(e) {
854
854
  return e.replace(S1, "") === "";
855
855
  }
856
- let Gl = class {
856
+ let Kl = class {
857
857
  /**
858
858
  * @param {SchemaType['property']} property
859
859
  * Property.
@@ -868,16 +868,16 @@ let Gl = class {
868
868
  this.normal = n, this.property = t, r && (this.space = r);
869
869
  }
870
870
  };
871
- Gl.prototype.normal = {};
872
- Gl.prototype.property = {};
873
- Gl.prototype.space = void 0;
871
+ Kl.prototype.normal = {};
872
+ Kl.prototype.property = {};
873
+ Kl.prototype.space = void 0;
874
874
  function dh(e, t) {
875
875
  const n = {}, r = {};
876
876
  for (const l of e)
877
877
  Object.assign(n, l.property), Object.assign(r, l.normal);
878
- return new Gl(n, r, t);
878
+ return new Kl(n, r, t);
879
879
  }
880
- function Ol(e) {
880
+ function Il(e) {
881
881
  return e.toLowerCase();
882
882
  }
883
883
  class Ot {
@@ -959,9 +959,9 @@ function jr(e) {
959
959
  l,
960
960
  e.space
961
961
  );
962
- e.mustUseProperty && e.mustUseProperty.includes(r) && (a.mustUseProperty = !0), t[r] = a, n[Ol(r)] = r, n[Ol(a.attribute)] = r;
962
+ e.mustUseProperty && e.mustUseProperty.includes(r) && (a.mustUseProperty = !0), t[r] = a, n[Il(r)] = r, n[Il(a.attribute)] = r;
963
963
  }
964
- return new Gl(t, n, e.space);
964
+ return new Kl(t, n, e.space);
965
965
  }
966
966
  const fh = jr({
967
967
  properties: {
@@ -1990,7 +1990,7 @@ const N1 = jr({
1990
1990
  xmlnsXLink: "xmlnsXlink"
1991
1991
  }, I1 = /[A-Z]/g, fc = /-[a-z]/g, O1 = /^data[-\w.:]+$/i;
1992
1992
  function fi(e, t) {
1993
- const n = Ol(t);
1993
+ const n = Il(t);
1994
1994
  let r = t, l = Ot;
1995
1995
  if (n in e.normal)
1996
1996
  return e.property[e.normal[n]];
@@ -2015,7 +2015,7 @@ function M1(e) {
2015
2015
  function R1(e) {
2016
2016
  return e.charAt(1).toUpperCase();
2017
2017
  }
2018
- const Ql = dh([fh, N1, mh, bh, gh], "html"), zn = dh([fh, w1, mh, bh, gh], "svg");
2018
+ const Gl = dh([fh, N1, mh, bh, gh], "html"), zn = dh([fh, w1, mh, bh, gh], "svg");
2019
2019
  function hc(e) {
2020
2020
  const t = String(e || "").trim();
2021
2021
  return t ? t.split(/[ \t\n\r\f]+/g) : [];
@@ -2139,10 +2139,10 @@ function L1() {
2139
2139
  }
2140
2140
  return Ar;
2141
2141
  }
2142
- var il = {}, bc;
2142
+ var al = {}, bc;
2143
2143
  function P1() {
2144
- if (bc) return il;
2145
- bc = 1, Object.defineProperty(il, "__esModule", { value: !0 }), il.camelCase = void 0;
2144
+ if (bc) return al;
2145
+ bc = 1, Object.defineProperty(al, "__esModule", { value: !0 }), al.camelCase = void 0;
2146
2146
  var e = /^--[a-zA-Z0-9_-]+$/, t = /-([a-z])/g, n = /^[^-]+$/, r = /^-(webkit|moz|ms|o|khtml)-/, l = /^-(ms)-/, a = function(u) {
2147
2147
  return !u || n.test(u) || e.test(u);
2148
2148
  }, i = function(u, c) {
@@ -2152,13 +2152,13 @@ function P1() {
2152
2152
  }, o = function(u, c) {
2153
2153
  return c === void 0 && (c = {}), a(u) ? u : (u = u.toLowerCase(), c.reactCompat ? u = u.replace(l, s) : u = u.replace(r, s), u.replace(t, i));
2154
2154
  };
2155
- return il.camelCase = o, il;
2155
+ return al.camelCase = o, al;
2156
2156
  }
2157
- var sl, gc;
2157
+ var il, gc;
2158
2158
  function B1() {
2159
- if (gc) return sl;
2159
+ if (gc) return il;
2160
2160
  gc = 1;
2161
- var e = sl && sl.__importDefault || function(l) {
2161
+ var e = il && il.__importDefault || function(l) {
2162
2162
  return l && l.__esModule ? l : { default: l };
2163
2163
  }, t = e(L1()), n = P1();
2164
2164
  function r(l, a) {
@@ -2167,7 +2167,7 @@ function B1() {
2167
2167
  s && o && (i[(0, n.camelCase)(s, a)] = o);
2168
2168
  }), i;
2169
2169
  }
2170
- return r.default = r, sl = r, sl;
2170
+ return r.default = r, il = r, il;
2171
2171
  }
2172
2172
  var F1 = B1();
2173
2173
  const H1 = /* @__PURE__ */ Fo(F1), hi = yh("end"), ln = yh("start");
@@ -2188,7 +2188,7 @@ function Eh(e) {
2188
2188
  if (t && n)
2189
2189
  return { start: t, end: n };
2190
2190
  }
2191
- function vl(e) {
2191
+ function gl(e) {
2192
2192
  return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? vc(e.position) : "start" in e || "end" in e ? vc(e) : "line" in e || "column" in e ? Ks(e) : "";
2193
2193
  }
2194
2194
  function Ks(e) {
@@ -2200,7 +2200,7 @@ function vc(e) {
2200
2200
  function yc(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
  *
@@ -2271,22 +2271,22 @@ class ft extends Error {
2271
2271
  o && (a.place = o.position);
2272
2272
  }
2273
2273
  const s = a.place && "start" in a.place ? a.place.start : a.place;
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 = vl(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
- }
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;
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 = gl(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
+ }
2276
+ }
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 Ho = {}.hasOwnProperty, U1 = /* @__PURE__ */ new Map(), z1 = /[A-Z]/g, V1 = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), $1 = /* @__PURE__ */ new Set(["td", "th"]), Th = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
2291
2291
  function q1(e, t) {
2292
2292
  if (!t || t.Fragment === void 0)
@@ -2317,7 +2317,7 @@ function q1(e, t) {
2317
2317
  ignoreInvalidStyle: t.ignoreInvalidStyle || !1,
2318
2318
  passKeys: t.passKeys !== !1,
2319
2319
  passNode: t.passNode || !1,
2320
- schema: t.space === "svg" ? zn : Ql,
2320
+ schema: t.space === "svg" ? zn : Gl,
2321
2321
  stylePropertyNameCase: t.stylePropertyNameCase || "dom",
2322
2322
  tableCellAlignToStyle: t.tableCellAlignToStyle !== !1
2323
2323
  }, a = Ch(l, e, void 0);
@@ -2358,7 +2358,7 @@ function Y1(e, t) {
2358
2358
  return r.type, /** @type {Child | undefined} */
2359
2359
  e.evaluater.evaluateExpression(r.expression);
2360
2360
  }
2361
- Ml(e, t.position);
2361
+ Ol(e, t.position);
2362
2362
  }
2363
2363
  function j1(e, t) {
2364
2364
  if (t.data && t.data.estree && e.evaluater)
@@ -2366,7 +2366,7 @@ function j1(e, t) {
2366
2366
  /** @type {Child | undefined} */
2367
2367
  e.evaluater.evaluateProgram(t.data.estree)
2368
2368
  );
2369
- Ml(e, t.position);
2369
+ Ol(e, t.position);
2370
2370
  }
2371
2371
  function K1(e, t, n) {
2372
2372
  const r = e.schema;
@@ -2451,7 +2451,7 @@ function eg(e, t) {
2451
2451
  e.evaluater.evaluateExpression(s.argument)
2452
2452
  );
2453
2453
  } else
2454
- Ml(e, t.position);
2454
+ Ol(e, t.position);
2455
2455
  else {
2456
2456
  const l = r.name;
2457
2457
  let a;
@@ -2460,7 +2460,7 @@ function eg(e, t) {
2460
2460
  const s = r.value.data.estree.body[0];
2461
2461
  s.type, a = e.evaluater.evaluateExpression(s.expression);
2462
2462
  } else
2463
- Ml(e, t.position);
2463
+ Ol(e, t.position);
2464
2464
  else
2465
2465
  a = r.value === null ? !0 : r.value;
2466
2466
  n[l] = /** @type {Props[keyof Props]} */
@@ -2509,7 +2509,7 @@ function ng(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",
@@ -2547,10 +2547,10 @@ function Sh(e, t, n) {
2547
2547
  }
2548
2548
  if (e.evaluater)
2549
2549
  return e.evaluater.evaluateExpression(r);
2550
- Ml(e);
2550
+ Ol(e);
2551
2551
  }
2552
- function Ml(e, t) {
2553
- const n = new ft(
2552
+ function Ol(e, t) {
2553
+ const n = new ht(
2554
2554
  "Cannot handle MDX estrees without `createEvaluater`",
2555
2555
  {
2556
2556
  ancestors: e.ancestors,
@@ -2624,7 +2624,7 @@ function og(e) {
2624
2624
  return !!(e && typeof e == "object");
2625
2625
  }
2626
2626
  const Tc = document.createElement("i");
2627
- function Rl(e) {
2627
+ function Ml(e) {
2628
2628
  const t = "&" + e + ";";
2629
2629
  Tc.innerHTML = t;
2630
2630
  const n = Tc.textContent;
@@ -2708,7 +2708,7 @@ function We(e) {
2708
2708
  function Re(e) {
2709
2709
  return e === -2 || e === -1 || e === 32;
2710
2710
  }
2711
- const Dl = Vn(new RegExp("\\p{P}|\\p{S}", "u")), Ll = Vn(/\s/);
2711
+ const Rl = Vn(new RegExp("\\p{P}|\\p{S}", "u")), Dl = Vn(/\s/);
2712
2712
  function Vn(e) {
2713
2713
  return t;
2714
2714
  function t(n) {
@@ -2898,9 +2898,9 @@ function yg(e, t, n) {
2898
2898
  return De(e, e.attempt(this.parser.constructs.document, t, n), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
2899
2899
  }
2900
2900
  function Sc(e) {
2901
- if (e === null || We(e) || Ll(e))
2901
+ if (e === null || We(e) || Dl(e))
2902
2902
  return 1;
2903
- if (Dl(e))
2903
+ if (Rl(e))
2904
2904
  return 2;
2905
2905
  }
2906
2906
  function Vo(e, t, n) {
@@ -3111,7 +3111,7 @@ function _g(e, t, n) {
3111
3111
  function c(d) {
3112
3112
  if (d === 59 && l) {
3113
3113
  const h = e.exit("characterReferenceValue");
3114
- return i === Lt && !Rl(r.sliceSerialize(h)) ? n(d) : (e.enter("characterReferenceMarker"), e.consume(d), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
3114
+ return i === Lt && !Ml(r.sliceSerialize(h)) ? 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
  }
@@ -3364,7 +3364,7 @@ class Hg {
3364
3364
  const l = n || 0;
3365
3365
  this.setCursor(Math.trunc(t));
3366
3366
  const a = this.right.splice(this.right.length - l, Number.POSITIVE_INFINITY);
3367
- return r && ol(this.left, r), a.reverse();
3367
+ return r && sl(this.left, r), a.reverse();
3368
3368
  }
3369
3369
  /**
3370
3370
  * Remove and return the highest-numbered item in the array, so
@@ -3399,7 +3399,7 @@ class Hg {
3399
3399
  * Nothing.
3400
3400
  */
3401
3401
  pushMany(t) {
3402
- this.setCursor(Number.POSITIVE_INFINITY), ol(this.left, t);
3402
+ this.setCursor(Number.POSITIVE_INFINITY), sl(this.left, t);
3403
3403
  }
3404
3404
  /**
3405
3405
  * Inserts a single item to the low-numbered side of the array;
@@ -3423,7 +3423,7 @@ class Hg {
3423
3423
  * Nothing.
3424
3424
  */
3425
3425
  unshiftMany(t) {
3426
- this.setCursor(0), ol(this.right, t.reverse());
3426
+ this.setCursor(0), sl(this.right, t.reverse());
3427
3427
  }
3428
3428
  /**
3429
3429
  * Move the cursor to a specific position in the array. Requires
@@ -3441,14 +3441,14 @@ class Hg {
3441
3441
  if (!(t === this.left.length || t > this.left.length && this.right.length === 0 || t < 0 && this.left.length === 0))
3442
3442
  if (t < this.left.length) {
3443
3443
  const n = this.left.splice(t, Number.POSITIVE_INFINITY);
3444
- ol(this.right, n.reverse());
3444
+ sl(this.right, n.reverse());
3445
3445
  } else {
3446
3446
  const n = this.right.splice(this.left.length + this.right.length - t, Number.POSITIVE_INFINITY);
3447
- ol(this.left, n.reverse());
3447
+ sl(this.left, n.reverse());
3448
3448
  }
3449
3449
  }
3450
3450
  }
3451
- function ol(e, t) {
3451
+ function sl(e, t) {
3452
3452
  let n = 0;
3453
3453
  if (t.length < 1e4)
3454
3454
  e.push(...t);
@@ -4860,7 +4860,7 @@ function ay(e, t, n) {
4860
4860
  const l = n.charCodeAt(1), a = l === 120 || l === 88;
4861
4861
  return Ah(n.slice(a ? 2 : 1), a ? 16 : 10);
4862
4862
  }
4863
- return Rl(n) || e;
4863
+ return Ml(n) || e;
4864
4864
  }
4865
4865
  const Ph = {}.hasOwnProperty;
4866
4866
  function iy(e, t, n) {
@@ -4886,7 +4886,7 @@ function sy(e) {
4886
4886
  codeTextData: k,
4887
4887
  data: k,
4888
4888
  codeFlowValue: k,
4889
- definition: a(mt),
4889
+ definition: a(st),
4890
4890
  definitionDestinationString: i,
4891
4891
  definitionLabelString: i,
4892
4892
  definitionTitleString: i,
@@ -4911,7 +4911,7 @@ function sy(e) {
4911
4911
  resourceTitleString: i,
4912
4912
  setextHeading: a(mn),
4913
4913
  strong: a(Mt),
4914
- thematicBreak: a(st)
4914
+ thematicBreak: a(ot)
4915
4915
  },
4916
4916
  exit: {
4917
4917
  atxHeading: o(),
@@ -5096,7 +5096,7 @@ function sy(e) {
5096
5096
  const ve = this.stack.pop(), Ce = this.tokenStack.pop();
5097
5097
  if (Ce)
5098
5098
  Ce[0].type !== j.type && (re ? re.call(this, j, Ce[0]) : (Ce[1] || Oc).call(this, j, Ce[0]));
5099
- else throw new Error("Cannot close `" + j.type + "` (" + vl({
5099
+ else throw new Error("Cannot close `" + j.type + "` (" + gl({
5100
5100
  start: j.start,
5101
5101
  end: j.end
5102
5102
  }) + "): it’s not open");
@@ -5165,7 +5165,7 @@ function sy(e) {
5165
5165
  function k(j) {
5166
5166
  const ve = this.stack[this.stack.length - 1].children;
5167
5167
  let Ce = ve[ve.length - 1];
5168
- (!Ce || Ce.type !== "text") && (Ce = ia(), Ce.position = {
5168
+ (!Ce || Ce.type !== "text") && (Ce = aa(), Ce.position = {
5169
5169
  start: yn(j.start),
5170
5170
  // @ts-expect-error: we’ll add `end` later.
5171
5171
  end: void 0
@@ -5253,7 +5253,7 @@ function sy(e) {
5253
5253
  function we(j) {
5254
5254
  const re = this.sliceSerialize(j), ve = this.data.characterReferenceType;
5255
5255
  let Ce;
5256
- ve ? (Ce = Ah(re, ve === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : Ce = Rl(re);
5256
+ ve ? (Ce = Ah(re, ve === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : Ce = Ml(re);
5257
5257
  const Me = this.stack[this.stack.length - 1];
5258
5258
  Me.value += Ce;
5259
5259
  }
@@ -5291,7 +5291,7 @@ function sy(e) {
5291
5291
  value: ""
5292
5292
  };
5293
5293
  }
5294
- function mt() {
5294
+ function st() {
5295
5295
  return {
5296
5296
  type: "definition",
5297
5297
  identifier: "",
@@ -5370,13 +5370,13 @@ function sy(e) {
5370
5370
  children: []
5371
5371
  };
5372
5372
  }
5373
- function ia() {
5373
+ function aa() {
5374
5374
  return {
5375
5375
  type: "text",
5376
5376
  value: ""
5377
5377
  };
5378
5378
  }
5379
- function st() {
5379
+ function ot() {
5380
5380
  return {
5381
5381
  type: "thematicBreak"
5382
5382
  };
@@ -5420,13 +5420,13 @@ function oy(e, t) {
5420
5420
  }
5421
5421
  }
5422
5422
  function Oc(e, t) {
5423
- throw e ? new Error("Cannot close `" + e.type + "` (" + vl({
5423
+ throw e ? new Error("Cannot close `" + e.type + "` (" + gl({
5424
5424
  start: e.start,
5425
5425
  end: e.end
5426
- }) + "): a different token (`" + t.type + "`, " + vl({
5426
+ }) + "): a different token (`" + t.type + "`, " + gl({
5427
5427
  start: t.start,
5428
5428
  end: t.end
5429
- }) + ") is open") : new Error("Cannot close document, a token (`" + t.type + "`, " + vl({
5429
+ }) + ") is open") : new Error("Cannot close document, a token (`" + t.type + "`, " + gl({
5430
5430
  start: t.start,
5431
5431
  end: t.end
5432
5432
  }) + ") is still open");
@@ -5796,7 +5796,7 @@ const Ly = {
5796
5796
  };
5797
5797
  function ma() {
5798
5798
  }
5799
- const Uh = -1, mi = 0, yl = 1, qa = 2, qo = 3, Wo = 4, Yo = 5, jo = 6, zh = 7, Vh = 8, Lc = typeof self == "object" ? self : globalThis, Py = (e, t) => {
5799
+ const Uh = -1, mi = 0, vl = 1, qa = 2, qo = 3, Wo = 4, Yo = 5, jo = 6, zh = 7, Vh = 8, Lc = typeof self == "object" ? self : globalThis, Py = (e, t) => {
5800
5800
  const n = (l, a) => (e.set(a, l), l), r = (l) => {
5801
5801
  if (e.has(l))
5802
5802
  return e.get(l);
@@ -5805,7 +5805,7 @@ const Uh = -1, mi = 0, yl = 1, qa = 2, qo = 3, Wo = 4, Yo = 5, jo = 6, zh = 7, V
5805
5805
  case mi:
5806
5806
  case Uh:
5807
5807
  return n(i, l);
5808
- case yl: {
5808
+ case vl: {
5809
5809
  const s = n([], l);
5810
5810
  for (const o of i)
5811
5811
  s.push(r(o));
@@ -5853,14 +5853,14 @@ const Uh = -1, mi = 0, yl = 1, qa = 2, qo = 3, Wo = 4, Yo = 5, jo = 6, zh = 7, V
5853
5853
  return n(new Lc[a](i), l);
5854
5854
  };
5855
5855
  return r;
5856
- }, Pc = (e) => Py(/* @__PURE__ */ new Map(), e)(0), Nr = "", { toString: By } = {}, { keys: Fy } = Object, ul = (e) => {
5856
+ }, Pc = (e) => Py(/* @__PURE__ */ new Map(), e)(0), Nr = "", { toString: By } = {}, { keys: Fy } = Object, ol = (e) => {
5857
5857
  const t = typeof e;
5858
5858
  if (t !== "object" || !e)
5859
5859
  return [mi, t];
5860
5860
  const n = By.call(e).slice(8, -1);
5861
5861
  switch (n) {
5862
5862
  case "Array":
5863
- return [yl, Nr];
5863
+ return [vl, Nr];
5864
5864
  case "Object":
5865
5865
  return [qa, Nr];
5866
5866
  case "Date":
@@ -5872,9 +5872,9 @@ const Uh = -1, mi = 0, yl = 1, qa = 2, qo = 3, Wo = 4, Yo = 5, jo = 6, zh = 7, V
5872
5872
  case "Set":
5873
5873
  return [jo, Nr];
5874
5874
  case "DataView":
5875
- return [yl, n];
5875
+ return [vl, n];
5876
5876
  }
5877
- return n.includes("Array") ? [yl, n] : n.includes("Error") ? [zh, n] : [qa, n];
5877
+ return n.includes("Array") ? [vl, n] : n.includes("Error") ? [zh, n] : [qa, n];
5878
5878
  }, ba = ([e, t]) => e === mi && (t === "function" || t === "symbol"), Hy = (e, t, n, r) => {
5879
5879
  const l = (i, s) => {
5880
5880
  const o = r.push(i) - 1;
@@ -5882,7 +5882,7 @@ const Uh = -1, mi = 0, yl = 1, qa = 2, qo = 3, Wo = 4, Yo = 5, jo = 6, zh = 7, V
5882
5882
  }, a = (i) => {
5883
5883
  if (n.has(i))
5884
5884
  return n.get(i);
5885
- let [s, o] = ul(i);
5885
+ let [s, o] = ol(i);
5886
5886
  switch (s) {
5887
5887
  case mi: {
5888
5888
  let c = i;
@@ -5901,7 +5901,7 @@ const Uh = -1, mi = 0, yl = 1, qa = 2, qo = 3, Wo = 4, Yo = 5, jo = 6, zh = 7, V
5901
5901
  }
5902
5902
  return l([s, c], i);
5903
5903
  }
5904
- case yl: {
5904
+ case vl: {
5905
5905
  if (o) {
5906
5906
  let h = i;
5907
5907
  return o === "DataView" ? h = new Uint8Array(i.buffer) : o === "ArrayBuffer" && (h = new Uint8Array(i)), l([o, [...h]], i);
@@ -5925,7 +5925,7 @@ const Uh = -1, mi = 0, yl = 1, qa = 2, qo = 3, Wo = 4, Yo = 5, jo = 6, zh = 7, V
5925
5925
  return a(i.toJSON());
5926
5926
  const c = [], d = l([s, c], i);
5927
5927
  for (const h of Fy(i))
5928
- (e || !ba(ul(i[h]))) && c.push([a(h), a(i[h])]);
5928
+ (e || !ba(ol(i[h]))) && c.push([a(h), a(i[h])]);
5929
5929
  return d;
5930
5930
  }
5931
5931
  case qo:
@@ -5937,13 +5937,13 @@ const Uh = -1, mi = 0, yl = 1, qa = 2, qo = 3, Wo = 4, Yo = 5, jo = 6, zh = 7, V
5937
5937
  case Yo: {
5938
5938
  const c = [], d = l([s, c], i);
5939
5939
  for (const [h, f] of i)
5940
- (e || !(ba(ul(h)) || ba(ul(f)))) && c.push([a(h), a(f)]);
5940
+ (e || !(ba(ol(h)) || ba(ol(f)))) && c.push([a(h), a(f)]);
5941
5941
  return d;
5942
5942
  }
5943
5943
  case jo: {
5944
5944
  const c = [], d = l([s, c], i);
5945
5945
  for (const h of i)
5946
- (e || !ba(ul(h))) && c.push(a(h));
5946
+ (e || !ba(ol(h))) && c.push(a(h));
5947
5947
  return d;
5948
5948
  }
5949
5949
  }
@@ -6412,7 +6412,7 @@ const Qt = { basename: oE, dirname: uE, extname: cE, join: dE, sep: "/" };
6412
6412
  function oE(e, t) {
6413
6413
  if (t !== void 0 && typeof t != "string")
6414
6414
  throw new TypeError('"ext" argument must be a string');
6415
- Xl(e);
6415
+ Ql(e);
6416
6416
  let n = 0, r = -1, l = e.length, a;
6417
6417
  if (t === void 0 || t.length === 0 || t.length > e.length) {
6418
6418
  for (; l--; )
@@ -6438,7 +6438,7 @@ function oE(e, t) {
6438
6438
  return n === r ? r = i : r < 0 && (r = e.length), e.slice(n, r);
6439
6439
  }
6440
6440
  function uE(e) {
6441
- if (Xl(e), e.length === 0)
6441
+ if (Ql(e), e.length === 0)
6442
6442
  return ".";
6443
6443
  let t = -1, n = e.length, r;
6444
6444
  for (; --n; )
@@ -6451,7 +6451,7 @@ function uE(e) {
6451
6451
  return t < 0 ? e.codePointAt(0) === 47 ? "/" : "." : t === 1 && e.codePointAt(0) === 47 ? "//" : e.slice(0, t);
6452
6452
  }
6453
6453
  function cE(e) {
6454
- Xl(e);
6454
+ Ql(e);
6455
6455
  let t = e.length, n = -1, r = 0, l = -1, a = 0, i;
6456
6456
  for (; t--; ) {
6457
6457
  const s = e.codePointAt(t);
@@ -6471,11 +6471,11 @@ function cE(e) {
6471
6471
  function dE(...e) {
6472
6472
  let t = -1, n;
6473
6473
  for (; ++t < e.length; )
6474
- Xl(e[t]), e[t] && (n = n === void 0 ? e[t] : n + "/" + e[t]);
6474
+ Ql(e[t]), e[t] && (n = n === void 0 ? e[t] : n + "/" + e[t]);
6475
6475
  return n === void 0 ? "." : fE(n);
6476
6476
  }
6477
6477
  function fE(e) {
6478
- Xl(e);
6478
+ Ql(e);
6479
6479
  const t = e.codePointAt(0) === 47;
6480
6480
  let n = hE(e, !t);
6481
6481
  return n.length === 0 && !t && (n = "."), n.length > 0 && e.codePointAt(e.length - 1) === 47 && (n += "/"), t ? "/" + n : n;
@@ -6511,7 +6511,7 @@ function hE(e, t) {
6511
6511
  }
6512
6512
  return n;
6513
6513
  }
6514
- function Xl(e) {
6514
+ function Ql(e) {
6515
6515
  if (typeof e != "string")
6516
6516
  throw new TypeError(
6517
6517
  "Path must be a string. Received " + JSON.stringify(e)
@@ -6917,7 +6917,7 @@ class Yh {
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,
@@ -7689,7 +7689,7 @@ function Gc(e, t, n) {
7689
7689
  if (typeof n == "string") {
7690
7690
  if (e.number && n && !Number.isNaN(Number(n)))
7691
7691
  return Number(n);
7692
- if ((e.boolean || e.overloadedBoolean) && (n === "" || Ol(n) === Ol(t)))
7692
+ if ((e.boolean || e.overloadedBoolean) && (n === "" || Il(n) === Il(t)))
7693
7693
  return !0;
7694
7694
  }
7695
7695
  return n;
@@ -7746,7 +7746,7 @@ const FE = [
7746
7746
  "solidColor",
7747
7747
  "textArea",
7748
7748
  "textPath"
7749
- ], HE = jh(Ql, "div"), UE = jh(zn, "g", FE);
7749
+ ], HE = jh(Gl, "div"), UE = jh(zn, "g", FE);
7750
7750
  function zE(e) {
7751
7751
  const t = String(e), n = [];
7752
7752
  return { toOffset: l, toPoint: r };
@@ -7800,7 +7800,7 @@ function $E(e, t) {
7800
7800
  {
7801
7801
  file: n.file || void 0,
7802
7802
  location: !1,
7803
- schema: n.space === "svg" ? zn : Ql,
7803
+ schema: n.space === "svg" ? zn : Gl,
7804
7804
  verbose: n.verbose || !1
7805
7805
  },
7806
7806
  e
@@ -7869,7 +7869,7 @@ function Gh(e, t) {
7869
7869
  }
7870
7870
  function qE(e, t) {
7871
7871
  const n = e.schema;
7872
- e.schema = t.namespaceURI === tr.svg ? zn : Ql;
7872
+ e.schema = t.namespaceURI === tr.svg ? zn : Gl;
7873
7873
  let r = -1;
7874
7874
  const l = {};
7875
7875
  for (; ++r < t.attrs.length; ) {
@@ -7947,7 +7947,7 @@ function Qh(e, t) {
7947
7947
  const YE = {}, jE = {}.hasOwnProperty, Xh = Qh("type", { handlers: { root: GE, element: e2, text: JE, comment: ZE, doctype: XE } });
7948
7948
  function KE(e, t) {
7949
7949
  const r = (t || YE).space;
7950
- return Xh(e, r === "svg" ? zn : Ql);
7950
+ return Xh(e, r === "svg" ? zn : Gl);
7951
7951
  }
7952
7952
  function GE(e, t) {
7953
7953
  const n = {
@@ -8763,14 +8763,14 @@ const Ye = {
8763
8763
  function y2(e) {
8764
8764
  return e >= x.DIGIT_0 && e <= x.DIGIT_9;
8765
8765
  }
8766
- function hl(e) {
8766
+ function fl(e) {
8767
8767
  return e >= x.LATIN_CAPITAL_A && e <= x.LATIN_CAPITAL_Z;
8768
8768
  }
8769
8769
  function E2(e) {
8770
8770
  return e >= x.LATIN_SMALL_A && e <= x.LATIN_SMALL_Z;
8771
8771
  }
8772
8772
  function xn(e) {
8773
- return E2(e) || hl(e);
8773
+ return E2(e) || fl(e);
8774
8774
  }
8775
8775
  function Zc(e) {
8776
8776
  return xn(e) || y2(e);
@@ -9482,7 +9482,7 @@ class C2 {
9482
9482
  break;
9483
9483
  }
9484
9484
  default:
9485
- n.tagName += String.fromCodePoint(hl(t) ? va(t) : t);
9485
+ n.tagName += String.fromCodePoint(fl(t) ? va(t) : t);
9486
9486
  }
9487
9487
  }
9488
9488
  // RCDATA less-than sign state
@@ -9814,7 +9814,7 @@ class C2 {
9814
9814
  break;
9815
9815
  }
9816
9816
  default:
9817
- this.currentAttr.name += String.fromCodePoint(hl(t) ? va(t) : t);
9817
+ this.currentAttr.name += String.fromCodePoint(fl(t) ? va(t) : t);
9818
9818
  }
9819
9819
  }
9820
9820
  // After attribute name state
@@ -10215,7 +10215,7 @@ class C2 {
10215
10215
  // Before DOCTYPE name state
10216
10216
  //------------------------------------------------------------------
10217
10217
  _stateBeforeDoctypeName(t) {
10218
- if (hl(t))
10218
+ if (fl(t))
10219
10219
  this._createDoctypeToken(String.fromCharCode(va(t))), this.state = w.DOCTYPE_NAME;
10220
10220
  else
10221
10221
  switch (t) {
@@ -10269,7 +10269,7 @@ class C2 {
10269
10269
  break;
10270
10270
  }
10271
10271
  default:
10272
- n.name += String.fromCodePoint(hl(t) ? va(t) : t);
10272
+ n.name += String.fromCodePoint(fl(t) ? va(t) : t);
10273
10273
  }
10274
10274
  }
10275
10275
  // After DOCTYPE name state
@@ -11868,27 +11868,27 @@ class od {
11868
11868
  }
11869
11869
  switch (this.insertionMode) {
11870
11870
  case M.INITIAL: {
11871
- cl(this, t);
11871
+ ul(this, t);
11872
11872
  break;
11873
11873
  }
11874
11874
  case M.BEFORE_HTML: {
11875
- El(this, t);
11875
+ yl(this, t);
11876
11876
  break;
11877
11877
  }
11878
11878
  case M.BEFORE_HEAD: {
11879
- Tl(this, t);
11879
+ El(this, t);
11880
11880
  break;
11881
11881
  }
11882
11882
  case M.IN_HEAD: {
11883
- Cl(this, t);
11883
+ Tl(this, t);
11884
11884
  break;
11885
11885
  }
11886
11886
  case M.IN_HEAD_NO_SCRIPT: {
11887
- xl(this, t);
11887
+ Cl(this, t);
11888
11888
  break;
11889
11889
  }
11890
11890
  case M.AFTER_HEAD: {
11891
- Sl(this, t);
11891
+ xl(this, t);
11892
11892
  break;
11893
11893
  }
11894
11894
  case M.IN_BODY:
@@ -11936,27 +11936,27 @@ class od {
11936
11936
  }
11937
11937
  switch (this.insertionMode) {
11938
11938
  case M.INITIAL: {
11939
- cl(this, t);
11939
+ ul(this, t);
11940
11940
  break;
11941
11941
  }
11942
11942
  case M.BEFORE_HTML: {
11943
- El(this, t);
11943
+ yl(this, t);
11944
11944
  break;
11945
11945
  }
11946
11946
  case M.BEFORE_HEAD: {
11947
- Tl(this, t);
11947
+ El(this, t);
11948
11948
  break;
11949
11949
  }
11950
11950
  case M.IN_HEAD: {
11951
- Cl(this, t);
11951
+ Tl(this, t);
11952
11952
  break;
11953
11953
  }
11954
11954
  case M.IN_HEAD_NO_SCRIPT: {
11955
- xl(this, t);
11955
+ Cl(this, t);
11956
11956
  break;
11957
11957
  }
11958
11958
  case M.AFTER_HEAD: {
11959
- Sl(this, t);
11959
+ xl(this, t);
11960
11960
  break;
11961
11961
  }
11962
11962
  case M.TEXT: {
@@ -12012,7 +12012,7 @@ class od {
12012
12012
  break;
12013
12013
  }
12014
12014
  case M.IN_TABLE_TEXT: {
12015
- dl(this, t);
12015
+ cl(this, t);
12016
12016
  break;
12017
12017
  }
12018
12018
  case M.AFTER_BODY: {
@@ -12041,7 +12041,7 @@ class od {
12041
12041
  break;
12042
12042
  }
12043
12043
  case M.IN_TABLE_TEXT: {
12044
- dl(this, t);
12044
+ cl(this, t);
12045
12045
  break;
12046
12046
  }
12047
12047
  }
@@ -12068,7 +12068,7 @@ class od {
12068
12068
  _startTagOutsideForeignContent(t) {
12069
12069
  switch (this.insertionMode) {
12070
12070
  case M.INITIAL: {
12071
- cl(this, t);
12071
+ ul(this, t);
12072
12072
  break;
12073
12073
  }
12074
12074
  case M.BEFORE_HTML: {
@@ -12092,7 +12092,7 @@ class od {
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: {
@@ -12100,7 +12100,7 @@ class od {
12100
12100
  break;
12101
12101
  }
12102
12102
  case M.IN_TABLE_TEXT: {
12103
- dl(this, t);
12103
+ cl(this, t);
12104
12104
  break;
12105
12105
  }
12106
12106
  case M.IN_CAPTION: {
@@ -12165,7 +12165,7 @@ class od {
12165
12165
  _endTagOutsideForeignContent(t) {
12166
12166
  switch (this.insertionMode) {
12167
12167
  case M.INITIAL: {
12168
- cl(this, t);
12168
+ ul(this, t);
12169
12169
  break;
12170
12170
  }
12171
12171
  case M.BEFORE_HTML: {
@@ -12197,11 +12197,11 @@ class od {
12197
12197
  break;
12198
12198
  }
12199
12199
  case M.IN_TABLE: {
12200
- Pl(this, t);
12200
+ Ll(this, t);
12201
12201
  break;
12202
12202
  }
12203
12203
  case M.IN_TABLE_TEXT: {
12204
- dl(this, t);
12204
+ cl(this, t);
12205
12205
  break;
12206
12206
  }
12207
12207
  case M.IN_CAPTION: {
@@ -12258,27 +12258,27 @@ class od {
12258
12258
  onEof(t) {
12259
12259
  switch (this.insertionMode) {
12260
12260
  case M.INITIAL: {
12261
- cl(this, t);
12261
+ ul(this, t);
12262
12262
  break;
12263
12263
  }
12264
12264
  case M.BEFORE_HTML: {
12265
- El(this, t);
12265
+ yl(this, t);
12266
12266
  break;
12267
12267
  }
12268
12268
  case M.BEFORE_HEAD: {
12269
- Tl(this, t);
12269
+ El(this, t);
12270
12270
  break;
12271
12271
  }
12272
12272
  case M.IN_HEAD: {
12273
- Cl(this, t);
12273
+ Tl(this, t);
12274
12274
  break;
12275
12275
  }
12276
12276
  case M.IN_HEAD_NO_SCRIPT: {
12277
- xl(this, t);
12277
+ Cl(this, t);
12278
12278
  break;
12279
12279
  }
12280
12280
  case M.AFTER_HEAD: {
12281
- Sl(this, t);
12281
+ xl(this, t);
12282
12282
  break;
12283
12283
  }
12284
12284
  case M.IN_BODY:
@@ -12298,7 +12298,7 @@ class od {
12298
12298
  break;
12299
12299
  }
12300
12300
  case M.IN_TABLE_TEXT: {
12301
- dl(this, t);
12301
+ cl(this, t);
12302
12302
  break;
12303
12303
  }
12304
12304
  case M.IN_TEMPLATE: {
@@ -12443,23 +12443,23 @@ function sT(e, t) {
12443
12443
  const n = t.forceQuirks ? zt.QUIRKS : B2(t);
12444
12444
  P2(t) || e._err(t, Y.nonConformingDoctype), e.treeAdapter.setDocumentMode(e.document, n), e.insertionMode = M.BEFORE_HTML;
12445
12445
  }
12446
- function cl(e, t) {
12446
+ function ul(e, t) {
12447
12447
  e._err(t, Y.missingDoctype, !0), e.treeAdapter.setDocumentMode(e.document, zt.QUIRKS), e.insertionMode = M.BEFORE_HTML, e._processToken(t);
12448
12448
  }
12449
12449
  function oT(e, t) {
12450
- t.tagID === p.HTML ? (e._insertElement(t, Q.HTML), e.insertionMode = M.BEFORE_HEAD) : El(e, t);
12450
+ t.tagID === p.HTML ? (e._insertElement(t, Q.HTML), e.insertionMode = M.BEFORE_HEAD) : yl(e, t);
12451
12451
  }
12452
12452
  function uT(e, t) {
12453
12453
  const n = t.tagID;
12454
- (n === p.HTML || n === p.HEAD || n === p.BODY || n === p.BR) && El(e, t);
12454
+ (n === p.HTML || n === p.HEAD || n === p.BODY || n === p.BR) && yl(e, t);
12455
12455
  }
12456
- function El(e, t) {
12456
+ function yl(e, t) {
12457
12457
  e._insertFakeRootElement(), e.insertionMode = M.BEFORE_HEAD, e._processToken(t);
12458
12458
  }
12459
12459
  function cT(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: {
@@ -12467,20 +12467,20 @@ function cT(e, t) {
12467
12467
  break;
12468
12468
  }
12469
12469
  default:
12470
- Tl(e, t);
12470
+ El(e, t);
12471
12471
  }
12472
12472
  }
12473
12473
  function dT(e, t) {
12474
12474
  const n = t.tagID;
12475
- n === p.HEAD || n === p.BODY || n === p.HTML || n === p.BR ? Tl(e, t) : e._err(t, Y.endTagWithoutMatchingOpenElement);
12475
+ n === p.HEAD || n === p.BODY || n === p.HTML || n === p.BR ? El(e, t) : e._err(t, Y.endTagWithoutMatchingOpenElement);
12476
12476
  }
12477
- function Tl(e, t) {
12477
+ function El(e, t) {
12478
12478
  e._insertFakeElement(U.HEAD, p.HEAD), e.headElement = e.openElements.current, e.insertionMode = M.IN_HEAD, e._processToken(t);
12479
12479
  }
12480
12480
  function Yt(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:
@@ -12517,7 +12517,7 @@ function Yt(e, t) {
12517
12517
  break;
12518
12518
  }
12519
12519
  default:
12520
- Cl(e, t);
12520
+ Tl(e, t);
12521
12521
  }
12522
12522
  }
12523
12523
  function fT(e, t) {
@@ -12529,7 +12529,7 @@ function fT(e, t) {
12529
12529
  case p.BODY:
12530
12530
  case p.BR:
12531
12531
  case p.HTML: {
12532
- Cl(e, t);
12532
+ Tl(e, t);
12533
12533
  break;
12534
12534
  }
12535
12535
  case p.TEMPLATE: {
@@ -12543,13 +12543,13 @@ function fT(e, t) {
12543
12543
  function Er(e, t) {
12544
12544
  e.openElements.tmplCount > 0 ? (e.openElements.generateImpliedEndTagsThoroughly(), e.openElements.currentTagId !== p.TEMPLATE && e._err(t, Y.closingOfElementWithOpenChildElements), e.openElements.popUntilTagNamePopped(p.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode()) : e._err(t, Y.endTagWithoutMatchingOpenElement);
12545
12545
  }
12546
- function Cl(e, t) {
12546
+ function Tl(e, t) {
12547
12547
  e.openElements.pop(), e.insertionMode = M.AFTER_HEAD, e._processToken(t);
12548
12548
  }
12549
12549
  function hT(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:
@@ -12567,7 +12567,7 @@ function hT(e, t) {
12567
12567
  break;
12568
12568
  }
12569
12569
  default:
12570
- xl(e, t);
12570
+ Cl(e, t);
12571
12571
  }
12572
12572
  }
12573
12573
  function pT(e, t) {
@@ -12577,21 +12577,21 @@ function pT(e, t) {
12577
12577
  break;
12578
12578
  }
12579
12579
  case p.BR: {
12580
- xl(e, t);
12580
+ Cl(e, t);
12581
12581
  break;
12582
12582
  }
12583
12583
  default:
12584
12584
  e._err(t, Y.endTagWithoutMatchingOpenElement);
12585
12585
  }
12586
12586
  }
12587
- function xl(e, t) {
12587
+ function Cl(e, t) {
12588
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 mT(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: {
@@ -12620,7 +12620,7 @@ function mT(e, t) {
12620
12620
  break;
12621
12621
  }
12622
12622
  default:
12623
- Sl(e, t);
12623
+ xl(e, t);
12624
12624
  }
12625
12625
  }
12626
12626
  function bT(e, t) {
@@ -12628,7 +12628,7 @@ function bT(e, t) {
12628
12628
  case p.BODY:
12629
12629
  case p.HTML:
12630
12630
  case p.BR: {
12631
- Sl(e, t);
12631
+ xl(e, t);
12632
12632
  break;
12633
12633
  }
12634
12634
  case p.TEMPLATE: {
@@ -12639,7 +12639,7 @@ function bT(e, t) {
12639
12639
  e._err(t, Y.endTagWithoutMatchingOpenElement);
12640
12640
  }
12641
12641
  }
12642
- function Sl(e, t) {
12642
+ function xl(e, t) {
12643
12643
  e._insertFakeElement(U.BODY, p.BODY), e.insertionMode = M.IN_BODY, vi(e, t);
12644
12644
  }
12645
12645
  function vi(e, t) {
@@ -12657,7 +12657,7 @@ function vi(e, t) {
12657
12657
  break;
12658
12658
  }
12659
12659
  case Ne.START_TAG: {
12660
- ht(e, t);
12660
+ pt(e, t);
12661
12661
  break;
12662
12662
  }
12663
12663
  case Ne.END_TAG: {
@@ -12788,7 +12788,7 @@ function qT(e, t) {
12788
12788
  function cd(e, t) {
12789
12789
  e._reconstructActiveFormattingElements(), e._insertElement(t, Q.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:
@@ -13171,7 +13171,7 @@ function fs(e, t) {
13171
13171
  }
13172
13172
  }
13173
13173
  else
13174
- Jl(e, t);
13174
+ Xl(e, t);
13175
13175
  }
13176
13176
  function r3(e, t) {
13177
13177
  e.openElements.clearBackToTableContext(), e.activeFormattingElements.insertMarker(), e._insertElement(t, Q.HTML), e.insertionMode = M.IN_CAPTION;
@@ -13192,7 +13192,7 @@ function o3(e, t) {
13192
13192
  e.openElements.hasInTableScope(p.TABLE) && (e.openElements.popUntilTagNamePopped(p.TABLE), e._resetInsertionMode(), e._processStartTag(t));
13193
13193
  }
13194
13194
  function u3(e, t) {
13195
- hp(t) ? e._appendElement(t, Q.HTML) : Jl(e, t), t.ackSelfClosing = !0;
13195
+ hp(t) ? e._appendElement(t, Q.HTML) : Xl(e, t), t.ackSelfClosing = !0;
13196
13196
  }
13197
13197
  function c3(e, t) {
13198
13198
  !e.formElement && e.openElements.tmplCount === 0 && (e._insertElement(t, Q.HTML), e.formElement = e.openElements.current, e.openElements.pop());
@@ -13242,10 +13242,10 @@ function Ur(e, t) {
13242
13242
  break;
13243
13243
  }
13244
13244
  default:
13245
- Jl(e, t);
13245
+ Xl(e, t);
13246
13246
  }
13247
13247
  }
13248
- function Pl(e, t) {
13248
+ function Ll(e, t) {
13249
13249
  switch (t.tagID) {
13250
13250
  case p.TABLE: {
13251
13251
  e.openElements.hasInTableScope(p.TABLE) && (e.openElements.popUntilTagNamePopped(p.TABLE), e._resetInsertionMode());
@@ -13268,10 +13268,10 @@ function Pl(e, t) {
13268
13268
  case p.TR:
13269
13269
  break;
13270
13270
  default:
13271
- Jl(e, t);
13271
+ Xl(e, t);
13272
13272
  }
13273
13273
  }
13274
- function Jl(e, t) {
13274
+ function Xl(e, t) {
13275
13275
  const n = e.fosterParentingEnabled;
13276
13276
  e.fosterParentingEnabled = !0, vi(e, t), e.fosterParentingEnabled = n;
13277
13277
  }
@@ -13281,11 +13281,11 @@ function bp(e, t) {
13281
13281
  function gp(e, t) {
13282
13282
  e.pendingCharacterTokens.push(t), e.hasNonWhitespacePendingCharacterToken = !0;
13283
13283
  }
13284
- function dl(e, t) {
13284
+ function cl(e, t) {
13285
13285
  let n = 0;
13286
13286
  if (e.hasNonWhitespacePendingCharacterToken)
13287
13287
  for (; n < e.pendingCharacterTokens.length; n++)
13288
- Jl(e, e.pendingCharacterTokens[n]);
13288
+ Xl(e, e.pendingCharacterTokens[n]);
13289
13289
  else
13290
13290
  for (; n < e.pendingCharacterTokens.length; n++)
13291
13291
  e._insertCharacters(e.pendingCharacterTokens[n]);
@@ -13294,14 +13294,14 @@ function dl(e, t) {
13294
13294
  const vp = /* @__PURE__ */ new Set([p.CAPTION, p.COL, p.COLGROUP, p.TBODY, p.TD, p.TFOOT, p.TH, p.THEAD, p.TR]);
13295
13295
  function d3(e, t) {
13296
13296
  const n = t.tagID;
13297
- vp.has(n) ? e.openElements.hasInTableScope(p.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(p.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = M.IN_TABLE, Ur(e, t)) : ht(e, t);
13297
+ vp.has(n) ? e.openElements.hasInTableScope(p.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(p.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = M.IN_TABLE, Ur(e, t)) : pt(e, t);
13298
13298
  }
13299
13299
  function f3(e, t) {
13300
13300
  const n = t.tagID;
13301
13301
  switch (n) {
13302
13302
  case p.CAPTION:
13303
13303
  case p.TABLE: {
13304
- e.openElements.hasInTableScope(p.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(p.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = M.IN_TABLE, n === p.TABLE && Pl(e, t));
13304
+ e.openElements.hasInTableScope(p.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(p.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = M.IN_TABLE, n === p.TABLE && Ll(e, t));
13305
13305
  break;
13306
13306
  }
13307
13307
  case p.BODY:
@@ -13322,7 +13322,7 @@ function f3(e, t) {
13322
13322
  function eu(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: {
@@ -13390,7 +13390,7 @@ function ao(e, t) {
13390
13390
  break;
13391
13391
  }
13392
13392
  case p.TABLE: {
13393
- e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = M.IN_TABLE, Pl(e, t));
13393
+ e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = M.IN_TABLE, Ll(e, t));
13394
13394
  break;
13395
13395
  }
13396
13396
  case p.BODY:
@@ -13403,7 +13403,7 @@ function ao(e, t) {
13403
13403
  case p.TR:
13404
13404
  break;
13405
13405
  default:
13406
- Pl(e, t);
13406
+ Ll(e, t);
13407
13407
  }
13408
13408
  }
13409
13409
  function Ti(e, t) {
@@ -13452,12 +13452,12 @@ function yp(e, t) {
13452
13452
  case p.TH:
13453
13453
  break;
13454
13454
  default:
13455
- Pl(e, t);
13455
+ Ll(e, t);
13456
13456
  }
13457
13457
  }
13458
13458
  function p3(e, t) {
13459
13459
  const n = t.tagID;
13460
- vp.has(n) ? (e.openElements.hasInTableScope(p.TD) || e.openElements.hasInTableScope(p.TH)) && (e._closeTableCell(), Ti(e, t)) : ht(e, t);
13460
+ vp.has(n) ? (e.openElements.hasInTableScope(p.TD) || e.openElements.hasInTableScope(p.TH)) && (e._closeTableCell(), Ti(e, t)) : pt(e, t);
13461
13461
  }
13462
13462
  function m3(e, t) {
13463
13463
  const n = t.tagID;
@@ -13488,7 +13488,7 @@ function m3(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 v3(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 y3(e, t) {
@@ -13594,7 +13594,7 @@ function Cp(e, t) {
13594
13594
  e.openElements.tmplCount > 0 ? (e.openElements.popUntilTagNamePopped(p.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode(), e.onEof(t)) : Zo(e, t);
13595
13595
  }
13596
13596
  function E3(e, t) {
13597
- t.tagID === p.HTML ? ht(e, t) : ja(e, t);
13597
+ t.tagID === p.HTML ? pt(e, t) : ja(e, t);
13598
13598
  }
13599
13599
  function xp(e, t) {
13600
13600
  var n;
@@ -13613,7 +13613,7 @@ function ja(e, t) {
13613
13613
  function T3(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 C3(e, t) {
13636
13636
  function x3(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 S3(e, t) {
13649
13649
  t.tagID === p.HTML && (e.insertionMode = M.AFTER_AFTER_FRAMESET);
13650
13650
  }
13651
13651
  function k3(e, t) {
13652
- t.tagID === p.HTML ? ht(e, t) : La(e, t);
13652
+ t.tagID === p.HTML ? pt(e, t) : La(e, t);
13653
13653
  }
13654
13654
  function La(e, t) {
13655
13655
  e.insertionMode = M.IN_BODY, vi(e, t);
@@ -13657,7 +13657,7 @@ function La(e, t) {
13657
13657
  function A3(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: {
@@ -13756,7 +13756,7 @@ function L3(e, t) {
13756
13756
  const n = {
13757
13757
  type: Ne.CHARACTER,
13758
13758
  chars: e.value,
13759
- location: Zl(e)
13759
+ location: Jl(e)
13760
13760
  };
13761
13761
  Xr(t, ln(e)), t.parser.currentToken = n, t.parser._processToken(t.parser.currentToken);
13762
13762
  }
@@ -13767,7 +13767,7 @@ function P3(e, t) {
13767
13767
  forceQuirks: !1,
13768
13768
  publicId: "",
13769
13769
  systemId: "",
13770
- location: Zl(e)
13770
+ location: Jl(e)
13771
13771
  };
13772
13772
  Xr(t, ln(e)), t.parser.currentToken = n, t.parser._processToken(t.parser.currentToken);
13773
13773
  }
@@ -13787,7 +13787,7 @@ function Np(e, t) {
13787
13787
  const n = e.value, r = {
13788
13788
  type: Ne.COMMENT,
13789
13789
  data: n,
13790
- location: Zl(e)
13790
+ location: Jl(e)
13791
13791
  };
13792
13792
  Xr(t, ln(e)), t.parser.currentToken = r, t.parser._processToken(t.parser.currentToken);
13793
13793
  }
@@ -13853,7 +13853,7 @@ function U3(e, t) {
13853
13853
  // Always element.
13854
13854
  /* c8 ignore next */
13855
13855
  attrs: "attrs" in a ? a.attrs : [],
13856
- location: Zl(e)
13856
+ location: Jl(e)
13857
13857
  };
13858
13858
  t.parser.currentToken = i, t.parser._processToken(t.parser.currentToken), t.parser.tokenizer.lastStartTagName = n;
13859
13859
  }
@@ -13868,7 +13868,7 @@ function z3(e, t) {
13868
13868
  selfClosing: !1,
13869
13869
  ackSelfClosing: !1,
13870
13870
  attrs: [],
13871
- location: Zl(e)
13871
+ location: Jl(e)
13872
13872
  };
13873
13873
  t.parser.currentToken = r, t.parser._processToken(t.parser.currentToken), // Current element is closed.
13874
13874
  n === t.parser.tokenizer.lastStartTagName && // `<textarea>` and `<title>`
@@ -13880,7 +13880,7 @@ function V3(e) {
13880
13880
  const t = e.type === "root" ? e.children[0] : e;
13881
13881
  return !!(t && (t.type === "doctype" || t.type === "element" && t.tagName.toLowerCase() === "html"));
13882
13882
  }
13883
- function Zl(e) {
13883
+ function Jl(e) {
13884
13884
  const t = ln(e) || {
13885
13885
  line: void 0,
13886
13886
  column: void 0,
@@ -14136,13 +14136,13 @@ function _p(e, t) {
14136
14136
  function Y3(e, t) {
14137
14137
  if (e.schema.allowComments) {
14138
14138
  const n = typeof t.value == "string" ? t.value : "", r = n.indexOf("-->"), a = { type: "comment", value: r < 0 ? n : n.slice(0, r) };
14139
- return ea(a, t), a;
14139
+ return Zl(a, t), a;
14140
14140
  }
14141
14141
  }
14142
14142
  function j3(e, t) {
14143
14143
  if (e.schema.allowDoctypes) {
14144
14144
  const n = { type: "doctype" };
14145
- return ea(n, t), n;
14145
+ return Zl(n, t), n;
14146
14146
  }
14147
14147
  }
14148
14148
  function K3(e, t) {
@@ -14168,18 +14168,18 @@ function K3(e, t) {
14168
14168
  properties: l,
14169
14169
  children: r
14170
14170
  };
14171
- return ea(i, t), i;
14171
+ return Zl(i, t), i;
14172
14172
  }
14173
14173
  function G3(e, t) {
14174
14174
  const r = { type: "root", children: (
14175
14175
  /** @type {Array<RootContent>} */
14176
14176
  Ip(e, t.children)
14177
14177
  ) };
14178
- return ea(r, t), r;
14178
+ return Zl(r, t), r;
14179
14179
  }
14180
14180
  function Q3(e, t) {
14181
14181
  const r = { type: "text", value: typeof t.value == "string" ? t.value : "" };
14182
- return ea(r, t), r;
14182
+ return Zl(r, t), r;
14183
14183
  }
14184
14184
  function Ip(e, t) {
14185
14185
  const n = [];
@@ -14269,7 +14269,7 @@ function Z3(e, t, n) {
14269
14269
  }
14270
14270
  return !1;
14271
14271
  }
14272
- function ea(e, t) {
14272
+ function Zl(e, t) {
14273
14273
  const n = Eh(
14274
14274
  // @ts-expect-error: looks like a node.
14275
14275
  t
@@ -14500,12 +14500,12 @@ function tu(e, t) {
14500
14500
  const q = e.charCodeAt(O);
14501
14501
  if (!k(q))
14502
14502
  break;
14503
- N += String.fromCharCode(q), I === "named" && tC.includes(N) && (C = N, _ = Rl(N));
14503
+ N += String.fromCharCode(q), I === "named" && tC.includes(N) && (C = N, _ = Ml(N));
14504
14504
  }
14505
14505
  let B = e.charCodeAt(O) === 59;
14506
14506
  if (B) {
14507
14507
  O++;
14508
- const q = I === "named" ? Rl(N) : !1;
14508
+ const q = I === "named" ? Ml(N) : !1;
14509
14509
  q && (C = N, _ = q);
14510
14510
  }
14511
14511
  let D = 1 + O - A, F = "";
@@ -14838,7 +14838,7 @@ function ru(e, t, n, r, l, a, i, s, o, u, c, d, h, f, m) {
14838
14838
  return e.enter(r), e.enter(l), e.consume(y), e.exit(l), A;
14839
14839
  }
14840
14840
  function A(y) {
14841
- return y === 35 ? (g = i, S(y)) : y === 46 ? (g = s, S(y)) : m && Re(y) ? De(e, A, "whitespace")(y) : !m && We(y) ? dn(e, A)(y) : y === null || de(y) || Ll(y) || Dl(y) && y !== 45 && y !== 95 ? L(y) : (e.enter(a), e.enter(o), e.consume(y), C);
14841
+ return y === 35 ? (g = i, S(y)) : y === 46 ? (g = s, S(y)) : m && Re(y) ? De(e, A, "whitespace")(y) : !m && We(y) ? dn(e, A)(y) : y === null || de(y) || Dl(y) || Rl(y) && y !== 45 && y !== 95 ? L(y) : (e.enter(a), e.enter(o), e.consume(y), C);
14842
14842
  }
14843
14843
  function S(y) {
14844
14844
  const P = (
@@ -14869,7 +14869,7 @@ function ru(e, t, n, r, l, a, i, s, o, u, c, d, h, f, m) {
14869
14869
  return e.consume(y), I;
14870
14870
  }
14871
14871
  function C(y) {
14872
- return y === null || de(y) || Ll(y) || Dl(y) && y !== 45 && y !== 46 && y !== 58 && y !== 95 ? (e.exit(o), m && Re(y) ? De(e, _, "whitespace")(y) : !m && We(y) ? dn(e, _)(y) : _(y)) : (e.consume(y), C);
14872
+ return y === null || de(y) || Dl(y) || Rl(y) && y !== 45 && y !== 46 && y !== 58 && y !== 95 ? (e.exit(o), m && Re(y) ? De(e, _, "whitespace")(y) : !m && We(y) ? dn(e, _)(y) : _(y)) : (e.consume(y), C);
14873
14873
  }
14874
14874
  function _(y) {
14875
14875
  return y === 61 ? (e.enter(u), e.consume(y), e.exit(u), N) : (e.exit(a), A(y));
@@ -14929,10 +14929,10 @@ function au(e, t, n, r) {
14929
14929
  const l = this;
14930
14930
  return a;
14931
14931
  function a(s) {
14932
- return s === null || de(s) || Dl(s) || Ll(s) ? n(s) : (e.enter(r), e.consume(s), i);
14932
+ return s === null || de(s) || Rl(s) || Dl(s) ? n(s) : (e.enter(r), e.consume(s), i);
14933
14933
  }
14934
14934
  function i(s) {
14935
- return s === null || de(s) || Ll(s) || Dl(s) && s !== 45 && s !== 95 ? (e.exit(r), l.previous === 45 || l.previous === 95 ? n(s) : t(s)) : (e.consume(s), i);
14935
+ return s === null || de(s) || Dl(s) || Rl(s) && s !== 45 && s !== 95 ? (e.exit(r), l.previous === 45 || l.previous === 95 ? n(s) : t(s)) : (e.consume(s), i);
14936
14936
  }
14937
14937
  }
14938
14938
  const wC = {
@@ -15133,7 +15133,7 @@ function GC() {
15133
15133
  function Ed(e) {
15134
15134
  return !!e && typeof e == "object" && e.type === "steps" && Array.isArray(e.platforms) && e.platforms.length > 0;
15135
15135
  }
15136
- function ta(e) {
15136
+ function ea(e) {
15137
15137
  if (Ed(e)) return e;
15138
15138
  if (typeof e == "string") {
15139
15139
  const t = e.trim();
@@ -15405,7 +15405,7 @@ const QC = {
15405
15405
  ] });
15406
15406
  }, ix = (e) => e ? typeof e == "string" ? e : JSON.stringify(e) : "", Lp = ge.memo(
15407
15407
  ({ node: e, value: t, onChange: n, disabled: r, error: l }) => {
15408
- const a = ix(e.tooltip), i = t ?? "", s = e.placeholder || "", o = i.length > 0, u = ta(e.tooltip), c = !!u, d = !!a && !c && !o, h = !!a && !c, f = te(null), m = te(null), g = te(i), [b, E] = G(
15408
+ const a = ix(e.tooltip), i = t ?? "", s = e.placeholder || "", o = i.length > 0, u = ea(e.tooltip), c = !!u, d = !!a && !c && !o, h = !!a && !c, f = te(null), m = te(null), g = te(i), [b, E] = G(
15409
15409
  () => i.includes(`
15410
15410
  `)
15411
15411
  ), A = e.allowNewline !== !1, S = V(
@@ -15618,7 +15618,7 @@ const Ea = {
15618
15618
  adjustX: !0,
15619
15619
  adjustY: !0,
15620
15620
  shiftY: !1
15621
- }, na = () => document.body, iu = {
15621
+ }, ta = () => document.body, iu = {
15622
15622
  bottomLeft: {
15623
15623
  points: ["tl", "bl"],
15624
15624
  offset: [0, 4],
@@ -15700,7 +15700,7 @@ const Ea = {
15700
15700
  "data-key": e.key,
15701
15701
  style: { width: o },
15702
15702
  children: /* @__PURE__ */ v(
15703
- Kl,
15703
+ jl,
15704
15704
  {
15705
15705
  value: i,
15706
15706
  options: e.options,
@@ -15713,7 +15713,7 @@ const Ea = {
15713
15713
  popupMatchSelectWidth: !1,
15714
15714
  placement: "bottomLeft",
15715
15715
  builtinPlacements: iu,
15716
- getPopupContainer: na,
15716
+ getPopupContainer: ta,
15717
15717
  suffixIcon: /* @__PURE__ */ v(
15718
15718
  "i",
15719
15719
  {
@@ -15819,7 +15819,7 @@ const Fp = ge.memo(
15819
15819
  "data-key": e.key,
15820
15820
  style: { display: "inline-block", width: h },
15821
15821
  children: /* @__PURE__ */ v(
15822
- Kl,
15822
+ jl,
15823
15823
  {
15824
15824
  "data-type": "searchable-select",
15825
15825
  "data-key": e.key,
@@ -15842,7 +15842,7 @@ const Fp = ge.memo(
15842
15842
  popupMatchSelectWidth: !1,
15843
15843
  placement: "bottomLeft",
15844
15844
  builtinPlacements: iu,
15845
- getPopupContainer: na,
15845
+ getPopupContainer: ta,
15846
15846
  notFoundContent: /* @__PURE__ */ v("span", { style: { color: "#999", fontSize: 13 }, children: "暂无数据" }),
15847
15847
  suffixIcon: /* @__PURE__ */ v(
15848
15848
  "i",
@@ -15858,27 +15858,27 @@ const Fp = ge.memo(
15858
15858
  }
15859
15859
  );
15860
15860
  Fp.displayName = "SearchableSelectNode";
15861
- function Bl(e) {
15861
+ function Pl(e) {
15862
15862
  "@babel/helpers - typeof";
15863
- return Bl = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
15863
+ return Pl = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
15864
15864
  return typeof t;
15865
15865
  } : function(t) {
15866
15866
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
15867
- }, Bl(e);
15867
+ }, Pl(e);
15868
15868
  }
15869
15869
  function sx(e, t) {
15870
- if (Bl(e) != "object" || !e) return e;
15870
+ if (Pl(e) != "object" || !e) return e;
15871
15871
  var n = e[Symbol.toPrimitive];
15872
15872
  if (n !== void 0) {
15873
15873
  var r = n.call(e, t);
15874
- if (Bl(r) != "object") return r;
15874
+ if (Pl(r) != "object") return r;
15875
15875
  throw new TypeError("@@toPrimitive must return a primitive value.");
15876
15876
  }
15877
15877
  return (t === "string" ? String : Number)(e);
15878
15878
  }
15879
15879
  function ox(e) {
15880
15880
  var t = sx(e, "string");
15881
- return Bl(t) == "symbol" ? t : t + "";
15881
+ return Pl(t) == "symbol" ? t : t + "";
15882
15882
  }
15883
15883
  function ux(e, t, n) {
15884
15884
  return (t = ox(t)) in e ? Object.defineProperty(e, t, {
@@ -16109,13 +16109,13 @@ function Up() {
16109
16109
  }, y.format = function(P) {
16110
16110
  var z = this, $ = this.$locale();
16111
16111
  if (!this.isValid()) return $.invalidDate || g;
16112
- var K = P || "YYYY-MM-DDTHH:mm:ssZ", T = D.z(this), ie = this.$H, ue = this.$m, R = this.$M, me = $.weekdays, ke = $.months, we = $.meridiem, fe = function(Oe, Le, Ft, mt) {
16113
- return Oe && (Oe[Le] || Oe(z, K)) || Ft[Le].slice(0, mt);
16112
+ var K = P || "YYYY-MM-DDTHH:mm:ssZ", T = D.z(this), ie = this.$H, ue = this.$m, R = this.$M, me = $.weekdays, ke = $.months, we = $.meridiem, fe = function(Oe, Le, Ft, st) {
16113
+ return Oe && (Oe[Le] || Oe(z, K)) || Ft[Le].slice(0, st);
16114
16114
  }, _e = function(Oe) {
16115
16115
  return D.s(ie % 12 || 12, Oe, "0");
16116
16116
  }, Pe = we || function(Oe, Le, Ft) {
16117
- var mt = Oe < 12 ? "AM" : "PM";
16118
- return Ft ? mt.toLowerCase() : mt;
16117
+ var st = Oe < 12 ? "AM" : "PM";
16118
+ return Ft ? st.toLowerCase() : st;
16119
16119
  };
16120
16120
  return K.replace(E, function(Oe, Le) {
16121
16121
  return Le || function(Ft) {
@@ -22280,7 +22280,7 @@ const yx = [
22280
22280
  popupClassName: "rte-cascader-dropdown",
22281
22281
  placement: "bottomLeft",
22282
22282
  builtinPlacements: iu,
22283
- getPopupContainer: na,
22283
+ getPopupContainer: ta,
22284
22284
  displayRender: (I) => I.join("-"),
22285
22285
  style: { width: "100%" },
22286
22286
  suffixIcon: /* @__PURE__ */ v(
@@ -22984,7 +22984,7 @@ const Nx = /\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i, wx = (e) => Nx.test(e), _x
22984
22984
  return q ? /* @__PURE__ */ v(
22985
22985
  Po,
22986
22986
  {
22987
- getPopupContainer: na,
22987
+ getPopupContainer: ta,
22988
22988
  title: /* @__PURE__ */ v("div", { className: "se-upload-preview", children: /* @__PURE__ */ v("img", { className: "se-upload-preview-img", src: A, alt: "preview" }) }),
22989
22989
  placement: "top",
22990
22990
  align: { offset: [0, -10] },
@@ -23102,7 +23102,7 @@ const Dx = (e = Date.now()) => e - Nd < Rx ? !1 : (Nd = e, !0), Lx = 32, Px = (e
23102
23102
  return typeof e == "string" ? e : JSON.stringify(e);
23103
23103
  }, Hx = 12, Kp = ge.memo(
23104
23104
  ({ node: e, files: t, onFileChange: n, disabled: r, error: l, onValidationError: a }) => {
23105
- const { message: i } = Un.useApp(), s = typeof e.maxCount == "number" && typeof e.minCount == "number" && e.maxCount > 1, o = Bx(e), u = te(null), c = Px(u), d = ta(e.tooltip), h = !!d, f = h ? void 0 : Fx(e.tooltip), m = V(
23105
+ const { message: i } = Un.useApp(), s = typeof e.maxCount == "number" && typeof e.minCount == "number" && e.maxCount > 1, o = Bx(e), u = te(null), c = Px(u), d = ea(e.tooltip), h = !!d, f = h ? void 0 : Fx(e.tooltip), m = V(
23106
23106
  (D) => {
23107
23107
  a ? a(D) : i.error(D);
23108
23108
  },
@@ -23432,7 +23432,7 @@ const wd = 2 * Math.PI * 6.5, Gp = "data:image/svg+xml,%3Csvg xmlns='http://www.
23432
23432
  const ie = new ResizeObserver(() => C());
23433
23433
  return ie.observe(T), () => ie.disconnect();
23434
23434
  }, [S, C]);
23435
- const _ = O > 0 ? Math.max(40, O + 2) : 40, N = ta(e.tooltip), k = !!N, B = k ? "" : qx(e.tooltip), D = !!(t || n), F = V(() => {
23435
+ const _ = O > 0 ? Math.max(40, O + 2) : 40, N = ea(e.tooltip), k = !!N, B = k ? "" : qx(e.tooltip), D = !!(t || n), F = V(() => {
23436
23436
  b.current && (window.clearInterval(b.current), b.current = null);
23437
23437
  }, []), q = V(() => {
23438
23438
  F();
@@ -23636,7 +23636,7 @@ const Wx = (e) => e ? typeof e == "string" ? e : JSON.stringify(e) : "", Yx = 10
23636
23636
  disabled: o,
23637
23637
  error: u
23638
23638
  }) => {
23639
- const { message: c } = Un.useApp(), d = te(null), [h, f] = G("idle"), [m, g] = G(0), [b, E] = G(""), [A, S] = G(""), [O, I] = G(""), C = ta(e.tooltip), _ = !!C, N = _ ? "" : Wx(e.tooltip), k = !!t && !!n, B = h === "loading", D = V(() => {
23639
+ const { message: c } = Un.useApp(), d = te(null), [h, f] = G("idle"), [m, g] = G(0), [b, E] = G(""), [A, S] = G(""), [O, I] = G(""), C = ea(e.tooltip), _ = !!C, N = _ ? "" : Wx(e.tooltip), k = !!t && !!n, B = h === "loading", D = V(() => {
23640
23640
  o || B || !i || d.current?.click();
23641
23641
  }, [o, B, i]), F = V(
23642
23642
  async (y) => {
@@ -24105,7 +24105,7 @@ const Kx = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
24105
24105
  if (g) return "";
24106
24106
  const Ie = m.trim();
24107
24107
  return /^https?:\/\//i.test(Ie) ? tm(Ie) : "";
24108
- }, [m, g]), mt = V(
24108
+ }, [m, g]), st = V(
24109
24109
  (Ie) => {
24110
24110
  if (!g || c || !A) return;
24111
24111
  const ze = Ie.target;
@@ -24124,7 +24124,7 @@ const Kx = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
24124
24124
  "data-tooltip": f || void 0,
24125
24125
  "data-report-url": g ? m || !0 : void 0,
24126
24126
  "data-report-name": i || void 0,
24127
- onClick: mt,
24127
+ onClick: st,
24128
24128
  children: [
24129
24129
  /* @__PURE__ */ v(
24130
24130
  "span",
@@ -24300,7 +24300,7 @@ function lm(e, t) {
24300
24300
  [i, r.key, a, g]
24301
24301
  ), A = !l, S = ["variable-chip", e.chipClass];
24302
24302
  A && S.push("show-placeholder"), o && S.push(e.errorClass);
24303
- const O = ta(r.tooltip), I = r.tooltip == null ? "" : typeof r.tooltip == "string" ? r.tooltip : JSON.stringify(r.tooltip), C = !!I && !Dp(I);
24303
+ const O = ea(r.tooltip), I = r.tooltip == null ? "" : typeof r.tooltip == "string" ? r.tooltip : JSON.stringify(r.tooltip), C = !!I && !Dp(I);
24304
24304
  C && A && S.push("rte-variable-with-icon");
24305
24305
  const _ = r.placeholder ?? e.defaultPlaceholder, N = /* @__PURE__ */ v(
24306
24306
  "span",
@@ -25037,7 +25037,7 @@ function or(e, t) {
25037
25037
  let n = t.length - 1;
25038
25038
  n >= 0 && e.isText && e.sameMarkup(t[n]) ? t[n] = e.withText(t[n].text + e.text) : t.push(e);
25039
25039
  }
25040
- function kl(e, t, n, r) {
25040
+ function Sl(e, t, n, r) {
25041
25041
  let l = (t || e).node(n), a = 0, i = t ? t.index(n) : l.childCount;
25042
25042
  e && (a = e.index(n), e.depth > n ? a++ : e.textOffset && (or(e.nodeAfter, r), a++));
25043
25043
  for (let s = a; s < i; s++)
@@ -25049,15 +25049,15 @@ function ur(e, t) {
25049
25049
  }
25050
25050
  function dm(e, t, n, r, l) {
25051
25051
  let a = e.depth > l && so(e, t, l + 1), i = r.depth > l && so(n, r, l + 1), s = [];
25052
- return kl(null, e, l, s), a && i && t.index(l) == n.index(l) ? (cm(a, i), or(ur(a, dm(e, t, n, r, l + 1)), s)) : (a && or(ur(a, Xa(e, t, l + 1)), s), kl(t, n, l, s), i && or(ur(i, Xa(n, r, l + 1)), s)), kl(r, null, l, s), new X(s);
25052
+ return Sl(null, e, l, s), a && i && t.index(l) == n.index(l) ? (cm(a, i), or(ur(a, dm(e, t, n, r, l + 1)), s)) : (a && or(ur(a, Xa(e, t, l + 1)), s), Sl(t, n, l, s), i && or(ur(i, Xa(n, r, l + 1)), s)), Sl(r, null, l, s), new X(s);
25053
25053
  }
25054
25054
  function Xa(e, t, n) {
25055
25055
  let r = [];
25056
- if (kl(null, e, n, r), e.depth > n) {
25056
+ if (Sl(null, e, n, r), e.depth > n) {
25057
25057
  let l = so(e, t, n + 1);
25058
25058
  or(ur(l, Xa(e, t, n + 1)), r);
25059
25059
  }
25060
- return kl(t, null, n, r), new X(r);
25060
+ return Sl(t, null, n, r), new X(r);
25061
25061
  }
25062
25062
  function aS(e, t) {
25063
25063
  let n = t.depth - e.openStart, l = t.node(n).copy(e.content);
@@ -25068,7 +25068,7 @@ function aS(e, t) {
25068
25068
  end: l.resolveNoCache(l.content.size - e.openEnd - n)
25069
25069
  };
25070
25070
  }
25071
- class Fl {
25071
+ class Bl {
25072
25072
  /**
25073
25073
  @internal
25074
25074
  */
@@ -25296,7 +25296,7 @@ class Fl {
25296
25296
  break;
25297
25297
  a = u - 1, l += o + 1;
25298
25298
  }
25299
- return new Fl(n, r, a);
25299
+ return new Bl(n, r, a);
25300
25300
  }
25301
25301
  /**
25302
25302
  @internal
@@ -25311,7 +25311,7 @@ class Fl {
25311
25311
  }
25312
25312
  else
25313
25313
  Id.set(t, r = new iS());
25314
- let l = r.elts[r.i] = Fl.resolve(t, n);
25314
+ let l = r.elts[r.i] = Bl.resolve(t, n);
25315
25315
  return r.i = (r.i + 1) % sS, l;
25316
25316
  }
25317
25317
  }
@@ -25567,13 +25567,13 @@ let Dn = class oo {
25567
25567
  [object](https://prosemirror.net/docs/ref/#model.ResolvedPos) with information about its context.
25568
25568
  */
25569
25569
  resolve(t) {
25570
- return Fl.resolveCached(this, t);
25570
+ return Bl.resolveCached(this, t);
25571
25571
  }
25572
25572
  /**
25573
25573
  @internal
25574
25574
  */
25575
25575
  resolveNoCache(t) {
25576
- return Fl.resolve(this, t);
25576
+ return Bl.resolve(this, t);
25577
25577
  }
25578
25578
  /**
25579
25579
  Test whether a given mark or mark type occurs in this document
@@ -26501,7 +26501,7 @@ function ES(e) {
26501
26501
  function TS(e) {
26502
26502
  return e.style != null;
26503
26503
  }
26504
- let Al = class uo {
26504
+ let kl = class uo {
26505
26505
  /**
26506
26506
  Create a parser that targets the given schema, using the given
26507
26507
  parsing rules.
@@ -26656,13 +26656,13 @@ const Tm = {
26656
26656
  script: !0,
26657
26657
  style: !0,
26658
26658
  title: !0
26659
- }, Cm = { ol: !0, ul: !0 }, Hl = 1, co = 2, Nl = 4;
26659
+ }, Cm = { ol: !0, ul: !0 }, Fl = 1, co = 2, Al = 4;
26660
26660
  function Ld(e, t, n) {
26661
- return t != null ? (t ? Hl : 0) | (t === "full" ? co : 0) : e && e.whitespace == "pre" ? Hl | co : n & ~Nl;
26661
+ return t != null ? (t ? Fl : 0) | (t === "full" ? co : 0) : e && e.whitespace == "pre" ? Fl | co : n & ~Al;
26662
26662
  }
26663
26663
  class Ca {
26664
26664
  constructor(t, n, r, l, a, i) {
26665
- this.type = t, this.attrs = n, this.marks = r, this.solid = l, this.options = i, this.content = [], this.activeMarks = Fe.none, this.match = a || (i & Nl ? null : t.contentMatch);
26665
+ this.type = t, this.attrs = n, this.marks = r, this.solid = l, this.options = i, this.content = [], this.activeMarks = Fe.none, this.match = a || (i & Al ? null : t.contentMatch);
26666
26666
  }
26667
26667
  findWrapping(t) {
26668
26668
  if (!this.match) {
@@ -26679,7 +26679,7 @@ class Ca {
26679
26679
  return this.match.findWrapping(t.type);
26680
26680
  }
26681
26681
  finish(t) {
26682
- if (!(this.options & Hl)) {
26682
+ if (!(this.options & Fl)) {
26683
26683
  let r = this.content[this.content.length - 1], l;
26684
26684
  if (r && r.isText && (l = /[ \t\r\n\u000c]+$/.exec(r.text))) {
26685
26685
  let a = r;
@@ -26696,7 +26696,7 @@ class Ca {
26696
26696
  class Pd {
26697
26697
  constructor(t, n, r) {
26698
26698
  this.parser = t, this.options = n, this.isOpen = r, this.open = 0, this.localPreserveWS = !1;
26699
- let l = n.topNode, a, i = Ld(null, n.preserveWhitespace, 0) | (r ? Nl : 0);
26699
+ let l = n.topNode, a, i = Ld(null, n.preserveWhitespace, 0) | (r ? Al : 0);
26700
26700
  l ? a = new Ca(l.type, l.attrs, Fe.none, !0, n.topMatch || l.type.contentMatch, i) : r ? a = new Ca(null, null, Fe.none, !0, null, i) : a = new Ca(t.schema.topNodeType, null, Fe.none, !0, null, i), this.nodes = [a], this.find = n.findPositions, this.needsBlock = !1;
26701
26701
  }
26702
26702
  get top() {
@@ -26709,7 +26709,7 @@ class Pd {
26709
26709
  t.nodeType == 3 ? this.addTextNode(t, n) : t.nodeType == 1 && this.addElement(t, n);
26710
26710
  }
26711
26711
  addTextNode(t, n) {
26712
- let r = t.nodeValue, l = this.top, a = l.options & co ? "full" : this.localPreserveWS || (l.options & Hl) > 0, { schema: i } = this.parser;
26712
+ let r = t.nodeValue, l = this.top, a = l.options & co ? "full" : this.localPreserveWS || (l.options & Fl) > 0, { schema: i } = this.parser;
26713
26713
  if (a === "full" || l.inlineContext(t) || /[^ \t\r\n\u000c]/.test(r)) {
26714
26714
  if (a)
26715
26715
  if (a === "full")
@@ -26879,7 +26879,7 @@ class Pd {
26879
26879
  let i = this.top;
26880
26880
  i.match = i.match && i.match.matchType(t);
26881
26881
  let s = Ld(t, a, i.options);
26882
- i.options & Nl && i.content.length == 0 && (s |= Nl);
26882
+ i.options & Al && i.content.length == 0 && (s |= Al);
26883
26883
  let o = Fe.none;
26884
26884
  return r = r.filter((u) => (i.type ? i.type.allowsMarkType(u.type) : Fd(u.type, t)) ? (o = u.addToSet(o), !1) : !0), this.nodes.push(new Ca(t, n, o, l, null, s)), this.open++, r;
26885
26885
  }
@@ -26900,7 +26900,7 @@ class Pd {
26900
26900
  for (let n = this.open; n >= 0; n--) {
26901
26901
  if (this.nodes[n] == t)
26902
26902
  return this.open = n, !0;
26903
- this.localPreserveWS && (this.nodes[n].options |= Hl);
26903
+ this.localPreserveWS && (this.nodes[n].options |= Fl);
26904
26904
  }
26905
26905
  return !1;
26906
26906
  }
@@ -27330,7 +27330,7 @@ class Dt {
27330
27330
  }
27331
27331
  }
27332
27332
  Dt.empty = new Dt([]);
27333
- class Ul {
27333
+ class Hl {
27334
27334
  /**
27335
27335
  Create a new mapping with the given position maps.
27336
27336
  */
@@ -27347,7 +27347,7 @@ class Ul {
27347
27347
  Create a mapping that maps only through a part of this one.
27348
27348
  */
27349
27349
  slice(t = 0, n = this.maps.length) {
27350
- return new Ul(this._maps, this.mirror, t, n);
27350
+ return new Hl(this._maps, this.mirror, t, n);
27351
27351
  }
27352
27352
  /**
27353
27353
  Add a step map to the end of this mapping. If `mirrors` is
@@ -27398,7 +27398,7 @@ class Ul {
27398
27398
  Create an inverted version of this mapping.
27399
27399
  */
27400
27400
  invert() {
27401
- let t = new Ul();
27401
+ let t = new Hl();
27402
27402
  return t.appendMappingInverted(this), t;
27403
27403
  }
27404
27404
  /**
@@ -27438,7 +27438,7 @@ class Ul {
27438
27438
  }
27439
27439
  }
27440
27440
  const xs = /* @__PURE__ */ Object.create(null);
27441
- class pt {
27441
+ class mt {
27442
27442
  /**
27443
27443
  Get the step map that represents the changes made by this step,
27444
27444
  and which can be used to transform between positions in the old
@@ -27521,7 +27521,7 @@ function ou(e, t, n) {
27521
27521
  }
27522
27522
  return X.fromArray(r);
27523
27523
  }
27524
- class On extends pt {
27524
+ class On extends mt {
27525
27525
  /**
27526
27526
  Create a mark step.
27527
27527
  */
@@ -27559,8 +27559,8 @@ class On extends pt {
27559
27559
  return new On(n.from, n.to, t.markFromJSON(n.mark));
27560
27560
  }
27561
27561
  }
27562
- pt.jsonID("addMark", On);
27563
- class en extends pt {
27562
+ mt.jsonID("addMark", On);
27563
+ class en extends mt {
27564
27564
  /**
27565
27565
  Create a mark-removing step.
27566
27566
  */
@@ -27598,8 +27598,8 @@ class en extends pt {
27598
27598
  return new en(n.from, n.to, t.markFromJSON(n.mark));
27599
27599
  }
27600
27600
  }
27601
- pt.jsonID("removeMark", en);
27602
- class Mn extends pt {
27601
+ mt.jsonID("removeMark", en);
27602
+ class Mn extends mt {
27603
27603
  /**
27604
27604
  Create a node mark step.
27605
27605
  */
@@ -27642,8 +27642,8 @@ class Mn extends pt {
27642
27642
  return new Mn(n.pos, t.markFromJSON(n.mark));
27643
27643
  }
27644
27644
  }
27645
- pt.jsonID("addNodeMark", Mn);
27646
- class br extends pt {
27645
+ mt.jsonID("addNodeMark", Mn);
27646
+ class br extends mt {
27647
27647
  /**
27648
27648
  Create a mark-removing step.
27649
27649
  */
@@ -27677,8 +27677,8 @@ class br extends pt {
27677
27677
  return new br(n.pos, t.markFromJSON(n.mark));
27678
27678
  }
27679
27679
  }
27680
- pt.jsonID("removeNodeMark", br);
27681
- class Ke extends pt {
27680
+ mt.jsonID("removeNodeMark", br);
27681
+ class Ke extends mt {
27682
27682
  /**
27683
27683
  The given `slice` should fit the 'gap' between `from` and
27684
27684
  `to`—the depths must line up, and the surrounding nodes must be
@@ -27730,8 +27730,8 @@ class Ke extends pt {
27730
27730
  }
27731
27731
  }
27732
27732
  Ke.MAP_BIAS = 1;
27733
- pt.jsonID("replace", Ke);
27734
- class Ze extends pt {
27733
+ mt.jsonID("replace", Ke);
27734
+ class Ze extends mt {
27735
27735
  /**
27736
27736
  Create a replace-around step with the given range and gap.
27737
27737
  `insert` should be the point in the slice into which the content
@@ -27788,7 +27788,7 @@ class Ze extends pt {
27788
27788
  return new Ze(n.from, n.to, n.gapFrom, n.gapTo, oe.fromJSON(t, n.slice), n.insert, !!n.structure);
27789
27789
  }
27790
27790
  }
27791
- pt.jsonID("replaceAround", Ze);
27791
+ mt.jsonID("replaceAround", Ze);
27792
27792
  function ho(e, t, n) {
27793
27793
  let r = e.resolve(t), l = n - t, a = r.depth;
27794
27794
  for (; l > 0 && a > 0 && r.indexAfter(a) == r.node(a).childCount; )
@@ -28173,9 +28173,9 @@ class $S {
28173
28173
  let { content: t, openStart: n, openEnd: r } = this.unplaced, l = Ss(t, n);
28174
28174
  if (l.childCount <= 1 && n > 0) {
28175
28175
  let a = t.size - n <= n + l.size;
28176
- this.unplaced = new oe(pl(t, n - 1, 1), n - 1, a ? n - 1 : r);
28176
+ this.unplaced = new oe(hl(t, n - 1, 1), n - 1, a ? n - 1 : r);
28177
28177
  } else
28178
- this.unplaced = new oe(pl(t, n, 1), n, r);
28178
+ this.unplaced = new oe(hl(t, n, 1), n, r);
28179
28179
  }
28180
28180
  // Move content from the unplaced slice at `sliceDepth` to the
28181
28181
  // frontier node at `frontierDepth`. Close that frontier node when
@@ -28200,12 +28200,12 @@ class $S {
28200
28200
  u++, (u > 1 || o == 0 || g.content.size) && (d = b, c.push(Rm(g.mark(h.allowedMarks(g.marks)), u == 1 ? o : 0, u == s.childCount ? f : -1)));
28201
28201
  }
28202
28202
  let m = u == s.childCount;
28203
- m || (f = -1), this.placed = ml(this.placed, n, X.from(c)), this.frontier[n].match = d, m && f < 0 && r && r.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
28203
+ m || (f = -1), this.placed = pl(this.placed, n, X.from(c)), this.frontier[n].match = d, m && f < 0 && r && r.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
28204
28204
  for (let g = 0, b = s; g < f; g++) {
28205
28205
  let E = b.lastChild;
28206
28206
  this.frontier.push({ type: E.type, match: E.contentMatchAt(E.childCount) }), b = E.content;
28207
28207
  }
28208
- this.unplaced = m ? t == 0 ? oe.empty : new oe(pl(i.content, t - 1, 1), t - 1, f < 0 ? i.openEnd : t - 1) : new oe(pl(i.content, t, u), i.openStart, i.openEnd);
28208
+ this.unplaced = m ? t == 0 ? oe.empty : new oe(hl(i.content, t - 1, 1), t - 1, f < 0 ? i.openEnd : t - 1) : new oe(hl(i.content, t, u), i.openStart, i.openEnd);
28209
28209
  }
28210
28210
  mustMoveInline() {
28211
28211
  if (!this.$to.parent.isTextblock)
@@ -28237,7 +28237,7 @@ class $S {
28237
28237
  return null;
28238
28238
  for (; this.depth > n.depth; )
28239
28239
  this.closeFrontierNode();
28240
- n.fit.childCount && (this.placed = ml(this.placed, n.depth, n.fit)), t = n.move;
28240
+ n.fit.childCount && (this.placed = pl(this.placed, n.depth, n.fit)), t = n.move;
28241
28241
  for (let r = n.depth + 1; r <= t.depth; r++) {
28242
28242
  let l = t.node(r), a = l.type.contentMatch.fillBefore(l.content, !0, t.index(r));
28243
28243
  this.openFrontierNode(l.type, l.attrs, a);
@@ -28246,18 +28246,18 @@ class $S {
28246
28246
  }
28247
28247
  openFrontierNode(t, n = null, r) {
28248
28248
  let l = this.frontier[this.depth];
28249
- l.match = l.match.matchType(t), this.placed = ml(this.placed, this.depth, X.from(t.create(n, r))), this.frontier.push({ type: t, match: t.contentMatch });
28249
+ l.match = l.match.matchType(t), this.placed = pl(this.placed, this.depth, X.from(t.create(n, r))), this.frontier.push({ type: t, match: t.contentMatch });
28250
28250
  }
28251
28251
  closeFrontierNode() {
28252
28252
  let n = this.frontier.pop().match.fillBefore(X.empty, !0);
28253
- n.childCount && (this.placed = ml(this.placed, this.frontier.length, n));
28253
+ n.childCount && (this.placed = pl(this.placed, this.frontier.length, n));
28254
28254
  }
28255
28255
  }
28256
- function pl(e, t, n) {
28257
- return t == 0 ? e.cutByIndex(n, e.childCount) : e.replaceChild(0, e.firstChild.copy(pl(e.firstChild.content, t - 1, n)));
28256
+ function hl(e, t, n) {
28257
+ return t == 0 ? e.cutByIndex(n, e.childCount) : e.replaceChild(0, e.firstChild.copy(hl(e.firstChild.content, t - 1, n)));
28258
28258
  }
28259
- function ml(e, t, n) {
28260
- return t == 0 ? e.append(n) : e.replaceChild(e.childCount - 1, e.lastChild.copy(ml(e.lastChild.content, t - 1, n)));
28259
+ function pl(e, t, n) {
28260
+ return t == 0 ? e.append(n) : e.replaceChild(e.childCount - 1, e.lastChild.copy(pl(e.lastChild.content, t - 1, n)));
28261
28261
  }
28262
28262
  function Ss(e, t) {
28263
28263
  for (let n = 0; n < t; n++)
@@ -28390,7 +28390,7 @@ function Lm(e, t) {
28390
28390
  }
28391
28391
  return n;
28392
28392
  }
28393
- class Fr extends pt {
28393
+ class Fr extends mt {
28394
28394
  /**
28395
28395
  Construct an attribute step.
28396
28396
  */
@@ -28427,8 +28427,8 @@ class Fr extends pt {
28427
28427
  return new Fr(n.pos, n.attr, n.value);
28428
28428
  }
28429
28429
  }
28430
- pt.jsonID("attr", Fr);
28431
- class zl extends pt {
28430
+ mt.jsonID("attr", Fr);
28431
+ class Ul extends mt {
28432
28432
  /**
28433
28433
  Construct an attribute step.
28434
28434
  */
@@ -28447,7 +28447,7 @@ class zl extends pt {
28447
28447
  return Dt.empty;
28448
28448
  }
28449
28449
  invert(t) {
28450
- return new zl(this.attr, t.attrs[this.attr]);
28450
+ return new Ul(this.attr, t.attrs[this.attr]);
28451
28451
  }
28452
28452
  map(t) {
28453
28453
  return this;
@@ -28458,10 +28458,10 @@ class zl extends pt {
28458
28458
  static fromJSON(t, n) {
28459
28459
  if (typeof n.attr != "string")
28460
28460
  throw new RangeError("Invalid input for DocAttrStep.fromJSON");
28461
- return new zl(n.attr, n.value);
28461
+ return new Ul(n.attr, n.value);
28462
28462
  }
28463
28463
  }
28464
- pt.jsonID("docAttr", zl);
28464
+ mt.jsonID("docAttr", Ul);
28465
28465
  let zr = class extends Error {
28466
28466
  };
28467
28467
  zr = function e(t) {
@@ -28476,7 +28476,7 @@ class GS {
28476
28476
  Create a transform that starts with the given document.
28477
28477
  */
28478
28478
  constructor(t) {
28479
- this.doc = t, this.steps = [], this.docs = [], this.mapping = new Ul();
28479
+ this.doc = t, this.steps = [], this.docs = [], this.mapping = new Hl();
28480
28480
  }
28481
28481
  /**
28482
28482
  The starting document.
@@ -28650,7 +28650,7 @@ class GS {
28650
28650
  Set a single attribute on the document to a new value.
28651
28651
  */
28652
28652
  setDocAttribute(t, n) {
28653
- return this.step(new zl(t, n)), this;
28653
+ return this.step(new Ul(t, n)), this;
28654
28654
  }
28655
28655
  /**
28656
28656
  Add a mark to the node at position `pos`.
@@ -29262,13 +29262,13 @@ class JS extends GS {
29262
29262
  function Kd(e, t) {
29263
29263
  return !t || !e ? e : e.bind(t);
29264
29264
  }
29265
- class bl {
29265
+ class ml {
29266
29266
  constructor(t, n, r) {
29267
29267
  this.name = t, this.init = Kd(n.init, r), this.apply = Kd(n.apply, r);
29268
29268
  }
29269
29269
  }
29270
29270
  const ZS = [
29271
- new bl("doc", {
29271
+ new ml("doc", {
29272
29272
  init(e) {
29273
29273
  return e.doc || e.schema.topNodeType.createAndFill();
29274
29274
  },
@@ -29276,7 +29276,7 @@ const ZS = [
29276
29276
  return e.doc;
29277
29277
  }
29278
29278
  }),
29279
- new bl("selection", {
29279
+ new ml("selection", {
29280
29280
  init(e, t) {
29281
29281
  return e.selection || Se.atStart(t.doc);
29282
29282
  },
@@ -29284,7 +29284,7 @@ const ZS = [
29284
29284
  return e.selection;
29285
29285
  }
29286
29286
  }),
29287
- new bl("storedMarks", {
29287
+ new ml("storedMarks", {
29288
29288
  init(e) {
29289
29289
  return e.storedMarks || null;
29290
29290
  },
@@ -29292,7 +29292,7 @@ const ZS = [
29292
29292
  return r.selection.$cursor ? e.storedMarks : null;
29293
29293
  }
29294
29294
  }),
29295
- new bl("scrollToSelection", {
29295
+ new ml("scrollToSelection", {
29296
29296
  init() {
29297
29297
  return 0;
29298
29298
  },
@@ -29306,7 +29306,7 @@ class Ns {
29306
29306
  this.schema = t, this.plugins = [], this.pluginsByKey = /* @__PURE__ */ Object.create(null), this.fields = ZS.slice(), n && n.forEach((r) => {
29307
29307
  if (this.pluginsByKey[r.key])
29308
29308
  throw new RangeError("Adding different instances of a keyed plugin (" + r.key + ")");
29309
- this.plugins.push(r), this.pluginsByKey[r.key] = r, r.spec.state && this.fields.push(new bl(r.key, r.spec.state, r));
29309
+ this.plugins.push(r), this.pluginsByKey[r.key] = r, r.spec.state && this.fields.push(new ml(r.key, r.spec.state, r));
29310
29310
  });
29311
29311
  }
29312
29312
  }
@@ -29544,7 +29544,7 @@ function Gd(e, t, n, r, l) {
29544
29544
  return !0;
29545
29545
  if (t == (l < 0 ? 0 : Vt(e))) {
29546
29546
  let i = e.parentNode;
29547
- if (!i || i.nodeType != 1 || ra(e) || t6.test(e.nodeName) || e.contentEditable == "false")
29547
+ if (!i || i.nodeType != 1 || na(e) || t6.test(e.nodeName) || e.contentEditable == "false")
29548
29548
  return !1;
29549
29549
  t = lt(e) + (l < 0 ? 0 : 1), e = i;
29550
29550
  } else if (e.nodeType == 1) {
@@ -29571,7 +29571,7 @@ function n6(e, t) {
29571
29571
  if (e.contentEditable == "false")
29572
29572
  return null;
29573
29573
  e = e.childNodes[t - 1], t = Vt(e);
29574
- } else if (e.parentNode && !ra(e))
29574
+ } else if (e.parentNode && !na(e))
29575
29575
  t = lt(e), e = e.parentNode;
29576
29576
  else
29577
29577
  return null;
@@ -29585,7 +29585,7 @@ function r6(e, t) {
29585
29585
  if (e.contentEditable == "false")
29586
29586
  return null;
29587
29587
  e = e.childNodes[t], t = 0;
29588
- } else if (e.parentNode && !ra(e))
29588
+ } else if (e.parentNode && !na(e))
29589
29589
  t = lt(e) + 1, e = e.parentNode;
29590
29590
  else
29591
29591
  return null;
@@ -29601,7 +29601,7 @@ function l6(e, t, n) {
29601
29601
  r = r && a == 0, l = l && a == Vt(e);
29602
29602
  }
29603
29603
  }
29604
- function ra(e) {
29604
+ function na(e) {
29605
29605
  let t;
29606
29606
  for (let n = e; n && !(t = n.pmViewDesc); n = n.parentNode)
29607
29607
  ;
@@ -29636,7 +29636,7 @@ function i6(e, t, n) {
29636
29636
  }
29637
29637
  const nn = typeof navigator < "u" ? navigator : null, Qd = typeof document < "u" ? document : null, Wn = nn && nn.userAgent || "", mo = /Edge\/(\d+)/.exec(Wn), Fm = /MSIE \d/.exec(Wn), bo = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Wn), _t = !!(Fm || bo || mo), Ln = Fm ? document.documentMode : bo ? +bo[1] : mo ? +mo[1] : 0, $t = !_t && /gecko\/(\d+)/i.test(Wn);
29638
29638
  $t && +(/Firefox\/(\d+)/.exec(Wn) || [0, 0])[1];
29639
- const go = !_t && /Chrome\/(\d+)/.exec(Wn), it = !!go, Hm = go ? +go[1] : 0, ct = !_t && !!nn && /Apple Computer/.test(nn.vendor), $r = ct && (/Mobile\/\w+/.test(Wn) || !!nn && nn.maxTouchPoints > 2), Ht = $r || (nn ? /Mac/.test(nn.platform) : !1), Um = nn ? /Win/.test(nn.platform) : !1, fn = /Android \d/.test(Wn), la = !!Qd && "webkitFontSmoothing" in Qd.documentElement.style, s6 = la ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
29639
+ const go = !_t && /Chrome\/(\d+)/.exec(Wn), it = !!go, Hm = go ? +go[1] : 0, dt = !_t && !!nn && /Apple Computer/.test(nn.vendor), $r = dt && (/Mobile\/\w+/.test(Wn) || !!nn && nn.maxTouchPoints > 2), Ht = $r || (nn ? /Mac/.test(nn.platform) : !1), Um = nn ? /Win/.test(nn.platform) : !1, fn = /Android \d/.test(Wn), ra = !!Qd && "webkitFontSmoothing" in Qd.documentElement.style, s6 = ra ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
29640
29640
  function o6(e) {
29641
29641
  let t = e.defaultView && e.defaultView.visualViewport;
29642
29642
  return t ? {
@@ -29824,7 +29824,7 @@ function g6(e, t) {
29824
29824
  if (!fu(t, u) || (i = qm(e.dom, t, u), !i))
29825
29825
  return null;
29826
29826
  }
29827
- if (ct)
29827
+ if (dt)
29828
29828
  for (let u = i; r && u; u = Vr(u))
29829
29829
  u.draggable && (r = void 0);
29830
29830
  if (i = p6(i, t), r) {
@@ -29833,7 +29833,7 @@ function g6(e, t) {
29833
29833
  c.nodeName == "IMG" && (d = c.getBoundingClientRect()).right <= t.left && d.bottom > t.top && l++;
29834
29834
  }
29835
29835
  let u;
29836
- la && l && r.nodeType == 1 && (u = r.childNodes[l - 1]).nodeType == 1 && u.contentEditable == "false" && u.getBoundingClientRect().top >= t.top && l--, r == e.dom && l == r.childNodes.length - 1 && r.lastChild.nodeType == 1 && t.top > r.lastChild.getBoundingClientRect().bottom ? s = e.state.doc.content.size : (l == 0 || r.nodeType != 1 || r.childNodes[l - 1].nodeName != "BR") && (s = b6(e, r, l, t));
29836
+ ra && l && r.nodeType == 1 && (u = r.childNodes[l - 1]).nodeType == 1 && u.contentEditable == "false" && u.getBoundingClientRect().top >= t.top && l--, r == e.dom && l == r.childNodes.length - 1 && r.lastChild.nodeType == 1 && t.top > r.lastChild.getBoundingClientRect().bottom ? s = e.state.doc.content.size : (l == 0 || r.nodeType != 1 || r.childNodes[l - 1].nodeName != "BR") && (s = b6(e, r, l, t));
29837
29837
  }
29838
29838
  s == null && (s = m6(e, i, t));
29839
29839
  let o = e.docView.nearestDesc(i, !0);
@@ -29853,7 +29853,7 @@ function kn(e, t) {
29853
29853
  }
29854
29854
  const v6 = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;
29855
29855
  function Wm(e, t, n) {
29856
- let { node: r, offset: l, atom: a } = e.docView.domFromPos(t, n < 0 ? -1 : 1), i = la || $t;
29856
+ let { node: r, offset: l, atom: a } = e.docView.domFromPos(t, n < 0 ? -1 : 1), i = ra || $t;
29857
29857
  if (r.nodeType == 3)
29858
29858
  if (i && (v6.test(r.nodeValue) || (n < 0 ? !l : l == r.nodeValue.length))) {
29859
29859
  let o = kn(un(r, l, l), n);
@@ -29862,13 +29862,13 @@ function Wm(e, t, n) {
29862
29862
  if (u.top == o.top) {
29863
29863
  let c = kn(un(r, l, l + 1), -1);
29864
29864
  if (c.top != o.top)
29865
- return fl(c, c.left < u.left);
29865
+ return dl(c, c.left < u.left);
29866
29866
  }
29867
29867
  }
29868
29868
  return o;
29869
29869
  } else {
29870
29870
  let o = l, u = l, c = n < 0 ? 1 : -1;
29871
- return n < 0 && !l ? (u++, c = -1) : n >= 0 && l == r.nodeValue.length ? (o--, c = 1) : n < 0 ? o-- : u++, fl(kn(un(r, o, u), c), c < 0);
29871
+ return n < 0 && !l ? (u++, c = -1) : n >= 0 && l == r.nodeValue.length ? (o--, c = 1) : n < 0 ? o-- : u++, dl(kn(un(r, o, u), c), c < 0);
29872
29872
  }
29873
29873
  if (!e.state.doc.resolve(t - (a || 0)).parent.inlineContent) {
29874
29874
  if (a == null && l && (n < 0 || l == Vt(r))) {
@@ -29886,7 +29886,7 @@ function Wm(e, t, n) {
29886
29886
  if (a == null && l && (n < 0 || l == Vt(r))) {
29887
29887
  let o = r.childNodes[l - 1], u = o.nodeType == 3 ? un(o, Vt(o) - (i ? 0 : 1)) : o.nodeType == 1 && (o.nodeName != "BR" || !o.nextSibling) ? o : null;
29888
29888
  if (u)
29889
- return fl(kn(u, 1), !1);
29889
+ return dl(kn(u, 1), !1);
29890
29890
  }
29891
29891
  if (a == null && l < Vt(r)) {
29892
29892
  let o = r.childNodes[l];
@@ -29894,11 +29894,11 @@ function Wm(e, t, n) {
29894
29894
  o = o.nextSibling;
29895
29895
  let u = o ? o.nodeType == 3 ? un(o, 0, i ? 0 : 1) : o.nodeType == 1 ? o : null : null;
29896
29896
  if (u)
29897
- return fl(kn(u, -1), !0);
29897
+ return dl(kn(u, -1), !0);
29898
29898
  }
29899
- return fl(kn(r.nodeType == 3 ? un(r) : r, -n), n >= 0);
29899
+ return dl(kn(r.nodeType == 3 ? un(r) : r, -n), n >= 0);
29900
29900
  }
29901
- function fl(e, t) {
29901
+ function dl(e, t) {
29902
29902
  if (e.width == 0)
29903
29903
  return e;
29904
29904
  let n = t ? e.left : e.right;
@@ -29973,7 +29973,7 @@ function C6(e, t, n) {
29973
29973
  return Zd == t && ef == n ? tf : (Zd = t, ef = n, tf = n == "up" || n == "down" ? y6(e, t, n) : T6(e, t, n));
29974
29974
  }
29975
29975
  const qt = 0, nf = 1, nr = 2, rn = 3;
29976
- class aa {
29976
+ class la {
29977
29977
  constructor(t, n, r, l) {
29978
29978
  this.parent = t, this.children = n, this.dom = r, this.contentDOM = l, this.dirty = qt, r.pmViewDesc = this;
29979
29979
  }
@@ -30232,7 +30232,7 @@ class aa {
30232
30232
  m = b;
30233
30233
  }
30234
30234
  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;
30235
- if (($t || ct) && t == n) {
30235
+ if (($t || dt) && t == n) {
30236
30236
  let { node: f, offset: m } = s;
30237
30237
  if (f.nodeType == 3) {
30238
30238
  if (d = !!(m && f.nodeValue[m - 1] == `
@@ -30255,7 +30255,7 @@ class aa {
30255
30255
  let f = c.focusNode.childNodes[c.focusOffset];
30256
30256
  f && f.contentEditable == "false" && (l = !0);
30257
30257
  }
30258
- if (!(l || d && ct) && gr(s.node, s.offset, c.anchorNode, c.anchorOffset) && gr(o.node, o.offset, c.focusNode, c.focusOffset))
30258
+ if (!(l || d && dt) && gr(s.node, s.offset, c.anchorNode, c.anchorOffset) && gr(o.node, o.offset, c.focusNode, c.focusOffset))
30259
30259
  return;
30260
30260
  let h = !1;
30261
30261
  if ((u.extend || t == n) && !(d && $t)) {
@@ -30317,7 +30317,7 @@ class aa {
30317
30317
  return !1;
30318
30318
  }
30319
30319
  }
30320
- class jm extends aa {
30320
+ class jm extends la {
30321
30321
  constructor(t, n, r, l) {
30322
30322
  let a, i = n.type.toDOM;
30323
30323
  if (typeof i == "function" && (i = i(r, () => {
@@ -30360,7 +30360,7 @@ class jm extends aa {
30360
30360
  return this.widget.type.side;
30361
30361
  }
30362
30362
  }
30363
- class x6 extends aa {
30363
+ class x6 extends la {
30364
30364
  constructor(t, n, r, l) {
30365
30365
  super(t, [], n, null), this.textDOM = r, this.text = l;
30366
30366
  }
@@ -30377,7 +30377,7 @@ class x6 extends aa {
30377
30377
  return t.type === "characterData" && t.target.nodeValue == t.oldValue;
30378
30378
  }
30379
30379
  }
30380
- class vr extends aa {
30380
+ class vr extends la {
30381
30381
  constructor(t, n, r, l, a) {
30382
30382
  super(t, [], r, l), this.mark = n, this.spec = a;
30383
30383
  }
@@ -30413,7 +30413,7 @@ class vr extends aa {
30413
30413
  this.spec.destroy && this.spec.destroy(), super.destroy();
30414
30414
  }
30415
30415
  }
30416
- class Pn extends aa {
30416
+ class Pn extends la {
30417
30417
  constructor(t, n, r, l, a, i, s, o, u) {
30418
30418
  super(t, [], a, i), this.node = n, this.outerDeco = r, this.innerDeco = l, this.nodeDOM = s;
30419
30419
  }
@@ -30587,7 +30587,7 @@ class Ni extends Pn {
30587
30587
  return this.node.text == t;
30588
30588
  }
30589
30589
  }
30590
- class Km extends aa {
30590
+ class Km extends la {
30591
30591
  parseRule() {
30592
30592
  return { ignore: !0 };
30593
30593
  }
@@ -30654,22 +30654,22 @@ function Gm(e, t, n) {
30654
30654
  r = lf(r), l = !0;
30655
30655
  l && n.trackWrites == e && (n.trackWrites = null);
30656
30656
  }
30657
- const wl = function(e) {
30657
+ const Nl = function(e) {
30658
30658
  e && (this.nodeName = e);
30659
30659
  };
30660
- wl.prototype = /* @__PURE__ */ Object.create(null);
30661
- const rr = [new wl()];
30660
+ Nl.prototype = /* @__PURE__ */ Object.create(null);
30661
+ const rr = [new Nl()];
30662
30662
  function vo(e, t, n) {
30663
30663
  if (e.length == 0)
30664
30664
  return rr;
30665
- let r = n ? rr[0] : new wl(), l = [r];
30665
+ let r = n ? rr[0] : new Nl(), l = [r];
30666
30666
  for (let a = 0; a < e.length; a++) {
30667
30667
  let i = e[a].type.attrs;
30668
30668
  if (i) {
30669
- i.nodeName && l.push(r = new wl(i.nodeName));
30669
+ i.nodeName && l.push(r = new Nl(i.nodeName));
30670
30670
  for (let s in i) {
30671
30671
  let o = i[s];
30672
- o != null && (n && l.length == 1 && l.push(r = new wl(t.isInline ? "span" : "div")), s == "class" ? r.class = (r.class ? r.class + " " : "") + o : s == "style" ? r.style = (r.style ? r.style + ";" : "") + o : s != "nodeName" && (r[s] = o));
30672
+ o != null && (n && l.length == 1 && l.push(r = new Nl(t.isInline ? "span" : "div")), s == "class" ? r.class = (r.class ? r.class + " " : "") + o : s == "style" ? r.style = (r.style ? r.style + ";" : "") + o : s != "nodeName" && (r[s] = o));
30673
30673
  }
30674
30674
  }
30675
30675
  }
@@ -30861,7 +30861,7 @@ class A6 {
30861
30861
  for (; t instanceof vr; )
30862
30862
  n = t, t = n.children[n.children.length - 1];
30863
30863
  (!t || // Empty textblock
30864
- !(t instanceof Ni) || /\n$/.test(t.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(t.node.text)) && ((ct || it) && t && t.dom.contentEditable == "false" && this.addHackNode("IMG", n), this.addHackNode("BR", this.top));
30864
+ !(t instanceof Ni) || /\n$/.test(t.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(t.node.text)) && ((dt || it) && t && t.dom.contentEditable == "false" && this.addHackNode("IMG", n), this.addHackNode("BR", this.top));
30865
30865
  }
30866
30866
  addHackNode(t, n) {
30867
30867
  if (n == this.top && this.index < n.children.length && n.children[this.index].matchesHack(t))
@@ -31053,10 +31053,10 @@ function pn(e, t = !1) {
31053
31053
  e.domObserver.setCurSelection(), e.domObserver.connectSelection();
31054
31054
  }
31055
31055
  }
31056
- const af = ct || it && Hm < 63;
31056
+ const af = dt || it && Hm < 63;
31057
31057
  function sf(e, t) {
31058
31058
  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;
31059
- if (ct && l && l.contentEditable == "false")
31059
+ if (dt && l && l.contentEditable == "false")
31060
31060
  return Is(l);
31061
31061
  if ((!l || l.contentEditable == "false") && (!a || a.contentEditable == "false")) {
31062
31062
  if (l)
@@ -31066,7 +31066,7 @@ function sf(e, t) {
31066
31066
  }
31067
31067
  }
31068
31068
  function Is(e) {
31069
- return e.contentEditable = "true", ct && e.draggable && (e.draggable = !1, e.wasDraggable = !0), e;
31069
+ return e.contentEditable = "true", dt && e.draggable && (e.draggable = !1, e.wasDraggable = !0), e;
31070
31070
  }
31071
31071
  function of(e) {
31072
31072
  e.contentEditable = "false", e.wasDraggable && (e.draggable = !0, e.wasDraggable = null);
@@ -31143,7 +31143,7 @@ function df(e, t, n) {
31143
31143
  if (!a || a.isText)
31144
31144
  return !1;
31145
31145
  let s = t < 0 ? l.pos - a.nodeSize : l.pos;
31146
- return a.isAtom || (i = e.docView.descAt(s)) && !i.contentDOM ? pe.isSelectable(a) ? Nn(e, new pe(t < 0 ? e.state.doc.resolve(l.pos - a.nodeSize) : l)) : la ? Nn(e, new ye(e.state.doc.resolve(t < 0 ? s : s + a.nodeSize))) : !1 : !1;
31146
+ return a.isAtom || (i = e.docView.descAt(s)) && !i.contentDOM ? pe.isSelectable(a) ? Nn(e, new pe(t < 0 ? e.state.doc.resolve(l.pos - a.nodeSize) : l)) : ra ? Nn(e, new ye(e.state.doc.resolve(t < 0 ? s : s + a.nodeSize))) : !1 : !1;
31147
31147
  }
31148
31148
  } else return !1;
31149
31149
  else {
@@ -31158,7 +31158,7 @@ function df(e, t, n) {
31158
31158
  function ti(e) {
31159
31159
  return e.nodeType == 3 ? e.nodeValue.length : e.childNodes.length;
31160
31160
  }
31161
- function _l(e, t) {
31161
+ function wl(e, t) {
31162
31162
  let n = e.pmViewDesc;
31163
31163
  return n && n.size == 0 && (t < 0 || e.nextSibling || e.nodeName != "BR");
31164
31164
  }
@@ -31170,13 +31170,13 @@ function L6(e) {
31170
31170
  if (!n)
31171
31171
  return;
31172
31172
  let l, a, i = !1;
31173
- for ($t && n.nodeType == 1 && r < ti(n) && _l(n.childNodes[r], -1) && (i = !0); ; )
31173
+ for ($t && n.nodeType == 1 && r < ti(n) && wl(n.childNodes[r], -1) && (i = !0); ; )
31174
31174
  if (r > 0) {
31175
31175
  if (n.nodeType != 1)
31176
31176
  break;
31177
31177
  {
31178
31178
  let s = n.childNodes[r - 1];
31179
- if (_l(s, -1))
31179
+ if (wl(s, -1))
31180
31180
  l = n, a = --r;
31181
31181
  else if (s.nodeType == 3)
31182
31182
  n = s, r = n.nodeValue.length;
@@ -31188,7 +31188,7 @@ function L6(e) {
31188
31188
  break;
31189
31189
  {
31190
31190
  let s = n.previousSibling;
31191
- for (; s && _l(s, -1); )
31191
+ for (; s && wl(s, -1); )
31192
31192
  l = n.parentNode, a = lt(s), s = s.previousSibling;
31193
31193
  if (s)
31194
31194
  n = s, r = ti(n);
@@ -31211,7 +31211,7 @@ function P6(e) {
31211
31211
  if (n.nodeType != 1)
31212
31212
  break;
31213
31213
  let s = n.childNodes[r];
31214
- if (_l(s, 1))
31214
+ if (wl(s, 1))
31215
31215
  a = n, i = ++r;
31216
31216
  else
31217
31217
  break;
@@ -31220,7 +31220,7 @@ function P6(e) {
31220
31220
  break;
31221
31221
  {
31222
31222
  let s = n.nextSibling;
31223
- for (; s && _l(s, 1); )
31223
+ for (; s && wl(s, 1); )
31224
31224
  a = s.parentNode, i = lt(s) + 1, s = s.nextSibling;
31225
31225
  if (s)
31226
31226
  n = s, r = 0, l = ti(n);
@@ -31238,7 +31238,7 @@ function t0(e) {
31238
31238
  return t && t.node && t.node.isBlock;
31239
31239
  }
31240
31240
  function B6(e, t) {
31241
- for (; e && t == e.childNodes.length && !ra(e); )
31241
+ for (; e && t == e.childNodes.length && !na(e); )
31242
31242
  t = lt(e) + 1, e = e.parentNode;
31243
31243
  for (; e && t < e.childNodes.length; ) {
31244
31244
  let n = e.childNodes[t];
@@ -31250,7 +31250,7 @@ function B6(e, t) {
31250
31250
  }
31251
31251
  }
31252
31252
  function F6(e, t) {
31253
- for (; e && !t && !ra(e); )
31253
+ for (; e && !t && !na(e); )
31254
31254
  t = lt(e), e = e.parentNode;
31255
31255
  for (; e && t; ) {
31256
31256
  let n = e.childNodes[t - 1];
@@ -31333,7 +31333,7 @@ function mf(e, t, n) {
31333
31333
  e.domObserver.stop(), t.contentEditable = n, e.domObserver.start();
31334
31334
  }
31335
31335
  function H6(e) {
31336
- if (!ct || e.state.selection.$head.parentOffset > 0)
31336
+ if (!dt || e.state.selection.$head.parentOffset > 0)
31337
31337
  return !1;
31338
31338
  let { focusNode: t, focusOffset: n } = e.domSelectionRange();
31339
31339
  if (t && t.nodeType == 1 && n == 0 && t.firstChild && t.firstChild.contentEditable == "false") {
@@ -31424,7 +31424,7 @@ function n0(e, t, n, r, l) {
31424
31424
  } else
31425
31425
  e.someProp("transformPastedHTML", (d) => {
31426
31426
  n = d(n, e);
31427
- }), i = W6(n), la && Y6(i);
31427
+ }), i = W6(n), ra && Y6(i);
31428
31428
  let u = i && i.querySelector("[data-pm-slice]"), c = u && /^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice") || "");
31429
31429
  if (c && c[3])
31430
31430
  for (let d = +c[3]; d > 0; d--) {
@@ -31435,7 +31435,7 @@ function n0(e, t, n, r, l) {
31435
31435
  break;
31436
31436
  i = h;
31437
31437
  }
31438
- if (s || (s = (e.someProp("clipboardParser") || e.someProp("domParser") || Al.fromSchema(e.state.schema)).parseSlice(i, {
31438
+ if (s || (s = (e.someProp("clipboardParser") || e.someProp("domParser") || kl.fromSchema(e.state.schema)).parseSlice(i, {
31439
31439
  preserveWhitespace: !!(o || c),
31440
31440
  context: l,
31441
31441
  ruleFromNode(h) {
@@ -31573,7 +31573,7 @@ function Q6(e) {
31573
31573
  J6(e, r) && !bu(e, r) && (e.editable || !(r.type in Et)) && n(e, r);
31574
31574
  }, K6[t] ? { passive: !0 } : void 0);
31575
31575
  }
31576
- ct && e.dom.addEventListener("input", () => null), xo(e);
31576
+ dt && e.dom.addEventListener("input", () => null), xo(e);
31577
31577
  }
31578
31578
  function Rn(e, t) {
31579
31579
  e.input.lastSelectionOrigin = t, e.input.lastSelectionTime = Date.now();
@@ -31748,7 +31748,7 @@ class sk {
31748
31748
  return;
31749
31749
  let n = this.pos;
31750
31750
  this.view.state.doc != this.startDoc && (n = this.view.posAtCoords(wi(t))), this.updateAllowDefault(t), this.allowDefault || !n ? Rn(this.view, "pointer") : rk(this.view, n.pos, n.inside, t, this.selectNode) ? t.preventDefault() : t.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
31751
- ct && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
31751
+ dt && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
31752
31752
  // cursor, but still report that the node is selected
31753
31753
  // when asked through getSelection. You'll then get a
31754
31754
  // situation where clicking at the point where that
@@ -31772,7 +31772,7 @@ yt.touchmove = (e) => {
31772
31772
  };
31773
31773
  yt.contextmenu = (e) => vu(e);
31774
31774
  function u0(e, t) {
31775
- return e.composing ? !0 : ct && Math.abs(t.timeStamp - e.input.compositionEndedAt) < 500 ? (e.input.compositionEndedAt = -2e8, !0) : !1;
31775
+ return e.composing ? !0 : dt && Math.abs(t.timeStamp - e.input.compositionEndedAt) < 500 ? (e.input.compositionEndedAt = -2e8, !0) : !1;
31776
31776
  }
31777
31777
  const ok = fn ? 5e3 : -1;
31778
31778
  Et.compositionstart = Et.compositionupdate = (e) => {
@@ -31858,12 +31858,12 @@ function fk(e, t) {
31858
31858
  n.parentNode && n.parentNode.removeChild(n), e.focus();
31859
31859
  }, 50);
31860
31860
  }
31861
- const Vl = _t && Ln < 15 || $r && s6 < 604;
31861
+ const zl = _t && Ln < 15 || $r && s6 < 604;
31862
31862
  yt.copy = Et.cut = (e, t) => {
31863
31863
  let n = t, r = e.state.selection, l = n.type == "cut";
31864
31864
  if (r.empty)
31865
31865
  return;
31866
- let a = Vl ? null : n.clipboardData, i = r.content(), { dom: s, text: o } = mu(e, i);
31866
+ let a = zl ? null : n.clipboardData, i = r.content(), { dom: s, text: o } = mu(e, i);
31867
31867
  a ? (n.preventDefault(), a.clearData(), a.setData("text/html", s.innerHTML), a.setData("text/plain", o)) : fk(e, s), l && e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent", "cut"));
31868
31868
  };
31869
31869
  function hk(e) {
@@ -31876,10 +31876,10 @@ function pk(e, t) {
31876
31876
  n || (r.contentEditable = "true"), r.style.cssText = "position: fixed; left: -10000px; top: 10px", r.focus();
31877
31877
  let l = e.input.shiftKey && e.input.lastKeyCode != 45;
31878
31878
  setTimeout(() => {
31879
- e.focus(), r.parentNode && r.parentNode.removeChild(r), n ? $l(e, r.value, null, l, t) : $l(e, r.textContent, r.innerHTML, l, t);
31879
+ e.focus(), r.parentNode && r.parentNode.removeChild(r), n ? Vl(e, r.value, null, l, t) : Vl(e, r.textContent, r.innerHTML, l, t);
31880
31880
  }, 50);
31881
31881
  }
31882
- function $l(e, t, n, r, l) {
31882
+ function Vl(e, t, n, r, l) {
31883
31883
  let a = n0(e, t, n, r, e.state.selection.$from);
31884
31884
  if (e.someProp("handlePaste", (o) => o(e, l, a || oe.empty)))
31885
31885
  return !0;
@@ -31899,8 +31899,8 @@ Et.paste = (e, t) => {
31899
31899
  let n = t;
31900
31900
  if (e.composing && !fn)
31901
31901
  return;
31902
- let r = Vl ? null : n.clipboardData, l = e.input.shiftKey && e.input.lastKeyCode != 45;
31903
- r && $l(e, f0(r), r.getData("text/html"), l, n) ? n.preventDefault() : pk(e, n);
31902
+ let r = zl ? null : n.clipboardData, l = e.input.shiftKey && e.input.lastKeyCode != 45;
31903
+ r && Vl(e, f0(r), r.getData("text/html"), l, n) ? n.preventDefault() : pk(e, n);
31904
31904
  };
31905
31905
  class h0 {
31906
31906
  constructor(t, n, r) {
@@ -31928,7 +31928,7 @@ yt.dragstart = (e, t) => {
31928
31928
  }
31929
31929
  }
31930
31930
  let s = (i || e.state.selection).content(), { dom: o, text: u, slice: c } = mu(e, s);
31931
- (!n.dataTransfer.files.length || !it || Hm > 120) && n.dataTransfer.clearData(), n.dataTransfer.setData(Vl ? "Text" : "text/html", o.innerHTML), n.dataTransfer.effectAllowed = "copyMove", Vl || n.dataTransfer.setData("text/plain", u), e.dragging = new h0(c, p0(e, n), i);
31931
+ (!n.dataTransfer.files.length || !it || Hm > 120) && n.dataTransfer.clearData(), n.dataTransfer.setData(zl ? "Text" : "text/html", o.innerHTML), n.dataTransfer.effectAllowed = "copyMove", zl || n.dataTransfer.setData("text/plain", u), e.dragging = new h0(c, p0(e, n), i);
31932
31932
  };
31933
31933
  yt.dragend = (e) => {
31934
31934
  let t = e.dragging;
@@ -31953,7 +31953,7 @@ function bk(e, t, n) {
31953
31953
  let l = e.state.doc.resolve(r.pos), a = n && n.slice;
31954
31954
  a ? e.someProp("transformPasted", (f) => {
31955
31955
  a = f(a, e, !1);
31956
- }) : a = n0(e, f0(t.dataTransfer), Vl ? null : t.dataTransfer.getData("text/html"), !1, l);
31956
+ }) : a = n0(e, f0(t.dataTransfer), zl ? null : t.dataTransfer.getData("text/html"), !1, l);
31957
31957
  let i = !!(n && p0(e, t));
31958
31958
  if (e.someProp("handleDrop", (f) => f(e, t, a || oe.empty, i))) {
31959
31959
  t.preventDefault();
@@ -32004,7 +32004,7 @@ yt.beforeinput = (e, t) => {
32004
32004
  };
32005
32005
  for (let e in Et)
32006
32006
  yt[e] = Et[e];
32007
- function ql(e, t) {
32007
+ function $l(e, t) {
32008
32008
  if (e == t)
32009
32009
  return !0;
32010
32010
  for (let n in e)
@@ -32027,7 +32027,7 @@ class ri {
32027
32027
  return !0;
32028
32028
  }
32029
32029
  eq(t) {
32030
- return this == t || t instanceof ri && (this.spec.key && this.spec.key == t.spec.key || this.toDOM == t.toDOM && ql(this.spec, t.spec));
32030
+ return this == t || t instanceof ri && (this.spec.key && this.spec.key == t.spec.key || this.toDOM == t.toDOM && $l(this.spec, t.spec));
32031
32031
  }
32032
32032
  destroy(t) {
32033
32033
  this.spec.destroy && this.spec.destroy(t);
@@ -32045,7 +32045,7 @@ class Bn {
32045
32045
  return n.from < n.to;
32046
32046
  }
32047
32047
  eq(t) {
32048
- return this == t || t instanceof Bn && ql(this.attrs, t.attrs) && ql(this.spec, t.spec);
32048
+ return this == t || t instanceof Bn && $l(this.attrs, t.attrs) && $l(this.spec, t.spec);
32049
32049
  }
32050
32050
  static is(t) {
32051
32051
  return t.type instanceof Bn;
@@ -32069,7 +32069,7 @@ class yu {
32069
32069
  return l == n.from && !(a = t.child(r)).isText && l + a.nodeSize == n.to;
32070
32070
  }
32071
32071
  eq(t) {
32072
- return this == t || t instanceof yu && ql(this.attrs, t.attrs) && ql(this.spec, t.spec);
32072
+ return this == t || t instanceof yu && $l(this.attrs, t.attrs) && $l(this.spec, t.spec);
32073
32073
  }
32074
32074
  destroy() {
32075
32075
  }
@@ -32159,7 +32159,7 @@ class Ge {
32159
32159
  you must make a copy if you want need to preserve that.
32160
32160
  */
32161
32161
  static create(t, n) {
32162
- return n.length ? li(n, t, 0, cr) : ut;
32162
+ return n.length ? li(n, t, 0, cr) : ct;
32163
32163
  }
32164
32164
  /**
32165
32165
  Find all decorations in this set which touch the given range
@@ -32189,7 +32189,7 @@ class Ge {
32189
32189
  document.
32190
32190
  */
32191
32191
  map(t, n, r) {
32192
- return this == ut || t.maps.length == 0 ? this : this.mapInner(t, n, 0, 0, r || cr);
32192
+ return this == ct || t.maps.length == 0 ? this : this.mapInner(t, n, 0, 0, r || cr);
32193
32193
  }
32194
32194
  /**
32195
32195
  @internal
@@ -32200,7 +32200,7 @@ class Ge {
32200
32200
  let o = this.local[s].map(t, r, l);
32201
32201
  o && o.type.valid(n, o) ? (i || (i = [])).push(o) : a.onRemove && a.onRemove(this.local[s].spec);
32202
32202
  }
32203
- return this.children.length ? gk(this.children, i || [], t, n, r, l, a) : i ? new Ge(i.sort(dr), Or) : ut;
32203
+ return this.children.length ? gk(this.children, i || [], t, n, r, l, a) : i ? new Ge(i.sort(dr), Or) : ct;
32204
32204
  }
32205
32205
  /**
32206
32206
  Add the given array of decorations to the ones in the set,
@@ -32209,7 +32209,7 @@ class Ge {
32209
32209
  structure.
32210
32210
  */
32211
32211
  add(t, n) {
32212
- return n.length ? this == ut ? Ge.create(t, n) : this.addInner(t, n, 0) : this;
32212
+ return n.length ? this == ct ? Ge.create(t, n) : this.addInner(t, n, 0) : this;
32213
32213
  }
32214
32214
  addInner(t, n, r) {
32215
32215
  let l, a = 0;
@@ -32231,7 +32231,7 @@ class Ge {
32231
32231
  the ones in the given array.
32232
32232
  */
32233
32233
  remove(t) {
32234
- return t.length == 0 || this == ut ? this : this.removeInner(t, 0);
32234
+ return t.length == 0 || this == ct ? this : this.removeInner(t, 0);
32235
32235
  }
32236
32236
  removeInner(t, n) {
32237
32237
  let r = this.children, l = this.local;
@@ -32243,7 +32243,7 @@ class Ge {
32243
32243
  continue;
32244
32244
  r == this.children && (r = this.children.slice());
32245
32245
  let u = r[a + 2].removeInner(i, s + 1);
32246
- u != ut ? r[a + 2] = u : (r.splice(a, 3), a -= 3);
32246
+ u != ct ? r[a + 2] = u : (r.splice(a, 3), a -= 3);
32247
32247
  }
32248
32248
  if (l.length) {
32249
32249
  for (let a = 0, i; a < t.length; a++)
@@ -32251,10 +32251,10 @@ class Ge {
32251
32251
  for (let s = 0; s < l.length; s++)
32252
32252
  l[s].eq(i, n) && (l == this.local && (l = this.local.slice()), l.splice(s--, 1));
32253
32253
  }
32254
- return r == this.children && l == this.local ? this : l.length || r.length ? new Ge(l, r) : ut;
32254
+ return r == this.children && l == this.local ? this : l.length || r.length ? new Ge(l, r) : ct;
32255
32255
  }
32256
32256
  forChild(t, n) {
32257
- if (this == ut)
32257
+ if (this == ct)
32258
32258
  return this;
32259
32259
  if (n.isLeaf)
32260
32260
  return Ge.empty;
@@ -32276,7 +32276,7 @@ class Ge {
32276
32276
  let s = new Ge(l.sort(dr), Or);
32277
32277
  return r ? new _n([s, r]) : s;
32278
32278
  }
32279
- return r || ut;
32279
+ return r || ct;
32280
32280
  }
32281
32281
  /**
32282
32282
  @internal
@@ -32304,7 +32304,7 @@ class Ge {
32304
32304
  @internal
32305
32305
  */
32306
32306
  localsInner(t) {
32307
- if (this == ut)
32307
+ if (this == ct)
32308
32308
  return Or;
32309
32309
  if (t.inlineContent || !this.local.some(Bn.is))
32310
32310
  return this.local;
@@ -32319,7 +32319,7 @@ class Ge {
32319
32319
  }
32320
32320
  Ge.empty = new Ge([], []);
32321
32321
  Ge.removeOverlap = Eu;
32322
- const ut = Ge.empty;
32322
+ const ct = Ge.empty;
32323
32323
  class _n {
32324
32324
  constructor(t) {
32325
32325
  this.members = t;
@@ -32334,7 +32334,7 @@ class _n {
32334
32334
  let r = [];
32335
32335
  for (let l = 0; l < this.members.length; l++) {
32336
32336
  let a = this.members[l].forChild(t, n);
32337
- a != ut && (a instanceof _n ? r = r.concat(a.members) : r.push(a));
32337
+ a != ct && (a instanceof _n ? r = r.concat(a.members) : r.push(a));
32338
32338
  }
32339
32339
  return _n.from(r);
32340
32340
  }
@@ -32366,7 +32366,7 @@ class _n {
32366
32366
  static from(t) {
32367
32367
  switch (t.length) {
32368
32368
  case 0:
32369
- return ut;
32369
+ return ct;
32370
32370
  case 1:
32371
32371
  return t[0];
32372
32372
  default:
@@ -32409,7 +32409,7 @@ function gk(e, t, n, r, l, a, i) {
32409
32409
  let h = n.map(e[u + 1] + a, -1), f = h - l, { index: m, offset: g } = r.content.findIndex(d), b = r.maybeChild(m);
32410
32410
  if (b && g == d && g + b.nodeSize == f) {
32411
32411
  let E = s[u + 2].mapInner(n, b, c + 1, e[u] + a + 1, i);
32412
- E != ut ? (s[u] = d, s[u + 1] = f, s[u + 2] = E) : (s[u + 1] = -2, o = !0);
32412
+ E != ct ? (s[u] = d, s[u + 1] = f, s[u + 2] = E) : (s[u + 1] = -2, o = !0);
32413
32413
  } else
32414
32414
  o = !0;
32415
32415
  }
@@ -32471,13 +32471,13 @@ function li(e, t, n, r) {
32471
32471
  if (u) {
32472
32472
  a = !0;
32473
32473
  let c = li(u, s, n + o + 1, r);
32474
- c != ut && l.push(o, o + s.nodeSize, c);
32474
+ c != ct && l.push(o, o + s.nodeSize, c);
32475
32475
  }
32476
32476
  });
32477
32477
  let i = m0(a ? g0(e) : e, -n).sort(dr);
32478
32478
  for (let s = 0; s < i.length; s++)
32479
32479
  i[s].type.valid(t, i[s]) || (r.onRemove && r.onRemove(i[s].spec), i.splice(s--, 1));
32480
- return i.length || l.length ? new Ge(i, l) : ut;
32480
+ return i.length || l.length ? new Ge(i, l) : ct;
32481
32481
  }
32482
32482
  function dr(e, t) {
32483
32483
  return e.from - t.from || e.to - t.to;
@@ -32509,7 +32509,7 @@ function Ms(e) {
32509
32509
  let t = [];
32510
32510
  return e.someProp("decorations", (n) => {
32511
32511
  let r = n(e.state);
32512
- r && r != ut && t.push(r);
32512
+ r && r != ct && t.push(r);
32513
32513
  }), e.cursorWrapper && t.push(Ge.create(e.state.doc, [e.cursorWrapper.deco])), _n.from(t);
32514
32514
  }
32515
32515
  const yk = {
@@ -32539,7 +32539,7 @@ class Ck {
32539
32539
  this.view = t, this.handleDOMChange = n, this.queue = [], this.flushingSoon = -1, this.observer = null, this.currentSelection = new Tk(), this.onCharData = null, this.suppressingSelectionUpdates = !1, this.lastChangedTextNode = null, this.observer = window.MutationObserver && new window.MutationObserver((r) => {
32540
32540
  for (let l = 0; l < r.length; l++)
32541
32541
  this.queue.push(r[l]);
32542
- _t && Ln <= 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();
32542
+ _t && Ln <= 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();
32543
32543
  }), Ek && (this.onCharData = (r) => {
32544
32544
  this.queue.push({ target: r.target, type: "characterData", oldValue: r.prevValue }), this.flushSoon();
32545
32545
  }), this.onSelectionChange = this.onSelectionChange.bind(this);
@@ -32753,7 +32753,7 @@ function Nk(e, t, n) {
32753
32753
  if (!A || A.size)
32754
32754
  break;
32755
32755
  }
32756
- let d = e.state.doc, h = e.someProp("domParser") || Al.fromSchema(e.state.schema), f = d.resolve(i), m = null, g = h.parse(r, {
32756
+ let d = e.state.doc, h = e.someProp("domParser") || kl.fromSchema(e.state.schema), f = d.resolve(i), m = null, g = h.parse(r, {
32757
32757
  topNode: f.parent,
32758
32758
  topMatch: f.parent.contentMatchAt(f.index()),
32759
32759
  topOpen: !0,
@@ -32775,10 +32775,10 @@ function wk(e) {
32775
32775
  if (t)
32776
32776
  return t.parseRule();
32777
32777
  if (e.nodeName == "BR" && e.parentNode) {
32778
- if (ct && /^(ul|ol)$/i.test(e.parentNode.nodeName)) {
32778
+ if (dt && /^(ul|ol)$/i.test(e.parentNode.nodeName)) {
32779
32779
  let n = document.createElement("div");
32780
32780
  return n.appendChild(document.createElement("li")), { skip: n };
32781
- } else if (e.parentNode.lastChild == e || ct && /^(tr|table)$/i.test(e.parentNode.nodeName))
32781
+ } else if (e.parentNode.lastChild == e || dt && /^(tr|table)$/i.test(e.parentNode.nodeName))
32782
32782
  return { ignore: !0 };
32783
32783
  } else if (e.nodeName == "IMG" && e.getAttribute("mark-placeholder"))
32784
32784
  return { ignore: !0 };
@@ -33212,13 +33212,13 @@ class v0 {
33212
33212
  [`handlePaste`](https://prosemirror.net/docs/ref/#view.EditorProps.handlePaste) hook.
33213
33213
  */
33214
33214
  pasteHTML(t, n) {
33215
- return $l(this, "", t, !1, n || new ClipboardEvent("paste"));
33215
+ return Vl(this, "", t, !1, n || new ClipboardEvent("paste"));
33216
33216
  }
33217
33217
  /**
33218
33218
  Run the editor's paste logic with the given plain-text input.
33219
33219
  */
33220
33220
  pasteText(t, n) {
33221
- return $l(this, t, null, !0, n || new ClipboardEvent("paste"));
33221
+ return Vl(this, t, null, !0, n || new ClipboardEvent("paste"));
33222
33222
  }
33223
33223
  /**
33224
33224
  Serialize the given slice as it would be if it was copied from
@@ -33257,7 +33257,7 @@ class v0 {
33257
33257
  */
33258
33258
  domSelectionRange() {
33259
33259
  let t = this.domSelection();
33260
- return t ? ct && this.root.nodeType === 11 && a6(this.dom.ownerDocument) == this.dom && Sk(this, t) || t : { focusNode: null, focusOffset: 0, anchorNode: null, anchorOffset: 0 };
33260
+ return t ? dt && this.root.nodeType === 11 && a6(this.dom.ownerDocument) == this.dom && Sk(this, t) || t : { focusNode: null, focusOffset: 0, anchorNode: null, anchorOffset: 0 };
33261
33261
  }
33262
33262
  /**
33263
33263
  @internal
@@ -34759,7 +34759,7 @@ class Lr {
34759
34759
  });
34760
34760
  }
34761
34761
  }
34762
- class dt {
34762
+ class ft {
34763
34763
  constructor(t = {}) {
34764
34764
  this.type = "extension", this.name = "extension", this.parent = null, this.child = null, this.config = {
34765
34765
  name: this.name,
@@ -34775,7 +34775,7 @@ class dt {
34775
34775
  })) || {};
34776
34776
  }
34777
34777
  static create(t = {}) {
34778
- return new dt(t);
34778
+ return new ft(t);
34779
34779
  }
34780
34780
  configure(t = {}) {
34781
34781
  const n = this.extend({
@@ -34785,7 +34785,7 @@ class dt {
34785
34785
  return n.name = this.name, n.parent = this.parent, n;
34786
34786
  }
34787
34787
  extend(t = {}) {
34788
- const n = new dt({ ...this.config, ...t });
34788
+ const n = new ft({ ...this.config, ...t });
34789
34789
  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 = Ae(ce(n, "addOptions", {
34790
34790
  name: n.name
34791
34791
  })), n.storage = Ae(ce(n, "addStorage", {
@@ -34817,7 +34817,7 @@ function D0(e, t, n) {
34817
34817
  function L0(e) {
34818
34818
  return Object.fromEntries(Object.entries(e.nodes).filter(([, t]) => t.spec.toText).map(([t, n]) => [t, n.spec.toText]));
34819
34819
  }
34820
- const kA = dt.create({
34820
+ const kA = ft.create({
34821
34821
  name: "clipboardTextSerializer",
34822
34822
  addOptions() {
34823
34823
  return {
@@ -35011,7 +35011,7 @@ function wa(e) {
35011
35011
  const t = `<body>${e}</body>`, n = new window.DOMParser().parseFromString(t, "text/html").body;
35012
35012
  return H0(n);
35013
35013
  }
35014
- function Wl(e, t, n) {
35014
+ function ql(e, t, n) {
35015
35015
  if (e instanceof Dn || e instanceof X)
35016
35016
  return e;
35017
35017
  n = {
@@ -35029,7 +35029,7 @@ function Wl(e, t, n) {
35029
35029
  } catch (a) {
35030
35030
  if (n.errorOnInvalidContent)
35031
35031
  throw new Error("[tiptap error]: Invalid JSON content", { cause: a });
35032
- return console.warn("[tiptap warn]: Invalid content.", "Passed value:", e, "Error:", a), Wl("", t, n);
35032
+ return console.warn("[tiptap warn]: Invalid content.", "Passed value:", e, "Error:", a), ql("", t, n);
35033
35033
  }
35034
35034
  if (l) {
35035
35035
  if (n.errorOnInvalidContent) {
@@ -35052,13 +35052,13 @@ function Wl(e, t, n) {
35052
35052
  }
35053
35053
  })
35054
35054
  });
35055
- if (n.slice ? Al.fromSchema(o).parseSlice(wa(e), n.parseOptions) : Al.fromSchema(o).parse(wa(e), n.parseOptions), n.errorOnInvalidContent && i)
35055
+ if (n.slice ? kl.fromSchema(o).parseSlice(wa(e), n.parseOptions) : kl.fromSchema(o).parse(wa(e), n.parseOptions), n.errorOnInvalidContent && i)
35056
35056
  throw new Error("[tiptap error]: Invalid HTML content", { cause: new Error(`Invalid element found: ${s}`) });
35057
35057
  }
35058
- const a = Al.fromSchema(t);
35058
+ const a = kl.fromSchema(t);
35059
35059
  return n.slice ? a.parseSlice(wa(e), n.parseOptions).content : a.parse(wa(e), n.parseOptions);
35060
35060
  }
35061
- return Wl("", t, n);
35061
+ return ql("", t, n);
35062
35062
  }
35063
35063
  function qA(e, t, n) {
35064
35064
  const r = e.steps.length - 1;
@@ -35098,7 +35098,7 @@ const WA = (e) => !("type" in e), YA = (e, t, n) => ({ tr: r, dispatch: l, edito
35098
35098
  };
35099
35099
  if (!n.errorOnInvalidContent && !a.options.enableContentCheck && a.options.emitContentError)
35100
35100
  try {
35101
- Wl(t, a.schema, {
35101
+ ql(t, a.schema, {
35102
35102
  parseOptions: u,
35103
35103
  errorOnInvalidContent: !0
35104
35104
  });
@@ -35106,7 +35106,7 @@ const WA = (e) => !("type" in e), YA = (e, t, n) => ({ tr: r, dispatch: l, edito
35106
35106
  o(b);
35107
35107
  }
35108
35108
  try {
35109
- s = Wl(t, a.schema, {
35109
+ s = ql(t, a.schema, {
35110
35110
  parseOptions: u,
35111
35111
  errorOnInvalidContent: (i = n.errorOnInvalidContent) !== null && i !== void 0 ? i : a.options.enableContentCheck
35112
35112
  });
@@ -35193,7 +35193,7 @@ const nN = (e) => ({ editor: t, view: n, tr: r, dispatch: l }) => {
35193
35193
  c && l && r.maybeStep(c);
35194
35194
  }), !0;
35195
35195
  };
35196
- function Yl(e, t, n = {}) {
35196
+ function Wl(e, t, n = {}) {
35197
35197
  const { from: r, to: l, empty: a } = e.selection, i = t ? nt(t, e.schema) : null, s = [];
35198
35198
  e.doc.nodesBetween(r, l, (d, h) => {
35199
35199
  if (d.isText)
@@ -35210,7 +35210,7 @@ function Yl(e, t, n = {}) {
35210
35210
  }
35211
35211
  const rN = (e, t = {}) => ({ state: n, dispatch: r }) => {
35212
35212
  const l = nt(e, n.schema);
35213
- return Yl(n, l, t) ? Kk(n, r) : !1;
35213
+ return Wl(n, l, t) ? Kk(n, r) : !1;
35214
35214
  }, lN = () => ({ state: e, dispatch: t }) => _0(e, t), aN = (e) => ({ state: t, dispatch: n }) => {
35215
35215
  const r = nt(e, t.schema);
35216
35216
  return iA(r)(t, n);
@@ -35240,7 +35240,7 @@ const sN = (e, t) => ({ tr: n, state: r, dispatch: l }) => {
35240
35240
  return !0;
35241
35241
  }, cN = () => ({ state: e, dispatch: t }) => x0(e, t), dN = () => ({ state: e, dispatch: t }) => A0(e, t), fN = () => ({ state: e, dispatch: t }) => Jk(e, t), hN = () => ({ state: e, dispatch: t }) => tA(e, t), pN = () => ({ state: e, dispatch: t }) => eA(e, t);
35242
35242
  function ko(e, t, n = {}, r = {}) {
35243
- return Wl(e, t, {
35243
+ return ql(e, t, {
35244
35244
  slice: !1,
35245
35245
  parseOptions: n,
35246
35246
  errorOnInvalidContent: r.errorOnInvalidContent
@@ -35357,9 +35357,9 @@ function Ao(e, t, n = {}) {
35357
35357
  }
35358
35358
  function TN(e, t, n = {}) {
35359
35359
  if (!t)
35360
- return Yl(e, null, n) || Ao(e, null, n);
35360
+ return Wl(e, null, n) || Ao(e, null, n);
35361
35361
  const r = Di(t, e.schema);
35362
- return r === "node" ? Yl(e, t, n) : r === "mark" ? Ao(e, t, n) : !1;
35362
+ return r === "node" ? Wl(e, t, n) : r === "mark" ? Ao(e, t, n) : !1;
35363
35363
  }
35364
35364
  function Pf(e, t) {
35365
35365
  const { nodeExtensions: n } = Oi(t), r = n.find((i) => i.name === e);
@@ -35587,12 +35587,12 @@ const IN = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
35587
35587
  const { extendEmptyMarkRange: a = !1 } = n, i = Yn(e, r.schema);
35588
35588
  return Ao(r, i, t) ? l.unsetMark(i, { extendEmptyMarkRange: a }) : l.setMark(i, t);
35589
35589
  }, DN = (e, t, n = {}) => ({ state: r, commands: l }) => {
35590
- const a = nt(e, r.schema), i = nt(t, r.schema), s = Yl(r, a, n);
35590
+ const a = nt(e, r.schema), i = nt(t, r.schema), s = Wl(r, a, n);
35591
35591
  let o;
35592
35592
  return r.selection.$anchor.sameParent(r.selection.$head) && (o = r.selection.$anchor.parent.attrs), s ? l.setNode(i, o) : l.setNode(a, { ...o, ...n });
35593
35593
  }, LN = (e, t = {}) => ({ state: n, commands: r }) => {
35594
35594
  const l = nt(e, n.schema);
35595
- return Yl(n, l, t) ? r.lift(l) : r.wrapIn(l, t);
35595
+ return Wl(n, l, t) ? r.lift(l) : r.wrapIn(l, t);
35596
35596
  }, PN = () => ({ state: e, dispatch: t }) => {
35597
35597
  const n = e.plugins;
35598
35598
  for (let r = 0; r < n.length; r += 1) {
@@ -35731,14 +35731,14 @@ var VN = /* @__PURE__ */ Object.freeze({
35731
35731
  wrapIn: UN,
35732
35732
  wrapInList: zN
35733
35733
  });
35734
- const $N = dt.create({
35734
+ const $N = ft.create({
35735
35735
  name: "commands",
35736
35736
  addCommands() {
35737
35737
  return {
35738
35738
  ...VN
35739
35739
  };
35740
35740
  }
35741
- }), qN = dt.create({
35741
+ }), qN = ft.create({
35742
35742
  name: "drop",
35743
35743
  addProseMirrorPlugins() {
35744
35744
  return [
@@ -35757,7 +35757,7 @@ const $N = dt.create({
35757
35757
  })
35758
35758
  ];
35759
35759
  }
35760
- }), WN = dt.create({
35760
+ }), WN = ft.create({
35761
35761
  name: "editable",
35762
35762
  addProseMirrorPlugins() {
35763
35763
  return [
@@ -35769,7 +35769,7 @@ const $N = dt.create({
35769
35769
  })
35770
35770
  ];
35771
35771
  }
35772
- }), YN = new jt("focusEvents"), jN = dt.create({
35772
+ }), YN = new jt("focusEvents"), jN = ft.create({
35773
35773
  name: "focusEvents",
35774
35774
  addProseMirrorPlugins() {
35775
35775
  const { editor: e } = this;
@@ -35793,7 +35793,7 @@ const $N = dt.create({
35793
35793
  })
35794
35794
  ];
35795
35795
  }
35796
- }), KN = dt.create({
35796
+ }), KN = ft.create({
35797
35797
  name: "keymap",
35798
35798
  addKeyboardShortcuts() {
35799
35799
  const e = () => this.editor.commands.first(({ commands: i }) => [
@@ -35871,7 +35871,7 @@ const $N = dt.create({
35871
35871
  })
35872
35872
  ];
35873
35873
  }
35874
- }), GN = dt.create({
35874
+ }), GN = ft.create({
35875
35875
  name: "paste",
35876
35876
  addProseMirrorPlugins() {
35877
35877
  return [
@@ -35889,7 +35889,7 @@ const $N = dt.create({
35889
35889
  })
35890
35890
  ];
35891
35891
  }
35892
- }), QN = dt.create({
35892
+ }), QN = ft.create({
35893
35893
  name: "tabindex",
35894
35894
  addProseMirrorPlugins() {
35895
35895
  return [
@@ -36508,7 +36508,7 @@ function No(e) {
36508
36508
  }
36509
36509
  });
36510
36510
  }
36511
- function jl(e) {
36511
+ function Yl(e) {
36512
36512
  return new Mi({
36513
36513
  find: e.find,
36514
36514
  handler: ({ state: t, range: n, match: r, chain: l }) => {
@@ -37225,7 +37225,7 @@ const S4 = /^\s*>\s$/, k4 = It.create({
37225
37225
  },
37226
37226
  addInputRules() {
37227
37227
  return [
37228
- jl({
37228
+ Yl({
37229
37229
  find: S4,
37230
37230
  type: this.type
37231
37231
  })
@@ -37330,11 +37330,11 @@ const S4 = /^\s*>\s$/, k4 = It.create({
37330
37330
  };
37331
37331
  },
37332
37332
  addInputRules() {
37333
- let e = jl({
37333
+ let e = Yl({
37334
37334
  find: qf,
37335
37335
  type: this.type
37336
37336
  });
37337
- return (this.options.keepMarks || this.options.keepAttributes) && (e = jl({
37337
+ return (this.options.keepMarks || this.options.keepAttributes) && (e = Yl({
37338
37338
  find: qf,
37339
37339
  type: this.type,
37340
37340
  keepMarks: this.options.keepMarks,
@@ -37604,7 +37604,7 @@ class z4 {
37604
37604
  this.editorView.dom.contains(t.relatedTarget) || this.setCursor(null);
37605
37605
  }
37606
37606
  }
37607
- const V4 = dt.create({
37607
+ const V4 = ft.create({
37608
37608
  name: "dropCursor",
37609
37609
  addOptions() {
37610
37610
  return {
@@ -37815,7 +37815,7 @@ function G4(e) {
37815
37815
  let t = document.createElement("div");
37816
37816
  return t.className = "ProseMirror-gapcursor", Ge.create(e.doc, [Pt.widget(e.selection.head, t, { key: "gapcursor" })]);
37817
37817
  }
37818
- const Q4 = dt.create({
37818
+ const Q4 = ft.create({
37819
37819
  name: "gapCursor",
37820
37820
  addProseMirrorPlugins() {
37821
37821
  return [
@@ -38075,7 +38075,7 @@ class Wt {
38075
38075
  return u > nw && (s = tw(s, u), i -= u), new Wt(s.append(a), i);
38076
38076
  }
38077
38077
  remapping(t, n) {
38078
- let r = new Ul();
38078
+ let r = new Hl();
38079
38079
  return this.items.forEach((l, a) => {
38080
38080
  let i = l.mirrorOffset != null && a - l.mirrorOffset >= t ? r.maps.length - l.mirrorOffset : void 0;
38081
38081
  r.appendMap(l.map, i);
@@ -38269,7 +38269,7 @@ function W0(e, t) {
38269
38269
  return !0;
38270
38270
  };
38271
38271
  }
38272
- const Y0 = W0(!1, !0), j0 = W0(!0, !0), ow = dt.create({
38272
+ const Y0 = W0(!1, !0), j0 = W0(!0, !0), ow = ft.create({
38273
38273
  name: "history",
38274
38274
  addOptions() {
38275
38275
  return {
@@ -38491,13 +38491,13 @@ const Y0 = W0(!1, !0), j0 = W0(!0, !0), ow = dt.create({
38491
38491
  };
38492
38492
  },
38493
38493
  addInputRules() {
38494
- let e = jl({
38494
+ let e = Yl({
38495
38495
  find: Kf,
38496
38496
  type: this.type,
38497
38497
  getAttributes: (t) => ({ start: +t[1] }),
38498
38498
  joinPredicate: (t, n) => n.childCount + n.attrs.start === +t[1]
38499
38499
  });
38500
- return (this.options.keepMarks || this.options.keepAttributes) && (e = jl({
38500
+ return (this.options.keepMarks || this.options.keepAttributes) && (e = Yl({
38501
38501
  find: Kf,
38502
38502
  type: this.type,
38503
38503
  keepMarks: this.options.keepMarks,
@@ -38596,13 +38596,13 @@ const Y0 = W0(!1, !0), j0 = W0(!0, !0), ow = dt.create({
38596
38596
  }), Cw = It.create({
38597
38597
  name: "text",
38598
38598
  group: "inline"
38599
- }), xw = dt.create({
38599
+ }), xw = ft.create({
38600
38600
  name: "starterKit",
38601
38601
  addExtensions() {
38602
38602
  const e = [];
38603
38603
  return this.options.bold !== !1 && e.push(I4.configure(this.options.bold)), this.options.blockquote !== !1 && e.push(k4.configure(this.options.blockquote)), this.options.bulletList !== !1 && e.push(M4.configure(this.options.bulletList)), this.options.code !== !1 && e.push(L4.configure(this.options.code)), this.options.codeBlock !== !1 && e.push(F4.configure(this.options.codeBlock)), this.options.document !== !1 && e.push(H4.configure(this.options.document)), this.options.dropcursor !== !1 && e.push(V4.configure(this.options.dropcursor)), this.options.gapcursor !== !1 && e.push(Q4.configure(this.options.gapcursor)), this.options.hardBreak !== !1 && e.push(X4.configure(this.options.hardBreak)), this.options.heading !== !1 && e.push(J4.configure(this.options.heading)), this.options.history !== !1 && e.push(ow.configure(this.options.history)), this.options.horizontalRule !== !1 && e.push(uw.configure(this.options.horizontalRule)), this.options.italic !== !1 && e.push(pw.configure(this.options.italic)), this.options.listItem !== !1 && e.push(mw.configure(this.options.listItem)), this.options.orderedList !== !1 && e.push(gw.configure(this.options.orderedList)), this.options.paragraph !== !1 && e.push(vw.configure(this.options.paragraph)), this.options.strike !== !1 && e.push(Tw.configure(this.options.strike)), this.options.text !== !1 && e.push(Cw.configure(this.options.text)), e;
38604
38604
  }
38605
- }), Sw = dt.create({
38605
+ }), Sw = ft.create({
38606
38606
  name: "placeholder",
38607
38607
  addOptions() {
38608
38608
  return {
@@ -39480,7 +39480,7 @@ const qw = {
39480
39480
  disabled: n,
39481
39481
  placement: "bottomLeft",
39482
39482
  autoAdjustOverflow: Ww,
39483
- getPopupContainer: na,
39483
+ getPopupContainer: ta,
39484
39484
  trigger: ["click"],
39485
39485
  overlayClassName: "rte-agent-dropdown",
39486
39486
  onOpenChange: s,
@@ -40323,7 +40323,7 @@ const th = 9999, S_ = ({ messageRef: e }) => {
40323
40323
  ) }) })
40324
40324
  ));
40325
40325
  ib.displayName = "SkillTag";
40326
- const X_ = (e) => {
40326
+ const Q_ = (e) => {
40327
40327
  const {
40328
40328
  config: t,
40329
40329
  onSend: n,
@@ -40376,7 +40376,7 @@ const X_ = (e) => {
40376
40376
  lockStructure: Oe = !0,
40377
40377
  collapsed: Le = !1,
40378
40378
  onCollapsedChange: Ft,
40379
- collapseTransitionMs: mt = 260,
40379
+ collapseTransitionMs: st = 260,
40380
40380
  nodeDefaults: Cr,
40381
40381
  // 展开态真实高度变化回调:消费端据此算对话列表底部留白,避免最后一条消息被输入框遮挡。
40382
40382
  onExpandedHeightChange: mn,
@@ -40393,7 +40393,7 @@ const X_ = (e) => {
40393
40393
  scrollContainerRef: bn,
40394
40394
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
40395
40395
  autoCollapseOnScroll: xr
40396
- } = e, [xt, gn] = G({}), [Mt, ia] = G({}), [st, j] = G(u ?? []), [re, ve] = G({}), [Ce, Me] = G(qw), [St, Kt] = G(() => /* @__PURE__ */ new Set()), [kt, vn] = G(() => /* @__PURE__ */ new Set()), [Gt, bt] = G(() => /* @__PURE__ */ new Set()), [sn, gt] = G({}), [jn, ob] = G(null), [ub, Mu] = G(null), Bi = te(null);
40396
+ } = e, [xt, gn] = G({}), [Mt, aa] = G({}), [ot, j] = G(u ?? []), [re, ve] = G({}), [Ce, Me] = G(qw), [St, Kt] = G(() => /* @__PURE__ */ new Set()), [kt, vn] = G(() => /* @__PURE__ */ new Set()), [Gt, bt] = G(() => /* @__PURE__ */ new Set()), [sn, gt] = G({}), [jn, ob] = G(null), [ub, Mu] = G(null), Bi = te(null);
40397
40397
  $e(() => {
40398
40398
  const H = Bi.current?.ownerDocument ?? document, ne = H.createElement("div");
40399
40399
  return ne.className = "rte-message-host", ne.style.cssText = "position:fixed;inset:0;z-index:2000000000;pointer-events:none;", H.body.appendChild(ne), Mu(ne), () => {
@@ -40403,22 +40403,18 @@ const X_ = (e) => {
40403
40403
  const cb = V(
40404
40404
  () => an?.() ?? jn ?? document.body,
40405
40405
  [an, jn]
40406
- ), Fi = te(null), [sa, db] = G(null), fb = V((H, ne) => {
40406
+ ), Fi = te(null), [ia, db] = G(null), fb = V((H, ne) => {
40407
40407
  db(ne ? H : null);
40408
- }, []), Kn = te(null), [hb, pb] = G(58), [Gn, Ru] = G(58), [Hi, Du] = G(!1), Lu = te(0), Pu = te(Le), [oa, Bu] = G(!1);
40409
- Pu.current !== Le && (Pu.current = Le, Lu.current = (typeof performance < "u" ? performance.now() : Date.now()) + mt, Bu(!0));
40410
- const Fu = te(null);
40411
- be(() => {
40412
- if (!oa) return;
40413
- const H = setTimeout(() => {
40414
- Bu(!1), requestAnimationFrame(() => requestAnimationFrame(() => Fu.current?.()));
40415
- }, mt);
40408
+ }, []), Kn = te(null), [hb, pb] = G(58), [Gn, Ru] = G(58), [Hi, Du] = G(!1), Lu = te(0), Pu = te(Le), [sa, Bu] = G(!1);
40409
+ Pu.current !== Le && (Pu.current = Le, Lu.current = (typeof performance < "u" ? performance.now() : Date.now()) + st, Bu(!0)), be(() => {
40410
+ if (!sa) return;
40411
+ const H = setTimeout(() => Bu(!1), st);
40416
40412
  return () => clearTimeout(H);
40417
- }, [oa, Le, mt]);
40418
- const [Qn, Hu] = G(""), tl = te(null), Ui = te(null), [nl, Uu] = G(0), [zi, zu] = G(0), Vi = te(!1);
40413
+ }, [sa, Le, st]);
40414
+ const [Qn, Fu] = G(""), tl = te(null), Ui = te(null), [nl, Hu] = G(0), [zi, Uu] = G(0), Vi = te(!1);
40419
40415
  be(() => {
40420
- if (!u || u.length === st.length && u.every((le, ae) => {
40421
- const ee = st[ae];
40416
+ if (!u || u.length === ot.length && u.every((le, ae) => {
40417
+ const ee = ot[ae];
40422
40418
  return ee && le.name === ee.name && le.size === ee.size && le.lastModified === ee.lastModified;
40423
40419
  })) return;
40424
40420
  const ne = 50 * 1024 * 1024;
@@ -40436,11 +40432,11 @@ const X_ = (e) => {
40436
40432
  const At = Ve(
40437
40433
  () => $w(t, Ce, St),
40438
40434
  [t, Ce, St]
40439
- ), $i = te(null), Vu = te(!1);
40435
+ ), $i = te(null), zu = te(!1);
40440
40436
  be(() => {
40441
40437
  const H = t.find((ne) => ne.type === "tag")?.text ?? null;
40442
- if (!Vu.current) {
40443
- Vu.current = !0, $i.current = H;
40438
+ if (!zu.current) {
40439
+ zu.current = !0, $i.current = H;
40444
40440
  return;
40445
40441
  }
40446
40442
  $i.current !== H && ($i.current = H, j((ne) => ne.length === 0 ? ne : []));
@@ -40453,42 +40449,42 @@ const X_ = (e) => {
40453
40449
  () => t.some((H) => H.type === "tag"),
40454
40450
  [t]
40455
40451
  ), bb = K ?? !mb;
40456
- _w(i, xt, gn, At, Mt, ia);
40457
- const ll = te(/* @__PURE__ */ new Map()), $u = te(""), qu = (t.find((H) => H.type === "tag")?.text || "") + "||" + t.filter((H) => H.key && H.type !== "report-module" && H.type !== "markdown-module").map((H) => `${H.type}:${H.key}`).join("|");
40458
- $u.current !== qu && ($u.current = qu, ll.current = /* @__PURE__ */ new Map());
40459
- const [vt, ua] = G(null);
40452
+ _w(i, xt, gn, At, Mt, aa);
40453
+ const ll = te(/* @__PURE__ */ new Map()), Vu = te(""), $u = (t.find((H) => H.type === "tag")?.text || "") + "||" + t.filter((H) => H.key && H.type !== "report-module" && H.type !== "markdown-module").map((H) => `${H.type}:${H.key}`).join("|");
40454
+ Vu.current !== $u && (Vu.current = $u, ll.current = /* @__PURE__ */ new Map());
40455
+ const [vt, oa] = G(null);
40460
40456
  be(() => {
40461
- me !== void 0 && ua(me);
40457
+ me !== void 0 && oa(me);
40462
40458
  }, [me]);
40463
- const Wu = V(
40459
+ const qu = V(
40464
40460
  (H) => {
40465
- ua(H), ke?.(H), H && rl && L?.("skill-switch");
40461
+ oa(H), ke?.(H), H && rl && L?.("skill-switch");
40466
40462
  },
40467
40463
  [rl, L, ke]
40468
40464
  ), gb = V(
40469
40465
  (H) => {
40470
- ua(null), q?.(H);
40466
+ oa(null), q?.(H);
40471
40467
  },
40472
40468
  [q]
40473
40469
  );
40474
40470
  be(() => {
40475
- rl && ua(null);
40471
+ rl && oa(null);
40476
40472
  }, [rl]);
40477
- const { errors: vb, validate: Yu, clearError: ju } = Mw(At), { excludedKeys: Sr, hideSeparator: Ku } = Lw(At, xt, Mt), { analyzeReport: ca, analyzeMarkdown: Gu, analyzeMarkdownName: Qu, resolveReportName: da } = Pw({
40473
+ const { errors: vb, validate: Wu, clearError: Yu } = Mw(At), { excludedKeys: Sr, hideSeparator: ju } = Lw(At, xt, Mt), { analyzeReport: ua, analyzeMarkdown: Ku, analyzeMarkdownName: Gu, resolveReportName: ca } = Pw({
40478
40474
  reportAnalyze: O,
40479
40475
  markdownAnalyze: B,
40480
40476
  markdownNameAnalyze: D,
40481
40477
  reportNameResolve: _
40482
- }), Xu = (H) => typeof H != "string" ? !H : H.replace(/<[^>]*>/g, "").replace(/&nbsp;/gi, "").replace(/\s/g, "").replace(/[​‌‍]/g, "").trim() === "", qi = V((H, ne) => {
40483
- gn((le) => ({ ...le, [H]: ne })), ju(H);
40478
+ }), Qu = (H) => typeof H != "string" ? !H : H.replace(/<[^>]*>/g, "").replace(/&nbsp;/gi, "").replace(/\s/g, "").replace(/[​‌‍]/g, "").trim() === "", qi = V((H, ne) => {
40479
+ gn((le) => ({ ...le, [H]: ne })), Yu(H);
40484
40480
  const se = /^(.+)__module_\d+$/.exec(H);
40485
- if (se && Xu(ne)) {
40481
+ if (se && Qu(ne)) {
40486
40482
  const le = se[1];
40487
40483
  At.find(
40488
40484
  (ee) => ee.key === le && ee.type === "markdown-module"
40489
40485
  ) && gn((ee) => {
40490
40486
  const he = { ...ee, [H]: ne };
40491
- return Object.keys(he).filter((xe) => xe.startsWith(`${le}__module_`)).every((xe) => Xu(he[xe])) && (Me((xe) => {
40487
+ return Object.keys(he).filter((xe) => xe.startsWith(`${le}__module_`)).every((xe) => Qu(he[xe])) && (Me((xe) => {
40492
40488
  if (!xe.markdownModules[le]) return xe;
40493
40489
  const Be = { ...xe.markdownModules };
40494
40490
  return delete Be[le], { ...xe, markdownModules: Be };
@@ -40512,9 +40508,9 @@ const X_ = (e) => {
40512
40508
  return delete ee[H], { ...ae, markdownModules: ee };
40513
40509
  });
40514
40510
  }
40515
- }, [ju, At]), yb = V(
40511
+ }, [Yu, At]), yb = V(
40516
40512
  (H, ne) => {
40517
- ia((se) => ({ ...se, [H]: ne }));
40513
+ aa((se) => ({ ...se, [H]: ne }));
40518
40514
  },
40519
40515
  []
40520
40516
  ), Eb = V(
@@ -40533,8 +40529,8 @@ const X_ = (e) => {
40533
40529
  if (Ee === H) continue;
40534
40530
  const Be = Ee.match(/^(.+)_(\d+)$/);
40535
40531
  if (Be && Be[1] === le) {
40536
- const ot = parseInt(Be[2], 10);
40537
- ot > ee ? he[`${le}_${ot - 1}`] = xe : he[Ee] = xe;
40532
+ const ut = parseInt(Be[2], 10);
40533
+ ut > ee ? he[`${le}_${ut - 1}`] = xe : he[Ee] = xe;
40538
40534
  } else
40539
40535
  he[Ee] = xe;
40540
40536
  }
@@ -40560,20 +40556,20 @@ const X_ = (e) => {
40560
40556
  });
40561
40557
  }, []), Wi = V(
40562
40558
  async (H, ne, se) => {
40563
- const le = await da(H, ne, se);
40559
+ const le = await ca(H, ne, se);
40564
40560
  return le.status === "success" && gt((ae) => ({ ...ae, [H]: le.name })), le;
40565
40561
  },
40566
- [da]
40562
+ [ca]
40567
40563
  ), xb = V(
40568
40564
  (H, ne) => {
40569
- ca(H, ne).then((se) => {
40565
+ ua(H, ne).then((se) => {
40570
40566
  se.status === "success" && Me((le) => ({
40571
40567
  ...le,
40572
40568
  reportModules: { ...le.reportModules, [H]: se.modules }
40573
40569
  }));
40574
40570
  });
40575
40571
  },
40576
- [ca]
40572
+ [ua]
40577
40573
  ), Yi = V(
40578
40574
  async (H, ne) => {
40579
40575
  vn((se) => {
@@ -40581,9 +40577,9 @@ const X_ = (e) => {
40581
40577
  return le.add(H), le;
40582
40578
  });
40583
40579
  try {
40584
- const se = da(H, ne, "report-url").then((ae) => {
40580
+ const se = ca(H, ne, "report-url").then((ae) => {
40585
40581
  ae.status === "success" && gt((ee) => ({ ...ee, [H]: ae.name }));
40586
- }), le = ca(H, ne).then((ae) => {
40582
+ }), le = ua(H, ne).then((ae) => {
40587
40583
  ae.status === "success" ? (Me((ee) => ({
40588
40584
  ...ee,
40589
40585
  reportModules: { ...ee.reportModules, [H]: ae.modules }
@@ -40609,7 +40605,7 @@ const X_ = (e) => {
40609
40605
  });
40610
40606
  }
40611
40607
  },
40612
- [ca, da, qi]
40608
+ [ua, ca, qi]
40613
40609
  ), Sb = V((H, ne) => {
40614
40610
  bt((se) => {
40615
40611
  const le = new Set(se);
@@ -40641,7 +40637,7 @@ const X_ = (e) => {
40641
40637
  }
40642
40638
  }
40643
40639
  }, [i, t, Yi, Wi]);
40644
- const fa = V(
40640
+ const da = V(
40645
40641
  async (H, ne, se) => {
40646
40642
  const ae = Date.now();
40647
40643
  Kt((ee) => {
@@ -40655,8 +40651,8 @@ const X_ = (e) => {
40655
40651
  markdownModules: { ...Ee.markdownModules, [H]: ee.modules }
40656
40652
  })), gn((Ee) => {
40657
40653
  const xe = { ...Ee };
40658
- return ee.modules.forEach((Be, ot) => {
40659
- xe[`${H}__module_${ot}`] = Be.content;
40654
+ return ee.modules.forEach((Be, ut) => {
40655
+ xe[`${H}__module_${ut}`] = Be.content;
40660
40656
  }), xe;
40661
40657
  }));
40662
40658
  } finally {
@@ -40669,11 +40665,11 @@ const X_ = (e) => {
40669
40665
  },
40670
40666
  []
40671
40667
  ), kb = V(
40672
- (H, ne) => fa(H, ne, Gu),
40673
- [fa, Gu]
40668
+ (H, ne) => da(H, ne, Ku),
40669
+ [da, Ku]
40674
40670
  ), Ab = V(
40675
- (H, ne) => fa(H, ne, Qu),
40676
- [fa, Qu]
40671
+ (H, ne) => da(H, ne, Gu),
40672
+ [da, Gu]
40677
40673
  );
40678
40674
  be(() => {
40679
40675
  s?.(Mt);
@@ -40682,32 +40678,32 @@ const X_ = (e) => {
40682
40678
  Vi.current = !1;
40683
40679
  return;
40684
40680
  }
40685
- o?.(st);
40686
- }, [st, o]);
40681
+ o?.(ot);
40682
+ }, [ot, o]);
40687
40683
  const ji = V(async () => {
40688
40684
  if (r || l || kt.size > 0 || Gt.size > 0) return;
40689
40685
  const H = vt ? { skillCode: vt.id, skillName: vt.title } : void 0;
40690
40686
  if (t.length === 0) {
40691
40687
  const ae = Qn.trim();
40692
- if (!ae && !st.length) return;
40688
+ if (!ae && !ot.length) return;
40693
40689
  const ee = vt ? `【${vt.title}】${ae}` : ae;
40694
- if (st.length) {
40690
+ if (ot.length) {
40695
40691
  const he = new FormData();
40696
- ee && he.append("prompt", ee), st.forEach((Ee) => he.append("files", Ee)), n(he, ee, H);
40692
+ ee && he.append("prompt", ee), ot.forEach((Ee) => he.append("files", Ee)), n(he, ee, H);
40697
40693
  } else
40698
40694
  n(ae, ee, H);
40699
- Hu(""), j([]);
40695
+ Fu(""), j([]);
40700
40696
  return;
40701
40697
  }
40702
- if (!Yu(xt, Mt, Sr)) return;
40698
+ if (!Wu(xt, Mt, Sr)) return;
40703
40699
  const { formData: ne, fullPrompt: se, hasContent: le } = await Vw({
40704
40700
  config: At,
40705
40701
  values: xt,
40706
40702
  files: Mt,
40707
- footerFiles: st,
40703
+ footerFiles: ot,
40708
40704
  markdownModules: Ce.markdownModules,
40709
40705
  excludedKeys: Sr,
40710
- hideSeparator: Ku
40706
+ hideSeparator: ju
40711
40707
  });
40712
40708
  le && (n(ne, se, H), j([]));
40713
40709
  }, [
@@ -40717,13 +40713,13 @@ const X_ = (e) => {
40717
40713
  At,
40718
40714
  xt,
40719
40715
  Mt,
40720
- st,
40716
+ ot,
40721
40717
  Ce.markdownModules,
40722
40718
  r,
40723
40719
  l,
40724
40720
  kt,
40725
40721
  Gt,
40726
- Yu,
40722
+ Wu,
40727
40723
  n,
40728
40724
  Sr
40729
40725
  ]), Nb = V(
@@ -40737,11 +40733,11 @@ const X_ = (e) => {
40737
40733
  const se = ne.getClientRects();
40738
40734
  if (se.length === 0) return !1;
40739
40735
  const le = H.getBoundingClientRect().left, ae = se[0], ee = se[se.length - 1], he = Math.max(0, ee.right - le - 2);
40740
- return Uu(he), zu(Math.max(0, Math.round(ee.top - ae.top))), he > 0;
40736
+ return Hu(he), Uu(Math.max(0, Math.round(ee.top - ae.top))), he > 0;
40741
40737
  }, []);
40742
40738
  $e(() => {
40743
40739
  if (!vt) {
40744
- Uu(0), zu(0);
40740
+ Hu(0), Uu(0);
40745
40741
  return;
40746
40742
  }
40747
40743
  let H = !1, ne = 0, se = 0;
@@ -40761,17 +40757,17 @@ const X_ = (e) => {
40761
40757
  }, [vt, t.length, Ki]), be(() => {
40762
40758
  !vt || t.length > 0 || tl.current?.focus();
40763
40759
  }, [vt, t.length]);
40764
- const [_b, Ju] = G(!1);
40760
+ const [_b, Xu] = G(!1);
40765
40761
  be(() => {
40766
40762
  const H = (ne) => {
40767
40763
  const se = Bi.current;
40768
40764
  if (!se) return;
40769
40765
  const le = ne.target;
40770
- se.contains(le) || jn && jn.contains(le) ? Ju(!0) : Ju(!1);
40766
+ se.contains(le) || jn && jn.contains(le) ? Xu(!0) : Xu(!1);
40771
40767
  };
40772
40768
  return document.addEventListener("mousedown", H), () => document.removeEventListener("mousedown", H);
40773
40769
  }, [jn]);
40774
- const Zu = V(() => {
40770
+ const Ju = V(() => {
40775
40771
  requestAnimationFrame(() => {
40776
40772
  if (t.length === 0) {
40777
40773
  tl.current?.focus();
@@ -40782,8 +40778,8 @@ const X_ = (e) => {
40782
40778
  )?.focus();
40783
40779
  });
40784
40780
  }, [t.length]), Ib = V((H) => {
40785
- ue?.(H), H && Zu();
40786
- }, [ue, Zu]);
40781
+ ue?.(H), H && Ju();
40782
+ }, [ue, Ju]);
40787
40783
  $e(() => {
40788
40784
  const H = tl.current;
40789
40785
  H && (H.style.height = "auto", H.style.height = `${H.scrollHeight}px`, nl > 0 && (H.style.textIndent = "0px", H.offsetWidth, H.style.textIndent = `${nl}px`));
@@ -40801,31 +40797,43 @@ const X_ = (e) => {
40801
40797
  "--rte-editor-min-height": typeof g == "number" ? `${g}px` : g
40802
40798
  } : {},
40803
40799
  ...b ? { "--rte-editor-padding": b } : {}
40804
- }, ec = typeof Ie == "number" ? Ie : hb, tc = {
40800
+ }, Zu = typeof Ie == "number" ? Ie : hb, ec = Le ? Zu : Math.max(Gn, Zu), tc = {
40805
40801
  // editor 显式 inline max-height(= editorMaxHeightPx,展开态 = clamp 到「父可用高 availInParent」
40806
40802
  // 的 expandedMaxHeightPx):**不能**只靠「flex:1 + 父 max-height」让 flex 自动收缩——在
40807
40803
  // max-height(非固定 height)的 column flex 容器里,触顶后 footer/filesList/editor 会按
40808
40804
  // flex-shrink 比例一起缩,而非单独把 editor 夹出滚动条 → 表现为「框一直变高、不停在上限」
40809
40805
  // (用户实测)。故必须给 editor 一个确定的像素 cap。
40810
- maxHeight: Le ? ec : Math.max(Gn, ec),
40806
+ maxHeight: ec,
40811
40807
  // collapsed 或动画窗口内都置 0:.rte-editor 有 CSS min-height:58px,展开瞬间 collapsed→false
40812
40808
  // 若 minHeight 立即恢复 undefined → CSS 58px 生效 → 元素从收起态 46 瞬跳到 58(顿挫),且被
40813
40809
  // 58 钉住直到 max-height 动画爬过 58 才可见长高(前 ~50ms 视觉静止「顿一下」)。动画期间保持 0,
40814
40810
  // 元素跟随 max-height 从 46 连续长到目标,无卡顿;窗口结束恢复(此时高度已 ≥58,CSS 58 无影响)。
40815
- minHeight: Le || oa ? 0 : void 0,
40811
+ // minHeight 三态:
40812
+ // - collapsed(含折叠动画中):0。折叠靠 max-height 上限把元素从 122 压到 46,min-height 必须
40813
+ // 让路(设 46 会让元素瞬间锁死在 46→折叠无动画)。
40814
+ // - 展开动画中(!collapsed && collapseAnimating):= editorMaxHeightPx(展开目标,如 122)。
40815
+ // 关键修复:空框/短内容的展开高度来自 flex 撑满父容器、而非内容本身。max-height 只是「上限」,
40816
+ // 动画期间上限从 46 涨到 122 时,内容只有 ~46 的空框根本撑不到上限 → 元素卡在 ~46 一动不动,
40817
+ // 直到动画结束 collapseAnimating=false、flex 撑满才一帧 snap 到 122(用户实测的「二段式:先几乎
40818
+ // 不动,末尾猛跳 180」)。把 min-height 一并设为目标并纳入 transition,元素被 min-height 平滑
40819
+ // 顶起 46→122,动画结束释放为 undefined 时高度已是 122、flex 无缝接管,无 snap。
40820
+ // - 稳定展开态:undefined(交给 flex 撑满,见 maxHeight 注释)。
40821
+ minHeight: Le ? 0 : sa ? ec : void 0,
40816
40822
  // collapsed 或动画窗口内 hidden:折叠区固定高、展开动画中间帧 max-height < scrollHeight 若 auto 会闪滚动条。
40817
40823
  // 稳定展开态固定 auto:高度由 flex 决定(见上 maxHeight 注释),内容放得下时 scrollHeight==clientHeight、
40818
40824
  // auto 不显滚动条也不回弹;内容超父上限时本元素自动出滚动条可内部滚。不再依赖 bodyOverflowing
40819
40825
  // (那套「测内容是否溢出再切 auto/hidden」是 inline max-height 接管高度时代的产物,flex 接管后多余)。
40820
- overflow: Le || oa ? "hidden" : "auto",
40821
- transition: Hi ? "none" : `max-height ${mt}ms cubic-bezier(0.4, 0, 0.2, 1)`,
40822
- willChange: "max-height"
40826
+ overflow: Le || sa ? "hidden" : "auto",
40827
+ // min-height 必须与 max-height 同步过渡:展开动画用 min-height 把空框顶到目标高(见 minHeight 注释),
40828
+ // 不纳入 transition 则 min-height 0→122 会瞬间生效、首帧 snap,失去动画。
40829
+ transition: Hi ? "none" : `max-height ${st}ms cubic-bezier(0.4, 0, 0.2, 1), min-height ${st}ms cubic-bezier(0.4, 0, 0.2, 1)`,
40830
+ willChange: "max-height, min-height"
40823
40831
  }, nc = V(() => {
40824
40832
  Le && ze && Ft?.(!1), tl.current?.focus();
40825
40833
  }, [Le, ze, Ft]), rc = te(0), Mb = V(() => {
40826
40834
  const H = Kn.current, ne = document.activeElement;
40827
40835
  !H || !ne || !H.contains(ne) || (rc.current = typeof performance < "u" ? performance.now() : Date.now());
40828
- }, []), al = V(() => {
40836
+ }, []), fa = V(() => {
40829
40837
  const H = Kn.current;
40830
40838
  if (!(!H || (typeof performance < "u" ? performance.now() : Date.now()) < Lu.current)) {
40831
40839
  if (!Le) {
@@ -40837,7 +40845,7 @@ const X_ = (e) => {
40837
40845
  let Be = 0;
40838
40846
  for (const ha of Array.from(ee.children))
40839
40847
  ha !== H && (Be += ha.offsetHeight);
40840
- const ot = getComputedStyle(ee), Gi = parseFloat(ot.paddingTop) + parseFloat(ot.paddingBottom);
40848
+ const ut = getComputedStyle(ee), Gi = parseFloat(ut.paddingTop) + parseFloat(ut.paddingBottom);
40841
40849
  he = Math.max(0, ee.clientHeight - Be - Gi);
40842
40850
  }
40843
40851
  H.style.maxHeight = se;
@@ -40850,41 +40858,39 @@ const X_ = (e) => {
40850
40858
  const ee = Array.from(ae.getClientRects()).filter((he) => he.height > 0);
40851
40859
  if (ee.length > 0) {
40852
40860
  const he = Math.min(...ee.map((Xn) => Xn.top)), Ee = parseFloat(getComputedStyle(H).lineHeight) || 34, xe = Math.max(Ee, 1), Be = he + xe * 0.5;
40853
- let ot = 0;
40861
+ let ut = 0;
40854
40862
  for (const Xn of ee)
40855
- Xn.top < Be && (ot = Math.max(ot, Xn.bottom));
40856
- const Gi = ot > 0 ? Math.ceil(ot - se.top) : 0, ha = getComputedStyle(H), Db = parseFloat(ha.paddingTop) || 0, Lb = Math.ceil(Db + xe), Qi = Math.max(Gi, Lb);
40863
+ Xn.top < Be && (ut = Math.max(ut, Xn.bottom));
40864
+ const Gi = ut > 0 ? Math.ceil(ut - se.top) : 0, ha = getComputedStyle(H), Db = parseFloat(ha.paddingTop) || 0, Lb = Math.ceil(Db + xe), Qi = Math.max(Gi, Lb);
40857
40865
  Qi > 0 && pb((Xn) => Xn === Qi ? Xn : Qi);
40858
40866
  }
40859
40867
  } catch {
40860
40868
  }
40861
40869
  }
40862
- }, [Le]);
40863
- Fu.current = al;
40864
- const kr = Ve(
40870
+ }, [Le]), kr = Ve(
40865
40871
  () => At.filter((H) => H.key && H.type !== "report-module" && H.type !== "markdown-module").map((H) => `${H.type}:${H.key}`).join("|"),
40866
40872
  [At]
40867
40873
  ), lc = te(kr);
40868
40874
  lc.current !== kr && (lc.current = kr, Le || (Ru(th), Du(!0))), be(() => {
40869
40875
  if (!Hi) return;
40870
- const H = setTimeout(() => Du(!1), mt);
40876
+ const H = setTimeout(() => Du(!1), st);
40871
40877
  return () => clearTimeout(H);
40872
- }, [Hi, kr, mt]), $e(() => {
40878
+ }, [Hi, kr, st]), $e(() => {
40873
40879
  const H = Kn.current;
40874
- if (!H || (al(), typeof ResizeObserver > "u")) return;
40880
+ if (!H || (fa(), typeof ResizeObserver > "u")) return;
40875
40881
  const ne = () => {
40876
40882
  const ee = Kn.current;
40877
40883
  if (!ee) return;
40878
40884
  (typeof performance < "u" ? performance.now() : Date.now()) - rc.current < 600 && ee.contains(document.activeElement) && ee.scrollHeight > ee.clientHeight && (ee.scrollTop = ee.scrollHeight);
40879
- }, se = new ResizeObserver(() => al());
40885
+ }, se = new ResizeObserver(() => fa());
40880
40886
  se.observe(H);
40881
40887
  const le = H.querySelector(".rte-default-textarea, .rte-config-fade"), ae = le ? new ResizeObserver(() => {
40882
- al(), ne();
40888
+ fa(), ne();
40883
40889
  }) : null;
40884
40890
  return le && ae && ae.observe(le), () => {
40885
40891
  se.disconnect(), ae?.disconnect();
40886
40892
  };
40887
- }, [al, At, Mt, st.length, sn, Le, kr, Qn]);
40893
+ }, [fa, At, Mt, ot.length, sn, Le, kr, Qn]);
40888
40894
  const ac = te(-1);
40889
40895
  be(() => {
40890
40896
  Le || Gn <= 0 || Gn >= th || ac.current !== Gn && (ac.current = Gn, mn?.(Gn));
@@ -40959,11 +40965,11 @@ const X_ = (e) => {
40959
40965
  const le = [];
40960
40966
  let ae = !1;
40961
40967
  for (const Be of Array.from(ne)) {
40962
- const ot = (Be.name || "").split(".").pop()?.toLowerCase() || "";
40963
- ic.has(ot) ? le.push(Be) : ae = !0;
40968
+ const ut = (Be.name || "").split(".").pop()?.toLowerCase() || "";
40969
+ ic.has(ut) ? le.push(Be) : ae = !0;
40964
40970
  }
40965
40971
  if (ae && Fi.current?.error("粘贴文件中含不支持的类型,已自动过滤"), le.length === 0) return;
40966
- const ee = 50 * 1024 * 1024, he = st.reduce((Be, ot) => Be + ot.size, 0), Ee = [];
40972
+ const ee = 50 * 1024 * 1024, he = ot.reduce((Be, ut) => Be + ut.size, 0), Ee = [];
40967
40973
  let xe = he;
40968
40974
  for (const Be of le) {
40969
40975
  if (xe + Be.size > ee) {
@@ -40974,7 +40980,7 @@ const X_ = (e) => {
40974
40980
  }
40975
40981
  Ee.length > 0 && j((Be) => [...Ee, ...Be]);
40976
40982
  },
40977
- [ic, t, st]
40983
+ [ic, t, ot]
40978
40984
  );
40979
40985
  return /* @__PURE__ */ v(Wb, { getPopupContainer: cb, children: /* @__PURE__ */ W(Un, { component: !1, message: { getContainer: () => ub ?? jn ?? document.body }, children: [
40980
40986
  /* @__PURE__ */ v(S_, { messageRef: Fi }),
@@ -40983,12 +40989,12 @@ const X_ = (e) => {
40983
40989
  "div",
40984
40990
  {
40985
40991
  ref: Bi,
40986
- className: `rich-text-editor ${sa ? "rte-richtext-container-expanded" : ""} ${_b ? "rte-editor-selected" : ""} ${E ?? ""}`,
40992
+ className: `rich-text-editor ${ia ? "rte-richtext-container-expanded" : ""} ${_b ? "rte-editor-selected" : ""} ${E ?? ""}`,
40987
40993
  "data-component": "structured-editor",
40988
40994
  style: Ob,
40989
40995
  onPaste: Rb,
40990
40996
  children: [
40991
- /* @__PURE__ */ v(ab, { files: st, onChange: j }),
40997
+ /* @__PURE__ */ v(ab, { files: ot, onChange: j }),
40992
40998
  t.length === 0 ? /* @__PURE__ */ W(
40993
40999
  "div",
40994
41000
  {
@@ -40997,14 +41003,14 @@ const X_ = (e) => {
40997
41003
  style: tc,
40998
41004
  onClick: nc,
40999
41005
  children: [
41000
- vt && /* @__PURE__ */ v("span", { ref: Ui, className: "rte-skill-inline-tag-wrap", contentEditable: !1, children: /* @__PURE__ */ v(ib, { title: vt.title, onClose: () => Wu(null) }) }),
41006
+ vt && /* @__PURE__ */ v("span", { ref: Ui, className: "rte-skill-inline-tag-wrap", contentEditable: !1, children: /* @__PURE__ */ v(ib, { title: vt.title, onClose: () => qu(null) }) }),
41001
41007
  /* @__PURE__ */ v(
41002
41008
  "textarea",
41003
41009
  {
41004
41010
  ref: tl,
41005
41011
  className: "rte-default-textarea",
41006
41012
  value: Qn,
41007
- onChange: (H) => Hu(H.target.value),
41013
+ onChange: (H) => Fu(H.target.value),
41008
41014
  onKeyDown: Nb,
41009
41015
  placeholder: vt?.usageInstruction || a || "",
41010
41016
  disabled: l,
@@ -41021,12 +41027,12 @@ const X_ = (e) => {
41021
41027
  "div",
41022
41028
  {
41023
41029
  ref: Kn,
41024
- className: `rte-editor${sa ? " rte-richtext-fullscreen-active" : ""}`,
41030
+ className: `rte-editor${ia ? " rte-richtext-fullscreen-active" : ""}`,
41025
41031
  style: tc,
41026
41032
  onClick: nc,
41027
41033
  onInput: Mb,
41028
41034
  children: /* @__PURE__ */ v("div", { className: "rte-config-fade", children: At.map((H, ne) => {
41029
- if (H.key && Sr.has(H.key) || Ku && H.exclusionGroup === "separator" || sa && H.key !== sa) return null;
41035
+ if (H.key && Sr.has(H.key) || ju && H.exclusionGroup === "separator" || ia && H.key !== ia) return null;
41030
41036
  const se = (H.type === "report-module" || H.type === "markdown-module") && H.key ? `${H.key}__module_${H.moduleIndex ?? 0}` : H.key;
41031
41037
  return /* @__PURE__ */ v(
41032
41038
  G0,
@@ -41074,14 +41080,14 @@ const X_ = (e) => {
41074
41080
  disabled: l,
41075
41081
  sendDisabled: !wb,
41076
41082
  showFooterUpload: Pe,
41077
- footerFiles: st,
41083
+ footerFiles: ot,
41078
41084
  onFooterFilesChange: j,
41079
41085
  agentOptions: F,
41080
41086
  onAgentSelect: gb,
41081
41087
  hideAgentButton: fe === "hideAgent",
41082
41088
  currentAgent: rl,
41083
41089
  selectedSkill: vt,
41084
- onSkillSelect: Wu,
41090
+ onSkillSelect: qu,
41085
41091
  onSkillCardClick: P,
41086
41092
  onSkillAction: y,
41087
41093
  skillListFetch: $,
@@ -41165,7 +41171,7 @@ const X_ = (e) => {
41165
41171
  }
41166
41172
  ),
41167
41173
  /* @__PURE__ */ v(
41168
- Kl,
41174
+ jl,
41169
41175
  {
41170
41176
  value: t,
41171
41177
  onChange: l,
@@ -42242,7 +42248,7 @@ R_.__docgenInfo = {
42242
42248
  }
42243
42249
  }
42244
42250
  };
42245
- const Ma = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;"), Il = {
42251
+ const Ma = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;"), _l = {
42246
42252
  日期: "date",
42247
42253
  展现量: "impressions",
42248
42254
  点击量: "clicks",
@@ -42364,25 +42370,25 @@ const Ma = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "
42364
42370
  "成交新客占比",
42365
42371
  "自然流量转化金额",
42366
42372
  "自然流量曝光量"
42367
- ], gl = (e) => Il[e] ?? e, L_ = (e) => e ? !!(Il[e] !== void 0 || e.length <= 20 && /[\u4e00-\u9fff]/.test(e)) : !1, P_ = (e) => {
42373
+ ], bl = (e) => _l[e] ?? e, L_ = (e) => e ? !!(_l[e] !== void 0 || e.length <= 20 && /[\u4e00-\u9fff]/.test(e)) : !1, P_ = (e) => {
42368
42374
  const t = e.trim();
42369
42375
  if (!t) return [];
42370
42376
  const n = t.split(/[\r\n]+/).map((i) => i.trim()).filter(Boolean);
42371
42377
  if (n.length === 0) return [];
42372
42378
  const r = n[0];
42373
42379
  if (r.includes(" ")) {
42374
- const i = r.split(/\t/).map((o) => o.trim()).filter(Boolean), s = i.some((o) => Il[o] !== void 0);
42380
+ const i = r.split(/\t/).map((o) => o.trim()).filter(Boolean), s = i.some((o) => _l[o] !== void 0);
42375
42381
  if (i.length >= 2 && s)
42376
42382
  return i;
42377
42383
  }
42378
42384
  if (n.length === 1) {
42379
42385
  let i = r.split(/\s{2,}/).map((o) => o.trim()).filter(Boolean);
42380
42386
  i.length <= 1 && (i = r.split(/\s+/).filter(Boolean));
42381
- const s = i.some((o) => Il[o] !== void 0);
42387
+ const s = i.some((o) => _l[o] !== void 0);
42382
42388
  return i.length >= 2 && s ? i : [];
42383
42389
  }
42384
42390
  const l = n.filter(L_);
42385
- return l.some((i) => Il[i] !== void 0) && l.length >= 2 && l.length / n.length >= 0.5 ? l : [];
42391
+ return l.some((i) => _l[i] !== void 0) && l.length >= 2 && l.length / n.length >= 0.5 ? l : [];
42386
42392
  }, B_ = (e) => {
42387
42393
  if (!e || e.trim() === "") return "";
42388
42394
  const t = e.trim();
@@ -42401,19 +42407,19 @@ const Ma = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "
42401
42407
  let I = O.split(/[\r\n]+/).map((N) => N.trim()).filter((N) => N !== "");
42402
42408
  I.length < c && (I = F_(O));
42403
42409
  const C = (N) => I.length === c * 2 ? I[N * 2] ?? "" : I[N] ?? "", _ = {};
42404
- _[gl("日期")] = E, u.forEach((N, k) => {
42405
- const B = C(k), D = B_(B), F = gl(N);
42410
+ _[bl("日期")] = E, u.forEach((N, k) => {
42411
+ const B = C(k), D = B_(B), F = bl(N);
42406
42412
  _[F] = D;
42407
42413
  }), d.push(_);
42408
42414
  });
42409
42415
  const h = s.filter((E) => {
42410
- const A = gl(E);
42416
+ const A = bl(E);
42411
42417
  return d.some((S) => {
42412
42418
  const O = S[A];
42413
42419
  return O !== void 0 && String(O).trim() !== "";
42414
42420
  });
42415
42421
  }), f = `| ${h.join(" | ")} |`, m = `| ${h.map(() => "---").join(" | ")} |`, g = d.map((E) => `| ${h.map((S) => {
42416
- const O = gl(S);
42422
+ const O = bl(S);
42417
42423
  return E[O] ?? "-";
42418
42424
  }).join(" | ")} |`);
42419
42425
  return {
@@ -42452,11 +42458,11 @@ const Ma = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "
42452
42458
  a.querySelectorAll("td").forEach((o, u) => {
42453
42459
  const c = r[u];
42454
42460
  if (c == null) return;
42455
- const d = gl(c), h = o.textContent?.trim() || "";
42461
+ const d = bl(c), h = o.textContent?.trim() || "";
42456
42462
  i[d] = h === "-" ? "" : h;
42457
42463
  }), Object.keys(i).length > 0 && t.push(i);
42458
42464
  }), t;
42459
- }, J_ = (e) => async (t) => {
42465
+ }, X_ = (e) => async (t) => {
42460
42466
  const n = H_(t.text);
42461
42467
  return e && e(n.jsonData), {
42462
42468
  modules: [
@@ -42467,7 +42473,7 @@ const Ma = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "
42467
42473
  }
42468
42474
  ]
42469
42475
  };
42470
- }, Z_ = (e, t, n) => {
42476
+ }, J_ = (e, t, n) => {
42471
42477
  const r = parseFloat(String(e.get("grossProfitMargin") || "0")) || 0, l = parseFloat(String(e.get("refundRate") || "0")) || 0;
42472
42478
  let a = [];
42473
42479
  if (t) {
@@ -42479,7 +42485,7 @@ const Ma = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "
42479
42485
  refundRate: l,
42480
42486
  tableData: a
42481
42487
  };
42482
- }, e8 = {
42488
+ }, Z_ = {
42483
42489
  algorithm: Kb.defaultAlgorithm,
42484
42490
  token: {
42485
42491
  // 主色
@@ -42554,20 +42560,20 @@ export {
42554
42560
  __ as DynamicInput,
42555
42561
  I_ as DynamicTextArea,
42556
42562
  d1 as EmptyAndSpin,
42557
- Il as HEADER_TO_FIELD,
42563
+ _l as HEADER_TO_FIELD,
42558
42564
  h1 as LinkButton,
42559
42565
  o1 as PageTable,
42560
- X_ as RichTextEditor,
42561
- X_ as StructuredEditor,
42566
+ Q_ as RichTextEditor,
42567
+ Q_ as StructuredEditor,
42562
42568
  sb as VideoCard,
42563
42569
  w_ as VirtualTable,
42564
42570
  R_ as Waterfall,
42565
42571
  c1 as XcIcon,
42566
- Z_ as buildPromotionSendPayload,
42567
- J_ as createMarkdownAnalyze,
42572
+ J_ as buildPromotionSendPayload,
42573
+ X_ as createMarkdownAnalyze,
42568
42574
  Ma as escapeHtml,
42569
42575
  z_ as extractTableDataFromHtml,
42570
- e8 as lightTheme,
42576
+ Z_ as lightTheme,
42571
42577
  H_ as parsePromotionTableMarkdown,
42572
42578
  U_ as renderMarkdownToHtml
42573
42579
  };