@oxide/react-asciidoc 2.1.0 → 2.1.1-canary.b3df79d
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/react-asciidoc.js
CHANGED
|
@@ -5,10 +5,10 @@ function oe(u) {
|
|
|
5
5
|
return u && u.__esModule && Object.prototype.hasOwnProperty.call(u, "default") ? u.default : u;
|
|
6
6
|
}
|
|
7
7
|
var Nu = { exports: {} }, vu = {};
|
|
8
|
-
var
|
|
8
|
+
var Uu;
|
|
9
9
|
function de() {
|
|
10
|
-
if (
|
|
11
|
-
|
|
10
|
+
if (Uu) return vu;
|
|
11
|
+
Uu = 1;
|
|
12
12
|
var u = /* @__PURE__ */ Symbol.for("react.transitional.element"), e = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
13
13
|
function t(s, a, c) {
|
|
14
14
|
var i = null;
|
|
@@ -28,9 +28,9 @@ function de() {
|
|
|
28
28
|
return vu.Fragment = e, vu.jsx = t, vu.jsxs = t, vu;
|
|
29
29
|
}
|
|
30
30
|
var ju = {};
|
|
31
|
-
var
|
|
31
|
+
var Fu;
|
|
32
32
|
function fe() {
|
|
33
|
-
return
|
|
33
|
+
return Fu || (Fu = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
34
34
|
function u(d) {
|
|
35
35
|
if (d == null) return null;
|
|
36
36
|
if (typeof d == "function")
|
|
@@ -39,15 +39,15 @@ function fe() {
|
|
|
39
39
|
switch (d) {
|
|
40
40
|
case j:
|
|
41
41
|
return "Fragment";
|
|
42
|
-
case
|
|
42
|
+
case _:
|
|
43
43
|
return "Profiler";
|
|
44
|
-
case
|
|
44
|
+
case $:
|
|
45
45
|
return "StrictMode";
|
|
46
46
|
case F:
|
|
47
47
|
return "Suspense";
|
|
48
|
-
case
|
|
48
|
+
case X:
|
|
49
49
|
return "SuspenseList";
|
|
50
|
-
case
|
|
50
|
+
case Wu:
|
|
51
51
|
return "Activity";
|
|
52
52
|
}
|
|
53
53
|
if (typeof d == "object")
|
|
@@ -63,7 +63,7 @@ function fe() {
|
|
|
63
63
|
case z:
|
|
64
64
|
var w = d.render;
|
|
65
65
|
return d = d.displayName, d || (d = w.displayName || w.name || "", d = d !== "" ? "ForwardRef(" + d + ")" : "ForwardRef"), d;
|
|
66
|
-
case
|
|
66
|
+
case K:
|
|
67
67
|
return w = d.displayName || null, w !== null ? w : u(d.type) || "Memo";
|
|
68
68
|
case ou:
|
|
69
69
|
w = d._payload, d = d._init;
|
|
@@ -86,11 +86,11 @@ function fe() {
|
|
|
86
86
|
}
|
|
87
87
|
if (w) {
|
|
88
88
|
w = console;
|
|
89
|
-
var
|
|
90
|
-
return
|
|
89
|
+
var N = w.error, E = typeof Symbol == "function" && Symbol.toStringTag && d[Symbol.toStringTag] || d.constructor.name || "Object";
|
|
90
|
+
return N.call(
|
|
91
91
|
w,
|
|
92
92
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
93
|
-
|
|
93
|
+
E
|
|
94
94
|
), e(d);
|
|
95
95
|
}
|
|
96
96
|
}
|
|
@@ -113,38 +113,38 @@ function fe() {
|
|
|
113
113
|
return Error("react-stack-top-frame");
|
|
114
114
|
}
|
|
115
115
|
function i(d) {
|
|
116
|
-
if (
|
|
116
|
+
if (k.call(d, "key")) {
|
|
117
117
|
var w = Object.getOwnPropertyDescriptor(d, "key").get;
|
|
118
118
|
if (w && w.isReactWarning) return !1;
|
|
119
119
|
}
|
|
120
120
|
return d.key !== void 0;
|
|
121
121
|
}
|
|
122
122
|
function n(d, w) {
|
|
123
|
-
function
|
|
123
|
+
function N() {
|
|
124
124
|
C || (C = !0, console.error(
|
|
125
125
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
126
126
|
w
|
|
127
127
|
));
|
|
128
128
|
}
|
|
129
|
-
|
|
130
|
-
get:
|
|
129
|
+
N.isReactWarning = !0, Object.defineProperty(d, "key", {
|
|
130
|
+
get: N,
|
|
131
131
|
configurable: !0
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
134
|
function x() {
|
|
135
135
|
var d = u(this.type);
|
|
136
|
-
return
|
|
136
|
+
return T[d] || (T[d] = !0, console.error(
|
|
137
137
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
138
138
|
)), d = this.props.ref, d !== void 0 ? d : null;
|
|
139
139
|
}
|
|
140
|
-
function b(d, w,
|
|
141
|
-
var M =
|
|
140
|
+
function b(d, w, N, E, H, Y) {
|
|
141
|
+
var M = N.ref;
|
|
142
142
|
return d = {
|
|
143
143
|
$$typeof: p,
|
|
144
144
|
type: d,
|
|
145
145
|
key: w,
|
|
146
|
-
props:
|
|
147
|
-
_owner:
|
|
146
|
+
props: N,
|
|
147
|
+
_owner: E
|
|
148
148
|
}, (M !== void 0 ? M : null) !== null ? Object.defineProperty(d, "ref", {
|
|
149
149
|
enumerable: !1,
|
|
150
150
|
get: x
|
|
@@ -162,60 +162,60 @@ function fe() {
|
|
|
162
162
|
configurable: !1,
|
|
163
163
|
enumerable: !1,
|
|
164
164
|
writable: !0,
|
|
165
|
-
value:
|
|
165
|
+
value: H
|
|
166
166
|
}), Object.defineProperty(d, "_debugTask", {
|
|
167
167
|
configurable: !1,
|
|
168
168
|
enumerable: !1,
|
|
169
169
|
writable: !0,
|
|
170
|
-
value:
|
|
170
|
+
value: Y
|
|
171
171
|
}), Object.freeze && (Object.freeze(d.props), Object.freeze(d)), d;
|
|
172
172
|
}
|
|
173
|
-
function m(d, w,
|
|
173
|
+
function m(d, w, N, E, H, Y) {
|
|
174
174
|
var M = w.children;
|
|
175
175
|
if (M !== void 0)
|
|
176
|
-
if (
|
|
176
|
+
if (E)
|
|
177
177
|
if (L(M)) {
|
|
178
|
-
for (
|
|
179
|
-
h(M[
|
|
178
|
+
for (E = 0; E < M.length; E++)
|
|
179
|
+
h(M[E]);
|
|
180
180
|
Object.freeze && Object.freeze(M);
|
|
181
181
|
} else
|
|
182
182
|
console.error(
|
|
183
183
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
184
184
|
);
|
|
185
185
|
else h(M);
|
|
186
|
-
if (
|
|
186
|
+
if (k.call(w, "key")) {
|
|
187
187
|
M = u(d);
|
|
188
|
-
var
|
|
188
|
+
var iu = Object.keys(w).filter(function(Lu) {
|
|
189
189
|
return Lu !== "key";
|
|
190
190
|
});
|
|
191
|
-
|
|
191
|
+
E = 0 < iu.length ? "{key: someKey, " + iu.join(": ..., ") + ": ...}" : "{key: someKey}", S[M + E] || (iu = 0 < iu.length ? "{" + iu.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
192
192
|
`A props object containing a "key" prop is being spread into JSX:
|
|
193
193
|
let props = %s;
|
|
194
194
|
<%s {...props} />
|
|
195
195
|
React keys must be passed directly to JSX without using spread:
|
|
196
196
|
let props = %s;
|
|
197
197
|
<%s key={someKey} {...props} />`,
|
|
198
|
-
|
|
198
|
+
E,
|
|
199
199
|
M,
|
|
200
|
-
|
|
200
|
+
iu,
|
|
201
201
|
M
|
|
202
|
-
),
|
|
202
|
+
), S[M + E] = !0);
|
|
203
203
|
}
|
|
204
|
-
if (M = null,
|
|
205
|
-
|
|
204
|
+
if (M = null, N !== void 0 && (t(N), M = "" + N), i(w) && (t(w.key), M = "" + w.key), "key" in w) {
|
|
205
|
+
N = {};
|
|
206
206
|
for (var yu in w)
|
|
207
|
-
yu !== "key" && (
|
|
208
|
-
} else
|
|
207
|
+
yu !== "key" && (N[yu] = w[yu]);
|
|
208
|
+
} else N = w;
|
|
209
209
|
return M && n(
|
|
210
|
-
|
|
210
|
+
N,
|
|
211
211
|
typeof d == "function" ? d.displayName || d.name || "Unknown" : d
|
|
212
212
|
), b(
|
|
213
213
|
d,
|
|
214
214
|
M,
|
|
215
|
-
|
|
215
|
+
N,
|
|
216
216
|
a(),
|
|
217
|
-
|
|
218
|
-
|
|
217
|
+
H,
|
|
218
|
+
Y
|
|
219
219
|
);
|
|
220
220
|
}
|
|
221
221
|
function h(d) {
|
|
@@ -224,7 +224,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
224
224
|
function f(d) {
|
|
225
225
|
return typeof d == "object" && d !== null && d.$$typeof === p;
|
|
226
226
|
}
|
|
227
|
-
var y = ne, p = /* @__PURE__ */ Symbol.for("react.transitional.element"), g = /* @__PURE__ */ Symbol.for("react.portal"), j = /* @__PURE__ */ Symbol.for("react.fragment"),
|
|
227
|
+
var y = ne, p = /* @__PURE__ */ Symbol.for("react.transitional.element"), g = /* @__PURE__ */ Symbol.for("react.portal"), j = /* @__PURE__ */ Symbol.for("react.fragment"), $ = /* @__PURE__ */ Symbol.for("react.strict_mode"), _ = /* @__PURE__ */ Symbol.for("react.profiler"), I = /* @__PURE__ */ Symbol.for("react.consumer"), q = /* @__PURE__ */ Symbol.for("react.context"), z = /* @__PURE__ */ Symbol.for("react.forward_ref"), F = /* @__PURE__ */ Symbol.for("react.suspense"), X = /* @__PURE__ */ Symbol.for("react.suspense_list"), K = /* @__PURE__ */ Symbol.for("react.memo"), ou = /* @__PURE__ */ Symbol.for("react.lazy"), Wu = /* @__PURE__ */ Symbol.for("react.activity"), o = /* @__PURE__ */ Symbol.for("react.client.reference"), l = y.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, k = Object.prototype.hasOwnProperty, L = Array.isArray, R = console.createTask ? console.createTask : function() {
|
|
228
228
|
return null;
|
|
229
229
|
};
|
|
230
230
|
y = {
|
|
@@ -232,36 +232,36 @@ React keys must be passed directly to JSX without using spread:
|
|
|
232
232
|
return d();
|
|
233
233
|
}
|
|
234
234
|
};
|
|
235
|
-
var C,
|
|
235
|
+
var C, T = {}, v = y.react_stack_bottom_frame.bind(
|
|
236
236
|
y,
|
|
237
237
|
c
|
|
238
|
-
)(),
|
|
239
|
-
ju.Fragment = j, ju.jsx = function(d, w,
|
|
240
|
-
var
|
|
238
|
+
)(), A = R(s(c)), S = {};
|
|
239
|
+
ju.Fragment = j, ju.jsx = function(d, w, N) {
|
|
240
|
+
var E = 1e4 > l.recentlyCreatedOwnerStacks++;
|
|
241
241
|
return m(
|
|
242
242
|
d,
|
|
243
243
|
w,
|
|
244
|
-
|
|
244
|
+
N,
|
|
245
245
|
!1,
|
|
246
|
-
|
|
247
|
-
|
|
246
|
+
E ? Error("react-stack-top-frame") : v,
|
|
247
|
+
E ? R(s(d)) : A
|
|
248
248
|
);
|
|
249
|
-
}, ju.jsxs = function(d, w,
|
|
250
|
-
var
|
|
249
|
+
}, ju.jsxs = function(d, w, N) {
|
|
250
|
+
var E = 1e4 > l.recentlyCreatedOwnerStacks++;
|
|
251
251
|
return m(
|
|
252
252
|
d,
|
|
253
253
|
w,
|
|
254
|
-
|
|
254
|
+
N,
|
|
255
255
|
!0,
|
|
256
|
-
|
|
257
|
-
|
|
256
|
+
E ? Error("react-stack-top-frame") : v,
|
|
257
|
+
E ? R(s(d)) : A
|
|
258
258
|
);
|
|
259
259
|
};
|
|
260
260
|
})()), ju;
|
|
261
261
|
}
|
|
262
|
-
var
|
|
262
|
+
var Vu;
|
|
263
263
|
function be() {
|
|
264
|
-
return
|
|
264
|
+
return Vu || (Vu = 1, process.env.NODE_ENV === "production" ? Nu.exports = de() : Nu.exports = fe()), Nu.exports;
|
|
265
265
|
}
|
|
266
266
|
var r = be();
|
|
267
267
|
const xe = /* @__PURE__ */ new Uint16Array(
|
|
@@ -570,10 +570,10 @@ function Ne(u, e, t, s) {
|
|
|
570
570
|
return -1;
|
|
571
571
|
}
|
|
572
572
|
const Se = /* @__PURE__ */ $e(xe);
|
|
573
|
-
function
|
|
573
|
+
function Du(u, e = nu.Legacy) {
|
|
574
574
|
return Se(u, e);
|
|
575
575
|
}
|
|
576
|
-
const
|
|
576
|
+
const J = "A-Za-z0-9_", eu = `[${J}]`, B = "[\\s\\S]", W = "\\[([^\\[\\]]+)\\]", zu = {
|
|
577
577
|
nonCompat: [
|
|
578
578
|
{
|
|
579
579
|
type: "strong",
|
|
@@ -584,7 +584,7 @@ const Y = "A-Za-z0-9_", uu = `[${Y}]`, B = "[\\s\\S]", W = "\\[([^\\[\\]]+)\\]",
|
|
|
584
584
|
type: "strong",
|
|
585
585
|
scope: "constrained",
|
|
586
586
|
rx: new RegExp(
|
|
587
|
-
`(^|[^${
|
|
587
|
+
`(^|[^${J};:}])(?:${W})?\\*(\\S|\\S${B}*?\\S)\\*(?!${eu})`,
|
|
588
588
|
"m"
|
|
589
589
|
)
|
|
590
590
|
},
|
|
@@ -592,7 +592,7 @@ const Y = "A-Za-z0-9_", uu = `[${Y}]`, B = "[\\s\\S]", W = "\\[([^\\[\\]]+)\\]",
|
|
|
592
592
|
type: "double",
|
|
593
593
|
scope: "constrained",
|
|
594
594
|
rx: new RegExp(
|
|
595
|
-
`(^|[^${
|
|
595
|
+
`(^|[^${J};:}])(?:${W})?"\`(\\S|\\S${B}*?\\S)\`"(?!${eu})`,
|
|
596
596
|
"m"
|
|
597
597
|
)
|
|
598
598
|
},
|
|
@@ -600,7 +600,7 @@ const Y = "A-Za-z0-9_", uu = `[${Y}]`, B = "[\\s\\S]", W = "\\[([^\\[\\]]+)\\]",
|
|
|
600
600
|
type: "single",
|
|
601
601
|
scope: "constrained",
|
|
602
602
|
rx: new RegExp(
|
|
603
|
-
`(^|[^${
|
|
603
|
+
`(^|[^${J};:\`}])(?:${W})?'\`(\\S|\\S${B}*?\\S)\`'(?!${eu})`,
|
|
604
604
|
"m"
|
|
605
605
|
)
|
|
606
606
|
},
|
|
@@ -613,7 +613,7 @@ const Y = "A-Za-z0-9_", uu = `[${Y}]`, B = "[\\s\\S]", W = "\\[([^\\[\\]]+)\\]",
|
|
|
613
613
|
type: "monospaced",
|
|
614
614
|
scope: "constrained",
|
|
615
615
|
rx: new RegExp(
|
|
616
|
-
`(^|[^${
|
|
616
|
+
`(^|[^${J};:"'\`}])(?:${W})?\`(\\S|\\S${B}*?\\S)\`(?!["'\`${J}])`,
|
|
617
617
|
"m"
|
|
618
618
|
)
|
|
619
619
|
},
|
|
@@ -626,7 +626,7 @@ const Y = "A-Za-z0-9_", uu = `[${Y}]`, B = "[\\s\\S]", W = "\\[([^\\[\\]]+)\\]",
|
|
|
626
626
|
type: "emphasis",
|
|
627
627
|
scope: "constrained",
|
|
628
628
|
rx: new RegExp(
|
|
629
|
-
`(^|[^${
|
|
629
|
+
`(^|[^${J};:}])(?:${W})?_(\\S|\\S${B}*?\\S)_(?!${eu})`,
|
|
630
630
|
"m"
|
|
631
631
|
)
|
|
632
632
|
},
|
|
@@ -639,7 +639,7 @@ const Y = "A-Za-z0-9_", uu = `[${Y}]`, B = "[\\s\\S]", W = "\\[([^\\[\\]]+)\\]",
|
|
|
639
639
|
type: "mark",
|
|
640
640
|
scope: "constrained",
|
|
641
641
|
rx: new RegExp(
|
|
642
|
-
`(^|[^${
|
|
642
|
+
`(^|[^${J}&;:}])(?:${W})?#(\\S|\\S${B}*?\\S)#(?!${eu})`,
|
|
643
643
|
"m"
|
|
644
644
|
)
|
|
645
645
|
},
|
|
@@ -664,7 +664,7 @@ const Y = "A-Za-z0-9_", uu = `[${Y}]`, B = "[\\s\\S]", W = "\\[([^\\[\\]]+)\\]",
|
|
|
664
664
|
type: "strong",
|
|
665
665
|
scope: "constrained",
|
|
666
666
|
rx: new RegExp(
|
|
667
|
-
`(^|[^${
|
|
667
|
+
`(^|[^${J};:}])(?:${W})?\\*(\\S|\\S${B}*?\\S)\\*(?!${eu})`,
|
|
668
668
|
"m"
|
|
669
669
|
)
|
|
670
670
|
},
|
|
@@ -672,7 +672,7 @@ const Y = "A-Za-z0-9_", uu = `[${Y}]`, B = "[\\s\\S]", W = "\\[([^\\[\\]]+)\\]",
|
|
|
672
672
|
type: "double",
|
|
673
673
|
scope: "constrained",
|
|
674
674
|
rx: new RegExp(
|
|
675
|
-
`(^|[^${
|
|
675
|
+
`(^|[^${J};:}])(?:${W})?\`\`(\\S|\\S${B}*?\\S)''(?!${eu})`,
|
|
676
676
|
"m"
|
|
677
677
|
)
|
|
678
678
|
},
|
|
@@ -680,7 +680,7 @@ const Y = "A-Za-z0-9_", uu = `[${Y}]`, B = "[\\s\\S]", W = "\\[([^\\[\\]]+)\\]",
|
|
|
680
680
|
type: "emphasis",
|
|
681
681
|
scope: "constrained",
|
|
682
682
|
rx: new RegExp(
|
|
683
|
-
`(^|[^${
|
|
683
|
+
`(^|[^${J};:}])(?:${W})?'(\\S|\\S${B}*?\\S)'(?!${eu})`,
|
|
684
684
|
"m"
|
|
685
685
|
)
|
|
686
686
|
},
|
|
@@ -693,7 +693,7 @@ const Y = "A-Za-z0-9_", uu = `[${Y}]`, B = "[\\s\\S]", W = "\\[([^\\[\\]]+)\\]",
|
|
|
693
693
|
type: "monospaced",
|
|
694
694
|
scope: "constrained",
|
|
695
695
|
rx: new RegExp(
|
|
696
|
-
`(^|[^${
|
|
696
|
+
`(^|[^${J};:}])(?:${W})?\\+(\\S|\\S${B}*?\\S)\\+(?!${eu})`,
|
|
697
697
|
"m"
|
|
698
698
|
)
|
|
699
699
|
},
|
|
@@ -701,7 +701,7 @@ const Y = "A-Za-z0-9_", uu = `[${Y}]`, B = "[\\s\\S]", W = "\\[([^\\[\\]]+)\\]",
|
|
|
701
701
|
type: "single",
|
|
702
702
|
scope: "constrained",
|
|
703
703
|
rx: new RegExp(
|
|
704
|
-
`(^|[^${
|
|
704
|
+
`(^|[^${J};:}])(?:${W})?\`(\\S|\\S${B}*?\\S)'(?!${eu})`,
|
|
705
705
|
"m"
|
|
706
706
|
)
|
|
707
707
|
},
|
|
@@ -714,7 +714,7 @@ const Y = "A-Za-z0-9_", uu = `[${Y}]`, B = "[\\s\\S]", W = "\\[([^\\[\\]]+)\\]",
|
|
|
714
714
|
type: "emphasis",
|
|
715
715
|
scope: "constrained",
|
|
716
716
|
rx: new RegExp(
|
|
717
|
-
`(^|[^${
|
|
717
|
+
`(^|[^${J};:}])(?:${W})?_(\\S|\\S${B}*?\\S)_(?!${eu})`,
|
|
718
718
|
"m"
|
|
719
719
|
)
|
|
720
720
|
},
|
|
@@ -727,7 +727,7 @@ const Y = "A-Za-z0-9_", uu = `[${Y}]`, B = "[\\s\\S]", W = "\\[([^\\[\\]]+)\\]",
|
|
|
727
727
|
type: "mark",
|
|
728
728
|
scope: "constrained",
|
|
729
729
|
rx: new RegExp(
|
|
730
|
-
`(^|[^${
|
|
730
|
+
`(^|[^${J}&;:}])(?:${W})?#(\\S|\\S${B}*?\\S)#(?!${eu})`,
|
|
731
731
|
"m"
|
|
732
732
|
)
|
|
733
733
|
},
|
|
@@ -742,7 +742,7 @@ const Y = "A-Za-z0-9_", uu = `[${Y}]`, B = "[\\s\\S]", W = "\\[([^\\[\\]]+)\\]",
|
|
|
742
742
|
rx: /\\?(?:\[([^\[\]]+)\])?~(\S+?)~/
|
|
743
743
|
}
|
|
744
744
|
]
|
|
745
|
-
}, Ae = /[<&>]/g,
|
|
745
|
+
}, Ae = /[<&>]/g, Gu = {
|
|
746
746
|
false: /[*_\x60#^~]/,
|
|
747
747
|
true: /[*'_+#^~]/
|
|
748
748
|
}, Ee = {
|
|
@@ -786,7 +786,7 @@ function Te(u) {
|
|
|
786
786
|
function xu(u) {
|
|
787
787
|
return `${u}`;
|
|
788
788
|
}
|
|
789
|
-
function
|
|
789
|
+
function Zu(u) {
|
|
790
790
|
return encodeURIComponent(u).replace(/%20/g, "+");
|
|
791
791
|
}
|
|
792
792
|
function Ie(u) {
|
|
@@ -856,12 +856,12 @@ function Oe(u) {
|
|
|
856
856
|
}
|
|
857
857
|
return t[0] && (e.text = t[0]), t[1] && (e.subject = t[1]), t[2] && (e.body = t[2]), e;
|
|
858
858
|
}
|
|
859
|
-
function
|
|
859
|
+
function ee(u) {
|
|
860
860
|
if (!u) return {};
|
|
861
861
|
const e = u.split(",", 1)[0].trim();
|
|
862
862
|
if (!e) return {};
|
|
863
863
|
if (e.includes("=")) {
|
|
864
|
-
const t =
|
|
864
|
+
const t = te(u);
|
|
865
865
|
return {
|
|
866
866
|
...t.id ? { id: t.id } : {},
|
|
867
867
|
...t.role ? { role: t.role } : {}
|
|
@@ -881,16 +881,16 @@ function ue(u) {
|
|
|
881
881
|
}
|
|
882
882
|
return { role: e };
|
|
883
883
|
}
|
|
884
|
-
function
|
|
884
|
+
function Yu(u) {
|
|
885
885
|
u.indexOf("\\]") !== -1 && (u = u.replace(/\\\]/g, "]"));
|
|
886
886
|
let e = u, t, s, a;
|
|
887
887
|
if (u.indexOf("=") !== -1) {
|
|
888
|
-
const c =
|
|
888
|
+
const c = te(u);
|
|
889
889
|
e = c.text ?? "", t = c.role, s = c.window, a = c.id;
|
|
890
890
|
}
|
|
891
891
|
return e.endsWith("^") && (e = e.slice(0, -1), s = s || "_blank"), { text: e, role: t, window: s, id: a };
|
|
892
892
|
}
|
|
893
|
-
function
|
|
893
|
+
function te(u) {
|
|
894
894
|
const e = {};
|
|
895
895
|
if (!u) return e;
|
|
896
896
|
const t = u.split(",");
|
|
@@ -948,7 +948,7 @@ function Pe(u, e = !1, t) {
|
|
|
948
948
|
);
|
|
949
949
|
return u.replace(i, (n, x, b, m, h) => b ? (x || "") + "<" + m + h + ">" : (h === "." && (h = String(++s)), e ? `<i class="conum" data-value="${h}"></i><b>(${h})</b>` : `${x || ""}<${h}>`));
|
|
950
950
|
}
|
|
951
|
-
function
|
|
951
|
+
function re(u, e, t) {
|
|
952
952
|
if (t && u.indexOf("{counter") !== -1) {
|
|
953
953
|
t.counters || (t.counters = /* @__PURE__ */ new Map());
|
|
954
954
|
const s = t.counters;
|
|
@@ -997,7 +997,7 @@ function te(u, e, t) {
|
|
|
997
997
|
return u.replace(/(\\)?\{(\w[\w-]*)(\\)?\}/g, (s, a, c, i) => {
|
|
998
998
|
if (a || i) return "{" + c + "}";
|
|
999
999
|
const n = c.toLowerCase();
|
|
1000
|
-
return Object.prototype.hasOwnProperty.call(
|
|
1000
|
+
return Object.prototype.hasOwnProperty.call(Ju, n) ? Ju[n] : Object.prototype.hasOwnProperty.call(e, c) ? e[c] : Object.prototype.hasOwnProperty.call(e, n) ? e[n] : s;
|
|
1001
1001
|
});
|
|
1002
1002
|
}
|
|
1003
1003
|
function Ce(u, e, t) {
|
|
@@ -1005,7 +1005,7 @@ function Ce(u, e, t) {
|
|
|
1005
1005
|
for (let c = 0; c < a.length; c++) {
|
|
1006
1006
|
const i = a[c];
|
|
1007
1007
|
if (i.type === "text" && typeof i.text == "string" && i.text.indexOf("{") !== -1) {
|
|
1008
|
-
const n =
|
|
1008
|
+
const n = re(i.text, e, t);
|
|
1009
1009
|
n !== i.text && (a[c] = { ...i, text: n });
|
|
1010
1010
|
}
|
|
1011
1011
|
"text" in i && Array.isArray(i.text) && (i.text = s(i.text));
|
|
@@ -1014,7 +1014,7 @@ function Ce(u, e, t) {
|
|
|
1014
1014
|
};
|
|
1015
1015
|
return s(u);
|
|
1016
1016
|
}
|
|
1017
|
-
const
|
|
1017
|
+
const Ju = {
|
|
1018
1018
|
blank: "",
|
|
1019
1019
|
empty: "",
|
|
1020
1020
|
sp: " ",
|
|
@@ -1054,11 +1054,11 @@ function Me(u) {
|
|
|
1054
1054
|
(t, s, a) => s ? "&" + a : "&" + a
|
|
1055
1055
|
), u;
|
|
1056
1056
|
}
|
|
1057
|
-
function
|
|
1057
|
+
function se(u, e) {
|
|
1058
1058
|
const t = u.length;
|
|
1059
1059
|
return u.push(e), "" + t + "";
|
|
1060
1060
|
}
|
|
1061
|
-
function
|
|
1061
|
+
function ae(u, e, t = /* @__PURE__ */ new Set()) {
|
|
1062
1062
|
const s = [], a = /\x01(\d+)\x02/g;
|
|
1063
1063
|
let c = 0, i;
|
|
1064
1064
|
for (; (i = a.exec(u)) !== null; ) {
|
|
@@ -1068,7 +1068,7 @@ function se(u, e, t = /* @__PURE__ */ new Set()) {
|
|
|
1068
1068
|
if (m && !t.has(b)) {
|
|
1069
1069
|
t.add(b);
|
|
1070
1070
|
for (const h of m)
|
|
1071
|
-
s.push(
|
|
1071
|
+
s.push(ce(h, e, t));
|
|
1072
1072
|
t.delete(b);
|
|
1073
1073
|
} else m && process.env.NODE_ENV !== "production" && console.warn(
|
|
1074
1074
|
`[react-asciidoc] Inline placeholder cycle at index ${b} — content dropped`
|
|
@@ -1078,25 +1078,25 @@ function se(u, e, t = /* @__PURE__ */ new Set()) {
|
|
|
1078
1078
|
const n = u.slice(c);
|
|
1079
1079
|
return n && s.push({ type: "text", text: n }), s.length === 0 && u.length > 0 && s.push({ type: "text", text: u }), s;
|
|
1080
1080
|
}
|
|
1081
|
-
function
|
|
1081
|
+
function ce(u, e, t = /* @__PURE__ */ new Set()) {
|
|
1082
1082
|
if (u.type === "text") return u;
|
|
1083
1083
|
if (u.type === "quoted" || u.type === "anchor" || u.type === "footnote" || u.type === "button") {
|
|
1084
1084
|
const s = [];
|
|
1085
1085
|
for (const a of u.text)
|
|
1086
1086
|
if (a.type === "text" && a.text.indexOf("") !== -1) {
|
|
1087
|
-
const c =
|
|
1087
|
+
const c = ae(a.text, e, t);
|
|
1088
1088
|
for (const i of c) s.push(i);
|
|
1089
1089
|
} else
|
|
1090
|
-
s.push(
|
|
1090
|
+
s.push(ce(a, e, t));
|
|
1091
1091
|
return { ...u, text: s };
|
|
1092
1092
|
}
|
|
1093
1093
|
return u;
|
|
1094
1094
|
}
|
|
1095
|
-
function
|
|
1096
|
-
const t = e.compatMode ?? !1, s = e.attributes ?? {}, a = e.state ?? ke(), c = t ?
|
|
1095
|
+
function uu(u, e = {}) {
|
|
1096
|
+
const t = e.compatMode ?? !1, s = e.attributes ?? {}, a = e.state ?? ke(), c = t ? zu.compat : zu.nonCompat;
|
|
1097
1097
|
let i = u;
|
|
1098
|
-
const n = t ?
|
|
1099
|
-
m("macros") && (i = He(i, x, t)), !e._alreadyEscaped && m("specialcharacters") && (i = fu(i)), m("quotes") && (i.match(/\*/) || i.match(/_/) || n.test(i)) && (i = Ue(i, c, b, a, e._quoteFromIndex ?? 0)), m("attributes") && (i =
|
|
1098
|
+
const n = t ? Gu.true : Gu.false, x = [], b = [], m = (f) => !e._subs || e._subs.includes(f);
|
|
1099
|
+
m("macros") && (i = He(i, x, t)), !e._alreadyEscaped && m("specialcharacters") && (i = fu(i)), m("quotes") && (i.match(/\*/) || i.match(/_/) || n.test(i)) && (i = Ue(i, c, b, a, e._quoteFromIndex ?? 0)), m("attributes") && (i = re(i, s, a)), m("replacements") && (i = Me(i)), m("macros") && (i = Fe(
|
|
1100
1100
|
i,
|
|
1101
1101
|
s,
|
|
1102
1102
|
t,
|
|
@@ -1104,8 +1104,8 @@ function K(u, e = {}) {
|
|
|
1104
1104
|
a,
|
|
1105
1105
|
e._quoted ?? !1
|
|
1106
1106
|
));
|
|
1107
|
-
let h =
|
|
1108
|
-
return m("post_replacements") && (h = ze(h, s)), m("attributes") && (h = Ce(h, s, a)), h =
|
|
1107
|
+
let h = ae(i, b);
|
|
1108
|
+
return m("post_replacements") && (h = ze(h, s)), m("attributes") && (h = Ce(h, s, a)), h = ie(h, x, t, a), h;
|
|
1109
1109
|
}
|
|
1110
1110
|
function He(u, e, t) {
|
|
1111
1111
|
return u = De(u, e, t), u = Be(u, e, t), u;
|
|
@@ -1143,7 +1143,7 @@ function De(u, e, t) {
|
|
|
1143
1143
|
if (!m.startsWith("+++")) {
|
|
1144
1144
|
const h = m.match(n);
|
|
1145
1145
|
if (h) {
|
|
1146
|
-
const f = h[1] || "", y = h[2], p = e.length, g =
|
|
1146
|
+
const f = h[1] || "", y = h[2], p = e.length, g = ee(f);
|
|
1147
1147
|
e.push({
|
|
1148
1148
|
text: y,
|
|
1149
1149
|
type: "unquoted",
|
|
@@ -1254,17 +1254,17 @@ function Ue(u, e, t, s, a = 0) {
|
|
|
1254
1254
|
let y = "", p = "", g = "";
|
|
1255
1255
|
b ? (y = m[1] || "", p = m[2] || "", g = m[3] || "") : (p = m[1] || "", g = m[2] || "");
|
|
1256
1256
|
const j = h.startsWith("\\");
|
|
1257
|
-
let
|
|
1258
|
-
if (!j && i.type === "monospaced" && !b && g.startsWith("`") && x[f + h.length] === "`" && (g = g + "`",
|
|
1257
|
+
let $ = 0;
|
|
1258
|
+
if (!j && i.type === "monospaced" && !b && g.startsWith("`") && x[f + h.length] === "`" && (g = g + "`", $ = 1), j)
|
|
1259
1259
|
n += h.slice(1);
|
|
1260
1260
|
else {
|
|
1261
1261
|
y && (n += y);
|
|
1262
|
-
let
|
|
1262
|
+
let _, I;
|
|
1263
1263
|
if (p) {
|
|
1264
|
-
const
|
|
1265
|
-
|
|
1264
|
+
const X = ee(p);
|
|
1265
|
+
_ = X.role, I = X.id;
|
|
1266
1266
|
}
|
|
1267
|
-
const q = g.replace(/\\\]/g, "]"), z =
|
|
1267
|
+
const q = g.replace(/\\\]/g, "]"), z = uu(q, {
|
|
1268
1268
|
compatMode: !1,
|
|
1269
1269
|
state: s,
|
|
1270
1270
|
_alreadyEscaped: !0,
|
|
@@ -1278,17 +1278,17 @@ function Ue(u, e, t, s, a = 0) {
|
|
|
1278
1278
|
subtype: i.type,
|
|
1279
1279
|
text: z,
|
|
1280
1280
|
...I ? { id: I } : {},
|
|
1281
|
-
...
|
|
1281
|
+
..._ ? { role: _ } : {}
|
|
1282
1282
|
};
|
|
1283
|
-
n +=
|
|
1283
|
+
n += se(t, [F]);
|
|
1284
1284
|
}
|
|
1285
|
-
x = x.slice(f + h.length +
|
|
1285
|
+
x = x.slice(f + h.length + $);
|
|
1286
1286
|
}
|
|
1287
1287
|
u = n;
|
|
1288
1288
|
}
|
|
1289
1289
|
return u;
|
|
1290
1290
|
}
|
|
1291
|
-
function
|
|
1291
|
+
function ru(u) {
|
|
1292
1292
|
return u ? [{ type: "text", text: u }] : [];
|
|
1293
1293
|
}
|
|
1294
1294
|
function Fe(u, e, t, s, a, c = !1) {
|
|
@@ -1299,7 +1299,7 @@ function Fe(u, e, t, s, a, c = !1) {
|
|
|
1299
1299
|
handler: (f) => f[1] || !n ? null : f[2] === "kbd" ? {
|
|
1300
1300
|
type: "kbd",
|
|
1301
1301
|
keys: Re(f[3])
|
|
1302
|
-
} : { type: "button", text:
|
|
1302
|
+
} : { type: "button", text: ru(f[3]) }
|
|
1303
1303
|
},
|
|
1304
1304
|
{
|
|
1305
1305
|
rx: /\\?menu:(\w|[&\w][^\n\[]*[^\s\[])\[ *(?:|([\s\S]*?[^\\]))\]/,
|
|
@@ -1333,7 +1333,7 @@ function Fe(u, e, t, s, a, c = !1) {
|
|
|
1333
1333
|
),
|
|
1334
1334
|
handler: (f) => {
|
|
1335
1335
|
if (f[0].startsWith("\\")) return null;
|
|
1336
|
-
const p = (f[2] || f[3] || "").split(",").map((
|
|
1336
|
+
const p = (f[2] || f[3] || "").split(",").map(($) => $.trim()), j = (f[1] ? f[1].startsWith("indexterm2") : f[0].startsWith("((")) === !0;
|
|
1337
1337
|
return { type: "indexterm", terms: p, visible: j };
|
|
1338
1338
|
}
|
|
1339
1339
|
},
|
|
@@ -1352,7 +1352,7 @@ function Fe(u, e, t, s, a, c = !1) {
|
|
|
1352
1352
|
handler: (f) => ({
|
|
1353
1353
|
type: "anchor",
|
|
1354
1354
|
subtype: "bibref",
|
|
1355
|
-
text:
|
|
1355
|
+
text: ru(f[2] || f[1]),
|
|
1356
1356
|
target: f[1]
|
|
1357
1357
|
})
|
|
1358
1358
|
},
|
|
@@ -1368,24 +1368,24 @@ function Fe(u, e, t, s, a, c = !1) {
|
|
|
1368
1368
|
const I = Oe(p), q = f[2];
|
|
1369
1369
|
let z = "mailto:" + q;
|
|
1370
1370
|
const F = [];
|
|
1371
|
-
return I.subject && F.push(`subject=${
|
|
1371
|
+
return I.subject && F.push(`subject=${Zu(I.subject)}`), I.body && F.push(`body=${Zu(I.body)}`), F.length && (z += "?" + F.join("&")), {
|
|
1372
1372
|
type: "anchor",
|
|
1373
1373
|
subtype: "link",
|
|
1374
|
-
text: I.text ?
|
|
1374
|
+
text: I.text ? ru(I.text) : [{ type: "text", text: q }],
|
|
1375
1375
|
target: z,
|
|
1376
1376
|
...I.id ? { id: I.id } : {},
|
|
1377
1377
|
...I.role ? { role: I.role } : {}
|
|
1378
1378
|
};
|
|
1379
1379
|
}
|
|
1380
|
-
const g = f[2], j =
|
|
1381
|
-
let
|
|
1382
|
-
return
|
|
1380
|
+
const g = f[2], j = Yu(p);
|
|
1381
|
+
let $ = j.text, _ = j.role;
|
|
1382
|
+
return $ || ($ = g, _ = _ ? `bare ${_}` : "bare"), {
|
|
1383
1383
|
type: "anchor",
|
|
1384
1384
|
subtype: "link",
|
|
1385
|
-
text:
|
|
1385
|
+
text: ru($),
|
|
1386
1386
|
target: g,
|
|
1387
1387
|
...j.id ? { id: j.id } : {},
|
|
1388
|
-
...
|
|
1388
|
+
..._ ? { role: _ } : {},
|
|
1389
1389
|
...j.window ? { window: j.window } : {}
|
|
1390
1390
|
};
|
|
1391
1391
|
}
|
|
@@ -1398,13 +1398,13 @@ function Fe(u, e, t, s, a, c = !1) {
|
|
|
1398
1398
|
return [{ type: "text", text: q + z }];
|
|
1399
1399
|
}
|
|
1400
1400
|
const y = f[1];
|
|
1401
|
-
let p, g, j,
|
|
1401
|
+
let p, g, j, $ = "", _;
|
|
1402
1402
|
if (f[2] !== void 0) {
|
|
1403
1403
|
p = y + f[2];
|
|
1404
1404
|
const q = f[3] || "";
|
|
1405
1405
|
if (q) {
|
|
1406
|
-
const z =
|
|
1407
|
-
z.window && (
|
|
1406
|
+
const z = Yu(q);
|
|
1407
|
+
z.window && (_ = z.window), z.role && (j = z.role), g = ru(z.text);
|
|
1408
1408
|
} else
|
|
1409
1409
|
g = [{ type: "text", text: p }], j = "bare";
|
|
1410
1410
|
} else if (f[4] !== void 0)
|
|
@@ -1412,7 +1412,7 @@ function Fe(u, e, t, s, a, c = !1) {
|
|
|
1412
1412
|
else {
|
|
1413
1413
|
p = y + (f[5] || "");
|
|
1414
1414
|
const q = f[6] || "";
|
|
1415
|
-
if (q === ";" ? (p = p.slice(0, -1), p.endsWith(")") ? (p = p.slice(0, -1),
|
|
1415
|
+
if (q === ";" ? (p = p.slice(0, -1), p.endsWith(")") ? (p = p.slice(0, -1), $ = ");") : $ = ";") : q === ":" && (p = p.slice(0, -1), p.endsWith(")") ? (p = p.slice(0, -1), $ = "):") : $ = ":"), p === y)
|
|
1416
1416
|
return [{ type: "text", text: f[0] }];
|
|
1417
1417
|
g = [{ type: "text", text: p }], j = "bare";
|
|
1418
1418
|
}
|
|
@@ -1424,8 +1424,8 @@ function Fe(u, e, t, s, a, c = !1) {
|
|
|
1424
1424
|
text: g,
|
|
1425
1425
|
target: p,
|
|
1426
1426
|
...j ? { role: j } : {},
|
|
1427
|
-
...
|
|
1428
|
-
}),
|
|
1427
|
+
..._ ? { window: _ } : {}
|
|
1428
|
+
}), $ && I.push({ type: "text", text: $ }), I;
|
|
1429
1429
|
}
|
|
1430
1430
|
},
|
|
1431
1431
|
{
|
|
@@ -1453,7 +1453,7 @@ function Fe(u, e, t, s, a, c = !1) {
|
|
|
1453
1453
|
return {
|
|
1454
1454
|
type: "anchor",
|
|
1455
1455
|
subtype: "ref",
|
|
1456
|
-
text:
|
|
1456
|
+
text: ru(p || y),
|
|
1457
1457
|
target: y,
|
|
1458
1458
|
id: y
|
|
1459
1459
|
};
|
|
@@ -1466,27 +1466,27 @@ function Fe(u, e, t, s, a, c = !1) {
|
|
|
1466
1466
|
handler: (f) => {
|
|
1467
1467
|
if (f[0].startsWith("\\")) return null;
|
|
1468
1468
|
if (f[1] !== void 0) {
|
|
1469
|
-
const j = f[1].indexOf(","),
|
|
1469
|
+
const j = f[1].indexOf(","), $ = j === -1 ? f[1] : f[1].slice(0, j), _ = j === -1 ? "" : f[1].slice(j + 1).replace(/^\s+/, ""), I = _ || `[${$}]`;
|
|
1470
1470
|
return {
|
|
1471
1471
|
type: "anchor",
|
|
1472
1472
|
subtype: "xref",
|
|
1473
|
-
text:
|
|
1474
|
-
target:
|
|
1475
|
-
...
|
|
1473
|
+
text: ru(I),
|
|
1474
|
+
target: $,
|
|
1475
|
+
..._ ? { explicitText: !0 } : {}
|
|
1476
1476
|
};
|
|
1477
1477
|
}
|
|
1478
1478
|
const y = (f[2] || "").trim(), p = (f[3] || "").replace(/\\\]/g, "]").trim(), g = /^xrefstyle\s*=\s*("?)([\w-]+)\1$/.exec(p);
|
|
1479
1479
|
return g ? {
|
|
1480
1480
|
type: "anchor",
|
|
1481
1481
|
subtype: "xref",
|
|
1482
|
-
text:
|
|
1482
|
+
text: ru(`[${y}]`),
|
|
1483
1483
|
target: y,
|
|
1484
1484
|
xrefstyle: g[2],
|
|
1485
1485
|
macro: !0
|
|
1486
1486
|
} : {
|
|
1487
1487
|
type: "anchor",
|
|
1488
1488
|
subtype: "xref",
|
|
1489
|
-
text:
|
|
1489
|
+
text: ru(p || `[${y}]`),
|
|
1490
1490
|
target: y,
|
|
1491
1491
|
macro: !0,
|
|
1492
1492
|
...p ? { explicitText: !0 } : {}
|
|
@@ -1497,29 +1497,29 @@ function Fe(u, e, t, s, a, c = !1) {
|
|
|
1497
1497
|
rx: /\\?footnote(?:(ref):|:([\p{L}\p{N}_-]+)?)\[(?:|([\s\S]*?[^\\]))\](?!<\/a>)/u,
|
|
1498
1498
|
handler: (f) => {
|
|
1499
1499
|
if (f[0].startsWith("\\")) return null;
|
|
1500
|
-
const y = (
|
|
1501
|
-
const
|
|
1500
|
+
const y = ($) => {
|
|
1501
|
+
const _ = $ ? a.footnotesById.get($) : void 0;
|
|
1502
1502
|
return {
|
|
1503
1503
|
type: "footnote",
|
|
1504
1504
|
text: [],
|
|
1505
|
-
refid:
|
|
1506
|
-
...
|
|
1505
|
+
refid: $,
|
|
1506
|
+
..._ !== void 0 ? { index: _ } : {}
|
|
1507
1507
|
};
|
|
1508
|
-
}, p = (
|
|
1508
|
+
}, p = ($, _) => {
|
|
1509
1509
|
a.footnoteIndex++;
|
|
1510
1510
|
const I = a.footnoteIndex;
|
|
1511
|
-
|
|
1512
|
-
const q =
|
|
1511
|
+
$ && a.footnotesById.set($, I);
|
|
1512
|
+
const q = ru(_);
|
|
1513
1513
|
return a.footnoteDefs && a.footnoteDefs.push(q), {
|
|
1514
1514
|
type: "footnote",
|
|
1515
1515
|
text: q,
|
|
1516
|
-
|
|
1516
|
+
...$ ? { id: $ } : {},
|
|
1517
1517
|
index: I
|
|
1518
1518
|
};
|
|
1519
1519
|
};
|
|
1520
1520
|
if (f[1] === "ref") {
|
|
1521
1521
|
if (!f[3]) return null;
|
|
1522
|
-
const
|
|
1522
|
+
const $ = f[3], _ = $.indexOf(","), I = (_ === -1 ? $ : $.slice(0, _)).trim(), q = _ === -1 ? "" : $.slice(_ + 1);
|
|
1523
1523
|
return q ? p(I, q) : y(I);
|
|
1524
1524
|
}
|
|
1525
1525
|
const g = f[2], j = f[3] || "";
|
|
@@ -1532,34 +1532,34 @@ function Fe(u, e, t, s, a, c = !1) {
|
|
|
1532
1532
|
const p = Ve(f);
|
|
1533
1533
|
p.lastIndex = 0;
|
|
1534
1534
|
const g = [];
|
|
1535
|
-
let j = 0,
|
|
1536
|
-
for (; (
|
|
1537
|
-
if (
|
|
1535
|
+
let j = 0, $;
|
|
1536
|
+
for (; ($ = p.exec(h)) !== null; ) {
|
|
1537
|
+
if ($[0].length === 0) {
|
|
1538
1538
|
p.lastIndex++;
|
|
1539
1539
|
continue;
|
|
1540
1540
|
}
|
|
1541
|
-
|
|
1542
|
-
const
|
|
1543
|
-
if (
|
|
1544
|
-
const I = Array.isArray(
|
|
1545
|
-
g.push(
|
|
1541
|
+
$.index > j && g.push(h.slice(j, $.index));
|
|
1542
|
+
const _ = y($, e);
|
|
1543
|
+
if (_) {
|
|
1544
|
+
const I = Array.isArray(_) ? _ : [_];
|
|
1545
|
+
g.push(se(s, I));
|
|
1546
1546
|
} else
|
|
1547
|
-
g.push(
|
|
1548
|
-
j =
|
|
1547
|
+
g.push($[0]);
|
|
1548
|
+
j = $.index + $[0].length;
|
|
1549
1549
|
}
|
|
1550
1550
|
j < h.length && g.push(h.slice(j)), h = g.join("");
|
|
1551
1551
|
}
|
|
1552
1552
|
return h;
|
|
1553
1553
|
}
|
|
1554
|
-
const
|
|
1554
|
+
const Qu = /* @__PURE__ */ new WeakMap();
|
|
1555
1555
|
function Ve(u) {
|
|
1556
1556
|
if (u.flags.includes("g")) return u;
|
|
1557
|
-
const e =
|
|
1557
|
+
const e = Qu.get(u);
|
|
1558
1558
|
if (e) return e;
|
|
1559
1559
|
const t = new RegExp(u.source, u.flags + "g");
|
|
1560
|
-
return
|
|
1560
|
+
return Qu.set(u, t), t;
|
|
1561
1561
|
}
|
|
1562
|
-
function
|
|
1562
|
+
function ie(u, e, t, s) {
|
|
1563
1563
|
const a = /(\d+)/g;
|
|
1564
1564
|
function c(x) {
|
|
1565
1565
|
const b = { type: "text", text: x };
|
|
@@ -1577,20 +1577,20 @@ function ce(u, e, t, s) {
|
|
|
1577
1577
|
}
|
|
1578
1578
|
if (p) {
|
|
1579
1579
|
if (p.subs.length === 0) {
|
|
1580
|
-
const
|
|
1581
|
-
|
|
1580
|
+
const _ = p.attributes ?? {}, I = { type: "text", text: p.text, raw: !0 };
|
|
1581
|
+
_.id || _.role ? m.push({
|
|
1582
1582
|
type: "quoted",
|
|
1583
1583
|
subtype: "unquoted",
|
|
1584
1584
|
text: [I],
|
|
1585
|
-
...
|
|
1586
|
-
...
|
|
1585
|
+
..._.id ? { id: _.id } : {},
|
|
1586
|
+
..._.role ? { role: _.role } : {}
|
|
1587
1587
|
}) : m.push(I), h = f.index + f[0].length;
|
|
1588
1588
|
continue;
|
|
1589
1589
|
}
|
|
1590
1590
|
let g;
|
|
1591
|
-
p.subs.length === 1 && p.subs[0] === "specialcharacters" ? g = [{ type: "text", text: fu(p.text) }] : g =
|
|
1592
|
-
const j = p.attributes ?? {},
|
|
1593
|
-
p.type === "unquoted" || p.type === "normal" ?
|
|
1591
|
+
p.subs.length === 1 && p.subs[0] === "specialcharacters" ? g = [{ type: "text", text: fu(p.text) }] : g = uu(p.text, { compatMode: t, state: s, _subs: p.subs }), g = ie(g, e, t, s);
|
|
1592
|
+
const j = p.attributes ?? {}, $ = !!(j.id || j.role);
|
|
1593
|
+
p.type === "unquoted" || p.type === "normal" ? $ ? m.push({
|
|
1594
1594
|
type: "quoted",
|
|
1595
1595
|
subtype: "unquoted",
|
|
1596
1596
|
text: g,
|
|
@@ -1654,7 +1654,7 @@ const Ge = {
|
|
|
1654
1654
|
function Ye(u) {
|
|
1655
1655
|
return u.replace(/ /g, "%20");
|
|
1656
1656
|
}
|
|
1657
|
-
function
|
|
1657
|
+
function D(u) {
|
|
1658
1658
|
let e = "";
|
|
1659
1659
|
for (let t = 0; t < u.length; t++) {
|
|
1660
1660
|
const s = u[t];
|
|
@@ -1672,7 +1672,7 @@ function Je(u, e) {
|
|
|
1672
1672
|
case "quoted": {
|
|
1673
1673
|
const t = Ge[u.subtype] || ["", ""], s = t[2] === !0, a = du(u.text, e);
|
|
1674
1674
|
let c = "";
|
|
1675
|
-
if (u.id && (c += ` id="${u.id}"`), u.role && (c += ` class="${
|
|
1675
|
+
if (u.id && (c += ` id="${u.id}"`), u.role && (c += ` class="${D(u.role)}"`), u.subtype === "mark" && (u.id || u.role))
|
|
1676
1676
|
return `<span${c}>${a}</span>`;
|
|
1677
1677
|
if (s) {
|
|
1678
1678
|
let i = t[0];
|
|
@@ -1682,58 +1682,58 @@ function Je(u, e) {
|
|
|
1682
1682
|
}
|
|
1683
1683
|
case "anchor": {
|
|
1684
1684
|
const t = u.id || "", s = u.role || "";
|
|
1685
|
-
let a = t ? ` id="${t}"` : "", c = s ? ` class="${
|
|
1685
|
+
let a = t ? ` id="${t}"` : "", c = s ? ` class="${D(s)}"` : "";
|
|
1686
1686
|
t ? a += c : a = c;
|
|
1687
1687
|
const i = du(u.text, e);
|
|
1688
1688
|
switch (u.subtype) {
|
|
1689
1689
|
case "link": {
|
|
1690
|
-
const n =
|
|
1690
|
+
const n = D(u.target);
|
|
1691
1691
|
let x = "";
|
|
1692
|
-
return u.window && (x = ` target="${
|
|
1692
|
+
return u.window && (x = ` target="${D(u.window)}"`, u.window === "_blank" && (x += ' rel="noopener"')), `<a href="${n}"${a}${x}>${i}</a>`;
|
|
1693
1693
|
}
|
|
1694
1694
|
case "ref":
|
|
1695
|
-
return `<a id="${
|
|
1695
|
+
return `<a id="${D(u.id || u.target)}"></a>`;
|
|
1696
1696
|
case "xref": {
|
|
1697
1697
|
const n = u.target;
|
|
1698
|
-
return `<a href="${n.startsWith("#") || n.includes("#") || n.includes("/") ?
|
|
1698
|
+
return `<a href="${n.startsWith("#") || n.includes("#") || n.includes("/") ? D(n) : "#" + D(n)}"${a}>${i}</a>`;
|
|
1699
1699
|
}
|
|
1700
1700
|
case "bibref":
|
|
1701
|
-
return `[<a id="${
|
|
1701
|
+
return `[<a id="${D(u.id || u.target)}"></a>]`;
|
|
1702
1702
|
}
|
|
1703
1703
|
}
|
|
1704
1704
|
case "image": {
|
|
1705
|
-
const t =
|
|
1705
|
+
const t = D(Ye(u.target)), s = u.alt || "";
|
|
1706
1706
|
let a = "";
|
|
1707
|
-
u.width && (a += ` width="${
|
|
1708
|
-
const c = u.title ? ` title="${
|
|
1707
|
+
u.width && (a += ` width="${D(u.width)}"`), u.height && (a += ` height="${D(u.height)}"`);
|
|
1708
|
+
const c = u.title ? ` title="${D(u.title)}"` : "", i = (m) => {
|
|
1709
1709
|
if (!u.link) return m;
|
|
1710
1710
|
let h = "";
|
|
1711
|
-
return u.window && (h = ` target="${
|
|
1711
|
+
return u.window && (h = ` target="${D(u.window)}"`, u.window === "_blank" && (h += ' rel="noopener"')), `<a class="image" href="${D(u.link)}"${h}>${m}</a>`;
|
|
1712
1712
|
};
|
|
1713
1713
|
if (u.subtype === "icon") {
|
|
1714
1714
|
const m = u.iconType || "text", h = ["icon"];
|
|
1715
1715
|
u.role && h.push(u.role), u.float && h.push(u.float);
|
|
1716
|
-
const f = ` class="${h.join(" ")}"`, y = u.id ? ` id="${
|
|
1716
|
+
const f = ` class="${h.join(" ")}"`, y = u.id ? ` id="${D(u.id)}"` : "";
|
|
1717
1717
|
if (m === "text") {
|
|
1718
1718
|
const p = u.alt || u.target;
|
|
1719
1719
|
return `<span${f}${y}${c}>${i(`[${p}]`)}</span>`;
|
|
1720
1720
|
}
|
|
1721
|
-
return m === "font" ? `<span${f}${y}>${i(`<i class="fa fa-${
|
|
1721
|
+
return m === "font" ? `<span${f}${y}>${i(`<i class="fa fa-${D(u.target)}"${c}></i>`)}</span>` : `<span${f}${y}${c}>${i(`<img src="${t}" alt="${D(s)}"${a}>`)}</span>`;
|
|
1722
1722
|
}
|
|
1723
1723
|
const n = ["image"];
|
|
1724
1724
|
u.role && n.push(u.role), u.float && n.push(u.float);
|
|
1725
|
-
const x = ` class="${n.join(" ")}"`, b = u.id ? ` id="${
|
|
1726
|
-
return `<span${x}${b}>${i(`<img src="${t}" alt="${
|
|
1725
|
+
const x = ` class="${n.join(" ")}"`, b = u.id ? ` id="${D(u.id)}"` : "";
|
|
1726
|
+
return `<span${x}${b}>${i(`<img src="${t}" alt="${D(s)}"${a}${c}>`)}</span>`;
|
|
1727
1727
|
}
|
|
1728
1728
|
case "footnote": {
|
|
1729
1729
|
if (u.refid && (!u.text || u.text.length === 0))
|
|
1730
|
-
return u.index !== void 0 ? `<sup class="footnoteref">[<a class="footnote" href="#_footnotedef_${u.index}" title="View footnote.">${u.index}</a>]</sup>` : `<sup class="footnoteref red" title="Unresolved footnote reference.">[${
|
|
1730
|
+
return u.index !== void 0 ? `<sup class="footnoteref">[<a class="footnote" href="#_footnotedef_${u.index}" title="View footnote.">${u.index}</a>]</sup>` : `<sup class="footnoteref red" title="Unresolved footnote reference.">[${D(u.refid)}]</sup>`;
|
|
1731
1731
|
const t = u.index;
|
|
1732
1732
|
if (t === void 0) {
|
|
1733
|
-
const a = u.id ? ` id="${
|
|
1733
|
+
const a = u.id ? ` id="${D(u.id)}"` : "", c = du(u.text, e);
|
|
1734
1734
|
return `<sup${a}>[${c}]</sup>`;
|
|
1735
1735
|
}
|
|
1736
|
-
return `<sup class="footnote"${u.id ? ` id="_footnote_${
|
|
1736
|
+
return `<sup class="footnote"${u.id ? ` id="_footnote_${D(u.id)}"` : ""}>[<a id="_footnoteref_${t}" class="footnote" href="#_footnotedef_${t}" title="View footnote.">${t}</a>]</sup>`;
|
|
1737
1737
|
}
|
|
1738
1738
|
case "indexterm":
|
|
1739
1739
|
return u.visible ? du([{ type: "text", text: u.terms.join(", ") }], e) : "";
|
|
@@ -1758,19 +1758,43 @@ function Je(u, e) {
|
|
|
1758
1758
|
}
|
|
1759
1759
|
}
|
|
1760
1760
|
}
|
|
1761
|
-
function
|
|
1761
|
+
function su(u, e = !1) {
|
|
1762
1762
|
return du(u, e);
|
|
1763
1763
|
}
|
|
1764
|
+
function Bu(u, e = !0) {
|
|
1765
|
+
let t = "";
|
|
1766
|
+
for (const s of u)
|
|
1767
|
+
switch (s.type) {
|
|
1768
|
+
case "text":
|
|
1769
|
+
t += s.raw ? s.text : e ? Du(s.text) : s.text;
|
|
1770
|
+
break;
|
|
1771
|
+
case "quoted":
|
|
1772
|
+
case "anchor":
|
|
1773
|
+
case "footnote":
|
|
1774
|
+
case "button":
|
|
1775
|
+
t += Bu(s.text, e);
|
|
1776
|
+
break;
|
|
1777
|
+
case "callout":
|
|
1778
|
+
t += `<${s.number}>`;
|
|
1779
|
+
break;
|
|
1780
|
+
case "break":
|
|
1781
|
+
t += `
|
|
1782
|
+
`;
|
|
1783
|
+
break;
|
|
1784
|
+
}
|
|
1785
|
+
return t;
|
|
1786
|
+
}
|
|
1764
1787
|
const Ft = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1765
1788
|
__proto__: null,
|
|
1766
|
-
parseInline:
|
|
1789
|
+
parseInline: uu,
|
|
1767
1790
|
renderInline: du,
|
|
1768
|
-
renderInlineAsString:
|
|
1791
|
+
renderInlineAsString: su,
|
|
1792
|
+
renderInlineAsText: Bu,
|
|
1769
1793
|
subCallouts: Hu,
|
|
1770
1794
|
subCalloutsRaw: Pe,
|
|
1771
1795
|
subSpecialchars: fu
|
|
1772
1796
|
}, Symbol.toStringTag, { value: "Module" })), gu = (u, e = !1) => ({
|
|
1773
|
-
__html: u ?
|
|
1797
|
+
__html: u ? su(u, e) : ""
|
|
1774
1798
|
}), Iu = (u) => {
|
|
1775
1799
|
if (!u) return !1;
|
|
1776
1800
|
for (const e of u)
|
|
@@ -1785,7 +1809,7 @@ const Ft = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1785
1809
|
react: !Iu(u),
|
|
1786
1810
|
iconsFont: e.document?.attributes?.icons === "font"
|
|
1787
1811
|
};
|
|
1788
|
-
},
|
|
1812
|
+
}, Q = (u) => u ? Du(u) : "", P = ({
|
|
1789
1813
|
nodes: u,
|
|
1790
1814
|
bibliography: e = !1
|
|
1791
1815
|
}) => {
|
|
@@ -1801,7 +1825,7 @@ const Ft = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1801
1825
|
const { overrides: t } = e;
|
|
1802
1826
|
switch (u.type) {
|
|
1803
1827
|
case "text":
|
|
1804
|
-
return u.raw ? Tu(u.text) :
|
|
1828
|
+
return u.raw ? Tu(u.text) : Q(u.text);
|
|
1805
1829
|
case "quoted": {
|
|
1806
1830
|
const s = pu(u.text, e);
|
|
1807
1831
|
return t.quoted ? /* @__PURE__ */ r.jsx(t.quoted, { node: u, children: s }) : Xe(u, s);
|
|
@@ -1814,10 +1838,10 @@ const Ft = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1814
1838
|
"[",
|
|
1815
1839
|
pu(u.text, e),
|
|
1816
1840
|
"]"
|
|
1817
|
-
] }) :
|
|
1841
|
+
] }) : Xu(u, null);
|
|
1818
1842
|
}
|
|
1819
1843
|
const s = pu(u.text, e);
|
|
1820
|
-
return t.anchor ? /* @__PURE__ */ r.jsx(t.anchor, { node: u, children: s }) :
|
|
1844
|
+
return t.anchor ? /* @__PURE__ */ r.jsx(t.anchor, { node: u, children: s }) : Xu(u, s);
|
|
1821
1845
|
}
|
|
1822
1846
|
case "image":
|
|
1823
1847
|
return t.image ? /* @__PURE__ */ r.jsx(t.image, { node: u }) : Ke(u);
|
|
@@ -1826,7 +1850,7 @@ const Ft = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1826
1850
|
return t.footnote ? /* @__PURE__ */ r.jsx(t.footnote, { node: u, children: s }) : ut(u, s);
|
|
1827
1851
|
}
|
|
1828
1852
|
case "indexterm":
|
|
1829
|
-
return t.indexterm ? /* @__PURE__ */ r.jsx(t.indexterm, { node: u }) : u.visible ?
|
|
1853
|
+
return t.indexterm ? /* @__PURE__ */ r.jsx(t.indexterm, { node: u }) : u.visible ? Q(u.terms.join(", ")) : null;
|
|
1830
1854
|
case "callout":
|
|
1831
1855
|
return t.callout ? /* @__PURE__ */ r.jsx(t.callout, { node: u }) : /* @__PURE__ */ r.jsx("b", { className: "conum", children: `(${u.number})` });
|
|
1832
1856
|
case "break":
|
|
@@ -1874,14 +1898,14 @@ const Ft = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1874
1898
|
t,
|
|
1875
1899
|
s,
|
|
1876
1900
|
a
|
|
1877
|
-
] }),
|
|
1901
|
+
] }), Xu = (u, e) => {
|
|
1878
1902
|
switch (u.subtype) {
|
|
1879
1903
|
case "link": {
|
|
1880
1904
|
const t = u.window === "_blank" ? "noopener" : void 0;
|
|
1881
1905
|
return /* @__PURE__ */ r.jsx(
|
|
1882
1906
|
"a",
|
|
1883
1907
|
{
|
|
1884
|
-
href:
|
|
1908
|
+
href: Q(u.target),
|
|
1885
1909
|
id: u.id || void 0,
|
|
1886
1910
|
className: u.role || void 0,
|
|
1887
1911
|
target: u.window || void 0,
|
|
@@ -1894,7 +1918,7 @@ const Ft = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1894
1918
|
return /* @__PURE__ */ r.jsx("a", { id: u.id || u.target });
|
|
1895
1919
|
case "xref": {
|
|
1896
1920
|
const t = u.target, s = t.startsWith("#") || t.includes("#") || t.includes("/") ? t : `#${t}`;
|
|
1897
|
-
return /* @__PURE__ */ r.jsx("a", { href:
|
|
1921
|
+
return /* @__PURE__ */ r.jsx("a", { href: Q(s), id: u.id || void 0, className: u.role || void 0, children: e });
|
|
1898
1922
|
}
|
|
1899
1923
|
case "bibref":
|
|
1900
1924
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
@@ -1903,7 +1927,7 @@ const Ft = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1903
1927
|
"]"
|
|
1904
1928
|
] });
|
|
1905
1929
|
}
|
|
1906
|
-
},
|
|
1930
|
+
}, Ku = (u) => Q(u).replace(/ /g, "%20"), Ke = (u) => {
|
|
1907
1931
|
const e = (i) => {
|
|
1908
1932
|
if (!u.link) return i;
|
|
1909
1933
|
const n = u.window === "_blank" ? "noopener" : void 0;
|
|
@@ -1911,7 +1935,7 @@ const Ft = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1911
1935
|
"a",
|
|
1912
1936
|
{
|
|
1913
1937
|
className: "image",
|
|
1914
|
-
href:
|
|
1938
|
+
href: Q(u.link),
|
|
1915
1939
|
target: u.window || void 0,
|
|
1916
1940
|
rel: n,
|
|
1917
1941
|
children: i
|
|
@@ -1919,15 +1943,15 @@ const Ft = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1919
1943
|
);
|
|
1920
1944
|
}, t = [u.subtype === "icon" ? "icon" : "image"];
|
|
1921
1945
|
u.role && t.push(u.role), u.float && t.push(u.float);
|
|
1922
|
-
const s = t.join(" "), a = u.id || void 0, c = u.title ?
|
|
1946
|
+
const s = t.join(" "), a = u.id || void 0, c = u.title ? Q(u.title) : void 0;
|
|
1923
1947
|
if (u.subtype === "icon") {
|
|
1924
1948
|
const i = u.iconType || "text";
|
|
1925
|
-
return i === "text" ? /* @__PURE__ */ r.jsx("span", { className: s, id: a, title: c, children: e(`[${
|
|
1949
|
+
return i === "text" ? /* @__PURE__ */ r.jsx("span", { className: s, id: a, title: c, children: e(`[${Q(u.alt || u.target)}]`) }) : i === "font" ? /* @__PURE__ */ r.jsx("span", { className: s, id: a, children: e(/* @__PURE__ */ r.jsx("i", { className: `fa fa-${u.target}`, title: c })) }) : /* @__PURE__ */ r.jsx("span", { className: s, id: a, title: c, children: e(
|
|
1926
1950
|
/* @__PURE__ */ r.jsx(
|
|
1927
1951
|
"img",
|
|
1928
1952
|
{
|
|
1929
|
-
src:
|
|
1930
|
-
alt:
|
|
1953
|
+
src: Ku(u.target),
|
|
1954
|
+
alt: Q(u.alt) || "",
|
|
1931
1955
|
width: u.width || void 0,
|
|
1932
1956
|
height: u.height || void 0
|
|
1933
1957
|
}
|
|
@@ -1938,8 +1962,8 @@ const Ft = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1938
1962
|
/* @__PURE__ */ r.jsx(
|
|
1939
1963
|
"img",
|
|
1940
1964
|
{
|
|
1941
|
-
src:
|
|
1942
|
-
alt:
|
|
1965
|
+
src: Ku(u.target),
|
|
1966
|
+
alt: Q(u.alt) || "",
|
|
1943
1967
|
width: u.width || void 0,
|
|
1944
1968
|
height: u.height || void 0,
|
|
1945
1969
|
title: c
|
|
@@ -1960,7 +1984,7 @@ const Ft = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1960
1984
|
}
|
|
1961
1985
|
),
|
|
1962
1986
|
"]"
|
|
1963
|
-
] }) : /* @__PURE__ */ r.jsx("sup", { className: "footnoteref red", title: "Unresolved footnote reference.", children: `[${
|
|
1987
|
+
] }) : /* @__PURE__ */ r.jsx("sup", { className: "footnoteref red", title: "Unresolved footnote reference.", children: `[${Q(u.refid)}]` });
|
|
1964
1988
|
const t = u.index;
|
|
1965
1989
|
return t === void 0 ? /* @__PURE__ */ r.jsxs("sup", { id: u.id || void 0, children: [
|
|
1966
1990
|
"[",
|
|
@@ -1980,11 +2004,11 @@ const Ft = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1980
2004
|
),
|
|
1981
2005
|
"]"
|
|
1982
2006
|
] });
|
|
1983
|
-
}, et = (u) => u.keys.length === 1 ? /* @__PURE__ */ r.jsx("kbd", { children:
|
|
2007
|
+
}, et = (u) => u.keys.length === 1 ? /* @__PURE__ */ r.jsx("kbd", { children: Q(u.keys[0]) }) : /* @__PURE__ */ r.jsx("span", { className: "keyseq", children: u.keys.map((e, t) => /* @__PURE__ */ r.jsxs(mu, { children: [
|
|
1984
2008
|
t > 0 ? "+" : null,
|
|
1985
|
-
/* @__PURE__ */ r.jsx("kbd", { children:
|
|
2009
|
+
/* @__PURE__ */ r.jsx("kbd", { children: Q(e) })
|
|
1986
2010
|
] }, t)) }), tt = (u, e) => {
|
|
1987
|
-
if (u.items.length === 1) return /* @__PURE__ */ r.jsx("b", { className: "menuref", children:
|
|
2011
|
+
if (u.items.length === 1) return /* @__PURE__ */ r.jsx("b", { className: "menuref", children: Q(u.items[0]) });
|
|
1988
2012
|
const t = e ? /* @__PURE__ */ r.jsx("i", { className: "fa fa-angle-right caret" }) : /* @__PURE__ */ r.jsx("b", { className: "caret", children: "›" });
|
|
1989
2013
|
return /* @__PURE__ */ r.jsx("span", { className: "menuseq", children: u.items.map((s, a) => {
|
|
1990
2014
|
const c = a === 0 ? "menu" : a < u.items.length - 1 ? "submenu" : "menuitem";
|
|
@@ -1994,14 +2018,14 @@ const Ft = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1994
2018
|
t,
|
|
1995
2019
|
" "
|
|
1996
2020
|
] }) : null,
|
|
1997
|
-
/* @__PURE__ */ r.jsx("b", { className: c, children:
|
|
2021
|
+
/* @__PURE__ */ r.jsx("b", { className: c, children: Q(s) })
|
|
1998
2022
|
] }, a);
|
|
1999
2023
|
}) });
|
|
2000
2024
|
};
|
|
2001
2025
|
var Pu = { exports: {} };
|
|
2002
|
-
var
|
|
2026
|
+
var ue;
|
|
2003
2027
|
function rt() {
|
|
2004
|
-
return
|
|
2028
|
+
return ue || (ue = 1, (function(u) {
|
|
2005
2029
|
(function() {
|
|
2006
2030
|
var e = {}.hasOwnProperty;
|
|
2007
2031
|
function t() {
|
|
@@ -2097,12 +2121,12 @@ const O = /* @__PURE__ */ oe(st), U = ({ text: u }) => u ? /* @__PURE__ */ r.jsx
|
|
|
2097
2121
|
]
|
|
2098
2122
|
}
|
|
2099
2123
|
);
|
|
2100
|
-
},
|
|
2124
|
+
}, cu = (u, e) => u[`${e}-option`] !== void 0, ku = (u, e, t = void 0, s, a) => {
|
|
2101
2125
|
if (u[e] !== void 0)
|
|
2102
2126
|
return u[e];
|
|
2103
2127
|
const c = s || e;
|
|
2104
2128
|
return c && a && a[c] !== void 0 ? a[c] : t;
|
|
2105
|
-
},
|
|
2129
|
+
}, au = (u, e) => u[e] !== void 0, nt = (u) => typeof u.title == "string" ? u.title : void 0, bu = (u) => {
|
|
2106
2130
|
if (typeof u.getSourceLines == "function") {
|
|
2107
2131
|
const e = u.getSourceLines();
|
|
2108
2132
|
let t = 0;
|
|
@@ -2146,28 +2170,28 @@ const O = /* @__PURE__ */ oe(st), U = ({ text: u }) => u ? /* @__PURE__ */ r.jsx
|
|
|
2146
2170
|
l != null && (s[o] = String(l));
|
|
2147
2171
|
const a = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
|
|
2148
2172
|
{
|
|
2149
|
-
const o = /* @__PURE__ */ new Map(), l = typeof u.getSourceLines == "function" ? u.getSourceLines() : [],
|
|
2150
|
-
let
|
|
2173
|
+
const o = /* @__PURE__ */ new Map(), l = typeof u.getSourceLines == "function" ? u.getSourceLines() : [], k = /^:(?:!([\w-]+)|([\w-]+)!):\s*$/, L = /^:([A-Za-z][\w-]*):(?: (.*))?$/, R = /(\\)?\{counter2?:([\w-]+)(?::[^}]*)?\}/g, C = /^(-{4,}|\.{4,}|\+{4,}|\/{4,})$/;
|
|
2174
|
+
let T = null;
|
|
2151
2175
|
for (const v of l) {
|
|
2152
|
-
const
|
|
2153
|
-
if (
|
|
2154
|
-
const
|
|
2155
|
-
|
|
2176
|
+
const A = C.exec(v.trimEnd());
|
|
2177
|
+
if (A) {
|
|
2178
|
+
const N = A[1][0];
|
|
2179
|
+
T === null ? T = N : T === N && (T = null);
|
|
2156
2180
|
continue;
|
|
2157
2181
|
}
|
|
2158
|
-
if (
|
|
2159
|
-
const
|
|
2160
|
-
if (
|
|
2161
|
-
const
|
|
2162
|
-
a.has(
|
|
2182
|
+
if (T !== null) continue;
|
|
2183
|
+
const S = k.exec(v);
|
|
2184
|
+
if (S) {
|
|
2185
|
+
const N = S[1] || S[2], E = o.get(N) ?? 0;
|
|
2186
|
+
a.has(N) || a.set(N, /* @__PURE__ */ new Set()), a.get(N).add(E), i.delete(N);
|
|
2163
2187
|
continue;
|
|
2164
2188
|
}
|
|
2165
2189
|
const d = L.exec(v);
|
|
2166
2190
|
if (d) {
|
|
2167
|
-
const
|
|
2168
|
-
if (i.set(
|
|
2169
|
-
const
|
|
2170
|
-
c.has(
|
|
2191
|
+
const N = d[1], E = d[2] ?? "";
|
|
2192
|
+
if (i.set(N, E), E !== "") {
|
|
2193
|
+
const H = o.get(N) ?? 0;
|
|
2194
|
+
c.has(N) || c.set(N, /* @__PURE__ */ new Map()), c.get(N).set(H, E);
|
|
2171
2195
|
}
|
|
2172
2196
|
continue;
|
|
2173
2197
|
}
|
|
@@ -2191,120 +2215,120 @@ const O = /* @__PURE__ */ oe(st), U = ({ text: u }) => u ? /* @__PURE__ */ r.jsx
|
|
|
2191
2215
|
return l && l["hardbreaks-option"] !== void 0 ? { ...s, "hardbreaks-option": String(l["hardbreaks-option"]) } : s;
|
|
2192
2216
|
}, b = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Set(), h = /* @__PURE__ */ new Map(), f = typeof t.xrefstyle == "string" ? t.xrefstyle : void 0, y = (o, l = f) => {
|
|
2193
2217
|
if (o.reftext) return o.reftext;
|
|
2194
|
-
const
|
|
2218
|
+
const k = o.sectname === "appendix" || o.sectname === "chapter", L = k ? `<em>${o.title}</em>` : o.title;
|
|
2195
2219
|
if (l && o.numbered) {
|
|
2196
2220
|
const R = o.numeral.replace(/\.$/, ""), C = t[`${o.sectname}-refsig`];
|
|
2197
2221
|
if (l === "full") {
|
|
2198
|
-
const
|
|
2199
|
-
return C ? `${C} ${R}, ${
|
|
2222
|
+
const T = k ? `<em>${o.title}</em>` : `“${o.title}”`;
|
|
2223
|
+
return C ? `${C} ${R}, ${T}` : `${R}, ${T}`;
|
|
2200
2224
|
}
|
|
2201
2225
|
return l === "short" ? C ? `${C} ${R}` : R : L;
|
|
2202
2226
|
}
|
|
2203
2227
|
return l ? L : o.title;
|
|
2204
2228
|
}, p = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map(), j = (o) => {
|
|
2205
2229
|
for (const l of o.getSections()) {
|
|
2206
|
-
const
|
|
2230
|
+
const k = l.getId(), L = l.getReftext && l.getReftext() || void 0, R = {
|
|
2207
2231
|
title: l.getTitle() || "",
|
|
2208
2232
|
numbered: l.isNumbered ? l.isNumbered() : !1,
|
|
2209
2233
|
sectname: l.getSectionName && l.getSectionName() || "section",
|
|
2210
2234
|
numeral: l.getSectionNumeral && l.getSectionNumeral() || "",
|
|
2211
2235
|
reftext: L
|
|
2212
2236
|
};
|
|
2213
|
-
if (
|
|
2214
|
-
m.add(
|
|
2237
|
+
if (k) {
|
|
2238
|
+
m.add(k), p.set(k, R), b.set(k, y(R));
|
|
2215
2239
|
const C = L || R.title;
|
|
2216
|
-
C && !h.has(C) && h.set(C,
|
|
2240
|
+
C && !h.has(C) && h.set(C, k);
|
|
2217
2241
|
}
|
|
2218
2242
|
j(l);
|
|
2219
2243
|
}
|
|
2220
2244
|
};
|
|
2221
2245
|
j(u);
|
|
2222
|
-
const
|
|
2223
|
-
for (const o of Object.keys(
|
|
2246
|
+
const $ = u.getRefs ? u.getRefs() : {};
|
|
2247
|
+
for (const o of Object.keys($)) {
|
|
2224
2248
|
m.add(o);
|
|
2225
|
-
const l =
|
|
2249
|
+
const l = $[o];
|
|
2226
2250
|
typeof l.$xreftext == "function" && g.set(o, l);
|
|
2227
|
-
const
|
|
2228
|
-
if (
|
|
2229
|
-
b.set(o,
|
|
2251
|
+
const k = l.getReftext && l.getReftext();
|
|
2252
|
+
if (k)
|
|
2253
|
+
b.set(o, k), h.has(k) || h.set(k, o);
|
|
2230
2254
|
else if (!b.has(o)) {
|
|
2231
2255
|
const L = typeof l.$xreftext == "function" ? l.$xreftext(f ?? null) : void 0;
|
|
2232
2256
|
L ? b.set(o, L) : l.title && b.set(o, l.title);
|
|
2233
2257
|
}
|
|
2234
2258
|
}
|
|
2235
|
-
const
|
|
2259
|
+
const _ = /* @__PURE__ */ new Map(), I = /* @__PURE__ */ new Map();
|
|
2236
2260
|
if (typeof u.findBy == "function") {
|
|
2237
2261
|
const o = u.findBy({
|
|
2238
2262
|
context: "list_item"
|
|
2239
2263
|
});
|
|
2240
2264
|
for (const l of o) {
|
|
2241
|
-
const
|
|
2242
|
-
if (typeof
|
|
2243
|
-
const L =
|
|
2265
|
+
const k = l.text;
|
|
2266
|
+
if (typeof k != "string" || !k.includes("[[[")) continue;
|
|
2267
|
+
const L = uu(k, {
|
|
2244
2268
|
attributes: s,
|
|
2245
2269
|
state: { footnoteIndex: 0, footnotesById: /* @__PURE__ */ new Map() }
|
|
2246
2270
|
});
|
|
2247
2271
|
let R, C;
|
|
2248
|
-
const
|
|
2249
|
-
for (const
|
|
2250
|
-
|
|
2272
|
+
const T = (v) => {
|
|
2273
|
+
for (const A of v)
|
|
2274
|
+
A.type === "anchor" && (A.subtype === "bibref" && R === void 0 ? R = A.target : A.subtype === "link" && C === void 0 && (C = A.target)), "text" in A && Array.isArray(A.text) && T(A.text);
|
|
2251
2275
|
};
|
|
2252
|
-
if (
|
|
2253
|
-
const v = L.findIndex((
|
|
2254
|
-
|
|
2276
|
+
if (T(L), R) {
|
|
2277
|
+
const v = L.findIndex((S) => S.type === "anchor" && S.subtype === "bibref"), A = ot(v === -1 ? L : L.slice(v + 1));
|
|
2278
|
+
A.length > 0 && I.set(R, A);
|
|
2255
2279
|
}
|
|
2256
|
-
R && C &&
|
|
2280
|
+
R && C && _.set(R, C);
|
|
2257
2281
|
}
|
|
2258
2282
|
}
|
|
2259
2283
|
const q = (o) => {
|
|
2260
2284
|
if (!o) return o;
|
|
2261
2285
|
for (const l of o) {
|
|
2262
2286
|
if (l.type === "anchor" && l.subtype === "xref") {
|
|
2263
|
-
const
|
|
2264
|
-
let d = b.get(
|
|
2287
|
+
const k = `[${l.target}]`, L = l.text, R = !l.explicitText && L.length === 1 && L[0].type === "text" && L[0].text === k, C = (S) => {
|
|
2288
|
+
let d = b.get(S);
|
|
2265
2289
|
if (l.xrefstyle) {
|
|
2266
|
-
const w = p.get(
|
|
2290
|
+
const w = p.get(S);
|
|
2267
2291
|
if (w) d = y(w, l.xrefstyle);
|
|
2268
2292
|
else {
|
|
2269
|
-
const
|
|
2270
|
-
|
|
2293
|
+
const N = g.get(S);
|
|
2294
|
+
N && typeof N.$xreftext == "function" && (d = N.$xreftext(l.xrefstyle) ?? d);
|
|
2271
2295
|
}
|
|
2272
2296
|
}
|
|
2273
2297
|
R && typeof d == "string" && (l.text = [{ type: "text", text: d, raw: !0 }]);
|
|
2274
|
-
},
|
|
2298
|
+
}, T = l.target.indexOf("#");
|
|
2275
2299
|
if (l.target === "#" && R) {
|
|
2276
|
-
const
|
|
2300
|
+
const S = u.getDocumentTitle?.(), d = u.getAttribute && u.getAttribute("reftext") || (typeof S == "string" ? S : void 0);
|
|
2277
2301
|
l.text = [{ type: "text", text: d || "[^top]", raw: !0 }];
|
|
2278
2302
|
}
|
|
2279
|
-
if (
|
|
2280
|
-
let
|
|
2281
|
-
const d = l.target.slice(
|
|
2282
|
-
let
|
|
2283
|
-
|
|
2284
|
-
const
|
|
2285
|
-
l.target = d ? `${
|
|
2286
|
-
} else if (l.macro &&
|
|
2287
|
-
let
|
|
2288
|
-
|
|
2289
|
-
const w = t.outfilesuffix ?? ".html",
|
|
2290
|
-
l.target =
|
|
2303
|
+
if (T > 0 && !l.target.slice(0, T).includes("://")) {
|
|
2304
|
+
let S = l.target.slice(0, T);
|
|
2305
|
+
const d = l.target.slice(T + 1), w = t.outfilesuffix ?? ".html";
|
|
2306
|
+
let N = !1;
|
|
2307
|
+
S.endsWith(".adoc") ? (S = S.slice(0, -5), N = !0) : /\.[^./]+$/.test(S) || (N = !0);
|
|
2308
|
+
const E = t.relfileprefix ?? "", H = N ? t.relfilesuffix !== void 0 ? String(t.relfilesuffix) : w : "", Y = E + S + H;
|
|
2309
|
+
l.target = d ? `${Y}#${d}` : Y, R && (l.text = [{ type: "text", text: Y, raw: !0 }]);
|
|
2310
|
+
} else if (l.macro && T === -1 && /\.[^./]+$/.test(l.target) && !l.target.includes("://")) {
|
|
2311
|
+
let S = l.target, d = !1;
|
|
2312
|
+
S.endsWith(".adoc") && (S = S.slice(0, -5), d = !0);
|
|
2313
|
+
const w = t.outfilesuffix ?? ".html", N = t.relfileprefix ?? "", E = d ? t.relfilesuffix !== void 0 ? String(t.relfilesuffix) : w : "", H = N + S + E;
|
|
2314
|
+
l.target = H, R && (l.text = [{ type: "text", text: H, raw: !0 }]), l.subtype = "link";
|
|
2291
2315
|
} else if (m.has(l.target))
|
|
2292
2316
|
C(l.target);
|
|
2293
2317
|
else if (l.target.includes(" ") || l.target.toLowerCase() !== l.target) {
|
|
2294
|
-
const
|
|
2295
|
-
|
|
2318
|
+
const S = h.get(l.target);
|
|
2319
|
+
S && (l.target = S, C(S));
|
|
2296
2320
|
}
|
|
2297
|
-
const v =
|
|
2321
|
+
const v = _.get(l.target);
|
|
2298
2322
|
v && (l.externalHref = v);
|
|
2299
|
-
const
|
|
2300
|
-
|
|
2323
|
+
const A = I.get(l.target);
|
|
2324
|
+
A && (l.referenceInlines = A);
|
|
2301
2325
|
}
|
|
2302
2326
|
"text" in l && Array.isArray(l.text) && q(l.text);
|
|
2303
2327
|
}
|
|
2304
2328
|
return o;
|
|
2305
2329
|
}, z = (o) => {
|
|
2306
2330
|
if (o)
|
|
2307
|
-
return
|
|
2331
|
+
return uu(o, {
|
|
2308
2332
|
attributes: s,
|
|
2309
2333
|
state: {
|
|
2310
2334
|
footnoteIndex: 0,
|
|
@@ -2316,21 +2340,21 @@ const O = /* @__PURE__ */ oe(st), U = ({ text: u }) => u ? /* @__PURE__ */ r.jsx
|
|
|
2316
2340
|
});
|
|
2317
2341
|
};
|
|
2318
2342
|
function F(o) {
|
|
2319
|
-
const l = o.getNodeName && o.getNodeName(),
|
|
2320
|
-
let
|
|
2343
|
+
const l = o.getNodeName && o.getNodeName(), k = o.getContentModel && o.getContentModel(), R = l && !(l === "olist" || l === "ulist" || l === "colist" || l === "dlist") && o.hasBlocks() ? o.getBlocks().map((v) => F(v)) : [], C = nt(o);
|
|
2344
|
+
let T = {
|
|
2321
2345
|
id: o.getId && o.getId(),
|
|
2322
2346
|
type: l,
|
|
2323
2347
|
blocks: R,
|
|
2324
2348
|
content: void 0,
|
|
2325
|
-
inlines: R.length === 0 &&
|
|
2326
|
-
|
|
2349
|
+
inlines: R.length === 0 && k === "simple" ? q(
|
|
2350
|
+
uu(bu(o), {
|
|
2327
2351
|
attributes: x(o),
|
|
2328
2352
|
state: n
|
|
2329
2353
|
})
|
|
2330
2354
|
) : void 0,
|
|
2331
2355
|
titleInlines: o.hasTitle && o.hasTitle() ? z(C) : void 0,
|
|
2332
2356
|
attributes: o.getAttributes && o.getAttributes(),
|
|
2333
|
-
contentModel:
|
|
2357
|
+
contentModel: k,
|
|
2334
2358
|
lineNumber: o.getLineNumber && o.getLineNumber(),
|
|
2335
2359
|
style: o.getStyle && o.getStyle(),
|
|
2336
2360
|
role: o.getRole && o.getRole(),
|
|
@@ -2338,32 +2362,32 @@ const O = /* @__PURE__ */ oe(st), U = ({ text: u }) => u ? /* @__PURE__ */ r.jsx
|
|
|
2338
2362
|
level: o.getLevel && o.getLevel()
|
|
2339
2363
|
};
|
|
2340
2364
|
if (l === "admonition") {
|
|
2341
|
-
let v =
|
|
2342
|
-
v.iconUri = o.getIconUri(
|
|
2365
|
+
let v = T;
|
|
2366
|
+
v.iconUri = o.getIconUri(T.attributes.name);
|
|
2343
2367
|
}
|
|
2344
2368
|
if (l === "audio") {
|
|
2345
|
-
let v =
|
|
2346
|
-
v.mediaUri = o.getMediaUri(o.getAttribute("target")), v.autoplay = o.isOption("autoplay"), v.noControls = o.isOption("nocontrols"), v.loop = o.isOption("loop"),
|
|
2369
|
+
let v = T;
|
|
2370
|
+
v.mediaUri = o.getMediaUri(o.getAttribute("target")), v.autoplay = o.isOption("autoplay"), v.noControls = o.isOption("nocontrols"), v.loop = o.isOption("loop"), T = v;
|
|
2347
2371
|
}
|
|
2348
2372
|
if (l === "video") {
|
|
2349
|
-
let v =
|
|
2350
|
-
v.mediaUri = o.getMediaUri(o.getAttribute("target")), v.autoplay = o.isOption("autoplay"), v.noControls = o.isOption("nocontrols"), v.loop = o.isOption("loop"), v.onHover = o.isOption("onhover"),
|
|
2373
|
+
let v = T;
|
|
2374
|
+
v.mediaUri = o.getMediaUri(o.getAttribute("target")), v.autoplay = o.isOption("autoplay"), v.noControls = o.isOption("nocontrols"), v.loop = o.isOption("loop"), v.onHover = o.isOption("onhover"), T = v;
|
|
2351
2375
|
}
|
|
2352
2376
|
if (l === "image") {
|
|
2353
|
-
let v =
|
|
2377
|
+
let v = T;
|
|
2354
2378
|
v.imageUri = o.getImageUri(o.getAttribute("target")), v.alt = typeof o.getAlt == "function" ? o.getAlt() : o.getAttribute("alt") ?? "";
|
|
2355
2379
|
}
|
|
2356
2380
|
if ((l === "listing" || l === "literal") && "getSource" in o) {
|
|
2357
|
-
const v =
|
|
2358
|
-
v.source =
|
|
2359
|
-
const S = t.icons === "font",
|
|
2381
|
+
const v = T, A = o.getSource();
|
|
2382
|
+
v.source = A, v.language = o.getAttribute("language");
|
|
2383
|
+
const S = t.icons === "font", d = o.getAttribute("line-comment"), w = o.getSubstitutions && typeof o.getSubstitutions == "function" ? o.getSubstitutions() : ["specialcharacters", "callouts"];
|
|
2360
2384
|
if (w.some(
|
|
2361
|
-
(
|
|
2362
|
-
|
|
2385
|
+
(E) => ["quotes", "attributes", "replacements", "macros", "post_replacements"].includes(
|
|
2386
|
+
E
|
|
2363
2387
|
)
|
|
2364
2388
|
)) {
|
|
2365
|
-
const
|
|
2366
|
-
|
|
2389
|
+
const E = q(
|
|
2390
|
+
uu(A, {
|
|
2367
2391
|
attributes: x(o),
|
|
2368
2392
|
state: n,
|
|
2369
2393
|
// Honour the block's exact subs list (e.g. `subs=+macros` runs
|
|
@@ -2372,139 +2396,132 @@ const O = /* @__PURE__ */ oe(st), U = ({ text: u }) => u ? /* @__PURE__ */ r.jsx
|
|
|
2372
2396
|
_subs: w
|
|
2373
2397
|
})
|
|
2374
2398
|
);
|
|
2375
|
-
let
|
|
2376
|
-
w.includes("callouts") && (
|
|
2399
|
+
let H = su(E ?? []);
|
|
2400
|
+
w.includes("callouts") && (H = Hu(H, S, d)), T.content = Au(H), v.subbedSource = Bu(
|
|
2401
|
+
E ?? [],
|
|
2402
|
+
w.includes("specialcharacters")
|
|
2403
|
+
);
|
|
2377
2404
|
} else {
|
|
2378
|
-
|
|
2379
|
-
|
|
2405
|
+
const E = bu(o);
|
|
2406
|
+
let H = fu(E);
|
|
2407
|
+
w.includes("callouts") && (H = Hu(H, S, d)), T.content = Au(H), v.subbedSource = A;
|
|
2380
2408
|
}
|
|
2381
2409
|
}
|
|
2382
2410
|
if (l === "section") {
|
|
2383
|
-
const v =
|
|
2384
|
-
v.title =
|
|
2411
|
+
const v = T, A = !!o.getCaption();
|
|
2412
|
+
v.title = A ? o.getCaptionedTitle() : o.getTitle() || "", v.hasCaption = A, "getSectionNumeral" in o && (v.name = o.getSectionName(), v.numbered = o.isNumbered(), v.num = o.getSectionNumeral());
|
|
2385
2413
|
}
|
|
2386
|
-
if (l === "verse" && (
|
|
2387
|
-
|
|
2414
|
+
if (l === "verse" && (T.inlines = q(
|
|
2415
|
+
uu(bu(o), {
|
|
2388
2416
|
attributes: x(o),
|
|
2389
2417
|
state: n
|
|
2390
2418
|
})
|
|
2391
2419
|
)), l === "stem") {
|
|
2392
2420
|
const v = bu(o);
|
|
2393
|
-
|
|
2421
|
+
T.content = fu(v);
|
|
2394
2422
|
}
|
|
2395
2423
|
if (l === "pass")
|
|
2396
2424
|
if ((o.getSubstitutions && typeof o.getSubstitutions == "function" ? o.getSubstitutions() : []).length > 0) {
|
|
2397
|
-
const
|
|
2398
|
-
|
|
2425
|
+
const A = q(
|
|
2426
|
+
uu(bu(o), {
|
|
2399
2427
|
attributes: x(o),
|
|
2400
2428
|
state: n
|
|
2401
2429
|
})
|
|
2402
2430
|
);
|
|
2403
|
-
|
|
2431
|
+
T.content = Au(su(A ?? []));
|
|
2404
2432
|
} else
|
|
2405
|
-
|
|
2433
|
+
T.content = Au(
|
|
2406
2434
|
bu(o)
|
|
2407
2435
|
);
|
|
2408
2436
|
if (l === "dlist") {
|
|
2409
|
-
let v =
|
|
2410
|
-
v.items = o.getItems().map((
|
|
2411
|
-
|
|
2412
|
-
(
|
|
2437
|
+
let v = T;
|
|
2438
|
+
v.items = o.getItems().map((A) => [
|
|
2439
|
+
A[0].map(
|
|
2440
|
+
(S) => F(S)
|
|
2413
2441
|
),
|
|
2414
|
-
F(
|
|
2442
|
+
F(A[1])
|
|
2415
2443
|
]);
|
|
2416
2444
|
}
|
|
2417
2445
|
if (l === "colist" || l === "olist" || l === "ulist") {
|
|
2418
|
-
let v =
|
|
2419
|
-
v.items = o.getItems().map((
|
|
2446
|
+
let v = T;
|
|
2447
|
+
v.items = o.getItems().map((A) => F(A));
|
|
2420
2448
|
}
|
|
2421
2449
|
if (l === "list_item") {
|
|
2422
|
-
let v =
|
|
2423
|
-
const
|
|
2424
|
-
v.textInlines =
|
|
2425
|
-
|
|
2450
|
+
let v = T;
|
|
2451
|
+
const A = o, S = typeof A.text == "string" ? A.text : void 0;
|
|
2452
|
+
v.textInlines = A.hasText() && S !== void 0 ? q(
|
|
2453
|
+
uu(S, {
|
|
2426
2454
|
attributes: s,
|
|
2427
2455
|
state: n
|
|
2428
2456
|
})
|
|
2429
2457
|
) : void 0;
|
|
2430
2458
|
}
|
|
2431
2459
|
if (l === "table") {
|
|
2432
|
-
let v =
|
|
2433
|
-
const
|
|
2434
|
-
v.columns =
|
|
2460
|
+
let v = T;
|
|
2461
|
+
const A = o;
|
|
2462
|
+
v.columns = A.getColumns().map((E) => ({
|
|
2435
2463
|
// @ts-ignore
|
|
2436
|
-
attributes:
|
|
2437
|
-
columnNumber:
|
|
2438
|
-
width:
|
|
2439
|
-
horizontalAlign:
|
|
2440
|
-
verticalAlign:
|
|
2441
|
-
style:
|
|
2464
|
+
attributes: E.getAttributes(),
|
|
2465
|
+
columnNumber: E.getColumnNumber(),
|
|
2466
|
+
width: E.getWidth(),
|
|
2467
|
+
horizontalAlign: E.getHorizontalAlign(),
|
|
2468
|
+
verticalAlign: E.getVerticalAlign(),
|
|
2469
|
+
style: E.getStyle()
|
|
2442
2470
|
}));
|
|
2443
|
-
const
|
|
2444
|
-
(
|
|
2445
|
-
), d =
|
|
2446
|
-
v
|
|
2471
|
+
const S = (E) => E.map(
|
|
2472
|
+
(H) => H.map((Y) => F(Y))
|
|
2473
|
+
), d = S(A.getHeadRows()), w = S(A.getBodyRows()), N = S(A.getFootRows());
|
|
2474
|
+
v = {
|
|
2447
2475
|
...v,
|
|
2448
|
-
caption:
|
|
2449
|
-
hasHeader:
|
|
2450
|
-
hasFooter:
|
|
2451
|
-
hasAutowidth:
|
|
2476
|
+
caption: A.getCaption(),
|
|
2477
|
+
hasHeader: A.hasHeaderOption(),
|
|
2478
|
+
hasFooter: A.hasFooterOption(),
|
|
2479
|
+
hasAutowidth: A.hasAutowidthOption(),
|
|
2452
2480
|
headRows: d,
|
|
2453
2481
|
bodyRows: w,
|
|
2454
|
-
footRows:
|
|
2455
|
-
},
|
|
2482
|
+
footRows: N
|
|
2483
|
+
}, T = v;
|
|
2456
2484
|
}
|
|
2457
2485
|
if (l === "table_cell") {
|
|
2458
|
-
const v = o,
|
|
2459
|
-
let
|
|
2460
|
-
if (
|
|
2461
|
-
const
|
|
2462
|
-
|
|
2463
|
-
}
|
|
2464
|
-
const
|
|
2465
|
-
|
|
2486
|
+
const v = o, A = typeof v.text == "string" ? v.text : v.getSource(), S = v.getStyle();
|
|
2487
|
+
let d;
|
|
2488
|
+
if (S === "asciidoc") {
|
|
2489
|
+
const Y = v.getInnerDocument?.();
|
|
2490
|
+
d = Y ? Y.getBlocks().map((M) => F(M)) : [];
|
|
2491
|
+
}
|
|
2492
|
+
const w = A ? q(
|
|
2493
|
+
uu(A, {
|
|
2466
2494
|
attributes: s,
|
|
2467
2495
|
state: n
|
|
2468
2496
|
})
|
|
2469
2497
|
) : void 0;
|
|
2470
|
-
let
|
|
2471
|
-
if (
|
|
2472
|
-
|
|
2473
|
-
else if (
|
|
2474
|
-
|
|
2475
|
-
else if (
|
|
2476
|
-
const
|
|
2477
|
-
|
|
2498
|
+
let N, E;
|
|
2499
|
+
if (S === "asciidoc")
|
|
2500
|
+
N = [];
|
|
2501
|
+
else if (S === "literal")
|
|
2502
|
+
N = [fu(v.getSource())];
|
|
2503
|
+
else if (A) {
|
|
2504
|
+
const Y = w ? su(w) : "", M = Y ? Y.split(/\n\n+/) : [], iu = S === "emphasis" ? "<em>" : S === "strong" ? "<strong>" : S === "monospaced" ? "<code>" : "", yu = S === "emphasis" ? "</em>" : S === "strong" ? "</strong>" : S === "monospaced" ? "</code>" : "";
|
|
2505
|
+
N = M.length > 0 ? M.map((Lu) => iu + Lu + yu) : [], E = w ? lt(w) : [];
|
|
2478
2506
|
} else
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
...
|
|
2482
|
-
blocks:
|
|
2507
|
+
N = [], E = [];
|
|
2508
|
+
T = {
|
|
2509
|
+
...T,
|
|
2510
|
+
blocks: d ?? T.blocks,
|
|
2483
2511
|
type: "table_cell",
|
|
2484
|
-
content:
|
|
2485
|
-
contentInlines:
|
|
2486
|
-
text:
|
|
2487
|
-
textInlines:
|
|
2512
|
+
content: N,
|
|
2513
|
+
contentInlines: E,
|
|
2514
|
+
text: S === "asciidoc" ? "" : su(w || []),
|
|
2515
|
+
textInlines: w,
|
|
2488
2516
|
columnSpan: v.getColumnSpan(),
|
|
2489
2517
|
rowSpan: v.getRowSpan(),
|
|
2490
|
-
source: v.getSource(),
|
|
2491
|
-
lines: v.getLines(),
|
|
2492
2518
|
width: v.getWidth(),
|
|
2493
|
-
columnPercentageWidth: v.getColumnPercentageWidth()
|
|
2494
|
-
column: S ? {
|
|
2495
|
-
// @ts-ignore
|
|
2496
|
-
attributes: S.getAttributes(),
|
|
2497
|
-
columnNumber: S.getColumnNumber(),
|
|
2498
|
-
width: S.getWidth(),
|
|
2499
|
-
horizontalAlign: S.getHorizontalAlign(),
|
|
2500
|
-
verticalAlign: S.getVerticalAlign(),
|
|
2501
|
-
style: S.getStyle()
|
|
2502
|
-
} : void 0
|
|
2519
|
+
columnPercentageWidth: v.getColumnPercentageWidth()
|
|
2503
2520
|
};
|
|
2504
2521
|
}
|
|
2505
|
-
return
|
|
2522
|
+
return T;
|
|
2506
2523
|
}
|
|
2507
|
-
function
|
|
2524
|
+
function X(o) {
|
|
2508
2525
|
return o.getSections().map((l) => ({
|
|
2509
2526
|
id: l.getId(),
|
|
2510
2527
|
title: (l.getCaption() ? l.getCaptionedTitle() : l.getTitle()) || "",
|
|
@@ -2512,7 +2529,7 @@ const O = /* @__PURE__ */ oe(st), U = ({ text: u }) => u ? /* @__PURE__ */ r.jsx
|
|
|
2512
2529
|
num: l.getSectionNumber(),
|
|
2513
2530
|
numbered: l.isNumbered(),
|
|
2514
2531
|
hasCaption: !!l.getCaption(),
|
|
2515
|
-
sections:
|
|
2532
|
+
sections: X(l)
|
|
2516
2533
|
}));
|
|
2517
2534
|
}
|
|
2518
2535
|
e = {
|
|
@@ -2525,68 +2542,67 @@ const O = /* @__PURE__ */ oe(st), U = ({ text: u }) => u ? /* @__PURE__ */ r.jsx
|
|
|
2525
2542
|
footnotes: [],
|
|
2526
2543
|
attributes: u.getAttributes(),
|
|
2527
2544
|
blocks: u.getBlocks().map((o) => F(o)),
|
|
2528
|
-
sections:
|
|
2545
|
+
sections: X(u),
|
|
2529
2546
|
authors: []
|
|
2530
2547
|
};
|
|
2531
|
-
const
|
|
2548
|
+
const K = [], ou = (o) => {
|
|
2532
2549
|
for (const l of o) {
|
|
2533
2550
|
if (l.inlines) {
|
|
2534
|
-
const
|
|
2535
|
-
|
|
2551
|
+
const k = Eu(l.inlines);
|
|
2552
|
+
K.push(...k);
|
|
2536
2553
|
}
|
|
2537
2554
|
if (l.blocks && ou(l.blocks), "items" in l && Array.isArray(l.items))
|
|
2538
|
-
for (const
|
|
2539
|
-
if ("textInlines" in
|
|
2540
|
-
const L = Eu(
|
|
2541
|
-
|
|
2555
|
+
for (const k of l.items) {
|
|
2556
|
+
if ("textInlines" in k && k.textInlines) {
|
|
2557
|
+
const L = Eu(k.textInlines);
|
|
2558
|
+
K.push(...L);
|
|
2542
2559
|
}
|
|
2543
|
-
"blocks" in
|
|
2560
|
+
"blocks" in k && k.blocks && ou(k.blocks);
|
|
2544
2561
|
}
|
|
2545
2562
|
if ("items" in l && Array.isArray(l.items)) {
|
|
2546
|
-
for (const
|
|
2547
|
-
if (Array.isArray(
|
|
2548
|
-
for (const L of
|
|
2563
|
+
for (const k of l.items)
|
|
2564
|
+
if (Array.isArray(k)) {
|
|
2565
|
+
for (const L of k)
|
|
2549
2566
|
if (L && typeof L == "object" && "textInlines" in L && L.textInlines) {
|
|
2550
2567
|
const R = Eu(L.textInlines);
|
|
2551
|
-
|
|
2568
|
+
K.push(...R);
|
|
2552
2569
|
}
|
|
2553
2570
|
}
|
|
2554
2571
|
}
|
|
2555
|
-
if ("
|
|
2556
|
-
const
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
X.push(...k);
|
|
2572
|
+
if ("bodyRows" in l) {
|
|
2573
|
+
for (const k of [l.headRows, l.bodyRows, l.footRows])
|
|
2574
|
+
for (const L of k)
|
|
2575
|
+
for (const R of L)
|
|
2576
|
+
if (R.textInlines) {
|
|
2577
|
+
const C = Eu(R.textInlines);
|
|
2578
|
+
K.push(...C);
|
|
2563
2579
|
}
|
|
2564
2580
|
}
|
|
2565
2581
|
}
|
|
2566
2582
|
};
|
|
2567
|
-
if (ou(e.blocks),
|
|
2583
|
+
if (ou(e.blocks), K.length > 0) {
|
|
2568
2584
|
const o = /* @__PURE__ */ new Map();
|
|
2569
|
-
for (const l of
|
|
2585
|
+
for (const l of K)
|
|
2570
2586
|
l.index !== void 0 && (!o.get(l.index) || l.text && l.text.length > 0) && o.set(l.index, l);
|
|
2571
|
-
e.footnotes = [...o.values()].sort((l,
|
|
2587
|
+
e.footnotes = [...o.values()].sort((l, k) => (l.index ?? 0) - (k.index ?? 0)).map((l) => ({
|
|
2572
2588
|
index: l.index,
|
|
2573
2589
|
textInlines: l.text ?? []
|
|
2574
2590
|
}));
|
|
2575
2591
|
}
|
|
2576
2592
|
return u.getAuthors() && (e.authors = u.getAuthors().map((o) => {
|
|
2577
|
-
const l = o.getName(),
|
|
2593
|
+
const l = o.getName(), k = o.getEmail();
|
|
2578
2594
|
return {
|
|
2579
|
-
name: l ?
|
|
2595
|
+
name: l ? su(
|
|
2580
2596
|
q(
|
|
2581
|
-
|
|
2597
|
+
uu(l, {
|
|
2582
2598
|
attributes: s,
|
|
2583
2599
|
state: { footnoteIndex: 0, footnotesById: /* @__PURE__ */ new Map() }
|
|
2584
2600
|
})
|
|
2585
2601
|
) || []
|
|
2586
2602
|
) : void 0,
|
|
2587
|
-
email:
|
|
2603
|
+
email: k ? su(
|
|
2588
2604
|
q(
|
|
2589
|
-
|
|
2605
|
+
uu(k, {
|
|
2590
2606
|
attributes: s,
|
|
2591
2607
|
state: { footnoteIndex: 0, footnotesById: /* @__PURE__ */ new Map() }
|
|
2592
2608
|
})
|
|
@@ -2667,7 +2683,7 @@ const O = /* @__PURE__ */ oe(st), U = ({ text: u }) => u ? /* @__PURE__ */ r.jsx
|
|
|
2667
2683
|
{
|
|
2668
2684
|
className: O(
|
|
2669
2685
|
"hdlist1",
|
|
2670
|
-
|
|
2686
|
+
cu(u.attributes, "strong") && "strong"
|
|
2671
2687
|
),
|
|
2672
2688
|
children: x.map((m, h) => /* @__PURE__ */ r.jsxs(mu, { children: [
|
|
2673
2689
|
h > 0 && /* @__PURE__ */ r.jsx("br", {}),
|
|
@@ -2747,7 +2763,7 @@ const O = /* @__PURE__ */ oe(st), U = ({ text: u }) => u ? /* @__PURE__ */ r.jsx
|
|
|
2747
2763
|
]
|
|
2748
2764
|
}
|
|
2749
2765
|
)
|
|
2750
|
-
] }) }), t = () => u.footnotes && u.footnotes.length > 0 && u.blocks && !
|
|
2766
|
+
] }) }), t = () => u.footnotes && u.footnotes.length > 0 && u.blocks && !au(u.attributes, "nofootnotes") ? /* @__PURE__ */ r.jsxs("div", { id: "footnotes", children: [
|
|
2751
2767
|
/* @__PURE__ */ r.jsx("hr", {}),
|
|
2752
2768
|
u.footnotes.map((a) => /* @__PURE__ */ r.jsxs(
|
|
2753
2769
|
"div",
|
|
@@ -2763,7 +2779,7 @@ const O = /* @__PURE__ */ oe(st), U = ({ text: u }) => u ? /* @__PURE__ */ r.jsx
|
|
|
2763
2779
|
},
|
|
2764
2780
|
a.index
|
|
2765
2781
|
))
|
|
2766
|
-
] }) : null, s = () => u.authors.length > 0 ||
|
|
2782
|
+
] }) : null, s = () => u.authors.length > 0 || au(u.attributes, "revnumber") || au(u.attributes, "revdate") || au(u.attributes, "revremark") ? /* @__PURE__ */ r.jsxs("div", { className: "details", children: [
|
|
2767
2783
|
u.authors.map((a, c) => /* @__PURE__ */ r.jsxs(mu, { children: [
|
|
2768
2784
|
a.name && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2769
2785
|
/* @__PURE__ */ r.jsx("span", { id: `author${c + 1 > 1 ? c + 1 : ""}`, className: "author", children: /* @__PURE__ */ r.jsx("span", { dangerouslySetInnerHTML: { __html: a.name } }) }),
|
|
@@ -2774,9 +2790,9 @@ const O = /* @__PURE__ */ oe(st), U = ({ text: u }) => u ? /* @__PURE__ */ r.jsx
|
|
|
2774
2790
|
/* @__PURE__ */ r.jsx("br", {})
|
|
2775
2791
|
] })
|
|
2776
2792
|
] }, c)),
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2793
|
+
au(u.attributes, "revnumber") && /* @__PURE__ */ r.jsx("span", { id: "revnumber", children: `${u.attributes["version-label"].toString().toLowerCase()} ${u.attributes.revnumber}${u.attributes.revdate ? "," : ""}` }),
|
|
2794
|
+
au(u.attributes, "revdate") && /* @__PURE__ */ r.jsx("span", { id: "revdate", children: u.attributes.revdate }),
|
|
2795
|
+
au(u.attributes, "revremark") && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2780
2796
|
/* @__PURE__ */ r.jsx("br", {}),
|
|
2781
2797
|
/* @__PURE__ */ r.jsx("span", { id: "revremark", children: u.attributes.revremark })
|
|
2782
2798
|
] })
|
|
@@ -2788,8 +2804,8 @@ const O = /* @__PURE__ */ oe(st), U = ({ text: u }) => u ? /* @__PURE__ */ r.jsx
|
|
|
2788
2804
|
] });
|
|
2789
2805
|
}, bt = ({ node: u }) => {
|
|
2790
2806
|
const { react: e, iconsFont: t } = Ru(u.inlines);
|
|
2791
|
-
if (
|
|
2792
|
-
const a =
|
|
2807
|
+
if (cu(u.attributes, "collapsible")) {
|
|
2808
|
+
const a = cu(u.attributes, "open");
|
|
2793
2809
|
return /* @__PURE__ */ r.jsxs(
|
|
2794
2810
|
"details",
|
|
2795
2811
|
{
|
|
@@ -2867,7 +2883,7 @@ const O = /* @__PURE__ */ oe(st), U = ({ text: u }) => u ? /* @__PURE__ */ r.jsx
|
|
|
2867
2883
|
}
|
|
2868
2884
|
);
|
|
2869
2885
|
}, mt = ({ node: u }) => {
|
|
2870
|
-
const { document: e } = tu(), t = e.attributes || {}, s =
|
|
2886
|
+
const { document: e } = tu(), t = e.attributes || {}, s = cu(u.attributes, "nowrap") || t.prewrap === void 0, a = O("listingblock", u.role);
|
|
2871
2887
|
if (u.style === "source") {
|
|
2872
2888
|
const c = u.language;
|
|
2873
2889
|
return /* @__PURE__ */ r.jsxs(
|
|
@@ -2909,7 +2925,7 @@ const O = /* @__PURE__ */ oe(st), U = ({ text: u }) => u ? /* @__PURE__ */ r.jsx
|
|
|
2909
2925
|
}
|
|
2910
2926
|
);
|
|
2911
2927
|
}, gt = ({ node: u }) => {
|
|
2912
|
-
const { document: e } = tu(), t = e.attributes || {}, s =
|
|
2928
|
+
const { document: e } = tu(), t = e.attributes || {}, s = cu(u.attributes, "nowrap") || t.prewrap === void 0;
|
|
2913
2929
|
return /* @__PURE__ */ r.jsxs(
|
|
2914
2930
|
"div",
|
|
2915
2931
|
{
|
|
@@ -2948,7 +2964,7 @@ const O = /* @__PURE__ */ oe(st), U = ({ text: u }) => u ? /* @__PURE__ */ r.jsx
|
|
|
2948
2964
|
{
|
|
2949
2965
|
className: e || void 0,
|
|
2950
2966
|
type: t,
|
|
2951
|
-
reversed:
|
|
2967
|
+
reversed: cu(u.attributes, "reversed") || void 0,
|
|
2952
2968
|
start: s,
|
|
2953
2969
|
children: u.items.map((a, c) => /* @__PURE__ */ r.jsxs("li", { id: a.id || void 0, children: [
|
|
2954
2970
|
/* @__PURE__ */ r.jsx("p", { children: /* @__PURE__ */ r.jsx(P, { nodes: a.textInlines }) }),
|
|
@@ -3133,8 +3149,8 @@ const O = /* @__PURE__ */ oe(st), U = ({ text: u }) => u ? /* @__PURE__ */ r.jsx
|
|
|
3133
3149
|
"grid-" + ku(u.attributes, "grid", "all", "table-grid", s)
|
|
3134
3150
|
], n = ku(u.attributes, "stripes", null, "table-stripes", s);
|
|
3135
3151
|
n && i.push("stripes-" + n);
|
|
3136
|
-
let x =
|
|
3137
|
-
x && !
|
|
3152
|
+
let x = cu(u.attributes, "autowidth"), b = parseInt(`${u.attributes.tablepcwidth}`), m = null;
|
|
3153
|
+
x && !au(u.attributes, "width") ? i.push("fit-content") : b === 100 ? i.push("stretch") : m = `${b}%`, au(u.attributes, "float") && i.push(`${u.attributes.float}`), u.role && i.push(u.role || "");
|
|
3138
3154
|
const h = (y) => O(
|
|
3139
3155
|
"tableblock",
|
|
3140
3156
|
`halign-${y.attributes.halign}`,
|
|
@@ -3189,22 +3205,22 @@ const O = /* @__PURE__ */ oe(st), U = ({ text: u }) => u ? /* @__PURE__ */ r.jsx
|
|
|
3189
3205
|
)
|
|
3190
3206
|
) }) }, p)),
|
|
3191
3207
|
u.bodyRows.length > 0 && /* @__PURE__ */ r.jsx("tbody", { children: u.bodyRows.map((y, p) => /* @__PURE__ */ r.jsx("tr", { children: y.map((g, j) => {
|
|
3192
|
-
const
|
|
3193
|
-
let
|
|
3194
|
-
if (!(
|
|
3195
|
-
const
|
|
3196
|
-
|
|
3197
|
-
<p class="tableblock">`)}</p>` : "" :
|
|
3208
|
+
const $ = g.style, _ = h(g), I = g.columnSpan, q = g.rowSpan, z = $ === "header" ? "th" : "td", F = c(g) && $ !== "asciidoc" && $ !== "literal";
|
|
3209
|
+
let X = "";
|
|
3210
|
+
if (!($ === "asciidoc" || F)) {
|
|
3211
|
+
const K = g.content || [];
|
|
3212
|
+
$ === "literal" ? X = `<div class="literal"><pre>${K.join("")}</pre></div>` : $ === "header" ? X = K.length > 0 ? `<p class="tableblock">${K.join(`</p>
|
|
3213
|
+
<p class="tableblock">`)}</p>` : "" : K.length > 0 && (X = `<p class="tableblock">${K.join(`</p>
|
|
3198
3214
|
<p class="tableblock">`)}</p>`);
|
|
3199
3215
|
}
|
|
3200
3216
|
return /* @__PURE__ */ r.jsx(
|
|
3201
3217
|
z,
|
|
3202
3218
|
{
|
|
3203
|
-
className:
|
|
3219
|
+
className: _,
|
|
3204
3220
|
colSpan: I,
|
|
3205
3221
|
rowSpan: q,
|
|
3206
|
-
dangerouslySetInnerHTML:
|
|
3207
|
-
children:
|
|
3222
|
+
dangerouslySetInnerHTML: $ === "asciidoc" || F ? void 0 : X ? { __html: X } : void 0,
|
|
3223
|
+
children: $ === "asciidoc" ? /* @__PURE__ */ r.jsx("div", { className: "content", children: /* @__PURE__ */ r.jsx(V, { blocks: g.blocks }) }) : F ? f(g) : null
|
|
3208
3224
|
},
|
|
3209
3225
|
j
|
|
3210
3226
|
);
|
|
@@ -3232,13 +3248,13 @@ const O = /* @__PURE__ */ oe(st), U = ({ text: u }) => u ? /* @__PURE__ */ r.jsx
|
|
|
3232
3248
|
let e = "", t = !1;
|
|
3233
3249
|
for (const s of u)
|
|
3234
3250
|
if (!t && s.type === "anchor" && s.subtype === "bibref") {
|
|
3235
|
-
const a = s.id || s.target, c =
|
|
3251
|
+
const a = s.id || s.target, c = su(s.text) || a;
|
|
3236
3252
|
e += `<a id="${a}"></a>[${c}]`, t = !0;
|
|
3237
3253
|
} else
|
|
3238
|
-
e +=
|
|
3254
|
+
e += su([s]);
|
|
3239
3255
|
return e;
|
|
3240
3256
|
}, Lt = ({ node: u }) => {
|
|
3241
|
-
const { inlineOverrides: e } = tu(), t =
|
|
3257
|
+
const { inlineOverrides: e } = tu(), t = cu(u.attributes, "checklist"), s = t && cu(u.attributes, "interactive"), a = u.style === "bibliography", c = !!e && Object.keys(e).length > 0, i = (n) => c || !Iu(n.textInlines);
|
|
3242
3258
|
return /* @__PURE__ */ r.jsxs(
|
|
3243
3259
|
"div",
|
|
3244
3260
|
{
|
|
@@ -3342,8 +3358,8 @@ Your browser does not support the video tag.
|
|
|
3342
3358
|
if (Array.isArray(t))
|
|
3343
3359
|
for (const s of t) e.push(...Array.isArray(s) ? s : [s]);
|
|
3344
3360
|
else e.push(t);
|
|
3345
|
-
if ("
|
|
3346
|
-
for (const t of [u.
|
|
3361
|
+
if ("bodyRows" in u)
|
|
3362
|
+
for (const t of [u.headRows, u.bodyRows, u.footRows])
|
|
3347
3363
|
for (const s of t) e.push(...s);
|
|
3348
3364
|
return e;
|
|
3349
3365
|
}, Mt = (u, e) => {
|
|
@@ -3381,7 +3397,7 @@ Your browser does not support the video tag.
|
|
|
3381
3397
|
default:
|
|
3382
3398
|
return u;
|
|
3383
3399
|
}
|
|
3384
|
-
}, Gt = (u) => u ?
|
|
3400
|
+
}, Gt = (u) => u ? Du(hu(u)) : "", $u = le({ document: {} }), Zt = ({
|
|
3385
3401
|
document: u,
|
|
3386
3402
|
options: e
|
|
3387
3403
|
}) => {
|
|
@@ -3496,7 +3512,7 @@ export {
|
|
|
3496
3512
|
Pt as Video,
|
|
3497
3513
|
Mt as findSection,
|
|
3498
3514
|
gu as inlineHtml,
|
|
3499
|
-
|
|
3515
|
+
cu as isOption,
|
|
3500
3516
|
Qt as parse,
|
|
3501
3517
|
Gt as plainText,
|
|
3502
3518
|
Vt as prepareDocument,
|