bi-components-library 1.3.2-next.79 → 1.3.2-next.80
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 +511 -510
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +25 -25
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as v, jsxs as W, Fragment as tt } from "react/jsx-runtime";
|
|
2
|
-
import ge, { useState as Q, useRef as ee, useMemo as Ve, useCallback as V, useEffect as me, createContext as
|
|
3
|
-
import { Button as rr, Card as
|
|
2
|
+
import ge, { useState as Q, useRef as ee, useMemo as Ve, useCallback as V, useEffect as me, createContext as _o, useContext as Zf, useLayoutEffect as qe, useDebugValue as eh, forwardRef as Nb } from "react";
|
|
3
|
+
import { Button as rr, Card as Io, Modal as wb, Table as Oo, Flex as rc, Spin as oi, Empty as _b, Select as Wl, Form as da, Input as Mo, Space as Ib, unstableSetRender as Ob, Tooltip as Ro, DatePicker as Mb, Cascader as Rb, Popover as Ua, Image as th, App as gr, Dropdown as Db, Popconfirm as Lb, ConfigProvider as Pb, Progress as Bb, Pagination as Fb, theme as Hb } from "antd";
|
|
4
4
|
import { createFromIconfontCN as Ub, LeftOutlined as zb, SearchOutlined as Vb, ReloadOutlined as $b, CloseCircleFilled as nh, InfoCircleOutlined as qb, SendOutlined as Wb, PauseCircleOutlined as Yb, PlayCircleOutlined as jb } from "@ant-design/icons";
|
|
5
5
|
import { createRoot as Gb } from "react-dom/client";
|
|
6
6
|
import Kb, { createPortal as rh } from "react-dom";
|
|
@@ -86,7 +86,7 @@ const Xb = ({
|
|
|
86
86
|
size: l = "default",
|
|
87
87
|
...a
|
|
88
88
|
}) => /* @__PURE__ */ v(
|
|
89
|
-
|
|
89
|
+
Io,
|
|
90
90
|
{
|
|
91
91
|
...a,
|
|
92
92
|
title: e,
|
|
@@ -230,7 +230,7 @@ const Zb = ({
|
|
|
230
230
|
defaultPageSize: n = 10,
|
|
231
231
|
...r
|
|
232
232
|
}) => /* @__PURE__ */ v(
|
|
233
|
-
|
|
233
|
+
Oo,
|
|
234
234
|
{
|
|
235
235
|
...r,
|
|
236
236
|
scroll: {
|
|
@@ -614,7 +614,7 @@ const { Option: a1 } = Wl, i1 = ({
|
|
|
614
614
|
const L = Object.keys(o).length > 0;
|
|
615
615
|
(s && !w.current || L) && (k(), w.current = !0);
|
|
616
616
|
}, [s, o, k]), /* @__PURE__ */ W("div", { children: [
|
|
617
|
-
r && n.length > 0 && /* @__PURE__ */ v(
|
|
617
|
+
r && n.length > 0 && /* @__PURE__ */ v(Io, { size: "small", style: { marginBottom: 16 }, children: /* @__PURE__ */ W(
|
|
618
618
|
da,
|
|
619
619
|
{
|
|
620
620
|
form: O,
|
|
@@ -623,7 +623,7 @@ const { Option: a1 } = Wl, i1 = ({
|
|
|
623
623
|
initialValues: n.reduce((L, y) => (y.defaultValue !== void 0 && (L[y.key] = y.defaultValue), L), {}),
|
|
624
624
|
children: [
|
|
625
625
|
n.map((L) => /* @__PURE__ */ v(da.Item, { name: L.key, label: L.label, children: L.type === "input" ? /* @__PURE__ */ v(
|
|
626
|
-
|
|
626
|
+
Mo,
|
|
627
627
|
{
|
|
628
628
|
placeholder: L.placeholder || `请输入${L.label}`,
|
|
629
629
|
style: { width: 200 }
|
|
@@ -646,7 +646,7 @@ const { Option: a1 } = Wl, i1 = ({
|
|
|
646
646
|
}
|
|
647
647
|
) }),
|
|
648
648
|
/* @__PURE__ */ v(
|
|
649
|
-
|
|
649
|
+
Oo,
|
|
650
650
|
{
|
|
651
651
|
...u,
|
|
652
652
|
columns: _,
|
|
@@ -785,7 +785,7 @@ const c1 = {
|
|
|
785
785
|
placement: t = "top",
|
|
786
786
|
...n
|
|
787
787
|
}) => /* @__PURE__ */ v(
|
|
788
|
-
|
|
788
|
+
Ro,
|
|
789
789
|
{
|
|
790
790
|
...n,
|
|
791
791
|
arrow: !1,
|
|
@@ -906,24 +906,24 @@ wt.prototype.property = "";
|
|
|
906
906
|
wt.prototype.spaceSeparated = !1;
|
|
907
907
|
wt.prototype.space = void 0;
|
|
908
908
|
let g1 = 0;
|
|
909
|
-
const Ee = vr(), je = vr(),
|
|
909
|
+
const Ee = vr(), je = vr(), $s = vr(), Z = vr(), He = vr(), Lr = vr(), Rt = vr();
|
|
910
910
|
function vr() {
|
|
911
911
|
return 2 ** ++g1;
|
|
912
912
|
}
|
|
913
|
-
const
|
|
913
|
+
const qs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
914
914
|
__proto__: null,
|
|
915
915
|
boolean: Ee,
|
|
916
916
|
booleanish: je,
|
|
917
917
|
commaOrSpaceSeparated: Rt,
|
|
918
918
|
commaSeparated: Lr,
|
|
919
919
|
number: Z,
|
|
920
|
-
overloadedBoolean:
|
|
920
|
+
overloadedBoolean: $s,
|
|
921
921
|
spaceSeparated: He
|
|
922
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
922
|
+
}, Symbol.toStringTag, { value: "Module" })), Gi = (
|
|
923
923
|
/** @type {ReadonlyArray<keyof typeof types>} */
|
|
924
|
-
Object.keys(
|
|
924
|
+
Object.keys(qs)
|
|
925
925
|
);
|
|
926
|
-
class
|
|
926
|
+
class Do extends wt {
|
|
927
927
|
/**
|
|
928
928
|
* @constructor
|
|
929
929
|
* @param {string} property
|
|
@@ -940,20 +940,20 @@ class Ro extends wt {
|
|
|
940
940
|
constructor(t, n, r, l) {
|
|
941
941
|
let a = -1;
|
|
942
942
|
if (super(t, n), sc(this, "space", l), typeof r == "number")
|
|
943
|
-
for (; ++a <
|
|
944
|
-
const i =
|
|
945
|
-
sc(this,
|
|
943
|
+
for (; ++a < Gi.length; ) {
|
|
944
|
+
const i = Gi[a];
|
|
945
|
+
sc(this, Gi[a], (r & qs[i]) === qs[i]);
|
|
946
946
|
}
|
|
947
947
|
}
|
|
948
948
|
}
|
|
949
|
-
|
|
949
|
+
Do.prototype.defined = !0;
|
|
950
950
|
function sc(e, t, n) {
|
|
951
951
|
n && (e[t] = n);
|
|
952
952
|
}
|
|
953
953
|
function Yr(e) {
|
|
954
954
|
const t = {}, n = {};
|
|
955
955
|
for (const [r, l] of Object.entries(e.properties)) {
|
|
956
|
-
const a = new
|
|
956
|
+
const a = new Do(
|
|
957
957
|
r,
|
|
958
958
|
e.transform(e.attributes || {}, r),
|
|
959
959
|
l,
|
|
@@ -1073,7 +1073,7 @@ const v1 = Yr({
|
|
|
1073
1073
|
dir: null,
|
|
1074
1074
|
dirName: null,
|
|
1075
1075
|
disabled: Ee,
|
|
1076
|
-
download:
|
|
1076
|
+
download: $s,
|
|
1077
1077
|
draggable: je,
|
|
1078
1078
|
encType: null,
|
|
1079
1079
|
enterKeyHint: null,
|
|
@@ -1086,7 +1086,7 @@ const v1 = Yr({
|
|
|
1086
1086
|
formTarget: null,
|
|
1087
1087
|
headers: He,
|
|
1088
1088
|
height: Z,
|
|
1089
|
-
hidden:
|
|
1089
|
+
hidden: $s,
|
|
1090
1090
|
high: Z,
|
|
1091
1091
|
href: null,
|
|
1092
1092
|
hrefLang: null,
|
|
@@ -2005,7 +2005,7 @@ function ui(e, t) {
|
|
|
2005
2005
|
i.charAt(0) !== "-" && (i = "-" + i), t = "data" + i;
|
|
2006
2006
|
}
|
|
2007
2007
|
}
|
|
2008
|
-
l =
|
|
2008
|
+
l = Do;
|
|
2009
2009
|
}
|
|
2010
2010
|
return new l(r, t);
|
|
2011
2011
|
}
|
|
@@ -2023,12 +2023,12 @@ function uc(e) {
|
|
|
2023
2023
|
function ph(e) {
|
|
2024
2024
|
return e.join(" ").trim();
|
|
2025
2025
|
}
|
|
2026
|
-
function
|
|
2026
|
+
function Lo(e) {
|
|
2027
2027
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2028
2028
|
}
|
|
2029
|
-
var kr = {},
|
|
2029
|
+
var kr = {}, Ki, cc;
|
|
2030
2030
|
function k1() {
|
|
2031
|
-
if (cc) return
|
|
2031
|
+
if (cc) return Ki;
|
|
2032
2032
|
cc = 1;
|
|
2033
2033
|
var e = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, t = /\n/g, n = /^\s*/, r = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, l = /^:\s*/, a = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, i = /^[;\s]*/, s = /^\s+|\s+$/g, o = `
|
|
2034
2034
|
`, u = "/", c = "*", d = "", f = "comment", h = "declaration";
|
|
@@ -2114,7 +2114,7 @@ function k1() {
|
|
|
2114
2114
|
function g(b) {
|
|
2115
2115
|
return b ? b.replace(s, d) : d;
|
|
2116
2116
|
}
|
|
2117
|
-
return
|
|
2117
|
+
return Ki = m, Ki;
|
|
2118
2118
|
}
|
|
2119
2119
|
var dc;
|
|
2120
2120
|
function A1() {
|
|
@@ -2170,7 +2170,7 @@ function w1() {
|
|
|
2170
2170
|
return r.default = r, ll = r, ll;
|
|
2171
2171
|
}
|
|
2172
2172
|
var _1 = w1();
|
|
2173
|
-
const I1 = /* @__PURE__ */
|
|
2173
|
+
const I1 = /* @__PURE__ */ Lo(_1), ci = mh("end"), an = mh("start");
|
|
2174
2174
|
function mh(e) {
|
|
2175
2175
|
return t;
|
|
2176
2176
|
function t(n) {
|
|
@@ -2189,13 +2189,13 @@ function bh(e) {
|
|
|
2189
2189
|
return { start: t, end: n };
|
|
2190
2190
|
}
|
|
2191
2191
|
function ml(e) {
|
|
2192
|
-
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? pc(e.position) : "start" in e || "end" in e ? pc(e) : "line" in e || "column" in e ?
|
|
2192
|
+
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? pc(e.position) : "start" in e || "end" in e ? pc(e) : "line" in e || "column" in e ? Ws(e) : "";
|
|
2193
2193
|
}
|
|
2194
|
-
function
|
|
2194
|
+
function Ws(e) {
|
|
2195
2195
|
return mc(e && e.line) + ":" + mc(e && e.column);
|
|
2196
2196
|
}
|
|
2197
2197
|
function pc(e) {
|
|
2198
|
-
return
|
|
2198
|
+
return Ws(e && e.start) + "-" + Ws(e && e.end);
|
|
2199
2199
|
}
|
|
2200
2200
|
function mc(e) {
|
|
2201
2201
|
return e && typeof e == "number" ? e : 1;
|
|
@@ -2287,7 +2287,7 @@ dt.prototype.fatal = void 0;
|
|
|
2287
2287
|
dt.prototype.place = void 0;
|
|
2288
2288
|
dt.prototype.ruleId = void 0;
|
|
2289
2289
|
dt.prototype.source = void 0;
|
|
2290
|
-
const
|
|
2290
|
+
const Po = {}.hasOwnProperty, O1 = /* @__PURE__ */ new Map(), M1 = /[A-Z]/g, R1 = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), D1 = /* @__PURE__ */ new Set(["td", "th"]), gh = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
|
|
2291
2291
|
function L1(e, t) {
|
|
2292
2292
|
if (!t || t.Fragment === void 0)
|
|
2293
2293
|
throw new TypeError("Expected `Fragment` in options");
|
|
@@ -2347,10 +2347,10 @@ function P1(e, t, n) {
|
|
|
2347
2347
|
let l = r;
|
|
2348
2348
|
t.tagName.toLowerCase() === "svg" && r.space === "html" && (l = Un, e.schema = l), e.ancestors.push(t);
|
|
2349
2349
|
const a = Eh(e, t.tagName, !1), i = q1(e, t);
|
|
2350
|
-
let s =
|
|
2350
|
+
let s = Fo(e, t);
|
|
2351
2351
|
return R1.has(t.tagName) && (s = s.filter(function(o) {
|
|
2352
2352
|
return typeof o == "string" ? !b1(o) : !0;
|
|
2353
|
-
})), yh(e, i, a, t),
|
|
2353
|
+
})), yh(e, i, a, t), Bo(i, s), e.ancestors.pop(), e.schema = r, e.create(t, a, i, n);
|
|
2354
2354
|
}
|
|
2355
2355
|
function B1(e, t) {
|
|
2356
2356
|
if (t.data && t.data.estree && e.evaluater) {
|
|
@@ -2372,12 +2372,12 @@ function H1(e, t, n) {
|
|
|
2372
2372
|
const r = e.schema;
|
|
2373
2373
|
let l = r;
|
|
2374
2374
|
t.name === "svg" && r.space === "html" && (l = Un, e.schema = l), e.ancestors.push(t);
|
|
2375
|
-
const a = t.name === null ? e.Fragment : Eh(e, t.name, !0), i = W1(e, t), s =
|
|
2376
|
-
return yh(e, i, a, t),
|
|
2375
|
+
const a = t.name === null ? e.Fragment : Eh(e, t.name, !0), i = W1(e, t), s = Fo(e, t);
|
|
2376
|
+
return yh(e, i, a, t), Bo(i, s), e.ancestors.pop(), e.schema = r, e.create(t, a, i, n);
|
|
2377
2377
|
}
|
|
2378
2378
|
function U1(e, t, n) {
|
|
2379
2379
|
const r = {};
|
|
2380
|
-
return
|
|
2380
|
+
return Bo(r, Fo(e, t)), e.create(t, e.Fragment, r, n);
|
|
2381
2381
|
}
|
|
2382
2382
|
function z1(e, t) {
|
|
2383
2383
|
return t.value;
|
|
@@ -2385,7 +2385,7 @@ function z1(e, t) {
|
|
|
2385
2385
|
function yh(e, t, n, r) {
|
|
2386
2386
|
typeof n != "string" && n !== e.Fragment && e.passNode && (t.node = r);
|
|
2387
2387
|
}
|
|
2388
|
-
function
|
|
2388
|
+
function Bo(e, t) {
|
|
2389
2389
|
if (t.length > 0) {
|
|
2390
2390
|
const n = t.length > 1 ? t : t[0];
|
|
2391
2391
|
n && (e.children = n);
|
|
@@ -2420,7 +2420,7 @@ function q1(e, t) {
|
|
|
2420
2420
|
const n = {};
|
|
2421
2421
|
let r, l;
|
|
2422
2422
|
for (l in t.properties)
|
|
2423
|
-
if (l !== "children" &&
|
|
2423
|
+
if (l !== "children" && Po.call(t.properties, l)) {
|
|
2424
2424
|
const a = Y1(e, l, t.properties[l]);
|
|
2425
2425
|
if (a) {
|
|
2426
2426
|
const [i, s] = a;
|
|
@@ -2468,7 +2468,7 @@ function W1(e, t) {
|
|
|
2468
2468
|
}
|
|
2469
2469
|
return n;
|
|
2470
2470
|
}
|
|
2471
|
-
function
|
|
2471
|
+
function Fo(e, t) {
|
|
2472
2472
|
const n = [];
|
|
2473
2473
|
let r = -1;
|
|
2474
2474
|
const l = e.passKeys ? /* @__PURE__ */ new Map() : O1;
|
|
@@ -2543,7 +2543,7 @@ function Eh(e, t, n) {
|
|
|
2543
2543
|
/** @type {string | number} */
|
|
2544
2544
|
r.value
|
|
2545
2545
|
);
|
|
2546
|
-
return
|
|
2546
|
+
return Po.call(e.components, l) ? e.components[l] : l;
|
|
2547
2547
|
}
|
|
2548
2548
|
if (e.evaluater)
|
|
2549
2549
|
return e.evaluater.evaluateExpression(r);
|
|
@@ -2565,7 +2565,7 @@ function G1(e) {
|
|
|
2565
2565
|
const t = {};
|
|
2566
2566
|
let n;
|
|
2567
2567
|
for (n in e)
|
|
2568
|
-
|
|
2568
|
+
Po.call(e, n) && (t[K1(n)] = e[n]);
|
|
2569
2569
|
return t;
|
|
2570
2570
|
}
|
|
2571
2571
|
function K1(e) {
|
|
@@ -2575,7 +2575,7 @@ function K1(e) {
|
|
|
2575
2575
|
function Q1(e) {
|
|
2576
2576
|
return "-" + e.toLowerCase();
|
|
2577
2577
|
}
|
|
2578
|
-
const
|
|
2578
|
+
const Qi = {
|
|
2579
2579
|
action: ["form"],
|
|
2580
2580
|
cite: ["blockquote", "del", "ins", "q"],
|
|
2581
2581
|
data: ["object"],
|
|
@@ -2691,14 +2691,14 @@ function Pr(e) {
|
|
|
2691
2691
|
return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
2692
2692
|
}
|
|
2693
2693
|
const en = zn(/[A-Za-z]/), Lt = zn(/[\dA-Za-z]/), rg = zn(/[#-'*+\--9=?A-Z^-~]/);
|
|
2694
|
-
function
|
|
2694
|
+
function Ys(e) {
|
|
2695
2695
|
return (
|
|
2696
2696
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
2697
2697
|
// character DEL
|
|
2698
2698
|
e !== null && (e < 32 || e === 127)
|
|
2699
2699
|
);
|
|
2700
2700
|
}
|
|
2701
|
-
const
|
|
2701
|
+
const js = zn(/\d/), lg = zn(/[\dA-Fa-f]/), ag = zn(/[!-/:-@[-`{-~]/);
|
|
2702
2702
|
function de(e) {
|
|
2703
2703
|
return e !== null && e < -2;
|
|
2704
2704
|
}
|
|
@@ -2903,7 +2903,7 @@ function Ec(e) {
|
|
|
2903
2903
|
if (Ol(e))
|
|
2904
2904
|
return 2;
|
|
2905
2905
|
}
|
|
2906
|
-
function
|
|
2906
|
+
function Ho(e, t, n) {
|
|
2907
2907
|
const r = [];
|
|
2908
2908
|
let l = -1;
|
|
2909
2909
|
for (; ++l < e.length; ) {
|
|
@@ -2912,7 +2912,7 @@ function Fo(e, t, n) {
|
|
|
2912
2912
|
}
|
|
2913
2913
|
return t;
|
|
2914
2914
|
}
|
|
2915
|
-
const
|
|
2915
|
+
const Gs = {
|
|
2916
2916
|
name: "attention",
|
|
2917
2917
|
resolveAll: dg,
|
|
2918
2918
|
tokenize: fg
|
|
@@ -2964,7 +2964,7 @@ function dg(e, t) {
|
|
|
2964
2964
|
...i.start
|
|
2965
2965
|
}, e[n][1].start = {
|
|
2966
2966
|
...s.end
|
|
2967
|
-
}, u = [], e[r][1].end.offset - e[r][1].start.offset && (u = zt(u, [["enter", e[r][1], t], ["exit", e[r][1], t]])), u = zt(u, [["enter", l, t], ["enter", i, t], ["exit", i, t], ["enter", a, t]]), u = zt(u,
|
|
2967
|
+
}, u = [], e[r][1].end.offset - e[r][1].start.offset && (u = zt(u, [["enter", e[r][1], t], ["exit", e[r][1], t]])), u = zt(u, [["enter", l, t], ["enter", i, t], ["exit", i, t], ["enter", a, t]]), u = zt(u, Ho(t.parser.constructs.insideSpan.null, e.slice(r + 1, n), t)), u = zt(u, [["exit", a, t], ["enter", s, t], ["exit", s, t], ["exit", l, t]]), e[n][1].end.offset - e[n][1].start.offset ? (c = 2, u = zt(u, [["enter", e[n][1], t], ["exit", e[n][1], t]])) : c = 0, nn(e, r - 1, n - r + 3, u), n = r + u.length - c - 2;
|
|
2968
2968
|
break;
|
|
2969
2969
|
}
|
|
2970
2970
|
}
|
|
@@ -3009,7 +3009,7 @@ function pg(e, t, n) {
|
|
|
3009
3009
|
return h === 58 ? (e.consume(h), r = 0, o) : (h === 43 || h === 45 || h === 46 || Lt(h)) && r++ < 32 ? (e.consume(h), s) : (r = 0, u(h));
|
|
3010
3010
|
}
|
|
3011
3011
|
function o(h) {
|
|
3012
|
-
return h === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(h), e.exit("autolinkMarker"), e.exit("autolink"), t) : h === null || h === 32 || h === 60 ||
|
|
3012
|
+
return h === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(h), e.exit("autolinkMarker"), e.exit("autolink"), t) : h === null || h === 32 || h === 60 || Ys(h) ? n(h) : (e.consume(h), o);
|
|
3013
3013
|
}
|
|
3014
3014
|
function u(h) {
|
|
3015
3015
|
return h === 64 ? (e.consume(h), c) : rg(h) ? (e.consume(h), u) : n(h);
|
|
@@ -3106,7 +3106,7 @@ function Eg(e, t, n) {
|
|
|
3106
3106
|
return d === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(d), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), a = 31, i = Lt, c(d));
|
|
3107
3107
|
}
|
|
3108
3108
|
function u(d) {
|
|
3109
|
-
return d === 88 || d === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(d), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), a = 6, i = lg, c) : (e.enter("characterReferenceValue"), a = 7, i =
|
|
3109
|
+
return d === 88 || d === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(d), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), a = 6, i = lg, c) : (e.enter("characterReferenceValue"), a = 7, i = js, c(d));
|
|
3110
3110
|
}
|
|
3111
3111
|
function c(d) {
|
|
3112
3112
|
if (d === 59 && l) {
|
|
@@ -3205,7 +3205,7 @@ function Cg(e, t, n) {
|
|
|
3205
3205
|
return r.parser.lazy[r.now().line] ? n(i) : t(i);
|
|
3206
3206
|
}
|
|
3207
3207
|
}
|
|
3208
|
-
const
|
|
3208
|
+
const Xi = {
|
|
3209
3209
|
name: "codeIndented",
|
|
3210
3210
|
tokenize: Sg
|
|
3211
3211
|
}, xg = {
|
|
@@ -3554,7 +3554,7 @@ function Nh(e, t, n, r, l, a, i, s, o) {
|
|
|
3554
3554
|
let c = 0;
|
|
3555
3555
|
return d;
|
|
3556
3556
|
function d(E) {
|
|
3557
|
-
return E === 60 ? (e.enter(r), e.enter(l), e.enter(a), e.consume(E), e.exit(a), f) : E === null || E === 32 || E === 41 ||
|
|
3557
|
+
return E === 60 ? (e.enter(r), e.enter(l), e.enter(a), e.consume(E), e.exit(a), f) : E === null || E === 32 || E === 41 || Ys(E) ? n(E) : (e.enter(r), e.enter(i), e.enter(s), e.enter("chunkString", {
|
|
3558
3558
|
contentType: "string"
|
|
3559
3559
|
}), g(E));
|
|
3560
3560
|
}
|
|
@@ -3570,7 +3570,7 @@ function Nh(e, t, n, r, l, a, i, s, o) {
|
|
|
3570
3570
|
return E === 60 || E === 62 || E === 92 ? (e.consume(E), h) : h(E);
|
|
3571
3571
|
}
|
|
3572
3572
|
function g(E) {
|
|
3573
|
-
return !c && (E === null || E === 41 || We(E)) ? (e.exit("chunkString"), e.exit(s), e.exit(i), e.exit(r), t(E)) : c < u && E === 40 ? (e.consume(E), c++, g) : E === 41 ? (e.consume(E), c--, g) : E === null || E === 32 || E === 40 ||
|
|
3573
|
+
return !c && (E === null || E === 41 || We(E)) ? (e.exit("chunkString"), e.exit(s), e.exit(i), e.exit(r), t(E)) : c < u && E === 40 ? (e.consume(E), c++, g) : E === 41 ? (e.consume(E), c--, g) : E === null || E === 32 || E === 40 || Ys(E) ? n(E) : (e.consume(E), E === 92 ? b : g);
|
|
3574
3574
|
}
|
|
3575
3575
|
function b(E) {
|
|
3576
3576
|
return E === 40 || E === 41 || E === 92 ? (e.consume(E), g) : g(E);
|
|
@@ -4049,7 +4049,7 @@ function tv(e, t, n) {
|
|
|
4049
4049
|
return e.enter("htmlTextData"), i(T);
|
|
4050
4050
|
}
|
|
4051
4051
|
}
|
|
4052
|
-
const
|
|
4052
|
+
const Uo = {
|
|
4053
4053
|
name: "labelEnd",
|
|
4054
4054
|
resolveAll: av,
|
|
4055
4055
|
resolveTo: iv,
|
|
@@ -4111,7 +4111,7 @@ function iv(e, t) {
|
|
|
4111
4111
|
...e[i - 2][1].start
|
|
4112
4112
|
}
|
|
4113
4113
|
};
|
|
4114
|
-
return s = [["enter", o, t], ["enter", u, t]], s = zt(s, e.slice(a + 1, a + r + 3)), s = zt(s, [["enter", c, t]]), s = zt(s,
|
|
4114
|
+
return s = [["enter", o, t], ["enter", u, t]], s = zt(s, e.slice(a + 1, a + r + 3)), s = zt(s, [["enter", c, t]]), s = zt(s, Ho(t.parser.constructs.insideSpan.null, e.slice(a + r + 4, i - 3), t)), s = zt(s, [["exit", c, t], e[i - 2], e[i - 1], ["exit", u, t]]), s = zt(s, e.slice(i + 1)), s = zt(s, [["exit", o, t]]), nn(e, a, e.length, s), e;
|
|
4115
4115
|
}
|
|
4116
4116
|
function sv(e, t, n) {
|
|
4117
4117
|
const r = this;
|
|
@@ -4192,7 +4192,7 @@ function cv(e, t, n) {
|
|
|
4192
4192
|
}
|
|
4193
4193
|
const dv = {
|
|
4194
4194
|
name: "labelStartImage",
|
|
4195
|
-
resolveAll:
|
|
4195
|
+
resolveAll: Uo.resolveAll,
|
|
4196
4196
|
tokenize: fv
|
|
4197
4197
|
};
|
|
4198
4198
|
function fv(e, t, n) {
|
|
@@ -4210,7 +4210,7 @@ function fv(e, t, n) {
|
|
|
4210
4210
|
}
|
|
4211
4211
|
const hv = {
|
|
4212
4212
|
name: "labelStartLink",
|
|
4213
|
-
resolveAll:
|
|
4213
|
+
resolveAll: Uo.resolveAll,
|
|
4214
4214
|
tokenize: pv
|
|
4215
4215
|
};
|
|
4216
4216
|
function pv(e, t, n) {
|
|
@@ -4223,7 +4223,7 @@ function pv(e, t, n) {
|
|
|
4223
4223
|
return i === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? n(i) : t(i);
|
|
4224
4224
|
}
|
|
4225
4225
|
}
|
|
4226
|
-
const
|
|
4226
|
+
const Ji = {
|
|
4227
4227
|
name: "lineEnding",
|
|
4228
4228
|
tokenize: mv
|
|
4229
4229
|
};
|
|
@@ -4273,7 +4273,7 @@ function yv(e, t, n) {
|
|
|
4273
4273
|
return s;
|
|
4274
4274
|
function s(h) {
|
|
4275
4275
|
const m = r.containerState.type || (h === 42 || h === 43 || h === 45 ? "listUnordered" : "listOrdered");
|
|
4276
|
-
if (m === "listUnordered" ? !r.containerState.marker || h === r.containerState.marker :
|
|
4276
|
+
if (m === "listUnordered" ? !r.containerState.marker || h === r.containerState.marker : js(h)) {
|
|
4277
4277
|
if (r.containerState.type || (r.containerState.type = m, e.enter(m, {
|
|
4278
4278
|
_container: !0
|
|
4279
4279
|
})), m === "listUnordered")
|
|
@@ -4284,7 +4284,7 @@ function yv(e, t, n) {
|
|
|
4284
4284
|
return n(h);
|
|
4285
4285
|
}
|
|
4286
4286
|
function o(h) {
|
|
4287
|
-
return
|
|
4287
|
+
return js(h) && ++i < 10 ? (e.consume(h), o) : (!r.interrupt || i < 2) && (r.containerState.marker ? h === r.containerState.marker : h === 41 || h === 46) ? (e.exit("listItemValue"), u(h)) : n(h);
|
|
4288
4288
|
}
|
|
4289
4289
|
function u(h) {
|
|
4290
4290
|
return e.enter("listItemMarker"), e.consume(h), e.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || h, e.check(
|
|
@@ -4523,9 +4523,9 @@ const Mv = {
|
|
|
4523
4523
|
}, Rv = {
|
|
4524
4524
|
91: Bg
|
|
4525
4525
|
}, Dv = {
|
|
4526
|
-
[-2]:
|
|
4527
|
-
[-1]:
|
|
4528
|
-
32:
|
|
4526
|
+
[-2]: Xi,
|
|
4527
|
+
[-1]: Xi,
|
|
4528
|
+
32: Xi
|
|
4529
4529
|
}, Lv = {
|
|
4530
4530
|
35: $g,
|
|
4531
4531
|
42: Ia,
|
|
@@ -4539,20 +4539,20 @@ const Mv = {
|
|
|
4539
4539
|
38: kh,
|
|
4540
4540
|
92: Sh
|
|
4541
4541
|
}, Bv = {
|
|
4542
|
-
[-5]:
|
|
4543
|
-
[-4]:
|
|
4544
|
-
[-3]:
|
|
4542
|
+
[-5]: Ji,
|
|
4543
|
+
[-4]: Ji,
|
|
4544
|
+
[-3]: Ji,
|
|
4545
4545
|
33: dv,
|
|
4546
4546
|
38: kh,
|
|
4547
|
-
42:
|
|
4547
|
+
42: Gs,
|
|
4548
4548
|
60: [hg, ev],
|
|
4549
4549
|
91: hv,
|
|
4550
4550
|
92: [zg, Sh],
|
|
4551
|
-
93:
|
|
4552
|
-
95:
|
|
4551
|
+
93: Uo,
|
|
4552
|
+
95: Gs,
|
|
4553
4553
|
96: Ag
|
|
4554
4554
|
}, Fv = {
|
|
4555
|
-
null: [
|
|
4555
|
+
null: [Gs, wv]
|
|
4556
4556
|
}, Hv = {
|
|
4557
4557
|
null: [42, 95]
|
|
4558
4558
|
}, Uv = {
|
|
@@ -4603,7 +4603,7 @@ function Vv(e, t, n) {
|
|
|
4603
4603
|
let c = t.tokenize.call(u, o);
|
|
4604
4604
|
return t.resolveAll && a.push(t), u;
|
|
4605
4605
|
function d(R) {
|
|
4606
|
-
return i = zt(i, R), b(), i[i.length - 1] !== null ? [] : (_(t, 0), u.events =
|
|
4606
|
+
return i = zt(i, R), b(), i[i.length - 1] !== null ? [] : (_(t, 0), u.events = Ho(a, u.events, u), u.events);
|
|
4607
4607
|
}
|
|
4608
4608
|
function f(R, F) {
|
|
4609
4609
|
return qv(h(R), F);
|
|
@@ -5796,7 +5796,7 @@ const Ay = {
|
|
|
5796
5796
|
};
|
|
5797
5797
|
function fa() {
|
|
5798
5798
|
}
|
|
5799
|
-
const Ph = -1, fi = 0, bl = 1, za = 2,
|
|
5799
|
+
const Ph = -1, fi = 0, bl = 1, za = 2, zo = 3, Vo = 4, $o = 5, qo = 6, Bh = 7, Fh = 8, Oc = typeof self == "object" ? self : globalThis, Ny = (e, t) => {
|
|
5800
5800
|
const n = (l, a) => (e.set(a, l), l), r = (l) => {
|
|
5801
5801
|
if (e.has(l))
|
|
5802
5802
|
return e.get(l);
|
|
@@ -5817,19 +5817,19 @@ const Ph = -1, fi = 0, bl = 1, za = 2, Uo = 3, zo = 4, Vo = 5, $o = 6, Bh = 7, F
|
|
|
5817
5817
|
s[r(o)] = r(u);
|
|
5818
5818
|
return s;
|
|
5819
5819
|
}
|
|
5820
|
-
case
|
|
5820
|
+
case zo:
|
|
5821
5821
|
return n(new Date(i), l);
|
|
5822
|
-
case
|
|
5822
|
+
case Vo: {
|
|
5823
5823
|
const { source: s, flags: o } = i;
|
|
5824
5824
|
return n(new RegExp(s, o), l);
|
|
5825
5825
|
}
|
|
5826
|
-
case
|
|
5826
|
+
case $o: {
|
|
5827
5827
|
const s = n(/* @__PURE__ */ new Map(), l);
|
|
5828
5828
|
for (const [o, u] of i)
|
|
5829
5829
|
s.set(r(o), r(u));
|
|
5830
5830
|
return s;
|
|
5831
5831
|
}
|
|
5832
|
-
case
|
|
5832
|
+
case qo: {
|
|
5833
5833
|
const s = n(/* @__PURE__ */ new Set(), l);
|
|
5834
5834
|
for (const o of i)
|
|
5835
5835
|
s.add(r(o));
|
|
@@ -5864,13 +5864,13 @@ const Ph = -1, fi = 0, bl = 1, za = 2, Uo = 3, zo = 4, Vo = 5, $o = 6, Bh = 7, F
|
|
|
5864
5864
|
case "Object":
|
|
5865
5865
|
return [za, Ar];
|
|
5866
5866
|
case "Date":
|
|
5867
|
-
return [Uo, Ar];
|
|
5868
|
-
case "RegExp":
|
|
5869
5867
|
return [zo, Ar];
|
|
5870
|
-
case "
|
|
5868
|
+
case "RegExp":
|
|
5871
5869
|
return [Vo, Ar];
|
|
5872
|
-
case "
|
|
5870
|
+
case "Map":
|
|
5873
5871
|
return [$o, Ar];
|
|
5872
|
+
case "Set":
|
|
5873
|
+
return [qo, Ar];
|
|
5874
5874
|
case "DataView":
|
|
5875
5875
|
return [bl, n];
|
|
5876
5876
|
}
|
|
@@ -5928,19 +5928,19 @@ const Ph = -1, fi = 0, bl = 1, za = 2, Uo = 3, zo = 4, Vo = 5, $o = 6, Bh = 7, F
|
|
|
5928
5928
|
(e || !ha(il(i[f]))) && c.push([a(f), a(i[f])]);
|
|
5929
5929
|
return d;
|
|
5930
5930
|
}
|
|
5931
|
-
case
|
|
5931
|
+
case zo:
|
|
5932
5932
|
return l([s, i.toISOString()], i);
|
|
5933
|
-
case
|
|
5933
|
+
case Vo: {
|
|
5934
5934
|
const { source: c, flags: d } = i;
|
|
5935
5935
|
return l([s, { source: c, flags: d }], i);
|
|
5936
5936
|
}
|
|
5937
|
-
case
|
|
5937
|
+
case $o: {
|
|
5938
5938
|
const c = [], d = l([s, c], i);
|
|
5939
5939
|
for (const [f, h] of i)
|
|
5940
5940
|
(e || !(ha(il(f)) || ha(il(h)))) && c.push([a(f), a(h)]);
|
|
5941
5941
|
return d;
|
|
5942
5942
|
}
|
|
5943
|
-
case
|
|
5943
|
+
case qo: {
|
|
5944
5944
|
const c = [], d = l([s, c], i);
|
|
5945
5945
|
for (const f of i)
|
|
5946
5946
|
(e || !ha(il(f))) && c.push(a(f));
|
|
@@ -6185,7 +6185,7 @@ function pi(e, t, n, r) {
|
|
|
6185
6185
|
return i(o, d, c);
|
|
6186
6186
|
}
|
|
6187
6187
|
}
|
|
6188
|
-
const
|
|
6188
|
+
const Ks = {}.hasOwnProperty, Vy = {};
|
|
6189
6189
|
function $y(e, t) {
|
|
6190
6190
|
const n = t || Vy, r = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), i = { ...Ay, ...n.handlers }, s = {
|
|
6191
6191
|
all: u,
|
|
@@ -6208,7 +6208,7 @@ function $y(e, t) {
|
|
|
6208
6208
|
}), s;
|
|
6209
6209
|
function o(c, d) {
|
|
6210
6210
|
const f = c.type, h = s.handlers[f];
|
|
6211
|
-
if (
|
|
6211
|
+
if (Ks.call(s.handlers, f) && h)
|
|
6212
6212
|
return h(s, c, d);
|
|
6213
6213
|
if (s.options.passThrough && s.options.passThrough.includes(f)) {
|
|
6214
6214
|
if ("children" in c) {
|
|
@@ -6257,7 +6257,7 @@ function Wy(e, t) {
|
|
|
6257
6257
|
return n;
|
|
6258
6258
|
}
|
|
6259
6259
|
function Yy(e, t) {
|
|
6260
|
-
const n = t.data || {}, r = "value" in t && !(
|
|
6260
|
+
const n = t.data || {}, r = "value" in t && !(Ks.call(n, "hProperties") || Ks.call(n, "hChildren")) ? { type: "text", value: t.value } : {
|
|
6261
6261
|
type: "element",
|
|
6262
6262
|
tagName: "div",
|
|
6263
6263
|
properties: {},
|
|
@@ -6304,9 +6304,9 @@ function Bc(e) {
|
|
|
6304
6304
|
if (e)
|
|
6305
6305
|
throw e;
|
|
6306
6306
|
}
|
|
6307
|
-
var
|
|
6307
|
+
var Zi, Fc;
|
|
6308
6308
|
function Ky() {
|
|
6309
|
-
if (Fc) return
|
|
6309
|
+
if (Fc) return Zi;
|
|
6310
6310
|
Fc = 1;
|
|
6311
6311
|
var e = Object.prototype.hasOwnProperty, t = Object.prototype.toString, n = Object.defineProperty, r = Object.getOwnPropertyDescriptor, l = function(u) {
|
|
6312
6312
|
return typeof Array.isArray == "function" ? Array.isArray(u) : t.call(u) === "[object Array]";
|
|
@@ -6335,18 +6335,18 @@ function Ky() {
|
|
|
6335
6335
|
} else return;
|
|
6336
6336
|
return u[c];
|
|
6337
6337
|
};
|
|
6338
|
-
return
|
|
6338
|
+
return Zi = function o() {
|
|
6339
6339
|
var u, c, d, f, h, m, g = arguments[0], b = 1, E = arguments.length, A = !1;
|
|
6340
6340
|
for (typeof g == "boolean" && (A = g, g = arguments[1] || {}, b = 2), (g == null || typeof g != "object" && typeof g != "function") && (g = {}); b < E; ++b)
|
|
6341
6341
|
if (u = arguments[b], u != null)
|
|
6342
6342
|
for (c in u)
|
|
6343
6343
|
d = s(g, c), f = s(u, c), g !== f && (A && f && (a(f) || (h = l(f))) ? (h ? (h = !1, m = d && l(d) ? d : []) : m = d && a(d) ? d : {}, i(g, { name: c, newValue: o(A, m, f) })) : typeof f < "u" && i(g, { name: c, newValue: f }));
|
|
6344
6344
|
return g;
|
|
6345
|
-
},
|
|
6345
|
+
}, Zi;
|
|
6346
6346
|
}
|
|
6347
6347
|
var Qy = Ky();
|
|
6348
|
-
const
|
|
6349
|
-
function
|
|
6348
|
+
const es = /* @__PURE__ */ Lo(Qy);
|
|
6349
|
+
function Qs(e) {
|
|
6350
6350
|
if (typeof e != "object" || e === null)
|
|
6351
6351
|
return !1;
|
|
6352
6352
|
const t = Object.getPrototypeOf(e);
|
|
@@ -6521,14 +6521,14 @@ const aE = { cwd: iE };
|
|
|
6521
6521
|
function iE() {
|
|
6522
6522
|
return "/";
|
|
6523
6523
|
}
|
|
6524
|
-
function
|
|
6524
|
+
function Xs(e) {
|
|
6525
6525
|
return !!(e !== null && typeof e == "object" && "href" in e && e.href && "protocol" in e && e.protocol && // @ts-expect-error: indexing is fine.
|
|
6526
6526
|
e.auth === void 0);
|
|
6527
6527
|
}
|
|
6528
6528
|
function sE(e) {
|
|
6529
6529
|
if (typeof e == "string")
|
|
6530
6530
|
e = new URL(e);
|
|
6531
|
-
else if (!
|
|
6531
|
+
else if (!Xs(e)) {
|
|
6532
6532
|
const t = new TypeError(
|
|
6533
6533
|
'The "path" argument must be of type string or an instance of URL. Received `' + e + "`"
|
|
6534
6534
|
);
|
|
@@ -6561,7 +6561,7 @@ function oE(e) {
|
|
|
6561
6561
|
}
|
|
6562
6562
|
return decodeURIComponent(t);
|
|
6563
6563
|
}
|
|
6564
|
-
const
|
|
6564
|
+
const ts = (
|
|
6565
6565
|
/** @type {const} */
|
|
6566
6566
|
[
|
|
6567
6567
|
"history",
|
|
@@ -6597,15 +6597,15 @@ class Vh {
|
|
|
6597
6597
|
*/
|
|
6598
6598
|
constructor(t) {
|
|
6599
6599
|
let n;
|
|
6600
|
-
t ?
|
|
6600
|
+
t ? Xs(t) ? n = { path: t } : typeof t == "string" || uE(t) ? n = { value: t } : n = t : n = {}, this.cwd = "cwd" in n ? "" : aE.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
|
|
6601
6601
|
let r = -1;
|
|
6602
|
-
for (; ++r <
|
|
6603
|
-
const a =
|
|
6602
|
+
for (; ++r < ts.length; ) {
|
|
6603
|
+
const a = ts[r];
|
|
6604
6604
|
a in n && n[a] !== void 0 && n[a] !== null && (this[a] = a === "history" ? [...n[a]] : n[a]);
|
|
6605
6605
|
}
|
|
6606
6606
|
let l;
|
|
6607
6607
|
for (l in n)
|
|
6608
|
-
|
|
6608
|
+
ts.includes(l) || (this[l] = n[l]);
|
|
6609
6609
|
}
|
|
6610
6610
|
/**
|
|
6611
6611
|
* Get the basename (including extname) (example: `'index.min.js'`).
|
|
@@ -6629,7 +6629,7 @@ class Vh {
|
|
|
6629
6629
|
* Nothing.
|
|
6630
6630
|
*/
|
|
6631
6631
|
set basename(t) {
|
|
6632
|
-
|
|
6632
|
+
rs(t, "basename"), ns(t, "basename"), this.path = Xt.join(this.dirname || "", t);
|
|
6633
6633
|
}
|
|
6634
6634
|
/**
|
|
6635
6635
|
* Get the parent path (example: `'~'`).
|
|
@@ -6675,7 +6675,7 @@ class Vh {
|
|
|
6675
6675
|
* Nothing.
|
|
6676
6676
|
*/
|
|
6677
6677
|
set extname(t) {
|
|
6678
|
-
if (
|
|
6678
|
+
if (ns(t, "extname"), Hc(this.dirname, "extname"), t) {
|
|
6679
6679
|
if (t.codePointAt(0) !== 46)
|
|
6680
6680
|
throw new Error("`extname` must start with `.`");
|
|
6681
6681
|
if (t.includes(".", 1))
|
|
@@ -6705,7 +6705,7 @@ class Vh {
|
|
|
6705
6705
|
* Nothing.
|
|
6706
6706
|
*/
|
|
6707
6707
|
set path(t) {
|
|
6708
|
-
|
|
6708
|
+
Xs(t) && (t = sE(t)), rs(t, "path"), this.path !== t && this.history.push(t);
|
|
6709
6709
|
}
|
|
6710
6710
|
/**
|
|
6711
6711
|
* Get the stem (basename w/o extname) (example: `'index.min'`).
|
|
@@ -6729,7 +6729,7 @@ class Vh {
|
|
|
6729
6729
|
* Nothing.
|
|
6730
6730
|
*/
|
|
6731
6731
|
set stem(t) {
|
|
6732
|
-
|
|
6732
|
+
rs(t, "stem"), ns(t, "stem"), this.path = Xt.join(this.dirname || "", t + (this.extname || ""));
|
|
6733
6733
|
}
|
|
6734
6734
|
// Normal prototypal methods.
|
|
6735
6735
|
/**
|
|
@@ -6942,13 +6942,13 @@ class Vh {
|
|
|
6942
6942
|
return this.value === void 0 ? "" : typeof this.value == "string" ? this.value : new TextDecoder(t || void 0).decode(this.value);
|
|
6943
6943
|
}
|
|
6944
6944
|
}
|
|
6945
|
-
function
|
|
6945
|
+
function ns(e, t) {
|
|
6946
6946
|
if (e && e.includes(Xt.sep))
|
|
6947
6947
|
throw new Error(
|
|
6948
6948
|
"`" + t + "` cannot be a path: did not expect `" + Xt.sep + "`"
|
|
6949
6949
|
);
|
|
6950
6950
|
}
|
|
6951
|
-
function
|
|
6951
|
+
function rs(e, t) {
|
|
6952
6952
|
if (!e)
|
|
6953
6953
|
throw new Error("`" + t + "` cannot be empty");
|
|
6954
6954
|
}
|
|
@@ -6981,7 +6981,7 @@ const cE = (
|
|
|
6981
6981
|
return Object.setPrototypeOf(a, r), a;
|
|
6982
6982
|
}
|
|
6983
6983
|
), dE = {}.hasOwnProperty;
|
|
6984
|
-
class
|
|
6984
|
+
class Wo extends cE {
|
|
6985
6985
|
/**
|
|
6986
6986
|
* Create a processor.
|
|
6987
6987
|
*/
|
|
@@ -7002,14 +7002,14 @@ class qo extends cE {
|
|
|
7002
7002
|
copy() {
|
|
7003
7003
|
const t = (
|
|
7004
7004
|
/** @type {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>} */
|
|
7005
|
-
new
|
|
7005
|
+
new Wo()
|
|
7006
7006
|
);
|
|
7007
7007
|
let n = -1;
|
|
7008
7008
|
for (; ++n < this.attachers.length; ) {
|
|
7009
7009
|
const r = this.attachers[n];
|
|
7010
7010
|
t.use(...r);
|
|
7011
7011
|
}
|
|
7012
|
-
return t.data(
|
|
7012
|
+
return t.data(es(!0, {}, this.namespace)), t;
|
|
7013
7013
|
}
|
|
7014
7014
|
/**
|
|
7015
7015
|
* Configure the processor with info available to all plugins.
|
|
@@ -7071,7 +7071,7 @@ class qo extends cE {
|
|
|
7071
7071
|
* the entire dataset when getting without key.
|
|
7072
7072
|
*/
|
|
7073
7073
|
data(t, n) {
|
|
7074
|
-
return typeof t == "string" ? arguments.length === 2 ? (
|
|
7074
|
+
return typeof t == "string" ? arguments.length === 2 ? (is("data", this.frozen), this.namespace[t] = n, this) : dE.call(this.namespace, t) && this.namespace[t] || void 0 : t ? (is("data", this.frozen), this.namespace = t, this) : this.namespace;
|
|
7075
7075
|
}
|
|
7076
7076
|
/**
|
|
7077
7077
|
* Freeze a processor.
|
|
@@ -7125,7 +7125,7 @@ class qo extends cE {
|
|
|
7125
7125
|
parse(t) {
|
|
7126
7126
|
this.freeze();
|
|
7127
7127
|
const n = pa(t), r = this.parser || this.Parser;
|
|
7128
|
-
return
|
|
7128
|
+
return ls("parse", r), r(String(n), n);
|
|
7129
7129
|
}
|
|
7130
7130
|
/**
|
|
7131
7131
|
* Process the given file as configured on the processor.
|
|
@@ -7171,7 +7171,7 @@ class qo extends cE {
|
|
|
7171
7171
|
*/
|
|
7172
7172
|
process(t, n) {
|
|
7173
7173
|
const r = this;
|
|
7174
|
-
return this.freeze(),
|
|
7174
|
+
return this.freeze(), ls("process", this.parser || this.Parser), as("process", this.compiler || this.Compiler), n ? l(void 0, n) : new Promise(l);
|
|
7175
7175
|
function l(a, i) {
|
|
7176
7176
|
const s = pa(t), o = (
|
|
7177
7177
|
/** @type {HeadTree extends undefined ? Node : HeadTree} */
|
|
@@ -7230,7 +7230,7 @@ class qo extends cE {
|
|
|
7230
7230
|
*/
|
|
7231
7231
|
processSync(t) {
|
|
7232
7232
|
let n = !1, r;
|
|
7233
|
-
return this.freeze(),
|
|
7233
|
+
return this.freeze(), ls("processSync", this.parser || this.Parser), as("processSync", this.compiler || this.Compiler), this.process(t, l), zc("processSync", "process", n), r;
|
|
7234
7234
|
function l(a, i) {
|
|
7235
7235
|
n = !0, Bc(a), r = i;
|
|
7236
7236
|
}
|
|
@@ -7345,7 +7345,7 @@ class qo extends cE {
|
|
|
7345
7345
|
stringify(t, n) {
|
|
7346
7346
|
this.freeze();
|
|
7347
7347
|
const r = pa(n), l = this.compiler || this.Compiler;
|
|
7348
|
-
return
|
|
7348
|
+
return as("stringify", l), Uc(t), l(t, r);
|
|
7349
7349
|
}
|
|
7350
7350
|
/**
|
|
7351
7351
|
* Configure the processor to use a plugin, a list of usable values, or a
|
|
@@ -7406,7 +7406,7 @@ class qo extends cE {
|
|
|
7406
7406
|
*/
|
|
7407
7407
|
use(t, ...n) {
|
|
7408
7408
|
const r = this.attachers, l = this.namespace;
|
|
7409
|
-
if (
|
|
7409
|
+
if (is("use", this.frozen), t != null) if (typeof t == "function")
|
|
7410
7410
|
o(t, n);
|
|
7411
7411
|
else if (typeof t == "object")
|
|
7412
7412
|
Array.isArray(t) ? s(t) : i(t);
|
|
@@ -7433,7 +7433,7 @@ class qo extends cE {
|
|
|
7433
7433
|
throw new Error(
|
|
7434
7434
|
"Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither"
|
|
7435
7435
|
);
|
|
7436
|
-
s(u.plugins), u.settings && (l.settings =
|
|
7436
|
+
s(u.plugins), u.settings && (l.settings = es(!0, l.settings, u.settings));
|
|
7437
7437
|
}
|
|
7438
7438
|
function s(u) {
|
|
7439
7439
|
let c = -1;
|
|
@@ -7457,28 +7457,28 @@ class qo extends cE {
|
|
|
7457
7457
|
else if (c.length > 0) {
|
|
7458
7458
|
let [h, ...m] = c;
|
|
7459
7459
|
const g = r[f][1];
|
|
7460
|
-
|
|
7460
|
+
Qs(g) && Qs(h) && (h = es(!0, g, h)), r[f] = [u, h, ...m];
|
|
7461
7461
|
}
|
|
7462
7462
|
}
|
|
7463
7463
|
}
|
|
7464
7464
|
}
|
|
7465
|
-
const fE = new
|
|
7466
|
-
function
|
|
7465
|
+
const fE = new Wo().freeze();
|
|
7466
|
+
function ls(e, t) {
|
|
7467
7467
|
if (typeof t != "function")
|
|
7468
7468
|
throw new TypeError("Cannot `" + e + "` without `parser`");
|
|
7469
7469
|
}
|
|
7470
|
-
function
|
|
7470
|
+
function as(e, t) {
|
|
7471
7471
|
if (typeof t != "function")
|
|
7472
7472
|
throw new TypeError("Cannot `" + e + "` without `compiler`");
|
|
7473
7473
|
}
|
|
7474
|
-
function
|
|
7474
|
+
function is(e, t) {
|
|
7475
7475
|
if (t)
|
|
7476
7476
|
throw new Error(
|
|
7477
7477
|
"Cannot call `" + e + "` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`."
|
|
7478
7478
|
);
|
|
7479
7479
|
}
|
|
7480
7480
|
function Uc(e) {
|
|
7481
|
-
if (!
|
|
7481
|
+
if (!Qs(e) || typeof e.type != "string")
|
|
7482
7482
|
throw new TypeError("Expected node, got `" + e + "`");
|
|
7483
7483
|
}
|
|
7484
7484
|
function zc(e, t, n) {
|
|
@@ -7563,9 +7563,9 @@ function CE(e, t) {
|
|
|
7563
7563
|
return i ? f.children.splice(d, 1) : f.children[d] = { type: "text", value: c.value }, d;
|
|
7564
7564
|
if (c.type === "element") {
|
|
7565
7565
|
let h;
|
|
7566
|
-
for (h in
|
|
7567
|
-
if (Object.hasOwn(
|
|
7568
|
-
const m = c.properties[h], g =
|
|
7566
|
+
for (h in Qi)
|
|
7567
|
+
if (Object.hasOwn(Qi, h) && Object.hasOwn(c.properties, h)) {
|
|
7568
|
+
const m = c.properties[h], g = Qi[h];
|
|
7569
7569
|
(g === null || g.includes(c.tagName)) && (c.properties[h] = o(String(m || ""), h, c));
|
|
7570
7570
|
}
|
|
7571
7571
|
}
|
|
@@ -7623,7 +7623,7 @@ function $h(e, t, n) {
|
|
|
7623
7623
|
AE(e, o.properties, d, f);
|
|
7624
7624
|
}
|
|
7625
7625
|
for (const u of s)
|
|
7626
|
-
|
|
7626
|
+
Js(o.children, u);
|
|
7627
7627
|
return o.type === "element" && o.tagName === "template" && (o.content = { type: "root", children: o.children }, o.children = []), o;
|
|
7628
7628
|
}
|
|
7629
7629
|
return l;
|
|
@@ -7674,14 +7674,14 @@ function AE(e, t, n, r) {
|
|
|
7674
7674
|
)), t[l.property] = a;
|
|
7675
7675
|
}
|
|
7676
7676
|
}
|
|
7677
|
-
function
|
|
7677
|
+
function Js(e, t) {
|
|
7678
7678
|
if (t != null) if (typeof t == "number" || typeof t == "string")
|
|
7679
7679
|
e.push({ type: "text", value: String(t) });
|
|
7680
7680
|
else if (Array.isArray(t))
|
|
7681
7681
|
for (const n of t)
|
|
7682
|
-
|
|
7682
|
+
Js(e, n);
|
|
7683
7683
|
else if (typeof t == "object" && "type" in t)
|
|
7684
|
-
t.type === "root" ?
|
|
7684
|
+
t.type === "root" ? Js(e, t.children) : e.push(t);
|
|
7685
7685
|
else
|
|
7686
7686
|
throw new Error("Expected node, nodes, or string, got `" + t + "`");
|
|
7687
7687
|
}
|
|
@@ -7796,7 +7796,7 @@ const Zn = {
|
|
|
7796
7796
|
}, qh = {}.hasOwnProperty, RE = Object.prototype;
|
|
7797
7797
|
function DE(e, t) {
|
|
7798
7798
|
const n = t || {};
|
|
7799
|
-
return
|
|
7799
|
+
return Yo(
|
|
7800
7800
|
{
|
|
7801
7801
|
file: n.file || void 0,
|
|
7802
7802
|
location: !1,
|
|
@@ -7806,7 +7806,7 @@ function DE(e, t) {
|
|
|
7806
7806
|
e
|
|
7807
7807
|
);
|
|
7808
7808
|
}
|
|
7809
|
-
function
|
|
7809
|
+
function Yo(e, t) {
|
|
7810
7810
|
let n;
|
|
7811
7811
|
switch (t.nodeName) {
|
|
7812
7812
|
case "#comment": {
|
|
@@ -7861,7 +7861,7 @@ function Wh(e, t) {
|
|
|
7861
7861
|
for (; ++n < t.length; ) {
|
|
7862
7862
|
const l = (
|
|
7863
7863
|
/** @type {RootContent} */
|
|
7864
|
-
|
|
7864
|
+
Yo(e, t[n])
|
|
7865
7865
|
);
|
|
7866
7866
|
r.push(l);
|
|
7867
7867
|
}
|
|
@@ -7883,7 +7883,7 @@ function LE(e, t) {
|
|
|
7883
7883
|
t
|
|
7884
7884
|
), o = s.sourceCodeLocation, u = o && o.startTag && Or(o.startTag), c = o && o.endTag && Or(o.endTag), d = (
|
|
7885
7885
|
/** @type {Root} */
|
|
7886
|
-
|
|
7886
|
+
Yo(e, s.content)
|
|
7887
7887
|
);
|
|
7888
7888
|
u && c && e.file && (d.position = { start: u.end, end: c.start }), i.content = d;
|
|
7889
7889
|
}
|
|
@@ -7956,11 +7956,11 @@ function UE(e, t) {
|
|
|
7956
7956
|
mode: (e.data || {}).quirksMode ? "quirks" : "no-quirks",
|
|
7957
7957
|
childNodes: []
|
|
7958
7958
|
};
|
|
7959
|
-
return n.childNodes =
|
|
7959
|
+
return n.childNodes = jo(e.children, n, t), Gr(e, n), n;
|
|
7960
7960
|
}
|
|
7961
7961
|
function zE(e, t) {
|
|
7962
7962
|
const n = { nodeName: "#document-fragment", childNodes: [] };
|
|
7963
|
-
return n.childNodes =
|
|
7963
|
+
return n.childNodes = jo(e.children, n, t), Gr(e, n), n;
|
|
7964
7964
|
}
|
|
7965
7965
|
function VE(e) {
|
|
7966
7966
|
const t = {
|
|
@@ -8014,7 +8014,7 @@ function WE(e, t) {
|
|
|
8014
8014
|
childNodes: [],
|
|
8015
8015
|
parentNode: null
|
|
8016
8016
|
};
|
|
8017
|
-
return s.childNodes =
|
|
8017
|
+
return s.childNodes = jo(e.children, s, r), Gr(e, s), e.tagName === "template" && e.content && (s.content = zE(e.content, r)), s;
|
|
8018
8018
|
}
|
|
8019
8019
|
function YE(e, t, n) {
|
|
8020
8020
|
const r = ui(e, t);
|
|
@@ -8031,7 +8031,7 @@ function YE(e, t, n) {
|
|
|
8031
8031
|
}
|
|
8032
8032
|
return l;
|
|
8033
8033
|
}
|
|
8034
|
-
function
|
|
8034
|
+
function jo(e, t, n) {
|
|
8035
8035
|
let r = -1;
|
|
8036
8036
|
const l = [];
|
|
8037
8037
|
if (e)
|
|
@@ -8280,14 +8280,14 @@ var In;
|
|
|
8280
8280
|
(function(e) {
|
|
8281
8281
|
e[e.VALUE_LENGTH = 49152] = "VALUE_LENGTH", e[e.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", e[e.JUMP_TABLE = 127] = "JUMP_TABLE";
|
|
8282
8282
|
})(In || (In = {}));
|
|
8283
|
-
function
|
|
8283
|
+
function Zs(e) {
|
|
8284
8284
|
return e >= Je.ZERO && e <= Je.NINE;
|
|
8285
8285
|
}
|
|
8286
8286
|
function r2(e) {
|
|
8287
8287
|
return e >= Je.UPPER_A && e <= Je.UPPER_F || e >= Je.LOWER_A && e <= Je.LOWER_F;
|
|
8288
8288
|
}
|
|
8289
8289
|
function l2(e) {
|
|
8290
|
-
return e >= Je.UPPER_A && e <= Je.UPPER_Z || e >= Je.LOWER_A && e <= Je.LOWER_Z ||
|
|
8290
|
+
return e >= Je.UPPER_A && e <= Je.UPPER_Z || e >= Je.LOWER_A && e <= Je.LOWER_Z || Zs(e);
|
|
8291
8291
|
}
|
|
8292
8292
|
function a2(e) {
|
|
8293
8293
|
return e === Je.EQUALS || l2(e);
|
|
@@ -8364,7 +8364,7 @@ class i2 {
|
|
|
8364
8364
|
const r = n;
|
|
8365
8365
|
for (; n < t.length; ) {
|
|
8366
8366
|
const l = t.charCodeAt(n);
|
|
8367
|
-
if (
|
|
8367
|
+
if (Zs(l) || r2(l))
|
|
8368
8368
|
n += 1;
|
|
8369
8369
|
else
|
|
8370
8370
|
return this.addToNumericResult(t, r, n, 16), this.emitNumericEntity(l, 3);
|
|
@@ -8384,7 +8384,7 @@ class i2 {
|
|
|
8384
8384
|
const r = n;
|
|
8385
8385
|
for (; n < t.length; ) {
|
|
8386
8386
|
const l = t.charCodeAt(n);
|
|
8387
|
-
if (
|
|
8387
|
+
if (Zs(l))
|
|
8388
8388
|
n += 1;
|
|
8389
8389
|
else
|
|
8390
8390
|
return this.addToNumericResult(t, r, n, 10), this.emitNumericEntity(l, 2);
|
|
@@ -8746,7 +8746,7 @@ const J = p, u2 = {
|
|
|
8746
8746
|
[K.XLINK]: /* @__PURE__ */ new Set(),
|
|
8747
8747
|
[K.XML]: /* @__PURE__ */ new Set(),
|
|
8748
8748
|
[K.XMLNS]: /* @__PURE__ */ new Set()
|
|
8749
|
-
},
|
|
8749
|
+
}, eo = /* @__PURE__ */ new Set([J.H1, J.H2, J.H3, J.H4, J.H5, J.H6]);
|
|
8750
8750
|
H.STYLE, H.SCRIPT, H.XMP, H.IFRAME, H.NOEMBED, H.NOFRAMES, H.PLAINTEXT;
|
|
8751
8751
|
var N;
|
|
8752
8752
|
(function(e) {
|
|
@@ -10754,7 +10754,7 @@ class E2 {
|
|
|
10754
10754
|
this.shortenToLength(Math.max(r, 0));
|
|
10755
10755
|
}
|
|
10756
10756
|
popUntilNumberedHeaderPopped() {
|
|
10757
|
-
this.popUntilPopped(
|
|
10757
|
+
this.popUntilPopped(eo, K.HTML);
|
|
10758
10758
|
}
|
|
10759
10759
|
popUntilTableCellPopped() {
|
|
10760
10760
|
this.popUntilPopped(y2, K.HTML);
|
|
@@ -10839,7 +10839,7 @@ class E2 {
|
|
|
10839
10839
|
const n = this.tagIDs[t];
|
|
10840
10840
|
switch (this.treeAdapter.getNamespaceURI(this.items[t])) {
|
|
10841
10841
|
case K.HTML: {
|
|
10842
|
-
if (
|
|
10842
|
+
if (eo.has(n))
|
|
10843
10843
|
return !0;
|
|
10844
10844
|
if (Va.has(n))
|
|
10845
10845
|
return !1;
|
|
@@ -10913,7 +10913,7 @@ class E2 {
|
|
|
10913
10913
|
this.pop();
|
|
10914
10914
|
}
|
|
10915
10915
|
}
|
|
10916
|
-
const
|
|
10916
|
+
const ss = 3;
|
|
10917
10917
|
var Zt;
|
|
10918
10918
|
(function(e) {
|
|
10919
10919
|
e[e.Marker = 0] = "Marker", e[e.Element = 1] = "Element";
|
|
@@ -10941,16 +10941,16 @@ class T2 {
|
|
|
10941
10941
|
return r;
|
|
10942
10942
|
}
|
|
10943
10943
|
_ensureNoahArkCondition(t) {
|
|
10944
|
-
if (this.entries.length <
|
|
10944
|
+
if (this.entries.length < ss)
|
|
10945
10945
|
return;
|
|
10946
10946
|
const n = this.treeAdapter.getAttrList(t), r = this._getNoahArkConditionCandidates(t, n);
|
|
10947
|
-
if (r.length <
|
|
10947
|
+
if (r.length < ss)
|
|
10948
10948
|
return;
|
|
10949
10949
|
const l = new Map(n.map((i) => [i.name, i.value]));
|
|
10950
10950
|
let a = 0;
|
|
10951
10951
|
for (let i = 0; i < r.length; i++) {
|
|
10952
10952
|
const s = r[i];
|
|
10953
|
-
s.attrs.every((o) => l.get(o.name) === o.value) && (a += 1, a >=
|
|
10953
|
+
s.attrs.every((o) => l.get(o.name) === o.value) && (a += 1, a >= ss && this.entries.splice(s.idx, 1));
|
|
10954
10954
|
}
|
|
10955
10955
|
}
|
|
10956
10956
|
//Mutations
|
|
@@ -11418,7 +11418,7 @@ function lp(e) {
|
|
|
11418
11418
|
n != null && (e.attrs[t].name = n);
|
|
11419
11419
|
}
|
|
11420
11420
|
}
|
|
11421
|
-
function
|
|
11421
|
+
function Go(e) {
|
|
11422
11422
|
for (let t = 0; t < e.attrs.length; t++) {
|
|
11423
11423
|
const n = M2.get(e.attrs[t].name);
|
|
11424
11424
|
n && (e.attrs[t].prefix = n.prefix, e.attrs[t].name = n.name, e.attrs[t].namespace = n.namespace);
|
|
@@ -11907,7 +11907,7 @@ class ld {
|
|
|
11907
11907
|
case M.IN_TABLE:
|
|
11908
11908
|
case M.IN_TABLE_BODY:
|
|
11909
11909
|
case M.IN_ROW: {
|
|
11910
|
-
|
|
11910
|
+
us(this, t);
|
|
11911
11911
|
break;
|
|
11912
11912
|
}
|
|
11913
11913
|
case M.IN_TABLE_TEXT: {
|
|
@@ -11966,7 +11966,7 @@ class ld {
|
|
|
11966
11966
|
case M.IN_TABLE:
|
|
11967
11967
|
case M.IN_TABLE_BODY:
|
|
11968
11968
|
case M.IN_ROW: {
|
|
11969
|
-
|
|
11969
|
+
us(this, t);
|
|
11970
11970
|
break;
|
|
11971
11971
|
}
|
|
11972
11972
|
case M.IN_COLUMN_GROUP: {
|
|
@@ -11986,7 +11986,7 @@ class ld {
|
|
|
11986
11986
|
/** @internal */
|
|
11987
11987
|
onComment(t) {
|
|
11988
11988
|
if (this.skipNextNewLine = !1, this.currentNotInHTML) {
|
|
11989
|
-
|
|
11989
|
+
to(this, t);
|
|
11990
11990
|
return;
|
|
11991
11991
|
}
|
|
11992
11992
|
switch (this.insertionMode) {
|
|
@@ -12008,7 +12008,7 @@ class ld {
|
|
|
12008
12008
|
case M.IN_TEMPLATE:
|
|
12009
12009
|
case M.IN_FRAMESET:
|
|
12010
12010
|
case M.AFTER_FRAMESET: {
|
|
12011
|
-
|
|
12011
|
+
to(this, t);
|
|
12012
12012
|
break;
|
|
12013
12013
|
}
|
|
12014
12014
|
case M.IN_TABLE_TEXT: {
|
|
@@ -12108,7 +12108,7 @@ class ld {
|
|
|
12108
12108
|
break;
|
|
12109
12109
|
}
|
|
12110
12110
|
case M.IN_COLUMN_GROUP: {
|
|
12111
|
-
|
|
12111
|
+
Xo(this, t);
|
|
12112
12112
|
break;
|
|
12113
12113
|
}
|
|
12114
12114
|
case M.IN_TABLE_BODY: {
|
|
@@ -12213,7 +12213,7 @@ class ld {
|
|
|
12213
12213
|
break;
|
|
12214
12214
|
}
|
|
12215
12215
|
case M.IN_TABLE_BODY: {
|
|
12216
|
-
|
|
12216
|
+
no(this, t);
|
|
12217
12217
|
break;
|
|
12218
12218
|
}
|
|
12219
12219
|
case M.IN_ROW: {
|
|
@@ -12310,7 +12310,7 @@ class ld {
|
|
|
12310
12310
|
case M.AFTER_FRAMESET:
|
|
12311
12311
|
case M.AFTER_AFTER_BODY:
|
|
12312
12312
|
case M.AFTER_AFTER_FRAMESET: {
|
|
12313
|
-
|
|
12313
|
+
Qo(this, t);
|
|
12314
12314
|
break;
|
|
12315
12315
|
}
|
|
12316
12316
|
}
|
|
@@ -12352,7 +12352,7 @@ class ld {
|
|
|
12352
12352
|
case M.IN_TABLE:
|
|
12353
12353
|
case M.IN_TABLE_BODY:
|
|
12354
12354
|
case M.IN_ROW: {
|
|
12355
|
-
|
|
12355
|
+
us(this, t);
|
|
12356
12356
|
break;
|
|
12357
12357
|
}
|
|
12358
12358
|
case M.IN_TABLE_TEXT: {
|
|
@@ -12402,7 +12402,7 @@ function K2(e, t, n) {
|
|
|
12402
12402
|
const r = e.treeAdapter.getNamespaceURI(n.element), { token: l } = n, a = e.treeAdapter.createElement(l.tagName, r, l.attrs);
|
|
12403
12403
|
e._adoptNodes(t, a), e.treeAdapter.appendChild(t, a), e.activeFormattingElements.insertElementAfterBookmark(a, l), e.activeFormattingElements.removeEntry(n), e.openElements.remove(n.element), e.openElements.insertAfter(t, a, l.tagID);
|
|
12404
12404
|
}
|
|
12405
|
-
function
|
|
12405
|
+
function Ko(e, t) {
|
|
12406
12406
|
for (let n = 0; n < z2; n++) {
|
|
12407
12407
|
const r = q2(e, t);
|
|
12408
12408
|
if (!r)
|
|
@@ -12415,7 +12415,7 @@ function Go(e, t) {
|
|
|
12415
12415
|
e.treeAdapter.detachNode(a), i && G2(e, i, a), K2(e, l, r);
|
|
12416
12416
|
}
|
|
12417
12417
|
}
|
|
12418
|
-
function
|
|
12418
|
+
function to(e, t) {
|
|
12419
12419
|
e._appendCommentNode(t, e.openElements.currentTmplContentOrNode);
|
|
12420
12420
|
}
|
|
12421
12421
|
function Q2(e, t) {
|
|
@@ -12424,7 +12424,7 @@ function Q2(e, t) {
|
|
|
12424
12424
|
function X2(e, t) {
|
|
12425
12425
|
e._appendCommentNode(t, e.document);
|
|
12426
12426
|
}
|
|
12427
|
-
function
|
|
12427
|
+
function Qo(e, t) {
|
|
12428
12428
|
if (e.stopped = !0, t.location) {
|
|
12429
12429
|
const n = e.fragmentContext ? 0 : 2;
|
|
12430
12430
|
for (let r = e.openElements.stackTop; r >= n; r--)
|
|
@@ -12653,7 +12653,7 @@ function mi(e, t) {
|
|
|
12653
12653
|
break;
|
|
12654
12654
|
}
|
|
12655
12655
|
case ke.COMMENT: {
|
|
12656
|
-
|
|
12656
|
+
to(e, t);
|
|
12657
12657
|
break;
|
|
12658
12658
|
}
|
|
12659
12659
|
case ke.START_TAG: {
|
|
@@ -12691,7 +12691,7 @@ function dT(e, t) {
|
|
|
12691
12691
|
e.openElements.hasInButtonScope(p.P) && e._closePElement(), e._insertElement(t, K.HTML);
|
|
12692
12692
|
}
|
|
12693
12693
|
function fT(e, t) {
|
|
12694
|
-
e.openElements.hasInButtonScope(p.P) && e._closePElement(), e.openElements.currentTagId !== void 0 &&
|
|
12694
|
+
e.openElements.hasInButtonScope(p.P) && e._closePElement(), e.openElements.currentTagId !== void 0 && eo.has(e.openElements.currentTagId) && e.openElements.pop(), e._insertElement(t, K.HTML);
|
|
12695
12695
|
}
|
|
12696
12696
|
function hT(e, t) {
|
|
12697
12697
|
e.openElements.hasInButtonScope(p.P) && e._closePElement(), e._insertElement(t, K.HTML), e.skipNextNewLine = !0, e.framesetOk = !1;
|
|
@@ -12722,13 +12722,13 @@ function gT(e, t) {
|
|
|
12722
12722
|
}
|
|
12723
12723
|
function vT(e, t) {
|
|
12724
12724
|
const n = e.activeFormattingElements.getElementEntryInScopeWithTagName(H.A);
|
|
12725
|
-
n && (
|
|
12725
|
+
n && (Ko(e, t), e.openElements.remove(n.element), e.activeFormattingElements.removeEntry(n)), e._reconstructActiveFormattingElements(), e._insertElement(t, K.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
|
|
12726
12726
|
}
|
|
12727
12727
|
function yT(e, t) {
|
|
12728
12728
|
e._reconstructActiveFormattingElements(), e._insertElement(t, K.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
|
|
12729
12729
|
}
|
|
12730
12730
|
function ET(e, t) {
|
|
12731
|
-
e._reconstructActiveFormattingElements(), e.openElements.hasInScope(p.NOBR) && (
|
|
12731
|
+
e._reconstructActiveFormattingElements(), e.openElements.hasInScope(p.NOBR) && (Ko(e, t), e._reconstructActiveFormattingElements()), e._insertElement(t, K.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
|
|
12732
12732
|
}
|
|
12733
12733
|
function TT(e, t) {
|
|
12734
12734
|
e._reconstructActiveFormattingElements(), e._insertElement(t, K.HTML), e.activeFormattingElements.insertMarker(), e.framesetOk = !1;
|
|
@@ -12780,10 +12780,10 @@ function RT(e, t) {
|
|
|
12780
12780
|
e.openElements.hasInScope(p.RUBY) && e.openElements.generateImpliedEndTagsWithExclusion(p.RTC), e._insertElement(t, K.HTML);
|
|
12781
12781
|
}
|
|
12782
12782
|
function DT(e, t) {
|
|
12783
|
-
e._reconstructActiveFormattingElements(), rp(t),
|
|
12783
|
+
e._reconstructActiveFormattingElements(), rp(t), Go(t), t.selfClosing ? e._appendElement(t, K.MATHML) : e._insertElement(t, K.MATHML), t.ackSelfClosing = !0;
|
|
12784
12784
|
}
|
|
12785
12785
|
function LT(e, t) {
|
|
12786
|
-
e._reconstructActiveFormattingElements(), lp(t),
|
|
12786
|
+
e._reconstructActiveFormattingElements(), lp(t), Go(t), t.selfClosing ? e._appendElement(t, K.SVG) : e._insertElement(t, K.SVG), t.ackSelfClosing = !0;
|
|
12787
12787
|
}
|
|
12788
12788
|
function id(e, t) {
|
|
12789
12789
|
e._reconstructActiveFormattingElements(), e._insertElement(t, K.HTML);
|
|
@@ -13063,7 +13063,7 @@ function bi(e, t) {
|
|
|
13063
13063
|
case p.SMALL:
|
|
13064
13064
|
case p.STRIKE:
|
|
13065
13065
|
case p.STRONG: {
|
|
13066
|
-
|
|
13066
|
+
Ko(e, t);
|
|
13067
13067
|
break;
|
|
13068
13068
|
}
|
|
13069
13069
|
case p.P: {
|
|
@@ -13149,7 +13149,7 @@ function bi(e, t) {
|
|
|
13149
13149
|
}
|
|
13150
13150
|
}
|
|
13151
13151
|
function dp(e, t) {
|
|
13152
|
-
e.tmplInsertionModeStack.length > 0 ? vp(e, t) :
|
|
13152
|
+
e.tmplInsertionModeStack.length > 0 ? vp(e, t) : Qo(e, t);
|
|
13153
13153
|
}
|
|
13154
13154
|
function YT(e, t) {
|
|
13155
13155
|
var n;
|
|
@@ -13158,7 +13158,7 @@ function YT(e, t) {
|
|
|
13158
13158
|
function jT(e, t) {
|
|
13159
13159
|
e._err(t, Y.eofInElementThatCanContainOnlyText), e.openElements.pop(), e.insertionMode = e.originalInsertionMode, e.onEof(t);
|
|
13160
13160
|
}
|
|
13161
|
-
function
|
|
13161
|
+
function us(e, t) {
|
|
13162
13162
|
if (e.openElements.currentTagId !== void 0 && ap.has(e.openElements.currentTagId))
|
|
13163
13163
|
switch (e.pendingCharacterTokens.length = 0, e.hasNonWhitespacePendingCharacterToken = !1, e.originalInsertionMode = e.insertionMode, e.insertionMode = M.IN_TABLE_TEXT, t.type) {
|
|
13164
13164
|
case ke.CHARACTER: {
|
|
@@ -13180,7 +13180,7 @@ function KT(e, t) {
|
|
|
13180
13180
|
e.openElements.clearBackToTableContext(), e._insertElement(t, K.HTML), e.insertionMode = M.IN_COLUMN_GROUP;
|
|
13181
13181
|
}
|
|
13182
13182
|
function QT(e, t) {
|
|
13183
|
-
e.openElements.clearBackToTableContext(), e._insertFakeElement(H.COLGROUP, p.COLGROUP), e.insertionMode = M.IN_COLUMN_GROUP,
|
|
13183
|
+
e.openElements.clearBackToTableContext(), e._insertFakeElement(H.COLGROUP, p.COLGROUP), e.insertionMode = M.IN_COLUMN_GROUP, Xo(e, t);
|
|
13184
13184
|
}
|
|
13185
13185
|
function XT(e, t) {
|
|
13186
13186
|
e.openElements.clearBackToTableContext(), e._insertElement(t, K.HTML), e.insertionMode = M.IN_TABLE_BODY;
|
|
@@ -13319,7 +13319,7 @@ function r3(e, t) {
|
|
|
13319
13319
|
bi(e, t);
|
|
13320
13320
|
}
|
|
13321
13321
|
}
|
|
13322
|
-
function
|
|
13322
|
+
function Xo(e, t) {
|
|
13323
13323
|
switch (t.tagID) {
|
|
13324
13324
|
case p.HTML: {
|
|
13325
13325
|
ft(e, t);
|
|
@@ -13380,7 +13380,7 @@ function gi(e, t) {
|
|
|
13380
13380
|
Hr(e, t);
|
|
13381
13381
|
}
|
|
13382
13382
|
}
|
|
13383
|
-
function
|
|
13383
|
+
function no(e, t) {
|
|
13384
13384
|
const n = t.tagID;
|
|
13385
13385
|
switch (t.tagID) {
|
|
13386
13386
|
case p.TBODY:
|
|
@@ -13434,13 +13434,13 @@ function mp(e, t) {
|
|
|
13434
13434
|
break;
|
|
13435
13435
|
}
|
|
13436
13436
|
case p.TABLE: {
|
|
13437
|
-
e.openElements.hasInTableScope(p.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = M.IN_TABLE_BODY,
|
|
13437
|
+
e.openElements.hasInTableScope(p.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = M.IN_TABLE_BODY, no(e, t));
|
|
13438
13438
|
break;
|
|
13439
13439
|
}
|
|
13440
13440
|
case p.TBODY:
|
|
13441
13441
|
case p.TFOOT:
|
|
13442
13442
|
case p.THEAD: {
|
|
13443
|
-
(e.openElements.hasInTableScope(t.tagID) || e.openElements.hasInTableScope(p.TR)) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = M.IN_TABLE_BODY,
|
|
13443
|
+
(e.openElements.hasInTableScope(t.tagID) || e.openElements.hasInTableScope(p.TR)) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = M.IN_TABLE_BODY, no(e, t));
|
|
13444
13444
|
break;
|
|
13445
13445
|
}
|
|
13446
13446
|
case p.BODY:
|
|
@@ -13571,7 +13571,7 @@ function u3(e, t) {
|
|
|
13571
13571
|
break;
|
|
13572
13572
|
}
|
|
13573
13573
|
case p.COL: {
|
|
13574
|
-
e.tmplInsertionModeStack[0] = M.IN_COLUMN_GROUP, e.insertionMode = M.IN_COLUMN_GROUP,
|
|
13574
|
+
e.tmplInsertionModeStack[0] = M.IN_COLUMN_GROUP, e.insertionMode = M.IN_COLUMN_GROUP, Xo(e, t);
|
|
13575
13575
|
break;
|
|
13576
13576
|
}
|
|
13577
13577
|
case p.TR: {
|
|
@@ -13591,7 +13591,7 @@ function c3(e, t) {
|
|
|
13591
13591
|
t.tagID === p.TEMPLATE && yr(e, t);
|
|
13592
13592
|
}
|
|
13593
13593
|
function vp(e, t) {
|
|
13594
|
-
e.openElements.tmplCount > 0 ? (e.openElements.popUntilTagNamePopped(p.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode(), e.onEof(t)) :
|
|
13594
|
+
e.openElements.tmplCount > 0 ? (e.openElements.popUntilTagNamePopped(p.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode(), e.onEof(t)) : Qo(e, t);
|
|
13595
13595
|
}
|
|
13596
13596
|
function d3(e, t) {
|
|
13597
13597
|
t.tagID === p.HTML ? ft(e, t) : qa(e, t);
|
|
@@ -13681,7 +13681,7 @@ function E3(e, t) {
|
|
|
13681
13681
|
Ep(e), e._startTagOutsideForeignContent(t);
|
|
13682
13682
|
else {
|
|
13683
13683
|
const n = e._getAdjustedCurrentElement(), r = e.treeAdapter.getNamespaceURI(n);
|
|
13684
|
-
r === K.MATHML ? rp(t) : r === K.SVG && (P2(t), lp(t)),
|
|
13684
|
+
r === K.MATHML ? rp(t) : r === K.SVG && (P2(t), lp(t)), Go(t), t.selfClosing ? e._appendElement(t, r) : e._insertElement(t, r), t.ackSelfClosing = !0;
|
|
13685
13685
|
}
|
|
13686
13686
|
}
|
|
13687
13687
|
function T3(e, t) {
|
|
@@ -14474,7 +14474,7 @@ const K3 = [
|
|
|
14474
14474
|
/* 7: Prohibited (numeric) */
|
|
14475
14475
|
"Numeric character references cannot be outside the permissible Unicode range"
|
|
14476
14476
|
];
|
|
14477
|
-
function
|
|
14477
|
+
function Jo(e, t) {
|
|
14478
14478
|
const n = t || {}, r = typeof n.additional == "string" ? n.additional.charCodeAt(0) : n.additional, l = [];
|
|
14479
14479
|
let a = 0, i = -1, s = "", o, u;
|
|
14480
14480
|
n.position && ("start" in n.position || "indent" in n.position ? (u = n.position.indent, o = n.position.start) : o = n.position);
|
|
@@ -14632,36 +14632,36 @@ function cC() {
|
|
|
14632
14632
|
canContainEols: ["textDirective"],
|
|
14633
14633
|
enter: {
|
|
14634
14634
|
directiveContainer: fC,
|
|
14635
|
-
directiveContainerAttributes:
|
|
14635
|
+
directiveContainerAttributes: ds,
|
|
14636
14636
|
directiveContainerLabel: mC,
|
|
14637
14637
|
directiveLeaf: hC,
|
|
14638
|
-
directiveLeafAttributes:
|
|
14638
|
+
directiveLeafAttributes: ds,
|
|
14639
14639
|
directiveText: pC,
|
|
14640
|
-
directiveTextAttributes:
|
|
14640
|
+
directiveTextAttributes: ds
|
|
14641
14641
|
},
|
|
14642
14642
|
exit: {
|
|
14643
|
-
directiveContainer:
|
|
14644
|
-
directiveContainerAttributeClassValue:
|
|
14645
|
-
directiveContainerAttributeIdValue:
|
|
14646
|
-
directiveContainerAttributeName:
|
|
14647
|
-
directiveContainerAttributeValue:
|
|
14648
|
-
directiveContainerAttributes:
|
|
14643
|
+
directiveContainer: gs,
|
|
14644
|
+
directiveContainerAttributeClassValue: hs,
|
|
14645
|
+
directiveContainerAttributeIdValue: fs,
|
|
14646
|
+
directiveContainerAttributeName: ms,
|
|
14647
|
+
directiveContainerAttributeValue: ps,
|
|
14648
|
+
directiveContainerAttributes: bs,
|
|
14649
14649
|
directiveContainerLabel: bC,
|
|
14650
|
-
directiveContainerName:
|
|
14651
|
-
directiveLeaf:
|
|
14652
|
-
directiveLeafAttributeClassValue:
|
|
14653
|
-
directiveLeafAttributeIdValue:
|
|
14654
|
-
directiveLeafAttributeName:
|
|
14655
|
-
directiveLeafAttributeValue:
|
|
14656
|
-
directiveLeafAttributes:
|
|
14657
|
-
directiveLeafName:
|
|
14658
|
-
directiveText:
|
|
14659
|
-
directiveTextAttributeClassValue:
|
|
14660
|
-
directiveTextAttributeIdValue:
|
|
14661
|
-
directiveTextAttributeName:
|
|
14662
|
-
directiveTextAttributeValue:
|
|
14663
|
-
directiveTextAttributes:
|
|
14664
|
-
directiveTextName:
|
|
14650
|
+
directiveContainerName: cs,
|
|
14651
|
+
directiveLeaf: gs,
|
|
14652
|
+
directiveLeafAttributeClassValue: hs,
|
|
14653
|
+
directiveLeafAttributeIdValue: fs,
|
|
14654
|
+
directiveLeafAttributeName: ms,
|
|
14655
|
+
directiveLeafAttributeValue: ps,
|
|
14656
|
+
directiveLeafAttributes: bs,
|
|
14657
|
+
directiveLeafName: cs,
|
|
14658
|
+
directiveText: gs,
|
|
14659
|
+
directiveTextAttributeClassValue: hs,
|
|
14660
|
+
directiveTextAttributeIdValue: fs,
|
|
14661
|
+
directiveTextAttributeName: ms,
|
|
14662
|
+
directiveTextAttributeValue: ps,
|
|
14663
|
+
directiveTextAttributes: bs,
|
|
14664
|
+
directiveTextName: cs
|
|
14665
14665
|
}
|
|
14666
14666
|
};
|
|
14667
14667
|
}
|
|
@@ -14752,18 +14752,18 @@ function dC(e) {
|
|
|
14752
14752
|
}
|
|
14753
14753
|
}
|
|
14754
14754
|
function fC(e) {
|
|
14755
|
-
|
|
14755
|
+
Zo.call(this, "containerDirective", e);
|
|
14756
14756
|
}
|
|
14757
14757
|
function hC(e) {
|
|
14758
|
-
|
|
14758
|
+
Zo.call(this, "leafDirective", e);
|
|
14759
14759
|
}
|
|
14760
14760
|
function pC(e) {
|
|
14761
|
-
|
|
14761
|
+
Zo.call(this, "textDirective", e);
|
|
14762
14762
|
}
|
|
14763
|
-
function
|
|
14763
|
+
function Zo(e, t) {
|
|
14764
14764
|
this.enter({ type: e, name: "", attributes: {}, children: [] }, t);
|
|
14765
14765
|
}
|
|
14766
|
-
function
|
|
14766
|
+
function cs(e) {
|
|
14767
14767
|
const t = this.stack[this.stack.length - 1];
|
|
14768
14768
|
t.type === "containerDirective" || t.type === "leafDirective" || t.type, t.name = this.sliceSerialize(e);
|
|
14769
14769
|
}
|
|
@@ -14776,31 +14776,31 @@ function mC(e) {
|
|
|
14776
14776
|
function bC(e) {
|
|
14777
14777
|
this.exit(e);
|
|
14778
14778
|
}
|
|
14779
|
-
function
|
|
14779
|
+
function ds() {
|
|
14780
14780
|
this.data.directiveAttributes = [], this.buffer();
|
|
14781
14781
|
}
|
|
14782
|
-
function
|
|
14782
|
+
function fs(e) {
|
|
14783
14783
|
this.data.directiveAttributes.push([
|
|
14784
14784
|
"id",
|
|
14785
|
-
|
|
14785
|
+
Jo(this.sliceSerialize(e), { attribute: !0 })
|
|
14786
14786
|
]);
|
|
14787
14787
|
}
|
|
14788
|
-
function
|
|
14788
|
+
function hs(e) {
|
|
14789
14789
|
this.data.directiveAttributes.push([
|
|
14790
14790
|
"class",
|
|
14791
|
-
|
|
14791
|
+
Jo(this.sliceSerialize(e), { attribute: !0 })
|
|
14792
14792
|
]);
|
|
14793
14793
|
}
|
|
14794
|
-
function
|
|
14794
|
+
function ps(e) {
|
|
14795
14795
|
const t = this.data.directiveAttributes;
|
|
14796
|
-
t[t.length - 1][1] =
|
|
14796
|
+
t[t.length - 1][1] = Jo(this.sliceSerialize(e), {
|
|
14797
14797
|
attribute: !0
|
|
14798
14798
|
});
|
|
14799
14799
|
}
|
|
14800
|
-
function
|
|
14800
|
+
function ms(e) {
|
|
14801
14801
|
this.data.directiveAttributes.push([this.sliceSerialize(e), ""]);
|
|
14802
14802
|
}
|
|
14803
|
-
function
|
|
14803
|
+
function bs() {
|
|
14804
14804
|
const e = this.data.directiveAttributes, t = {};
|
|
14805
14805
|
let n = -1;
|
|
14806
14806
|
for (; ++n < e.length; ) {
|
|
@@ -14811,7 +14811,7 @@ function ms() {
|
|
|
14811
14811
|
const r = this.stack[this.stack.length - 1];
|
|
14812
14812
|
r.type === "containerDirective" || r.type === "leafDirective" || r.type, r.attributes = t;
|
|
14813
14813
|
}
|
|
14814
|
-
function
|
|
14814
|
+
function gs(e) {
|
|
14815
14815
|
this.exit(e);
|
|
14816
14816
|
}
|
|
14817
14817
|
function gC() {
|
|
@@ -14831,7 +14831,7 @@ function vC(e) {
|
|
|
14831
14831
|
}
|
|
14832
14832
|
}), t += 3) : e.type === "leafDirective" ? t = 2 : t = 1, ":".repeat(t);
|
|
14833
14833
|
}
|
|
14834
|
-
function
|
|
14834
|
+
function eu(e, t, n, r, l, a, i, s, o, u, c, d, f, h, m) {
|
|
14835
14835
|
let g, b;
|
|
14836
14836
|
return E;
|
|
14837
14837
|
function E(y) {
|
|
@@ -14896,7 +14896,7 @@ function Zo(e, t, n, r, l, a, i, s, o, u, c, d, f, h, m) {
|
|
|
14896
14896
|
return y === 125 ? (e.enter(l), e.consume(y), e.exit(l), e.exit(r), t) : n(y);
|
|
14897
14897
|
}
|
|
14898
14898
|
}
|
|
14899
|
-
function
|
|
14899
|
+
function tu(e, t, n, r, l, a, i) {
|
|
14900
14900
|
let s = 0, o = 0, u;
|
|
14901
14901
|
return c;
|
|
14902
14902
|
function c(b) {
|
|
@@ -14925,7 +14925,7 @@ function eu(e, t, n, r, l, a, i) {
|
|
|
14925
14925
|
return e.exit(a), e.enter(l), e.consume(b), e.exit(l), e.exit(r), t;
|
|
14926
14926
|
}
|
|
14927
14927
|
}
|
|
14928
|
-
function
|
|
14928
|
+
function nu(e, t, n, r) {
|
|
14929
14929
|
const l = this;
|
|
14930
14930
|
return a;
|
|
14931
14931
|
function a(s) {
|
|
@@ -14956,7 +14956,7 @@ function CC(e, t, n) {
|
|
|
14956
14956
|
return e.enter("directiveContainer"), e.enter("directiveContainerFence"), e.enter("directiveContainerSequence"), u(k);
|
|
14957
14957
|
}
|
|
14958
14958
|
function u(k) {
|
|
14959
|
-
return k === 58 ? (e.consume(k), i++, u) : i < 3 ? n(k) : (e.exit("directiveContainerSequence"),
|
|
14959
|
+
return k === 58 ? (e.consume(k), i++, u) : i < 3 ? n(k) : (e.exit("directiveContainerSequence"), nu.call(r, e, c, n, "directiveContainerName")(k));
|
|
14960
14960
|
}
|
|
14961
14961
|
function c(k) {
|
|
14962
14962
|
return k === 91 ? e.attempt(EC, d, d)(k) : d(k);
|
|
@@ -15029,10 +15029,10 @@ function CC(e, t, n) {
|
|
|
15029
15029
|
}
|
|
15030
15030
|
}
|
|
15031
15031
|
function xC(e, t, n) {
|
|
15032
|
-
return
|
|
15032
|
+
return tu(e, t, n, "directiveContainerLabel", "directiveContainerLabelMarker", "directiveContainerLabelString", !0);
|
|
15033
15033
|
}
|
|
15034
15034
|
function SC(e, t, n) {
|
|
15035
|
-
return
|
|
15035
|
+
return eu(e, t, n, "directiveContainerAttributes", "directiveContainerAttributesMarker", "directiveContainerAttribute", "directiveContainerAttributeId", "directiveContainerAttributeClass", "directiveContainerAttributeName", "directiveContainerAttributeInitializerMarker", "directiveContainerAttributeValueLiteral", "directiveContainerAttributeValue", "directiveContainerAttributeValueMarker", "directiveContainerAttributeValueData", !0);
|
|
15036
15036
|
}
|
|
15037
15037
|
function kC(e, t, n) {
|
|
15038
15038
|
const r = this;
|
|
@@ -15060,7 +15060,7 @@ function _C(e, t, n) {
|
|
|
15060
15060
|
return e.enter("directiveLeaf"), e.enter("directiveLeafSequence"), e.consume(c), a;
|
|
15061
15061
|
}
|
|
15062
15062
|
function a(c) {
|
|
15063
|
-
return c === 58 ? (e.consume(c), e.exit("directiveLeafSequence"),
|
|
15063
|
+
return c === 58 ? (e.consume(c), e.exit("directiveLeafSequence"), nu.call(r, e, i, n, "directiveLeafName")) : n(c);
|
|
15064
15064
|
}
|
|
15065
15065
|
function i(c) {
|
|
15066
15066
|
return c === 91 ? e.attempt(NC, s, s)(c) : s(c);
|
|
@@ -15076,10 +15076,10 @@ function _C(e, t, n) {
|
|
|
15076
15076
|
}
|
|
15077
15077
|
}
|
|
15078
15078
|
function IC(e, t, n) {
|
|
15079
|
-
return
|
|
15079
|
+
return tu(e, t, n, "directiveLeafLabel", "directiveLeafLabelMarker", "directiveLeafLabelString", !0);
|
|
15080
15080
|
}
|
|
15081
15081
|
function OC(e, t, n) {
|
|
15082
|
-
return
|
|
15082
|
+
return eu(e, t, n, "directiveLeafAttributes", "directiveLeafAttributesMarker", "directiveLeafAttribute", "directiveLeafAttributeId", "directiveLeafAttributeClass", "directiveLeafAttributeName", "directiveLeafAttributeInitializerMarker", "directiveLeafAttributeValueLiteral", "directiveLeafAttributeValue", "directiveLeafAttributeValueMarker", "directiveLeafAttributeValueData", !0);
|
|
15083
15083
|
}
|
|
15084
15084
|
const MC = {
|
|
15085
15085
|
tokenize: PC,
|
|
@@ -15098,7 +15098,7 @@ function PC(e, t, n) {
|
|
|
15098
15098
|
const r = this;
|
|
15099
15099
|
return l;
|
|
15100
15100
|
function l(o) {
|
|
15101
|
-
return e.enter("directiveText"), e.enter("directiveTextMarker"), e.consume(o), e.exit("directiveTextMarker"),
|
|
15101
|
+
return e.enter("directiveText"), e.enter("directiveTextMarker"), e.consume(o), e.exit("directiveTextMarker"), nu.call(r, e, a, n, "directiveTextName");
|
|
15102
15102
|
}
|
|
15103
15103
|
function a(o) {
|
|
15104
15104
|
return o === 58 ? n(o) : o === 91 ? e.attempt(RC, i, i)(o) : i(o);
|
|
@@ -15111,10 +15111,10 @@ function PC(e, t, n) {
|
|
|
15111
15111
|
}
|
|
15112
15112
|
}
|
|
15113
15113
|
function BC(e, t, n) {
|
|
15114
|
-
return
|
|
15114
|
+
return tu(e, t, n, "directiveTextLabel", "directiveTextLabelMarker", "directiveTextLabelString");
|
|
15115
15115
|
}
|
|
15116
15116
|
function FC(e, t, n) {
|
|
15117
|
-
return
|
|
15117
|
+
return eu(e, t, n, "directiveTextAttributes", "directiveTextAttributesMarker", "directiveTextAttribute", "directiveTextAttributeId", "directiveTextAttributeClass", "directiveTextAttributeName", "directiveTextAttributeInitializerMarker", "directiveTextAttributeValueLiteral", "directiveTextAttributeValue", "directiveTextAttributeValueMarker", "directiveTextAttributeValueData");
|
|
15118
15118
|
}
|
|
15119
15119
|
function HC() {
|
|
15120
15120
|
return {
|
|
@@ -15206,7 +15206,7 @@ const zC = {
|
|
|
15206
15206
|
components: YC,
|
|
15207
15207
|
children: $C(e)
|
|
15208
15208
|
}
|
|
15209
|
-
), _p =
|
|
15209
|
+
), _p = _o(null), Xr = () => Zf(_p), KC = (e) => document.body ?? e ?? document.documentElement, QC = ({
|
|
15210
15210
|
data: e,
|
|
15211
15211
|
initialPlatformIndex: t = 0,
|
|
15212
15212
|
initialStepIndex: n = 0,
|
|
@@ -15618,7 +15618,7 @@ const ga = {
|
|
|
15618
15618
|
adjustX: !0,
|
|
15619
15619
|
adjustY: !0,
|
|
15620
15620
|
shiftY: !1
|
|
15621
|
-
},
|
|
15621
|
+
}, yi = () => document.body, ru = {
|
|
15622
15622
|
bottomLeft: {
|
|
15623
15623
|
points: ["tl", "bl"],
|
|
15624
15624
|
offset: [0, 4],
|
|
@@ -15713,7 +15713,7 @@ const ga = {
|
|
|
15713
15713
|
popupMatchSelectWidth: !1,
|
|
15714
15714
|
placement: "bottomLeft",
|
|
15715
15715
|
builtinPlacements: ru,
|
|
15716
|
-
getPopupContainer:
|
|
15716
|
+
getPopupContainer: yi,
|
|
15717
15717
|
suffixIcon: /* @__PURE__ */ v(
|
|
15718
15718
|
"i",
|
|
15719
15719
|
{
|
|
@@ -15842,7 +15842,7 @@ const Dp = ge.memo(
|
|
|
15842
15842
|
popupMatchSelectWidth: !1,
|
|
15843
15843
|
placement: "bottomLeft",
|
|
15844
15844
|
builtinPlacements: ru,
|
|
15845
|
-
getPopupContainer:
|
|
15845
|
+
getPopupContainer: yi,
|
|
15846
15846
|
notFoundContent: /* @__PURE__ */ v("span", { style: { color: "#999", fontSize: 13 }, children: "暂无数据" }),
|
|
15847
15847
|
suffixIcon: /* @__PURE__ */ v(
|
|
15848
15848
|
"i",
|
|
@@ -16240,7 +16240,7 @@ function Pp() {
|
|
|
16240
16240
|
}(Ra)), Ra.exports;
|
|
16241
16241
|
}
|
|
16242
16242
|
var ax = Pp();
|
|
16243
|
-
const Wa = /* @__PURE__ */
|
|
16243
|
+
const Wa = /* @__PURE__ */ Lo(ax);
|
|
16244
16244
|
var Da = { exports: {} }, ix = Da.exports, Td;
|
|
16245
16245
|
function sx() {
|
|
16246
16246
|
return Td || (Td = 1, function(e, t) {
|
|
@@ -22180,7 +22180,7 @@ const cx = [
|
|
|
22180
22180
|
}
|
|
22181
22181
|
]
|
|
22182
22182
|
}
|
|
22183
|
-
],
|
|
22183
|
+
], vs = (e) => e ? e.split("-") : [], dx = (e, t) => {
|
|
22184
22184
|
const n = [];
|
|
22185
22185
|
let r = e;
|
|
22186
22186
|
for (const l of t) {
|
|
@@ -22191,9 +22191,9 @@ const cx = [
|
|
|
22191
22191
|
return n;
|
|
22192
22192
|
}, Fp = ge.memo(
|
|
22193
22193
|
({ node: e, value: t, onChange: n, disabled: r, error: l }) => {
|
|
22194
|
-
const a = e.cascaderOptions && e.cascaderOptions.length > 0 ? e.cascaderOptions : cx, i = e.placeholder || "请选择省市区", s = t ?? e.defaultValue, [o, u] = Q(() =>
|
|
22194
|
+
const a = e.cascaderOptions && e.cascaderOptions.length > 0 ? e.cascaderOptions : cx, i = e.placeholder || "请选择省市区", s = t ?? e.defaultValue, [o, u] = Q(() => vs(s)), [c, d] = Q(0), [f, h] = Q(100), m = ee(null);
|
|
22195
22195
|
me(() => {
|
|
22196
|
-
u(
|
|
22196
|
+
u(vs(s));
|
|
22197
22197
|
}, [s]);
|
|
22198
22198
|
const g = o.length >= 2, b = V(
|
|
22199
22199
|
(I) => {
|
|
@@ -22211,7 +22211,7 @@ const cx = [
|
|
|
22211
22211
|
[b]
|
|
22212
22212
|
), A = V(
|
|
22213
22213
|
(I) => {
|
|
22214
|
-
I || (u(
|
|
22214
|
+
I || (u(vs(s)), d((C) => C + 1));
|
|
22215
22215
|
},
|
|
22216
22216
|
[s]
|
|
22217
22217
|
), S = V(() => {
|
|
@@ -22280,7 +22280,7 @@ const cx = [
|
|
|
22280
22280
|
popupClassName: "rte-cascader-dropdown",
|
|
22281
22281
|
placement: "bottomLeft",
|
|
22282
22282
|
builtinPlacements: ru,
|
|
22283
|
-
getPopupContainer:
|
|
22283
|
+
getPopupContainer: yi,
|
|
22284
22284
|
displayRender: (I) => I.join("-"),
|
|
22285
22285
|
style: { width: "100%" },
|
|
22286
22286
|
suffixIcon: /* @__PURE__ */ v(
|
|
@@ -22310,7 +22310,7 @@ const Hp = ge.memo(
|
|
|
22310
22310
|
className: `rte-textarea-wrapper ${l ? "rte-textarea-error" : ""}`,
|
|
22311
22311
|
"data-key": e.key,
|
|
22312
22312
|
children: /* @__PURE__ */ v(
|
|
22313
|
-
|
|
22313
|
+
Mo.TextArea,
|
|
22314
22314
|
{
|
|
22315
22315
|
className: "rte-textarea",
|
|
22316
22316
|
"data-type": "textarea",
|
|
@@ -22982,7 +22982,7 @@ const vx = /\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i, yx = (e) => vx.test(e), Ex
|
|
|
22982
22982
|
] });
|
|
22983
22983
|
if (E)
|
|
22984
22984
|
return $ ? /* @__PURE__ */ v(
|
|
22985
|
-
|
|
22985
|
+
Ro,
|
|
22986
22986
|
{
|
|
22987
22987
|
...m ? { getPopupContainer: () => m } : {},
|
|
22988
22988
|
title: /* @__PURE__ */ v("div", { className: "se-upload-preview", children: /* @__PURE__ */ v("img", { className: "se-upload-preview-img", src: A, alt: "preview" }) }),
|
|
@@ -23388,7 +23388,7 @@ const Sd = 2 * Math.PI * 6.5, Wp = "data:image/svg+xml,%3Csvg xmlns='http://www.
|
|
|
23388
23388
|
borderRadius: 8,
|
|
23389
23389
|
boxShadow: "0 2px 12px 0 rgba(153, 153, 153, 0.25)"
|
|
23390
23390
|
}, Gp = ({ videoUrl: e, children: t }) => /* @__PURE__ */ v(
|
|
23391
|
-
|
|
23391
|
+
Ro,
|
|
23392
23392
|
{
|
|
23393
23393
|
title: /* @__PURE__ */ v("div", { className: "rte-video-preview", children: /* @__PURE__ */ v("video", { src: e, autoPlay: !0, loop: !0, muted: !0, playsInline: !0 }) }),
|
|
23394
23394
|
placement: "top",
|
|
@@ -24783,9 +24783,9 @@ class X {
|
|
|
24783
24783
|
}
|
|
24784
24784
|
}
|
|
24785
24785
|
X.empty = new X([], 0);
|
|
24786
|
-
const
|
|
24786
|
+
const ys = { index: 0, offset: 0 };
|
|
24787
24787
|
function va(e, t) {
|
|
24788
|
-
return
|
|
24788
|
+
return ys.index = e, ys.offset = t, ys;
|
|
24789
24789
|
}
|
|
24790
24790
|
function Ya(e, t) {
|
|
24791
24791
|
if (e === t)
|
|
@@ -24811,7 +24811,7 @@ function Ya(e, t) {
|
|
|
24811
24811
|
}
|
|
24812
24812
|
return !0;
|
|
24813
24813
|
}
|
|
24814
|
-
let Fe = class
|
|
24814
|
+
let Fe = class ro {
|
|
24815
24815
|
/**
|
|
24816
24816
|
@internal
|
|
24817
24817
|
*/
|
|
@@ -24909,8 +24909,8 @@ let Fe = class no {
|
|
|
24909
24909
|
*/
|
|
24910
24910
|
static setFrom(t) {
|
|
24911
24911
|
if (!t || Array.isArray(t) && t.length == 0)
|
|
24912
|
-
return
|
|
24913
|
-
if (t instanceof
|
|
24912
|
+
return ro.none;
|
|
24913
|
+
if (t instanceof ro)
|
|
24914
24914
|
return [t];
|
|
24915
24915
|
let n = t.slice();
|
|
24916
24916
|
return n.sort((r, l) => r.type.rank - l.type.rank), n;
|
|
@@ -25044,7 +25044,7 @@ function im(e, t) {
|
|
|
25044
25044
|
if (!t.type.compatibleContent(e.type))
|
|
25045
25045
|
throw new ja("Cannot join " + t.type.name + " onto " + e.type.name);
|
|
25046
25046
|
}
|
|
25047
|
-
function
|
|
25047
|
+
function lo(e, t, n) {
|
|
25048
25048
|
let r = e.node(n);
|
|
25049
25049
|
return im(r, t.node(n)), r;
|
|
25050
25050
|
}
|
|
@@ -25063,13 +25063,13 @@ function sr(e, t) {
|
|
|
25063
25063
|
return e.type.checkContent(t), e.copy(t);
|
|
25064
25064
|
}
|
|
25065
25065
|
function sm(e, t, n, r, l) {
|
|
25066
|
-
let a = e.depth > l &&
|
|
25066
|
+
let a = e.depth > l && lo(e, t, l + 1), i = r.depth > l && lo(n, r, l + 1), s = [];
|
|
25067
25067
|
return Cl(null, e, l, s), a && i && t.index(l) == n.index(l) ? (im(a, i), ir(sr(a, sm(e, t, n, r, l + 1)), s)) : (a && ir(sr(a, Ga(e, t, l + 1)), s), Cl(t, n, l, s), i && ir(sr(i, Ga(n, r, l + 1)), s)), Cl(r, null, l, s), new X(s);
|
|
25068
25068
|
}
|
|
25069
25069
|
function Ga(e, t, n) {
|
|
25070
25070
|
let r = [];
|
|
25071
25071
|
if (Cl(null, e, n, r), e.depth > n) {
|
|
25072
|
-
let l =
|
|
25072
|
+
let l = lo(e, t, n + 1);
|
|
25073
25073
|
ir(sr(l, Ga(e, t, n + 1)), r);
|
|
25074
25074
|
}
|
|
25075
25075
|
return Cl(t, null, n, r), new X(r);
|
|
@@ -25377,7 +25377,7 @@ class Ka {
|
|
|
25377
25377
|
}
|
|
25378
25378
|
}
|
|
25379
25379
|
const Zx = /* @__PURE__ */ Object.create(null);
|
|
25380
|
-
let Dn = class
|
|
25380
|
+
let Dn = class ao {
|
|
25381
25381
|
/**
|
|
25382
25382
|
@internal
|
|
25383
25383
|
*/
|
|
@@ -25503,14 +25503,14 @@ let Dn = class lo {
|
|
|
25503
25503
|
the given content (or empty, if no content is given).
|
|
25504
25504
|
*/
|
|
25505
25505
|
copy(t = null) {
|
|
25506
|
-
return t == this.content ? this : new
|
|
25506
|
+
return t == this.content ? this : new ao(this.type, this.attrs, t, this.marks);
|
|
25507
25507
|
}
|
|
25508
25508
|
/**
|
|
25509
25509
|
Create a copy of this node, with the given set of marks instead
|
|
25510
25510
|
of the node's own marks.
|
|
25511
25511
|
*/
|
|
25512
25512
|
mark(t) {
|
|
25513
|
-
return t == this.marks ? this : new
|
|
25513
|
+
return t == this.marks ? this : new ao(this.type, this.attrs, this.content, t);
|
|
25514
25514
|
}
|
|
25515
25515
|
/**
|
|
25516
25516
|
Create a copy of this node with only the content between the
|
|
@@ -26370,7 +26370,7 @@ class cS {
|
|
|
26370
26370
|
return !this.hasDefault;
|
|
26371
26371
|
}
|
|
26372
26372
|
}
|
|
26373
|
-
class
|
|
26373
|
+
class Ei {
|
|
26374
26374
|
/**
|
|
26375
26375
|
@internal
|
|
26376
26376
|
*/
|
|
@@ -26392,7 +26392,7 @@ class yi {
|
|
|
26392
26392
|
*/
|
|
26393
26393
|
static compile(t, n) {
|
|
26394
26394
|
let r = /* @__PURE__ */ Object.create(null), l = 0;
|
|
26395
|
-
return t.forEach((a, i) => r[a] = new
|
|
26395
|
+
return t.forEach((a, i) => r[a] = new Ei(a, l++, n, i)), r;
|
|
26396
26396
|
}
|
|
26397
26397
|
/**
|
|
26398
26398
|
When there is a mark of this type in the given set, a new set
|
|
@@ -26434,7 +26434,7 @@ class bm {
|
|
|
26434
26434
|
let n = this.spec = {};
|
|
26435
26435
|
for (let l in t)
|
|
26436
26436
|
n[l] = t[l];
|
|
26437
|
-
n.nodes = rt.from(t.nodes), n.marks = rt.from(t.marks || {}), this.nodes = _d.compile(this.spec.nodes, this), this.marks =
|
|
26437
|
+
n.nodes = rt.from(t.nodes), n.marks = rt.from(t.marks || {}), this.nodes = _d.compile(this.spec.nodes, this), this.marks = Ei.compile(this.spec.marks, this);
|
|
26438
26438
|
let r = /* @__PURE__ */ Object.create(null);
|
|
26439
26439
|
for (let l in this.nodes) {
|
|
26440
26440
|
if (l in this.marks)
|
|
@@ -26516,7 +26516,7 @@ function dS(e) {
|
|
|
26516
26516
|
function fS(e) {
|
|
26517
26517
|
return e.style != null;
|
|
26518
26518
|
}
|
|
26519
|
-
let xl = class
|
|
26519
|
+
let xl = class io {
|
|
26520
26520
|
/**
|
|
26521
26521
|
Create a parser that targets the given schema, using the given
|
|
26522
26522
|
parsing rules.
|
|
@@ -26628,7 +26628,7 @@ let xl = class ao {
|
|
|
26628
26628
|
[priority](https://prosemirror.net/docs/ref/#model.GenericParseRule.priority).
|
|
26629
26629
|
*/
|
|
26630
26630
|
static fromSchema(t) {
|
|
26631
|
-
return t.cached.domParser || (t.cached.domParser = new
|
|
26631
|
+
return t.cached.domParser || (t.cached.domParser = new io(t, io.schemaRules(t)));
|
|
26632
26632
|
}
|
|
26633
26633
|
};
|
|
26634
26634
|
const gm = {
|
|
@@ -26671,9 +26671,9 @@ const gm = {
|
|
|
26671
26671
|
script: !0,
|
|
26672
26672
|
style: !0,
|
|
26673
26673
|
title: !0
|
|
26674
|
-
}, vm = { ol: !0, ul: !0 }, Pl = 1,
|
|
26674
|
+
}, vm = { ol: !0, ul: !0 }, Pl = 1, so = 2, Sl = 4;
|
|
26675
26675
|
function Od(e, t, n) {
|
|
26676
|
-
return t != null ? (t ? Pl : 0) | (t === "full" ?
|
|
26676
|
+
return t != null ? (t ? Pl : 0) | (t === "full" ? so : 0) : e && e.whitespace == "pre" ? Pl | so : n & ~Sl;
|
|
26677
26677
|
}
|
|
26678
26678
|
class ya {
|
|
26679
26679
|
constructor(t, n, r, l, a, i) {
|
|
@@ -26724,7 +26724,7 @@ class Md {
|
|
|
26724
26724
|
t.nodeType == 3 ? this.addTextNode(t, n) : t.nodeType == 1 && this.addElement(t, n);
|
|
26725
26725
|
}
|
|
26726
26726
|
addTextNode(t, n) {
|
|
26727
|
-
let r = t.nodeValue, l = this.top, a = l.options &
|
|
26727
|
+
let r = t.nodeValue, l = this.top, a = l.options & so ? "full" : this.localPreserveWS || (l.options & Pl) > 0, { schema: i } = this.parser;
|
|
26728
26728
|
if (a === "full" || l.inlineContext(t) || /[^ \t\r\n\u000c]/.test(r)) {
|
|
26729
26729
|
if (a)
|
|
26730
26730
|
if (a === "full")
|
|
@@ -27212,7 +27212,7 @@ function yS(e) {
|
|
|
27212
27212
|
return (e - (e & ym)) / Em;
|
|
27213
27213
|
}
|
|
27214
27214
|
const Tm = 1, Cm = 2, Ba = 4, xm = 8;
|
|
27215
|
-
class
|
|
27215
|
+
class oo {
|
|
27216
27216
|
/**
|
|
27217
27217
|
@internal
|
|
27218
27218
|
*/
|
|
@@ -27289,11 +27289,11 @@ class Dt {
|
|
|
27289
27289
|
if (r)
|
|
27290
27290
|
return h;
|
|
27291
27291
|
let m = t == (n < 0 ? o : d) ? null : vS(s / 3, t - o), g = t == o ? Cm : t == d ? Tm : Ba;
|
|
27292
|
-
return (n < 0 ? t != o : t != d) && (g |= xm), new
|
|
27292
|
+
return (n < 0 ? t != o : t != d) && (g |= xm), new oo(h, g, m);
|
|
27293
27293
|
}
|
|
27294
27294
|
l += c - u;
|
|
27295
27295
|
}
|
|
27296
|
-
return r ? t + l : new
|
|
27296
|
+
return r ? t + l : new oo(t + l, 0, null);
|
|
27297
27297
|
}
|
|
27298
27298
|
/**
|
|
27299
27299
|
@internal
|
|
@@ -27449,10 +27449,10 @@ class Bl {
|
|
|
27449
27449
|
}
|
|
27450
27450
|
l |= s.delInfo, t = s.pos;
|
|
27451
27451
|
}
|
|
27452
|
-
return r ? t : new
|
|
27452
|
+
return r ? t : new oo(t, l, null);
|
|
27453
27453
|
}
|
|
27454
27454
|
}
|
|
27455
|
-
const
|
|
27455
|
+
const Es = /* @__PURE__ */ Object.create(null);
|
|
27456
27456
|
class ht {
|
|
27457
27457
|
/**
|
|
27458
27458
|
Get the step map that represents the changes made by this step,
|
|
@@ -27477,7 +27477,7 @@ class ht {
|
|
|
27477
27477
|
static fromJSON(t, n) {
|
|
27478
27478
|
if (!n || !n.stepType)
|
|
27479
27479
|
throw new RangeError("Invalid input for Step.fromJSON");
|
|
27480
|
-
let r =
|
|
27480
|
+
let r = Es[n.stepType];
|
|
27481
27481
|
if (!r)
|
|
27482
27482
|
throw new RangeError(`No step type ${n.stepType} defined`);
|
|
27483
27483
|
return r.fromJSON(t, n);
|
|
@@ -27489,9 +27489,9 @@ class ht {
|
|
|
27489
27489
|
that's unlikely to clash with steps from other modules.
|
|
27490
27490
|
*/
|
|
27491
27491
|
static jsonID(t, n) {
|
|
27492
|
-
if (t in
|
|
27492
|
+
if (t in Es)
|
|
27493
27493
|
throw new RangeError("Duplicate use of step JSON ID " + t);
|
|
27494
|
-
return
|
|
27494
|
+
return Es[t] = n, n.prototype.jsonID = t, n;
|
|
27495
27495
|
}
|
|
27496
27496
|
}
|
|
27497
27497
|
class Qe {
|
|
@@ -27707,7 +27707,7 @@ class Ge extends ht {
|
|
|
27707
27707
|
super(), this.from = t, this.to = n, this.slice = r, this.structure = l;
|
|
27708
27708
|
}
|
|
27709
27709
|
apply(t) {
|
|
27710
|
-
return this.structure &&
|
|
27710
|
+
return this.structure && uo(t, this.from, this.to) ? Qe.fail("Structure replace would overwrite content") : Qe.fromReplace(t, this.from, this.to, this.slice);
|
|
27711
27711
|
}
|
|
27712
27712
|
getMap() {
|
|
27713
27713
|
return new Dt([this.from, this.to - this.from, this.slice.size]);
|
|
@@ -27757,7 +27757,7 @@ class Ze extends ht {
|
|
|
27757
27757
|
super(), this.from = t, this.to = n, this.gapFrom = r, this.gapTo = l, this.slice = a, this.insert = i, this.structure = s;
|
|
27758
27758
|
}
|
|
27759
27759
|
apply(t) {
|
|
27760
|
-
if (this.structure && (
|
|
27760
|
+
if (this.structure && (uo(t, this.from, this.gapFrom) || uo(t, this.gapTo, this.to)))
|
|
27761
27761
|
return Qe.fail("Structure gap-replace would overwrite content");
|
|
27762
27762
|
let n = t.slice(this.gapFrom, this.gapTo);
|
|
27763
27763
|
if (n.openStart || n.openEnd)
|
|
@@ -27804,7 +27804,7 @@ class Ze extends ht {
|
|
|
27804
27804
|
}
|
|
27805
27805
|
}
|
|
27806
27806
|
ht.jsonID("replaceAround", Ze);
|
|
27807
|
-
function
|
|
27807
|
+
function uo(e, t, n) {
|
|
27808
27808
|
let r = e.resolve(t), l = n - t, a = r.depth;
|
|
27809
27809
|
for (; l > 0 && a > 0 && r.indexAfter(a) == r.node(a).childCount; )
|
|
27810
27810
|
a--, l--;
|
|
@@ -27839,7 +27839,7 @@ function TS(e, t, n, r) {
|
|
|
27839
27839
|
return;
|
|
27840
27840
|
a++;
|
|
27841
27841
|
let o = null;
|
|
27842
|
-
if (r instanceof
|
|
27842
|
+
if (r instanceof Ei) {
|
|
27843
27843
|
let u = i.marks, c;
|
|
27844
27844
|
for (; c = r.isInSet(u); )
|
|
27845
27845
|
(o || (o = [])).push(c), u = c.removeFromSet(u);
|
|
@@ -28039,7 +28039,7 @@ function OS(e, t) {
|
|
|
28039
28039
|
function Am(e, t) {
|
|
28040
28040
|
return !!(e && t && !e.isLeaf && OS(e, t));
|
|
28041
28041
|
}
|
|
28042
|
-
function
|
|
28042
|
+
function Ti(e, t, n = -1) {
|
|
28043
28043
|
let r = e.resolve(t);
|
|
28044
28044
|
for (let l = r.depth; ; l--) {
|
|
28045
28045
|
let a, i, s = r.index(l);
|
|
@@ -28112,7 +28112,7 @@ function Nm(e, t, n) {
|
|
|
28112
28112
|
}
|
|
28113
28113
|
return null;
|
|
28114
28114
|
}
|
|
28115
|
-
function
|
|
28115
|
+
function Ci(e, t, n = t, r = se.empty) {
|
|
28116
28116
|
if (t == n && !r.size)
|
|
28117
28117
|
return null;
|
|
28118
28118
|
let l = e.resolve(t), a = e.resolve(n);
|
|
@@ -28167,7 +28167,7 @@ class DS {
|
|
|
28167
28167
|
for (let n = 1; n <= 2; n++)
|
|
28168
28168
|
for (let r = n == 1 ? t : this.unplaced.openStart; r >= 0; r--) {
|
|
28169
28169
|
let l, a = null;
|
|
28170
|
-
r ? (a =
|
|
28170
|
+
r ? (a = Ts(this.unplaced.content, r - 1).firstChild, l = a.content) : l = this.unplaced.content;
|
|
28171
28171
|
let i = l.firstChild;
|
|
28172
28172
|
for (let s = this.depth; s >= 0; s--) {
|
|
28173
28173
|
let { type: o, match: u } = this.frontier[s], c, d = null;
|
|
@@ -28181,11 +28181,11 @@ class DS {
|
|
|
28181
28181
|
}
|
|
28182
28182
|
}
|
|
28183
28183
|
openMore() {
|
|
28184
|
-
let { content: t, openStart: n, openEnd: r } = this.unplaced, l =
|
|
28184
|
+
let { content: t, openStart: n, openEnd: r } = this.unplaced, l = Ts(t, n);
|
|
28185
28185
|
return !l.childCount || l.firstChild.isLeaf ? !1 : (this.unplaced = new se(t, n + 1, Math.max(r, l.size + n >= t.size - r ? n + 1 : 0)), !0);
|
|
28186
28186
|
}
|
|
28187
28187
|
dropNode() {
|
|
28188
|
-
let { content: t, openStart: n, openEnd: r } = this.unplaced, l =
|
|
28188
|
+
let { content: t, openStart: n, openEnd: r } = this.unplaced, l = Ts(t, n);
|
|
28189
28189
|
if (l.childCount <= 1 && n > 0) {
|
|
28190
28190
|
let a = t.size - n <= n + l.size;
|
|
28191
28191
|
this.unplaced = new se(dl(t, n - 1, 1), n - 1, a ? n - 1 : r);
|
|
@@ -28226,7 +28226,7 @@ class DS {
|
|
|
28226
28226
|
if (!this.$to.parent.isTextblock)
|
|
28227
28227
|
return -1;
|
|
28228
28228
|
let t = this.frontier[this.depth], n;
|
|
28229
|
-
if (!t.type.isTextblock || !
|
|
28229
|
+
if (!t.type.isTextblock || !Cs(this.$to, this.$to.depth, t.type, t.match, !1) || this.$to.depth == this.depth && (n = this.findCloseLevel(this.$to)) && n.depth == this.depth)
|
|
28230
28230
|
return -1;
|
|
28231
28231
|
let { depth: r } = this.$to, l = this.$to.after(r);
|
|
28232
28232
|
for (; r > 1 && l == this.$to.end(--r); )
|
|
@@ -28235,10 +28235,10 @@ class DS {
|
|
|
28235
28235
|
}
|
|
28236
28236
|
findCloseLevel(t) {
|
|
28237
28237
|
e: for (let n = Math.min(this.depth, t.depth); n >= 0; n--) {
|
|
28238
|
-
let { match: r, type: l } = this.frontier[n], a = n < t.depth && t.end(n + 1) == t.pos + (t.depth - (n + 1)), i =
|
|
28238
|
+
let { match: r, type: l } = this.frontier[n], a = n < t.depth && t.end(n + 1) == t.pos + (t.depth - (n + 1)), i = Cs(t, n, l, r, a);
|
|
28239
28239
|
if (i) {
|
|
28240
28240
|
for (let s = n - 1; s >= 0; s--) {
|
|
28241
|
-
let { match: o, type: u } = this.frontier[s], c =
|
|
28241
|
+
let { match: o, type: u } = this.frontier[s], c = Cs(t, s, u, o, !0);
|
|
28242
28242
|
if (!c || c.childCount)
|
|
28243
28243
|
continue e;
|
|
28244
28244
|
}
|
|
@@ -28274,7 +28274,7 @@ function dl(e, t, n) {
|
|
|
28274
28274
|
function fl(e, t, n) {
|
|
28275
28275
|
return t == 0 ? e.append(n) : e.replaceChild(e.childCount - 1, e.lastChild.copy(fl(e.lastChild.content, t - 1, n)));
|
|
28276
28276
|
}
|
|
28277
|
-
function
|
|
28277
|
+
function Ts(e, t) {
|
|
28278
28278
|
for (let n = 0; n < t; n++)
|
|
28279
28279
|
e = e.firstChild.content;
|
|
28280
28280
|
return e;
|
|
@@ -28285,7 +28285,7 @@ function _m(e, t, n) {
|
|
|
28285
28285
|
let r = e.content;
|
|
28286
28286
|
return t > 1 && (r = r.replaceChild(0, _m(r.firstChild, t - 1, r.childCount == 1 ? n - 1 : 0))), t > 0 && (r = e.type.contentMatch.fillBefore(r).append(r), n <= 0 && (r = r.append(e.type.contentMatch.matchFragment(r).fillBefore(X.empty, !0)))), e.copy(r);
|
|
28287
28287
|
}
|
|
28288
|
-
function
|
|
28288
|
+
function Cs(e, t, n, r, l) {
|
|
28289
28289
|
let a = e.node(t), i = l ? e.indexAfter(t) : e.index(t);
|
|
28290
28290
|
if (i == a.childCount && !n.compatibleContent(a.type))
|
|
28291
28291
|
return null;
|
|
@@ -28551,7 +28551,7 @@ class US {
|
|
|
28551
28551
|
given `slice`.
|
|
28552
28552
|
*/
|
|
28553
28553
|
replace(t, n = t, r = se.empty) {
|
|
28554
|
-
let l =
|
|
28554
|
+
let l = Ci(this.doc, t, n, r);
|
|
28555
28555
|
return l && this.step(l), this;
|
|
28556
28556
|
}
|
|
28557
28557
|
/**
|
|
@@ -28727,7 +28727,7 @@ class US {
|
|
|
28727
28727
|
return iu(this, t, n, r), this;
|
|
28728
28728
|
}
|
|
28729
28729
|
}
|
|
28730
|
-
const
|
|
28730
|
+
const xs = /* @__PURE__ */ Object.create(null);
|
|
28731
28731
|
class Ce {
|
|
28732
28732
|
/**
|
|
28733
28733
|
Initialize a selection with the head and anchor and ranges. If no
|
|
@@ -28863,7 +28863,7 @@ class Ce {
|
|
|
28863
28863
|
static fromJSON(t, n) {
|
|
28864
28864
|
if (!n || !n.type)
|
|
28865
28865
|
throw new RangeError("Invalid input for Selection.fromJSON");
|
|
28866
|
-
let r =
|
|
28866
|
+
let r = xs[n.type];
|
|
28867
28867
|
if (!r)
|
|
28868
28868
|
throw new RangeError(`No selection type ${n.type} defined`);
|
|
28869
28869
|
return r.fromJSON(t, n);
|
|
@@ -28875,9 +28875,9 @@ class Ce {
|
|
|
28875
28875
|
clash with classes from other modules.
|
|
28876
28876
|
*/
|
|
28877
28877
|
static jsonID(t, n) {
|
|
28878
|
-
if (t in
|
|
28878
|
+
if (t in xs)
|
|
28879
28879
|
throw new RangeError("Duplicate use of selection JSON ID " + t);
|
|
28880
|
-
return
|
|
28880
|
+
return xs[t] = n, n.prototype.jsonID = t, n;
|
|
28881
28881
|
}
|
|
28882
28882
|
/**
|
|
28883
28883
|
Get a [bookmark](https://prosemirror.net/docs/ref/#state.SelectionBookmark) for this selection,
|
|
@@ -28936,7 +28936,7 @@ class ye extends Ce {
|
|
|
28936
28936
|
return t instanceof ye && t.anchor == this.anchor && t.head == this.head;
|
|
28937
28937
|
}
|
|
28938
28938
|
getBookmark() {
|
|
28939
|
-
return new
|
|
28939
|
+
return new xi(this.anchor, this.head);
|
|
28940
28940
|
}
|
|
28941
28941
|
toJSON() {
|
|
28942
28942
|
return { type: "text", anchor: this.anchor, head: this.head };
|
|
@@ -28977,12 +28977,12 @@ class ye extends Ce {
|
|
|
28977
28977
|
}
|
|
28978
28978
|
}
|
|
28979
28979
|
Ce.jsonID("text", ye);
|
|
28980
|
-
class
|
|
28980
|
+
class xi {
|
|
28981
28981
|
constructor(t, n) {
|
|
28982
28982
|
this.anchor = t, this.head = n;
|
|
28983
28983
|
}
|
|
28984
28984
|
map(t) {
|
|
28985
|
-
return new
|
|
28985
|
+
return new xi(t.map(this.anchor), t.map(this.head));
|
|
28986
28986
|
}
|
|
28987
28987
|
resolve(t) {
|
|
28988
28988
|
return ye.between(t.resolve(this.anchor), t.resolve(this.head));
|
|
@@ -29043,7 +29043,7 @@ class ou {
|
|
|
29043
29043
|
}
|
|
29044
29044
|
map(t) {
|
|
29045
29045
|
let { deleted: n, pos: r } = t.mapResult(this.anchor);
|
|
29046
|
-
return n ? new
|
|
29046
|
+
return n ? new xi(r, r) : new ou(r);
|
|
29047
29047
|
}
|
|
29048
29048
|
resolve(t) {
|
|
29049
29049
|
let n = t.resolve(this.anchor), r = n.nodeAfter;
|
|
@@ -29316,7 +29316,7 @@ const qS = [
|
|
|
29316
29316
|
}
|
|
29317
29317
|
})
|
|
29318
29318
|
];
|
|
29319
|
-
class
|
|
29319
|
+
class Ss {
|
|
29320
29320
|
constructor(t, n) {
|
|
29321
29321
|
this.schema = t, this.plugins = [], this.pluginsByKey = /* @__PURE__ */ Object.create(null), this.fields = qS.slice(), n && n.forEach((r) => {
|
|
29322
29322
|
if (this.pluginsByKey[r.key])
|
|
@@ -29417,7 +29417,7 @@ class Rr {
|
|
|
29417
29417
|
Create a new state.
|
|
29418
29418
|
*/
|
|
29419
29419
|
static create(t) {
|
|
29420
|
-
let n = new
|
|
29420
|
+
let n = new Ss(t.doc ? t.doc.type.schema : t.schema, t.plugins), r = new Rr(n);
|
|
29421
29421
|
for (let l = 0; l < n.fields.length; l++)
|
|
29422
29422
|
r[n.fields[l].name] = n.fields[l].init(t, r);
|
|
29423
29423
|
return r;
|
|
@@ -29431,7 +29431,7 @@ class Rr {
|
|
|
29431
29431
|
configuration object..
|
|
29432
29432
|
*/
|
|
29433
29433
|
reconfigure(t) {
|
|
29434
|
-
let n = new
|
|
29434
|
+
let n = new Ss(this.schema, t.plugins), r = n.fields, l = new Rr(n);
|
|
29435
29435
|
for (let a = 0; a < r.length; a++) {
|
|
29436
29436
|
let i = r[a].name;
|
|
29437
29437
|
l[i] = this.hasOwnProperty(i) ? this[i] : r[a].init(t, l);
|
|
@@ -29468,7 +29468,7 @@ class Rr {
|
|
|
29468
29468
|
throw new RangeError("Invalid input for EditorState.fromJSON");
|
|
29469
29469
|
if (!t.schema)
|
|
29470
29470
|
throw new RangeError("Required config field 'schema' missing");
|
|
29471
|
-
let l = new
|
|
29471
|
+
let l = new Ss(t.schema, t.plugins), a = new Rr(l);
|
|
29472
29472
|
return l.fields.forEach((i) => {
|
|
29473
29473
|
if (i.name == "doc")
|
|
29474
29474
|
a.doc = Dn.fromJSON(t.schema, n.doc);
|
|
@@ -29511,9 +29511,9 @@ class Et {
|
|
|
29511
29511
|
return t[this.key];
|
|
29512
29512
|
}
|
|
29513
29513
|
}
|
|
29514
|
-
const
|
|
29514
|
+
const ks = /* @__PURE__ */ Object.create(null);
|
|
29515
29515
|
function Rm(e) {
|
|
29516
|
-
return e in
|
|
29516
|
+
return e in ks ? e + "$" + ++ks[e] : (ks[e] = 0, e + "$");
|
|
29517
29517
|
}
|
|
29518
29518
|
class Kt {
|
|
29519
29519
|
/**
|
|
@@ -29544,12 +29544,12 @@ const lt = function(e) {
|
|
|
29544
29544
|
let t = e.assignedSlot || e.parentNode;
|
|
29545
29545
|
return t && t.nodeType == 11 ? t.host : t;
|
|
29546
29546
|
};
|
|
29547
|
-
let
|
|
29547
|
+
let co = null;
|
|
29548
29548
|
const un = function(e, t, n) {
|
|
29549
|
-
let r =
|
|
29549
|
+
let r = co || (co = document.createRange());
|
|
29550
29550
|
return r.setEnd(e, n ?? e.nodeValue.length), r.setStart(e, t || 0), r;
|
|
29551
29551
|
}, WS = function() {
|
|
29552
|
-
|
|
29552
|
+
co = null;
|
|
29553
29553
|
}, mr = function(e, t, n, r) {
|
|
29554
29554
|
return n && (Wd(e, t, n, r, -1) || Wd(e, t, n, r, 1));
|
|
29555
29555
|
}, YS = /^(img|br|input|textarea|hr)$/i;
|
|
@@ -29622,7 +29622,7 @@ function Zl(e) {
|
|
|
29622
29622
|
;
|
|
29623
29623
|
return t && t.node && t.node.isBlock && (t.dom == e || t.contentDOM == e);
|
|
29624
29624
|
}
|
|
29625
|
-
const
|
|
29625
|
+
const Si = function(e) {
|
|
29626
29626
|
return e.focusNode && mr(e.focusNode, e.focusOffset, e.anchorNode, e.anchorOffset);
|
|
29627
29627
|
};
|
|
29628
29628
|
function Xn(e, t) {
|
|
@@ -29649,9 +29649,9 @@ function XS(e, t, n) {
|
|
|
29649
29649
|
return { node: r.startContainer, offset: Math.min($t(r.startContainer), r.startOffset) };
|
|
29650
29650
|
}
|
|
29651
29651
|
}
|
|
29652
|
-
const rn = typeof navigator < "u" ? navigator : null, Yd = typeof document < "u" ? document : null, qn = rn && rn.userAgent || "",
|
|
29652
|
+
const rn = typeof navigator < "u" ? navigator : null, Yd = typeof document < "u" ? document : null, qn = rn && rn.userAgent || "", fo = /Edge\/(\d+)/.exec(qn), Dm = /MSIE \d/.exec(qn), ho = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(qn), At = !!(Dm || ho || fo), Ln = Dm ? document.documentMode : ho ? +ho[1] : fo ? +fo[1] : 0, qt = !At && /gecko\/(\d+)/i.test(qn);
|
|
29653
29653
|
qt && +(/Firefox\/(\d+)/.exec(qn) || [0, 0])[1];
|
|
29654
|
-
const
|
|
29654
|
+
const po = !At && /Chrome\/(\d+)/.exec(qn), it = !!po, Lm = po ? +po[1] : 0, ut = !At && !!rn && /Apple Computer/.test(rn.vendor), Vr = ut && (/Mobile\/\w+/.test(qn) || !!rn && rn.maxTouchPoints > 2), Ut = Vr || (rn ? /Mac/.test(rn.platform) : !1), Pm = rn ? /Win/.test(rn.platform) : !1, fn = /Android \d/.test(qn), ea = !!Yd && "webkitFontSmoothing" in Yd.documentElement.style, JS = ea ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
|
|
29655
29655
|
function ZS(e) {
|
|
29656
29656
|
let t = e.defaultView && e.defaultView.visualViewport;
|
|
29657
29657
|
return t ? {
|
|
@@ -29889,14 +29889,14 @@ function zm(e, t, n) {
|
|
|
29889
29889
|
if (a == null && l && (n < 0 || l == $t(r))) {
|
|
29890
29890
|
let o = r.childNodes[l - 1];
|
|
29891
29891
|
if (o.nodeType == 1)
|
|
29892
|
-
return
|
|
29892
|
+
return As(o.getBoundingClientRect(), !1);
|
|
29893
29893
|
}
|
|
29894
29894
|
if (a == null && l < $t(r)) {
|
|
29895
29895
|
let o = r.childNodes[l];
|
|
29896
29896
|
if (o.nodeType == 1)
|
|
29897
|
-
return
|
|
29897
|
+
return As(o.getBoundingClientRect(), !0);
|
|
29898
29898
|
}
|
|
29899
|
-
return
|
|
29899
|
+
return As(r.getBoundingClientRect(), n >= 0);
|
|
29900
29900
|
}
|
|
29901
29901
|
if (a == null && l && (n < 0 || l == $t(r))) {
|
|
29902
29902
|
let o = r.childNodes[l - 1], u = o.nodeType == 3 ? un(o, $t(o) - (i ? 0 : 1)) : o.nodeType == 1 && (o.nodeName != "BR" || !o.nextSibling) ? o : null;
|
|
@@ -29919,7 +29919,7 @@ function ul(e, t) {
|
|
|
29919
29919
|
let n = t ? e.left : e.right;
|
|
29920
29920
|
return { top: e.top, bottom: e.bottom, left: n, right: n };
|
|
29921
29921
|
}
|
|
29922
|
-
function
|
|
29922
|
+
function As(e, t) {
|
|
29923
29923
|
if (e.height == 0)
|
|
29924
29924
|
return e;
|
|
29925
29925
|
let n = t ? e.top : e.bottom;
|
|
@@ -30416,7 +30416,7 @@ class br extends ta {
|
|
|
30416
30416
|
}
|
|
30417
30417
|
slice(t, n, r) {
|
|
30418
30418
|
let l = br.create(this.parent, this.mark, !0, r), a = this.children, i = this.size;
|
|
30419
|
-
n < i && (a =
|
|
30419
|
+
n < i && (a = bo(a, n, i, r)), t > 0 && (a = bo(a, 0, t, r));
|
|
30420
30420
|
for (let s = 0; s < a.length; s++)
|
|
30421
30421
|
a[s].parent = l;
|
|
30422
30422
|
return l.children = a, l;
|
|
@@ -30456,7 +30456,7 @@ class Pn extends ta {
|
|
|
30456
30456
|
} else c || ({ dom: c, contentDOM: d } = Er.renderSpec(document, n.type.spec.toDOM(n), null, n.attrs));
|
|
30457
30457
|
!d && !n.isText && c.nodeName != "BR" && (c.hasAttribute("contenteditable") || (c.contentEditable = "false"), n.type.spec.draggable && (c.draggable = !0));
|
|
30458
30458
|
let f = c;
|
|
30459
|
-
return c = jm(c, r, n), u ? o = new m6(t, n, r, l, c, d || null, f, u, a, i + 1) : n.isText ? new
|
|
30459
|
+
return c = jm(c, r, n), u ? o = new m6(t, n, r, l, c, d || null, f, u, a, i + 1) : n.isText ? new ki(t, n, r, l, c, f, a) : new Pn(t, n, r, l, c, d || null, f, a, i + 1);
|
|
30460
30460
|
}
|
|
30461
30461
|
parseRule() {
|
|
30462
30462
|
if (this.node.type.spec.reparseInView)
|
|
@@ -30526,7 +30526,7 @@ class Pn extends ta {
|
|
|
30526
30526
|
a.pmViewDesc && (a.pmViewDesc = void 0);
|
|
30527
30527
|
}
|
|
30528
30528
|
let i = new p6(this, a, n, l);
|
|
30529
|
-
t.input.compositionNodes.push(i), this.children =
|
|
30529
|
+
t.input.compositionNodes.push(i), this.children = bo(this.children, r, r + l.length, t, i);
|
|
30530
30530
|
}
|
|
30531
30531
|
// If this desc must be updated to match the given node decoration,
|
|
30532
30532
|
// do so and return true.
|
|
@@ -30540,7 +30540,7 @@ class Pn extends ta {
|
|
|
30540
30540
|
if (Xa(t, this.outerDeco))
|
|
30541
30541
|
return;
|
|
30542
30542
|
let n = this.nodeDOM.nodeType != 1, r = this.dom;
|
|
30543
|
-
this.dom = Ym(this.dom, this.nodeDOM,
|
|
30543
|
+
this.dom = Ym(this.dom, this.nodeDOM, mo(this.outerDeco, this.node, n), mo(t, this.node, n)), this.dom != r && (r.pmViewDesc = void 0, this.dom.pmViewDesc = this), this.outerDeco = t;
|
|
30544
30544
|
}
|
|
30545
30545
|
// Mark this node as being the selected node.
|
|
30546
30546
|
selectNode() {
|
|
@@ -30559,7 +30559,7 @@ function Zd(e, t, n, r, l) {
|
|
|
30559
30559
|
let a = new Pn(void 0, e, t, n, r, r, r, l, 0);
|
|
30560
30560
|
return a.contentDOM && a.updateChildren(l, 0), a;
|
|
30561
30561
|
}
|
|
30562
|
-
class
|
|
30562
|
+
class ki extends Pn {
|
|
30563
30563
|
constructor(t, n, r, l, a, i, s) {
|
|
30564
30564
|
super(t, n, r, l, a, null, i, s, 0);
|
|
30565
30565
|
}
|
|
@@ -30590,7 +30590,7 @@ class Si extends Pn {
|
|
|
30590
30590
|
}
|
|
30591
30591
|
slice(t, n, r) {
|
|
30592
30592
|
let l = this.node.cut(t, n), a = document.createTextNode(l.text);
|
|
30593
|
-
return new
|
|
30593
|
+
return new ki(this.parent, l, this.outerDeco, this.innerDeco, a, a, r);
|
|
30594
30594
|
}
|
|
30595
30595
|
markDirty(t, n) {
|
|
30596
30596
|
super.markDirty(t, n), this.dom != this.nodeDOM && (t == 0 || n == this.nodeDOM.nodeValue.length) && (this.dirty = ln);
|
|
@@ -30674,7 +30674,7 @@ const kl = function(e) {
|
|
|
30674
30674
|
};
|
|
30675
30675
|
kl.prototype = /* @__PURE__ */ Object.create(null);
|
|
30676
30676
|
const tr = [new kl()];
|
|
30677
|
-
function
|
|
30677
|
+
function mo(e, t, n) {
|
|
30678
30678
|
if (e.length == 0)
|
|
30679
30679
|
return tr;
|
|
30680
30680
|
let r = n ? tr[0] : new kl(), l = [r];
|
|
@@ -30727,7 +30727,7 @@ function b6(e, t, n) {
|
|
|
30727
30727
|
}
|
|
30728
30728
|
}
|
|
30729
30729
|
function jm(e, t, n) {
|
|
30730
|
-
return Ym(e, e, tr,
|
|
30730
|
+
return Ym(e, e, tr, mo(t, n, e.nodeType != 1));
|
|
30731
30731
|
}
|
|
30732
30732
|
function Xa(e, t) {
|
|
30733
30733
|
if (e.length != t.length)
|
|
@@ -30876,7 +30876,7 @@ class g6 {
|
|
|
30876
30876
|
for (; t instanceof br; )
|
|
30877
30877
|
n = t, t = n.children[n.children.length - 1];
|
|
30878
30878
|
(!t || // Empty textblock
|
|
30879
|
-
!(t instanceof
|
|
30879
|
+
!(t instanceof ki) || /\n$/.test(t.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(t.node.text)) && ((ut || it) && t && t.dom.contentEditable == "false" && this.addHackNode("IMG", n), this.addHackNode("BR", this.top));
|
|
30880
30880
|
}
|
|
30881
30881
|
addHackNode(t, n) {
|
|
30882
30882
|
if (n == this.top && this.index < n.children.length && n.children[this.index].matchesHack(t))
|
|
@@ -31000,7 +31000,7 @@ function C6(e, t, n, r) {
|
|
|
31000
31000
|
}
|
|
31001
31001
|
return -1;
|
|
31002
31002
|
}
|
|
31003
|
-
function
|
|
31003
|
+
function bo(e, t, n, r, l) {
|
|
31004
31004
|
let a = [];
|
|
31005
31005
|
for (let i = 0, s = 0; i < e.length; i++) {
|
|
31006
31006
|
let o = e[i], u = s, c = s += o.size;
|
|
@@ -31016,7 +31016,7 @@ function cu(e, t = null) {
|
|
|
31016
31016
|
if (i < 0)
|
|
31017
31017
|
return null;
|
|
31018
31018
|
let s = r.resolve(i), o, u;
|
|
31019
|
-
if (
|
|
31019
|
+
if (Si(n)) {
|
|
31020
31020
|
for (o = i; l && !l.node; )
|
|
31021
31021
|
l = l.parent;
|
|
31022
31022
|
let d = l.node;
|
|
@@ -31072,15 +31072,15 @@ const tf = ut || it && Lm < 63;
|
|
|
31072
31072
|
function nf(e, t) {
|
|
31073
31073
|
let { node: n, offset: r } = e.docView.domFromPos(t, 0), l = r < n.childNodes.length ? n.childNodes[r] : null, a = r ? n.childNodes[r - 1] : null;
|
|
31074
31074
|
if (ut && l && l.contentEditable == "false")
|
|
31075
|
-
return
|
|
31075
|
+
return Ns(l);
|
|
31076
31076
|
if ((!l || l.contentEditable == "false") && (!a || a.contentEditable == "false")) {
|
|
31077
31077
|
if (l)
|
|
31078
|
-
return
|
|
31078
|
+
return Ns(l);
|
|
31079
31079
|
if (a)
|
|
31080
|
-
return
|
|
31080
|
+
return Ns(a);
|
|
31081
31081
|
}
|
|
31082
31082
|
}
|
|
31083
|
-
function
|
|
31083
|
+
function Ns(e) {
|
|
31084
31084
|
return e.contentEditable = "true", ut && e.draggable && (e.draggable = !1, e.wasDraggable = !0), e;
|
|
31085
31085
|
}
|
|
31086
31086
|
function rf(e) {
|
|
@@ -31133,7 +31133,7 @@ function k6(e) {
|
|
|
31133
31133
|
let t = e.docView.domFromPos(e.state.selection.anchor, 0), n = e.domSelectionRange();
|
|
31134
31134
|
return mr(t.node, t.offset, n.anchorNode, n.anchorOffset);
|
|
31135
31135
|
}
|
|
31136
|
-
function
|
|
31136
|
+
function go(e, t) {
|
|
31137
31137
|
let { $anchor: n, $head: r } = e.selection, l = t > 0 ? n.max(r) : n.min(r), a = l.parent.inlineContent ? l.depth ? e.doc.resolve(t > 0 ? l.after() : l.before()) : null : l;
|
|
31138
31138
|
return a && Ce.findFrom(a, t);
|
|
31139
31139
|
}
|
|
@@ -31151,7 +31151,7 @@ function sf(e, t, n) {
|
|
|
31151
31151
|
return Nn(e, new ye(r.$anchor, i));
|
|
31152
31152
|
} else if (r.empty) {
|
|
31153
31153
|
if (e.endOfTextblock(t > 0 ? "forward" : "backward")) {
|
|
31154
|
-
let l =
|
|
31154
|
+
let l = go(e.state, t);
|
|
31155
31155
|
return l && l instanceof he ? Nn(e, l) : !1;
|
|
31156
31156
|
} else if (!(Ut && n.indexOf("m") > -1)) {
|
|
31157
31157
|
let l = r.$head, a = l.textOffset ? null : t < 0 ? l.nodeBefore : l.nodeAfter, i;
|
|
@@ -31165,7 +31165,7 @@ function sf(e, t, n) {
|
|
|
31165
31165
|
if (r instanceof he && r.node.isInline)
|
|
31166
31166
|
return Nn(e, new ye(t > 0 ? r.$to : r.$from));
|
|
31167
31167
|
{
|
|
31168
|
-
let l =
|
|
31168
|
+
let l = go(e.state, t);
|
|
31169
31169
|
return l ? Nn(e, l) : !1;
|
|
31170
31170
|
}
|
|
31171
31171
|
}
|
|
@@ -31214,7 +31214,7 @@ function A6(e) {
|
|
|
31214
31214
|
}
|
|
31215
31215
|
}
|
|
31216
31216
|
}
|
|
31217
|
-
i ?
|
|
31217
|
+
i ? vo(e, n, r) : l && vo(e, l, a);
|
|
31218
31218
|
}
|
|
31219
31219
|
function N6(e) {
|
|
31220
31220
|
let t = e.domSelectionRange(), n = t.focusNode, r = t.focusOffset;
|
|
@@ -31246,7 +31246,7 @@ function N6(e) {
|
|
|
31246
31246
|
}
|
|
31247
31247
|
}
|
|
31248
31248
|
}
|
|
31249
|
-
a &&
|
|
31249
|
+
a && vo(e, a, i);
|
|
31250
31250
|
}
|
|
31251
31251
|
function Xm(e) {
|
|
31252
31252
|
let t = e.pmViewDesc;
|
|
@@ -31276,7 +31276,7 @@ function _6(e, t) {
|
|
|
31276
31276
|
e = n, t = e.childNodes.length;
|
|
31277
31277
|
}
|
|
31278
31278
|
}
|
|
31279
|
-
function
|
|
31279
|
+
function vo(e, t, n) {
|
|
31280
31280
|
if (t.nodeType != 3) {
|
|
31281
31281
|
let a, i;
|
|
31282
31282
|
(i = w6(t, n)) ? (t = i, n = 0) : (a = _6(t, n)) && (t = a, n = a.nodeValue.length);
|
|
@@ -31284,7 +31284,7 @@ function go(e, t, n) {
|
|
|
31284
31284
|
let r = e.domSelection();
|
|
31285
31285
|
if (!r)
|
|
31286
31286
|
return;
|
|
31287
|
-
if (
|
|
31287
|
+
if (Si(r)) {
|
|
31288
31288
|
let a = document.createRange();
|
|
31289
31289
|
a.setEnd(t, n), a.setStart(t, n), r.removeAllRanges(), r.addRange(a);
|
|
31290
31290
|
} else r.extend && r.extend(t, n);
|
|
@@ -31317,7 +31317,7 @@ function uf(e, t, n) {
|
|
|
31317
31317
|
return !1;
|
|
31318
31318
|
let { $from: l, $to: a } = r;
|
|
31319
31319
|
if (!l.parent.inlineContent || e.endOfTextblock(t < 0 ? "up" : "down")) {
|
|
31320
|
-
let i =
|
|
31320
|
+
let i = go(e.state, t);
|
|
31321
31321
|
if (i && i instanceof he)
|
|
31322
31322
|
return Nn(e, i);
|
|
31323
31323
|
}
|
|
@@ -31514,12 +31514,12 @@ function t0(e, t) {
|
|
|
31514
31514
|
let n = e.content.replaceChild(e.childCount - 1, t0(e.lastChild, t - 1)), r = e.contentMatchAt(e.childCount).fillBefore(X.empty, !0);
|
|
31515
31515
|
return e.copy(n.append(r));
|
|
31516
31516
|
}
|
|
31517
|
-
function
|
|
31517
|
+
function yo(e, t, n, r, l, a) {
|
|
31518
31518
|
let i = t < 0 ? e.firstChild : e.lastChild, s = i.content;
|
|
31519
|
-
return e.childCount > 1 && (a = 0), l < r - 1 && (s =
|
|
31519
|
+
return e.childCount > 1 && (a = 0), l < r - 1 && (s = yo(s, t, n, r, l + 1, a)), l >= n && (s = t < 0 ? i.contentMatchAt(0).fillBefore(s, a <= l).append(s) : s.append(i.contentMatchAt(i.childCount).fillBefore(X.empty, !0))), e.replaceChild(t < 0 ? 0 : e.childCount - 1, i.copy(s));
|
|
31520
31520
|
}
|
|
31521
31521
|
function ff(e, t, n) {
|
|
31522
|
-
return t < e.openStart && (e = new se(
|
|
31522
|
+
return t < e.openStart && (e = new se(yo(e.content, -1, t, e.openStart, 0, e.openEnd), t, e.openEnd)), n < e.openEnd && (e = new se(yo(e.content, 1, n, e.openEnd, 0, 0), e.openStart, n)), e;
|
|
31523
31523
|
}
|
|
31524
31524
|
const n0 = {
|
|
31525
31525
|
thead: ["table"],
|
|
@@ -31536,10 +31536,10 @@ let hf = null;
|
|
|
31536
31536
|
function r0() {
|
|
31537
31537
|
return hf || (hf = document.implementation.createHTMLDocument("title"));
|
|
31538
31538
|
}
|
|
31539
|
-
let
|
|
31539
|
+
let ws = null;
|
|
31540
31540
|
function L6(e) {
|
|
31541
31541
|
let t = window.trustedTypes;
|
|
31542
|
-
return t ? (
|
|
31542
|
+
return t ? (ws || (ws = t.defaultPolicy || t.createPolicy("ProseMirrorClipboard", { createHTML: (n) => n })), ws.createHTML(e)) : e;
|
|
31543
31543
|
}
|
|
31544
31544
|
function P6(e) {
|
|
31545
31545
|
let t = /^(\s*<meta [^>]*>)*/.exec(e);
|
|
@@ -31588,7 +31588,7 @@ function z6(e) {
|
|
|
31588
31588
|
$6(e, r) && !hu(e, r) && (e.editable || !(r.type in vt)) && n(e, r);
|
|
31589
31589
|
}, H6[t] ? { passive: !0 } : void 0);
|
|
31590
31590
|
}
|
|
31591
|
-
ut && e.dom.addEventListener("input", () => null),
|
|
31591
|
+
ut && e.dom.addEventListener("input", () => null), Eo(e);
|
|
31592
31592
|
}
|
|
31593
31593
|
function Rn(e, t) {
|
|
31594
31594
|
e.input.lastSelectionOrigin = t, e.input.lastSelectionTime = Date.now();
|
|
@@ -31599,7 +31599,7 @@ function V6(e) {
|
|
|
31599
31599
|
e.dom.removeEventListener(t, e.input.eventHandlers[t]);
|
|
31600
31600
|
clearTimeout(e.input.composingTimeout), clearTimeout(e.input.lastIOSEnterFallbackTimeout);
|
|
31601
31601
|
}
|
|
31602
|
-
function
|
|
31602
|
+
function Eo(e) {
|
|
31603
31603
|
e.someProp("handleDOMEvents", (t) => {
|
|
31604
31604
|
for (let n in t)
|
|
31605
31605
|
e.input.eventHandlers[n] || e.dom.addEventListener(n, e.input.eventHandlers[n] = (r) => hu(e, r));
|
|
@@ -31651,7 +31651,7 @@ vt.keypress = (e, t) => {
|
|
|
31651
31651
|
!/[\r\n]/.test(l) && !e.someProp("handleTextInput", (i) => i(e, r.$from.pos, r.$to.pos, l, a)) && e.dispatch(a()), n.preventDefault();
|
|
31652
31652
|
}
|
|
31653
31653
|
};
|
|
31654
|
-
function
|
|
31654
|
+
function Ai(e) {
|
|
31655
31655
|
return { left: e.clientX, top: e.clientY };
|
|
31656
31656
|
}
|
|
31657
31657
|
function W6(e, t) {
|
|
@@ -31730,7 +31730,7 @@ gt.mousedown = (e, t) => {
|
|
|
31730
31730
|
e.input.shiftKey = n.shiftKey;
|
|
31731
31731
|
let r = mu(e), l = Date.now(), a = "singleClick";
|
|
31732
31732
|
l - e.input.lastClick.time < 500 && W6(n, e.input.lastClick) && !n[l0] && e.input.lastClick.button == n.button && (e.input.lastClick.type == "singleClick" ? a = "doubleClick" : e.input.lastClick.type == "doubleClick" && (a = "tripleClick")), e.input.lastClick = { time: l, x: n.clientX, y: n.clientY, type: a, button: n.button };
|
|
31733
|
-
let i = e.posAtCoords(
|
|
31733
|
+
let i = e.posAtCoords(Ai(n));
|
|
31734
31734
|
i && (a == "singleClick" ? (e.input.mouseDown && e.input.mouseDown.done(), e.input.mouseDown = new J6(e, i, n, !!r)) : (a == "doubleClick" ? K6 : Q6)(e, i.pos, i.inside, n) ? n.preventDefault() : Rn(e, "pointer"));
|
|
31735
31735
|
};
|
|
31736
31736
|
class J6 {
|
|
@@ -31762,7 +31762,7 @@ class J6 {
|
|
|
31762
31762
|
if (this.done(), !this.view.dom.contains(t.target))
|
|
31763
31763
|
return;
|
|
31764
31764
|
let n = this.pos;
|
|
31765
|
-
this.view.state.doc != this.startDoc && (n = this.view.posAtCoords(
|
|
31765
|
+
this.view.state.doc != this.startDoc && (n = this.view.posAtCoords(Ai(t))), this.updateAllowDefault(t), this.allowDefault || !n ? Rn(this.view, "pointer") : G6(this.view, n.pos, n.inside, t, this.selectNode) ? t.preventDefault() : t.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
|
|
31766
31766
|
ut && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
|
|
31767
31767
|
// cursor, but still report that the node is selected
|
|
31768
31768
|
// when asked through getSelection. You'll then get a
|
|
@@ -31933,7 +31933,7 @@ gt.dragstart = (e, t) => {
|
|
|
31933
31933
|
let n = t, r = e.input.mouseDown;
|
|
31934
31934
|
if (r && r.done(), !n.dataTransfer)
|
|
31935
31935
|
return;
|
|
31936
|
-
let l = e.state.selection, a = l.empty ? null : e.posAtCoords(
|
|
31936
|
+
let l = e.state.selection, a = l.empty ? null : e.posAtCoords(Ai(n)), i;
|
|
31937
31937
|
if (!(a && a.pos >= l.from && a.pos <= (l instanceof he ? l.to - 1 : l.to))) {
|
|
31938
31938
|
if (r && r.mightDrag)
|
|
31939
31939
|
i = he.create(e.state.doc, r.mightDrag.pos);
|
|
@@ -31962,7 +31962,7 @@ vt.drop = (e, t) => {
|
|
|
31962
31962
|
function sk(e, t, n) {
|
|
31963
31963
|
if (!t.dataTransfer)
|
|
31964
31964
|
return;
|
|
31965
|
-
let r = e.posAtCoords(
|
|
31965
|
+
let r = e.posAtCoords(Ai(t));
|
|
31966
31966
|
if (!r)
|
|
31967
31967
|
return;
|
|
31968
31968
|
let l = e.state.doc.resolve(r.pos), a = n && n.slice;
|
|
@@ -32520,7 +32520,7 @@ function pf(e, t, n) {
|
|
|
32520
32520
|
t++;
|
|
32521
32521
|
e.splice(t, 0, n);
|
|
32522
32522
|
}
|
|
32523
|
-
function
|
|
32523
|
+
function _s(e) {
|
|
32524
32524
|
let t = [];
|
|
32525
32525
|
return e.someProp("decorations", (n) => {
|
|
32526
32526
|
let r = n(e.state);
|
|
@@ -32668,7 +32668,7 @@ class hk {
|
|
|
32668
32668
|
}
|
|
32669
32669
|
}
|
|
32670
32670
|
let u = null;
|
|
32671
|
-
a < 0 && l && t.input.lastFocus > Date.now() - 200 && Math.max(t.input.lastTouch, t.input.lastClick.time) < Date.now() - 300 &&
|
|
32671
|
+
a < 0 && l && t.input.lastFocus > Date.now() - 200 && Math.max(t.input.lastTouch, t.input.lastClick.time) < Date.now() - 300 && Si(r) && (u = cu(t)) && u.eq(Ce.near(t.state.doc.resolve(0), 1)) ? (t.input.lastFocus = 0, pn(t), this.currentSelection.set(r), t.scrollToSelection()) : (a > -1 || l) && (a > -1 && (t.docView.markDirty(a, i), pk(t)), t.input.badSafariComposition && (t.input.badSafariComposition = !1, gk(t, o)), this.handleDOMChange(a, i, s, o), t.docView && t.docView.dirty ? t.updateState(t.state) : this.currentSelection.eq(r) || pn(t), this.currentSelection.set(r));
|
|
32672
32672
|
}
|
|
32673
32673
|
registerMutation(t, n) {
|
|
32674
32674
|
if (n.indexOf(t.target) > -1)
|
|
@@ -32758,7 +32758,7 @@ function gk(e, t) {
|
|
|
32758
32758
|
}
|
|
32759
32759
|
function vk(e, t, n) {
|
|
32760
32760
|
let { node: r, fromOffset: l, toOffset: a, from: i, to: s } = e.docView.parseRange(t, n), o = e.domSelectionRange(), u, c = o.anchorNode;
|
|
32761
|
-
if (c && e.dom.contains(c.nodeType == 1 ? c : c.parentNode) && (u = [{ node: c, offset: o.anchorOffset }],
|
|
32761
|
+
if (c && e.dom.contains(c.nodeType == 1 ? c : c.parentNode) && (u = [{ node: c, offset: o.anchorOffset }], Si(o) || u.push({ node: o.focusNode, offset: o.focusOffset })), it && e.input.lastKeyCode === 8)
|
|
32762
32762
|
for (let b = a; b > l; b--) {
|
|
32763
32763
|
let E = r.childNodes[b - 1], A = E.pmViewDesc;
|
|
32764
32764
|
if (E.nodeName == "BR" && !A) {
|
|
@@ -32901,7 +32901,7 @@ function xk(e, t, n, r, l) {
|
|
|
32901
32901
|
if (
|
|
32902
32902
|
// The content must have shrunk
|
|
32903
32903
|
n - t <= l.pos - r.pos || // newEnd must point directly at or after the end of the block that newStart points into
|
|
32904
|
-
|
|
32904
|
+
Is(r, !0, !1) < l.pos
|
|
32905
32905
|
)
|
|
32906
32906
|
return !1;
|
|
32907
32907
|
let a = e.resolve(t);
|
|
@@ -32911,10 +32911,10 @@ function xk(e, t, n, r, l) {
|
|
|
32911
32911
|
}
|
|
32912
32912
|
if (a.parentOffset < a.parent.content.size || !a.parent.isTextblock)
|
|
32913
32913
|
return !1;
|
|
32914
|
-
let i = e.resolve(
|
|
32915
|
-
return !i.parent.isTextblock || i.pos > n ||
|
|
32914
|
+
let i = e.resolve(Is(a, !0, !0));
|
|
32915
|
+
return !i.parent.isTextblock || i.pos > n || Is(i, !0, !1) < n ? !1 : r.parent.content.cut(r.parentOffset).eq(i.parent.content);
|
|
32916
32916
|
}
|
|
32917
|
-
function
|
|
32917
|
+
function Is(e, t, n) {
|
|
32918
32918
|
let r = e.depth, l = t ? e.end() : e.pos;
|
|
32919
32919
|
for (; r > 0 && (t || e.indexAfter(r) == e.node(r).childCount); )
|
|
32920
32920
|
r--, l++, t = !1;
|
|
@@ -32958,7 +32958,7 @@ class p0 {
|
|
|
32958
32958
|
added to the document.
|
|
32959
32959
|
*/
|
|
32960
32960
|
constructor(t, n) {
|
|
32961
|
-
this._root = null, this.focused = !1, this.trackWrites = null, this.mounted = !1, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new U6(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = n, this.state = n.state, this.directPlugins = n.plugins || [], this.directPlugins.forEach(Sf), this.dispatch = this.dispatch.bind(this), this.dom = t && t.mount || document.createElement("div"), t && (t.appendChild ? t.appendChild(this.dom) : typeof t == "function" ? t(this.dom) : t.mount && (this.mounted = !0)), this.editable = Cf(this), Tf(this), this.nodeViews = xf(this), this.docView = Zd(this.state.doc, Ef(this),
|
|
32961
|
+
this._root = null, this.focused = !1, this.trackWrites = null, this.mounted = !1, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new U6(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = n, this.state = n.state, this.directPlugins = n.plugins || [], this.directPlugins.forEach(Sf), this.dispatch = this.dispatch.bind(this), this.dom = t && t.mount || document.createElement("div"), t && (t.appendChild ? t.appendChild(this.dom) : typeof t == "function" ? t(this.dom) : t.mount && (this.mounted = !0)), this.editable = Cf(this), Tf(this), this.nodeViews = xf(this), this.docView = Zd(this.state.doc, Ef(this), _s(this), this.dom, this), this.domObserver = new hk(this, (r, l, a, i) => Tk(this, r, l, a, i)), this.domObserver.start(), z6(this), this.updatePluginViews();
|
|
32962
32962
|
}
|
|
32963
32963
|
/**
|
|
32964
32964
|
Holds `true` when a
|
|
@@ -32986,7 +32986,7 @@ class p0 {
|
|
|
32986
32986
|
the DOM.
|
|
32987
32987
|
*/
|
|
32988
32988
|
update(t) {
|
|
32989
|
-
t.handleDOMEvents != this._props.handleDOMEvents &&
|
|
32989
|
+
t.handleDOMEvents != this._props.handleDOMEvents && Eo(this);
|
|
32990
32990
|
let n = this._props;
|
|
32991
32991
|
this._props = t, t.plugins && (t.plugins.forEach(Sf), this.directPlugins = t.plugins), this.updateStateInner(t.state, n);
|
|
32992
32992
|
}
|
|
@@ -33020,8 +33020,8 @@ class p0 {
|
|
|
33020
33020
|
let h = xf(this);
|
|
33021
33021
|
Ak(h, this.nodeViews) && (this.nodeViews = h, a = !0);
|
|
33022
33022
|
}
|
|
33023
|
-
(s || n.handleDOMEvents != this._props.handleDOMEvents) &&
|
|
33024
|
-
let o =
|
|
33023
|
+
(s || n.handleDOMEvents != this._props.handleDOMEvents) && Eo(this), this.editable = Cf(this), Tf(this);
|
|
33024
|
+
let o = _s(this), u = Ef(this), c = l.plugins != t.plugins && !l.doc.eq(t.doc) ? "reset" : t.scrollToSelection > l.scrollToSelection ? "to selection" : "preserve", d = a || !this.docView.matchesNode(t.doc, u, o);
|
|
33025
33025
|
(d || !t.selection.eq(l.selection)) && (i = !0);
|
|
33026
33026
|
let f = c == "preserve" && i && this.dom.style.overflowAnchor == null && t6(this);
|
|
33027
33027
|
if (i) {
|
|
@@ -33251,7 +33251,7 @@ class p0 {
|
|
|
33251
33251
|
views](https://prosemirror.net/docs/ref/#view.NodeView).
|
|
33252
33252
|
*/
|
|
33253
33253
|
destroy() {
|
|
33254
|
-
this.docView && (V6(this), this.destroyPluginViews(), this.mounted ? (this.docView.update(this.state.doc, [],
|
|
33254
|
+
this.docView && (V6(this), this.destroyPluginViews(), this.mounted ? (this.docView.update(this.state.doc, [], _s(this), this), this.dom.textContent = "") : this.dom.parentNode && this.dom.parentNode.removeChild(this.dom), this.docView.destroy(), this.docView = null, WS());
|
|
33255
33255
|
}
|
|
33256
33256
|
/**
|
|
33257
33257
|
This is true when the view has been
|
|
@@ -33413,7 +33413,7 @@ for (var at = 0; at < 10; at++) Fn[48 + at] = Fn[96 + at] = String(at);
|
|
|
33413
33413
|
for (var at = 1; at <= 24; at++) Fn[at + 111] = "F" + at;
|
|
33414
33414
|
for (var at = 65; at <= 90; at++)
|
|
33415
33415
|
Fn[at] = String.fromCharCode(at + 32), ni[at] = String.fromCharCode(at);
|
|
33416
|
-
for (var
|
|
33416
|
+
for (var Os in Fn) ni.hasOwnProperty(Os) || (ni[Os] = Fn[Os]);
|
|
33417
33417
|
function _k(e) {
|
|
33418
33418
|
var t = Nk && e.metaKey && e.shiftKey && !e.ctrlKey && !e.altKey || wk && e.shiftKey && e.key && e.key.length == 1 || e.key == "Unidentified", n = !t && e.key || (e.shiftKey ? ni : Fn)[e.keyCode] || e.key || "Unidentified";
|
|
33419
33419
|
return n == "Esc" && (n = "Escape"), n == "Del" && (n = "Delete"), n == "Left" && (n = "ArrowLeft"), n == "Up" && (n = "ArrowUp"), n == "Right" && (n = "ArrowRight"), n == "Down" && (n = "ArrowDown"), n;
|
|
@@ -33446,7 +33446,7 @@ function Rk(e) {
|
|
|
33446
33446
|
t[Mk(n)] = e[n];
|
|
33447
33447
|
return t;
|
|
33448
33448
|
}
|
|
33449
|
-
function
|
|
33449
|
+
function Ms(e, t, n = !0) {
|
|
33450
33450
|
return t.altKey && (e = "Alt-" + e), t.ctrlKey && (e = "Ctrl-" + e), t.metaKey && (e = "Meta-" + e), n && t.shiftKey && (e = "Shift-" + e), e;
|
|
33451
33451
|
}
|
|
33452
33452
|
function Dk(e) {
|
|
@@ -33455,18 +33455,18 @@ function Dk(e) {
|
|
|
33455
33455
|
function m0(e) {
|
|
33456
33456
|
let t = Rk(e);
|
|
33457
33457
|
return function(n, r) {
|
|
33458
|
-
let l = _k(r), a, i = t[
|
|
33458
|
+
let l = _k(r), a, i = t[Ms(l, r)];
|
|
33459
33459
|
if (i && i(n.state, n.dispatch, n))
|
|
33460
33460
|
return !0;
|
|
33461
33461
|
if (l.length == 1 && l != " ") {
|
|
33462
33462
|
if (r.shiftKey) {
|
|
33463
|
-
let s = t[
|
|
33463
|
+
let s = t[Ms(l, r, !1)];
|
|
33464
33464
|
if (s && s(n.state, n.dispatch, n))
|
|
33465
33465
|
return !0;
|
|
33466
33466
|
}
|
|
33467
33467
|
if ((r.altKey || r.metaKey || r.ctrlKey) && // Ctrl-Alt may be used for AltGr on Windows
|
|
33468
33468
|
!(Ok && r.ctrlKey && r.altKey) && (a = Fn[r.keyCode]) && a != l) {
|
|
33469
|
-
let s = t[
|
|
33469
|
+
let s = t[Ms(a, r)];
|
|
33470
33470
|
if (s && s(n.state, n.dispatch, n))
|
|
33471
33471
|
return !0;
|
|
33472
33472
|
}
|
|
@@ -33493,7 +33493,7 @@ const g0 = (e, t, n) => {
|
|
|
33493
33493
|
return !0;
|
|
33494
33494
|
if (r.parent.content.size == 0 && ($r(a, "end") || he.isSelectable(a)))
|
|
33495
33495
|
for (let i = r.depth; ; i--) {
|
|
33496
|
-
let s =
|
|
33496
|
+
let s = Ci(e.doc, r.before(i), r.after(i), se.empty);
|
|
33497
33497
|
if (s && s.slice.size < s.to - s.from) {
|
|
33498
33498
|
if (t) {
|
|
33499
33499
|
let o = e.tr.step(s);
|
|
@@ -33537,7 +33537,7 @@ function v0(e, t, n) {
|
|
|
33537
33537
|
return !1;
|
|
33538
33538
|
s = c;
|
|
33539
33539
|
}
|
|
33540
|
-
let u =
|
|
33540
|
+
let u = Ci(e.doc, a, o, se.empty);
|
|
33541
33541
|
if (!u || u.from != a || u instanceof Ge && u.slice.size >= o - a)
|
|
33542
33542
|
return !1;
|
|
33543
33543
|
if (n) {
|
|
@@ -33592,7 +33592,7 @@ const T0 = (e, t, n) => {
|
|
|
33592
33592
|
if (A0(e, l, t, 1))
|
|
33593
33593
|
return !0;
|
|
33594
33594
|
if (r.parent.content.size == 0 && ($r(a, "start") || he.isSelectable(a))) {
|
|
33595
|
-
let i =
|
|
33595
|
+
let i = Ci(e.doc, r.before(), r.after(), se.empty);
|
|
33596
33596
|
if (i && i.slice.size < i.to - i.from) {
|
|
33597
33597
|
if (t) {
|
|
33598
33598
|
let s = e.tr.step(i);
|
|
@@ -33631,7 +33631,7 @@ const Bk = (e, t) => {
|
|
|
33631
33631
|
if (n.node.isTextblock || !$n(e.doc, n.from))
|
|
33632
33632
|
return !1;
|
|
33633
33633
|
l = n.from;
|
|
33634
|
-
} else if (l =
|
|
33634
|
+
} else if (l = Ti(e.doc, n.from, -1), l == null)
|
|
33635
33635
|
return !1;
|
|
33636
33636
|
if (t) {
|
|
33637
33637
|
let a = e.tr.join(l);
|
|
@@ -33644,7 +33644,7 @@ const Bk = (e, t) => {
|
|
|
33644
33644
|
if (n.node.isTextblock || !$n(e.doc, n.to))
|
|
33645
33645
|
return !1;
|
|
33646
33646
|
r = n.to;
|
|
33647
|
-
} else if (r =
|
|
33647
|
+
} else if (r = Ti(e.doc, n.to, 1), r == null)
|
|
33648
33648
|
return !1;
|
|
33649
33649
|
return t && t(e.tr.join(r).scrollIntoView()), !0;
|
|
33650
33650
|
}, Hk = (e, t) => {
|
|
@@ -33915,7 +33915,7 @@ function eA(e) {
|
|
|
33915
33915
|
return !0;
|
|
33916
33916
|
};
|
|
33917
33917
|
}
|
|
33918
|
-
function
|
|
33918
|
+
function Ni(e) {
|
|
33919
33919
|
const { state: t, transaction: n } = e;
|
|
33920
33920
|
let { selection: r } = n, { doc: l } = n, { storedMarks: a } = n;
|
|
33921
33921
|
return {
|
|
@@ -33940,7 +33940,7 @@ function Ai(e) {
|
|
|
33940
33940
|
}
|
|
33941
33941
|
};
|
|
33942
33942
|
}
|
|
33943
|
-
class
|
|
33943
|
+
class wi {
|
|
33944
33944
|
constructor(t) {
|
|
33945
33945
|
this.editor = t.editor, this.rawCommands = this.editor.extensionManager.commands, this.customState = t.state;
|
|
33946
33946
|
}
|
|
@@ -33985,7 +33985,7 @@ class Ni {
|
|
|
33985
33985
|
tr: t,
|
|
33986
33986
|
editor: l,
|
|
33987
33987
|
view: i,
|
|
33988
|
-
state:
|
|
33988
|
+
state: Ni({
|
|
33989
33989
|
state: a,
|
|
33990
33990
|
transaction: t
|
|
33991
33991
|
}),
|
|
@@ -34031,7 +34031,7 @@ function ue(e, t, n) {
|
|
|
34031
34031
|
parent: e.parent ? ue(e.parent, t, n) : null
|
|
34032
34032
|
}) : e.config[t];
|
|
34033
34033
|
}
|
|
34034
|
-
function
|
|
34034
|
+
function _i(e) {
|
|
34035
34035
|
const t = e.filter((l) => l.type === "extension"), n = e.filter((l) => l.type === "node"), r = e.filter((l) => l.type === "mark");
|
|
34036
34036
|
return {
|
|
34037
34037
|
baseExtensions: t,
|
|
@@ -34040,7 +34040,7 @@ function wi(e) {
|
|
|
34040
34040
|
};
|
|
34041
34041
|
}
|
|
34042
34042
|
function w0(e) {
|
|
34043
|
-
const t = [], { nodeExtensions: n, markExtensions: r } =
|
|
34043
|
+
const t = [], { nodeExtensions: n, markExtensions: r } = _i(e), l = [...n, ...r], a = {
|
|
34044
34044
|
default: null,
|
|
34045
34045
|
rendered: !0,
|
|
34046
34046
|
renderHTML: null,
|
|
@@ -34126,7 +34126,7 @@ function yt(...e) {
|
|
|
34126
34126
|
}), r;
|
|
34127
34127
|
}, {});
|
|
34128
34128
|
}
|
|
34129
|
-
function
|
|
34129
|
+
function To(e, t) {
|
|
34130
34130
|
return t.filter((n) => n.type === e.type.name).filter((n) => n.attribute.rendered).map((n) => n.attribute.renderHTML ? n.attribute.renderHTML(e.attrs) || {} : {
|
|
34131
34131
|
[n.name]: e.attrs[n.name]
|
|
34132
34132
|
}).reduce((n, r) => yt(n, r), {});
|
|
@@ -34169,7 +34169,7 @@ function Nf(e) {
|
|
|
34169
34169
|
}
|
|
34170
34170
|
function lA(e, t) {
|
|
34171
34171
|
var n;
|
|
34172
|
-
const r = w0(e), { nodeExtensions: l, markExtensions: a } =
|
|
34172
|
+
const r = w0(e), { nodeExtensions: l, markExtensions: a } = _i(e), i = (n = l.find((u) => ue(u, "topNode"))) === null || n === void 0 ? void 0 : n.name, s = Object.fromEntries(l.map((u) => {
|
|
34173
34173
|
const c = r.filter((E) => E.type === u.name), d = {
|
|
34174
34174
|
name: u.name,
|
|
34175
34175
|
options: u.options,
|
|
@@ -34204,7 +34204,7 @@ function lA(e, t) {
|
|
|
34204
34204
|
const g = ue(u, "renderHTML", d);
|
|
34205
34205
|
g && (h.toDOM = (E) => g({
|
|
34206
34206
|
node: E,
|
|
34207
|
-
HTMLAttributes:
|
|
34207
|
+
HTMLAttributes: To(E, c)
|
|
34208
34208
|
}));
|
|
34209
34209
|
const b = ue(u, "renderText", d);
|
|
34210
34210
|
return b && (h.toText = b), [u.name, h];
|
|
@@ -34236,7 +34236,7 @@ function lA(e, t) {
|
|
|
34236
34236
|
const g = ue(u, "renderHTML", d);
|
|
34237
34237
|
return g && (h.toDOM = (b) => g({
|
|
34238
34238
|
mark: b,
|
|
34239
|
-
HTMLAttributes:
|
|
34239
|
+
HTMLAttributes: To(b, c)
|
|
34240
34240
|
})), [u.name, h];
|
|
34241
34241
|
}));
|
|
34242
34242
|
return new bm({
|
|
@@ -34245,7 +34245,7 @@ function lA(e, t) {
|
|
|
34245
34245
|
marks: o
|
|
34246
34246
|
});
|
|
34247
34247
|
}
|
|
34248
|
-
function
|
|
34248
|
+
function Rs(e, t) {
|
|
34249
34249
|
return t.nodes[e] || t.marks[e] || null;
|
|
34250
34250
|
}
|
|
34251
34251
|
function wf(e, t) {
|
|
@@ -34272,7 +34272,7 @@ const aA = (e, t = 500) => {
|
|
|
34272
34272
|
function Su(e) {
|
|
34273
34273
|
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
34274
34274
|
}
|
|
34275
|
-
class
|
|
34275
|
+
class Ii {
|
|
34276
34276
|
constructor(t) {
|
|
34277
34277
|
this.find = t.find, this.handler = t.handler;
|
|
34278
34278
|
}
|
|
@@ -34305,13 +34305,13 @@ function Ca(e) {
|
|
|
34305
34305
|
const h = iA(d, f.find);
|
|
34306
34306
|
if (!h)
|
|
34307
34307
|
return;
|
|
34308
|
-
const m = o.state.tr, g =
|
|
34308
|
+
const m = o.state.tr, g = Ni({
|
|
34309
34309
|
state: o.state,
|
|
34310
34310
|
transaction: m
|
|
34311
34311
|
}), b = {
|
|
34312
34312
|
from: r - (h[0].length - a.length),
|
|
34313
34313
|
to: l
|
|
34314
|
-
}, { commands: E, chain: A, can: S } = new
|
|
34314
|
+
}, { commands: E, chain: A, can: S } = new wi({
|
|
34315
34315
|
editor: n,
|
|
34316
34316
|
state: g
|
|
34317
34317
|
});
|
|
@@ -34408,10 +34408,10 @@ function oA(e) {
|
|
|
34408
34408
|
function xa(e) {
|
|
34409
34409
|
return oA(e) !== "Object" ? !1 : e.constructor === Object && Object.getPrototypeOf(e) === Object.prototype;
|
|
34410
34410
|
}
|
|
34411
|
-
function
|
|
34411
|
+
function Oi(e, t) {
|
|
34412
34412
|
const n = { ...e };
|
|
34413
34413
|
return xa(e) && xa(t) && Object.keys(t).forEach((r) => {
|
|
34414
|
-
xa(t[r]) && xa(e[r]) ? n[r] =
|
|
34414
|
+
xa(t[r]) && xa(e[r]) ? n[r] = Oi(e[r], t[r]) : n[r] = t[r];
|
|
34415
34415
|
}), n;
|
|
34416
34416
|
}
|
|
34417
34417
|
class Hn {
|
|
@@ -34435,7 +34435,7 @@ class Hn {
|
|
|
34435
34435
|
configure(t = {}) {
|
|
34436
34436
|
const n = this.extend({
|
|
34437
34437
|
...this.config,
|
|
34438
|
-
addOptions: () =>
|
|
34438
|
+
addOptions: () => Oi(this.options, t)
|
|
34439
34439
|
});
|
|
34440
34440
|
return n.name = this.name, n.parent = this.parent, n;
|
|
34441
34441
|
}
|
|
@@ -34478,7 +34478,7 @@ const dA = (e, t, n) => {
|
|
|
34478
34478
|
}) : [];
|
|
34479
34479
|
};
|
|
34480
34480
|
function fA(e) {
|
|
34481
|
-
const { editor: t, state: n, from: r, to: l, rule: a, pasteEvent: i, dropEvent: s } = e, { commands: o, chain: u, can: c } = new
|
|
34481
|
+
const { editor: t, state: n, from: r, to: l, rule: a, pasteEvent: i, dropEvent: s } = e, { commands: o, chain: u, can: c } = new wi({
|
|
34482
34482
|
editor: t,
|
|
34483
34483
|
state: n
|
|
34484
34484
|
}), d = [];
|
|
@@ -34523,7 +34523,7 @@ function pA(e) {
|
|
|
34523
34523
|
s = null;
|
|
34524
34524
|
}
|
|
34525
34525
|
const o = ({ state: c, from: d, to: f, rule: h, pasteEvt: m }) => {
|
|
34526
|
-
const g = c.tr, b =
|
|
34526
|
+
const g = c.tr, b = Ni({
|
|
34527
34527
|
state: c,
|
|
34528
34528
|
transaction: g
|
|
34529
34529
|
});
|
|
@@ -34661,7 +34661,7 @@ class Dr {
|
|
|
34661
34661
|
options: n.options,
|
|
34662
34662
|
storage: n.storage,
|
|
34663
34663
|
editor: this.editor,
|
|
34664
|
-
type:
|
|
34664
|
+
type: Rs(n.name, this.schema)
|
|
34665
34665
|
}, l = ue(n, "addCommands", r);
|
|
34666
34666
|
return l ? {
|
|
34667
34667
|
...t,
|
|
@@ -34680,7 +34680,7 @@ class Dr {
|
|
|
34680
34680
|
options: i.options,
|
|
34681
34681
|
storage: i.storage,
|
|
34682
34682
|
editor: t,
|
|
34683
|
-
type:
|
|
34683
|
+
type: Rs(i.name, this.schema)
|
|
34684
34684
|
}, o = [], u = ue(i, "addKeyboardShortcuts", s);
|
|
34685
34685
|
let c = {};
|
|
34686
34686
|
if (i.type === "mark" && ue(i, "exitable", s) && (c.ArrowRight = () => Hn.handleExit({ editor: t, mark: i })), u) {
|
|
@@ -34724,7 +34724,7 @@ class Dr {
|
|
|
34724
34724
|
* @returns An object with all node views where the key is the node name and the value is the node view function
|
|
34725
34725
|
*/
|
|
34726
34726
|
get nodeViews() {
|
|
34727
|
-
const { editor: t } = this, { nodeExtensions: n } =
|
|
34727
|
+
const { editor: t } = this, { nodeExtensions: n } = _i(this.extensions);
|
|
34728
34728
|
return Object.fromEntries(n.filter((r) => !!ue(r, "addNodeView")).map((r) => {
|
|
34729
34729
|
const l = this.attributes.filter((o) => o.type === r.name), a = {
|
|
34730
34730
|
name: r.name,
|
|
@@ -34736,7 +34736,7 @@ class Dr {
|
|
|
34736
34736
|
if (!i)
|
|
34737
34737
|
return [];
|
|
34738
34738
|
const s = (o, u, c, d, f) => {
|
|
34739
|
-
const h =
|
|
34739
|
+
const h = To(o, l);
|
|
34740
34740
|
return i()({
|
|
34741
34741
|
// pass-through
|
|
34742
34742
|
node: o,
|
|
@@ -34766,7 +34766,7 @@ class Dr {
|
|
|
34766
34766
|
options: t.options,
|
|
34767
34767
|
storage: t.storage,
|
|
34768
34768
|
editor: this.editor,
|
|
34769
|
-
type:
|
|
34769
|
+
type: Rs(t.name, this.schema)
|
|
34770
34770
|
};
|
|
34771
34771
|
t.type === "mark" && (!((n = Se(ue(t, "keepOnSplit", r))) !== null && n !== void 0) || n) && this.splittableMarks.push(t.name);
|
|
34772
34772
|
const l = ue(t, "onBeforeCreate", r), a = ue(t, "onCreate", r), i = ue(t, "onUpdate", r), s = ue(t, "onSelectionUpdate", r), o = ue(t, "onTransaction", r), u = ue(t, "onFocus", r), c = ue(t, "onBlur", r), d = ue(t, "onDestroy", r);
|
|
@@ -34795,7 +34795,7 @@ class ct {
|
|
|
34795
34795
|
configure(t = {}) {
|
|
34796
34796
|
const n = this.extend({
|
|
34797
34797
|
...this.config,
|
|
34798
|
-
addOptions: () =>
|
|
34798
|
+
addOptions: () => Oi(this.options, t)
|
|
34799
34799
|
});
|
|
34800
34800
|
return n.name = this.name, n.parent = this.parent, n;
|
|
34801
34801
|
}
|
|
@@ -35153,14 +35153,14 @@ const PA = (e) => !("type" in e), BA = (e, t, n) => ({ tr: r, dispatch: l, edito
|
|
|
35153
35153
|
return !0;
|
|
35154
35154
|
}, FA = () => ({ state: e, dispatch: t }) => Bk(e, t), HA = () => ({ state: e, dispatch: t }) => Fk(e, t), UA = () => ({ state: e, dispatch: t }) => g0(e, t), zA = () => ({ state: e, dispatch: t }) => T0(e, t), VA = () => ({ state: e, dispatch: t, tr: n }) => {
|
|
35155
35155
|
try {
|
|
35156
|
-
const r =
|
|
35156
|
+
const r = Ti(e.doc, e.selection.$from.pos, -1);
|
|
35157
35157
|
return r == null ? !1 : (n.join(r, 2), t && t(n), !0);
|
|
35158
35158
|
} catch {
|
|
35159
35159
|
return !1;
|
|
35160
35160
|
}
|
|
35161
35161
|
}, $A = () => ({ state: e, dispatch: t, tr: n }) => {
|
|
35162
35162
|
try {
|
|
35163
|
-
const r =
|
|
35163
|
+
const r = Ti(e.doc, e.selection.$from.pos, 1);
|
|
35164
35164
|
return r == null ? !1 : (n.join(r, 2), t && t(n), !0);
|
|
35165
35165
|
} catch {
|
|
35166
35166
|
return !1;
|
|
@@ -35230,7 +35230,7 @@ const GA = (e, t = {}) => ({ state: n, dispatch: r }) => {
|
|
|
35230
35230
|
const r = nt(e, t.schema);
|
|
35231
35231
|
return Xk(r)(t, n);
|
|
35232
35232
|
}, XA = () => ({ state: e, dispatch: t }) => x0(e, t);
|
|
35233
|
-
function
|
|
35233
|
+
function Mi(e, t) {
|
|
35234
35234
|
return t.nodes[e] ? "node" : t.marks[e] ? "mark" : null;
|
|
35235
35235
|
}
|
|
35236
35236
|
function Of(e, t) {
|
|
@@ -35239,7 +35239,7 @@ function Of(e, t) {
|
|
|
35239
35239
|
}
|
|
35240
35240
|
const JA = (e, t) => ({ tr: n, state: r, dispatch: l }) => {
|
|
35241
35241
|
let a = null, i = null;
|
|
35242
|
-
const s =
|
|
35242
|
+
const s = Mi(typeof e == "string" ? e : e.name, r.schema);
|
|
35243
35243
|
return s ? (s === "node" && (a = nt(e, r.schema)), s === "mark" && (i = Wn(e, r.schema)), l && n.selection.ranges.forEach((o) => {
|
|
35244
35244
|
r.doc.nodesBetween(o.$from.pos, o.$to.pos, (u, c) => {
|
|
35245
35245
|
a && a === u.type && n.setNodeMarkup(c, void 0, Of(u.attrs, t)), i && u.marks.length && u.marks.forEach((d) => {
|
|
@@ -35254,7 +35254,7 @@ const JA = (e, t) => ({ tr: n, state: r, dispatch: l }) => {
|
|
|
35254
35254
|
}
|
|
35255
35255
|
return !0;
|
|
35256
35256
|
}, tN = () => ({ state: e, dispatch: t }) => y0(e, t), nN = () => ({ state: e, dispatch: t }) => C0(e, t), rN = () => ({ state: e, dispatch: t }) => $k(e, t), lN = () => ({ state: e, dispatch: t }) => Yk(e, t), aN = () => ({ state: e, dispatch: t }) => Wk(e, t);
|
|
35257
|
-
function
|
|
35257
|
+
function Co(e, t, n = {}, r = {}) {
|
|
35258
35258
|
return Vl(e, t, {
|
|
35259
35259
|
slice: !1,
|
|
35260
35260
|
parseOptions: n,
|
|
@@ -35265,7 +35265,7 @@ const iN = (e, t = !1, n = {}, r = {}) => ({ editor: l, tr: a, dispatch: i, comm
|
|
|
35265
35265
|
var o, u;
|
|
35266
35266
|
const { doc: c } = a;
|
|
35267
35267
|
if (n.preserveWhitespace !== "full") {
|
|
35268
|
-
const d =
|
|
35268
|
+
const d = Co(e, l.schema, n, {
|
|
35269
35269
|
errorOnInvalidContent: (o = r.errorOnInvalidContent) !== null && o !== void 0 ? o : l.options.enableContentCheck
|
|
35270
35270
|
});
|
|
35271
35271
|
return i && a.replaceWith(0, c.content.size, d).setMeta("preventUpdate", !t), !0;
|
|
@@ -35322,7 +35322,7 @@ function cN(e, t) {
|
|
|
35322
35322
|
return i ? { ...i.attrs } : {};
|
|
35323
35323
|
}
|
|
35324
35324
|
function dN(e, t) {
|
|
35325
|
-
const n =
|
|
35325
|
+
const n = Mi(typeof t == "string" ? t : t.name, e.schema);
|
|
35326
35326
|
return n === "node" ? cN(e, t) : n === "mark" ? B0(e, t) : {};
|
|
35327
35327
|
}
|
|
35328
35328
|
function F0(e, t, n) {
|
|
@@ -35347,7 +35347,7 @@ function Fa(e, t, n) {
|
|
|
35347
35347
|
return l ? l.attribute.keepOnSplit : !1;
|
|
35348
35348
|
}));
|
|
35349
35349
|
}
|
|
35350
|
-
function
|
|
35350
|
+
function xo(e, t, n = {}) {
|
|
35351
35351
|
const { empty: r, ranges: l } = e.selection, a = t ? Wn(t, e.schema) : null;
|
|
35352
35352
|
if (r)
|
|
35353
35353
|
return !!(e.storedMarks || e.selection.$from.marks()).filter((d) => a ? a.name === d.type.name : !0).find((d) => ri(d.attrs, n, { strict: !1 }));
|
|
@@ -35372,12 +35372,12 @@ function Co(e, t, n = {}) {
|
|
|
35372
35372
|
}
|
|
35373
35373
|
function fN(e, t, n = {}) {
|
|
35374
35374
|
if (!t)
|
|
35375
|
-
return $l(e, null, n) ||
|
|
35376
|
-
const r =
|
|
35377
|
-
return r === "node" ? $l(e, t, n) : r === "mark" ?
|
|
35375
|
+
return $l(e, null, n) || xo(e, null, n);
|
|
35376
|
+
const r = Mi(t, e.schema);
|
|
35377
|
+
return r === "node" ? $l(e, t, n) : r === "mark" ? xo(e, t, n) : !1;
|
|
35378
35378
|
}
|
|
35379
35379
|
function Mf(e, t) {
|
|
35380
|
-
const { nodeExtensions: n } =
|
|
35380
|
+
const { nodeExtensions: n } = _i(t), r = n.find((i) => i.name === e);
|
|
35381
35381
|
if (!r)
|
|
35382
35382
|
return !1;
|
|
35383
35383
|
const l = {
|
|
@@ -35387,7 +35387,7 @@ function Mf(e, t) {
|
|
|
35387
35387
|
}, a = Se(ue(r, "group", l));
|
|
35388
35388
|
return typeof a != "string" ? !1 : a.split(" ").includes("list");
|
|
35389
35389
|
}
|
|
35390
|
-
function
|
|
35390
|
+
function Ri(e, { checkChildren: t = !0, ignoreWhitespace: n = !1 } = {}) {
|
|
35391
35391
|
var r;
|
|
35392
35392
|
if (n) {
|
|
35393
35393
|
if (e.type.name === "hardBreak")
|
|
@@ -35404,7 +35404,7 @@ function Mi(e, { checkChildren: t = !0, ignoreWhitespace: n = !1 } = {}) {
|
|
|
35404
35404
|
if (t) {
|
|
35405
35405
|
let l = !0;
|
|
35406
35406
|
return e.content.forEach((a) => {
|
|
35407
|
-
l !== !1 && (
|
|
35407
|
+
l !== !1 && (Ri(a, { ignoreWhitespace: n, checkChildren: t }) || (l = !1));
|
|
35408
35408
|
}), l;
|
|
35409
35409
|
}
|
|
35410
35410
|
return !1;
|
|
@@ -35565,7 +35565,7 @@ const TN = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
|
|
|
35565
35565
|
n.ensureMarks(I);
|
|
35566
35566
|
}
|
|
35567
35567
|
return !0;
|
|
35568
|
-
},
|
|
35568
|
+
}, Ds = (e, t) => {
|
|
35569
35569
|
const n = Au((i) => i.type === t)(e.selection);
|
|
35570
35570
|
if (!n)
|
|
35571
35571
|
return !0;
|
|
@@ -35574,7 +35574,7 @@ const TN = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
|
|
|
35574
35574
|
return !0;
|
|
35575
35575
|
const l = e.doc.nodeAt(r);
|
|
35576
35576
|
return n.node.type === l?.type && $n(e.doc, n.pos) && e.join(n.pos), !0;
|
|
35577
|
-
},
|
|
35577
|
+
}, Ls = (e, t) => {
|
|
35578
35578
|
const n = Au((i) => i.type === t)(e.selection);
|
|
35579
35579
|
if (!n)
|
|
35580
35580
|
return !0;
|
|
@@ -35592,15 +35592,15 @@ const TN = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
|
|
|
35592
35592
|
if (I.node.type === h)
|
|
35593
35593
|
return u.liftListItem(m);
|
|
35594
35594
|
if (Mf(I.node.type.name, d) && h.validContent(I.node.content) && s)
|
|
35595
|
-
return o().command(() => (a.setNodeMarkup(I.pos, h), !0)).command(() =>
|
|
35595
|
+
return o().command(() => (a.setNodeMarkup(I.pos, h), !0)).command(() => Ds(a, h)).command(() => Ls(a, h)).run();
|
|
35596
35596
|
}
|
|
35597
|
-
return !n || !O || !s ? o().command(() => c().wrapInList(h, r) ? !0 : u.clearNodes()).wrapInList(h, r).command(() =>
|
|
35597
|
+
return !n || !O || !s ? o().command(() => c().wrapInList(h, r) ? !0 : u.clearNodes()).wrapInList(h, r).command(() => Ds(a, h)).command(() => Ls(a, h)).run() : o().command(() => {
|
|
35598
35598
|
const C = c().wrapInList(h, r), w = O.filter((_) => f.includes(_.type.name));
|
|
35599
35599
|
return a.ensureMarks(w), C ? !0 : u.clearNodes();
|
|
35600
|
-
}).wrapInList(h, r).command(() =>
|
|
35600
|
+
}).wrapInList(h, r).command(() => Ds(a, h)).command(() => Ls(a, h)).run();
|
|
35601
35601
|
}, SN = (e, t = {}, n = {}) => ({ state: r, commands: l }) => {
|
|
35602
35602
|
const { extendEmptyMarkRange: a = !1 } = n, i = Wn(e, r.schema);
|
|
35603
|
-
return
|
|
35603
|
+
return xo(r, i, t) ? l.unsetMark(i, { extendEmptyMarkRange: a }) : l.setMark(i, t);
|
|
35604
35604
|
}, kN = (e, t, n = {}) => ({ state: r, commands: l }) => {
|
|
35605
35605
|
const a = nt(e, r.schema), i = nt(t, r.schema), s = $l(r, a, n);
|
|
35606
35606
|
let o;
|
|
@@ -35649,7 +35649,7 @@ const TN = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
|
|
|
35649
35649
|
return n.removeStoredMark(o), !0;
|
|
35650
35650
|
}, IN = (e, t = {}) => ({ tr: n, state: r, dispatch: l }) => {
|
|
35651
35651
|
let a = null, i = null;
|
|
35652
|
-
const s =
|
|
35652
|
+
const s = Mi(typeof e == "string" ? e : e.name, r.schema);
|
|
35653
35653
|
return s ? (s === "node" && (a = nt(e, r.schema)), s === "mark" && (i = Wn(e, r.schema)), l && n.selection.ranges.forEach((o) => {
|
|
35654
35654
|
const u = o.$from.pos, c = o.$to.pos;
|
|
35655
35655
|
let d, f, h, m;
|
|
@@ -35871,12 +35871,12 @@ const DN = ct.create({
|
|
|
35871
35871
|
if (!r || l)
|
|
35872
35872
|
return;
|
|
35873
35873
|
const { empty: a, from: i, to: s } = t.selection, o = Ce.atStart(t.doc).from, u = Ce.atEnd(t.doc).to;
|
|
35874
|
-
if (a || !(i === o && s === u) || !
|
|
35874
|
+
if (a || !(i === o && s === u) || !Ri(n.doc))
|
|
35875
35875
|
return;
|
|
35876
|
-
const f = n.tr, h =
|
|
35876
|
+
const f = n.tr, h = Ni({
|
|
35877
35877
|
state: n,
|
|
35878
35878
|
transaction: f
|
|
35879
|
-
}), { commands: m } = new
|
|
35879
|
+
}), { commands: m } = new wi({
|
|
35880
35880
|
editor: this.editor,
|
|
35881
35881
|
state: h
|
|
35882
35882
|
});
|
|
@@ -36274,7 +36274,7 @@ class qN extends tA {
|
|
|
36274
36274
|
* Creates an command manager.
|
|
36275
36275
|
*/
|
|
36276
36276
|
createCommandManager() {
|
|
36277
|
-
this.commandManager = new
|
|
36277
|
+
this.commandManager = new wi({
|
|
36278
36278
|
editor: this
|
|
36279
36279
|
});
|
|
36280
36280
|
}
|
|
@@ -36291,7 +36291,7 @@ class qN extends tA {
|
|
|
36291
36291
|
var t;
|
|
36292
36292
|
let n;
|
|
36293
36293
|
try {
|
|
36294
|
-
n =
|
|
36294
|
+
n = Co(this.options.content, this.schema, this.options.parseOptions, { errorOnInvalidContent: this.options.enableContentCheck });
|
|
36295
36295
|
} catch (i) {
|
|
36296
36296
|
if (!(i instanceof Error) || !["[tiptap error]: Invalid JSON content", "[tiptap error]: Invalid HTML content"].includes(i.message))
|
|
36297
36297
|
throw i;
|
|
@@ -36301,7 +36301,7 @@ class qN extends tA {
|
|
|
36301
36301
|
disableCollaboration: () => {
|
|
36302
36302
|
this.storage.collaboration && (this.storage.collaboration.isDisabled = !0), this.options.extensions = this.options.extensions.filter((s) => s.name !== "collaboration"), this.createExtensionManager();
|
|
36303
36303
|
}
|
|
36304
|
-
}), n =
|
|
36304
|
+
}), n = Co(this.options.content, this.schema, this.options.parseOptions, { errorOnInvalidContent: !1 });
|
|
36305
36305
|
}
|
|
36306
36306
|
const r = D0(n, this.options.autofocus);
|
|
36307
36307
|
this.view = new p0(this.options.element, {
|
|
@@ -36429,7 +36429,7 @@ class qN extends tA {
|
|
|
36429
36429
|
* Check if there is no content.
|
|
36430
36430
|
*/
|
|
36431
36431
|
get isEmpty() {
|
|
36432
|
-
return
|
|
36432
|
+
return Ri(this.state.doc);
|
|
36433
36433
|
}
|
|
36434
36434
|
/**
|
|
36435
36435
|
* Get the number of characters for the current document.
|
|
@@ -36473,7 +36473,7 @@ class qN extends tA {
|
|
|
36473
36473
|
}
|
|
36474
36474
|
}
|
|
36475
36475
|
function qr(e) {
|
|
36476
|
-
return new
|
|
36476
|
+
return new Ii({
|
|
36477
36477
|
find: e.find,
|
|
36478
36478
|
handler: ({ state: t, range: n, match: r }) => {
|
|
36479
36479
|
const l = Se(e.getAttributes, void 0, r);
|
|
@@ -36492,7 +36492,7 @@ function qr(e) {
|
|
|
36492
36492
|
});
|
|
36493
36493
|
}
|
|
36494
36494
|
function WN(e) {
|
|
36495
|
-
return new
|
|
36495
|
+
return new Ii({
|
|
36496
36496
|
find: e.find,
|
|
36497
36497
|
handler: ({ state: t, range: n, match: r }) => {
|
|
36498
36498
|
const l = Se(e.getAttributes, void 0, r) || {}, { tr: a } = t, i = n.from;
|
|
@@ -36512,8 +36512,8 @@ function WN(e) {
|
|
|
36512
36512
|
}
|
|
36513
36513
|
});
|
|
36514
36514
|
}
|
|
36515
|
-
function
|
|
36516
|
-
return new
|
|
36515
|
+
function So(e) {
|
|
36516
|
+
return new Ii({
|
|
36517
36517
|
find: e.find,
|
|
36518
36518
|
handler: ({ state: t, range: n, match: r }) => {
|
|
36519
36519
|
const l = t.doc.resolve(n.from), a = Se(e.getAttributes, void 0, r) || {};
|
|
@@ -36524,7 +36524,7 @@ function xo(e) {
|
|
|
36524
36524
|
});
|
|
36525
36525
|
}
|
|
36526
36526
|
function ql(e) {
|
|
36527
|
-
return new
|
|
36527
|
+
return new Ii({
|
|
36528
36528
|
find: e.find,
|
|
36529
36529
|
handler: ({ state: t, range: n, match: r, chain: l }) => {
|
|
36530
36530
|
const a = Se(e.getAttributes, void 0, r) || {}, i = t.tr.delete(n.from, n.to), o = i.doc.resolve(n.from).blockRange(), u = o && su(o, e.type, a);
|
|
@@ -36567,7 +36567,7 @@ class Nt {
|
|
|
36567
36567
|
configure(t = {}) {
|
|
36568
36568
|
const n = this.extend({
|
|
36569
36569
|
...this.config,
|
|
36570
|
-
addOptions: () =>
|
|
36570
|
+
addOptions: () => Oi(this.options, t)
|
|
36571
36571
|
});
|
|
36572
36572
|
return n.name = this.name, n.parent = this.parent, n;
|
|
36573
36573
|
}
|
|
@@ -36617,7 +36617,7 @@ function YN(e, t) {
|
|
|
36617
36617
|
function jN(e) {
|
|
36618
36618
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
36619
36619
|
}
|
|
36620
|
-
var
|
|
36620
|
+
var ko = { exports: {} }, Ps = {};
|
|
36621
36621
|
/**
|
|
36622
36622
|
* @license React
|
|
36623
36623
|
* use-sync-external-store-shim.production.min.js
|
|
@@ -36629,7 +36629,7 @@ var So = { exports: {} }, Ls = {};
|
|
|
36629
36629
|
*/
|
|
36630
36630
|
var Df;
|
|
36631
36631
|
function GN() {
|
|
36632
|
-
if (Df) return
|
|
36632
|
+
if (Df) return Ps;
|
|
36633
36633
|
Df = 1;
|
|
36634
36634
|
var e = ge;
|
|
36635
36635
|
function t(d, f) {
|
|
@@ -36660,9 +36660,9 @@ function GN() {
|
|
|
36660
36660
|
return f();
|
|
36661
36661
|
}
|
|
36662
36662
|
var c = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? u : s;
|
|
36663
|
-
return
|
|
36663
|
+
return Ps.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : c, Ps;
|
|
36664
36664
|
}
|
|
36665
|
-
var
|
|
36665
|
+
var Bs = {};
|
|
36666
36666
|
/**
|
|
36667
36667
|
* @license React
|
|
36668
36668
|
* use-sync-external-store-shim.development.js
|
|
@@ -36740,17 +36740,17 @@ function KN() {
|
|
|
36740
36740
|
return O();
|
|
36741
36741
|
}
|
|
36742
36742
|
var g = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", b = !g, E = b ? m : f, A = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : E;
|
|
36743
|
-
|
|
36744
|
-
}()),
|
|
36743
|
+
Bs.useSyncExternalStore = A, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
36744
|
+
}()), Bs;
|
|
36745
36745
|
}
|
|
36746
|
-
process.env.NODE_ENV === "production" ?
|
|
36747
|
-
var
|
|
36746
|
+
process.env.NODE_ENV === "production" ? ko.exports = GN() : ko.exports = KN();
|
|
36747
|
+
var Di = ko.exports;
|
|
36748
36748
|
const QN = (...e) => (t) => {
|
|
36749
36749
|
e.forEach((n) => {
|
|
36750
36750
|
typeof n == "function" ? n(t) : n && (n.current = t);
|
|
36751
36751
|
});
|
|
36752
36752
|
}, XN = ({ contentComponent: e }) => {
|
|
36753
|
-
const t =
|
|
36753
|
+
const t = Di.useSyncExternalStore(e.subscribe, e.getSnapshot, e.getServerSnapshot);
|
|
36754
36754
|
return ge.createElement(ge.Fragment, null, Object.values(t));
|
|
36755
36755
|
};
|
|
36756
36756
|
function JN() {
|
|
@@ -36891,7 +36891,7 @@ var n4 = function e(t, n) {
|
|
|
36891
36891
|
return !0;
|
|
36892
36892
|
}
|
|
36893
36893
|
return t !== t && n !== n;
|
|
36894
|
-
}, r4 = /* @__PURE__ */ jN(n4),
|
|
36894
|
+
}, r4 = /* @__PURE__ */ jN(n4), Ao = { exports: {} }, Fs = {};
|
|
36895
36895
|
/**
|
|
36896
36896
|
* @license React
|
|
36897
36897
|
* use-sync-external-store-shim/with-selector.production.min.js
|
|
@@ -36903,14 +36903,14 @@ var n4 = function e(t, n) {
|
|
|
36903
36903
|
*/
|
|
36904
36904
|
var Pf;
|
|
36905
36905
|
function l4() {
|
|
36906
|
-
if (Pf) return
|
|
36906
|
+
if (Pf) return Fs;
|
|
36907
36907
|
Pf = 1;
|
|
36908
|
-
var e = ge, t =
|
|
36908
|
+
var e = ge, t = Di;
|
|
36909
36909
|
function n(u, c) {
|
|
36910
36910
|
return u === c && (u !== 0 || 1 / u === 1 / c) || u !== u && c !== c;
|
|
36911
36911
|
}
|
|
36912
36912
|
var r = typeof Object.is == "function" ? Object.is : n, l = t.useSyncExternalStore, a = e.useRef, i = e.useEffect, s = e.useMemo, o = e.useDebugValue;
|
|
36913
|
-
return
|
|
36913
|
+
return Fs.useSyncExternalStoreWithSelector = function(u, c, d, f, h) {
|
|
36914
36914
|
var m = a(null);
|
|
36915
36915
|
if (m.current === null) {
|
|
36916
36916
|
var g = { hasValue: !1, value: null };
|
|
@@ -36940,9 +36940,9 @@ function l4() {
|
|
|
36940
36940
|
return i(function() {
|
|
36941
36941
|
g.hasValue = !0, g.value = b;
|
|
36942
36942
|
}, [b]), o(b), b;
|
|
36943
|
-
},
|
|
36943
|
+
}, Fs;
|
|
36944
36944
|
}
|
|
36945
|
-
var
|
|
36945
|
+
var Hs = {};
|
|
36946
36946
|
/**
|
|
36947
36947
|
* @license React
|
|
36948
36948
|
* use-sync-external-store-shim/with-selector.development.js
|
|
@@ -36956,7 +36956,7 @@ var Bf;
|
|
|
36956
36956
|
function a4() {
|
|
36957
36957
|
return Bf || (Bf = 1, process.env.NODE_ENV !== "production" && function() {
|
|
36958
36958
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
36959
|
-
var e = ge, t =
|
|
36959
|
+
var e = ge, t = Di;
|
|
36960
36960
|
function n(c, d) {
|
|
36961
36961
|
return c === d && (c !== 0 || 1 / c === 1 / d) || c !== c && d !== d;
|
|
36962
36962
|
}
|
|
@@ -36995,11 +36995,11 @@ function a4() {
|
|
|
36995
36995
|
b.hasValue = !0, b.value = O;
|
|
36996
36996
|
}, [O]), o(O), O;
|
|
36997
36997
|
}
|
|
36998
|
-
|
|
36999
|
-
}()),
|
|
36998
|
+
Hs.useSyncExternalStoreWithSelector = u, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
36999
|
+
}()), Hs;
|
|
37000
37000
|
}
|
|
37001
|
-
process.env.NODE_ENV === "production" ?
|
|
37002
|
-
var i4 =
|
|
37001
|
+
process.env.NODE_ENV === "production" ? Ao.exports = l4() : Ao.exports = a4();
|
|
37002
|
+
var i4 = Ao.exports;
|
|
37003
37003
|
const s4 = typeof window < "u" ? qe : me;
|
|
37004
37004
|
class o4 {
|
|
37005
37005
|
constructor(t) {
|
|
@@ -37044,7 +37044,7 @@ function u4(e) {
|
|
|
37044
37044
|
const [n] = Q(() => new o4(e.editor)), r = i4.useSyncExternalStoreWithSelector(n.subscribe, n.getSnapshot, n.getServerSnapshot, e.selector, (t = e.equalityFn) !== null && t !== void 0 ? t : r4);
|
|
37045
37045
|
return s4(() => n.watch(e.editor), [e.editor, n]), eh(r), r;
|
|
37046
37046
|
}
|
|
37047
|
-
const Ff = process.env.NODE_ENV !== "production",
|
|
37047
|
+
const Ff = process.env.NODE_ENV !== "production", No = typeof window > "u", c4 = No || !!(typeof window < "u" && window.next);
|
|
37048
37048
|
class Nu {
|
|
37049
37049
|
constructor(t) {
|
|
37050
37050
|
this.editor = null, this.subscriptions = /* @__PURE__ */ new Set(), this.isComponentMounted = !1, this.previousDeps = null, this.instanceId = "", this.options = t, this.subscriptions = /* @__PURE__ */ new Set(), this.setEditor(this.getInitialEditor()), this.scheduleDestroy(), this.getEditor = this.getEditor.bind(this), this.getServerSnapshot = this.getServerSnapshot.bind(this), this.subscribe = this.subscribe.bind(this), this.refreshEditorInstance = this.refreshEditorInstance.bind(this), this.scheduleDestroy = this.scheduleDestroy.bind(this), this.onRender = this.onRender.bind(this), this.createEditor = this.createEditor.bind(this);
|
|
@@ -37054,8 +37054,8 @@ class Nu {
|
|
|
37054
37054
|
}
|
|
37055
37055
|
getInitialEditor() {
|
|
37056
37056
|
if (this.options.current.immediatelyRender === void 0)
|
|
37057
|
-
return
|
|
37058
|
-
if (this.options.current.immediatelyRender &&
|
|
37057
|
+
return No || c4 ? (Ff && console.warn("Tiptap Error: SSR has been detected, please set `immediatelyRender` explicitly to `false` to avoid hydration mismatches."), null) : this.createEditor();
|
|
37058
|
+
if (this.options.current.immediatelyRender && No && Ff)
|
|
37059
37059
|
throw new Error("Tiptap Error: SSR has been detected, and `immediatelyRender` has been set to `true` this is an unsupported configuration that may result in errors, explicitly set `immediatelyRender` to `false` to avoid hydration mismatches.");
|
|
37060
37060
|
return this.options.current.immediatelyRender ? this.createEditor() : null;
|
|
37061
37061
|
}
|
|
@@ -37185,17 +37185,17 @@ class Nu {
|
|
|
37185
37185
|
function d4(e = {}, t = []) {
|
|
37186
37186
|
const n = ee(e);
|
|
37187
37187
|
n.current = e;
|
|
37188
|
-
const [r] = Q(() => new Nu(n)), l =
|
|
37188
|
+
const [r] = Q(() => new Nu(n)), l = Di.useSyncExternalStore(r.subscribe, r.getEditor, r.getServerSnapshot);
|
|
37189
37189
|
return eh(l), me(r.onRender(t)), u4({
|
|
37190
37190
|
editor: l,
|
|
37191
37191
|
selector: ({ transactionNumber: a }) => e.shouldRerenderOnTransaction === !1 ? null : e.immediatelyRender && a === 0 ? 0 : a + 1
|
|
37192
37192
|
}), l;
|
|
37193
37193
|
}
|
|
37194
|
-
const f4 =
|
|
37194
|
+
const f4 = _o({
|
|
37195
37195
|
editor: null
|
|
37196
37196
|
});
|
|
37197
37197
|
f4.Consumer;
|
|
37198
|
-
const h4 =
|
|
37198
|
+
const h4 = _o({
|
|
37199
37199
|
onDragStart: void 0
|
|
37200
37200
|
}), p4 = () => Zf(h4);
|
|
37201
37201
|
ge.forwardRef((e, t) => {
|
|
@@ -37496,14 +37496,14 @@ const m4 = /^\s*>\s$/, b4 = Nt.create({
|
|
|
37496
37496
|
},
|
|
37497
37497
|
addInputRules() {
|
|
37498
37498
|
return [
|
|
37499
|
-
|
|
37499
|
+
So({
|
|
37500
37500
|
find: N4,
|
|
37501
37501
|
type: this.type,
|
|
37502
37502
|
getAttributes: (e) => ({
|
|
37503
37503
|
language: e[1]
|
|
37504
37504
|
})
|
|
37505
37505
|
}),
|
|
37506
|
-
|
|
37506
|
+
So({
|
|
37507
37507
|
find: w4,
|
|
37508
37508
|
type: this.type,
|
|
37509
37509
|
getAttributes: (e) => ({
|
|
@@ -37939,7 +37939,7 @@ const z4 = ct.create({
|
|
|
37939
37939
|
}), {});
|
|
37940
37940
|
},
|
|
37941
37941
|
addInputRules() {
|
|
37942
|
-
return this.options.levels.map((e) =>
|
|
37942
|
+
return this.options.levels.map((e) => So({
|
|
37943
37943
|
find: new RegExp(`^(#{${Math.min(...this.options.levels)},${e}})\\s$`),
|
|
37944
37944
|
type: this.type,
|
|
37945
37945
|
getAttributes: {
|
|
@@ -38195,9 +38195,9 @@ function G4(e, t, n, r) {
|
|
|
38195
38195
|
if (i && i.getMeta(cr))
|
|
38196
38196
|
return i.getMeta(cr).redo ? new wn(e.done.addTransform(n, void 0, r, Ha(t)), e.undone, zf(n.mapping.maps), e.prevTime, e.prevComposition) : new wn(e.done, e.undone.addTransform(n, void 0, r, Ha(t)), null, e.prevTime, e.prevComposition);
|
|
38197
38197
|
if (n.getMeta("addToHistory") !== !1 && !(i && i.getMeta("addToHistory") === !1)) {
|
|
38198
|
-
let s = n.getMeta("composition"), o = e.prevTime == 0 || !i && e.prevComposition != s && (e.prevTime < (n.time || 0) - r.newGroupDelay || !K4(n, e.prevRanges)), u = i ?
|
|
38198
|
+
let s = n.getMeta("composition"), o = e.prevTime == 0 || !i && e.prevComposition != s && (e.prevTime < (n.time || 0) - r.newGroupDelay || !K4(n, e.prevRanges)), u = i ? Us(e.prevRanges, n.mapping) : zf(n.mapping.maps);
|
|
38199
38199
|
return new wn(e.done.addTransform(n, o ? t.selection.getBookmark() : void 0, r, Ha(t)), jt.empty, u, n.time, s ?? e.prevComposition);
|
|
38200
|
-
} else return (a = n.getMeta("rebased")) ? new wn(e.done.rebased(n, a), e.undone.rebased(n, a),
|
|
38200
|
+
} else return (a = n.getMeta("rebased")) ? new wn(e.done.rebased(n, a), e.undone.rebased(n, a), Us(e.prevRanges, n.mapping), e.prevTime, e.prevComposition) : new wn(e.done.addMaps(n.mapping.maps), e.undone.addMaps(n.mapping.maps), Us(e.prevRanges, n.mapping), e.prevTime, e.prevComposition);
|
|
38201
38201
|
}
|
|
38202
38202
|
function K4(e, t) {
|
|
38203
38203
|
if (!t)
|
|
@@ -38216,7 +38216,7 @@ function zf(e) {
|
|
|
38216
38216
|
e[n].forEach((r, l, a, i) => t.push(a, i));
|
|
38217
38217
|
return t;
|
|
38218
38218
|
}
|
|
38219
|
-
function
|
|
38219
|
+
function Us(e, t) {
|
|
38220
38220
|
if (!e)
|
|
38221
38221
|
return null;
|
|
38222
38222
|
let n = [];
|
|
@@ -38233,18 +38233,18 @@ function Q4(e, t, n) {
|
|
|
38233
38233
|
let i = a.selection.resolve(a.transform.doc), s = (n ? e.done : e.undone).addTransform(a.transform, t.selection.getBookmark(), l, r), o = new wn(n ? s : a.remaining, n ? a.remaining : s, null, 0, -1);
|
|
38234
38234
|
return a.transform.setSelection(i).setMeta(cr, { redo: n, historyState: o });
|
|
38235
38235
|
}
|
|
38236
|
-
let
|
|
38236
|
+
let zs = !1, Vf = null;
|
|
38237
38237
|
function Ha(e) {
|
|
38238
38238
|
let t = e.plugins;
|
|
38239
38239
|
if (Vf != t) {
|
|
38240
|
-
|
|
38240
|
+
zs = !1, Vf = t;
|
|
38241
38241
|
for (let n = 0; n < t.length; n++)
|
|
38242
38242
|
if (t[n].spec.historyPreserveItems) {
|
|
38243
|
-
|
|
38243
|
+
zs = !0;
|
|
38244
38244
|
break;
|
|
38245
38245
|
}
|
|
38246
38246
|
}
|
|
38247
|
-
return
|
|
38247
|
+
return zs;
|
|
38248
38248
|
}
|
|
38249
38249
|
const cr = new Kt("history"), X4 = new Kt("closeHistory");
|
|
38250
38250
|
function J4(e = {}) {
|
|
@@ -38640,7 +38640,7 @@ const V0 = z0(!1, !0), $0 = z0(!0, !0), Z4 = ct.create({
|
|
|
38640
38640
|
return null;
|
|
38641
38641
|
const a = this.editor.isEmpty;
|
|
38642
38642
|
return e.descendants((i, s) => {
|
|
38643
|
-
const o = r >= s && r <= s + i.nodeSize, u = !i.isLeaf &&
|
|
38643
|
+
const o = r >= s && r <= s + i.nodeSize, u = !i.isLeaf && Ri(i);
|
|
38644
38644
|
if ((o || !this.options.showOnlyCurrent) && u) {
|
|
38645
38645
|
const c = [this.options.emptyNodeClass];
|
|
38646
38646
|
a && c.push(this.options.emptyEditorClass);
|
|
@@ -39258,7 +39258,7 @@ const j0 = //g, si = (e) => String(e ?? "").replace(j0, "").trim(), ww = (e)
|
|
|
39258
39258
|
if (Array.isArray(n)) return n.map(si).filter(Boolean);
|
|
39259
39259
|
const r = si(n);
|
|
39260
39260
|
return r ? [r] : [];
|
|
39261
|
-
},
|
|
39261
|
+
}, Vs = (e) => typeof e == "string" ? decodeURIComponent(e.split("/").pop()?.split("?")[0] || "file") : e.name;
|
|
39262
39262
|
async function Ow(e) {
|
|
39263
39263
|
const t = e.split("/").pop()?.split("?")[0] || "file", n = decodeURIComponent(t);
|
|
39264
39264
|
try {
|
|
@@ -39270,7 +39270,7 @@ async function Ow(e) {
|
|
|
39270
39270
|
return e;
|
|
39271
39271
|
}
|
|
39272
39272
|
}
|
|
39273
|
-
const
|
|
39273
|
+
const wo = async (e, t, n, r, l) => {
|
|
39274
39274
|
if (!(n == null || n === "")) {
|
|
39275
39275
|
if (n instanceof File) {
|
|
39276
39276
|
e.append(t, n);
|
|
@@ -39284,11 +39284,11 @@ const No = async (e, t, n, r, l) => {
|
|
|
39284
39284
|
if (Array.isArray(n)) {
|
|
39285
39285
|
if (r.has(t)) {
|
|
39286
39286
|
for (const a of n)
|
|
39287
|
-
await
|
|
39287
|
+
await wo(e, t, a, r, l);
|
|
39288
39288
|
return;
|
|
39289
39289
|
}
|
|
39290
39290
|
for (let a = 0; a < n.length; a += 1)
|
|
39291
|
-
await
|
|
39291
|
+
await wo(e, `${t}[${a}]`, n[a], r, l);
|
|
39292
39292
|
return;
|
|
39293
39293
|
}
|
|
39294
39294
|
e.append(t, String(n));
|
|
@@ -39347,17 +39347,17 @@ async function Rw(e) {
|
|
|
39347
39347
|
const S = r[`${g}-${A}`];
|
|
39348
39348
|
S && E.push(S);
|
|
39349
39349
|
}
|
|
39350
|
-
E.length > 0 && (o[g] = E, u.push(` [附带${E.length}个文件: ${E.map(
|
|
39350
|
+
E.length > 0 && (o[g] = E, u.push(` [附带${E.length}个文件: ${E.map(Vs).join(", ")}] `));
|
|
39351
39351
|
} else {
|
|
39352
39352
|
const E = r[g];
|
|
39353
|
-
E && (o[g] = E, u.push(` [附带文件: ${
|
|
39353
|
+
E && (o[g] = E, u.push(` [附带文件: ${Vs(E)}] `));
|
|
39354
39354
|
}
|
|
39355
39355
|
continue;
|
|
39356
39356
|
}
|
|
39357
39357
|
if (g && m.type === "video-upload") {
|
|
39358
39358
|
const b = r[g];
|
|
39359
39359
|
if (b)
|
|
39360
|
-
o[g] = b, u.push(` [附带视频: ${
|
|
39360
|
+
o[g] = b, u.push(` [附带视频: ${Vs(b)}] `);
|
|
39361
39361
|
else {
|
|
39362
39362
|
const E = Na(n, g);
|
|
39363
39363
|
E && (o[g] = E, u.push(E));
|
|
@@ -39382,7 +39382,7 @@ async function Rw(e) {
|
|
|
39382
39382
|
o[E] = b, c.add(E);
|
|
39383
39383
|
}
|
|
39384
39384
|
for (const [m, g] of Object.entries(o))
|
|
39385
|
-
await
|
|
39385
|
+
await wo(f, m, g, c, h.has(m));
|
|
39386
39386
|
return l.forEach((m) => {
|
|
39387
39387
|
f.append("fileUrls", m);
|
|
39388
39388
|
}), {
|
|
@@ -39493,6 +39493,7 @@ const Lw = {
|
|
|
39493
39493
|
disabled: n,
|
|
39494
39494
|
placement: "bottomLeft",
|
|
39495
39495
|
autoAdjustOverflow: Pw,
|
|
39496
|
+
getPopupContainer: yi,
|
|
39496
39497
|
trigger: ["click"],
|
|
39497
39498
|
overlayClassName: "rte-agent-dropdown",
|
|
39498
39499
|
onOpenChange: s,
|
|
@@ -40406,13 +40407,13 @@ const V_ = (e) => {
|
|
|
40406
40407
|
[sn, It]
|
|
40407
40408
|
), Ot = ee(null), [ra, lb] = Q(null), ab = V((U, le) => {
|
|
40408
40409
|
lb(le ? U : null);
|
|
40409
|
-
}, []), Yn = ee(null), [ib, sb] = Q(58), [jn, _u] = Q(58), [
|
|
40410
|
+
}, []), Yn = ee(null), [ib, sb] = Q(58), [jn, _u] = Q(58), [Li, Iu] = Q(!1), Ou = ee(0), Mu = ee(Le), [la, Ru] = Q(!1);
|
|
40410
40411
|
Mu.current !== Le && (Mu.current = Le, Ou.current = (typeof performance < "u" ? performance.now() : Date.now()) + pt, Ru(!0)), me(() => {
|
|
40411
40412
|
if (!la) return;
|
|
40412
40413
|
const U = setTimeout(() => Ru(!1), pt);
|
|
40413
40414
|
return () => clearTimeout(U);
|
|
40414
40415
|
}, [la, Le, pt]);
|
|
40415
|
-
const [Gn, Du] = Q(""), el = ee(null),
|
|
40416
|
+
const [Gn, Du] = Q(""), el = ee(null), Pi = ee(null), [Bi, Lu] = Q(0), [Fi, Pu] = Q(0), Hi = ee(!1);
|
|
40416
40417
|
me(() => {
|
|
40417
40418
|
if (!u || u.length === st.length && u.every((re, ae) => {
|
|
40418
40419
|
const ne = st[ae];
|
|
@@ -40428,19 +40429,19 @@ const V_ = (e) => {
|
|
|
40428
40429
|
}
|
|
40429
40430
|
j(re);
|
|
40430
40431
|
} else
|
|
40431
|
-
|
|
40432
|
+
Hi.current = !0, j(u);
|
|
40432
40433
|
}, [u]);
|
|
40433
40434
|
const xt = Ve(
|
|
40434
40435
|
() => Dw(t, Te, Ct),
|
|
40435
40436
|
[t, Te, Ct]
|
|
40436
|
-
),
|
|
40437
|
+
), Ui = ee(null), Bu = ee(!1);
|
|
40437
40438
|
me(() => {
|
|
40438
40439
|
const U = t.find((le) => le.type === "tag")?.text ?? null;
|
|
40439
40440
|
if (!Bu.current) {
|
|
40440
|
-
Bu.current = !0,
|
|
40441
|
+
Bu.current = !0, Ui.current = U;
|
|
40441
40442
|
return;
|
|
40442
40443
|
}
|
|
40443
|
-
|
|
40444
|
+
Ui.current !== U && (Ui.current = U, j((le) => le.length === 0 ? le : []));
|
|
40444
40445
|
}, [t]);
|
|
40445
40446
|
const tl = Ve(() => {
|
|
40446
40447
|
const U = t.find((le) => le.type === "tag")?.text;
|
|
@@ -40476,7 +40477,7 @@ const V_ = (e) => {
|
|
|
40476
40477
|
markdownAnalyze: P,
|
|
40477
40478
|
markdownNameAnalyze: R,
|
|
40478
40479
|
reportNameResolve: w
|
|
40479
|
-
}), Yu = (U) => typeof U != "string" ? !U : U.replace(/<[^>]*>/g, "").replace(/ /gi, "").replace(/\s/g, "").replace(/[]/g, "").trim() === "",
|
|
40480
|
+
}), Yu = (U) => typeof U != "string" ? !U : U.replace(/<[^>]*>/g, "").replace(/ /gi, "").replace(/\s/g, "").replace(/[]/g, "").trim() === "", zi = V((U, le) => {
|
|
40480
40481
|
gn((re) => ({ ...re, [U]: le })), Vu(U);
|
|
40481
40482
|
const ce = /^(.+)__module_\d+$/.exec(U);
|
|
40482
40483
|
if (ce && Yu(le)) {
|
|
@@ -40555,7 +40556,7 @@ const V_ = (e) => {
|
|
|
40555
40556
|
}
|
|
40556
40557
|
return ne;
|
|
40557
40558
|
});
|
|
40558
|
-
}, []),
|
|
40559
|
+
}, []), Vi = V(
|
|
40559
40560
|
async (U, le, ce) => {
|
|
40560
40561
|
const re = await sa(U, le, ce);
|
|
40561
40562
|
return re.status === "success" && Yt((ae) => ({ ...ae, [U]: re.name })), re;
|
|
@@ -40571,7 +40572,7 @@ const V_ = (e) => {
|
|
|
40571
40572
|
});
|
|
40572
40573
|
},
|
|
40573
40574
|
[ia]
|
|
40574
|
-
),
|
|
40575
|
+
), $i = V(
|
|
40575
40576
|
async (U, le) => {
|
|
40576
40577
|
sa(U, le, "report-url").then((re) => {
|
|
40577
40578
|
re.status === "success" && Yt((ae) => ({ ...ae, [U]: re.name }));
|
|
@@ -40585,7 +40586,7 @@ const V_ = (e) => {
|
|
|
40585
40586
|
return ce.modules.forEach((ne, be) => {
|
|
40586
40587
|
ae[`${U}__module_${be}`] = ne.content;
|
|
40587
40588
|
}), ae;
|
|
40588
|
-
})) : ce.status === "failed" && (
|
|
40589
|
+
})) : ce.status === "failed" && (zi(U, ""), gn((re) => {
|
|
40589
40590
|
let ae = !1;
|
|
40590
40591
|
const ne = { ...re };
|
|
40591
40592
|
for (const be of Object.keys(ne))
|
|
@@ -40593,7 +40594,7 @@ const V_ = (e) => {
|
|
|
40593
40594
|
return ae ? ne : re;
|
|
40594
40595
|
}));
|
|
40595
40596
|
},
|
|
40596
|
-
[ia, sa,
|
|
40597
|
+
[ia, sa, zi]
|
|
40597
40598
|
);
|
|
40598
40599
|
me(() => {
|
|
40599
40600
|
if (!i || t.length === 0) return;
|
|
@@ -40604,7 +40605,7 @@ const V_ = (e) => {
|
|
|
40604
40605
|
if (!ae || typeof ae == "string" && !ae.trim()) continue;
|
|
40605
40606
|
const ne = Array.isArray(ae) ? String(ae[0] ?? "") : String(ae);
|
|
40606
40607
|
ne && nl.current.get(re) !== ne && (nl.current.set(re, ne), setTimeout(() => {
|
|
40607
|
-
|
|
40608
|
+
$i(re, ne);
|
|
40608
40609
|
}, 100));
|
|
40609
40610
|
}
|
|
40610
40611
|
for (const ce of le) {
|
|
@@ -40614,12 +40615,12 @@ const V_ = (e) => {
|
|
|
40614
40615
|
if (!Ie) return;
|
|
40615
40616
|
const Me = `${re}_${be}`;
|
|
40616
40617
|
nl.current.get(Me) !== Ie && (nl.current.set(Me, Ie), setTimeout(() => {
|
|
40617
|
-
|
|
40618
|
+
Vi(Me, Ie, "multi-variable-select");
|
|
40618
40619
|
}, 100));
|
|
40619
40620
|
});
|
|
40620
40621
|
}
|
|
40621
40622
|
}
|
|
40622
|
-
}, [i, t,
|
|
40623
|
+
}, [i, t, $i, Vi]);
|
|
40623
40624
|
const oa = V(
|
|
40624
40625
|
async (U, le, ce) => {
|
|
40625
40626
|
const ae = Date.now();
|
|
@@ -40657,13 +40658,13 @@ const V_ = (e) => {
|
|
|
40657
40658
|
me(() => {
|
|
40658
40659
|
s?.(_t);
|
|
40659
40660
|
}, [_t, s]), me(() => {
|
|
40660
|
-
if (
|
|
40661
|
-
|
|
40661
|
+
if (Hi.current) {
|
|
40662
|
+
Hi.current = !1;
|
|
40662
40663
|
return;
|
|
40663
40664
|
}
|
|
40664
40665
|
o?.(st);
|
|
40665
40666
|
}, [st, o]);
|
|
40666
|
-
const
|
|
40667
|
+
const qi = V(async () => {
|
|
40667
40668
|
if (r || l) return;
|
|
40668
40669
|
const U = bt ? { skillCode: bt.id, skillName: bt.title } : void 0;
|
|
40669
40670
|
if (t.length === 0) {
|
|
@@ -40705,11 +40706,11 @@ const V_ = (e) => {
|
|
|
40705
40706
|
xr
|
|
40706
40707
|
]), yb = V(
|
|
40707
40708
|
(U) => {
|
|
40708
|
-
U.key === "Enter" && (U.nativeEvent.isComposing || U.keyCode === 229 || U.shiftKey || (U.preventDefault(),
|
|
40709
|
+
U.key === "Enter" && (U.nativeEvent.isComposing || U.keyCode === 229 || U.shiftKey || (U.preventDefault(), qi()));
|
|
40709
40710
|
},
|
|
40710
|
-
[
|
|
40711
|
-
), Eb = Ve(() => t.length === 0 ? Gn.trim().length > 0 : Cw(xt, Tt, _t, xr), [t.length, Gn, xt, Tt, _t, xr]),
|
|
40712
|
-
const U =
|
|
40711
|
+
[qi]
|
|
40712
|
+
), Eb = Ve(() => t.length === 0 ? Gn.trim().length > 0 : Cw(xt, Tt, _t, xr), [t.length, Gn, xt, Tt, _t, xr]), Wi = V(() => {
|
|
40713
|
+
const U = Pi.current, le = U?.querySelector(".tag-node");
|
|
40713
40714
|
if (!U || !le) return;
|
|
40714
40715
|
const ce = le.getClientRects();
|
|
40715
40716
|
if (ce.length === 0) return;
|
|
@@ -40721,12 +40722,12 @@ const V_ = (e) => {
|
|
|
40721
40722
|
Lu(0), Pu(0);
|
|
40722
40723
|
return;
|
|
40723
40724
|
}
|
|
40724
|
-
|
|
40725
|
-
const U =
|
|
40725
|
+
Wi();
|
|
40726
|
+
const U = Pi.current;
|
|
40726
40727
|
if (!U || typeof ResizeObserver > "u") return;
|
|
40727
|
-
const le = new ResizeObserver(() =>
|
|
40728
|
+
const le = new ResizeObserver(() => Wi());
|
|
40728
40729
|
return le.observe(U), () => le.disconnect();
|
|
40729
|
-
}, [bt, t.length,
|
|
40730
|
+
}, [bt, t.length, Wi]), me(() => {
|
|
40730
40731
|
!bt || t.length > 0 || el.current?.focus();
|
|
40731
40732
|
}, [bt, t.length]);
|
|
40732
40733
|
const ju = ee(null), [Tb, Gu] = Q(!1);
|
|
@@ -40755,7 +40756,7 @@ const V_ = (e) => {
|
|
|
40755
40756
|
qe(() => {
|
|
40756
40757
|
const U = el.current;
|
|
40757
40758
|
U && (U.style.height = "auto", U.style.height = `${U.scrollHeight}px`);
|
|
40758
|
-
}, [Gn,
|
|
40759
|
+
}, [Gn, Bi, Fi]);
|
|
40759
40760
|
const xb = {
|
|
40760
40761
|
width: c,
|
|
40761
40762
|
background: d,
|
|
@@ -40786,7 +40787,7 @@ const V_ = (e) => {
|
|
|
40786
40787
|
// auto 不显滚动条也不回弹;内容超父上限时本元素自动出滚动条可内部滚。不再依赖 bodyOverflowing
|
|
40787
40788
|
// (那套「测内容是否溢出再切 auto/hidden」是 inline max-height 接管高度时代的产物,flex 接管后多余)。
|
|
40788
40789
|
overflow: Le || la ? "hidden" : "auto",
|
|
40789
|
-
transition:
|
|
40790
|
+
transition: Li ? "none" : `max-height ${pt}ms cubic-bezier(0.4, 0, 0.2, 1)`,
|
|
40790
40791
|
willChange: "max-height"
|
|
40791
40792
|
}, Ju = V(() => {
|
|
40792
40793
|
Le && ze && Ft?.(!1), el.current?.focus();
|
|
@@ -40805,8 +40806,8 @@ const V_ = (e) => {
|
|
|
40805
40806
|
let Pe = 0;
|
|
40806
40807
|
for (const ca of Array.from(ne.children))
|
|
40807
40808
|
ca !== U && (Pe += ca.offsetHeight);
|
|
40808
|
-
const Mt = getComputedStyle(ne),
|
|
40809
|
-
be = Math.max(0, ne.clientHeight - Pe -
|
|
40809
|
+
const Mt = getComputedStyle(ne), Yi = parseFloat(Mt.paddingTop) + parseFloat(Mt.paddingBottom);
|
|
40810
|
+
be = Math.max(0, ne.clientHeight - Pe - Yi);
|
|
40810
40811
|
}
|
|
40811
40812
|
U.style.maxHeight = ce;
|
|
40812
40813
|
const Ie = Math.max(Math.ceil(ae || 0), Math.ceil(re || 0)), Me = Math.min(Ie, Math.ceil(be));
|
|
@@ -40821,8 +40822,8 @@ const V_ = (e) => {
|
|
|
40821
40822
|
let Pe = 0;
|
|
40822
40823
|
for (const Kn of ae)
|
|
40823
40824
|
Kn.top < Me && (Pe = Math.max(Pe, Kn.bottom));
|
|
40824
|
-
const Mt = Pe > 0 ? Math.ceil(Pe - le.top) : 0,
|
|
40825
|
-
|
|
40825
|
+
const Mt = Pe > 0 ? Math.ceil(Pe - le.top) : 0, Yi = getComputedStyle(U), ca = parseFloat(Yi.paddingTop) || 0, Ab = Math.ceil(ca + Ie), ji = Math.max(Mt, Ab);
|
|
40826
|
+
ji > 0 && sb((Kn) => Kn === ji ? Kn : ji);
|
|
40826
40827
|
}
|
|
40827
40828
|
} catch {
|
|
40828
40829
|
}
|
|
@@ -40832,10 +40833,10 @@ const V_ = (e) => {
|
|
|
40832
40833
|
[xt]
|
|
40833
40834
|
), ec = ee(Sr);
|
|
40834
40835
|
ec.current !== Sr && (ec.current = Sr, Le || (_u(Xf), Iu(!0))), me(() => {
|
|
40835
|
-
if (!
|
|
40836
|
+
if (!Li) return;
|
|
40836
40837
|
const U = setTimeout(() => Iu(!1), pt);
|
|
40837
40838
|
return () => clearTimeout(U);
|
|
40838
|
-
}, [
|
|
40839
|
+
}, [Li, Sr, pt]), qe(() => {
|
|
40839
40840
|
const U = Yn.current;
|
|
40840
40841
|
if (!U || (ua(), typeof ResizeObserver > "u")) return;
|
|
40841
40842
|
const le = () => {
|
|
@@ -40963,7 +40964,7 @@ const V_ = (e) => {
|
|
|
40963
40964
|
style: Xu,
|
|
40964
40965
|
onClick: Ju,
|
|
40965
40966
|
children: [
|
|
40966
|
-
bt && /* @__PURE__ */ v("span", { ref:
|
|
40967
|
+
bt && /* @__PURE__ */ v("span", { ref: Pi, className: "rte-skill-inline-tag-wrap", contentEditable: !1, children: /* @__PURE__ */ v(nb, { title: bt.title, onClose: () => Uu(null) }) }),
|
|
40967
40968
|
/* @__PURE__ */ v(
|
|
40968
40969
|
"textarea",
|
|
40969
40970
|
{
|
|
@@ -40976,8 +40977,8 @@ const V_ = (e) => {
|
|
|
40976
40977
|
disabled: l,
|
|
40977
40978
|
rows: 1,
|
|
40978
40979
|
style: {
|
|
40979
|
-
textIndent:
|
|
40980
|
-
paddingTop:
|
|
40980
|
+
textIndent: Bi ? `${Bi}px` : void 0,
|
|
40981
|
+
paddingTop: Fi ? `${Fi}px` : void 0
|
|
40981
40982
|
}
|
|
40982
40983
|
}
|
|
40983
40984
|
)
|
|
@@ -41000,7 +41001,7 @@ const V_ = (e) => {
|
|
|
41000
41001
|
node: U,
|
|
41001
41002
|
value: ce ? Tt[ce] : void 0,
|
|
41002
41003
|
files: _t,
|
|
41003
|
-
onChange:
|
|
41004
|
+
onChange: zi,
|
|
41004
41005
|
onFileChange: fb,
|
|
41005
41006
|
thumbnails: te,
|
|
41006
41007
|
onThumbnailChange: hb,
|
|
@@ -41012,12 +41013,12 @@ const V_ = (e) => {
|
|
|
41012
41013
|
hideCurrentSessionReport: k,
|
|
41013
41014
|
reportNames: Ht,
|
|
41014
41015
|
onClearReport: pb,
|
|
41015
|
-
onResolveMultiName:
|
|
41016
|
+
onResolveMultiName: Vi,
|
|
41016
41017
|
onAnalyzeMultiReport: bb,
|
|
41017
41018
|
onShiftReportNames: mb,
|
|
41018
41019
|
onAgentExit: L,
|
|
41019
41020
|
hideAgentClose: fe === "hideTagClose",
|
|
41020
|
-
onReportUrlParse:
|
|
41021
|
+
onReportUrlParse: $i,
|
|
41021
41022
|
onMarkdownParse: gb,
|
|
41022
41023
|
onMarkdownNameParse: vb,
|
|
41023
41024
|
onRichtextExpandChange: ab,
|
|
@@ -41056,7 +41057,7 @@ const V_ = (e) => {
|
|
|
41056
41057
|
skillPanelOpen: ie,
|
|
41057
41058
|
onSkillPanelOpenChange: Cb,
|
|
41058
41059
|
skillPanelOpenDelay: D,
|
|
41059
|
-
onSend:
|
|
41060
|
+
onSend: qi,
|
|
41060
41061
|
padding: Ne
|
|
41061
41062
|
}
|
|
41062
41063
|
)
|
|
@@ -41251,7 +41252,7 @@ const V_ = (e) => {
|
|
|
41251
41252
|
);
|
|
41252
41253
|
return /* @__PURE__ */ W("div", { className: "flex flex-col", children: [
|
|
41253
41254
|
/* @__PURE__ */ v(
|
|
41254
|
-
|
|
41255
|
+
Oo,
|
|
41255
41256
|
{
|
|
41256
41257
|
ref: g,
|
|
41257
41258
|
...m,
|
|
@@ -41435,7 +41436,7 @@ const E_ = ({
|
|
|
41435
41436
|
!d && r && e.length > 0 && !h && k();
|
|
41436
41437
|
}, [u, d, r, e.length, h, k]), /* @__PURE__ */ W("div", { style: { position: "relative" }, children: [
|
|
41437
41438
|
/* @__PURE__ */ v(
|
|
41438
|
-
|
|
41439
|
+
Mo,
|
|
41439
41440
|
{
|
|
41440
41441
|
...i,
|
|
41441
41442
|
value: l,
|
|
@@ -41889,7 +41890,7 @@ const rb = ({
|
|
|
41889
41890
|
o?.(z);
|
|
41890
41891
|
}, [o]);
|
|
41891
41892
|
return /* @__PURE__ */ v(
|
|
41892
|
-
|
|
41893
|
+
Io,
|
|
41893
41894
|
{
|
|
41894
41895
|
...g,
|
|
41895
41896
|
className: `video-card ${h || ""}`,
|