bi-components-library 1.3.2-next.24 → 1.3.2-next.25

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
@@ -559,26 +559,26 @@ const { Option: l0 } = Rl, a0 = ({
559
559
  current: 1,
560
560
  pageSize: a,
561
561
  total: 0
562
- }), [g, v] = ee({}), [_, k] = ee({}), [R] = Gl.useForm(), I = re(m);
563
- I.current = m;
562
+ }), [g, v] = ee({}), [I, k] = ee({}), [R] = Gl.useForm(), N = re(m);
563
+ N.current = m;
564
564
  const T = re(o);
565
565
  T.current = o;
566
- const A = re(!1), N = Ge(() => e.map((D) => {
566
+ const A = re(!1), w = Ge(() => e.map((D) => {
567
567
  const { sortable: E, render: B, ...$ } = D;
568
568
  return {
569
569
  ...$,
570
570
  sorter: E ? !0 : void 0,
571
571
  render: B || ((q) => q)
572
572
  };
573
- }), [e]), w = V(async (D = {}) => {
573
+ }), [e]), _ = V(async (D = {}) => {
574
574
  if (t) {
575
575
  h(!0);
576
576
  try {
577
577
  const E = {
578
- page: I.current.current,
579
- pageSize: I.current.pageSize,
580
- sortField: _.field,
581
- sortOrder: _.order,
578
+ page: N.current.current,
579
+ pageSize: N.current.pageSize,
580
+ sortField: I.field,
581
+ sortOrder: I.order,
582
582
  searchParams: { ...g, ...T.current },
583
583
  ...D
584
584
  }, B = await t(E);
@@ -593,13 +593,13 @@ const { Option: l0 } = Rl, a0 = ({
593
593
  h(!1);
594
594
  }
595
595
  }
596
- }, [t, _, g]), P = V((D) => {
596
+ }, [t, I, g]), P = V((D) => {
597
597
  v(D), b((E) => ({ ...E, current: 1 }));
598
598
  }, []), L = V(() => {
599
599
  R.resetFields(), v({}), b((D) => ({ ...D, current: 1 }));
600
600
  }, [R]), F = V(() => {
601
- w();
602
- }, [w]), U = V((D, E, B) => {
601
+ _();
602
+ }, [_]), U = V((D, E, B) => {
603
603
  const $ = {
604
604
  current: D.current || 1,
605
605
  pageSize: D.pageSize || a,
@@ -612,8 +612,8 @@ const { Option: l0 } = Rl, a0 = ({
612
612
  }, [a]);
613
613
  return ve(() => {
614
614
  const D = Object.keys(o).length > 0;
615
- (s && !A.current || D) && (w(), A.current = !0);
616
- }, [s, o, w]), /* @__PURE__ */ j("div", { children: [
615
+ (s && !A.current || D) && (_(), A.current = !0);
616
+ }, [s, o, _]), /* @__PURE__ */ j("div", { children: [
617
617
  r && n.length > 0 && /* @__PURE__ */ y(to, { size: "small", style: { marginBottom: 16 }, children: /* @__PURE__ */ j(
618
618
  Gl,
619
619
  {
@@ -649,7 +649,7 @@ const { Option: l0 } = Rl, a0 = ({
649
649
  no,
650
650
  {
651
651
  ...u,
652
- columns: N,
652
+ columns: w,
653
653
  dataSource: c,
654
654
  loading: f,
655
655
  pagination: {
@@ -2038,38 +2038,38 @@ function C0() {
2038
2038
  throw new TypeError("First argument must be a string");
2039
2039
  if (!g) return [];
2040
2040
  v = v || {};
2041
- var _ = 1, k = 1;
2041
+ var I = 1, k = 1;
2042
2042
  function R(D) {
2043
2043
  var E = D.match(t);
2044
- E && (_ += E.length);
2044
+ E && (I += E.length);
2045
2045
  var B = D.lastIndexOf(o);
2046
2046
  k = ~B ? D.length - B : k + D.length;
2047
2047
  }
2048
- function I() {
2049
- var D = { line: _, column: k };
2048
+ function N() {
2049
+ var D = { line: I, column: k };
2050
2050
  return function(E) {
2051
- return E.position = new T(D), w(), E;
2051
+ return E.position = new T(D), _(), E;
2052
2052
  };
2053
2053
  }
2054
2054
  function T(D) {
2055
- this.start = D, this.end = { line: _, column: k }, this.source = v.source;
2055
+ this.start = D, this.end = { line: I, column: k }, this.source = v.source;
2056
2056
  }
2057
2057
  T.prototype.content = g;
2058
2058
  function A(D) {
2059
2059
  var E = new Error(
2060
- v.source + ":" + _ + ":" + k + ": " + D
2060
+ v.source + ":" + I + ":" + k + ": " + D
2061
2061
  );
2062
- if (E.reason = D, E.filename = v.source, E.line = _, E.column = k, E.source = g, !v.silent) throw E;
2062
+ if (E.reason = D, E.filename = v.source, E.line = I, E.column = k, E.source = g, !v.silent) throw E;
2063
2063
  }
2064
- function N(D) {
2064
+ function w(D) {
2065
2065
  var E = D.exec(g);
2066
2066
  if (E) {
2067
2067
  var B = E[0];
2068
2068
  return R(B), g = g.slice(B.length), E;
2069
2069
  }
2070
2070
  }
2071
- function w() {
2072
- N(n);
2071
+ function _() {
2072
+ w(n);
2073
2073
  }
2074
2074
  function P(D) {
2075
2075
  var E;
@@ -2078,7 +2078,7 @@ function C0() {
2078
2078
  return D;
2079
2079
  }
2080
2080
  function L() {
2081
- var D = I();
2081
+ var D = N();
2082
2082
  if (!(u != g.charAt(0) || c != g.charAt(1))) {
2083
2083
  for (var E = 2; d != g.charAt(E) && (c != g.charAt(E) || u != g.charAt(E + 1)); )
2084
2084
  ++E;
@@ -2092,15 +2092,15 @@ function C0() {
2092
2092
  }
2093
2093
  }
2094
2094
  function F() {
2095
- var D = I(), E = N(r);
2095
+ var D = N(), E = w(r);
2096
2096
  if (E) {
2097
- if (L(), !N(l)) return A("property missing ':'");
2098
- var B = N(a), $ = D({
2097
+ if (L(), !w(l)) return A("property missing ':'");
2098
+ var B = w(a), $ = D({
2099
2099
  type: h,
2100
2100
  property: b(E[0].replace(e, d)),
2101
2101
  value: B ? b(B[0].replace(e, d)) : d
2102
2102
  });
2103
- return N(i), $;
2103
+ return w(i), $;
2104
2104
  }
2105
2105
  }
2106
2106
  function U() {
@@ -2110,7 +2110,7 @@ function C0() {
2110
2110
  E !== !1 && (D.push(E), P(D));
2111
2111
  return D;
2112
2112
  }
2113
- return w(), U();
2113
+ return _(), U();
2114
2114
  }
2115
2115
  function b(g) {
2116
2116
  return g ? g.replace(s, d) : d;
@@ -2796,12 +2796,12 @@ function og(e) {
2796
2796
  }
2797
2797
  function o(k) {
2798
2798
  if (r++, t.containerState._closeFlow) {
2799
- t.containerState._closeFlow = void 0, l && _();
2799
+ t.containerState._closeFlow = void 0, l && I();
2800
2800
  const R = t.events.length;
2801
- let I = R, T;
2802
- for (; I--; )
2803
- if (t.events[I][0] === "exit" && t.events[I][1].type === "chunkFlow") {
2804
- T = t.events[I][1].end;
2801
+ let N = R, T;
2802
+ for (; N--; )
2803
+ if (t.events[N][0] === "exit" && t.events[N][1].type === "chunkFlow") {
2804
+ T = t.events[N][1].end;
2805
2805
  break;
2806
2806
  }
2807
2807
  v(r);
@@ -2810,7 +2810,7 @@ function og(e) {
2810
2810
  t.events[A][1].end = {
2811
2811
  ...T
2812
2812
  }, A++;
2813
- return tn(t.events, I + 1, 0, t.events.slice(R)), t.events.length = A, u(k);
2813
+ return tn(t.events, N + 1, 0, t.events.slice(R)), t.events.length = A, u(k);
2814
2814
  }
2815
2815
  return s(k);
2816
2816
  }
@@ -2825,7 +2825,7 @@ function og(e) {
2825
2825
  return t.containerState = {}, e.check(Du, c, d)(k);
2826
2826
  }
2827
2827
  function c(k) {
2828
- return l && _(), v(r), f(k);
2828
+ return l && I(), v(r), f(k);
2829
2829
  }
2830
2830
  function d(k) {
2831
2831
  return t.parser.lazy[t.now().line] = r !== n.length, i = t.now().offset, m(k);
@@ -2838,7 +2838,7 @@ function og(e) {
2838
2838
  }
2839
2839
  function m(k) {
2840
2840
  if (k === null) {
2841
- l && _(), v(0), e.consume(k);
2841
+ l && I(), v(0), e.consume(k);
2842
2842
  return;
2843
2843
  }
2844
2844
  return l = l || t.parser.flow(t.now()), e.enter("chunkFlow", {
@@ -2855,8 +2855,8 @@ function og(e) {
2855
2855
  return ae(k) ? (e.consume(k), g(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, s) : (e.consume(k), b);
2856
2856
  }
2857
2857
  function g(k, R) {
2858
- const I = t.sliceStream(k);
2859
- if (R && I.push(null), k.previous = a, a && (a.next = k), a = k, l.defineSkip(k.start), l.write(I), t.parser.lazy[k.start.line]) {
2858
+ const N = t.sliceStream(k);
2859
+ if (R && N.push(null), k.previous = a, a && (a.next = k), a = k, l.defineSkip(k.start), l.write(N), t.parser.lazy[k.start.line]) {
2860
2860
  let T = l.events.length;
2861
2861
  for (; T--; )
2862
2862
  if (
@@ -2867,31 +2867,31 @@ function og(e) {
2867
2867
  )
2868
2868
  return;
2869
2869
  const A = t.events.length;
2870
- let N = A, w, P;
2871
- for (; N--; )
2872
- if (t.events[N][0] === "exit" && t.events[N][1].type === "chunkFlow") {
2873
- if (w) {
2874
- P = t.events[N][1].end;
2870
+ let w = A, _, P;
2871
+ for (; w--; )
2872
+ if (t.events[w][0] === "exit" && t.events[w][1].type === "chunkFlow") {
2873
+ if (_) {
2874
+ P = t.events[w][1].end;
2875
2875
  break;
2876
2876
  }
2877
- w = !0;
2877
+ _ = !0;
2878
2878
  }
2879
2879
  for (v(r), T = A; T < t.events.length; )
2880
2880
  t.events[T][1].end = {
2881
2881
  ...P
2882
2882
  }, T++;
2883
- tn(t.events, N + 1, 0, t.events.slice(A)), t.events.length = T;
2883
+ tn(t.events, w + 1, 0, t.events.slice(A)), t.events.length = T;
2884
2884
  }
2885
2885
  }
2886
2886
  function v(k) {
2887
2887
  let R = n.length;
2888
2888
  for (; R-- > k; ) {
2889
- const I = n[R];
2890
- t.containerState = I[1], I[0].exit.call(t, e);
2889
+ const N = n[R];
2890
+ t.containerState = N[1], N[0].exit.call(t, e);
2891
2891
  }
2892
2892
  n.length = k;
2893
2893
  }
2894
- function _() {
2894
+ function I() {
2895
2895
  l.write([null]), a = void 0, l = void 0, t.containerState._closeFlow = void 0;
2896
2896
  }
2897
2897
  }
@@ -3128,7 +3128,7 @@ const Bu = {
3128
3128
  function Eg(e, t, n) {
3129
3129
  const r = this, l = {
3130
3130
  partial: !0,
3131
- tokenize: I
3131
+ tokenize: N
3132
3132
  };
3133
3133
  let a = 0, i = 0, s;
3134
3134
  return o;
@@ -3165,19 +3165,19 @@ function Eg(e, t, n) {
3165
3165
  return e.enter("lineEnding"), e.consume(T), e.exit("lineEnding"), v;
3166
3166
  }
3167
3167
  function v(T) {
3168
- return a > 0 && _e(T) ? Ie(e, _, "linePrefix", a + 1)(T) : _(T);
3168
+ return a > 0 && _e(T) ? Ie(e, I, "linePrefix", a + 1)(T) : I(T);
3169
3169
  }
3170
- function _(T) {
3170
+ function I(T) {
3171
3171
  return T === null || ae(T) ? e.check(Bu, b, R)(T) : (e.enter("codeFlowValue"), k(T));
3172
3172
  }
3173
3173
  function k(T) {
3174
- return T === null || ae(T) ? (e.exit("codeFlowValue"), _(T)) : (e.consume(T), k);
3174
+ return T === null || ae(T) ? (e.exit("codeFlowValue"), I(T)) : (e.consume(T), k);
3175
3175
  }
3176
3176
  function R(T) {
3177
3177
  return e.exit("codeFenced"), t(T);
3178
3178
  }
3179
- function I(T, A, N) {
3180
- let w = 0;
3179
+ function N(T, A, w) {
3180
+ let _ = 0;
3181
3181
  return P;
3182
3182
  function P(E) {
3183
3183
  return T.enter("lineEnding"), T.consume(E), T.exit("lineEnding"), L;
@@ -3186,13 +3186,13 @@ function Eg(e, t, n) {
3186
3186
  return T.enter("codeFencedFence"), _e(E) ? Ie(T, F, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(E) : F(E);
3187
3187
  }
3188
3188
  function F(E) {
3189
- return E === s ? (T.enter("codeFencedFenceSequence"), U(E)) : N(E);
3189
+ return E === s ? (T.enter("codeFencedFenceSequence"), U(E)) : w(E);
3190
3190
  }
3191
3191
  function U(E) {
3192
- return E === s ? (w++, T.consume(E), U) : w >= i ? (T.exit("codeFencedFenceSequence"), _e(E) ? Ie(T, D, "whitespace")(E) : D(E)) : N(E);
3192
+ return E === s ? (_++, T.consume(E), U) : _ >= i ? (T.exit("codeFencedFenceSequence"), _e(E) ? Ie(T, D, "whitespace")(E) : D(E)) : w(E);
3193
3193
  }
3194
3194
  function D(E) {
3195
- return E === null || ae(E) ? (T.exit("codeFencedFence"), A(E)) : N(E);
3195
+ return E === null || ae(E) ? (T.exit("codeFencedFence"), A(E)) : w(E);
3196
3196
  }
3197
3197
  }
3198
3198
  }
@@ -3499,8 +3499,8 @@ function Ig(e, t) {
3499
3499
  // Find a void token that includes a break.
3500
3500
  s[f][0] === "exit" && s[f - 1][0] === "enter" && s[f][1].type === s[f - 1][1].type && s[f][1].start.line !== s[f][1].end.line && (b = f + 1, g.push(b), h._tokenizer = void 0, h.previous = void 0, h = h.next);
3501
3501
  for (i.events = [], h ? (h._tokenizer = void 0, h.previous = void 0) : g.pop(), f = g.length; f--; ) {
3502
- const v = s.slice(g[f], g[f + 1]), _ = a.pop();
3503
- o.push([_, _ + v.length - 1]), e.splice(_, 2, v);
3502
+ const v = s.slice(g[f], g[f + 1]), I = a.pop();
3503
+ o.push([I, I + v.length - 1]), e.splice(I, 2, v);
3504
3504
  }
3505
3505
  for (o.reverse(), f = -1; ++f < o.length; )
3506
3506
  u[m + o[f][0]] = m + o[f][1], m += o[f][1] - o[f][0] - 1;
@@ -3862,35 +3862,35 @@ function Qg(e, t, n) {
3862
3862
  function g(M) {
3863
3863
  if (M === null || M === 47 || M === 62 || qe(M)) {
3864
3864
  const he = M === 47, Ne = i.toLowerCase();
3865
- return !he && !a && Hu.includes(Ne) ? (l = 1, r.interrupt ? t(M) : F(M)) : Wg.includes(i.toLowerCase()) ? (l = 6, he ? (e.consume(M), v) : r.interrupt ? t(M) : F(M)) : (l = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(M) : a ? _(M) : k(M));
3865
+ return !he && !a && Hu.includes(Ne) ? (l = 1, r.interrupt ? t(M) : F(M)) : Wg.includes(i.toLowerCase()) ? (l = 6, he ? (e.consume(M), v) : r.interrupt ? t(M) : F(M)) : (l = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(M) : a ? I(M) : k(M));
3866
3866
  }
3867
3867
  return M === 45 || Ot(M) ? (e.consume(M), i += String.fromCharCode(M), g) : n(M);
3868
3868
  }
3869
3869
  function v(M) {
3870
3870
  return M === 62 ? (e.consume(M), r.interrupt ? t : F) : n(M);
3871
3871
  }
3872
- function _(M) {
3873
- return _e(M) ? (e.consume(M), _) : P(M);
3872
+ function I(M) {
3873
+ return _e(M) ? (e.consume(M), I) : P(M);
3874
3874
  }
3875
3875
  function k(M) {
3876
3876
  return M === 47 ? (e.consume(M), P) : M === 58 || M === 95 || Zt(M) ? (e.consume(M), R) : _e(M) ? (e.consume(M), k) : P(M);
3877
3877
  }
3878
3878
  function R(M) {
3879
- return M === 45 || M === 46 || M === 58 || M === 95 || Ot(M) ? (e.consume(M), R) : I(M);
3879
+ return M === 45 || M === 46 || M === 58 || M === 95 || Ot(M) ? (e.consume(M), R) : N(M);
3880
3880
  }
3881
- function I(M) {
3882
- return M === 61 ? (e.consume(M), T) : _e(M) ? (e.consume(M), I) : k(M);
3881
+ function N(M) {
3882
+ return M === 61 ? (e.consume(M), T) : _e(M) ? (e.consume(M), N) : k(M);
3883
3883
  }
3884
3884
  function T(M) {
3885
- return M === null || M === 60 || M === 61 || M === 62 || M === 96 ? n(M) : M === 34 || M === 39 ? (e.consume(M), o = M, A) : _e(M) ? (e.consume(M), T) : N(M);
3885
+ return M === null || M === 60 || M === 61 || M === 62 || M === 96 ? n(M) : M === 34 || M === 39 ? (e.consume(M), o = M, A) : _e(M) ? (e.consume(M), T) : w(M);
3886
3886
  }
3887
3887
  function A(M) {
3888
- return M === o ? (e.consume(M), o = null, w) : M === null || ae(M) ? n(M) : (e.consume(M), A);
3889
- }
3890
- function N(M) {
3891
- return M === null || M === 34 || M === 39 || M === 47 || M === 60 || M === 61 || M === 62 || M === 96 || qe(M) ? I(M) : (e.consume(M), N);
3888
+ return M === o ? (e.consume(M), o = null, _) : M === null || ae(M) ? n(M) : (e.consume(M), A);
3892
3889
  }
3893
3890
  function w(M) {
3891
+ return M === null || M === 34 || M === 39 || M === 47 || M === 60 || M === 61 || M === 62 || M === 96 || qe(M) ? N(M) : (e.consume(M), w);
3892
+ }
3893
+ function _(M) {
3894
3894
  return M === 47 || M === 62 || _e(M) ? k(M) : n(M);
3895
3895
  }
3896
3896
  function P(M) {
@@ -3965,10 +3965,10 @@ function ev(e, t, n) {
3965
3965
  return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(x), o;
3966
3966
  }
3967
3967
  function o(x) {
3968
- return x === 33 ? (e.consume(x), u) : x === 47 ? (e.consume(x), I) : x === 63 ? (e.consume(x), k) : Zt(x) ? (e.consume(x), N) : n(x);
3968
+ return x === 33 ? (e.consume(x), u) : x === 47 ? (e.consume(x), N) : x === 63 ? (e.consume(x), k) : Zt(x) ? (e.consume(x), w) : n(x);
3969
3969
  }
3970
3970
  function u(x) {
3971
- return x === 45 ? (e.consume(x), c) : x === 91 ? (e.consume(x), a = 0, m) : Zt(x) ? (e.consume(x), _) : n(x);
3971
+ return x === 45 ? (e.consume(x), c) : x === 91 ? (e.consume(x), a = 0, m) : Zt(x) ? (e.consume(x), I) : n(x);
3972
3972
  }
3973
3973
  function c(x) {
3974
3974
  return x === 45 ? (e.consume(x), h) : n(x);
@@ -3995,8 +3995,8 @@ function ev(e, t, n) {
3995
3995
  function v(x) {
3996
3996
  return x === 62 ? B(x) : x === 93 ? (e.consume(x), v) : b(x);
3997
3997
  }
3998
- function _(x) {
3999
- return x === null || x === 62 ? B(x) : ae(x) ? (i = _, $(x)) : (e.consume(x), _);
3998
+ function I(x) {
3999
+ return x === null || x === 62 ? B(x) : ae(x) ? (i = I, $(x)) : (e.consume(x), I);
4000
4000
  }
4001
4001
  function k(x) {
4002
4002
  return x === null ? n(x) : x === 63 ? (e.consume(x), R) : ae(x) ? (i = k, $(x)) : (e.consume(x), k);
@@ -4004,7 +4004,7 @@ function ev(e, t, n) {
4004
4004
  function R(x) {
4005
4005
  return x === 62 ? B(x) : k(x);
4006
4006
  }
4007
- function I(x) {
4007
+ function N(x) {
4008
4008
  return Zt(x) ? (e.consume(x), T) : n(x);
4009
4009
  }
4010
4010
  function T(x) {
@@ -4013,17 +4013,17 @@ function ev(e, t, n) {
4013
4013
  function A(x) {
4014
4014
  return ae(x) ? (i = A, $(x)) : _e(x) ? (e.consume(x), A) : B(x);
4015
4015
  }
4016
- function N(x) {
4017
- return x === 45 || Ot(x) ? (e.consume(x), N) : x === 47 || x === 62 || qe(x) ? w(x) : n(x);
4018
- }
4019
4016
  function w(x) {
4020
- return x === 47 ? (e.consume(x), B) : x === 58 || x === 95 || Zt(x) ? (e.consume(x), P) : ae(x) ? (i = w, $(x)) : _e(x) ? (e.consume(x), w) : B(x);
4017
+ return x === 45 || Ot(x) ? (e.consume(x), w) : x === 47 || x === 62 || qe(x) ? _(x) : n(x);
4018
+ }
4019
+ function _(x) {
4020
+ return x === 47 ? (e.consume(x), B) : x === 58 || x === 95 || Zt(x) ? (e.consume(x), P) : ae(x) ? (i = _, $(x)) : _e(x) ? (e.consume(x), _) : B(x);
4021
4021
  }
4022
4022
  function P(x) {
4023
4023
  return x === 45 || x === 46 || x === 58 || x === 95 || Ot(x) ? (e.consume(x), P) : L(x);
4024
4024
  }
4025
4025
  function L(x) {
4026
- return x === 61 ? (e.consume(x), F) : ae(x) ? (i = L, $(x)) : _e(x) ? (e.consume(x), L) : w(x);
4026
+ return x === 61 ? (e.consume(x), F) : ae(x) ? (i = L, $(x)) : _e(x) ? (e.consume(x), L) : _(x);
4027
4027
  }
4028
4028
  function F(x) {
4029
4029
  return x === null || x === 60 || x === 61 || x === 62 || x === 96 ? n(x) : x === 34 || x === 39 ? (e.consume(x), l = x, U) : ae(x) ? (i = F, $(x)) : _e(x) ? (e.consume(x), F) : (e.consume(x), D);
@@ -4032,10 +4032,10 @@ function ev(e, t, n) {
4032
4032
  return x === l ? (e.consume(x), l = void 0, E) : x === null ? n(x) : ae(x) ? (i = U, $(x)) : (e.consume(x), U);
4033
4033
  }
4034
4034
  function D(x) {
4035
- return x === null || x === 34 || x === 39 || x === 60 || x === 61 || x === 96 ? n(x) : x === 47 || x === 62 || qe(x) ? w(x) : (e.consume(x), D);
4035
+ return x === null || x === 34 || x === 39 || x === 60 || x === 61 || x === 96 ? n(x) : x === 47 || x === 62 || qe(x) ? _(x) : (e.consume(x), D);
4036
4036
  }
4037
4037
  function E(x) {
4038
- return x === 47 || x === 62 || qe(x) ? w(x) : n(x);
4038
+ return x === 47 || x === 62 || qe(x) ? _(x) : n(x);
4039
4039
  }
4040
4040
  function B(x) {
4041
4041
  return x === 62 ? (e.consume(x), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(x);
@@ -4581,9 +4581,9 @@ function zv(e, t, n) {
4581
4581
  const l = {}, a = [];
4582
4582
  let i = [], s = [];
4583
4583
  const o = {
4584
- attempt: A(I),
4584
+ attempt: A(N),
4585
4585
  check: A(T),
4586
- consume: _,
4586
+ consume: I,
4587
4587
  enter: k,
4588
4588
  exit: R,
4589
4589
  interrupt: A(T, {
@@ -4604,7 +4604,7 @@ function zv(e, t, n) {
4604
4604
  let c = t.tokenize.call(u, o);
4605
4605
  return t.resolveAll && a.push(t), u;
4606
4606
  function d(L) {
4607
- return i = Ft(i, L), g(), i[i.length - 1] !== null ? [] : (N(t, 0), u.events = ho(a, u.events, u), u.events);
4607
+ return i = Ft(i, L), g(), i[i.length - 1] !== null ? [] : (w(t, 0), u.events = ho(a, u.events, u), u.events);
4608
4608
  }
4609
4609
  function f(L, F) {
4610
4610
  return $v(h(L), F);
@@ -4645,7 +4645,7 @@ function zv(e, t, n) {
4645
4645
  function v(L) {
4646
4646
  c = c(L);
4647
4647
  }
4648
- function _(L) {
4648
+ function I(L) {
4649
4649
  ae(L) ? (r.line++, r.column = 1, r.offset += L === -3 ? 2 : 1, P()) : L !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
4650
4650
  // strings.
4651
4651
  /** @type {string} */
@@ -4659,8 +4659,8 @@ function zv(e, t, n) {
4659
4659
  const F = s.pop();
4660
4660
  return F.end = m(), u.events.push(["exit", F, u]), F;
4661
4661
  }
4662
- function I(L, F) {
4663
- N(L, F.from);
4662
+ function N(L, F) {
4663
+ w(L, F.from);
4664
4664
  }
4665
4665
  function T(L, F) {
4666
4666
  F.restore();
@@ -4697,7 +4697,7 @@ function zv(e, t, n) {
4697
4697
  function M(Ce) {
4698
4698
  return ue;
4699
4699
  function ue(we) {
4700
- return x = w(), X = Ce, Ce.partial || (u.currentConstruct = Ce), Ce.name && u.parser.constructs.disable.null.includes(Ce.name) ? Ne() : Ce.tokenize.call(
4700
+ return x = _(), X = Ce, Ce.partial || (u.currentConstruct = Ce), Ce.name && u.parser.constructs.disable.null.includes(Ce.name) ? Ne() : Ce.tokenize.call(
4701
4701
  // If we do have fields, create an object w/ `context` as its
4702
4702
  // prototype.
4703
4703
  // This allows a “live binding”, which is needed for `interrupt`.
@@ -4716,10 +4716,10 @@ function zv(e, t, n) {
4716
4716
  }
4717
4717
  }
4718
4718
  }
4719
- function N(L, F) {
4719
+ function w(L, F) {
4720
4720
  L.resolveAll && !a.includes(L) && a.push(L), L.resolve && tn(u.events, F, u.events.length - F, L.resolve(u.events.slice(F), u)), L.resolveTo && (u.events = L.resolveTo(u.events, u));
4721
4721
  }
4722
- function w() {
4722
+ function _() {
4723
4723
  const L = m(), F = u.previous, U = u.currentConstruct, D = u.events.length, E = Array.from(s);
4724
4724
  return {
4725
4725
  from: D,
@@ -4873,20 +4873,20 @@ function Xv(e) {
4873
4873
  canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
4874
4874
  enter: {
4875
4875
  autolink: a(qt),
4876
- autolinkProtocol: w,
4877
- autolinkEmail: w,
4876
+ autolinkProtocol: _,
4877
+ autolinkEmail: _,
4878
4878
  atxHeading: a(Oe),
4879
4879
  blockQuote: a(ge),
4880
- characterEscape: w,
4881
- characterReference: w,
4880
+ characterEscape: _,
4881
+ characterReference: _,
4882
4882
  codeFenced: a(Ue),
4883
4883
  codeFencedFenceInfo: i,
4884
4884
  codeFencedFenceMeta: i,
4885
4885
  codeIndented: a(Ue, i),
4886
4886
  codeText: a(ze, i),
4887
- codeTextData: w,
4888
- data: w,
4889
- codeFlowValue: w,
4887
+ codeTextData: _,
4888
+ data: _,
4889
+ codeFlowValue: _,
4890
4890
  definition: a(Dt),
4891
4891
  definitionDestinationString: i,
4892
4892
  definitionLabelString: i,
@@ -4895,9 +4895,9 @@ function Xv(e) {
4895
4895
  hardBreakEscape: a(Nt),
4896
4896
  hardBreakTrailing: a(Nt),
4897
4897
  htmlFlow: a(Lt, i),
4898
- htmlFlowData: w,
4898
+ htmlFlowData: _,
4899
4899
  htmlText: a(Lt, i),
4900
- htmlTextData: w,
4900
+ htmlTextData: _,
4901
4901
  image: a($t),
4902
4902
  label: i,
4903
4903
  link: a(qt),
@@ -4916,7 +4916,7 @@ function Xv(e) {
4916
4916
  },
4917
4917
  exit: {
4918
4918
  atxHeading: o(),
4919
- atxHeadingSequence: I,
4919
+ atxHeadingSequence: N,
4920
4920
  autolink: o(),
4921
4921
  autolinkEmail: De,
4922
4922
  autolinkProtocol: we,
@@ -4937,7 +4937,7 @@ function Xv(e) {
4937
4937
  data: P,
4938
4938
  definition: o(),
4939
4939
  definitionDestinationString: R,
4940
- definitionLabelString: _,
4940
+ definitionLabelString: I,
4941
4941
  definitionTitleString: k,
4942
4942
  emphasis: o(),
4943
4943
  hardBreakEscape: o(F),
@@ -4959,7 +4959,7 @@ function Xv(e) {
4959
4959
  resourceDestinationString: x,
4960
4960
  resourceTitleString: ne,
4961
4961
  resource: ie,
4962
- setextHeading: o(N),
4962
+ setextHeading: o(w),
4963
4963
  setextHeadingLineSequence: A,
4964
4964
  setextHeadingText: T,
4965
4965
  strong: o(),
@@ -5134,7 +5134,7 @@ function Xv(e) {
5134
5134
  const W = this.resume(), Z = this.stack[this.stack.length - 1];
5135
5135
  Z.value = W.replace(/(\r?\n|\r)$/g, "");
5136
5136
  }
5137
- function _(W) {
5137
+ function I(W) {
5138
5138
  const Z = this.resume(), pe = this.stack[this.stack.length - 1];
5139
5139
  pe.label = Z, pe.identifier = Nr(this.sliceSerialize(W)).toLowerCase();
5140
5140
  }
@@ -5146,7 +5146,7 @@ function Xv(e) {
5146
5146
  const W = this.resume(), Z = this.stack[this.stack.length - 1];
5147
5147
  Z.url = W;
5148
5148
  }
5149
- function I(W) {
5149
+ function N(W) {
5150
5150
  const Z = this.stack[this.stack.length - 1];
5151
5151
  if (!Z.depth) {
5152
5152
  const pe = this.sliceSerialize(W).length;
@@ -5160,10 +5160,10 @@ function Xv(e) {
5160
5160
  const Z = this.stack[this.stack.length - 1];
5161
5161
  Z.depth = this.sliceSerialize(W).codePointAt(0) === 61 ? 1 : 2;
5162
5162
  }
5163
- function N() {
5163
+ function w() {
5164
5164
  this.data.setextHeadingSlurpLineEnding = void 0;
5165
5165
  }
5166
- function w(W) {
5166
+ function _(W) {
5167
5167
  const pe = this.stack[this.stack.length - 1].children;
5168
5168
  let ke = pe[pe.length - 1];
5169
5169
  (!ke || ke.type !== "text") && (ke = qr(), ke.position = {
@@ -5183,7 +5183,7 @@ function Xv(e) {
5183
5183
  pe.position.end = bn(W.end), this.data.atHardBreak = void 0;
5184
5184
  return;
5185
5185
  }
5186
- !this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(Z.type) && (w.call(this, W), P.call(this, W));
5186
+ !this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(Z.type) && (_.call(this, W), P.call(this, W));
5187
5187
  }
5188
5188
  function F() {
5189
5189
  this.data.atHardBreak = !0;
@@ -5987,8 +5987,8 @@ function M1(e) {
5987
5987
  const m = [], b = e.footnoteCounts.get(d);
5988
5988
  for (; b !== void 0 && ++h <= b; ) {
5989
5989
  m.length > 0 && m.push({ type: "text", value: " " });
5990
- let _ = typeof n == "string" ? n : n(o, h);
5991
- typeof _ == "string" && (_ = { type: "text", value: _ }), m.push({
5990
+ let I = typeof n == "string" ? n : n(o, h);
5991
+ typeof I == "string" && (I = { type: "text", value: I }), m.push({
5992
5992
  type: "element",
5993
5993
  tagName: "a",
5994
5994
  properties: {
@@ -5997,13 +5997,13 @@ function M1(e) {
5997
5997
  ariaLabel: typeof r == "string" ? r : r(o, h),
5998
5998
  className: ["data-footnote-backref"]
5999
5999
  },
6000
- children: Array.isArray(_) ? _ : [_]
6000
+ children: Array.isArray(I) ? I : [I]
6001
6001
  });
6002
6002
  }
6003
6003
  const g = c[c.length - 1];
6004
6004
  if (g && g.type === "element" && g.tagName === "p") {
6005
- const _ = g.children[g.children.length - 1];
6006
- _ && _.type === "text" ? _.value += " " : g.children.push({ type: "text", value: " " }), g.children.push(...m);
6005
+ const I = g.children[g.children.length - 1];
6006
+ I && I.type === "text" ? I.value += " " : g.children.push({ type: "text", value: " " }), g.children.push(...m);
6007
6007
  } else
6008
6008
  c.push(...m);
6009
6009
  const v = {
@@ -6165,8 +6165,8 @@ function Zf(e, t, n, r) {
6165
6165
  );
6166
6166
  if (v.children && h[0] !== H1)
6167
6167
  for (b = (r ? v.children.length : -1) + i, g = c.concat(v); b > -1 && b < v.children.length; ) {
6168
- const _ = v.children[b];
6169
- if (m = s(_, b, g)(), m[0] === Gu)
6168
+ const I = v.children[b];
6169
+ if (m = s(I, b, g)(), m[0] === Gu)
6170
6170
  return m;
6171
6171
  b = typeof m[1] == "number" ? m[1] : b + i;
6172
6172
  }
@@ -6337,11 +6337,11 @@ function K1() {
6337
6337
  return u[c];
6338
6338
  };
6339
6339
  return Ai = function o() {
6340
- var u, c, d, f, h, m, b = arguments[0], g = 1, v = arguments.length, _ = !1;
6341
- for (typeof b == "boolean" && (_ = b, b = arguments[1] || {}, g = 2), (b == null || typeof b != "object" && typeof b != "function") && (b = {}); g < v; ++g)
6340
+ var u, c, d, f, h, m, b = arguments[0], g = 1, v = arguments.length, I = !1;
6341
+ for (typeof b == "boolean" && (I = b, b = arguments[1] || {}, g = 2), (b == null || typeof b != "object" && typeof b != "function") && (b = {}); g < v; ++g)
6342
6342
  if (u = arguments[g], u != null)
6343
6343
  for (c in u)
6344
- d = s(b, c), f = s(u, c), b !== f && (_ && f && (a(f) || (h = l(f))) ? (h ? (h = !1, m = d && l(d) ? d : []) : m = d && a(d) ? d : {}, i(b, { name: c, newValue: o(_, m, f) })) : typeof f < "u" && i(b, { name: c, newValue: f }));
6344
+ d = s(b, c), f = s(u, c), b !== f && (I && f && (a(f) || (h = l(f))) ? (h ? (h = !1, m = d && l(d) ? d : []) : m = d && a(d) ? d : {}, i(b, { name: c, newValue: o(I, m, f) })) : typeof f < "u" && i(b, { name: c, newValue: f }));
6345
6345
  return b;
6346
6346
  }, Ai;
6347
6347
  }
@@ -14487,35 +14487,35 @@ function Ao(e, t) {
14487
14487
  s += String.fromCharCode(h), d++;
14488
14488
  continue;
14489
14489
  }
14490
- const _ = a + 1;
14491
- let k = _, R = _, I;
14490
+ const I = a + 1;
14491
+ let k = I, R = I, N;
14492
14492
  if (v === 35) {
14493
14493
  R = ++k;
14494
14494
  const U = e.charCodeAt(R);
14495
- U === 88 || U === 120 ? (I = "hexadecimal", R = ++k) : I = "decimal";
14495
+ U === 88 || U === 120 ? (N = "hexadecimal", R = ++k) : N = "decimal";
14496
14496
  } else
14497
- I = "named";
14498
- let T = "", A = "", N = "";
14499
- const w = I === "named" ? Nc : I === "decimal" ? Uh : Yx;
14497
+ N = "named";
14498
+ let T = "", A = "", w = "";
14499
+ const _ = N === "named" ? Nc : N === "decimal" ? Uh : Yx;
14500
14500
  for (R--; ++R <= e.length; ) {
14501
14501
  const U = e.charCodeAt(R);
14502
- if (!w(U))
14502
+ if (!_(U))
14503
14503
  break;
14504
- N += String.fromCharCode(U), I === "named" && Wx.includes(N) && (T = N, A = vl(N));
14504
+ w += String.fromCharCode(U), N === "named" && Wx.includes(w) && (T = w, A = vl(w));
14505
14505
  }
14506
14506
  let P = e.charCodeAt(R) === 59;
14507
14507
  if (P) {
14508
14508
  R++;
14509
- const U = I === "named" ? vl(N) : !1;
14510
- U && (T = N, A = U);
14509
+ const U = N === "named" ? vl(w) : !1;
14510
+ U && (T = w, A = U);
14511
14511
  }
14512
- let L = 1 + R - _, F = "";
14513
- if (!(!P && n.nonTerminated === !1)) if (!N)
14514
- I !== "named" && b(4, L);
14515
- else if (I === "named") {
14512
+ let L = 1 + R - I, F = "";
14513
+ if (!(!P && n.nonTerminated === !1)) if (!w)
14514
+ N !== "named" && b(4, L);
14515
+ else if (N === "named") {
14516
14516
  if (P && !A)
14517
14517
  b(5, 1);
14518
- else if (T !== N && (R = k + T.length, L = 1 + R - k, P = !1), !P) {
14518
+ else if (T !== w && (R = k + T.length, L = 1 + R - k, P = !1), !P) {
14519
14519
  const U = T ? 1 : 3;
14520
14520
  if (n.attribute) {
14521
14521
  const D = e.charCodeAt(R);
@@ -14527,8 +14527,8 @@ function Ao(e, t) {
14527
14527
  } else {
14528
14528
  P || b(2, L);
14529
14529
  let U = Number.parseInt(
14530
- N,
14531
- I === "hexadecimal" ? 16 : 10
14530
+ w,
14531
+ N === "hexadecimal" ? 16 : 10
14532
14532
  );
14533
14533
  if (Gx(U))
14534
14534
  b(7, L), F = "�";
@@ -14542,16 +14542,16 @@ function Ao(e, t) {
14542
14542
  }
14543
14543
  }
14544
14544
  if (F) {
14545
- g(), f = m(), a = R - 1, d += R - _ + 1, l.push(F);
14545
+ g(), f = m(), a = R - 1, d += R - I + 1, l.push(F);
14546
14546
  const U = m();
14547
14547
  U.offset++, n.reference && n.reference.call(
14548
14548
  n.referenceContext || void 0,
14549
14549
  F,
14550
14550
  { start: f, end: U },
14551
- e.slice(_ - 1, R)
14551
+ e.slice(I - 1, R)
14552
14552
  ), f = U;
14553
14553
  } else
14554
- N = e.slice(_ - 1, R), s += N, d += N.length, a = R - 1;
14554
+ w = e.slice(I - 1, R), s += w, d += w.length, a = R - 1;
14555
14555
  } else
14556
14556
  h === 10 && (c++, i++, d = 0), Number.isNaN(h) ? g() : (s += String.fromCharCode(h), d++);
14557
14557
  return l.join("");
@@ -14562,9 +14562,9 @@ function Ao(e, t) {
14562
14562
  offset: a + ((o ? o.offset : 0) || 0)
14563
14563
  };
14564
14564
  }
14565
- function b(v, _) {
14565
+ function b(v, I) {
14566
14566
  let k;
14567
- n.warning && (k = m(), k.column += _, k.offset += _, n.warning.call(
14567
+ n.warning && (k = m(), k.column += I, k.offset += I, n.warning.call(
14568
14568
  n.warningContext || void 0,
14569
14569
  Kx[v],
14570
14570
  k,
@@ -14836,10 +14836,10 @@ function wo(e, t, n, r, l, a, i, s, o, u, c, d, f, h, m) {
14836
14836
  let b, g;
14837
14837
  return v;
14838
14838
  function v(E) {
14839
- return e.enter(r), e.enter(l), e.consume(E), e.exit(l), _;
14839
+ return e.enter(r), e.enter(l), e.consume(E), e.exit(l), I;
14840
14840
  }
14841
- function _(E) {
14842
- return E === 35 ? (b = i, k(E)) : E === 46 ? (b = s, k(E)) : m && _e(E) ? Ie(e, _, "whitespace")(E) : !m && qe(E) ? cn(e, _)(E) : E === null || ae(E) || El(E) || yl(E) && E !== 45 && E !== 95 ? D(E) : (e.enter(a), e.enter(o), e.consume(E), T);
14841
+ function I(E) {
14842
+ return E === 35 ? (b = i, k(E)) : E === 46 ? (b = s, k(E)) : m && _e(E) ? Ie(e, I, "whitespace")(E) : !m && qe(E) ? cn(e, I)(E) : E === null || ae(E) || El(E) || yl(E) && E !== 45 && E !== 95 ? D(E) : (e.enter(a), e.enter(o), e.consume(E), T);
14843
14843
  }
14844
14844
  function k(E) {
14845
14845
  const B = (
@@ -14855,9 +14855,9 @@ function wo(e, t, n, r, l, a, i, s, o, u, c, d, f, h, m) {
14855
14855
  /** @type {TokenType} */
14856
14856
  b + "Value"
14857
14857
  );
14858
- return e.enter(B), e.consume(E), I;
14858
+ return e.enter(B), e.consume(E), N;
14859
14859
  }
14860
- function I(E) {
14860
+ function N(E) {
14861
14861
  if (E === null || E === 34 || E === 39 || E === 60 || E === 61 || E === 62 || E === 96)
14862
14862
  return n(E);
14863
14863
  if (E === 35 || E === 46 || E === 125 || qe(E)) {
@@ -14865,21 +14865,21 @@ function wo(e, t, n, r, l, a, i, s, o, u, c, d, f, h, m) {
14865
14865
  /** @type {TokenType} */
14866
14866
  b + "Value"
14867
14867
  );
14868
- return e.exit(B), e.exit(b), e.exit(a), _(E);
14868
+ return e.exit(B), e.exit(b), e.exit(a), I(E);
14869
14869
  }
14870
- return e.consume(E), I;
14870
+ return e.consume(E), N;
14871
14871
  }
14872
14872
  function T(E) {
14873
14873
  return E === null || ae(E) || El(E) || yl(E) && E !== 45 && E !== 46 && E !== 58 && E !== 95 ? (e.exit(o), m && _e(E) ? Ie(e, A, "whitespace")(E) : !m && qe(E) ? cn(e, A)(E) : A(E)) : (e.consume(E), T);
14874
14874
  }
14875
14875
  function A(E) {
14876
- return E === 61 ? (e.enter(u), e.consume(E), e.exit(u), N) : (e.exit(a), _(E));
14877
- }
14878
- function N(E) {
14879
- return E === null || E === 60 || E === 61 || E === 62 || E === 96 || E === 125 || m && ae(E) ? n(E) : E === 34 || E === 39 ? (e.enter(c), e.enter(f), e.consume(E), e.exit(f), g = E, P) : m && _e(E) ? Ie(e, N, "whitespace")(E) : !m && qe(E) ? cn(e, N)(E) : (e.enter(d), e.enter(h), e.consume(E), g = void 0, w);
14876
+ return E === 61 ? (e.enter(u), e.consume(E), e.exit(u), w) : (e.exit(a), I(E));
14880
14877
  }
14881
14878
  function w(E) {
14882
- return E === null || E === 34 || E === 39 || E === 60 || E === 61 || E === 62 || E === 96 ? n(E) : E === 125 || qe(E) ? (e.exit(h), e.exit(d), e.exit(a), _(E)) : (e.consume(E), w);
14879
+ return E === null || E === 60 || E === 61 || E === 62 || E === 96 || E === 125 || m && ae(E) ? n(E) : E === 34 || E === 39 ? (e.enter(c), e.enter(f), e.consume(E), e.exit(f), g = E, P) : m && _e(E) ? Ie(e, w, "whitespace")(E) : !m && qe(E) ? cn(e, w)(E) : (e.enter(d), e.enter(h), e.consume(E), g = void 0, _);
14880
+ }
14881
+ function _(E) {
14882
+ return E === null || E === 34 || E === 39 || E === 60 || E === 61 || E === 62 || E === 96 ? n(E) : E === 125 || qe(E) ? (e.exit(h), e.exit(d), e.exit(a), I(E)) : (e.consume(E), _);
14883
14883
  }
14884
14884
  function P(E) {
14885
14885
  return E === g ? (e.enter(f), e.consume(E), e.exit(f), e.exit(c), e.exit(a), U) : (e.enter(d), L(E));
@@ -14891,7 +14891,7 @@ function wo(e, t, n, r, l, a, i, s, o, u, c, d, f, h, m) {
14891
14891
  return E === g || E === null || ae(E) ? (e.exit(h), L(E)) : (e.consume(E), F);
14892
14892
  }
14893
14893
  function U(E) {
14894
- return E === 125 || qe(E) ? _(E) : D(E);
14894
+ return E === 125 || qe(E) ? I(E) : D(E);
14895
14895
  }
14896
14896
  function D(E) {
14897
14897
  return E === 125 ? (e.enter(l), e.consume(E), e.exit(l), e.exit(r), t) : n(E);
@@ -14953,79 +14953,79 @@ function TS(e, t, n) {
14953
14953
  const r = this, l = r.events[r.events.length - 1], a = l && l[1].type === "linePrefix" ? l[2].sliceSerialize(l[1], !0).length : 0;
14954
14954
  let i = 0, s;
14955
14955
  return o;
14956
- function o(w) {
14957
- return e.enter("directiveContainer"), e.enter("directiveContainerFence"), e.enter("directiveContainerSequence"), u(w);
14956
+ function o(_) {
14957
+ return e.enter("directiveContainer"), e.enter("directiveContainerFence"), e.enter("directiveContainerSequence"), u(_);
14958
14958
  }
14959
- function u(w) {
14960
- return w === 58 ? (e.consume(w), i++, u) : i < 3 ? n(w) : (e.exit("directiveContainerSequence"), Io.call(r, e, c, n, "directiveContainerName")(w));
14959
+ function u(_) {
14960
+ return _ === 58 ? (e.consume(_), i++, u) : i < 3 ? n(_) : (e.exit("directiveContainerSequence"), Io.call(r, e, c, n, "directiveContainerName")(_));
14961
14961
  }
14962
- function c(w) {
14963
- return w === 91 ? e.attempt(yS, d, d)(w) : d(w);
14962
+ function c(_) {
14963
+ return _ === 91 ? e.attempt(yS, d, d)(_) : d(_);
14964
14964
  }
14965
- function d(w) {
14966
- return w === 123 ? e.attempt(ES, f, f)(w) : f(w);
14965
+ function d(_) {
14966
+ return _ === 123 ? e.attempt(ES, f, f)(_) : f(_);
14967
14967
  }
14968
- function f(w) {
14969
- return Ie(e, h, "whitespace")(w);
14968
+ function f(_) {
14969
+ return Ie(e, h, "whitespace")(_);
14970
14970
  }
14971
- function h(w) {
14972
- return e.exit("directiveContainerFence"), w === null ? A(w) : ae(w) ? r.interrupt ? t(w) : e.attempt(ea, m, A)(w) : n(w);
14971
+ function h(_) {
14972
+ return e.exit("directiveContainerFence"), _ === null ? A(_) : ae(_) ? r.interrupt ? t(_) : e.attempt(ea, m, A)(_) : n(_);
14973
14973
  }
14974
- function m(w) {
14975
- return w === null ? A(w) : ae(w) ? e.check(ea, k, A)(w) : (e.enter("directiveContainerContent"), b(w));
14974
+ function m(_) {
14975
+ return _ === null ? A(_) : ae(_) ? e.check(ea, k, A)(_) : (e.enter("directiveContainerContent"), b(_));
14976
14976
  }
14977
- function b(w) {
14977
+ function b(_) {
14978
14978
  return e.attempt({
14979
- tokenize: N,
14979
+ tokenize: w,
14980
14980
  partial: !0
14981
- }, T, a ? Ie(e, g, "linePrefix", a + 1) : g)(w);
14981
+ }, T, a ? Ie(e, g, "linePrefix", a + 1) : g)(_);
14982
14982
  }
14983
- function g(w) {
14984
- return w === null ? T(w) : ae(w) ? e.check(ea, _, T)(w) : _(w);
14983
+ function g(_) {
14984
+ return _ === null ? T(_) : ae(_) ? e.check(ea, I, T)(_) : I(_);
14985
14985
  }
14986
- function v(w) {
14987
- if (w === null) {
14986
+ function v(_) {
14987
+ if (_ === null) {
14988
14988
  const P = e.exit("chunkDocument");
14989
- return r.parser.lazy[P.start.line] = !1, T(w);
14989
+ return r.parser.lazy[P.start.line] = !1, T(_);
14990
14990
  }
14991
- return ae(w) ? e.check(ea, R, I)(w) : (e.consume(w), v);
14991
+ return ae(_) ? e.check(ea, R, N)(_) : (e.consume(_), v);
14992
14992
  }
14993
- function _(w) {
14993
+ function I(_) {
14994
14994
  const P = e.enter("chunkDocument", {
14995
14995
  contentType: "document",
14996
14996
  previous: s
14997
14997
  });
14998
- return s && (s.next = P), s = P, v(w);
14998
+ return s && (s.next = P), s = P, v(_);
14999
14999
  }
15000
- function k(w) {
15001
- return e.enter("directiveContainerContent"), b(w);
15000
+ function k(_) {
15001
+ return e.enter("directiveContainerContent"), b(_);
15002
15002
  }
15003
- function R(w) {
15004
- e.consume(w);
15003
+ function R(_) {
15004
+ e.consume(_);
15005
15005
  const P = e.exit("chunkDocument");
15006
15006
  return r.parser.lazy[P.start.line] = !1, b;
15007
15007
  }
15008
- function I(w) {
15008
+ function N(_) {
15009
15009
  const P = e.exit("chunkDocument");
15010
- return r.parser.lazy[P.start.line] = !1, T(w);
15010
+ return r.parser.lazy[P.start.line] = !1, T(_);
15011
15011
  }
15012
- function T(w) {
15013
- return e.exit("directiveContainerContent"), A(w);
15012
+ function T(_) {
15013
+ return e.exit("directiveContainerContent"), A(_);
15014
15014
  }
15015
- function A(w) {
15016
- return e.exit("directiveContainer"), t(w);
15015
+ function A(_) {
15016
+ return e.exit("directiveContainer"), t(_);
15017
15017
  }
15018
- function N(w, P, L) {
15018
+ function w(_, P, L) {
15019
15019
  let F = 0;
15020
- return Ie(w, U, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
15020
+ return Ie(_, U, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
15021
15021
  function U(B) {
15022
- return w.enter("directiveContainerFence"), w.enter("directiveContainerSequence"), D(B);
15022
+ return _.enter("directiveContainerFence"), _.enter("directiveContainerSequence"), D(B);
15023
15023
  }
15024
15024
  function D(B) {
15025
- return B === 58 ? (w.consume(B), F++, D) : F < i ? L(B) : (w.exit("directiveContainerSequence"), Ie(w, E, "whitespace")(B));
15025
+ return B === 58 ? (_.consume(B), F++, D) : F < i ? L(B) : (_.exit("directiveContainerSequence"), Ie(_, E, "whitespace")(B));
15026
15026
  }
15027
15027
  function E(B) {
15028
- return B === null || ae(B) ? (w.exit("directiveContainerFence"), P(B)) : L(B);
15028
+ return B === null || ae(B) ? (_.exit("directiveContainerFence"), P(B)) : L(B);
15029
15029
  }
15030
15030
  }
15031
15031
  }
@@ -15213,10 +15213,10 @@ const US = {
15213
15213
  initialStepIndex: n = 0,
15214
15214
  onClose: r
15215
15215
  }) => {
15216
- const l = zl(), a = Array.isArray(e.platforms) ? e.platforms : [], i = a.length, [s, o] = ee(t), [u, c] = ee(n), d = Math.min(Math.max(s, 0), Math.max(i - 1, 0)), f = a[d], h = Array.isArray(f?.images) ? f.images : [], m = Array.isArray(f?.stepDescriptions) ? f.stepDescriptions : [], b = Math.min(h.length, m.length), g = Math.min(Math.max(u, 0), Math.max(b - 1, 0)), v = h[g], _ = m[g] || "", k = (e.description || "").trim(), R = (e.disclaimer || "").trim(), I = i > 1;
15216
+ const l = zl(), a = Array.isArray(e.platforms) ? e.platforms : [], i = a.length, [s, o] = ee(t), [u, c] = ee(n), d = Math.min(Math.max(s, 0), Math.max(i - 1, 0)), f = a[d], h = Array.isArray(f?.images) ? f.images : [], m = Array.isArray(f?.stepDescriptions) ? f.stepDescriptions : [], b = Math.min(h.length, m.length), g = Math.min(Math.max(u, 0), Math.max(b - 1, 0)), v = h[g], I = m[g] || "", k = (e.description || "").trim(), R = (e.disclaimer || "").trim(), N = i > 1;
15217
15217
  ve(() => {
15218
- const A = (N) => {
15219
- N.key === "Escape" ? r() : N.key === "ArrowLeft" && g > 0 ? c(g - 1) : N.key === "ArrowRight" && g < b - 1 && c(g + 1);
15218
+ const A = (w) => {
15219
+ w.key === "Escape" ? r() : w.key === "ArrowLeft" && g > 0 ? c(g - 1) : w.key === "ArrowRight" && g < b - 1 && c(g + 1);
15220
15220
  };
15221
15221
  return window.addEventListener("keydown", A, !0), () => window.removeEventListener("keydown", A, !0);
15222
15222
  }, [g, b, r]);
@@ -15248,22 +15248,22 @@ const US = {
15248
15248
  )
15249
15249
  ] }),
15250
15250
  /* @__PURE__ */ j("div", { className: "rte-steps-preview-body", children: [
15251
- I || k ? /* @__PURE__ */ j(
15251
+ N || k ? /* @__PURE__ */ j(
15252
15252
  "div",
15253
15253
  {
15254
- className: "rte-steps-preview-top-row" + (!I && k ? " is-description-only" : ""),
15254
+ className: "rte-steps-preview-top-row" + (!N && k ? " is-description-only" : ""),
15255
15255
  children: [
15256
- I ? /* @__PURE__ */ y("div", { className: "rte-steps-preview-platform-tabs", role: "tablist", children: a.map((A, N) => /* @__PURE__ */ y(
15256
+ N ? /* @__PURE__ */ y("div", { className: "rte-steps-preview-platform-tabs", role: "tablist", children: a.map((A, w) => /* @__PURE__ */ y(
15257
15257
  "button",
15258
15258
  {
15259
15259
  type: "button",
15260
15260
  role: "tab",
15261
- "aria-selected": N === d,
15262
- className: "rte-steps-preview-platform-tab" + (N === d ? " is-active" : ""),
15263
- onClick: () => T(N),
15261
+ "aria-selected": w === d,
15262
+ className: "rte-steps-preview-platform-tab" + (w === d ? " is-active" : ""),
15263
+ onClick: () => T(w),
15264
15264
  children: A.label
15265
15265
  },
15266
- `${A.label}-${N}`
15266
+ `${A.label}-${w}`
15267
15267
  )) }) : null,
15268
15268
  k ? /* @__PURE__ */ y("div", { className: "rte-steps-preview-description", children: Mc(k) }) : null
15269
15269
  ]
@@ -15306,15 +15306,15 @@ const US = {
15306
15306
  children: /* @__PURE__ */ y("i", { className: "iconfont icon-qiehuan-xiayizhang", "aria-hidden": "true" })
15307
15307
  }
15308
15308
  ) : null,
15309
- b > 1 ? /* @__PURE__ */ y("div", { className: "rte-steps-preview-dots", role: "presentation", children: Array.from({ length: b }).map((A, N) => /* @__PURE__ */ y(
15309
+ b > 1 ? /* @__PURE__ */ y("div", { className: "rte-steps-preview-dots", role: "presentation", children: Array.from({ length: b }).map((A, w) => /* @__PURE__ */ y(
15310
15310
  "span",
15311
15311
  {
15312
- className: "rte-steps-preview-dot" + (N === g ? " is-active" : "")
15312
+ className: "rte-steps-preview-dot" + (w === g ? " is-active" : "")
15313
15313
  },
15314
- N
15314
+ w
15315
15315
  )) }) : null
15316
15316
  ] }),
15317
- _ ? /* @__PURE__ */ y("div", { className: "rte-steps-preview-step-text", children: Mc(_) }) : null,
15317
+ I ? /* @__PURE__ */ y("div", { className: "rte-steps-preview-step-text", children: Mc(I) }) : null,
15318
15318
  R ? /* @__PURE__ */ j("div", { className: "rte-steps-preview-warning", children: [
15319
15319
  /* @__PURE__ */ y(
15320
15320
  "i",
@@ -15409,38 +15409,38 @@ const US = {
15409
15409
  const a = GS(e.tooltip), i = t ?? "", s = e.placeholder || "", o = i.length > 0, u = Ul(e.tooltip), c = !!u, d = !!a && !c && !o, f = !!a && !c, h = re(null), m = re(null), b = re(i), [g, v] = ee(
15410
15410
  () => i.includes(`
15411
15411
  `)
15412
- ), _ = e.allowNewline !== !1, k = V(
15413
- (w) => {
15412
+ ), I = e.allowNewline !== !1, k = V(
15413
+ (_) => {
15414
15414
  if (!e.key) return;
15415
- const P = w.target.value, L = _ ? P : P.replace(/\n+/g, " ");
15415
+ const P = _.target.value, L = I ? P : P.replace(/\n+/g, " ");
15416
15416
  n(e.key, L);
15417
15417
  },
15418
- [e.key, n, _]
15418
+ [e.key, n, I]
15419
15419
  ), R = V(
15420
- (w) => {
15421
- _ || w.nativeEvent.isComposing || w.keyCode === 229 || w.key === "Enter" && w.preventDefault();
15420
+ (_) => {
15421
+ I || _.nativeEvent.isComposing || _.keyCode === 229 || _.key === "Enter" && _.preventDefault();
15422
15422
  },
15423
- [_]
15424
- ), I = V(
15425
- (w) => {
15423
+ [I]
15424
+ ), N = V(
15425
+ (_) => {
15426
15426
  const P = m.current;
15427
15427
  if (!P) return;
15428
15428
  const L = window.getComputedStyle(P), F = Number.parseFloat(L.lineHeight) || 22, U = Number.parseFloat(L.paddingTop) || 0, D = Number.parseFloat(L.paddingBottom) || 0, E = F + U + D, B = P.offsetHeight > E + 1, $ = i.includes(`
15429
15429
  `) || B;
15430
- w ? $ && v((q) => q || !0) : v((q) => q === $ ? q : $);
15430
+ _ ? $ && v((q) => q || !0) : v((q) => q === $ ? q : $);
15431
15431
  },
15432
15432
  [i]
15433
15433
  );
15434
15434
  tt(() => {
15435
- b.current !== i ? (b.current = i, I(!1)) : I(!0);
15436
- }, [I, i, s]), ve(() => {
15437
- const w = h.current;
15438
- if (!w || typeof ResizeObserver > "u") return;
15439
- const P = w.closest(".rte-editor");
15435
+ b.current !== i ? (b.current = i, N(!1)) : N(!0);
15436
+ }, [N, i, s]), ve(() => {
15437
+ const _ = h.current;
15438
+ if (!_ || typeof ResizeObserver > "u") return;
15439
+ const P = _.closest(".rte-editor");
15440
15440
  if (!P) return;
15441
- const L = new ResizeObserver(() => I(!0));
15441
+ const L = new ResizeObserver(() => N(!0));
15442
15442
  return L.observe(P), () => L.disconnect();
15443
- }, [I]);
15443
+ }, [N]);
15444
15444
  const T = (o ? i : s) + " ", A = /* @__PURE__ */ j(
15445
15445
  "span",
15446
15446
  {
@@ -15480,7 +15480,7 @@ const US = {
15480
15480
  )
15481
15481
  ]
15482
15482
  }
15483
- ), N = c ? /* @__PURE__ */ j(ot, { children: [
15483
+ ), w = c ? /* @__PURE__ */ j(ot, { children: [
15484
15484
  A,
15485
15485
  /* @__PURE__ */ y(Zn, { data: u, hidden: o })
15486
15486
  ] }) : A;
@@ -15491,10 +15491,10 @@ const US = {
15491
15491
  "data-group": e.exclusionGroup,
15492
15492
  children: [
15493
15493
  /* @__PURE__ */ y("span", { className: "rte-text-required", children: /* @__PURE__ */ y("i", { className: "iconfont icon-bitian", style: { fontSize: 10 } }) }),
15494
- N
15494
+ w
15495
15495
  ]
15496
15496
  }
15497
- ) : N;
15497
+ ) : w;
15498
15498
  }
15499
15499
  );
15500
15500
  $h.displayName = "VariableNode";
@@ -15509,7 +15509,7 @@ const qh = ye.memo(
15509
15509
  const P = g.indexOf(".");
15510
15510
  g.length - P - 1 > 2 && (g = g.slice(0, P + 3));
15511
15511
  }
15512
- const _ = g.indexOf("."), k = _ !== -1 ? g.length - _ - 1 : 0, R = g.endsWith(".") || _ !== -1 && k === 1;
15512
+ const I = g.indexOf("."), k = I !== -1 ? g.length - I - 1 : 0, R = g.endsWith(".") || I !== -1 && k === 1;
15513
15513
  if (g === "") {
15514
15514
  n(e.key, "");
15515
15515
  return;
@@ -15518,18 +15518,18 @@ const qh = ye.memo(
15518
15518
  n(e.key, g);
15519
15519
  return;
15520
15520
  }
15521
- const I = parseFloat(g);
15522
- if (!Number.isFinite(I)) {
15521
+ const N = parseFloat(g);
15522
+ if (!Number.isFinite(N)) {
15523
15523
  n(e.key, "");
15524
15524
  return;
15525
15525
  }
15526
15526
  const T = typeof e.min == "number" ? e.min : 0, A = typeof e.max == "number" ? e.max : 1 / 0;
15527
- if (I === 0 && 0 < T) {
15527
+ if (N === 0 && 0 < T) {
15528
15528
  n(e.key, "");
15529
15529
  return;
15530
15530
  }
15531
- const N = Math.min(Math.max(I, T), A), w = k > 0 ? N.toFixed(k) : String(N);
15532
- n(e.key, w);
15531
+ const w = Math.min(Math.max(N, T), A), _ = k > 0 ? w.toFixed(k) : String(w);
15532
+ n(e.key, _);
15533
15533
  },
15534
15534
  [e.key, e.min, e.max, n]
15535
15535
  ), o = V(
@@ -15629,7 +15629,7 @@ const Wh = ye.memo(
15629
15629
  }, [i, e.options, e.placeholder]), [o, u] = ee(64), c = re(null), d = V(() => {
15630
15630
  const f = c.current;
15631
15631
  if (!f) return;
15632
- const h = f.querySelector(".ant-select-selection-item"), m = f.querySelector(".ant-select-selection-placeholder"), b = h || m, g = (b?.textContent || "").trim() || s, v = f.querySelector(".ant-select-selector"), _ = b || v || f, k = window.getComputedStyle(_), R = b ? k.fontSize : "16px", I = k.fontFamily || "sans-serif", T = k.fontWeight || "400", N = `${k.fontStyle || "normal"} ${T} ${R} ${I}`, P = document.createElement("canvas").getContext("2d"), L = P ? Math.ceil((P.font = N, P.measureText(g).width || 0)) : 0;
15632
+ const h = f.querySelector(".ant-select-selection-item"), m = f.querySelector(".ant-select-selection-placeholder"), b = h || m, g = (b?.textContent || "").trim() || s, v = f.querySelector(".ant-select-selector"), I = b || v || f, k = window.getComputedStyle(I), R = b ? k.fontSize : "16px", N = k.fontFamily || "sans-serif", T = k.fontWeight || "400", w = `${k.fontStyle || "normal"} ${T} ${R} ${N}`, P = document.createElement("canvas").getContext("2d"), L = P ? Math.ceil((P.font = w, P.measureText(g).width || 0)) : 0;
15633
15633
  let F = 0;
15634
15634
  if (v) {
15635
15635
  const q = window.getComputedStyle(v);
@@ -15699,31 +15699,31 @@ const Yh = ye.memo(
15699
15699
  const a = e.placeholder || "搜索或输入", i = Ge(
15700
15700
  () => e.options ?? [],
15701
15701
  [e.options]
15702
- ), s = t ?? e.defaultValue, o = Ge(() => s ? i.some((N) => String(N.value) === String(s)) ? null : String(s) : null, [s, i]), u = Ge(() => {
15703
- const N = [...i];
15704
- return o && !i.some((w) => String(w.value) === o) && N.unshift({ label: o, value: o }), N;
15702
+ ), s = t ?? e.defaultValue, o = Ge(() => s ? i.some((w) => String(w.value) === String(s)) ? null : String(s) : null, [s, i]), u = Ge(() => {
15703
+ const w = [...i];
15704
+ return o && !i.some((_) => String(_.value) === o) && w.unshift({ label: o, value: o }), w;
15705
15705
  }, [i, o]), [c, d] = ee(""), [f, h] = ee(80), m = re(null), b = Ge(() => {
15706
- const N = c.trim();
15707
- if (!N) return u;
15708
- const w = N.toLowerCase(), P = u.filter(
15709
- (F) => F.label.toLowerCase().includes(w) || String(F.value).toLowerCase().includes(w)
15706
+ const w = c.trim();
15707
+ if (!w) return u;
15708
+ const _ = w.toLowerCase(), P = u.filter(
15709
+ (F) => F.label.toLowerCase().includes(_) || String(F.value).toLowerCase().includes(_)
15710
15710
  );
15711
15711
  return u.some(
15712
- (F) => F.label === N || String(F.value) === N
15713
- ) ? P : [{ label: N, value: N, isCustom: !0 }, ...P];
15712
+ (F) => F.label === w || String(F.value) === w
15713
+ ) ? P : [{ label: w, value: w, isCustom: !0 }, ...P];
15714
15714
  }, [u, c]), g = V(
15715
- (N) => {
15716
- N != null && (d(""), n(e.key, N));
15715
+ (w) => {
15716
+ w != null && (d(""), n(e.key, w));
15717
15717
  },
15718
15718
  [e.key, n]
15719
- ), v = V((N) => d(N), []), _ = V(
15720
- (N) => {
15721
- if (N.key === "Enter" && c.trim()) {
15722
- N.preventDefault(), N.stopPropagation();
15723
- const w = c.trim(), P = i.find(
15724
- (L) => L.label === w || String(L.value) === w
15719
+ ), v = V((w) => d(w), []), I = V(
15720
+ (w) => {
15721
+ if (w.key === "Enter" && c.trim()) {
15722
+ w.preventDefault(), w.stopPropagation();
15723
+ const _ = c.trim(), P = i.find(
15724
+ (L) => L.label === _ || String(L.value) === _
15725
15725
  );
15726
- d(""), n(e.key, P ? String(P.value) : w);
15726
+ d(""), n(e.key, P ? String(P.value) : _);
15727
15727
  }
15728
15728
  },
15729
15729
  [c, i, e.key, n]
@@ -15731,22 +15731,22 @@ const Yh = ye.memo(
15731
15731
  d(""), n(e.key, "");
15732
15732
  }, [e.key, n]), R = V(() => {
15733
15733
  if (s != null && s !== "") {
15734
- const N = u.find(
15735
- (w) => String(w.value) === String(s)
15734
+ const w = u.find(
15735
+ (_) => String(_.value) === String(s)
15736
15736
  );
15737
- return N ? typeof N.label == "string" ? N.label : String(N.label ?? s) : String(s);
15737
+ return w ? typeof w.label == "string" ? w.label : String(w.label ?? s) : String(s);
15738
15738
  }
15739
15739
  return a;
15740
- }, [s, u, a]), I = V(() => {
15741
- const N = m.current;
15742
- if (!N) return;
15743
- const w = N.querySelector(".ant-select-selection-item"), P = N.querySelector(".ant-select-selection-placeholder"), L = w || P, F = (L?.textContent || "").trim() || R(), U = N.querySelector(".ant-select-selector"), D = L || U || N, E = window.getComputedStyle(D), B = L ? E.fontSize : "16px", $ = E.fontFamily || "sans-serif", q = E.fontWeight || "400", x = `${E.fontStyle || "normal"} ${q} ${B} ${$}`, ie = document.createElement("canvas").getContext("2d"), M = ie ? Math.ceil((ie.font = x, ie.measureText(F).width || 0)) : 0;
15740
+ }, [s, u, a]), N = V(() => {
15741
+ const w = m.current;
15742
+ if (!w) return;
15743
+ const _ = w.querySelector(".ant-select-selection-item"), P = w.querySelector(".ant-select-selection-placeholder"), L = _ || P, F = (L?.textContent || "").trim() || R(), U = w.querySelector(".ant-select-selector"), D = L || U || w, E = window.getComputedStyle(D), B = L ? E.fontSize : "16px", $ = E.fontFamily || "sans-serif", q = E.fontWeight || "400", x = `${E.fontStyle || "normal"} ${q} ${B} ${$}`, ie = document.createElement("canvas").getContext("2d"), M = ie ? Math.ceil((ie.font = x, ie.measureText(F).width || 0)) : 0;
15744
15744
  let he = 0;
15745
15745
  if (U) {
15746
15746
  const ge = window.getComputedStyle(U);
15747
15747
  he = (Number.parseFloat(ge.paddingLeft) || 0) + (Number.parseFloat(ge.paddingRight) || 0);
15748
15748
  }
15749
- const Ne = N.querySelector(".ant-select-arrow"), Ce = Ne ? Math.ceil(Ne.getBoundingClientRect().width) : 12, ue = N.querySelector(".ant-select-clear");
15749
+ const Ne = w.querySelector(".ant-select-arrow"), Ce = Ne ? Math.ceil(Ne.getBoundingClientRect().width) : 12, ue = w.querySelector(".ant-select-clear");
15750
15750
  let we = 0;
15751
15751
  if (ue) {
15752
15752
  const ge = window.getComputedStyle(ue);
@@ -15756,21 +15756,21 @@ const Yh = ye.memo(
15756
15756
  h((ge) => ge === De ? ge : De);
15757
15757
  }, [R]);
15758
15758
  tt(() => {
15759
- const N = window.requestAnimationFrame(() => I()), w = window.setTimeout(() => I(), 60);
15759
+ const w = window.requestAnimationFrame(() => N()), _ = window.setTimeout(() => N(), 60);
15760
15760
  return () => {
15761
- window.cancelAnimationFrame(N), window.clearTimeout(w);
15761
+ window.cancelAnimationFrame(w), window.clearTimeout(_);
15762
15762
  };
15763
- }, [I]), ve(() => {
15763
+ }, [N]), ve(() => {
15764
15764
  if (!("fonts" in document)) return;
15765
- let N = !1;
15766
- const w = document.fonts;
15767
- if (w?.ready)
15768
- return w.ready.then(() => {
15769
- N || I();
15765
+ let w = !1;
15766
+ const _ = document.fonts;
15767
+ if (_?.ready)
15768
+ return _.ready.then(() => {
15769
+ w || N();
15770
15770
  }), () => {
15771
- N = !0;
15771
+ w = !0;
15772
15772
  };
15773
- }, [I]);
15773
+ }, [N]);
15774
15774
  const T = s != null && s !== "", A = s || void 0;
15775
15775
  return /* @__PURE__ */ y(Bn, { node: e, children: /* @__PURE__ */ y(
15776
15776
  "span",
@@ -15795,7 +15795,7 @@ const Yh = ye.memo(
15795
15795
  onChange: g,
15796
15796
  onSearch: v,
15797
15797
  onClear: k,
15798
- onInputKeyDown: _,
15798
+ onInputKeyDown: I,
15799
15799
  filterOption: !1,
15800
15800
  options: b,
15801
15801
  disabled: r,
@@ -15930,7 +15930,7 @@ function Kh() {
15930
15930
  (function(n, r) {
15931
15931
  e.exports = r();
15932
15932
  })(nC, function() {
15933
- var n = 1e3, r = 6e4, l = 36e5, a = "millisecond", i = "second", s = "minute", o = "hour", u = "day", c = "week", d = "month", f = "quarter", h = "year", m = "date", b = "Invalid Date", g = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, v = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, _ = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(D) {
15933
+ var n = 1e3, r = 6e4, l = 36e5, a = "millisecond", i = "second", s = "minute", o = "hour", u = "day", c = "week", d = "month", f = "quarter", h = "year", m = "date", b = "Invalid Date", g = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, v = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, I = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(D) {
15934
15934
  var E = ["th", "st", "nd", "rd"], B = D % 100;
15935
15935
  return "[" + D + (E[(B - 20) % 10] || E[B] || E[0]) + "]";
15936
15936
  } }, k = function(D, E, B) {
@@ -15949,13 +15949,13 @@ function Kh() {
15949
15949
  return { M: d, y: h, w: c, d: u, D: m, h: o, m: s, s: i, ms: a, Q: f }[D] || String(D || "").toLowerCase().replace(/s$/, "");
15950
15950
  }, u: function(D) {
15951
15951
  return D === void 0;
15952
- } }, I = "en", T = {};
15953
- T[I] = _;
15954
- var A = "$isDayjsObject", N = function(D) {
15952
+ } }, N = "en", T = {};
15953
+ T[N] = I;
15954
+ var A = "$isDayjsObject", w = function(D) {
15955
15955
  return D instanceof F || !(!D || !D[A]);
15956
- }, w = function D(E, B, $) {
15956
+ }, _ = function D(E, B, $) {
15957
15957
  var q;
15958
- if (!E) return I;
15958
+ if (!E) return N;
15959
15959
  if (typeof E == "string") {
15960
15960
  var X = E.toLowerCase();
15961
15961
  T[X] && (q = X), B && (T[X] = B, q = X);
@@ -15965,18 +15965,18 @@ function Kh() {
15965
15965
  var ne = E.name;
15966
15966
  T[ne] = E, q = ne;
15967
15967
  }
15968
- return !$ && q && (I = q), q || !$ && I;
15968
+ return !$ && q && (N = q), q || !$ && N;
15969
15969
  }, P = function(D, E) {
15970
- if (N(D)) return D.clone();
15970
+ if (w(D)) return D.clone();
15971
15971
  var B = typeof E == "object" ? E : {};
15972
15972
  return B.date = D, B.args = arguments, new F(B);
15973
15973
  }, L = R;
15974
- L.l = w, L.i = N, L.w = function(D, E) {
15974
+ L.l = _, L.i = w, L.w = function(D, E) {
15975
15975
  return P(D, { locale: E.$L, utc: E.$u, x: E.$x, $offset: E.$offset });
15976
15976
  };
15977
15977
  var F = function() {
15978
15978
  function D(B) {
15979
- this.$L = w(B.locale, null, !0), this.parse(B), this.$x = this.$x || B.x || {}, this[A] = !0;
15979
+ this.$L = _(B.locale, null, !0), this.parse(B), this.$x = this.$x || B.x || {}, this[A] = !0;
15980
15980
  }
15981
15981
  var E = D.prototype;
15982
15982
  return E.parse = function(B) {
@@ -16176,7 +16176,7 @@ function Kh() {
16176
16176
  return T[this.$L];
16177
16177
  }, E.locale = function(B, $) {
16178
16178
  if (!B) return this.$L;
16179
- var q = this.clone(), X = w(B, $, !0);
16179
+ var q = this.clone(), X = _(B, $, !0);
16180
16180
  return X && (q.$L = X), q;
16181
16181
  }, E.clone = function() {
16182
16182
  return L.w(this.$d, this);
@@ -16196,9 +16196,9 @@ function Kh() {
16196
16196
  };
16197
16197
  }), P.extend = function(D, E) {
16198
16198
  return D.$i || (D(E, F, P), D.$i = !0), P;
16199
- }, P.locale = w, P.isDayjs = N, P.unix = function(D) {
16199
+ }, P.locale = _, P.isDayjs = w, P.unix = function(D) {
16200
16200
  return P(1e3 * D);
16201
- }, P.en = T[I], P.Ls = T, P.p = {}, P;
16201
+ }, P.en = T[N], P.Ls = T, P.p = {}, P;
16202
16202
  });
16203
16203
  }(pa)), pa.exports;
16204
16204
  }
@@ -22159,34 +22159,34 @@ const oC = [
22159
22159
  u(qi(s));
22160
22160
  }, [s]);
22161
22161
  const b = o.length >= 2, g = V(
22162
- (I) => {
22163
- u(I), n(e.key, I.join("-"));
22162
+ (N) => {
22163
+ u(N), n(e.key, N.join("-"));
22164
22164
  },
22165
22165
  [e.key, n]
22166
22166
  ), v = V(
22167
- (I) => {
22168
- if (!I || I.length === 0) {
22167
+ (N) => {
22168
+ if (!N || N.length === 0) {
22169
22169
  g([]);
22170
22170
  return;
22171
22171
  }
22172
- I.length < 2 || g(I.map(String));
22172
+ N.length < 2 || g(N.map(String));
22173
22173
  },
22174
22174
  [g]
22175
- ), _ = V(
22176
- (I) => {
22177
- I || (u(qi(s)), d((T) => T + 1));
22175
+ ), I = V(
22176
+ (N) => {
22177
+ N || (u(qi(s)), d((T) => T + 1));
22178
22178
  },
22179
22179
  [s]
22180
22180
  ), k = V(() => {
22181
22181
  if (o.length >= 2) {
22182
- const I = uC(a, o);
22183
- return I.length ? I.join("-") : o.join("-");
22182
+ const N = uC(a, o);
22183
+ return N.length ? N.join("-") : o.join("-");
22184
22184
  }
22185
22185
  return i;
22186
22186
  }, [o, a, i]), R = V(() => {
22187
- const I = m.current;
22188
- if (!I) return;
22189
- const T = k(), A = I.querySelector(".ant-select-selector"), N = I.querySelector(".ant-select-selection-item") || I.querySelector(".ant-select-selection-placeholder"), w = N || A || I, P = window.getComputedStyle(w), L = N ? P.fontSize : "16px", F = P.fontFamily || "sans-serif", U = P.fontWeight || "400", E = `${P.fontStyle || "normal"} ${U} ${L} ${F}`, $ = document.createElement("canvas").getContext("2d"), q = $ ? Math.ceil(($.font = E, $.measureText(T).width || 0)) : 0;
22187
+ const N = m.current;
22188
+ if (!N) return;
22189
+ const T = k(), A = N.querySelector(".ant-select-selector"), w = N.querySelector(".ant-select-selection-item") || N.querySelector(".ant-select-selection-placeholder"), _ = w || A || N, P = window.getComputedStyle(_), L = w ? P.fontSize : "16px", F = P.fontFamily || "sans-serif", U = P.fontWeight || "400", E = `${P.fontStyle || "normal"} ${U} ${L} ${F}`, $ = document.createElement("canvas").getContext("2d"), q = $ ? Math.ceil(($.font = E, $.measureText(T).width || 0)) : 0;
22190
22190
  let X = 0;
22191
22191
  if (A) {
22192
22192
  const ie = window.getComputedStyle(A);
@@ -22196,19 +22196,19 @@ const oC = [
22196
22196
  h((ie) => ie === ne ? ie : ne);
22197
22197
  }, [k]);
22198
22198
  return tt(() => {
22199
- const I = window.requestAnimationFrame(() => R()), T = window.setTimeout(() => R(), 60);
22199
+ const N = window.requestAnimationFrame(() => R()), T = window.setTimeout(() => R(), 60);
22200
22200
  return () => {
22201
- window.cancelAnimationFrame(I), window.clearTimeout(T);
22201
+ window.cancelAnimationFrame(N), window.clearTimeout(T);
22202
22202
  };
22203
22203
  }, [R]), ve(() => {
22204
22204
  if (!("fonts" in document)) return;
22205
- let I = !1;
22205
+ let N = !1;
22206
22206
  const T = document.fonts;
22207
22207
  if (T?.ready)
22208
22208
  return T.ready.then(() => {
22209
- I || R();
22209
+ N || R();
22210
22210
  }), () => {
22211
- I = !0;
22211
+ N = !0;
22212
22212
  };
22213
22213
  }, [R]), /* @__PURE__ */ y(Bn, { node: e, children: /* @__PURE__ */ y(
22214
22214
  "span",
@@ -22227,8 +22227,8 @@ const oC = [
22227
22227
  "data-key": e.key,
22228
22228
  options: a,
22229
22229
  value: b ? o : void 0,
22230
- onChange: (I) => v(I),
22231
- onOpenChange: _,
22230
+ onChange: (N) => v(N),
22231
+ onOpenChange: I,
22232
22232
  disabled: r,
22233
22233
  placeholder: i,
22234
22234
  changeOnSelect: !0,
@@ -22236,12 +22236,12 @@ const oC = [
22236
22236
  variant: "borderless",
22237
22237
  allowClear: !0,
22238
22238
  showSearch: {
22239
- filter: (I, T) => T.some(
22240
- (A) => A.label.toLowerCase().includes(I.toLowerCase())
22239
+ filter: (N, T) => T.some(
22240
+ (A) => A.label.toLowerCase().includes(N.toLowerCase())
22241
22241
  )
22242
22242
  },
22243
22243
  popupClassName: "rte-cascader-dropdown",
22244
- displayRender: (I) => I.join("-"),
22244
+ displayRender: (N) => N.join("-"),
22245
22245
  style: { width: "100%" },
22246
22246
  suffixIcon: /* @__PURE__ */ y(
22247
22247
  "i",
@@ -22325,10 +22325,10 @@ const Oo = (e) => {
22325
22325
  const T = ++b.current;
22326
22326
  c(!0), n({ nodeKey: e, nodeType: t }).then((A) => {
22327
22327
  if (T !== b.current) return;
22328
- const N = i ? A.tabs.filter((L) => L.key !== "currentConversationReports") : A.tabs, w = { ...A, tabs: N };
22329
- f(w);
22330
- const P = N.find((L) => L.items.length > 0);
22331
- m(P?.key ?? N[0]?.key ?? "");
22328
+ const w = i ? A.tabs.filter((L) => L.key !== "currentConversationReports") : A.tabs, _ = { ...A, tabs: w };
22329
+ f(_);
22330
+ const P = w.find((L) => L.items.length > 0);
22331
+ m(P?.key ?? w[0]?.key ?? "");
22332
22332
  }).catch(() => {
22333
22333
  T === b.current && f({ tabs: [] });
22334
22334
  }).finally(() => {
@@ -22344,12 +22344,12 @@ const Oo = (e) => {
22344
22344
  const T = d.tabs.find((A) => v(A.items).length > 0);
22345
22345
  T && m((A) => A === T.key ? A : T.key);
22346
22346
  }, [o, s, d, v]);
22347
- const _ = d?.tabs.find((T) => T.key === h), k = _ ? v(_.items) : [], R = V((T) => {
22347
+ const I = d?.tabs.find((T) => T.key === h), k = I ? v(I.items) : [], R = V((T) => {
22348
22348
  const A = T.currentTarget;
22349
22349
  A.classList.add("is-scrolling"), g.current && window.clearTimeout(g.current), g.current = window.setTimeout(() => {
22350
22350
  A.classList.remove("is-scrolling"), g.current = null;
22351
22351
  }, 300);
22352
- }, []), I = V(
22352
+ }, []), N = V(
22353
22353
  (T, A) => {
22354
22354
  T.stopPropagation(), a ? a(A) : window.open(A.viewUrl || A.url, "_blank");
22355
22355
  },
@@ -22365,7 +22365,7 @@ const Oo = (e) => {
22365
22365
  },
22366
22366
  T.key
22367
22367
  )) }) }),
22368
- /* @__PURE__ */ y("div", { className: "rte-report-dropdown-list", onScroll: R, children: !_ || k.length === 0 ? /* @__PURE__ */ j("div", { className: "rte-report-dropdown-empty", children: [
22368
+ /* @__PURE__ */ y("div", { className: "rte-report-dropdown-list", onScroll: R, children: !I || k.length === 0 ? /* @__PURE__ */ j("div", { className: "rte-report-dropdown-empty", children: [
22369
22369
  /* @__PURE__ */ y(
22370
22370
  "img",
22371
22371
  {
@@ -22376,11 +22376,11 @@ const Oo = (e) => {
22376
22376
  ),
22377
22377
  /* @__PURE__ */ j("div", { className: "rte-report-dropdown-empty-text", children: [
22378
22378
  /* @__PURE__ */ y("span", { className: "rte-report-dropdown-empty-label", children: s ? "未找到匹配的报告" : "暂无生成的报告" }),
22379
- l && _?.agentType !== void 0 && /* @__PURE__ */ y(
22379
+ l && I?.agentType !== void 0 && /* @__PURE__ */ y(
22380
22380
  "span",
22381
22381
  {
22382
22382
  className: "rte-report-dropdown-empty-link",
22383
- onClick: () => l(_.agentType),
22383
+ onClick: () => l(I.agentType),
22384
22384
  children: "去生成"
22385
22385
  }
22386
22386
  )
@@ -22403,7 +22403,7 @@ const Oo = (e) => {
22403
22403
  "span",
22404
22404
  {
22405
22405
  className: "rte-report-dropdown-item-action",
22406
- onClick: (N) => I(N, T),
22406
+ onClick: (w) => N(w, T),
22407
22407
  children: [
22408
22408
  /* @__PURE__ */ y("i", { className: "iconfont icon-chakanbaogao" }),
22409
22409
  "查看报告"
@@ -22430,10 +22430,10 @@ const Oo = (e) => {
22430
22430
  }) => {
22431
22431
  const d = zl(), [f, h] = ee(!1), m = re(null), [b, g] = ee(
22432
22432
  null
22433
- ), v = re({}).current, _ = V(() => {
22434
- const I = e.current;
22435
- if (!I) return;
22436
- const T = I.getBoundingClientRect(), A = 236, w = window.innerHeight - T.bottom < A + 8 ? Math.max(8, T.top - A - 4) : T.bottom + 4, P = T.left, L = d?.getBoundingClientRect(), F = w - (L?.top ?? 0), U = P - (L?.left ?? 0);
22433
+ ), v = re({}).current, I = V(() => {
22434
+ const N = e.current;
22435
+ if (!N) return;
22436
+ const T = N.getBoundingClientRect(), A = 236, _ = window.innerHeight - T.bottom < A + 8 ? Math.max(8, T.top - A - 4) : T.bottom + 4, P = T.left, L = d?.getBoundingClientRect(), F = _ - (L?.top ?? 0), U = P - (L?.left ?? 0);
22437
22437
  g(
22438
22438
  (D) => D && D.top === F && D.left === U ? D : { top: F, left: U }
22439
22439
  );
@@ -22445,37 +22445,37 @@ const Oo = (e) => {
22445
22445
  ve(() => {
22446
22446
  c !== void 0 && k();
22447
22447
  }, [c, k]), ve(() => {
22448
- const I = (T) => {
22448
+ const N = (T) => {
22449
22449
  T.detail !== v && h(!1);
22450
22450
  };
22451
- return document.addEventListener("rte-report-dropdown-opening", I), () => document.removeEventListener("rte-report-dropdown-opening", I);
22451
+ return document.addEventListener("rte-report-dropdown-opening", N), () => document.removeEventListener("rte-report-dropdown-opening", N);
22452
22452
  }, [v]), tt(() => {
22453
22453
  if (!f) {
22454
22454
  g(null);
22455
22455
  return;
22456
22456
  }
22457
- _();
22458
- }, [f, _]), ve(() => {
22457
+ I();
22458
+ }, [f, I]), ve(() => {
22459
22459
  if (!f) return;
22460
- const I = e.current;
22461
- if (!I) return;
22462
- const T = typeof window < "u" ? window.ResizeObserver : void 0, A = T ? new T(() => _()) : null;
22463
- A?.observe(I);
22464
- const N = () => _();
22465
- return window.addEventListener("scroll", N, !0), window.addEventListener("resize", N), () => {
22466
- A?.disconnect(), window.removeEventListener("scroll", N, !0), window.removeEventListener("resize", N);
22460
+ const N = e.current;
22461
+ if (!N) return;
22462
+ const T = typeof window < "u" ? window.ResizeObserver : void 0, A = T ? new T(() => I()) : null;
22463
+ A?.observe(N);
22464
+ const w = () => I();
22465
+ return window.addEventListener("scroll", w, !0), window.addEventListener("resize", w), () => {
22466
+ A?.disconnect(), window.removeEventListener("scroll", w, !0), window.removeEventListener("resize", w);
22467
22467
  };
22468
- }, [f, e, _]), ve(() => {
22468
+ }, [f, e, I]), ve(() => {
22469
22469
  if (!f) return;
22470
- const I = (T) => {
22471
- const A = e.current, N = m.current, w = T.target;
22472
- A?.contains(w) || N?.contains(w) || h(!1);
22470
+ const N = (T) => {
22471
+ const A = e.current, w = m.current, _ = T.target;
22472
+ A?.contains(_) || w?.contains(_) || h(!1);
22473
22473
  };
22474
- return document.addEventListener("mousedown", I), () => document.removeEventListener("mousedown", I);
22474
+ return document.addEventListener("mousedown", N), () => document.removeEventListener("mousedown", N);
22475
22475
  }, [f, e]);
22476
22476
  const R = V(
22477
- (I) => {
22478
- h(!1), l(I);
22477
+ (N) => {
22478
+ h(!1), l(N);
22479
22479
  },
22480
22480
  [l]
22481
22481
  );
@@ -22490,8 +22490,8 @@ const Oo = (e) => {
22490
22490
  "data-key": t,
22491
22491
  "data-node-type": n,
22492
22492
  contentEditable: !1,
22493
- onClick: (I) => {
22494
- I.stopPropagation(), f ? h(!1) : k();
22493
+ onClick: (N) => {
22494
+ N.stopPropagation(), f ? h(!1) : k();
22495
22495
  },
22496
22496
  children: /* @__PURE__ */ y(
22497
22497
  "i",
@@ -22509,7 +22509,7 @@ const Oo = (e) => {
22509
22509
  ref: m,
22510
22510
  className: "rte-report-dropdown-overlay",
22511
22511
  style: { position: "fixed", top: b.top, left: b.left },
22512
- onClick: (I) => I.stopPropagation(),
22512
+ onClick: (N) => N.stopPropagation(),
22513
22513
  children: /* @__PURE__ */ y(
22514
22514
  fC,
22515
22515
  {
@@ -22556,61 +22556,58 @@ const Oo = (e) => {
22556
22556
  onResolveName: c,
22557
22557
  onClearReport: d
22558
22558
  }) => {
22559
- const f = e.maxCount ?? 9, h = e.minCount ?? 1, m = pC(e.tooltip), b = !1, g = !!m, v = Ge(() => t ?? [], [t]), _ = Ge(() => {
22560
- const T = v.filter((w) => w && w.trim().length > 0), A = Math.max(h, Math.min(T.length + 1, f)), N = Math.min(Math.max(v.length, A), f);
22561
- return Array.from({ length: N }, (w, P) => v[P] ?? "");
22559
+ const f = e.maxCount ?? 9, h = e.minCount ?? 1, m = pC(e.tooltip), b = !1, g = !!m, v = Ge(() => t ?? [], [t]), I = Ge(() => {
22560
+ const N = v.filter((w) => w && w.trim().length > 0), T = Math.max(h, Math.min(N.length + 1, f)), A = Math.min(Math.max(v.length, T), f);
22561
+ return Array.from({ length: A }, (w, _) => v[_] ?? "");
22562
22562
  }, [v, h, f]), k = V(
22563
- (T, A) => {
22564
- const N = [..._];
22565
- if (N[T] = A, A.trim() === "") {
22566
- const w = N.reduce(
22567
- (P, L, F) => L && L.trim() ? F : P,
22563
+ (N, T) => {
22564
+ const A = [...I];
22565
+ if (A[N] = T, T.trim() === "") {
22566
+ const w = A.reduce(
22567
+ (_, P, L) => P && P.trim() ? L : _,
22568
22568
  -1
22569
22569
  );
22570
- T < w && N.splice(T, 1), N.length = w + 1;
22570
+ N < w && A.splice(N, 1), A.length = w + 1;
22571
22571
  }
22572
- n(e.key, N);
22572
+ n(e.key, A);
22573
22573
  },
22574
- [_, e.key, n]
22574
+ [I, e.key, n]
22575
22575
  ), R = V(
22576
- (T, A) => {
22577
- const N = [..._];
22578
- N[T] = A.url, n(e.key, N);
22576
+ (N, T) => {
22577
+ const A = [...I];
22578
+ A[N] = T.url, n(e.key, A);
22579
22579
  },
22580
- [_, e.key, n]
22581
- ), I = V(
22582
- (T) => {
22583
- k(T, ""), d?.(`${e.key}_${T}`);
22580
+ [I, e.key, n]
22581
+ );
22582
+ return V(
22583
+ (N) => {
22584
+ k(N, ""), d?.(`${e.key}_${N}`);
22584
22585
  },
22585
22586
  [k, e.key, d]
22586
- );
22587
- return /* @__PURE__ */ y(Bn, { node: e, children: /* @__PURE__ */ y("span", { className: `rte-multi-variable ${l ? "rte-multi-variable-error" : ""}`, children: _.map((T, A) => {
22588
- const N = `${e.key}_${A}`;
22589
- return /* @__PURE__ */ y(
22590
- Zh,
22591
- {
22592
- nodeKey: e.key,
22593
- idx: A,
22594
- row: T,
22595
- placeholder: e.placeholder,
22596
- disabled: r,
22597
- tooltip: m,
22598
- onUpdate: (w) => k(A, w),
22599
- showDropdown: b,
22600
- showInfoIcon: g,
22601
- reportListFetch: a,
22602
- onReportGoGenerate: i,
22603
- onViewReport: s,
22604
- hideCurrentSessionReport: o,
22605
- onSelectReport: (w) => R(A, w),
22606
- nodeType: "multi-variable",
22607
- reportName: u?.[N],
22608
- onResolveName: c ? (w) => c(N, w, "multi-variable") : void 0,
22609
- onClearName: d ? () => I(A) : void 0
22610
- },
22611
- A
22612
- );
22613
- }) }) });
22587
+ ), /* @__PURE__ */ y(Bn, { node: e, children: /* @__PURE__ */ y("span", { className: `rte-multi-variable ${l ? "rte-multi-variable-error" : ""}`, children: I.map((N, T) => (`${e.key}${T}`, /* @__PURE__ */ y(
22588
+ Zh,
22589
+ {
22590
+ nodeKey: e.key,
22591
+ idx: T,
22592
+ row: N,
22593
+ placeholder: e.placeholder,
22594
+ disabled: r,
22595
+ tooltip: m,
22596
+ onUpdate: (A) => k(T, A),
22597
+ showDropdown: b,
22598
+ showInfoIcon: g,
22599
+ reportListFetch: a,
22600
+ onReportGoGenerate: i,
22601
+ onViewReport: s,
22602
+ hideCurrentSessionReport: o,
22603
+ onSelectReport: (A) => R(T, A),
22604
+ nodeType: "multi-variable",
22605
+ reportName: void 0,
22606
+ onResolveName: void 0,
22607
+ onClearName: void 0
22608
+ },
22609
+ T
22610
+ ))) }) });
22614
22611
  }
22615
22612
  );
22616
22613
  Jh.displayName = "MultiVariableNode";
@@ -22634,26 +22631,26 @@ const Zh = ({
22634
22631
  onResolveName: g,
22635
22632
  onClearName: v
22636
22633
  }) => {
22637
- const _ = re(null), k = `${e}_${t}`, R = !!b, I = !(n || "").trim(), T = o && I, A = s || T || R, N = re(""), w = V(
22634
+ const I = re(null), k = `${e}_${t}`, R = !!b, N = !(n || "").trim(), T = o && N, A = s || T || R, w = re(""), _ = V(
22638
22635
  async (X) => {
22639
22636
  if (!g) return;
22640
22637
  const x = (X || "").trim();
22641
- if (!/^https?:\/\//i.test(x) || N.current === x) return;
22642
- N.current = x, (await g(x)).status === "failed" && (N.current = "", i(""), ar.error("报告链接解析失败,请检查链接是否正确"));
22638
+ if (!/^https?:\/\//i.test(x) || w.current === x) return;
22639
+ w.current = x, (await g(x)).status === "failed" && (w.current = "", i(""), ar.error("报告链接解析失败,请检查链接是否正确"));
22643
22640
  },
22644
22641
  [g, i]
22645
22642
  ), P = V(() => {
22646
- w(n);
22647
- }, [w, n]), L = V(
22643
+ _(n);
22644
+ }, [_, n]), L = V(
22648
22645
  (X) => {
22649
22646
  if (!g) return;
22650
22647
  const x = X.clipboardData.getData("text/plain");
22651
- /^https?:\/\//i.test(x.trim()) && (X.preventDefault(), i(x), document.dispatchEvent(new CustomEvent("rte-report-dropdown-opening", { detail: null })), w(x));
22648
+ /^https?:\/\//i.test(x.trim()) && (X.preventDefault(), i(x), document.dispatchEvent(new CustomEvent("rte-report-dropdown-opening", { detail: null })), _(x));
22652
22649
  },
22653
- [g, i, w]
22650
+ [g, i, _]
22654
22651
  );
22655
22652
  tt(() => {
22656
- (n || "").trim() || (N.current = "");
22653
+ (n || "").trim() || (w.current = "");
22657
22654
  }, [n]);
22658
22655
  const F = re(null), U = n || r || "", [D, E] = ee(0), B = V(() => {
22659
22656
  F.current && E(F.current.offsetWidth);
@@ -22671,7 +22668,7 @@ const Zh = ({
22671
22668
  return /* @__PURE__ */ j(
22672
22669
  "span",
22673
22670
  {
22674
- ref: _,
22671
+ ref: I,
22675
22672
  className: q,
22676
22673
  "data-type": m === "multi-variable-select" ? "multi-variable-select" : "variable",
22677
22674
  "data-key": k,
@@ -22679,7 +22676,7 @@ const Zh = ({
22679
22676
  "data-index": t,
22680
22677
  "data-report-url": R ? n || !0 : void 0,
22681
22678
  "data-report-name": b || void 0,
22682
- ...a && !R && I ? { "data-tooltip": a, "data-variable-key": e } : {},
22679
+ ...a && !R && N ? { "data-tooltip": a, "data-variable-key": e } : {},
22683
22680
  children: [
22684
22681
  /* @__PURE__ */ y(
22685
22682
  "span",
@@ -22705,7 +22702,7 @@ const Zh = ({
22705
22702
  className: "rte-report-name-chip-label",
22706
22703
  onClick: () => {
22707
22704
  if (!s) return;
22708
- _.current?.querySelector(".rte-report-dropdown-host")?.click();
22705
+ I.current?.querySelector(".rte-report-dropdown-host")?.click();
22709
22706
  },
22710
22707
  children: b
22711
22708
  }
@@ -22713,7 +22710,7 @@ const Zh = ({
22713
22710
  s && u && /* @__PURE__ */ y(
22714
22711
  Bc,
22715
22712
  {
22716
- chipRef: _,
22713
+ chipRef: I,
22717
22714
  nodeKey: k,
22718
22715
  nodeType: m,
22719
22716
  fetch: u,
@@ -22745,7 +22742,7 @@ const Zh = ({
22745
22742
  onPaste: L,
22746
22743
  onClick: () => {
22747
22744
  if (!s || n.trim()) return;
22748
- _.current?.querySelector(".rte-report-dropdown-host")?.click();
22745
+ I.current?.querySelector(".rte-report-dropdown-host")?.click();
22749
22746
  },
22750
22747
  disabled: l,
22751
22748
  placeholder: r,
@@ -22758,7 +22755,7 @@ const Zh = ({
22758
22755
  !R && s && u && /* @__PURE__ */ y(
22759
22756
  Bc,
22760
22757
  {
22761
- chipRef: _,
22758
+ chipRef: I,
22762
22759
  nodeKey: k,
22763
22760
  nodeType: m,
22764
22761
  fetch: u,
@@ -22795,32 +22792,32 @@ const Zh = ({
22795
22792
  onClearReport: d,
22796
22793
  onAnalyzeReport: f
22797
22794
  }) => {
22798
- const h = e.maxCount ?? 9, m = e.minCount ?? 1, b = mC(e.tooltip), g = !!a && !!b, v = !g && !!b, _ = Ge(() => {
22799
- const A = t ?? [], N = A.reduce(
22800
- (w, P, L) => P && P.trim() ? L : w,
22795
+ const h = e.maxCount ?? 9, m = e.minCount ?? 1, b = mC(e.tooltip), g = !!a && !!b, v = !g && !!b, I = Ge(() => {
22796
+ const A = t ?? [], w = A.reduce(
22797
+ (_, P, L) => P && P.trim() ? L : _,
22801
22798
  -1
22802
22799
  );
22803
- return A.slice(0, N + 1);
22800
+ return A.slice(0, w + 1);
22804
22801
  }, [t]), k = Ge(() => {
22805
- const A = _.filter((P) => P && P.trim().length > 0), N = Math.max(m, Math.min(A.length + 1, h)), w = Math.min(Math.max(_.length, N), h);
22806
- return Array.from({ length: w }, (P, L) => _[L] ?? "");
22807
- }, [_, m, h]), R = V(
22808
- (A, N) => {
22809
- const w = [...k];
22810
- if (w[A] = N, N.trim() === "") {
22811
- const P = w.reduce(
22802
+ const A = I.filter((P) => P && P.trim().length > 0), w = Math.max(m, Math.min(A.length + 1, h)), _ = Math.min(Math.max(I.length, w), h);
22803
+ return Array.from({ length: _ }, (P, L) => I[L] ?? "");
22804
+ }, [I, m, h]), R = V(
22805
+ (A, w) => {
22806
+ const _ = [...k];
22807
+ if (_[A] = w, w.trim() === "") {
22808
+ const P = _.reduce(
22812
22809
  (L, F, U) => F && F.trim() ? U : L,
22813
22810
  -1
22814
22811
  );
22815
- A < P && w.splice(A, 1), w.length = P + 1;
22812
+ A < P && _.splice(A, 1), _.length = P + 1;
22816
22813
  }
22817
- n(e.key, w);
22814
+ n(e.key, _);
22818
22815
  },
22819
22816
  [k, e.key, n]
22820
- ), I = V(
22821
- (A, N) => {
22822
- const w = [...k];
22823
- w[A] = N.url, n(e.key, w), f?.(`${e.key}_${A}`, N.url), c && /^https?:\/\//i.test(N.url) && c(`${e.key}_${A}`, N.url, "multi-variable-select");
22817
+ ), N = V(
22818
+ (A, w) => {
22819
+ const _ = [...k];
22820
+ _[A] = w.url, n(e.key, _), f?.(`${e.key}_${A}`, w.url), c && /^https?:\/\//i.test(w.url) && c(`${e.key}_${A}`, w.url, "multi-variable-select");
22824
22821
  },
22825
22822
  [k, e.key, n, f, c]
22826
22823
  ), T = V(
@@ -22833,31 +22830,31 @@ const Zh = ({
22833
22830
  "span",
22834
22831
  {
22835
22832
  className: `rte-multi-variable-select ${l ? "rte-multi-variable-select-error" : ""}`,
22836
- children: k.map((A, N) => {
22837
- const w = `${e.key}_${N}`;
22833
+ children: k.map((A, w) => {
22834
+ const _ = `${e.key}_${w}`;
22838
22835
  return /* @__PURE__ */ y(
22839
22836
  Zh,
22840
22837
  {
22841
22838
  nodeKey: e.key,
22842
- idx: N,
22839
+ idx: w,
22843
22840
  row: A,
22844
22841
  placeholder: e.placeholder,
22845
22842
  disabled: r,
22846
22843
  tooltip: b,
22847
- onUpdate: (P) => R(N, P),
22844
+ onUpdate: (P) => R(w, P),
22848
22845
  showDropdown: g,
22849
22846
  showInfoIcon: v,
22850
22847
  reportListFetch: a,
22851
22848
  onReportGoGenerate: i,
22852
22849
  onViewReport: s,
22853
22850
  hideCurrentSessionReport: o,
22854
- onSelectReport: (P) => I(N, P),
22851
+ onSelectReport: (P) => N(w, P),
22855
22852
  nodeType: "multi-variable-select",
22856
- reportName: u?.[w],
22857
- onResolveName: c ? (P) => c(w, P, "multi-variable-select") : void 0,
22858
- onClearName: d ? () => T(N) : void 0
22853
+ reportName: u?.[_],
22854
+ onResolveName: c ? (P) => c(_, P, "multi-variable-select") : void 0,
22855
+ onClearName: d ? () => T(w) : void 0
22859
22856
  },
22860
- N
22857
+ w
22861
22858
  );
22862
22859
  })
22863
22860
  }
@@ -22889,7 +22886,7 @@ const bC = /\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i, gC = (e) => bC.test(e), vC
22889
22886
  onReplace: c,
22890
22887
  onRemove: d
22891
22888
  }) => {
22892
- const f = re(null), h = re(null), m = zl(), [b, g] = ee(!1), v = t != null, _ = tp(t), [k, R] = ee(!1), I = V(() => {
22889
+ const f = re(null), h = re(null), m = zl(), [b, g] = ee(!1), v = t != null, I = tp(t), [k, R] = ee(!1), N = V(() => {
22893
22890
  a || f.current?.click();
22894
22891
  }, [a]), T = V(
22895
22892
  (q) => {
@@ -22899,20 +22896,20 @@ const bC = /\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i, gC = (e) => bC.test(e), vC
22899
22896
  [u, e]
22900
22897
  ), A = V(() => {
22901
22898
  a || h.current?.click();
22902
- }, [a]), N = V(
22899
+ }, [a]), w = V(
22903
22900
  (q) => {
22904
22901
  const X = q.target.files;
22905
22902
  X && X.length > 0 && c(e, X), q.target.value = "";
22906
22903
  },
22907
22904
  [c, e]
22908
- ), w = V(() => {
22905
+ ), _ = V(() => {
22909
22906
  a || g(!0);
22910
22907
  }, [a]), P = V(
22911
22908
  (q) => {
22912
22909
  q.stopPropagation(), !a && d(e);
22913
22910
  },
22914
22911
  [d, e, a]
22915
- ), L = v ? typeof t == "string" ? decodeURIComponent(t.split("/").pop()?.split("?")[0] || "file") : t.name : null, F = (v ? L : n) ?? "", U = v && (typeof t == "string" && gC(t) || typeof t == "object" && t !== null && vC(t)), D = U ? /* @__PURE__ */ y("img", { className: "upload-icon-img upload-icon-preview", src: _, alt: "preview" }) : v ? /* @__PURE__ */ y("i", { className: "iconfont icon-exlwenjian" }) : /* @__PURE__ */ y("i", { className: "iconfont icon-shangchuan1" }), E = /* @__PURE__ */ y("span", { className: "upload-label", "data-file-name": F, children: F }), B = /* @__PURE__ */ j("span", { className: `upload-inner-wrapper${v ? " has-file" : ""}`, children: [
22912
+ ), L = v ? typeof t == "string" ? decodeURIComponent(t.split("/").pop()?.split("?")[0] || "file") : t.name : null, F = (v ? L : n) ?? "", U = v && (typeof t == "string" && gC(t) || typeof t == "object" && t !== null && vC(t)), D = U ? /* @__PURE__ */ y("img", { className: "upload-icon-img upload-icon-preview", src: I, alt: "preview" }) : v ? /* @__PURE__ */ y("i", { className: "iconfont icon-exlwenjian" }) : /* @__PURE__ */ y("i", { className: "iconfont icon-shangchuan1" }), E = /* @__PURE__ */ y("span", { className: "upload-label", "data-file-name": F, children: F }), B = /* @__PURE__ */ j("span", { className: `upload-inner-wrapper${v ? " has-file" : ""}`, children: [
22916
22913
  /* @__PURE__ */ y("span", { className: "upload-icon", children: D }),
22917
22914
  v && F && !U ? (
22918
22915
  // 气泡往上推 8px 拉开与 chip 的间距:已填非图片 chip 点本体=重选替换,
@@ -22953,14 +22950,14 @@ const bC = /\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i, gC = (e) => bC.test(e), vC
22953
22950
  "data-key": e,
22954
22951
  "data-group": o,
22955
22952
  "data-tooltip": l || void 0,
22956
- onClick: w,
22953
+ onClick: _,
22957
22954
  children: [
22958
22955
  B,
22959
22956
  /* @__PURE__ */ y(
22960
22957
  pf,
22961
22958
  {
22962
22959
  style: { display: "none" },
22963
- src: _,
22960
+ src: I,
22964
22961
  preview: {
22965
22962
  visible: b,
22966
22963
  onVisibleChange: (X) => g(X),
@@ -22976,7 +22973,7 @@ const bC = /\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i, gC = (e) => bC.test(e), vC
22976
22973
  return /* @__PURE__ */ y(
22977
22974
  ao,
22978
22975
  {
22979
- title: /* @__PURE__ */ y("div", { className: "se-upload-preview", children: /* @__PURE__ */ y("img", { className: "se-upload-preview-img", src: _, alt: "preview" }) }),
22976
+ title: /* @__PURE__ */ y("div", { className: "se-upload-preview", children: /* @__PURE__ */ y("img", { className: "se-upload-preview-img", src: I, alt: "preview" }) }),
22980
22977
  placement: "topLeft",
22981
22978
  arrow: !1,
22982
22979
  overlayInnerStyle: {
@@ -23008,7 +23005,7 @@ const bC = /\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i, gC = (e) => bC.test(e), vC
23008
23005
  accept: r,
23009
23006
  multiple: !1,
23010
23007
  style: { display: "none" },
23011
- onChange: N
23008
+ onChange: w
23012
23009
  }
23013
23010
  )
23014
23011
  ]
@@ -23024,7 +23021,7 @@ const bC = /\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i, gC = (e) => bC.test(e), vC
23024
23021
  "data-key": e,
23025
23022
  "data-group": o,
23026
23023
  "data-tooltip": l || void 0,
23027
- onClick: I,
23024
+ onClick: N,
23028
23025
  disabled: a,
23029
23026
  children: [
23030
23027
  B,
@@ -23120,7 +23117,7 @@ const SC = (e = Date.now()) => e - Fc < xC ? !1 : (Fc = e, !0), CC = 32, kC = (e
23120
23117
  n(`${L}-${D}`, D < U.length ? U[D] : null);
23121
23118
  },
23122
23119
  [i, t, e.key, e.maxCount, n]
23123
- ), { filledEntries: _, emptyKeys: k } = Ge(() => {
23120
+ ), { filledEntries: I, emptyKeys: k } = Ge(() => {
23124
23121
  if (!i)
23125
23122
  return { filledEntries: [], emptyKeys: [] };
23126
23123
  const P = e.key, L = [], F = [];
@@ -23129,7 +23126,7 @@ const SC = (e = Date.now()) => e - Fc < xC ? !1 : (Fc = e, !0), CC = 32, kC = (e
23129
23126
  E != null ? L.push({ key: D, file: E }) : F.push(D);
23130
23127
  }
23131
23128
  return { filledEntries: L, emptyKeys: F };
23132
- }, [t, i, e.key, e.maxCount]), R = _.length;
23129
+ }, [t, i, e.key, e.maxCount]), R = I.length;
23133
23130
  if (!i) {
23134
23131
  const P = e.key, L = t[P] ?? null, F = L != null, U = (e.text || "").trim(), D = F && e.showHint === !0 && U.length >= wC, E = /* @__PURE__ */ y(
23135
23132
  ba,
@@ -23173,12 +23170,12 @@ const SC = (e = Date.now()) => e - Fc < xC ? !1 : (Fc = e, !0), CC = 32, kC = (e
23173
23170
  B
23174
23171
  ] });
23175
23172
  }
23176
- const I = e.minCount ?? 1, T = e.maxCount ?? 0, A = Math.min(
23173
+ const N = e.minCount ?? 1, T = e.maxCount ?? 0, A = Math.min(
23177
23174
  T,
23178
- Math.max(I, R + (R < T ? 1 : 0))
23179
- ), N = [];
23180
- for (const { key: P, file: L } of _)
23181
- N.push(
23175
+ Math.max(N, R + (R < T ? 1 : 0))
23176
+ ), w = [];
23177
+ for (const { key: P, file: L } of I)
23178
+ w.push(
23182
23179
  /* @__PURE__ */ y(
23183
23180
  ba,
23184
23181
  {
@@ -23198,9 +23195,9 @@ const SC = (e = Date.now()) => e - Fc < xC ? !1 : (Fc = e, !0), CC = 32, kC = (e
23198
23195
  P
23199
23196
  )
23200
23197
  );
23201
- const w = Math.max(0, A - R);
23202
- for (const P of k.slice(0, w))
23203
- N.push(
23198
+ const _ = Math.max(0, A - R);
23199
+ for (const P of k.slice(0, _))
23200
+ w.push(
23204
23201
  /* @__PURE__ */ y(
23205
23202
  ba,
23206
23203
  {
@@ -23227,7 +23224,7 @@ const SC = (e = Date.now()) => e - Fc < xC ? !1 : (Fc = e, !0), CC = 32, kC = (e
23227
23224
  "data-group": e.exclusionGroup,
23228
23225
  children: [
23229
23226
  /* @__PURE__ */ y("span", { className: "rte-text-required", children: /* @__PURE__ */ y("i", { className: "iconfont icon-bitian", style: { fontSize: 10 } }) }),
23230
- /* @__PURE__ */ y("span", { className: "rte-upload-batch-chips", ref: o, children: N }),
23227
+ /* @__PURE__ */ y("span", { className: "rte-upload-batch-chips", ref: o, children: w }),
23231
23228
  d && c ? /* @__PURE__ */ y(Zn, { data: c, hidden: R > 0 }) : null
23232
23229
  ]
23233
23230
  }
@@ -23237,7 +23234,7 @@ const SC = (e = Date.now()) => e - Fc < xC ? !1 : (Fc = e, !0), CC = 32, kC = (e
23237
23234
  className: `rte-upload-batch-chips${u ? " rte-batch-wrapped" : ""}${l ? " rte-upload-error" : ""}`,
23238
23235
  ref: o,
23239
23236
  children: [
23240
- N,
23237
+ w,
23241
23238
  d && c ? /* @__PURE__ */ y(Zn, { data: c, hidden: R > 0 }) : null
23242
23239
  ]
23243
23240
  }
@@ -23386,17 +23383,17 @@ const Hc = 2 * Math.PI * 6.5, rp = "data:image/svg+xml,%3Csvg xmlns='http://www.
23386
23383
  }) => {
23387
23384
  const [o, u] = ee(
23388
23385
  "idle"
23389
- ), [c, d] = ee(0), [f, h] = ee(""), [m, b] = ee(""), g = re(null), v = re(0), _ = re(null), k = t || e.placeholder || "", [R, I] = ee(0), T = V(() => {
23390
- _.current && I(_.current.offsetWidth);
23386
+ ), [c, d] = ee(0), [f, h] = ee(""), [m, b] = ee(""), g = re(null), v = re(0), I = re(null), k = t || e.placeholder || "", [R, N] = ee(0), T = V(() => {
23387
+ I.current && N(I.current.offsetWidth);
23391
23388
  }, []);
23392
23389
  tt(() => {
23393
23390
  T();
23394
- const x = _.current;
23391
+ const x = I.current;
23395
23392
  if (!x || typeof ResizeObserver > "u") return;
23396
23393
  const ne = new ResizeObserver(() => T());
23397
23394
  return ne.observe(x), () => ne.disconnect();
23398
23395
  }, [k, T]);
23399
- const A = R > 0 ? Math.max(40, R + 2) : 40, N = Ul(e.tooltip), w = !!N, P = w ? "" : RC(e.tooltip), L = !!(t || n), F = V(() => {
23396
+ const A = R > 0 ? Math.max(40, R + 2) : 40, w = Ul(e.tooltip), _ = !!w, P = _ ? "" : RC(e.tooltip), L = !!(t || n), F = V(() => {
23400
23397
  g.current && (window.clearInterval(g.current), g.current = null);
23401
23398
  }, []), U = V(() => {
23402
23399
  F();
@@ -23451,7 +23448,7 @@ const Hc = 2 * Math.PI * 6.5, rp = "data:image/svg+xml,%3Csvg xmlns='http://www.
23451
23448
  },
23452
23449
  [e.key, r, l]
23453
23450
  ), q = (x) => {
23454
- const ne = w && N ? /* @__PURE__ */ y(Zn, { data: N, hidden: L }) : null;
23451
+ const ne = _ && w ? /* @__PURE__ */ y(Zn, { data: w, hidden: L }) : null;
23455
23452
  return e.required ? /* @__PURE__ */ j(ot, { children: [
23456
23453
  /* @__PURE__ */ j(
23457
23454
  "span",
@@ -23563,7 +23560,7 @@ const Hc = 2 * Math.PI * 6.5, rp = "data:image/svg+xml,%3Csvg xmlns='http://www.
23563
23560
  /* @__PURE__ */ y(
23564
23561
  "span",
23565
23562
  {
23566
- ref: _,
23563
+ ref: I,
23567
23564
  "aria-hidden": "true",
23568
23565
  style: {
23569
23566
  position: "absolute",
@@ -23617,9 +23614,9 @@ const DC = (e) => e ? typeof e == "string" ? e : JSON.stringify(e) : "", LC = 10
23617
23614
  disabled: i,
23618
23615
  error: s
23619
23616
  }) => {
23620
- const o = re(null), [u, c] = ee("idle"), [d, f] = ee(0), [h, m] = ee(""), [b, g] = ee(""), [v, _] = ee(""), k = Ul(e.tooltip), R = !!k, I = R ? "" : DC(e.tooltip), T = !!t && !!n, A = u === "loading", N = V(() => {
23617
+ const o = re(null), [u, c] = ee("idle"), [d, f] = ee(0), [h, m] = ee(""), [b, g] = ee(""), [v, I] = ee(""), k = Ul(e.tooltip), R = !!k, N = R ? "" : DC(e.tooltip), T = !!t && !!n, A = u === "loading", w = V(() => {
23621
23618
  i || A || !a || o.current?.click();
23622
- }, [i, A, a]), w = V(
23619
+ }, [i, A, a]), _ = V(
23623
23620
  async (F) => {
23624
23621
  const U = F.target.files?.[0];
23625
23622
  if (F.target.value = "", !U || !a) return;
@@ -23627,14 +23624,14 @@ const DC = (e) => e ? typeof e == "string" ? e : JSON.stringify(e) : "", LC = 10
23627
23624
  ar.warning(PC);
23628
23625
  return;
23629
23626
  }
23630
- c("loading"), f(0), g(U.name), _(""), m("");
23627
+ c("loading"), f(0), g(U.name), I(""), m("");
23631
23628
  const D = await _C(U).catch(() => "");
23632
23629
  D && m(D);
23633
23630
  try {
23634
23631
  const E = await a(U, (B) => f(B));
23635
23632
  r(e.key, E.videoUrl), l?.(e.key, E.thumbnail || D || ""), c("idle"), m("");
23636
23633
  } catch (E) {
23637
- c("error"), _(E instanceof Error ? E.message : "上传失败"), m("");
23634
+ c("error"), I(E instanceof Error ? E.message : "上传失败"), m("");
23638
23635
  }
23639
23636
  },
23640
23637
  [a, e.key, r, l]
@@ -23670,7 +23667,7 @@ const DC = (e) => e ? typeof e == "string" ? e : JSON.stringify(e) : "", LC = 10
23670
23667
  className: `video-chip ${s ? "rte-video-error" : ""}`,
23671
23668
  "data-type": "video-upload",
23672
23669
  "data-key": e.key,
23673
- "data-tooltip": I || void 0,
23670
+ "data-tooltip": N || void 0,
23674
23671
  "data-group": e.exclusionGroup,
23675
23672
  children: [
23676
23673
  /* @__PURE__ */ j("span", { className: "video-inner-wrapper video-upload-inner has-video", children: [
@@ -23709,7 +23706,7 @@ const DC = (e) => e ? typeof e == "string" ? e : JSON.stringify(e) : "", LC = 10
23709
23706
  type: "file",
23710
23707
  accept: "video/*",
23711
23708
  style: { display: "none" },
23712
- onChange: w
23709
+ onChange: _
23713
23710
  }
23714
23711
  )
23715
23712
  ]
@@ -23726,7 +23723,7 @@ const DC = (e) => e ? typeof e == "string" ? e : JSON.stringify(e) : "", LC = 10
23726
23723
  className: `video-chip ${s ? "rte-video-error" : ""}`,
23727
23724
  "data-type": "video-upload",
23728
23725
  "data-key": e.key,
23729
- "data-tooltip": I || void 0,
23726
+ "data-tooltip": N || void 0,
23730
23727
  "data-group": e.exclusionGroup,
23731
23728
  children: /* @__PURE__ */ j("span", { className: "video-inner-wrapper video-upload-inner video-uploading", children: [
23732
23729
  /* @__PURE__ */ j("span", { className: "video-thumbnail-wrapper", children: [
@@ -23750,7 +23747,7 @@ const DC = (e) => e ? typeof e == "string" ? e : JSON.stringify(e) : "", LC = 10
23750
23747
  className: "video-chip rte-video-error",
23751
23748
  "data-type": "video-upload",
23752
23749
  "data-key": e.key,
23753
- "data-tooltip": I || void 0,
23750
+ "data-tooltip": N || void 0,
23754
23751
  "data-group": e.exclusionGroup,
23755
23752
  children: [
23756
23753
  /* @__PURE__ */ j("span", { className: "video-inner-wrapper video-upload-inner", children: [
@@ -23761,7 +23758,7 @@ const DC = (e) => e ? typeof e == "string" ? e : JSON.stringify(e) : "", LC = 10
23761
23758
  className: "video-remove-btn rte-video-remove",
23762
23759
  title: "重试",
23763
23760
  onClick: (F) => {
23764
- F.stopPropagation(), c("idle"), _("");
23761
+ F.stopPropagation(), c("idle"), I("");
23765
23762
  },
23766
23763
  children: "×"
23767
23764
  }
@@ -23774,7 +23771,7 @@ const DC = (e) => e ? typeof e == "string" ? e : JSON.stringify(e) : "", LC = 10
23774
23771
  type: "file",
23775
23772
  accept: "video/*",
23776
23773
  style: { display: "none" },
23777
- onChange: w
23774
+ onChange: _
23778
23775
  }
23779
23776
  )
23780
23777
  ]
@@ -23786,18 +23783,18 @@ const DC = (e) => e ? typeof e == "string" ? e : JSON.stringify(e) : "", LC = 10
23786
23783
  className: `video-chip ${s ? "rte-video-error" : ""}`,
23787
23784
  "data-type": "video-upload",
23788
23785
  "data-key": e.key,
23789
- "data-tooltip": I || void 0,
23786
+ "data-tooltip": N || void 0,
23790
23787
  "data-group": e.exclusionGroup,
23791
- onClick: N,
23788
+ onClick: w,
23792
23789
  disabled: i,
23793
23790
  children: [
23794
23791
  /* @__PURE__ */ j("span", { className: "video-inner-wrapper video-upload-inner", children: [
23795
23792
  /* @__PURE__ */ y("i", { className: "iconfont icon-shangchuan1", style: { fontSize: 16 } }),
23796
23793
  /* @__PURE__ */ y("span", { className: "video-label", children: e.text ?? "请上传想要分析的视频文件" }),
23797
- I && /* @__PURE__ */ y(
23794
+ N && /* @__PURE__ */ y(
23798
23795
  Vr,
23799
23796
  {
23800
- tooltip: I,
23797
+ tooltip: N,
23801
23798
  className: "upload-info-icon",
23802
23799
  dataUploadKey: e.key
23803
23800
  }
@@ -23810,7 +23807,7 @@ const DC = (e) => e ? typeof e == "string" ? e : JSON.stringify(e) : "", LC = 10
23810
23807
  type: "file",
23811
23808
  accept: "video/*",
23812
23809
  style: { display: "none" },
23813
- onChange: w
23810
+ onChange: _
23814
23811
  }
23815
23812
  )
23816
23813
  ]
@@ -23850,50 +23847,50 @@ const BC = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
23850
23847
  const [o, u] = ee(!1), [c, d] = ee(null), [f, h] = ee(""), m = re(0), b = re(null);
23851
23848
  ve(() => {
23852
23849
  if (!s) return;
23853
- const I = ++m.current;
23850
+ const N = ++m.current;
23854
23851
  u(!0), t({ nodeKey: e, nodeType: "report-url" }).then((T) => {
23855
- if (I !== m.current) return;
23856
- const A = a ? T.tabs.filter((P) => P.key !== "currentConversationReports") : T.tabs, N = { ...T, tabs: A };
23857
- d(N);
23858
- const w = A.find((P) => P.items.length > 0);
23859
- h(w?.key ?? A[0]?.key ?? "");
23852
+ if (N !== m.current) return;
23853
+ const A = a ? T.tabs.filter((P) => P.key !== "currentConversationReports") : T.tabs, w = { ...T, tabs: A };
23854
+ d(w);
23855
+ const _ = A.find((P) => P.items.length > 0);
23856
+ h(_?.key ?? A[0]?.key ?? "");
23860
23857
  }).catch(() => {
23861
- I === m.current && d({ tabs: [] });
23858
+ N === m.current && d({ tabs: [] });
23862
23859
  }).finally(() => {
23863
- I === m.current && u(!1);
23860
+ N === m.current && u(!1);
23864
23861
  });
23865
23862
  }, [s, t, e, a]);
23866
23863
  const g = V(
23867
- (I) => i ? I.filter((T) => up(T.url) === i) : I,
23864
+ (N) => i ? N.filter((T) => up(T.url) === i) : N,
23868
23865
  [i]
23869
23866
  );
23870
23867
  ve(() => {
23871
23868
  if (!s || !i || !c) return;
23872
- const I = c.tabs.find((T) => g(T.items).length > 0);
23873
- I && h((T) => T === I.key ? T : I.key);
23869
+ const N = c.tabs.find((T) => g(T.items).length > 0);
23870
+ N && h((T) => T === N.key ? T : N.key);
23874
23871
  }, [s, i, c, g]);
23875
- const v = c?.tabs.find((I) => I.key === f), _ = v ? g(v.items) : [], k = V((I) => {
23876
- const T = I.currentTarget;
23872
+ const v = c?.tabs.find((N) => N.key === f), I = v ? g(v.items) : [], k = V((N) => {
23873
+ const T = N.currentTarget;
23877
23874
  T.classList.add("is-scrolling"), b.current && window.clearTimeout(b.current), b.current = window.setTimeout(() => {
23878
23875
  T.classList.remove("is-scrolling"), b.current = null;
23879
23876
  }, 300);
23880
23877
  }, []), R = V(
23881
- (I, T) => {
23882
- I.stopPropagation(), l ? l(T) : window.open(T.viewUrl || T.url, "_blank");
23878
+ (N, T) => {
23879
+ N.stopPropagation(), l ? l(T) : window.open(T.viewUrl || T.url, "_blank");
23883
23880
  },
23884
23881
  [l]
23885
23882
  );
23886
- return /* @__PURE__ */ y("div", { className: "rte-report-dropdown-panel", onMouseDown: (I) => I.preventDefault(), children: o ? /* @__PURE__ */ y("div", { className: "rte-report-dropdown-loading", children: /* @__PURE__ */ y(ro, { size: "small" }) }) : c ? /* @__PURE__ */ j(ot, { children: [
23887
- c.tabs.length > 1 && /* @__PURE__ */ y("div", { className: "rte-report-dropdown-tab-outer", children: /* @__PURE__ */ y("div", { className: "rte-report-dropdown-tab-inner", children: c.tabs.map((I) => /* @__PURE__ */ y(
23883
+ return /* @__PURE__ */ y("div", { className: "rte-report-dropdown-panel", onMouseDown: (N) => N.preventDefault(), children: o ? /* @__PURE__ */ y("div", { className: "rte-report-dropdown-loading", children: /* @__PURE__ */ y(ro, { size: "small" }) }) : c ? /* @__PURE__ */ j(ot, { children: [
23884
+ c.tabs.length > 1 && /* @__PURE__ */ y("div", { className: "rte-report-dropdown-tab-outer", children: /* @__PURE__ */ y("div", { className: "rte-report-dropdown-tab-inner", children: c.tabs.map((N) => /* @__PURE__ */ y(
23888
23885
  "div",
23889
23886
  {
23890
- className: `rte-report-dropdown-tab-item${I.key === f ? " active" : ""}`,
23891
- onClick: () => h(I.key),
23892
- children: I.label
23887
+ className: `rte-report-dropdown-tab-item${N.key === f ? " active" : ""}`,
23888
+ onClick: () => h(N.key),
23889
+ children: N.label
23893
23890
  },
23894
- I.key
23891
+ N.key
23895
23892
  )) }) }),
23896
- /* @__PURE__ */ y("div", { className: "rte-report-dropdown-list", onScroll: k, children: !v || _.length === 0 ? /* @__PURE__ */ j("div", { className: "rte-report-dropdown-empty", children: [
23893
+ /* @__PURE__ */ y("div", { className: "rte-report-dropdown-list", onScroll: k, children: !v || I.length === 0 ? /* @__PURE__ */ j("div", { className: "rte-report-dropdown-empty", children: [
23897
23894
  /* @__PURE__ */ y(
23898
23895
  "img",
23899
23896
  {
@@ -23913,25 +23910,25 @@ const BC = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
23913
23910
  }
23914
23911
  )
23915
23912
  ] })
23916
- ] }) : _.map((I, T) => /* @__PURE__ */ j(
23913
+ ] }) : I.map((N, T) => /* @__PURE__ */ j(
23917
23914
  "div",
23918
23915
  {
23919
23916
  className: "rte-report-dropdown-item",
23920
- onClick: () => n(I),
23917
+ onClick: () => n(N),
23921
23918
  children: [
23922
23919
  /* @__PURE__ */ y(
23923
23920
  "span",
23924
23921
  {
23925
23922
  className: "rte-report-dropdown-item-name",
23926
- title: I.name,
23927
- children: I.name
23923
+ title: N.name,
23924
+ children: N.name
23928
23925
  }
23929
23926
  ),
23930
23927
  /* @__PURE__ */ j(
23931
23928
  "span",
23932
23929
  {
23933
23930
  className: "rte-report-dropdown-item-action",
23934
- onClick: (A) => R(A, I),
23931
+ onClick: (A) => R(A, N),
23935
23932
  children: [
23936
23933
  /* @__PURE__ */ y("i", { className: "iconfont icon-chakanbaogao" }),
23937
23934
  "查看报告"
@@ -23940,7 +23937,7 @@ const BC = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
23940
23937
  )
23941
23938
  ]
23942
23939
  },
23943
- `${I.url}-${T}`
23940
+ `${N.url}-${T}`
23944
23941
  )) })
23945
23942
  ] }) : null });
23946
23943
  }, cp = ye.memo(
@@ -23958,7 +23955,7 @@ const BC = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
23958
23955
  disabled: c,
23959
23956
  error: d
23960
23957
  }) => {
23961
- const f = zl(), h = FC(e.tooltip), m = t ?? "", b = !!i, g = !m && !b, v = !!l, _ = v && !c && (g || b), k = !v && !!h && g, R = _ || k, [I, T] = ee(!1), [A, N] = ee(!1), w = re({}).current, P = re(""), L = V(
23958
+ const f = zl(), h = FC(e.tooltip), m = t ?? "", b = !!i, g = !m && !b, v = !!l, I = v && !c && (g || b), k = !v && !!h && g, R = I || k, [N, T] = ee(!1), [A, w] = ee(!1), _ = re({}).current, P = re(""), L = V(
23962
23959
  async (de) => {
23963
23960
  const Oe = de.trim();
23964
23961
  if (!(!Oe || !r) && P.current !== Oe) {
@@ -23981,16 +23978,16 @@ const BC = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
23981
23978
  (de) => {
23982
23979
  if (!e.key) return;
23983
23980
  const Oe = de.clipboardData.getData("text/plain");
23984
- Oe.trim() && (de.preventDefault(), n(e.key, Oe), N(!1), L(Oe));
23981
+ Oe.trim() && (de.preventDefault(), n(e.key, Oe), w(!1), L(Oe));
23985
23982
  },
23986
23983
  [e.key, n, L]
23987
23984
  ), D = V(() => {
23988
23985
  document.dispatchEvent(
23989
- new CustomEvent("rte-report-dropdown-opening", { detail: w })
23990
- ), N(!0);
23991
- }, [w]), E = V(
23986
+ new CustomEvent("rte-report-dropdown-opening", { detail: _ })
23987
+ ), w(!0);
23988
+ }, [_]), E = V(
23992
23989
  (de) => {
23993
- e.key && (n(e.key, de.url), N(!1), /^https?:\/\//i.test(de.url) && L(de.url));
23990
+ e.key && (n(e.key, de.url), w(!1), /^https?:\/\//i.test(de.url) && L(de.url));
23994
23991
  },
23995
23992
  [e.key, n, L]
23996
23993
  ), B = V(
@@ -24001,10 +23998,10 @@ const BC = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
24001
23998
  );
24002
23999
  ve(() => {
24003
24000
  const de = (Oe) => {
24004
- Oe.detail !== w && N(!1);
24001
+ Oe.detail !== _ && w(!1);
24005
24002
  };
24006
24003
  return document.addEventListener("rte-report-dropdown-opening", de), () => document.removeEventListener("rte-report-dropdown-opening", de);
24007
- }, [w]);
24004
+ }, [_]);
24008
24005
  const $ = [
24009
24006
  "variable-chip",
24010
24007
  "rte-report-url",
@@ -24041,11 +24038,11 @@ const BC = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
24041
24038
  if (!A) return;
24042
24039
  const de = (Oe) => {
24043
24040
  const Nt = X.current, Lt = x.current, $t = Oe.target;
24044
- Nt?.contains($t) || Lt?.contains($t) || N(!1);
24041
+ Nt?.contains($t) || Lt?.contains($t) || w(!1);
24045
24042
  };
24046
24043
  return document.addEventListener("mousedown", de), () => document.removeEventListener("mousedown", de);
24047
24044
  }, [A]);
24048
- const he = _ ? /* @__PURE__ */ y(
24045
+ const he = I ? /* @__PURE__ */ y(
24049
24046
  "span",
24050
24047
  {
24051
24048
  ref: q,
@@ -24057,7 +24054,7 @@ const BC = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
24057
24054
  "data-node-type": "report-url",
24058
24055
  contentEditable: !1,
24059
24056
  onClick: (de) => {
24060
- de.stopPropagation(), A ? N(!1) : D();
24057
+ de.stopPropagation(), A ? w(!1) : D();
24061
24058
  },
24062
24059
  children: /* @__PURE__ */ y(
24063
24060
  "i",
@@ -24088,11 +24085,11 @@ const BC = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
24088
24085
  return /^https?:\/\//i.test(de) ? up(de) : "";
24089
24086
  }, [m, b]), Ue = V(
24090
24087
  (de) => {
24091
- if (!b || c || !_) return;
24088
+ if (!b || c || !I) return;
24092
24089
  const Oe = de.target;
24093
- Oe.closest(".rte-report-chip-clear-host") || Oe.closest(".rte-report-dropdown-host") || (de.stopPropagation(), A ? N(!1) : D());
24090
+ Oe.closest(".rte-report-chip-clear-host") || Oe.closest(".rte-report-dropdown-host") || (de.stopPropagation(), A ? w(!1) : D());
24094
24091
  },
24095
- [b, c, _, A, D]
24092
+ [b, c, I, A, D]
24096
24093
  ), ze = /* @__PURE__ */ j(
24097
24094
  "span",
24098
24095
  {
@@ -24117,10 +24114,10 @@ const BC = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
24117
24114
  onBlur: F,
24118
24115
  onPaste: U,
24119
24116
  onClick: () => {
24120
- if (!_ || m.trim()) return;
24117
+ if (!I || m.trim()) return;
24121
24118
  X.current?.querySelector(".rte-report-dropdown-host")?.click();
24122
24119
  },
24123
- disabled: c || I,
24120
+ disabled: c || N,
24124
24121
  placeholder: Ce,
24125
24122
  style: { ...HC, width: De }
24126
24123
  }
@@ -24129,7 +24126,7 @@ const BC = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
24129
24126
  Ne
24130
24127
  ]
24131
24128
  }
24132
- ), Dt = _ && A && ne ? io(
24129
+ ), Dt = I && A && ne ? io(
24133
24130
  /* @__PURE__ */ y(
24134
24131
  "div",
24135
24132
  {
@@ -24252,11 +24249,11 @@ function fp(e, t) {
24252
24249
  F.trim() && (L.preventDefault(), u.current && (u.current.textContent = F), a(r.key, F), b(F));
24253
24250
  },
24254
24251
  [i, r.key, a, b]
24255
- ), _ = !l, k = ["variable-chip", e.chipClass];
24256
- _ && k.push("show-placeholder"), o && k.push(e.errorClass);
24257
- const R = Ul(r.tooltip), I = r.tooltip == null ? "" : typeof r.tooltip == "string" ? r.tooltip : JSON.stringify(r.tooltip), T = !!I && !Vh(I);
24258
- T && _ && k.push("rte-variable-with-icon");
24259
- const A = r.placeholder ?? e.defaultPlaceholder, N = /* @__PURE__ */ y(
24252
+ ), I = !l, k = ["variable-chip", e.chipClass];
24253
+ I && k.push("show-placeholder"), o && k.push(e.errorClass);
24254
+ const R = Ul(r.tooltip), N = r.tooltip == null ? "" : typeof r.tooltip == "string" ? r.tooltip : JSON.stringify(r.tooltip), T = !!N && !Vh(N);
24255
+ T && I && k.push("rte-variable-with-icon");
24256
+ const A = r.placeholder ?? e.defaultPlaceholder, w = /* @__PURE__ */ y(
24260
24257
  "span",
24261
24258
  {
24262
24259
  ref: u,
@@ -24270,20 +24267,20 @@ function fp(e, t) {
24270
24267
  onBlur: g,
24271
24268
  onPaste: v
24272
24269
  }
24273
- ), w = T ? /* @__PURE__ */ j("span", { className: "rte-markdown-host", children: [
24274
- N,
24270
+ ), _ = T ? /* @__PURE__ */ j("span", { className: "rte-markdown-host", children: [
24271
+ w,
24275
24272
  /* @__PURE__ */ y(
24276
24273
  Vr,
24277
24274
  {
24278
- tooltip: I,
24275
+ tooltip: N,
24279
24276
  className: "variable-info-icon",
24280
- hidden: !_,
24277
+ hidden: !I,
24281
24278
  dataVariableKey: r.key
24282
24279
  }
24283
24280
  )
24284
- ] }) : N, P = /* @__PURE__ */ j(ot, { children: [
24285
- w,
24286
- R ? /* @__PURE__ */ y(Zn, { data: R, hidden: !_ }) : null
24281
+ ] }) : w, P = /* @__PURE__ */ j(ot, { children: [
24282
+ _,
24283
+ R ? /* @__PURE__ */ y(Zn, { data: R, hidden: !I }) : null
24287
24284
  ] });
24288
24285
  return r.required ? /* @__PURE__ */ j(
24289
24286
  "span",
@@ -28276,8 +28273,8 @@ function Lk(e, t, n, r) {
28276
28273
  for (let b = 0; b < i.length; b++) {
28277
28274
  let g = i[(b + o) % i.length], v = !0;
28278
28275
  g < 0 && (v = !1, g = -g);
28279
- let _ = l.node(g - 1), k = l.index(g - 1);
28280
- if (_.canReplaceWith(k, k, m.type, m.marks))
28276
+ let I = l.node(g - 1), k = l.index(g - 1);
28277
+ if (I.canReplaceWith(k, k, m.type, m.marks))
28281
28278
  return e.replace(l.before(g), v ? a.after(g) : n, new te(Vp(r.content, 0, r.openStart, h), h, r.openEnd));
28282
28279
  }
28283
28280
  }
@@ -32339,8 +32336,8 @@ function iN(e, t, n, r, l, a, i) {
32339
32336
  n.maps[u].forEach((f, h, m, b) => {
32340
32337
  let g = b - m - (h - f);
32341
32338
  for (let v = 0; v < s.length; v += 3) {
32342
- let _ = s[v + 1];
32343
- if (_ < 0 || f > _ + c - d)
32339
+ let I = s[v + 1];
32340
+ if (I < 0 || f > I + c - d)
32344
32341
  continue;
32345
32342
  let k = s[v] + c - d;
32346
32343
  h >= k ? s[v + 1] = f <= k ? -2 : -1 : f >= c && g && (s[v] += g, s[v + 1] += g);
@@ -32699,12 +32696,12 @@ function bN(e, t, n) {
32699
32696
  let { node: r, fromOffset: l, toOffset: a, from: i, to: s } = e.docView.parseRange(t, n), o = e.domSelectionRange(), u, c = o.anchorNode;
32700
32697
  if (c && e.dom.contains(c.nodeType == 1 ? c : c.parentNode) && (u = [{ node: c, offset: o.anchorOffset }], ri(o) || u.push({ node: o.focusNode, offset: o.focusOffset })), st && e.input.lastKeyCode === 8)
32701
32698
  for (let g = a; g > l; g--) {
32702
- let v = r.childNodes[g - 1], _ = v.pmViewDesc;
32703
- if (v.nodeName == "BR" && !_) {
32699
+ let v = r.childNodes[g - 1], I = v.pmViewDesc;
32700
+ if (v.nodeName == "BR" && !I) {
32704
32701
  a = g;
32705
32702
  break;
32706
32703
  }
32707
- if (!_ || _.size)
32704
+ if (!I || I.size)
32708
32705
  break;
32709
32706
  }
32710
32707
  let d = e.state.doc, f = e.someProp("domParser") || _n.fromSchema(e.state.schema), h = d.resolve(i), m = null, b = f.parse(r, {
@@ -32742,12 +32739,12 @@ const vN = /^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|df
32742
32739
  function yN(e, t, n, r, l) {
32743
32740
  let a = e.input.compositionPendingChanges || (e.composing ? e.input.compositionID : 0);
32744
32741
  if (e.input.compositionPendingChanges = 0, t < 0) {
32745
- let A = e.input.lastSelectionTime > Date.now() - 50 ? e.input.lastSelectionOrigin : null, N = Bo(e, A);
32746
- if (N && !e.state.selection.eq(N)) {
32742
+ let A = e.input.lastSelectionTime > Date.now() - 50 ? e.input.lastSelectionOrigin : null, w = Bo(e, A);
32743
+ if (w && !e.state.selection.eq(w)) {
32747
32744
  if (st && dn && e.input.lastKeyCode === 13 && Date.now() - 100 < e.input.lastKeyCodeTime && e.someProp("handleKeyDown", (P) => P(e, Wn(13, "Enter"))))
32748
32745
  return;
32749
- let w = e.state.tr.setSelection(N);
32750
- A == "pointer" ? w.setMeta("pointer", !0) : A == "key" && w.scrollIntoView(), a && w.setMeta("composition", a), e.dispatch(w);
32746
+ let _ = e.state.tr.setSelection(w);
32747
+ A == "pointer" ? _.setMeta("pointer", !0) : A == "key" && _.scrollIntoView(), a && _.setMeta("composition", a), e.dispatch(_);
32751
32748
  }
32752
32749
  return;
32753
32750
  }
@@ -32767,15 +32764,15 @@ function yN(e, t, n, r, l) {
32767
32764
  if (u.sel) {
32768
32765
  let A = Md(e, e.state.doc, u.sel);
32769
32766
  if (A && !A.eq(e.state.selection)) {
32770
- let N = e.state.tr.setSelection(A);
32771
- a && N.setMeta("composition", a), e.dispatch(N);
32767
+ let w = e.state.tr.setSelection(A);
32768
+ a && w.setMeta("composition", a), e.dispatch(w);
32772
32769
  }
32773
32770
  }
32774
32771
  return;
32775
32772
  }
32776
32773
  e.state.selection.from < e.state.selection.to && m.start == m.endB && e.state.selection instanceof be && (m.start > e.state.selection.from && m.start <= e.state.selection.from + 2 && e.state.selection.from >= u.from ? m.start = e.state.selection.from : m.endA < e.state.selection.to && m.endA >= e.state.selection.to - 2 && e.state.selection.to <= u.to && (m.endB += e.state.selection.to - m.endA, m.endA = e.state.selection.to)), Ct && In <= 11 && m.endB == m.start + 1 && m.endA == m.start && m.start > u.from && u.doc.textBetween(m.start - u.from - 1, m.start - u.from + 1) == "  " && (m.start--, m.endA--, m.endB--);
32777
- let b = u.doc.resolveNoCache(m.start - u.from), g = u.doc.resolveNoCache(m.endB - u.from), v = c.resolve(m.start), _ = b.sameParent(g) && b.parent.inlineContent && v.end() >= m.endA;
32778
- if ((Rr && e.input.lastIOSEnter > Date.now() - 225 && (!_ || l.some((A) => A.nodeName == "DIV" || A.nodeName == "P")) || !_ && b.pos < u.doc.content.size && (!b.sameParent(g) || !b.parent.inlineContent) && b.pos < g.pos && !/\S/.test(u.doc.textBetween(b.pos, g.pos, "", ""))) && e.someProp("handleKeyDown", (A) => A(e, Wn(13, "Enter")))) {
32774
+ let b = u.doc.resolveNoCache(m.start - u.from), g = u.doc.resolveNoCache(m.endB - u.from), v = c.resolve(m.start), I = b.sameParent(g) && b.parent.inlineContent && v.end() >= m.endA;
32775
+ if ((Rr && e.input.lastIOSEnter > Date.now() - 225 && (!I || l.some((A) => A.nodeName == "DIV" || A.nodeName == "P")) || !I && b.pos < u.doc.content.size && (!b.sameParent(g) || !b.parent.inlineContent) && b.pos < g.pos && !/\S/.test(u.doc.textBetween(b.pos, g.pos, "", ""))) && e.someProp("handleKeyDown", (A) => A(e, Wn(13, "Enter")))) {
32779
32776
  e.input.lastIOSEnter = 0;
32780
32777
  return;
32781
32778
  }
@@ -32783,37 +32780,37 @@ function yN(e, t, n, r, l) {
32783
32780
  dn && st && e.domObserver.suppressSelectionUpdates();
32784
32781
  return;
32785
32782
  }
32786
- st && m.endB == m.start && (e.input.lastChromeDelete = Date.now()), dn && !_ && b.start() != g.start() && g.parentOffset == 0 && b.depth == g.depth && u.sel && u.sel.anchor == u.sel.head && u.sel.head == m.endA && (m.endB -= 2, g = u.doc.resolveNoCache(m.endB - u.from), setTimeout(() => {
32783
+ st && m.endB == m.start && (e.input.lastChromeDelete = Date.now()), dn && !I && b.start() != g.start() && g.parentOffset == 0 && b.depth == g.depth && u.sel && u.sel.anchor == u.sel.head && u.sel.head == m.endA && (m.endB -= 2, g = u.doc.resolveNoCache(m.endB - u.from), setTimeout(() => {
32787
32784
  e.someProp("handleKeyDown", function(A) {
32788
32785
  return A(e, Wn(13, "Enter"));
32789
32786
  });
32790
32787
  }, 20));
32791
- let k = m.start, R = m.endA, I = (A) => {
32792
- let N = A || e.state.tr.replace(k, R, u.doc.slice(m.start - u.from, m.endB - u.from));
32788
+ let k = m.start, R = m.endA, N = (A) => {
32789
+ let w = A || e.state.tr.replace(k, R, u.doc.slice(m.start - u.from, m.endB - u.from));
32793
32790
  if (u.sel) {
32794
- let w = Md(e, N.doc, u.sel);
32795
- w && !(st && e.composing && w.empty && (m.start != m.endB || e.input.lastChromeDelete < Date.now() - 100) && (w.head == k || w.head == N.mapping.map(R) - 1) || Ct && w.empty && w.head == k) && N.setSelection(w);
32791
+ let _ = Md(e, w.doc, u.sel);
32792
+ _ && !(st && e.composing && _.empty && (m.start != m.endB || e.input.lastChromeDelete < Date.now() - 100) && (_.head == k || _.head == w.mapping.map(R) - 1) || Ct && _.empty && _.head == k) && w.setSelection(_);
32796
32793
  }
32797
- return a && N.setMeta("composition", a), N.scrollIntoView();
32794
+ return a && w.setMeta("composition", a), w.scrollIntoView();
32798
32795
  }, T;
32799
- if (_)
32796
+ if (I)
32800
32797
  if (b.pos == g.pos) {
32801
32798
  Ct && In <= 11 && b.parentOffset == 0 && (e.domObserver.suppressSelectionUpdates(), setTimeout(() => hn(e), 20));
32802
- let A = I(e.state.tr.delete(k, R)), N = c.resolve(m.start).marksAcross(c.resolve(m.endA));
32803
- N && A.ensureMarks(N), e.dispatch(A);
32799
+ let A = N(e.state.tr.delete(k, R)), w = c.resolve(m.start).marksAcross(c.resolve(m.endA));
32800
+ w && A.ensureMarks(w), e.dispatch(A);
32804
32801
  } else if (
32805
32802
  // Adding or removing a mark
32806
32803
  m.endA == m.endB && (T = EN(b.parent.content.cut(b.parentOffset, g.parentOffset), v.parent.content.cut(v.parentOffset, m.endA - v.start())))
32807
32804
  ) {
32808
- let A = I(e.state.tr);
32805
+ let A = N(e.state.tr);
32809
32806
  T.type == "add" ? A.addMark(k, R, T.mark) : A.removeMark(k, R, T.mark), e.dispatch(A);
32810
32807
  } else if (b.parent.child(b.index()).isText && b.index() == g.index() - (g.textOffset ? 0 : 1)) {
32811
- let A = b.parent.textBetween(b.parentOffset, g.parentOffset), N = () => I(e.state.tr.insertText(A, k, R));
32812
- e.someProp("handleTextInput", (w) => w(e, k, R, A, N)) || e.dispatch(N());
32808
+ let A = b.parent.textBetween(b.parentOffset, g.parentOffset), w = () => N(e.state.tr.insertText(A, k, R));
32809
+ e.someProp("handleTextInput", (_) => _(e, k, R, A, w)) || e.dispatch(w());
32813
32810
  } else
32814
- e.dispatch(I());
32811
+ e.dispatch(N());
32815
32812
  else
32816
- e.dispatch(I());
32813
+ e.dispatch(N());
32817
32814
  }
32818
32815
  function Md(e, t, n) {
32819
32816
  return Math.max(n.anchor, n.head) > t.content.size ? null : Fo(e, t.resolve(n.anchor), t.resolve(n.head));
@@ -33706,8 +33703,8 @@ function Fm(e, t, n, r) {
33706
33703
  let v = G.empty;
33707
33704
  for (let k = m.length - 1; k >= 0; k--)
33708
33705
  v = G.from(m[k].copy(v));
33709
- let _ = e.tr.step(new Ze(t.pos - m.length, t.pos + a.nodeSize, t.pos + g, t.pos + a.nodeSize - g, new te(v, m.length, 0), 0, !0));
33710
- n(_.scrollIntoView());
33706
+ let I = e.tr.step(new Ze(t.pos - m.length, t.pos + a.nodeSize, t.pos + g, t.pos + a.nodeSize - g, new te(v, m.length, 0), 0, !0));
33707
+ n(I.scrollIntoView());
33711
33708
  }
33712
33709
  return !0;
33713
33710
  }
@@ -34114,8 +34111,8 @@ function n2(e, t) {
34114
34111
  options: u.options,
34115
34112
  storage: u.storage,
34116
34113
  editor: t
34117
- }, f = e.reduce((v, _) => {
34118
- const k = le(_, "extendNodeSchema", d);
34114
+ }, f = e.reduce((v, I) => {
34115
+ const k = le(I, "extendNodeSchema", d);
34119
34116
  return {
34120
34117
  ...v,
34121
34118
  ...k ? k(u) : {}
@@ -34135,8 +34132,8 @@ function n2(e, t) {
34135
34132
  defining: xe(le(u, "defining", d)),
34136
34133
  isolating: xe(le(u, "isolating", d)),
34137
34134
  attrs: Object.fromEntries(c.map((v) => {
34138
- var _;
34139
- return [v.name, { default: (_ = v?.attribute) === null || _ === void 0 ? void 0 : _.default }];
34135
+ var I;
34136
+ return [v.name, { default: (I = v?.attribute) === null || I === void 0 ? void 0 : I.default }];
34140
34137
  }))
34141
34138
  }), m = xe(le(u, "parseHTML", d));
34142
34139
  m && (h.parseDOM = m.map((v) => Ud(v, c)));
@@ -34154,10 +34151,10 @@ function n2(e, t) {
34154
34151
  storage: u.storage,
34155
34152
  editor: t
34156
34153
  }, f = e.reduce((g, v) => {
34157
- const _ = le(v, "extendMarkSchema", d);
34154
+ const I = le(v, "extendMarkSchema", d);
34158
34155
  return {
34159
34156
  ...g,
34160
- ..._ ? _(u) : {}
34157
+ ...I ? I(u) : {}
34161
34158
  };
34162
34159
  }, {}), h = zd({
34163
34160
  ...f,
@@ -34250,7 +34247,7 @@ function aa(e) {
34250
34247
  }), g = {
34251
34248
  from: r - (h[0].length - a.length),
34252
34249
  to: l
34253
- }, { commands: v, chain: _, can: k } = new si({
34250
+ }, { commands: v, chain: I, can: k } = new si({
34254
34251
  editor: n,
34255
34252
  state: b
34256
34253
  });
@@ -34259,7 +34256,7 @@ function aa(e) {
34259
34256
  range: g,
34260
34257
  match: h,
34261
34258
  commands: v,
34262
- chain: _,
34259
+ chain: I,
34263
34260
  can: k
34264
34261
  }) === null || !m.steps.length || (m.setMeta(s, {
34265
34262
  transform: m,
@@ -34428,9 +34425,9 @@ function c2(e) {
34428
34425
  u2(v, a.find, i).forEach((k) => {
34429
34426
  if (k.index === void 0)
34430
34427
  return;
34431
- const R = b + k.index + 1, I = R + k[0].length, T = {
34428
+ const R = b + k.index + 1, N = R + k[0].length, T = {
34432
34429
  from: n.tr.mapping.map(R),
34433
- to: n.tr.mapping.map(I)
34430
+ to: n.tr.mapping.map(N)
34434
34431
  }, A = a.handler({
34435
34432
  state: n,
34436
34433
  range: T,
@@ -34518,19 +34515,19 @@ function f2(e) {
34518
34515
  }
34519
34516
  },
34520
34517
  appendTransaction: (d, f, h) => {
34521
- const m = d[0], b = m.getMeta("uiEvent") === "paste" && !l, g = m.getMeta("uiEvent") === "drop" && !a, v = m.getMeta("applyPasteRules"), _ = !!v;
34522
- if (!b && !g && !_)
34518
+ const m = d[0], b = m.getMeta("uiEvent") === "paste" && !l, g = m.getMeta("uiEvent") === "drop" && !a, v = m.getMeta("applyPasteRules"), I = !!v;
34519
+ if (!b && !g && !I)
34523
34520
  return;
34524
- if (_) {
34525
- let { text: I } = v;
34526
- typeof I == "string" ? I = I : I = Qo(G.from(I), h.schema);
34527
- const { from: T } = v, A = T + I.length, N = d2(I);
34521
+ if (I) {
34522
+ let { text: N } = v;
34523
+ typeof N == "string" ? N = N : N = Qo(G.from(N), h.schema);
34524
+ const { from: T } = v, A = T + N.length, w = d2(N);
34528
34525
  return o({
34529
34526
  rule: c,
34530
34527
  state: h,
34531
34528
  from: T,
34532
34529
  to: { b: A },
34533
- pasteEvt: N
34530
+ pasteEvt: w
34534
34531
  });
34535
34532
  }
34536
34533
  const k = f.doc.content.findDiffStart(h.doc.content), R = f.doc.content.findDiffEnd(h.doc.content);
@@ -35297,11 +35294,11 @@ function Ks(e, t, n = {}) {
35297
35294
  e.doc.nodesBetween(h, m, (b, g) => {
35298
35295
  if (!b.isText && !b.marks.length)
35299
35296
  return;
35300
- const v = Math.max(h, g), _ = Math.min(m, g + b.nodeSize), k = _ - v;
35297
+ const v = Math.max(h, g), I = Math.min(m, g + b.nodeSize), k = I - v;
35301
35298
  i += k, s.push(...b.marks.map((R) => ({
35302
35299
  mark: R,
35303
35300
  from: v,
35304
- to: _
35301
+ to: I
35305
35302
  })));
35306
35303
  });
35307
35304
  }), i === 0)
@@ -35463,21 +35460,21 @@ const yw = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
35463
35460
  return !1;
35464
35461
  if (l) {
35465
35462
  let v = G.empty;
35466
- const _ = o.index(-1) ? 1 : o.index(-2) ? 2 : 3;
35467
- for (let N = o.depth - _; N >= o.depth - 3; N -= 1)
35468
- v = G.from(o.node(N).copy(v));
35463
+ const I = o.index(-1) ? 1 : o.index(-2) ? 2 : 3;
35464
+ for (let w = o.depth - I; w >= o.depth - 3; w -= 1)
35465
+ v = G.from(o.node(w).copy(v));
35469
35466
  const k = o.indexAfter(-1) < o.node(-2).childCount ? 1 : o.indexAfter(-2) < o.node(-3).childCount ? 2 : 3, R = {
35470
35467
  ...ya(f, o.node().type.name, o.node().attrs),
35471
35468
  ...t
35472
- }, I = ((i = s.contentMatch.defaultType) === null || i === void 0 ? void 0 : i.createAndFill(R)) || void 0;
35473
- v = v.append(G.from(s.createAndFill(null, I) || void 0));
35474
- const T = o.before(o.depth - (_ - 1));
35475
- n.replace(T, o.after(-k), new te(v, 4 - _, 0));
35469
+ }, N = ((i = s.contentMatch.defaultType) === null || i === void 0 ? void 0 : i.createAndFill(R)) || void 0;
35470
+ v = v.append(G.from(s.createAndFill(null, N) || void 0));
35471
+ const T = o.before(o.depth - (I - 1));
35472
+ n.replace(T, o.after(-k), new te(v, 4 - I, 0));
35476
35473
  let A = -1;
35477
- n.doc.nodesBetween(T, n.doc.content.size, (N, w) => {
35474
+ n.doc.nodesBetween(T, n.doc.content.size, (w, _) => {
35478
35475
  if (A > -1)
35479
35476
  return !1;
35480
- N.isTextblock && N.content.size === 0 && (A = w + 1);
35477
+ w.isTextblock && w.content.size === 0 && (A = _ + 1);
35481
35478
  }), A > -1 && n.setSelection(be.near(n.doc.resolve(A))), n.scrollIntoView();
35482
35479
  }
35483
35480
  return !0;
@@ -35497,11 +35494,11 @@ const yw = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
35497
35494
  if (!fn(n.doc, o.pos, 2))
35498
35495
  return !1;
35499
35496
  if (l) {
35500
- const { selection: v, storedMarks: _ } = r, { splittableMarks: k } = a.extensionManager, R = _ || v.$to.parentOffset && v.$from.marks();
35497
+ const { selection: v, storedMarks: I } = r, { splittableMarks: k } = a.extensionManager, R = I || v.$to.parentOffset && v.$from.marks();
35501
35498
  if (n.split(o.pos, 2, g).scrollIntoView(), !R || !l)
35502
35499
  return !0;
35503
- const I = R.filter((T) => k.includes(T.type.name));
35504
- n.ensureMarks(I);
35500
+ const N = R.filter((T) => k.includes(T.type.name));
35501
+ n.ensureMarks(N);
35505
35502
  }
35506
35503
  return !0;
35507
35504
  }, is = (e, t) => {
@@ -35523,18 +35520,18 @@ const yw = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
35523
35520
  const l = e.doc.nodeAt(r);
35524
35521
  return n.node.type === l?.type && Fn(e.doc, r) && e.join(r), !0;
35525
35522
  }, Tw = (e, t, n, r = {}) => ({ editor: l, tr: a, state: i, dispatch: s, chain: o, commands: u, can: c }) => {
35526
- const { extensions: d, splittableMarks: f } = l.extensionManager, h = nt(e, i.schema), m = nt(t, i.schema), { selection: b, storedMarks: g } = i, { $from: v, $to: _ } = b, k = v.blockRange(_), R = g || b.$to.parentOffset && b.$from.marks();
35523
+ const { extensions: d, splittableMarks: f } = l.extensionManager, h = nt(e, i.schema), m = nt(t, i.schema), { selection: b, storedMarks: g } = i, { $from: v, $to: I } = b, k = v.blockRange(I), R = g || b.$to.parentOffset && b.$from.marks();
35527
35524
  if (!k)
35528
35525
  return !1;
35529
- const I = Zo((T) => Yd(T.type.name, d))(b);
35530
- if (k.depth >= 1 && I && k.depth - I.depth <= 1) {
35531
- if (I.node.type === h)
35526
+ const N = Zo((T) => Yd(T.type.name, d))(b);
35527
+ if (k.depth >= 1 && N && k.depth - N.depth <= 1) {
35528
+ if (N.node.type === h)
35532
35529
  return u.liftListItem(m);
35533
- if (Yd(I.node.type.name, d) && h.validContent(I.node.content) && s)
35534
- return o().command(() => (a.setNodeMarkup(I.pos, h), !0)).command(() => is(a, h)).command(() => ss(a, h)).run();
35530
+ if (Yd(N.node.type.name, d) && h.validContent(N.node.content) && s)
35531
+ return o().command(() => (a.setNodeMarkup(N.pos, h), !0)).command(() => is(a, h)).command(() => ss(a, h)).run();
35535
35532
  }
35536
35533
  return !n || !R || !s ? o().command(() => c().wrapInList(h, r) ? !0 : u.clearNodes()).wrapInList(h, r).command(() => is(a, h)).command(() => ss(a, h)).run() : o().command(() => {
35537
- const T = c().wrapInList(h, r), A = R.filter((N) => f.includes(N.type.name));
35534
+ const T = c().wrapInList(h, r), A = R.filter((w) => f.includes(w.type.name));
35538
35535
  return a.ensureMarks(A), T ? !0 : u.clearNodes();
35539
35536
  }).wrapInList(h, r).command(() => is(a, h)).command(() => ss(a, h)).run();
35540
35537
  }, xw = (e, t = {}, n = {}) => ({ state: r, commands: l }) => {
@@ -35600,8 +35597,8 @@ const yw = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
35600
35597
  ...t
35601
35598
  }), i && b.marks.length && b.marks.forEach((v) => {
35602
35599
  if (i === v.type) {
35603
- const _ = Math.max(g, u), k = Math.min(g + b.nodeSize, c);
35604
- n.addMark(_, k, i.create({
35600
+ const I = Math.max(g, u), k = Math.min(g + b.nodeSize, c);
35601
+ n.addMark(I, k, i.create({
35605
35602
  ...v.attrs,
35606
35603
  ...t
35607
35604
  }));
@@ -36618,68 +36615,68 @@ function jw() {
36618
36615
  var e = ye, t = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
36619
36616
  function n(k) {
36620
36617
  {
36621
- for (var R = arguments.length, I = new Array(R > 1 ? R - 1 : 0), T = 1; T < R; T++)
36622
- I[T - 1] = arguments[T];
36623
- r("error", k, I);
36618
+ for (var R = arguments.length, N = new Array(R > 1 ? R - 1 : 0), T = 1; T < R; T++)
36619
+ N[T - 1] = arguments[T];
36620
+ r("error", k, N);
36624
36621
  }
36625
36622
  }
36626
- function r(k, R, I) {
36623
+ function r(k, R, N) {
36627
36624
  {
36628
36625
  var T = t.ReactDebugCurrentFrame, A = T.getStackAddendum();
36629
- A !== "" && (R += "%s", I = I.concat([A]));
36630
- var N = I.map(function(w) {
36631
- return String(w);
36626
+ A !== "" && (R += "%s", N = N.concat([A]));
36627
+ var w = N.map(function(_) {
36628
+ return String(_);
36632
36629
  });
36633
- N.unshift("Warning: " + R), Function.prototype.apply.call(console[k], console, N);
36630
+ w.unshift("Warning: " + R), Function.prototype.apply.call(console[k], console, w);
36634
36631
  }
36635
36632
  }
36636
36633
  function l(k, R) {
36637
36634
  return k === R && (k !== 0 || 1 / k === 1 / R) || k !== k && R !== R;
36638
36635
  }
36639
36636
  var a = typeof Object.is == "function" ? Object.is : l, i = e.useState, s = e.useEffect, o = e.useLayoutEffect, u = e.useDebugValue, c = !1, d = !1;
36640
- function f(k, R, I) {
36637
+ function f(k, R, N) {
36641
36638
  c || e.startTransition !== void 0 && (c = !0, n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
36642
36639
  var T = R();
36643
36640
  if (!d) {
36644
36641
  var A = R();
36645
36642
  a(T, A) || (n("The result of getSnapshot should be cached to avoid an infinite loop"), d = !0);
36646
36643
  }
36647
- var N = i({
36644
+ var w = i({
36648
36645
  inst: {
36649
36646
  value: T,
36650
36647
  getSnapshot: R
36651
36648
  }
36652
- }), w = N[0].inst, P = N[1];
36649
+ }), _ = w[0].inst, P = w[1];
36653
36650
  return o(function() {
36654
- w.value = T, w.getSnapshot = R, h(w) && P({
36655
- inst: w
36651
+ _.value = T, _.getSnapshot = R, h(_) && P({
36652
+ inst: _
36656
36653
  });
36657
36654
  }, [k, T, R]), s(function() {
36658
- h(w) && P({
36659
- inst: w
36655
+ h(_) && P({
36656
+ inst: _
36660
36657
  });
36661
36658
  var L = function() {
36662
- h(w) && P({
36663
- inst: w
36659
+ h(_) && P({
36660
+ inst: _
36664
36661
  });
36665
36662
  };
36666
36663
  return k(L);
36667
36664
  }, [k]), u(T), T;
36668
36665
  }
36669
36666
  function h(k) {
36670
- var R = k.getSnapshot, I = k.value;
36667
+ var R = k.getSnapshot, N = k.value;
36671
36668
  try {
36672
36669
  var T = R();
36673
- return !a(I, T);
36670
+ return !a(N, T);
36674
36671
  } catch {
36675
36672
  return !0;
36676
36673
  }
36677
36674
  }
36678
- function m(k, R, I) {
36675
+ function m(k, R, N) {
36679
36676
  return R();
36680
36677
  }
36681
- var b = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", g = !b, v = g ? m : f, _ = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : v;
36682
- cs.useSyncExternalStore = _, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
36678
+ var b = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", g = !b, v = g ? m : f, I = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : v;
36679
+ cs.useSyncExternalStore = I, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
36683
36680
  }()), cs;
36684
36681
  }
36685
36682
  process.env.NODE_ENV === "production" ? Qs.exports = Yw() : Qs.exports = jw();
@@ -36857,22 +36854,22 @@ function n_() {
36857
36854
  } else b = m.current;
36858
36855
  m = s(function() {
36859
36856
  function v(T) {
36860
- if (!_) {
36861
- if (_ = !0, k = T, T = f(T), h !== void 0 && b.hasValue) {
36857
+ if (!I) {
36858
+ if (I = !0, k = T, T = f(T), h !== void 0 && b.hasValue) {
36862
36859
  var A = b.value;
36863
36860
  if (h(A, T)) return R = A;
36864
36861
  }
36865
36862
  return R = T;
36866
36863
  }
36867
36864
  if (A = R, r(k, T)) return A;
36868
- var N = f(T);
36869
- return h !== void 0 && h(A, N) ? A : (k = T, R = N);
36865
+ var w = f(T);
36866
+ return h !== void 0 && h(A, w) ? A : (k = T, R = w);
36870
36867
  }
36871
- var _ = !1, k, R, I = d === void 0 ? null : d;
36868
+ var I = !1, k, R, N = d === void 0 ? null : d;
36872
36869
  return [function() {
36873
36870
  return v(c());
36874
- }, I === null ? void 0 : function() {
36875
- return v(I());
36871
+ }, N === null ? void 0 : function() {
36872
+ return v(N());
36876
36873
  }];
36877
36874
  }, [c, d, f, h]);
36878
36875
  var g = l(u, m[0], m[1]);
@@ -36907,9 +36904,9 @@ function r_() {
36907
36904
  value: null
36908
36905
  }, b.current = g) : g = b.current;
36909
36906
  var v = s(function() {
36910
- var I = !1, T, A, N = function(F) {
36911
- if (!I) {
36912
- I = !0, T = F;
36907
+ var N = !1, T, A, w = function(F) {
36908
+ if (!N) {
36909
+ N = !0, T = F;
36913
36910
  var U = h(F);
36914
36911
  if (m !== void 0 && g.hasValue) {
36915
36912
  var D = g.value;
@@ -36923,13 +36920,13 @@ function r_() {
36923
36920
  return B;
36924
36921
  var $ = h(F);
36925
36922
  return m !== void 0 && m(B, $) ? B : (T = F, A = $, $);
36926
- }, w = f === void 0 ? null : f, P = function() {
36927
- return N(d());
36928
- }, L = w === null ? void 0 : function() {
36929
- return N(w());
36923
+ }, _ = f === void 0 ? null : f, P = function() {
36924
+ return w(d());
36925
+ }, L = _ === null ? void 0 : function() {
36926
+ return w(_());
36930
36927
  };
36931
36928
  return [P, L];
36932
- }, [d, f, h, m]), _ = v[0], k = v[1], R = l(c, _, k);
36929
+ }, [d, f, h, m]), I = v[0], k = v[1], R = l(c, I, k);
36933
36930
  return i(function() {
36934
36931
  g.hasValue = !0, g.value = R;
36935
36932
  }, [R]), o(R), R;
@@ -38668,7 +38665,7 @@ const mI = ({ expanded: e, onToggle: t }) => /* @__PURE__ */ j(
38668
38665
  const v = {
38669
38666
  "--rte-richtext-min-height": `${s}px`,
38670
38667
  "--rte-richtext-max-height": `${u}px`
38671
- }, _ = [
38668
+ }, I = [
38672
38669
  "rte-richtext-wrapper",
38673
38670
  c ? "rte-richtext-toggleable" : "",
38674
38671
  d ? "rte-richtext-expanded" : ""
@@ -38678,7 +38675,7 @@ const mI = ({ expanded: e, onToggle: t }) => /* @__PURE__ */ j(
38678
38675
  {
38679
38676
  className: `rte-richtext-container ${d ? "rte-richtext-host-expanded" : ""} ${l ? "rte-richtext-error" : ""}`,
38680
38677
  "data-key": e.key,
38681
- children: /* @__PURE__ */ j("div", { className: _, style: v, children: [
38678
+ children: /* @__PURE__ */ j("div", { className: I, style: v, children: [
38682
38679
  /* @__PURE__ */ y(Zw, { editor: b }),
38683
38680
  c && /* @__PURE__ */ y(mI, { expanded: d, onToggle: g })
38684
38681
  ] })
@@ -39479,12 +39476,12 @@ const ub = ye.memo(
39479
39476
  }) => {
39480
39477
  const h = V(
39481
39478
  (m) => {
39482
- if (m.reduce((v, _) => v + _.size, 0) > 52428800) {
39479
+ if (m.reduce((v, I) => v + I.size, 0) > 52428800) {
39483
39480
  const v = [];
39484
- let _ = 0;
39481
+ let I = 0;
39485
39482
  for (const k of m) {
39486
- if (_ + k.size > 52428800) break;
39487
- v.push(k), _ += k.size;
39483
+ if (I + k.size > 52428800) break;
39484
+ v.push(k), I += k.size;
39488
39485
  }
39489
39486
  i(v);
39490
39487
  } else
@@ -39626,14 +39623,14 @@ const cf = 9999, bO = (e) => {
39626
39623
  editorMinHeight: b,
39627
39624
  editorPadding: g,
39628
39625
  className: v,
39629
- videoUrlParse: _,
39626
+ videoUrlParse: I,
39630
39627
  videoUpload: k,
39631
39628
  reportAnalyze: R,
39632
- reportListFetch: I,
39629
+ reportListFetch: N,
39633
39630
  onReportGoGenerate: T,
39634
39631
  reportNameResolve: A,
39635
- onViewReport: N,
39636
- hideCurrentSessionReport: w,
39632
+ onViewReport: w,
39633
+ hideCurrentSessionReport: _,
39637
39634
  markdownAnalyze: P,
39638
39635
  markdownNameAnalyze: L,
39639
39636
  agentOptions: F,
@@ -40116,12 +40113,12 @@ const cf = 9999, bO = (e) => {
40116
40113
  onFileChange: mb,
40117
40114
  thumbnails: Nt,
40118
40115
  onThumbnailChange: bb,
40119
- videoUrlParse: _,
40116
+ videoUrlParse: I,
40120
40117
  videoUpload: k,
40121
- reportListFetch: I,
40118
+ reportListFetch: N,
40122
40119
  onReportGoGenerate: T,
40123
- onViewReport: N,
40124
- hideCurrentSessionReport: w,
40120
+ onViewReport: w,
40121
+ hideCurrentSessionReport: _,
40125
40122
  reportNames: Vn,
40126
40123
  onClearReport: gb,
40127
40124
  onResolveMultiName: vb,
@@ -40287,8 +40284,8 @@ const cf = 9999, bO = (e) => {
40287
40284
  onBatchSizeChange: h,
40288
40285
  onLoadNextPage: () => u?.(),
40289
40286
  onStartAutoLoad: () => {
40290
- const _ = g();
40291
- c?.(_);
40287
+ const I = g();
40288
+ c?.(I);
40292
40289
  },
40293
40290
  onStopLoad: () => d?.()
40294
40291
  }
@@ -40300,23 +40297,23 @@ const cf = 9999, bO = (e) => {
40300
40297
  current: e,
40301
40298
  pageSize: n,
40302
40299
  total: r,
40303
- onChange: (_) => o(_),
40300
+ onChange: (I) => o(I),
40304
40301
  showSizeChanger: !1,
40305
40302
  showQuickJumper: !1,
40306
40303
  showTotal: () => "",
40307
- itemRender: (_, k, R) => {
40308
- const I = l.includes(_);
40304
+ itemRender: (I, k, R) => {
40305
+ const N = l.includes(I);
40309
40306
  return k === "prev" || k === "next" || k === "jump-prev" || k === "jump-next" ? /* @__PURE__ */ y("div", { className: "pageBox", children: R }) : /* @__PURE__ */ j(
40310
40307
  "div",
40311
40308
  {
40312
40309
  className: "pageBox",
40313
40310
  style: {
40314
- backgroundColor: e === _ ? "#2563EB" : "#f5f5f5",
40315
- color: e === _ ? "#fff" : I ? "#171717" : "#a3a3a3"
40311
+ backgroundColor: e === I ? "#2563EB" : "#f5f5f5",
40312
+ color: e === I ? "#fff" : N ? "#171717" : "#a3a3a3"
40316
40313
  },
40317
40314
  children: [
40318
- _,
40319
- !I && /* @__PURE__ */ y("span", { className: "unload_spot" })
40315
+ I,
40316
+ !N && /* @__PURE__ */ y("span", { className: "unload_spot" })
40320
40317
  ]
40321
40318
  }
40322
40319
  );
@@ -40495,28 +40492,28 @@ const GI = ({
40495
40492
  onChange: a,
40496
40493
  ...i
40497
40494
  }) => {
40498
- const [s, o] = ee(""), [u, c] = ee(0), [d, f] = ee(!1), [h, m] = ee(!1), [b, g] = ee(!1), v = re(void 0), _ = re(void 0), k = re(e), R = re(u), I = re(h), T = re(s);
40495
+ const [s, o] = ee(""), [u, c] = ee(0), [d, f] = ee(!1), [h, m] = ee(!1), [b, g] = ee(!1), v = re(void 0), I = re(void 0), k = re(e), R = re(u), N = re(h), T = re(s);
40499
40496
  ve(() => {
40500
- k.current = e, R.current = u, I.current = h, T.current = s;
40497
+ k.current = e, R.current = u, N.current = h, T.current = s;
40501
40498
  });
40502
40499
  const A = V((D, E) => {
40503
40500
  let B = 0;
40504
40501
  g(!0);
40505
40502
  const $ = () => {
40506
- B < D.length ? (o(D.slice(0, B + 1)), B++, _.current = window.setTimeout($, n)) : (g(!1), E?.());
40503
+ B < D.length ? (o(D.slice(0, B + 1)), B++, I.current = window.setTimeout($, n)) : (g(!1), E?.());
40507
40504
  };
40508
40505
  $();
40509
- }, [n]), N = V((D) => {
40506
+ }, [n]), w = V((D) => {
40510
40507
  let E = T.current.length;
40511
40508
  const B = () => {
40512
- E > 0 ? (o(T.current.slice(0, E - 1)), E--, _.current = window.setTimeout(B, n / 2)) : D?.();
40509
+ E > 0 ? (o(T.current.slice(0, E - 1)), E--, I.current = window.setTimeout(B, n / 2)) : D?.();
40513
40510
  };
40514
40511
  B();
40515
- }, [n]), w = V(() => {
40516
- if (k.current.length === 0 || I.current) return;
40512
+ }, [n]), _ = V(() => {
40513
+ if (k.current.length === 0 || N.current) return;
40517
40514
  f(!0);
40518
40515
  const D = k.current[R.current];
40519
- T.current ? N(() => {
40516
+ T.current ? w(() => {
40520
40517
  A(D, () => {
40521
40518
  v.current = window.setTimeout(() => {
40522
40519
  c((E) => (E + 1) % k.current.length), f(!1);
@@ -40527,12 +40524,12 @@ const GI = ({
40527
40524
  c((E) => (E + 1) % k.current.length), f(!1);
40528
40525
  }, 2e3);
40529
40526
  });
40530
- }, [N, A]);
40531
- return ve(() => (r && e.length > 0 && !h && w(), () => {
40532
- v.current && window.clearTimeout(v.current), _.current && window.clearTimeout(_.current);
40533
- }), [u, h, r, e.length, w]), ve(() => {
40534
- !d && r && e.length > 0 && !h && w();
40535
- }, [u, d, r, e.length, h, w]), /* @__PURE__ */ j("div", { style: { position: "relative" }, children: [
40527
+ }, [w, A]);
40528
+ return ve(() => (r && e.length > 0 && !h && _(), () => {
40529
+ v.current && window.clearTimeout(v.current), I.current && window.clearTimeout(I.current);
40530
+ }), [u, h, r, e.length, _]), ve(() => {
40531
+ !d && r && e.length > 0 && !h && _();
40532
+ }, [u, d, r, e.length, h, _]), /* @__PURE__ */ j("div", { style: { position: "relative" }, children: [
40536
40533
  /* @__PURE__ */ y(
40537
40534
  lo,
40538
40535
  {
@@ -40542,7 +40539,7 @@ const GI = ({
40542
40539
  a?.(D.target.value), i.onChange?.(D);
40543
40540
  },
40544
40541
  onFocus: (D) => {
40545
- m(!0), v.current && window.clearTimeout(v.current), _.current && window.clearTimeout(_.current), f(!1), g(!1), i.onFocus?.(D);
40542
+ m(!0), v.current && window.clearTimeout(v.current), I.current && window.clearTimeout(I.current), f(!1), g(!1), i.onFocus?.(D);
40546
40543
  },
40547
40544
  onBlur: (D) => {
40548
40545
  m(!1), !l && e.length > 0 && (o(""), c(0)), i.onBlur?.(D);
@@ -40676,7 +40673,7 @@ const QI = ({
40676
40673
  ...h
40677
40674
  // 其他原生属性
40678
40675
  }) => {
40679
- const [m, b] = ee(""), [g, v] = ee(0), [_, k] = ee(!1), [R, I] = ee(!1), [T, A] = ee(!1), [N, w] = ee(l || ""), P = re(void 0), L = re(void 0), F = re(e), U = re(g), D = re(R), E = re(m), B = re(null);
40676
+ const [m, b] = ee(""), [g, v] = ee(0), [I, k] = ee(!1), [R, N] = ee(!1), [T, A] = ee(!1), [w, _] = ee(l || ""), P = re(void 0), L = re(void 0), F = re(e), U = re(g), D = re(R), E = re(m), B = re(null);
40680
40677
  ve(() => {
40681
40678
  F.current = e, U.current = g, D.current = R, E.current = m;
40682
40679
  });
@@ -40712,28 +40709,28 @@ const QI = ({
40712
40709
  ve(() => (r && e.length > 0 && !R && X(), () => {
40713
40710
  P.current && window.clearTimeout(P.current), L.current && window.clearTimeout(L.current);
40714
40711
  }), [g, R, r, e.length, X]), ve(() => {
40715
- !_ && r && e.length > 0 && !R && X();
40716
- }, [g, _, r, e.length, R, X]);
40712
+ !I && r && e.length > 0 && !R && X();
40713
+ }, [g, I, r, e.length, R, X]);
40717
40714
  const x = (ue) => {
40718
- I(!0), P.current && window.clearTimeout(P.current), L.current && window.clearTimeout(L.current), k(!1), A(!1), h.onFocus?.(ue);
40715
+ N(!0), P.current && window.clearTimeout(P.current), L.current && window.clearTimeout(L.current), k(!1), A(!1), h.onFocus?.(ue);
40719
40716
  }, ne = (ue) => {
40720
- I(!1), !l && e.length > 0 && (b(""), v(0)), h.onBlur?.(ue);
40717
+ N(!1), !l && e.length > 0 && (b(""), v(0)), h.onBlur?.(ue);
40721
40718
  }, ie = (ue) => {
40722
40719
  const we = ue.target.value;
40723
- s && we.length > s || (a ? a(we) : w(we), h.onChange?.(ue));
40720
+ s && we.length > s || (a ? a(we) : _(we), h.onChange?.(ue));
40724
40721
  }, M = () => {
40725
- const ue = a ? l : N;
40726
- ue.trim() && !c && (i?.(ue), a || w(""));
40722
+ const ue = a ? l : w;
40723
+ ue.trim() && !c && (i?.(ue), a || _(""));
40727
40724
  }, he = (ue) => {
40728
40725
  (ue.ctrlKey || ue.metaKey) && ue.key === "Enter" && (ue.preventDefault(), M()), h.onKeyDown?.(ue);
40729
- }, Ne = a ? l : N, Ce = c || !Ne.trim() || (s ? Ne.length > s : !1);
40726
+ }, Ne = a ? l : w, Ce = c || !Ne.trim() || (s ? Ne.length > s : !1);
40730
40727
  return /* @__PURE__ */ j("div", { style: { position: "relative", ...f }, children: [
40731
40728
  /* @__PURE__ */ j("div", { style: { position: "relative" }, children: [
40732
40729
  /* @__PURE__ */ y(
40733
40730
  "textarea",
40734
40731
  {
40735
40732
  ref: B,
40736
- value: a ? l : N,
40733
+ value: a ? l : w,
40737
40734
  onChange: ie,
40738
40735
  onFocus: (ue) => {
40739
40736
  ue.target.style.borderColor = "#1890ff", ue.target.style.boxShadow = "0 0 0 2px rgba(24, 144, 255, 0.2)", x(ue);
@@ -40966,24 +40963,24 @@ const db = ({
40966
40963
  style: m,
40967
40964
  ...b
40968
40965
  }) => {
40969
- const g = re(null), [v, _] = ee(!1), [k, R] = ee(!1), [I, T] = ee(!1), A = V(() => {
40970
- g.current && (g.current.play(), _(!0), c?.());
40971
- }, [c]), N = V(() => {
40972
- g.current && (g.current.pause(), _(!1), d?.());
40973
- }, [d]), w = V(($) => {
40974
- $.stopPropagation(), v ? N() : A();
40975
- }, [v, A, N]), P = V(() => {
40966
+ const g = re(null), [v, I] = ee(!1), [k, R] = ee(!1), [N, T] = ee(!1), A = V(() => {
40967
+ g.current && (g.current.play(), I(!0), c?.());
40968
+ }, [c]), w = V(() => {
40969
+ g.current && (g.current.pause(), I(!1), d?.());
40970
+ }, [d]), _ = V(($) => {
40971
+ $.stopPropagation(), v ? w() : A();
40972
+ }, [v, A, w]), P = V(() => {
40976
40973
  R(!0), s && !v && A();
40977
40974
  }, [s, v, A]), L = V(() => {
40978
- R(!1), s && v && N();
40979
- }, [s, v, N]), F = V(() => {
40975
+ R(!1), s && v && w();
40976
+ }, [s, v, w]), F = V(() => {
40980
40977
  T(!0), u?.();
40981
40978
  }, [u]), U = V(() => {
40982
- _(!0), c?.();
40979
+ I(!0), c?.();
40983
40980
  }, [c]), D = V(() => {
40984
- _(!1), d?.();
40981
+ I(!1), d?.();
40985
40982
  }, [d]), E = V(() => {
40986
- _(!1), f?.();
40983
+ I(!1), f?.();
40987
40984
  }, [f]), B = V(($) => {
40988
40985
  o?.($);
40989
40986
  }, [o]);
@@ -41026,11 +41023,11 @@ const db = ({
41026
41023
  "div",
41027
41024
  {
41028
41025
  className: `video-play-button ${k ? "hovered" : ""}`,
41029
- onClick: w,
41026
+ onClick: _,
41030
41027
  children: v ? /* @__PURE__ */ y(Wb, { className: "play-icon" }) : /* @__PURE__ */ y(Yb, { className: "play-icon" })
41031
41028
  }
41032
41029
  ),
41033
- !I && /* @__PURE__ */ y("div", { className: "video-loading-mask", children: /* @__PURE__ */ y("div", { className: "loading-spinner" }) })
41030
+ !N && /* @__PURE__ */ y("div", { className: "video-loading-mask", children: /* @__PURE__ */ y("div", { className: "loading-spinner" }) })
41034
41031
  ] })
41035
41032
  }
41036
41033
  );
@@ -41162,13 +41159,13 @@ const XI = (e) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mk
41162
41159
  if (!o.current) return;
41163
41160
  const g = u, v = o.current, k = (v.offsetWidth - n * (g - 1)) / g, R = new Array(g).fill(0);
41164
41161
  e.forEach((T, A) => {
41165
- const N = T.id || A, w = d.current.get(N);
41166
- if (!w) return;
41162
+ const w = T.id || A, _ = d.current.get(w);
41163
+ if (!_) return;
41167
41164
  const P = Math.min(...R), L = R.indexOf(P), F = L * (k + n), U = R[L];
41168
- w.style.position = "absolute", w.style.left = `${F}px`, w.style.top = `${U}px`, w.style.width = `${k}px`, R[L] += w.offsetHeight + n;
41165
+ _.style.position = "absolute", _.style.left = `${F}px`, _.style.top = `${U}px`, _.style.width = `${k}px`, R[L] += _.offsetHeight + n;
41169
41166
  });
41170
- const I = Math.max(...R);
41171
- v.style.height = `${I}px`;
41167
+ const N = Math.max(...R);
41168
+ v.style.height = `${N}px`;
41172
41169
  }, [e, u, n]);
41173
41170
  ve(() => {
41174
41171
  const g = () => {
@@ -41199,12 +41196,12 @@ const XI = (e) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mk
41199
41196
  ...i
41200
41197
  },
41201
41198
  children: e.map((g, v) => {
41202
- const _ = g.id || v, k = JI(g);
41199
+ const I = g.id || v, k = JI(g);
41203
41200
  return /* @__PURE__ */ y(
41204
41201
  "div",
41205
41202
  {
41206
41203
  ref: (R) => {
41207
- R ? d.current.set(_, R) : d.current.delete(_);
41204
+ R ? d.current.set(I, R) : d.current.delete(I);
41208
41205
  },
41209
41206
  className: "waterfall-item",
41210
41207
  children: k === "video" ? /* @__PURE__ */ y("div", { style: {
@@ -41244,7 +41241,7 @@ const XI = (e) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mk
41244
41241
  }
41245
41242
  )
41246
41243
  },
41247
- _
41244
+ I
41248
41245
  );
41249
41246
  })
41250
41247
  }
@@ -41458,22 +41455,22 @@ const ca = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "
41458
41455
  if (r.length === 0)
41459
41456
  return { markdown: "", jsonData: [] };
41460
41457
  const l = t.split(n).filter((v) => v.trim() !== ""), a = l.length > 0 ? nO(l[0]) : [], i = a.length >= 2, s = i ? a : eO, o = i || l.length > 0 && l[0].includes("展现量") ? 1 : 0, u = s.filter((v) => v !== "日期"), c = u.length, d = [];
41461
- r.forEach((v, _) => {
41462
- const k = _ + o;
41458
+ r.forEach((v, I) => {
41459
+ const k = I + o;
41463
41460
  if (k >= l.length) return;
41464
41461
  const R = l[k];
41465
- let I = R.split(/[\r\n]+/).map((N) => N.trim()).filter((N) => N !== "");
41466
- I.length < c && (I = lO(R));
41467
- const T = (N) => I.length === c * 2 ? I[N * 2] ?? "" : I[N] ?? "", A = {};
41468
- A[rl("日期")] = v, u.forEach((N, w) => {
41469
- const P = T(w), L = rO(P), F = rl(N);
41462
+ let N = R.split(/[\r\n]+/).map((w) => w.trim()).filter((w) => w !== "");
41463
+ N.length < c && (N = lO(R));
41464
+ const T = (w) => N.length === c * 2 ? N[w * 2] ?? "" : N[w] ?? "", A = {};
41465
+ A[rl("日期")] = v, u.forEach((w, _) => {
41466
+ const P = T(_), L = rO(P), F = rl(w);
41470
41467
  A[F] = L;
41471
41468
  }), d.push(A);
41472
41469
  });
41473
41470
  const f = s.filter((v) => {
41474
- const _ = rl(v);
41471
+ const I = rl(v);
41475
41472
  return d.some((k) => {
41476
- const R = k[_];
41473
+ const R = k[I];
41477
41474
  return R !== void 0 && String(R).trim() !== "";
41478
41475
  });
41479
41476
  }), h = `| ${f.join(" | ")} |`, m = `| ${f.map(() => "---").join(" | ")} |`, b = d.map((v) => `| ${f.map((k) => {