@oxide/react-asciidoc 0.2.9--canary.ee94c35.0 → 0.2.9--canary.9f5a0bc.0
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 +724 -721
- package/dist/react-asciidoc.umd.cjs +13 -13
- package/dist/types/utils/prepareDocument.d.ts +11 -14
- package/package.json +1 -1
package/dist/react-asciidoc.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import R from "html-react-parser";
|
|
2
2
|
import { default as Lt } from "html-react-parser";
|
|
3
|
-
import ee, { useContext as
|
|
3
|
+
import ee, { useContext as B, Fragment as Nr, createElement as Y, createContext as Pe } from "react";
|
|
4
4
|
var Kr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, nr = { exports: {} }, Q = {};
|
|
5
5
|
/**
|
|
6
6
|
* @license React
|
|
@@ -16,18 +16,18 @@ function Ie() {
|
|
|
16
16
|
if (Xr)
|
|
17
17
|
return Q;
|
|
18
18
|
Xr = 1;
|
|
19
|
-
var r = ee, a = Symbol.for("react.element"),
|
|
20
|
-
function
|
|
21
|
-
var
|
|
22
|
-
|
|
23
|
-
for (
|
|
24
|
-
|
|
25
|
-
if (
|
|
26
|
-
for (
|
|
27
|
-
|
|
28
|
-
return { $$typeof: a, type:
|
|
19
|
+
var r = ee, a = Symbol.for("react.element"), i = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, c = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, d = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
20
|
+
function g(o, n, N) {
|
|
21
|
+
var q, v = {}, p = null, h = null;
|
|
22
|
+
N !== void 0 && (p = "" + N), n.key !== void 0 && (p = "" + n.key), n.ref !== void 0 && (h = n.ref);
|
|
23
|
+
for (q in n)
|
|
24
|
+
s.call(n, q) && !d.hasOwnProperty(q) && (v[q] = n[q]);
|
|
25
|
+
if (o && o.defaultProps)
|
|
26
|
+
for (q in n = o.defaultProps, n)
|
|
27
|
+
v[q] === void 0 && (v[q] = n[q]);
|
|
28
|
+
return { $$typeof: a, type: o, key: p, ref: h, props: v, _owner: c.current };
|
|
29
29
|
}
|
|
30
|
-
return Q.Fragment =
|
|
30
|
+
return Q.Fragment = i, Q.jsx = g, Q.jsxs = g, Q;
|
|
31
31
|
}
|
|
32
32
|
var rr = {};
|
|
33
33
|
/**
|
|
@@ -42,84 +42,84 @@ var rr = {};
|
|
|
42
42
|
var Qr;
|
|
43
43
|
function Be() {
|
|
44
44
|
return Qr || (Qr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
45
|
-
var r = ee, a = Symbol.for("react.element"),
|
|
46
|
-
function
|
|
45
|
+
var r = ee, a = Symbol.for("react.element"), i = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), d = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), o = Symbol.for("react.context"), n = Symbol.for("react.forward_ref"), N = Symbol.for("react.suspense"), q = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), x = Symbol.iterator, O = "@@iterator";
|
|
46
|
+
function _(e) {
|
|
47
47
|
if (e === null || typeof e != "object")
|
|
48
48
|
return null;
|
|
49
|
-
var
|
|
50
|
-
return typeof
|
|
49
|
+
var l = x && e[x] || e[O];
|
|
50
|
+
return typeof l == "function" ? l : null;
|
|
51
51
|
}
|
|
52
|
-
var
|
|
53
|
-
function
|
|
52
|
+
var I = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
53
|
+
function A(e) {
|
|
54
54
|
{
|
|
55
|
-
for (var
|
|
56
|
-
|
|
57
|
-
z("error", e,
|
|
55
|
+
for (var l = arguments.length, u = new Array(l > 1 ? l - 1 : 0), f = 1; f < l; f++)
|
|
56
|
+
u[f - 1] = arguments[f];
|
|
57
|
+
z("error", e, u);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
function z(e,
|
|
60
|
+
function z(e, l, u) {
|
|
61
61
|
{
|
|
62
|
-
var
|
|
63
|
-
w !== "" && (
|
|
64
|
-
var
|
|
62
|
+
var f = I.ReactDebugCurrentFrame, w = f.getStackAddendum();
|
|
63
|
+
w !== "" && (l += "%s", u = u.concat([w]));
|
|
64
|
+
var E = u.map(function(y) {
|
|
65
65
|
return String(y);
|
|
66
66
|
});
|
|
67
|
-
|
|
67
|
+
E.unshift("Warning: " + l), Function.prototype.apply.call(console[e], console, E);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
var Z = !1, tr = !1, oe = !1, ce = !1, ne = !1, Dr;
|
|
71
71
|
Dr = Symbol.for("react.module.reference");
|
|
72
72
|
function ue(e) {
|
|
73
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
73
|
+
return !!(typeof e == "string" || typeof e == "function" || e === s || e === d || ne || e === c || e === N || e === q || ce || e === h || Z || tr || oe || typeof e == "object" && e !== null && (e.$$typeof === p || e.$$typeof === v || e.$$typeof === g || e.$$typeof === o || e.$$typeof === n || e.$$typeof === Dr || e.getModuleId !== void 0));
|
|
74
74
|
}
|
|
75
|
-
function pe(e,
|
|
76
|
-
var
|
|
77
|
-
if (
|
|
78
|
-
return
|
|
79
|
-
var w =
|
|
80
|
-
return w !== "" ?
|
|
75
|
+
function pe(e, l, u) {
|
|
76
|
+
var f = e.displayName;
|
|
77
|
+
if (f)
|
|
78
|
+
return f;
|
|
79
|
+
var w = l.displayName || l.name || "";
|
|
80
|
+
return w !== "" ? u + "(" + w + ")" : u;
|
|
81
81
|
}
|
|
82
82
|
function Sr(e) {
|
|
83
83
|
return e.displayName || "Context";
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function V(e) {
|
|
86
86
|
if (e == null)
|
|
87
87
|
return null;
|
|
88
|
-
if (typeof e.tag == "number" &&
|
|
88
|
+
if (typeof e.tag == "number" && A("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
89
89
|
return e.displayName || e.name || null;
|
|
90
90
|
if (typeof e == "string")
|
|
91
91
|
return e;
|
|
92
92
|
switch (e) {
|
|
93
|
-
case l:
|
|
94
|
-
return "Fragment";
|
|
95
93
|
case s:
|
|
94
|
+
return "Fragment";
|
|
95
|
+
case i:
|
|
96
96
|
return "Portal";
|
|
97
|
-
case
|
|
97
|
+
case d:
|
|
98
98
|
return "Profiler";
|
|
99
99
|
case c:
|
|
100
100
|
return "StrictMode";
|
|
101
|
-
case
|
|
101
|
+
case N:
|
|
102
102
|
return "Suspense";
|
|
103
|
-
case
|
|
103
|
+
case q:
|
|
104
104
|
return "SuspenseList";
|
|
105
105
|
}
|
|
106
106
|
if (typeof e == "object")
|
|
107
107
|
switch (e.$$typeof) {
|
|
108
|
-
case
|
|
109
|
-
var
|
|
110
|
-
return Sr(
|
|
111
|
-
case
|
|
112
|
-
var
|
|
113
|
-
return Sr(
|
|
114
|
-
case
|
|
108
|
+
case o:
|
|
109
|
+
var l = e;
|
|
110
|
+
return Sr(l) + ".Consumer";
|
|
111
|
+
case g:
|
|
112
|
+
var u = e;
|
|
113
|
+
return Sr(u._context) + ".Provider";
|
|
114
|
+
case n:
|
|
115
115
|
return pe(e, e.render, "ForwardRef");
|
|
116
|
-
case
|
|
117
|
-
var
|
|
118
|
-
return
|
|
119
|
-
case
|
|
120
|
-
var w = e,
|
|
116
|
+
case v:
|
|
117
|
+
var f = e.displayName || null;
|
|
118
|
+
return f !== null ? f : V(e.type) || "Memo";
|
|
119
|
+
case p: {
|
|
120
|
+
var w = e, E = w._payload, y = w._init;
|
|
121
121
|
try {
|
|
122
|
-
return
|
|
122
|
+
return V(y(E));
|
|
123
123
|
} catch {
|
|
124
124
|
return null;
|
|
125
125
|
}
|
|
@@ -127,7 +127,7 @@ function Be() {
|
|
|
127
127
|
}
|
|
128
128
|
return null;
|
|
129
129
|
}
|
|
130
|
-
var
|
|
130
|
+
var $ = Object.assign, K = 0, Rr, Tr, Cr, Lr, Or, _r, Fr;
|
|
131
131
|
function Ur() {
|
|
132
132
|
}
|
|
133
133
|
Ur.__reactDisabledLog = !0;
|
|
@@ -163,41 +163,41 @@ function Be() {
|
|
|
163
163
|
writable: !0
|
|
164
164
|
};
|
|
165
165
|
Object.defineProperties(console, {
|
|
166
|
-
log:
|
|
166
|
+
log: $({}, e, {
|
|
167
167
|
value: Rr
|
|
168
168
|
}),
|
|
169
|
-
info:
|
|
169
|
+
info: $({}, e, {
|
|
170
170
|
value: Tr
|
|
171
171
|
}),
|
|
172
|
-
warn:
|
|
172
|
+
warn: $({}, e, {
|
|
173
173
|
value: Cr
|
|
174
174
|
}),
|
|
175
|
-
error:
|
|
175
|
+
error: $({}, e, {
|
|
176
176
|
value: Lr
|
|
177
177
|
}),
|
|
178
|
-
group:
|
|
178
|
+
group: $({}, e, {
|
|
179
179
|
value: Or
|
|
180
180
|
}),
|
|
181
|
-
groupCollapsed:
|
|
181
|
+
groupCollapsed: $({}, e, {
|
|
182
182
|
value: _r
|
|
183
183
|
}),
|
|
184
|
-
groupEnd:
|
|
184
|
+
groupEnd: $({}, e, {
|
|
185
185
|
value: Fr
|
|
186
186
|
})
|
|
187
187
|
});
|
|
188
188
|
}
|
|
189
|
-
K < 0 &&
|
|
189
|
+
K < 0 && A("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
var gr =
|
|
193
|
-
function ar(e,
|
|
192
|
+
var gr = I.ReactCurrentDispatcher, fr;
|
|
193
|
+
function ar(e, l, u) {
|
|
194
194
|
{
|
|
195
195
|
if (fr === void 0)
|
|
196
196
|
try {
|
|
197
197
|
throw Error();
|
|
198
198
|
} catch (w) {
|
|
199
|
-
var
|
|
200
|
-
fr =
|
|
199
|
+
var f = w.stack.trim().match(/\n( *(at )?)/);
|
|
200
|
+
fr = f && f[1] || "";
|
|
201
201
|
}
|
|
202
202
|
return `
|
|
203
203
|
` + fr + e;
|
|
@@ -208,22 +208,22 @@ function Be() {
|
|
|
208
208
|
var ge = typeof WeakMap == "function" ? WeakMap : Map;
|
|
209
209
|
ir = new ge();
|
|
210
210
|
}
|
|
211
|
-
function Pr(e,
|
|
211
|
+
function Pr(e, l) {
|
|
212
212
|
if (!e || hr)
|
|
213
213
|
return "";
|
|
214
214
|
{
|
|
215
|
-
var
|
|
216
|
-
if (
|
|
217
|
-
return
|
|
215
|
+
var u = ir.get(e);
|
|
216
|
+
if (u !== void 0)
|
|
217
|
+
return u;
|
|
218
218
|
}
|
|
219
|
-
var
|
|
219
|
+
var f;
|
|
220
220
|
hr = !0;
|
|
221
221
|
var w = Error.prepareStackTrace;
|
|
222
222
|
Error.prepareStackTrace = void 0;
|
|
223
|
-
var
|
|
224
|
-
|
|
223
|
+
var E;
|
|
224
|
+
E = gr.current, gr.current = null, de();
|
|
225
225
|
try {
|
|
226
|
-
if (
|
|
226
|
+
if (l) {
|
|
227
227
|
var y = function() {
|
|
228
228
|
throw Error();
|
|
229
229
|
};
|
|
@@ -234,59 +234,59 @@ function Be() {
|
|
|
234
234
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
235
235
|
try {
|
|
236
236
|
Reflect.construct(y, []);
|
|
237
|
-
} catch (
|
|
238
|
-
|
|
237
|
+
} catch (j) {
|
|
238
|
+
f = j;
|
|
239
239
|
}
|
|
240
240
|
Reflect.construct(e, [], y);
|
|
241
241
|
} else {
|
|
242
242
|
try {
|
|
243
243
|
y.call();
|
|
244
|
-
} catch (
|
|
245
|
-
|
|
244
|
+
} catch (j) {
|
|
245
|
+
f = j;
|
|
246
246
|
}
|
|
247
247
|
e.call(y.prototype);
|
|
248
248
|
}
|
|
249
249
|
} else {
|
|
250
250
|
try {
|
|
251
251
|
throw Error();
|
|
252
|
-
} catch (
|
|
253
|
-
|
|
252
|
+
} catch (j) {
|
|
253
|
+
f = j;
|
|
254
254
|
}
|
|
255
255
|
e();
|
|
256
256
|
}
|
|
257
|
-
} catch (
|
|
258
|
-
if (
|
|
259
|
-
for (var
|
|
260
|
-
`), L =
|
|
261
|
-
`),
|
|
257
|
+
} catch (j) {
|
|
258
|
+
if (j && f && typeof j.stack == "string") {
|
|
259
|
+
for (var b = j.stack.split(`
|
|
260
|
+
`), L = f.stack.split(`
|
|
261
|
+
`), k = b.length - 1, S = L.length - 1; k >= 1 && S >= 0 && b[k] !== L[S]; )
|
|
262
262
|
S--;
|
|
263
|
-
for (;
|
|
264
|
-
if (
|
|
265
|
-
if (
|
|
263
|
+
for (; k >= 1 && S >= 0; k--, S--)
|
|
264
|
+
if (b[k] !== L[S]) {
|
|
265
|
+
if (k !== 1 || S !== 1)
|
|
266
266
|
do
|
|
267
|
-
if (
|
|
268
|
-
var
|
|
269
|
-
` +
|
|
270
|
-
return e.displayName &&
|
|
267
|
+
if (k--, S--, S < 0 || b[k] !== L[S]) {
|
|
268
|
+
var F = `
|
|
269
|
+
` + b[k].replace(" at new ", " at ");
|
|
270
|
+
return e.displayName && F.includes("<anonymous>") && (F = F.replace("<anonymous>", e.displayName)), typeof e == "function" && ir.set(e, F), F;
|
|
271
271
|
}
|
|
272
|
-
while (
|
|
272
|
+
while (k >= 1 && S >= 0);
|
|
273
273
|
break;
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
276
|
} finally {
|
|
277
|
-
hr = !1, gr.current =
|
|
277
|
+
hr = !1, gr.current = E, me(), Error.prepareStackTrace = w;
|
|
278
278
|
}
|
|
279
279
|
var M = e ? e.displayName || e.name : "", Zr = M ? ar(M) : "";
|
|
280
280
|
return typeof e == "function" && ir.set(e, Zr), Zr;
|
|
281
281
|
}
|
|
282
|
-
function fe(e,
|
|
282
|
+
function fe(e, l, u) {
|
|
283
283
|
return Pr(e, !1);
|
|
284
284
|
}
|
|
285
285
|
function he(e) {
|
|
286
|
-
var
|
|
287
|
-
return !!(
|
|
286
|
+
var l = e.prototype;
|
|
287
|
+
return !!(l && l.isReactComponent);
|
|
288
288
|
}
|
|
289
|
-
function sr(e,
|
|
289
|
+
function sr(e, l, u) {
|
|
290
290
|
if (e == null)
|
|
291
291
|
return "";
|
|
292
292
|
if (typeof e == "function")
|
|
@@ -294,51 +294,51 @@ function Be() {
|
|
|
294
294
|
if (typeof e == "string")
|
|
295
295
|
return ar(e);
|
|
296
296
|
switch (e) {
|
|
297
|
-
case
|
|
297
|
+
case N:
|
|
298
298
|
return ar("Suspense");
|
|
299
|
-
case
|
|
299
|
+
case q:
|
|
300
300
|
return ar("SuspenseList");
|
|
301
301
|
}
|
|
302
302
|
if (typeof e == "object")
|
|
303
303
|
switch (e.$$typeof) {
|
|
304
|
-
case
|
|
304
|
+
case n:
|
|
305
305
|
return fe(e.render);
|
|
306
|
-
case
|
|
307
|
-
return sr(e.type,
|
|
308
|
-
case
|
|
309
|
-
var
|
|
306
|
+
case v:
|
|
307
|
+
return sr(e.type, l, u);
|
|
308
|
+
case p: {
|
|
309
|
+
var f = e, w = f._payload, E = f._init;
|
|
310
310
|
try {
|
|
311
|
-
return sr(
|
|
311
|
+
return sr(E(w), l, u);
|
|
312
312
|
} catch {
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
316
|
return "";
|
|
317
317
|
}
|
|
318
|
-
var lr = Object.prototype.hasOwnProperty, Ir = {}, Br =
|
|
318
|
+
var lr = Object.prototype.hasOwnProperty, Ir = {}, Br = I.ReactDebugCurrentFrame;
|
|
319
319
|
function or(e) {
|
|
320
320
|
if (e) {
|
|
321
|
-
var
|
|
322
|
-
Br.setExtraStackFrame(
|
|
321
|
+
var l = e._owner, u = sr(e.type, e._source, l ? l.type : null);
|
|
322
|
+
Br.setExtraStackFrame(u);
|
|
323
323
|
} else
|
|
324
324
|
Br.setExtraStackFrame(null);
|
|
325
325
|
}
|
|
326
|
-
function be(e,
|
|
326
|
+
function be(e, l, u, f, w) {
|
|
327
327
|
{
|
|
328
|
-
var
|
|
328
|
+
var E = Function.call.bind(lr);
|
|
329
329
|
for (var y in e)
|
|
330
|
-
if (
|
|
331
|
-
var
|
|
330
|
+
if (E(e, y)) {
|
|
331
|
+
var b = void 0;
|
|
332
332
|
try {
|
|
333
333
|
if (typeof e[y] != "function") {
|
|
334
|
-
var L = Error((
|
|
334
|
+
var L = Error((f || "React class") + ": " + u + " type `" + y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[y] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
335
335
|
throw L.name = "Invariant Violation", L;
|
|
336
336
|
}
|
|
337
|
-
|
|
338
|
-
} catch (
|
|
339
|
-
|
|
337
|
+
b = e[y](l, y, f, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
338
|
+
} catch (k) {
|
|
339
|
+
b = k;
|
|
340
340
|
}
|
|
341
|
-
|
|
341
|
+
b && !(b instanceof Error) && (or(w), A("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", f || "React class", u, y, typeof b), or(null)), b instanceof Error && !(b.message in Ir) && (Ir[b.message] = !0, or(w), A("Failed %s type: %s", u, b.message), or(null));
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
344
|
}
|
|
@@ -348,8 +348,8 @@ function Be() {
|
|
|
348
348
|
}
|
|
349
349
|
function ye(e) {
|
|
350
350
|
{
|
|
351
|
-
var
|
|
352
|
-
return
|
|
351
|
+
var l = typeof Symbol == "function" && Symbol.toStringTag, u = l && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
352
|
+
return u;
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
355
|
function we(e) {
|
|
@@ -364,120 +364,120 @@ function Be() {
|
|
|
364
364
|
}
|
|
365
365
|
function jr(e) {
|
|
366
366
|
if (we(e))
|
|
367
|
-
return
|
|
367
|
+
return A("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ye(e)), Vr(e);
|
|
368
368
|
}
|
|
369
|
-
var X =
|
|
369
|
+
var X = I.ReactCurrentOwner, qe = {
|
|
370
370
|
key: !0,
|
|
371
371
|
ref: !0,
|
|
372
372
|
__self: !0,
|
|
373
373
|
__source: !0
|
|
374
|
-
}, Hr,
|
|
374
|
+
}, Hr, $r, vr;
|
|
375
375
|
vr = {};
|
|
376
376
|
function xe(e) {
|
|
377
377
|
if (lr.call(e, "ref")) {
|
|
378
|
-
var
|
|
379
|
-
if (
|
|
378
|
+
var l = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
379
|
+
if (l && l.isReactWarning)
|
|
380
380
|
return !1;
|
|
381
381
|
}
|
|
382
382
|
return e.ref !== void 0;
|
|
383
383
|
}
|
|
384
384
|
function Ee(e) {
|
|
385
385
|
if (lr.call(e, "key")) {
|
|
386
|
-
var
|
|
387
|
-
if (
|
|
386
|
+
var l = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
387
|
+
if (l && l.isReactWarning)
|
|
388
388
|
return !1;
|
|
389
389
|
}
|
|
390
390
|
return e.key !== void 0;
|
|
391
391
|
}
|
|
392
|
-
function Ne(e,
|
|
393
|
-
if (typeof e.ref == "string" && X.current &&
|
|
394
|
-
var
|
|
395
|
-
vr[
|
|
392
|
+
function Ne(e, l) {
|
|
393
|
+
if (typeof e.ref == "string" && X.current && l && X.current.stateNode !== l) {
|
|
394
|
+
var u = V(X.current.type);
|
|
395
|
+
vr[u] || (A('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', V(X.current.type), e.ref), vr[u] = !0);
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
|
-
function Ae(e,
|
|
398
|
+
function Ae(e, l) {
|
|
399
399
|
{
|
|
400
|
-
var
|
|
401
|
-
Hr || (Hr = !0,
|
|
400
|
+
var u = function() {
|
|
401
|
+
Hr || (Hr = !0, A("%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://reactjs.org/link/special-props)", l));
|
|
402
402
|
};
|
|
403
|
-
|
|
404
|
-
get:
|
|
403
|
+
u.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
404
|
+
get: u,
|
|
405
405
|
configurable: !0
|
|
406
406
|
});
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
|
-
function ke(e,
|
|
409
|
+
function ke(e, l) {
|
|
410
410
|
{
|
|
411
|
-
var
|
|
412
|
-
|
|
411
|
+
var u = function() {
|
|
412
|
+
$r || ($r = !0, A("%s: `ref` 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://reactjs.org/link/special-props)", l));
|
|
413
413
|
};
|
|
414
|
-
|
|
415
|
-
get:
|
|
414
|
+
u.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
415
|
+
get: u,
|
|
416
416
|
configurable: !0
|
|
417
417
|
});
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
|
-
var De = function(e,
|
|
421
|
-
var
|
|
420
|
+
var De = function(e, l, u, f, w, E, y) {
|
|
421
|
+
var b = {
|
|
422
422
|
$$typeof: a,
|
|
423
423
|
type: e,
|
|
424
|
-
key:
|
|
425
|
-
ref:
|
|
424
|
+
key: l,
|
|
425
|
+
ref: u,
|
|
426
426
|
props: y,
|
|
427
|
-
_owner:
|
|
427
|
+
_owner: E
|
|
428
428
|
};
|
|
429
|
-
return
|
|
429
|
+
return b._store = {}, Object.defineProperty(b._store, "validated", {
|
|
430
430
|
configurable: !1,
|
|
431
431
|
enumerable: !1,
|
|
432
432
|
writable: !0,
|
|
433
433
|
value: !1
|
|
434
|
-
}), Object.defineProperty(
|
|
434
|
+
}), Object.defineProperty(b, "_self", {
|
|
435
435
|
configurable: !1,
|
|
436
436
|
enumerable: !1,
|
|
437
437
|
writable: !1,
|
|
438
|
-
value:
|
|
439
|
-
}), Object.defineProperty(
|
|
438
|
+
value: f
|
|
439
|
+
}), Object.defineProperty(b, "_source", {
|
|
440
440
|
configurable: !1,
|
|
441
441
|
enumerable: !1,
|
|
442
442
|
writable: !1,
|
|
443
443
|
value: w
|
|
444
|
-
}), Object.freeze && (Object.freeze(
|
|
444
|
+
}), Object.freeze && (Object.freeze(b.props), Object.freeze(b)), b;
|
|
445
445
|
};
|
|
446
|
-
function Se(e,
|
|
446
|
+
function Se(e, l, u, f, w) {
|
|
447
447
|
{
|
|
448
|
-
var
|
|
449
|
-
|
|
450
|
-
for (
|
|
451
|
-
lr.call(
|
|
448
|
+
var E, y = {}, b = null, L = null;
|
|
449
|
+
u !== void 0 && (jr(u), b = "" + u), Ee(l) && (jr(l.key), b = "" + l.key), xe(l) && (L = l.ref, Ne(l, w));
|
|
450
|
+
for (E in l)
|
|
451
|
+
lr.call(l, E) && !qe.hasOwnProperty(E) && (y[E] = l[E]);
|
|
452
452
|
if (e && e.defaultProps) {
|
|
453
|
-
var
|
|
454
|
-
for (
|
|
455
|
-
y[
|
|
453
|
+
var k = e.defaultProps;
|
|
454
|
+
for (E in k)
|
|
455
|
+
y[E] === void 0 && (y[E] = k[E]);
|
|
456
456
|
}
|
|
457
|
-
if (
|
|
457
|
+
if (b || L) {
|
|
458
458
|
var S = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
459
|
-
|
|
459
|
+
b && Ae(y, S), L && ke(y, S);
|
|
460
460
|
}
|
|
461
|
-
return De(e,
|
|
461
|
+
return De(e, b, L, w, f, X.current, y);
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
|
-
var yr =
|
|
464
|
+
var yr = I.ReactCurrentOwner, zr = I.ReactDebugCurrentFrame;
|
|
465
465
|
function G(e) {
|
|
466
466
|
if (e) {
|
|
467
|
-
var
|
|
468
|
-
|
|
467
|
+
var l = e._owner, u = sr(e.type, e._source, l ? l.type : null);
|
|
468
|
+
zr.setExtraStackFrame(u);
|
|
469
469
|
} else
|
|
470
|
-
|
|
470
|
+
zr.setExtraStackFrame(null);
|
|
471
471
|
}
|
|
472
472
|
var wr;
|
|
473
473
|
wr = !1;
|
|
474
474
|
function qr(e) {
|
|
475
475
|
return typeof e == "object" && e !== null && e.$$typeof === a;
|
|
476
476
|
}
|
|
477
|
-
function
|
|
477
|
+
function Gr() {
|
|
478
478
|
{
|
|
479
479
|
if (yr.current) {
|
|
480
|
-
var e =
|
|
480
|
+
var e = V(yr.current.type);
|
|
481
481
|
if (e)
|
|
482
482
|
return `
|
|
483
483
|
|
|
@@ -489,138 +489,138 @@ Check the render method of \`` + e + "`.";
|
|
|
489
489
|
function Re(e) {
|
|
490
490
|
{
|
|
491
491
|
if (e !== void 0) {
|
|
492
|
-
var
|
|
492
|
+
var l = e.fileName.replace(/^.*[\\\/]/, ""), u = e.lineNumber;
|
|
493
493
|
return `
|
|
494
494
|
|
|
495
|
-
Check your code at ` +
|
|
495
|
+
Check your code at ` + l + ":" + u + ".";
|
|
496
496
|
}
|
|
497
497
|
return "";
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
|
-
var
|
|
500
|
+
var Mr = {};
|
|
501
501
|
function Te(e) {
|
|
502
502
|
{
|
|
503
|
-
var
|
|
504
|
-
if (!
|
|
505
|
-
var
|
|
506
|
-
|
|
503
|
+
var l = Gr();
|
|
504
|
+
if (!l) {
|
|
505
|
+
var u = typeof e == "string" ? e : e.displayName || e.name;
|
|
506
|
+
u && (l = `
|
|
507
507
|
|
|
508
|
-
Check the top-level render call using <` +
|
|
508
|
+
Check the top-level render call using <` + u + ">.");
|
|
509
509
|
}
|
|
510
|
-
return
|
|
510
|
+
return l;
|
|
511
511
|
}
|
|
512
512
|
}
|
|
513
|
-
function Yr(e,
|
|
513
|
+
function Yr(e, l) {
|
|
514
514
|
{
|
|
515
515
|
if (!e._store || e._store.validated || e.key != null)
|
|
516
516
|
return;
|
|
517
517
|
e._store.validated = !0;
|
|
518
|
-
var
|
|
519
|
-
if (
|
|
518
|
+
var u = Te(l);
|
|
519
|
+
if (Mr[u])
|
|
520
520
|
return;
|
|
521
|
-
|
|
522
|
-
var
|
|
523
|
-
e && e._owner && e._owner !== yr.current && (
|
|
521
|
+
Mr[u] = !0;
|
|
522
|
+
var f = "";
|
|
523
|
+
e && e._owner && e._owner !== yr.current && (f = " It was passed a child from " + V(e._owner.type) + "."), G(e), A('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, f), G(null);
|
|
524
524
|
}
|
|
525
525
|
}
|
|
526
|
-
function Wr(e,
|
|
526
|
+
function Wr(e, l) {
|
|
527
527
|
{
|
|
528
528
|
if (typeof e != "object")
|
|
529
529
|
return;
|
|
530
530
|
if (br(e))
|
|
531
|
-
for (var
|
|
532
|
-
var
|
|
533
|
-
qr(
|
|
531
|
+
for (var u = 0; u < e.length; u++) {
|
|
532
|
+
var f = e[u];
|
|
533
|
+
qr(f) && Yr(f, l);
|
|
534
534
|
}
|
|
535
535
|
else if (qr(e))
|
|
536
536
|
e._store && (e._store.validated = !0);
|
|
537
537
|
else if (e) {
|
|
538
|
-
var w =
|
|
538
|
+
var w = _(e);
|
|
539
539
|
if (typeof w == "function" && w !== e.entries)
|
|
540
|
-
for (var
|
|
541
|
-
qr(y.value) && Yr(y.value,
|
|
540
|
+
for (var E = w.call(e), y; !(y = E.next()).done; )
|
|
541
|
+
qr(y.value) && Yr(y.value, l);
|
|
542
542
|
}
|
|
543
543
|
}
|
|
544
544
|
}
|
|
545
545
|
function Ce(e) {
|
|
546
546
|
{
|
|
547
|
-
var
|
|
548
|
-
if (
|
|
547
|
+
var l = e.type;
|
|
548
|
+
if (l == null || typeof l == "string")
|
|
549
549
|
return;
|
|
550
|
-
var
|
|
551
|
-
if (typeof
|
|
552
|
-
|
|
553
|
-
else if (typeof
|
|
554
|
-
|
|
550
|
+
var u;
|
|
551
|
+
if (typeof l == "function")
|
|
552
|
+
u = l.propTypes;
|
|
553
|
+
else if (typeof l == "object" && (l.$$typeof === n || l.$$typeof === v))
|
|
554
|
+
u = l.propTypes;
|
|
555
555
|
else
|
|
556
556
|
return;
|
|
557
|
-
if (
|
|
558
|
-
var
|
|
559
|
-
be(
|
|
560
|
-
} else if (
|
|
557
|
+
if (u) {
|
|
558
|
+
var f = V(l);
|
|
559
|
+
be(u, e.props, "prop", f, e);
|
|
560
|
+
} else if (l.PropTypes !== void 0 && !wr) {
|
|
561
561
|
wr = !0;
|
|
562
|
-
var w =
|
|
563
|
-
|
|
562
|
+
var w = V(l);
|
|
563
|
+
A("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", w || "Unknown");
|
|
564
564
|
}
|
|
565
|
-
typeof
|
|
565
|
+
typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved && A("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
568
|
function Le(e) {
|
|
569
569
|
{
|
|
570
|
-
for (var
|
|
571
|
-
var
|
|
572
|
-
if (
|
|
573
|
-
G(e),
|
|
570
|
+
for (var l = Object.keys(e.props), u = 0; u < l.length; u++) {
|
|
571
|
+
var f = l[u];
|
|
572
|
+
if (f !== "children" && f !== "key") {
|
|
573
|
+
G(e), A("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", f), G(null);
|
|
574
574
|
break;
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
|
-
e.ref !== null && (G(e),
|
|
577
|
+
e.ref !== null && (G(e), A("Invalid attribute `ref` supplied to `React.Fragment`."), G(null));
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
|
-
function Jr(e,
|
|
580
|
+
function Jr(e, l, u, f, w, E) {
|
|
581
581
|
{
|
|
582
582
|
var y = ue(e);
|
|
583
583
|
if (!y) {
|
|
584
|
-
var
|
|
585
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
584
|
+
var b = "";
|
|
585
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (b += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
586
586
|
var L = Re(w);
|
|
587
|
-
L ?
|
|
588
|
-
var
|
|
589
|
-
e === null ?
|
|
587
|
+
L ? b += L : b += Gr();
|
|
588
|
+
var k;
|
|
589
|
+
e === null ? k = "null" : br(e) ? k = "array" : e !== void 0 && e.$$typeof === a ? (k = "<" + (V(e.type) || "Unknown") + " />", b = " Did you accidentally export a JSX literal instead of a component?") : k = typeof e, A("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", k, b);
|
|
590
590
|
}
|
|
591
|
-
var S = Se(e,
|
|
591
|
+
var S = Se(e, l, u, w, E);
|
|
592
592
|
if (S == null)
|
|
593
593
|
return S;
|
|
594
594
|
if (y) {
|
|
595
|
-
var
|
|
596
|
-
if (
|
|
597
|
-
if (
|
|
598
|
-
if (br(
|
|
599
|
-
for (var M = 0; M <
|
|
600
|
-
Wr(
|
|
601
|
-
Object.freeze && Object.freeze(
|
|
595
|
+
var F = l.children;
|
|
596
|
+
if (F !== void 0)
|
|
597
|
+
if (f)
|
|
598
|
+
if (br(F)) {
|
|
599
|
+
for (var M = 0; M < F.length; M++)
|
|
600
|
+
Wr(F[M], e);
|
|
601
|
+
Object.freeze && Object.freeze(F);
|
|
602
602
|
} else
|
|
603
|
-
|
|
603
|
+
A("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
604
604
|
else
|
|
605
|
-
Wr(
|
|
605
|
+
Wr(F, e);
|
|
606
606
|
}
|
|
607
|
-
return e ===
|
|
607
|
+
return e === s ? Le(S) : Ce(S), S;
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
|
-
function Oe(e,
|
|
611
|
-
return Jr(e,
|
|
610
|
+
function Oe(e, l, u) {
|
|
611
|
+
return Jr(e, l, u, !0);
|
|
612
612
|
}
|
|
613
|
-
function _e(e,
|
|
614
|
-
return Jr(e,
|
|
613
|
+
function _e(e, l, u) {
|
|
614
|
+
return Jr(e, l, u, !1);
|
|
615
615
|
}
|
|
616
616
|
var Fe = _e, Ue = Oe;
|
|
617
|
-
rr.Fragment =
|
|
617
|
+
rr.Fragment = s, rr.jsx = Fe, rr.jsxs = Ue;
|
|
618
618
|
}()), rr;
|
|
619
619
|
}
|
|
620
620
|
(function(r) {
|
|
621
621
|
process.env.NODE_ENV === "production" ? r.exports = Ie() : r.exports = Be();
|
|
622
622
|
})(nr);
|
|
623
|
-
const
|
|
623
|
+
const U = nr.exports.Fragment, t = nr.exports.jsx, m = nr.exports.jsxs, T = ({
|
|
624
624
|
text: r
|
|
625
625
|
}) => r ? /* @__PURE__ */ t("div", {
|
|
626
626
|
className: "title",
|
|
@@ -630,32 +630,36 @@ const F = nr.exports.Fragment, t = nr.exports.jsx, g = nr.exports.jsxs, C = ({
|
|
|
630
630
|
}) => {
|
|
631
631
|
const {
|
|
632
632
|
document: a
|
|
633
|
-
} =
|
|
634
|
-
|
|
635
|
-
|
|
633
|
+
} = B(P), i = a.attributes || {}, s = r.attributes;
|
|
634
|
+
console.log(r);
|
|
635
|
+
const c = () => i.icons === "font" && !s.icon ? /* @__PURE__ */ t("i", {
|
|
636
|
+
className: `fa icon-${s.name}`,
|
|
637
|
+
title: `${s.textlabel}`
|
|
636
638
|
}) : /* @__PURE__ */ t("img", {
|
|
637
639
|
src: r.iconUri,
|
|
638
|
-
alt:
|
|
640
|
+
alt: `${s.textlabel}`
|
|
639
641
|
});
|
|
640
642
|
return /* @__PURE__ */ t("div", {
|
|
641
|
-
className: `admonitionblock ${
|
|
643
|
+
className: `admonitionblock ${s.name}`,
|
|
642
644
|
...r.lineNumber ? {
|
|
643
645
|
"data-lineno": r.lineNumber
|
|
644
646
|
} : {},
|
|
645
647
|
children: /* @__PURE__ */ t("table", {
|
|
646
648
|
children: /* @__PURE__ */ t("tbody", {
|
|
647
|
-
children: /* @__PURE__ */
|
|
649
|
+
children: /* @__PURE__ */ m("tr", {
|
|
648
650
|
children: [/* @__PURE__ */ t("td", {
|
|
649
651
|
className: "icon",
|
|
650
|
-
children:
|
|
652
|
+
children: i.icons ? c() : /* @__PURE__ */ t("div", {
|
|
651
653
|
className: "title",
|
|
652
|
-
children:
|
|
654
|
+
children: s.textlabel
|
|
653
655
|
})
|
|
654
|
-
}), /* @__PURE__ */
|
|
656
|
+
}), /* @__PURE__ */ m("td", {
|
|
655
657
|
className: "content",
|
|
656
|
-
children: [/* @__PURE__ */ t(
|
|
658
|
+
children: [/* @__PURE__ */ t(T, {
|
|
657
659
|
text: r.title
|
|
658
|
-
}), r.content && R(r.content)
|
|
660
|
+
}), r.content && R(r.content), /* @__PURE__ */ t(C, {
|
|
661
|
+
blocks: r.blocks
|
|
662
|
+
})]
|
|
659
663
|
})]
|
|
660
664
|
})
|
|
661
665
|
})
|
|
@@ -664,18 +668,18 @@ const F = nr.exports.Fragment, t = nr.exports.jsx, g = nr.exports.jsxs, C = ({
|
|
|
664
668
|
}, je = ({
|
|
665
669
|
node: r
|
|
666
670
|
}) => {
|
|
667
|
-
const a = r.attributes.start,
|
|
668
|
-
return /* @__PURE__ */
|
|
671
|
+
const a = r.attributes.start, i = r.attributes.end, s = (a || i) && `#t=${a || ""}` + i ? `,${i}` : "";
|
|
672
|
+
return /* @__PURE__ */ m("div", {
|
|
669
673
|
className: "audioblock",
|
|
670
674
|
...r.lineNumber ? {
|
|
671
675
|
"data-lineno": r.lineNumber
|
|
672
676
|
} : {},
|
|
673
|
-
children: [/* @__PURE__ */ t(
|
|
677
|
+
children: [/* @__PURE__ */ t(T, {
|
|
674
678
|
text: r.title
|
|
675
679
|
}), /* @__PURE__ */ t("div", {
|
|
676
680
|
className: "content",
|
|
677
681
|
children: /* @__PURE__ */ t("audio", {
|
|
678
|
-
src: `${r.mediaUri}${
|
|
682
|
+
src: `${r.mediaUri}${s}`,
|
|
679
683
|
autoPlay: r.autoplay,
|
|
680
684
|
controls: !r.noControls,
|
|
681
685
|
loop: r.loop,
|
|
@@ -685,29 +689,29 @@ const F = nr.exports.Fragment, t = nr.exports.jsx, g = nr.exports.jsxs, C = ({
|
|
|
685
689
|
});
|
|
686
690
|
}, He = ({
|
|
687
691
|
node: r
|
|
688
|
-
}) => /* @__PURE__ */
|
|
692
|
+
}) => /* @__PURE__ */ m("div", {
|
|
689
693
|
className: "colist",
|
|
690
694
|
...r.lineNumber ? {
|
|
691
695
|
"data-lineno": r.lineNumber
|
|
692
696
|
} : {},
|
|
693
|
-
children: [/* @__PURE__ */ t(
|
|
697
|
+
children: [/* @__PURE__ */ t(T, {
|
|
694
698
|
text: r.title
|
|
695
699
|
}), /* @__PURE__ */ t("table", {
|
|
696
700
|
children: /* @__PURE__ */ t("tbody", {
|
|
697
|
-
children: r.items.map((a,
|
|
698
|
-
children: [/* @__PURE__ */
|
|
701
|
+
children: r.items.map((a, i) => /* @__PURE__ */ m("tr", {
|
|
702
|
+
children: [/* @__PURE__ */ m("td", {
|
|
699
703
|
children: [/* @__PURE__ */ t("i", {
|
|
700
704
|
className: "conum",
|
|
701
|
-
"data-value":
|
|
705
|
+
"data-value": i + 1
|
|
702
706
|
}), /* @__PURE__ */ t("b", {
|
|
703
|
-
children:
|
|
707
|
+
children: i + 1
|
|
704
708
|
})]
|
|
705
|
-
}), /* @__PURE__ */
|
|
706
|
-
children: [a.text && R(a.text), /* @__PURE__ */ t(
|
|
709
|
+
}), /* @__PURE__ */ m("td", {
|
|
710
|
+
children: [a.text && R(a.text), /* @__PURE__ */ t(C, {
|
|
707
711
|
blocks: a.blocks
|
|
708
712
|
})]
|
|
709
713
|
})]
|
|
710
|
-
},
|
|
714
|
+
}, i))
|
|
711
715
|
})
|
|
712
716
|
})]
|
|
713
717
|
});
|
|
@@ -720,34 +724,34 @@ var te = { exports: {} };
|
|
|
720
724
|
(function(r) {
|
|
721
725
|
(function() {
|
|
722
726
|
var a = {}.hasOwnProperty;
|
|
723
|
-
function
|
|
724
|
-
for (var
|
|
725
|
-
var
|
|
726
|
-
if (!!
|
|
727
|
-
var
|
|
728
|
-
if (
|
|
729
|
-
|
|
730
|
-
else if (Array.isArray(
|
|
731
|
-
if (
|
|
732
|
-
var
|
|
733
|
-
|
|
727
|
+
function i() {
|
|
728
|
+
for (var s = [], c = 0; c < arguments.length; c++) {
|
|
729
|
+
var d = arguments[c];
|
|
730
|
+
if (!!d) {
|
|
731
|
+
var g = typeof d;
|
|
732
|
+
if (g === "string" || g === "number")
|
|
733
|
+
s.push(d);
|
|
734
|
+
else if (Array.isArray(d)) {
|
|
735
|
+
if (d.length) {
|
|
736
|
+
var o = i.apply(null, d);
|
|
737
|
+
o && s.push(o);
|
|
734
738
|
}
|
|
735
|
-
} else if (
|
|
736
|
-
if (
|
|
737
|
-
|
|
739
|
+
} else if (g === "object") {
|
|
740
|
+
if (d.toString !== Object.prototype.toString && !d.toString.toString().includes("[native code]")) {
|
|
741
|
+
s.push(d.toString());
|
|
738
742
|
continue;
|
|
739
743
|
}
|
|
740
|
-
for (var
|
|
741
|
-
a.call(
|
|
744
|
+
for (var n in d)
|
|
745
|
+
a.call(d, n) && d[n] && s.push(n);
|
|
742
746
|
}
|
|
743
747
|
}
|
|
744
748
|
}
|
|
745
|
-
return
|
|
749
|
+
return s.join(" ");
|
|
746
750
|
}
|
|
747
|
-
r.exports ? (
|
|
751
|
+
r.exports ? (i.default = i, r.exports = i) : window.classNames = i;
|
|
748
752
|
})();
|
|
749
753
|
})(te);
|
|
750
|
-
const
|
|
754
|
+
const D = te.exports;
|
|
751
755
|
var ur = {}, pr = {};
|
|
752
756
|
Object.defineProperty(pr, "__esModule", { value: !0 });
|
|
753
757
|
pr.bodyRegExps = { xml: /&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g, html4: /∉|&(?:nbsp|iexcl|cent|pound|curren|yen|brvbar|sect|uml|copy|ordf|laquo|not|shy|reg|macr|deg|plusmn|sup2|sup3|acute|micro|para|middot|cedil|sup1|ordm|raquo|frac14|frac12|frac34|iquest|Agrave|Aacute|Acirc|Atilde|Auml|Aring|AElig|Ccedil|Egrave|Eacute|Ecirc|Euml|Igrave|Iacute|Icirc|Iuml|ETH|Ntilde|Ograve|Oacute|Ocirc|Otilde|Ouml|times|Oslash|Ugrave|Uacute|Ucirc|Uuml|Yacute|THORN|szlig|agrave|aacute|acirc|atilde|auml|aring|aelig|ccedil|egrave|eacute|ecirc|euml|igrave|iacute|icirc|iuml|eth|ntilde|ograve|oacute|ocirc|otilde|ouml|divide|oslash|ugrave|uacute|ucirc|uuml|yacute|thorn|yuml|quot|amp|lt|gt|#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g, html5: /·|℗|⋇|⪧|⩺|⋗|⦕|⩼|⪆|⥸|⋗|⋛|⪌|≷|≳|⪦|⩹|⋖|⋋|⋉|⥶|⩻|⦖|◃|⊴|◂|∉|⋹̸|⋵̸|∉|⋷|⋶|∌|∌|⋾|⋽|∥|⊠|⨱|⨰|&(?:AElig|AMP|Aacute|Acirc|Agrave|Aring|Atilde|Auml|COPY|Ccedil|ETH|Eacute|Ecirc|Egrave|Euml|GT|Iacute|Icirc|Igrave|Iuml|LT|Ntilde|Oacute|Ocirc|Ograve|Oslash|Otilde|Ouml|QUOT|REG|THORN|Uacute|Ucirc|Ugrave|Uuml|Yacute|aacute|acirc|acute|aelig|agrave|amp|aring|atilde|auml|brvbar|ccedil|cedil|cent|copy|curren|deg|divide|eacute|ecirc|egrave|eth|euml|frac12|frac14|frac34|gt|iacute|icirc|iexcl|igrave|iquest|iuml|laquo|lt|macr|micro|middot|nbsp|not|ntilde|oacute|ocirc|ograve|ordf|ordm|oslash|otilde|ouml|para|plusmn|pound|quot|raquo|reg|sect|shy|sup1|sup2|sup3|szlig|thorn|times|uacute|ucirc|ugrave|uml|uuml|yacute|yen|yuml|#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g };
|
|
@@ -756,188 +760,190 @@ pr.namedReferences = { xml: { entities: { "<": "<", ">": ">", """: '"
|
|
|
756
760
|
var Ar = {};
|
|
757
761
|
Object.defineProperty(Ar, "__esModule", { value: !0 });
|
|
758
762
|
Ar.numericUnicodeMap = { 0: 65533, 128: 8364, 130: 8218, 131: 402, 132: 8222, 133: 8230, 134: 8224, 135: 8225, 136: 710, 137: 8240, 138: 352, 139: 8249, 140: 338, 142: 381, 145: 8216, 146: 8217, 147: 8220, 148: 8221, 149: 8226, 150: 8211, 151: 8212, 152: 732, 153: 8482, 154: 353, 155: 8250, 156: 339, 158: 382, 159: 376 };
|
|
759
|
-
var
|
|
760
|
-
Object.defineProperty(
|
|
761
|
-
|
|
763
|
+
var J = {};
|
|
764
|
+
Object.defineProperty(J, "__esModule", { value: !0 });
|
|
765
|
+
J.fromCodePoint = String.fromCodePoint || function(r) {
|
|
762
766
|
return String.fromCharCode(Math.floor((r - 65536) / 1024) + 55296, (r - 65536) % 1024 + 56320);
|
|
763
767
|
};
|
|
764
|
-
|
|
768
|
+
J.getCodePoint = String.prototype.codePointAt ? function(r, a) {
|
|
765
769
|
return r.codePointAt(a);
|
|
766
770
|
} : function(r, a) {
|
|
767
771
|
return (r.charCodeAt(a) - 55296) * 1024 + r.charCodeAt(a + 1) - 56320 + 65536;
|
|
768
772
|
};
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
var
|
|
772
|
-
return
|
|
773
|
-
for (var a,
|
|
774
|
-
a = arguments[
|
|
773
|
+
J.highSurrogateFrom = 55296;
|
|
774
|
+
J.highSurrogateTo = 56319;
|
|
775
|
+
var W = Kr && Kr.__assign || function() {
|
|
776
|
+
return W = Object.assign || function(r) {
|
|
777
|
+
for (var a, i = 1, s = arguments.length; i < s; i++) {
|
|
778
|
+
a = arguments[i];
|
|
775
779
|
for (var c in a)
|
|
776
780
|
Object.prototype.hasOwnProperty.call(a, c) && (r[c] = a[c]);
|
|
777
781
|
}
|
|
778
782
|
return r;
|
|
779
|
-
},
|
|
783
|
+
}, W.apply(this, arguments);
|
|
780
784
|
};
|
|
781
785
|
Object.defineProperty(ur, "__esModule", { value: !0 });
|
|
782
|
-
var er = pr,
|
|
783
|
-
function ie(r, a,
|
|
786
|
+
var er = pr, $e = Ar, ae = J, kr = W(W({}, er.namedReferences), { all: er.namedReferences.html5 });
|
|
787
|
+
function ie(r, a, i) {
|
|
784
788
|
a.lastIndex = 0;
|
|
785
|
-
var
|
|
786
|
-
if (
|
|
789
|
+
var s = a.exec(r), c;
|
|
790
|
+
if (s) {
|
|
787
791
|
c = "";
|
|
788
|
-
var
|
|
792
|
+
var d = 0;
|
|
789
793
|
do {
|
|
790
|
-
|
|
791
|
-
var
|
|
792
|
-
c +=
|
|
793
|
-
} while (
|
|
794
|
-
|
|
794
|
+
d !== s.index && (c += r.substring(d, s.index));
|
|
795
|
+
var g = s[0];
|
|
796
|
+
c += i(g), d = s.index + g.length;
|
|
797
|
+
} while (s = a.exec(r));
|
|
798
|
+
d !== r.length && (c += r.substring(d));
|
|
795
799
|
} else
|
|
796
800
|
c = r;
|
|
797
801
|
return c;
|
|
798
802
|
}
|
|
799
|
-
var
|
|
800
|
-
function
|
|
801
|
-
var
|
|
803
|
+
var ze = { specialChars: /[<>'"&]/g, nonAscii: /[<>'"&\u0080-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g, nonAsciiPrintable: /[<>'"&\x01-\x08\x11-\x15\x17-\x1F\x7f-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g, nonAsciiPrintableOnly: /[\x01-\x08\x11-\x15\x17-\x1F\x7f-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g, extensive: /[\x01-\x0c\x0e-\x1f\x21-\x2c\x2e-\x2f\x3a-\x40\x5b-\x60\x7b-\x7d\x7f-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g }, Ge = { mode: "specialChars", level: "all", numeric: "decimal" };
|
|
804
|
+
function Me(r, a) {
|
|
805
|
+
var i = a === void 0 ? Ge : a, s = i.mode, c = s === void 0 ? "specialChars" : s, d = i.numeric, g = d === void 0 ? "decimal" : d, o = i.level, n = o === void 0 ? "all" : o;
|
|
802
806
|
if (!r)
|
|
803
807
|
return "";
|
|
804
|
-
var
|
|
805
|
-
return ie(r,
|
|
806
|
-
var
|
|
807
|
-
if (!
|
|
808
|
-
var
|
|
809
|
-
|
|
808
|
+
var N = ze[c], q = kr[n].characters, v = g === "hexadecimal";
|
|
809
|
+
return ie(r, N, function(p) {
|
|
810
|
+
var h = q[p];
|
|
811
|
+
if (!h) {
|
|
812
|
+
var x = p.length > 1 ? ae.getCodePoint(p, 0) : p.charCodeAt(0);
|
|
813
|
+
h = (v ? "&#x" + x.toString(16) : "&#" + x) + ";";
|
|
810
814
|
}
|
|
811
|
-
return
|
|
815
|
+
return h;
|
|
812
816
|
});
|
|
813
817
|
}
|
|
814
|
-
ur.encode =
|
|
815
|
-
var Ye = { scope: "body", level: "all" }, xr = /&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);/g, Er = /&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+)[;=]?/g, re = { xml: { strict: xr, attribute: Er, body: er.bodyRegExps.xml }, html4: { strict: xr, attribute: Er, body: er.bodyRegExps.html4 }, html5: { strict: xr, attribute: Er, body: er.bodyRegExps.html5 } }, We =
|
|
816
|
-
function le(r, a,
|
|
817
|
-
var c = r,
|
|
818
|
-
if (
|
|
818
|
+
ur.encode = Me;
|
|
819
|
+
var Ye = { scope: "body", level: "all" }, xr = /&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);/g, Er = /&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+)[;=]?/g, re = { xml: { strict: xr, attribute: Er, body: er.bodyRegExps.xml }, html4: { strict: xr, attribute: Er, body: er.bodyRegExps.html4 }, html5: { strict: xr, attribute: Er, body: er.bodyRegExps.html5 } }, We = W(W({}, re), { all: re.html5 }), se = String.fromCharCode, Je = se(65533), Ze = { level: "all" };
|
|
820
|
+
function le(r, a, i, s) {
|
|
821
|
+
var c = r, d = r[r.length - 1];
|
|
822
|
+
if (i && d === "=")
|
|
819
823
|
c = r;
|
|
820
|
-
else if (
|
|
824
|
+
else if (s && d !== ";")
|
|
821
825
|
c = r;
|
|
822
826
|
else {
|
|
823
|
-
var
|
|
824
|
-
if (
|
|
825
|
-
c =
|
|
827
|
+
var g = a[r];
|
|
828
|
+
if (g)
|
|
829
|
+
c = g;
|
|
826
830
|
else if (r[0] === "&" && r[1] === "#") {
|
|
827
|
-
var
|
|
828
|
-
c =
|
|
831
|
+
var o = r[2], n = o == "x" || o == "X" ? parseInt(r.substr(3), 16) : parseInt(r.substr(2));
|
|
832
|
+
c = n >= 1114111 ? Je : n > 65535 ? ae.fromCodePoint(n) : se($e.numericUnicodeMap[n] || n);
|
|
829
833
|
}
|
|
830
834
|
}
|
|
831
835
|
return c;
|
|
832
836
|
}
|
|
833
837
|
function Ke(r, a) {
|
|
834
|
-
var
|
|
835
|
-
return r ? le(r, kr[
|
|
838
|
+
var i = (a === void 0 ? Ze : a).level, s = i === void 0 ? "all" : i;
|
|
839
|
+
return r ? le(r, kr[s].entities, !1, !1) : "";
|
|
836
840
|
}
|
|
837
841
|
ur.decodeEntity = Ke;
|
|
838
842
|
function Xe(r, a) {
|
|
839
|
-
var
|
|
843
|
+
var i = a === void 0 ? Ye : a, s = i.level, c = s === void 0 ? "all" : s, d = i.scope, g = d === void 0 ? c === "xml" ? "strict" : "body" : d;
|
|
840
844
|
if (!r)
|
|
841
845
|
return "";
|
|
842
|
-
var
|
|
843
|
-
return ie(r,
|
|
844
|
-
return le(
|
|
846
|
+
var o = We[c][g], n = kr[c].entities, N = g === "attribute", q = g === "strict";
|
|
847
|
+
return ie(r, o, function(v) {
|
|
848
|
+
return le(v, n, N, q);
|
|
845
849
|
});
|
|
846
850
|
}
|
|
847
851
|
var Qe = ur.decode = Xe;
|
|
848
|
-
const dr = (r, a) => r[`${a}-option`] !== void 0, cr = (r, a,
|
|
852
|
+
const dr = (r, a) => r[`${a}-option`] !== void 0, cr = (r, a, i = void 0, s, c) => {
|
|
849
853
|
if (r[a] !== void 0)
|
|
850
854
|
return r[a];
|
|
851
|
-
const
|
|
852
|
-
return
|
|
853
|
-
},
|
|
854
|
-
var
|
|
855
|
+
const d = s || a;
|
|
856
|
+
return d && c && c[d] !== void 0 ? c[d] : i;
|
|
857
|
+
}, H = (r, a) => r[a] !== void 0, At = (r) => {
|
|
858
|
+
var g;
|
|
855
859
|
let a;
|
|
856
|
-
function
|
|
857
|
-
const
|
|
858
|
-
let
|
|
859
|
-
id:
|
|
860
|
-
type:
|
|
861
|
-
blocks:
|
|
862
|
-
content:
|
|
863
|
-
attributes:
|
|
864
|
-
contentModel:
|
|
865
|
-
lineNumber:
|
|
866
|
-
style:
|
|
867
|
-
role:
|
|
868
|
-
title:
|
|
869
|
-
level:
|
|
860
|
+
function i(o) {
|
|
861
|
+
const n = o.getNodeName && o.getNodeName(), N = o.getContentModel && o.getContentModel(), q = n && o.hasBlocks() ? o.getBlocks().map((p) => i(p)) : [];
|
|
862
|
+
let v = {
|
|
863
|
+
id: o.getId && o.getId(),
|
|
864
|
+
type: n,
|
|
865
|
+
blocks: q,
|
|
866
|
+
content: q.length > 0 ? void 0 : o.getContent && o.getContent(),
|
|
867
|
+
attributes: o.getAttributes && o.getAttributes(),
|
|
868
|
+
contentModel: N,
|
|
869
|
+
lineNumber: o.getLineNumber && o.getLineNumber(),
|
|
870
|
+
style: o.getStyle && o.getStyle(),
|
|
871
|
+
role: o.getRole && o.getRole(),
|
|
872
|
+
title: o.hasTitle && o.hasTitle() ? o.getTitle() : void 0,
|
|
873
|
+
level: o.getLevel && o.getLevel()
|
|
870
874
|
};
|
|
871
|
-
if (
|
|
872
|
-
let p =
|
|
873
|
-
p.iconUri =
|
|
875
|
+
if (n === "admonition") {
|
|
876
|
+
let p = v;
|
|
877
|
+
p.iconUri = o.getIconUri(v.attributes.name);
|
|
874
878
|
}
|
|
875
|
-
if (
|
|
876
|
-
let p =
|
|
877
|
-
p.mediaUri =
|
|
879
|
+
if (n === "audio") {
|
|
880
|
+
let p = v;
|
|
881
|
+
p.mediaUri = o.getMediaUri(o.getAttribute("target")), p.autoplay = o.isOption("autoplay"), p.noControls = !o.isOption("nocontrols"), p.loop = o.isOption("loop"), v = p;
|
|
878
882
|
}
|
|
879
|
-
if (
|
|
880
|
-
let p =
|
|
881
|
-
p.imageUri =
|
|
883
|
+
if (n === "image") {
|
|
884
|
+
let p = v;
|
|
885
|
+
p.imageUri = o.getImageUri(o.getAttribute("target"));
|
|
882
886
|
}
|
|
883
|
-
if ((
|
|
884
|
-
const p =
|
|
885
|
-
p.source =
|
|
887
|
+
if ((n === "listing" || n === "literal") && "getSource" in o) {
|
|
888
|
+
const p = v;
|
|
889
|
+
p.source = o.getSource(), p.language = o.getAttribute("language"), p.content = p.content ? Qe(p.content) : void 0;
|
|
886
890
|
}
|
|
887
|
-
if (
|
|
888
|
-
const p =
|
|
889
|
-
p.title =
|
|
891
|
+
if (n === "section") {
|
|
892
|
+
const p = v;
|
|
893
|
+
p.title = o.getCaption() ? o.getCaptionedTitle() : o.getTitle() || "", "getSectionNumeral" in o && (p.name = o.getSectionName(), p.numbered = o.isNumbered(), p.num = o.getSectionNumeral());
|
|
890
894
|
}
|
|
891
|
-
if (
|
|
892
|
-
let p =
|
|
893
|
-
p.items =
|
|
894
|
-
|
|
895
|
-
(
|
|
895
|
+
if (n === "dlist") {
|
|
896
|
+
let p = v;
|
|
897
|
+
p.items = o.getItems().map((h) => [
|
|
898
|
+
h[0].map(
|
|
899
|
+
(x) => i(x)
|
|
896
900
|
),
|
|
897
|
-
|
|
901
|
+
i(h[1])
|
|
898
902
|
]);
|
|
899
903
|
}
|
|
900
|
-
if (
|
|
901
|
-
let p =
|
|
902
|
-
p.items =
|
|
904
|
+
if (n === "colist" || n === "olist" || n === "ulist") {
|
|
905
|
+
let p = v;
|
|
906
|
+
p.items = o.getItems().map((h) => i(h));
|
|
903
907
|
}
|
|
904
|
-
if (
|
|
905
|
-
let p =
|
|
906
|
-
const
|
|
907
|
-
p.text =
|
|
908
|
+
if (n === "list_item") {
|
|
909
|
+
let p = v;
|
|
910
|
+
const h = o;
|
|
911
|
+
p.text = h.hasText() ? h.getText() : void 0;
|
|
908
912
|
}
|
|
909
|
-
if (
|
|
910
|
-
let p =
|
|
911
|
-
const
|
|
912
|
-
p.columns =
|
|
913
|
-
attributes:
|
|
914
|
-
columnNumber:
|
|
915
|
-
width:
|
|
916
|
-
horizontalAlign:
|
|
917
|
-
verticalAlign:
|
|
918
|
-
style:
|
|
913
|
+
if (n === "table") {
|
|
914
|
+
let p = v;
|
|
915
|
+
const h = o;
|
|
916
|
+
p.columns = h.getColumns().map((_) => ({
|
|
917
|
+
attributes: _.getAttributes(),
|
|
918
|
+
columnNumber: _.getColumnNumber(),
|
|
919
|
+
width: _.getWidth(),
|
|
920
|
+
horizontalAlign: _.getHorizontalAlign(),
|
|
921
|
+
verticalAlign: _.getVerticalAlign(),
|
|
922
|
+
style: _.getStyle()
|
|
919
923
|
}));
|
|
920
|
-
const
|
|
921
|
-
(
|
|
922
|
-
),
|
|
924
|
+
const x = (_) => _.map(
|
|
925
|
+
(I) => I.map((A) => i(A))
|
|
926
|
+
), O = h.getRows();
|
|
923
927
|
p.rows = {
|
|
924
|
-
head:
|
|
925
|
-
body:
|
|
926
|
-
foot:
|
|
928
|
+
head: x(O.head),
|
|
929
|
+
body: x(O.body),
|
|
930
|
+
foot: x(O.foot)
|
|
927
931
|
}, p = {
|
|
928
932
|
...p,
|
|
929
|
-
caption:
|
|
930
|
-
hasHeader:
|
|
931
|
-
hasFooter:
|
|
932
|
-
hasAutowidth:
|
|
933
|
-
headRows:
|
|
934
|
-
bodyRows:
|
|
935
|
-
footRows:
|
|
936
|
-
},
|
|
933
|
+
caption: h.getCaption(),
|
|
934
|
+
hasHeader: h.hasHeaderOption(),
|
|
935
|
+
hasFooter: h.hasFooterOption(),
|
|
936
|
+
hasAutowidth: h.hasAutowidthOption(),
|
|
937
|
+
headRows: x(h.getHeadRows()),
|
|
938
|
+
bodyRows: x(h.getBodyRows()),
|
|
939
|
+
footRows: x(h.getFootRows())
|
|
940
|
+
}, v = p;
|
|
937
941
|
}
|
|
938
|
-
if (
|
|
939
|
-
const p =
|
|
940
|
-
|
|
942
|
+
if (n === "table_cell") {
|
|
943
|
+
const p = o, h = p.getColumn();
|
|
944
|
+
v = {
|
|
945
|
+
...v,
|
|
946
|
+
type: "table_cell",
|
|
941
947
|
text: p.getText(),
|
|
942
948
|
columnSpan: p.getColumnSpan(),
|
|
943
949
|
rowSpan: p.getRowSpan(),
|
|
@@ -945,190 +951,187 @@ const dr = (r, a) => r[`${a}-option`] !== void 0, cr = (r, a, s = void 0, l, c)
|
|
|
945
951
|
lines: p.getLines(),
|
|
946
952
|
width: p.getWidth(),
|
|
947
953
|
columnPercentageWidth: p.getColumnPercentageWidth(),
|
|
948
|
-
column:
|
|
949
|
-
attributes:
|
|
950
|
-
columnNumber:
|
|
951
|
-
width:
|
|
952
|
-
horizontalAlign:
|
|
953
|
-
verticalAlign:
|
|
954
|
-
style:
|
|
955
|
-
} : void 0
|
|
956
|
-
...b
|
|
954
|
+
column: h ? {
|
|
955
|
+
attributes: h.getAttributes(),
|
|
956
|
+
columnNumber: h.getColumnNumber(),
|
|
957
|
+
width: h.getWidth(),
|
|
958
|
+
horizontalAlign: h.getHorizontalAlign(),
|
|
959
|
+
verticalAlign: h.getVerticalAlign(),
|
|
960
|
+
style: h.getStyle()
|
|
961
|
+
} : void 0
|
|
957
962
|
};
|
|
958
963
|
}
|
|
959
|
-
return
|
|
964
|
+
return v;
|
|
960
965
|
}
|
|
961
|
-
function
|
|
962
|
-
return
|
|
963
|
-
id:
|
|
964
|
-
title: (
|
|
965
|
-
level:
|
|
966
|
-
num:
|
|
967
|
-
sections:
|
|
966
|
+
function s(o) {
|
|
967
|
+
return o.getSections().map((n) => ({
|
|
968
|
+
id: n.getId(),
|
|
969
|
+
title: (n.getCaption() ? n.getCaptionedTitle() : n.getTitle()) || "",
|
|
970
|
+
level: n.getLevel(),
|
|
971
|
+
num: n.getSectionNumber(),
|
|
972
|
+
sections: s(n)
|
|
968
973
|
}));
|
|
969
974
|
}
|
|
970
|
-
|
|
971
|
-
const d = i.getName(), m = i.getEmail();
|
|
972
|
-
return {
|
|
973
|
-
name: d ? r.applySubstitutions(d).toString() : void 0,
|
|
974
|
-
email: m ? r.applySubstitutions(m).toString() : void 0
|
|
975
|
-
};
|
|
976
|
-
});
|
|
977
|
-
return a = {
|
|
975
|
+
a = {
|
|
978
976
|
type: "document",
|
|
979
|
-
title: ((
|
|
977
|
+
title: ((g = r.getDocumentTitle()) == null ? void 0 : g.toString()) || "",
|
|
980
978
|
hasHeader: r.hasHeader(),
|
|
981
979
|
noHeader: r.getNoheader(),
|
|
982
980
|
contentModel: r.getContentModel(),
|
|
981
|
+
footnotes: [],
|
|
983
982
|
attributes: r.getAttributes(),
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
983
|
+
blocks: r.getBlocks().map((o) => i(o)),
|
|
984
|
+
sections: s(r),
|
|
985
|
+
authors: []
|
|
986
|
+
};
|
|
987
|
+
const c = r.getFootnotes();
|
|
988
|
+
return c && (a.footnotes = c.map((o) => ({
|
|
989
|
+
text: o.getText(),
|
|
990
|
+
index: o.getIndex()
|
|
991
|
+
}))), r.getAuthors() && (a.authors = r.getAuthors().map((o) => {
|
|
992
|
+
const n = o.getName(), N = o.getEmail();
|
|
993
|
+
return {
|
|
994
|
+
name: n ? r.applySubstitutions(n).toString() : void 0,
|
|
995
|
+
email: N ? r.applySubstitutions(N).toString() : void 0
|
|
996
|
+
};
|
|
994
997
|
})), a;
|
|
995
998
|
}, kt = async (r, a) => {
|
|
996
|
-
async function
|
|
999
|
+
async function i(c) {
|
|
997
1000
|
return Promise.all(
|
|
998
|
-
c.map(async (
|
|
999
|
-
let
|
|
1000
|
-
return
|
|
1001
|
-
...
|
|
1002
|
-
blocks: await
|
|
1003
|
-
}),
|
|
1001
|
+
c.map(async (d) => {
|
|
1002
|
+
let g = await a(d);
|
|
1003
|
+
return g.blocks && g.blocks.length > 0 && (g = {
|
|
1004
|
+
...g,
|
|
1005
|
+
blocks: await i(g.blocks)
|
|
1006
|
+
}), g;
|
|
1004
1007
|
})
|
|
1005
1008
|
);
|
|
1006
1009
|
}
|
|
1007
|
-
const
|
|
1010
|
+
const s = await i(r.blocks);
|
|
1008
1011
|
return {
|
|
1009
1012
|
...r,
|
|
1010
|
-
blocks:
|
|
1013
|
+
blocks: s
|
|
1011
1014
|
};
|
|
1012
1015
|
}, Dt = (r, a) => {
|
|
1013
|
-
function
|
|
1014
|
-
return c.map((
|
|
1015
|
-
let
|
|
1016
|
-
return
|
|
1017
|
-
...
|
|
1018
|
-
blocks:
|
|
1019
|
-
}),
|
|
1016
|
+
function i(c) {
|
|
1017
|
+
return c.map((d) => {
|
|
1018
|
+
let g = a(d);
|
|
1019
|
+
return g.blocks && g.blocks.length > 0 && (g = {
|
|
1020
|
+
...g,
|
|
1021
|
+
blocks: i(g.blocks)
|
|
1022
|
+
}), g;
|
|
1020
1023
|
});
|
|
1021
1024
|
}
|
|
1022
|
-
const
|
|
1025
|
+
const s = i(r.blocks);
|
|
1023
1026
|
return {
|
|
1024
1027
|
...r,
|
|
1025
|
-
blocks:
|
|
1028
|
+
blocks: s
|
|
1026
1029
|
};
|
|
1027
1030
|
}, rt = ({
|
|
1028
1031
|
node: r
|
|
1029
1032
|
}) => {
|
|
1030
|
-
const a = (
|
|
1031
|
-
const c =
|
|
1032
|
-
let
|
|
1033
|
-
return
|
|
1034
|
-
terms:
|
|
1035
|
-
dd:
|
|
1033
|
+
const a = (s) => {
|
|
1034
|
+
const c = s, d = c[0];
|
|
1035
|
+
let g = c[1];
|
|
1036
|
+
return g.type || (g = null), {
|
|
1037
|
+
terms: d,
|
|
1038
|
+
dd: g
|
|
1036
1039
|
};
|
|
1037
|
-
},
|
|
1038
|
-
if (
|
|
1039
|
-
return /* @__PURE__ */
|
|
1040
|
-
children: [
|
|
1041
|
-
children: R(
|
|
1042
|
-
}), /* @__PURE__ */ t(
|
|
1043
|
-
blocks:
|
|
1040
|
+
}, i = (s) => {
|
|
1041
|
+
if (s)
|
|
1042
|
+
return /* @__PURE__ */ m("dd", {
|
|
1043
|
+
children: [s.text && /* @__PURE__ */ t("p", {
|
|
1044
|
+
children: R(s.text)
|
|
1045
|
+
}), /* @__PURE__ */ t(C, {
|
|
1046
|
+
blocks: s.blocks
|
|
1044
1047
|
})]
|
|
1045
1048
|
});
|
|
1046
1049
|
};
|
|
1047
1050
|
if (r.style === "qanda")
|
|
1048
|
-
return /* @__PURE__ */
|
|
1049
|
-
className:
|
|
1051
|
+
return /* @__PURE__ */ m("div", {
|
|
1052
|
+
className: D("qlist qanda", r.role),
|
|
1050
1053
|
...r.lineNumber ? {
|
|
1051
1054
|
"data-lineno": r.lineNumber
|
|
1052
1055
|
} : {},
|
|
1053
|
-
children: [/* @__PURE__ */ t(
|
|
1056
|
+
children: [/* @__PURE__ */ t(T, {
|
|
1054
1057
|
text: r.title
|
|
1055
1058
|
}), /* @__PURE__ */ t("ol", {
|
|
1056
|
-
children: r.items.map((
|
|
1059
|
+
children: r.items.map((s, c) => {
|
|
1057
1060
|
const {
|
|
1058
|
-
terms:
|
|
1059
|
-
dd:
|
|
1060
|
-
} = a(
|
|
1061
|
-
if (!!
|
|
1062
|
-
return /* @__PURE__ */
|
|
1063
|
-
children: [
|
|
1061
|
+
terms: d,
|
|
1062
|
+
dd: g
|
|
1063
|
+
} = a(s);
|
|
1064
|
+
if (!!d)
|
|
1065
|
+
return /* @__PURE__ */ m("li", {
|
|
1066
|
+
children: [d.map((o, n) => /* @__PURE__ */ t("p", {
|
|
1064
1067
|
children: /* @__PURE__ */ t("em", {
|
|
1065
|
-
children: R(
|
|
1068
|
+
children: R(o.text)
|
|
1066
1069
|
})
|
|
1067
|
-
},
|
|
1070
|
+
}, n)), i(g)]
|
|
1068
1071
|
}, c);
|
|
1069
1072
|
})
|
|
1070
1073
|
})]
|
|
1071
1074
|
});
|
|
1072
1075
|
if (r.style === "horizontal") {
|
|
1073
|
-
const
|
|
1074
|
-
return /* @__PURE__ */
|
|
1075
|
-
className:
|
|
1076
|
-
children: [/* @__PURE__ */ t(
|
|
1076
|
+
const s = r.attributes.labelwidth, c = r.attributes.itemwidth;
|
|
1077
|
+
return /* @__PURE__ */ m("div", {
|
|
1078
|
+
className: D("hdlist", r.role),
|
|
1079
|
+
children: [/* @__PURE__ */ t(T, {
|
|
1077
1080
|
text: r.title
|
|
1078
|
-
}), /* @__PURE__ */
|
|
1079
|
-
children: [(
|
|
1081
|
+
}), /* @__PURE__ */ m("table", {
|
|
1082
|
+
children: [(s || c) && /* @__PURE__ */ m("colgroup", {
|
|
1080
1083
|
children: [/* @__PURE__ */ t("col", {
|
|
1081
1084
|
style: {
|
|
1082
|
-
width:
|
|
1085
|
+
width: s ? `${s.toString().replace("%", "")}%` : ""
|
|
1083
1086
|
}
|
|
1084
1087
|
}), /* @__PURE__ */ t("col", {
|
|
1085
1088
|
style: {
|
|
1086
|
-
width: c ? `${c.replace("%", "")}%` : ""
|
|
1089
|
+
width: c ? `${c.toString().replace("%", "")}%` : ""
|
|
1087
1090
|
}
|
|
1088
1091
|
})]
|
|
1089
1092
|
}), /* @__PURE__ */ t("tbody", {
|
|
1090
|
-
children: r.items.map((
|
|
1093
|
+
children: r.items.map((d, g) => {
|
|
1091
1094
|
const {
|
|
1092
|
-
terms:
|
|
1093
|
-
dd:
|
|
1094
|
-
} = a(
|
|
1095
|
-
if (!!
|
|
1096
|
-
return /* @__PURE__ */
|
|
1095
|
+
terms: o,
|
|
1096
|
+
dd: n
|
|
1097
|
+
} = a(d);
|
|
1098
|
+
if (!!o)
|
|
1099
|
+
return /* @__PURE__ */ m("tr", {
|
|
1097
1100
|
children: [/* @__PURE__ */ t("td", {
|
|
1098
|
-
className:
|
|
1099
|
-
children:
|
|
1100
|
-
children: [
|
|
1101
|
-
},
|
|
1102
|
-
}),
|
|
1101
|
+
className: D("hdlist1", dr(r.attributes, "strong") ? "strong" : ""),
|
|
1102
|
+
children: o.map((N, q) => /* @__PURE__ */ m(Nr, {
|
|
1103
|
+
children: [q !== 0 && /* @__PURE__ */ t("br", {}), R(N.text)]
|
|
1104
|
+
}, q))
|
|
1105
|
+
}), n && /* @__PURE__ */ m("td", {
|
|
1103
1106
|
className: "hdlist2",
|
|
1104
|
-
children: [
|
|
1105
|
-
children: R(
|
|
1106
|
-
}), /* @__PURE__ */ t(
|
|
1107
|
-
blocks:
|
|
1107
|
+
children: [n.text && /* @__PURE__ */ t("p", {
|
|
1108
|
+
children: R(n.text)
|
|
1109
|
+
}), /* @__PURE__ */ t(C, {
|
|
1110
|
+
blocks: n.blocks
|
|
1108
1111
|
})]
|
|
1109
1112
|
})]
|
|
1110
|
-
},
|
|
1113
|
+
}, g);
|
|
1111
1114
|
})
|
|
1112
1115
|
})]
|
|
1113
1116
|
})]
|
|
1114
1117
|
});
|
|
1115
1118
|
} else
|
|
1116
|
-
return /* @__PURE__ */
|
|
1117
|
-
className:
|
|
1118
|
-
children: [/* @__PURE__ */ t(
|
|
1119
|
+
return /* @__PURE__ */ m("div", {
|
|
1120
|
+
className: D("dlist", r.style, r.role),
|
|
1121
|
+
children: [/* @__PURE__ */ t(T, {
|
|
1119
1122
|
text: r.title
|
|
1120
1123
|
}), /* @__PURE__ */ t("dl", {
|
|
1121
|
-
children: r.items.map((
|
|
1124
|
+
children: r.items.map((s, c) => {
|
|
1122
1125
|
const {
|
|
1123
|
-
terms:
|
|
1124
|
-
dd:
|
|
1125
|
-
} = a(
|
|
1126
|
-
if (!!
|
|
1127
|
-
return /* @__PURE__ */
|
|
1128
|
-
children: [
|
|
1126
|
+
terms: d,
|
|
1127
|
+
dd: g
|
|
1128
|
+
} = a(s);
|
|
1129
|
+
if (!!d)
|
|
1130
|
+
return /* @__PURE__ */ m(Nr, {
|
|
1131
|
+
children: [d.map((o, n) => /* @__PURE__ */ t("dt", {
|
|
1129
1132
|
className: "hdlist1",
|
|
1130
|
-
children: R(
|
|
1131
|
-
},
|
|
1133
|
+
children: R(o.text)
|
|
1134
|
+
}, n)), i(g)]
|
|
1132
1135
|
}, c);
|
|
1133
1136
|
})
|
|
1134
1137
|
})]
|
|
@@ -1138,30 +1141,30 @@ const dr = (r, a) => r[`${a}-option`] !== void 0, cr = (r, a, s = void 0, l, c)
|
|
|
1138
1141
|
opts: a
|
|
1139
1142
|
}) => {
|
|
1140
1143
|
const {
|
|
1141
|
-
document:
|
|
1142
|
-
} =
|
|
1144
|
+
document: i
|
|
1145
|
+
} = B(P);
|
|
1143
1146
|
if (!r || r.length === 0)
|
|
1144
1147
|
return null;
|
|
1145
|
-
const
|
|
1148
|
+
const s = i.attributes || {}, c = s.sectnumlevels, d = s.toclevels, g = (a == null ? void 0 : a.sectNumLevels) || (c ? parseInt(`${c}`) : 3), o = (a == null ? void 0 : a.tocLevels) || (d ? parseInt(`${d}`) : 2);
|
|
1146
1149
|
return /* @__PURE__ */ t("ul", {
|
|
1147
1150
|
className: `sectlevel${r[0].level}`,
|
|
1148
|
-
children: r.map((
|
|
1149
|
-
let
|
|
1150
|
-
|
|
1151
|
-
const
|
|
1152
|
-
let
|
|
1153
|
-
return
|
|
1151
|
+
children: r.map((n) => {
|
|
1152
|
+
let N = n.num;
|
|
1153
|
+
N = N === "." || N === ".." ? "" : N;
|
|
1154
|
+
const q = n.level;
|
|
1155
|
+
let v = n.title;
|
|
1156
|
+
return q <= g && (v = `${N} ${n.title}`), /* @__PURE__ */ m("li", {
|
|
1154
1157
|
children: [/* @__PURE__ */ t("a", {
|
|
1155
|
-
href: `#${
|
|
1156
|
-
children: R(
|
|
1157
|
-
}),
|
|
1158
|
-
sections:
|
|
1158
|
+
href: `#${n.id}`,
|
|
1159
|
+
children: R(v)
|
|
1160
|
+
}), q < o && /* @__PURE__ */ t(mr, {
|
|
1161
|
+
sections: n.sections,
|
|
1159
1162
|
opts: {
|
|
1160
|
-
tocLevels:
|
|
1161
|
-
sectNumLevels:
|
|
1163
|
+
tocLevels: o,
|
|
1164
|
+
sectNumLevels: g
|
|
1162
1165
|
}
|
|
1163
1166
|
})]
|
|
1164
|
-
},
|
|
1167
|
+
}, n.id);
|
|
1165
1168
|
})
|
|
1166
1169
|
});
|
|
1167
1170
|
}, et = ({
|
|
@@ -1169,12 +1172,12 @@ const dr = (r, a) => r[`${a}-option`] !== void 0, cr = (r, a, s = void 0, l, c)
|
|
|
1169
1172
|
}) => {
|
|
1170
1173
|
const a = () => r.noHeader ? null : /* @__PURE__ */ t("div", {
|
|
1171
1174
|
id: "header",
|
|
1172
|
-
children: r.hasHeader && /* @__PURE__ */
|
|
1175
|
+
children: r.hasHeader && /* @__PURE__ */ m(U, {
|
|
1173
1176
|
children: [/* @__PURE__ */ t("h1", {
|
|
1174
1177
|
dangerouslySetInnerHTML: {
|
|
1175
1178
|
__html: r.title
|
|
1176
1179
|
}
|
|
1177
|
-
}), /* @__PURE__ */ t(
|
|
1180
|
+
}), /* @__PURE__ */ t(s, {}), r.sections && r.sections.length > 0 && r.attributes.toc !== void 0 && r.attributes["toc-placement"] === "auto" && /* @__PURE__ */ m("div", {
|
|
1178
1181
|
id: "toc",
|
|
1179
1182
|
className: cr(r.attributes, "toc-class", "toc"),
|
|
1180
1183
|
children: [/* @__PURE__ */ t("div", {
|
|
@@ -1185,9 +1188,9 @@ const dr = (r, a) => r[`${a}-option`] !== void 0, cr = (r, a, s = void 0, l, c)
|
|
|
1185
1188
|
})]
|
|
1186
1189
|
})]
|
|
1187
1190
|
})
|
|
1188
|
-
}),
|
|
1191
|
+
}), i = () => r.footnotes && r.footnotes.length > 0 && r.blocks && !H(r.attributes, "nofootnotes") ? /* @__PURE__ */ m("div", {
|
|
1189
1192
|
id: "footnotes",
|
|
1190
|
-
children: [/* @__PURE__ */ t("hr", {}), r.footnotes.map((c) => /* @__PURE__ */
|
|
1193
|
+
children: [/* @__PURE__ */ t("hr", {}), r.footnotes.map((c) => /* @__PURE__ */ m("div", {
|
|
1191
1194
|
className: "footnote",
|
|
1192
1195
|
id: `_footnotedef_${c.index}`,
|
|
1193
1196
|
children: [/* @__PURE__ */ t("a", {
|
|
@@ -1195,52 +1198,52 @@ const dr = (r, a) => r[`${a}-option`] !== void 0, cr = (r, a, s = void 0, l, c)
|
|
|
1195
1198
|
children: c.index
|
|
1196
1199
|
}), ".", " ", R(c.text || "")]
|
|
1197
1200
|
}, c.index))]
|
|
1198
|
-
}) : null,
|
|
1201
|
+
}) : null, s = () => r.authors.length > 0 || H(r.attributes, "revnumber") || H(r.attributes, "revdate") || H(r.attributes, "revremark") ? /* @__PURE__ */ m("div", {
|
|
1199
1202
|
className: "details",
|
|
1200
|
-
children: [r.authors.map((c,
|
|
1201
|
-
children: [c.name && /* @__PURE__ */
|
|
1203
|
+
children: [r.authors.map((c, d) => /* @__PURE__ */ m(Nr, {
|
|
1204
|
+
children: [c.name && /* @__PURE__ */ m(U, {
|
|
1202
1205
|
children: [/* @__PURE__ */ t("span", {
|
|
1203
|
-
id: `author${
|
|
1206
|
+
id: `author${d + 1 > 1 ? d + 1 : ""}`,
|
|
1204
1207
|
className: "author",
|
|
1205
1208
|
children: R(c.name)
|
|
1206
1209
|
}), /* @__PURE__ */ t("br", {})]
|
|
1207
|
-
}), c.email && /* @__PURE__ */
|
|
1210
|
+
}), c.email && /* @__PURE__ */ m(U, {
|
|
1208
1211
|
children: [/* @__PURE__ */ t("span", {
|
|
1209
|
-
id: `email${
|
|
1212
|
+
id: `email${d + 1 > 1 ? d + 1 : ""}`,
|
|
1210
1213
|
className: "email",
|
|
1211
1214
|
children: R(c.email)
|
|
1212
1215
|
}), /* @__PURE__ */ t("br", {})]
|
|
1213
1216
|
})]
|
|
1214
|
-
},
|
|
1217
|
+
}, d)), H(r.attributes, "revnumber") && /* @__PURE__ */ t("span", {
|
|
1215
1218
|
id: "revnumber",
|
|
1216
|
-
children: `${r.attributes["version-label"].toLowerCase()} ${r.attributes.revnumber}${r.attributes.revdate ? "," : ""}`
|
|
1217
|
-
}),
|
|
1219
|
+
children: `${r.attributes["version-label"].toString().toLowerCase()} ${r.attributes.revnumber}${r.attributes.revdate ? "," : ""}`
|
|
1220
|
+
}), H(r.attributes, "revdate") && /* @__PURE__ */ t("span", {
|
|
1218
1221
|
id: "revdate",
|
|
1219
1222
|
children: r.attributes.revdate
|
|
1220
|
-
}),
|
|
1223
|
+
}), H(r.attributes, "revremark") && /* @__PURE__ */ m(U, {
|
|
1221
1224
|
children: [/* @__PURE__ */ t("br", {}), /* @__PURE__ */ t("span", {
|
|
1222
1225
|
id: "revremark",
|
|
1223
1226
|
children: r.attributes.revremark
|
|
1224
1227
|
})]
|
|
1225
1228
|
})]
|
|
1226
1229
|
}) : null;
|
|
1227
|
-
return /* @__PURE__ */
|
|
1230
|
+
return /* @__PURE__ */ m(U, {
|
|
1228
1231
|
children: [/* @__PURE__ */ t(a, {}), /* @__PURE__ */ t("div", {
|
|
1229
1232
|
id: "content",
|
|
1230
|
-
children: /* @__PURE__ */ t(
|
|
1233
|
+
children: /* @__PURE__ */ t(C, {
|
|
1231
1234
|
blocks: r.blocks
|
|
1232
1235
|
})
|
|
1233
|
-
}), /* @__PURE__ */ t(
|
|
1236
|
+
}), /* @__PURE__ */ t(i, {})]
|
|
1234
1237
|
});
|
|
1235
1238
|
}, tt = ({
|
|
1236
1239
|
node: r
|
|
1237
1240
|
}) => {
|
|
1238
1241
|
if (r.attributes.collapsible) {
|
|
1239
|
-
const a = r.attributes.collapsible,
|
|
1242
|
+
const a = r.attributes.collapsible, i = r.title || "Details", s = r.attributes.open ? !0 : void 0;
|
|
1240
1243
|
if (a)
|
|
1241
|
-
return /* @__PURE__ */
|
|
1244
|
+
return /* @__PURE__ */ m("details", {
|
|
1242
1245
|
className: r.role,
|
|
1243
|
-
open:
|
|
1246
|
+
open: s,
|
|
1244
1247
|
...r.lineNumber ? {
|
|
1245
1248
|
"data-lineno": r.lineNumber
|
|
1246
1249
|
} : {},
|
|
@@ -1249,35 +1252,35 @@ const dr = (r, a) => r[`${a}-option`] !== void 0, cr = (r, a, s = void 0, l, c)
|
|
|
1249
1252
|
} : {},
|
|
1250
1253
|
children: [/* @__PURE__ */ t("summary", {
|
|
1251
1254
|
className: "title",
|
|
1252
|
-
children: R(
|
|
1255
|
+
children: R(i)
|
|
1253
1256
|
}), /* @__PURE__ */ t("div", {
|
|
1254
1257
|
className: "content",
|
|
1255
|
-
children: /* @__PURE__ */ t(
|
|
1258
|
+
children: /* @__PURE__ */ t(C, {
|
|
1256
1259
|
blocks: r.blocks
|
|
1257
1260
|
})
|
|
1258
1261
|
})]
|
|
1259
1262
|
});
|
|
1260
1263
|
}
|
|
1261
|
-
return /* @__PURE__ */
|
|
1262
|
-
className:
|
|
1264
|
+
return /* @__PURE__ */ m("div", {
|
|
1265
|
+
className: D("exampleblock", r.role),
|
|
1263
1266
|
...r.lineNumber ? {
|
|
1264
1267
|
"data-lineno": r.lineNumber
|
|
1265
1268
|
} : {},
|
|
1266
1269
|
...r.id ? {
|
|
1267
1270
|
id: r.id
|
|
1268
1271
|
} : {},
|
|
1269
|
-
children: [/* @__PURE__ */ t(
|
|
1272
|
+
children: [/* @__PURE__ */ t(T, {
|
|
1270
1273
|
text: r.title
|
|
1271
1274
|
}), /* @__PURE__ */ t("div", {
|
|
1272
1275
|
className: "content",
|
|
1273
|
-
children: /* @__PURE__ */ t(
|
|
1276
|
+
children: /* @__PURE__ */ t(C, {
|
|
1274
1277
|
blocks: r.blocks
|
|
1275
1278
|
})
|
|
1276
1279
|
})]
|
|
1277
1280
|
});
|
|
1278
1281
|
}, at = ({
|
|
1279
1282
|
node: r
|
|
1280
|
-
}) => /* @__PURE__ */
|
|
1283
|
+
}) => /* @__PURE__ */ m(U, {
|
|
1281
1284
|
children: [/* @__PURE__ */ t("a", {
|
|
1282
1285
|
className: "sectionanchor",
|
|
1283
1286
|
...r.id ? {
|
|
@@ -1286,23 +1289,23 @@ const dr = (r, a) => r[`${a}-option`] !== void 0, cr = (r, a, s = void 0, l, c)
|
|
|
1286
1289
|
...r.lineNumber ? {
|
|
1287
1290
|
"data-lineno": r.lineNumber
|
|
1288
1291
|
} : {}
|
|
1289
|
-
}),
|
|
1290
|
-
className:
|
|
1292
|
+
}), Y(`h${r.level + 1}`, {
|
|
1293
|
+
className: D(r.role, r.style)
|
|
1291
1294
|
}, R(r.title || ""))]
|
|
1292
1295
|
}), it = ({
|
|
1293
1296
|
node: r
|
|
1294
1297
|
}) => {
|
|
1295
1298
|
let a = /* @__PURE__ */ t("img", {
|
|
1296
1299
|
src: r.imageUri,
|
|
1297
|
-
alt: r.attributes.alt,
|
|
1300
|
+
alt: r.attributes.alt.toString(),
|
|
1298
1301
|
width: r.attributes.width,
|
|
1299
1302
|
height: r.attributes.height
|
|
1300
1303
|
});
|
|
1301
1304
|
return r.attributes.link && (a = /* @__PURE__ */ t("a", {
|
|
1302
1305
|
className: "image",
|
|
1303
|
-
href: r.attributes.link,
|
|
1306
|
+
href: r.attributes.link.toString(),
|
|
1304
1307
|
children: a
|
|
1305
|
-
})), /* @__PURE__ */
|
|
1308
|
+
})), /* @__PURE__ */ m("div", {
|
|
1306
1309
|
className: `imageblock ${r.attributes.align ? "text-" + r.attributes.align : ""} ${r.attributes.float ? r.attributes.float : ""} ${r.role ? r.role : ""}`,
|
|
1307
1310
|
...r.lineNumber ? {
|
|
1308
1311
|
"data-lineno": r.lineNumber
|
|
@@ -1314,7 +1317,7 @@ const dr = (r, a) => r[`${a}-option`] !== void 0, cr = (r, a, s = void 0, l, c)
|
|
|
1314
1317
|
children: [/* @__PURE__ */ t("div", {
|
|
1315
1318
|
className: "content",
|
|
1316
1319
|
children: a
|
|
1317
|
-
}), /* @__PURE__ */ t(
|
|
1320
|
+
}), /* @__PURE__ */ t(T, {
|
|
1318
1321
|
text: r.title
|
|
1319
1322
|
})]
|
|
1320
1323
|
});
|
|
@@ -1323,23 +1326,23 @@ const dr = (r, a) => r[`${a}-option`] !== void 0, cr = (r, a, s = void 0, l, c)
|
|
|
1323
1326
|
}) => {
|
|
1324
1327
|
const {
|
|
1325
1328
|
document: a
|
|
1326
|
-
} =
|
|
1329
|
+
} = B(P), i = r.attributes.nowrap || a.attributes.prewrap;
|
|
1327
1330
|
if (r.style === "source") {
|
|
1328
|
-
const
|
|
1329
|
-
return /* @__PURE__ */
|
|
1331
|
+
const s = r.language;
|
|
1332
|
+
return /* @__PURE__ */ m("div", {
|
|
1330
1333
|
className: "listingblock",
|
|
1331
1334
|
...r.lineNumber ? {
|
|
1332
1335
|
"data-lineno": r.lineNumber
|
|
1333
1336
|
} : {},
|
|
1334
|
-
children: [/* @__PURE__ */ t(
|
|
1337
|
+
children: [/* @__PURE__ */ t(T, {
|
|
1335
1338
|
text: r.title
|
|
1336
1339
|
}), /* @__PURE__ */ t("div", {
|
|
1337
1340
|
className: "content",
|
|
1338
1341
|
children: /* @__PURE__ */ t("pre", {
|
|
1339
|
-
className:
|
|
1340
|
-
children:
|
|
1341
|
-
className:
|
|
1342
|
-
"data-lang":
|
|
1342
|
+
className: D("highlight", i ? " nowrap" : ""),
|
|
1343
|
+
children: s ? /* @__PURE__ */ t("code", {
|
|
1344
|
+
className: s ? `language-${s}` : "",
|
|
1345
|
+
"data-lang": s,
|
|
1343
1346
|
dangerouslySetInnerHTML: {
|
|
1344
1347
|
__html: r.content || ""
|
|
1345
1348
|
}
|
|
@@ -1352,17 +1355,17 @@ const dr = (r, a) => r[`${a}-option`] !== void 0, cr = (r, a, s = void 0, l, c)
|
|
|
1352
1355
|
})]
|
|
1353
1356
|
});
|
|
1354
1357
|
} else
|
|
1355
|
-
return /* @__PURE__ */
|
|
1358
|
+
return /* @__PURE__ */ m("div", {
|
|
1356
1359
|
className: "listingblock",
|
|
1357
1360
|
...r.lineNumber ? {
|
|
1358
1361
|
"data-lineno": r.lineNumber
|
|
1359
1362
|
} : {},
|
|
1360
|
-
children: [/* @__PURE__ */ t(
|
|
1363
|
+
children: [/* @__PURE__ */ t(T, {
|
|
1361
1364
|
text: r.title
|
|
1362
1365
|
}), /* @__PURE__ */ t("div", {
|
|
1363
1366
|
className: "content",
|
|
1364
1367
|
children: /* @__PURE__ */ t("pre", {
|
|
1365
|
-
className:
|
|
1368
|
+
className: i ? " nowrap" : "",
|
|
1366
1369
|
children: /* @__PURE__ */ t("code", {
|
|
1367
1370
|
dangerouslySetInnerHTML: {
|
|
1368
1371
|
__html: r.source
|
|
@@ -1376,73 +1379,73 @@ const dr = (r, a) => r[`${a}-option`] !== void 0, cr = (r, a, s = void 0, l, c)
|
|
|
1376
1379
|
}) => {
|
|
1377
1380
|
const {
|
|
1378
1381
|
document: a
|
|
1379
|
-
} =
|
|
1380
|
-
return /* @__PURE__ */
|
|
1382
|
+
} = B(P), i = a.attributes || {}, s = r.attributes.nowrap || i.prewrap === void 0;
|
|
1383
|
+
return /* @__PURE__ */ m("div", {
|
|
1381
1384
|
className: "literalblock",
|
|
1382
1385
|
...r.lineNumber ? {
|
|
1383
1386
|
"data-lineno": r.lineNumber
|
|
1384
1387
|
} : {},
|
|
1385
|
-
children: [/* @__PURE__ */ t(
|
|
1388
|
+
children: [/* @__PURE__ */ t(T, {
|
|
1386
1389
|
text: r.title
|
|
1387
1390
|
}), /* @__PURE__ */ t("div", {
|
|
1388
1391
|
className: "content",
|
|
1389
1392
|
children: /* @__PURE__ */ t("pre", {
|
|
1390
|
-
className:
|
|
1393
|
+
className: s ? "nowrap" : "",
|
|
1391
1394
|
children: r.source
|
|
1392
1395
|
})
|
|
1393
1396
|
})]
|
|
1394
1397
|
});
|
|
1395
1398
|
}, ot = ({
|
|
1396
1399
|
node: r
|
|
1397
|
-
}) => /* @__PURE__ */
|
|
1398
|
-
className:
|
|
1400
|
+
}) => /* @__PURE__ */ m("div", {
|
|
1401
|
+
className: D("olist", r.role, r.style),
|
|
1399
1402
|
...r.lineNumber ? {
|
|
1400
1403
|
"data-lineno": r.lineNumber
|
|
1401
1404
|
} : {},
|
|
1402
|
-
children: [/* @__PURE__ */ t(
|
|
1405
|
+
children: [/* @__PURE__ */ t(T, {
|
|
1403
1406
|
text: r.title
|
|
1404
1407
|
}), /* @__PURE__ */ t("ol", {
|
|
1405
1408
|
className: r.style,
|
|
1406
1409
|
reversed: dr(r.attributes, "reversed"),
|
|
1407
1410
|
...r.attributes.start ? {
|
|
1408
|
-
start: parseInt(r.attributes.start)
|
|
1411
|
+
start: parseInt(`${r.attributes.start}`)
|
|
1409
1412
|
} : {},
|
|
1410
|
-
children: r.items.map((a,
|
|
1413
|
+
children: r.items.map((a, i) => /* @__PURE__ */ m("li", {
|
|
1411
1414
|
className: r.role ? r.role : "",
|
|
1412
1415
|
children: [/* @__PURE__ */ t("p", {
|
|
1413
1416
|
children: R(a.text || "")
|
|
1414
|
-
}), /* @__PURE__ */ t(
|
|
1417
|
+
}), /* @__PURE__ */ t(C, {
|
|
1415
1418
|
blocks: a.blocks
|
|
1416
1419
|
})]
|
|
1417
|
-
},
|
|
1420
|
+
}, i))
|
|
1418
1421
|
})]
|
|
1419
1422
|
}), ct = ({
|
|
1420
1423
|
node: r
|
|
1421
1424
|
}) => {
|
|
1422
1425
|
const a = r.style;
|
|
1423
|
-
return a === "abstract" ? /* @__PURE__ */
|
|
1424
|
-
className:
|
|
1426
|
+
return a === "abstract" ? /* @__PURE__ */ m("div", {
|
|
1427
|
+
className: D("quoteblock abstract", r.role),
|
|
1425
1428
|
...r.lineNumber ? {
|
|
1426
1429
|
"data-lineno": r.lineNumber
|
|
1427
1430
|
} : {},
|
|
1428
|
-
children: [/* @__PURE__ */ t(
|
|
1431
|
+
children: [/* @__PURE__ */ t(T, {
|
|
1429
1432
|
text: r.title
|
|
1430
1433
|
}), /* @__PURE__ */ t("blockquote", {
|
|
1431
1434
|
className: "content",
|
|
1432
|
-
children: /* @__PURE__ */ t(
|
|
1435
|
+
children: /* @__PURE__ */ t(C, {
|
|
1433
1436
|
blocks: r.blocks
|
|
1434
1437
|
})
|
|
1435
1438
|
})]
|
|
1436
|
-
}) : /* @__PURE__ */
|
|
1437
|
-
className:
|
|
1439
|
+
}) : /* @__PURE__ */ m("div", {
|
|
1440
|
+
className: D("openblock", a && a !== "open" ? a : "", r.role),
|
|
1438
1441
|
...r.lineNumber ? {
|
|
1439
1442
|
"data-lineno": r.lineNumber
|
|
1440
1443
|
} : {},
|
|
1441
|
-
children: [/* @__PURE__ */ t(
|
|
1444
|
+
children: [/* @__PURE__ */ t(T, {
|
|
1442
1445
|
text: r.title
|
|
1443
1446
|
}), /* @__PURE__ */ t("div", {
|
|
1444
1447
|
className: "content",
|
|
1445
|
-
children: /* @__PURE__ */ t(
|
|
1448
|
+
children: /* @__PURE__ */ t(C, {
|
|
1446
1449
|
blocks: r.blocks
|
|
1447
1450
|
})
|
|
1448
1451
|
})]
|
|
@@ -1453,15 +1456,15 @@ const dr = (r, a) => r[`${a}-option`] !== void 0, cr = (r, a, s = void 0, l, c)
|
|
|
1453
1456
|
}
|
|
1454
1457
|
}), ut = ({
|
|
1455
1458
|
node: r
|
|
1456
|
-
}) => /* @__PURE__ */
|
|
1459
|
+
}) => /* @__PURE__ */ m("div", {
|
|
1457
1460
|
...r.id ? {
|
|
1458
1461
|
id: r.id
|
|
1459
1462
|
} : {},
|
|
1460
|
-
className:
|
|
1463
|
+
className: D("paragraph", r.role),
|
|
1461
1464
|
...r.lineNumber ? {
|
|
1462
1465
|
"data-lineno": r.lineNumber
|
|
1463
1466
|
} : {},
|
|
1464
|
-
children: [/* @__PURE__ */ t(
|
|
1467
|
+
children: [/* @__PURE__ */ t(T, {
|
|
1465
1468
|
text: r.title
|
|
1466
1469
|
}), r.content && /* @__PURE__ */ t("p", {
|
|
1467
1470
|
dangerouslySetInnerHTML: {
|
|
@@ -1470,29 +1473,29 @@ const dr = (r, a) => r[`${a}-option`] !== void 0, cr = (r, a, s = void 0, l, c)
|
|
|
1470
1473
|
})]
|
|
1471
1474
|
}), pt = ({
|
|
1472
1475
|
node: r
|
|
1473
|
-
}) => /* @__PURE__ */ t(
|
|
1476
|
+
}) => /* @__PURE__ */ t(U, {
|
|
1474
1477
|
children: R(r.content || "")
|
|
1475
1478
|
}), dt = ({
|
|
1476
1479
|
node: r
|
|
1477
1480
|
}) => {
|
|
1478
1481
|
const {
|
|
1479
1482
|
document: a
|
|
1480
|
-
} =
|
|
1483
|
+
} = B(P), i = a.attributes || {}, s = i["toc-placement"] === "preamble" && a.sections && a.sections.length > 0 && i.toc !== void 0;
|
|
1481
1484
|
return /* @__PURE__ */ t("div", {
|
|
1482
1485
|
id: "preamble",
|
|
1483
1486
|
...r.lineNumber ? {
|
|
1484
1487
|
"data-lineno": r.lineNumber
|
|
1485
1488
|
} : {},
|
|
1486
|
-
children: /* @__PURE__ */
|
|
1489
|
+
children: /* @__PURE__ */ m("div", {
|
|
1487
1490
|
className: "sectionbody",
|
|
1488
|
-
children: [/* @__PURE__ */ t(
|
|
1491
|
+
children: [/* @__PURE__ */ t(C, {
|
|
1489
1492
|
blocks: r.blocks
|
|
1490
|
-
}),
|
|
1493
|
+
}), s && /* @__PURE__ */ m("div", {
|
|
1491
1494
|
id: "toc",
|
|
1492
|
-
className: r.attributes["toc-class"] ? r.attributes["toc-class"] : "toc",
|
|
1495
|
+
className: r.attributes["toc-class"] ? `${r.attributes["toc-class"]}` : "toc",
|
|
1493
1496
|
children: [/* @__PURE__ */ t("div", {
|
|
1494
1497
|
id: "toctitle",
|
|
1495
|
-
children: R(
|
|
1498
|
+
children: R(`${i["toc-title"]}`)
|
|
1496
1499
|
}), a.sections && /* @__PURE__ */ t(mr, {
|
|
1497
1500
|
sections: a.sections
|
|
1498
1501
|
})]
|
|
@@ -1502,27 +1505,27 @@ const dr = (r, a) => r[`${a}-option`] !== void 0, cr = (r, a, s = void 0, l, c)
|
|
|
1502
1505
|
}, mt = ({
|
|
1503
1506
|
node: r
|
|
1504
1507
|
}) => {
|
|
1505
|
-
const a = r.attributes.attribution,
|
|
1506
|
-
return /* @__PURE__ */
|
|
1508
|
+
const a = r.attributes.attribution, i = r.attributes.citetitle;
|
|
1509
|
+
return /* @__PURE__ */ m("div", {
|
|
1507
1510
|
...r.id ? {
|
|
1508
1511
|
id: r.id
|
|
1509
1512
|
} : {},
|
|
1510
|
-
className:
|
|
1513
|
+
className: D("quoteblock", r.role),
|
|
1511
1514
|
...r.lineNumber ? {
|
|
1512
1515
|
"data-lineno": r.lineNumber
|
|
1513
1516
|
} : {},
|
|
1514
|
-
children: [/* @__PURE__ */ t(
|
|
1517
|
+
children: [/* @__PURE__ */ t(T, {
|
|
1515
1518
|
text: r.title
|
|
1516
1519
|
}), r.content && /* @__PURE__ */ t("blockquote", {
|
|
1517
1520
|
dangerouslySetInnerHTML: {
|
|
1518
1521
|
__html: r.content
|
|
1519
1522
|
}
|
|
1520
|
-
}), /* @__PURE__ */ t(
|
|
1523
|
+
}), /* @__PURE__ */ t(C, {
|
|
1521
1524
|
blocks: r.blocks
|
|
1522
|
-
}), a && /* @__PURE__ */
|
|
1525
|
+
}), a && /* @__PURE__ */ m("div", {
|
|
1523
1526
|
className: "attribution",
|
|
1524
|
-
children: ["\u2014 ", a,
|
|
1525
|
-
children:
|
|
1527
|
+
children: ["\u2014 ", a, i && /* @__PURE__ */ t("cite", {
|
|
1528
|
+
children: i
|
|
1526
1529
|
})]
|
|
1527
1530
|
})]
|
|
1528
1531
|
});
|
|
@@ -1531,11 +1534,11 @@ const dr = (r, a) => r[`${a}-option`] !== void 0, cr = (r, a, s = void 0, l, c)
|
|
|
1531
1534
|
}) => {
|
|
1532
1535
|
const {
|
|
1533
1536
|
document: a
|
|
1534
|
-
} =
|
|
1535
|
-
let
|
|
1537
|
+
} = B(P), i = a.attributes || {};
|
|
1538
|
+
let s = r.title, c = r.num;
|
|
1536
1539
|
c = c === "." ? "" : c;
|
|
1537
|
-
const
|
|
1538
|
-
return r.numbered && r.level <=
|
|
1540
|
+
const d = i.sectnumlevels ? parseInt(`${i.sectnumlevels}`) : 3;
|
|
1541
|
+
return r.numbered && r.level <= d && (s = `${c} ${r.title}`), i.sectlinks && (s = /* @__PURE__ */ m(U, {
|
|
1539
1542
|
children: [/* @__PURE__ */ t("a", {
|
|
1540
1543
|
className: "anchor",
|
|
1541
1544
|
id: r.id || "",
|
|
@@ -1546,30 +1549,30 @@ const dr = (r, a) => r[`${a}-option`] !== void 0, cr = (r, a, s = void 0, l, c)
|
|
|
1546
1549
|
className: "link",
|
|
1547
1550
|
href: `#${r.id}`,
|
|
1548
1551
|
dangerouslySetInnerHTML: {
|
|
1549
|
-
__html:
|
|
1552
|
+
__html: s
|
|
1550
1553
|
}
|
|
1551
1554
|
})]
|
|
1552
|
-
})), r.level === 0 ? /* @__PURE__ */
|
|
1555
|
+
})), r.level === 0 ? /* @__PURE__ */ m(U, {
|
|
1553
1556
|
children: [/* @__PURE__ */ t("h1", {
|
|
1554
|
-
className:
|
|
1557
|
+
className: D("sect0", r.role),
|
|
1555
1558
|
"data-sectnum": c,
|
|
1556
1559
|
...r.lineNumber ? {
|
|
1557
1560
|
"data-lineno": r.lineNumber
|
|
1558
1561
|
} : {},
|
|
1559
|
-
children:
|
|
1560
|
-
}), /* @__PURE__ */ t(
|
|
1562
|
+
children: s
|
|
1563
|
+
}), /* @__PURE__ */ t(C, {
|
|
1561
1564
|
blocks: r.blocks
|
|
1562
1565
|
})]
|
|
1563
|
-
}) : /* @__PURE__ */
|
|
1564
|
-
className:
|
|
1566
|
+
}) : /* @__PURE__ */ m("div", {
|
|
1567
|
+
className: D(`sect${r.level}`, r.role),
|
|
1565
1568
|
...r.lineNumber ? {
|
|
1566
1569
|
"data-lineno": r.lineNumber
|
|
1567
1570
|
} : {},
|
|
1568
|
-
children: [
|
|
1571
|
+
children: [Y(`h${r.level + 1}`, {
|
|
1569
1572
|
"data-sectnum": c
|
|
1570
|
-
},
|
|
1573
|
+
}, s), /* @__PURE__ */ t("div", {
|
|
1571
1574
|
className: "sectionbody",
|
|
1572
|
-
children: /* @__PURE__ */ t(
|
|
1575
|
+
children: /* @__PURE__ */ t(C, {
|
|
1573
1576
|
blocks: r.blocks
|
|
1574
1577
|
})
|
|
1575
1578
|
})]
|
|
@@ -1577,15 +1580,15 @@ const dr = (r, a) => r[`${a}-option`] !== void 0, cr = (r, a, s = void 0, l, c)
|
|
|
1577
1580
|
}, ft = ({
|
|
1578
1581
|
node: r
|
|
1579
1582
|
}) => /* @__PURE__ */ t("div", {
|
|
1580
|
-
className:
|
|
1583
|
+
className: D("sidebarblock", r.role),
|
|
1581
1584
|
...r.lineNumber ? {
|
|
1582
1585
|
"data-lineno": r.lineNumber
|
|
1583
1586
|
} : {},
|
|
1584
|
-
children: /* @__PURE__ */
|
|
1587
|
+
children: /* @__PURE__ */ m("div", {
|
|
1585
1588
|
className: "content",
|
|
1586
|
-
children: [/* @__PURE__ */ t(
|
|
1589
|
+
children: [/* @__PURE__ */ t(T, {
|
|
1587
1590
|
text: r.title
|
|
1588
|
-
}), /* @__PURE__ */ t(
|
|
1591
|
+
}), /* @__PURE__ */ t(C, {
|
|
1589
1592
|
blocks: r.blocks
|
|
1590
1593
|
})]
|
|
1591
1594
|
})
|
|
@@ -1594,130 +1597,130 @@ const dr = (r, a) => r[`${a}-option`] !== void 0, cr = (r, a, s = void 0, l, c)
|
|
|
1594
1597
|
}) => {
|
|
1595
1598
|
const {
|
|
1596
1599
|
document: a
|
|
1597
|
-
} =
|
|
1598
|
-
let
|
|
1599
|
-
c &&
|
|
1600
|
-
let
|
|
1601
|
-
|
|
1602
|
-
const
|
|
1603
|
-
return /* @__PURE__ */
|
|
1604
|
-
className:
|
|
1600
|
+
} = B(P), i = a.attributes || {};
|
|
1601
|
+
let s = ["frame-" + cr(r.attributes, "frame", "all", "table-frame", i), "grid-" + cr(r.attributes, "grid", "all", "table-grid", i)], c = cr(r.attributes, "stripes", null, "table-stripes", i);
|
|
1602
|
+
c && s.push("stripes-" + c);
|
|
1603
|
+
let d = dr(r.attributes, "autowidth"), g = parseInt(`${r.attributes.tablepcwidth}`), o = null;
|
|
1604
|
+
d && !H(r.attributes, "width") ? s.push("fit-content") : g === 100 ? s.push("stretch") : o = `${g}%`, H(r.attributes, "float") && s.push(`${r.attributes.float}`), r.role && s.push(r.role || "");
|
|
1605
|
+
const n = (p) => D("tableblock", `halign-${p.attributes.halign}`, `valign-${p.attributes.valign}`), N = r.title, q = r.id, v = q || bt(N || "");
|
|
1606
|
+
return /* @__PURE__ */ m("table", {
|
|
1607
|
+
className: D("tableblock", ...s),
|
|
1605
1608
|
style: {
|
|
1606
|
-
width:
|
|
1609
|
+
width: o || void 0
|
|
1607
1610
|
},
|
|
1608
1611
|
...r.lineNumber ? {
|
|
1609
1612
|
"data-lineno": r.lineNumber
|
|
1610
1613
|
} : {},
|
|
1611
|
-
children: [r.title && /* @__PURE__ */
|
|
1614
|
+
children: [r.title && /* @__PURE__ */ m("caption", {
|
|
1612
1615
|
className: "title",
|
|
1613
|
-
children: [!
|
|
1616
|
+
children: [!q && /* @__PURE__ */ t("a", {
|
|
1614
1617
|
className: "anchor",
|
|
1615
|
-
id:
|
|
1618
|
+
id: v
|
|
1616
1619
|
}), /* @__PURE__ */ t("a", {
|
|
1617
|
-
href: `#${
|
|
1620
|
+
href: `#${v}`,
|
|
1618
1621
|
children: r.title
|
|
1619
1622
|
})]
|
|
1620
1623
|
}), r.columns.length > 0 && /* @__PURE__ */ t("colgroup", {
|
|
1621
|
-
children: r.columns.map((
|
|
1622
|
-
const
|
|
1624
|
+
children: r.columns.map((p, h) => {
|
|
1625
|
+
const x = p.attributes.colpcwidth;
|
|
1623
1626
|
return /* @__PURE__ */ t("col", {
|
|
1624
1627
|
style: {
|
|
1625
|
-
width: `${
|
|
1628
|
+
width: `${x}%`
|
|
1626
1629
|
}
|
|
1627
|
-
},
|
|
1630
|
+
}, h);
|
|
1628
1631
|
})
|
|
1629
|
-
}), r.headRows.map((
|
|
1632
|
+
}), r.headRows.map((p, h) => /* @__PURE__ */ t("thead", {
|
|
1630
1633
|
children: /* @__PURE__ */ t("tr", {
|
|
1631
|
-
children:
|
|
1632
|
-
className:
|
|
1634
|
+
children: p.map((x, O) => /* @__PURE__ */ t("th", {
|
|
1635
|
+
className: n(x),
|
|
1633
1636
|
dangerouslySetInnerHTML: {
|
|
1634
|
-
__html:
|
|
1637
|
+
__html: x.text
|
|
1635
1638
|
}
|
|
1636
|
-
},
|
|
1639
|
+
}, O))
|
|
1637
1640
|
})
|
|
1638
|
-
},
|
|
1639
|
-
children: r.bodyRows.map((
|
|
1640
|
-
children:
|
|
1641
|
-
const
|
|
1642
|
-
colSpan:
|
|
1643
|
-
rowSpan:
|
|
1644
|
-
className:
|
|
1645
|
-
}, Z =
|
|
1641
|
+
}, h)), /* @__PURE__ */ t("tbody", {
|
|
1642
|
+
children: r.bodyRows.map((p, h) => /* @__PURE__ */ t("tr", {
|
|
1643
|
+
children: p.map((x, O) => {
|
|
1644
|
+
const _ = x.columnSpan, I = x.rowSpan, A = x.content, z = {
|
|
1645
|
+
colSpan: _,
|
|
1646
|
+
rowSpan: I,
|
|
1647
|
+
className: n(x)
|
|
1648
|
+
}, Z = x.style;
|
|
1646
1649
|
if (Z === "asciidoc")
|
|
1647
|
-
return /* @__PURE__ */
|
|
1650
|
+
return /* @__PURE__ */ Y("td", {
|
|
1648
1651
|
...z,
|
|
1649
|
-
key:
|
|
1652
|
+
key: O
|
|
1650
1653
|
}, /* @__PURE__ */ t("div", {
|
|
1651
1654
|
className: "content",
|
|
1652
1655
|
dangerouslySetInnerHTML: {
|
|
1653
|
-
__html:
|
|
1656
|
+
__html: A || ""
|
|
1654
1657
|
}
|
|
1655
1658
|
}));
|
|
1656
1659
|
if (Z === "literal")
|
|
1657
|
-
return /* @__PURE__ */
|
|
1660
|
+
return /* @__PURE__ */ Y("td", {
|
|
1658
1661
|
...z,
|
|
1659
|
-
key:
|
|
1662
|
+
key: O
|
|
1660
1663
|
}, /* @__PURE__ */ t("div", {
|
|
1661
1664
|
className: "literal",
|
|
1662
1665
|
children: /* @__PURE__ */ t("pre", {
|
|
1663
1666
|
dangerouslySetInnerHTML: {
|
|
1664
|
-
__html:
|
|
1667
|
+
__html: A || ""
|
|
1665
1668
|
}
|
|
1666
1669
|
})
|
|
1667
1670
|
}));
|
|
1668
1671
|
if (Z === "header")
|
|
1669
|
-
return /* @__PURE__ */
|
|
1672
|
+
return /* @__PURE__ */ Y("th", {
|
|
1670
1673
|
...z,
|
|
1671
|
-
key:
|
|
1674
|
+
key: O
|
|
1672
1675
|
}, /* @__PURE__ */ t("p", {
|
|
1673
1676
|
className: "tableblock",
|
|
1674
1677
|
dangerouslySetInnerHTML: {
|
|
1675
|
-
__html:
|
|
1678
|
+
__html: A || ""
|
|
1676
1679
|
}
|
|
1677
1680
|
}));
|
|
1678
1681
|
{
|
|
1679
|
-
let tr =
|
|
1680
|
-
return /* @__PURE__ */
|
|
1682
|
+
let tr = A;
|
|
1683
|
+
return /* @__PURE__ */ Y("td", {
|
|
1681
1684
|
...z,
|
|
1682
|
-
key:
|
|
1685
|
+
key: O
|
|
1683
1686
|
}, tr.length === 0 ? "" : R(`<p class="tableblock">${tr.join(`</p>
|
|
1684
1687
|
<p class="tableblock">`)}</p>`));
|
|
1685
1688
|
}
|
|
1686
1689
|
})
|
|
1687
|
-
},
|
|
1688
|
-
}), r.footRows.map((
|
|
1690
|
+
}, h))
|
|
1691
|
+
}), r.footRows.map((p, h) => /* @__PURE__ */ t("tfoot", {
|
|
1689
1692
|
children: /* @__PURE__ */ t("tr", {
|
|
1690
|
-
children:
|
|
1691
|
-
className:
|
|
1693
|
+
children: p.map((x, O) => /* @__PURE__ */ t("td", {
|
|
1694
|
+
className: n(x),
|
|
1692
1695
|
children: /* @__PURE__ */ t("p", {
|
|
1693
1696
|
className: "tableblock",
|
|
1694
1697
|
dangerouslySetInnerHTML: {
|
|
1695
|
-
__html:
|
|
1698
|
+
__html: x.text
|
|
1696
1699
|
}
|
|
1697
1700
|
})
|
|
1698
|
-
},
|
|
1701
|
+
}, O))
|
|
1699
1702
|
})
|
|
1700
|
-
},
|
|
1703
|
+
}, h))]
|
|
1701
1704
|
});
|
|
1702
1705
|
}, bt = (r) => r.toString().normalize("NFKD").replace(/[\u0300-\u036f]/g, "").toLowerCase().trim().replace(/\s+/g, "_").replace(/[^\w-]+/g, "").replace(/--+/g, "-").replace(/-$/g, ""), vt = ({
|
|
1703
1706
|
node: r
|
|
1704
1707
|
}) => {
|
|
1705
1708
|
const {
|
|
1706
1709
|
document: a
|
|
1707
|
-
} =
|
|
1710
|
+
} = B(P), i = a.attributes || {}, s = a.sections && a.sections.length > 0;
|
|
1708
1711
|
let c = r.id || "toc";
|
|
1709
|
-
const
|
|
1710
|
-
return
|
|
1712
|
+
const d = r.title ? r.title : i["toc-title"], g = i["toc-placement"], o = i.toc !== void 0, n = r.attributes.levels ? parseInt(`${r.attributes.levels}`) : void 0;
|
|
1713
|
+
return g === "macro" && s && o ? /* @__PURE__ */ m("div", {
|
|
1711
1714
|
id: c,
|
|
1712
|
-
className:
|
|
1715
|
+
className: D("toc", r.role),
|
|
1713
1716
|
children: [/* @__PURE__ */ t("div", {
|
|
1714
1717
|
id: `${c}title`,
|
|
1715
1718
|
className: "title",
|
|
1716
|
-
children: R(
|
|
1719
|
+
children: R(`${d}` || "")
|
|
1717
1720
|
}), a.sections && /* @__PURE__ */ t(mr, {
|
|
1718
1721
|
sections: a.sections,
|
|
1719
1722
|
opts: {
|
|
1720
|
-
tocLevels:
|
|
1723
|
+
tocLevels: n
|
|
1721
1724
|
}
|
|
1722
1725
|
})]
|
|
1723
1726
|
}) : null;
|
|
@@ -1725,73 +1728,73 @@ const dr = (r, a) => r[`${a}-option`] !== void 0, cr = (r, a, s = void 0, l, c)
|
|
|
1725
1728
|
node: r
|
|
1726
1729
|
}) => {
|
|
1727
1730
|
const a = dr(r.attributes, "checklist");
|
|
1728
|
-
return /* @__PURE__ */
|
|
1731
|
+
return /* @__PURE__ */ m("div", {
|
|
1729
1732
|
...r.id ? {
|
|
1730
1733
|
id: r.id
|
|
1731
1734
|
} : {},
|
|
1732
|
-
className:
|
|
1735
|
+
className: D("ulist", r.style, r.role, a && "checklist"),
|
|
1733
1736
|
...r.lineNumber ? {
|
|
1734
1737
|
"data-lineno": r.lineNumber
|
|
1735
1738
|
} : {},
|
|
1736
|
-
children: [/* @__PURE__ */ t(
|
|
1739
|
+
children: [/* @__PURE__ */ t(T, {
|
|
1737
1740
|
text: r.title
|
|
1738
1741
|
}), /* @__PURE__ */ t("ul", {
|
|
1739
1742
|
className: a ? "checklist" : "",
|
|
1740
|
-
children: r.items.map((
|
|
1741
|
-
id:
|
|
1743
|
+
children: r.items.map((i, s) => a ? /* @__PURE__ */ t("li", {
|
|
1744
|
+
id: i.id,
|
|
1742
1745
|
className: r.role,
|
|
1743
|
-
children: /* @__PURE__ */
|
|
1744
|
-
children: [a &&
|
|
1745
|
-
className:
|
|
1746
|
-
}), " ", R(
|
|
1746
|
+
children: /* @__PURE__ */ m("p", {
|
|
1747
|
+
children: [a && i.attributes.checkbox && /* @__PURE__ */ t("i", {
|
|
1748
|
+
className: D("fa", i.attributes.checked ? "fa-check-square-o" : "fa-square-o")
|
|
1749
|
+
}), " ", R(i.text || "")]
|
|
1747
1750
|
})
|
|
1748
|
-
},
|
|
1749
|
-
id:
|
|
1751
|
+
}, s) : /* @__PURE__ */ m("li", {
|
|
1752
|
+
id: i.id,
|
|
1750
1753
|
className: r.role,
|
|
1751
1754
|
children: [/* @__PURE__ */ t("p", {
|
|
1752
1755
|
dangerouslySetInnerHTML: {
|
|
1753
|
-
__html:
|
|
1756
|
+
__html: i.text || ""
|
|
1754
1757
|
}
|
|
1755
|
-
}), /* @__PURE__ */ t(
|
|
1756
|
-
blocks:
|
|
1758
|
+
}), /* @__PURE__ */ t(C, {
|
|
1759
|
+
blocks: i.blocks
|
|
1757
1760
|
})]
|
|
1758
|
-
},
|
|
1761
|
+
}, s))
|
|
1759
1762
|
})]
|
|
1760
1763
|
});
|
|
1761
1764
|
}, qt = ({
|
|
1762
1765
|
node: r
|
|
1763
1766
|
}) => {
|
|
1764
|
-
const a = r.attributes.attribution,
|
|
1765
|
-
return /* @__PURE__ */
|
|
1767
|
+
const a = r.attributes.attribution, i = r.attributes.citetitle;
|
|
1768
|
+
return /* @__PURE__ */ m("div", {
|
|
1766
1769
|
...r.id ? {
|
|
1767
1770
|
id: r.id
|
|
1768
1771
|
} : {},
|
|
1769
|
-
className:
|
|
1772
|
+
className: D("verseblock", r.role),
|
|
1770
1773
|
...r.lineNumber ? {
|
|
1771
1774
|
"data-lineno": r.lineNumber
|
|
1772
1775
|
} : {},
|
|
1773
|
-
children: [/* @__PURE__ */ t(
|
|
1776
|
+
children: [/* @__PURE__ */ t(T, {
|
|
1774
1777
|
text: r.title
|
|
1775
1778
|
}), r.content && /* @__PURE__ */ t("pre", {
|
|
1776
1779
|
className: "content",
|
|
1777
1780
|
dangerouslySetInnerHTML: {
|
|
1778
1781
|
__html: r.content
|
|
1779
1782
|
}
|
|
1780
|
-
}), a && /* @__PURE__ */
|
|
1783
|
+
}), a && /* @__PURE__ */ m("div", {
|
|
1781
1784
|
className: "attribution",
|
|
1782
|
-
children: ["\u2014 ", a,
|
|
1783
|
-
children:
|
|
1785
|
+
children: ["\u2014 ", a, i && /* @__PURE__ */ t("cite", {
|
|
1786
|
+
children: i
|
|
1784
1787
|
})]
|
|
1785
1788
|
})]
|
|
1786
1789
|
});
|
|
1787
|
-
},
|
|
1790
|
+
}, P = Pe({
|
|
1788
1791
|
document: {}
|
|
1789
1792
|
}), St = ({
|
|
1790
1793
|
document: r,
|
|
1791
1794
|
options: a
|
|
1792
1795
|
}) => {
|
|
1793
|
-
const
|
|
1794
|
-
return /* @__PURE__ */ t(
|
|
1796
|
+
const i = a && a.customDocument;
|
|
1797
|
+
return /* @__PURE__ */ t(P.Provider, {
|
|
1795
1798
|
value: {
|
|
1796
1799
|
...a,
|
|
1797
1800
|
document: {
|
|
@@ -1799,29 +1802,29 @@ const dr = (r, a) => r[`${a}-option`] !== void 0, cr = (r, a, s = void 0, l, c)
|
|
|
1799
1802
|
sections: r.sections
|
|
1800
1803
|
}
|
|
1801
1804
|
},
|
|
1802
|
-
children:
|
|
1805
|
+
children: i ? /* @__PURE__ */ t(i, {
|
|
1803
1806
|
document: r
|
|
1804
1807
|
}) : /* @__PURE__ */ t(et, {
|
|
1805
1808
|
document: r
|
|
1806
1809
|
})
|
|
1807
1810
|
});
|
|
1808
|
-
},
|
|
1811
|
+
}, C = ({
|
|
1809
1812
|
blocks: r
|
|
1810
|
-
}) => /* @__PURE__ */ t(
|
|
1811
|
-
children: r.map((a,
|
|
1813
|
+
}) => /* @__PURE__ */ t(U, {
|
|
1814
|
+
children: r.map((a, i) => /* @__PURE__ */ t(xt, {
|
|
1812
1815
|
node: a
|
|
1813
|
-
}, `${
|
|
1816
|
+
}, `${i}-${a.type}`))
|
|
1814
1817
|
}), xt = ({
|
|
1815
1818
|
node: r
|
|
1816
1819
|
}) => {
|
|
1817
1820
|
const {
|
|
1818
1821
|
overrides: a
|
|
1819
|
-
} =
|
|
1820
|
-
if (
|
|
1821
|
-
return /* @__PURE__ */ t(
|
|
1822
|
+
} = B(P), i = r.type, s = a && a[i];
|
|
1823
|
+
if (s)
|
|
1824
|
+
return /* @__PURE__ */ t(s, {
|
|
1822
1825
|
node: r
|
|
1823
1826
|
});
|
|
1824
|
-
switch (
|
|
1827
|
+
switch (i) {
|
|
1825
1828
|
case "audio":
|
|
1826
1829
|
return /* @__PURE__ */ t(je, {
|
|
1827
1830
|
node: r
|
|
@@ -1911,10 +1914,10 @@ const dr = (r, a) => r[`${a}-option`] !== void 0, cr = (r, a, s = void 0, l, c)
|
|
|
1911
1914
|
node: r
|
|
1912
1915
|
});
|
|
1913
1916
|
default:
|
|
1914
|
-
return /* @__PURE__ */ t(
|
|
1917
|
+
return /* @__PURE__ */ t(U, {});
|
|
1915
1918
|
}
|
|
1916
1919
|
}, Rt = () => {
|
|
1917
|
-
const r =
|
|
1920
|
+
const r = B(P);
|
|
1918
1921
|
if (r === void 0)
|
|
1919
1922
|
throw new Error("useConverterContext must be used within a Provider");
|
|
1920
1923
|
return r;
|
|
@@ -1924,8 +1927,8 @@ export {
|
|
|
1924
1927
|
St as Asciidoc,
|
|
1925
1928
|
je as Audio,
|
|
1926
1929
|
He as CoList,
|
|
1927
|
-
|
|
1928
|
-
|
|
1930
|
+
C as Content,
|
|
1931
|
+
P as Context,
|
|
1929
1932
|
rt as DList,
|
|
1930
1933
|
et as Document,
|
|
1931
1934
|
tt as Example,
|
|
@@ -1946,7 +1949,7 @@ export {
|
|
|
1946
1949
|
ht as Table,
|
|
1947
1950
|
vt as TableOfContents,
|
|
1948
1951
|
yt as ThematicBreak,
|
|
1949
|
-
|
|
1952
|
+
T as Title,
|
|
1950
1953
|
wt as UList,
|
|
1951
1954
|
qt as Verse,
|
|
1952
1955
|
Lt as parse,
|