@oxide/react-asciidoc 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/package.json +3 -1
  2. package/dist/react-asciidoc.js +0 -1631
  3. package/dist/react-asciidoc.umd.cjs +0 -32
  4. package/dist/types/index.d.ts +0 -47
  5. package/dist/types/templates/Admonition.d.ts +0 -6
  6. package/dist/types/templates/Audio.d.ts +0 -6
  7. package/dist/types/templates/CoList.d.ts +0 -6
  8. package/dist/types/templates/DList.d.ts +0 -6
  9. package/dist/types/templates/Document.d.ts +0 -6
  10. package/dist/types/templates/Example.d.ts +0 -6
  11. package/dist/types/templates/FloatingTitle.d.ts +0 -6
  12. package/dist/types/templates/Image.d.ts +0 -6
  13. package/dist/types/templates/Listing.d.ts +0 -6
  14. package/dist/types/templates/Literal.d.ts +0 -6
  15. package/dist/types/templates/OList.d.ts +0 -6
  16. package/dist/types/templates/Open.d.ts +0 -6
  17. package/dist/types/templates/Outline.d.ts +0 -10
  18. package/dist/types/templates/PageBreak.d.ts +0 -3
  19. package/dist/types/templates/Paragraph.d.ts +0 -6
  20. package/dist/types/templates/Pass.d.ts +0 -6
  21. package/dist/types/templates/Preamble.d.ts +0 -6
  22. package/dist/types/templates/Quote.d.ts +0 -6
  23. package/dist/types/templates/Section.d.ts +0 -6
  24. package/dist/types/templates/Sidebar.d.ts +0 -6
  25. package/dist/types/templates/Table.d.ts +0 -6
  26. package/dist/types/templates/TableOfContents.d.ts +0 -6
  27. package/dist/types/templates/ThematicBreak.d.ts +0 -3
  28. package/dist/types/templates/UList.d.ts +0 -6
  29. package/dist/types/templates/Verse.d.ts +0 -6
  30. package/dist/types/templates/index.d.ts +0 -26
  31. package/dist/types/templates/util.d.ts +0 -14
  32. package/dist/types/utils/getContent.d.ts +0 -5
