bi-components-library 1.3.8-next.2 → 1.3.8-next.4
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 +493 -481
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +21 -21
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -912,7 +912,7 @@ _t.prototype.property = "";
|
|
|
912
912
|
_t.prototype.spaceSeparated = !1;
|
|
913
913
|
_t.prototype.space = void 0;
|
|
914
914
|
let ig = 0;
|
|
915
|
-
const ke = Cr(), Ge = Cr(), ro = Cr(), te = Cr(), Be = Cr(),
|
|
915
|
+
const ke = Cr(), Ge = Cr(), ro = Cr(), te = Cr(), Be = Cr(), Ur = Cr(), Mt = Cr();
|
|
916
916
|
function Cr() {
|
|
917
917
|
return 2 ** ++ig;
|
|
918
918
|
}
|
|
@@ -921,7 +921,7 @@ const lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
921
921
|
boolean: ke,
|
|
922
922
|
booleanish: Ge,
|
|
923
923
|
commaOrSpaceSeparated: Mt,
|
|
924
|
-
commaSeparated:
|
|
924
|
+
commaSeparated: Ur,
|
|
925
925
|
number: te,
|
|
926
926
|
overloadedBoolean: ro,
|
|
927
927
|
spaceSeparated: Be
|
|
@@ -956,7 +956,7 @@ Jo.prototype.defined = !0;
|
|
|
956
956
|
function Mc(e, t, n) {
|
|
957
957
|
n && (e[t] = n);
|
|
958
958
|
}
|
|
959
|
-
function
|
|
959
|
+
function Xr(e) {
|
|
960
960
|
const t = {}, n = {};
|
|
961
961
|
for (const [r, l] of Object.entries(e.properties)) {
|
|
962
962
|
const a = new Jo(
|
|
@@ -969,7 +969,7 @@ function Qr(e) {
|
|
|
969
969
|
}
|
|
970
970
|
return new ea(t, n, e.space);
|
|
971
971
|
}
|
|
972
|
-
const Dh =
|
|
972
|
+
const Dh = Xr({
|
|
973
973
|
properties: {
|
|
974
974
|
ariaActiveDescendant: null,
|
|
975
975
|
ariaAtomic: Ge,
|
|
@@ -1031,7 +1031,7 @@ function Lh(e, t) {
|
|
|
1031
1031
|
function Ph(e, t) {
|
|
1032
1032
|
return Lh(e, t.toLowerCase());
|
|
1033
1033
|
}
|
|
1034
|
-
const sg =
|
|
1034
|
+
const sg = Xr({
|
|
1035
1035
|
attributes: {
|
|
1036
1036
|
acceptcharset: "accept-charset",
|
|
1037
1037
|
classname: "class",
|
|
@@ -1042,7 +1042,7 @@ const sg = Qr({
|
|
|
1042
1042
|
properties: {
|
|
1043
1043
|
// Standard Properties.
|
|
1044
1044
|
abbr: null,
|
|
1045
|
-
accept:
|
|
1045
|
+
accept: Ur,
|
|
1046
1046
|
acceptCharset: Be,
|
|
1047
1047
|
accessKey: Be,
|
|
1048
1048
|
action: null,
|
|
@@ -1069,7 +1069,7 @@ const sg = Qr({
|
|
|
1069
1069
|
contentEditable: Ge,
|
|
1070
1070
|
controls: ke,
|
|
1071
1071
|
controlsList: Be,
|
|
1072
|
-
coords: te |
|
|
1072
|
+
coords: te | Ur,
|
|
1073
1073
|
crossOrigin: null,
|
|
1074
1074
|
data: null,
|
|
1075
1075
|
dateTime: null,
|
|
@@ -1392,7 +1392,7 @@ const sg = Qr({
|
|
|
1392
1392
|
},
|
|
1393
1393
|
space: "html",
|
|
1394
1394
|
transform: Ph
|
|
1395
|
-
}), og =
|
|
1395
|
+
}), og = Xr({
|
|
1396
1396
|
attributes: {
|
|
1397
1397
|
accentHeight: "accent-height",
|
|
1398
1398
|
alignmentBaseline: "alignment-baseline",
|
|
@@ -1651,9 +1651,9 @@ const sg = Qr({
|
|
|
1651
1651
|
from: null,
|
|
1652
1652
|
fx: null,
|
|
1653
1653
|
fy: null,
|
|
1654
|
-
g1:
|
|
1655
|
-
g2:
|
|
1656
|
-
glyphName:
|
|
1654
|
+
g1: Ur,
|
|
1655
|
+
g2: Ur,
|
|
1656
|
+
glyphName: Ur,
|
|
1657
1657
|
glyphOrientationHorizontal: null,
|
|
1658
1658
|
glyphOrientationVertical: null,
|
|
1659
1659
|
glyphRef: null,
|
|
@@ -1951,7 +1951,7 @@ const sg = Qr({
|
|
|
1951
1951
|
},
|
|
1952
1952
|
space: "svg",
|
|
1953
1953
|
transform: Lh
|
|
1954
|
-
}), Bh =
|
|
1954
|
+
}), Bh = Xr({
|
|
1955
1955
|
properties: {
|
|
1956
1956
|
xLinkActuate: null,
|
|
1957
1957
|
xLinkArcRole: null,
|
|
@@ -1965,12 +1965,12 @@ const sg = Qr({
|
|
|
1965
1965
|
transform(e, t) {
|
|
1966
1966
|
return "xlink:" + t.slice(5).toLowerCase();
|
|
1967
1967
|
}
|
|
1968
|
-
}), Fh =
|
|
1968
|
+
}), Fh = Xr({
|
|
1969
1969
|
attributes: { xmlnsxlink: "xmlns:xlink" },
|
|
1970
1970
|
properties: { xmlnsXLink: null, xmlns: null },
|
|
1971
1971
|
space: "xmlns",
|
|
1972
1972
|
transform: Ph
|
|
1973
|
-
}), Hh =
|
|
1973
|
+
}), Hh = Xr({
|
|
1974
1974
|
properties: { xmlBase: null, xmlLang: null, xmlSpace: null },
|
|
1975
1975
|
space: "xml",
|
|
1976
1976
|
transform(e, t) {
|
|
@@ -2032,7 +2032,7 @@ function Uh(e) {
|
|
|
2032
2032
|
function Zo(e) {
|
|
2033
2033
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2034
2034
|
}
|
|
2035
|
-
var
|
|
2035
|
+
var _r = {}, us, Lc;
|
|
2036
2036
|
function pg() {
|
|
2037
2037
|
if (Lc) return us;
|
|
2038
2038
|
Lc = 1;
|
|
@@ -2124,12 +2124,12 @@ function pg() {
|
|
|
2124
2124
|
}
|
|
2125
2125
|
var Pc;
|
|
2126
2126
|
function mg() {
|
|
2127
|
-
if (Pc) return
|
|
2127
|
+
if (Pc) return _r;
|
|
2128
2128
|
Pc = 1;
|
|
2129
|
-
var e =
|
|
2129
|
+
var e = _r && _r.__importDefault || function(r) {
|
|
2130
2130
|
return r && r.__esModule ? r : { default: r };
|
|
2131
2131
|
};
|
|
2132
|
-
Object.defineProperty(
|
|
2132
|
+
Object.defineProperty(_r, "__esModule", { value: !0 }), _r.default = n;
|
|
2133
2133
|
const t = e(pg());
|
|
2134
2134
|
function n(r, l) {
|
|
2135
2135
|
let a = null;
|
|
@@ -2143,7 +2143,7 @@ function mg() {
|
|
|
2143
2143
|
s ? l(u, c, o) : c && (a = a || {}, a[u] = c);
|
|
2144
2144
|
}), a;
|
|
2145
2145
|
}
|
|
2146
|
-
return
|
|
2146
|
+
return _r;
|
|
2147
2147
|
}
|
|
2148
2148
|
var cl = {}, Bc;
|
|
2149
2149
|
function bg() {
|
|
@@ -2693,7 +2693,7 @@ function Kh(e, t) {
|
|
|
2693
2693
|
n > 1114111 ? "�" : String.fromCodePoint(n)
|
|
2694
2694
|
);
|
|
2695
2695
|
}
|
|
2696
|
-
function
|
|
2696
|
+
function zr(e) {
|
|
2697
2697
|
return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
2698
2698
|
}
|
|
2699
2699
|
const Zt = $n(/[A-Za-z]/), Dt = $n(/[\dA-Za-z]/), Yg = $n(/[#-'*+\--9=?A-Z^-~]/);
|
|
@@ -2721,7 +2721,7 @@ function $n(e) {
|
|
|
2721
2721
|
return n !== null && n > -1 && e.test(String.fromCharCode(n));
|
|
2722
2722
|
}
|
|
2723
2723
|
}
|
|
2724
|
-
function
|
|
2724
|
+
function Jr(e) {
|
|
2725
2725
|
const t = [];
|
|
2726
2726
|
let n = -1, r = 0, l = 0;
|
|
2727
2727
|
for (; ++n < e.length; ) {
|
|
@@ -3661,7 +3661,7 @@ function wv(e, t, n) {
|
|
|
3661
3661
|
)(f);
|
|
3662
3662
|
}
|
|
3663
3663
|
function s(f) {
|
|
3664
|
-
return l =
|
|
3664
|
+
return l = zr(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)), f === 58 ? (e.enter("definitionMarker"), e.consume(f), e.exit("definitionMarker"), o) : n(f);
|
|
3665
3665
|
}
|
|
3666
3666
|
function o(f) {
|
|
3667
3667
|
return Ye(f) ? dn(e, u)(f) : u(f);
|
|
@@ -4129,7 +4129,7 @@ function Qv(e, t, n) {
|
|
|
4129
4129
|
}
|
|
4130
4130
|
return s;
|
|
4131
4131
|
function s(h) {
|
|
4132
|
-
return a ? a._inactive ? d(h) : (i = r.parser.defined.includes(
|
|
4132
|
+
return a ? a._inactive ? d(h) : (i = r.parser.defined.includes(zr(r.sliceSerialize({
|
|
4133
4133
|
start: a.end,
|
|
4134
4134
|
end: r.now()
|
|
4135
4135
|
}))), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(h), e.exit("labelMarker"), e.exit("labelEnd"), o) : n(h);
|
|
@@ -4181,7 +4181,7 @@ function Jv(e, t, n) {
|
|
|
4181
4181
|
return ep.call(r, e, a, i, "reference", "referenceMarker", "referenceString")(s);
|
|
4182
4182
|
}
|
|
4183
4183
|
function a(s) {
|
|
4184
|
-
return r.parser.defined.includes(
|
|
4184
|
+
return r.parser.defined.includes(zr(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1))) ? t(s) : n(s);
|
|
4185
4185
|
}
|
|
4186
4186
|
function i(s) {
|
|
4187
4187
|
return n(s);
|
|
@@ -4896,7 +4896,7 @@ function z2(e) {
|
|
|
4896
4896
|
definitionDestinationString: i,
|
|
4897
4897
|
definitionLabelString: i,
|
|
4898
4898
|
definitionTitleString: i,
|
|
4899
|
-
emphasis: a(
|
|
4899
|
+
emphasis: a(Ar),
|
|
4900
4900
|
hardBreakEscape: a(_e),
|
|
4901
4901
|
hardBreakTrailing: a(_e),
|
|
4902
4902
|
htmlFlow: a($e, i),
|
|
@@ -5141,7 +5141,7 @@ function z2(e) {
|
|
|
5141
5141
|
}
|
|
5142
5142
|
function A(j) {
|
|
5143
5143
|
const le = this.resume(), Te = this.stack[this.stack.length - 1];
|
|
5144
|
-
Te.label = le, Te.identifier =
|
|
5144
|
+
Te.label = le, Te.identifier = zr(this.sliceSerialize(j)).toLowerCase();
|
|
5145
5145
|
}
|
|
5146
5146
|
function C() {
|
|
5147
5147
|
const j = this.resume(), le = this.stack[this.stack.length - 1];
|
|
@@ -5225,7 +5225,7 @@ function z2(e) {
|
|
|
5225
5225
|
}
|
|
5226
5226
|
function q(j) {
|
|
5227
5227
|
const le = this.sliceSerialize(j), Te = this.stack[this.stack.length - 2];
|
|
5228
|
-
Te.label = F2(le), Te.identifier =
|
|
5228
|
+
Te.label = F2(le), Te.identifier = zr(le).toLowerCase();
|
|
5229
5229
|
}
|
|
5230
5230
|
function G() {
|
|
5231
5231
|
const j = this.stack[this.stack.length - 1], le = this.resume(), Te = this.stack[this.stack.length - 1];
|
|
@@ -5251,7 +5251,7 @@ function z2(e) {
|
|
|
5251
5251
|
}
|
|
5252
5252
|
function pe(j) {
|
|
5253
5253
|
const le = this.resume(), Te = this.stack[this.stack.length - 1];
|
|
5254
|
-
Te.label = le, Te.identifier =
|
|
5254
|
+
Te.label = le, Te.identifier = zr(this.sliceSerialize(j)).toLowerCase(), this.data.referenceType = "full";
|
|
5255
5255
|
}
|
|
5256
5256
|
function ye(j) {
|
|
5257
5257
|
this.data.characterReferenceType = j.type;
|
|
@@ -5306,7 +5306,7 @@ function z2(e) {
|
|
|
5306
5306
|
url: ""
|
|
5307
5307
|
};
|
|
5308
5308
|
}
|
|
5309
|
-
function
|
|
5309
|
+
function Ar() {
|
|
5310
5310
|
return {
|
|
5311
5311
|
type: "emphasis",
|
|
5312
5312
|
children: []
|
|
@@ -5497,7 +5497,7 @@ function K2(e, t) {
|
|
|
5497
5497
|
return e.patch(t, n), e.applyData(t, n);
|
|
5498
5498
|
}
|
|
5499
5499
|
function G2(e, t) {
|
|
5500
|
-
const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(t.identifier).toUpperCase(), l =
|
|
5500
|
+
const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(t.identifier).toUpperCase(), l = Jr(r.toLowerCase()), a = e.footnoteOrder.indexOf(r);
|
|
5501
5501
|
let i, s = e.footnoteCounts.get(r);
|
|
5502
5502
|
s === void 0 ? (s = 0, e.footnoteOrder.push(r), i = e.footnoteOrder.length) : i = a + 1, s += 1, e.footnoteCounts.set(r, s);
|
|
5503
5503
|
const o = {
|
|
@@ -5549,13 +5549,13 @@ function J2(e, t) {
|
|
|
5549
5549
|
const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
|
|
5550
5550
|
if (!r)
|
|
5551
5551
|
return ip(e, t);
|
|
5552
|
-
const l = { src:
|
|
5552
|
+
const l = { src: Jr(r.url || ""), alt: t.alt };
|
|
5553
5553
|
r.title !== null && r.title !== void 0 && (l.title = r.title);
|
|
5554
5554
|
const a = { type: "element", tagName: "img", properties: l, children: [] };
|
|
5555
5555
|
return e.patch(t, a), e.applyData(t, a);
|
|
5556
5556
|
}
|
|
5557
5557
|
function Z2(e, t) {
|
|
5558
|
-
const n = { src:
|
|
5558
|
+
const n = { src: Jr(t.url) };
|
|
5559
5559
|
t.alt !== null && t.alt !== void 0 && (n.alt = t.alt), t.title !== null && t.title !== void 0 && (n.title = t.title);
|
|
5560
5560
|
const r = { type: "element", tagName: "img", properties: n, children: [] };
|
|
5561
5561
|
return e.patch(t, r), e.applyData(t, r);
|
|
@@ -5575,7 +5575,7 @@ function ty(e, t) {
|
|
|
5575
5575
|
const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
|
|
5576
5576
|
if (!r)
|
|
5577
5577
|
return ip(e, t);
|
|
5578
|
-
const l = { href:
|
|
5578
|
+
const l = { href: Jr(r.url || "") };
|
|
5579
5579
|
r.title !== null && r.title !== void 0 && (l.title = r.title);
|
|
5580
5580
|
const a = {
|
|
5581
5581
|
type: "element",
|
|
@@ -5586,7 +5586,7 @@ function ty(e, t) {
|
|
|
5586
5586
|
return e.patch(t, a), e.applyData(t, a);
|
|
5587
5587
|
}
|
|
5588
5588
|
function ny(e, t) {
|
|
5589
|
-
const n = { href:
|
|
5589
|
+
const n = { href: Jr(t.url) };
|
|
5590
5590
|
t.title !== null && t.title !== void 0 && (n.title = t.title);
|
|
5591
5591
|
const r = {
|
|
5592
5592
|
type: "element",
|
|
@@ -5859,24 +5859,24 @@ const op = -1, xi = 0, xl = 1, Ja = 2, au = 3, iu = 4, su = 5, ou = 6, up = 7, c
|
|
|
5859
5859
|
return n(new nd[a](i), l);
|
|
5860
5860
|
};
|
|
5861
5861
|
return r;
|
|
5862
|
-
}, rd = (e) => by(/* @__PURE__ */ new Map(), e)(0),
|
|
5862
|
+
}, rd = (e) => by(/* @__PURE__ */ new Map(), e)(0), Or = "", { toString: gy } = {}, { keys: vy } = Object, hl = (e) => {
|
|
5863
5863
|
const t = typeof e;
|
|
5864
5864
|
if (t !== "object" || !e)
|
|
5865
5865
|
return [xi, t];
|
|
5866
5866
|
const n = gy.call(e).slice(8, -1);
|
|
5867
5867
|
switch (n) {
|
|
5868
5868
|
case "Array":
|
|
5869
|
-
return [xl,
|
|
5869
|
+
return [xl, Or];
|
|
5870
5870
|
case "Object":
|
|
5871
|
-
return [Ja,
|
|
5871
|
+
return [Ja, Or];
|
|
5872
5872
|
case "Date":
|
|
5873
|
-
return [au,
|
|
5873
|
+
return [au, Or];
|
|
5874
5874
|
case "RegExp":
|
|
5875
|
-
return [iu,
|
|
5875
|
+
return [iu, Or];
|
|
5876
5876
|
case "Map":
|
|
5877
|
-
return [su,
|
|
5877
|
+
return [su, Or];
|
|
5878
5878
|
case "Set":
|
|
5879
|
-
return [ou,
|
|
5879
|
+
return [ou, Or];
|
|
5880
5880
|
case "DataView":
|
|
5881
5881
|
return [xl, n];
|
|
5882
5882
|
}
|
|
@@ -5987,7 +5987,7 @@ function Cy(e) {
|
|
|
5987
5987
|
);
|
|
5988
5988
|
if (!u)
|
|
5989
5989
|
continue;
|
|
5990
|
-
const c = e.all(u), d = String(u.identifier).toUpperCase(), h =
|
|
5990
|
+
const c = e.all(u), d = String(u.identifier).toUpperCase(), h = Jr(d.toLowerCase());
|
|
5991
5991
|
let f = 0;
|
|
5992
5992
|
const m = [], g = e.footnoteCounts.get(d);
|
|
5993
5993
|
for (; g !== void 0 && ++f <= g; ) {
|
|
@@ -7887,7 +7887,7 @@ function S3(e, t) {
|
|
|
7887
7887
|
const s = (
|
|
7888
7888
|
/** @type {DefaultTreeAdapterMap['template']} */
|
|
7889
7889
|
t
|
|
7890
|
-
), o = s.sourceCodeLocation, u = o && o.startTag &&
|
|
7890
|
+
), o = s.sourceCodeLocation, u = o && o.startTag && Pr(o.startTag), c = o && o.endTag && Pr(o.endTag), d = (
|
|
7891
7891
|
/** @type {Root} */
|
|
7892
7892
|
cu(e, s.content)
|
|
7893
7893
|
);
|
|
@@ -7902,7 +7902,7 @@ function Va(e, t, n) {
|
|
|
7902
7902
|
}
|
|
7903
7903
|
}
|
|
7904
7904
|
function k3(e, t, n) {
|
|
7905
|
-
const r =
|
|
7905
|
+
const r = Pr(n);
|
|
7906
7906
|
if (t.type === "element") {
|
|
7907
7907
|
const l = t.children[t.children.length - 1];
|
|
7908
7908
|
if (r && !n.endTag && l && l.position && l.position.end && (r.end = Object.assign({}, l.position.end)), e.verbose) {
|
|
@@ -7910,17 +7910,17 @@ function k3(e, t, n) {
|
|
|
7910
7910
|
let i;
|
|
7911
7911
|
if (n.attrs)
|
|
7912
7912
|
for (i in n.attrs)
|
|
7913
|
-
bp.call(n.attrs, i) && (a[Ei(e.schema, i).property] =
|
|
7913
|
+
bp.call(n.attrs, i) && (a[Ei(e.schema, i).property] = Pr(
|
|
7914
7914
|
n.attrs[i]
|
|
7915
7915
|
));
|
|
7916
7916
|
n.startTag;
|
|
7917
|
-
const s =
|
|
7917
|
+
const s = Pr(n.startTag), o = n.endTag ? Pr(n.endTag) : void 0, u = { opening: s };
|
|
7918
7918
|
o && (u.closing = o), u.properties = a, t.data = { position: u };
|
|
7919
7919
|
}
|
|
7920
7920
|
}
|
|
7921
7921
|
return r;
|
|
7922
7922
|
}
|
|
7923
|
-
function
|
|
7923
|
+
function Pr(e) {
|
|
7924
7924
|
const t = vd({
|
|
7925
7925
|
line: e.startLine,
|
|
7926
7926
|
column: e.startCol,
|
|
@@ -7962,11 +7962,11 @@ function I3(e, t) {
|
|
|
7962
7962
|
mode: (e.data || {}).quirksMode ? "quirks" : "no-quirks",
|
|
7963
7963
|
childNodes: []
|
|
7964
7964
|
};
|
|
7965
|
-
return n.childNodes = du(e.children, n, t),
|
|
7965
|
+
return n.childNodes = du(e.children, n, t), Zr(e, n), n;
|
|
7966
7966
|
}
|
|
7967
7967
|
function _3(e, t) {
|
|
7968
7968
|
const n = { nodeName: "#document-fragment", childNodes: [] };
|
|
7969
|
-
return n.childNodes = du(e.children, n, t),
|
|
7969
|
+
return n.childNodes = du(e.children, n, t), Zr(e, n), n;
|
|
7970
7970
|
}
|
|
7971
7971
|
function O3(e) {
|
|
7972
7972
|
const t = {
|
|
@@ -7976,7 +7976,7 @@ function O3(e) {
|
|
|
7976
7976
|
systemId: "",
|
|
7977
7977
|
parentNode: null
|
|
7978
7978
|
};
|
|
7979
|
-
return
|
|
7979
|
+
return Zr(e, t), t;
|
|
7980
7980
|
}
|
|
7981
7981
|
function M3(e) {
|
|
7982
7982
|
const t = {
|
|
@@ -7984,7 +7984,7 @@ function M3(e) {
|
|
|
7984
7984
|
value: e.value,
|
|
7985
7985
|
parentNode: null
|
|
7986
7986
|
};
|
|
7987
|
-
return
|
|
7987
|
+
return Zr(e, t), t;
|
|
7988
7988
|
}
|
|
7989
7989
|
function R3(e) {
|
|
7990
7990
|
const t = {
|
|
@@ -7992,7 +7992,7 @@ function R3(e) {
|
|
|
7992
7992
|
data: e.value,
|
|
7993
7993
|
parentNode: null
|
|
7994
7994
|
};
|
|
7995
|
-
return
|
|
7995
|
+
return Zr(e, t), t;
|
|
7996
7996
|
}
|
|
7997
7997
|
function D3(e, t) {
|
|
7998
7998
|
const n = t;
|
|
@@ -8020,7 +8020,7 @@ function D3(e, t) {
|
|
|
8020
8020
|
childNodes: [],
|
|
8021
8021
|
parentNode: null
|
|
8022
8022
|
};
|
|
8023
|
-
return s.childNodes = du(e.children, s, r),
|
|
8023
|
+
return s.childNodes = du(e.children, s, r), Zr(e, s), e.tagName === "template" && e.content && (s.content = _3(e.content, r)), s;
|
|
8024
8024
|
}
|
|
8025
8025
|
function L3(e, t, n) {
|
|
8026
8026
|
const r = Ei(e, t);
|
|
@@ -8047,7 +8047,7 @@ function du(e, t, n) {
|
|
|
8047
8047
|
}
|
|
8048
8048
|
return l;
|
|
8049
8049
|
}
|
|
8050
|
-
function
|
|
8050
|
+
function Zr(e, t) {
|
|
8051
8051
|
const n = e.position;
|
|
8052
8052
|
n && n.start && n.end && (n.start.offset, n.end.offset, t.sourceCodeLocation = {
|
|
8053
8053
|
startLine: n.start.line,
|
|
@@ -8659,7 +8659,7 @@ const X3 = /* @__PURE__ */ new Map([
|
|
|
8659
8659
|
[z.WBR, p.WBR],
|
|
8660
8660
|
[z.XMP, p.XMP]
|
|
8661
8661
|
]);
|
|
8662
|
-
function
|
|
8662
|
+
function el(e) {
|
|
8663
8663
|
var t;
|
|
8664
8664
|
return (t = X3.get(e)) !== null && t !== void 0 ? t : p.UNKNOWN;
|
|
8665
8665
|
}
|
|
@@ -8941,7 +8941,7 @@ class nE {
|
|
|
8941
8941
|
}
|
|
8942
8942
|
emitCurrentTagToken() {
|
|
8943
8943
|
const t = this.currentToken;
|
|
8944
|
-
this.prepareToken(t), t.tagID =
|
|
8944
|
+
this.prepareToken(t), t.tagID = el(t.tagName), t.type === we.START_TAG ? (this.lastStartTagName = t.tagName, this.handler.onStartTag(t)) : (t.attrs.length > 0 && this._err(Y.endTagWithAttributes), t.selfClosing && this._err(Y.endTagWithTrailingSolidus), this.handler.onEndTag(t)), this.preprocessor.dropParsedChunk();
|
|
8945
8945
|
}
|
|
8946
8946
|
emitCurrentComment(t) {
|
|
8947
8947
|
this.prepareToken(t), this.handler.onComment(t), this.preprocessor.dropParsedChunk();
|
|
@@ -11432,7 +11432,7 @@ function fu(e) {
|
|
|
11432
11432
|
}
|
|
11433
11433
|
function kE(e) {
|
|
11434
11434
|
const t = CE.get(e.tagName);
|
|
11435
|
-
t != null && (e.tagName = t, e.tagID =
|
|
11435
|
+
t != null && (e.tagName = t, e.tagID = el(e.tagName));
|
|
11436
11436
|
}
|
|
11437
11437
|
function AE(e, t) {
|
|
11438
11438
|
return t === Q.MATHML && (e === p.MI || e === p.MO || e === p.MN || e === p.MS || e === p.MTEXT);
|
|
@@ -11473,7 +11473,7 @@ class Id {
|
|
|
11473
11473
|
this.fragmentContext = r, this.scriptHandler = l, this.currentToken = null, this.stopped = !1, this.insertionMode = L.INITIAL, this.originalInsertionMode = L.INITIAL, this.headElement = null, this.formElement = null, this.currentNotInHTML = !1, this.tmplInsertionModeStack = [], this.pendingCharacterTokens = [], this.hasNonWhitespacePendingCharacterToken = !1, this.framesetOk = !0, this.skipNextNewLine = !1, this.fosterParentingEnabled = !1, this.options = {
|
|
11474
11474
|
...wd,
|
|
11475
11475
|
...t
|
|
11476
|
-
}, this.treeAdapter = this.options.treeAdapter, this.onParseError = this.options.onParseError, this.onParseError && (this.options.sourceCodeLocationInfo = !0), this.document = n ?? this.treeAdapter.createDocument(), this.tokenizer = new nE(this.options, this), this.activeFormattingElements = new cE(this.treeAdapter), this.fragmentContextID = r ?
|
|
11476
|
+
}, this.treeAdapter = this.options.treeAdapter, this.onParseError = this.options.onParseError, this.onParseError && (this.options.sourceCodeLocationInfo = !0), this.document = n ?? this.treeAdapter.createDocument(), this.tokenizer = new nE(this.options, this), this.activeFormattingElements = new cE(this.treeAdapter), this.fragmentContextID = r ? el(this.treeAdapter.getTagName(r)) : p.UNKNOWN, this._setContextModes(r ?? this.document, this.fragmentContextID), this.openElements = new uE(this.document, this.treeAdapter, this);
|
|
11477
11477
|
}
|
|
11478
11478
|
// API
|
|
11479
11479
|
static parse(t, n) {
|
|
@@ -12102,7 +12102,7 @@ class Id {
|
|
|
12102
12102
|
break;
|
|
12103
12103
|
}
|
|
12104
12104
|
case L.IN_TABLE: {
|
|
12105
|
-
|
|
12105
|
+
qr(this, t);
|
|
12106
12106
|
break;
|
|
12107
12107
|
}
|
|
12108
12108
|
case L.IN_TABLE_TEXT: {
|
|
@@ -12396,7 +12396,7 @@ function PE(e, t) {
|
|
|
12396
12396
|
return e.openElements.replace(t.element, r), t.element = r, r;
|
|
12397
12397
|
}
|
|
12398
12398
|
function BE(e, t, n) {
|
|
12399
|
-
const r = e.treeAdapter.getTagName(t), l =
|
|
12399
|
+
const r = e.treeAdapter.getTagName(t), l = el(r);
|
|
12400
12400
|
if (e._isElementCausesFosterParenting(l))
|
|
12401
12401
|
e._fosterParentElement(n);
|
|
12402
12402
|
else {
|
|
@@ -13203,7 +13203,7 @@ function $T(e, t) {
|
|
|
13203
13203
|
function qT(e, t) {
|
|
13204
13204
|
!e.formElement && e.openElements.tmplCount === 0 && (e._insertElement(t, Q.HTML), e.formElement = e.openElements.current, e.openElements.pop());
|
|
13205
13205
|
}
|
|
13206
|
-
function
|
|
13206
|
+
function qr(e, t) {
|
|
13207
13207
|
switch (t.tagID) {
|
|
13208
13208
|
case p.TD:
|
|
13209
13209
|
case p.TH:
|
|
@@ -13300,7 +13300,7 @@ function ml(e, t) {
|
|
|
13300
13300
|
const Up = /* @__PURE__ */ new Set([p.CAPTION, p.COL, p.COLGROUP, p.TBODY, p.TD, p.TFOOT, p.TH, p.THEAD, p.TR]);
|
|
13301
13301
|
function WT(e, t) {
|
|
13302
13302
|
const n = t.tagID;
|
|
13303
|
-
Up.has(n) ? e.openElements.hasInTableScope(p.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(p.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = L.IN_TABLE,
|
|
13303
|
+
Up.has(n) ? e.openElements.hasInTableScope(p.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(p.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = L.IN_TABLE, qr(e, t)) : gt(e, t);
|
|
13304
13304
|
}
|
|
13305
13305
|
function YT(e, t) {
|
|
13306
13306
|
const n = t.tagID;
|
|
@@ -13379,11 +13379,11 @@ function wi(e, t) {
|
|
|
13379
13379
|
case p.TBODY:
|
|
13380
13380
|
case p.TFOOT:
|
|
13381
13381
|
case p.THEAD: {
|
|
13382
|
-
e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = L.IN_TABLE,
|
|
13382
|
+
e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = L.IN_TABLE, qr(e, t));
|
|
13383
13383
|
break;
|
|
13384
13384
|
}
|
|
13385
13385
|
default:
|
|
13386
|
-
|
|
13386
|
+
qr(e, t);
|
|
13387
13387
|
}
|
|
13388
13388
|
}
|
|
13389
13389
|
function go(e, t) {
|
|
@@ -13430,7 +13430,7 @@ function Ii(e, t) {
|
|
|
13430
13430
|
break;
|
|
13431
13431
|
}
|
|
13432
13432
|
default:
|
|
13433
|
-
|
|
13433
|
+
qr(e, t);
|
|
13434
13434
|
}
|
|
13435
13435
|
}
|
|
13436
13436
|
function zp(e, t) {
|
|
@@ -13573,7 +13573,7 @@ function JT(e, t) {
|
|
|
13573
13573
|
case p.TBODY:
|
|
13574
13574
|
case p.TFOOT:
|
|
13575
13575
|
case p.THEAD: {
|
|
13576
|
-
e.tmplInsertionModeStack[0] = L.IN_TABLE, e.insertionMode = L.IN_TABLE,
|
|
13576
|
+
e.tmplInsertionModeStack[0] = L.IN_TABLE, e.insertionMode = L.IN_TABLE, qr(e, t);
|
|
13577
13577
|
break;
|
|
13578
13578
|
}
|
|
13579
13579
|
case p.COL: {
|
|
@@ -13728,7 +13728,7 @@ function jp(e, t) {
|
|
|
13728
13728
|
stitches: !1,
|
|
13729
13729
|
options: t || {}
|
|
13730
13730
|
};
|
|
13731
|
-
r(e, l),
|
|
13731
|
+
r(e, l), tl(l, ln());
|
|
13732
13732
|
const a = n ? l.parser.document : l.parser.getFragment(), i = x3(a, {
|
|
13733
13733
|
// To do: support `space`?
|
|
13734
13734
|
file: l.options.file
|
|
@@ -13764,7 +13764,7 @@ function m6(e, t) {
|
|
|
13764
13764
|
chars: e.value,
|
|
13765
13765
|
location: la(e)
|
|
13766
13766
|
};
|
|
13767
|
-
|
|
13767
|
+
tl(t, ln(e)), t.parser.currentToken = n, t.parser._processToken(t.parser.currentToken);
|
|
13768
13768
|
}
|
|
13769
13769
|
function b6(e, t) {
|
|
13770
13770
|
const n = {
|
|
@@ -13775,7 +13775,7 @@ function b6(e, t) {
|
|
|
13775
13775
|
systemId: "",
|
|
13776
13776
|
location: la(e)
|
|
13777
13777
|
};
|
|
13778
|
-
|
|
13778
|
+
tl(t, ln(e)), t.parser.currentToken = n, t.parser._processToken(t.parser.currentToken);
|
|
13779
13779
|
}
|
|
13780
13780
|
function g6(e, t) {
|
|
13781
13781
|
t.stitches = !0;
|
|
@@ -13795,7 +13795,7 @@ function Gp(e, t) {
|
|
|
13795
13795
|
data: n,
|
|
13796
13796
|
location: la(e)
|
|
13797
13797
|
};
|
|
13798
|
-
|
|
13798
|
+
tl(t, ln(e)), t.parser.currentToken = r, t.parser._processToken(t.parser.currentToken);
|
|
13799
13799
|
}
|
|
13800
13800
|
function v6(e, t) {
|
|
13801
13801
|
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, Qp(t, ln(e)), t.parser.tokenizer.write(
|
|
@@ -13820,7 +13820,7 @@ function y6(e, t) {
|
|
|
13820
13820
|
throw f6.has(n.type) && (r = ". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"), new Error("Cannot compile `" + n.type + "` node" + r);
|
|
13821
13821
|
}
|
|
13822
13822
|
}
|
|
13823
|
-
function
|
|
13823
|
+
function tl(e, t) {
|
|
13824
13824
|
Qp(e, t);
|
|
13825
13825
|
const n = e.parser.tokenizer.currentCharacterToken;
|
|
13826
13826
|
n && n.location && (n.location.endLine = e.parser.tokenizer.preprocessor.line, n.location.endCol = e.parser.tokenizer.preprocessor.col + 1, n.location.endOffset = e.parser.tokenizer.preprocessor.offset + 1, e.parser.currentToken = n, e.parser._processToken(e.parser.currentToken)), e.parser.tokenizer.paused = !1, e.parser.tokenizer.inLoop = !1, e.parser.tokenizer.active = !1, e.parser.tokenizer.returnState = je.DATA, e.parser.tokenizer.charRefCode = -1, e.parser.tokenizer.consumedAfterSnapshot = -1, e.parser.tokenizer.currentLocation = null, e.parser.tokenizer.currentCharacterToken = null, e.parser.tokenizer.currentToken = null, e.parser.tokenizer.currentAttr = { name: "", value: "" };
|
|
@@ -13841,7 +13841,7 @@ function Qp(e, t) {
|
|
|
13841
13841
|
function E6(e, t) {
|
|
13842
13842
|
const n = e.tagName.toLowerCase();
|
|
13843
13843
|
if (t.parser.tokenizer.state === je.PLAINTEXT) return;
|
|
13844
|
-
|
|
13844
|
+
tl(t, ln(e));
|
|
13845
13845
|
const r = t.parser.openElements.current;
|
|
13846
13846
|
let l = "namespaceURI" in r ? r.namespaceURI : lr.html;
|
|
13847
13847
|
l === lr.html && n === "svg" && (l = lr.svg);
|
|
@@ -13852,7 +13852,7 @@ function E6(e, t) {
|
|
|
13852
13852
|
), i = {
|
|
13853
13853
|
type: we.START_TAG,
|
|
13854
13854
|
tagName: n,
|
|
13855
|
-
tagID:
|
|
13855
|
+
tagID: el(n),
|
|
13856
13856
|
// We always send start and end tags.
|
|
13857
13857
|
selfClosing: !1,
|
|
13858
13858
|
ackSelfClosing: !1,
|
|
@@ -13866,11 +13866,11 @@ function E6(e, t) {
|
|
|
13866
13866
|
function T6(e, t) {
|
|
13867
13867
|
const n = e.tagName.toLowerCase();
|
|
13868
13868
|
if (!t.parser.tokenizer.inForeignNode && P3.includes(n) || t.parser.tokenizer.state === je.PLAINTEXT) return;
|
|
13869
|
-
|
|
13869
|
+
tl(t, Ti(e));
|
|
13870
13870
|
const r = {
|
|
13871
13871
|
type: we.END_TAG,
|
|
13872
13872
|
tagName: n,
|
|
13873
|
-
tagID:
|
|
13873
|
+
tagID: el(n),
|
|
13874
13874
|
selfClosing: !1,
|
|
13875
13875
|
ackSelfClosing: !1,
|
|
13876
13876
|
attrs: [],
|
|
@@ -13916,7 +13916,7 @@ function S6(e) {
|
|
|
13916
13916
|
);
|
|
13917
13917
|
};
|
|
13918
13918
|
}
|
|
13919
|
-
const tr = ["ariaDescribedBy", "ariaLabel", "ariaLabelledBy"],
|
|
13919
|
+
const tr = ["ariaDescribedBy", "ariaLabel", "ariaLabelledBy"], Br = {
|
|
13920
13920
|
ancestors: {
|
|
13921
13921
|
tbody: ["table"],
|
|
13922
13922
|
td: ["table"],
|
|
@@ -14114,7 +14114,7 @@ const tr = ["ariaDescribedBy", "ariaLabel", "ariaLabelledBy"], Pr = {
|
|
|
14114
14114
|
function k6(e, t) {
|
|
14115
14115
|
let n = { type: "root", children: [] };
|
|
14116
14116
|
const r = {
|
|
14117
|
-
schema: t ? { ...
|
|
14117
|
+
schema: t ? { ...Br, ...t } : Br,
|
|
14118
14118
|
stack: []
|
|
14119
14119
|
}, l = Xp(r, e);
|
|
14120
14120
|
return l && (Array.isArray(l) ? l.length === 1 ? n = l[0] : n.children = l : n = l), n;
|
|
@@ -15154,15 +15154,15 @@ function ia(e) {
|
|
|
15154
15154
|
return null;
|
|
15155
15155
|
}
|
|
15156
15156
|
const _C = {
|
|
15157
|
-
...
|
|
15157
|
+
...Br,
|
|
15158
15158
|
attributes: {
|
|
15159
|
-
...
|
|
15159
|
+
...Br.attributes || {},
|
|
15160
15160
|
span: [
|
|
15161
|
-
...(
|
|
15161
|
+
...(Br.attributes || {}).span || [],
|
|
15162
15162
|
"style"
|
|
15163
15163
|
],
|
|
15164
15164
|
font: [
|
|
15165
|
-
...(
|
|
15165
|
+
...(Br.attributes || {}).font || [],
|
|
15166
15166
|
"color"
|
|
15167
15167
|
]
|
|
15168
15168
|
}
|
|
@@ -15212,13 +15212,13 @@ const _C = {
|
|
|
15212
15212
|
components: LC,
|
|
15213
15213
|
children: MC(e)
|
|
15214
15214
|
}
|
|
15215
|
-
), t0 = Wo(null),
|
|
15215
|
+
), t0 = Wo(null), nl = () => Ah(t0), FC = (e) => document.body ?? e ?? document.documentElement, HC = ({
|
|
15216
15216
|
data: e,
|
|
15217
15217
|
initialPlatformIndex: t = 0,
|
|
15218
15218
|
initialStepIndex: n = 0,
|
|
15219
15219
|
onClose: r
|
|
15220
15220
|
}) => {
|
|
15221
|
-
const l =
|
|
15221
|
+
const l = nl(), a = Array.isArray(e.platforms) ? e.platforms : [], i = a.length, [s, o] = K(t), [u, c] = K(n), d = Math.min(Math.max(s, 0), Math.max(i - 1, 0)), h = a[d], f = Array.isArray(h?.images) ? h.images : [], m = Array.isArray(h?.stepDescriptions) ? h.stepDescriptions : [], g = Math.min(f.length, m.length), b = Math.min(Math.max(u, 0), Math.max(g - 1, 0)), y = f[b], A = m[b] || "", C = (e.description || "").trim(), I = (e.disclaimer || "").trim(), M = i > 1;
|
|
15222
15222
|
he(() => {
|
|
15223
15223
|
const w = (N) => {
|
|
15224
15224
|
N.key === "Escape" ? r() : N.key === "ArrowLeft" && b > 0 ? c(b - 1) : N.key === "ArrowRight" && b < g - 1 && c(b + 1);
|
|
@@ -15372,7 +15372,7 @@ const _C = {
|
|
|
15372
15372
|
} catch {
|
|
15373
15373
|
return !1;
|
|
15374
15374
|
}
|
|
15375
|
-
},
|
|
15375
|
+
}, rl = ({
|
|
15376
15376
|
tooltip: e,
|
|
15377
15377
|
className: t = "variable-info-icon",
|
|
15378
15378
|
hidden: n,
|
|
@@ -15475,7 +15475,7 @@ const _C = {
|
|
|
15475
15475
|
}
|
|
15476
15476
|
),
|
|
15477
15477
|
h && /* @__PURE__ */ v(
|
|
15478
|
-
|
|
15478
|
+
rl,
|
|
15479
15479
|
{
|
|
15480
15480
|
tooltip: a,
|
|
15481
15481
|
className: "variable-info-icon",
|
|
@@ -15624,7 +15624,7 @@ const wa = {
|
|
|
15624
15624
|
adjustX: !0,
|
|
15625
15625
|
adjustY: !0,
|
|
15626
15626
|
shiftY: !1
|
|
15627
|
-
},
|
|
15627
|
+
}, Sr = () => document.body, Tu = {
|
|
15628
15628
|
bottomLeft: {
|
|
15629
15629
|
points: ["tl", "bl"],
|
|
15630
15630
|
offset: [0, 4],
|
|
@@ -15719,7 +15719,7 @@ const wa = {
|
|
|
15719
15719
|
popupMatchSelectWidth: !1,
|
|
15720
15720
|
placement: "bottomLeft",
|
|
15721
15721
|
builtinPlacements: Tu,
|
|
15722
|
-
getPopupContainer:
|
|
15722
|
+
getPopupContainer: Sr,
|
|
15723
15723
|
suffixIcon: /* @__PURE__ */ v(
|
|
15724
15724
|
"i",
|
|
15725
15725
|
{
|
|
@@ -15848,7 +15848,7 @@ const i0 = ve.memo(
|
|
|
15848
15848
|
popupMatchSelectWidth: !1,
|
|
15849
15849
|
placement: "bottomLeft",
|
|
15850
15850
|
builtinPlacements: Tu,
|
|
15851
|
-
getPopupContainer:
|
|
15851
|
+
getPopupContainer: Sr,
|
|
15852
15852
|
notFoundContent: /* @__PURE__ */ v("span", { style: { color: "#999", fontSize: 13 }, children: "暂无数据" }),
|
|
15853
15853
|
suffixIcon: /* @__PURE__ */ v(
|
|
15854
15854
|
"i",
|
|
@@ -22286,7 +22286,7 @@ const ZC = [
|
|
|
22286
22286
|
popupClassName: "rte-cascader-dropdown",
|
|
22287
22287
|
placement: "bottomLeft",
|
|
22288
22288
|
builtinPlacements: Tu,
|
|
22289
|
-
getPopupContainer:
|
|
22289
|
+
getPopupContainer: Sr,
|
|
22290
22290
|
displayRender: (M) => M.join("-"),
|
|
22291
22291
|
style: { width: "100%" },
|
|
22292
22292
|
suffixIcon: /* @__PURE__ */ v(
|
|
@@ -22474,7 +22474,7 @@ const Cu = (e) => {
|
|
|
22474
22474
|
quiet: u,
|
|
22475
22475
|
openSignal: c
|
|
22476
22476
|
}) => {
|
|
22477
|
-
const d =
|
|
22477
|
+
const d = nl(), [h, f] = K(!1), m = J(null), g = J({}).current, [b, y] = K("bottomLeft"), [A, C] = K(0), I = $(() => {
|
|
22478
22478
|
const k = e.current, R = m.current;
|
|
22479
22479
|
if (!k || !R) return;
|
|
22480
22480
|
const _ = k.getBoundingClientRect(), F = R.getBoundingClientRect();
|
|
@@ -22835,7 +22835,7 @@ const h0 = ({
|
|
|
22835
22835
|
}
|
|
22836
22836
|
),
|
|
22837
22837
|
!M && w && /* @__PURE__ */ v(
|
|
22838
|
-
|
|
22838
|
+
rl,
|
|
22839
22839
|
{
|
|
22840
22840
|
tooltip: a,
|
|
22841
22841
|
className: "variable-info-icon",
|
|
@@ -22977,7 +22977,7 @@ const o4 = /\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i, u4 = (e) => o4.test(e), c4
|
|
|
22977
22977
|
onReplace: c,
|
|
22978
22978
|
onRemove: d
|
|
22979
22979
|
}) => {
|
|
22980
|
-
const h = J(null), f = J(null), m =
|
|
22980
|
+
const h = J(null), f = J(null), m = nl(), [g, b] = K(!1), y = t != null, A = m0(t), [C, I] = K(!1), M = $(() => {
|
|
22981
22981
|
a || h.current?.click();
|
|
22982
22982
|
}, [a]), x = $(
|
|
22983
22983
|
(q) => {
|
|
@@ -23035,7 +23035,7 @@ const o4 = /\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i, u4 = (e) => o4.test(e), c4
|
|
|
23035
23035
|
return V ? /* @__PURE__ */ v(
|
|
23036
23036
|
Go,
|
|
23037
23037
|
{
|
|
23038
|
-
getPopupContainer:
|
|
23038
|
+
getPopupContainer: Sr,
|
|
23039
23039
|
title: /* @__PURE__ */ v("div", { className: "se-upload-preview", children: /* @__PURE__ */ v("img", { className: "se-upload-preview-img", src: A, alt: "preview" }) }),
|
|
23040
23040
|
placement: "top",
|
|
23041
23041
|
align: { offset: [0, -10] },
|
|
@@ -23660,7 +23660,7 @@ const Qd = 2 * Math.PI * 6.5, g0 = "data:image/svg+xml,%3Csvg xmlns='http://www.
|
|
|
23660
23660
|
}
|
|
23661
23661
|
),
|
|
23662
23662
|
R && /* @__PURE__ */ v(
|
|
23663
|
-
|
|
23663
|
+
rl,
|
|
23664
23664
|
{
|
|
23665
23665
|
tooltip: R,
|
|
23666
23666
|
className: "variable-info-icon",
|
|
@@ -23867,7 +23867,7 @@ const A4 = (e) => e ? typeof e == "string" ? e : JSON.stringify(e) : "", N4 = 10
|
|
|
23867
23867
|
/* @__PURE__ */ v("i", { className: "iconfont icon-shangchuan1", style: { fontSize: 16 } }),
|
|
23868
23868
|
/* @__PURE__ */ v("span", { className: "video-label", children: e.text ?? "请上传想要分析的视频文件" }),
|
|
23869
23869
|
N && /* @__PURE__ */ v(
|
|
23870
|
-
|
|
23870
|
+
rl,
|
|
23871
23871
|
{
|
|
23872
23872
|
tooltip: N,
|
|
23873
23873
|
className: "upload-info-icon",
|
|
@@ -24030,7 +24030,7 @@ const I4 = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
|
|
|
24030
24030
|
disabled: c,
|
|
24031
24031
|
error: d
|
|
24032
24032
|
}) => {
|
|
24033
|
-
const h =
|
|
24033
|
+
const h = nl(), f = _4(e.tooltip), m = t ?? "", g = !!i, b = !m && !g, y = !!l, A = y && !c && (b || g), C = !y && !!f && b, I = A || C, [M, x] = K(!1), [w, N] = K(!1), k = J({}).current, R = J(""), _ = $(
|
|
24034
24034
|
async (_e) => {
|
|
24035
24035
|
const $e = _e.trim();
|
|
24036
24036
|
if (!(!$e || !r) && R.current !== $e) {
|
|
@@ -24134,7 +24134,7 @@ const I4 = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
|
|
|
24134
24134
|
)
|
|
24135
24135
|
}
|
|
24136
24136
|
) : C ? /* @__PURE__ */ v(
|
|
24137
|
-
|
|
24137
|
+
rl,
|
|
24138
24138
|
{
|
|
24139
24139
|
tooltip: f,
|
|
24140
24140
|
className: "variable-info-icon",
|
|
@@ -24163,7 +24163,7 @@ const I4 = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
|
|
|
24163
24163
|
$e.closest(".rte-report-chip-clear-host") || $e.closest(".rte-report-dropdown-host") || (_e.stopPropagation(), w ? N(!1) : P());
|
|
24164
24164
|
},
|
|
24165
24165
|
[g, c, A, w, P]
|
|
24166
|
-
),
|
|
24166
|
+
), Ar = /* @__PURE__ */ W(
|
|
24167
24167
|
"span",
|
|
24168
24168
|
{
|
|
24169
24169
|
ref: G,
|
|
@@ -24248,7 +24248,7 @@ const I4 = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
|
|
|
24248
24248
|
getPopupContainer: () => h ?? document.body,
|
|
24249
24249
|
overlayClassName: "rte-report-dropdown-overlay",
|
|
24250
24250
|
arrow: !1,
|
|
24251
|
-
children:
|
|
24251
|
+
children: Ar
|
|
24252
24252
|
}
|
|
24253
24253
|
)
|
|
24254
24254
|
]
|
|
@@ -24265,7 +24265,7 @@ const I4 = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
|
|
|
24265
24265
|
getPopupContainer: () => h ?? document.body,
|
|
24266
24266
|
overlayClassName: "rte-report-dropdown-overlay",
|
|
24267
24267
|
arrow: !1,
|
|
24268
|
-
children:
|
|
24268
|
+
children: Ar
|
|
24269
24269
|
}
|
|
24270
24270
|
) });
|
|
24271
24271
|
}
|
|
@@ -24370,7 +24370,7 @@ function A0(e, t) {
|
|
|
24370
24370
|
), k = x ? /* @__PURE__ */ W("span", { className: "rte-markdown-host", children: [
|
|
24371
24371
|
N,
|
|
24372
24372
|
/* @__PURE__ */ v(
|
|
24373
|
-
|
|
24373
|
+
rl,
|
|
24374
24374
|
{
|
|
24375
24375
|
tooltip: M,
|
|
24376
24376
|
className: "variable-info-icon",
|
|
@@ -27059,7 +27059,7 @@ function sf(e, t) {
|
|
|
27059
27059
|
return !0;
|
|
27060
27060
|
}
|
|
27061
27061
|
}
|
|
27062
|
-
class
|
|
27062
|
+
class kr {
|
|
27063
27063
|
/**
|
|
27064
27064
|
Create a serializer. `nodes` should map node names to functions
|
|
27065
27065
|
that take a node and return a description of the corresponding
|
|
@@ -27148,7 +27148,7 @@ class Sr {
|
|
|
27148
27148
|
properties in a schema's node and mark specs.
|
|
27149
27149
|
*/
|
|
27150
27150
|
static fromSchema(t) {
|
|
27151
|
-
return t.cached.domSerializer || (t.cached.domSerializer = new
|
|
27151
|
+
return t.cached.domSerializer || (t.cached.domSerializer = new kr(this.nodesFromSchema(t), this.marksFromSchema(t)));
|
|
27152
27152
|
}
|
|
27153
27153
|
/**
|
|
27154
27154
|
Gather the serializers in a schema's node specs into an object.
|
|
@@ -28441,7 +28441,7 @@ function rm(e, t) {
|
|
|
28441
28441
|
}
|
|
28442
28442
|
return n;
|
|
28443
28443
|
}
|
|
28444
|
-
class
|
|
28444
|
+
class Vr extends vt {
|
|
28445
28445
|
/**
|
|
28446
28446
|
Construct an attribute step.
|
|
28447
28447
|
*/
|
|
@@ -28463,11 +28463,11 @@ class zr extends vt {
|
|
|
28463
28463
|
return Rt.empty;
|
|
28464
28464
|
}
|
|
28465
28465
|
invert(t) {
|
|
28466
|
-
return new
|
|
28466
|
+
return new Vr(this.pos, this.attr, t.nodeAt(this.pos).attrs[this.attr]);
|
|
28467
28467
|
}
|
|
28468
28468
|
map(t) {
|
|
28469
28469
|
let n = t.mapResult(this.pos, 1);
|
|
28470
|
-
return n.deletedAfter ? null : new
|
|
28470
|
+
return n.deletedAfter ? null : new Vr(n.pos, this.attr, this.value);
|
|
28471
28471
|
}
|
|
28472
28472
|
toJSON() {
|
|
28473
28473
|
return { stepType: "attr", pos: this.pos, attr: this.attr, value: this.value };
|
|
@@ -28475,10 +28475,10 @@ class zr extends vt {
|
|
|
28475
28475
|
static fromJSON(t, n) {
|
|
28476
28476
|
if (typeof n.pos != "number" || typeof n.attr != "string")
|
|
28477
28477
|
throw new RangeError("Invalid input for AttrStep.fromJSON");
|
|
28478
|
-
return new
|
|
28478
|
+
return new Vr(n.pos, n.attr, n.value);
|
|
28479
28479
|
}
|
|
28480
28480
|
}
|
|
28481
|
-
vt.jsonID("attr",
|
|
28481
|
+
vt.jsonID("attr", Vr);
|
|
28482
28482
|
class Wl extends vt {
|
|
28483
28483
|
/**
|
|
28484
28484
|
Construct an attribute step.
|
|
@@ -28513,15 +28513,15 @@ class Wl extends vt {
|
|
|
28513
28513
|
}
|
|
28514
28514
|
}
|
|
28515
28515
|
vt.jsonID("docAttr", Wl);
|
|
28516
|
-
let
|
|
28516
|
+
let Wr = class extends Error {
|
|
28517
28517
|
};
|
|
28518
|
-
|
|
28518
|
+
Wr = function e(t) {
|
|
28519
28519
|
let n = Error.call(this, t);
|
|
28520
28520
|
return n.__proto__ = e.prototype, n;
|
|
28521
28521
|
};
|
|
28522
|
-
|
|
28523
|
-
|
|
28524
|
-
|
|
28522
|
+
Wr.prototype = Object.create(Error.prototype);
|
|
28523
|
+
Wr.prototype.constructor = Wr;
|
|
28524
|
+
Wr.prototype.name = "TransformError";
|
|
28525
28525
|
class _x {
|
|
28526
28526
|
/**
|
|
28527
28527
|
Create a transform that starts with the given document.
|
|
@@ -28542,7 +28542,7 @@ class _x {
|
|
|
28542
28542
|
step(t) {
|
|
28543
28543
|
let n = this.maybeStep(t);
|
|
28544
28544
|
if (n.failed)
|
|
28545
|
-
throw new
|
|
28545
|
+
throw new Wr(n.failed);
|
|
28546
28546
|
return this;
|
|
28547
28547
|
}
|
|
28548
28548
|
/**
|
|
@@ -28695,7 +28695,7 @@ class _x {
|
|
|
28695
28695
|
to set attributes on the document itself.
|
|
28696
28696
|
*/
|
|
28697
28697
|
setNodeAttribute(t, n, r) {
|
|
28698
|
-
return this.step(new
|
|
28698
|
+
return this.step(new Vr(t, n, r)), this;
|
|
28699
28699
|
}
|
|
28700
28700
|
/**
|
|
28701
28701
|
Set a single attribute on the document to a new value.
|
|
@@ -28858,11 +28858,11 @@ class Ae {
|
|
|
28858
28858
|
found.
|
|
28859
28859
|
*/
|
|
28860
28860
|
static findFrom(t, n, r = !1) {
|
|
28861
|
-
let l = t.parent.inlineContent ? new Ee(t) :
|
|
28861
|
+
let l = t.parent.inlineContent ? new Ee(t) : Dr(t.node(0), t.parent, t.pos, t.index(), n, r);
|
|
28862
28862
|
if (l)
|
|
28863
28863
|
return l;
|
|
28864
28864
|
for (let a = t.depth - 1; a >= 0; a--) {
|
|
28865
|
-
let i = n < 0 ?
|
|
28865
|
+
let i = n < 0 ? Dr(t.node(0), t.node(a), t.before(a + 1), t.index(a), n, r) : Dr(t.node(0), t.node(a), t.after(a + 1), t.index(a) + 1, n, r);
|
|
28866
28866
|
if (i)
|
|
28867
28867
|
return i;
|
|
28868
28868
|
}
|
|
@@ -28883,14 +28883,14 @@ class Ae {
|
|
|
28883
28883
|
exists.
|
|
28884
28884
|
*/
|
|
28885
28885
|
static atStart(t) {
|
|
28886
|
-
return
|
|
28886
|
+
return Dr(t, t, 0, 0, 1) || new Pt(t);
|
|
28887
28887
|
}
|
|
28888
28888
|
/**
|
|
28889
28889
|
Find the cursor or leaf node selection closest to the end of the
|
|
28890
28890
|
given document.
|
|
28891
28891
|
*/
|
|
28892
28892
|
static atEnd(t) {
|
|
28893
|
-
return
|
|
28893
|
+
return Dr(t, t, t.content.size, t.childCount, -1) || new Pt(t);
|
|
28894
28894
|
}
|
|
28895
28895
|
/**
|
|
28896
28896
|
Deserialize the JSON representation of a selection. Must be
|
|
@@ -29129,7 +29129,7 @@ const Mx = {
|
|
|
29129
29129
|
return new Pt(e);
|
|
29130
29130
|
}
|
|
29131
29131
|
};
|
|
29132
|
-
function
|
|
29132
|
+
function Dr(e, t, n, r, l, a = !1) {
|
|
29133
29133
|
if (t.inlineContent)
|
|
29134
29134
|
return Ee.create(e, n);
|
|
29135
29135
|
for (let i = r - (l > 0 ? 0 : 1); l > 0 ? i < t.childCount : i >= 0; i += l) {
|
|
@@ -29138,7 +29138,7 @@ function Rr(e, t, n, r, l, a = !1) {
|
|
|
29138
29138
|
if (!a && be.isSelectable(s))
|
|
29139
29139
|
return be.create(e, n - (l < 0 ? s.nodeSize : 0));
|
|
29140
29140
|
} else {
|
|
29141
|
-
let o =
|
|
29141
|
+
let o = Dr(e, s, n + l, l < 0 ? s.childCount : 0, l, a);
|
|
29142
29142
|
if (o)
|
|
29143
29143
|
return o;
|
|
29144
29144
|
}
|
|
@@ -29361,7 +29361,7 @@ class Bs {
|
|
|
29361
29361
|
});
|
|
29362
29362
|
}
|
|
29363
29363
|
}
|
|
29364
|
-
class
|
|
29364
|
+
class Fr {
|
|
29365
29365
|
/**
|
|
29366
29366
|
@internal
|
|
29367
29367
|
*/
|
|
@@ -29436,7 +29436,7 @@ class Br {
|
|
|
29436
29436
|
applyInner(t) {
|
|
29437
29437
|
if (!t.before.eq(this.doc))
|
|
29438
29438
|
throw new RangeError("Applying a mismatched transaction");
|
|
29439
|
-
let n = new
|
|
29439
|
+
let n = new Fr(this.config), r = this.config.fields;
|
|
29440
29440
|
for (let l = 0; l < r.length; l++) {
|
|
29441
29441
|
let a = r[l];
|
|
29442
29442
|
n[a.name] = a.apply(t, this[a.name], this, n);
|
|
@@ -29453,7 +29453,7 @@ class Br {
|
|
|
29453
29453
|
Create a new state.
|
|
29454
29454
|
*/
|
|
29455
29455
|
static create(t) {
|
|
29456
|
-
let n = new Bs(t.doc ? t.doc.type.schema : t.schema, t.plugins), r = new
|
|
29456
|
+
let n = new Bs(t.doc ? t.doc.type.schema : t.schema, t.plugins), r = new Fr(n);
|
|
29457
29457
|
for (let l = 0; l < n.fields.length; l++)
|
|
29458
29458
|
r[n.fields[l].name] = n.fields[l].init(t, r);
|
|
29459
29459
|
return r;
|
|
@@ -29467,7 +29467,7 @@ class Br {
|
|
|
29467
29467
|
configuration object..
|
|
29468
29468
|
*/
|
|
29469
29469
|
reconfigure(t) {
|
|
29470
|
-
let n = new Bs(this.schema, t.plugins), r = n.fields, l = new
|
|
29470
|
+
let n = new Bs(this.schema, t.plugins), r = n.fields, l = new Fr(n);
|
|
29471
29471
|
for (let a = 0; a < r.length; a++) {
|
|
29472
29472
|
let i = r[a].name;
|
|
29473
29473
|
l[i] = this.hasOwnProperty(i) ? this[i] : r[a].init(t, l);
|
|
@@ -29504,7 +29504,7 @@ class Br {
|
|
|
29504
29504
|
throw new RangeError("Invalid input for EditorState.fromJSON");
|
|
29505
29505
|
if (!t.schema)
|
|
29506
29506
|
throw new RangeError("Required config field 'schema' missing");
|
|
29507
|
-
let l = new Bs(t.schema, t.plugins), a = new
|
|
29507
|
+
let l = new Bs(t.schema, t.plugins), a = new Fr(l);
|
|
29508
29508
|
return l.fields.forEach((i) => {
|
|
29509
29509
|
if (i.name == "doc")
|
|
29510
29510
|
a.doc = Ln.fromJSON(t.schema, n.doc);
|
|
@@ -29576,7 +29576,7 @@ const ut = function(e) {
|
|
|
29576
29576
|
for (var t = 0; ; t++)
|
|
29577
29577
|
if (e = e.previousSibling, !e)
|
|
29578
29578
|
return t;
|
|
29579
|
-
},
|
|
29579
|
+
}, Yr = function(e) {
|
|
29580
29580
|
let t = e.assignedSlot || e.parentNode;
|
|
29581
29581
|
return t && t.nodeType == 11 ? t.host : t;
|
|
29582
29582
|
};
|
|
@@ -29687,7 +29687,7 @@ function zx(e, t, n) {
|
|
|
29687
29687
|
}
|
|
29688
29688
|
const nn = typeof navigator < "u" ? navigator : null, yf = typeof document < "u" ? document : null, Yn = nn && nn.userAgent || "", Ao = /Edge\/(\d+)/.exec(Yn), im = /MSIE \d/.exec(Yn), No = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Yn), wt = !!(im || No || Ao), Pn = im ? document.documentMode : No ? +No[1] : Ao ? +Ao[1] : 0, qt = !wt && /gecko\/(\d+)/i.test(Yn);
|
|
29689
29689
|
qt && +(/Firefox\/(\d+)/.exec(Yn) || [0, 0])[1];
|
|
29690
|
-
const wo = !wt && /Chrome\/(\d+)/.exec(Yn), dt = !!wo, sm = wo ? +wo[1] : 0, pt = !wt && !!nn && /Apple Computer/.test(nn.vendor),
|
|
29690
|
+
const wo = !wt && /Chrome\/(\d+)/.exec(Yn), dt = !!wo, sm = wo ? +wo[1] : 0, pt = !wt && !!nn && /Apple Computer/.test(nn.vendor), jr = pt && (/Mobile\/\w+/.test(Yn) || !!nn && nn.maxTouchPoints > 2), Ut = jr || (nn ? /Mac/.test(nn.platform) : !1), om = nn ? /Win/.test(nn.platform) : !1, fn = /Android \d/.test(Yn), oa = !!yf && "webkitFontSmoothing" in yf.documentElement.style, Vx = oa ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
|
|
29691
29691
|
function $x(e) {
|
|
29692
29692
|
let t = e.defaultView && e.defaultView.visualViewport;
|
|
29693
29693
|
return t ? {
|
|
@@ -29718,7 +29718,7 @@ function Ef(e, t, n) {
|
|
|
29718
29718
|
let r = e.someProp("scrollThreshold") || 0, l = e.someProp("scrollMargin") || 5, a = e.dom.ownerDocument;
|
|
29719
29719
|
for (let i = n || e.dom; i; ) {
|
|
29720
29720
|
if (i.nodeType != 1) {
|
|
29721
|
-
i =
|
|
29721
|
+
i = Yr(i);
|
|
29722
29722
|
continue;
|
|
29723
29723
|
}
|
|
29724
29724
|
let s = i, o = s == a.body, u = o ? $x(a) : qx(s), c = 0, d = 0;
|
|
@@ -29734,7 +29734,7 @@ function Ef(e, t, n) {
|
|
|
29734
29734
|
let h = o ? "fixed" : getComputedStyle(i).position;
|
|
29735
29735
|
if (/^(fixed|sticky)$/.test(h))
|
|
29736
29736
|
break;
|
|
29737
|
-
i = h == "absolute" ? i.offsetParent :
|
|
29737
|
+
i = h == "absolute" ? i.offsetParent : Yr(i);
|
|
29738
29738
|
}
|
|
29739
29739
|
}
|
|
29740
29740
|
function Wx(e) {
|
|
@@ -29753,7 +29753,7 @@ function Wx(e) {
|
|
|
29753
29753
|
}
|
|
29754
29754
|
function um(e) {
|
|
29755
29755
|
let t = [], n = e.ownerDocument;
|
|
29756
|
-
for (let r = e; r && (t.push({ dom: r, top: r.scrollTop, left: r.scrollLeft }), e != n); r =
|
|
29756
|
+
for (let r = e; r && (t.push({ dom: r, top: r.scrollTop, left: r.scrollLeft }), e != n); r = Yr(r))
|
|
29757
29757
|
;
|
|
29758
29758
|
return t;
|
|
29759
29759
|
}
|
|
@@ -29767,18 +29767,18 @@ function cm(e, t) {
|
|
|
29767
29767
|
r.scrollTop != l + t && (r.scrollTop = l + t), r.scrollLeft != a && (r.scrollLeft = a);
|
|
29768
29768
|
}
|
|
29769
29769
|
}
|
|
29770
|
-
let
|
|
29770
|
+
let Mr = null;
|
|
29771
29771
|
function jx(e) {
|
|
29772
29772
|
if (e.setActive)
|
|
29773
29773
|
return e.setActive();
|
|
29774
|
-
if (
|
|
29775
|
-
return e.focus(
|
|
29774
|
+
if (Mr)
|
|
29775
|
+
return e.focus(Mr);
|
|
29776
29776
|
let t = um(e);
|
|
29777
|
-
e.focus(
|
|
29777
|
+
e.focus(Mr == null ? {
|
|
29778
29778
|
get preventScroll() {
|
|
29779
|
-
return
|
|
29779
|
+
return Mr = { preventScroll: !0 }, !0;
|
|
29780
29780
|
}
|
|
29781
|
-
} : void 0),
|
|
29781
|
+
} : void 0), Mr || (Mr = !1, cm(t, 0));
|
|
29782
29782
|
}
|
|
29783
29783
|
function dm(e, t) {
|
|
29784
29784
|
let n, r = 2e8, l, a = 0, i = t.top, s = t.top, o, u;
|
|
@@ -29876,7 +29876,7 @@ function Jx(e, t) {
|
|
|
29876
29876
|
return null;
|
|
29877
29877
|
}
|
|
29878
29878
|
if (pt)
|
|
29879
|
-
for (let u = i; r && u; u =
|
|
29879
|
+
for (let u = i; r && u; u = Yr(u))
|
|
29880
29880
|
u.draggable && (r = void 0);
|
|
29881
29881
|
if (i = Gx(i, t), r) {
|
|
29882
29882
|
if (qt && r.nodeType == 1 && (l = Math.min(l, r.childNodes.length), l < r.childNodes.length)) {
|
|
@@ -30434,7 +30434,7 @@ class Tr extends ua {
|
|
|
30434
30434
|
}
|
|
30435
30435
|
static create(t, n, r, l) {
|
|
30436
30436
|
let a = l.nodeViews[n.type.name], i = a && a(n, l, r);
|
|
30437
|
-
return (!i || !i.dom) && (i =
|
|
30437
|
+
return (!i || !i.dom) && (i = kr.renderSpec(document, n.type.spec.toDOM(n, r), null, n.attrs)), new Tr(t, n, i.dom, i.contentDOM || i.dom, i);
|
|
30438
30438
|
}
|
|
30439
30439
|
parseRule() {
|
|
30440
30440
|
return this.dirty & rn || this.mark.type.spec.reparseInView ? null : { mark: this.mark.type.name, attrs: this.mark.attrs, contentElement: this.contentDOM };
|
|
@@ -30489,7 +30489,7 @@ class Bn extends ua {
|
|
|
30489
30489
|
c = document.createTextNode(n.text);
|
|
30490
30490
|
else if (c.nodeType != 3)
|
|
30491
30491
|
throw new RangeError("Text must be rendered as a DOM text node");
|
|
30492
|
-
} else c || ({ dom: c, contentDOM: d } =
|
|
30492
|
+
} else c || ({ dom: c, contentDOM: d } = kr.renderSpec(document, n.type.spec.toDOM(n), null, n.attrs));
|
|
30493
30493
|
!d && !n.isText && c.nodeName != "BR" && (c.hasAttribute("contenteditable") || (c.contentEditable = "false"), n.type.spec.draggable && (c.draggable = !0));
|
|
30494
30494
|
let h = c;
|
|
30495
30495
|
return c = ym(c, r, n), u ? o = new a5(t, n, r, l, c, d || null, h, u, a, i + 1) : n.isText ? new Li(t, n, r, l, c, h, a) : new Bn(t, n, r, l, c, d || null, h, a, i + 1);
|
|
@@ -30535,7 +30535,7 @@ class Bn extends ua {
|
|
|
30535
30535
|
o.syncToMarks(u.marks, r, t, h);
|
|
30536
30536
|
let f;
|
|
30537
30537
|
o.findNodeMatch(u, c, d, h) || s && t.state.selection.from > l && t.state.selection.to < l + u.nodeSize && (f = o.findIndexWithChild(a.node)) > -1 && o.updateNodeAt(u, c, d, f, t) || o.updateNextNode(u, c, d, t, h, l) || o.addNode(u, c, d, t, l), l += u.nodeSize;
|
|
30538
|
-
}), o.syncToMarks([], r, t, 0), this.node.isTextblock && o.addTextblockHacks(), o.destroyRest(), (o.changed || this.dirty == ar) && (i && this.protectLocalComposition(t, i), gm(this.contentDOM, this.children, t),
|
|
30538
|
+
}), o.syncToMarks([], r, t, 0), this.node.isTextblock && o.addTextblockHacks(), o.destroyRest(), (o.changed || this.dirty == ar) && (i && this.protectLocalComposition(t, i), gm(this.contentDOM, this.children, t), jr && d5(this.dom));
|
|
30539
30539
|
}
|
|
30540
30540
|
localCompositionInfo(t, n) {
|
|
30541
30541
|
let { from: r, to: l } = t.state.selection;
|
|
@@ -31213,7 +31213,7 @@ function Rl(e, t) {
|
|
|
31213
31213
|
let n = e.pmViewDesc;
|
|
31214
31214
|
return n && n.size == 0 && (t < 0 || e.nextSibling || e.nodeName != "BR");
|
|
31215
31215
|
}
|
|
31216
|
-
function
|
|
31216
|
+
function Rr(e, t) {
|
|
31217
31217
|
return t < 0 ? b5(e) : g5(e);
|
|
31218
31218
|
}
|
|
31219
31219
|
function b5(e) {
|
|
@@ -31400,22 +31400,22 @@ function T5(e) {
|
|
|
31400
31400
|
function C5(e, t) {
|
|
31401
31401
|
let n = t.keyCode, r = T5(t);
|
|
31402
31402
|
if (n == 8 || Ut && n == 72 && r == "c")
|
|
31403
|
-
return Pf(e, -1) ||
|
|
31403
|
+
return Pf(e, -1) || Rr(e, -1);
|
|
31404
31404
|
if (n == 46 && !t.shiftKey || Ut && n == 68 && r == "c")
|
|
31405
|
-
return Pf(e, 1) ||
|
|
31405
|
+
return Pf(e, 1) || Rr(e, 1);
|
|
31406
31406
|
if (n == 13 || n == 27)
|
|
31407
31407
|
return !0;
|
|
31408
31408
|
if (n == 37 || Ut && n == 66 && r == "c") {
|
|
31409
31409
|
let l = n == 37 ? Df(e, e.state.selection.from) == "ltr" ? -1 : 1 : -1;
|
|
31410
|
-
return Rf(e, l, r) ||
|
|
31410
|
+
return Rf(e, l, r) || Rr(e, l);
|
|
31411
31411
|
} else if (n == 39 || Ut && n == 70 && r == "c") {
|
|
31412
31412
|
let l = n == 39 ? Df(e, e.state.selection.from) == "ltr" ? 1 : -1 : 1;
|
|
31413
|
-
return Rf(e, l, r) ||
|
|
31413
|
+
return Rf(e, l, r) || Rr(e, l);
|
|
31414
31414
|
} else {
|
|
31415
31415
|
if (n == 38 || Ut && n == 80 && r == "c")
|
|
31416
|
-
return Lf(e, -1, r) ||
|
|
31416
|
+
return Lf(e, -1, r) || Rr(e, -1);
|
|
31417
31417
|
if (n == 40 || Ut && n == 78 && r == "c")
|
|
31418
|
-
return E5(e) || Lf(e, 1, r) ||
|
|
31418
|
+
return E5(e) || Lf(e, 1, r) || Rr(e, 1);
|
|
31419
31419
|
if (r == (Ut ? "m" : "c") && (n == 66 || n == 73 || n == 89 || n == 90))
|
|
31420
31420
|
return !0;
|
|
31421
31421
|
}
|
|
@@ -31431,7 +31431,7 @@ function _u(e, t) {
|
|
|
31431
31431
|
let f = r.firstChild;
|
|
31432
31432
|
n.push(f.type.name, f.attrs != f.type.defaultAttrs ? f.attrs : null), r = f.content;
|
|
31433
31433
|
}
|
|
31434
|
-
let i = e.someProp("clipboardSerializer") ||
|
|
31434
|
+
let i = e.someProp("clipboardSerializer") || kr.fromSchema(e.state.schema), s = Im(), o = s.createElement("div");
|
|
31435
31435
|
o.appendChild(i.serializeFragment(r, { document: s }));
|
|
31436
31436
|
let u = o.firstChild, c, d = 0;
|
|
31437
31437
|
for (; u && u.nodeType == 1 && (c = wm[u.nodeName.toLowerCase()]); ) {
|
|
@@ -31466,7 +31466,7 @@ function Sm(e, t, n, r, l) {
|
|
|
31466
31466
|
if (d)
|
|
31467
31467
|
s = d;
|
|
31468
31468
|
else {
|
|
31469
|
-
let h = l.marks(), { schema: f } = e.state, m =
|
|
31469
|
+
let h = l.marks(), { schema: f } = e.state, m = kr.fromSchema(f);
|
|
31470
31470
|
i = document.createElement("div"), t.split(/(?:\r\n?|\n)+/).forEach((g) => {
|
|
31471
31471
|
let b = i.appendChild(document.createElement("p"));
|
|
31472
31472
|
g && b.appendChild(m.serializeNode(f.text(g, h)));
|
|
@@ -31663,7 +31663,7 @@ function D5(e, t) {
|
|
|
31663
31663
|
Tt.keydown = (e, t) => {
|
|
31664
31664
|
let n = t;
|
|
31665
31665
|
if (e.input.shiftKey = n.keyCode == 16 || n.shiftKey, !Om(e, n) && (e.input.lastKeyCode = n.keyCode, e.input.lastKeyCodeTime = Date.now(), !(fn && dt && n.keyCode == 13)))
|
|
31666
|
-
if (n.keyCode != 229 && e.domObserver.forceFlush(),
|
|
31666
|
+
if (n.keyCode != 229 && e.domObserver.forceFlush(), jr && n.keyCode == 13 && !n.ctrlKey && !n.altKey && !n.metaKey) {
|
|
31667
31667
|
let r = Date.now();
|
|
31668
31668
|
e.input.lastIOSEnter = r, e.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
|
|
31669
31669
|
e.input.lastIOSEnter == r && (e.someProp("handleKeyDown", (l) => l(e, nr(13, "Enter"))), e.input.lastIOSEnter = 0);
|
|
@@ -31703,7 +31703,7 @@ function Mu(e, t, n, r, l) {
|
|
|
31703
31703
|
return !0;
|
|
31704
31704
|
return !1;
|
|
31705
31705
|
}
|
|
31706
|
-
function
|
|
31706
|
+
function $r(e, t, n) {
|
|
31707
31707
|
if (e.focused || e.focus(), e.state.selection.eq(t))
|
|
31708
31708
|
return;
|
|
31709
31709
|
let r = e.state.tr.setSelection(t);
|
|
@@ -31713,7 +31713,7 @@ function P5(e, t) {
|
|
|
31713
31713
|
if (t == -1)
|
|
31714
31714
|
return !1;
|
|
31715
31715
|
let n = e.state.doc.resolve(t), r = n.nodeAfter;
|
|
31716
|
-
return r && r.isAtom && be.isSelectable(r) ? (
|
|
31716
|
+
return r && r.isAtom && be.isSelectable(r) ? ($r(e, new be(n)), !0) : !1;
|
|
31717
31717
|
}
|
|
31718
31718
|
function B5(e, t) {
|
|
31719
31719
|
if (t == -1)
|
|
@@ -31728,7 +31728,7 @@ function B5(e, t) {
|
|
|
31728
31728
|
break;
|
|
31729
31729
|
}
|
|
31730
31730
|
}
|
|
31731
|
-
return l != null ? (
|
|
31731
|
+
return l != null ? ($r(e, be.create(e.state.doc, l)), !0) : !1;
|
|
31732
31732
|
}
|
|
31733
31733
|
function F5(e, t, n, r, l) {
|
|
31734
31734
|
return Mu(e, "handleClickOn", t, n, r) || e.someProp("handleClick", (a) => a(e, t, r)) || (l ? B5(e, n) : P5(e, n));
|
|
@@ -31744,14 +31744,14 @@ function z5(e, t, n) {
|
|
|
31744
31744
|
return !1;
|
|
31745
31745
|
let r = e.state.doc;
|
|
31746
31746
|
if (t == -1)
|
|
31747
|
-
return r.inlineContent ? (
|
|
31747
|
+
return r.inlineContent ? ($r(e, Ee.create(r, 0, r.content.size)), !0) : !1;
|
|
31748
31748
|
let l = r.resolve(t);
|
|
31749
31749
|
for (let a = l.depth + 1; a > 0; a--) {
|
|
31750
31750
|
let i = a > l.depth ? l.nodeAfter : l.node(a), s = l.before(a);
|
|
31751
31751
|
if (i.inlineContent)
|
|
31752
|
-
|
|
31752
|
+
$r(e, Ee.create(r, s + 1, s + 1 + i.content.size));
|
|
31753
31753
|
else if (be.isSelectable(i))
|
|
31754
|
-
|
|
31754
|
+
$r(e, be.create(r, s));
|
|
31755
31755
|
else
|
|
31756
31756
|
continue;
|
|
31757
31757
|
return !0;
|
|
@@ -31806,7 +31806,7 @@ class V5 {
|
|
|
31806
31806
|
// (hidden) cursor is doesn't change the selection, and
|
|
31807
31807
|
// thus doesn't get a reaction from ProseMirror. This
|
|
31808
31808
|
// works around that.
|
|
31809
|
-
dt && !this.view.state.selection.visible && Math.min(Math.abs(n.pos - this.view.state.selection.from), Math.abs(n.pos - this.view.state.selection.to)) <= 2) ? (
|
|
31809
|
+
dt && !this.view.state.selection.visible && Math.min(Math.abs(n.pos - this.view.state.selection.from), Math.abs(n.pos - this.view.state.selection.to)) <= 2) ? ($r(this.view, Ae.near(this.view.state.doc.resolve(n.pos))), t.preventDefault()) : Dn(this.view, "pointer");
|
|
31810
31810
|
}
|
|
31811
31811
|
move(t) {
|
|
31812
31812
|
this.updateAllowDefault(t), Dn(this.view, "pointer"), t.buttons == 0 && this.done();
|
|
@@ -31909,7 +31909,7 @@ function j5(e, t) {
|
|
|
31909
31909
|
n.parentNode && n.parentNode.removeChild(n), e.focus();
|
|
31910
31910
|
}, 50);
|
|
31911
31911
|
}
|
|
31912
|
-
const Yl = wt && Pn < 15 ||
|
|
31912
|
+
const Yl = wt && Pn < 15 || jr && Vx < 604;
|
|
31913
31913
|
Et.copy = Tt.cut = (e, t) => {
|
|
31914
31914
|
let n = t, r = e.state.selection, l = n.type == "cut";
|
|
31915
31915
|
if (r.empty)
|
|
@@ -32196,13 +32196,13 @@ class Lt {
|
|
|
32196
32196
|
return this.type instanceof fi;
|
|
32197
32197
|
}
|
|
32198
32198
|
}
|
|
32199
|
-
const
|
|
32199
|
+
const Lr = [], hr = {};
|
|
32200
32200
|
class Xe {
|
|
32201
32201
|
/**
|
|
32202
32202
|
@internal
|
|
32203
32203
|
*/
|
|
32204
32204
|
constructor(t, n) {
|
|
32205
|
-
this.local = t.length ? t :
|
|
32205
|
+
this.local = t.length ? t : Lr, this.children = n.length ? n : Lr;
|
|
32206
32206
|
}
|
|
32207
32207
|
/**
|
|
32208
32208
|
Create a set of decorations, using the structure of the given
|
|
@@ -32251,7 +32251,7 @@ class Xe {
|
|
|
32251
32251
|
let o = this.local[s].map(t, r, l);
|
|
32252
32252
|
o && o.type.valid(n, o) ? (i || (i = [])).push(o) : a.onRemove && a.onRemove(this.local[s].spec);
|
|
32253
32253
|
}
|
|
32254
|
-
return this.children.length ? J5(this.children, i || [], t, n, r, l, a) : i ? new Xe(i.sort(pr),
|
|
32254
|
+
return this.children.length ? J5(this.children, i || [], t, n, r, l, a) : i ? new Xe(i.sort(pr), Lr) : ht;
|
|
32255
32255
|
}
|
|
32256
32256
|
/**
|
|
32257
32257
|
Add the given array of decorations to the ones in the set,
|
|
@@ -32324,7 +32324,7 @@ class Xe {
|
|
|
32324
32324
|
}
|
|
32325
32325
|
}
|
|
32326
32326
|
if (l) {
|
|
32327
|
-
let s = new Xe(l.sort(pr),
|
|
32327
|
+
let s = new Xe(l.sort(pr), Lr);
|
|
32328
32328
|
return r ? new _n([s, r]) : s;
|
|
32329
32329
|
}
|
|
32330
32330
|
return r || ht;
|
|
@@ -32356,7 +32356,7 @@ class Xe {
|
|
|
32356
32356
|
*/
|
|
32357
32357
|
localsInner(t) {
|
|
32358
32358
|
if (this == ht)
|
|
32359
|
-
return
|
|
32359
|
+
return Lr;
|
|
32360
32360
|
if (t.inlineContent || !this.local.some(Fn.is))
|
|
32361
32361
|
return this.local;
|
|
32362
32362
|
let n = [];
|
|
@@ -32410,7 +32410,7 @@ class _n {
|
|
|
32410
32410
|
n.push(a[i]);
|
|
32411
32411
|
}
|
|
32412
32412
|
}
|
|
32413
|
-
return n ? Lu(r ? n : n.sort(pr)) :
|
|
32413
|
+
return n ? Lu(r ? n : n.sort(pr)) : Lr;
|
|
32414
32414
|
}
|
|
32415
32415
|
// Create a group for the given array of decoration sets, or return
|
|
32416
32416
|
// a single set when possible.
|
|
@@ -32646,9 +32646,9 @@ class rS {
|
|
|
32646
32646
|
if (!t.focusNode)
|
|
32647
32647
|
return !0;
|
|
32648
32648
|
let n = /* @__PURE__ */ new Set(), r;
|
|
32649
|
-
for (let a = t.focusNode; a; a =
|
|
32649
|
+
for (let a = t.focusNode; a; a = Yr(a))
|
|
32650
32650
|
n.add(a);
|
|
32651
|
-
for (let a = t.anchorNode; a; a =
|
|
32651
|
+
for (let a = t.anchorNode; a; a = Yr(a))
|
|
32652
32652
|
if (n.has(a)) {
|
|
32653
32653
|
r = a;
|
|
32654
32654
|
break;
|
|
@@ -32853,7 +32853,7 @@ function dS(e, t, n, r, l) {
|
|
|
32853
32853
|
let o = e.state.selection, u = oS(e, t, n), c = e.state.doc, d = c.slice(u.from, u.to), h, f;
|
|
32854
32854
|
e.input.lastKeyCode === 8 && Date.now() - 100 < e.input.lastKeyCodeTime ? (h = e.state.selection.to, f = "end") : (h = e.state.selection.from, f = "start"), e.input.lastKeyCode = null;
|
|
32855
32855
|
let m = pS(d.content, u.doc.content, u.from, h, f);
|
|
32856
|
-
if (m && e.input.domChangeCount++, (
|
|
32856
|
+
if (m && e.input.domChangeCount++, (jr && e.input.lastIOSEnter > Date.now() - 225 || fn) && l.some((w) => w.nodeType == 1 && !cS.test(w.nodeName)) && (!m || m.endA >= m.endB) && e.someProp("handleKeyDown", (w) => w(e, nr(13, "Enter")))) {
|
|
32857
32857
|
e.input.lastIOSEnter = 0;
|
|
32858
32858
|
return;
|
|
32859
32859
|
}
|
|
@@ -32872,7 +32872,7 @@ function dS(e, t, n, r, l) {
|
|
|
32872
32872
|
}
|
|
32873
32873
|
e.state.selection.from < e.state.selection.to && m.start == m.endB && e.state.selection instanceof Ee && (m.start > e.state.selection.from && m.start <= e.state.selection.from + 2 && e.state.selection.from >= u.from ? m.start = e.state.selection.from : m.endA < e.state.selection.to && m.endA >= e.state.selection.to - 2 && e.state.selection.to <= u.to && (m.endB += e.state.selection.to - m.endA, m.endA = e.state.selection.to)), wt && Pn <= 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--);
|
|
32874
32874
|
let g = u.doc.resolveNoCache(m.start - u.from), b = u.doc.resolveNoCache(m.endB - u.from), y = c.resolve(m.start), A = g.sameParent(b) && g.parent.inlineContent && y.end() >= m.endA;
|
|
32875
|
-
if ((
|
|
32875
|
+
if ((jr && e.input.lastIOSEnter > Date.now() - 225 && (!A || l.some((w) => w.nodeName == "DIV" || w.nodeName == "P")) || !A && g.pos < u.doc.content.size && (!g.sameParent(b) || !g.parent.inlineContent) && g.pos < b.pos && !/\S/.test(u.doc.textBetween(g.pos, b.pos, "", ""))) && e.someProp("handleKeyDown", (w) => w(e, nr(13, "Enter")))) {
|
|
32876
32876
|
e.input.lastIOSEnter = 0;
|
|
32877
32877
|
return;
|
|
32878
32878
|
}
|
|
@@ -33527,13 +33527,13 @@ const $m = (e, t, n) => {
|
|
|
33527
33527
|
let a = l.nodeBefore;
|
|
33528
33528
|
if (Jm(e, l, t, -1))
|
|
33529
33529
|
return !0;
|
|
33530
|
-
if (r.parent.content.size == 0 && (
|
|
33530
|
+
if (r.parent.content.size == 0 && (Kr(a, "end") || be.isSelectable(a)))
|
|
33531
33531
|
for (let i = r.depth; ; i--) {
|
|
33532
33532
|
let s = Mi(e.doc, r.before(i), r.after(i), ue.empty);
|
|
33533
33533
|
if (s && s.slice.size < s.to - s.from) {
|
|
33534
33534
|
if (t) {
|
|
33535
33535
|
let o = e.tr.step(s);
|
|
33536
|
-
o.setSelection(
|
|
33536
|
+
o.setSelection(Kr(a, "end") ? Ae.findFrom(o.doc.resolve(o.mapping.map(l.pos, -1)), -1) : be.create(o.doc, l.pos - a.nodeSize)), t(o.scrollIntoView());
|
|
33537
33537
|
}
|
|
33538
33538
|
return !0;
|
|
33539
33539
|
}
|
|
@@ -33582,7 +33582,7 @@ function qm(e, t, n) {
|
|
|
33582
33582
|
}
|
|
33583
33583
|
return !0;
|
|
33584
33584
|
}
|
|
33585
|
-
function
|
|
33585
|
+
function Kr(e, t, n = !1) {
|
|
33586
33586
|
for (let r = e; r; r = t == "start" ? r.firstChild : r.lastChild) {
|
|
33587
33587
|
if (r.isTextblock)
|
|
33588
33588
|
return !0;
|
|
@@ -33627,12 +33627,12 @@ const jm = (e, t, n) => {
|
|
|
33627
33627
|
let a = l.nodeAfter;
|
|
33628
33628
|
if (Jm(e, l, t, 1))
|
|
33629
33629
|
return !0;
|
|
33630
|
-
if (r.parent.content.size == 0 && (
|
|
33630
|
+
if (r.parent.content.size == 0 && (Kr(a, "start") || be.isSelectable(a))) {
|
|
33631
33631
|
let i = Mi(e.doc, r.before(), r.after(), ue.empty);
|
|
33632
33632
|
if (i && i.slice.size < i.to - i.from) {
|
|
33633
33633
|
if (t) {
|
|
33634
33634
|
let s = e.tr.step(i);
|
|
33635
|
-
s.setSelection(
|
|
33635
|
+
s.setSelection(Kr(a, "start") ? Ae.findFrom(s.doc.resolve(s.mapping.map(l.pos)), 1) : be.create(s.doc, s.mapping.map(l.pos))), t(s.scrollIntoView());
|
|
33636
33636
|
}
|
|
33637
33637
|
return !0;
|
|
33638
33638
|
}
|
|
@@ -33791,7 +33791,7 @@ function Jm(e, t, n, r) {
|
|
|
33791
33791
|
let c = a.type.spec.isolating || r > 0 && o ? null : Ae.findFrom(t, 1), d = c && c.$from.blockRange(c.$to), h = d && ll(d);
|
|
33792
33792
|
if (h != null && h >= t.depth)
|
|
33793
33793
|
return n && n(e.tr.lift(d, h).scrollIntoView()), !0;
|
|
33794
|
-
if (u &&
|
|
33794
|
+
if (u && Kr(a, "start", !0) && Kr(l, "end")) {
|
|
33795
33795
|
let f = l, m = [];
|
|
33796
33796
|
for (; m.push(f), !f.isTextblock; )
|
|
33797
33797
|
f = f.lastChild;
|
|
@@ -34288,7 +34288,7 @@ function eh(e, t) {
|
|
|
34288
34288
|
return Array.isArray(t) ? t.some((n) => (typeof n == "string" ? n : n.name) === e.name) : t;
|
|
34289
34289
|
}
|
|
34290
34290
|
function zu(e, t) {
|
|
34291
|
-
const n =
|
|
34291
|
+
const n = kr.fromSchema(t).serializeFragment(e), l = document.implementation.createHTMLDocument().createElement("div");
|
|
34292
34292
|
return l.appendChild(n), l.innerHTML;
|
|
34293
34293
|
}
|
|
34294
34294
|
const GS = (e, t = 500) => {
|
|
@@ -34499,12 +34499,12 @@ class Un {
|
|
|
34499
34499
|
function ZS(e) {
|
|
34500
34500
|
return typeof e == "number";
|
|
34501
34501
|
}
|
|
34502
|
-
class
|
|
34502
|
+
class e8 {
|
|
34503
34503
|
constructor(t) {
|
|
34504
34504
|
this.find = t.find, this.handler = t.handler;
|
|
34505
34505
|
}
|
|
34506
34506
|
}
|
|
34507
|
-
const
|
|
34507
|
+
const t8 = (e, t, n) => {
|
|
34508
34508
|
if (Vu(t))
|
|
34509
34509
|
return [...e.matchAll(t)];
|
|
34510
34510
|
const r = t(e, n);
|
|
@@ -34513,7 +34513,7 @@ const tk = (e, t, n) => {
|
|
|
34513
34513
|
return a.index = l.index, a.input = e, a.data = l.data, l.replaceWith && (l.text.includes(l.replaceWith) || console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'), a.push(l.replaceWith)), a;
|
|
34514
34514
|
}) : [];
|
|
34515
34515
|
};
|
|
34516
|
-
function
|
|
34516
|
+
function n8(e) {
|
|
34517
34517
|
const { editor: t, state: n, from: r, to: l, rule: a, pasteEvent: i, dropEvent: s } = e, { commands: o, chain: u, can: c } = new Fi({
|
|
34518
34518
|
editor: t,
|
|
34519
34519
|
state: n
|
|
@@ -34522,7 +34522,7 @@ function nk(e) {
|
|
|
34522
34522
|
if (!f.isTextblock || f.type.spec.code)
|
|
34523
34523
|
return;
|
|
34524
34524
|
const g = Math.max(r, m), b = Math.min(l, m + f.content.size), y = f.textBetween(g - m, b - m, void 0, "");
|
|
34525
|
-
|
|
34525
|
+
t8(y, a.find, i).forEach((C) => {
|
|
34526
34526
|
if (C.index === void 0)
|
|
34527
34527
|
return;
|
|
34528
34528
|
const I = g + C.index + 1, M = I + C[0].length, x = {
|
|
@@ -34543,14 +34543,14 @@ function nk(e) {
|
|
|
34543
34543
|
}), d.every((f) => f !== null);
|
|
34544
34544
|
}
|
|
34545
34545
|
let La = null;
|
|
34546
|
-
const
|
|
34546
|
+
const r8 = (e) => {
|
|
34547
34547
|
var t;
|
|
34548
34548
|
const n = new ClipboardEvent("paste", {
|
|
34549
34549
|
clipboardData: new DataTransfer()
|
|
34550
34550
|
});
|
|
34551
34551
|
return (t = n.clipboardData) === null || t === void 0 || t.setData("text/html", e), n;
|
|
34552
34552
|
};
|
|
34553
|
-
function
|
|
34553
|
+
function l8(e) {
|
|
34554
34554
|
const { editor: t, rules: n } = e;
|
|
34555
34555
|
let r = null, l = !1, a = !1, i = typeof ClipboardEvent < "u" ? new ClipboardEvent("paste") : null, s;
|
|
34556
34556
|
try {
|
|
@@ -34563,7 +34563,7 @@ function lk(e) {
|
|
|
34563
34563
|
state: c,
|
|
34564
34564
|
transaction: g
|
|
34565
34565
|
});
|
|
34566
|
-
if (!(!
|
|
34566
|
+
if (!(!n8({
|
|
34567
34567
|
editor: t,
|
|
34568
34568
|
state: b,
|
|
34569
34569
|
from: Math.max(d - 1, 0),
|
|
@@ -34621,7 +34621,7 @@ function lk(e) {
|
|
|
34621
34621
|
if (A) {
|
|
34622
34622
|
let { text: M } = y;
|
|
34623
34623
|
typeof M == "string" ? M = M : M = zu(X.from(M), f.schema);
|
|
34624
|
-
const { from: x } = y, w = x + M.length, N =
|
|
34624
|
+
const { from: x } = y, w = x + M.length, N = r8(M);
|
|
34625
34625
|
return o({
|
|
34626
34626
|
rule: c,
|
|
34627
34627
|
state: f,
|
|
@@ -34642,13 +34642,13 @@ function lk(e) {
|
|
|
34642
34642
|
}
|
|
34643
34643
|
}));
|
|
34644
34644
|
}
|
|
34645
|
-
function
|
|
34645
|
+
function a8(e) {
|
|
34646
34646
|
const t = e.filter((n, r) => e.indexOf(n) !== r);
|
|
34647
34647
|
return Array.from(new Set(t));
|
|
34648
34648
|
}
|
|
34649
|
-
class
|
|
34649
|
+
class Hr {
|
|
34650
34650
|
constructor(t, n) {
|
|
34651
|
-
this.splittableMarks = [], this.editor = n, this.extensions =
|
|
34651
|
+
this.splittableMarks = [], this.editor = n, this.extensions = Hr.resolve(t), this.schema = KS(this.extensions, n), this.setupExtensions();
|
|
34652
34652
|
}
|
|
34653
34653
|
/**
|
|
34654
34654
|
* Returns a flattened and sorted extension list while
|
|
@@ -34657,7 +34657,7 @@ class Fr {
|
|
|
34657
34657
|
* @returns An flattened and sorted array of Tiptap extensions
|
|
34658
34658
|
*/
|
|
34659
34659
|
static resolve(t) {
|
|
34660
|
-
const n =
|
|
34660
|
+
const n = Hr.sort(Hr.flatten(t)), r = a8(n.map((l) => l.name));
|
|
34661
34661
|
return r.length && console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map((l) => `'${l}'`).join(", ")}]. This can lead to issues.`), n;
|
|
34662
34662
|
}
|
|
34663
34663
|
/**
|
|
@@ -34710,7 +34710,7 @@ class Fr {
|
|
|
34710
34710
|
* @returns An array of Prosemirror plugins
|
|
34711
34711
|
*/
|
|
34712
34712
|
get plugins() {
|
|
34713
|
-
const { editor: t } = this, n =
|
|
34713
|
+
const { editor: t } = this, n = Hr.sort([...this.extensions].reverse()), r = [], l = [], a = n.map((i) => {
|
|
34714
34714
|
const s = {
|
|
34715
34715
|
name: i.name,
|
|
34716
34716
|
options: i.options,
|
|
@@ -34741,7 +34741,7 @@ class Fr {
|
|
|
34741
34741
|
editor: t,
|
|
34742
34742
|
rules: r
|
|
34743
34743
|
}),
|
|
34744
|
-
...
|
|
34744
|
+
...l8({
|
|
34745
34745
|
editor: t,
|
|
34746
34746
|
rules: l
|
|
34747
34747
|
}),
|
|
@@ -34868,7 +34868,7 @@ function n1(e, t, n) {
|
|
|
34868
34868
|
function r1(e) {
|
|
34869
34869
|
return Object.fromEntries(Object.entries(e.nodes).filter(([, t]) => t.spec.toText).map(([t, n]) => [t, n.spec.toText]));
|
|
34870
34870
|
}
|
|
34871
|
-
const
|
|
34871
|
+
const i8 = mt.create({
|
|
34872
34872
|
name: "clipboardTextSerializer",
|
|
34873
34873
|
addOptions() {
|
|
34874
34874
|
return {
|
|
@@ -34891,10 +34891,10 @@ const ik = mt.create({
|
|
|
34891
34891
|
})
|
|
34892
34892
|
];
|
|
34893
34893
|
}
|
|
34894
|
-
}),
|
|
34894
|
+
}), s8 = () => ({ editor: e, view: t }) => (requestAnimationFrame(() => {
|
|
34895
34895
|
var n;
|
|
34896
34896
|
e.isDestroyed || (t.dom.blur(), (n = window?.getSelection()) === null || n === void 0 || n.removeAllRanges());
|
|
34897
|
-
}), !0),
|
|
34897
|
+
}), !0), o8 = (e = !1) => ({ commands: t }) => t.setContent("", e), u8 = () => ({ state: e, tr: t, dispatch: n }) => {
|
|
34898
34898
|
const { selection: r } = t, { ranges: l } = r;
|
|
34899
34899
|
return n && l.forEach(({ $from: a, $to: i }) => {
|
|
34900
34900
|
e.doc.nodesBetween(a.pos, i.pos, (s, o) => {
|
|
@@ -34911,12 +34911,12 @@ const ik = mt.create({
|
|
|
34911
34911
|
(m || m === 0) && t.lift(f, m);
|
|
34912
34912
|
});
|
|
34913
34913
|
}), !0;
|
|
34914
|
-
},
|
|
34914
|
+
}, c8 = (e) => (t) => e(t), d8 = () => ({ state: e, dispatch: t }) => Qm(e, t), f8 = (e, t) => ({ editor: n, tr: r }) => {
|
|
34915
34915
|
const { state: l } = n, a = l.doc.slice(e.from, e.to);
|
|
34916
34916
|
r.deleteRange(e.from, e.to);
|
|
34917
34917
|
const i = r.mapping.map(t);
|
|
34918
34918
|
return r.insert(i, a.content), r.setSelection(new Ee(r.doc.resolve(Math.max(i - 1, 0)))), !0;
|
|
34919
|
-
},
|
|
34919
|
+
}, h8 = () => ({ tr: e, dispatch: t }) => {
|
|
34920
34920
|
const { selection: n } = e, r = n.$anchor.node();
|
|
34921
34921
|
if (r.content.size > 0)
|
|
34922
34922
|
return !1;
|
|
@@ -34930,7 +34930,7 @@ const ik = mt.create({
|
|
|
34930
34930
|
return !0;
|
|
34931
34931
|
}
|
|
34932
34932
|
return !1;
|
|
34933
|
-
},
|
|
34933
|
+
}, p8 = (e) => ({ tr: t, state: n, dispatch: r }) => {
|
|
34934
34934
|
const l = st(e, n.schema), a = t.selection.$anchor;
|
|
34935
34935
|
for (let i = a.depth; i > 0; i -= 1)
|
|
34936
34936
|
if (a.node(i).type === l) {
|
|
@@ -34941,10 +34941,10 @@ const ik = mt.create({
|
|
|
34941
34941
|
return !0;
|
|
34942
34942
|
}
|
|
34943
34943
|
return !1;
|
|
34944
|
-
},
|
|
34944
|
+
}, m8 = (e) => ({ tr: t, dispatch: n }) => {
|
|
34945
34945
|
const { from: r, to: l } = e;
|
|
34946
34946
|
return n && t.delete(r, l), !0;
|
|
34947
|
-
},
|
|
34947
|
+
}, b8 = () => ({ state: e, dispatch: t }) => Pu(e, t), g8 = () => ({ commands: e }) => e.keyboardShortcut("Enter"), v8 = () => ({ state: e, dispatch: t }) => _S(e, t);
|
|
34948
34948
|
function mi(e, t, n = { strict: !0 }) {
|
|
34949
34949
|
const r = Object.keys(t);
|
|
34950
34950
|
return r.length ? r.every((l) => n.strict ? t[l] === e[l] : Vu(t[l]) ? t[l].test(e[l]) : t[l] === e[l]) : !0;
|
|
@@ -34984,7 +34984,7 @@ function jn(e, t) {
|
|
|
34984
34984
|
}
|
|
34985
34985
|
return e;
|
|
34986
34986
|
}
|
|
34987
|
-
const
|
|
34987
|
+
const y8 = (e, t = {}) => ({ tr: n, state: r, dispatch: l }) => {
|
|
34988
34988
|
const a = jn(e, r.schema), { doc: i, selection: s } = n, { $from: o, from: u, to: c } = s;
|
|
34989
34989
|
if (l) {
|
|
34990
34990
|
const d = $u(o, a, t);
|
|
@@ -34994,7 +34994,7 @@ const yk = (e, t = {}) => ({ tr: n, state: r, dispatch: l }) => {
|
|
|
34994
34994
|
}
|
|
34995
34995
|
}
|
|
34996
34996
|
return !0;
|
|
34997
|
-
},
|
|
34997
|
+
}, E8 = (e) => (t) => {
|
|
34998
34998
|
const n = typeof e == "function" ? e(t) : e;
|
|
34999
34999
|
for (let r = 0; r < n.length; r += 1)
|
|
35000
35000
|
if (n[r](t))
|
|
@@ -35031,17 +35031,17 @@ function bi() {
|
|
|
35031
35031
|
"iPod"
|
|
35032
35032
|
].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document;
|
|
35033
35033
|
}
|
|
35034
|
-
function
|
|
35034
|
+
function T8() {
|
|
35035
35035
|
return typeof navigator < "u" ? /^((?!chrome|android).)*safari/i.test(navigator.userAgent) : !1;
|
|
35036
35036
|
}
|
|
35037
|
-
const
|
|
35037
|
+
const C8 = (e = null, t = {}) => ({ editor: n, view: r, tr: l, dispatch: a }) => {
|
|
35038
35038
|
t = {
|
|
35039
35039
|
scrollIntoView: !0,
|
|
35040
35040
|
...t
|
|
35041
35041
|
};
|
|
35042
35042
|
const i = () => {
|
|
35043
35043
|
(bi() || nh()) && r.dom.focus(), requestAnimationFrame(() => {
|
|
35044
|
-
n.isDestroyed || (r.focus(),
|
|
35044
|
+
n.isDestroyed || (r.focus(), T8() && !bi() && !nh() && r.dom.focus({ preventScroll: !0 }));
|
|
35045
35045
|
});
|
|
35046
35046
|
};
|
|
35047
35047
|
if (r.hasFocus() && e === null || e === !1)
|
|
@@ -35050,7 +35050,7 @@ const Ck = (e = null, t = {}) => ({ editor: n, view: r, tr: l, dispatch: a }) =>
|
|
|
35050
35050
|
return i(), !0;
|
|
35051
35051
|
const s = i1(l.doc, e) || n.state.selection, o = n.state.selection.eq(s);
|
|
35052
35052
|
return a && (o || l.setSelection(s), o && l.storedMarks && l.setStoredMarks(l.storedMarks), i()), !0;
|
|
35053
|
-
},
|
|
35053
|
+
}, x8 = (e, t) => (n) => e.every((r, l) => t(r, { ...n, index: l })), S8 = (e, t) => ({ tr: n, commands: r }) => r.insertContentAt({ from: n.selection.from, to: n.selection.to }, e, t), s1 = (e) => {
|
|
35054
35054
|
const t = e.childNodes;
|
|
35055
35055
|
for (let n = t.length - 1; n >= 0; n -= 1) {
|
|
35056
35056
|
const r = t[n];
|
|
@@ -35111,7 +35111,7 @@ function Gl(e, t, n) {
|
|
|
35111
35111
|
}
|
|
35112
35112
|
return Gl("", t, n);
|
|
35113
35113
|
}
|
|
35114
|
-
function
|
|
35114
|
+
function k8(e, t, n) {
|
|
35115
35115
|
const r = e.steps.length - 1;
|
|
35116
35116
|
if (r < t)
|
|
35117
35117
|
return;
|
|
@@ -35124,7 +35124,7 @@ function kk(e, t, n) {
|
|
|
35124
35124
|
i === 0 && (i = c);
|
|
35125
35125
|
}), e.setSelection(Ae.near(e.doc.resolve(i), n));
|
|
35126
35126
|
}
|
|
35127
|
-
const
|
|
35127
|
+
const A8 = (e) => !("type" in e), N8 = (e, t, n) => ({ tr: r, dispatch: l, editor: a }) => {
|
|
35128
35128
|
var i;
|
|
35129
35129
|
if (l) {
|
|
35130
35130
|
n = {
|
|
@@ -35165,7 +35165,7 @@ const Ak = (e) => !("type" in e), Nk = (e, t, n) => ({ tr: r, dispatch: l, edito
|
|
|
35165
35165
|
return o(b), !1;
|
|
35166
35166
|
}
|
|
35167
35167
|
let { from: c, to: d } = typeof e == "number" ? { from: e, to: e } : { from: e.from, to: e.to }, h = !0, f = !0;
|
|
35168
|
-
if ((
|
|
35168
|
+
if ((A8(s) ? s : [s]).forEach((b) => {
|
|
35169
35169
|
b.check(), h = h ? b.isText && b.marks.length === 0 : !1, f = f ? b.isBlock : !1;
|
|
35170
35170
|
}), c === d && f) {
|
|
35171
35171
|
const { parent: b } = r.doc.resolve(c);
|
|
@@ -35184,28 +35184,28 @@ const Ak = (e) => !("type" in e), Nk = (e, t, n) => ({ tr: r, dispatch: l, edito
|
|
|
35184
35184
|
r.insertText(g, c, d);
|
|
35185
35185
|
} else
|
|
35186
35186
|
g = s, r.replaceWith(c, d, g);
|
|
35187
|
-
n.updateSelection &&
|
|
35187
|
+
n.updateSelection && k8(r, r.steps.length - 1, -1), n.applyInputRules && r.setMeta("applyInputRules", { from: c, text: g }), n.applyPasteRules && r.setMeta("applyPasteRules", { from: c, text: g });
|
|
35188
35188
|
}
|
|
35189
35189
|
return !0;
|
|
35190
|
-
},
|
|
35190
|
+
}, w8 = () => ({ state: e, dispatch: t }) => NS(e, t), I8 = () => ({ state: e, dispatch: t }) => wS(e, t), _8 = () => ({ state: e, dispatch: t }) => $m(e, t), O8 = () => ({ state: e, dispatch: t }) => jm(e, t), M8 = () => ({ state: e, dispatch: t, tr: n }) => {
|
|
35191
35191
|
try {
|
|
35192
35192
|
const r = Oi(e.doc, e.selection.$from.pos, -1);
|
|
35193
35193
|
return r == null ? !1 : (n.join(r, 2), t && t(n), !0);
|
|
35194
35194
|
} catch {
|
|
35195
35195
|
return !1;
|
|
35196
35196
|
}
|
|
35197
|
-
},
|
|
35197
|
+
}, R8 = () => ({ state: e, dispatch: t, tr: n }) => {
|
|
35198
35198
|
try {
|
|
35199
35199
|
const r = Oi(e.doc, e.selection.$from.pos, 1);
|
|
35200
35200
|
return r == null ? !1 : (n.join(r, 2), t && t(n), !0);
|
|
35201
35201
|
} catch {
|
|
35202
35202
|
return !1;
|
|
35203
35203
|
}
|
|
35204
|
-
},
|
|
35204
|
+
}, D8 = () => ({ state: e, dispatch: t }) => kS(e, t), L8 = () => ({ state: e, dispatch: t }) => AS(e, t);
|
|
35205
35205
|
function o1() {
|
|
35206
35206
|
return typeof navigator < "u" ? /Mac/.test(navigator.platform) : !1;
|
|
35207
35207
|
}
|
|
35208
|
-
function
|
|
35208
|
+
function P8(e) {
|
|
35209
35209
|
const t = e.split(/-(?!$)/);
|
|
35210
35210
|
let n = t[t.length - 1];
|
|
35211
35211
|
n === "Space" && (n = " ");
|
|
@@ -35227,8 +35227,8 @@ function Pk(e) {
|
|
|
35227
35227
|
}
|
|
35228
35228
|
return r && (n = `Alt-${n}`), l && (n = `Ctrl-${n}`), i && (n = `Meta-${n}`), a && (n = `Shift-${n}`), n;
|
|
35229
35229
|
}
|
|
35230
|
-
const
|
|
35231
|
-
const a =
|
|
35230
|
+
const B8 = (e) => ({ editor: t, view: n, tr: r, dispatch: l }) => {
|
|
35231
|
+
const a = P8(e).split(/-(?!$)/), i = a.find((u) => !["Alt", "Ctrl", "Meta", "Shift"].includes(u)), s = new KeyboardEvent("keydown", {
|
|
35232
35232
|
key: i === "Space" ? " " : i,
|
|
35233
35233
|
altKey: a.includes("Alt"),
|
|
35234
35234
|
ctrlKey: a.includes("Ctrl"),
|
|
@@ -35259,13 +35259,13 @@ function Ql(e, t, n = {}) {
|
|
|
35259
35259
|
const o = l - r, u = s.filter((d) => i ? i.name === d.node.type.name : !0).filter((d) => mi(d.node.attrs, n, { strict: !1 }));
|
|
35260
35260
|
return a ? !!u.length : u.reduce((d, h) => d + h.to - h.from, 0) >= o;
|
|
35261
35261
|
}
|
|
35262
|
-
const
|
|
35262
|
+
const F8 = (e, t = {}) => ({ state: n, dispatch: r }) => {
|
|
35263
35263
|
const l = st(e, n.schema);
|
|
35264
35264
|
return Ql(n, l, t) ? IS(n, r) : !1;
|
|
35265
|
-
},
|
|
35265
|
+
}, H8 = () => ({ state: e, dispatch: t }) => Xm(e, t), U8 = (e) => ({ state: t, dispatch: n }) => {
|
|
35266
35266
|
const r = st(e, t.schema);
|
|
35267
35267
|
return zS(r)(t, n);
|
|
35268
|
-
},
|
|
35268
|
+
}, z8 = () => ({ state: e, dispatch: t }) => Gm(e, t);
|
|
35269
35269
|
function Vi(e, t) {
|
|
35270
35270
|
return t.nodes[e] ? "node" : t.marks[e] ? "mark" : null;
|
|
35271
35271
|
}
|
|
@@ -35273,7 +35273,7 @@ function rh(e, t) {
|
|
|
35273
35273
|
const n = typeof t == "string" ? [t] : t;
|
|
35274
35274
|
return Object.keys(e).reduce((r, l) => (n.includes(l) || (r[l] = e[l]), r), {});
|
|
35275
35275
|
}
|
|
35276
|
-
const
|
|
35276
|
+
const V8 = (e, t) => ({ tr: n, state: r, dispatch: l }) => {
|
|
35277
35277
|
let a = null, i = null;
|
|
35278
35278
|
const s = Vi(typeof e == "string" ? e : e.name, r.schema);
|
|
35279
35279
|
return s ? (s === "node" && (a = st(e, r.schema)), s === "mark" && (i = jn(e, r.schema)), l && n.selection.ranges.forEach((o) => {
|
|
@@ -35283,13 +35283,13 @@ const Vk = (e, t) => ({ tr: n, state: r, dispatch: l }) => {
|
|
|
35283
35283
|
});
|
|
35284
35284
|
});
|
|
35285
35285
|
}), !0) : !1;
|
|
35286
|
-
}, $
|
|
35286
|
+
}, $8 = () => ({ tr: e, dispatch: t }) => (t && e.scrollIntoView(), !0), q8 = () => ({ tr: e, dispatch: t }) => {
|
|
35287
35287
|
if (t) {
|
|
35288
35288
|
const n = new Pt(e.doc);
|
|
35289
35289
|
e.setSelection(n);
|
|
35290
35290
|
}
|
|
35291
35291
|
return !0;
|
|
35292
|
-
},
|
|
35292
|
+
}, W8 = () => ({ state: e, dispatch: t }) => Wm(e, t), Y8 = () => ({ state: e, dispatch: t }) => Km(e, t), j8 = () => ({ state: e, dispatch: t }) => RS(e, t), K8 = () => ({ state: e, dispatch: t }) => PS(e, t), G8 = () => ({ state: e, dispatch: t }) => LS(e, t);
|
|
35293
35293
|
function Po(e, t, n = {}, r = {}) {
|
|
35294
35294
|
return Gl(e, t, {
|
|
35295
35295
|
slice: !1,
|
|
@@ -35297,7 +35297,7 @@ function Po(e, t, n = {}, r = {}) {
|
|
|
35297
35297
|
errorOnInvalidContent: r.errorOnInvalidContent
|
|
35298
35298
|
});
|
|
35299
35299
|
}
|
|
35300
|
-
const
|
|
35300
|
+
const Q8 = (e, t = !1, n = {}, r = {}) => ({ editor: l, tr: a, dispatch: i, commands: s }) => {
|
|
35301
35301
|
var o, u;
|
|
35302
35302
|
const { doc: c } = a;
|
|
35303
35303
|
if (n.preserveWhitespace !== "full") {
|
|
@@ -35319,7 +35319,7 @@ function u1(e, t) {
|
|
|
35319
35319
|
const s = i.find((o) => o.type.name === n.name);
|
|
35320
35320
|
return s ? { ...s.attrs } : {};
|
|
35321
35321
|
}
|
|
35322
|
-
function
|
|
35322
|
+
function X8(e) {
|
|
35323
35323
|
for (let t = 0; t < e.edgeCount; t += 1) {
|
|
35324
35324
|
const { type: n } = e.edge(t);
|
|
35325
35325
|
if (n.isTextblock && !n.hasRequiredAttrs())
|
|
@@ -35327,7 +35327,7 @@ function Xk(e) {
|
|
|
35327
35327
|
}
|
|
35328
35328
|
return null;
|
|
35329
35329
|
}
|
|
35330
|
-
function
|
|
35330
|
+
function J8(e, t) {
|
|
35331
35331
|
for (let n = e.depth; n > 0; n -= 1) {
|
|
35332
35332
|
const r = e.node(n);
|
|
35333
35333
|
if (t(r))
|
|
@@ -35340,16 +35340,16 @@ function Jk(e, t) {
|
|
|
35340
35340
|
}
|
|
35341
35341
|
}
|
|
35342
35342
|
function qu(e) {
|
|
35343
|
-
return (t) =>
|
|
35343
|
+
return (t) => J8(t.$from, e);
|
|
35344
35344
|
}
|
|
35345
|
-
function
|
|
35345
|
+
function Z8(e, t) {
|
|
35346
35346
|
const n = {
|
|
35347
35347
|
from: 0,
|
|
35348
35348
|
to: e.content.size
|
|
35349
35349
|
};
|
|
35350
35350
|
return n1(e, n, t);
|
|
35351
35351
|
}
|
|
35352
|
-
function
|
|
35352
|
+
function ek(e, t) {
|
|
35353
35353
|
const n = st(t, e.schema), { from: r, to: l } = e.selection, a = [];
|
|
35354
35354
|
e.doc.nodesBetween(r, l, (s) => {
|
|
35355
35355
|
a.push(s);
|
|
@@ -35357,9 +35357,9 @@ function e8(e, t) {
|
|
|
35357
35357
|
const i = a.reverse().find((s) => s.type.name === n.name);
|
|
35358
35358
|
return i ? { ...i.attrs } : {};
|
|
35359
35359
|
}
|
|
35360
|
-
function
|
|
35360
|
+
function tk(e, t) {
|
|
35361
35361
|
const n = Vi(typeof t == "string" ? t : t.name, e.schema);
|
|
35362
|
-
return n === "node" ?
|
|
35362
|
+
return n === "node" ? ek(e, t) : n === "mark" ? u1(e, t) : {};
|
|
35363
35363
|
}
|
|
35364
35364
|
function c1(e, t, n) {
|
|
35365
35365
|
const r = [];
|
|
@@ -35406,7 +35406,7 @@ function Bo(e, t, n = {}) {
|
|
|
35406
35406
|
const o = s.filter((d) => a ? a.name === d.mark.type.name : !0).filter((d) => mi(d.mark.attrs, n, { strict: !1 })).reduce((d, h) => d + h.to - h.from, 0), u = s.filter((d) => a ? d.mark.type !== a && d.mark.type.excludes(a) : !0).reduce((d, h) => d + h.to - h.from, 0);
|
|
35407
35407
|
return (o > 0 ? o + u : o) >= i;
|
|
35408
35408
|
}
|
|
35409
|
-
function
|
|
35409
|
+
function nk(e, t, n = {}) {
|
|
35410
35410
|
if (!t)
|
|
35411
35411
|
return Ql(e, null, n) || Bo(e, null, n);
|
|
35412
35412
|
const r = Vi(t, e.schema);
|
|
@@ -35445,10 +35445,10 @@ function $i(e, { checkChildren: t = !0, ignoreWhitespace: n = !1 } = {}) {
|
|
|
35445
35445
|
}
|
|
35446
35446
|
return !1;
|
|
35447
35447
|
}
|
|
35448
|
-
function
|
|
35448
|
+
function rk(e) {
|
|
35449
35449
|
return e instanceof be;
|
|
35450
35450
|
}
|
|
35451
|
-
function
|
|
35451
|
+
function lk(e, t, n) {
|
|
35452
35452
|
var r;
|
|
35453
35453
|
const { selection: l } = t;
|
|
35454
35454
|
let a = null;
|
|
@@ -35470,7 +35470,7 @@ function l8(e, t, n) {
|
|
|
35470
35470
|
}), u;
|
|
35471
35471
|
});
|
|
35472
35472
|
}
|
|
35473
|
-
const
|
|
35473
|
+
const ak = (e, t = {}) => ({ tr: n, state: r, dispatch: l }) => {
|
|
35474
35474
|
const { selection: a } = n, { empty: i, ranges: s } = a, o = jn(e, r.schema);
|
|
35475
35475
|
if (l)
|
|
35476
35476
|
if (i) {
|
|
@@ -35492,24 +35492,24 @@ const a8 = (e, t = {}) => ({ tr: n, state: r, dispatch: l }) => {
|
|
|
35492
35492
|
}) : n.addMark(m, g, o.create(t));
|
|
35493
35493
|
});
|
|
35494
35494
|
});
|
|
35495
|
-
return
|
|
35496
|
-
},
|
|
35495
|
+
return lk(r, n, o);
|
|
35496
|
+
}, ik = (e, t) => ({ tr: n }) => (n.setMeta(e, t), !0), sk = (e, t = {}) => ({ state: n, dispatch: r, chain: l }) => {
|
|
35497
35497
|
const a = st(e, n.schema);
|
|
35498
35498
|
let i;
|
|
35499
35499
|
return n.selection.$anchor.sameParent(n.selection.$head) && (i = n.selection.$anchor.parent.attrs), a.isTextblock ? l().command(({ commands: s }) => Xf(a, { ...i, ...t })(n) ? !0 : s.clearNodes()).command(({ state: s }) => Xf(a, { ...i, ...t })(s, r)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
|
|
35500
|
-
},
|
|
35500
|
+
}, ok = (e) => ({ tr: t, dispatch: n }) => {
|
|
35501
35501
|
if (n) {
|
|
35502
35502
|
const { doc: r } = t, l = sr(e, 0, r.content.size), a = be.create(r, l);
|
|
35503
35503
|
t.setSelection(a);
|
|
35504
35504
|
}
|
|
35505
35505
|
return !0;
|
|
35506
|
-
},
|
|
35506
|
+
}, uk = (e) => ({ tr: t, dispatch: n }) => {
|
|
35507
35507
|
if (n) {
|
|
35508
35508
|
const { doc: r } = t, { from: l, to: a } = typeof e == "number" ? { from: e, to: e } : e, i = Ee.atStart(r).from, s = Ee.atEnd(r).to, o = sr(l, i, s), u = sr(a, i, s), c = Ee.create(r, o, u);
|
|
35509
35509
|
t.setSelection(c);
|
|
35510
35510
|
}
|
|
35511
35511
|
return !0;
|
|
35512
|
-
},
|
|
35512
|
+
}, ck = (e) => ({ state: t, dispatch: n }) => {
|
|
35513
35513
|
const r = st(e, t.schema);
|
|
35514
35514
|
return qS(r)(t, n);
|
|
35515
35515
|
};
|
|
@@ -35520,13 +35520,13 @@ function ah(e, t) {
|
|
|
35520
35520
|
e.tr.ensureMarks(r);
|
|
35521
35521
|
}
|
|
35522
35522
|
}
|
|
35523
|
-
const
|
|
35523
|
+
const dk = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, editor: l }) => {
|
|
35524
35524
|
const { selection: a, doc: i } = t, { $from: s, $to: o } = a, u = l.extensionManager.attributes, c = Ga(u, s.node().type.name, s.node().attrs);
|
|
35525
35525
|
if (a instanceof be && a.node.isBlock)
|
|
35526
35526
|
return !s.parentOffset || !hn(i, s.pos) ? !1 : (r && (e && ah(n, l.extensionManager.splittableMarks), t.split(s.pos).scrollIntoView()), !0);
|
|
35527
35527
|
if (!s.parent.isBlock)
|
|
35528
35528
|
return !1;
|
|
35529
|
-
const d = o.parentOffset === o.parent.content.size, h = s.depth === 0 ? void 0 :
|
|
35529
|
+
const d = o.parentOffset === o.parent.content.size, h = s.depth === 0 ? void 0 : X8(s.node(-1).contentMatchAt(s.indexAfter(-1)));
|
|
35530
35530
|
let f = d && h ? [
|
|
35531
35531
|
{
|
|
35532
35532
|
type: h,
|
|
@@ -35546,7 +35546,7 @@ const d8 = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
|
|
|
35546
35546
|
e && ah(n, l.extensionManager.splittableMarks), t.scrollIntoView();
|
|
35547
35547
|
}
|
|
35548
35548
|
return m;
|
|
35549
|
-
},
|
|
35549
|
+
}, fk = (e, t = {}) => ({ tr: n, state: r, dispatch: l, editor: a }) => {
|
|
35550
35550
|
var i;
|
|
35551
35551
|
const s = st(e, r.schema), { $from: o, $to: u } = r.selection, c = r.selection.node;
|
|
35552
35552
|
if (c && c.isBlock || o.depth < 2 || !o.sameParent(u))
|
|
@@ -35619,7 +35619,7 @@ const d8 = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
|
|
|
35619
35619
|
return !0;
|
|
35620
35620
|
const l = e.doc.nodeAt(r);
|
|
35621
35621
|
return n.node.type === l?.type && Wn(e.doc, r) && e.join(r), !0;
|
|
35622
|
-
},
|
|
35622
|
+
}, hk = (e, t, n, r = {}) => ({ editor: l, tr: a, state: i, dispatch: s, chain: o, commands: u, can: c }) => {
|
|
35623
35623
|
const { extensions: d, splittableMarks: h } = l.extensionManager, f = st(e, i.schema), m = st(t, i.schema), { selection: g, storedMarks: b } = i, { $from: y, $to: A } = g, C = y.blockRange(A), I = b || g.$to.parentOffset && g.$from.marks();
|
|
35624
35624
|
if (!C)
|
|
35625
35625
|
return !1;
|
|
@@ -35634,17 +35634,17 @@ const d8 = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
|
|
|
35634
35634
|
const x = c().wrapInList(f, r), w = I.filter((N) => h.includes(N.type.name));
|
|
35635
35635
|
return a.ensureMarks(w), x ? !0 : u.clearNodes();
|
|
35636
35636
|
}).wrapInList(f, r).command(() => js(a, f)).command(() => Ks(a, f)).run();
|
|
35637
|
-
},
|
|
35637
|
+
}, pk = (e, t = {}, n = {}) => ({ state: r, commands: l }) => {
|
|
35638
35638
|
const { extendEmptyMarkRange: a = !1 } = n, i = jn(e, r.schema);
|
|
35639
35639
|
return Bo(r, i, t) ? l.unsetMark(i, { extendEmptyMarkRange: a }) : l.setMark(i, t);
|
|
35640
|
-
},
|
|
35640
|
+
}, mk = (e, t, n = {}) => ({ state: r, commands: l }) => {
|
|
35641
35641
|
const a = st(e, r.schema), i = st(t, r.schema), s = Ql(r, a, n);
|
|
35642
35642
|
let o;
|
|
35643
35643
|
return r.selection.$anchor.sameParent(r.selection.$head) && (o = r.selection.$anchor.parent.attrs), s ? l.setNode(i, o) : l.setNode(a, { ...o, ...n });
|
|
35644
|
-
},
|
|
35644
|
+
}, bk = (e, t = {}) => ({ state: n, commands: r }) => {
|
|
35645
35645
|
const l = st(e, n.schema);
|
|
35646
35646
|
return Ql(n, l, t) ? r.lift(l) : r.wrapIn(l, t);
|
|
35647
|
-
},
|
|
35647
|
+
}, gk = () => ({ state: e, dispatch: t }) => {
|
|
35648
35648
|
const n = e.plugins;
|
|
35649
35649
|
for (let r = 0; r < n.length; r += 1) {
|
|
35650
35650
|
const l = n[r];
|
|
@@ -35664,12 +35664,12 @@ const d8 = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
|
|
|
35664
35664
|
}
|
|
35665
35665
|
}
|
|
35666
35666
|
return !1;
|
|
35667
|
-
},
|
|
35667
|
+
}, vk = () => ({ tr: e, dispatch: t }) => {
|
|
35668
35668
|
const { selection: n } = e, { empty: r, ranges: l } = n;
|
|
35669
35669
|
return r || t && l.forEach((a) => {
|
|
35670
35670
|
e.removeMark(a.$from.pos, a.$to.pos);
|
|
35671
35671
|
}), !0;
|
|
35672
|
-
},
|
|
35672
|
+
}, yk = (e, t = {}) => ({ tr: n, state: r, dispatch: l }) => {
|
|
35673
35673
|
var a;
|
|
35674
35674
|
const { extendEmptyMarkRange: i = !1 } = t, { selection: s } = n, o = jn(e, r.schema), { $from: u, empty: c, ranges: d } = s;
|
|
35675
35675
|
if (!l)
|
|
@@ -35683,7 +35683,7 @@ const d8 = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
|
|
|
35683
35683
|
n.removeMark(h.$from.pos, h.$to.pos, o);
|
|
35684
35684
|
});
|
|
35685
35685
|
return n.removeStoredMark(o), !0;
|
|
35686
|
-
},
|
|
35686
|
+
}, Ek = (e, t = {}) => ({ tr: n, state: r, dispatch: l }) => {
|
|
35687
35687
|
let a = null, i = null;
|
|
35688
35688
|
const s = Vi(typeof e == "string" ? e : e.name, r.schema);
|
|
35689
35689
|
return s ? (s === "node" && (a = st(e, r.schema)), s === "mark" && (i = jn(e, r.schema)), l && n.selection.ranges.forEach((o) => {
|
|
@@ -35714,82 +35714,82 @@ const d8 = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
|
|
|
35714
35714
|
}));
|
|
35715
35715
|
}));
|
|
35716
35716
|
}), !0) : !1;
|
|
35717
|
-
},
|
|
35717
|
+
}, Tk = (e, t = {}) => ({ state: n, dispatch: r }) => {
|
|
35718
35718
|
const l = st(e, n.schema);
|
|
35719
35719
|
return BS(l, t)(n, r);
|
|
35720
|
-
},
|
|
35720
|
+
}, Ck = (e, t = {}) => ({ state: n, dispatch: r }) => {
|
|
35721
35721
|
const l = st(e, n.schema);
|
|
35722
35722
|
return FS(l, t)(n, r);
|
|
35723
35723
|
};
|
|
35724
|
-
var
|
|
35724
|
+
var xk = /* @__PURE__ */ Object.freeze({
|
|
35725
35725
|
__proto__: null,
|
|
35726
|
-
blur:
|
|
35727
|
-
clearContent:
|
|
35728
|
-
clearNodes:
|
|
35729
|
-
command:
|
|
35730
|
-
createParagraphNear:
|
|
35731
|
-
cut:
|
|
35732
|
-
deleteCurrentNode:
|
|
35733
|
-
deleteNode:
|
|
35734
|
-
deleteRange:
|
|
35735
|
-
deleteSelection:
|
|
35736
|
-
enter:
|
|
35737
|
-
exitCode:
|
|
35738
|
-
extendMarkRange:
|
|
35739
|
-
first:
|
|
35740
|
-
focus:
|
|
35741
|
-
forEach:
|
|
35742
|
-
insertContent:
|
|
35743
|
-
insertContentAt:
|
|
35744
|
-
joinBackward:
|
|
35745
|
-
joinDown:
|
|
35746
|
-
joinForward:
|
|
35747
|
-
joinItemBackward:
|
|
35748
|
-
joinItemForward:
|
|
35749
|
-
joinTextblockBackward:
|
|
35750
|
-
joinTextblockForward:
|
|
35751
|
-
joinUp:
|
|
35752
|
-
keyboardShortcut:
|
|
35753
|
-
lift:
|
|
35754
|
-
liftEmptyBlock:
|
|
35755
|
-
liftListItem:
|
|
35756
|
-
newlineInCode:
|
|
35757
|
-
resetAttributes:
|
|
35758
|
-
scrollIntoView: $
|
|
35759
|
-
selectAll:
|
|
35760
|
-
selectNodeBackward:
|
|
35761
|
-
selectNodeForward:
|
|
35762
|
-
selectParentNode:
|
|
35763
|
-
selectTextblockEnd:
|
|
35764
|
-
selectTextblockStart:
|
|
35765
|
-
setContent:
|
|
35766
|
-
setMark:
|
|
35767
|
-
setMeta:
|
|
35768
|
-
setNode:
|
|
35769
|
-
setNodeSelection:
|
|
35770
|
-
setTextSelection:
|
|
35771
|
-
sinkListItem:
|
|
35772
|
-
splitBlock:
|
|
35773
|
-
splitListItem:
|
|
35774
|
-
toggleList:
|
|
35775
|
-
toggleMark:
|
|
35776
|
-
toggleNode:
|
|
35777
|
-
toggleWrap:
|
|
35778
|
-
undoInputRule:
|
|
35779
|
-
unsetAllMarks:
|
|
35780
|
-
unsetMark:
|
|
35781
|
-
updateAttributes:
|
|
35782
|
-
wrapIn:
|
|
35783
|
-
wrapInList:
|
|
35726
|
+
blur: s8,
|
|
35727
|
+
clearContent: o8,
|
|
35728
|
+
clearNodes: u8,
|
|
35729
|
+
command: c8,
|
|
35730
|
+
createParagraphNear: d8,
|
|
35731
|
+
cut: f8,
|
|
35732
|
+
deleteCurrentNode: h8,
|
|
35733
|
+
deleteNode: p8,
|
|
35734
|
+
deleteRange: m8,
|
|
35735
|
+
deleteSelection: b8,
|
|
35736
|
+
enter: g8,
|
|
35737
|
+
exitCode: v8,
|
|
35738
|
+
extendMarkRange: y8,
|
|
35739
|
+
first: E8,
|
|
35740
|
+
focus: C8,
|
|
35741
|
+
forEach: x8,
|
|
35742
|
+
insertContent: S8,
|
|
35743
|
+
insertContentAt: N8,
|
|
35744
|
+
joinBackward: _8,
|
|
35745
|
+
joinDown: I8,
|
|
35746
|
+
joinForward: O8,
|
|
35747
|
+
joinItemBackward: M8,
|
|
35748
|
+
joinItemForward: R8,
|
|
35749
|
+
joinTextblockBackward: D8,
|
|
35750
|
+
joinTextblockForward: L8,
|
|
35751
|
+
joinUp: w8,
|
|
35752
|
+
keyboardShortcut: B8,
|
|
35753
|
+
lift: F8,
|
|
35754
|
+
liftEmptyBlock: H8,
|
|
35755
|
+
liftListItem: U8,
|
|
35756
|
+
newlineInCode: z8,
|
|
35757
|
+
resetAttributes: V8,
|
|
35758
|
+
scrollIntoView: $8,
|
|
35759
|
+
selectAll: q8,
|
|
35760
|
+
selectNodeBackward: W8,
|
|
35761
|
+
selectNodeForward: Y8,
|
|
35762
|
+
selectParentNode: j8,
|
|
35763
|
+
selectTextblockEnd: K8,
|
|
35764
|
+
selectTextblockStart: G8,
|
|
35765
|
+
setContent: Q8,
|
|
35766
|
+
setMark: ak,
|
|
35767
|
+
setMeta: ik,
|
|
35768
|
+
setNode: sk,
|
|
35769
|
+
setNodeSelection: ok,
|
|
35770
|
+
setTextSelection: uk,
|
|
35771
|
+
sinkListItem: ck,
|
|
35772
|
+
splitBlock: dk,
|
|
35773
|
+
splitListItem: fk,
|
|
35774
|
+
toggleList: hk,
|
|
35775
|
+
toggleMark: pk,
|
|
35776
|
+
toggleNode: mk,
|
|
35777
|
+
toggleWrap: bk,
|
|
35778
|
+
undoInputRule: gk,
|
|
35779
|
+
unsetAllMarks: vk,
|
|
35780
|
+
unsetMark: yk,
|
|
35781
|
+
updateAttributes: Ek,
|
|
35782
|
+
wrapIn: Tk,
|
|
35783
|
+
wrapInList: Ck
|
|
35784
35784
|
});
|
|
35785
|
-
const
|
|
35785
|
+
const Sk = mt.create({
|
|
35786
35786
|
name: "commands",
|
|
35787
35787
|
addCommands() {
|
|
35788
35788
|
return {
|
|
35789
|
-
...
|
|
35789
|
+
...xk
|
|
35790
35790
|
};
|
|
35791
35791
|
}
|
|
35792
|
-
}),
|
|
35792
|
+
}), kk = mt.create({
|
|
35793
35793
|
name: "drop",
|
|
35794
35794
|
addProseMirrorPlugins() {
|
|
35795
35795
|
return [
|
|
@@ -35808,7 +35808,7 @@ const S8 = mt.create({
|
|
|
35808
35808
|
})
|
|
35809
35809
|
];
|
|
35810
35810
|
}
|
|
35811
|
-
}),
|
|
35811
|
+
}), Ak = mt.create({
|
|
35812
35812
|
name: "editable",
|
|
35813
35813
|
addProseMirrorPlugins() {
|
|
35814
35814
|
return [
|
|
@@ -35820,13 +35820,13 @@ const S8 = mt.create({
|
|
|
35820
35820
|
})
|
|
35821
35821
|
];
|
|
35822
35822
|
}
|
|
35823
|
-
}),
|
|
35823
|
+
}), Nk = new Kt("focusEvents"), wk = mt.create({
|
|
35824
35824
|
name: "focusEvents",
|
|
35825
35825
|
addProseMirrorPlugins() {
|
|
35826
35826
|
const { editor: e } = this;
|
|
35827
35827
|
return [
|
|
35828
35828
|
new xt({
|
|
35829
|
-
key:
|
|
35829
|
+
key: Nk,
|
|
35830
35830
|
props: {
|
|
35831
35831
|
handleDOMEvents: {
|
|
35832
35832
|
focus: (t, n) => {
|
|
@@ -35844,7 +35844,7 @@ const S8 = mt.create({
|
|
|
35844
35844
|
})
|
|
35845
35845
|
];
|
|
35846
35846
|
}
|
|
35847
|
-
}),
|
|
35847
|
+
}), Ik = mt.create({
|
|
35848
35848
|
name: "keymap",
|
|
35849
35849
|
addKeyboardShortcuts() {
|
|
35850
35850
|
const e = () => this.editor.commands.first(({ commands: i }) => [
|
|
@@ -35922,7 +35922,7 @@ const S8 = mt.create({
|
|
|
35922
35922
|
})
|
|
35923
35923
|
];
|
|
35924
35924
|
}
|
|
35925
|
-
}),
|
|
35925
|
+
}), _k = mt.create({
|
|
35926
35926
|
name: "paste",
|
|
35927
35927
|
addProseMirrorPlugins() {
|
|
35928
35928
|
return [
|
|
@@ -35940,7 +35940,7 @@ const S8 = mt.create({
|
|
|
35940
35940
|
})
|
|
35941
35941
|
];
|
|
35942
35942
|
}
|
|
35943
|
-
}),
|
|
35943
|
+
}), Ok = mt.create({
|
|
35944
35944
|
name: "tabindex",
|
|
35945
35945
|
addProseMirrorPlugins() {
|
|
35946
35946
|
return [
|
|
@@ -36079,7 +36079,7 @@ class rr {
|
|
|
36079
36079
|
}), this.editor.view.dispatch(n);
|
|
36080
36080
|
}
|
|
36081
36081
|
}
|
|
36082
|
-
const
|
|
36082
|
+
const Mk = `.ProseMirror {
|
|
36083
36083
|
position: relative;
|
|
36084
36084
|
}
|
|
36085
36085
|
|
|
@@ -36154,14 +36154,14 @@ img.ProseMirror-separator {
|
|
|
36154
36154
|
.tippy-box[data-animation=fade][data-state=hidden] {
|
|
36155
36155
|
opacity: 0
|
|
36156
36156
|
}`;
|
|
36157
|
-
function
|
|
36157
|
+
function Rk(e, t, n) {
|
|
36158
36158
|
const r = document.querySelector("style[data-tiptap-style]");
|
|
36159
36159
|
if (r !== null)
|
|
36160
36160
|
return r;
|
|
36161
36161
|
const l = document.createElement("style");
|
|
36162
36162
|
return t && l.setAttribute("nonce", t), l.setAttribute("data-tiptap-style", ""), l.innerHTML = e, document.getElementsByTagName("head")[0].appendChild(l), l;
|
|
36163
36163
|
}
|
|
36164
|
-
class
|
|
36164
|
+
class Dk extends WS {
|
|
36165
36165
|
constructor(t = {}) {
|
|
36166
36166
|
super(), this.isFocused = !1, this.isInitialized = !1, this.extensionStorage = {}, this.options = {
|
|
36167
36167
|
element: document.createElement("div"),
|
|
@@ -36224,7 +36224,7 @@ class D8 extends WS {
|
|
|
36224
36224
|
* Inject CSS styles.
|
|
36225
36225
|
*/
|
|
36226
36226
|
injectCSS() {
|
|
36227
|
-
this.options.injectCSS && document && (this.css =
|
|
36227
|
+
this.options.injectCSS && document && (this.css = Rk(Mk, this.options.injectNonce));
|
|
36228
36228
|
}
|
|
36229
36229
|
/**
|
|
36230
36230
|
* Update editor options.
|
|
@@ -36293,18 +36293,18 @@ class D8 extends WS {
|
|
|
36293
36293
|
createExtensionManager() {
|
|
36294
36294
|
var t, n;
|
|
36295
36295
|
const l = [...this.options.enableCoreExtensions ? [
|
|
36296
|
-
|
|
36297
|
-
|
|
36296
|
+
Ak,
|
|
36297
|
+
i8.configure({
|
|
36298
36298
|
blockSeparator: (n = (t = this.options.coreExtensionOptions) === null || t === void 0 ? void 0 : t.clipboardTextSerializer) === null || n === void 0 ? void 0 : n.blockSeparator
|
|
36299
36299
|
}),
|
|
36300
|
-
|
|
36301
|
-
|
|
36302
|
-
|
|
36303
|
-
|
|
36304
|
-
|
|
36305
|
-
|
|
36300
|
+
Sk,
|
|
36301
|
+
wk,
|
|
36302
|
+
Ik,
|
|
36303
|
+
Ok,
|
|
36304
|
+
kk,
|
|
36305
|
+
_k
|
|
36306
36306
|
].filter((a) => typeof this.options.enableCoreExtensions == "object" ? this.options.enableCoreExtensions[a.name] !== !1 : !0) : [], ...this.options.extensions].filter((a) => ["extension", "node", "mark"].includes(a?.type));
|
|
36307
|
-
this.extensionManager = new
|
|
36307
|
+
this.extensionManager = new Hr(l, this);
|
|
36308
36308
|
}
|
|
36309
36309
|
/**
|
|
36310
36310
|
* Creates an command manager.
|
|
@@ -36348,7 +36348,7 @@ class D8 extends WS {
|
|
|
36348
36348
|
...(t = this.options.editorProps) === null || t === void 0 ? void 0 : t.attributes
|
|
36349
36349
|
},
|
|
36350
36350
|
dispatchTransaction: this.dispatchTransaction.bind(this),
|
|
36351
|
-
state:
|
|
36351
|
+
state: Fr.create({
|
|
36352
36352
|
doc: n,
|
|
36353
36353
|
selection: r || void 0
|
|
36354
36354
|
})
|
|
@@ -36428,11 +36428,11 @@ class D8 extends WS {
|
|
|
36428
36428
|
* Get attributes of the currently selected node or mark.
|
|
36429
36429
|
*/
|
|
36430
36430
|
getAttributes(t) {
|
|
36431
|
-
return
|
|
36431
|
+
return tk(this.state, t);
|
|
36432
36432
|
}
|
|
36433
36433
|
isActive(t, n) {
|
|
36434
36434
|
const r = typeof t == "string" ? t : null, l = typeof t == "string" ? n : t;
|
|
36435
|
-
return
|
|
36435
|
+
return nk(this.state, r, l);
|
|
36436
36436
|
}
|
|
36437
36437
|
/**
|
|
36438
36438
|
* Get the document as JSON.
|
|
@@ -36453,7 +36453,7 @@ class D8 extends WS {
|
|
|
36453
36453
|
const { blockSeparator: n = `
|
|
36454
36454
|
|
|
36455
36455
|
`, textSerializers: r = {} } = t || {};
|
|
36456
|
-
return
|
|
36456
|
+
return Z8(this.state.doc, {
|
|
36457
36457
|
blockSeparator: n,
|
|
36458
36458
|
textSerializers: {
|
|
36459
36459
|
...r1(this.schema),
|
|
@@ -36508,7 +36508,7 @@ class D8 extends WS {
|
|
|
36508
36508
|
return this.$pos(0);
|
|
36509
36509
|
}
|
|
36510
36510
|
}
|
|
36511
|
-
function
|
|
36511
|
+
function Gr(e) {
|
|
36512
36512
|
return new Ui({
|
|
36513
36513
|
find: e.find,
|
|
36514
36514
|
handler: ({ state: t, range: n, match: r }) => {
|
|
@@ -36527,7 +36527,7 @@ function Kr(e) {
|
|
|
36527
36527
|
}
|
|
36528
36528
|
});
|
|
36529
36529
|
}
|
|
36530
|
-
function
|
|
36530
|
+
function Lk(e) {
|
|
36531
36531
|
return new Ui({
|
|
36532
36532
|
find: e.find,
|
|
36533
36533
|
handler: ({ state: t, range: n, match: r }) => {
|
|
@@ -36617,8 +36617,8 @@ class It {
|
|
|
36617
36617
|
})), n;
|
|
36618
36618
|
}
|
|
36619
36619
|
}
|
|
36620
|
-
function
|
|
36621
|
-
return new
|
|
36620
|
+
function Qr(e) {
|
|
36621
|
+
return new e8({
|
|
36622
36622
|
find: e.find,
|
|
36623
36623
|
handler: ({ state: t, range: n, match: r, pasteEvent: l }) => {
|
|
36624
36624
|
const a = Ne(e.getAttributes, void 0, r, l);
|
|
@@ -36635,7 +36635,7 @@ function Gr(e) {
|
|
|
36635
36635
|
}
|
|
36636
36636
|
});
|
|
36637
36637
|
}
|
|
36638
|
-
function
|
|
36638
|
+
function Pk(e, t) {
|
|
36639
36639
|
const { selection: n } = e, { $from: r } = n;
|
|
36640
36640
|
if (n instanceof be) {
|
|
36641
36641
|
const a = r.index();
|
|
@@ -36650,7 +36650,7 @@ function P8(e, t) {
|
|
|
36650
36650
|
}
|
|
36651
36651
|
return !1;
|
|
36652
36652
|
}
|
|
36653
|
-
function
|
|
36653
|
+
function Bk(e) {
|
|
36654
36654
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
36655
36655
|
}
|
|
36656
36656
|
var Ho = { exports: {} }, Gs = {};
|
|
@@ -36664,7 +36664,7 @@ var Ho = { exports: {} }, Gs = {};
|
|
|
36664
36664
|
* LICENSE file in the root directory of this source tree.
|
|
36665
36665
|
*/
|
|
36666
36666
|
var ih;
|
|
36667
|
-
function
|
|
36667
|
+
function Fk() {
|
|
36668
36668
|
if (ih) return Gs;
|
|
36669
36669
|
ih = 1;
|
|
36670
36670
|
var e = ve;
|
|
@@ -36709,7 +36709,7 @@ var Qs = {};
|
|
|
36709
36709
|
* LICENSE file in the root directory of this source tree.
|
|
36710
36710
|
*/
|
|
36711
36711
|
var sh;
|
|
36712
|
-
function
|
|
36712
|
+
function Hk() {
|
|
36713
36713
|
return sh || (sh = 1, process.env.NODE_ENV !== "production" && function() {
|
|
36714
36714
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
36715
36715
|
var e = ve, t = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -36779,17 +36779,17 @@ function H8() {
|
|
|
36779
36779
|
Qs.useSyncExternalStore = A, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
36780
36780
|
}()), Qs;
|
|
36781
36781
|
}
|
|
36782
|
-
process.env.NODE_ENV === "production" ? Ho.exports =
|
|
36782
|
+
process.env.NODE_ENV === "production" ? Ho.exports = Fk() : Ho.exports = Hk();
|
|
36783
36783
|
var qi = Ho.exports;
|
|
36784
|
-
const
|
|
36784
|
+
const Uk = (...e) => (t) => {
|
|
36785
36785
|
e.forEach((n) => {
|
|
36786
36786
|
typeof n == "function" ? n(t) : n && (n.current = t);
|
|
36787
36787
|
});
|
|
36788
|
-
},
|
|
36788
|
+
}, zk = ({ contentComponent: e }) => {
|
|
36789
36789
|
const t = qi.useSyncExternalStore(e.subscribe, e.getSnapshot, e.getServerSnapshot);
|
|
36790
36790
|
return ve.createElement(ve.Fragment, null, Object.values(t));
|
|
36791
36791
|
};
|
|
36792
|
-
function
|
|
36792
|
+
function Vk() {
|
|
36793
36793
|
const e = /* @__PURE__ */ new Set();
|
|
36794
36794
|
let t = {};
|
|
36795
36795
|
return {
|
|
@@ -36825,7 +36825,7 @@ function V8() {
|
|
|
36825
36825
|
}
|
|
36826
36826
|
};
|
|
36827
36827
|
}
|
|
36828
|
-
class $
|
|
36828
|
+
class $k extends ve.Component {
|
|
36829
36829
|
constructor(t) {
|
|
36830
36830
|
var n;
|
|
36831
36831
|
super(t), this.editorContentRef = ve.createRef(), this.initialized = !1, this.state = {
|
|
@@ -36846,7 +36846,7 @@ class $8 extends ve.Component {
|
|
|
36846
36846
|
const n = this.editorContentRef.current;
|
|
36847
36847
|
n.append(...t.options.element.childNodes), t.setOptions({
|
|
36848
36848
|
element: n
|
|
36849
|
-
}), t.contentComponent =
|
|
36849
|
+
}), t.contentComponent = Vk(), this.state.hasContentComponentInitialized || (this.unsubscribeToContentComponent = t.contentComponent.subscribe(() => {
|
|
36850
36850
|
this.setState((r) => r.hasContentComponentInitialized ? r : {
|
|
36851
36851
|
hasContentComponentInitialized: !0
|
|
36852
36852
|
}), this.unsubscribeToContentComponent && this.unsubscribeToContentComponent();
|
|
@@ -36869,20 +36869,20 @@ class $8 extends ve.Component {
|
|
|
36869
36869
|
return ve.createElement(
|
|
36870
36870
|
ve.Fragment,
|
|
36871
36871
|
null,
|
|
36872
|
-
ve.createElement("div", { ref:
|
|
36873
|
-
t?.contentComponent && ve.createElement(
|
|
36872
|
+
ve.createElement("div", { ref: Uk(n, this.editorContentRef), ...r }),
|
|
36873
|
+
t?.contentComponent && ve.createElement(zk, { contentComponent: t.contentComponent })
|
|
36874
36874
|
);
|
|
36875
36875
|
}
|
|
36876
36876
|
}
|
|
36877
|
-
const
|
|
36877
|
+
const qk = mb((e, t) => {
|
|
36878
36878
|
const n = ve.useMemo(() => Math.floor(Math.random() * 4294967295).toString(), [e.editor]);
|
|
36879
|
-
return ve.createElement($
|
|
36879
|
+
return ve.createElement($k, {
|
|
36880
36880
|
key: n,
|
|
36881
36881
|
innerRef: t,
|
|
36882
36882
|
...e
|
|
36883
36883
|
});
|
|
36884
|
-
}),
|
|
36885
|
-
var
|
|
36884
|
+
}), Wk = ve.memo(qk);
|
|
36885
|
+
var Yk = function e(t, n) {
|
|
36886
36886
|
if (t === n) return !0;
|
|
36887
36887
|
if (t && n && typeof t == "object" && typeof n == "object") {
|
|
36888
36888
|
if (t.constructor !== n.constructor) return !1;
|
|
@@ -36927,7 +36927,7 @@ var Y8 = function e(t, n) {
|
|
|
36927
36927
|
return !0;
|
|
36928
36928
|
}
|
|
36929
36929
|
return t !== t && n !== n;
|
|
36930
|
-
},
|
|
36930
|
+
}, jk = /* @__PURE__ */ Bk(Yk), Uo = { exports: {} }, Xs = {};
|
|
36931
36931
|
/**
|
|
36932
36932
|
* @license React
|
|
36933
36933
|
* use-sync-external-store-shim/with-selector.production.min.js
|
|
@@ -36938,7 +36938,7 @@ var Y8 = function e(t, n) {
|
|
|
36938
36938
|
* LICENSE file in the root directory of this source tree.
|
|
36939
36939
|
*/
|
|
36940
36940
|
var oh;
|
|
36941
|
-
function
|
|
36941
|
+
function Kk() {
|
|
36942
36942
|
if (oh) return Xs;
|
|
36943
36943
|
oh = 1;
|
|
36944
36944
|
var e = ve, t = qi;
|
|
@@ -36989,7 +36989,7 @@ var Js = {};
|
|
|
36989
36989
|
* LICENSE file in the root directory of this source tree.
|
|
36990
36990
|
*/
|
|
36991
36991
|
var uh;
|
|
36992
|
-
function
|
|
36992
|
+
function Gk() {
|
|
36993
36993
|
return uh || (uh = 1, process.env.NODE_ENV !== "production" && function() {
|
|
36994
36994
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
36995
36995
|
var e = ve, t = qi;
|
|
@@ -37034,10 +37034,10 @@ function G8() {
|
|
|
37034
37034
|
Js.useSyncExternalStoreWithSelector = u, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
37035
37035
|
}()), Js;
|
|
37036
37036
|
}
|
|
37037
|
-
process.env.NODE_ENV === "production" ? Uo.exports =
|
|
37038
|
-
var
|
|
37039
|
-
const
|
|
37040
|
-
class
|
|
37037
|
+
process.env.NODE_ENV === "production" ? Uo.exports = Kk() : Uo.exports = Gk();
|
|
37038
|
+
var Qk = Uo.exports;
|
|
37039
|
+
const Xk = typeof window < "u" ? ze : he;
|
|
37040
|
+
class Jk {
|
|
37041
37041
|
constructor(t) {
|
|
37042
37042
|
this.transactionNumber = 0, this.lastTransactionNumber = 0, this.subscribers = /* @__PURE__ */ new Set(), this.editor = t, this.lastSnapshot = { editor: t, transactionNumber: 0 }, this.getSnapshot = this.getSnapshot.bind(this), this.getServerSnapshot = this.getServerSnapshot.bind(this), this.watch = this.watch.bind(this), this.subscribe = this.subscribe.bind(this);
|
|
37043
37043
|
}
|
|
@@ -37075,10 +37075,10 @@ class J8 {
|
|
|
37075
37075
|
}
|
|
37076
37076
|
}
|
|
37077
37077
|
}
|
|
37078
|
-
function
|
|
37078
|
+
function Zk(e) {
|
|
37079
37079
|
var t;
|
|
37080
|
-
const [n] = K(() => new
|
|
37081
|
-
return
|
|
37080
|
+
const [n] = K(() => new Jk(e.editor)), r = Qk.useSyncExternalStoreWithSelector(n.subscribe, n.getSnapshot, n.getServerSnapshot, e.selector, (t = e.equalityFn) !== null && t !== void 0 ? t : jk);
|
|
37081
|
+
return Xk(() => n.watch(e.editor), [e.editor, n]), Nh(r), r;
|
|
37082
37082
|
}
|
|
37083
37083
|
const ch = process.env.NODE_ENV !== "production", zo = typeof window > "u", eA = zo || !!(typeof window < "u" && window.next);
|
|
37084
37084
|
class Wu {
|
|
@@ -37147,7 +37147,7 @@ class Wu {
|
|
|
37147
37147
|
return (a = (l = this.options.current).onPaste) === null || a === void 0 ? void 0 : a.call(l, ...r);
|
|
37148
37148
|
}
|
|
37149
37149
|
};
|
|
37150
|
-
return new
|
|
37150
|
+
return new Dk(t);
|
|
37151
37151
|
}
|
|
37152
37152
|
/**
|
|
37153
37153
|
* Get the current editor instance.
|
|
@@ -37222,7 +37222,7 @@ function tA(e = {}, t = []) {
|
|
|
37222
37222
|
const n = J(e);
|
|
37223
37223
|
n.current = e;
|
|
37224
37224
|
const [r] = K(() => new Wu(n)), l = qi.useSyncExternalStore(r.subscribe, r.getEditor, r.getServerSnapshot);
|
|
37225
|
-
return Nh(l), he(r.onRender(t)),
|
|
37225
|
+
return Nh(l), he(r.onRender(t)), Zk({
|
|
37226
37226
|
editor: l,
|
|
37227
37227
|
selector: ({ transactionNumber: a }) => e.shouldRerenderOnTransaction === !1 ? null : e.immediatelyRender && a === 0 ? 0 : a + 1
|
|
37228
37228
|
}), l;
|
|
@@ -37326,11 +37326,11 @@ const aA = /^\s*>\s$/, iA = It.create({
|
|
|
37326
37326
|
},
|
|
37327
37327
|
addInputRules() {
|
|
37328
37328
|
return [
|
|
37329
|
-
|
|
37329
|
+
Gr({
|
|
37330
37330
|
find: sA,
|
|
37331
37331
|
type: this.type
|
|
37332
37332
|
}),
|
|
37333
|
-
|
|
37333
|
+
Gr({
|
|
37334
37334
|
find: uA,
|
|
37335
37335
|
type: this.type
|
|
37336
37336
|
})
|
|
@@ -37338,11 +37338,11 @@ const aA = /^\s*>\s$/, iA = It.create({
|
|
|
37338
37338
|
},
|
|
37339
37339
|
addPasteRules() {
|
|
37340
37340
|
return [
|
|
37341
|
-
|
|
37341
|
+
Qr({
|
|
37342
37342
|
find: oA,
|
|
37343
37343
|
type: this.type
|
|
37344
37344
|
}),
|
|
37345
|
-
|
|
37345
|
+
Qr({
|
|
37346
37346
|
find: cA,
|
|
37347
37347
|
type: this.type
|
|
37348
37348
|
})
|
|
@@ -37428,7 +37428,7 @@ const aA = /^\s*>\s$/, iA = It.create({
|
|
|
37428
37428
|
},
|
|
37429
37429
|
addInputRules() {
|
|
37430
37430
|
return [
|
|
37431
|
-
|
|
37431
|
+
Gr({
|
|
37432
37432
|
find: pA,
|
|
37433
37433
|
type: this.type
|
|
37434
37434
|
})
|
|
@@ -37436,7 +37436,7 @@ const aA = /^\s*>\s$/, iA = It.create({
|
|
|
37436
37436
|
},
|
|
37437
37437
|
addPasteRules() {
|
|
37438
37438
|
return [
|
|
37439
|
-
|
|
37439
|
+
Qr({
|
|
37440
37440
|
find: mA,
|
|
37441
37441
|
type: this.type
|
|
37442
37442
|
})
|
|
@@ -38366,7 +38366,7 @@ const p1 = h1(!1, !0), m1 = h1(!0, !0), $A = mt.create({
|
|
|
38366
38366
|
addCommands() {
|
|
38367
38367
|
return {
|
|
38368
38368
|
setHorizontalRule: () => ({ chain: e, state: t }) => {
|
|
38369
|
-
if (!
|
|
38369
|
+
if (!Pk(t, t.schema.nodes[this.name]))
|
|
38370
38370
|
return !1;
|
|
38371
38371
|
const { selection: n } = t, { $from: r, $to: l } = n, a = e();
|
|
38372
38372
|
return r.parentOffset === 0 ? a.insertContentAt({
|
|
@@ -38374,7 +38374,7 @@ const p1 = h1(!1, !0), m1 = h1(!0, !0), $A = mt.create({
|
|
|
38374
38374
|
to: l.pos
|
|
38375
38375
|
}, {
|
|
38376
38376
|
type: this.name
|
|
38377
|
-
}) :
|
|
38377
|
+
}) : rk(n) ? a.insertContentAt(l.pos, {
|
|
38378
38378
|
type: this.name
|
|
38379
38379
|
}) : a.insertContent({ type: this.name }), a.command(({ tr: i, dispatch: s }) => {
|
|
38380
38380
|
var o;
|
|
@@ -38395,7 +38395,7 @@ const p1 = h1(!1, !0), m1 = h1(!0, !0), $A = mt.create({
|
|
|
38395
38395
|
},
|
|
38396
38396
|
addInputRules() {
|
|
38397
38397
|
return [
|
|
38398
|
-
|
|
38398
|
+
Lk({
|
|
38399
38399
|
find: /^(?:---|—-|___\s|\*\*\*\s)$/,
|
|
38400
38400
|
type: this.type
|
|
38401
38401
|
})
|
|
@@ -38444,11 +38444,11 @@ const p1 = h1(!1, !0), m1 = h1(!0, !0), $A = mt.create({
|
|
|
38444
38444
|
},
|
|
38445
38445
|
addInputRules() {
|
|
38446
38446
|
return [
|
|
38447
|
-
|
|
38447
|
+
Gr({
|
|
38448
38448
|
find: WA,
|
|
38449
38449
|
type: this.type
|
|
38450
38450
|
}),
|
|
38451
|
-
|
|
38451
|
+
Gr({
|
|
38452
38452
|
find: jA,
|
|
38453
38453
|
type: this.type
|
|
38454
38454
|
})
|
|
@@ -38456,11 +38456,11 @@ const p1 = h1(!1, !0), m1 = h1(!0, !0), $A = mt.create({
|
|
|
38456
38456
|
},
|
|
38457
38457
|
addPasteRules() {
|
|
38458
38458
|
return [
|
|
38459
|
-
|
|
38459
|
+
Qr({
|
|
38460
38460
|
find: YA,
|
|
38461
38461
|
type: this.type
|
|
38462
38462
|
}),
|
|
38463
|
-
|
|
38463
|
+
Qr({
|
|
38464
38464
|
find: KA,
|
|
38465
38465
|
type: this.type
|
|
38466
38466
|
})
|
|
@@ -38630,7 +38630,7 @@ const p1 = h1(!1, !0), m1 = h1(!0, !0), $A = mt.create({
|
|
|
38630
38630
|
},
|
|
38631
38631
|
addInputRules() {
|
|
38632
38632
|
return [
|
|
38633
|
-
|
|
38633
|
+
Gr({
|
|
38634
38634
|
find: eN,
|
|
38635
38635
|
type: this.type
|
|
38636
38636
|
})
|
|
@@ -38638,7 +38638,7 @@ const p1 = h1(!1, !0), m1 = h1(!0, !0), $A = mt.create({
|
|
|
38638
38638
|
},
|
|
38639
38639
|
addPasteRules() {
|
|
38640
38640
|
return [
|
|
38641
|
-
|
|
38641
|
+
Qr({
|
|
38642
38642
|
find: tN,
|
|
38643
38643
|
type: this.type
|
|
38644
38644
|
})
|
|
@@ -38776,7 +38776,7 @@ const sN = ({ expanded: e, onToggle: t }) => /* @__PURE__ */ W(
|
|
|
38776
38776
|
className: `rte-richtext-container ${d ? "rte-richtext-host-expanded" : ""} ${l ? "rte-richtext-error" : ""}`,
|
|
38777
38777
|
"data-key": e.key,
|
|
38778
38778
|
children: /* @__PURE__ */ W("div", { className: A, style: y, children: [
|
|
38779
|
-
/* @__PURE__ */ v(
|
|
38779
|
+
/* @__PURE__ */ v(Wk, { editor: g }),
|
|
38780
38780
|
c && /* @__PURE__ */ v(sN, { expanded: d, onToggle: b })
|
|
38781
38781
|
] })
|
|
38782
38782
|
}
|
|
@@ -39573,7 +39573,7 @@ const _N = {
|
|
|
39573
39573
|
placement: "bottomLeft",
|
|
39574
39574
|
align: a,
|
|
39575
39575
|
autoAdjustOverflow: ON,
|
|
39576
|
-
getPopupContainer:
|
|
39576
|
+
getPopupContainer: Sr,
|
|
39577
39577
|
trigger: ["click"],
|
|
39578
39578
|
overlayClassName: "rte-agent-dropdown",
|
|
39579
39579
|
onOpenChange: u,
|
|
@@ -39900,7 +39900,7 @@ const MN = ["全部技能", "我的技能", "订阅技能", "系统技能"], RN
|
|
|
39900
39900
|
}, 300);
|
|
39901
39901
|
}, []), C = $(() => {
|
|
39902
39902
|
window.clearTimeout(y.current), b(!1), m(!1);
|
|
39903
|
-
}, []), [I, M] = K(""), [x, w] = K(""), N =
|
|
39903
|
+
}, []), [I, M] = K(""), [x, w] = K(""), N = nl(), k = N ? () => N : void 0, R = J(0), _ = J(null), F = J(0), V = J(0), P = $(() => {
|
|
39904
39904
|
const T = _.current;
|
|
39905
39905
|
T && (T.classList.add("is-scrolling"), window.clearTimeout(V.current), V.current = window.setTimeout(() => {
|
|
39906
39906
|
T.classList.remove("is-scrolling");
|
|
@@ -40058,7 +40058,7 @@ const Ha = 4, x1 = () => /* @__PURE__ */ v(
|
|
|
40058
40058
|
const A = m ? g : h, C = $((E) => {
|
|
40059
40059
|
const B = typeof E == "function" ? E(A) : E;
|
|
40060
40060
|
m || f(B), u?.(B);
|
|
40061
|
-
}, [m, A, u]), [I, M] = K(null), x = J(null), w = J(null), N =
|
|
40061
|
+
}, [m, A, u]), [I, M] = K(null), x = J(null), w = J(null), N = nl(), k = $(() => (x.current?.closest(".rich-text-editor") ?? x.current)?.getBoundingClientRect() ?? null, []), R = $(() => {
|
|
40062
40062
|
const E = k();
|
|
40063
40063
|
if (!E) return;
|
|
40064
40064
|
const B = Math.max(0, window.innerHeight - E.bottom - Ha * 2), U = Math.max(0, E.top - Ha * 2), G = (w.current?.scrollHeight ?? 0) > B && U > B, T = G ? U : B, ie = (w.current?.offsetParent ?? N)?.getBoundingClientRect(), D = ie?.left ?? 0, pe = ie?.top ?? 0, ye = E.left - D;
|
|
@@ -40174,6 +40174,11 @@ const ZN = 10 * 1024 * 1024, e9 = 50 * 1024 * 1024, t9 = "图片大小不能超
|
|
|
40174
40174
|
a.push(o), i += o.size;
|
|
40175
40175
|
}
|
|
40176
40176
|
return { accepted: a, imageOversize: n, totalExceeded: s };
|
|
40177
|
+
}, a9 = {
|
|
40178
|
+
adjustX: 1,
|
|
40179
|
+
adjustY: 1,
|
|
40180
|
+
shiftX: !1,
|
|
40181
|
+
shiftY: !1
|
|
40177
40182
|
}, k1 = ve.memo(({ files: e, onChange: t, disabled: n, onAssetLibraryClick: r }) => {
|
|
40178
40183
|
const { message: l } = zn.useApp(), a = J(null), [i, s] = K(!1), o = $(
|
|
40179
40184
|
(d) => {
|
|
@@ -40206,7 +40211,9 @@ const ZN = 10 * 1024 * 1024, e9 = 50 * 1024 * 1024, t9 = "图片大小不能超
|
|
|
40206
40211
|
}
|
|
40207
40212
|
], onClick: u },
|
|
40208
40213
|
trigger: ["click"],
|
|
40209
|
-
placement: "
|
|
40214
|
+
placement: "bottomLeft",
|
|
40215
|
+
autoAdjustOverflow: a9,
|
|
40216
|
+
getPopupContainer: Sr,
|
|
40210
40217
|
disabled: n,
|
|
40211
40218
|
open: i,
|
|
40212
40219
|
onOpenChange: s,
|
|
@@ -40215,13 +40222,18 @@ const ZN = 10 * 1024 * 1024, e9 = 50 * 1024 * 1024, t9 = "图片大小不能超
|
|
|
40215
40222
|
"div",
|
|
40216
40223
|
{
|
|
40217
40224
|
className: "rte-footer-upload-btn",
|
|
40218
|
-
title: "上传",
|
|
40219
40225
|
style: {
|
|
40220
40226
|
cursor: n ? "not-allowed" : "pointer",
|
|
40221
40227
|
opacity: n ? 0.6 : 1,
|
|
40222
40228
|
pointerEvents: n ? "none" : "auto"
|
|
40223
40229
|
},
|
|
40224
|
-
children: /* @__PURE__ */ v("
|
|
40230
|
+
children: /* @__PURE__ */ v("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ v(
|
|
40231
|
+
"path",
|
|
40232
|
+
{
|
|
40233
|
+
d: "M8.05044 1.00098C8.57059 1.00105 8.93598 1.41865 8.93598 1.88652V7.11543H14.1145C14.5842 7.11543 15 7.53122 15 8.00098C14.9999 8.47053 14.5862 8.88649 14.1164 8.88652H8.93598V14.1154C8.93598 14.5851 8.52013 15.0009 8.05044 15.001C7.58068 15.001 7.16489 14.5852 7.16489 14.1154V8.88652H1.88555C1.41584 8.88652 1.00008 8.47067 1 8.00098C1 7.53122 1.41579 7.11543 1.88555 7.11543H7.16489V1.88652C7.16489 1.41677 7.58068 1.00098 8.05044 1.00098Z",
|
|
40234
|
+
fill: "currentColor"
|
|
40235
|
+
}
|
|
40236
|
+
) })
|
|
40225
40237
|
}
|
|
40226
40238
|
)
|
|
40227
40239
|
}
|
|
@@ -40230,7 +40242,7 @@ const ZN = 10 * 1024 * 1024, e9 = 50 * 1024 * 1024, t9 = "图片大小不能超
|
|
|
40230
40242
|
] });
|
|
40231
40243
|
});
|
|
40232
40244
|
k1.displayName = "UploadButton";
|
|
40233
|
-
const
|
|
40245
|
+
const i9 = () => /* @__PURE__ */ v(
|
|
40234
40246
|
"svg",
|
|
40235
40247
|
{
|
|
40236
40248
|
width: "16",
|
|
@@ -40260,7 +40272,7 @@ const a9 = () => /* @__PURE__ */ v(
|
|
|
40260
40272
|
"aria-pressed": !!e,
|
|
40261
40273
|
style: { cursor: r ? "not-allowed" : "pointer" },
|
|
40262
40274
|
children: [
|
|
40263
|
-
/* @__PURE__ */ v(
|
|
40275
|
+
/* @__PURE__ */ v(i9, {}),
|
|
40264
40276
|
/* @__PURE__ */ v("span", { className: "rte-ai-image-text", children: "AI生图" }),
|
|
40265
40277
|
e && n && /* @__PURE__ */ v(
|
|
40266
40278
|
"i",
|
|
@@ -40313,7 +40325,7 @@ const w1 = ve.memo(
|
|
|
40313
40325
|
}
|
|
40314
40326
|
);
|
|
40315
40327
|
w1.displayName = "PointsBadge";
|
|
40316
|
-
const no = 8, Ch = 72,
|
|
40328
|
+
const no = 8, Ch = 72, s9 = 100, o9 = ".rte-more-menu,[data-rte-more-button],.rte-skill-panel-popup,.rte-skill-delete-confirm,.rte-skill-share-popover,.rte-agent-dropdown,.ant-dropdown", u9 = () => /* @__PURE__ */ W("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
40317
40329
|
/* @__PURE__ */ v(
|
|
40318
40330
|
"path",
|
|
40319
40331
|
{
|
|
@@ -40373,7 +40385,7 @@ const I1 = ({ items: e, measureKey: t, disabled: n }) => {
|
|
|
40373
40385
|
if (!u) return;
|
|
40374
40386
|
const R = (_) => {
|
|
40375
40387
|
const F = _.target;
|
|
40376
|
-
F && F.closest(
|
|
40388
|
+
F && F.closest(o9) || c(!1);
|
|
40377
40389
|
};
|
|
40378
40390
|
return document.addEventListener("mousedown", R), () => document.removeEventListener("mousedown", R);
|
|
40379
40391
|
}, [u]), ze(() => {
|
|
@@ -40412,7 +40424,7 @@ const I1 = ({ items: e, measureKey: t, disabled: n }) => {
|
|
|
40412
40424
|
const E = new Set(P);
|
|
40413
40425
|
return E.delete(F), E;
|
|
40414
40426
|
});
|
|
40415
|
-
},
|
|
40427
|
+
}, s9);
|
|
40416
40428
|
_.set(F, V);
|
|
40417
40429
|
}
|
|
40418
40430
|
}), N.forEach((F) => {
|
|
@@ -40459,7 +40471,7 @@ const I1 = ({ items: e, measureKey: t, disabled: n }) => {
|
|
|
40459
40471
|
disabled: n,
|
|
40460
40472
|
trigger: ["click"],
|
|
40461
40473
|
placement: "topLeft",
|
|
40462
|
-
getPopupContainer:
|
|
40474
|
+
getPopupContainer: Sr,
|
|
40463
40475
|
popupRender: () => /* @__PURE__ */ v("div", { className: "rte-more-menu", children: w.map((R) => /* @__PURE__ */ v("div", { className: "rte-more-menu-item", children: R.renderMenuItem ? R.renderMenuItem({ close: C, activate: () => M(R.key) }) : I(R, !0) }, R.key)) }),
|
|
40464
40476
|
children: /* @__PURE__ */ W(
|
|
40465
40477
|
"div",
|
|
@@ -40469,7 +40481,7 @@ const I1 = ({ items: e, measureKey: t, disabled: n }) => {
|
|
|
40469
40481
|
"data-rte-more-button": "true",
|
|
40470
40482
|
style: { cursor: n ? "not-allowed" : "pointer" },
|
|
40471
40483
|
children: [
|
|
40472
|
-
/* @__PURE__ */ v(
|
|
40484
|
+
/* @__PURE__ */ v(u9, {}),
|
|
40473
40485
|
/* @__PURE__ */ v("span", { children: "更多" })
|
|
40474
40486
|
]
|
|
40475
40487
|
}
|
|
@@ -40479,7 +40491,7 @@ const I1 = ({ items: e, measureKey: t, disabled: n }) => {
|
|
|
40479
40491
|
] });
|
|
40480
40492
|
};
|
|
40481
40493
|
I1.displayName = "ToolbarOverflow";
|
|
40482
|
-
const
|
|
40494
|
+
const c9 = { points: ["tl", "tr"], offset: [4, 0] }, _1 = ve.memo(
|
|
40483
40495
|
({
|
|
40484
40496
|
isProcessing: e,
|
|
40485
40497
|
loading: t,
|
|
@@ -40548,7 +40560,7 @@ const u9 = { points: ["tl", "tr"], offset: [4, 0] }, _1 = ve.memo(
|
|
|
40548
40560
|
currentAgent: h,
|
|
40549
40561
|
onOpenChange: c,
|
|
40550
40562
|
onExit: R,
|
|
40551
|
-
align: pe ?
|
|
40563
|
+
align: pe ? c9 : void 0
|
|
40552
40564
|
}
|
|
40553
40565
|
)
|
|
40554
40566
|
}), ie.push({
|
|
@@ -40653,7 +40665,7 @@ const u9 = { points: ["tl", "tr"], offset: [4, 0] }, _1 = ve.memo(
|
|
|
40653
40665
|
}
|
|
40654
40666
|
);
|
|
40655
40667
|
_1.displayName = "Footer";
|
|
40656
|
-
const
|
|
40668
|
+
const d9 = () => /* @__PURE__ */ W("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: [
|
|
40657
40669
|
/* @__PURE__ */ v("g", { clipPath: "url(#footer_report_icon_clip)", children: /* @__PURE__ */ v(
|
|
40658
40670
|
"path",
|
|
40659
40671
|
{
|
|
@@ -40662,7 +40674,7 @@ const c9 = () => /* @__PURE__ */ W("svg", { width: "16", height: "16", viewBox:
|
|
|
40662
40674
|
}
|
|
40663
40675
|
) }),
|
|
40664
40676
|
/* @__PURE__ */ v("defs", { children: /* @__PURE__ */ v("clipPath", { id: "footer_report_icon_clip", children: /* @__PURE__ */ v("rect", { width: "16", height: "16", fill: "white" }) }) })
|
|
40665
|
-
] }),
|
|
40677
|
+
] }), f9 = ({
|
|
40666
40678
|
report: e,
|
|
40667
40679
|
onRemove: t,
|
|
40668
40680
|
displayKey: n
|
|
@@ -40674,7 +40686,7 @@ const c9 = () => /* @__PURE__ */ W("svg", { width: "16", height: "16", viewBox:
|
|
|
40674
40686
|
className: `rte-footer-report-chip${e.status === "error" ? " rte-footer-report-chip-error" : ""}`,
|
|
40675
40687
|
"data-rte-footer-display-key": n,
|
|
40676
40688
|
children: [
|
|
40677
|
-
/* @__PURE__ */ v("div", { className: "rte-footer-report-icon", children: e.status === "parsing" ? /* @__PURE__ */ v(Jl, { size: "small" }) : /* @__PURE__ */ v(
|
|
40689
|
+
/* @__PURE__ */ v("div", { className: "rte-footer-report-icon", children: e.status === "parsing" ? /* @__PURE__ */ v(Jl, { size: "small" }) : /* @__PURE__ */ v(d9, {}) }),
|
|
40678
40690
|
/* @__PURE__ */ W("div", { className: "rte-footer-report-info", children: [
|
|
40679
40691
|
/* @__PURE__ */ v("span", { className: "rte-footer-report-name", title: e.status === "done" ? e.name : e.url, children: r }),
|
|
40680
40692
|
e.status === "done" && e.date ? /* @__PURE__ */ v("span", { className: "rte-footer-report-date", children: e.date }) : null
|
|
@@ -40698,13 +40710,13 @@ const c9 = () => /* @__PURE__ */ W("svg", { width: "16", height: "16", viewBox:
|
|
|
40698
40710
|
]
|
|
40699
40711
|
}
|
|
40700
40712
|
);
|
|
40701
|
-
},
|
|
40713
|
+
}, h9 = (e) => e < 1024 ? `${e}B` : e < 1024 * 1024 ? `${Math.round(e / 1024)}KB` : `${(e / (1024 * 1024)).toFixed(1)}MB`, O1 = (e) => /\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(e || ""), p9 = (e) => (e.type?.startsWith("image/") ?? !1) || O1(e.name || ""), $o = (e) => /\.(mp4|mov|webm|mkv|avi|m4v|ogg)$/i.test(e || ""), m9 = (e) => (e.type?.startsWith("video/") ?? !1) || $o(e.name || ""), b9 = (e) => {
|
|
40702
40714
|
if (!(typeof navigator < "u" && /jsdom/i.test(navigator.userAgent)))
|
|
40703
40715
|
try {
|
|
40704
40716
|
e.load();
|
|
40705
40717
|
} catch {
|
|
40706
40718
|
}
|
|
40707
|
-
},
|
|
40719
|
+
}, g9 = (e) => new Promise((t) => {
|
|
40708
40720
|
const n = document.createElement("video");
|
|
40709
40721
|
let r = !1, l = null;
|
|
40710
40722
|
const a = window.setTimeout(() => s(""), 8e3), i = () => {
|
|
@@ -40742,8 +40754,8 @@ const c9 = () => /* @__PURE__ */ W("svg", { width: "16", height: "16", viewBox:
|
|
|
40742
40754
|
const h = n.play();
|
|
40743
40755
|
h && typeof h.catch == "function" && h.catch(() => u());
|
|
40744
40756
|
};
|
|
40745
|
-
n.onloadedmetadata = c, n.oncanplay = c, n.onerror = () => s(""), n.crossOrigin = "anonymous", n.preload = "auto", n.muted = !0, n.playsInline = !0, n.autoplay = !1, n.src = e,
|
|
40746
|
-
}),
|
|
40757
|
+
n.onloadedmetadata = c, n.oncanplay = c, n.onerror = () => s(""), n.crossOrigin = "anonymous", n.preload = "auto", n.muted = !0, n.playsInline = !0, n.autoplay = !1, n.src = e, b9(n);
|
|
40758
|
+
}), v9 = (e) => {
|
|
40747
40759
|
const [t, n] = K({ src: "", status: "loading" });
|
|
40748
40760
|
return he(() => {
|
|
40749
40761
|
if (!e) {
|
|
@@ -40751,14 +40763,14 @@ const c9 = () => /* @__PURE__ */ W("svg", { width: "16", height: "16", viewBox:
|
|
|
40751
40763
|
return;
|
|
40752
40764
|
}
|
|
40753
40765
|
let r = !0;
|
|
40754
|
-
return n({ src: "", status: "loading" }),
|
|
40766
|
+
return n({ src: "", status: "loading" }), g9(e).then((l) => {
|
|
40755
40767
|
r && n(l ? { src: l, status: "ready" } : { src: "", status: "failed" });
|
|
40756
40768
|
}), () => {
|
|
40757
40769
|
r = !1;
|
|
40758
40770
|
};
|
|
40759
40771
|
}, [e]), t;
|
|
40760
40772
|
}, M1 = ({ src: e, alt: t }) => {
|
|
40761
|
-
const n =
|
|
40773
|
+
const n = v9(e);
|
|
40762
40774
|
return n.status === "ready" ? /* @__PURE__ */ W("span", { className: "rte-footer-video-thumb-wrap", children: [
|
|
40763
40775
|
/* @__PURE__ */ v("img", { className: "rte-footer-file-thumb rte-footer-video-thumb", src: n.src, alt: t }),
|
|
40764
40776
|
/* @__PURE__ */ v("span", { className: "rte-footer-video-play-icon" })
|
|
@@ -40766,8 +40778,8 @@ const c9 = () => /* @__PURE__ */ W("svg", { width: "16", height: "16", viewBox:
|
|
|
40766
40778
|
}, R1 = (e) => {
|
|
40767
40779
|
const t = (e || "").split(".").pop()?.toLowerCase() || "";
|
|
40768
40780
|
return ["xls", "xla", "xlb", "xlc", "xlm", "xlsx", "xlt", "xlw", "csv", "tsv", "iif"].includes(t) ? "icon-a-xlsxcsv" : ["doc", "docx", "dot", "odt", "rtf", "wiz"].includes(t) ? "icon-docx" : ["ppt", "pptx", "pot", "ppa", "pps", "pwz"].includes(t) ? "icon-ppt" : ["txt", "asm", "bat", "c", "cc", "conf", "cpp", "css", "cxx", "def", "dic", "eml", "h", "hh", "in", "js", "ksh", "php", "pkl", "rb", "tar", "tex", "ts", "xml"].includes(t) ? "icon-txt" : t === "pdf" ? "icon-pdf" : ["html", "htm", "json", "ics", "ifb"].includes(t) ? "icon-a-htmljson" : t === "md" ? "icon-md" : ["mp4", "mov", "webm", "mkv", "avi", "m4v"].includes(t) ? "icon-shipin" : "icon-lianjie";
|
|
40769
|
-
},
|
|
40770
|
-
const r =
|
|
40781
|
+
}, y9 = ({ file: e, onRemove: t, displayKey: n }) => {
|
|
40782
|
+
const r = p9(e), l = m9(e), a = m0(r || l ? e : null);
|
|
40771
40783
|
return /* @__PURE__ */ W("div", { className: "rte-footer-file-chip", "data-rte-footer-display-key": n, children: [
|
|
40772
40784
|
r ? (
|
|
40773
40785
|
// 预览遮罩必须走 document.body 而非 popupHost——host 是编辑器后代,业务祖先链上的
|
|
@@ -40789,7 +40801,7 @@ const c9 = () => /* @__PURE__ */ W("svg", { width: "16", height: "16", viewBox:
|
|
|
40789
40801
|
) : l ? /* @__PURE__ */ v(M1, { src: a, alt: e.name }) : /* @__PURE__ */ v("div", { className: "rte-footer-file-icon", children: /* @__PURE__ */ v("svg", { style: { width: "18px", height: "18px" }, "aria-hidden": "true", children: /* @__PURE__ */ v("use", { xlinkHref: `#${R1(e.name)}` }) }) }),
|
|
40790
40802
|
/* @__PURE__ */ W("div", { className: "rte-footer-file-info", children: [
|
|
40791
40803
|
/* @__PURE__ */ v("span", { className: "rte-footer-file-name", title: e.name, children: e.name }),
|
|
40792
|
-
/* @__PURE__ */ v("span", { className: "rte-footer-file-size", children:
|
|
40804
|
+
/* @__PURE__ */ v("span", { className: "rte-footer-file-size", children: h9(e.size) })
|
|
40793
40805
|
] }),
|
|
40794
40806
|
/* @__PURE__ */ v(
|
|
40795
40807
|
"span",
|
|
@@ -40808,7 +40820,7 @@ const c9 = () => /* @__PURE__ */ W("svg", { width: "16", height: "16", viewBox:
|
|
|
40808
40820
|
}
|
|
40809
40821
|
)
|
|
40810
40822
|
] });
|
|
40811
|
-
},
|
|
40823
|
+
}, E9 = ({ file: e, onRemove: t, displayKey: n }) => {
|
|
40812
40824
|
const r = O1(e.name), l = $o(e.name) || $o(e.url), a = e.thumbnailUrl || e.thumbnail;
|
|
40813
40825
|
return /* @__PURE__ */ W("div", { className: "rte-footer-file-chip", "data-rte-footer-display-key": n, children: [
|
|
40814
40826
|
a ? /* @__PURE__ */ v("img", { className: "rte-footer-file-thumb", src: a, alt: e.name }) : r ? /* @__PURE__ */ v(
|
|
@@ -40908,7 +40920,7 @@ const c9 = () => /* @__PURE__ */ W("svg", { width: "16", height: "16", viewBox:
|
|
|
40908
40920
|
}
|
|
40909
40921
|
) }),
|
|
40910
40922
|
/* @__PURE__ */ v("div", { className: "rte-footer-files-list", ref: i, onScroll: f, children: A.map((C) => C.type === "report" ? /* @__PURE__ */ v(
|
|
40911
|
-
|
|
40923
|
+
f9,
|
|
40912
40924
|
{
|
|
40913
40925
|
displayKey: C.key,
|
|
40914
40926
|
report: C.report,
|
|
@@ -40916,7 +40928,7 @@ const c9 = () => /* @__PURE__ */ W("svg", { width: "16", height: "16", viewBox:
|
|
|
40916
40928
|
},
|
|
40917
40929
|
C.key
|
|
40918
40930
|
) : C.type === "fileUrl" ? /* @__PURE__ */ v(
|
|
40919
|
-
|
|
40931
|
+
E9,
|
|
40920
40932
|
{
|
|
40921
40933
|
displayKey: C.key,
|
|
40922
40934
|
file: C.fileUrl,
|
|
@@ -40924,7 +40936,7 @@ const c9 = () => /* @__PURE__ */ W("svg", { width: "16", height: "16", viewBox:
|
|
|
40924
40936
|
},
|
|
40925
40937
|
C.key
|
|
40926
40938
|
) : /* @__PURE__ */ v(
|
|
40927
|
-
|
|
40939
|
+
y9,
|
|
40928
40940
|
{
|
|
40929
40941
|
displayKey: C.key,
|
|
40930
40942
|
file: C.file,
|
|
@@ -40943,7 +40955,7 @@ const c9 = () => /* @__PURE__ */ W("svg", { width: "16", height: "16", viewBox:
|
|
|
40943
40955
|
] });
|
|
40944
40956
|
});
|
|
40945
40957
|
D1.displayName = "FooterFilesList";
|
|
40946
|
-
const Sh = 9999,
|
|
40958
|
+
const Sh = 9999, T9 = ({ messageRef: e }) => {
|
|
40947
40959
|
const { message: t } = zn.useApp();
|
|
40948
40960
|
return e.current = t, null;
|
|
40949
40961
|
}, qo = ve.memo(({ title: e, onClose: t, exitTip: n = "点击退出技能" }) => (
|
|
@@ -40965,7 +40977,7 @@ const Sh = 9999, E9 = ({ messageRef: e }) => {
|
|
|
40965
40977
|
) }) })
|
|
40966
40978
|
));
|
|
40967
40979
|
qo.displayName = "SkillTag";
|
|
40968
|
-
const
|
|
40980
|
+
const j9 = (e) => {
|
|
40969
40981
|
const {
|
|
40970
40982
|
config: t,
|
|
40971
40983
|
onSend: n,
|
|
@@ -41016,7 +41028,7 @@ const Y9 = (e) => {
|
|
|
41016
41028
|
onAIImageClick: et,
|
|
41017
41029
|
aiImageSelected: Ot,
|
|
41018
41030
|
onAIImageExit: Bt,
|
|
41019
|
-
loading:
|
|
41031
|
+
loading: Ar,
|
|
41020
41032
|
hideButtons: mn,
|
|
41021
41033
|
footerPadding: _e,
|
|
41022
41034
|
showFooterUpload: $e,
|
|
@@ -41052,7 +41064,7 @@ const Y9 = (e) => {
|
|
|
41052
41064
|
Ht.current = f;
|
|
41053
41065
|
const ju = J(m);
|
|
41054
41066
|
ju.current = m;
|
|
41055
|
-
const [P1, B1] = K({}), [fa,
|
|
41067
|
+
const [P1, B1] = K({}), [fa, Nr] = K(_N), [Ku, Gu] = K(() => /* @__PURE__ */ new Set()), [ha, Qu] = K(() => /* @__PURE__ */ new Set()), [pa, F1] = K(() => /* @__PURE__ */ new Set()), [Xu, al] = K({}), [Kn, H1] = K(null), [U1, Ju] = K(null), Yi = J(null);
|
|
41056
41068
|
ze(() => {
|
|
41057
41069
|
const H = Yi.current?.ownerDocument ?? document, ee = H.createElement("div");
|
|
41058
41070
|
return ee.className = "rte-message-host", ee.style.cssText = "position:fixed;inset:0;z-index:2000000000;pointer-events:none;", H.body.appendChild(ee), Ju(ee), () => {
|
|
@@ -41135,7 +41147,7 @@ const Y9 = (e) => {
|
|
|
41135
41147
|
he(() => {
|
|
41136
41148
|
Xn && (ul(null), Jn(!1));
|
|
41137
41149
|
}, [Xn]);
|
|
41138
|
-
const { errors: X1, validate: dc, clearError: fc } = hN(kt), { excludedKeys:
|
|
41150
|
+
const { errors: X1, validate: dc, clearError: fc } = hN(kt), { excludedKeys: wr, hiddenSeparatorIndexes: es, conditionalHiddenIndexes: J1 } = TN(kt, Me, Ze), { analyzeReport: ga, analyzeMarkdown: hc, analyzeMarkdownName: pc, resolveReportName: va } = CN({
|
|
41139
41151
|
reportAnalyze: k,
|
|
41140
41152
|
markdownAnalyze: E,
|
|
41141
41153
|
markdownNameAnalyze: B,
|
|
@@ -41149,7 +41161,7 @@ const Y9 = (e) => {
|
|
|
41149
41161
|
(re) => re.key === ae && re.type === "markdown-module"
|
|
41150
41162
|
) && tt((re) => {
|
|
41151
41163
|
const me = { ...re, [H]: ee };
|
|
41152
|
-
return Object.keys(me).filter((ge) => ge.startsWith(`${ae}__module_`)).every((ge) => mc(me[ge])) && (
|
|
41164
|
+
return Object.keys(me).filter((ge) => ge.startsWith(`${ae}__module_`)).every((ge) => mc(me[ge])) && (Nr((ge) => {
|
|
41153
41165
|
if (!ge.markdownModules[ae]) return ge;
|
|
41154
41166
|
const He = { ...ge.markdownModules };
|
|
41155
41167
|
return delete He[ae], { ...ge, markdownModules: He };
|
|
@@ -41159,7 +41171,7 @@ const Y9 = (e) => {
|
|
|
41159
41171
|
}
|
|
41160
41172
|
if (typeof ee == "string" && ee.trim() === "") {
|
|
41161
41173
|
const ae = kt.find((oe) => oe.key === H);
|
|
41162
|
-
ae?.type === "report-url" ? (
|
|
41174
|
+
ae?.type === "report-url" ? (Nr((oe) => {
|
|
41163
41175
|
if (!oe.reportModules[H]) return oe;
|
|
41164
41176
|
const re = { ...oe.reportModules };
|
|
41165
41177
|
return delete re[H], { ...oe, reportModules: re };
|
|
@@ -41167,7 +41179,7 @@ const Y9 = (e) => {
|
|
|
41167
41179
|
if (!(H in oe)) return oe;
|
|
41168
41180
|
const re = { ...oe };
|
|
41169
41181
|
return delete re[H], re;
|
|
41170
|
-
})) : (ae?.type === "markdown" || ae?.type === "markdown-name") &&
|
|
41182
|
+
})) : (ae?.type === "markdown" || ae?.type === "markdown-name") && Nr((oe) => {
|
|
41171
41183
|
if (!oe.markdownModules[H]) return oe;
|
|
41172
41184
|
const re = { ...oe.markdownModules };
|
|
41173
41185
|
return delete re[H], { ...oe, markdownModules: re };
|
|
@@ -41228,7 +41240,7 @@ const Y9 = (e) => {
|
|
|
41228
41240
|
), rb = $(
|
|
41229
41241
|
(H, ee) => {
|
|
41230
41242
|
ga(H, ee).then((se) => {
|
|
41231
|
-
se.status === "success" &&
|
|
41243
|
+
se.status === "success" && Nr((ae) => ({
|
|
41232
41244
|
...ae,
|
|
41233
41245
|
reportModules: { ...ae.reportModules, [H]: se.modules }
|
|
41234
41246
|
}));
|
|
@@ -41245,7 +41257,7 @@ const Y9 = (e) => {
|
|
|
41245
41257
|
const se = va(H, ee, "report-url").then((oe) => {
|
|
41246
41258
|
oe.status === "success" && al((re) => ({ ...re, [H]: oe.name }));
|
|
41247
41259
|
}), ae = ga(H, ee).then((oe) => {
|
|
41248
|
-
oe.status === "success" ? (
|
|
41260
|
+
oe.status === "success" ? (Nr((re) => ({
|
|
41249
41261
|
...re,
|
|
41250
41262
|
reportModules: { ...re.reportModules, [H]: oe.modules }
|
|
41251
41263
|
})), tt((re) => {
|
|
@@ -41311,7 +41323,7 @@ const Y9 = (e) => {
|
|
|
41311
41323
|
});
|
|
41312
41324
|
try {
|
|
41313
41325
|
const re = await se(H, ee), me = Date.now() - oe;
|
|
41314
|
-
me < 500 && await new Promise((Se) => setTimeout(Se, 500 - me)), re && (
|
|
41326
|
+
me < 500 && await new Promise((Se) => setTimeout(Se, 500 - me)), re && (Nr((Se) => ({
|
|
41315
41327
|
...Se,
|
|
41316
41328
|
markdownModules: { ...Se.markdownModules, [H]: re.modules }
|
|
41317
41329
|
})), tt((Se) => {
|
|
@@ -41363,14 +41375,14 @@ const Y9 = (e) => {
|
|
|
41363
41375
|
lc(""), St([]), c.length && d?.([]), f.length && m?.([]);
|
|
41364
41376
|
return;
|
|
41365
41377
|
}
|
|
41366
|
-
if (!dc(Me, Ze,
|
|
41378
|
+
if (!dc(Me, Ze, wr)) return;
|
|
41367
41379
|
const { formData: se, fullPrompt: ae, hasContent: oe } = await wN({
|
|
41368
41380
|
config: kt,
|
|
41369
41381
|
values: Me,
|
|
41370
41382
|
files: Ze,
|
|
41371
41383
|
footerFiles: Ke,
|
|
41372
41384
|
markdownModules: fa.markdownModules,
|
|
41373
|
-
excludedKeys:
|
|
41385
|
+
excludedKeys: wr,
|
|
41374
41386
|
hiddenSeparatorIndexes: es
|
|
41375
41387
|
});
|
|
41376
41388
|
oe && (n(se, ae, ee), St([]));
|
|
@@ -41395,14 +41407,14 @@ const Y9 = (e) => {
|
|
|
41395
41407
|
pa,
|
|
41396
41408
|
dc,
|
|
41397
41409
|
n,
|
|
41398
|
-
|
|
41410
|
+
wr,
|
|
41399
41411
|
es
|
|
41400
41412
|
]), sb = $(
|
|
41401
41413
|
(H) => {
|
|
41402
41414
|
H.key === "Enter" && (H.nativeEvent.isComposing || H.keyCode === 229 || H.shiftKey || (H.preventDefault(), ls()));
|
|
41403
41415
|
},
|
|
41404
41416
|
[ls]
|
|
41405
|
-
), ob = Fe(() => ha.size > 0 || pa.size > 0 ? !1 : t.length === 0 ? Qn.trim().length > 0 : fN(kt, Me, Ze,
|
|
41417
|
+
), ob = Fe(() => ha.size > 0 || pa.size > 0 ? !1 : t.length === 0 ? Qn.trim().length > 0 : fN(kt, Me, Ze, wr), [ha, pa, t.length, Qn, kt, Me, Ze, wr]), as = $(() => {
|
|
41406
41418
|
const H = Gi.current, ee = H?.querySelector(".tag-node");
|
|
41407
41419
|
if (!H || !ee) return !1;
|
|
41408
41420
|
const se = ee.getClientRects();
|
|
@@ -41544,15 +41556,15 @@ const Y9 = (e) => {
|
|
|
41544
41556
|
} catch {
|
|
41545
41557
|
}
|
|
41546
41558
|
}
|
|
41547
|
-
}, [qe]),
|
|
41559
|
+
}, [qe]), Ir = Fe(
|
|
41548
41560
|
() => kt.filter((H) => H.key && H.type !== "report-module" && H.type !== "markdown-module").map((H) => `${H.type}:${H.key}`).join("|"),
|
|
41549
41561
|
[kt]
|
|
41550
|
-
), kc = J(
|
|
41551
|
-
kc.current !==
|
|
41562
|
+
), kc = J(Ir);
|
|
41563
|
+
kc.current !== Ir && (kc.current = Ir, qe || (Zu(Sh), ec(!0))), he(() => {
|
|
41552
41564
|
if (!Ki) return;
|
|
41553
41565
|
const H = setTimeout(() => ec(!1), an);
|
|
41554
41566
|
return () => clearTimeout(H);
|
|
41555
|
-
}, [Ki,
|
|
41567
|
+
}, [Ki, Ir, an]), ze(() => {
|
|
41556
41568
|
const H = yn.current;
|
|
41557
41569
|
if (!H || (Ea(), typeof ResizeObserver > "u")) return;
|
|
41558
41570
|
const ee = () => {
|
|
@@ -41567,7 +41579,7 @@ const Y9 = (e) => {
|
|
|
41567
41579
|
return ae && oe && oe.observe(ae), () => {
|
|
41568
41580
|
se.disconnect(), oe?.disconnect();
|
|
41569
41581
|
};
|
|
41570
|
-
}, [Ea, kt, Ze, Ke.length, c.length, f.length, Xu, qe,
|
|
41582
|
+
}, [Ea, kt, Ze, Ke.length, c.length, f.length, Xu, qe, Ir, Qn]);
|
|
41571
41583
|
const Ac = J(-1);
|
|
41572
41584
|
he(() => {
|
|
41573
41585
|
qe || Gn <= 0 || Gn >= Sh || Ac.current !== Gn && (Ac.current = Gn, ca?.(Gn));
|
|
@@ -41672,7 +41684,7 @@ const Y9 = (e) => {
|
|
|
41672
41684
|
[Nc, t, Ke, h]
|
|
41673
41685
|
);
|
|
41674
41686
|
return /* @__PURE__ */ v(xb, { getPopupContainer: z1, children: /* @__PURE__ */ W(zn, { component: !1, message: { getContainer: () => U1 ?? Kn ?? document.body }, children: [
|
|
41675
|
-
/* @__PURE__ */ v(
|
|
41687
|
+
/* @__PURE__ */ v(T9, { messageRef: ji }),
|
|
41676
41688
|
/* @__PURE__ */ W(t0.Provider, { value: Kn, children: [
|
|
41677
41689
|
/* @__PURE__ */ W(
|
|
41678
41690
|
"div",
|
|
@@ -41734,7 +41746,7 @@ const Y9 = (e) => {
|
|
|
41734
41746
|
onClick: Tc,
|
|
41735
41747
|
onInput: Sc,
|
|
41736
41748
|
children: /* @__PURE__ */ v("div", { className: "rte-config-fade", children: kt.map((H, ee) => {
|
|
41737
|
-
if (J1.has(ee) || H.key &&
|
|
41749
|
+
if (J1.has(ee) || H.key && wr.has(H.key) || H.exclusionGroup === "separator" && es.has(ee) || ma && H.key !== ma) return null;
|
|
41738
41750
|
const se = (H.type === "report-module" || H.type === "markdown-module") && H.key ? `${H.key}__module_${H.moduleIndex ?? 0}` : H.key;
|
|
41739
41751
|
return /* @__PURE__ */ v(
|
|
41740
41752
|
g1,
|
|
@@ -41771,14 +41783,14 @@ const Y9 = (e) => {
|
|
|
41771
41783
|
},
|
|
41772
41784
|
se ?? `text-${ee}`
|
|
41773
41785
|
);
|
|
41774
|
-
}) },
|
|
41786
|
+
}) }, Ir)
|
|
41775
41787
|
}
|
|
41776
41788
|
),
|
|
41777
41789
|
/* @__PURE__ */ v(
|
|
41778
41790
|
_1,
|
|
41779
41791
|
{
|
|
41780
41792
|
isProcessing: r,
|
|
41781
|
-
loading:
|
|
41793
|
+
loading: Ar,
|
|
41782
41794
|
disabled: l,
|
|
41783
41795
|
sendDisabled: !ob,
|
|
41784
41796
|
showFooterUpload: $e,
|
|
@@ -41814,12 +41826,12 @@ const Y9 = (e) => {
|
|
|
41814
41826
|
/* @__PURE__ */ v("div", { className: "rte-popup-host", ref: H1 })
|
|
41815
41827
|
] })
|
|
41816
41828
|
] }) });
|
|
41817
|
-
}, kh = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFSSURBVHgB3ZTtccIwDIaVXv83I2SDZgSP0BHMBG0naEZhA2boBGQDswHdQJUOGRxjO0Z8HPDe6eJzJD2W4gjgEYSIn2xwK6EIFHqBGysJpMP3ZB0oRbEtmal1NtIxl4OWWsoxEsvqofJ0rgTNASOYq+7SXKDsuYvAcgkq/PWwBLQWqIfdjeRStaBUc4qzgLi9/BzJNmS/sh6bpvmrTfSFacU3scWy1mQryWdSnXiFE8QVUJINLTuyhWzzz/1OZmTN9hEckqtfUOwIGlGCpVRjE+94JFqpMtTeVzO8/UmPxpZU8Qa7aln8Tb9pfwla4WHWrjPvvbbnTBsX7PmLs83EDAH0BxSw1G31+/1FoDg/vPcXR+wocQS1apj4+P92FfhOoLyuBfYlmPgYnGoCjWADzAkzUyJ430awLmphPaxWQVU22BuuApPkHaanjcXSN3t6/QNjTMSJWDcs1QAAAABJRU5ErkJggg==",
|
|
41829
|
+
}, kh = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFSSURBVHgB3ZTtccIwDIaVXv83I2SDZgSP0BHMBG0naEZhA2boBGQDswHdQJUOGRxjO0Z8HPDe6eJzJD2W4gjgEYSIn2xwK6EIFHqBGysJpMP3ZB0oRbEtmal1NtIxl4OWWsoxEsvqofJ0rgTNASOYq+7SXKDsuYvAcgkq/PWwBLQWqIfdjeRStaBUc4qzgLi9/BzJNmS/sh6bpvmrTfSFacU3scWy1mQryWdSnXiFE8QVUJINLTuyhWzzz/1OZmTN9hEckqtfUOwIGlGCpVRjE+94JFqpMtTeVzO8/UmPxpZU8Qa7aln8Tb9pfwla4WHWrjPvvbbnTBsX7PmLs83EDAH0BxSw1G31+/1FoDg/vPcXR+wocQS1apj4+P92FfhOoLyuBfYlmPgYnGoCjWADzAkzUyJ430awLmphPaxWQVU22BuuApPkHaanjcXSN3t6/QNjTMSJWDcs1QAAAABJRU5ErkJggg==", C9 = [
|
|
41818
41830
|
{ label: "5页", value: 5 },
|
|
41819
41831
|
{ label: "10页", value: 10 },
|
|
41820
41832
|
{ label: "15页", value: 15 },
|
|
41821
41833
|
{ label: "30页", value: 30 }
|
|
41822
|
-
],
|
|
41834
|
+
], x9 = ({
|
|
41823
41835
|
autoLoading: e,
|
|
41824
41836
|
batchSize: t,
|
|
41825
41837
|
loadingProgress: n,
|
|
@@ -41882,7 +41894,7 @@ const Y9 = (e) => {
|
|
|
41882
41894
|
{
|
|
41883
41895
|
value: t,
|
|
41884
41896
|
onChange: l,
|
|
41885
|
-
options:
|
|
41897
|
+
options: C9,
|
|
41886
41898
|
disabled: e,
|
|
41887
41899
|
size: "small",
|
|
41888
41900
|
className: "auto_load_select",
|
|
@@ -41892,7 +41904,7 @@ const Y9 = (e) => {
|
|
|
41892
41904
|
]
|
|
41893
41905
|
}
|
|
41894
41906
|
)
|
|
41895
|
-
] }),
|
|
41907
|
+
] }), S9 = ({
|
|
41896
41908
|
current: e,
|
|
41897
41909
|
loadIcon: t,
|
|
41898
41910
|
pageSize: n,
|
|
@@ -41926,7 +41938,7 @@ const Y9 = (e) => {
|
|
|
41926
41938
|
"条数据"
|
|
41927
41939
|
] }),
|
|
41928
41940
|
!g && /* @__PURE__ */ v(
|
|
41929
|
-
|
|
41941
|
+
x9,
|
|
41930
41942
|
{
|
|
41931
41943
|
loadIcon: t || void 0,
|
|
41932
41944
|
autoLoading: i,
|
|
@@ -41973,7 +41985,7 @@ const Y9 = (e) => {
|
|
|
41973
41985
|
}
|
|
41974
41986
|
)
|
|
41975
41987
|
] });
|
|
41976
|
-
},
|
|
41988
|
+
}, k9 = (e) => {
|
|
41977
41989
|
const {
|
|
41978
41990
|
loading: t,
|
|
41979
41991
|
autoLoading: n,
|
|
@@ -42010,7 +42022,7 @@ const Y9 = (e) => {
|
|
|
42010
42022
|
}
|
|
42011
42023
|
),
|
|
42012
42024
|
/* @__PURE__ */ v(
|
|
42013
|
-
|
|
42025
|
+
S9,
|
|
42014
42026
|
{
|
|
42015
42027
|
loading: t,
|
|
42016
42028
|
autoLoading: n,
|
|
@@ -42028,7 +42040,7 @@ const Y9 = (e) => {
|
|
|
42028
42040
|
)
|
|
42029
42041
|
] });
|
|
42030
42042
|
};
|
|
42031
|
-
|
|
42043
|
+
k9.__docgenInfo = {
|
|
42032
42044
|
displayName: "VirtualTable",
|
|
42033
42045
|
description: "虚拟滚动表格组件,支持分页、数据缓存和自动加载功能。",
|
|
42034
42046
|
props: {
|
|
@@ -42135,7 +42147,7 @@ S9.__docgenInfo = {
|
|
|
42135
42147
|
}
|
|
42136
42148
|
}
|
|
42137
42149
|
};
|
|
42138
|
-
const
|
|
42150
|
+
const A9 = ({
|
|
42139
42151
|
texts: e = [],
|
|
42140
42152
|
placeholder: t = "请输入内容",
|
|
42141
42153
|
animationSpeed: n = 100,
|
|
@@ -42250,7 +42262,7 @@ const k9 = ({
|
|
|
42250
42262
|
` })
|
|
42251
42263
|
] });
|
|
42252
42264
|
};
|
|
42253
|
-
|
|
42265
|
+
A9.__docgenInfo = {
|
|
42254
42266
|
displayName: "DynamicInput",
|
|
42255
42267
|
description: "动态文案输入框组件,支持流式文字动画效果",
|
|
42256
42268
|
props: {
|
|
@@ -42295,7 +42307,7 @@ k9.__docgenInfo = {
|
|
|
42295
42307
|
}
|
|
42296
42308
|
}
|
|
42297
42309
|
};
|
|
42298
|
-
const
|
|
42310
|
+
const N9 = ({
|
|
42299
42311
|
texts: e = [],
|
|
42300
42312
|
// 动态文案数组,默认为空数组
|
|
42301
42313
|
placeholder: t = "请输入内容",
|
|
@@ -42509,7 +42521,7 @@ const A9 = ({
|
|
|
42509
42521
|
` })
|
|
42510
42522
|
] });
|
|
42511
42523
|
};
|
|
42512
|
-
|
|
42524
|
+
N9.__docgenInfo = {
|
|
42513
42525
|
displayName: "DynamicTextArea",
|
|
42514
42526
|
description: "动态文案文本域组件,支持流式文字动画效果",
|
|
42515
42527
|
props: {
|
|
@@ -42785,7 +42797,7 @@ L1.__docgenInfo = {
|
|
|
42785
42797
|
}
|
|
42786
42798
|
}
|
|
42787
42799
|
};
|
|
42788
|
-
const
|
|
42800
|
+
const w9 = (e) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mkv"].some((n) => e.toLowerCase().includes(n)), I9 = (e) => e.type ? e.type : w9(e.url) ? "video" : "image", _9 = ({
|
|
42789
42801
|
items: e,
|
|
42790
42802
|
columns: t,
|
|
42791
42803
|
gap: n = 0,
|
|
@@ -42848,7 +42860,7 @@ const N9 = (e) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mk
|
|
|
42848
42860
|
...i
|
|
42849
42861
|
},
|
|
42850
42862
|
children: e.map((b, y) => {
|
|
42851
|
-
const A = b.id || y, C =
|
|
42863
|
+
const A = b.id || y, C = I9(b);
|
|
42852
42864
|
return /* @__PURE__ */ v(
|
|
42853
42865
|
"div",
|
|
42854
42866
|
{
|
|
@@ -42899,7 +42911,7 @@ const N9 = (e) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mk
|
|
|
42899
42911
|
}
|
|
42900
42912
|
);
|
|
42901
42913
|
};
|
|
42902
|
-
|
|
42914
|
+
_9.__docgenInfo = {
|
|
42903
42915
|
displayName: "Waterfall",
|
|
42904
42916
|
description: "瀑布流布局组件,支持图片和视频混合展示",
|
|
42905
42917
|
props: {
|
|
@@ -43016,7 +43028,7 @@ const Ua = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, "
|
|
|
43016
43028
|
旺旺咨询量: "wangwangConsultationCount",
|
|
43017
43029
|
自然流量转化金额: "organicTrafficAmount",
|
|
43018
43030
|
自然流量曝光量: "organicTrafficImpressions"
|
|
43019
|
-
},
|
|
43031
|
+
}, O9 = [
|
|
43020
43032
|
"日期",
|
|
43021
43033
|
"展现量",
|
|
43022
43034
|
"点击量",
|
|
@@ -43077,7 +43089,7 @@ const Ua = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, "
|
|
|
43077
43089
|
"成交新客占比",
|
|
43078
43090
|
"自然流量转化金额",
|
|
43079
43091
|
"自然流量曝光量"
|
|
43080
|
-
], Tl = (e) => Dl[e] ?? e,
|
|
43092
|
+
], Tl = (e) => Dl[e] ?? e, M9 = (e) => e ? !!(Dl[e] !== void 0 || e.length <= 20 && /[\u4e00-\u9fff]/.test(e)) : !1, R9 = (e) => {
|
|
43081
43093
|
const t = e.trim();
|
|
43082
43094
|
if (!t) return [];
|
|
43083
43095
|
const n = t.split(/[\r\n]+/).map((i) => i.trim()).filter(Boolean);
|
|
@@ -43094,28 +43106,28 @@ const Ua = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, "
|
|
|
43094
43106
|
const s = i.some((o) => Dl[o] !== void 0);
|
|
43095
43107
|
return i.length >= 2 && s ? i : [];
|
|
43096
43108
|
}
|
|
43097
|
-
const l = n.filter(
|
|
43109
|
+
const l = n.filter(M9);
|
|
43098
43110
|
return l.some((i) => Dl[i] !== void 0) && l.length >= 2 && l.length / n.length >= 0.5 ? l : [];
|
|
43099
|
-
},
|
|
43111
|
+
}, D9 = (e) => {
|
|
43100
43112
|
if (!e || e.trim() === "") return "";
|
|
43101
43113
|
const t = e.trim();
|
|
43102
43114
|
if (t.toLowerCase() === "nan") return "NaN";
|
|
43103
43115
|
const n = t.match(/^(.+?)([+-]\d)/);
|
|
43104
43116
|
return n ? n[1].trim() : t;
|
|
43105
|
-
},
|
|
43117
|
+
}, L9 = (e) => e.replace(/[\u00a0\u3000]/g, " ").replace(/[–—]/g, "-").replace(/%(\d)/g, "% $1").replace(/NaN(\d)/gi, "NaN $1").replace(/(\.\d+)(\d,\d{3})/g, "$1 $2").replace(/(\.\d+)(\d+\.)/g, "$1 $2").replace(/(\.\d{2})(\d+[+-]\d+\.?\d*%)/g, "$1 $2").replace(/(,\d{3})(\d+[+-]\d+\.?\d*%)/g, "$1 $2").split(/\s+/).map((n) => n.trim()).filter((n) => n !== ""), P9 = (e) => {
|
|
43106
43118
|
const t = (e || "").replace(/[\u00a0\u3000]/g, " "), n = /20\d{2}-\d{2}-\d{2}/g, r = t.match(n) || [];
|
|
43107
43119
|
if (r.length === 0)
|
|
43108
43120
|
return { markdown: "", jsonData: [] };
|
|
43109
|
-
const l = t.split(n).filter((y) => y.trim() !== ""), a = l.length > 0 ?
|
|
43121
|
+
const l = t.split(n).filter((y) => y.trim() !== ""), a = l.length > 0 ? R9(l[0]) : [], i = a.length >= 2, s = i ? a : O9, o = i || l.length > 0 && l[0].includes("展现量") ? 1 : 0, u = s.filter((y) => y !== "日期"), c = u.length, d = [];
|
|
43110
43122
|
r.forEach((y, A) => {
|
|
43111
43123
|
const C = A + o;
|
|
43112
43124
|
if (C >= l.length) return;
|
|
43113
43125
|
const I = l[C];
|
|
43114
43126
|
let M = I.split(/[\r\n]+/).map((N) => N.trim()).filter((N) => N !== "");
|
|
43115
|
-
M.length < c && (M =
|
|
43127
|
+
M.length < c && (M = L9(I));
|
|
43116
43128
|
const x = (N) => M.length === c * 2 ? M[N * 2] ?? "" : M[N] ?? "", w = {};
|
|
43117
43129
|
w[Tl("日期")] = y, u.forEach((N, k) => {
|
|
43118
|
-
const R = x(k), _ =
|
|
43130
|
+
const R = x(k), _ = D9(R), F = Tl(N);
|
|
43119
43131
|
w[F] = _;
|
|
43120
43132
|
}), d.push(w);
|
|
43121
43133
|
});
|
|
@@ -43134,7 +43146,7 @@ const Ua = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, "
|
|
|
43134
43146
|
`),
|
|
43135
43147
|
jsonData: d
|
|
43136
43148
|
};
|
|
43137
|
-
},
|
|
43149
|
+
}, B9 = (e) => {
|
|
43138
43150
|
if (!e)
|
|
43139
43151
|
return "";
|
|
43140
43152
|
const t = e.trim().split(`
|
|
@@ -43154,7 +43166,7 @@ const Ua = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, "
|
|
|
43154
43166
|
c += `<td style="${u}">${Ua(m)}</td>`;
|
|
43155
43167
|
}), c += "</tr>";
|
|
43156
43168
|
}), c += "</tbody></table></div>", c;
|
|
43157
|
-
},
|
|
43169
|
+
}, F9 = (e) => {
|
|
43158
43170
|
const t = [], n = e.querySelector("thead tr");
|
|
43159
43171
|
if (!n) return t;
|
|
43160
43172
|
const r = [];
|
|
@@ -43169,22 +43181,22 @@ const Ua = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, "
|
|
|
43169
43181
|
i[d] = h === "-" ? "" : h;
|
|
43170
43182
|
}), Object.keys(i).length > 0 && t.push(i);
|
|
43171
43183
|
}), t;
|
|
43172
|
-
},
|
|
43173
|
-
const n =
|
|
43184
|
+
}, K9 = (e) => async (t) => {
|
|
43185
|
+
const n = P9(t.text);
|
|
43174
43186
|
return e && e(n.jsonData), {
|
|
43175
43187
|
modules: [
|
|
43176
43188
|
{
|
|
43177
43189
|
title: "推广分析表格",
|
|
43178
|
-
content:
|
|
43190
|
+
content: B9(n.markdown),
|
|
43179
43191
|
markdown: n.markdown
|
|
43180
43192
|
}
|
|
43181
43193
|
]
|
|
43182
43194
|
};
|
|
43183
|
-
},
|
|
43195
|
+
}, G9 = (e, t, n) => {
|
|
43184
43196
|
const r = parseFloat(String(e.get("grossProfitMargin") || "0")) || 0, l = parseFloat(String(e.get("refundRate") || "0")) || 0;
|
|
43185
43197
|
let a = [];
|
|
43186
43198
|
if (t) {
|
|
43187
|
-
const i =
|
|
43199
|
+
const i = F9(t);
|
|
43188
43200
|
i.length > 0 && (a = i);
|
|
43189
43201
|
}
|
|
43190
43202
|
return a.length === 0 && n && n.length > 0 && (a = n), {
|
|
@@ -43192,7 +43204,7 @@ const Ua = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, "
|
|
|
43192
43204
|
refundRate: l,
|
|
43193
43205
|
tableData: a
|
|
43194
43206
|
};
|
|
43195
|
-
},
|
|
43207
|
+
}, Q9 = {
|
|
43196
43208
|
algorithm: Ab.defaultAlgorithm,
|
|
43197
43209
|
token: {
|
|
43198
43210
|
// 主色
|
|
@@ -43264,24 +43276,24 @@ export {
|
|
|
43264
43276
|
qb as BackButton,
|
|
43265
43277
|
Bb as Button,
|
|
43266
43278
|
Fb as Card,
|
|
43267
|
-
|
|
43268
|
-
|
|
43279
|
+
A9 as DynamicInput,
|
|
43280
|
+
N9 as DynamicTextArea,
|
|
43269
43281
|
$b as EmptyAndSpin,
|
|
43270
43282
|
Dl as HEADER_TO_FIELD,
|
|
43271
43283
|
Wb as LinkButton,
|
|
43272
43284
|
Ub as PageTable,
|
|
43273
|
-
|
|
43274
|
-
|
|
43285
|
+
j9 as RichTextEditor,
|
|
43286
|
+
j9 as StructuredEditor,
|
|
43275
43287
|
L1 as VideoCard,
|
|
43276
|
-
|
|
43277
|
-
|
|
43288
|
+
k9 as VirtualTable,
|
|
43289
|
+
_9 as Waterfall,
|
|
43278
43290
|
Vb as XcIcon,
|
|
43279
|
-
|
|
43280
|
-
|
|
43291
|
+
G9 as buildPromotionSendPayload,
|
|
43292
|
+
K9 as createMarkdownAnalyze,
|
|
43281
43293
|
Ua as escapeHtml,
|
|
43282
|
-
|
|
43283
|
-
|
|
43284
|
-
|
|
43285
|
-
|
|
43294
|
+
F9 as extractTableDataFromHtml,
|
|
43295
|
+
Q9 as lightTheme,
|
|
43296
|
+
P9 as parsePromotionTableMarkdown,
|
|
43297
|
+
B9 as renderMarkdownToHtml
|
|
43286
43298
|
};
|
|
43287
43299
|
//# sourceMappingURL=index.es.js.map
|