bi-components-library 1.3.6-next.7 → 1.3.6-next.8
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 +105 -105
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +11 -11
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -2170,7 +2170,7 @@ function q1() {
|
|
|
2170
2170
|
return r.default = r, cl = r, cl;
|
|
2171
2171
|
}
|
|
2172
2172
|
var W1 = q1();
|
|
2173
|
-
const Y1 = /* @__PURE__ */ $o(W1), mi = Sh("end"),
|
|
2173
|
+
const Y1 = /* @__PURE__ */ $o(W1), mi = Sh("end"), on = Sh("start");
|
|
2174
2174
|
function Sh(e) {
|
|
2175
2175
|
return t;
|
|
2176
2176
|
function t(n) {
|
|
@@ -2184,7 +2184,7 @@ function Sh(e) {
|
|
|
2184
2184
|
}
|
|
2185
2185
|
}
|
|
2186
2186
|
function kh(e) {
|
|
2187
|
-
const t =
|
|
2187
|
+
const t = on(e), n = mi(e);
|
|
2188
2188
|
if (t && n)
|
|
2189
2189
|
return { start: t, end: n };
|
|
2190
2190
|
}
|
|
@@ -2401,7 +2401,7 @@ function lg(e, t, n) {
|
|
|
2401
2401
|
function ag(e, t) {
|
|
2402
2402
|
return n;
|
|
2403
2403
|
function n(r, l, a, i) {
|
|
2404
|
-
const s = Array.isArray(a.children), o =
|
|
2404
|
+
const s = Array.isArray(a.children), o = on(r);
|
|
2405
2405
|
return t(
|
|
2406
2406
|
l,
|
|
2407
2407
|
a,
|
|
@@ -2630,7 +2630,7 @@ function Pl(e) {
|
|
|
2630
2630
|
const n = Nc.textContent;
|
|
2631
2631
|
return n.charCodeAt(n.length - 1) === 59 && e !== "semi" || n === t ? !1 : n;
|
|
2632
2632
|
}
|
|
2633
|
-
function
|
|
2633
|
+
function ln(e, t, n, r) {
|
|
2634
2634
|
const l = e.length;
|
|
2635
2635
|
let a = 0, i;
|
|
2636
2636
|
if (t < 0 ? t = -t > l ? 0 : l + t : t = t > l ? l : t, n = n > 0 ? n : 0, r.length < 1e4)
|
|
@@ -2640,7 +2640,7 @@ function rn(e, t, n, r) {
|
|
|
2640
2640
|
i = r.slice(a, a + 1e4), i.unshift(t, 0), e.splice(...i), a += 1e4, t += 1e4;
|
|
2641
2641
|
}
|
|
2642
2642
|
function Ft(e, t) {
|
|
2643
|
-
return e.length > 0 ? (
|
|
2643
|
+
return e.length > 0 ? (ln(e, e.length, 0, t), e) : t;
|
|
2644
2644
|
}
|
|
2645
2645
|
const wc = {}.hasOwnProperty;
|
|
2646
2646
|
function bg(e) {
|
|
@@ -2672,7 +2672,7 @@ function vg(e, t) {
|
|
|
2672
2672
|
const r = [];
|
|
2673
2673
|
for (; ++n < t.length; )
|
|
2674
2674
|
(t[n].add === "after" ? e : r).push(t[n]);
|
|
2675
|
-
|
|
2675
|
+
ln(e, 0, 0, r);
|
|
2676
2676
|
}
|
|
2677
2677
|
function Oh(e, t) {
|
|
2678
2678
|
const n = Number.parseInt(e, t);
|
|
@@ -2690,7 +2690,7 @@ function Oh(e, t) {
|
|
|
2690
2690
|
function Ur(e) {
|
|
2691
2691
|
return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
2692
2692
|
}
|
|
2693
|
-
const
|
|
2693
|
+
const nn = $n(/[A-Za-z]/), Rt = $n(/[\dA-Za-z]/), yg = $n(/[#-'*+\--9=?A-Z^-~]/);
|
|
2694
2694
|
function Zs(e) {
|
|
2695
2695
|
return (
|
|
2696
2696
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
@@ -2809,7 +2809,7 @@ function kg(e) {
|
|
|
2809
2809
|
t.events[I][1].end = {
|
|
2810
2810
|
...C
|
|
2811
2811
|
}, I++;
|
|
2812
|
-
return
|
|
2812
|
+
return ln(t.events, _ + 1, 0, t.events.slice(R)), t.events.length = I, u(k);
|
|
2813
2813
|
}
|
|
2814
2814
|
return s(k);
|
|
2815
2815
|
}
|
|
@@ -2879,7 +2879,7 @@ function kg(e) {
|
|
|
2879
2879
|
t.events[C][1].end = {
|
|
2880
2880
|
...B
|
|
2881
2881
|
}, C++;
|
|
2882
|
-
|
|
2882
|
+
ln(t.events, w + 1, 0, t.events.slice(I)), t.events.length = C;
|
|
2883
2883
|
}
|
|
2884
2884
|
}
|
|
2885
2885
|
function E(k) {
|
|
@@ -2964,7 +2964,7 @@ function Ng(e, t) {
|
|
|
2964
2964
|
...i.start
|
|
2965
2965
|
}, e[n][1].start = {
|
|
2966
2966
|
...s.end
|
|
2967
|
-
}, u = [], e[r][1].end.offset - e[r][1].start.offset && (u = Ft(u, [["enter", e[r][1], t], ["exit", e[r][1], t]])), u = Ft(u, [["enter", l, t], ["enter", i, t], ["exit", i, t], ["enter", a, t]]), u = Ft(u, jo(t.parser.constructs.insideSpan.null, e.slice(r + 1, n), t)), u = Ft(u, [["exit", a, t], ["enter", s, t], ["exit", s, t], ["exit", l, t]]), e[n][1].end.offset - e[n][1].start.offset ? (c = 2, u = Ft(u, [["enter", e[n][1], t], ["exit", e[n][1], t]])) : c = 0,
|
|
2967
|
+
}, u = [], e[r][1].end.offset - e[r][1].start.offset && (u = Ft(u, [["enter", e[r][1], t], ["exit", e[r][1], t]])), u = Ft(u, [["enter", l, t], ["enter", i, t], ["exit", i, t], ["enter", a, t]]), u = Ft(u, jo(t.parser.constructs.insideSpan.null, e.slice(r + 1, n), t)), u = Ft(u, [["exit", a, t], ["enter", s, t], ["exit", s, t], ["exit", l, t]]), e[n][1].end.offset - e[n][1].start.offset ? (c = 2, u = Ft(u, [["enter", e[n][1], t], ["exit", e[n][1], t]])) : c = 0, ln(e, r - 1, n - r + 3, u), n = r + u.length - c - 2;
|
|
2968
2968
|
break;
|
|
2969
2969
|
}
|
|
2970
2970
|
}
|
|
@@ -3000,7 +3000,7 @@ function _g(e, t, n) {
|
|
|
3000
3000
|
return e.enter("autolink"), e.enter("autolinkMarker"), e.consume(h), e.exit("autolinkMarker"), e.enter("autolinkProtocol"), a;
|
|
3001
3001
|
}
|
|
3002
3002
|
function a(h) {
|
|
3003
|
-
return
|
|
3003
|
+
return nn(h) ? (e.consume(h), i) : h === 64 ? n(h) : u(h);
|
|
3004
3004
|
}
|
|
3005
3005
|
function i(h) {
|
|
3006
3006
|
return h === 43 || h === 45 || h === 46 || Rt(h) ? (r = 1, s(h)) : u(h);
|
|
@@ -3478,7 +3478,7 @@ function Lh(e) {
|
|
|
3478
3478
|
}, s = c.slice(l, n), s.unshift(r), c.splice(l, n - l + 1, s));
|
|
3479
3479
|
}
|
|
3480
3480
|
}
|
|
3481
|
-
return
|
|
3481
|
+
return ln(e, 0, Number.POSITIVE_INFINITY, c.slice(0)), !u;
|
|
3482
3482
|
}
|
|
3483
3483
|
function jg(e, t) {
|
|
3484
3484
|
const n = e.get(t)[1], r = e.get(t)[2];
|
|
@@ -3727,7 +3727,7 @@ function iv(e, t) {
|
|
|
3727
3727
|
start: e[r][1].start,
|
|
3728
3728
|
end: e[n][1].end,
|
|
3729
3729
|
contentType: "text"
|
|
3730
|
-
},
|
|
3730
|
+
}, ln(e, r, n - r + 1, [["enter", l, t], ["enter", a, t], ["exit", a, t], ["exit", l, t]])), e;
|
|
3731
3731
|
}
|
|
3732
3732
|
function sv(e, t, n) {
|
|
3733
3733
|
let r = 0;
|
|
@@ -3843,10 +3843,10 @@ function hv(e, t, n) {
|
|
|
3843
3843
|
return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(M), d;
|
|
3844
3844
|
}
|
|
3845
3845
|
function d(M) {
|
|
3846
|
-
return M === 33 ? (e.consume(M), f) : M === 47 ? (e.consume(M), a = !0, g) : M === 63 ? (e.consume(M), l = 3, r.interrupt ? t : T) :
|
|
3846
|
+
return M === 33 ? (e.consume(M), f) : M === 47 ? (e.consume(M), a = !0, g) : M === 63 ? (e.consume(M), l = 3, r.interrupt ? t : T) : nn(M) ? (e.consume(M), i = String.fromCharCode(M), b) : n(M);
|
|
3847
3847
|
}
|
|
3848
3848
|
function f(M) {
|
|
3849
|
-
return M === 45 ? (e.consume(M), l = 2, h) : M === 91 ? (e.consume(M), l = 5, s = 0, m) :
|
|
3849
|
+
return M === 45 ? (e.consume(M), l = 2, h) : M === 91 ? (e.consume(M), l = 5, s = 0, m) : nn(M) ? (e.consume(M), l = 4, r.interrupt ? t : T) : n(M);
|
|
3850
3850
|
}
|
|
3851
3851
|
function h(M) {
|
|
3852
3852
|
return M === 45 ? (e.consume(M), r.interrupt ? t : T) : n(M);
|
|
@@ -3856,7 +3856,7 @@ function hv(e, t, n) {
|
|
|
3856
3856
|
return M === me.charCodeAt(s++) ? (e.consume(M), s === me.length ? r.interrupt ? t : F : m) : n(M);
|
|
3857
3857
|
}
|
|
3858
3858
|
function g(M) {
|
|
3859
|
-
return
|
|
3859
|
+
return nn(M) ? (e.consume(M), i = String.fromCharCode(M), b) : n(M);
|
|
3860
3860
|
}
|
|
3861
3861
|
function b(M) {
|
|
3862
3862
|
if (M === null || M === 47 || M === 62 || We(M)) {
|
|
@@ -3872,7 +3872,7 @@ function hv(e, t, n) {
|
|
|
3872
3872
|
return Me(M) ? (e.consume(M), A) : B(M);
|
|
3873
3873
|
}
|
|
3874
3874
|
function k(M) {
|
|
3875
|
-
return M === 47 ? (e.consume(M), B) : M === 58 || M === 95 ||
|
|
3875
|
+
return M === 47 ? (e.consume(M), B) : M === 58 || M === 95 || nn(M) ? (e.consume(M), R) : Me(M) ? (e.consume(M), k) : B(M);
|
|
3876
3876
|
}
|
|
3877
3877
|
function R(M) {
|
|
3878
3878
|
return M === 45 || M === 46 || M === 58 || M === 95 || Rt(M) ? (e.consume(M), R) : _(M);
|
|
@@ -3921,7 +3921,7 @@ function hv(e, t, n) {
|
|
|
3921
3921
|
const me = i.toLowerCase();
|
|
3922
3922
|
return Dc.includes(me) ? (e.consume(M), ne) : F(M);
|
|
3923
3923
|
}
|
|
3924
|
-
return
|
|
3924
|
+
return nn(M) && i.length < 8 ? (e.consume(M), i += String.fromCharCode(M), $) : F(M);
|
|
3925
3925
|
}
|
|
3926
3926
|
function ee(M) {
|
|
3927
3927
|
return M === 93 ? (e.consume(M), T) : F(M);
|
|
@@ -3964,10 +3964,10 @@ function gv(e, t, n) {
|
|
|
3964
3964
|
return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(T), o;
|
|
3965
3965
|
}
|
|
3966
3966
|
function o(T) {
|
|
3967
|
-
return T === 33 ? (e.consume(T), u) : T === 47 ? (e.consume(T), _) : T === 63 ? (e.consume(T), k) :
|
|
3967
|
+
return T === 33 ? (e.consume(T), u) : T === 47 ? (e.consume(T), _) : T === 63 ? (e.consume(T), k) : nn(T) ? (e.consume(T), w) : n(T);
|
|
3968
3968
|
}
|
|
3969
3969
|
function u(T) {
|
|
3970
|
-
return T === 45 ? (e.consume(T), c) : T === 91 ? (e.consume(T), a = 0, m) :
|
|
3970
|
+
return T === 45 ? (e.consume(T), c) : T === 91 ? (e.consume(T), a = 0, m) : nn(T) ? (e.consume(T), A) : n(T);
|
|
3971
3971
|
}
|
|
3972
3972
|
function c(T) {
|
|
3973
3973
|
return T === 45 ? (e.consume(T), h) : n(T);
|
|
@@ -4004,7 +4004,7 @@ function gv(e, t, n) {
|
|
|
4004
4004
|
return T === 62 ? P(T) : k(T);
|
|
4005
4005
|
}
|
|
4006
4006
|
function _(T) {
|
|
4007
|
-
return
|
|
4007
|
+
return nn(T) ? (e.consume(T), C) : n(T);
|
|
4008
4008
|
}
|
|
4009
4009
|
function C(T) {
|
|
4010
4010
|
return T === 45 || Rt(T) ? (e.consume(T), C) : I(T);
|
|
@@ -4016,7 +4016,7 @@ function gv(e, t, n) {
|
|
|
4016
4016
|
return T === 45 || Rt(T) ? (e.consume(T), w) : T === 47 || T === 62 || We(T) ? S(T) : n(T);
|
|
4017
4017
|
}
|
|
4018
4018
|
function S(T) {
|
|
4019
|
-
return T === 47 ? (e.consume(T), P) : T === 58 || T === 95 ||
|
|
4019
|
+
return T === 47 ? (e.consume(T), P) : T === 58 || T === 95 || nn(T) ? (e.consume(T), B) : de(T) ? (i = S, z(T)) : Me(T) ? (e.consume(T), S) : P(T);
|
|
4020
4020
|
}
|
|
4021
4021
|
function B(T) {
|
|
4022
4022
|
return T === 45 || T === 46 || T === 58 || T === 95 || Rt(T) ? (e.consume(T), B) : O(T);
|
|
@@ -4071,7 +4071,7 @@ function Tv(e) {
|
|
|
4071
4071
|
r.type = "data", t += l;
|
|
4072
4072
|
}
|
|
4073
4073
|
}
|
|
4074
|
-
return e.length !== n.length &&
|
|
4074
|
+
return e.length !== n.length && ln(e, 0, e.length, n), e;
|
|
4075
4075
|
}
|
|
4076
4076
|
function Cv(e, t) {
|
|
4077
4077
|
let n = e.length, r = 0, l, a, i, s;
|
|
@@ -4111,7 +4111,7 @@ function Cv(e, t) {
|
|
|
4111
4111
|
...e[i - 2][1].start
|
|
4112
4112
|
}
|
|
4113
4113
|
};
|
|
4114
|
-
return s = [["enter", o, t], ["enter", u, t]], s = Ft(s, e.slice(a + 1, a + r + 3)), s = Ft(s, [["enter", c, t]]), s = Ft(s, jo(t.parser.constructs.insideSpan.null, e.slice(a + r + 4, i - 3), t)), s = Ft(s, [["exit", c, t], e[i - 2], e[i - 1], ["exit", u, t]]), s = Ft(s, e.slice(i + 1)), s = Ft(s, [["exit", o, t]]),
|
|
4114
|
+
return s = [["enter", o, t], ["enter", u, t]], s = Ft(s, e.slice(a + 1, a + r + 3)), s = Ft(s, [["enter", c, t]]), s = Ft(s, jo(t.parser.constructs.insideSpan.null, e.slice(a + r + 4, i - 3), t)), s = Ft(s, [["exit", c, t], e[i - 2], e[i - 1], ["exit", u, t]]), s = Ft(s, e.slice(i + 1)), s = Ft(s, [["exit", o, t]]), ln(e, a, e.length, s), e;
|
|
4115
4115
|
}
|
|
4116
4116
|
function xv(e, t, n) {
|
|
4117
4117
|
const r = this;
|
|
@@ -4716,7 +4716,7 @@ function ly(e, t, n) {
|
|
|
4716
4716
|
}
|
|
4717
4717
|
}
|
|
4718
4718
|
function w(O, F) {
|
|
4719
|
-
O.resolveAll && !a.includes(O) && a.push(O), O.resolve &&
|
|
4719
|
+
O.resolveAll && !a.includes(O) && a.push(O), O.resolve && ln(u.events, F, u.events.length - F, O.resolve(u.events.slice(F), u)), O.resolveTo && (u.events = O.resolveTo(u.events, u));
|
|
4720
4720
|
}
|
|
4721
4721
|
function S() {
|
|
4722
4722
|
const O = m(), F = u.previous, q = u.currentConstruct, L = u.events.length, y = Array.from(s);
|
|
@@ -4897,7 +4897,7 @@ function py(e) {
|
|
|
4897
4897
|
htmlFlowData: S,
|
|
4898
4898
|
htmlText: a(ze, i),
|
|
4899
4899
|
htmlTextData: S,
|
|
4900
|
-
image: a(
|
|
4900
|
+
image: a(un),
|
|
4901
4901
|
label: i,
|
|
4902
4902
|
link: a(Gt),
|
|
4903
4903
|
listItem: a(kr),
|
|
@@ -5325,7 +5325,7 @@ function py(e) {
|
|
|
5325
5325
|
value: ""
|
|
5326
5326
|
};
|
|
5327
5327
|
}
|
|
5328
|
-
function
|
|
5328
|
+
function un() {
|
|
5329
5329
|
return {
|
|
5330
5330
|
type: "image",
|
|
5331
5331
|
title: null,
|
|
@@ -5686,7 +5686,7 @@ function Py(e, t) {
|
|
|
5686
5686
|
tagName: "tbody",
|
|
5687
5687
|
properties: {},
|
|
5688
5688
|
children: e.wrap(n, !0)
|
|
5689
|
-
}, s =
|
|
5689
|
+
}, s = on(t.children[1]), o = mi(t.children[t.children.length - 1]);
|
|
5690
5690
|
s && o && (i.position = { start: s, end: o }), l.push(i);
|
|
5691
5691
|
}
|
|
5692
5692
|
const a = {
|
|
@@ -6408,7 +6408,7 @@ function p2(e, t) {
|
|
|
6408
6408
|
l(null, i);
|
|
6409
6409
|
}
|
|
6410
6410
|
}
|
|
6411
|
-
const
|
|
6411
|
+
const Zt = { basename: m2, dirname: b2, extname: g2, join: v2, sep: "/" };
|
|
6412
6412
|
function m2(e, t) {
|
|
6413
6413
|
if (t !== void 0 && typeof t != "string")
|
|
6414
6414
|
throw new TypeError('"ext" argument must be a string');
|
|
@@ -6614,7 +6614,7 @@ class Xh {
|
|
|
6614
6614
|
* Basename.
|
|
6615
6615
|
*/
|
|
6616
6616
|
get basename() {
|
|
6617
|
-
return typeof this.path == "string" ?
|
|
6617
|
+
return typeof this.path == "string" ? Zt.basename(this.path) : void 0;
|
|
6618
6618
|
}
|
|
6619
6619
|
/**
|
|
6620
6620
|
* Set basename (including extname) (`'index.min.js'`).
|
|
@@ -6629,7 +6629,7 @@ class Xh {
|
|
|
6629
6629
|
* Nothing.
|
|
6630
6630
|
*/
|
|
6631
6631
|
set basename(t) {
|
|
6632
|
-
ds(t, "basename"), cs(t, "basename"), this.path =
|
|
6632
|
+
ds(t, "basename"), cs(t, "basename"), this.path = Zt.join(this.dirname || "", t);
|
|
6633
6633
|
}
|
|
6634
6634
|
/**
|
|
6635
6635
|
* Get the parent path (example: `'~'`).
|
|
@@ -6638,7 +6638,7 @@ class Xh {
|
|
|
6638
6638
|
* Dirname.
|
|
6639
6639
|
*/
|
|
6640
6640
|
get dirname() {
|
|
6641
|
-
return typeof this.path == "string" ?
|
|
6641
|
+
return typeof this.path == "string" ? Zt.dirname(this.path) : void 0;
|
|
6642
6642
|
}
|
|
6643
6643
|
/**
|
|
6644
6644
|
* Set the parent path (example: `'~'`).
|
|
@@ -6651,7 +6651,7 @@ class Xh {
|
|
|
6651
6651
|
* Nothing.
|
|
6652
6652
|
*/
|
|
6653
6653
|
set dirname(t) {
|
|
6654
|
-
Gc(this.basename, "dirname"), this.path =
|
|
6654
|
+
Gc(this.basename, "dirname"), this.path = Zt.join(t || "", this.basename);
|
|
6655
6655
|
}
|
|
6656
6656
|
/**
|
|
6657
6657
|
* Get the extname (including dot) (example: `'.js'`).
|
|
@@ -6660,7 +6660,7 @@ class Xh {
|
|
|
6660
6660
|
* Extname.
|
|
6661
6661
|
*/
|
|
6662
6662
|
get extname() {
|
|
6663
|
-
return typeof this.path == "string" ?
|
|
6663
|
+
return typeof this.path == "string" ? Zt.extname(this.path) : void 0;
|
|
6664
6664
|
}
|
|
6665
6665
|
/**
|
|
6666
6666
|
* Set the extname (including dot) (example: `'.js'`).
|
|
@@ -6681,7 +6681,7 @@ class Xh {
|
|
|
6681
6681
|
if (t.includes(".", 1))
|
|
6682
6682
|
throw new Error("`extname` cannot contain multiple dots");
|
|
6683
6683
|
}
|
|
6684
|
-
this.path =
|
|
6684
|
+
this.path = Zt.join(this.dirname, this.stem + (t || ""));
|
|
6685
6685
|
}
|
|
6686
6686
|
/**
|
|
6687
6687
|
* Get the full path (example: `'~/index.min.js'`).
|
|
@@ -6714,7 +6714,7 @@ class Xh {
|
|
|
6714
6714
|
* Stem.
|
|
6715
6715
|
*/
|
|
6716
6716
|
get stem() {
|
|
6717
|
-
return typeof this.path == "string" ?
|
|
6717
|
+
return typeof this.path == "string" ? Zt.basename(this.path, this.extname) : void 0;
|
|
6718
6718
|
}
|
|
6719
6719
|
/**
|
|
6720
6720
|
* Set the stem (basename w/o extname) (example: `'index.min'`).
|
|
@@ -6729,7 +6729,7 @@ class Xh {
|
|
|
6729
6729
|
* Nothing.
|
|
6730
6730
|
*/
|
|
6731
6731
|
set stem(t) {
|
|
6732
|
-
ds(t, "stem"), cs(t, "stem"), this.path =
|
|
6732
|
+
ds(t, "stem"), cs(t, "stem"), this.path = Zt.join(this.dirname || "", t + (this.extname || ""));
|
|
6733
6733
|
}
|
|
6734
6734
|
// Normal prototypal methods.
|
|
6735
6735
|
/**
|
|
@@ -6943,9 +6943,9 @@ class Xh {
|
|
|
6943
6943
|
}
|
|
6944
6944
|
}
|
|
6945
6945
|
function cs(e, t) {
|
|
6946
|
-
if (e && e.includes(
|
|
6946
|
+
if (e && e.includes(Zt.sep))
|
|
6947
6947
|
throw new Error(
|
|
6948
|
-
"`" + t + "` cannot be a path: did not expect `" +
|
|
6948
|
+
"`" + t + "` cannot be a path: did not expect `" + Zt.sep + "`"
|
|
6949
6949
|
);
|
|
6950
6950
|
}
|
|
6951
6951
|
function ds(e, t) {
|
|
@@ -10914,11 +10914,11 @@ class PE {
|
|
|
10914
10914
|
}
|
|
10915
10915
|
}
|
|
10916
10916
|
const ms = 3;
|
|
10917
|
-
var
|
|
10917
|
+
var tn;
|
|
10918
10918
|
(function(e) {
|
|
10919
10919
|
e[e.Marker = 0] = "Marker", e[e.Element = 1] = "Element";
|
|
10920
|
-
})(
|
|
10921
|
-
const cd = { type:
|
|
10920
|
+
})(tn || (tn = {}));
|
|
10921
|
+
const cd = { type: tn.Marker };
|
|
10922
10922
|
class BE {
|
|
10923
10923
|
constructor(t) {
|
|
10924
10924
|
this.treeAdapter = t, this.entries = [], this.bookmark = null;
|
|
@@ -10930,7 +10930,7 @@ class BE {
|
|
|
10930
10930
|
const r = [], l = n.length, a = this.treeAdapter.getTagName(t), i = this.treeAdapter.getNamespaceURI(t);
|
|
10931
10931
|
for (let s = 0; s < this.entries.length; s++) {
|
|
10932
10932
|
const o = this.entries[s];
|
|
10933
|
-
if (o.type ===
|
|
10933
|
+
if (o.type === tn.Marker)
|
|
10934
10934
|
break;
|
|
10935
10935
|
const { element: u } = o;
|
|
10936
10936
|
if (this.treeAdapter.getTagName(u) === a && this.treeAdapter.getNamespaceURI(u) === i) {
|
|
@@ -10959,7 +10959,7 @@ class BE {
|
|
|
10959
10959
|
}
|
|
10960
10960
|
pushElement(t, n) {
|
|
10961
10961
|
this._ensureNoahArkCondition(t), this.entries.unshift({
|
|
10962
|
-
type:
|
|
10962
|
+
type: tn.Element,
|
|
10963
10963
|
element: t,
|
|
10964
10964
|
token: n
|
|
10965
10965
|
});
|
|
@@ -10967,7 +10967,7 @@ class BE {
|
|
|
10967
10967
|
insertElementAfterBookmark(t, n) {
|
|
10968
10968
|
const r = this.entries.indexOf(this.bookmark);
|
|
10969
10969
|
this.entries.splice(r, 0, {
|
|
10970
|
-
type:
|
|
10970
|
+
type: tn.Element,
|
|
10971
10971
|
element: t,
|
|
10972
10972
|
token: n
|
|
10973
10973
|
});
|
|
@@ -10987,11 +10987,11 @@ class BE {
|
|
|
10987
10987
|
}
|
|
10988
10988
|
//Search
|
|
10989
10989
|
getElementEntryInScopeWithTagName(t) {
|
|
10990
|
-
const n = this.entries.find((r) => r.type ===
|
|
10991
|
-
return n && n.type ===
|
|
10990
|
+
const n = this.entries.find((r) => r.type === tn.Marker || this.treeAdapter.getTagName(r.element) === t);
|
|
10991
|
+
return n && n.type === tn.Element ? n : null;
|
|
10992
10992
|
}
|
|
10993
10993
|
getElementEntry(t) {
|
|
10994
|
-
return this.entries.find((n) => n.type ===
|
|
10994
|
+
return this.entries.find((n) => n.type === tn.Element && n.element === t);
|
|
10995
10995
|
}
|
|
10996
10996
|
}
|
|
10997
10997
|
const kn = {
|
|
@@ -11727,7 +11727,7 @@ class pd {
|
|
|
11727
11727
|
_reconstructActiveFormattingElements() {
|
|
11728
11728
|
const t = this.activeFormattingElements.entries.length;
|
|
11729
11729
|
if (t) {
|
|
11730
|
-
const n = this.activeFormattingElements.entries.findIndex((l) => l.type ===
|
|
11730
|
+
const n = this.activeFormattingElements.entries.findIndex((l) => l.type === tn.Marker || this.openElements.contains(l.element)), r = n === -1 ? t - 1 : n - 1;
|
|
11731
11731
|
for (let l = r; l >= 0; l--) {
|
|
11732
11732
|
const a = this.activeFormattingElements.entries[l];
|
|
11733
11733
|
this._insertElement(a.token, this.treeAdapter.getNamespaceURI(a.element)), a.element = this.openElements.current;
|
|
@@ -13722,7 +13722,7 @@ function _p(e, t) {
|
|
|
13722
13722
|
stitches: !1,
|
|
13723
13723
|
options: t || {}
|
|
13724
13724
|
};
|
|
13725
|
-
r(e, l), el(l,
|
|
13725
|
+
r(e, l), el(l, on());
|
|
13726
13726
|
const a = n ? l.parser.document : l.parser.getFragment(), i = Q2(a, {
|
|
13727
13727
|
// To do: support `space`?
|
|
13728
13728
|
file: l.options.file
|
|
@@ -13758,7 +13758,7 @@ function V3(e, t) {
|
|
|
13758
13758
|
chars: e.value,
|
|
13759
13759
|
location: na(e)
|
|
13760
13760
|
};
|
|
13761
|
-
el(t,
|
|
13761
|
+
el(t, on(e)), t.parser.currentToken = n, t.parser._processToken(t.parser.currentToken);
|
|
13762
13762
|
}
|
|
13763
13763
|
function $3(e, t) {
|
|
13764
13764
|
const n = {
|
|
@@ -13769,7 +13769,7 @@ function $3(e, t) {
|
|
|
13769
13769
|
systemId: "",
|
|
13770
13770
|
location: na(e)
|
|
13771
13771
|
};
|
|
13772
|
-
el(t,
|
|
13772
|
+
el(t, on(e)), t.parser.currentToken = n, t.parser._processToken(t.parser.currentToken);
|
|
13773
13773
|
}
|
|
13774
13774
|
function q3(e, t) {
|
|
13775
13775
|
t.stitches = !0;
|
|
@@ -13789,10 +13789,10 @@ function Mp(e, t) {
|
|
|
13789
13789
|
data: n,
|
|
13790
13790
|
location: na(e)
|
|
13791
13791
|
};
|
|
13792
|
-
el(t,
|
|
13792
|
+
el(t, on(e)), t.parser.currentToken = r, t.parser._processToken(t.parser.currentToken);
|
|
13793
13793
|
}
|
|
13794
13794
|
function W3(e, t) {
|
|
13795
|
-
if (t.parser.tokenizer.preprocessor.html = "", t.parser.tokenizer.preprocessor.pos = -1, t.parser.tokenizer.preprocessor.lastGapPos = -2, t.parser.tokenizer.preprocessor.gapStack = [], t.parser.tokenizer.preprocessor.skipNextNewLine = !1, t.parser.tokenizer.preprocessor.lastChunkWritten = !1, t.parser.tokenizer.preprocessor.endOfChunkHit = !1, t.parser.tokenizer.preprocessor.isEol = !1, Rp(t,
|
|
13795
|
+
if (t.parser.tokenizer.preprocessor.html = "", t.parser.tokenizer.preprocessor.pos = -1, t.parser.tokenizer.preprocessor.lastGapPos = -2, t.parser.tokenizer.preprocessor.gapStack = [], t.parser.tokenizer.preprocessor.skipNextNewLine = !1, t.parser.tokenizer.preprocessor.lastChunkWritten = !1, t.parser.tokenizer.preprocessor.endOfChunkHit = !1, t.parser.tokenizer.preprocessor.isEol = !1, Rp(t, on(e)), t.parser.tokenizer.write(
|
|
13796
13796
|
t.options.tagfilter ? e.value.replace(F3, "<$1$2") : e.value,
|
|
13797
13797
|
!1
|
|
13798
13798
|
), t.parser.tokenizer._runParsingLoop(), t.parser.tokenizer.state === 72 || // @ts-expect-error: removed.
|
|
@@ -13835,7 +13835,7 @@ function Rp(e, t) {
|
|
|
13835
13835
|
function j3(e, t) {
|
|
13836
13836
|
const n = e.tagName.toLowerCase();
|
|
13837
13837
|
if (t.parser.tokenizer.state === Ye.PLAINTEXT) return;
|
|
13838
|
-
el(t,
|
|
13838
|
+
el(t, on(e));
|
|
13839
13839
|
const r = t.parser.openElements.current;
|
|
13840
13840
|
let l = "namespaceURI" in r ? r.namespaceURI : lr.html;
|
|
13841
13841
|
l === lr.html && n === "svg" && (l = lr.svg);
|
|
@@ -13881,7 +13881,7 @@ function G3(e) {
|
|
|
13881
13881
|
return !!(t && (t.type === "doctype" || t.type === "element" && t.tagName.toLowerCase() === "html"));
|
|
13882
13882
|
}
|
|
13883
13883
|
function na(e) {
|
|
13884
|
-
const t =
|
|
13884
|
+
const t = on(e) || {
|
|
13885
13885
|
line: void 0,
|
|
13886
13886
|
column: void 0,
|
|
13887
13887
|
offset: void 0
|
|
@@ -24059,8 +24059,8 @@ const tx = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
|
|
|
24059
24059
|
].filter(Boolean).join(" "), $ = le(null), ee = le(null), [T, ne] = K("bottomLeft"), ue = V(() => {
|
|
24060
24060
|
const Oe = ee.current;
|
|
24061
24061
|
if (!Oe) return;
|
|
24062
|
-
const ze = Oe.getBoundingClientRect(),
|
|
24063
|
-
ne(Gt <
|
|
24062
|
+
const ze = Oe.getBoundingClientRect(), un = 236, Gt = window.innerHeight - ze.bottom;
|
|
24063
|
+
ne(Gt < un ? "topLeft" : "bottomLeft");
|
|
24064
24064
|
}, []);
|
|
24065
24065
|
$e(() => {
|
|
24066
24066
|
I && ue();
|
|
@@ -24075,8 +24075,8 @@ const tx = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
|
|
|
24075
24075
|
ge(() => {
|
|
24076
24076
|
if (!I) return;
|
|
24077
24077
|
const Oe = (ze) => {
|
|
24078
|
-
const
|
|
24079
|
-
if (
|
|
24078
|
+
const un = ee.current, Gt = ze.target;
|
|
24079
|
+
if (un?.contains(Gt)) return;
|
|
24080
24080
|
const gn = document.querySelectorAll(".rte-report-dropdown-overlay");
|
|
24081
24081
|
for (let kr = 0; kr < gn.length; kr++)
|
|
24082
24082
|
if (gn[kr].contains(Gt)) return;
|
|
@@ -27557,7 +27557,7 @@ class Mn extends gt {
|
|
|
27557
27557
|
return Qe.fromReplace(t, this.from, this.to, a);
|
|
27558
27558
|
}
|
|
27559
27559
|
invert() {
|
|
27560
|
-
return new
|
|
27560
|
+
return new rn(this.from, this.to, this.mark);
|
|
27561
27561
|
}
|
|
27562
27562
|
map(t) {
|
|
27563
27563
|
let n = t.mapResult(this.from, 1), r = t.mapResult(this.to, -1);
|
|
@@ -27584,7 +27584,7 @@ class Mn extends gt {
|
|
|
27584
27584
|
}
|
|
27585
27585
|
}
|
|
27586
27586
|
gt.jsonID("addMark", Mn);
|
|
27587
|
-
class
|
|
27587
|
+
class rn extends gt {
|
|
27588
27588
|
/**
|
|
27589
27589
|
Create a mark-removing step.
|
|
27590
27590
|
*/
|
|
@@ -27600,10 +27600,10 @@ class nn extends gt {
|
|
|
27600
27600
|
}
|
|
27601
27601
|
map(t) {
|
|
27602
27602
|
let n = t.mapResult(this.from, 1), r = t.mapResult(this.to, -1);
|
|
27603
|
-
return n.deleted && r.deleted || n.pos >= r.pos ? null : new
|
|
27603
|
+
return n.deleted && r.deleted || n.pos >= r.pos ? null : new rn(n.pos, r.pos, this.mark);
|
|
27604
27604
|
}
|
|
27605
27605
|
merge(t) {
|
|
27606
|
-
return t instanceof
|
|
27606
|
+
return t instanceof rn && t.mark.eq(this.mark) && this.from <= t.to && this.to >= t.from ? new rn(Math.min(this.from, t.from), Math.max(this.to, t.to), this.mark) : null;
|
|
27607
27607
|
}
|
|
27608
27608
|
toJSON() {
|
|
27609
27609
|
return {
|
|
@@ -27619,10 +27619,10 @@ class nn extends gt {
|
|
|
27619
27619
|
static fromJSON(t, n) {
|
|
27620
27620
|
if (typeof n.from != "number" || typeof n.to != "number")
|
|
27621
27621
|
throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");
|
|
27622
|
-
return new
|
|
27622
|
+
return new rn(n.from, n.to, t.markFromJSON(n.mark));
|
|
27623
27623
|
}
|
|
27624
27624
|
}
|
|
27625
|
-
gt.jsonID("removeMark",
|
|
27625
|
+
gt.jsonID("removeMark", rn);
|
|
27626
27626
|
class Rn extends gt {
|
|
27627
27627
|
/**
|
|
27628
27628
|
Create a node mark step.
|
|
@@ -27836,7 +27836,7 @@ function Px(e, t, n, r) {
|
|
|
27836
27836
|
if (!r.isInSet(d) && c.type.allowsMarkType(r.type)) {
|
|
27837
27837
|
let f = Math.max(u, t), h = Math.min(u + o.nodeSize, n), m = r.addToSet(d);
|
|
27838
27838
|
for (let g = 0; g < d.length; g++)
|
|
27839
|
-
d[g].isInSet(m) || (i && i.to == f && i.mark.eq(d[g]) ? i.to = h : l.push(i = new
|
|
27839
|
+
d[g].isInSet(m) || (i && i.to == f && i.mark.eq(d[g]) ? i.to = h : l.push(i = new rn(f, h, d[g])));
|
|
27840
27840
|
s && s.to == f ? s.to = h : a.push(s = new Mn(f, h, r));
|
|
27841
27841
|
}
|
|
27842
27842
|
}), l.forEach((o) => e.step(o)), a.forEach((o) => e.step(o));
|
|
@@ -27864,7 +27864,7 @@ function Bx(e, t, n, r) {
|
|
|
27864
27864
|
f ? (f.to = u, f.step = a) : l.push({ style: d, from: Math.max(s, t), to: u, step: a });
|
|
27865
27865
|
}
|
|
27866
27866
|
}
|
|
27867
|
-
}), l.forEach((i) => e.step(new
|
|
27867
|
+
}), l.forEach((i) => e.step(new rn(i.from, i.to, i.style)));
|
|
27868
27868
|
}
|
|
27869
27869
|
function pu(e, t, n, r = n.contentMatch, l = !0) {
|
|
27870
27870
|
let a = e.doc.nodeAt(t), i = [], s = t + 1;
|
|
@@ -27875,7 +27875,7 @@ function pu(e, t, n, r = n.contentMatch, l = !0) {
|
|
|
27875
27875
|
else {
|
|
27876
27876
|
r = d;
|
|
27877
27877
|
for (let f = 0; f < u.marks.length; f++)
|
|
27878
|
-
n.allowsMarkType(u.marks[f].type) || e.step(new
|
|
27878
|
+
n.allowsMarkType(u.marks[f].type) || e.step(new rn(s, c, u.marks[f]));
|
|
27879
27879
|
if (l && u.isText && n.whitespace != "pre") {
|
|
27880
27880
|
let f, h = /\r?\n|\r/g, m;
|
|
27881
27881
|
for (; f = h.exec(u.text); )
|
|
@@ -29658,9 +29658,9 @@ function hS(e, t, n) {
|
|
|
29658
29658
|
return { node: r.startContainer, offset: Math.min(Ut(r.startContainer), r.startOffset) };
|
|
29659
29659
|
}
|
|
29660
29660
|
}
|
|
29661
|
-
const
|
|
29661
|
+
const an = typeof navigator < "u" ? navigator : null, nf = typeof document < "u" ? document : null, Yn = an && an.userAgent || "", yo = /Edge\/(\d+)/.exec(Yn), $m = /MSIE \d/.exec(Yn), Eo = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Yn), At = !!($m || Eo || yo), Pn = $m ? document.documentMode : Eo ? +Eo[1] : yo ? +yo[1] : 0, zt = !At && /gecko\/(\d+)/i.test(Yn);
|
|
29662
29662
|
zt && +(/Firefox\/(\d+)/.exec(Yn) || [0, 0])[1];
|
|
29663
|
-
const To = !At && /Chrome\/(\d+)/.exec(Yn), ot = !!To, qm = To ? +To[1] : 0, ht = !At && !!
|
|
29663
|
+
const To = !At && /Chrome\/(\d+)/.exec(Yn), ot = !!To, qm = To ? +To[1] : 0, ht = !At && !!an && /Apple Computer/.test(an.vendor), Yr = ht && (/Mobile\/\w+/.test(Yn) || !!an && an.maxTouchPoints > 2), Bt = Yr || (an ? /Mac/.test(an.platform) : !1), Wm = an ? /Win/.test(an.platform) : !1, pn = /Android \d/.test(Yn), sa = !!nf && "webkitFontSmoothing" in nf.documentElement.style, pS = sa ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
|
|
29664
29664
|
function mS(e) {
|
|
29665
29665
|
let t = e.defaultView && e.defaultView.visualViewport;
|
|
29666
29666
|
return t ? {
|
|
@@ -29996,7 +29996,7 @@ let af = null, sf = null, of = !1;
|
|
|
29996
29996
|
function IS(e, t, n) {
|
|
29997
29997
|
return af == t && sf == n ? of : (af = t, sf = n, of = n == "up" || n == "down" ? AS(e, t, n) : wS(e, t, n));
|
|
29998
29998
|
}
|
|
29999
|
-
const Vt = 0, uf = 1, ar = 2,
|
|
29999
|
+
const Vt = 0, uf = 1, ar = 2, sn = 3;
|
|
30000
30000
|
class oa {
|
|
30001
30001
|
constructor(t, n, r, l) {
|
|
30002
30002
|
this.parent = t, this.children = n, this.dom = r, this.contentDOM = l, this.dirty = Vt, r.pmViewDesc = this;
|
|
@@ -30312,10 +30312,10 @@ class oa {
|
|
|
30312
30312
|
if (r == i ? t <= i && n >= r : t < i && n > r) {
|
|
30313
30313
|
let s = r + a.border, o = i - a.border;
|
|
30314
30314
|
if (t >= s && n <= o) {
|
|
30315
|
-
this.dirty = t == r || n == i ? ar : uf, t == s && n == o && (a.contentLost || a.dom.parentNode != this.contentDOM) ? a.dirty =
|
|
30315
|
+
this.dirty = t == r || n == i ? ar : uf, t == s && n == o && (a.contentLost || a.dom.parentNode != this.contentDOM) ? a.dirty = sn : a.markDirty(t - s, n - s);
|
|
30316
30316
|
return;
|
|
30317
30317
|
} else
|
|
30318
|
-
a.dirty = a.dom == a.contentDOM && a.dom.parentNode == this.contentDOM && !a.children.length ? ar :
|
|
30318
|
+
a.dirty = a.dom == a.contentDOM && a.dom.parentNode == this.contentDOM && !a.children.length ? ar : sn;
|
|
30319
30319
|
}
|
|
30320
30320
|
r = i;
|
|
30321
30321
|
}
|
|
@@ -30410,10 +30410,10 @@ class Tr extends oa {
|
|
|
30410
30410
|
return (!i || !i.dom) && (i = Sr.renderSpec(document, n.type.spec.toDOM(n, r), null, n.attrs)), new Tr(t, n, i.dom, i.contentDOM || i.dom, i);
|
|
30411
30411
|
}
|
|
30412
30412
|
parseRule() {
|
|
30413
|
-
return this.dirty &
|
|
30413
|
+
return this.dirty & sn || this.mark.type.spec.reparseInView ? null : { mark: this.mark.type.name, attrs: this.mark.attrs, contentElement: this.contentDOM };
|
|
30414
30414
|
}
|
|
30415
30415
|
matchesMark(t) {
|
|
30416
|
-
return this.dirty !=
|
|
30416
|
+
return this.dirty != sn && this.mark.eq(t);
|
|
30417
30417
|
}
|
|
30418
30418
|
markDirty(t, n) {
|
|
30419
30419
|
if (super.markDirty(t, n), this.dirty != Vt) {
|
|
@@ -30540,7 +30540,7 @@ class Bn extends oa {
|
|
|
30540
30540
|
// If this desc must be updated to match the given node decoration,
|
|
30541
30541
|
// do so and return true.
|
|
30542
30542
|
update(t, n, r, l) {
|
|
30543
|
-
return this.dirty ==
|
|
30543
|
+
return this.dirty == sn || !t.sameMarkup(this.node) ? !1 : (this.updateInner(t, n, r, l), !0);
|
|
30544
30544
|
}
|
|
30545
30545
|
updateInner(t, n, r, l) {
|
|
30546
30546
|
this.updateOuterDeco(n), this.node = t, this.innerDeco = r, this.contentDOM && this.updateChildren(l, this.posAtStart), this.dirty = Vt;
|
|
@@ -30579,7 +30579,7 @@ class Ii extends Bn {
|
|
|
30579
30579
|
return { skip: t || !0 };
|
|
30580
30580
|
}
|
|
30581
30581
|
update(t, n, r, l) {
|
|
30582
|
-
return this.dirty ==
|
|
30582
|
+
return this.dirty == sn || this.dirty != Vt && !this.inParent() || !t.sameMarkup(this.node) ? !1 : (this.updateOuterDeco(n), (this.dirty != Vt || t.text != this.node.text) && t.text != this.nodeDOM.nodeValue && (this.nodeDOM.nodeValue = t.text, l.trackWrites == this.nodeDOM && (l.trackWrites = null)), this.node = t, this.dirty = Vt, !0);
|
|
30583
30583
|
}
|
|
30584
30584
|
inParent() {
|
|
30585
30585
|
let t = this.parent.contentDOM;
|
|
@@ -30602,7 +30602,7 @@ class Ii extends Bn {
|
|
|
30602
30602
|
return new Ii(this.parent, l, this.outerDeco, this.innerDeco, a, a, r);
|
|
30603
30603
|
}
|
|
30604
30604
|
markDirty(t, n) {
|
|
30605
|
-
super.markDirty(t, n), this.dom != this.nodeDOM && (t == 0 || n == this.nodeDOM.nodeValue.length) && (this.dirty =
|
|
30605
|
+
super.markDirty(t, n), this.dom != this.nodeDOM && (t == 0 || n == this.nodeDOM.nodeValue.length) && (this.dirty = sn);
|
|
30606
30606
|
}
|
|
30607
30607
|
get domAtom() {
|
|
30608
30608
|
return !1;
|
|
@@ -30633,7 +30633,7 @@ class OS extends Bn {
|
|
|
30633
30633
|
// through. If it does, and there's a `contentDOM` node, our logic
|
|
30634
30634
|
// updates the children.
|
|
30635
30635
|
update(t, n, r, l) {
|
|
30636
|
-
if (this.dirty ==
|
|
30636
|
+
if (this.dirty == sn)
|
|
30637
30637
|
return !1;
|
|
30638
30638
|
if (this.spec.update && (this.node.type == t.type || this.spec.multiType)) {
|
|
30639
30639
|
let a = this.spec.update(t, n, r);
|
|
@@ -30813,7 +30813,7 @@ class RS {
|
|
|
30813
30813
|
}
|
|
30814
30814
|
updateNodeAt(t, n, r, l, a) {
|
|
30815
30815
|
let i = this.top.children[l];
|
|
30816
|
-
return i.dirty ==
|
|
30816
|
+
return i.dirty == sn && i.dom == i.contentDOM && (i.dirty = ar), i.update(t, n, r, a) ? (this.destroyBetween(this.index, l), this.index++, !0) : !1;
|
|
30817
30817
|
}
|
|
30818
30818
|
findIndexWithChild(t) {
|
|
30819
30819
|
for (; ; ) {
|
|
@@ -30841,7 +30841,7 @@ class RS {
|
|
|
30841
30841
|
let u = this.preMatch.matched.get(o);
|
|
30842
30842
|
if (u != null && u != a)
|
|
30843
30843
|
return !1;
|
|
30844
|
-
let c = o.dom, d, f = this.isLocked(c) && !(t.isText && o.node && o.node.isText && o.nodeDOM.nodeValue == t.text && o.dirty !=
|
|
30844
|
+
let c = o.dom, d, f = this.isLocked(c) && !(t.isText && o.node && o.node.isText && o.nodeDOM.nodeValue == t.text && o.dirty != sn && ni(n, o.outerDeco));
|
|
30845
30845
|
if (!f && o.update(t, n, r, l))
|
|
30846
30846
|
return this.destroyBetween(this.index, s), o.dom != c && (this.changed = !0), this.index++, !0;
|
|
30847
30847
|
if (!f && (d = this.recreateWrapper(o, t, n, r, l, i)))
|
|
@@ -38079,9 +38079,9 @@ class Wt {
|
|
|
38079
38079
|
return;
|
|
38080
38080
|
}
|
|
38081
38081
|
if (l) {
|
|
38082
|
-
c.push(new
|
|
38082
|
+
c.push(new en(d.map));
|
|
38083
38083
|
let h = d.step.map(l.slice(a)), m;
|
|
38084
|
-
h && i.maybeStep(h).doc && (m = i.mapping.maps[i.mapping.maps.length - 1], u.push(new
|
|
38084
|
+
h && i.maybeStep(h).doc && (m = i.mapping.maps[i.mapping.maps.length - 1], u.push(new en(m, void 0, void 0, u.length + c.length))), a--, m && l.appendMap(m, a);
|
|
38085
38085
|
} else
|
|
38086
38086
|
i.maybeStep(d.step);
|
|
38087
38087
|
if (d.selection)
|
|
@@ -38092,7 +38092,7 @@ class Wt {
|
|
|
38092
38092
|
addTransform(t, n, r, l) {
|
|
38093
38093
|
let a = [], i = this.eventCount, s = this.items, o = !l && s.length ? s.get(s.length - 1) : null;
|
|
38094
38094
|
for (let c = 0; c < t.steps.length; c++) {
|
|
38095
|
-
let d = t.steps[c].invert(t.docs[c]), f = new
|
|
38095
|
+
let d = t.steps[c].invert(t.docs[c]), f = new en(t.mapping.maps[c], d, n), h;
|
|
38096
38096
|
(h = o && o.merge(f)) && (f = h, c ? a.pop() : s = s.slice(0, s.length - 1)), a.push(f), n && (i++, n = void 0), l || (o = f);
|
|
38097
38097
|
}
|
|
38098
38098
|
let u = i - r.depth;
|
|
@@ -38106,7 +38106,7 @@ class Wt {
|
|
|
38106
38106
|
}, t, n), r;
|
|
38107
38107
|
}
|
|
38108
38108
|
addMaps(t) {
|
|
38109
|
-
return this.eventCount == 0 ? this : new Wt(this.items.append(t.map((n) => new
|
|
38109
|
+
return this.eventCount == 0 ? this : new Wt(this.items.append(t.map((n) => new en(n))), this.eventCount);
|
|
38110
38110
|
}
|
|
38111
38111
|
// When the collab module receives remote changes, the history has
|
|
38112
38112
|
// to know about those, so that it can adjust the steps that were
|
|
@@ -38128,13 +38128,13 @@ class Wt {
|
|
|
38128
38128
|
let m = a.maps[h];
|
|
38129
38129
|
if (f.step) {
|
|
38130
38130
|
let g = t.steps[h].invert(t.docs[h]), b = f.selection && f.selection.map(a.slice(o + 1, h));
|
|
38131
|
-
b && s++, r.push(new
|
|
38131
|
+
b && s++, r.push(new en(m, g, b));
|
|
38132
38132
|
} else
|
|
38133
|
-
r.push(new
|
|
38133
|
+
r.push(new en(m));
|
|
38134
38134
|
}, l);
|
|
38135
38135
|
let u = [];
|
|
38136
38136
|
for (let f = n; f < i; f++)
|
|
38137
|
-
u.push(new
|
|
38137
|
+
u.push(new en(a.maps[f]));
|
|
38138
38138
|
let c = this.items.slice(0, l).append(u).append(r), d = new Wt(c, s);
|
|
38139
38139
|
return d.emptyItemCount() > sw && (d = d.compress(this.items.length - r.length)), d;
|
|
38140
38140
|
}
|
|
@@ -38160,7 +38160,7 @@ class Wt {
|
|
|
38160
38160
|
if (r--, u && n.appendMap(u, r), o) {
|
|
38161
38161
|
let c = i.selection && i.selection.map(n.slice(r));
|
|
38162
38162
|
c && a++;
|
|
38163
|
-
let d = new
|
|
38163
|
+
let d = new en(u.invert(), o, c), f, h = l.length - 1;
|
|
38164
38164
|
(f = l.length && l[h].merge(d)) ? l[h] = f : l.push(d);
|
|
38165
38165
|
}
|
|
38166
38166
|
} else i.map && r--;
|
|
@@ -38175,7 +38175,7 @@ function ow(e, t) {
|
|
|
38175
38175
|
return n = l, !1;
|
|
38176
38176
|
}), e.slice(n);
|
|
38177
38177
|
}
|
|
38178
|
-
class
|
|
38178
|
+
class en {
|
|
38179
38179
|
constructor(t, n, r, l) {
|
|
38180
38180
|
this.map = t, this.step = n, this.selection = r, this.mirrorOffset = l;
|
|
38181
38181
|
}
|
|
@@ -38183,7 +38183,7 @@ class Zt {
|
|
|
38183
38183
|
if (this.step && t.step && !t.selection) {
|
|
38184
38184
|
let n = t.step.merge(this.step);
|
|
38185
38185
|
if (n)
|
|
38186
|
-
return new
|
|
38186
|
+
return new en(n.getMap().invert(), n, this.selection);
|
|
38187
38187
|
}
|
|
38188
38188
|
}
|
|
38189
38189
|
}
|
|
@@ -40496,7 +40496,7 @@ const u8 = (e) => {
|
|
|
40496
40496
|
// 展开态真实高度变化回调:消费端据此算对话列表底部留白,避免最后一条消息被输入框遮挡。
|
|
40497
40497
|
onExpandedHeightChange: ze,
|
|
40498
40498
|
// 折叠态固定总高度(px):传入则折叠 max-height 直接用该值,不传则内部测第一行可视高度。
|
|
40499
|
-
collapsedTotalHeight:
|
|
40499
|
+
collapsedTotalHeight: un,
|
|
40500
40500
|
// 点击空白处是否切换折叠态(默认 true)。消费端在非贴底等场景下可传 false 禁用该切换。
|
|
40501
40501
|
toggleOnBlankClick: Gt = !0,
|
|
40502
40502
|
// 浮层挂载容器逃生舱:消费端(如 Qiankun 子应用有特殊布局)可强制指定浮层宿主。
|
|
@@ -40567,7 +40567,7 @@ const u8 = (e) => {
|
|
|
40567
40567
|
Pw(i, Qt, vn, xt, _t, j);
|
|
40568
40568
|
const sl = le(/* @__PURE__ */ new Map()), Gu = le(""), Qu = (t.find((H) => H.type === "tag")?.text || "") + "||" + t.filter((H) => H.key && H.type !== "report-module" && H.type !== "markdown-module").map((H) => `${H.type}:${H.key}`).join("|");
|
|
40569
40569
|
Gu.current !== Qu && (Gu.current = Qu, sl.current = /* @__PURE__ */ new Map());
|
|
40570
|
-
const [lt, ol] = K(null), [
|
|
40570
|
+
const [lt, ol] = K(null), [Jt, Ar] = K(!1);
|
|
40571
40571
|
ge(() => {
|
|
40572
40572
|
me !== void 0 && ol(me);
|
|
40573
40573
|
}, [me]), ge(() => {
|
|
@@ -40801,7 +40801,7 @@ const u8 = (e) => {
|
|
|
40801
40801
|
}, [J, o]);
|
|
40802
40802
|
const Xi = V(async () => {
|
|
40803
40803
|
if (r || l || Xt.size > 0 || $t.size > 0) return;
|
|
40804
|
-
const H = Yi ? 1 : lt ? 2 :
|
|
40804
|
+
const H = Yi ? 1 : lt ? 2 : Jt ? 3 : void 0, te = H === void 0 ? void 0 : {
|
|
40805
40805
|
...lt ? { skillCode: lt.id, skillName: lt.title } : {},
|
|
40806
40806
|
generateImage: H
|
|
40807
40807
|
};
|
|
@@ -40833,7 +40833,7 @@ const u8 = (e) => {
|
|
|
40833
40833
|
Jn,
|
|
40834
40834
|
lt,
|
|
40835
40835
|
Yi,
|
|
40836
|
-
|
|
40836
|
+
Jt,
|
|
40837
40837
|
xt,
|
|
40838
40838
|
Qt,
|
|
40839
40839
|
_t,
|
|
@@ -40861,7 +40861,7 @@ const u8 = (e) => {
|
|
|
40861
40861
|
return Yu(he), ju(Math.max(0, Math.round(re.top - ie.top))), he > 0;
|
|
40862
40862
|
}, []);
|
|
40863
40863
|
$e(() => {
|
|
40864
|
-
if (!lt && !
|
|
40864
|
+
if (!lt && !Jt) {
|
|
40865
40865
|
Yu(0), ju(0);
|
|
40866
40866
|
return;
|
|
40867
40867
|
}
|
|
@@ -40879,9 +40879,9 @@ const u8 = (e) => {
|
|
|
40879
40879
|
return re.observe(ie), () => {
|
|
40880
40880
|
H = !0, te && cancelAnimationFrame(te), re.disconnect();
|
|
40881
40881
|
};
|
|
40882
|
-
}, [lt,
|
|
40883
|
-
!lt && !
|
|
40884
|
-
}, [lt,
|
|
40882
|
+
}, [lt, Jt, t.length, Ji]), ge(() => {
|
|
40883
|
+
!lt && !Jt || t.length > 0 || al.current?.focus();
|
|
40884
|
+
}, [lt, Jt, t.length]);
|
|
40885
40885
|
const [Pb, rc] = K(!1);
|
|
40886
40886
|
ge(() => {
|
|
40887
40887
|
const H = (te) => {
|
|
@@ -40922,7 +40922,7 @@ const u8 = (e) => {
|
|
|
40922
40922
|
"--rte-editor-min-height": typeof g == "number" ? `${g}px` : g
|
|
40923
40923
|
} : {},
|
|
40924
40924
|
...b ? { "--rte-editor-padding": b } : {}
|
|
40925
|
-
}, ac = typeof
|
|
40925
|
+
}, ac = typeof un == "number" ? un : yb, ic = He ? ac : Math.max(Xn, ac), sc = {
|
|
40926
40926
|
// editor 显式 inline max-height(= editorMaxHeightPx,展开态 = clamp 到「父可用高 availInParent」
|
|
40927
40927
|
// 的 expandedMaxHeightPx):**不能**只靠「flex:1 + 父 max-height」让 flex 自动收缩——在
|
|
40928
40928
|
// max-height(非固定 height)的 column flex 容器里,触顶后 footer/filesList/editor 会按
|
|
@@ -41124,11 +41124,11 @@ const u8 = (e) => {
|
|
|
41124
41124
|
"div",
|
|
41125
41125
|
{
|
|
41126
41126
|
ref: Qn,
|
|
41127
|
-
className: `rte-editor rte-editor-default${lt ||
|
|
41127
|
+
className: `rte-editor rte-editor-default${lt || Jt ? " rte-editor-default-with-skill" : ""}`,
|
|
41128
41128
|
style: sc,
|
|
41129
41129
|
onClick: oc,
|
|
41130
41130
|
children: [
|
|
41131
|
-
(lt ||
|
|
41131
|
+
(lt || Jt) && /* @__PURE__ */ v("span", { ref: Vi, className: "rte-skill-inline-tag-wrap", contentEditable: !1, children: lt ? /* @__PURE__ */ v(Po, { title: lt.title, onClose: () => Xu(null) }) : /* @__PURE__ */ v(Po, { title: "AI生图", exitTip: "点击退出 AI 生图", onClose: () => Ar(!1) }) }),
|
|
41132
41132
|
/* @__PURE__ */ v(
|
|
41133
41133
|
"textarea",
|
|
41134
41134
|
{
|
|
@@ -41137,7 +41137,7 @@ const u8 = (e) => {
|
|
|
41137
41137
|
value: Jn,
|
|
41138
41138
|
onChange: (H) => Wu(H.target.value),
|
|
41139
41139
|
onKeyDown: Db,
|
|
41140
|
-
placeholder: lt?.usageInstruction || a || "",
|
|
41140
|
+
placeholder: Jt ? "请描述你想要的图片" : lt?.usageInstruction || a || "",
|
|
41141
41141
|
disabled: l,
|
|
41142
41142
|
rows: 1,
|
|
41143
41143
|
style: {
|
|
@@ -41223,7 +41223,7 @@ const u8 = (e) => {
|
|
|
41223
41223
|
onSkillPanelOpenChange: Bb,
|
|
41224
41224
|
skillPanelOpenDelay: M,
|
|
41225
41225
|
onAIImageClick: xb,
|
|
41226
|
-
aiImageSelected:
|
|
41226
|
+
aiImageSelected: Jt,
|
|
41227
41227
|
onSend: Xi,
|
|
41228
41228
|
padding: Ie
|
|
41229
41229
|
}
|