@@ -1,1631 +0,0 @@
1
- import { default as sr } from "@asciidoctor/core";
2
- import k from "html-react-parser";
3
- import { default as cr } from "html-react-parser";
4
- import Ke, { Fragment as Te, useMemo as re, createElement as K, createContext as Rt, useContext as Et } from "react";
5
- const G = {}, U = (e) => {
6
- const a = e.$$id;
7
- if (G[a])
8
- return G[a];
9
- const n = e.getContent() || "";
10
- return G[a] = n, n;
11
- }, j = (e) => {
12
- const a = e.$$id;
13
- if (G[a])
14
- return G[a];
15
- const n = e.getText() || "";
16
- return G[a] = n, n;
17
- };
18
- var ue = { exports: {} }, ee = {};
19
- /**
20
- * @license React
21
- * react-jsx-runtime.production.min.js
22
- *
23
- * Copyright (c) Facebook, Inc. and its affiliates.
24
- *
25
- * This source code is licensed under the MIT license found in the
26
- * LICENSE file in the root directory of this source tree.
27
- */
28
- var ze;
29
- function St() {
30
- if (ze)
31
- return ee;
32
- ze = 1;
33
- var e = Ke, a = Symbol.for("react.element"), n = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, g = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
34
- function f(b, h, y) {
35
- var m, O = {}, R = null, F = null;
36
- y !== void 0 && (R = "" + y), h.key !== void 0 && (R = "" + h.key), h.ref !== void 0 && (F = h.ref);
37
- for (m in h)
38
- c.call(h, m) && !o.hasOwnProperty(m) && (O[m] = h[m]);
39
- if (b && b.defaultProps)
40
- for (m in h = b.defaultProps, h)
41
- O[m] === void 0 && (O[m] = h[m]);
42
- return { $$typeof: a, type: b, key: R, ref: F, props: O, _owner: g.current };
43
- }
44
- return ee.Fragment = n, ee.jsx = f, ee.jsxs = f, ee;
45
- }
46
- var te = {};
47
- /**
48
- * @license React
49
- * react-jsx-runtime.development.js
50
- *
51
- * Copyright (c) Facebook, Inc. and its affiliates.
52
- *
53
- * This source code is licensed under the MIT license found in the
54
- * LICENSE file in the root directory of this source tree.
55
- */
56
- var Je;
57
- function wt() {
58
- return Je || (Je = 1, process.env.NODE_ENV !== "production" && function() {
59
- var e = Ke, a = Symbol.for("react.element"), n = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), g = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), b = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), O = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), F = Symbol.for("react.offscreen"), Y = Symbol.iterator, P = "@@iterator";
60
- function M(t) {
61
- if (t === null || typeof t != "object")
62
- return null;
63
- var i = Y && t[Y] || t[P];
64
- return typeof i == "function" ? i : null;
65
- }
66
- var E = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
67
- function N(t) {
68
- {
69
- for (var i = arguments.length, s = new Array(i > 1 ? i - 1 : 0), u = 1; u < i; u++)
70
- s[u - 1] = arguments[u];
71
- he("error", t, s);
72
- }
73
- }
74
- function he(t, i, s) {
75
- {
76
- var u = E.ReactDebugCurrentFrame, p = u.getStackAddendum();
77
- p !== "" && (i += "%s", s = s.concat([p]));
78
- var _ = s.map(function(v) {
79
- return String(v);
80
- });
81
- _.unshift("Warning: " + i), Function.prototype.apply.call(console[t], console, _);
82
- }
83
- }
84
- var ge = !1, q = !1, V = !1, X = !1, ae = !1, Ae;
85
- Ae = Symbol.for("react.module.reference");
86
- function Qe(t) {
87
- return !!(typeof t == "string" || typeof t == "function" || t === c || t === o || ae || t === g || t === y || t === m || X || t === F || ge || q || V || typeof t == "object" && t !== null && (t.$$typeof === R || t.$$typeof === O || t.$$typeof === f || t.$$typeof === b || t.$$typeof === h || t.$$typeof === Ae || t.getModuleId !== void 0));
88
- }
89
- function Ze(t, i, s) {
90
- var u = t.displayName;
91
- if (u)
92
- return u;
93
- var p = i.displayName || i.name || "";
94
- return p !== "" ? s + "(" + p + ")" : s;
95
- }
96
- function ke(t) {
97
- return t.displayName || "Context";
98
- }
99
- function B(t) {
100
- if (t == null)
101
- return null;
102
- if (typeof t.tag == "number" && N("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
103
- return t.displayName || t.name || null;
104
- if (typeof t == "string")
105
- return t;
106
- switch (t) {
107
- case c:
108
- return "Fragment";
109
- case n:
110
- return "Portal";
111
- case o:
112
- return "Profiler";
113
- case g:
114
- return "StrictMode";
115
- case y:
116
- return "Suspense";
117
- case m:
118
- return "SuspenseList";
119
- }
120
- if (typeof t == "object")
121
- switch (t.$$typeof) {
122
- case b:
123
- var i = t;
124
- return ke(i) + ".Consumer";
125
- case f:
126
- var s = t;
127
- return ke(s._context) + ".Provider";
128
- case h:
129
- return Ze(t, t.render, "ForwardRef");
130
- case O:
131
- var u = t.displayName || null;
132
- return u !== null ? u : B(t.type) || "Memo";
133
- case R: {
134
- var p = t, _ = p._payload, v = p._init;
135
- try {
136
- return B(v(_));
137
- } catch {
138
- return null;
139
- }
140
- }
141
- }
142
- return null;
143
- }
144
- var H = Object.assign, Q = 0, Re, Ee, Se, we, Ce, Oe, $e;
145
- function Ie() {
146
- }
147
- Ie.__reactDisabledLog = !0;
148
- function et() {
149
- {
150
- if (Q === 0) {
151
- Re = console.log, Ee = console.info, Se = console.warn, we = console.error, Ce = console.group, Oe = console.groupCollapsed, $e = console.groupEnd;
152
- var t = {
153
- configurable: !0,
154
- enumerable: !0,
155
- value: Ie,
156
- writable: !0
157
- };
158
- Object.defineProperties(console, {
159
- info: t,
160
- log: t,
161
- warn: t,
162
- error: t,
163
- group: t,
164
- groupCollapsed: t,
165
- groupEnd: t
166
- });
167
- }
168
- Q++;
169
- }
170
- }
171
- function tt() {
172
- {
173
- if (Q--, Q === 0) {
174
- var t = {
175
- configurable: !0,
176
- enumerable: !0,
177
- writable: !0
178
- };
179
- Object.defineProperties(console, {
180
- log: H({}, t, {
181
- value: Re
182
- }),
183
- info: H({}, t, {
184
- value: Ee
185
- }),
186
- warn: H({}, t, {
187
- value: Se
188
- }),
189
- error: H({}, t, {
190
- value: we
191
- }),
192
- group: H({}, t, {
193
- value: Ce
194
- }),
195
- groupCollapsed: H({}, t, {
196
- value: Oe
197
- }),
198
- groupEnd: H({}, t, {
199
- value: $e
200
- })
201
- });
202
- }
203
- Q < 0 && N("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
204
- }
205
- }
206
- var de = E.ReactCurrentDispatcher, me;
207
- function ie(t, i, s) {
208
- {
209
- if (me === void 0)
210
- try {
211
- throw Error();
212
- } catch (p) {
213
- var u = p.stack.trim().match(/\n( *(at )?)/);
214
- me = u && u[1] || "";
215
- }
216
- return `
217
- ` + me + t;
218
- }
219
- }
220
- var ve = !1, ne;
221
- {
222
- var rt = typeof WeakMap == "function" ? WeakMap : Map;
223
- ne = new rt();
224
- }
225
- function xe(t, i) {
226
- if (!t || ve)
227
- return "";
228
- {
229
- var s = ne.get(t);
230
- if (s !== void 0)
231
- return s;
232
- }
233
- var u;
234
- ve = !0;
235
- var p = Error.prepareStackTrace;
236
- Error.prepareStackTrace = void 0;
237
- var _;
238
- _ = de.current, de.current = null, et();
239
- try {
240
- if (i) {
241
- var v = function() {
242
- throw Error();
243
- };
244
- if (Object.defineProperty(v.prototype, "props", {
245
- set: function() {
246
- throw Error();
247
- }
248
- }), typeof Reflect == "object" && Reflect.construct) {
249
- try {
250
- Reflect.construct(v, []);
251
- } catch (W) {
252
- u = W;
253
- }
254
- Reflect.construct(t, [], v);
255
- } else {
256
- try {
257
- v.call();
258
- } catch (W) {
259
- u = W;
260
- }
261
- t.call(v.prototype);
262
- }
263
- } else {
264
- try {
265
- throw Error();
266
- } catch (W) {
267
- u = W;
268
- }
269
- t();
270
- }
271
- } catch (W) {
272
- if (W && u && typeof W.stack == "string") {
273
- for (var d = W.stack.split(`
274
- `), $ = u.stack.split(`
275
- `), A = d.length - 1, S = $.length - 1; A >= 1 && S >= 0 && d[A] !== $[S]; )
276
- S--;
277
- for (; A >= 1 && S >= 0; A--, S--)
278
- if (d[A] !== $[S]) {
279
- if (A !== 1 || S !== 1)
280
- do
281
- if (A--, S--, S < 0 || d[A] !== $[S]) {
282
- var D = `
283
- ` + d[A].replace(" at new ", " at ");
284
- return t.displayName && D.includes("<anonymous>") && (D = D.replace("<anonymous>", t.displayName)), typeof t == "function" && ne.set(t, D), D;
285
- }
286
- while (A >= 1 && S >= 0);
287
- break;
288
- }
289
- }
290
- } finally {
291
- ve = !1, de.current = _, tt(), Error.prepareStackTrace = p;
292
- }
293
- var J = t ? t.displayName || t.name : "", Ve = J ? ie(J) : "";
294
- return typeof t == "function" && ne.set(t, Ve), Ve;
295
- }
296
- function at(t, i, s) {
297
- return xe(t, !1);
298
- }
299
- function it(t) {
300
- var i = t.prototype;
301
- return !!(i && i.isReactComponent);
302
- }
303
- function se(t, i, s) {
304
- if (t == null)
305
- return "";
306
- if (typeof t == "function")
307
- return xe(t, it(t));
308
- if (typeof t == "string")
309
- return ie(t);
310
- switch (t) {
311
- case y:
312
- return ie("Suspense");
313
- case m:
314
- return ie("SuspenseList");
315
- }
316
- if (typeof t == "object")
317
- switch (t.$$typeof) {
318
- case h:
319
- return at(t.render);
320
- case O:
321
- return se(t.type, i, s);
322
- case R: {
323
- var u = t, p = u._payload, _ = u._init;
324
- try {
325
- return se(_(p), i, s);
326
- } catch {
327
- }
328
- }
329
- }
330
- return "";
331
- }
332
- var le = Object.prototype.hasOwnProperty, Pe = {}, De = E.ReactDebugCurrentFrame;
333
- function ce(t) {
334
- if (t) {
335
- var i = t._owner, s = se(t.type, t._source, i ? i.type : null);
336
- De.setExtraStackFrame(s);
337
- } else
338
- De.setExtraStackFrame(null);
339
- }
340
- function nt(t, i, s, u, p) {
341
- {
342
- var _ = Function.call.bind(le);
343
- for (var v in t)
344
- if (_(t, v)) {
345
- var d = void 0;
346
- try {
347
- if (typeof t[v] != "function") {
348
- var $ = Error((u || "React class") + ": " + s + " type `" + v + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[v] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
349
- throw $.name = "Invariant Violation", $;
350
- }
351
- d = t[v](i, v, u, s, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
352
- } catch (A) {
353
- d = A;
354
- }
355
- d && !(d instanceof Error) && (ce(p), N("%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).", u || "React class", s, v, typeof d), ce(null)), d instanceof Error && !(d.message in Pe) && (Pe[d.message] = !0, ce(p), N("Failed %s type: %s", s, d.message), ce(null));
356
- }
357
- }
358
- }
359
- var st = Array.isArray;
360
- function pe(t) {
361
- return st(t);
362
- }
363
- function lt(t) {
364
- {
365
- var i = typeof Symbol == "function" && Symbol.toStringTag, s = i && t[Symbol.toStringTag] || t.constructor.name || "Object";
366
- return s;
367
- }
368
- }
369
- function ct(t) {
370
- try {
371
- return je(t), !1;
372
- } catch {
373
- return !0;
374
- }
375
- }
376
- function je(t) {
377
- return "" + t;
378
- }
379
- function Le(t) {
380
- if (ct(t))
381
- return N("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", lt(t)), je(t);
382
- }
383
- var Z = E.ReactCurrentOwner, ot = {
384
- key: !0,
385
- ref: !0,
386
- __self: !0,
387
- __source: !0
388
- }, Fe, Me, be;
389
- be = {};
390
- function ut(t) {
391
- if (le.call(t, "ref")) {
392
- var i = Object.getOwnPropertyDescriptor(t, "ref").get;
393
- if (i && i.isReactWarning)
394
- return !1;
395
- }
396
- return t.ref !== void 0;
397
- }
398
- function ft(t) {
399
- if (le.call(t, "key")) {
400
- var i = Object.getOwnPropertyDescriptor(t, "key").get;
401
- if (i && i.isReactWarning)
402
- return !1;
403
- }
404
- return t.key !== void 0;
405
- }
406
- function ht(t, i) {
407
- if (typeof t.ref == "string" && Z.current && i && Z.current.stateNode !== i) {
408
- var s = B(Z.current.type);
409
- be[s] || (N('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', B(Z.current.type), t.ref), be[s] = !0);
410
- }
411
- }
412
- function gt(t, i) {
413
- {
414
- var s = function() {
415
- Fe || (Fe = !0, N("%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)", i));
416
- };
417
- s.isReactWarning = !0, Object.defineProperty(t, "key", {
418
- get: s,
419
- configurable: !0
420
- });
421
- }
422
- }
423
- function dt(t, i) {
424
- {
425
- var s = function() {
426
- Me || (Me = !0, N("%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)", i));
427
- };
428
- s.isReactWarning = !0, Object.defineProperty(t, "ref", {
429
- get: s,
430
- configurable: !0
431
- });
432
- }
433
- }
434
- var mt = function(t, i, s, u, p, _, v) {
435
- var d = {
436
- $$typeof: a,
437
- type: t,
438
- key: i,
439
- ref: s,
440
- props: v,
441
- _owner: _
442
- };
443
- return d._store = {}, Object.defineProperty(d._store, "validated", {
444
- configurable: !1,
445
- enumerable: !1,
446
- writable: !0,
447
- value: !1
448
- }), Object.defineProperty(d, "_self", {
449
- configurable: !1,
450
- enumerable: !1,
451
- writable: !1,
452
- value: u
453
- }), Object.defineProperty(d, "_source", {
454
- configurable: !1,
455
- enumerable: !1,
456
- writable: !1,
457
- value: p
458
- }), Object.freeze && (Object.freeze(d.props), Object.freeze(d)), d;
459
- };
460
- function vt(t, i, s, u, p) {
461
- {
462
- var _, v = {}, d = null, $ = null;
463
- s !== void 0 && (Le(s), d = "" + s), ft(i) && (Le(i.key), d = "" + i.key), ut(i) && ($ = i.ref, ht(i, p));
464
- for (_ in i)
465
- le.call(i, _) && !ot.hasOwnProperty(_) && (v[_] = i[_]);
466
- if (t && t.defaultProps) {
467
- var A = t.defaultProps;
468
- for (_ in A)
469
- v[_] === void 0 && (v[_] = A[_]);
470
- }
471
- if (d || $) {
472
- var S = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
473
- d && gt(v, S), $ && dt(v, S);
474
- }
475
- return mt(t, d, $, p, u, Z.current, v);
476
- }
477
- }
478
- var ye = E.ReactCurrentOwner, Be = E.ReactDebugCurrentFrame;
479
- function z(t) {
480
- if (t) {
481
- var i = t._owner, s = se(t.type, t._source, i ? i.type : null);
482
- Be.setExtraStackFrame(s);
483
- } else
484
- Be.setExtraStackFrame(null);
485
- }
486
- var _e;
487
- _e = !1;
488
- function Ne(t) {
489
- return typeof t == "object" && t !== null && t.$$typeof === a;
490
- }
491
- function We() {
492
- {
493
- if (ye.current) {
494
- var t = B(ye.current.type);
495
- if (t)
496
- return `
497
-
498
- Check the render method of \`` + t + "`.";
499
- }
500
- return "";
501
- }
502
- }
503
- function pt(t) {
504
- {
505
- if (t !== void 0) {
506
- var i = t.fileName.replace(/^.*[\\\/]/, ""), s = t.lineNumber;
507
- return `
508
-
509
- Check your code at ` + i + ":" + s + ".";
510
- }
511
- return "";
512
- }
513
- }
514
- var Ye = {};
515
- function bt(t) {
516
- {
517
- var i = We();
518
- if (!i) {
519
- var s = typeof t == "string" ? t : t.displayName || t.name;
520
- s && (i = `
521
-
522
- Check the top-level render call using <` + s + ">.");
523
- }
524
- return i;
525
- }
526
- }
527
- function He(t, i) {
528
- {
529
- if (!t._store || t._store.validated || t.key != null)
530
- return;
531
- t._store.validated = !0;
532
- var s = bt(i);
533
- if (Ye[s])
534
- return;
535
- Ye[s] = !0;
536
- var u = "";
537
- t && t._owner && t._owner !== ye.current && (u = " It was passed a child from " + B(t._owner.type) + "."), z(t), N('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', s, u), z(null);
538
- }
539
- }
540
- function Ue(t, i) {
541
- {
542
- if (typeof t != "object")
543
- return;
544
- if (pe(t))
545
- for (var s = 0; s < t.length; s++) {
546
- var u = t[s];
547
- Ne(u) && He(u, i);
548
- }
549
- else if (Ne(t))
550
- t._store && (t._store.validated = !0);
551
- else if (t) {
552
- var p = M(t);
553
- if (typeof p == "function" && p !== t.entries)
554
- for (var _ = p.call(t), v; !(v = _.next()).done; )
555
- Ne(v.value) && He(v.value, i);
556
- }
557
- }
558
- }
559
- function yt(t) {
560
- {
561
- var i = t.type;
562
- if (i == null || typeof i == "string")
563
- return;
564
- var s;
565
- if (typeof i == "function")
566
- s = i.propTypes;
567
- else if (typeof i == "object" && (i.$$typeof === h || i.$$typeof === O))
568
- s = i.propTypes;
569
- else
570
- return;
571
- if (s) {
572
- var u = B(i);
573
- nt(s, t.props, "prop", u, t);
574
- } else if (i.PropTypes !== void 0 && !_e) {
575
- _e = !0;
576
- var p = B(i);
577
- N("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");
578
- }
579
- typeof i.getDefaultProps == "function" && !i.getDefaultProps.isReactClassApproved && N("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
580
- }
581
- }
582
- function _t(t) {
583
- {
584
- for (var i = Object.keys(t.props), s = 0; s < i.length; s++) {
585
- var u = i[s];
586
- if (u !== "children" && u !== "key") {
587
- z(t), N("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", u), z(null);
588
- break;
589
- }
590
- }
591
- t.ref !== null && (z(t), N("Invalid attribute `ref` supplied to `React.Fragment`."), z(null));
592
- }
593
- }
594
- function qe(t, i, s, u, p, _) {
595
- {
596
- var v = Qe(t);
597
- if (!v) {
598
- var d = "";
599
- (t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (d += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
600
- var $ = pt(p);
601
- $ ? d += $ : d += We();
602
- var A;
603
- t === null ? A = "null" : pe(t) ? A = "array" : t !== void 0 && t.$$typeof === a ? (A = "<" + (B(t.type) || "Unknown") + " />", d = " Did you accidentally export a JSX literal instead of a component?") : A = typeof t, N("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", A, d);
604
- }
605
- var S = vt(t, i, s, p, _);
606
- if (S == null)
607
- return S;
608
- if (v) {
609
- var D = i.children;
610
- if (D !== void 0)
611
- if (u)
612
- if (pe(D)) {
613
- for (var J = 0; J < D.length; J++)
614
- Ue(D[J], t);
615
- Object.freeze && Object.freeze(D);
616
- } else
617
- N("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
618
- else
619
- Ue(D, t);
620
- }
621
- return t === c ? _t(S) : yt(S), S;
622
- }
623
- }
624
- function Nt(t, i, s) {
625
- return qe(t, i, s, !0);
626
- }
627
- function Tt(t, i, s) {
628
- return qe(t, i, s, !1);
629
- }
630
- var At = Tt, kt = Nt;
631
- te.Fragment = c, te.jsx = At, te.jsxs = kt;
632
- }()), te;
633
- }
634
- (function(e) {
635
- process.env.NODE_ENV === "production" ? e.exports = St() : e.exports = wt();
636
- })(ue);
637
- const L = ue.exports.Fragment, r = ue.exports.jsx, l = ue.exports.jsxs, x = ({
638
- node: e
639
- }) => e.hasTitle() ? /* @__PURE__ */ r("div", {
640
- className: "title",
641
- children: k(e.getTitle() || "")
642
- }) : null, oe = ({
643
- node: e
644
- }) => e.hasTitle() ? /* @__PURE__ */ r("div", {
645
- className: "title",
646
- children: k(e.getCaptionedTitle() || "")
647
- }) : null, C = (e) => typeof e.getRole() == "string" ? e.getRole() : void 0, T = (e) => e.getLineNumber() ? {
648
- "data-lineno": e.getLineNumber()
649
- } : {}, Ct = ({
650
- node: e
651
- }) => {
652
- const a = e.getAttributes(), n = e.getDocument(), c = U(e), g = () => n.getAttribute("icons") === "font" && !a.icon ? /* @__PURE__ */ r("i", {
653
- className: `fa icon-${a.name}`,
654
- title: a.textlabel
655
- }) : /* @__PURE__ */ r("img", {
656
- src: e.getIconUri(a.name),
657
- alt: a.textlabel
658
- });
659
- return e.content_model, /* @__PURE__ */ r("div", {
660
- className: `admonitionblock ${a.name}`,
661
- ...T(e),
662
- children: /* @__PURE__ */ r("table", {
663
- children: /* @__PURE__ */ r("tbody", {
664
- children: /* @__PURE__ */ l("tr", {
665
- children: [/* @__PURE__ */ r("td", {
666
- className: "icon",
667
- children: n.hasAttribute("icons") ? g() : /* @__PURE__ */ r("div", {
668
- className: "title",
669
- children: e.getAttribute("textlabel")
670
- })
671
- }), /* @__PURE__ */ l("td", {
672
- className: "content",
673
- children: [/* @__PURE__ */ r(x, {
674
- node: e
675
- }), k(c)]
676
- })]
677
- })
678
- })
679
- })
680
- });
681
- }, Ot = ({
682
- node: e
683
- }) => {
684
- const a = e.getAttribute("start"), n = e.getAttribute("start"), c = (a || n) && `#t=${a || ""}` + n ? `,${n}` : "";
685
- return /* @__PURE__ */ l("div", {
686
- className: "audioblock",
687
- ...T(e),
688
- children: [/* @__PURE__ */ r(x, {
689
- node: e
690
- }), /* @__PURE__ */ r("div", {
691
- className: "content",
692
- children: /* @__PURE__ */ r("audio", {
693
- src: `${e.getMediaUri(e.getAttribute("target"))}${c}`,
694
- autoPlay: e.isOption("autoplay"),
695
- controls: !e.isOption("nocontrols"),
696
- loop: e.isOption("loop"),
697
- children: "Your browser does not support the audio tag."
698
- })
699
- })]
700
- });
701
- }, $t = ({
702
- node: e
703
- }) => /* @__PURE__ */ l("div", {
704
- className: "colist",
705
- ...T(e),
706
- children: [/* @__PURE__ */ r(x, {
707
- node: e
708
- }), /* @__PURE__ */ r("table", {
709
- children: /* @__PURE__ */ r("tbody", {
710
- children: e.getItems().map((a, n) => /* @__PURE__ */ l("tr", {
711
- children: [/* @__PURE__ */ l("td", {
712
- children: [/* @__PURE__ */ r("i", {
713
- className: "conum",
714
- "data-value": n + 1
715
- }), /* @__PURE__ */ r("b", {
716
- children: n + 1
717
- })]
718
- }), /* @__PURE__ */ l("td", {
719
- children: [k(j(a)), /* @__PURE__ */ r(I, {
720
- blocks: a.getBlocks()
721
- })]
722
- })]
723
- }, n))
724
- })
725
- })]
726
- });
727
- var Ge = { exports: {} };
728
- /*!
729
- Copyright (c) 2018 Jed Watson.
730
- Licensed under the MIT License (MIT), see
731
- http://jedwatson.github.io/classnames
732
- */
733
- (function(e) {
734
- (function() {
735
- var a = {}.hasOwnProperty;
736
- function n() {
737
- for (var c = [], g = 0; g < arguments.length; g++) {
738
- var o = arguments[g];
739
- if (!!o) {
740
- var f = typeof o;
741
- if (f === "string" || f === "number")
742
- c.push(o);
743
- else if (Array.isArray(o)) {
744
- if (o.length) {
745
- var b = n.apply(null, o);
746
- b && c.push(b);
747
- }
748
- } else if (f === "object") {
749
- if (o.toString !== Object.prototype.toString && !o.toString.toString().includes("[native code]")) {
750
- c.push(o.toString());
751
- continue;
752
- }
753
- for (var h in o)
754
- a.call(o, h) && o[h] && c.push(h);
755
- }
756
- }
757
- }
758
- return c.join(" ");
759
- }
760
- e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
761
- })();
762
- })(Ge);
763
- const w = Ge.exports, It = ({
764
- node: e
765
- }) => {
766
- const a = e.getStyle(), n = (o) => {
767
- const f = o, b = f[0];
768
- let h = f[1];
769
- return h.getNodeName || (h = null), {
770
- terms: b,
771
- dd: h
772
- };
773
- }, c = (o) => {
774
- if (o)
775
- return /* @__PURE__ */ l("dd", {
776
- children: [o.hasText() && /* @__PURE__ */ r("p", {
777
- children: k(j(o))
778
- }), o.hasBlocks() && /* @__PURE__ */ r(I, {
779
- blocks: o.getBlocks()
780
- })]
781
- });
782
- }, g = e.hasTitle() && /* @__PURE__ */ r("div", {
783
- className: "title",
784
- children: e.getCaptionedTitle()
785
- });
786
- if (a === "qanda")
787
- return /* @__PURE__ */ l("div", {
788
- className: w("qlist qanda", C(e)),
789
- ...T(e),
790
- children: [g, /* @__PURE__ */ r("ol", {
791
- children: e.getItems().map((o, f) => {
792
- const {
793
- terms: b,
794
- dd: h
795
- } = n(o);
796
- return /* @__PURE__ */ l("li", {
797
- children: [b.map((y, m) => /* @__PURE__ */ r("p", {
798
- children: /* @__PURE__ */ r("em", {
799
- children: k(j(y))
800
- })
801
- }, m)), c(h)]
802
- }, f);
803
- })
804
- })]
805
- });
806
- if (a === "horizontal") {
807
- const o = e.getAttribute("labelwidth"), f = e.getAttribute("itemwidth");
808
- return /* @__PURE__ */ l("div", {
809
- className: w("hdlist", C(e)),
810
- children: [g, /* @__PURE__ */ l("table", {
811
- children: [(o || f) && /* @__PURE__ */ l("colgroup", {
812
- children: [/* @__PURE__ */ r("col", {
813
- style: {
814
- width: o ? `${o.replace("%", "")}%` : ""
815
- }
816
- }), /* @__PURE__ */ r("col", {
817
- style: {
818
- width: f ? `${f.replace("%", "")}%` : ""
819
- }
820
- })]
821
- }), /* @__PURE__ */ r("tbody", {
822
- children: e.getItems().map((b, h) => {
823
- const {
824
- terms: y,
825
- dd: m
826
- } = n(b);
827
- return /* @__PURE__ */ l("tr", {
828
- children: [/* @__PURE__ */ r("td", {
829
- className: w("hdlist1", e.isOption("strong") ? "strong" : ""),
830
- children: y.map((O, R) => /* @__PURE__ */ l(Te, {
831
- children: [R !== 0 && /* @__PURE__ */ r("br", {}), k(j(O))]
832
- }, R))
833
- }), m && /* @__PURE__ */ l("td", {
834
- className: "hdlist2",
835
- children: [m.hasText() && /* @__PURE__ */ r("p", {
836
- children: k(j(m))
837
- }), m.hasBlocks() && /* @__PURE__ */ r(I, {
838
- blocks: m.getBlocks()
839
- })]
840
- })]
841
- }, h);
842
- })
843
- })]
844
- })]
845
- });
846
- } else
847
- return /* @__PURE__ */ l("div", {
848
- className: w("dlist", e.getStyle(), C(e)),
849
- children: [g, /* @__PURE__ */ r("dl", {
850
- children: e.getItems().map((o, f) => {
851
- const {
852
- terms: b,
853
- dd: h
854
- } = n(o);
855
- return /* @__PURE__ */ l(Te, {
856
- children: [b.map((y, m) => /* @__PURE__ */ r("dt", {
857
- className: "hdlist1",
858
- children: k(j(y))
859
- }, m)), c(h)]
860
- }, f);
861
- })
862
- })]
863
- });
864
- }, fe = ({
865
- node: e,
866
- opts: a
867
- }) => {
868
- if (!e.hasSections())
869
- return null;
870
- const n = e.getSections(), c = e.getDocument(), g = re(() => c.getAttributes(), [e]), o = re(() => c.getAttribute("sectnumlevels"), [e]), f = re(() => c.getAttribute("toclevels"), [e]), b = (a == null ? void 0 : a.sectNumLevels) || (o ? parseInt(o) : 3), h = (a == null ? void 0 : a.tocLevels) || (f ? parseInt(f) : 2);
871
- return /* @__PURE__ */ r("ul", {
872
- className: `sectlevel${n[0].getLevel()}`,
873
- children: n.map((y) => {
874
- let m = y.$sectnum();
875
- m = m === "." || m === ".." ? "" : m;
876
- const O = y.getLevel();
877
- let R = "";
878
- if (y.getCaption())
879
- R = y.getCaptionedTitle();
880
- else if (O <= b)
881
- if (O < 2 && c.getDoctype() == "book") {
882
- const F = y.getSectionName();
883
- F === "chapter" ? R = `${g["chapter-signifier"] || ""} ${m} ${y.getTitle()}` : F === "part" ? R = `${g["part-signifier"] || ""} ${m} ${y.getTitle()}` : R = `${m} ${y.getTitle()}`;
884
- } else
885
- R = `${m} ${y.getTitle()}`;
886
- else
887
- R = y.getTitle() || "";
888
- return /* @__PURE__ */ l("li", {
889
- children: [/* @__PURE__ */ r("a", {
890
- href: `#${y.getId()}`,
891
- children: k(R)
892
- }), O < h && /* @__PURE__ */ r(fe, {
893
- node: y,
894
- opts: {
895
- tocLevels: h,
896
- sectNumLevels: b
897
- }
898
- })]
899
- }, y.getId());
900
- })
901
- });
902
- }, xt = ({
903
- document: e
904
- }) => {
905
- const a = e.getBlocks(), n = e.getFootnotes(), c = () => {
906
- var f;
907
- return e.getNoheader() ? null : /* @__PURE__ */ r("div", {
908
- id: "header",
909
- children: e.hasHeader() && /* @__PURE__ */ l(L, {
910
- children: [/* @__PURE__ */ r("h1", {
911
- dangerouslySetInnerHTML: {
912
- __html: ((f = e.getDocumentTitle()) == null ? void 0 : f.toString()) || ""
913
- }
914
- }), /* @__PURE__ */ r(o, {}), e.hasSections() && e.hasAttribute("toc") && e.getAttribute("toc-placement") === "auto" && /* @__PURE__ */ l("div", {
915
- id: "toc",
916
- className: e.getAttribute("toc-class", "toc"),
917
- children: [/* @__PURE__ */ r("div", {
918
- id: "toctitle",
919
- children: e.getAttribute("toc-title")
920
- }), /* @__PURE__ */ r(fe, {
921
- node: e
922
- })]
923
- })]
924
- })
925
- });
926
- }, g = () => n && n.length > 0 && a && !a[0].getDocument().hasAttribute("nofootnotes") ? /* @__PURE__ */ l("div", {
927
- id: "footnotes",
928
- children: [/* @__PURE__ */ r("hr", {}), n.map((f) => /* @__PURE__ */ l("div", {
929
- className: "footnote",
930
- id: `_footnotedef_${f.getIndex()}`,
931
- children: [/* @__PURE__ */ r("a", {
932
- href: `#_footnoteref_${f.getIndex()}`,
933
- children: f.getIndex()
934
- }), ".", " ", k(j(f) || "")]
935
- }, f.getIndex()))]
936
- }) : null, o = () => e.getAuthors().length > 0 || e.hasAttribute("revnumber") || e.hasAttribute("revdate") || e.hasAttribute("revremark") ? /* @__PURE__ */ l("div", {
937
- className: "details",
938
- children: [e.getAuthors().map((b, h) => /* @__PURE__ */ l(Te, {
939
- children: [b.getName() && /* @__PURE__ */ l(L, {
940
- children: [/* @__PURE__ */ r("span", {
941
- id: `author${h + 1 > 1 ? h + 1 : ""}`,
942
- className: "author",
943
- children: k(e.applySubstitutions(b.getName() || "").toString())
944
- }), /* @__PURE__ */ r("br", {})]
945
- }), b.getEmail() && /* @__PURE__ */ l(L, {
946
- children: [/* @__PURE__ */ r("span", {
947
- id: `email${h + 1 > 1 ? h + 1 : ""}`,
948
- className: "email",
949
- children: k(e.applySubstitutions(b.getEmail() || "").toString())
950
- }), /* @__PURE__ */ r("br", {})]
951
- })]
952
- }, h)), e.hasAttribute("revnumber") && /* @__PURE__ */ r("span", {
953
- id: "revnumber",
954
- children: `${e.getAttribute("version-label").toLowerCase()} ${e.getAttribute("revnumber")}${e.hasAttribute("revdate") ? "," : ""}`
955
- }), e.hasAttribute("revdate") && /* @__PURE__ */ r("span", {
956
- id: "revdate",
957
- children: e.getAttribute("revdate")
958
- }), e.hasAttribute("revremark") && /* @__PURE__ */ l(L, {
959
- children: [/* @__PURE__ */ r("br", {}), /* @__PURE__ */ r("span", {
960
- id: "revremark",
961
- children: e.getAttribute("revremark")
962
- })]
963
- })]
964
- }) : null;
965
- return /* @__PURE__ */ l(L, {
966
- children: [/* @__PURE__ */ r(c, {}), /* @__PURE__ */ r("div", {
967
- id: "content",
968
- children: /* @__PURE__ */ r(I, {
969
- blocks: a
970
- })
971
- }), /* @__PURE__ */ r(g, {})]
972
- });
973
- }, Pt = ({
974
- node: e
975
- }) => {
976
- if (e.isOption("collapsible")) {
977
- const a = e.isOption("collapsible"), n = e.getTitle() || "Details", c = e.isOption("open") ? !0 : void 0;
978
- if (a)
979
- return /* @__PURE__ */ l("details", {
980
- className: C(e),
981
- open: c,
982
- ...T(e),
983
- children: [/* @__PURE__ */ r("summary", {
984
- className: "title",
985
- children: k(n)
986
- }), /* @__PURE__ */ r("div", {
987
- className: "content",
988
- children: /* @__PURE__ */ r(I, {
989
- blocks: e.getBlocks()
990
- })
991
- })]
992
- });
993
- }
994
- return /* @__PURE__ */ l("div", {
995
- className: w("exampleblock", C(e)),
996
- ...T(e),
997
- children: [/* @__PURE__ */ r(oe, {
998
- node: e
999
- }), /* @__PURE__ */ r("div", {
1000
- className: "content",
1001
- children: /* @__PURE__ */ r(I, {
1002
- blocks: e.getBlocks()
1003
- })
1004
- })]
1005
- });
1006
- }, Dt = ({
1007
- node: e
1008
- }) => {
1009
- const a = e.getLevel();
1010
- return /* @__PURE__ */ l(L, {
1011
- children: [/* @__PURE__ */ r("a", {
1012
- className: "sectionanchor",
1013
- id: `${e.getId() || ""}`,
1014
- ...T(e)
1015
- }), K(`h${a + 1}`, null, /* @__PURE__ */ r(x, {
1016
- node: e
1017
- }))]
1018
- });
1019
- }, jt = ({
1020
- node: e
1021
- }) => {
1022
- const a = e.getAttribute("target");
1023
- let n = /* @__PURE__ */ r("img", {
1024
- src: e.getImageUri(a),
1025
- alt: e.getAttribute("alt"),
1026
- width: e.getAttribute("width"),
1027
- height: e.getAttribute("height")
1028
- });
1029
- return e.hasAttribute("link") && (n = /* @__PURE__ */ r("a", {
1030
- className: "image",
1031
- href: e.getAttribute("link"),
1032
- children: n
1033
- })), /* @__PURE__ */ l("div", {
1034
- className: `imageblock ${e.hasAttribute("align") ? "text-" + e.getAttribute("align") : ""} ${e.hasAttribute("float") ? e.getAttribute("float") : ""} ${e.getRole() ? e.getRole() : ""}`,
1035
- ...T(e),
1036
- children: [/* @__PURE__ */ r("div", {
1037
- className: "content",
1038
- children: n
1039
- }), /* @__PURE__ */ r(oe, {
1040
- node: e
1041
- })]
1042
- });
1043
- }, Lt = ({
1044
- node: e
1045
- }) => {
1046
- const a = e.getDocument(), n = e.getAttributes(), c = e.isOption("nowrap") || !a.hasAttribute("prewrap"), g = U(e);
1047
- if (e.getStyle() === "source") {
1048
- const o = n.language;
1049
- return /* @__PURE__ */ l("div", {
1050
- className: "listingblock",
1051
- ...T(e),
1052
- children: [/* @__PURE__ */ r(oe, {
1053
- node: e
1054
- }), /* @__PURE__ */ r("div", {
1055
- className: "content",
1056
- children: /* @__PURE__ */ r("pre", {
1057
- className: w("highlight", c ? " nowrap" : ""),
1058
- children: o ? /* @__PURE__ */ r("code", {
1059
- className: o ? `language-${o}` : "",
1060
- "data-lang": o,
1061
- dangerouslySetInnerHTML: {
1062
- __html: g
1063
- }
1064
- }) : /* @__PURE__ */ r("code", {
1065
- dangerouslySetInnerHTML: {
1066
- __html: g
1067
- }
1068
- })
1069
- })
1070
- })]
1071
- });
1072
- } else
1073
- return /* @__PURE__ */ l("div", {
1074
- className: "listingblock",
1075
- ...T(e),
1076
- children: [/* @__PURE__ */ r(oe, {
1077
- node: e
1078
- }), /* @__PURE__ */ r("div", {
1079
- className: "content",
1080
- children: /* @__PURE__ */ r("pre", {
1081
- className: c ? " nowrap" : "",
1082
- children: /* @__PURE__ */ r("code", {
1083
- dangerouslySetInnerHTML: {
1084
- __html: e.getSource()
1085
- }
1086
- })
1087
- })
1088
- })]
1089
- });
1090
- }, Ft = ({
1091
- node: e
1092
- }) => {
1093
- const n = e.getDocument().getAttributes().prewrap === void 0 || e.isOption("nowrap");
1094
- return /* @__PURE__ */ l("div", {
1095
- className: "literalblock",
1096
- ...T(e),
1097
- children: [/* @__PURE__ */ r(x, {
1098
- node: e
1099
- }), /* @__PURE__ */ r("div", {
1100
- className: "content",
1101
- children: /* @__PURE__ */ r("pre", {
1102
- className: n ? "nowrap" : "",
1103
- children: e.getSource()
1104
- })
1105
- })]
1106
- });
1107
- }, Mt = ({
1108
- node: e
1109
- }) => /* @__PURE__ */ l("div", {
1110
- className: w("olist", C(e), e.getStyle()),
1111
- ...T(e),
1112
- children: [/* @__PURE__ */ r(x, {
1113
- node: e
1114
- }), /* @__PURE__ */ r("ol", {
1115
- className: e.getStyle(),
1116
- reversed: e.isOption("reversed"),
1117
- start: e.getAttribute("start"),
1118
- children: e.getItems().map((a, n) => /* @__PURE__ */ l("li", {
1119
- className: C(e) ? C(e) : "",
1120
- children: [/* @__PURE__ */ r("p", {
1121
- children: k(j(a))
1122
- }), /* @__PURE__ */ r(I, {
1123
- blocks: a.getBlocks()
1124
- })]
1125
- }, n))
1126
- })]
1127
- }), Bt = ({
1128
- node: e
1129
- }) => {
1130
- const a = e.getStyle();
1131
- return a === "abstract" ? /* @__PURE__ */ l("div", {
1132
- className: w("quoteblock abstract", C(e)),
1133
- ...T(e),
1134
- children: [/* @__PURE__ */ r(x, {
1135
- node: e
1136
- }), /* @__PURE__ */ r("blockquote", {
1137
- className: "content",
1138
- children: /* @__PURE__ */ r(I, {
1139
- blocks: e.getBlocks()
1140
- })
1141
- })]
1142
- }) : /* @__PURE__ */ l("div", {
1143
- className: w("openblock", a && a !== "open" ? a : "", C(e)),
1144
- ...T(e),
1145
- children: [/* @__PURE__ */ r(x, {
1146
- node: e
1147
- }), /* @__PURE__ */ r("div", {
1148
- className: "content",
1149
- children: /* @__PURE__ */ r(I, {
1150
- blocks: e.getBlocks()
1151
- })
1152
- })]
1153
- });
1154
- }, Wt = () => /* @__PURE__ */ r("div", {
1155
- style: {
1156
- pageBreakAfter: "always"
1157
- }
1158
- }), Yt = ({
1159
- node: e
1160
- }) => {
1161
- const a = U(e);
1162
- return /* @__PURE__ */ l("div", {
1163
- id: e.getId ? e.getId() : "",
1164
- className: w("paragraph", C(e)),
1165
- ...T(e),
1166
- children: [/* @__PURE__ */ r(x, {
1167
- node: e
1168
- }), /* @__PURE__ */ r("p", {
1169
- dangerouslySetInnerHTML: {
1170
- __html: a
1171
- }
1172
- })]
1173
- });
1174
- }, Ht = ({
1175
- node: e
1176
- }) => {
1177
- const a = U(e);
1178
- return /* @__PURE__ */ r(L, {
1179
- children: k(a)
1180
- });
1181
- }, Ut = ({
1182
- node: e
1183
- }) => {
1184
- const a = e.getDocument(), n = a.getAttribute("toc-placement") === "preamble" && a.hasSections() && a.hasAttribute("toc");
1185
- return /* @__PURE__ */ r("div", {
1186
- id: "preamble",
1187
- ...T(e),
1188
- children: /* @__PURE__ */ l("div", {
1189
- className: "sectionbody",
1190
- children: [/* @__PURE__ */ r(I, {
1191
- blocks: e.getBlocks()
1192
- }), n && /* @__PURE__ */ l("div", {
1193
- id: "toc",
1194
- className: a.getAttribute("toc-class", "toc"),
1195
- children: [/* @__PURE__ */ r("div", {
1196
- id: "toctitle",
1197
- children: k(a.getAttribute("toc-title"))
1198
- }), /* @__PURE__ */ r(fe, {
1199
- node: a
1200
- })]
1201
- })]
1202
- })
1203
- });
1204
- }, qt = ({
1205
- node: e
1206
- }) => {
1207
- const a = e.getAttribute("attribution"), n = e.getAttribute("citetitle"), c = U(e);
1208
- return /* @__PURE__ */ l("div", {
1209
- id: e.getId ? e.getId() : "",
1210
- className: w("quoteblock", C(e)),
1211
- ...T(e),
1212
- children: [/* @__PURE__ */ r(x, {
1213
- node: e
1214
- }), /* @__PURE__ */ r("blockquote", {
1215
- dangerouslySetInnerHTML: {
1216
- __html: c
1217
- }
1218
- }), a && /* @__PURE__ */ l("div", {
1219
- className: "attribution",
1220
- children: ["\u2014 ", a, n && /* @__PURE__ */ r("cite", {
1221
- children: n
1222
- })]
1223
- })]
1224
- });
1225
- }, Vt = ({
1226
- node: e
1227
- }) => {
1228
- const a = e.getDocument().getAttributes(), n = e.getLevel();
1229
- let c = "", g = e.getSectionNumeral();
1230
- g = g === "." ? "" : g;
1231
- const o = a.sectnumlevels ? parseInt(a.sectnumlevels) : 3;
1232
- if (e.getCaption())
1233
- c = e.getCaptionedTitle();
1234
- else if (e.isNumbered() && n <= o)
1235
- if (n < 2 && e.getDocument().getDoctype() == "book") {
1236
- const f = e.getSectionName();
1237
- f === "chapter" ? c = `${a["chapter-signifier"] || ""} ${g} ${e.getTitle()}` : f === "part" ? c = `${a["part-signifier"] || ""} ${g} ${e.getTitle()}` : c = `${g} ${e.getTitle()}`;
1238
- } else
1239
- c = `${g} ${e.getTitle()}`;
1240
- else
1241
- c = e.getTitle() || "";
1242
- return a.sectlinks && (c = /* @__PURE__ */ l(L, {
1243
- children: [/* @__PURE__ */ r("a", {
1244
- className: "anchor",
1245
- id: e.getId() || "",
1246
- ...T(e)
1247
- }), /* @__PURE__ */ r("a", {
1248
- className: "link",
1249
- href: `#${e.getId()}`,
1250
- dangerouslySetInnerHTML: {
1251
- __html: c
1252
- }
1253
- })]
1254
- })), n === 0 ? /* @__PURE__ */ l(L, {
1255
- children: [/* @__PURE__ */ r("h1", {
1256
- className: w("sect0", C(e)),
1257
- "data-sectnum": g,
1258
- ...T(e),
1259
- children: c
1260
- }), /* @__PURE__ */ r(I, {
1261
- blocks: e.getBlocks()
1262
- })]
1263
- }) : /* @__PURE__ */ l("div", {
1264
- className: w(`sect${n}`, C(e)),
1265
- ...T(e),
1266
- children: [K(`h${n + 1}`, {
1267
- "data-sectnum": g
1268
- }, c), /* @__PURE__ */ r("div", {
1269
- className: "sectionbody",
1270
- children: /* @__PURE__ */ r(I, {
1271
- blocks: e.getBlocks()
1272
- })
1273
- })]
1274
- });
1275
- }, zt = ({
1276
- node: e
1277
- }) => /* @__PURE__ */ r("div", {
1278
- className: w("sidebarblock", C(e)),
1279
- ...T(e),
1280
- children: /* @__PURE__ */ l("div", {
1281
- className: "content",
1282
- children: [/* @__PURE__ */ r(x, {
1283
- node: e
1284
- }), /* @__PURE__ */ r(I, {
1285
- blocks: e.getBlocks()
1286
- })]
1287
- })
1288
- }), Jt = ({
1289
- node: e
1290
- }) => {
1291
- let a = ["frame-" + e.getAttribute("frame", "all", "table-frame"), "grid-" + e.getAttribute("grid", "all", "table-grid")], n = e.getAttribute("stripes", null, "table-stripes");
1292
- n && a.push("stripes-" + n);
1293
- let c = e.hasAutowidthOption(), g = e.getAttribute("tablepcwidth"), o = null;
1294
- c && !e.hasAttribute("width") ? a.push("fit-content") : g == 100 ? a.push("stretch") : o = `${g}%`, e.hasAttribute("float") && a.push(e.getAttribute("float")), e.getRole() && a.push(e.getRole() || "");
1295
- const f = e.getRowCount(), b = e.getColumns(), h = e.getHeadRows(), y = e.getBodyRows(), m = e.getFootRows(), O = (P) => w(
1296
- "tableblock",
1297
- `halign-${P.getAttribute("halign")}`,
1298
- `valign-${P.getAttribute("valign")}`
1299
- ), R = e.getTitle(), F = e.getId(), Y = F || Kt(R || "");
1300
- return /* @__PURE__ */ l("table", {
1301
- className: w("tableblock", ...a),
1302
- style: {
1303
- width: o || void 0
1304
- },
1305
- ...T(e),
1306
- children: [e.hasTitle() && /* @__PURE__ */ l("caption", {
1307
- className: "title",
1308
- children: [!F && /* @__PURE__ */ r("a", {
1309
- className: "anchor",
1310
- id: Y
1311
- }), /* @__PURE__ */ r("a", {
1312
- href: `#${Y}`,
1313
- children: e.getCaptionedTitle()
1314
- })]
1315
- }), f > 0 && /* @__PURE__ */ r("colgroup", {
1316
- children: b.map((P, M) => {
1317
- const E = P.getAttribute("colpcwidth");
1318
- return /* @__PURE__ */ r("col", {
1319
- style: {
1320
- width: `${E}%`
1321
- }
1322
- }, M);
1323
- })
1324
- }), h.map((P, M) => /* @__PURE__ */ r("thead", {
1325
- children: /* @__PURE__ */ r("tr", {
1326
- children: P.map((E, N) => /* @__PURE__ */ r("th", {
1327
- className: O(E),
1328
- dangerouslySetInnerHTML: {
1329
- __html: j(E)
1330
- }
1331
- }, N))
1332
- })
1333
- }, M)), /* @__PURE__ */ r("tbody", {
1334
- children: y.map((P, M) => /* @__PURE__ */ r("tr", {
1335
- children: P.map((E, N) => {
1336
- const he = E.getColumnSpan(), ge = E.getRowSpan(), q = U(E), V = {
1337
- colSpan: he,
1338
- rowSpan: ge,
1339
- className: O(E)
1340
- }, X = E.getStyle();
1341
- if (X === "asciidoc")
1342
- return /* @__PURE__ */ K("td", {
1343
- ...V,
1344
- key: N
1345
- }, /* @__PURE__ */ r("div", {
1346
- className: "content",
1347
- dangerouslySetInnerHTML: {
1348
- __html: q
1349
- }
1350
- }));
1351
- if (X === "literal")
1352
- return /* @__PURE__ */ K("td", {
1353
- ...V,
1354
- key: N
1355
- }, /* @__PURE__ */ r("div", {
1356
- className: "literal",
1357
- children: /* @__PURE__ */ r("pre", {
1358
- dangerouslySetInnerHTML: {
1359
- __html: q
1360
- }
1361
- })
1362
- }));
1363
- if (X === "header")
1364
- return /* @__PURE__ */ K("th", {
1365
- ...V,
1366
- key: N
1367
- }, /* @__PURE__ */ r("p", {
1368
- className: "tableblock",
1369
- dangerouslySetInnerHTML: {
1370
- __html: q
1371
- }
1372
- }));
1373
- {
1374
- let ae = q;
1375
- return /* @__PURE__ */ K("td", {
1376
- ...V,
1377
- key: N
1378
- }, ae.length === 0 ? "" : k(`<p class="tableblock">${ae.join(`</p>
1379
- <p class="tableblock">`)}</p>`));
1380
- }
1381
- })
1382
- }, M))
1383
- }), m.map((P, M) => /* @__PURE__ */ r("tfoot", {
1384
- children: /* @__PURE__ */ r("tr", {
1385
- children: P.map((E, N) => /* @__PURE__ */ r("td", {
1386
- className: O(E),
1387
- children: /* @__PURE__ */ r("p", {
1388
- className: "tableblock",
1389
- dangerouslySetInnerHTML: {
1390
- __html: j(E)
1391
- }
1392
- })
1393
- }, N))
1394
- })
1395
- }, M))]
1396
- });
1397
- }, Kt = (e) => e.toString().normalize("NFKD").replace(/[\u0300-\u036f]/g, "").toLowerCase().trim().replace(/\s+/g, "_").replace(/[^\w-]+/g, "").replace(/--+/g, "-").replace(/-$/g, ""), Gt = ({
1398
- node: e
1399
- }) => {
1400
- let a = e.getId() || "toc";
1401
- const n = e.getDocument(), c = e.hasTitle() ? e.getTitle() : n.getAttribute("toc-title"), g = re(() => n.getAttribute("toc-placement"), [e]), o = re(() => n.hasAttribute("toc"), [e]), f = e.hasAttribute("levels") ? parseInt(e.getAttribute("levels")) : void 0;
1402
- return g === "macro" && n.hasSections() && o ? /* @__PURE__ */ l("div", {
1403
- id: a,
1404
- className: w("toc", C(e)),
1405
- children: [/* @__PURE__ */ r("div", {
1406
- id: `${a}title`,
1407
- className: "title",
1408
- children: k(c || "")
1409
- }), /* @__PURE__ */ r(fe, {
1410
- node: e.getDocument(),
1411
- opts: {
1412
- tocLevels: f
1413
- }
1414
- })]
1415
- }) : null;
1416
- }, Xt = () => /* @__PURE__ */ r("hr", {}), Qt = ({
1417
- node: e
1418
- }) => {
1419
- const a = e.isOption("checklist");
1420
- return /* @__PURE__ */ l("div", {
1421
- id: e.getId ? e.getId() : "",
1422
- className: w("ulist", e.getStyle(), C(e), a && "checklist"),
1423
- ...T(e),
1424
- children: [/* @__PURE__ */ r(x, {
1425
- node: e
1426
- }), /* @__PURE__ */ r("ul", {
1427
- className: a ? "checklist" : "",
1428
- children: e.getItems().map((n, c) => a ? /* @__PURE__ */ r("li", {
1429
- id: n.getId(),
1430
- className: C(e),
1431
- children: /* @__PURE__ */ l("p", {
1432
- children: [a && n.hasAttribute("checkbox") && /* @__PURE__ */ r("i", {
1433
- className: w("fa", n.hasAttribute("checked") ? "fa-check-square-o" : "fa-square-o")
1434
- }), " ", k(j(n))]
1435
- })
1436
- }, c) : /* @__PURE__ */ l("li", {
1437
- id: n.getId(),
1438
- className: C(e),
1439
- children: [/* @__PURE__ */ r("p", {
1440
- dangerouslySetInnerHTML: {
1441
- __html: j(n)
1442
- }
1443
- }), /* @__PURE__ */ r(I, {
1444
- blocks: n.getBlocks()
1445
- })]
1446
- }, c))
1447
- })]
1448
- });
1449
- }, Zt = ({
1450
- node: e
1451
- }) => {
1452
- const a = e.getAttribute("attribution"), n = e.getAttribute("citetitle"), c = U(e);
1453
- return /* @__PURE__ */ l("div", {
1454
- id: e.getId ? e.getId() : "",
1455
- className: w("verseblock", C(e)),
1456
- ...T(e),
1457
- children: [/* @__PURE__ */ r(x, {
1458
- node: e
1459
- }), /* @__PURE__ */ r("pre", {
1460
- className: "content",
1461
- dangerouslySetInnerHTML: {
1462
- __html: c
1463
- }
1464
- }), a && /* @__PURE__ */ l("div", {
1465
- className: "attribution",
1466
- children: ["\u2014 ", a, n && /* @__PURE__ */ r("cite", {
1467
- children: n
1468
- })]
1469
- })]
1470
- });
1471
- }, Xe = Rt({}), ar = ({
1472
- content: e,
1473
- options: a
1474
- }) => {
1475
- const n = a && a.customDocument;
1476
- return /* @__PURE__ */ r(Xe.Provider, {
1477
- value: a || {},
1478
- children: n ? /* @__PURE__ */ r(n, {
1479
- document: e
1480
- }) : /* @__PURE__ */ r(xt, {
1481
- document: e
1482
- })
1483
- });
1484
- }, I = ({
1485
- blocks: e
1486
- }) => /* @__PURE__ */ r(L, {
1487
- children: e.map((a, n) => /* @__PURE__ */ r(er, {
1488
- node: a
1489
- }, `${n}-${a.getNodeName()}`))
1490
- }), er = ({
1491
- node: e
1492
- }) => {
1493
- const a = Et(Xe), n = e.getNodeName(), c = e.getDocument(), g = e.getAttributes();
1494
- c.playbackAttributes(g);
1495
- const o = a && a.overrides && a.overrides[n];
1496
- if (o)
1497
- return /* @__PURE__ */ r(o, {
1498
- node: e
1499
- });
1500
- switch (n) {
1501
- case "audio":
1502
- return /* @__PURE__ */ r(Ot, {
1503
- node: e
1504
- });
1505
- case "preamble":
1506
- return /* @__PURE__ */ r(Ut, {
1507
- node: e
1508
- });
1509
- case "section":
1510
- return /* @__PURE__ */ r(Vt, {
1511
- node: e
1512
- });
1513
- case "paragraph":
1514
- return /* @__PURE__ */ r(Yt, {
1515
- node: e
1516
- });
1517
- case "dlist":
1518
- return /* @__PURE__ */ r(It, {
1519
- node: e
1520
- });
1521
- case "ulist":
1522
- return /* @__PURE__ */ r(Qt, {
1523
- node: e
1524
- });
1525
- case "floating_title":
1526
- return /* @__PURE__ */ r(Dt, {
1527
- node: e
1528
- });
1529
- case "admonition":
1530
- return /* @__PURE__ */ r(Ct, {
1531
- node: e
1532
- });
1533
- case "listing":
1534
- return /* @__PURE__ */ r(Lt, {
1535
- node: e
1536
- });
1537
- case "literal":
1538
- return /* @__PURE__ */ r(Ft, {
1539
- node: e
1540
- });
1541
- case "image":
1542
- return /* @__PURE__ */ r(jt, {
1543
- node: e
1544
- });
1545
- case "colist":
1546
- return /* @__PURE__ */ r($t, {
1547
- node: e
1548
- });
1549
- case "olist":
1550
- return /* @__PURE__ */ r(Mt, {
1551
- node: e
1552
- });
1553
- case "table":
1554
- return /* @__PURE__ */ r(Jt, {
1555
- node: e
1556
- });
1557
- case "thematic_break":
1558
- return /* @__PURE__ */ r(Xt, {});
1559
- case "open":
1560
- return /* @__PURE__ */ r(Bt, {
1561
- node: e
1562
- });
1563
- case "pass":
1564
- return /* @__PURE__ */ r(Ht, {
1565
- node: e
1566
- });
1567
- case "page_break":
1568
- return /* @__PURE__ */ r(Wt, {});
1569
- case "example":
1570
- return /* @__PURE__ */ r(Pt, {
1571
- node: e
1572
- });
1573
- case "sidebar":
1574
- return /* @__PURE__ */ r(zt, {
1575
- node: e
1576
- });
1577
- case "quote":
1578
- return /* @__PURE__ */ r(qt, {
1579
- node: e
1580
- });
1581
- case "verse":
1582
- return /* @__PURE__ */ r(Zt, {
1583
- node: e
1584
- });
1585
- case "toc":
1586
- return /* @__PURE__ */ r(Gt, {
1587
- node: e
1588
- });
1589
- default:
1590
- return /* @__PURE__ */ r(L, {
1591
- children: k(e.convert())
1592
- });
1593
- }
1594
- };
1595
- export {
1596
- Ct as Admonition,
1597
- Ot as Audio,
1598
- oe as CaptionedTitle,
1599
- $t as CoList,
1600
- I as Content,
1601
- It as DList,
1602
- xt as Document,
1603
- Pt as Example,
1604
- Dt as FloatingTitle,
1605
- jt as Image,
1606
- Lt as Listing,
1607
- Ft as Literal,
1608
- Mt as OList,
1609
- Bt as Open,
1610
- fe as Outline,
1611
- Wt as PageBreak,
1612
- Yt as Paragraph,
1613
- Ht as Pass,
1614
- Ut as Preamble,
1615
- qt as Quote,
1616
- Vt as Section,
1617
- zt as Sidebar,
1618
- Jt as Table,
1619
- Gt as TableOfContents,
1620
- Xt as ThematicBreak,
1621
- x as Title,
1622
- Qt as UList,
1623
- Zt as Verse,
1624
- sr as asciidoctor,
1625
- ar as default,
1626
- U as getContent,
1627
- T as getLineNumber,
1628
- C as getRole,
1629
- j as getText,
1630
- cr as parse
1631
- };