@oxide/react-asciidoc 0.1.2-alpha.1 → 0.1.2-alpha.2

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.
@@ -1,11 +1,11 @@
1
1
  import { default as nr } from "@asciidoctor/core";
2
2
  import w from "html-react-parser";
3
- import Ue, { useState as qe, useEffect as kt, Fragment as pe, useMemo as G, createElement as V, createContext as Rt, useContext as Et } from "react";
4
- const Y = (e) => {
5
- const [a, n] = qe("");
6
- return kt(() => {
7
- n(e.getContent() || "");
8
- }, []), a;
3
+ import Ue, { useRef as Rt, useState as qe, useMemo as Y, Fragment as pe, createElement as G, createContext as kt, useContext as Et } from "react";
4
+ const H = (e) => {
5
+ const a = Rt(!1), [n, c] = qe("");
6
+ return Y(() => {
7
+ a.current || (a.current = !0, c(e.getContent() || ""));
8
+ }, [e]), n;
9
9
  };
10
10
  var se = { exports: {} }, X = {};
11
11
  /**
@@ -22,12 +22,12 @@ function St() {
22
22
  if (Ye)
23
23
  return X;
24
24
  Ye = 1;
25
- var e = Ue, a = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, f = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
25
+ var e = Ue, a = Symbol.for("react.element"), n = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, f = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
26
26
  function b(d, g, m) {
27
27
  var v, S = {}, _ = null, $ = null;
28
28
  m !== void 0 && (_ = "" + m), g.key !== void 0 && (_ = "" + g.key), g.ref !== void 0 && ($ = g.ref);
29
29
  for (v in g)
30
- o.call(g, v) && !l.hasOwnProperty(v) && (S[v] = g[v]);
30
+ c.call(g, v) && !l.hasOwnProperty(v) && (S[v] = g[v]);
31
31
  if (d && d.defaultProps)
32
32
  for (v in g = d.defaultProps, g)
33
33
  S[v] === void 0 && (S[v] = g[v]);
@@ -48,7 +48,7 @@ var Q = {};
48
48
  var He;
49
49
  function wt() {
50
50
  return He || (He = 1, process.env.NODE_ENV !== "production" && function() {
51
- var e = Ue, a = Symbol.for("react.element"), n = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), b = Symbol.for("react.provider"), d = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), S = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), $ = Symbol.for("react.offscreen"), O = Symbol.iterator, L = "@@iterator";
51
+ var e = Ue, a = Symbol.for("react.element"), n = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), b = Symbol.for("react.provider"), d = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), S = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), $ = Symbol.for("react.offscreen"), O = Symbol.iterator, L = "@@iterator";
52
52
  function ce(t) {
53
53
  if (t === null || typeof t != "object")
54
54
  return null;
@@ -56,14 +56,14 @@ function wt() {
56
56
  return typeof i == "function" ? i : null;
57
57
  }
58
58
  var B = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
59
- function k(t) {
59
+ function R(t) {
60
60
  {
61
61
  for (var i = arguments.length, s = new Array(i > 1 ? i - 1 : 0), u = 1; u < i; u++)
62
62
  s[u - 1] = arguments[u];
63
- H("error", t, s);
63
+ U("error", t, s);
64
64
  }
65
65
  }
66
- function H(t, i, s) {
66
+ function U(t, i, s) {
67
67
  {
68
68
  var u = B.ReactDebugCurrentFrame, y = u.getStackAddendum();
69
69
  y !== "" && (i += "%s", s = s.concat([y]));
@@ -76,7 +76,7 @@ function wt() {
76
76
  var J = !1, Z = !1, Je = !1, ze = !1, Ke = !1, be;
77
77
  be = Symbol.for("react.module.reference");
78
78
  function Xe(t) {
79
- return !!(typeof t == "string" || typeof t == "function" || t === o || t === l || Ke || t === f || t === m || t === v || ze || t === $ || J || Z || Je || typeof t == "object" && t !== null && (t.$$typeof === _ || t.$$typeof === S || t.$$typeof === b || t.$$typeof === d || t.$$typeof === g || t.$$typeof === be || t.getModuleId !== void 0));
79
+ return !!(typeof t == "string" || typeof t == "function" || t === c || t === l || Ke || t === f || t === m || t === v || ze || t === $ || J || Z || Je || typeof t == "object" && t !== null && (t.$$typeof === _ || t.$$typeof === S || t.$$typeof === b || t.$$typeof === d || t.$$typeof === g || t.$$typeof === be || t.getModuleId !== void 0));
80
80
  }
81
81
  function Qe(t, i, s) {
82
82
  var u = t.displayName;
@@ -91,12 +91,12 @@ function wt() {
91
91
  function F(t) {
92
92
  if (t == null)
93
93
  return null;
94
- if (typeof t.tag == "number" && k("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
94
+ if (typeof t.tag == "number" && R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
95
95
  return t.displayName || t.name || null;
96
96
  if (typeof t == "string")
97
97
  return t;
98
98
  switch (t) {
99
- case o:
99
+ case c:
100
100
  return "Fragment";
101
101
  case n:
102
102
  return "Portal";
@@ -133,14 +133,14 @@ function wt() {
133
133
  }
134
134
  return null;
135
135
  }
136
- var W = Object.assign, z = 0, _e, Te, Ae, Ne, ke, Re, Ee;
136
+ var W = Object.assign, z = 0, _e, Te, Ae, Ne, Re, ke, Ee;
137
137
  function Se() {
138
138
  }
139
139
  Se.__reactDisabledLog = !0;
140
140
  function Ze() {
141
141
  {
142
142
  if (z === 0) {
143
- _e = console.log, Te = console.info, Ae = console.warn, Ne = console.error, ke = console.group, Re = console.groupCollapsed, Ee = console.groupEnd;
143
+ _e = console.log, Te = console.info, Ae = console.warn, Ne = console.error, Re = console.group, ke = console.groupCollapsed, Ee = console.groupEnd;
144
144
  var t = {
145
145
  configurable: !0,
146
146
  enumerable: !0,
@@ -182,17 +182,17 @@ function wt() {
182
182
  value: Ne
183
183
  }),
184
184
  group: W({}, t, {
185
- value: ke
185
+ value: Re
186
186
  }),
187
187
  groupCollapsed: W({}, t, {
188
- value: Re
188
+ value: ke
189
189
  }),
190
190
  groupEnd: W({}, t, {
191
191
  value: Ee
192
192
  })
193
193
  });
194
194
  }
195
- z < 0 && k("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
195
+ z < 0 && R("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
196
196
  }
197
197
  }
198
198
  var oe = B.ReactCurrentDispatcher, ue;
@@ -264,25 +264,25 @@ function wt() {
264
264
  if (M && u && typeof M.stack == "string") {
265
265
  for (var h = M.stack.split(`
266
266
  `), x = u.stack.split(`
267
- `), N = h.length - 1, R = x.length - 1; N >= 1 && R >= 0 && h[N] !== x[R]; )
268
- R--;
269
- for (; N >= 1 && R >= 0; N--, R--)
270
- if (h[N] !== x[R]) {
271
- if (N !== 1 || R !== 1)
267
+ `), N = h.length - 1, k = x.length - 1; N >= 1 && k >= 0 && h[N] !== x[k]; )
268
+ k--;
269
+ for (; N >= 1 && k >= 0; N--, k--)
270
+ if (h[N] !== x[k]) {
271
+ if (N !== 1 || k !== 1)
272
272
  do
273
- if (N--, R--, R < 0 || h[N] !== x[R]) {
273
+ if (N--, k--, k < 0 || h[N] !== x[k]) {
274
274
  var j = `
275
275
  ` + h[N].replace(" at new ", " at ");
276
276
  return t.displayName && j.includes("<anonymous>") && (j = j.replace("<anonymous>", t.displayName)), typeof t == "function" && te.set(t, j), j;
277
277
  }
278
- while (N >= 1 && R >= 0);
278
+ while (N >= 1 && k >= 0);
279
279
  break;
280
280
  }
281
281
  }
282
282
  } finally {
283
283
  fe = !1, oe.current = T, et(), Error.prepareStackTrace = y;
284
284
  }
285
- var q = t ? t.displayName || t.name : "", We = q ? ee(q) : "";
285
+ var V = t ? t.displayName || t.name : "", We = V ? ee(V) : "";
286
286
  return typeof t == "function" && te.set(t, We), We;
287
287
  }
288
288
  function rt(t, i, s) {
@@ -344,7 +344,7 @@ function wt() {
344
344
  } catch (N) {
345
345
  h = N;
346
346
  }
347
- h && !(h instanceof Error) && (ie(y), k("%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, p, typeof h), ie(null)), h instanceof Error && !(h.message in Ce) && (Ce[h.message] = !0, ie(y), k("Failed %s type: %s", s, h.message), ie(null));
347
+ h && !(h instanceof Error) && (ie(y), R("%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, p, typeof h), ie(null)), h instanceof Error && !(h.message in Ce) && (Ce[h.message] = !0, ie(y), R("Failed %s type: %s", s, h.message), ie(null));
348
348
  }
349
349
  }
350
350
  }
@@ -370,7 +370,7 @@ function wt() {
370
370
  }
371
371
  function xe(t) {
372
372
  if (lt(t))
373
- return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", st(t)), $e(t);
373
+ return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", st(t)), $e(t);
374
374
  }
375
375
  var K = B.ReactCurrentOwner, ct = {
376
376
  key: !0,
@@ -398,13 +398,13 @@ function wt() {
398
398
  function ft(t, i) {
399
399
  if (typeof t.ref == "string" && K.current && i && K.current.stateNode !== i) {
400
400
  var s = F(K.current.type);
401
- he[s] || (k('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', F(K.current.type), t.ref), he[s] = !0);
401
+ he[s] || (R('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', F(K.current.type), t.ref), he[s] = !0);
402
402
  }
403
403
  }
404
404
  function gt(t, i) {
405
405
  {
406
406
  var s = function() {
407
- Ie || (Ie = !0, k("%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));
407
+ Ie || (Ie = !0, R("%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));
408
408
  };
409
409
  s.isReactWarning = !0, Object.defineProperty(t, "key", {
410
410
  get: s,
@@ -415,7 +415,7 @@ function wt() {
415
415
  function ht(t, i) {
416
416
  {
417
417
  var s = function() {
418
- Pe || (Pe = !0, k("%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));
418
+ Pe || (Pe = !0, R("%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));
419
419
  };
420
420
  s.isReactWarning = !0, Object.defineProperty(t, "ref", {
421
421
  get: s,
@@ -461,14 +461,14 @@ function wt() {
461
461
  p[T] === void 0 && (p[T] = N[T]);
462
462
  }
463
463
  if (h || x) {
464
- var R = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
465
- h && gt(p, R), x && ht(p, R);
464
+ var k = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
465
+ h && gt(p, k), x && ht(p, k);
466
466
  }
467
467
  return dt(t, h, x, y, u, K.current, p);
468
468
  }
469
469
  }
470
470
  var de = B.ReactCurrentOwner, je = B.ReactDebugCurrentFrame;
471
- function U(t) {
471
+ function q(t) {
472
472
  if (t) {
473
473
  var i = t._owner, s = re(t.type, t._source, i ? i.type : null);
474
474
  je.setExtraStackFrame(s);
@@ -526,7 +526,7 @@ Check the top-level render call using <` + s + ">.");
526
526
  return;
527
527
  Le[s] = !0;
528
528
  var u = "";
529
- t && t._owner && t._owner !== de.current && (u = " It was passed a child from " + F(t._owner.type) + "."), U(t), k('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), U(null);
529
+ t && t._owner && t._owner !== de.current && (u = " It was passed a child from " + F(t._owner.type) + "."), q(t), R('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), q(null);
530
530
  }
531
531
  }
532
532
  function Me(t, i) {
@@ -566,9 +566,9 @@ Check the top-level render call using <` + s + ">.");
566
566
  } else if (i.PropTypes !== void 0 && !me) {
567
567
  me = !0;
568
568
  var y = F(i);
569
- k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", y || "Unknown");
569
+ R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", y || "Unknown");
570
570
  }
571
- typeof i.getDefaultProps == "function" && !i.getDefaultProps.isReactClassApproved && k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
571
+ typeof i.getDefaultProps == "function" && !i.getDefaultProps.isReactClassApproved && R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
572
572
  }
573
573
  }
574
574
  function yt(t) {
@@ -576,11 +576,11 @@ Check the top-level render call using <` + s + ">.");
576
576
  for (var i = Object.keys(t.props), s = 0; s < i.length; s++) {
577
577
  var u = i[s];
578
578
  if (u !== "children" && u !== "key") {
579
- U(t), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", u), U(null);
579
+ q(t), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", u), q(null);
580
580
  break;
581
581
  }
582
582
  }
583
- t.ref !== null && (U(t), k("Invalid attribute `ref` supplied to `React.Fragment`."), U(null));
583
+ t.ref !== null && (q(t), R("Invalid attribute `ref` supplied to `React.Fragment`."), q(null));
584
584
  }
585
585
  }
586
586
  function Be(t, i, s, u, y, T) {
@@ -592,25 +592,25 @@ Check the top-level render call using <` + s + ">.");
592
592
  var x = vt(y);
593
593
  x ? h += x : h += De();
594
594
  var N;
595
- t === null ? N = "null" : ge(t) ? N = "array" : t !== void 0 && t.$$typeof === a ? (N = "<" + (F(t.type) || "Unknown") + " />", h = " Did you accidentally export a JSX literal instead of a component?") : N = typeof t, k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", N, h);
595
+ t === null ? N = "null" : ge(t) ? N = "array" : t !== void 0 && t.$$typeof === a ? (N = "<" + (F(t.type) || "Unknown") + " />", h = " Did you accidentally export a JSX literal instead of a component?") : N = typeof t, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", N, h);
596
596
  }
597
- var R = mt(t, i, s, y, T);
598
- if (R == null)
599
- return R;
597
+ var k = mt(t, i, s, y, T);
598
+ if (k == null)
599
+ return k;
600
600
  if (p) {
601
601
  var j = i.children;
602
602
  if (j !== void 0)
603
603
  if (u)
604
604
  if (ge(j)) {
605
- for (var q = 0; q < j.length; q++)
606
- Me(j[q], t);
605
+ for (var V = 0; V < j.length; V++)
606
+ Me(j[V], t);
607
607
  Object.freeze && Object.freeze(j);
608
608
  } else
609
- k("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
609
+ R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
610
610
  else
611
611
  Me(j, t);
612
612
  }
613
- return t === o ? yt(R) : bt(R), R;
613
+ return t === c ? yt(k) : bt(k), k;
614
614
  }
615
615
  }
616
616
  function _t(t, i, s) {
@@ -620,13 +620,13 @@ Check the top-level render call using <` + s + ">.");
620
620
  return Be(t, i, s, !1);
621
621
  }
622
622
  var At = Tt, Nt = _t;
623
- Q.Fragment = o, Q.jsx = At, Q.jsxs = Nt;
623
+ Q.Fragment = c, Q.jsx = At, Q.jsxs = Nt;
624
624
  }()), Q;
625
625
  }
626
626
  (function(e) {
627
627
  process.env.NODE_ENV === "production" ? e.exports = St() : e.exports = wt();
628
628
  })(se);
629
- const D = se.exports.Fragment, r = se.exports.jsx, c = se.exports.jsxs, P = ({
629
+ const D = se.exports.Fragment, r = se.exports.jsx, o = se.exports.jsxs, P = ({
630
630
  node: e
631
631
  }) => e.hasTitle() ? /* @__PURE__ */ r("div", {
632
632
  className: "title",
@@ -641,7 +641,7 @@ const D = se.exports.Fragment, r = se.exports.jsx, c = se.exports.jsxs, P = ({
641
641
  } : {}, Ct = ({
642
642
  node: e
643
643
  }) => {
644
- const a = e.getAttributes(), n = e.getDocument(), o = Y(e), f = () => n.getAttribute("icons") === "font" && !a.icon ? /* @__PURE__ */ r("i", {
644
+ const a = e.getAttributes(), n = e.getDocument(), c = H(e), f = () => n.getAttribute("icons") === "font" && !a.icon ? /* @__PURE__ */ r("i", {
645
645
  className: `fa icon-${a.name}`,
646
646
  title: a.textlabel
647
647
  }) : /* @__PURE__ */ r("img", {
@@ -653,18 +653,18 @@ const D = se.exports.Fragment, r = se.exports.jsx, c = se.exports.jsxs, P = ({
653
653
  ...A(e),
654
654
  children: /* @__PURE__ */ r("table", {
655
655
  children: /* @__PURE__ */ r("tbody", {
656
- children: /* @__PURE__ */ c("tr", {
656
+ children: /* @__PURE__ */ o("tr", {
657
657
  children: [/* @__PURE__ */ r("td", {
658
658
  className: "icon",
659
659
  children: n.hasAttribute("icons") ? f() : /* @__PURE__ */ r("div", {
660
660
  className: "title",
661
661
  children: e.getAttribute("textlabel")
662
662
  })
663
- }), /* @__PURE__ */ c("td", {
663
+ }), /* @__PURE__ */ o("td", {
664
664
  className: "content",
665
665
  children: [/* @__PURE__ */ r(P, {
666
666
  node: e
667
- }), l === "simple" ? w(o) : /* @__PURE__ */ r(I, {
667
+ }), l === "simple" ? w(c) : /* @__PURE__ */ r(I, {
668
668
  blocks: e.getBlocks()
669
669
  })]
670
670
  })]
@@ -675,8 +675,8 @@ const D = se.exports.Fragment, r = se.exports.jsx, c = se.exports.jsxs, P = ({
675
675
  }, Ot = ({
676
676
  node: e
677
677
  }) => {
678
- const a = e.getAttribute("start"), n = e.getAttribute("start"), o = (a || n) && `#t=${a || ""}` + n ? `,${n}` : "";
679
- return /* @__PURE__ */ c("div", {
678
+ const a = e.getAttribute("start"), n = e.getAttribute("start"), c = (a || n) && `#t=${a || ""}` + n ? `,${n}` : "";
679
+ return /* @__PURE__ */ o("div", {
680
680
  className: "audioblock",
681
681
  ...A(e),
682
682
  children: [/* @__PURE__ */ r(P, {
@@ -684,7 +684,7 @@ const D = se.exports.Fragment, r = se.exports.jsx, c = se.exports.jsxs, P = ({
684
684
  }), /* @__PURE__ */ r("div", {
685
685
  className: "content",
686
686
  children: /* @__PURE__ */ r("audio", {
687
- src: `${e.getMediaUri(e.getAttribute("target"))}${o}`,
687
+ src: `${e.getMediaUri(e.getAttribute("target"))}${c}`,
688
688
  autoPlay: e.isOption("autoplay"),
689
689
  controls: !e.isOption("nocontrols"),
690
690
  loop: e.isOption("loop"),
@@ -694,22 +694,22 @@ const D = se.exports.Fragment, r = se.exports.jsx, c = se.exports.jsxs, P = ({
694
694
  });
695
695
  }, $t = ({
696
696
  node: e
697
- }) => /* @__PURE__ */ c("div", {
697
+ }) => /* @__PURE__ */ o("div", {
698
698
  className: "colist",
699
699
  ...A(e),
700
700
  children: [/* @__PURE__ */ r(P, {
701
701
  node: e
702
702
  }), /* @__PURE__ */ r("table", {
703
703
  children: /* @__PURE__ */ r("tbody", {
704
- children: e.getItems().map((a, n) => /* @__PURE__ */ c("tr", {
705
- children: [/* @__PURE__ */ c("td", {
704
+ children: e.getItems().map((a, n) => /* @__PURE__ */ o("tr", {
705
+ children: [/* @__PURE__ */ o("td", {
706
706
  children: [/* @__PURE__ */ r("i", {
707
707
  className: "conum",
708
708
  "data-value": n + 1
709
709
  }), /* @__PURE__ */ r("b", {
710
710
  children: n + 1
711
711
  })]
712
- }), /* @__PURE__ */ c("td", {
712
+ }), /* @__PURE__ */ o("td", {
713
713
  children: [w(a.getText()), /* @__PURE__ */ r(I, {
714
714
  blocks: a.getBlocks()
715
715
  })]
@@ -728,28 +728,28 @@ var Ve = { exports: {} };
728
728
  (function() {
729
729
  var a = {}.hasOwnProperty;
730
730
  function n() {
731
- for (var o = [], f = 0; f < arguments.length; f++) {
731
+ for (var c = [], f = 0; f < arguments.length; f++) {
732
732
  var l = arguments[f];
733
733
  if (!!l) {
734
734
  var b = typeof l;
735
735
  if (b === "string" || b === "number")
736
- o.push(l);
736
+ c.push(l);
737
737
  else if (Array.isArray(l)) {
738
738
  if (l.length) {
739
739
  var d = n.apply(null, l);
740
- d && o.push(d);
740
+ d && c.push(d);
741
741
  }
742
742
  } else if (b === "object") {
743
743
  if (l.toString !== Object.prototype.toString && !l.toString.toString().includes("[native code]")) {
744
- o.push(l.toString());
744
+ c.push(l.toString());
745
745
  continue;
746
746
  }
747
747
  for (var g in l)
748
- a.call(l, g) && l[g] && o.push(g);
748
+ a.call(l, g) && l[g] && c.push(g);
749
749
  }
750
750
  }
751
751
  }
752
- return o.join(" ");
752
+ return c.join(" ");
753
753
  }
754
754
  e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
755
755
  })();
@@ -764,9 +764,9 @@ const E = Ve.exports, xt = ({
764
764
  terms: d,
765
765
  dd: g
766
766
  };
767
- }, o = (l) => {
767
+ }, c = (l) => {
768
768
  if (l)
769
- return /* @__PURE__ */ c("dd", {
769
+ return /* @__PURE__ */ o("dd", {
770
770
  children: [l.hasText() && /* @__PURE__ */ r("p", {
771
771
  children: w(l.getText())
772
772
  }), l.hasBlocks() && /* @__PURE__ */ r(I, {
@@ -778,7 +778,7 @@ const E = Ve.exports, xt = ({
778
778
  children: e.getCaptionedTitle()
779
779
  });
780
780
  if (a === "qanda")
781
- return /* @__PURE__ */ c("div", {
781
+ return /* @__PURE__ */ o("div", {
782
782
  className: E("qlist qanda", C(e)),
783
783
  ...A(e),
784
784
  children: [f, /* @__PURE__ */ r("ol", {
@@ -787,22 +787,22 @@ const E = Ve.exports, xt = ({
787
787
  terms: d,
788
788
  dd: g
789
789
  } = n(l);
790
- return /* @__PURE__ */ c("li", {
790
+ return /* @__PURE__ */ o("li", {
791
791
  children: [d.map((m, v) => /* @__PURE__ */ r("p", {
792
792
  children: /* @__PURE__ */ r("em", {
793
793
  children: m.getText()
794
794
  })
795
- }, v)), o(g)]
795
+ }, v)), c(g)]
796
796
  }, b);
797
797
  })
798
798
  })]
799
799
  });
800
800
  if (a === "horizontal") {
801
801
  const l = e.getAttribute("labelwidth"), b = e.getAttribute("itemwidth");
802
- return /* @__PURE__ */ c("div", {
802
+ return /* @__PURE__ */ o("div", {
803
803
  className: E("hdlist", C(e)),
804
- children: [f, /* @__PURE__ */ c("table", {
805
- children: [(l || b) && /* @__PURE__ */ c("colgroup", {
804
+ children: [f, /* @__PURE__ */ o("table", {
805
+ children: [(l || b) && /* @__PURE__ */ o("colgroup", {
806
806
  children: [/* @__PURE__ */ r("col", {
807
807
  style: {
808
808
  width: l ? `${l.replace("%", "")}%` : ""
@@ -818,13 +818,13 @@ const E = Ve.exports, xt = ({
818
818
  terms: m,
819
819
  dd: v
820
820
  } = n(d);
821
- return /* @__PURE__ */ c("tr", {
821
+ return /* @__PURE__ */ o("tr", {
822
822
  children: [/* @__PURE__ */ r("td", {
823
823
  className: E("hdlist1", e.isOption("strong") ? "strong" : ""),
824
- children: m.map((S, _) => /* @__PURE__ */ c(pe, {
824
+ children: m.map((S, _) => /* @__PURE__ */ o(pe, {
825
825
  children: [_ !== 0 && /* @__PURE__ */ r("br", {}), w(S.getText())]
826
826
  }, _))
827
- }), v && /* @__PURE__ */ c("td", {
827
+ }), v && /* @__PURE__ */ o("td", {
828
828
  className: "hdlist2",
829
829
  children: [v.hasText() && /* @__PURE__ */ r("p", {
830
830
  children: w(v.getText())
@@ -838,7 +838,7 @@ const E = Ve.exports, xt = ({
838
838
  })]
839
839
  });
840
840
  } else
841
- return /* @__PURE__ */ c("div", {
841
+ return /* @__PURE__ */ o("div", {
842
842
  className: E("dlist", e.getStyle(), C(e)),
843
843
  children: [f, /* @__PURE__ */ r("dl", {
844
844
  children: e.getItems().map((l, b) => {
@@ -846,11 +846,11 @@ const E = Ve.exports, xt = ({
846
846
  terms: d,
847
847
  dd: g
848
848
  } = n(l);
849
- return /* @__PURE__ */ c(pe, {
849
+ return /* @__PURE__ */ o(pe, {
850
850
  children: [d.map((m, v) => /* @__PURE__ */ r("dt", {
851
851
  className: "hdlist1",
852
852
  children: w(m.getText())
853
- }, v)), o(g)]
853
+ }, v)), c(g)]
854
854
  }, b);
855
855
  })
856
856
  })]
@@ -861,7 +861,7 @@ const E = Ve.exports, xt = ({
861
861
  }) => {
862
862
  if (!e.hasSections())
863
863
  return null;
864
- const n = e.getSections(), o = e.getDocument(), f = G(() => o.getAttributes(), [e]), l = G(() => o.getAttribute("sectnumlevels"), [e]), b = G(() => o.getAttribute("toclevels"), [e]), d = (a == null ? void 0 : a.sectNumLevels) || (l ? parseInt(l) : 3), g = (a == null ? void 0 : a.tocLevels) || (b ? parseInt(b) : 2);
864
+ const n = e.getSections(), c = e.getDocument(), f = Y(() => c.getAttributes(), [e]), l = Y(() => c.getAttribute("sectnumlevels"), [e]), b = Y(() => c.getAttribute("toclevels"), [e]), d = (a == null ? void 0 : a.sectNumLevels) || (l ? parseInt(l) : 3), g = (a == null ? void 0 : a.tocLevels) || (b ? parseInt(b) : 2);
865
865
  return /* @__PURE__ */ r("ul", {
866
866
  className: `sectlevel${n[0].getLevel()}`,
867
867
  children: n.map((m) => {
@@ -872,14 +872,14 @@ const E = Ve.exports, xt = ({
872
872
  if (m.getCaption())
873
873
  _ = m.getCaptionedTitle();
874
874
  else if (S <= d)
875
- if (S < 2 && o.getDoctype() == "book") {
875
+ if (S < 2 && c.getDoctype() == "book") {
876
876
  const $ = m.getSectionName();
877
877
  $ === "chapter" ? _ = `${f["chapter-signifier"] || ""} ${v} ${m.getTitle()}` : $ === "part" ? _ = `${f["part-signifier"] || ""} ${v} ${m.getTitle()}` : _ = `${v} ${m.getTitle()}`;
878
878
  } else
879
879
  _ = `${v} ${m.getTitle()}`;
880
880
  else
881
881
  _ = m.getTitle() || "";
882
- return /* @__PURE__ */ c("li", {
882
+ return /* @__PURE__ */ o("li", {
883
883
  children: [/* @__PURE__ */ r("a", {
884
884
  href: `#${m.getId()}`,
885
885
  children: w(_)
@@ -896,20 +896,20 @@ const E = Ve.exports, xt = ({
896
896
  }, It = ({
897
897
  document: e
898
898
  }) => {
899
- const a = e.getBlocks(), [n, o] = qe();
900
- G(() => {
901
- (a || a[0]) && o(e.getFootnotes());
899
+ const a = e.getBlocks(), [n, c] = qe();
900
+ Y(() => {
901
+ (a || a[0]) && c(e.getFootnotes());
902
902
  }, [a]);
903
903
  const f = () => {
904
904
  var d;
905
905
  return e.getNoheader() ? null : /* @__PURE__ */ r("div", {
906
906
  id: "header",
907
- children: e.hasHeader() && /* @__PURE__ */ c(D, {
907
+ children: e.hasHeader() && /* @__PURE__ */ o(D, {
908
908
  children: [/* @__PURE__ */ r("h1", {
909
909
  dangerouslySetInnerHTML: {
910
910
  __html: ((d = e.getDocumentTitle()) == null ? void 0 : d.toString()) || ""
911
911
  }
912
- }), /* @__PURE__ */ r(b, {}), e.hasSections() && e.hasAttribute("toc") && e.getAttribute("toc-placement") === "auto" && /* @__PURE__ */ c("div", {
912
+ }), /* @__PURE__ */ r(b, {}), e.hasSections() && e.hasAttribute("toc") && e.getAttribute("toc-placement") === "auto" && /* @__PURE__ */ o("div", {
913
913
  id: "toc",
914
914
  className: e.getAttribute("toc-class", "toc"),
915
915
  children: [/* @__PURE__ */ r("div", {
@@ -921,9 +921,9 @@ const E = Ve.exports, xt = ({
921
921
  })]
922
922
  })
923
923
  });
924
- }, l = () => n && n.length > 0 && a && !a[0].getDocument().hasAttribute("nofootnotes") ? /* @__PURE__ */ c("div", {
924
+ }, l = () => n && n.length > 0 && a && !a[0].getDocument().hasAttribute("nofootnotes") ? /* @__PURE__ */ o("div", {
925
925
  id: "footnotes",
926
- children: [/* @__PURE__ */ r("hr", {}), n.map((d) => /* @__PURE__ */ c("div", {
926
+ children: [/* @__PURE__ */ r("hr", {}), n.map((d) => /* @__PURE__ */ o("div", {
927
927
  className: "footnote",
928
928
  id: `_footnotedef_${d.getIndex()}`,
929
929
  children: [/* @__PURE__ */ r("a", {
@@ -931,16 +931,16 @@ const E = Ve.exports, xt = ({
931
931
  children: d.getIndex()
932
932
  }), ".", " ", w(d.getText() || "")]
933
933
  }, d.getIndex()))]
934
- }) : null, b = () => e.getAuthors().length > 0 || e.hasAttribute("revnumber") || e.hasAttribute("revdate") || e.hasAttribute("revremark") ? /* @__PURE__ */ c("div", {
934
+ }) : null, b = () => e.getAuthors().length > 0 || e.hasAttribute("revnumber") || e.hasAttribute("revdate") || e.hasAttribute("revremark") ? /* @__PURE__ */ o("div", {
935
935
  className: "details",
936
- children: [e.getAuthors().map((g, m) => /* @__PURE__ */ c(pe, {
937
- children: [g.getName() && /* @__PURE__ */ c(D, {
936
+ children: [e.getAuthors().map((g, m) => /* @__PURE__ */ o(pe, {
937
+ children: [g.getName() && /* @__PURE__ */ o(D, {
938
938
  children: [/* @__PURE__ */ r("span", {
939
939
  id: `author${m + 1 > 1 ? m + 1 : ""}`,
940
940
  className: "author",
941
941
  children: w(e.applySubstitutions(g.getName() || "").toString())
942
942
  }), /* @__PURE__ */ r("br", {})]
943
- }), g.getEmail() && /* @__PURE__ */ c(D, {
943
+ }), g.getEmail() && /* @__PURE__ */ o(D, {
944
944
  children: [/* @__PURE__ */ r("span", {
945
945
  id: `email${m + 1 > 1 ? m + 1 : ""}`,
946
946
  className: "email",
@@ -953,14 +953,14 @@ const E = Ve.exports, xt = ({
953
953
  }), e.hasAttribute("revdate") && /* @__PURE__ */ r("span", {
954
954
  id: "revdate",
955
955
  children: e.getAttribute("revdate")
956
- }), e.hasAttribute("revremark") && /* @__PURE__ */ c(D, {
956
+ }), e.hasAttribute("revremark") && /* @__PURE__ */ o(D, {
957
957
  children: [/* @__PURE__ */ r("br", {}), /* @__PURE__ */ r("span", {
958
958
  id: "revremark",
959
959
  children: e.getAttribute("revremark")
960
960
  })]
961
961
  })]
962
962
  }) : null;
963
- return /* @__PURE__ */ c(D, {
963
+ return /* @__PURE__ */ o(D, {
964
964
  children: [/* @__PURE__ */ r(f, {}), /* @__PURE__ */ r("div", {
965
965
  id: "content",
966
966
  children: /* @__PURE__ */ r(I, {
@@ -970,7 +970,7 @@ const E = Ve.exports, xt = ({
970
970
  });
971
971
  }, Pt = ({
972
972
  node: e
973
- }) => /* @__PURE__ */ c("div", {
973
+ }) => /* @__PURE__ */ o("div", {
974
974
  className: E("exampleblock", C(e)),
975
975
  ...A(e),
976
976
  children: [/* @__PURE__ */ r(ne, {
@@ -985,12 +985,12 @@ const E = Ve.exports, xt = ({
985
985
  node: e
986
986
  }) => {
987
987
  const a = e.getLevel();
988
- return /* @__PURE__ */ c(D, {
988
+ return /* @__PURE__ */ o(D, {
989
989
  children: [/* @__PURE__ */ r("a", {
990
990
  className: "sectionanchor",
991
991
  id: `${e.getId() || ""}`,
992
992
  ...A(e)
993
- }), V(`h${a + 1}`, null, /* @__PURE__ */ r(P, {
993
+ }), G(`h${a + 1}`, null, /* @__PURE__ */ r(P, {
994
994
  node: e
995
995
  }))]
996
996
  });
@@ -1008,7 +1008,7 @@ const E = Ve.exports, xt = ({
1008
1008
  className: "image",
1009
1009
  href: e.getAttribute("link"),
1010
1010
  children: n
1011
- })), /* @__PURE__ */ c("div", {
1011
+ })), /* @__PURE__ */ o("div", {
1012
1012
  className: `imageblock ${e.hasAttribute("align") ? "text-" + e.getAttribute("align") : ""} ${e.hasAttribute("float") ? e.getAttribute("float") : ""} ${e.getRole() ? e.getRole() : ""}`,
1013
1013
  ...A(e),
1014
1014
  children: [/* @__PURE__ */ r("div", {
@@ -1021,10 +1021,10 @@ const E = Ve.exports, xt = ({
1021
1021
  }, Lt = ({
1022
1022
  node: e
1023
1023
  }) => {
1024
- const a = e.getDocument(), n = e.getAttributes(), o = e.isOption("nowrap") || !a.hasAttribute("prewrap"), f = Y(e);
1024
+ const a = e.getDocument(), n = e.getAttributes(), c = e.isOption("nowrap") || !a.hasAttribute("prewrap"), f = H(e);
1025
1025
  if (e.getStyle() === "source") {
1026
1026
  const l = n.language;
1027
- return /* @__PURE__ */ c("div", {
1027
+ return /* @__PURE__ */ o("div", {
1028
1028
  className: "listingblock",
1029
1029
  ...A(e),
1030
1030
  children: [/* @__PURE__ */ r(ne, {
@@ -1032,7 +1032,7 @@ const E = Ve.exports, xt = ({
1032
1032
  }), /* @__PURE__ */ r("div", {
1033
1033
  className: "content",
1034
1034
  children: /* @__PURE__ */ r("pre", {
1035
- className: E("highlight", o ? " nowrap" : ""),
1035
+ className: E("highlight", c ? " nowrap" : ""),
1036
1036
  children: l ? /* @__PURE__ */ r("code", {
1037
1037
  className: l ? `language-${l}` : "",
1038
1038
  "data-lang": l,
@@ -1048,7 +1048,7 @@ const E = Ve.exports, xt = ({
1048
1048
  })]
1049
1049
  });
1050
1050
  } else
1051
- return /* @__PURE__ */ c("div", {
1051
+ return /* @__PURE__ */ o("div", {
1052
1052
  className: "listingblock",
1053
1053
  ...A(e),
1054
1054
  children: [/* @__PURE__ */ r(ne, {
@@ -1056,7 +1056,7 @@ const E = Ve.exports, xt = ({
1056
1056
  }), /* @__PURE__ */ r("div", {
1057
1057
  className: "content",
1058
1058
  children: /* @__PURE__ */ r("pre", {
1059
- className: o ? " nowrap" : "",
1059
+ className: c ? " nowrap" : "",
1060
1060
  children: /* @__PURE__ */ r("code", {
1061
1061
  dangerouslySetInnerHTML: {
1062
1062
  __html: e.getSource()
@@ -1069,7 +1069,7 @@ const E = Ve.exports, xt = ({
1069
1069
  node: e
1070
1070
  }) => {
1071
1071
  const n = e.getDocument().getAttributes().prewrap === void 0 || e.isOption("nowrap");
1072
- return /* @__PURE__ */ c("div", {
1072
+ return /* @__PURE__ */ o("div", {
1073
1073
  className: "literalblock",
1074
1074
  ...A(e),
1075
1075
  children: [/* @__PURE__ */ r(P, {
@@ -1084,7 +1084,7 @@ const E = Ve.exports, xt = ({
1084
1084
  });
1085
1085
  }, Mt = ({
1086
1086
  node: e
1087
- }) => /* @__PURE__ */ c("div", {
1087
+ }) => /* @__PURE__ */ o("div", {
1088
1088
  className: E("olist", C(e), e.getStyle()),
1089
1089
  ...A(e),
1090
1090
  children: [/* @__PURE__ */ r(P, {
@@ -1093,7 +1093,7 @@ const E = Ve.exports, xt = ({
1093
1093
  className: e.getStyle(),
1094
1094
  reversed: e.isOption("reversed"),
1095
1095
  start: e.getAttribute("start"),
1096
- children: e.getItems().map((a, n) => /* @__PURE__ */ c("li", {
1096
+ children: e.getItems().map((a, n) => /* @__PURE__ */ o("li", {
1097
1097
  className: C(e) ? C(e) : "",
1098
1098
  children: [/* @__PURE__ */ r("p", {
1099
1099
  children: w(a.getText())
@@ -1106,7 +1106,7 @@ const E = Ve.exports, xt = ({
1106
1106
  node: e
1107
1107
  }) => {
1108
1108
  const a = e.getStyle();
1109
- return a === "abstract" ? /* @__PURE__ */ c("div", {
1109
+ return a === "abstract" ? /* @__PURE__ */ o("div", {
1110
1110
  className: E("quoteblock abstract", C(e)),
1111
1111
  ...A(e),
1112
1112
  children: [/* @__PURE__ */ r(P, {
@@ -1117,7 +1117,7 @@ const E = Ve.exports, xt = ({
1117
1117
  blocks: e.getBlocks()
1118
1118
  })
1119
1119
  })]
1120
- }) : /* @__PURE__ */ c("div", {
1120
+ }) : /* @__PURE__ */ o("div", {
1121
1121
  className: E("openblock", a && a !== "open" ? a : "", C(e)),
1122
1122
  ...A(e),
1123
1123
  children: [/* @__PURE__ */ r(P, {
@@ -1136,8 +1136,8 @@ const E = Ve.exports, xt = ({
1136
1136
  }), Yt = ({
1137
1137
  node: e
1138
1138
  }) => {
1139
- const a = Y(e);
1140
- return /* @__PURE__ */ c("div", {
1139
+ const a = H(e);
1140
+ return /* @__PURE__ */ o("div", {
1141
1141
  id: e.getId ? e.getId() : "",
1142
1142
  className: E("paragraph", C(e)),
1143
1143
  ...A(e),
@@ -1152,7 +1152,7 @@ const E = Ve.exports, xt = ({
1152
1152
  }, Ht = ({
1153
1153
  node: e
1154
1154
  }) => {
1155
- const a = Y(e);
1155
+ const a = H(e);
1156
1156
  return /* @__PURE__ */ r(D, {
1157
1157
  children: w(a)
1158
1158
  });
@@ -1163,11 +1163,11 @@ const E = Ve.exports, xt = ({
1163
1163
  return /* @__PURE__ */ r("div", {
1164
1164
  id: "preamble",
1165
1165
  ...A(e),
1166
- children: /* @__PURE__ */ c("div", {
1166
+ children: /* @__PURE__ */ o("div", {
1167
1167
  className: "sectionbody",
1168
1168
  children: [/* @__PURE__ */ r(I, {
1169
1169
  blocks: e.getBlocks()
1170
- }), n && /* @__PURE__ */ c("div", {
1170
+ }), n && /* @__PURE__ */ o("div", {
1171
1171
  id: "toc",
1172
1172
  className: a.getAttribute("toc-class", "toc"),
1173
1173
  children: [/* @__PURE__ */ r("div", {
@@ -1182,8 +1182,8 @@ const E = Ve.exports, xt = ({
1182
1182
  }, qt = ({
1183
1183
  node: e
1184
1184
  }) => {
1185
- const a = e.getAttribute("attribution"), n = e.getAttribute("citetitle"), o = Y(e);
1186
- return /* @__PURE__ */ c("div", {
1185
+ const a = e.getAttribute("attribution"), n = e.getAttribute("citetitle"), c = H(e);
1186
+ return /* @__PURE__ */ o("div", {
1187
1187
  id: e.getId ? e.getId() : "",
1188
1188
  className: E("quoteblock", C(e)),
1189
1189
  ...A(e),
@@ -1191,9 +1191,9 @@ const E = Ve.exports, xt = ({
1191
1191
  node: e
1192
1192
  }), /* @__PURE__ */ r("blockquote", {
1193
1193
  dangerouslySetInnerHTML: {
1194
- __html: o
1194
+ __html: c
1195
1195
  }
1196
- }), a && /* @__PURE__ */ c("div", {
1196
+ }), a && /* @__PURE__ */ o("div", {
1197
1197
  className: "attribution",
1198
1198
  children: ["\u2014 ", a, n && /* @__PURE__ */ r("cite", {
1199
1199
  children: n
@@ -1204,20 +1204,20 @@ const E = Ve.exports, xt = ({
1204
1204
  node: e
1205
1205
  }) => {
1206
1206
  const a = e.getDocument().getAttributes(), n = e.getLevel();
1207
- let o = "", f = e.getSectionNumeral();
1207
+ let c = "", f = e.getSectionNumeral();
1208
1208
  f = f === "." ? "" : f;
1209
1209
  const l = a.sectnumlevels ? parseInt(a.sectnumlevels) : 3;
1210
1210
  if (e.getCaption())
1211
- o = e.getCaptionedTitle();
1211
+ c = e.getCaptionedTitle();
1212
1212
  else if (e.isNumbered() && n <= l)
1213
1213
  if (n < 2 && e.getDocument().getDoctype() == "book") {
1214
1214
  const b = e.getSectionName();
1215
- b === "chapter" ? o = `${a["chapter-signifier"] || ""} ${f} ${e.getTitle()}` : b === "part" ? o = `${a["part-signifier"] || ""} ${f} ${e.getTitle()}` : o = `${f} ${e.getTitle()}`;
1215
+ b === "chapter" ? c = `${a["chapter-signifier"] || ""} ${f} ${e.getTitle()}` : b === "part" ? c = `${a["part-signifier"] || ""} ${f} ${e.getTitle()}` : c = `${f} ${e.getTitle()}`;
1216
1216
  } else
1217
- o = `${f} ${e.getTitle()}`;
1217
+ c = `${f} ${e.getTitle()}`;
1218
1218
  else
1219
- o = e.getTitle() || "";
1220
- return a.sectlinks && (o = /* @__PURE__ */ c(D, {
1219
+ c = e.getTitle() || "";
1220
+ return a.sectlinks && (c = /* @__PURE__ */ o(D, {
1221
1221
  children: [/* @__PURE__ */ r("a", {
1222
1222
  className: "anchor",
1223
1223
  id: e.getId() || "",
@@ -1226,24 +1226,24 @@ const E = Ve.exports, xt = ({
1226
1226
  className: "link",
1227
1227
  href: `#${e.getId()}`,
1228
1228
  dangerouslySetInnerHTML: {
1229
- __html: o
1229
+ __html: c
1230
1230
  }
1231
1231
  })]
1232
- })), n === 0 ? /* @__PURE__ */ c(D, {
1232
+ })), n === 0 ? /* @__PURE__ */ o(D, {
1233
1233
  children: [/* @__PURE__ */ r("h1", {
1234
1234
  className: E("sect0", C(e)),
1235
1235
  "data-sectnum": f,
1236
1236
  ...A(e),
1237
- children: o
1237
+ children: c
1238
1238
  }), /* @__PURE__ */ r(I, {
1239
1239
  blocks: e.getBlocks()
1240
1240
  })]
1241
- }) : /* @__PURE__ */ c("div", {
1241
+ }) : /* @__PURE__ */ o("div", {
1242
1242
  className: E(`sect${n}`, C(e)),
1243
1243
  ...A(e),
1244
- children: [V(`h${n + 1}`, {
1244
+ children: [G(`h${n + 1}`, {
1245
1245
  "data-sectnum": f
1246
- }, o), /* @__PURE__ */ r("div", {
1246
+ }, c), /* @__PURE__ */ r("div", {
1247
1247
  className: "sectionbody",
1248
1248
  children: /* @__PURE__ */ r(I, {
1249
1249
  blocks: e.getBlocks()
@@ -1255,7 +1255,7 @@ const E = Ve.exports, xt = ({
1255
1255
  }) => /* @__PURE__ */ r("div", {
1256
1256
  className: E("sidebarblock", C(e)),
1257
1257
  ...A(e),
1258
- children: /* @__PURE__ */ c("div", {
1258
+ children: /* @__PURE__ */ o("div", {
1259
1259
  className: "content",
1260
1260
  children: [/* @__PURE__ */ r(P, {
1261
1261
  node: e
@@ -1268,14 +1268,14 @@ const E = Ve.exports, xt = ({
1268
1268
  }) => {
1269
1269
  let a = ["frame-" + e.getAttribute("frame", "all", "table-frame"), "grid-" + e.getAttribute("grid", "all", "table-grid")], n = e.getAttribute("stripes", null, "table-stripes");
1270
1270
  n && a.push("stripes-" + n);
1271
- let o = e.hasAutowidthOption(), f = e.getAttribute("tablepcwidth"), l = null;
1272
- o && !e.hasAttribute("width") ? a.push("fit-content") : f == 100 ? a.push("stretch") : l = `${f}%`, e.hasAttribute("float") && a.push(e.getAttribute("float")), e.getRole() && a.push(e.getRole() || "");
1271
+ let c = e.hasAutowidthOption(), f = e.getAttribute("tablepcwidth"), l = null;
1272
+ c && !e.hasAttribute("width") ? a.push("fit-content") : f == 100 ? a.push("stretch") : l = `${f}%`, e.hasAttribute("float") && a.push(e.getAttribute("float")), e.getRole() && a.push(e.getRole() || "");
1273
1273
  const b = e.getRowCount(), d = e.getColumns(), g = e.getHeadRows(), m = e.getBodyRows(), v = e.getFootRows(), S = (_) => E(
1274
1274
  "tableblock",
1275
1275
  `halign-${_.getAttribute("halign")}`,
1276
1276
  `valign-${_.getAttribute("valign")}`
1277
1277
  );
1278
- return /* @__PURE__ */ c("table", {
1278
+ return /* @__PURE__ */ o("table", {
1279
1279
  className: E("tableblock", ...a),
1280
1280
  style: {
1281
1281
  width: l || void 0
@@ -1305,47 +1305,47 @@ const E = Ve.exports, xt = ({
1305
1305
  }, $)), /* @__PURE__ */ r("tbody", {
1306
1306
  children: m.map((_, $) => /* @__PURE__ */ r("tr", {
1307
1307
  children: _.map((O, L) => {
1308
- const ce = O.getColumnSpan(), B = O.getRowSpan(), k = Y(O), H = {
1308
+ const ce = O.getColumnSpan(), B = O.getRowSpan(), R = H(O), U = {
1309
1309
  colSpan: ce,
1310
1310
  rowSpan: B,
1311
1311
  className: S(O)
1312
1312
  }, J = O.getStyle();
1313
1313
  if (J === "asciidoc")
1314
- return /* @__PURE__ */ V("td", {
1315
- ...H,
1314
+ return /* @__PURE__ */ G("td", {
1315
+ ...U,
1316
1316
  key: L
1317
1317
  }, /* @__PURE__ */ r("div", {
1318
1318
  className: "content",
1319
1319
  dangerouslySetInnerHTML: {
1320
- __html: k
1320
+ __html: R
1321
1321
  }
1322
1322
  }));
1323
1323
  if (J === "literal")
1324
- return /* @__PURE__ */ V("td", {
1325
- ...H,
1324
+ return /* @__PURE__ */ G("td", {
1325
+ ...U,
1326
1326
  key: L
1327
1327
  }, /* @__PURE__ */ r("div", {
1328
1328
  className: "literal",
1329
1329
  children: /* @__PURE__ */ r("pre", {
1330
1330
  dangerouslySetInnerHTML: {
1331
- __html: k
1331
+ __html: R
1332
1332
  }
1333
1333
  })
1334
1334
  }));
1335
1335
  if (J === "header")
1336
- return /* @__PURE__ */ V("th", {
1337
- ...H,
1336
+ return /* @__PURE__ */ G("th", {
1337
+ ...U,
1338
1338
  key: L
1339
1339
  }, /* @__PURE__ */ r("p", {
1340
1340
  className: "tableblock",
1341
1341
  dangerouslySetInnerHTML: {
1342
- __html: k
1342
+ __html: R
1343
1343
  }
1344
1344
  }));
1345
1345
  {
1346
- let Z = k;
1347
- return /* @__PURE__ */ V("td", {
1348
- ...H,
1346
+ let Z = R;
1347
+ return /* @__PURE__ */ G("td", {
1348
+ ...U,
1349
1349
  key: L
1350
1350
  }, Z.length === 0 ? "" : w(`<p class="tableblock">${Z.join(`</p>
1351
1351
  <p class="tableblock">`)}</p>`));
@@ -1370,14 +1370,14 @@ const E = Ve.exports, xt = ({
1370
1370
  node: e
1371
1371
  }) => {
1372
1372
  let a = e.getId() || "toc";
1373
- const n = e.getDocument(), o = e.hasTitle() ? e.getTitle() : n.getAttribute("toc-title"), f = G(() => n.getAttribute("toc-placement"), [e]), l = G(() => n.hasAttribute("toc"), [e]), b = e.hasAttribute("levels") ? parseInt(e.getAttribute("levels")) : void 0;
1374
- return f === "macro" && n.hasSections() && l ? /* @__PURE__ */ c("div", {
1373
+ const n = e.getDocument(), c = e.hasTitle() ? e.getTitle() : n.getAttribute("toc-title"), f = Y(() => n.getAttribute("toc-placement"), [e]), l = Y(() => n.hasAttribute("toc"), [e]), b = e.hasAttribute("levels") ? parseInt(e.getAttribute("levels")) : void 0;
1374
+ return f === "macro" && n.hasSections() && l ? /* @__PURE__ */ o("div", {
1375
1375
  id: a,
1376
1376
  className: E("toc", C(e)),
1377
1377
  children: [/* @__PURE__ */ r("div", {
1378
1378
  id: `${a}title`,
1379
1379
  className: "title",
1380
- children: w(o || "")
1380
+ children: w(c || "")
1381
1381
  }), /* @__PURE__ */ r(le, {
1382
1382
  node: e.getDocument(),
1383
1383
  opts: {
@@ -1389,7 +1389,7 @@ const E = Ve.exports, xt = ({
1389
1389
  node: e
1390
1390
  }) => {
1391
1391
  const a = e.isOption("checklist");
1392
- return /* @__PURE__ */ c("div", {
1392
+ return /* @__PURE__ */ o("div", {
1393
1393
  id: e.getId ? e.getId() : "",
1394
1394
  className: E("ulist", e.getStyle(), C(e), a && "checklist"),
1395
1395
  ...A(e),
@@ -1397,15 +1397,15 @@ const E = Ve.exports, xt = ({
1397
1397
  node: e
1398
1398
  }), /* @__PURE__ */ r("ul", {
1399
1399
  className: a ? "checklist" : "",
1400
- children: e.getItems().map((n, o) => a ? /* @__PURE__ */ r("li", {
1400
+ children: e.getItems().map((n, c) => a ? /* @__PURE__ */ r("li", {
1401
1401
  id: n.getId(),
1402
1402
  className: C(e),
1403
- children: /* @__PURE__ */ c("p", {
1403
+ children: /* @__PURE__ */ o("p", {
1404
1404
  children: [a && n.hasAttribute("checkbox") && /* @__PURE__ */ r("i", {
1405
1405
  className: E("fa", n.hasAttribute("checked") ? "fa-check-square-o" : "fa-square-o")
1406
1406
  }), " ", w(n.getText())]
1407
1407
  })
1408
- }, o) : /* @__PURE__ */ c("li", {
1408
+ }, c) : /* @__PURE__ */ o("li", {
1409
1409
  id: n.getId(),
1410
1410
  className: C(e),
1411
1411
  children: [/* @__PURE__ */ r("p", {
@@ -1415,14 +1415,14 @@ const E = Ve.exports, xt = ({
1415
1415
  }), /* @__PURE__ */ r(I, {
1416
1416
  blocks: n.getBlocks()
1417
1417
  })]
1418
- }, o))
1418
+ }, c))
1419
1419
  })]
1420
1420
  });
1421
1421
  }, Qt = ({
1422
1422
  node: e
1423
1423
  }) => {
1424
- const a = e.getAttribute("attribution"), n = e.getAttribute("citetitle"), o = Y(e);
1425
- return /* @__PURE__ */ c("div", {
1424
+ const a = e.getAttribute("attribution"), n = e.getAttribute("citetitle"), c = H(e);
1425
+ return /* @__PURE__ */ o("div", {
1426
1426
  id: e.getId ? e.getId() : "",
1427
1427
  className: E("verseblock", C(e)),
1428
1428
  ...A(e),
@@ -1431,16 +1431,16 @@ const E = Ve.exports, xt = ({
1431
1431
  }), /* @__PURE__ */ r("pre", {
1432
1432
  className: "content",
1433
1433
  dangerouslySetInnerHTML: {
1434
- __html: o
1434
+ __html: c
1435
1435
  }
1436
- }), a && /* @__PURE__ */ c("div", {
1436
+ }), a && /* @__PURE__ */ o("div", {
1437
1437
  className: "attribution",
1438
1438
  children: ["\u2014 ", a, n && /* @__PURE__ */ r("cite", {
1439
1439
  children: n
1440
1440
  })]
1441
1441
  })]
1442
1442
  });
1443
- }, Ge = Rt({}), rr = ({
1443
+ }, Ge = kt({}), rr = ({
1444
1444
  content: e,
1445
1445
  options: a
1446
1446
  }) => {
@@ -1462,8 +1462,8 @@ const E = Ve.exports, xt = ({
1462
1462
  }), Zt = ({
1463
1463
  node: e
1464
1464
  }) => {
1465
- const a = Et(Ge), n = e.getNodeName(), o = e.getDocument(), f = e.getAttributes();
1466
- o.playbackAttributes(f);
1465
+ const a = Et(Ge), n = e.getNodeName(), c = e.getDocument(), f = e.getAttributes();
1466
+ c.playbackAttributes(f);
1467
1467
  const l = a && a.overrides && a.overrides[n];
1468
1468
  if (l)
1469
1469
  return /* @__PURE__ */ r(l, {
@@ -1597,5 +1597,5 @@ export {
1597
1597
  rr as default,
1598
1598
  A as getLineNumber,
1599
1599
  C as getRole,
1600
- Y as useGetContent
1600
+ H as useGetContent
1601
1601
  };
@@ -1,4 +1,4 @@
1
- (function(f,z){typeof exports=="object"&&typeof module<"u"?z(exports,require("@asciidoctor/core"),require("html-react-parser"),require("react")):typeof define=="function"&&define.amd?define(["exports","@asciidoctor/core","html-react-parser","react"],z):(f=typeof globalThis<"u"?globalThis:f||self,z(f.ReactAsciiDoc={},f.core,f.parse,f.React))})(this,function(f,z,pt,k){"use strict";const oe=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},yt=oe(z),O=oe(pt),ye=oe(k),Y=e=>{const[a,n]=k.useState("");return k.useEffect(()=>{n(e.getContent()||"")},[]),a};var re={exports:{}},K={};/**
1
+ (function(f,z){typeof exports=="object"&&typeof module<"u"?z(exports,require("@asciidoctor/core"),require("html-react-parser"),require("react")):typeof define=="function"&&define.amd?define(["exports","@asciidoctor/core","html-react-parser","react"],z):(f=typeof globalThis<"u"?globalThis:f||self,z(f.ReactAsciiDoc={},f.core,f.parse,f.React))})(this,function(f,z,pt,R){"use strict";const oe=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},yt=oe(z),O=oe(pt),ye=oe(R),Y=e=>{const a=R.useRef(!1),[n,o]=R.useState("");return R.useMemo(()=>{a.current||(a.current=!0,o(e.getContent()||""))},[e]),n};var re={exports:{}},K={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -14,19 +14,19 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Te;function Tt(){return Te||(Te=1,process.env.NODE_ENV!=="production"&&function(){var e=ye.default,a=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),y=Symbol.for("react.provider"),m=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),j=Symbol.for("react.offscreen"),P=Symbol.iterator,$="@@iterator";function ue(t){if(t===null||typeof t!="object")return null;var i=P&&t[P]||t[$];return typeof i=="function"?i:null}var U=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(t){{for(var i=arguments.length,s=new Array(i>1?i-1:0),u=1;u<i;u++)s[u-1]=arguments[u];V("error",t,s)}}function V(t,i,s){{var u=U.ReactDebugCurrentFrame,_=u.getStackAddendum();_!==""&&(i+="%s",s=s.concat([_]));var A=s.map(function(p){return String(p)});A.unshift("Warning: "+i),Function.prototype.apply.call(console[t],console,A)}}var Z=!1,ae=!1,kt=!1,Rt=!1,Et=!1,ze;ze=Symbol.for("react.module.reference");function St(t){return!!(typeof t=="string"||typeof t=="function"||t===o||t===l||Et||t===d||t===v||t===b||Rt||t===j||Z||ae||kt||typeof t=="object"&&t!==null&&(t.$$typeof===T||t.$$typeof===I||t.$$typeof===y||t.$$typeof===m||t.$$typeof===g||t.$$typeof===ze||t.getModuleId!==void 0))}function wt(t,i,s){var u=t.displayName;if(u)return u;var _=i.displayName||i.name||"";return _!==""?s+"("+_+")":s}function Ke(t){return t.displayName||"Context"}function B(t){if(t==null)return null;if(typeof t.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case o:return"Fragment";case n:return"Portal";case l:return"Profiler";case d:return"StrictMode";case v:return"Suspense";case b:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case m:var i=t;return Ke(i)+".Consumer";case y:var s=t;return Ke(s._context)+".Provider";case g:return wt(t,t.render,"ForwardRef");case I:var u=t.displayName||null;return u!==null?u:B(t.type)||"Memo";case T:{var _=t,A=_._payload,p=_._init;try{return B(p(A))}catch{return null}}}return null}var H=Object.assign,ee=0,Xe,Qe,qe,Ze,et,tt,rt;function at(){}at.__reactDisabledLog=!0;function Ct(){{if(ee===0){Xe=console.log,Qe=console.info,qe=console.warn,Ze=console.error,et=console.group,tt=console.groupCollapsed,rt=console.groupEnd;var t={configurable:!0,enumerable:!0,value:at,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}ee++}}function Ot(){{if(ee--,ee===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:H({},t,{value:Xe}),info:H({},t,{value:Qe}),warn:H({},t,{value:qe}),error:H({},t,{value:Ze}),group:H({},t,{value:et}),groupCollapsed:H({},t,{value:tt}),groupEnd:H({},t,{value:rt})})}ee<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var fe=U.ReactCurrentDispatcher,de;function ie(t,i,s){{if(de===void 0)try{throw Error()}catch(_){var u=_.stack.trim().match(/\n( *(at )?)/);de=u&&u[1]||""}return`
17
+ */var Te;function Tt(){return Te||(Te=1,process.env.NODE_ENV!=="production"&&function(){var e=ye.default,a=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),y=Symbol.for("react.provider"),m=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),j=Symbol.for("react.offscreen"),P=Symbol.iterator,$="@@iterator";function ue(t){if(t===null||typeof t!="object")return null;var i=P&&t[P]||t[$];return typeof i=="function"?i:null}var U=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(t){{for(var i=arguments.length,s=new Array(i>1?i-1:0),u=1;u<i;u++)s[u-1]=arguments[u];V("error",t,s)}}function V(t,i,s){{var u=U.ReactDebugCurrentFrame,_=u.getStackAddendum();_!==""&&(i+="%s",s=s.concat([_]));var A=s.map(function(p){return String(p)});A.unshift("Warning: "+i),Function.prototype.apply.call(console[t],console,A)}}var q=!1,ae=!1,Rt=!1,kt=!1,Et=!1,ze;ze=Symbol.for("react.module.reference");function St(t){return!!(typeof t=="string"||typeof t=="function"||t===o||t===l||Et||t===d||t===v||t===b||kt||t===j||q||ae||Rt||typeof t=="object"&&t!==null&&(t.$$typeof===T||t.$$typeof===I||t.$$typeof===y||t.$$typeof===m||t.$$typeof===g||t.$$typeof===ze||t.getModuleId!==void 0))}function wt(t,i,s){var u=t.displayName;if(u)return u;var _=i.displayName||i.name||"";return _!==""?s+"("+_+")":s}function Ke(t){return t.displayName||"Context"}function B(t){if(t==null)return null;if(typeof t.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case o:return"Fragment";case n:return"Portal";case l:return"Profiler";case d:return"StrictMode";case v:return"Suspense";case b:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case m:var i=t;return Ke(i)+".Consumer";case y:var s=t;return Ke(s._context)+".Provider";case g:return wt(t,t.render,"ForwardRef");case I:var u=t.displayName||null;return u!==null?u:B(t.type)||"Memo";case T:{var _=t,A=_._payload,p=_._init;try{return B(p(A))}catch{return null}}}return null}var H=Object.assign,ee=0,Xe,Qe,Ze,qe,et,tt,rt;function at(){}at.__reactDisabledLog=!0;function Ct(){{if(ee===0){Xe=console.log,Qe=console.info,Ze=console.warn,qe=console.error,et=console.group,tt=console.groupCollapsed,rt=console.groupEnd;var t={configurable:!0,enumerable:!0,value:at,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}ee++}}function Ot(){{if(ee--,ee===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:H({},t,{value:Xe}),info:H({},t,{value:Qe}),warn:H({},t,{value:Ze}),error:H({},t,{value:qe}),group:H({},t,{value:et}),groupCollapsed:H({},t,{value:tt}),groupEnd:H({},t,{value:rt})})}ee<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var fe=U.ReactCurrentDispatcher,de;function ie(t,i,s){{if(de===void 0)try{throw Error()}catch(_){var u=_.stack.trim().match(/\n( *(at )?)/);de=u&&u[1]||""}return`
18
18
  `+de+t}}var ge=!1,ne;{var It=typeof WeakMap=="function"?WeakMap:Map;ne=new It}function it(t,i){if(!t||ge)return"";{var s=ne.get(t);if(s!==void 0)return s}var u;ge=!0;var _=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var A;A=fe.current,fe.current=null,Ct();try{if(i){var p=function(){throw Error()};if(Object.defineProperty(p.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(p,[])}catch(W){u=W}Reflect.construct(t,[],p)}else{try{p.call()}catch(W){u=W}t.call(p.prototype)}}else{try{throw Error()}catch(W){u=W}t()}}catch(W){if(W&&u&&typeof W.stack=="string"){for(var h=W.stack.split(`
19
19
  `),D=u.stack.split(`
20
- `),R=h.length-1,C=D.length-1;R>=1&&C>=0&&h[R]!==D[C];)C--;for(;R>=1&&C>=0;R--,C--)if(h[R]!==D[C]){if(R!==1||C!==1)do if(R--,C--,C<0||h[R]!==D[C]){var F=`
21
- `+h[R].replace(" at new "," at ");return t.displayName&&F.includes("<anonymous>")&&(F=F.replace("<anonymous>",t.displayName)),typeof t=="function"&&ne.set(t,F),F}while(R>=1&&C>=0);break}}}finally{ge=!1,fe.current=A,Ot(),Error.prepareStackTrace=_}var J=t?t.displayName||t.name:"",bt=J?ie(J):"";return typeof t=="function"&&ne.set(t,bt),bt}function Pt(t,i,s){return it(t,!1)}function jt(t){var i=t.prototype;return!!(i&&i.isReactComponent)}function se(t,i,s){if(t==null)return"";if(typeof t=="function")return it(t,jt(t));if(typeof t=="string")return ie(t);switch(t){case v:return ie("Suspense");case b:return ie("SuspenseList")}if(typeof t=="object")switch(t.$$typeof){case g:return Pt(t.render);case I:return se(t.type,i,s);case T:{var u=t,_=u._payload,A=u._init;try{return se(A(_),i,s)}catch{}}}return""}var le=Object.prototype.hasOwnProperty,nt={},st=U.ReactDebugCurrentFrame;function ce(t){if(t){var i=t._owner,s=se(t.type,t._source,i?i.type:null);st.setExtraStackFrame(s)}else st.setExtraStackFrame(null)}function Lt(t,i,s,u,_){{var A=Function.call.bind(le);for(var p in t)if(A(t,p)){var h=void 0;try{if(typeof t[p]!="function"){var D=Error((u||"React class")+": "+s+" type `"+p+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[p]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw D.name="Invariant Violation",D}h=t[p](i,p,u,s,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(R){h=R}h&&!(h instanceof Error)&&(ce(_),w("%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,p,typeof h),ce(null)),h instanceof Error&&!(h.message in nt)&&(nt[h.message]=!0,ce(_),w("Failed %s type: %s",s,h.message),ce(null))}}}var Dt=Array.isArray;function he(t){return Dt(t)}function xt(t){{var i=typeof Symbol=="function"&&Symbol.toStringTag,s=i&&t[Symbol.toStringTag]||t.constructor.name||"Object";return s}}function Ft(t){try{return lt(t),!1}catch{return!0}}function lt(t){return""+t}function ct(t){if(Ft(t))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",xt(t)),lt(t)}var te=U.ReactCurrentOwner,Mt={key:!0,ref:!0,__self:!0,__source:!0},ot,ut,me;me={};function $t(t){if(le.call(t,"ref")){var i=Object.getOwnPropertyDescriptor(t,"ref").get;if(i&&i.isReactWarning)return!1}return t.ref!==void 0}function Bt(t){if(le.call(t,"key")){var i=Object.getOwnPropertyDescriptor(t,"key").get;if(i&&i.isReactWarning)return!1}return t.key!==void 0}function Wt(t,i){if(typeof t.ref=="string"&&te.current&&i&&te.current.stateNode!==i){var s=B(te.current.type);me[s]||(w('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(te.current.type),t.ref),me[s]=!0)}}function Yt(t,i){{var s=function(){ot||(ot=!0,w("%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))};s.isReactWarning=!0,Object.defineProperty(t,"key",{get:s,configurable:!0})}}function Ut(t,i){{var s=function(){ut||(ut=!0,w("%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))};s.isReactWarning=!0,Object.defineProperty(t,"ref",{get:s,configurable:!0})}}var Ht=function(t,i,s,u,_,A,p){var h={$$typeof:a,type:t,key:i,ref:s,props:p,_owner:A};return h._store={},Object.defineProperty(h._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(h,"_self",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.defineProperty(h,"_source",{configurable:!1,enumerable:!1,writable:!1,value:_}),Object.freeze&&(Object.freeze(h.props),Object.freeze(h)),h};function Vt(t,i,s,u,_){{var A,p={},h=null,D=null;s!==void 0&&(ct(s),h=""+s),Bt(i)&&(ct(i.key),h=""+i.key),$t(i)&&(D=i.ref,Wt(i,_));for(A in i)le.call(i,A)&&!Mt.hasOwnProperty(A)&&(p[A]=i[A]);if(t&&t.defaultProps){var R=t.defaultProps;for(A in R)p[A]===void 0&&(p[A]=R[A])}if(h||D){var C=typeof t=="function"?t.displayName||t.name||"Unknown":t;h&&Yt(p,C),D&&Ut(p,C)}return Ht(t,h,D,_,u,te.current,p)}}var ve=U.ReactCurrentOwner,ft=U.ReactDebugCurrentFrame;function G(t){if(t){var i=t._owner,s=se(t.type,t._source,i?i.type:null);ft.setExtraStackFrame(s)}else ft.setExtraStackFrame(null)}var be;be=!1;function pe(t){return typeof t=="object"&&t!==null&&t.$$typeof===a}function dt(){{if(ve.current){var t=B(ve.current.type);if(t)return`
20
+ `),k=h.length-1,C=D.length-1;k>=1&&C>=0&&h[k]!==D[C];)C--;for(;k>=1&&C>=0;k--,C--)if(h[k]!==D[C]){if(k!==1||C!==1)do if(k--,C--,C<0||h[k]!==D[C]){var F=`
21
+ `+h[k].replace(" at new "," at ");return t.displayName&&F.includes("<anonymous>")&&(F=F.replace("<anonymous>",t.displayName)),typeof t=="function"&&ne.set(t,F),F}while(k>=1&&C>=0);break}}}finally{ge=!1,fe.current=A,Ot(),Error.prepareStackTrace=_}var J=t?t.displayName||t.name:"",bt=J?ie(J):"";return typeof t=="function"&&ne.set(t,bt),bt}function Pt(t,i,s){return it(t,!1)}function jt(t){var i=t.prototype;return!!(i&&i.isReactComponent)}function se(t,i,s){if(t==null)return"";if(typeof t=="function")return it(t,jt(t));if(typeof t=="string")return ie(t);switch(t){case v:return ie("Suspense");case b:return ie("SuspenseList")}if(typeof t=="object")switch(t.$$typeof){case g:return Pt(t.render);case I:return se(t.type,i,s);case T:{var u=t,_=u._payload,A=u._init;try{return se(A(_),i,s)}catch{}}}return""}var le=Object.prototype.hasOwnProperty,nt={},st=U.ReactDebugCurrentFrame;function ce(t){if(t){var i=t._owner,s=se(t.type,t._source,i?i.type:null);st.setExtraStackFrame(s)}else st.setExtraStackFrame(null)}function Lt(t,i,s,u,_){{var A=Function.call.bind(le);for(var p in t)if(A(t,p)){var h=void 0;try{if(typeof t[p]!="function"){var D=Error((u||"React class")+": "+s+" type `"+p+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[p]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw D.name="Invariant Violation",D}h=t[p](i,p,u,s,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(k){h=k}h&&!(h instanceof Error)&&(ce(_),w("%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,p,typeof h),ce(null)),h instanceof Error&&!(h.message in nt)&&(nt[h.message]=!0,ce(_),w("Failed %s type: %s",s,h.message),ce(null))}}}var Dt=Array.isArray;function he(t){return Dt(t)}function xt(t){{var i=typeof Symbol=="function"&&Symbol.toStringTag,s=i&&t[Symbol.toStringTag]||t.constructor.name||"Object";return s}}function Ft(t){try{return lt(t),!1}catch{return!0}}function lt(t){return""+t}function ct(t){if(Ft(t))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",xt(t)),lt(t)}var te=U.ReactCurrentOwner,Mt={key:!0,ref:!0,__self:!0,__source:!0},ot,ut,me;me={};function $t(t){if(le.call(t,"ref")){var i=Object.getOwnPropertyDescriptor(t,"ref").get;if(i&&i.isReactWarning)return!1}return t.ref!==void 0}function Bt(t){if(le.call(t,"key")){var i=Object.getOwnPropertyDescriptor(t,"key").get;if(i&&i.isReactWarning)return!1}return t.key!==void 0}function Wt(t,i){if(typeof t.ref=="string"&&te.current&&i&&te.current.stateNode!==i){var s=B(te.current.type);me[s]||(w('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(te.current.type),t.ref),me[s]=!0)}}function Yt(t,i){{var s=function(){ot||(ot=!0,w("%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))};s.isReactWarning=!0,Object.defineProperty(t,"key",{get:s,configurable:!0})}}function Ut(t,i){{var s=function(){ut||(ut=!0,w("%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))};s.isReactWarning=!0,Object.defineProperty(t,"ref",{get:s,configurable:!0})}}var Ht=function(t,i,s,u,_,A,p){var h={$$typeof:a,type:t,key:i,ref:s,props:p,_owner:A};return h._store={},Object.defineProperty(h._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(h,"_self",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.defineProperty(h,"_source",{configurable:!1,enumerable:!1,writable:!1,value:_}),Object.freeze&&(Object.freeze(h.props),Object.freeze(h)),h};function Vt(t,i,s,u,_){{var A,p={},h=null,D=null;s!==void 0&&(ct(s),h=""+s),Bt(i)&&(ct(i.key),h=""+i.key),$t(i)&&(D=i.ref,Wt(i,_));for(A in i)le.call(i,A)&&!Mt.hasOwnProperty(A)&&(p[A]=i[A]);if(t&&t.defaultProps){var k=t.defaultProps;for(A in k)p[A]===void 0&&(p[A]=k[A])}if(h||D){var C=typeof t=="function"?t.displayName||t.name||"Unknown":t;h&&Yt(p,C),D&&Ut(p,C)}return Ht(t,h,D,_,u,te.current,p)}}var ve=U.ReactCurrentOwner,ft=U.ReactDebugCurrentFrame;function G(t){if(t){var i=t._owner,s=se(t.type,t._source,i?i.type:null);ft.setExtraStackFrame(s)}else ft.setExtraStackFrame(null)}var be;be=!1;function pe(t){return typeof t=="object"&&t!==null&&t.$$typeof===a}function dt(){{if(ve.current){var t=B(ve.current.type);if(t)return`
22
22
 
23
23
  Check the render method of \``+t+"`."}return""}}function Gt(t){{if(t!==void 0){var i=t.fileName.replace(/^.*[\\\/]/,""),s=t.lineNumber;return`
24
24
 
25
25
  Check your code at `+i+":"+s+"."}return""}}var gt={};function Jt(t){{var i=dt();if(!i){var s=typeof t=="string"?t:t.displayName||t.name;s&&(i=`
26
26
 
27
- Check the top-level render call using <`+s+">.")}return i}}function ht(t,i){{if(!t._store||t._store.validated||t.key!=null)return;t._store.validated=!0;var s=Jt(i);if(gt[s])return;gt[s]=!0;var u="";t&&t._owner&&t._owner!==ve.current&&(u=" It was passed a child from "+B(t._owner.type)+"."),G(t),w('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),G(null)}}function mt(t,i){{if(typeof t!="object")return;if(he(t))for(var s=0;s<t.length;s++){var u=t[s];pe(u)&&ht(u,i)}else if(pe(t))t._store&&(t._store.validated=!0);else if(t){var _=ue(t);if(typeof _=="function"&&_!==t.entries)for(var A=_.call(t),p;!(p=A.next()).done;)pe(p.value)&&ht(p.value,i)}}}function zt(t){{var i=t.type;if(i==null||typeof i=="string")return;var s;if(typeof i=="function")s=i.propTypes;else if(typeof i=="object"&&(i.$$typeof===g||i.$$typeof===I))s=i.propTypes;else return;if(s){var u=B(i);Lt(s,t.props,"prop",u,t)}else if(i.PropTypes!==void 0&&!be){be=!0;var _=B(i);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",_||"Unknown")}typeof i.getDefaultProps=="function"&&!i.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Kt(t){{for(var i=Object.keys(t.props),s=0;s<i.length;s++){var u=i[s];if(u!=="children"&&u!=="key"){G(t),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",u),G(null);break}}t.ref!==null&&(G(t),w("Invalid attribute `ref` supplied to `React.Fragment`."),G(null))}}function vt(t,i,s,u,_,A){{var p=St(t);if(!p){var h="";(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(h+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var D=Gt(_);D?h+=D:h+=dt();var R;t===null?R="null":he(t)?R="array":t!==void 0&&t.$$typeof===a?(R="<"+(B(t.type)||"Unknown")+" />",h=" Did you accidentally export a JSX literal instead of a component?"):R=typeof t,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",R,h)}var C=Vt(t,i,s,_,A);if(C==null)return C;if(p){var F=i.children;if(F!==void 0)if(u)if(he(F)){for(var J=0;J<F.length;J++)mt(F[J],t);Object.freeze&&Object.freeze(F)}else w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else mt(F,t)}return t===o?Kt(C):zt(C),C}}function Xt(t,i,s){return vt(t,i,s,!0)}function Qt(t,i,s){return vt(t,i,s,!1)}var qt=Qt,Zt=Xt;X.Fragment=o,X.jsx=qt,X.jsxs=Zt}()),X}(function(e){process.env.NODE_ENV==="production"?e.exports=_t():e.exports=Tt()})(re);const M=re.exports.Fragment,r=re.exports.jsx,c=re.exports.jsxs,x=({node:e})=>e.hasTitle()?r("div",{className:"title",children:O.default(e.getTitle()||"")}):null,Q=({node:e})=>e.hasTitle()?r("div",{className:"title",children:O.default(e.getCaptionedTitle()||"")}):null,E=e=>typeof e.getRole()=="string"?e.getRole():void 0,N=e=>e.getLineNumber()?{"data-lineno":e.getLineNumber()}:{},Ae=({node:e})=>{const a=e.getAttributes(),n=e.getDocument(),o=Y(e),d=()=>n.getAttribute("icons")==="font"&&!a.icon?r("i",{className:`fa icon-${a.name}`,title:a.textlabel}):r("img",{src:e.getIconUri(a.name),alt:a.textlabel}),l=e.content_model;return r("div",{className:`admonitionblock ${a.name}`,...N(e),children:r("table",{children:r("tbody",{children:c("tr",{children:[r("td",{className:"icon",children:n.hasAttribute("icons")?d():r("div",{className:"title",children:e.getAttribute("textlabel")})}),c("td",{className:"content",children:[r(x,{node:e}),l==="simple"?O.default(o):r(L,{blocks:e.getBlocks()})]})]})})})})},Ne=({node:e})=>{const a=e.getAttribute("start"),n=e.getAttribute("start"),o=(a||n)&&`#t=${a||""}`+n?`,${n}`:"";return c("div",{className:"audioblock",...N(e),children:[r(x,{node:e}),r("div",{className:"content",children:r("audio",{src:`${e.getMediaUri(e.getAttribute("target"))}${o}`,autoPlay:e.isOption("autoplay"),controls:!e.isOption("nocontrols"),loop:e.isOption("loop"),children:"Your browser does not support the audio tag."})})]})},ke=({node:e})=>c("div",{className:"colist",...N(e),children:[r(x,{node:e}),r("table",{children:r("tbody",{children:e.getItems().map((a,n)=>c("tr",{children:[c("td",{children:[r("i",{className:"conum","data-value":n+1}),r("b",{children:n+1})]}),c("td",{children:[O.default(a.getText()),r(L,{blocks:a.getBlocks()})]})]},n))})})]});var Re={exports:{}};/*!
27
+ Check the top-level render call using <`+s+">.")}return i}}function ht(t,i){{if(!t._store||t._store.validated||t.key!=null)return;t._store.validated=!0;var s=Jt(i);if(gt[s])return;gt[s]=!0;var u="";t&&t._owner&&t._owner!==ve.current&&(u=" It was passed a child from "+B(t._owner.type)+"."),G(t),w('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),G(null)}}function mt(t,i){{if(typeof t!="object")return;if(he(t))for(var s=0;s<t.length;s++){var u=t[s];pe(u)&&ht(u,i)}else if(pe(t))t._store&&(t._store.validated=!0);else if(t){var _=ue(t);if(typeof _=="function"&&_!==t.entries)for(var A=_.call(t),p;!(p=A.next()).done;)pe(p.value)&&ht(p.value,i)}}}function zt(t){{var i=t.type;if(i==null||typeof i=="string")return;var s;if(typeof i=="function")s=i.propTypes;else if(typeof i=="object"&&(i.$$typeof===g||i.$$typeof===I))s=i.propTypes;else return;if(s){var u=B(i);Lt(s,t.props,"prop",u,t)}else if(i.PropTypes!==void 0&&!be){be=!0;var _=B(i);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",_||"Unknown")}typeof i.getDefaultProps=="function"&&!i.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Kt(t){{for(var i=Object.keys(t.props),s=0;s<i.length;s++){var u=i[s];if(u!=="children"&&u!=="key"){G(t),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",u),G(null);break}}t.ref!==null&&(G(t),w("Invalid attribute `ref` supplied to `React.Fragment`."),G(null))}}function vt(t,i,s,u,_,A){{var p=St(t);if(!p){var h="";(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(h+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var D=Gt(_);D?h+=D:h+=dt();var k;t===null?k="null":he(t)?k="array":t!==void 0&&t.$$typeof===a?(k="<"+(B(t.type)||"Unknown")+" />",h=" Did you accidentally export a JSX literal instead of a component?"):k=typeof t,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",k,h)}var C=Vt(t,i,s,_,A);if(C==null)return C;if(p){var F=i.children;if(F!==void 0)if(u)if(he(F)){for(var J=0;J<F.length;J++)mt(F[J],t);Object.freeze&&Object.freeze(F)}else w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else mt(F,t)}return t===o?Kt(C):zt(C),C}}function Xt(t,i,s){return vt(t,i,s,!0)}function Qt(t,i,s){return vt(t,i,s,!1)}var Zt=Qt,qt=Xt;X.Fragment=o,X.jsx=Zt,X.jsxs=qt}()),X}(function(e){process.env.NODE_ENV==="production"?e.exports=_t():e.exports=Tt()})(re);const M=re.exports.Fragment,r=re.exports.jsx,c=re.exports.jsxs,x=({node:e})=>e.hasTitle()?r("div",{className:"title",children:O.default(e.getTitle()||"")}):null,Q=({node:e})=>e.hasTitle()?r("div",{className:"title",children:O.default(e.getCaptionedTitle()||"")}):null,E=e=>typeof e.getRole()=="string"?e.getRole():void 0,N=e=>e.getLineNumber()?{"data-lineno":e.getLineNumber()}:{},Ae=({node:e})=>{const a=e.getAttributes(),n=e.getDocument(),o=Y(e),d=()=>n.getAttribute("icons")==="font"&&!a.icon?r("i",{className:`fa icon-${a.name}`,title:a.textlabel}):r("img",{src:e.getIconUri(a.name),alt:a.textlabel}),l=e.content_model;return r("div",{className:`admonitionblock ${a.name}`,...N(e),children:r("table",{children:r("tbody",{children:c("tr",{children:[r("td",{className:"icon",children:n.hasAttribute("icons")?d():r("div",{className:"title",children:e.getAttribute("textlabel")})}),c("td",{className:"content",children:[r(x,{node:e}),l==="simple"?O.default(o):r(L,{blocks:e.getBlocks()})]})]})})})})},Ne=({node:e})=>{const a=e.getAttribute("start"),n=e.getAttribute("start"),o=(a||n)&&`#t=${a||""}`+n?`,${n}`:"";return c("div",{className:"audioblock",...N(e),children:[r(x,{node:e}),r("div",{className:"content",children:r("audio",{src:`${e.getMediaUri(e.getAttribute("target"))}${o}`,autoPlay:e.isOption("autoplay"),controls:!e.isOption("nocontrols"),loop:e.isOption("loop"),children:"Your browser does not support the audio tag."})})]})},Re=({node:e})=>c("div",{className:"colist",...N(e),children:[r(x,{node:e}),r("table",{children:r("tbody",{children:e.getItems().map((a,n)=>c("tr",{children:[c("td",{children:[r("i",{className:"conum","data-value":n+1}),r("b",{children:n+1})]}),c("td",{children:[O.default(a.getText()),r(L,{blocks:a.getBlocks()})]})]},n))})})]});var ke={exports:{}};/*!
28
28
  Copyright (c) 2018 Jed Watson.
29
29
  Licensed under the MIT License (MIT), see
30
30
  http://jedwatson.github.io/classnames
31
- */(function(e){(function(){var a={}.hasOwnProperty;function n(){for(var o=[],d=0;d<arguments.length;d++){var l=arguments[d];if(!!l){var y=typeof l;if(y==="string"||y==="number")o.push(l);else if(Array.isArray(l)){if(l.length){var m=n.apply(null,l);m&&o.push(m)}}else if(y==="object"){if(l.toString!==Object.prototype.toString&&!l.toString.toString().includes("[native code]")){o.push(l.toString());continue}for(var g in l)a.call(l,g)&&l[g]&&o.push(g)}}}return o.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Re);const S=Re.exports,Ee=({node:e})=>{const a=e.getStyle(),n=l=>{const y=l,m=y[0];let g=y[1];return g.getNodeName||(g=null),{terms:m,dd:g}},o=l=>{if(l)return c("dd",{children:[l.hasText()&&r("p",{children:O.default(l.getText())}),l.hasBlocks()&&r(L,{blocks:l.getBlocks()})]})},d=e.hasTitle()&&r("div",{className:"title",children:e.getCaptionedTitle()});if(a==="qanda")return c("div",{className:S("qlist qanda",E(e)),...N(e),children:[d,r("ol",{children:e.getItems().map((l,y)=>{const{terms:m,dd:g}=n(l);return c("li",{children:[m.map((v,b)=>r("p",{children:r("em",{children:v.getText()})},b)),o(g)]},y)})})]});if(a==="horizontal"){const l=e.getAttribute("labelwidth"),y=e.getAttribute("itemwidth");return c("div",{className:S("hdlist",E(e)),children:[d,c("table",{children:[(l||y)&&c("colgroup",{children:[r("col",{style:{width:l?`${l.replace("%","")}%`:""}}),r("col",{style:{width:y?`${y.replace("%","")}%`:""}})]}),r("tbody",{children:e.getItems().map((m,g)=>{const{terms:v,dd:b}=n(m);return c("tr",{children:[r("td",{className:S("hdlist1",e.isOption("strong")?"strong":""),children:v.map((I,T)=>c(k.Fragment,{children:[T!==0&&r("br",{}),O.default(I.getText())]},T))}),b&&c("td",{className:"hdlist2",children:[b.hasText()&&r("p",{children:O.default(b.getText())}),b.hasBlocks()&&r(L,{blocks:b.getBlocks()})]})]},g)})})]})]})}else return c("div",{className:S("dlist",e.getStyle(),E(e)),children:[d,r("dl",{children:e.getItems().map((l,y)=>{const{terms:m,dd:g}=n(l);return c(k.Fragment,{children:[m.map((v,b)=>r("dt",{className:"hdlist1",children:O.default(v.getText())},b)),o(g)]},y)})})]})},q=({node:e,opts:a})=>{if(!e.hasSections())return null;const n=e.getSections(),o=e.getDocument(),d=k.useMemo(()=>o.getAttributes(),[e]),l=k.useMemo(()=>o.getAttribute("sectnumlevels"),[e]),y=k.useMemo(()=>o.getAttribute("toclevels"),[e]),m=(a==null?void 0:a.sectNumLevels)||(l?parseInt(l):3),g=(a==null?void 0:a.tocLevels)||(y?parseInt(y):2);return r("ul",{className:`sectlevel${n[0].getLevel()}`,children:n.map(v=>{let b=v.$sectnum();b=b==="."||b===".."?"":b;const I=v.getLevel();let T="";if(v.getCaption())T=v.getCaptionedTitle();else if(I<=m)if(I<2&&o.getDoctype()=="book"){const j=v.getSectionName();j==="chapter"?T=`${d["chapter-signifier"]||""} ${b} ${v.getTitle()}`:j==="part"?T=`${d["part-signifier"]||""} ${b} ${v.getTitle()}`:T=`${b} ${v.getTitle()}`}else T=`${b} ${v.getTitle()}`;else T=v.getTitle()||"";return c("li",{children:[r("a",{href:`#${v.getId()}`,children:O.default(T)}),I<g&&r(q,{node:v,opts:{tocLevels:g,sectNumLevels:m}})]},v.getId())})})},Se=({document:e})=>{const a=e.getBlocks(),[n,o]=k.useState();k.useMemo(()=>{(a||a[0])&&o(e.getFootnotes())},[a]);const d=()=>{var m;return e.getNoheader()?null:r("div",{id:"header",children:e.hasHeader()&&c(M,{children:[r("h1",{dangerouslySetInnerHTML:{__html:((m=e.getDocumentTitle())==null?void 0:m.toString())||""}}),r(y,{}),e.hasSections()&&e.hasAttribute("toc")&&e.getAttribute("toc-placement")==="auto"&&c("div",{id:"toc",className:e.getAttribute("toc-class","toc"),children:[r("div",{id:"toctitle",children:e.getAttribute("toc-title")}),r(q,{node:e})]})]})})},l=()=>n&&n.length>0&&a&&!a[0].getDocument().hasAttribute("nofootnotes")?c("div",{id:"footnotes",children:[r("hr",{}),n.map(m=>c("div",{className:"footnote",id:`_footnotedef_${m.getIndex()}`,children:[r("a",{href:`#_footnoteref_${m.getIndex()}`,children:m.getIndex()}),"."," ",O.default(m.getText()||"")]},m.getIndex()))]}):null,y=()=>e.getAuthors().length>0||e.hasAttribute("revnumber")||e.hasAttribute("revdate")||e.hasAttribute("revremark")?c("div",{className:"details",children:[e.getAuthors().map((g,v)=>c(k.Fragment,{children:[g.getName()&&c(M,{children:[r("span",{id:`author${v+1>1?v+1:""}`,className:"author",children:O.default(e.applySubstitutions(g.getName()||"").toString())}),r("br",{})]}),g.getEmail()&&c(M,{children:[r("span",{id:`email${v+1>1?v+1:""}`,className:"email",children:O.default(e.applySubstitutions(g.getEmail()||"").toString())}),r("br",{})]})]},v)),e.hasAttribute("revnumber")&&r("span",{id:"revnumber",children:`${e.getAttribute("version-label").toLowerCase()} ${e.getAttribute("revnumber")}${e.hasAttribute("revdate")?",":""}`}),e.hasAttribute("revdate")&&r("span",{id:"revdate",children:e.getAttribute("revdate")}),e.hasAttribute("revremark")&&c(M,{children:[r("br",{}),r("span",{id:"revremark",children:e.getAttribute("revremark")})]})]}):null;return c(M,{children:[r(d,{}),r("div",{id:"content",children:r(L,{blocks:a})}),r(l,{})]})},we=({node:e})=>c("div",{className:S("exampleblock",E(e)),...N(e),children:[r(Q,{node:e}),r("div",{className:"content",children:r(L,{blocks:e.getBlocks()})})]}),Ce=({node:e})=>{const a=e.getLevel();return c(M,{children:[r("a",{className:"sectionanchor",id:`${e.getId()||""}`,...N(e)}),k.createElement(`h${a+1}`,null,r(x,{node:e}))]})},Oe=({node:e})=>{const a=e.getAttribute("target");let n=r("img",{src:e.getImageUri(a),alt:e.getAttribute("alt"),width:e.getAttribute("width"),height:e.getAttribute("height")});return e.hasAttribute("link")&&(n=r("a",{className:"image",href:e.getAttribute("link"),children:n})),c("div",{className:`imageblock ${e.hasAttribute("align")?"text-"+e.getAttribute("align"):""} ${e.hasAttribute("float")?e.getAttribute("float"):""} ${e.getRole()?e.getRole():""}`,...N(e),children:[r("div",{className:"content",children:n}),r(Q,{node:e})]})},Ie=({node:e})=>{const a=e.getDocument(),n=e.getAttributes(),o=e.isOption("nowrap")||!a.hasAttribute("prewrap"),d=Y(e);if(e.getStyle()==="source"){const l=n.language;return c("div",{className:"listingblock",...N(e),children:[r(Q,{node:e}),r("div",{className:"content",children:r("pre",{className:S("highlight",o?" nowrap":""),children:l?r("code",{className:l?`language-${l}`:"","data-lang":l,dangerouslySetInnerHTML:{__html:d}}):r("code",{dangerouslySetInnerHTML:{__html:d}})})})]})}else return c("div",{className:"listingblock",...N(e),children:[r(Q,{node:e}),r("div",{className:"content",children:r("pre",{className:o?" nowrap":"",children:r("code",{dangerouslySetInnerHTML:{__html:e.getSource()}})})})]})},Pe=({node:e})=>{const n=e.getDocument().getAttributes().prewrap===void 0||e.isOption("nowrap");return c("div",{className:"literalblock",...N(e),children:[r(x,{node:e}),r("div",{className:"content",children:r("pre",{className:n?"nowrap":"",children:e.getSource()})})]})},je=({node:e})=>c("div",{className:S("olist",E(e),e.getStyle()),...N(e),children:[r(x,{node:e}),r("ol",{className:e.getStyle(),reversed:e.isOption("reversed"),start:e.getAttribute("start"),children:e.getItems().map((a,n)=>c("li",{className:E(e)?E(e):"",children:[r("p",{children:O.default(a.getText())}),r(L,{blocks:a.getBlocks()})]},n))})]}),Le=({node:e})=>{const a=e.getStyle();return a==="abstract"?c("div",{className:S("quoteblock abstract",E(e)),...N(e),children:[r(x,{node:e}),r("blockquote",{className:"content",children:r(L,{blocks:e.getBlocks()})})]}):c("div",{className:S("openblock",a&&a!=="open"?a:"",E(e)),...N(e),children:[r(x,{node:e}),r("div",{className:"content",children:r(L,{blocks:e.getBlocks()})})]})},De=()=>r("div",{style:{pageBreakAfter:"always"}}),xe=({node:e})=>{const a=Y(e);return c("div",{id:e.getId?e.getId():"",className:S("paragraph",E(e)),...N(e),children:[r(x,{node:e}),r("p",{dangerouslySetInnerHTML:{__html:a}})]})},Fe=({node:e})=>{const a=Y(e);return r(M,{children:O.default(a)})},Me=({node:e})=>{const a=e.getDocument(),n=a.getAttribute("toc-placement")==="preamble"&&a.hasSections()&&a.hasAttribute("toc");return r("div",{id:"preamble",...N(e),children:c("div",{className:"sectionbody",children:[r(L,{blocks:e.getBlocks()}),n&&c("div",{id:"toc",className:a.getAttribute("toc-class","toc"),children:[r("div",{id:"toctitle",children:O.default(a.getAttribute("toc-title"))}),r(q,{node:a})]})]})})},$e=({node:e})=>{const a=e.getAttribute("attribution"),n=e.getAttribute("citetitle"),o=Y(e);return c("div",{id:e.getId?e.getId():"",className:S("quoteblock",E(e)),...N(e),children:[r(x,{node:e}),r("blockquote",{dangerouslySetInnerHTML:{__html:o}}),a&&c("div",{className:"attribution",children:["\u2014 ",a,n&&r("cite",{children:n})]})]})},Be=({node:e})=>{const a=e.getDocument().getAttributes(),n=e.getLevel();let o="",d=e.getSectionNumeral();d=d==="."?"":d;const l=a.sectnumlevels?parseInt(a.sectnumlevels):3;if(e.getCaption())o=e.getCaptionedTitle();else if(e.isNumbered()&&n<=l)if(n<2&&e.getDocument().getDoctype()=="book"){const y=e.getSectionName();y==="chapter"?o=`${a["chapter-signifier"]||""} ${d} ${e.getTitle()}`:y==="part"?o=`${a["part-signifier"]||""} ${d} ${e.getTitle()}`:o=`${d} ${e.getTitle()}`}else o=`${d} ${e.getTitle()}`;else o=e.getTitle()||"";return a.sectlinks&&(o=c(M,{children:[r("a",{className:"anchor",id:e.getId()||"",...N(e)}),r("a",{className:"link",href:`#${e.getId()}`,dangerouslySetInnerHTML:{__html:o}})]})),n===0?c(M,{children:[r("h1",{className:S("sect0",E(e)),"data-sectnum":d,...N(e),children:o}),r(L,{blocks:e.getBlocks()})]}):c("div",{className:S(`sect${n}`,E(e)),...N(e),children:[k.createElement(`h${n+1}`,{"data-sectnum":d},o),r("div",{className:"sectionbody",children:r(L,{blocks:e.getBlocks()})})]})},We=({node:e})=>r("div",{className:S("sidebarblock",E(e)),...N(e),children:c("div",{className:"content",children:[r(x,{node:e}),r(L,{blocks:e.getBlocks()})]})}),Ye=({node:e})=>{let a=["frame-"+e.getAttribute("frame","all","table-frame"),"grid-"+e.getAttribute("grid","all","table-grid")],n=e.getAttribute("stripes",null,"table-stripes");n&&a.push("stripes-"+n);let o=e.hasAutowidthOption(),d=e.getAttribute("tablepcwidth"),l=null;o&&!e.hasAttribute("width")?a.push("fit-content"):d==100?a.push("stretch"):l=`${d}%`,e.hasAttribute("float")&&a.push(e.getAttribute("float")),e.getRole()&&a.push(e.getRole()||"");const y=e.getRowCount(),m=e.getColumns(),g=e.getHeadRows(),v=e.getBodyRows(),b=e.getFootRows(),I=T=>S("tableblock",`halign-${T.getAttribute("halign")}`,`valign-${T.getAttribute("valign")}`);return c("table",{className:S("tableblock",...a),style:{width:l||void 0},...N(e),children:[e.hasTitle()&&r("caption",{className:"title",children:e.getCaptionedTitle()}),y>0&&r("colgroup",{children:m.map((T,j)=>{const P=T.getAttribute("colpcwidth");return r("col",{style:{width:`${P}%`}},j)})}),g.map((T,j)=>r("thead",{children:r("tr",{children:T.map((P,$)=>r("th",{className:I(P),dangerouslySetInnerHTML:{__html:P.getText()}},$))})},j)),r("tbody",{children:v.map((T,j)=>r("tr",{children:T.map((P,$)=>{const ue=P.getColumnSpan(),U=P.getRowSpan(),w=Y(P),V={colSpan:ue,rowSpan:U,className:I(P)},Z=P.getStyle();if(Z==="asciidoc")return k.createElement("td",{...V,key:$},r("div",{className:"content",dangerouslySetInnerHTML:{__html:w}}));if(Z==="literal")return k.createElement("td",{...V,key:$},r("div",{className:"literal",children:r("pre",{dangerouslySetInnerHTML:{__html:w}})}));if(Z==="header")return k.createElement("th",{...V,key:$},r("p",{className:"tableblock",dangerouslySetInnerHTML:{__html:w}}));{let ae=w;return k.createElement("td",{...V,key:$},ae.length===0?"":O.default(`<p class="tableblock">${ae.join(`</p>
32
- <p class="tableblock">`)}</p>`))}})},j))}),b.map((T,j)=>r("tfoot",{children:r("tr",{children:T.map((P,$)=>r("td",{className:I(P),children:r("p",{className:"tableblock",dangerouslySetInnerHTML:{__html:P.getText()}})},$))})},j))]})},Ue=({node:e})=>{let a=e.getId()||"toc";const n=e.getDocument(),o=e.hasTitle()?e.getTitle():n.getAttribute("toc-title"),d=k.useMemo(()=>n.getAttribute("toc-placement"),[e]),l=k.useMemo(()=>n.hasAttribute("toc"),[e]),y=e.hasAttribute("levels")?parseInt(e.getAttribute("levels")):void 0;return d==="macro"&&n.hasSections()&&l?c("div",{id:a,className:S("toc",E(e)),children:[r("div",{id:`${a}title`,className:"title",children:O.default(o||"")}),r(q,{node:e.getDocument(),opts:{tocLevels:y}})]}):null},He=()=>r("hr",{}),Ve=({node:e})=>{const a=e.isOption("checklist");return c("div",{id:e.getId?e.getId():"",className:S("ulist",e.getStyle(),E(e),a&&"checklist"),...N(e),children:[r(x,{node:e}),r("ul",{className:a?"checklist":"",children:e.getItems().map((n,o)=>a?r("li",{id:n.getId(),className:E(e),children:c("p",{children:[a&&n.hasAttribute("checkbox")&&r("i",{className:S("fa",n.hasAttribute("checked")?"fa-check-square-o":"fa-square-o")})," ",O.default(n.getText())]})},o):c("li",{id:n.getId(),className:E(e),children:[r("p",{dangerouslySetInnerHTML:{__html:n.getText()}}),r(L,{blocks:n.getBlocks()})]},o))})]})},Ge=({node:e})=>{const a=e.getAttribute("attribution"),n=e.getAttribute("citetitle"),o=Y(e);return c("div",{id:e.getId?e.getId():"",className:S("verseblock",E(e)),...N(e),children:[r(x,{node:e}),r("pre",{className:"content",dangerouslySetInnerHTML:{__html:o}}),a&&c("div",{className:"attribution",children:["\u2014 ",a,n&&r("cite",{children:n})]})]})},Je=k.createContext({}),At=({content:e,options:a})=>{const n=a&&a.customDocument;return r(Je.Provider,{value:a||{},children:n?r(n,{document:e}):r(Se,{document:e})})},L=({blocks:e})=>r(M,{children:e.map((a,n)=>r(Nt,{node:a},`${n}-${a.getNodeName()}`))}),Nt=({node:e})=>{const a=k.useContext(Je),n=e.getNodeName(),o=e.getDocument(),d=e.getAttributes();o.playbackAttributes(d);const l=a&&a.overrides&&a.overrides[n];if(l)return r(l,{node:e});switch(n){case"audio":return r(Ne,{node:e});case"preamble":return r(Me,{node:e});case"section":return r(Be,{node:e});case"paragraph":return r(xe,{node:e});case"dlist":return r(Ee,{node:e});case"ulist":return r(Ve,{node:e});case"floating_title":return r(Ce,{node:e});case"admonition":return r(Ae,{node:e});case"listing":return r(Ie,{node:e});case"literal":return r(Pe,{node:e});case"image":return r(Oe,{node:e});case"colist":return r(ke,{node:e});case"olist":return r(je,{node:e});case"table":return r(Ye,{node:e});case"thematic_break":return r(He,{});case"open":return r(Le,{node:e});case"pass":return r(Fe,{node:e});case"page_break":return r(De,{});case"example":return r(we,{node:e});case"sidebar":return r(We,{node:e});case"quote":return r($e,{node:e});case"verse":return r(Ge,{node:e});case"toc":return r(Ue,{node:e});default:return r(M,{children:O.default(e.convert())})}};Object.defineProperty(f,"asciidoctor",{enumerable:!0,get:()=>yt.default}),f.Admonition=Ae,f.Audio=Ne,f.CaptionedTitle=Q,f.CoList=ke,f.Content=L,f.DList=Ee,f.Document=Se,f.Example=we,f.FloatingTitle=Ce,f.Image=Oe,f.Listing=Ie,f.Literal=Pe,f.OList=je,f.Open=Le,f.Outline=q,f.PageBreak=De,f.Paragraph=xe,f.Pass=Fe,f.Preamble=Me,f.Quote=$e,f.Section=Be,f.Sidebar=We,f.Table=Ye,f.TableOfContents=Ue,f.ThematicBreak=He,f.Title=x,f.UList=Ve,f.Verse=Ge,f.default=At,f.getLineNumber=N,f.getRole=E,f.useGetContent=Y,Object.defineProperties(f,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
31
+ */(function(e){(function(){var a={}.hasOwnProperty;function n(){for(var o=[],d=0;d<arguments.length;d++){var l=arguments[d];if(!!l){var y=typeof l;if(y==="string"||y==="number")o.push(l);else if(Array.isArray(l)){if(l.length){var m=n.apply(null,l);m&&o.push(m)}}else if(y==="object"){if(l.toString!==Object.prototype.toString&&!l.toString.toString().includes("[native code]")){o.push(l.toString());continue}for(var g in l)a.call(l,g)&&l[g]&&o.push(g)}}}return o.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(ke);const S=ke.exports,Ee=({node:e})=>{const a=e.getStyle(),n=l=>{const y=l,m=y[0];let g=y[1];return g.getNodeName||(g=null),{terms:m,dd:g}},o=l=>{if(l)return c("dd",{children:[l.hasText()&&r("p",{children:O.default(l.getText())}),l.hasBlocks()&&r(L,{blocks:l.getBlocks()})]})},d=e.hasTitle()&&r("div",{className:"title",children:e.getCaptionedTitle()});if(a==="qanda")return c("div",{className:S("qlist qanda",E(e)),...N(e),children:[d,r("ol",{children:e.getItems().map((l,y)=>{const{terms:m,dd:g}=n(l);return c("li",{children:[m.map((v,b)=>r("p",{children:r("em",{children:v.getText()})},b)),o(g)]},y)})})]});if(a==="horizontal"){const l=e.getAttribute("labelwidth"),y=e.getAttribute("itemwidth");return c("div",{className:S("hdlist",E(e)),children:[d,c("table",{children:[(l||y)&&c("colgroup",{children:[r("col",{style:{width:l?`${l.replace("%","")}%`:""}}),r("col",{style:{width:y?`${y.replace("%","")}%`:""}})]}),r("tbody",{children:e.getItems().map((m,g)=>{const{terms:v,dd:b}=n(m);return c("tr",{children:[r("td",{className:S("hdlist1",e.isOption("strong")?"strong":""),children:v.map((I,T)=>c(R.Fragment,{children:[T!==0&&r("br",{}),O.default(I.getText())]},T))}),b&&c("td",{className:"hdlist2",children:[b.hasText()&&r("p",{children:O.default(b.getText())}),b.hasBlocks()&&r(L,{blocks:b.getBlocks()})]})]},g)})})]})]})}else return c("div",{className:S("dlist",e.getStyle(),E(e)),children:[d,r("dl",{children:e.getItems().map((l,y)=>{const{terms:m,dd:g}=n(l);return c(R.Fragment,{children:[m.map((v,b)=>r("dt",{className:"hdlist1",children:O.default(v.getText())},b)),o(g)]},y)})})]})},Z=({node:e,opts:a})=>{if(!e.hasSections())return null;const n=e.getSections(),o=e.getDocument(),d=R.useMemo(()=>o.getAttributes(),[e]),l=R.useMemo(()=>o.getAttribute("sectnumlevels"),[e]),y=R.useMemo(()=>o.getAttribute("toclevels"),[e]),m=(a==null?void 0:a.sectNumLevels)||(l?parseInt(l):3),g=(a==null?void 0:a.tocLevels)||(y?parseInt(y):2);return r("ul",{className:`sectlevel${n[0].getLevel()}`,children:n.map(v=>{let b=v.$sectnum();b=b==="."||b===".."?"":b;const I=v.getLevel();let T="";if(v.getCaption())T=v.getCaptionedTitle();else if(I<=m)if(I<2&&o.getDoctype()=="book"){const j=v.getSectionName();j==="chapter"?T=`${d["chapter-signifier"]||""} ${b} ${v.getTitle()}`:j==="part"?T=`${d["part-signifier"]||""} ${b} ${v.getTitle()}`:T=`${b} ${v.getTitle()}`}else T=`${b} ${v.getTitle()}`;else T=v.getTitle()||"";return c("li",{children:[r("a",{href:`#${v.getId()}`,children:O.default(T)}),I<g&&r(Z,{node:v,opts:{tocLevels:g,sectNumLevels:m}})]},v.getId())})})},Se=({document:e})=>{const a=e.getBlocks(),[n,o]=R.useState();R.useMemo(()=>{(a||a[0])&&o(e.getFootnotes())},[a]);const d=()=>{var m;return e.getNoheader()?null:r("div",{id:"header",children:e.hasHeader()&&c(M,{children:[r("h1",{dangerouslySetInnerHTML:{__html:((m=e.getDocumentTitle())==null?void 0:m.toString())||""}}),r(y,{}),e.hasSections()&&e.hasAttribute("toc")&&e.getAttribute("toc-placement")==="auto"&&c("div",{id:"toc",className:e.getAttribute("toc-class","toc"),children:[r("div",{id:"toctitle",children:e.getAttribute("toc-title")}),r(Z,{node:e})]})]})})},l=()=>n&&n.length>0&&a&&!a[0].getDocument().hasAttribute("nofootnotes")?c("div",{id:"footnotes",children:[r("hr",{}),n.map(m=>c("div",{className:"footnote",id:`_footnotedef_${m.getIndex()}`,children:[r("a",{href:`#_footnoteref_${m.getIndex()}`,children:m.getIndex()}),"."," ",O.default(m.getText()||"")]},m.getIndex()))]}):null,y=()=>e.getAuthors().length>0||e.hasAttribute("revnumber")||e.hasAttribute("revdate")||e.hasAttribute("revremark")?c("div",{className:"details",children:[e.getAuthors().map((g,v)=>c(R.Fragment,{children:[g.getName()&&c(M,{children:[r("span",{id:`author${v+1>1?v+1:""}`,className:"author",children:O.default(e.applySubstitutions(g.getName()||"").toString())}),r("br",{})]}),g.getEmail()&&c(M,{children:[r("span",{id:`email${v+1>1?v+1:""}`,className:"email",children:O.default(e.applySubstitutions(g.getEmail()||"").toString())}),r("br",{})]})]},v)),e.hasAttribute("revnumber")&&r("span",{id:"revnumber",children:`${e.getAttribute("version-label").toLowerCase()} ${e.getAttribute("revnumber")}${e.hasAttribute("revdate")?",":""}`}),e.hasAttribute("revdate")&&r("span",{id:"revdate",children:e.getAttribute("revdate")}),e.hasAttribute("revremark")&&c(M,{children:[r("br",{}),r("span",{id:"revremark",children:e.getAttribute("revremark")})]})]}):null;return c(M,{children:[r(d,{}),r("div",{id:"content",children:r(L,{blocks:a})}),r(l,{})]})},we=({node:e})=>c("div",{className:S("exampleblock",E(e)),...N(e),children:[r(Q,{node:e}),r("div",{className:"content",children:r(L,{blocks:e.getBlocks()})})]}),Ce=({node:e})=>{const a=e.getLevel();return c(M,{children:[r("a",{className:"sectionanchor",id:`${e.getId()||""}`,...N(e)}),R.createElement(`h${a+1}`,null,r(x,{node:e}))]})},Oe=({node:e})=>{const a=e.getAttribute("target");let n=r("img",{src:e.getImageUri(a),alt:e.getAttribute("alt"),width:e.getAttribute("width"),height:e.getAttribute("height")});return e.hasAttribute("link")&&(n=r("a",{className:"image",href:e.getAttribute("link"),children:n})),c("div",{className:`imageblock ${e.hasAttribute("align")?"text-"+e.getAttribute("align"):""} ${e.hasAttribute("float")?e.getAttribute("float"):""} ${e.getRole()?e.getRole():""}`,...N(e),children:[r("div",{className:"content",children:n}),r(Q,{node:e})]})},Ie=({node:e})=>{const a=e.getDocument(),n=e.getAttributes(),o=e.isOption("nowrap")||!a.hasAttribute("prewrap"),d=Y(e);if(e.getStyle()==="source"){const l=n.language;return c("div",{className:"listingblock",...N(e),children:[r(Q,{node:e}),r("div",{className:"content",children:r("pre",{className:S("highlight",o?" nowrap":""),children:l?r("code",{className:l?`language-${l}`:"","data-lang":l,dangerouslySetInnerHTML:{__html:d}}):r("code",{dangerouslySetInnerHTML:{__html:d}})})})]})}else return c("div",{className:"listingblock",...N(e),children:[r(Q,{node:e}),r("div",{className:"content",children:r("pre",{className:o?" nowrap":"",children:r("code",{dangerouslySetInnerHTML:{__html:e.getSource()}})})})]})},Pe=({node:e})=>{const n=e.getDocument().getAttributes().prewrap===void 0||e.isOption("nowrap");return c("div",{className:"literalblock",...N(e),children:[r(x,{node:e}),r("div",{className:"content",children:r("pre",{className:n?"nowrap":"",children:e.getSource()})})]})},je=({node:e})=>c("div",{className:S("olist",E(e),e.getStyle()),...N(e),children:[r(x,{node:e}),r("ol",{className:e.getStyle(),reversed:e.isOption("reversed"),start:e.getAttribute("start"),children:e.getItems().map((a,n)=>c("li",{className:E(e)?E(e):"",children:[r("p",{children:O.default(a.getText())}),r(L,{blocks:a.getBlocks()})]},n))})]}),Le=({node:e})=>{const a=e.getStyle();return a==="abstract"?c("div",{className:S("quoteblock abstract",E(e)),...N(e),children:[r(x,{node:e}),r("blockquote",{className:"content",children:r(L,{blocks:e.getBlocks()})})]}):c("div",{className:S("openblock",a&&a!=="open"?a:"",E(e)),...N(e),children:[r(x,{node:e}),r("div",{className:"content",children:r(L,{blocks:e.getBlocks()})})]})},De=()=>r("div",{style:{pageBreakAfter:"always"}}),xe=({node:e})=>{const a=Y(e);return c("div",{id:e.getId?e.getId():"",className:S("paragraph",E(e)),...N(e),children:[r(x,{node:e}),r("p",{dangerouslySetInnerHTML:{__html:a}})]})},Fe=({node:e})=>{const a=Y(e);return r(M,{children:O.default(a)})},Me=({node:e})=>{const a=e.getDocument(),n=a.getAttribute("toc-placement")==="preamble"&&a.hasSections()&&a.hasAttribute("toc");return r("div",{id:"preamble",...N(e),children:c("div",{className:"sectionbody",children:[r(L,{blocks:e.getBlocks()}),n&&c("div",{id:"toc",className:a.getAttribute("toc-class","toc"),children:[r("div",{id:"toctitle",children:O.default(a.getAttribute("toc-title"))}),r(Z,{node:a})]})]})})},$e=({node:e})=>{const a=e.getAttribute("attribution"),n=e.getAttribute("citetitle"),o=Y(e);return c("div",{id:e.getId?e.getId():"",className:S("quoteblock",E(e)),...N(e),children:[r(x,{node:e}),r("blockquote",{dangerouslySetInnerHTML:{__html:o}}),a&&c("div",{className:"attribution",children:["\u2014 ",a,n&&r("cite",{children:n})]})]})},Be=({node:e})=>{const a=e.getDocument().getAttributes(),n=e.getLevel();let o="",d=e.getSectionNumeral();d=d==="."?"":d;const l=a.sectnumlevels?parseInt(a.sectnumlevels):3;if(e.getCaption())o=e.getCaptionedTitle();else if(e.isNumbered()&&n<=l)if(n<2&&e.getDocument().getDoctype()=="book"){const y=e.getSectionName();y==="chapter"?o=`${a["chapter-signifier"]||""} ${d} ${e.getTitle()}`:y==="part"?o=`${a["part-signifier"]||""} ${d} ${e.getTitle()}`:o=`${d} ${e.getTitle()}`}else o=`${d} ${e.getTitle()}`;else o=e.getTitle()||"";return a.sectlinks&&(o=c(M,{children:[r("a",{className:"anchor",id:e.getId()||"",...N(e)}),r("a",{className:"link",href:`#${e.getId()}`,dangerouslySetInnerHTML:{__html:o}})]})),n===0?c(M,{children:[r("h1",{className:S("sect0",E(e)),"data-sectnum":d,...N(e),children:o}),r(L,{blocks:e.getBlocks()})]}):c("div",{className:S(`sect${n}`,E(e)),...N(e),children:[R.createElement(`h${n+1}`,{"data-sectnum":d},o),r("div",{className:"sectionbody",children:r(L,{blocks:e.getBlocks()})})]})},We=({node:e})=>r("div",{className:S("sidebarblock",E(e)),...N(e),children:c("div",{className:"content",children:[r(x,{node:e}),r(L,{blocks:e.getBlocks()})]})}),Ye=({node:e})=>{let a=["frame-"+e.getAttribute("frame","all","table-frame"),"grid-"+e.getAttribute("grid","all","table-grid")],n=e.getAttribute("stripes",null,"table-stripes");n&&a.push("stripes-"+n);let o=e.hasAutowidthOption(),d=e.getAttribute("tablepcwidth"),l=null;o&&!e.hasAttribute("width")?a.push("fit-content"):d==100?a.push("stretch"):l=`${d}%`,e.hasAttribute("float")&&a.push(e.getAttribute("float")),e.getRole()&&a.push(e.getRole()||"");const y=e.getRowCount(),m=e.getColumns(),g=e.getHeadRows(),v=e.getBodyRows(),b=e.getFootRows(),I=T=>S("tableblock",`halign-${T.getAttribute("halign")}`,`valign-${T.getAttribute("valign")}`);return c("table",{className:S("tableblock",...a),style:{width:l||void 0},...N(e),children:[e.hasTitle()&&r("caption",{className:"title",children:e.getCaptionedTitle()}),y>0&&r("colgroup",{children:m.map((T,j)=>{const P=T.getAttribute("colpcwidth");return r("col",{style:{width:`${P}%`}},j)})}),g.map((T,j)=>r("thead",{children:r("tr",{children:T.map((P,$)=>r("th",{className:I(P),dangerouslySetInnerHTML:{__html:P.getText()}},$))})},j)),r("tbody",{children:v.map((T,j)=>r("tr",{children:T.map((P,$)=>{const ue=P.getColumnSpan(),U=P.getRowSpan(),w=Y(P),V={colSpan:ue,rowSpan:U,className:I(P)},q=P.getStyle();if(q==="asciidoc")return R.createElement("td",{...V,key:$},r("div",{className:"content",dangerouslySetInnerHTML:{__html:w}}));if(q==="literal")return R.createElement("td",{...V,key:$},r("div",{className:"literal",children:r("pre",{dangerouslySetInnerHTML:{__html:w}})}));if(q==="header")return R.createElement("th",{...V,key:$},r("p",{className:"tableblock",dangerouslySetInnerHTML:{__html:w}}));{let ae=w;return R.createElement("td",{...V,key:$},ae.length===0?"":O.default(`<p class="tableblock">${ae.join(`</p>
32
+ <p class="tableblock">`)}</p>`))}})},j))}),b.map((T,j)=>r("tfoot",{children:r("tr",{children:T.map((P,$)=>r("td",{className:I(P),children:r("p",{className:"tableblock",dangerouslySetInnerHTML:{__html:P.getText()}})},$))})},j))]})},Ue=({node:e})=>{let a=e.getId()||"toc";const n=e.getDocument(),o=e.hasTitle()?e.getTitle():n.getAttribute("toc-title"),d=R.useMemo(()=>n.getAttribute("toc-placement"),[e]),l=R.useMemo(()=>n.hasAttribute("toc"),[e]),y=e.hasAttribute("levels")?parseInt(e.getAttribute("levels")):void 0;return d==="macro"&&n.hasSections()&&l?c("div",{id:a,className:S("toc",E(e)),children:[r("div",{id:`${a}title`,className:"title",children:O.default(o||"")}),r(Z,{node:e.getDocument(),opts:{tocLevels:y}})]}):null},He=()=>r("hr",{}),Ve=({node:e})=>{const a=e.isOption("checklist");return c("div",{id:e.getId?e.getId():"",className:S("ulist",e.getStyle(),E(e),a&&"checklist"),...N(e),children:[r(x,{node:e}),r("ul",{className:a?"checklist":"",children:e.getItems().map((n,o)=>a?r("li",{id:n.getId(),className:E(e),children:c("p",{children:[a&&n.hasAttribute("checkbox")&&r("i",{className:S("fa",n.hasAttribute("checked")?"fa-check-square-o":"fa-square-o")})," ",O.default(n.getText())]})},o):c("li",{id:n.getId(),className:E(e),children:[r("p",{dangerouslySetInnerHTML:{__html:n.getText()}}),r(L,{blocks:n.getBlocks()})]},o))})]})},Ge=({node:e})=>{const a=e.getAttribute("attribution"),n=e.getAttribute("citetitle"),o=Y(e);return c("div",{id:e.getId?e.getId():"",className:S("verseblock",E(e)),...N(e),children:[r(x,{node:e}),r("pre",{className:"content",dangerouslySetInnerHTML:{__html:o}}),a&&c("div",{className:"attribution",children:["\u2014 ",a,n&&r("cite",{children:n})]})]})},Je=R.createContext({}),At=({content:e,options:a})=>{const n=a&&a.customDocument;return r(Je.Provider,{value:a||{},children:n?r(n,{document:e}):r(Se,{document:e})})},L=({blocks:e})=>r(M,{children:e.map((a,n)=>r(Nt,{node:a},`${n}-${a.getNodeName()}`))}),Nt=({node:e})=>{const a=R.useContext(Je),n=e.getNodeName(),o=e.getDocument(),d=e.getAttributes();o.playbackAttributes(d);const l=a&&a.overrides&&a.overrides[n];if(l)return r(l,{node:e});switch(n){case"audio":return r(Ne,{node:e});case"preamble":return r(Me,{node:e});case"section":return r(Be,{node:e});case"paragraph":return r(xe,{node:e});case"dlist":return r(Ee,{node:e});case"ulist":return r(Ve,{node:e});case"floating_title":return r(Ce,{node:e});case"admonition":return r(Ae,{node:e});case"listing":return r(Ie,{node:e});case"literal":return r(Pe,{node:e});case"image":return r(Oe,{node:e});case"colist":return r(Re,{node:e});case"olist":return r(je,{node:e});case"table":return r(Ye,{node:e});case"thematic_break":return r(He,{});case"open":return r(Le,{node:e});case"pass":return r(Fe,{node:e});case"page_break":return r(De,{});case"example":return r(we,{node:e});case"sidebar":return r(We,{node:e});case"quote":return r($e,{node:e});case"verse":return r(Ge,{node:e});case"toc":return r(Ue,{node:e});default:return r(M,{children:O.default(e.convert())})}};Object.defineProperty(f,"asciidoctor",{enumerable:!0,get:()=>yt.default}),f.Admonition=Ae,f.Audio=Ne,f.CaptionedTitle=Q,f.CoList=Re,f.Content=L,f.DList=Ee,f.Document=Se,f.Example=we,f.FloatingTitle=Ce,f.Image=Oe,f.Listing=Ie,f.Literal=Pe,f.OList=je,f.Open=Le,f.Outline=Z,f.PageBreak=De,f.Paragraph=xe,f.Pass=Fe,f.Preamble=Me,f.Quote=$e,f.Section=Be,f.Sidebar=We,f.Table=Ye,f.TableOfContents=Ue,f.ThematicBreak=He,f.Title=x,f.UList=Ve,f.Verse=Ge,f.default=At,f.getLineNumber=N,f.getRole=E,f.useGetContent=Y,Object.defineProperties(f,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxide/react-asciidoc",
3
- "version": "0.1.2-alpha.1",
3
+ "version": "0.1.2-alpha.2",
4
4
  "files": [
5
5
  "dist"
6
6
  ],