@oxide/react-asciidoc 1.3.0 → 2.0.0--canary.54.26631847614.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/react-asciidoc.js +2238 -1049
- package/dist/react-asciidoc.umd.cjs +13 -6
- package/dist/types/RenderInline.d.ts +64 -0
- package/dist/types/index.d.ts +7 -2
- package/dist/types/inline/index.d.ts +4 -0
- package/dist/types/inline/parser.d.ts +25 -0
- package/dist/types/inline/quotes.d.ts +5 -0
- package/dist/types/inline/renderer.d.ts +3 -0
- package/dist/types/inline/rx.d.ts +28 -0
- package/dist/types/inline/types.d.ts +72 -0
- package/dist/types/templates/FloatingTitle.d.ts +8 -1
- package/dist/types/templates/Stem.d.ts +5 -0
- package/dist/types/templates/index.d.ts +2 -1
- package/dist/types/utils/prepareDocument.d.ts +19 -0
- package/package.json +9 -5
package/dist/react-asciidoc.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { default as
|
|
4
|
-
function
|
|
5
|
-
return
|
|
1
|
+
import Ft, { useContext as yt, Fragment as jt, createElement as bt, createContext as Bt } from "react";
|
|
2
|
+
import lt from "html-react-parser";
|
|
3
|
+
import { default as us } from "html-react-parser";
|
|
4
|
+
function zt(t) {
|
|
5
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
6
6
|
}
|
|
7
|
-
var
|
|
7
|
+
var pt = { exports: {} }, st = {};
|
|
8
8
|
/**
|
|
9
9
|
* @license React
|
|
10
10
|
* react-jsx-runtime.production.js
|
|
@@ -14,29 +14,29 @@ var M = { exports: {} }, V = {};
|
|
|
14
14
|
* This source code is licensed under the MIT license found in the
|
|
15
15
|
* LICENSE file in the root directory of this source tree.
|
|
16
16
|
*/
|
|
17
|
-
var
|
|
18
|
-
function
|
|
19
|
-
if (
|
|
20
|
-
|
|
21
|
-
var
|
|
22
|
-
function s(n,
|
|
17
|
+
var wt;
|
|
18
|
+
function Ut() {
|
|
19
|
+
if (wt) return st;
|
|
20
|
+
wt = 1;
|
|
21
|
+
var t = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
|
|
22
|
+
function s(n, i, l) {
|
|
23
23
|
var a = null;
|
|
24
|
-
if (
|
|
25
|
-
|
|
26
|
-
for (var c in
|
|
27
|
-
c !== "key" && (
|
|
28
|
-
} else
|
|
29
|
-
return
|
|
30
|
-
$$typeof:
|
|
24
|
+
if (l !== void 0 && (a = "" + l), i.key !== void 0 && (a = "" + i.key), "key" in i) {
|
|
25
|
+
l = {};
|
|
26
|
+
for (var c in i)
|
|
27
|
+
c !== "key" && (l[c] = i[c]);
|
|
28
|
+
} else l = i;
|
|
29
|
+
return i = l.ref, {
|
|
30
|
+
$$typeof: t,
|
|
31
31
|
type: n,
|
|
32
32
|
key: a,
|
|
33
|
-
ref:
|
|
34
|
-
props:
|
|
33
|
+
ref: i !== void 0 ? i : null,
|
|
34
|
+
props: l
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
|
-
return
|
|
37
|
+
return st.Fragment = e, st.jsx = s, st.jsxs = s, st;
|
|
38
38
|
}
|
|
39
|
-
var
|
|
39
|
+
var rt = {};
|
|
40
40
|
/**
|
|
41
41
|
* @license React
|
|
42
42
|
* react-jsx-runtime.development.js
|
|
@@ -46,616 +46,1782 @@ var H = {};
|
|
|
46
46
|
* This source code is licensed under the MIT license found in the
|
|
47
47
|
* LICENSE file in the root directory of this source tree.
|
|
48
48
|
*/
|
|
49
|
-
var
|
|
50
|
-
function
|
|
51
|
-
return
|
|
52
|
-
function
|
|
53
|
-
if (
|
|
54
|
-
if (typeof
|
|
55
|
-
return
|
|
56
|
-
if (typeof
|
|
57
|
-
switch (
|
|
58
|
-
case v:
|
|
59
|
-
return "Fragment";
|
|
49
|
+
var _t;
|
|
50
|
+
function Dt() {
|
|
51
|
+
return _t || (_t = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
52
|
+
function t(p) {
|
|
53
|
+
if (p == null) return null;
|
|
54
|
+
if (typeof p == "function")
|
|
55
|
+
return p.$$typeof === F ? null : p.displayName || p.name || null;
|
|
56
|
+
if (typeof p == "string") return p;
|
|
57
|
+
switch (p) {
|
|
60
58
|
case $:
|
|
59
|
+
return "Fragment";
|
|
60
|
+
case o:
|
|
61
61
|
return "Profiler";
|
|
62
|
-
case
|
|
62
|
+
case _:
|
|
63
63
|
return "StrictMode";
|
|
64
|
-
case
|
|
64
|
+
case H:
|
|
65
65
|
return "Suspense";
|
|
66
|
-
case
|
|
66
|
+
case q:
|
|
67
67
|
return "SuspenseList";
|
|
68
|
-
case
|
|
68
|
+
case w:
|
|
69
69
|
return "Activity";
|
|
70
70
|
}
|
|
71
|
-
if (typeof
|
|
72
|
-
switch (typeof
|
|
71
|
+
if (typeof p == "object")
|
|
72
|
+
switch (typeof p.tag == "number" && console.error(
|
|
73
73
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
74
|
-
),
|
|
75
|
-
case
|
|
74
|
+
), p.$$typeof) {
|
|
75
|
+
case j:
|
|
76
76
|
return "Portal";
|
|
77
|
-
case
|
|
78
|
-
return
|
|
79
|
-
case
|
|
80
|
-
return (
|
|
81
|
-
case
|
|
82
|
-
var
|
|
83
|
-
return
|
|
84
|
-
case
|
|
85
|
-
return
|
|
86
|
-
case
|
|
87
|
-
|
|
77
|
+
case v:
|
|
78
|
+
return p.displayName || "Context";
|
|
79
|
+
case f:
|
|
80
|
+
return (p._context.displayName || "Context") + ".Consumer";
|
|
81
|
+
case T:
|
|
82
|
+
var S = p.render;
|
|
83
|
+
return p = p.displayName, p || (p = S.displayName || S.name || "", p = p !== "" ? "ForwardRef(" + p + ")" : "ForwardRef"), p;
|
|
84
|
+
case k:
|
|
85
|
+
return S = p.displayName || null, S !== null ? S : t(p.type) || "Memo";
|
|
86
|
+
case y:
|
|
87
|
+
S = p._payload, p = p._init;
|
|
88
88
|
try {
|
|
89
|
-
return
|
|
89
|
+
return t(p(S));
|
|
90
90
|
} catch {
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
return null;
|
|
94
94
|
}
|
|
95
|
-
function
|
|
96
|
-
return "" +
|
|
95
|
+
function e(p) {
|
|
96
|
+
return "" + p;
|
|
97
97
|
}
|
|
98
|
-
function s(
|
|
98
|
+
function s(p) {
|
|
99
99
|
try {
|
|
100
|
-
|
|
101
|
-
var
|
|
100
|
+
e(p);
|
|
101
|
+
var S = !1;
|
|
102
102
|
} catch {
|
|
103
|
-
|
|
103
|
+
S = !0;
|
|
104
104
|
}
|
|
105
|
-
if (
|
|
106
|
-
|
|
107
|
-
var
|
|
108
|
-
return
|
|
109
|
-
|
|
105
|
+
if (S) {
|
|
106
|
+
S = console;
|
|
107
|
+
var I = S.error, C = typeof Symbol == "function" && Symbol.toStringTag && p[Symbol.toStringTag] || p.constructor.name || "Object";
|
|
108
|
+
return I.call(
|
|
109
|
+
S,
|
|
110
110
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
111
|
-
|
|
112
|
-
),
|
|
111
|
+
C
|
|
112
|
+
), e(p);
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
-
function n(
|
|
116
|
-
if (
|
|
117
|
-
if (typeof
|
|
115
|
+
function n(p) {
|
|
116
|
+
if (p === $) return "<>";
|
|
117
|
+
if (typeof p == "object" && p !== null && p.$$typeof === y)
|
|
118
118
|
return "<...>";
|
|
119
119
|
try {
|
|
120
|
-
var
|
|
121
|
-
return
|
|
120
|
+
var S = t(p);
|
|
121
|
+
return S ? "<" + S + ">" : "<...>";
|
|
122
122
|
} catch {
|
|
123
123
|
return "<...>";
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
-
function
|
|
127
|
-
var
|
|
128
|
-
return
|
|
126
|
+
function i() {
|
|
127
|
+
var p = Z.A;
|
|
128
|
+
return p === null ? null : p.getOwner();
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function l() {
|
|
131
131
|
return Error("react-stack-top-frame");
|
|
132
132
|
}
|
|
133
|
-
function a(
|
|
134
|
-
if (
|
|
135
|
-
var
|
|
136
|
-
if (
|
|
133
|
+
function a(p) {
|
|
134
|
+
if (et.call(p, "key")) {
|
|
135
|
+
var S = Object.getOwnPropertyDescriptor(p, "key").get;
|
|
136
|
+
if (S && S.isReactWarning) return !1;
|
|
137
137
|
}
|
|
138
|
-
return
|
|
138
|
+
return p.key !== void 0;
|
|
139
139
|
}
|
|
140
|
-
function c(
|
|
141
|
-
function
|
|
142
|
-
|
|
140
|
+
function c(p, S) {
|
|
141
|
+
function I() {
|
|
142
|
+
ct || (ct = !0, console.error(
|
|
143
143
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
144
|
-
|
|
144
|
+
S
|
|
145
145
|
));
|
|
146
146
|
}
|
|
147
|
-
|
|
148
|
-
get:
|
|
147
|
+
I.isReactWarning = !0, Object.defineProperty(p, "key", {
|
|
148
|
+
get: I,
|
|
149
149
|
configurable: !0
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
|
-
function
|
|
153
|
-
var
|
|
154
|
-
return
|
|
152
|
+
function m() {
|
|
153
|
+
var p = t(this.type);
|
|
154
|
+
return ot[p] || (ot[p] = !0, console.error(
|
|
155
155
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
156
|
-
)),
|
|
157
|
-
}
|
|
158
|
-
function
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
156
|
+
)), p = this.props.ref, p !== void 0 ? p : null;
|
|
157
|
+
}
|
|
158
|
+
function x(p, S, I, C, ut, ht) {
|
|
159
|
+
var M = I.ref;
|
|
160
|
+
return p = {
|
|
161
|
+
$$typeof: h,
|
|
162
|
+
type: p,
|
|
163
|
+
key: S,
|
|
164
|
+
props: I,
|
|
165
|
+
_owner: C
|
|
166
|
+
}, (M !== void 0 ? M : null) !== null ? Object.defineProperty(p, "ref", {
|
|
166
167
|
enumerable: !1,
|
|
167
|
-
get:
|
|
168
|
-
}) : Object.defineProperty(
|
|
168
|
+
get: m
|
|
169
|
+
}) : Object.defineProperty(p, "ref", { enumerable: !1, value: null }), p._store = {}, Object.defineProperty(p._store, "validated", {
|
|
169
170
|
configurable: !1,
|
|
170
171
|
enumerable: !1,
|
|
171
172
|
writable: !0,
|
|
172
173
|
value: 0
|
|
173
|
-
}), Object.defineProperty(
|
|
174
|
+
}), Object.defineProperty(p, "_debugInfo", {
|
|
174
175
|
configurable: !1,
|
|
175
176
|
enumerable: !1,
|
|
176
177
|
writable: !0,
|
|
177
178
|
value: null
|
|
178
|
-
}), Object.defineProperty(
|
|
179
|
+
}), Object.defineProperty(p, "_debugStack", {
|
|
179
180
|
configurable: !1,
|
|
180
181
|
enumerable: !1,
|
|
181
182
|
writable: !0,
|
|
182
|
-
value:
|
|
183
|
-
}), Object.defineProperty(
|
|
183
|
+
value: ut
|
|
184
|
+
}), Object.defineProperty(p, "_debugTask", {
|
|
184
185
|
configurable: !1,
|
|
185
186
|
enumerable: !1,
|
|
186
187
|
writable: !0,
|
|
187
|
-
value:
|
|
188
|
-
}), Object.freeze && (Object.freeze(
|
|
189
|
-
}
|
|
190
|
-
function g(
|
|
191
|
-
var
|
|
192
|
-
if (
|
|
193
|
-
if (
|
|
194
|
-
if (
|
|
195
|
-
for (
|
|
196
|
-
|
|
197
|
-
Object.freeze && Object.freeze(
|
|
188
|
+
value: ht
|
|
189
|
+
}), Object.freeze && (Object.freeze(p.props), Object.freeze(p)), p;
|
|
190
|
+
}
|
|
191
|
+
function g(p, S, I, C, ut, ht) {
|
|
192
|
+
var M = S.children;
|
|
193
|
+
if (M !== void 0)
|
|
194
|
+
if (C)
|
|
195
|
+
if (at(M)) {
|
|
196
|
+
for (C = 0; C < M.length; C++)
|
|
197
|
+
b(M[C]);
|
|
198
|
+
Object.freeze && Object.freeze(M);
|
|
198
199
|
} else
|
|
199
200
|
console.error(
|
|
200
201
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
201
202
|
);
|
|
202
|
-
else
|
|
203
|
-
if (
|
|
204
|
-
|
|
205
|
-
var
|
|
206
|
-
return
|
|
203
|
+
else b(M);
|
|
204
|
+
if (et.call(S, "key")) {
|
|
205
|
+
M = t(p);
|
|
206
|
+
var X = Object.keys(S).filter(function(qt) {
|
|
207
|
+
return qt !== "key";
|
|
207
208
|
});
|
|
208
|
-
|
|
209
|
+
C = 0 < X.length ? "{key: someKey, " + X.join(": ..., ") + ": ...}" : "{key: someKey}", St[M + C] || (X = 0 < X.length ? "{" + X.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
209
210
|
`A props object containing a "key" prop is being spread into JSX:
|
|
210
211
|
let props = %s;
|
|
211
212
|
<%s {...props} />
|
|
212
213
|
React keys must be passed directly to JSX without using spread:
|
|
213
214
|
let props = %s;
|
|
214
215
|
<%s key={someKey} {...props} />`,
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
),
|
|
216
|
+
C,
|
|
217
|
+
M,
|
|
218
|
+
X,
|
|
219
|
+
M
|
|
220
|
+
), St[M + C] = !0);
|
|
220
221
|
}
|
|
221
|
-
if (
|
|
222
|
-
|
|
223
|
-
for (var
|
|
224
|
-
|
|
225
|
-
} else
|
|
226
|
-
return
|
|
227
|
-
|
|
228
|
-
typeof
|
|
229
|
-
),
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
Z,
|
|
237
|
-
X
|
|
222
|
+
if (M = null, I !== void 0 && (s(I), M = "" + I), a(S) && (s(S.key), M = "" + S.key), "key" in S) {
|
|
223
|
+
I = {};
|
|
224
|
+
for (var mt in S)
|
|
225
|
+
mt !== "key" && (I[mt] = S[mt]);
|
|
226
|
+
} else I = S;
|
|
227
|
+
return M && c(
|
|
228
|
+
I,
|
|
229
|
+
typeof p == "function" ? p.displayName || p.name || "Unknown" : p
|
|
230
|
+
), x(
|
|
231
|
+
p,
|
|
232
|
+
M,
|
|
233
|
+
I,
|
|
234
|
+
i(),
|
|
235
|
+
ut,
|
|
236
|
+
ht
|
|
238
237
|
);
|
|
239
238
|
}
|
|
240
|
-
function
|
|
241
|
-
typeof
|
|
239
|
+
function b(p) {
|
|
240
|
+
u(p) ? p._store && (p._store.validated = 1) : typeof p == "object" && p !== null && p.$$typeof === y && (p._payload.status === "fulfilled" ? u(p._payload.value) && p._payload.value._store && (p._payload.value._store.validated = 1) : p._store && (p._store.validated = 1));
|
|
242
241
|
}
|
|
243
|
-
|
|
242
|
+
function u(p) {
|
|
243
|
+
return typeof p == "object" && p !== null && p.$$typeof === h;
|
|
244
|
+
}
|
|
245
|
+
var d = Ft, h = Symbol.for("react.transitional.element"), j = Symbol.for("react.portal"), $ = Symbol.for("react.fragment"), _ = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), f = Symbol.for("react.consumer"), v = Symbol.for("react.context"), T = Symbol.for("react.forward_ref"), H = Symbol.for("react.suspense"), q = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), w = Symbol.for("react.activity"), F = Symbol.for("react.client.reference"), Z = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, et = Object.prototype.hasOwnProperty, at = Array.isArray, B = console.createTask ? console.createTask : function() {
|
|
244
246
|
return null;
|
|
245
247
|
};
|
|
246
|
-
|
|
247
|
-
react_stack_bottom_frame: function(
|
|
248
|
-
return
|
|
248
|
+
d = {
|
|
249
|
+
react_stack_bottom_frame: function(p) {
|
|
250
|
+
return p();
|
|
249
251
|
}
|
|
250
252
|
};
|
|
251
|
-
var
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
)(),
|
|
255
|
-
|
|
256
|
-
var
|
|
253
|
+
var ct, ot = {}, vt = d.react_stack_bottom_frame.bind(
|
|
254
|
+
d,
|
|
255
|
+
l
|
|
256
|
+
)(), $t = B(n(l)), St = {};
|
|
257
|
+
rt.Fragment = $, rt.jsx = function(p, S, I) {
|
|
258
|
+
var C = 1e4 > Z.recentlyCreatedOwnerStacks++;
|
|
257
259
|
return g(
|
|
258
|
-
|
|
259
|
-
d,
|
|
260
|
-
b,
|
|
261
|
-
!1,
|
|
262
|
-
y,
|
|
260
|
+
p,
|
|
263
261
|
S,
|
|
264
|
-
|
|
265
|
-
|
|
262
|
+
I,
|
|
263
|
+
!1,
|
|
264
|
+
C ? Error("react-stack-top-frame") : vt,
|
|
265
|
+
C ? B(n(p)) : $t
|
|
266
266
|
);
|
|
267
|
-
},
|
|
268
|
-
var
|
|
267
|
+
}, rt.jsxs = function(p, S, I) {
|
|
268
|
+
var C = 1e4 > Z.recentlyCreatedOwnerStacks++;
|
|
269
269
|
return g(
|
|
270
|
-
|
|
271
|
-
d,
|
|
272
|
-
b,
|
|
273
|
-
!0,
|
|
274
|
-
y,
|
|
270
|
+
p,
|
|
275
271
|
S,
|
|
276
|
-
|
|
277
|
-
|
|
272
|
+
I,
|
|
273
|
+
!0,
|
|
274
|
+
C ? Error("react-stack-top-frame") : vt,
|
|
275
|
+
C ? B(n(p)) : $t
|
|
278
276
|
);
|
|
279
277
|
};
|
|
280
|
-
})()),
|
|
278
|
+
})()), rt;
|
|
281
279
|
}
|
|
282
|
-
var
|
|
283
|
-
function
|
|
284
|
-
return
|
|
280
|
+
var Nt;
|
|
281
|
+
function Yt() {
|
|
282
|
+
return Nt || (Nt = 1, process.env.NODE_ENV === "production" ? pt.exports = Ut() : pt.exports = Dt()), pt.exports;
|
|
285
283
|
}
|
|
286
|
-
var r =
|
|
287
|
-
const
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
284
|
+
var r = Yt();
|
|
285
|
+
const W = "A-Za-z0-9_", z = `[${W}]`, A = "[\\s\\S]", R = "\\[([^\\[\\]]+)\\]", Tt = {
|
|
286
|
+
nonCompat: [
|
|
287
|
+
{
|
|
288
|
+
type: "strong",
|
|
289
|
+
scope: "unconstrained",
|
|
290
|
+
rx: new RegExp(
|
|
291
|
+
`\\\\?(?:${R})?\\*\\*(${A}+?)\\*\\*`,
|
|
292
|
+
"m"
|
|
293
|
+
)
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
type: "strong",
|
|
297
|
+
scope: "constrained",
|
|
298
|
+
rx: new RegExp(
|
|
299
|
+
`(^|[^${W};:}])(?:${R})?\\*(\\S|\\S${A}*?\\S)\\*(?!${z})`,
|
|
300
|
+
"m"
|
|
301
|
+
)
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
type: "double",
|
|
305
|
+
scope: "constrained",
|
|
306
|
+
rx: new RegExp(
|
|
307
|
+
`(^|[^${W};:}])(?:${R})?"\`(\\S|\\S${A}*?\\S)\`"(?!${z})`,
|
|
308
|
+
"m"
|
|
309
|
+
)
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
type: "single",
|
|
313
|
+
scope: "constrained",
|
|
314
|
+
rx: new RegExp(
|
|
315
|
+
`(^|[^${W};:\`}])(?:${R})?'\`(\\S|\\S${A}*?\\S)\`'(?!${z})`,
|
|
316
|
+
"m"
|
|
317
|
+
)
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
type: "monospaced",
|
|
321
|
+
scope: "unconstrained",
|
|
322
|
+
rx: new RegExp(
|
|
323
|
+
`\\\\?(?:${R})?\`\`(${A}+?)\`\``,
|
|
324
|
+
"m"
|
|
325
|
+
)
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
type: "monospaced",
|
|
329
|
+
scope: "constrained",
|
|
330
|
+
rx: new RegExp(
|
|
331
|
+
`(^|[^${W};:"'\`}])(?:${R})?\`(\\S|\\S${A}*?\\S)\`(?!["'\`${W}])`,
|
|
332
|
+
"m"
|
|
333
|
+
)
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
type: "emphasis",
|
|
337
|
+
scope: "unconstrained",
|
|
338
|
+
rx: new RegExp(
|
|
339
|
+
`\\\\?(?:${R})?__(${A}+?)__`,
|
|
340
|
+
"m"
|
|
341
|
+
)
|
|
342
|
+
},
|
|
291
343
|
{
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
344
|
+
type: "emphasis",
|
|
345
|
+
scope: "constrained",
|
|
346
|
+
rx: new RegExp(
|
|
347
|
+
`(^|[^${W};:}])(?:${R})?_(\\S|\\S${A}*?\\S)_(?!${z})`,
|
|
348
|
+
"m"
|
|
349
|
+
)
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
type: "mark",
|
|
353
|
+
scope: "unconstrained",
|
|
354
|
+
rx: new RegExp(
|
|
355
|
+
`\\\\?(?:${R})?##(${A}+?)##`,
|
|
356
|
+
"m"
|
|
357
|
+
)
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
type: "mark",
|
|
361
|
+
scope: "constrained",
|
|
362
|
+
rx: new RegExp(
|
|
363
|
+
`(^|[^${W}&;:}])(?:${R})?#(\\S|\\S${A}*?\\S)#(?!${z})`,
|
|
364
|
+
"m"
|
|
365
|
+
)
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
type: "superscript",
|
|
369
|
+
scope: "unconstrained",
|
|
370
|
+
rx: /\\?(?:\[([^\[\]]+)\])?\^(\S+?)\^/
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
type: "subscript",
|
|
374
|
+
scope: "unconstrained",
|
|
375
|
+
rx: /\\?(?:\[([^\[\]]+)\])?~(\S+?)~/
|
|
302
376
|
}
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
const t = e.attributes.start, s = e.attributes.end, n = (t || s) && `#t=${t || ""}` + s ? `,${s}` : "";
|
|
306
|
-
return /* @__PURE__ */ r.jsxs(
|
|
307
|
-
"div",
|
|
377
|
+
],
|
|
378
|
+
compat: [
|
|
308
379
|
{
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
380
|
+
type: "strong",
|
|
381
|
+
scope: "unconstrained",
|
|
382
|
+
rx: new RegExp(
|
|
383
|
+
`\\\\?(?:${R})?\\*\\*(${A}+?)\\*\\*`,
|
|
384
|
+
"m"
|
|
385
|
+
)
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
type: "strong",
|
|
389
|
+
scope: "constrained",
|
|
390
|
+
rx: new RegExp(
|
|
391
|
+
`(^|[^${W};:}])(?:${R})?\\*(\\S|\\S${A}*?\\S)\\*(?!${z})`,
|
|
392
|
+
"m"
|
|
393
|
+
)
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
type: "double",
|
|
397
|
+
scope: "constrained",
|
|
398
|
+
rx: new RegExp(
|
|
399
|
+
`(^|[^${W};:}])(?:${R})?\`\`(\\S|\\S${A}*?\\S)''(?!${z})`,
|
|
400
|
+
"m"
|
|
401
|
+
)
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
type: "emphasis",
|
|
405
|
+
scope: "constrained",
|
|
406
|
+
rx: new RegExp(
|
|
407
|
+
`(^|[^${W};:}])(?:${R})?'(\\S|\\S${A}*?\\S)'(?!${z})`,
|
|
408
|
+
"m"
|
|
409
|
+
)
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
type: "monospaced",
|
|
413
|
+
scope: "unconstrained",
|
|
414
|
+
rx: new RegExp(
|
|
415
|
+
`\\\\?(?:${R})?\\+\\+(${A}+?)\\+\\+`,
|
|
416
|
+
"m"
|
|
417
|
+
)
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
type: "monospaced",
|
|
421
|
+
scope: "constrained",
|
|
422
|
+
rx: new RegExp(
|
|
423
|
+
`(^|[^${W};:}])(?:${R})?\\+(\\S|\\S${A}*?\\S)\\+(?!${z})`,
|
|
424
|
+
"m"
|
|
425
|
+
)
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
type: "single",
|
|
429
|
+
scope: "constrained",
|
|
430
|
+
rx: new RegExp(
|
|
431
|
+
`(^|[^${W};:}])(?:${R})?\`(\\S|\\S${A}*?\\S)'(?!${z})`,
|
|
432
|
+
"m"
|
|
433
|
+
)
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
type: "emphasis",
|
|
437
|
+
scope: "unconstrained",
|
|
438
|
+
rx: new RegExp(
|
|
439
|
+
`\\\\?(?:${R})?__(${A}+?)__`,
|
|
440
|
+
"m"
|
|
441
|
+
)
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
type: "emphasis",
|
|
445
|
+
scope: "constrained",
|
|
446
|
+
rx: new RegExp(
|
|
447
|
+
`(^|[^${W};:}])(?:${R})?_(\\S|\\S${A}*?\\S)_(?!${z})`,
|
|
448
|
+
"m"
|
|
449
|
+
)
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
type: "mark",
|
|
453
|
+
scope: "unconstrained",
|
|
454
|
+
rx: new RegExp(
|
|
455
|
+
`\\\\?(?:${R})?##(${A}+?)##`,
|
|
456
|
+
"m"
|
|
457
|
+
)
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
type: "mark",
|
|
461
|
+
scope: "constrained",
|
|
462
|
+
rx: new RegExp(
|
|
463
|
+
`(^|[^${W}&;:}])(?:${R})?#(\\S|\\S${A}*?\\S)#(?!${z})`,
|
|
464
|
+
"m"
|
|
465
|
+
)
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
type: "superscript",
|
|
469
|
+
scope: "unconstrained",
|
|
470
|
+
rx: /\\?(?:\[([^\[\]]+)\])?\^(\S+?)\^/
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
type: "subscript",
|
|
474
|
+
scope: "unconstrained",
|
|
475
|
+
rx: /\\?(?:\[([^\[\]]+)\])?~(\S+?)~/
|
|
476
|
+
}
|
|
477
|
+
]
|
|
478
|
+
}, Vt = /[<&>]/g, kt = {
|
|
479
|
+
false: /[*_\x60#^~]/,
|
|
480
|
+
true: /[*'_+#^~]/
|
|
481
|
+
}, Zt = {
|
|
482
|
+
">": ">",
|
|
483
|
+
"<": "<",
|
|
484
|
+
"&": "&"
|
|
485
|
+
};
|
|
486
|
+
function Qt() {
|
|
487
|
+
return { footnoteIndex: 0, footnotesById: /* @__PURE__ */ new Map() };
|
|
488
|
+
}
|
|
489
|
+
function Gt(t, e, s) {
|
|
490
|
+
const n = t.get(e);
|
|
491
|
+
let i;
|
|
492
|
+
return n === void 0 ? s !== void 0 && s !== "" ? i = /^-?\d+$/.test(s) ? parseInt(s, 10) : s : i = 1 : typeof n == "number" ? i = n + 1 : i = String.fromCharCode(n.charCodeAt(n.length - 1) + 1), t.set(e, i), i;
|
|
493
|
+
}
|
|
494
|
+
function K(t) {
|
|
495
|
+
return `${t}`;
|
|
496
|
+
}
|
|
497
|
+
function It(t) {
|
|
498
|
+
return encodeURIComponent(t).replace(/%20/g, "+");
|
|
499
|
+
}
|
|
500
|
+
function Jt(t) {
|
|
501
|
+
const e = {};
|
|
502
|
+
if (!t) return e;
|
|
503
|
+
const s = [];
|
|
504
|
+
for (const n of t.split(",")) {
|
|
505
|
+
const i = n.trim(), l = i.indexOf("=");
|
|
506
|
+
if (l >= 0) {
|
|
507
|
+
const a = i.slice(0, l).trim();
|
|
508
|
+
let c = i.slice(l + 1).trim();
|
|
509
|
+
(c.startsWith('"') && c.endsWith('"') || c.startsWith("'") && c.endsWith("'")) && (c = c.slice(1, -1)), e[a] = c;
|
|
510
|
+
} else
|
|
511
|
+
s.push(i);
|
|
512
|
+
}
|
|
513
|
+
return s[0] && !e.alt && (e.alt = s[0]), s[1] && !e.width && (e.width = s[1]), s[2] && !e.height && (e.height = s[2]), e;
|
|
514
|
+
}
|
|
515
|
+
function Xt(t) {
|
|
516
|
+
const e = t.trim();
|
|
517
|
+
if (e.length <= 1) return [e];
|
|
518
|
+
const s = e.indexOf(",", 1), n = e.indexOf("+", 1);
|
|
519
|
+
let i;
|
|
520
|
+
if (s >= 0 && n >= 0)
|
|
521
|
+
i = Math.min(s, n);
|
|
522
|
+
else if (s >= 0)
|
|
523
|
+
i = s;
|
|
524
|
+
else if (n >= 0)
|
|
525
|
+
i = n;
|
|
526
|
+
else
|
|
527
|
+
return [e];
|
|
528
|
+
const l = e[i];
|
|
529
|
+
if (e.endsWith(l)) {
|
|
530
|
+
const a = e.slice(0, -1).split(l).map((c) => c.trim());
|
|
531
|
+
return a[a.length - 1] = a[a.length - 1] + l, a;
|
|
532
|
+
}
|
|
533
|
+
return e.split(l).map((a) => a.trim());
|
|
534
|
+
}
|
|
535
|
+
function Kt(t) {
|
|
536
|
+
return t.replace(/^.*\//, "").replace(/\.[^.]+$/, "").replace(/[_\-]/g, " ");
|
|
537
|
+
}
|
|
538
|
+
function te(t) {
|
|
539
|
+
const e = {};
|
|
540
|
+
if (!t) return e;
|
|
541
|
+
const s = [];
|
|
542
|
+
for (const n of t.split(",")) {
|
|
543
|
+
const i = n.trim(), l = i.indexOf("=");
|
|
544
|
+
if (l >= 0) {
|
|
545
|
+
const a = i.slice(0, l).trim();
|
|
546
|
+
let c = i.slice(l + 1).trim();
|
|
547
|
+
(c.startsWith('"') && c.endsWith('"') || c.startsWith("'") && c.endsWith("'")) && (c = c.slice(1, -1)), e[a] = c;
|
|
548
|
+
} else
|
|
549
|
+
s.push(i);
|
|
550
|
+
}
|
|
551
|
+
return s[0] && !e.size && (e.size = s[0]), e;
|
|
552
|
+
}
|
|
553
|
+
function ee(t) {
|
|
554
|
+
if (!t) return {};
|
|
555
|
+
const e = {}, s = [];
|
|
556
|
+
for (const n of t.split(",")) {
|
|
557
|
+
const i = n.trim(), l = i.indexOf("=");
|
|
558
|
+
if (l >= 0) {
|
|
559
|
+
const a = i.slice(0, l).trim();
|
|
560
|
+
let c = i.slice(l + 1).trim();
|
|
561
|
+
(c.startsWith('"') && c.endsWith('"') || c.startsWith("'") && c.endsWith("'")) && (c = c.slice(1, -1)), e[a] = c;
|
|
562
|
+
} else
|
|
563
|
+
s.push(i);
|
|
564
|
+
}
|
|
565
|
+
return s[0] && (e.text = s[0]), s[1] && (e.subject = s[1]), s[2] && (e.body = s[2]), e;
|
|
566
|
+
}
|
|
567
|
+
function Lt(t) {
|
|
568
|
+
if (!t) return {};
|
|
569
|
+
const e = t.split(",", 1)[0].trim();
|
|
570
|
+
if (!e) return {};
|
|
571
|
+
if (e.includes("=")) {
|
|
572
|
+
const s = se(t);
|
|
573
|
+
return {
|
|
574
|
+
...s.id ? { id: s.id } : {},
|
|
575
|
+
...s.role ? { role: s.role } : {}
|
|
576
|
+
};
|
|
577
|
+
}
|
|
578
|
+
if (e.startsWith(".") || e.startsWith("#")) {
|
|
579
|
+
let s;
|
|
580
|
+
const n = [], i = e.match(/([.#])([^.#]*)/g) || [];
|
|
581
|
+
for (const l of i) {
|
|
582
|
+
const a = l[0], c = l.slice(1).trim();
|
|
583
|
+
c && (a === "#" ? s = c : n.push(c));
|
|
324
584
|
}
|
|
585
|
+
return {
|
|
586
|
+
...s ? { id: s } : {},
|
|
587
|
+
...n.length ? { role: n.join(" ") } : {}
|
|
588
|
+
};
|
|
589
|
+
}
|
|
590
|
+
return { role: e };
|
|
591
|
+
}
|
|
592
|
+
function se(t) {
|
|
593
|
+
const e = {};
|
|
594
|
+
if (!t) return e;
|
|
595
|
+
const s = t.split(",");
|
|
596
|
+
let n = 0;
|
|
597
|
+
for (let i = 0; i < s.length; i++) {
|
|
598
|
+
const l = s[i].trim(), a = l.indexOf("=");
|
|
599
|
+
if (a >= 0) {
|
|
600
|
+
const c = l.slice(0, a).trim();
|
|
601
|
+
let m = l.slice(a + 1).trim();
|
|
602
|
+
m.startsWith('"') && m.endsWith('"') && (m = m.slice(1, -1)), m.startsWith("'") && m.endsWith("'") && (m = m.slice(1, -1)), e[c] = m;
|
|
603
|
+
} else {
|
|
604
|
+
switch (n) {
|
|
605
|
+
case 0:
|
|
606
|
+
e.text = l;
|
|
607
|
+
break;
|
|
608
|
+
case 1:
|
|
609
|
+
e.id = l;
|
|
610
|
+
break;
|
|
611
|
+
case 2:
|
|
612
|
+
e.role = l;
|
|
613
|
+
break;
|
|
614
|
+
default:
|
|
615
|
+
e[`${n}`] = l;
|
|
616
|
+
break;
|
|
617
|
+
}
|
|
618
|
+
n++;
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
return e;
|
|
622
|
+
}
|
|
623
|
+
function Ct(t) {
|
|
624
|
+
return t.replace(Vt, (e) => Zt[e] || e);
|
|
625
|
+
}
|
|
626
|
+
function re(t, e, s) {
|
|
627
|
+
if (s && t.indexOf("{counter") !== -1) {
|
|
628
|
+
s.counters || (s.counters = /* @__PURE__ */ new Map());
|
|
629
|
+
const n = s.counters;
|
|
630
|
+
t = t.replace(
|
|
631
|
+
/(\\)?\{(counter2?):([\w-]+)(?::([^}]*))?\}/g,
|
|
632
|
+
(i, l, a, c, m) => {
|
|
633
|
+
if (l) return i.slice(1);
|
|
634
|
+
const x = Gt(n, c, m);
|
|
635
|
+
return e[c] = String(x), a === "counter2" ? "" : String(x);
|
|
636
|
+
}
|
|
637
|
+
);
|
|
638
|
+
}
|
|
639
|
+
return t.replace(/(\\)?\{(\w[\w-]*)\}/g, (n, i, l) => {
|
|
640
|
+
if (i) return "{" + l + "}";
|
|
641
|
+
const a = l.toLowerCase();
|
|
642
|
+
return Object.prototype.hasOwnProperty.call(At, a) ? At[a] : Object.prototype.hasOwnProperty.call(e, l) ? e[l] : Object.prototype.hasOwnProperty.call(e, a) ? e[a] : n;
|
|
643
|
+
});
|
|
644
|
+
}
|
|
645
|
+
const At = {
|
|
646
|
+
empty: "",
|
|
647
|
+
sp: " ",
|
|
648
|
+
nbsp: " ",
|
|
649
|
+
zwsp: "​",
|
|
650
|
+
wj: "⁠",
|
|
651
|
+
apos: "'",
|
|
652
|
+
quot: """,
|
|
653
|
+
lsquo: "‘",
|
|
654
|
+
rsquo: "’",
|
|
655
|
+
ldquo: "“",
|
|
656
|
+
rdquo: "”",
|
|
657
|
+
deg: "°",
|
|
658
|
+
plus: "+",
|
|
659
|
+
brvbar: "¦",
|
|
660
|
+
amp: "&",
|
|
661
|
+
lt: "<",
|
|
662
|
+
gt: ">",
|
|
663
|
+
startsb: "[",
|
|
664
|
+
endsb: "]",
|
|
665
|
+
vbar: "|",
|
|
666
|
+
caret: "^",
|
|
667
|
+
asterisk: "*",
|
|
668
|
+
tilde: "~",
|
|
669
|
+
backslash: "\\",
|
|
670
|
+
backtick: "`",
|
|
671
|
+
"two-colons": "::",
|
|
672
|
+
"two-semicolons": ";;",
|
|
673
|
+
cpp: "C++"
|
|
674
|
+
};
|
|
675
|
+
function ne(t) {
|
|
676
|
+
function e(s, n, i) {
|
|
677
|
+
return t.replace(s, (l, ...a) => l.includes("\\") ? l.replace("\\", "") : n);
|
|
678
|
+
}
|
|
679
|
+
return t = e(/\\?\(C\)/g, "©"), t = e(/\\?\(R\)/g, "®"), t = e(/\\?\(TM\)/g, "™"), t = t.replace(/(^|[ \n]|\\)--([ \n]|$)/g, (s) => s.includes("\\") ? s.replace("\\", "") : " — "), t = t.replace(/([\p{L}\p{N}_])\\?--(?=[\p{L}\p{N}_])/gu, (s, n) => s.includes("\\") ? s.replace("\\", "") : n + "—​"), t = e(/\\?\.\.\./g, "…​"), t = t.replace(new RegExp("([\\p{L}\\p{N}])\\\\?'(?=\\p{L})", "gu"), (s, n) => s.includes("\\") ? s.replace("\\", "") : n + "’"), t = t.replace(/\\?`'/g, (s) => s.startsWith("\\") ? s.slice(1) : "’"), t = e(/\\?->/g, "→"), t = e(/\\?=>/g, "⇒"), t = e(/\\?<-/g, "←"), t = e(/\\?<=/g, "⇐"), t = t.replace(
|
|
680
|
+
/(\\)?&([a-zA-Z][a-zA-Z]+\d{0,2};|#\d{1,7};|#x[\da-fA-F]{1,6};)/g,
|
|
681
|
+
(s, n, i) => n ? "&" + i : "&" + i
|
|
682
|
+
), t;
|
|
683
|
+
}
|
|
684
|
+
function Mt(t, e) {
|
|
685
|
+
const s = t.length;
|
|
686
|
+
return t.push(e), "" + s + "";
|
|
687
|
+
}
|
|
688
|
+
function Pt(t, e, s = /* @__PURE__ */ new Set()) {
|
|
689
|
+
const n = [], i = /\x01(\d+)\x02/g;
|
|
690
|
+
let l = 0, a;
|
|
691
|
+
for (; (a = i.exec(t)) !== null; ) {
|
|
692
|
+
const m = t.slice(l, a.index);
|
|
693
|
+
m && n.push({ type: "text", text: m });
|
|
694
|
+
const x = parseInt(a[1], 10), g = e[x];
|
|
695
|
+
if (g && !s.has(x)) {
|
|
696
|
+
s.add(x);
|
|
697
|
+
for (const b of g)
|
|
698
|
+
n.push(Ht(b, e, s));
|
|
699
|
+
s.delete(x);
|
|
700
|
+
}
|
|
701
|
+
l = a.index + a[0].length;
|
|
702
|
+
}
|
|
703
|
+
const c = t.slice(l);
|
|
704
|
+
return c && n.push({ type: "text", text: c }), n.length === 0 && t.length > 0 && n.push({ type: "text", text: t }), n;
|
|
705
|
+
}
|
|
706
|
+
function Ht(t, e, s = /* @__PURE__ */ new Set()) {
|
|
707
|
+
if (t.type === "text") return t;
|
|
708
|
+
if (t.type === "quoted" || t.type === "anchor" || t.type === "footnote" || t.type === "button") {
|
|
709
|
+
const n = [];
|
|
710
|
+
for (const i of t.text)
|
|
711
|
+
if (i.type === "text" && i.text.indexOf("") !== -1) {
|
|
712
|
+
const l = Pt(i.text, e, s);
|
|
713
|
+
for (const a of l) n.push(a);
|
|
714
|
+
} else
|
|
715
|
+
n.push(Ht(i, e, s));
|
|
716
|
+
return { ...t, text: n };
|
|
717
|
+
}
|
|
718
|
+
return t;
|
|
719
|
+
}
|
|
720
|
+
function G(t, e = {}) {
|
|
721
|
+
const s = e.compatMode ?? !1, n = e.attributes ?? {}, i = e.state ?? Qt(), l = s ? Tt.compat : Tt.nonCompat;
|
|
722
|
+
let a = t;
|
|
723
|
+
const c = s ? kt.true : kt.false, m = [], x = [];
|
|
724
|
+
a = ie(a, m, s), e._alreadyEscaped || (a = Ct(a)), (a.match(/\*/) || a.match(/_/) || c.test(a)) && (a = oe(a, l, x, i)), a = re(a, n, i), a = ne(a), a = ue(
|
|
725
|
+
a,
|
|
726
|
+
n,
|
|
727
|
+
s,
|
|
728
|
+
x,
|
|
729
|
+
i,
|
|
730
|
+
e._quoted ?? !1
|
|
325
731
|
);
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
]
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
732
|
+
let g = Pt(a, x);
|
|
733
|
+
return g = fe(g, n), g = Wt(g, m, s, i), g;
|
|
734
|
+
}
|
|
735
|
+
function ie(t, e, s) {
|
|
736
|
+
return t = le(t, e, s), t = ae(t, e, s), t;
|
|
737
|
+
}
|
|
738
|
+
function le(t, e, s) {
|
|
739
|
+
let n = "", i = 0;
|
|
740
|
+
const l = t.length, a = s ? null : /^\+\+\+([\s\S]*?)\+\+\+/, c = s ? null : /^(?:\[([^\[\]]+)\])?\+\+([\s\S]+?)\+\+/, m = /^pass:([a-z]+(?:,[a-z-]+)*)?\[(|[\s\S]*?[^\\])\]/, x = /^(stem|(?:latex|ascii)math):([a-z]+(?:,[a-z-]+)*)?\[([\s\S]*?[^\\])\]/;
|
|
741
|
+
for (; i < l; ) {
|
|
742
|
+
if (t[i] === "$" && t[i + 1] === "$") {
|
|
743
|
+
const g = t.indexOf("$$", i + 2);
|
|
744
|
+
if (g >= 0) {
|
|
745
|
+
const b = t.slice(i + 2, g), u = e.length;
|
|
746
|
+
e.push({
|
|
747
|
+
text: b,
|
|
748
|
+
type: "unquoted",
|
|
749
|
+
subs: ["specialcharacters"]
|
|
750
|
+
}), n += K(u), i = g + 2;
|
|
751
|
+
continue;
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
if (t[i] === "+" && a) {
|
|
755
|
+
const g = t.slice(i).match(a);
|
|
756
|
+
if (g) {
|
|
757
|
+
const b = e.length;
|
|
758
|
+
e.push({
|
|
759
|
+
text: g[1],
|
|
760
|
+
type: "unquoted",
|
|
761
|
+
subs: []
|
|
762
|
+
}), n += K(b), i += g[0].length;
|
|
763
|
+
continue;
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
if ((t[i] === "+" || t[i] === "[") && c) {
|
|
767
|
+
const g = t.slice(i);
|
|
768
|
+
if (!g.startsWith("+++")) {
|
|
769
|
+
const b = g.match(c);
|
|
770
|
+
if (b) {
|
|
771
|
+
const u = b[1] || "", d = b[2], h = e.length, j = Lt(u);
|
|
772
|
+
e.push({
|
|
773
|
+
text: d,
|
|
774
|
+
type: "unquoted",
|
|
775
|
+
subs: ["specialcharacters"],
|
|
776
|
+
attributes: {
|
|
777
|
+
...j.id ? { id: j.id } : {},
|
|
778
|
+
...j.role ? { role: j.role } : {}
|
|
779
|
+
}
|
|
780
|
+
}), n += K(h), i += b[0].length;
|
|
781
|
+
continue;
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
if (t[i] === "p" && t.slice(i, i + 5) === "pass:") {
|
|
786
|
+
const g = t.slice(i).match(m);
|
|
787
|
+
if (g) {
|
|
788
|
+
const b = g[1] ? ce(g[1]) : [], u = g[2], d = e.length;
|
|
789
|
+
e.push({
|
|
790
|
+
text: u,
|
|
791
|
+
type: "unquoted",
|
|
792
|
+
subs: b
|
|
793
|
+
}), n += K(d), i += g[0].length;
|
|
794
|
+
continue;
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
if (t[i] === "s" || t[i] === "a" || t[i] === "l") {
|
|
798
|
+
const g = t.slice(i).match(x);
|
|
799
|
+
if (g) {
|
|
800
|
+
const b = g[3], u = e.length, d = g[1] === "asciimath" ? "asciimath" : "latexmath";
|
|
801
|
+
e.push({
|
|
802
|
+
text: b,
|
|
803
|
+
type: d,
|
|
804
|
+
subs: ["specialcharacters"]
|
|
805
|
+
}), n += K(u), i += g[0].length;
|
|
806
|
+
continue;
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
n += t[i], i++;
|
|
810
|
+
}
|
|
811
|
+
return n;
|
|
812
|
+
}
|
|
813
|
+
function ae(t, e, s) {
|
|
814
|
+
let n = "", i = 0;
|
|
815
|
+
const l = t.length, a = s ? /^(?:\[([^\[\]]+)\])?(`)([^`]|[^`][\s\S]*?[^`])\2(?![A-Za-z0-9_])/ : /^(?:\[([^\[\]]+)\])?(\+)(\S|\S[\s\S]*?\S)\2(?![A-Za-z0-9_])/, c = /[A-Za-z0-9_;:\\]/;
|
|
816
|
+
for (; i < l; ) {
|
|
817
|
+
if ((s ? t[i] === "`" : t[i] === "+") && (i === 0 || !c.test(t[i - 1]))) {
|
|
818
|
+
const m = t.slice(i).match(a);
|
|
819
|
+
if (m) {
|
|
820
|
+
const x = m[3], g = e.length;
|
|
821
|
+
e.push({
|
|
822
|
+
text: x,
|
|
823
|
+
type: s ? "monospaced" : "unquoted",
|
|
824
|
+
subs: ["specialcharacters"]
|
|
825
|
+
}), n += K(g), i += m[0].length;
|
|
826
|
+
continue;
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
n += t[i], i++;
|
|
830
|
+
}
|
|
831
|
+
return n;
|
|
832
|
+
}
|
|
833
|
+
function ce(t) {
|
|
834
|
+
const e = {
|
|
835
|
+
a: "attributes",
|
|
836
|
+
m: "macros",
|
|
837
|
+
n: "normal",
|
|
838
|
+
p: "post_replacements",
|
|
839
|
+
q: "quotes",
|
|
840
|
+
r: "replacements",
|
|
841
|
+
c: "specialcharacters",
|
|
842
|
+
v: "verbatim"
|
|
843
|
+
}, s = [];
|
|
844
|
+
for (const n of t.split(",")) {
|
|
845
|
+
const i = n.trim(), l = e[i];
|
|
846
|
+
l === "normal" ? s.push(
|
|
847
|
+
"specialcharacters",
|
|
848
|
+
"quotes",
|
|
849
|
+
"attributes",
|
|
850
|
+
"replacements",
|
|
851
|
+
"macros",
|
|
852
|
+
"post_replacements"
|
|
853
|
+
) : l && s.push(l);
|
|
854
|
+
}
|
|
855
|
+
return s.length === 0 && s.push("specialcharacters"), s;
|
|
856
|
+
}
|
|
857
|
+
function oe(t, e, s, n) {
|
|
858
|
+
for (const i of e) {
|
|
859
|
+
let l = "", a = t;
|
|
860
|
+
const c = i.scope === "constrained";
|
|
861
|
+
for (; a.length > 0; ) {
|
|
862
|
+
const m = i.rx.exec(a);
|
|
863
|
+
if (!m) {
|
|
864
|
+
l += a;
|
|
865
|
+
break;
|
|
866
|
+
}
|
|
867
|
+
const x = m[0], g = m.index;
|
|
868
|
+
l += a.slice(0, g);
|
|
869
|
+
let b = "", u = "", d = "";
|
|
870
|
+
c ? (b = m[1] || "", u = m[2] || "", d = m[3] || "") : (u = m[1] || "", d = m[2] || "");
|
|
871
|
+
const h = x.startsWith("\\");
|
|
872
|
+
let j = 0;
|
|
873
|
+
if (!h && i.type === "monospaced" && !c && d.startsWith("`") && a[g + x.length] === "`" && (d = d + "`", j = 1), h)
|
|
874
|
+
l += x.slice(1);
|
|
875
|
+
else {
|
|
876
|
+
b && (l += b);
|
|
877
|
+
let $, _;
|
|
878
|
+
if (u) {
|
|
879
|
+
const T = Lt(u);
|
|
880
|
+
$ = T.role, _ = T.id;
|
|
881
|
+
}
|
|
882
|
+
const o = d.replace(/\\\]/g, "]"), f = G(o, {
|
|
883
|
+
compatMode: !1,
|
|
884
|
+
state: n,
|
|
885
|
+
_alreadyEscaped: !0,
|
|
886
|
+
_quoted: !0
|
|
887
|
+
}), v = {
|
|
888
|
+
type: "quoted",
|
|
889
|
+
subtype: i.type,
|
|
890
|
+
text: f,
|
|
891
|
+
..._ ? { id: _ } : {},
|
|
892
|
+
...$ ? { role: $ } : {}
|
|
893
|
+
};
|
|
894
|
+
l += Mt(s, [v]);
|
|
895
|
+
}
|
|
896
|
+
a = a.slice(g + x.length + j);
|
|
897
|
+
}
|
|
898
|
+
t = l;
|
|
899
|
+
}
|
|
900
|
+
return t;
|
|
901
|
+
}
|
|
902
|
+
function D(t) {
|
|
903
|
+
return t ? [{ type: "text", text: t }] : [];
|
|
904
|
+
}
|
|
905
|
+
function ue(t, e, s, n, i, l = !1) {
|
|
906
|
+
let a = t;
|
|
907
|
+
const c = Object.prototype.hasOwnProperty.call(e, "experimental"), m = Object.prototype.hasOwnProperty.call(e, "icons") ? e.icons : void 0, x = m === void 0 ? "text" : m === "font" ? "font" : "image", g = [
|
|
908
|
+
{
|
|
909
|
+
rx: /(\\)?(kbd|btn):\[([\s\S]*?[^\\])\]/,
|
|
910
|
+
handler: (u) => u[1] || !c ? null : u[2] === "kbd" ? {
|
|
911
|
+
type: "kbd",
|
|
912
|
+
keys: Xt(u[3])
|
|
913
|
+
} : { type: "button", text: D(u[3]) }
|
|
914
|
+
},
|
|
915
|
+
{
|
|
916
|
+
rx: /\\?menu:(\w|[&\w][^\n\[]*[^\s\[])\[ *(?:|([\s\S]*?[^\\]))\]/,
|
|
917
|
+
handler: (u) => u[0].startsWith("\\") || !c ? null : { type: "menu", items: u[2] ? [u[1], ...u[2].split(/>|>/).map((h) => h.trim())] : [u[1]] }
|
|
918
|
+
},
|
|
919
|
+
{
|
|
920
|
+
rx: /\\?(image|icon):([^:\s\[](?:[^\n\[]*[^\s\[])?)\[(|[\s\S]*?[^\\])\]/,
|
|
921
|
+
handler: (u) => {
|
|
922
|
+
if (u[0].startsWith("\\")) return null;
|
|
923
|
+
const d = u[1] === "icon", h = d ? te(u[3]) : Jt(u[3]), j = u[2], $ = h.alt || (d ? j : Kt(j));
|
|
924
|
+
return {
|
|
925
|
+
type: "image",
|
|
926
|
+
subtype: d ? "icon" : "image",
|
|
927
|
+
target: j,
|
|
928
|
+
alt: $,
|
|
929
|
+
width: h.width,
|
|
930
|
+
height: h.height,
|
|
931
|
+
id: h.id,
|
|
932
|
+
role: h.role,
|
|
933
|
+
title: h.title,
|
|
934
|
+
...d ? { iconType: x } : {}
|
|
935
|
+
};
|
|
936
|
+
}
|
|
937
|
+
},
|
|
938
|
+
{
|
|
939
|
+
rx: new RegExp(
|
|
940
|
+
String.raw`\\?(?:(indexterm2?):\[([\s\S]*?[^\\])\]|\(\(([\s\S]+?)\)\)(?!\)))`
|
|
941
|
+
),
|
|
942
|
+
handler: (u) => {
|
|
943
|
+
if (u[0].startsWith("\\")) return null;
|
|
944
|
+
const h = (u[2] || u[3] || "").split(",").map((_) => _.trim()), $ = (u[1] ? u[1].startsWith("indexterm2") : u[0].startsWith("((")) === !0;
|
|
945
|
+
return { type: "indexterm", terms: h, visible: $ };
|
|
946
|
+
}
|
|
947
|
+
},
|
|
948
|
+
{
|
|
949
|
+
// The bibref macro must run BEFORE the URL/link macros in macroRegexes:
|
|
950
|
+
// otherwise the URL macro's leading-context capture group (which
|
|
951
|
+
// includes `]`) eats the third `]` of `[[[id]]]https://...` patterns
|
|
952
|
+
// and leaves only `[[id]]` for the ref macro to match. Ids accept
|
|
953
|
+
// any Unicode letter/digit — RFD citations occasionally use
|
|
954
|
+
// non-ASCII chars (e.g. `lipiński-2011`).
|
|
955
|
+
// A bibliography anchor id must be a valid XML name: it starts with a
|
|
956
|
+
// letter or `_` (NOT a digit). `[[[22-update]]]` is therefore left as
|
|
957
|
+
// literal text by stock, while `[[[lipiński-2011]]]` (Unicode letter)
|
|
958
|
+
// is a valid bibref.
|
|
959
|
+
rx: /\[\[\[([\p{L}_][\p{L}\p{N}_\-:.]*)(?:, *([\s\S]+?))?\]\]\]/u,
|
|
960
|
+
handler: (u) => ({
|
|
961
|
+
type: "anchor",
|
|
962
|
+
subtype: "bibref",
|
|
963
|
+
text: D(u[2] || u[1]),
|
|
964
|
+
target: u[1]
|
|
965
|
+
})
|
|
966
|
+
},
|
|
967
|
+
{
|
|
968
|
+
// The target must not start with `:` — `link::https://…` is malformed
|
|
969
|
+
// (double colon) and stock asciidoctor leaves it literal rather than
|
|
970
|
+
// producing a link whose href begins with `:`.
|
|
971
|
+
rx: /\\?(?:link|(mailto)):\s*(|[^\s\[:][^\s\[]*)\[(|[\s\S]*?[^\\])\]/,
|
|
972
|
+
handler: (u) => {
|
|
973
|
+
if (u[0].startsWith("\\")) return null;
|
|
974
|
+
const d = u[1] === "mailto", h = u[3] || "";
|
|
975
|
+
if (d) {
|
|
976
|
+
const o = ee(h), f = u[2];
|
|
977
|
+
let v = "mailto:" + f;
|
|
978
|
+
const T = [];
|
|
979
|
+
return o.subject && T.push(`subject=${It(o.subject)}`), o.body && T.push(`body=${It(o.body)}`), T.length && (v += "?" + T.join("&")), {
|
|
980
|
+
type: "anchor",
|
|
981
|
+
subtype: "link",
|
|
982
|
+
text: o.text ? D(o.text) : [{ type: "text", text: f }],
|
|
983
|
+
target: v,
|
|
984
|
+
...o.id ? { id: o.id } : {},
|
|
985
|
+
...o.role ? { role: o.role } : {}
|
|
986
|
+
};
|
|
987
|
+
}
|
|
988
|
+
const j = u[2];
|
|
989
|
+
if (h === "")
|
|
990
|
+
return {
|
|
991
|
+
type: "anchor",
|
|
992
|
+
subtype: "link",
|
|
993
|
+
text: [{ type: "text", text: j }],
|
|
994
|
+
target: j,
|
|
995
|
+
role: "bare"
|
|
996
|
+
};
|
|
997
|
+
let $ = h, _;
|
|
998
|
+
return $.endsWith("^") && ($ = $.slice(0, -1), _ = "_blank"), {
|
|
999
|
+
type: "anchor",
|
|
1000
|
+
subtype: "link",
|
|
1001
|
+
text: D($),
|
|
1002
|
+
target: j,
|
|
1003
|
+
..._ ? { window: _ } : {}
|
|
1004
|
+
};
|
|
1005
|
+
}
|
|
1006
|
+
},
|
|
1007
|
+
{
|
|
1008
|
+
rx: new RegExp("(?<=^|\\s|<|>|[\\(\\)\\[\\];\"'`\\x02-\\x05])(\\\\?(?:https?|file|ftp|irc):\\/\\/)(?:([^\\s\\[\\]]+)\\[(|[\\s\\S]*?[^\\\\])\\]|([^\\s]+)>|([^\\s\\[\\]<]*([^\\s,.?!\\[\\]<\\)])))", "m"),
|
|
1009
|
+
handler: (u) => {
|
|
1010
|
+
if (u[1].startsWith("\\")) {
|
|
1011
|
+
const v = u[1].slice(1), T = u[2] !== void 0 ? `${u[2]}[${u[3] || ""}]` : u[4] !== void 0 ? `${u[4]}>` : u[5] || "";
|
|
1012
|
+
return [{ type: "text", text: v + T }];
|
|
1013
|
+
}
|
|
1014
|
+
const d = u[1];
|
|
1015
|
+
let h, j, $, _ = "", o;
|
|
1016
|
+
if (u[2] !== void 0) {
|
|
1017
|
+
h = d + u[2];
|
|
1018
|
+
let v = u[3] || "";
|
|
1019
|
+
v ? (v.endsWith("^") && (v = v.slice(0, -1), o = "_blank"), j = D(v)) : (j = [{ type: "text", text: h }], $ = "bare");
|
|
1020
|
+
} else if (u[4] !== void 0)
|
|
1021
|
+
h = d + u[4], j = [{ type: "text", text: h }], $ = "bare";
|
|
1022
|
+
else {
|
|
1023
|
+
h = d + (u[5] || "");
|
|
1024
|
+
const v = u[6] || "";
|
|
1025
|
+
if (v === ";" ? (h = h.slice(0, -1), h.endsWith(")") ? (h = h.slice(0, -1), _ = ");") : _ = ";") : v === ":" && (h = h.slice(0, -1), h.endsWith(")") ? (h = h.slice(0, -1), _ = "):") : _ = ":"), h === d)
|
|
1026
|
+
return [{ type: "text", text: u[0] }];
|
|
1027
|
+
j = [{ type: "text", text: h }], $ = "bare";
|
|
1028
|
+
}
|
|
1029
|
+
$ === "bare" && Object.prototype.hasOwnProperty.call(e, "hide-uri-scheme") && (j = [{ type: "text", text: h.replace(/^[a-z][a-z0-9.+-]*:\/\//i, "") }]);
|
|
1030
|
+
const f = [];
|
|
1031
|
+
return f.push({
|
|
1032
|
+
type: "anchor",
|
|
1033
|
+
subtype: "link",
|
|
1034
|
+
text: j,
|
|
1035
|
+
target: h,
|
|
1036
|
+
...$ ? { role: $ } : {},
|
|
1037
|
+
...o ? { window: o } : {}
|
|
1038
|
+
}), _ && f.push({ type: "text", text: _ }), f;
|
|
1039
|
+
}
|
|
1040
|
+
},
|
|
1041
|
+
{
|
|
1042
|
+
rx: /([\\>:/])?\w(?:&|[\w\-.%+])*@[\w][\w_\-.]*\.[a-zA-Z]{2,5}\b/,
|
|
1043
|
+
handler: (u) => {
|
|
1044
|
+
const d = u[1] || "";
|
|
1045
|
+
if (d && d !== ":" && !d.startsWith("&") || l && u.index === 0 && !d) return null;
|
|
1046
|
+
const h = u[0];
|
|
1047
|
+
return {
|
|
1048
|
+
type: "anchor",
|
|
1049
|
+
subtype: "link",
|
|
1050
|
+
text: [{ type: "text", text: h }],
|
|
1051
|
+
target: "mailto:".concat(h)
|
|
1052
|
+
};
|
|
1053
|
+
}
|
|
1054
|
+
},
|
|
1055
|
+
{
|
|
1056
|
+
rx: new RegExp(
|
|
1057
|
+
String.raw`(\\)?(?:\[\[([A-Za-z_][\w\-:.]*)(?:, *([\s\S]+?))? ?\]\]|anchor:([A-Za-z_][\w\-:.]*)\[(?:\]|([\s\S]*?[^\\])\]))`
|
|
1058
|
+
),
|
|
1059
|
+
handler: (u) => {
|
|
1060
|
+
if (u[1]) return null;
|
|
1061
|
+
const d = u[2] || u[4] || "", h = u[3] || u[5] || "";
|
|
1062
|
+
return {
|
|
1063
|
+
type: "anchor",
|
|
1064
|
+
subtype: "ref",
|
|
1065
|
+
text: D(h || d),
|
|
1066
|
+
target: d,
|
|
1067
|
+
id: d
|
|
1068
|
+
};
|
|
1069
|
+
}
|
|
1070
|
+
},
|
|
1071
|
+
{
|
|
1072
|
+
rx: new RegExp(
|
|
1073
|
+
String.raw`\\?(?:<<([\w#/.:{][\s\S]*?)>>|xref:([\w#/.:{][\s\S]*?)\[(?:\]|([\s\S]*?[^\\])\]))`
|
|
1074
|
+
),
|
|
1075
|
+
handler: (u) => {
|
|
1076
|
+
if (u[0].startsWith("\\")) return null;
|
|
1077
|
+
if (u[1] !== void 0) {
|
|
1078
|
+
const j = u[1].indexOf(","), $ = j === -1 ? u[1] : u[1].slice(0, j), o = (j === -1 ? "" : u[1].slice(j + 1).replace(/^\s+/, "")) || `[${$}]`;
|
|
1079
|
+
return {
|
|
1080
|
+
type: "anchor",
|
|
1081
|
+
subtype: "xref",
|
|
1082
|
+
text: D(o),
|
|
1083
|
+
target: $
|
|
1084
|
+
};
|
|
1085
|
+
}
|
|
1086
|
+
const d = (u[2] || "").trim(), h = (u[3] || "").trim();
|
|
1087
|
+
return {
|
|
1088
|
+
type: "anchor",
|
|
1089
|
+
subtype: "xref",
|
|
1090
|
+
text: D(h || `[${d}]`),
|
|
1091
|
+
target: d
|
|
1092
|
+
};
|
|
1093
|
+
}
|
|
1094
|
+
},
|
|
1095
|
+
{
|
|
1096
|
+
rx: /\\?footnote(?:(ref):|:([\w-]+)?)\[(?:|([\s\S]*?[^\\]))\](?!<\/a>)/,
|
|
1097
|
+
handler: (u) => {
|
|
1098
|
+
if (u[0].startsWith("\\")) return null;
|
|
1099
|
+
const d = u[2], h = u[3] || "";
|
|
1100
|
+
if (u[1] === "ref" || d && !h) {
|
|
1101
|
+
const $ = d ? i.footnotesById.get(d) : void 0;
|
|
1102
|
+
return {
|
|
1103
|
+
type: "footnote",
|
|
1104
|
+
text: [],
|
|
1105
|
+
refid: d,
|
|
1106
|
+
...$ !== void 0 ? { index: $ } : {}
|
|
1107
|
+
};
|
|
1108
|
+
}
|
|
1109
|
+
i.footnoteIndex++;
|
|
1110
|
+
const j = i.footnoteIndex;
|
|
1111
|
+
return d && i.footnotesById.set(d, j), {
|
|
1112
|
+
type: "footnote",
|
|
1113
|
+
text: D(h),
|
|
1114
|
+
...d ? { id: d } : {},
|
|
1115
|
+
index: j
|
|
1116
|
+
};
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
];
|
|
1120
|
+
let b = a;
|
|
1121
|
+
for (const { rx: u, handler: d } of g) {
|
|
1122
|
+
const h = pe(u);
|
|
1123
|
+
h.lastIndex = 0;
|
|
1124
|
+
const j = [];
|
|
1125
|
+
let $ = 0, _;
|
|
1126
|
+
for (; (_ = h.exec(b)) !== null; ) {
|
|
1127
|
+
if (_[0].length === 0) {
|
|
1128
|
+
h.lastIndex++;
|
|
1129
|
+
continue;
|
|
1130
|
+
}
|
|
1131
|
+
_.index > $ && j.push(b.slice($, _.index));
|
|
1132
|
+
const o = d(_, e);
|
|
1133
|
+
if (o) {
|
|
1134
|
+
const f = Array.isArray(o) ? o : [o];
|
|
1135
|
+
j.push(Mt(n, f));
|
|
1136
|
+
} else
|
|
1137
|
+
j.push(_[0]);
|
|
1138
|
+
$ = _.index + _[0].length;
|
|
1139
|
+
}
|
|
1140
|
+
$ < b.length && j.push(b.slice($)), b = j.join("");
|
|
1141
|
+
}
|
|
1142
|
+
return b;
|
|
1143
|
+
}
|
|
1144
|
+
const Rt = /* @__PURE__ */ new WeakMap();
|
|
1145
|
+
function pe(t) {
|
|
1146
|
+
if (t.flags.includes("g")) return t;
|
|
1147
|
+
const e = Rt.get(t);
|
|
1148
|
+
if (e) return e;
|
|
1149
|
+
const s = new RegExp(t.source, t.flags + "g");
|
|
1150
|
+
return Rt.set(t, s), s;
|
|
1151
|
+
}
|
|
1152
|
+
function Wt(t, e, s, n) {
|
|
1153
|
+
const i = /(\d+)/g;
|
|
1154
|
+
function l(c) {
|
|
1155
|
+
const m = { type: "text", text: c };
|
|
1156
|
+
if (c.indexOf("") === -1) return [m];
|
|
1157
|
+
const x = [];
|
|
1158
|
+
let g = 0;
|
|
1159
|
+
i.lastIndex = 0;
|
|
1160
|
+
let b;
|
|
1161
|
+
for (; (b = i.exec(c)) !== null; ) {
|
|
1162
|
+
b.index > g && x.push({ type: "text", text: c.slice(g, b.index) });
|
|
1163
|
+
const u = parseInt(b[1], 10), d = e[u];
|
|
1164
|
+
if (!d) {
|
|
1165
|
+
x.push({ type: "text", text: b[0] }), g = b.index + b[0].length;
|
|
1166
|
+
continue;
|
|
1167
|
+
}
|
|
1168
|
+
if (d) {
|
|
1169
|
+
let h;
|
|
1170
|
+
d.subs.length === 0 ? h = [{ type: "text", text: d.text }] : d.subs.length === 1 && d.subs[0] === "specialcharacters" ? h = [{ type: "text", text: Ct(d.text) }] : h = G(d.text, { compatMode: s, state: n }), h = Wt(h, e, s, n);
|
|
1171
|
+
const j = d.attributes ?? {}, $ = !!(j.id || j.role);
|
|
1172
|
+
d.type === "unquoted" || d.type === "normal" ? $ ? x.push({
|
|
1173
|
+
type: "quoted",
|
|
1174
|
+
subtype: "unquoted",
|
|
1175
|
+
text: h,
|
|
1176
|
+
...j.id ? { id: j.id } : {},
|
|
1177
|
+
...j.role ? { role: j.role } : {}
|
|
1178
|
+
}) : x.push(...h) : d.type === "monospaced" || d.type === "asciimath" || d.type === "latexmath" ? x.push({
|
|
1179
|
+
type: "quoted",
|
|
1180
|
+
subtype: d.type,
|
|
1181
|
+
text: h,
|
|
1182
|
+
...j.id ? { id: j.id } : {},
|
|
1183
|
+
...j.role ? { role: j.role } : {}
|
|
1184
|
+
}) : x.push(...h);
|
|
1185
|
+
}
|
|
1186
|
+
g = b.index + b[0].length;
|
|
1187
|
+
}
|
|
1188
|
+
return g < c.length && x.push({ type: "text", text: c.slice(g) }), x.length > 0 ? x : [m];
|
|
1189
|
+
}
|
|
1190
|
+
function a(c) {
|
|
1191
|
+
return c.type === "text" ? l(c.text) : c.type === "quoted" || c.type === "anchor" || c.type === "footnote" || c.type === "button" ? [{ ...c, text: c.text.flatMap(a) }] : [c];
|
|
1192
|
+
}
|
|
1193
|
+
return t.flatMap(a);
|
|
1194
|
+
}
|
|
1195
|
+
function fe(t, e) {
|
|
1196
|
+
const n = Object.prototype.hasOwnProperty.call(e, "hardbreaks") || Object.prototype.hasOwnProperty.call(e, "hardbreaks-option") ? /(?: \+)?\n/g : / \+(\n|$)/g, i = [];
|
|
1197
|
+
for (const l of t) {
|
|
1198
|
+
if (l.type !== "text") {
|
|
1199
|
+
i.push(l);
|
|
1200
|
+
continue;
|
|
1201
|
+
}
|
|
1202
|
+
const a = l.text;
|
|
1203
|
+
n.lastIndex = 0;
|
|
1204
|
+
let c = 0, m = !1, x;
|
|
1205
|
+
for (; (x = n.exec(a)) !== null; )
|
|
1206
|
+
m = !0, x.index > c && i.push({ type: "text", text: a.slice(c, x.index) }), i.push({ type: "break", subtype: "line" }), c = x.index + x[0].length;
|
|
1207
|
+
m ? c < a.length && i.push({ type: "text", text: a.slice(c) }) : i.push(l);
|
|
1208
|
+
}
|
|
1209
|
+
return i;
|
|
1210
|
+
}
|
|
1211
|
+
const xe = {
|
|
1212
|
+
monospaced: ["<code>", "</code>", !0],
|
|
1213
|
+
emphasis: ["<em>", "</em>", !0],
|
|
1214
|
+
strong: ["<strong>", "</strong>", !0],
|
|
1215
|
+
double: ["“", "”"],
|
|
1216
|
+
single: ["‘", "’"],
|
|
1217
|
+
mark: ["<mark>", "</mark>", !0],
|
|
1218
|
+
superscript: ["<sup>", "</sup>", !0],
|
|
1219
|
+
subscript: ["<sub>", "</sub>", !0],
|
|
1220
|
+
asciimath: ["\\$", "\\$"],
|
|
1221
|
+
latexmath: ["\\(", "\\)"]
|
|
1222
|
+
}, de = /^(?:[a-zA-Z][a-zA-Z]+\d{0,2}|#\d{1,7}|#x[\da-fA-F]{1,6});/;
|
|
1223
|
+
function he(t) {
|
|
1224
|
+
return t.replace(/ /g, "%20");
|
|
1225
|
+
}
|
|
1226
|
+
function L(t) {
|
|
1227
|
+
let e = "";
|
|
1228
|
+
for (let s = 0; s < t.length; s++) {
|
|
1229
|
+
const n = t[s];
|
|
1230
|
+
n === "&" ? de.test(t.slice(s + 1)) ? e += "&" : e += "&" : n === '"' ? e += """ : n === "<" ? e += "<" : n === ">" ? e += ">" : e += n;
|
|
1231
|
+
}
|
|
1232
|
+
return e;
|
|
1233
|
+
}
|
|
1234
|
+
function Q(t) {
|
|
1235
|
+
return t.map(me).join("");
|
|
1236
|
+
}
|
|
1237
|
+
function me(t) {
|
|
1238
|
+
switch (t.type) {
|
|
1239
|
+
case "text":
|
|
1240
|
+
return t.text;
|
|
1241
|
+
case "quoted": {
|
|
1242
|
+
const e = xe[t.subtype] || ["", ""], s = e[2] === !0, n = Q(t.text);
|
|
1243
|
+
let i = "";
|
|
1244
|
+
if (t.id && (i += ` id="${t.id}"`), t.role && (i += ` class="${L(t.role)}"`), t.subtype === "mark" && (t.id || t.role))
|
|
1245
|
+
return `<span${i}>${n}</span>`;
|
|
1246
|
+
if (s) {
|
|
1247
|
+
let l = e[0];
|
|
1248
|
+
return i && l.endsWith(">") && (l = l.slice(0, -1) + i + ">"), `${l}${n}${e[1]}`;
|
|
1249
|
+
}
|
|
1250
|
+
return t.id || t.role ? `<span${i}>${e[0]}${n}${e[1]}</span>` : `${e[0]}${n}${e[1]}`;
|
|
1251
|
+
}
|
|
1252
|
+
case "anchor": {
|
|
1253
|
+
const e = t.id || "", s = t.role || "";
|
|
1254
|
+
let n = e ? ` id="${e}"` : "", i = s ? ` class="${L(s)}"` : "";
|
|
1255
|
+
e ? n += i : n = i;
|
|
1256
|
+
const l = Q(t.text);
|
|
1257
|
+
switch (t.subtype) {
|
|
1258
|
+
case "link": {
|
|
1259
|
+
const a = L(t.target);
|
|
1260
|
+
let c = "";
|
|
1261
|
+
return t.window && (c = ` target="${L(t.window)}"`, t.window === "_blank" && (c += ' rel="noopener"')), `<a href="${a}"${n}${c}>${l}</a>`;
|
|
1262
|
+
}
|
|
1263
|
+
case "ref":
|
|
1264
|
+
return `<a id="${L(t.id || t.target)}"></a>`;
|
|
1265
|
+
case "xref": {
|
|
1266
|
+
const a = t.target;
|
|
1267
|
+
return `<a href="${a.startsWith("#") || a.includes("#") || a.includes("/") ? L(a) : "#" + L(a)}"${n}>${l}</a>`;
|
|
1268
|
+
}
|
|
1269
|
+
case "bibref":
|
|
1270
|
+
return `[<a id="${L(t.id || t.target)}"></a>]`;
|
|
1271
|
+
}
|
|
1272
|
+
}
|
|
1273
|
+
case "image": {
|
|
1274
|
+
const e = L(he(t.target)), s = t.alt || "";
|
|
1275
|
+
let n = "";
|
|
1276
|
+
t.width && (n += ` width="${L(t.width)}"`), t.height && (n += ` height="${L(t.height)}"`);
|
|
1277
|
+
const i = t.title ? ` title="${L(t.title)}"` : "";
|
|
1278
|
+
if (t.subtype === "icon") {
|
|
1279
|
+
const m = t.iconType || "text", x = ["icon"];
|
|
1280
|
+
t.role && x.push(t.role);
|
|
1281
|
+
const g = ` class="${x.join(" ")}"`, b = t.id ? ` id="${L(t.id)}"` : "";
|
|
1282
|
+
if (m === "text") {
|
|
1283
|
+
const u = t.alt || t.target;
|
|
1284
|
+
return `<span${g}${b}${i}>[${u}]</span>`;
|
|
1285
|
+
}
|
|
1286
|
+
return m === "font" ? `<span${g}${b}${i}><i class="fa fa-${L(t.target)}"></i></span>` : `<span${g}${b}${i}><img src="${e}" alt="${L(s)}"${n}></span>`;
|
|
1287
|
+
}
|
|
1288
|
+
const l = ["image"];
|
|
1289
|
+
t.role && l.push(t.role);
|
|
1290
|
+
const a = ` class="${l.join(" ")}"`, c = t.id ? ` id="${L(t.id)}"` : "";
|
|
1291
|
+
return `<span${a}${c}><img src="${e}" alt="${L(s)}"${n}${i}></span>`;
|
|
1292
|
+
}
|
|
1293
|
+
case "footnote": {
|
|
1294
|
+
if (t.refid && (!t.text || t.text.length === 0))
|
|
1295
|
+
return t.index !== void 0 ? `<sup class="footnoteref">[<a class="footnote" href="#_footnotedef_${t.index}" title="View footnote.">${t.index}</a>]</sup>` : `<sup class="footnoteref red" title="Unresolved footnote reference.">[${L(t.refid)}]</sup>`;
|
|
1296
|
+
const e = t.index;
|
|
1297
|
+
if (e === void 0) {
|
|
1298
|
+
const n = t.id ? ` id="${L(t.id)}"` : "", i = Q(t.text);
|
|
1299
|
+
return `<sup${n}>[${i}]</sup>`;
|
|
1300
|
+
}
|
|
1301
|
+
return `<sup class="footnote"${t.id ? ` id="_footnote_${L(t.id)}"` : ""}>[<a id="_footnoteref_${e}" class="footnote" href="#_footnotedef_${e}" title="View footnote.">${e}</a>]</sup>`;
|
|
1302
|
+
}
|
|
1303
|
+
case "indexterm":
|
|
1304
|
+
return t.visible ? Q([{ type: "text", text: t.terms.join(", ") }]) : "";
|
|
1305
|
+
case "callout":
|
|
1306
|
+
return `<b class="conum">(${t.number})</b>`;
|
|
1307
|
+
case "break":
|
|
1308
|
+
return `<br>
|
|
1309
|
+
`;
|
|
1310
|
+
case "button":
|
|
1311
|
+
return `<b class="button">${Q(t.text)}</b>`;
|
|
1312
|
+
case "kbd":
|
|
1313
|
+
return t.keys.length === 1 ? `<kbd>${t.keys[0]}</kbd>` : `<span class="keyseq">${t.keys.map((e) => `<kbd>${e}</kbd>`).join("+")}</span>`;
|
|
1314
|
+
case "menu": {
|
|
1315
|
+
if (t.items.length === 1)
|
|
1316
|
+
return `<b class="menuref">${t.items[0]}</b>`;
|
|
1317
|
+
const e = ' <b class="caret">›</b> ', s = [];
|
|
1318
|
+
for (let n = 0; n < t.items.length; n++) {
|
|
1319
|
+
const i = t.items[n];
|
|
1320
|
+
n === 0 ? s.push(`<b class="menu">${i}</b>`) : n < t.items.length - 1 ? s.push(`${e}<b class="submenu">${i}</b>`) : s.push(`${e}<b class="menuitem">${i}</b>`);
|
|
1321
|
+
}
|
|
1322
|
+
return `<span class="menuseq">${s.join("")}</span>`;
|
|
1323
|
+
}
|
|
1324
|
+
}
|
|
1325
|
+
}
|
|
1326
|
+
function V(t) {
|
|
1327
|
+
return Q(t);
|
|
1328
|
+
}
|
|
1329
|
+
const rs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1330
|
+
__proto__: null,
|
|
1331
|
+
parseInline: G,
|
|
1332
|
+
renderInline: Q,
|
|
1333
|
+
renderInlineAsString: V
|
|
1334
|
+
}, Symbol.toStringTag, { value: "Module" })), E = (t) => ({ __html: t ? V(t) : "" }), ns = ({ nodes: t }) => {
|
|
1335
|
+
const s = yt(dt).inlineOverrides;
|
|
1336
|
+
return !t || t.length === 0 ? null : !s || Object.keys(s).length === 0 ? /* @__PURE__ */ r.jsx("span", { dangerouslySetInnerHTML: { __html: V(t) } }) : /* @__PURE__ */ r.jsx(r.Fragment, { children: it(t, s) });
|
|
1337
|
+
}, it = (t, e) => t.map((s, n) => /* @__PURE__ */ r.jsx(jt, { children: ge(s, e) }, n)), ge = (t, e) => {
|
|
1338
|
+
switch (t.type) {
|
|
1339
|
+
case "text":
|
|
1340
|
+
return /* @__PURE__ */ r.jsx("span", { dangerouslySetInnerHTML: { __html: t.text } });
|
|
1341
|
+
case "quoted": {
|
|
1342
|
+
const s = e.quoted, n = it(t.text, e);
|
|
1343
|
+
return s ? /* @__PURE__ */ r.jsx(s, { node: t, children: n }) : be(t, n);
|
|
1344
|
+
}
|
|
1345
|
+
case "anchor": {
|
|
1346
|
+
const s = e.anchor, n = it(t.text, e);
|
|
1347
|
+
return s ? /* @__PURE__ */ r.jsx(s, { node: t, children: n }) : ye(t, n);
|
|
1348
|
+
}
|
|
1349
|
+
case "image": {
|
|
1350
|
+
const s = e.image;
|
|
1351
|
+
return s ? /* @__PURE__ */ r.jsx(s, { node: t }) : /* @__PURE__ */ r.jsx("span", { dangerouslySetInnerHTML: { __html: V([t]) } });
|
|
1352
|
+
}
|
|
1353
|
+
case "footnote": {
|
|
1354
|
+
const s = e.footnote, n = it(t.text || [], e);
|
|
1355
|
+
return s ? /* @__PURE__ */ r.jsx(s, { node: t, children: n }) : /* @__PURE__ */ r.jsx("span", { dangerouslySetInnerHTML: { __html: V([t]) } });
|
|
1356
|
+
}
|
|
1357
|
+
case "indexterm": {
|
|
1358
|
+
const s = e.indexterm;
|
|
1359
|
+
return s ? /* @__PURE__ */ r.jsx(s, { node: t }) : t.visible ? t.terms.join(", ") : null;
|
|
1360
|
+
}
|
|
1361
|
+
case "callout": {
|
|
1362
|
+
const s = e.callout;
|
|
1363
|
+
return s ? /* @__PURE__ */ r.jsx(s, { node: t }) : /* @__PURE__ */ r.jsx("b", { className: "conum", children: `(${t.number})` });
|
|
1364
|
+
}
|
|
1365
|
+
case "break": {
|
|
1366
|
+
const s = e.break;
|
|
1367
|
+
return s ? /* @__PURE__ */ r.jsx(s, {}) : /* @__PURE__ */ r.jsx("br", {});
|
|
1368
|
+
}
|
|
1369
|
+
case "button": {
|
|
1370
|
+
const s = e.button, n = it(t.text, e);
|
|
1371
|
+
return s ? /* @__PURE__ */ r.jsx(s, { node: t, children: n }) : /* @__PURE__ */ r.jsx("b", { className: "button", children: n });
|
|
1372
|
+
}
|
|
1373
|
+
case "kbd": {
|
|
1374
|
+
const s = e.kbd;
|
|
1375
|
+
return s ? /* @__PURE__ */ r.jsx(s, { node: t }) : /* @__PURE__ */ r.jsx("span", { dangerouslySetInnerHTML: { __html: V([t]) } });
|
|
1376
|
+
}
|
|
1377
|
+
case "menu": {
|
|
1378
|
+
const s = e.menu;
|
|
1379
|
+
return s ? /* @__PURE__ */ r.jsx(s, { node: t }) : /* @__PURE__ */ r.jsx("span", { dangerouslySetInnerHTML: { __html: V([t]) } });
|
|
1380
|
+
}
|
|
1381
|
+
}
|
|
1382
|
+
}, be = (t, e) => {
|
|
1383
|
+
const s = t.role || void 0, n = t.id || void 0;
|
|
1384
|
+
switch (t.subtype) {
|
|
1385
|
+
case "emphasis":
|
|
1386
|
+
return /* @__PURE__ */ r.jsx("em", { id: n, className: s, children: e });
|
|
1387
|
+
case "strong":
|
|
1388
|
+
return /* @__PURE__ */ r.jsx("strong", { id: n, className: s, children: e });
|
|
1389
|
+
case "monospaced":
|
|
1390
|
+
return /* @__PURE__ */ r.jsx("code", { id: n, className: s, children: e });
|
|
1391
|
+
case "superscript":
|
|
1392
|
+
return /* @__PURE__ */ r.jsx("sup", { id: n, className: s, children: e });
|
|
1393
|
+
case "subscript":
|
|
1394
|
+
return /* @__PURE__ */ r.jsx("sub", { id: n, className: s, children: e });
|
|
1395
|
+
case "mark":
|
|
1396
|
+
return n || s ? /* @__PURE__ */ r.jsx("span", { id: n, className: s, children: e }) : /* @__PURE__ */ r.jsx("mark", { children: e });
|
|
1397
|
+
case "double":
|
|
1398
|
+
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1399
|
+
"“",
|
|
1400
|
+
e,
|
|
1401
|
+
"”"
|
|
1402
|
+
] });
|
|
1403
|
+
case "single":
|
|
1404
|
+
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1405
|
+
"‘",
|
|
1406
|
+
e,
|
|
1407
|
+
"’"
|
|
1408
|
+
] });
|
|
1409
|
+
case "asciimath":
|
|
1410
|
+
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1411
|
+
"\\$",
|
|
1412
|
+
e,
|
|
1413
|
+
"\\$"
|
|
1414
|
+
] });
|
|
1415
|
+
case "latexmath":
|
|
1416
|
+
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1417
|
+
"\\(",
|
|
1418
|
+
e,
|
|
1419
|
+
"\\)"
|
|
1420
|
+
] });
|
|
1421
|
+
case "unquoted":
|
|
1422
|
+
return n || s ? /* @__PURE__ */ r.jsx("span", { id: n, className: s, children: e }) : /* @__PURE__ */ r.jsx(r.Fragment, { children: e });
|
|
1423
|
+
}
|
|
1424
|
+
}, ye = (t, e) => {
|
|
1425
|
+
switch (t.subtype) {
|
|
1426
|
+
case "link": {
|
|
1427
|
+
const s = t.window === "_blank" ? "noopener" : void 0;
|
|
1428
|
+
return /* @__PURE__ */ r.jsx(
|
|
1429
|
+
"a",
|
|
1430
|
+
{
|
|
1431
|
+
href: t.target,
|
|
1432
|
+
id: t.id || void 0,
|
|
1433
|
+
className: t.role || void 0,
|
|
1434
|
+
target: t.window || void 0,
|
|
1435
|
+
rel: s,
|
|
1436
|
+
children: e
|
|
1437
|
+
}
|
|
1438
|
+
);
|
|
1439
|
+
}
|
|
1440
|
+
case "ref":
|
|
1441
|
+
return /* @__PURE__ */ r.jsx("a", { id: t.id || t.target });
|
|
1442
|
+
case "xref": {
|
|
1443
|
+
const s = t.target, n = s.startsWith("#") || s.includes("#") || s.includes("/") ? s : `#${s}`;
|
|
1444
|
+
return /* @__PURE__ */ r.jsx("a", { href: n, id: t.id || void 0, className: t.role || void 0, children: e });
|
|
1445
|
+
}
|
|
1446
|
+
case "bibref":
|
|
1447
|
+
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1448
|
+
"[",
|
|
1449
|
+
/* @__PURE__ */ r.jsx("a", { id: t.id || t.target }),
|
|
1450
|
+
"]"
|
|
1451
|
+
] });
|
|
1452
|
+
}
|
|
1453
|
+
};
|
|
1454
|
+
var gt = { exports: {} };
|
|
340
1455
|
/*!
|
|
341
1456
|
Copyright (c) 2018 Jed Watson.
|
|
342
1457
|
Licensed under the MIT License (MIT), see
|
|
343
1458
|
http://jedwatson.github.io/classnames
|
|
344
1459
|
*/
|
|
345
|
-
var
|
|
346
|
-
function
|
|
347
|
-
return
|
|
1460
|
+
var Et;
|
|
1461
|
+
function je() {
|
|
1462
|
+
return Et || (Et = 1, (function(t) {
|
|
348
1463
|
(function() {
|
|
349
|
-
var
|
|
1464
|
+
var e = {}.hasOwnProperty;
|
|
350
1465
|
function s() {
|
|
351
|
-
for (var
|
|
1466
|
+
for (var l = "", a = 0; a < arguments.length; a++) {
|
|
352
1467
|
var c = arguments[a];
|
|
353
|
-
c && (
|
|
1468
|
+
c && (l = i(l, n(c)));
|
|
354
1469
|
}
|
|
355
|
-
return
|
|
1470
|
+
return l;
|
|
356
1471
|
}
|
|
357
|
-
function n(
|
|
358
|
-
if (typeof
|
|
359
|
-
return
|
|
360
|
-
if (typeof
|
|
1472
|
+
function n(l) {
|
|
1473
|
+
if (typeof l == "string" || typeof l == "number")
|
|
1474
|
+
return l;
|
|
1475
|
+
if (typeof l != "object")
|
|
361
1476
|
return "";
|
|
362
|
-
if (Array.isArray(
|
|
363
|
-
return s.apply(null,
|
|
364
|
-
if (
|
|
365
|
-
return
|
|
1477
|
+
if (Array.isArray(l))
|
|
1478
|
+
return s.apply(null, l);
|
|
1479
|
+
if (l.toString !== Object.prototype.toString && !l.toString.toString().includes("[native code]"))
|
|
1480
|
+
return l.toString();
|
|
366
1481
|
var a = "";
|
|
367
|
-
for (var c in
|
|
368
|
-
|
|
1482
|
+
for (var c in l)
|
|
1483
|
+
e.call(l, c) && l[c] && (a = i(a, c));
|
|
369
1484
|
return a;
|
|
370
1485
|
}
|
|
371
|
-
function l
|
|
372
|
-
return a ?
|
|
1486
|
+
function i(l, a) {
|
|
1487
|
+
return a ? l ? l + " " + a : l + a : l;
|
|
373
1488
|
}
|
|
374
|
-
|
|
1489
|
+
t.exports ? (s.default = s, t.exports = s) : window.classNames = s;
|
|
375
1490
|
})();
|
|
376
|
-
})(
|
|
1491
|
+
})(gt)), gt.exports;
|
|
377
1492
|
}
|
|
378
|
-
var
|
|
379
|
-
const
|
|
380
|
-
|
|
381
|
-
return
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
I.html5 = ae('Abreve~Ă~Acy~А~Afr~𝔄~Amacr~Ā~And~⩓~Aogon~Ą~Aopf~𝔸~ApplyFunction~~Ascr~𝒜~Assign~≔~Backslash~∖~Barv~⫧~Barwed~⌆~Bcy~Б~Because~∵~Bernoullis~ℬ~Bfr~𝔅~Bopf~𝔹~Breve~˘~Bscr~ℬ~Bumpeq~≎~CHcy~Ч~Cacute~Ć~Cap~⋒~CapitalDifferentialD~ⅅ~Cayleys~ℭ~Ccaron~Č~Ccirc~Ĉ~Cconint~∰~Cdot~Ċ~Cedilla~¸~CenterDot~·~Cfr~ℭ~CircleDot~⊙~CircleMinus~⊖~CirclePlus~⊕~CircleTimes~⊗~ClockwiseContourIntegral~∲~CloseCurlyDoubleQuote~”~CloseCurlyQuote~’~Colon~∷~Colone~⩴~Congruent~≡~Conint~∯~ContourIntegral~∮~Copf~ℂ~Coproduct~∐~CounterClockwiseContourIntegral~∳~Cross~⨯~Cscr~𝒞~Cup~⋓~CupCap~≍~DD~ⅅ~DDotrahd~⤑~DJcy~Ђ~DScy~Ѕ~DZcy~Џ~Darr~↡~Dashv~⫤~Dcaron~Ď~Dcy~Д~Del~∇~Dfr~𝔇~DiacriticalAcute~´~DiacriticalDot~˙~DiacriticalDoubleAcute~˝~DiacriticalGrave~`~DiacriticalTilde~˜~Diamond~⋄~DifferentialD~ⅆ~Dopf~𝔻~Dot~¨~DotDot~⃜~DotEqual~≐~DoubleContourIntegral~∯~DoubleDot~¨~DoubleDownArrow~⇓~DoubleLeftArrow~⇐~DoubleLeftRightArrow~⇔~DoubleLeftTee~⫤~DoubleLongLeftArrow~⟸~DoubleLongLeftRightArrow~⟺~DoubleLongRightArrow~⟹~DoubleRightArrow~⇒~DoubleRightTee~⊨~DoubleUpArrow~⇑~DoubleUpDownArrow~⇕~DoubleVerticalBar~∥~DownArrow~↓~DownArrowBar~⤓~DownArrowUpArrow~⇵~DownBreve~̑~DownLeftRightVector~⥐~DownLeftTeeVector~⥞~DownLeftVector~↽~DownLeftVectorBar~⥖~DownRightTeeVector~⥟~DownRightVector~⇁~DownRightVectorBar~⥗~DownTee~⊤~DownTeeArrow~↧~Downarrow~⇓~Dscr~𝒟~Dstrok~Đ~ENG~Ŋ~Ecaron~Ě~Ecy~Э~Edot~Ė~Efr~𝔈~Element~∈~Emacr~Ē~EmptySmallSquare~◻~EmptyVerySmallSquare~▫~Eogon~Ę~Eopf~𝔼~Equal~⩵~EqualTilde~≂~Equilibrium~⇌~Escr~ℰ~Esim~⩳~Exists~∃~ExponentialE~ⅇ~Fcy~Ф~Ffr~𝔉~FilledSmallSquare~◼~FilledVerySmallSquare~▪~Fopf~𝔽~ForAll~∀~Fouriertrf~ℱ~Fscr~ℱ~GJcy~Ѓ~Gammad~Ϝ~Gbreve~Ğ~Gcedil~Ģ~Gcirc~Ĝ~Gcy~Г~Gdot~Ġ~Gfr~𝔊~Gg~⋙~Gopf~𝔾~GreaterEqual~≥~GreaterEqualLess~⋛~GreaterFullEqual~≧~GreaterGreater~⪢~GreaterLess~≷~GreaterSlantEqual~⩾~GreaterTilde~≳~Gscr~𝒢~Gt~≫~HARDcy~Ъ~Hacek~ˇ~Hat~^~Hcirc~Ĥ~Hfr~ℌ~HilbertSpace~ℋ~Hopf~ℍ~HorizontalLine~─~Hscr~ℋ~Hstrok~Ħ~HumpDownHump~≎~HumpEqual~≏~IEcy~Е~IJlig~IJ~IOcy~Ё~Icy~И~Idot~İ~Ifr~ℑ~Im~ℑ~Imacr~Ī~ImaginaryI~ⅈ~Implies~⇒~Int~∬~Integral~∫~Intersection~⋂~InvisibleComma~~InvisibleTimes~~Iogon~Į~Iopf~𝕀~Iscr~ℐ~Itilde~Ĩ~Iukcy~І~Jcirc~Ĵ~Jcy~Й~Jfr~𝔍~Jopf~𝕁~Jscr~𝒥~Jsercy~Ј~Jukcy~Є~KHcy~Х~KJcy~Ќ~Kcedil~Ķ~Kcy~К~Kfr~𝔎~Kopf~𝕂~Kscr~𝒦~LJcy~Љ~Lacute~Ĺ~Lang~⟪~Laplacetrf~ℒ~Larr~↞~Lcaron~Ľ~Lcedil~Ļ~Lcy~Л~LeftAngleBracket~⟨~LeftArrow~←~LeftArrowBar~⇤~LeftArrowRightArrow~⇆~LeftCeiling~⌈~LeftDoubleBracket~⟦~LeftDownTeeVector~⥡~LeftDownVector~⇃~LeftDownVectorBar~⥙~LeftFloor~⌊~LeftRightArrow~↔~LeftRightVector~⥎~LeftTee~⊣~LeftTeeArrow~↤~LeftTeeVector~⥚~LeftTriangle~⊲~LeftTriangleBar~⧏~LeftTriangleEqual~⊴~LeftUpDownVector~⥑~LeftUpTeeVector~⥠~LeftUpVector~↿~LeftUpVectorBar~⥘~LeftVector~↼~LeftVectorBar~⥒~Leftarrow~⇐~Leftrightarrow~⇔~LessEqualGreater~⋚~LessFullEqual~≦~LessGreater~≶~LessLess~⪡~LessSlantEqual~⩽~LessTilde~≲~Lfr~𝔏~Ll~⋘~Lleftarrow~⇚~Lmidot~Ŀ~LongLeftArrow~⟵~LongLeftRightArrow~⟷~LongRightArrow~⟶~Longleftarrow~⟸~Longleftrightarrow~⟺~Longrightarrow~⟹~Lopf~𝕃~LowerLeftArrow~↙~LowerRightArrow~↘~Lscr~ℒ~Lsh~↰~Lstrok~Ł~Lt~≪~Map~⤅~Mcy~М~MediumSpace~ ~Mellintrf~ℳ~Mfr~𝔐~MinusPlus~∓~Mopf~𝕄~Mscr~ℳ~NJcy~Њ~Nacute~Ń~Ncaron~Ň~Ncedil~Ņ~Ncy~Н~NegativeMediumSpace~~NegativeThickSpace~~NegativeThinSpace~~NegativeVeryThinSpace~~NestedGreaterGreater~≫~NestedLessLess~≪~NewLine~\n~Nfr~𝔑~NoBreak~~NonBreakingSpace~ ~Nopf~ℕ~Not~⫬~NotCongruent~≢~NotCupCap~≭~NotDoubleVerticalBar~∦~NotElement~∉~NotEqual~≠~NotEqualTilde~≂̸~NotExists~∄~NotGreater~≯~NotGreaterEqual~≱~NotGreaterFullEqual~≧̸~NotGreaterGreater~≫̸~NotGreaterLess~≹~NotGreaterSlantEqual~⩾̸~NotGreaterTilde~≵~NotHumpDownHump~≎̸~NotHumpEqual~≏̸~NotLeftTriangle~⋪~NotLeftTriangleBar~⧏̸~NotLeftTriangleEqual~⋬~NotLess~≮~NotLessEqual~≰~NotLessGreater~≸~NotLessLess~≪̸~NotLessSlantEqual~⩽̸~NotLessTilde~≴~NotNestedGreaterGreater~⪢̸~NotNestedLessLess~⪡̸~NotPrecedes~⊀~NotPrecedesEqual~⪯̸~NotPrecedesSlantEqual~⋠~NotReverseElement~∌~NotRightTriangle~⋫~NotRightTriangleBar~⧐̸~NotRightTriangleEqual~⋭~NotSquareSubset~⊏̸~NotSquareSubsetEqual~⋢~NotSquareSuperset~⊐̸~NotSquareSupersetEqual~⋣~NotSubset~⊂⃒~NotSubsetEqual~⊈~NotSucceeds~⊁~NotSucceedsEqual~⪰̸~NotSucceedsSlantEqual~⋡~NotSucceedsTilde~≿̸~NotSuperset~⊃⃒~NotSupersetEqual~⊉~NotTilde~≁~NotTildeEqual~≄~NotTildeFullEqual~≇~NotTildeTilde~≉~NotVerticalBar~∤~Nscr~𝒩~Ocy~О~Odblac~Ő~Ofr~𝔒~Omacr~Ō~Oopf~𝕆~OpenCurlyDoubleQuote~“~OpenCurlyQuote~‘~Or~⩔~Oscr~𝒪~Otimes~⨷~OverBar~‾~OverBrace~⏞~OverBracket~⎴~OverParenthesis~⏜~PartialD~∂~Pcy~П~Pfr~𝔓~PlusMinus~±~Poincareplane~ℌ~Popf~ℙ~Pr~⪻~Precedes~≺~PrecedesEqual~⪯~PrecedesSlantEqual~≼~PrecedesTilde~≾~Product~∏~Proportion~∷~Proportional~∝~Pscr~𝒫~Qfr~𝔔~Qopf~ℚ~Qscr~𝒬~RBarr~⤐~Racute~Ŕ~Rang~⟫~Rarr~↠~Rarrtl~⤖~Rcaron~Ř~Rcedil~Ŗ~Rcy~Р~Re~ℜ~ReverseElement~∋~ReverseEquilibrium~⇋~ReverseUpEquilibrium~⥯~Rfr~ℜ~RightAngleBracket~⟩~RightArrow~→~RightArrowBar~⇥~RightArrowLeftArrow~⇄~RightCeiling~⌉~RightDoubleBracket~⟧~RightDownTeeVector~⥝~RightDownVector~⇂~RightDownVectorBar~⥕~RightFloor~⌋~RightTee~⊢~RightTeeArrow~↦~RightTeeVector~⥛~RightTriangle~⊳~RightTriangleBar~⧐~RightTriangleEqual~⊵~RightUpDownVector~⥏~RightUpTeeVector~⥜~RightUpVector~↾~RightUpVectorBar~⥔~RightVector~⇀~RightVectorBar~⥓~Rightarrow~⇒~Ropf~ℝ~RoundImplies~⥰~Rrightarrow~⇛~Rscr~ℛ~Rsh~↱~RuleDelayed~⧴~SHCHcy~Щ~SHcy~Ш~SOFTcy~Ь~Sacute~Ś~Sc~⪼~Scedil~Ş~Scirc~Ŝ~Scy~С~Sfr~𝔖~ShortDownArrow~↓~ShortLeftArrow~←~ShortRightArrow~→~ShortUpArrow~↑~SmallCircle~∘~Sopf~𝕊~Sqrt~√~Square~□~SquareIntersection~⊓~SquareSubset~⊏~SquareSubsetEqual~⊑~SquareSuperset~⊐~SquareSupersetEqual~⊒~SquareUnion~⊔~Sscr~𝒮~Star~⋆~Sub~⋐~Subset~⋐~SubsetEqual~⊆~Succeeds~≻~SucceedsEqual~⪰~SucceedsSlantEqual~≽~SucceedsTilde~≿~SuchThat~∋~Sum~∑~Sup~⋑~Superset~⊃~SupersetEqual~⊇~Supset~⋑~TRADE~™~TSHcy~Ћ~TScy~Ц~Tab~ ~Tcaron~Ť~Tcedil~Ţ~Tcy~Т~Tfr~𝔗~Therefore~∴~ThickSpace~ ~ThinSpace~ ~Tilde~∼~TildeEqual~≃~TildeFullEqual~≅~TildeTilde~≈~Topf~𝕋~TripleDot~⃛~Tscr~𝒯~Tstrok~Ŧ~Uarr~↟~Uarrocir~⥉~Ubrcy~Ў~Ubreve~Ŭ~Ucy~У~Udblac~Ű~Ufr~𝔘~Umacr~Ū~UnderBar~_~UnderBrace~⏟~UnderBracket~⎵~UnderParenthesis~⏝~Union~⋃~UnionPlus~⊎~Uogon~Ų~Uopf~𝕌~UpArrow~↑~UpArrowBar~⤒~UpArrowDownArrow~⇅~UpDownArrow~↕~UpEquilibrium~⥮~UpTee~⊥~UpTeeArrow~↥~Uparrow~⇑~Updownarrow~⇕~UpperLeftArrow~↖~UpperRightArrow~↗~Upsi~ϒ~Uring~Ů~Uscr~𝒰~Utilde~Ũ~VDash~⊫~Vbar~⫫~Vcy~В~Vdash~⊩~Vdashl~⫦~Vee~⋁~Verbar~‖~Vert~‖~VerticalBar~∣~VerticalLine~|~VerticalSeparator~❘~VerticalTilde~≀~VeryThinSpace~ ~Vfr~𝔙~Vopf~𝕍~Vscr~𝒱~Vvdash~⊪~Wcirc~Ŵ~Wedge~⋀~Wfr~𝔚~Wopf~𝕎~Wscr~𝒲~Xfr~𝔛~Xopf~𝕏~Xscr~𝒳~YAcy~Я~YIcy~Ї~YUcy~Ю~Ycirc~Ŷ~Ycy~Ы~Yfr~𝔜~Yopf~𝕐~Yscr~𝒴~ZHcy~Ж~Zacute~Ź~Zcaron~Ž~Zcy~З~Zdot~Ż~ZeroWidthSpace~~Zfr~ℨ~Zopf~ℤ~Zscr~𝒵~abreve~ă~ac~∾~acE~∾̳~acd~∿~acy~а~af~~afr~𝔞~aleph~ℵ~amacr~ā~amalg~⨿~andand~⩕~andd~⩜~andslope~⩘~andv~⩚~ange~⦤~angle~∠~angmsd~∡~angmsdaa~⦨~angmsdab~⦩~angmsdac~⦪~angmsdad~⦫~angmsdae~⦬~angmsdaf~⦭~angmsdag~⦮~angmsdah~⦯~angrt~∟~angrtvb~⊾~angrtvbd~⦝~angsph~∢~angst~Å~angzarr~⍼~aogon~ą~aopf~𝕒~ap~≈~apE~⩰~apacir~⩯~ape~≊~apid~≋~approx~≈~approxeq~≊~ascr~𝒶~ast~*~asympeq~≍~awconint~∳~awint~⨑~bNot~⫭~backcong~≌~backepsilon~϶~backprime~‵~backsim~∽~backsimeq~⋍~barvee~⊽~barwed~⌅~barwedge~⌅~bbrk~⎵~bbrktbrk~⎶~bcong~≌~bcy~б~becaus~∵~because~∵~bemptyv~⦰~bepsi~϶~bernou~ℬ~beth~ℶ~between~≬~bfr~𝔟~bigcap~⋂~bigcirc~◯~bigcup~⋃~bigodot~⨀~bigoplus~⨁~bigotimes~⨂~bigsqcup~⨆~bigstar~★~bigtriangledown~▽~bigtriangleup~△~biguplus~⨄~bigvee~⋁~bigwedge~⋀~bkarow~⤍~blacklozenge~⧫~blacksquare~▪~blacktriangle~▴~blacktriangledown~▾~blacktriangleleft~◂~blacktriangleright~▸~blank~␣~blk12~▒~blk14~░~blk34~▓~block~█~bne~=⃥~bnequiv~≡⃥~bnot~⌐~bopf~𝕓~bot~⊥~bottom~⊥~bowtie~⋈~boxDL~╗~boxDR~╔~boxDl~╖~boxDr~╓~boxH~═~boxHD~╦~boxHU~╩~boxHd~╤~boxHu~╧~boxUL~╝~boxUR~╚~boxUl~╜~boxUr~╙~boxV~║~boxVH~╬~boxVL~╣~boxVR~╠~boxVh~╫~boxVl~╢~boxVr~╟~boxbox~⧉~boxdL~╕~boxdR~╒~boxdl~┐~boxdr~┌~boxh~─~boxhD~╥~boxhU~╨~boxhd~┬~boxhu~┴~boxminus~⊟~boxplus~⊞~boxtimes~⊠~boxuL~╛~boxuR~╘~boxul~┘~boxur~└~boxv~│~boxvH~╪~boxvL~╡~boxvR~╞~boxvh~┼~boxvl~┤~boxvr~├~bprime~‵~breve~˘~bscr~𝒷~bsemi~⁏~bsim~∽~bsime~⋍~bsol~\\~bsolb~⧅~bsolhsub~⟈~bullet~•~bump~≎~bumpE~⪮~bumpe~≏~bumpeq~≏~cacute~ć~capand~⩄~capbrcup~⩉~capcap~⩋~capcup~⩇~capdot~⩀~caps~∩︀~caret~⁁~caron~ˇ~ccaps~⩍~ccaron~č~ccirc~ĉ~ccups~⩌~ccupssm~⩐~cdot~ċ~cemptyv~⦲~centerdot~·~cfr~𝔠~chcy~ч~check~✓~checkmark~✓~cir~○~cirE~⧃~circeq~≗~circlearrowleft~↺~circlearrowright~↻~circledR~®~circledS~Ⓢ~circledast~⊛~circledcirc~⊚~circleddash~⊝~cire~≗~cirfnint~⨐~cirmid~⫯~cirscir~⧂~clubsuit~♣~colon~:~colone~≔~coloneq~≔~comma~,~commat~@~comp~∁~compfn~∘~complement~∁~complexes~ℂ~congdot~⩭~conint~∮~copf~𝕔~coprod~∐~copysr~℗~cross~✗~cscr~𝒸~csub~⫏~csube~⫑~csup~⫐~csupe~⫒~ctdot~⋯~cudarrl~⤸~cudarrr~⤵~cuepr~⋞~cuesc~⋟~cularr~↶~cularrp~⤽~cupbrcap~⩈~cupcap~⩆~cupcup~⩊~cupdot~⊍~cupor~⩅~cups~∪︀~curarr~↷~curarrm~⤼~curlyeqprec~⋞~curlyeqsucc~⋟~curlyvee~⋎~curlywedge~⋏~curvearrowleft~↶~curvearrowright~↷~cuvee~⋎~cuwed~⋏~cwconint~∲~cwint~∱~cylcty~⌭~dHar~⥥~daleth~ℸ~dash~‐~dashv~⊣~dbkarow~⤏~dblac~˝~dcaron~ď~dcy~д~dd~ⅆ~ddagger~‡~ddarr~⇊~ddotseq~⩷~demptyv~⦱~dfisht~⥿~dfr~𝔡~dharl~⇃~dharr~⇂~diam~⋄~diamond~⋄~diamondsuit~♦~die~¨~digamma~ϝ~disin~⋲~div~÷~divideontimes~⋇~divonx~⋇~djcy~ђ~dlcorn~⌞~dlcrop~⌍~dollar~$~dopf~𝕕~dot~˙~doteq~≐~doteqdot~≑~dotminus~∸~dotplus~∔~dotsquare~⊡~doublebarwedge~⌆~downarrow~↓~downdownarrows~⇊~downharpoonleft~⇃~downharpoonright~⇂~drbkarow~⤐~drcorn~⌟~drcrop~⌌~dscr~𝒹~dscy~ѕ~dsol~⧶~dstrok~đ~dtdot~⋱~dtri~▿~dtrif~▾~duarr~⇵~duhar~⥯~dwangle~⦦~dzcy~џ~dzigrarr~⟿~eDDot~⩷~eDot~≑~easter~⩮~ecaron~ě~ecir~≖~ecolon~≕~ecy~э~edot~ė~ee~ⅇ~efDot~≒~efr~𝔢~eg~⪚~egs~⪖~egsdot~⪘~el~⪙~elinters~⏧~ell~ℓ~els~⪕~elsdot~⪗~emacr~ē~emptyset~∅~emptyv~∅~emsp13~ ~emsp14~ ~eng~ŋ~eogon~ę~eopf~𝕖~epar~⋕~eparsl~⧣~eplus~⩱~epsi~ε~epsiv~ϵ~eqcirc~≖~eqcolon~≕~eqsim~≂~eqslantgtr~⪖~eqslantless~⪕~equals~=~equest~≟~equivDD~⩸~eqvparsl~⧥~erDot~≓~erarr~⥱~escr~ℯ~esdot~≐~esim~≂~excl~!~expectation~ℰ~exponentiale~ⅇ~fallingdotseq~≒~fcy~ф~female~♀~ffilig~ffi~fflig~ff~ffllig~ffl~ffr~𝔣~filig~fi~fjlig~fj~flat~♭~fllig~fl~fltns~▱~fopf~𝕗~fork~⋔~forkv~⫙~fpartint~⨍~frac13~⅓~frac15~⅕~frac16~⅙~frac18~⅛~frac23~⅔~frac25~⅖~frac35~⅗~frac38~⅜~frac45~⅘~frac56~⅚~frac58~⅝~frac78~⅞~frown~⌢~fscr~𝒻~gE~≧~gEl~⪌~gacute~ǵ~gammad~ϝ~gap~⪆~gbreve~ğ~gcirc~ĝ~gcy~г~gdot~ġ~gel~⋛~geq~≥~geqq~≧~geqslant~⩾~ges~⩾~gescc~⪩~gesdot~⪀~gesdoto~⪂~gesdotol~⪄~gesl~⋛︀~gesles~⪔~gfr~𝔤~gg~≫~ggg~⋙~gimel~ℷ~gjcy~ѓ~gl~≷~glE~⪒~gla~⪥~glj~⪤~gnE~≩~gnap~⪊~gnapprox~⪊~gne~⪈~gneq~⪈~gneqq~≩~gnsim~⋧~gopf~𝕘~grave~`~gscr~ℊ~gsim~≳~gsime~⪎~gsiml~⪐~gtcc~⪧~gtcir~⩺~gtdot~⋗~gtlPar~⦕~gtquest~⩼~gtrapprox~⪆~gtrarr~⥸~gtrdot~⋗~gtreqless~⋛~gtreqqless~⪌~gtrless~≷~gtrsim~≳~gvertneqq~≩︀~gvnE~≩︀~hairsp~ ~half~½~hamilt~ℋ~hardcy~ъ~harrcir~⥈~harrw~↭~hbar~ℏ~hcirc~ĥ~heartsuit~♥~hercon~⊹~hfr~𝔥~hksearow~⤥~hkswarow~⤦~hoarr~⇿~homtht~∻~hookleftarrow~↩~hookrightarrow~↪~hopf~𝕙~horbar~―~hscr~𝒽~hslash~ℏ~hstrok~ħ~hybull~⁃~hyphen~‐~ic~~icy~и~iecy~е~iff~⇔~ifr~𝔦~ii~ⅈ~iiiint~⨌~iiint~∭~iinfin~⧜~iiota~℩~ijlig~ij~imacr~ī~imagline~ℐ~imagpart~ℑ~imath~ı~imof~⊷~imped~Ƶ~in~∈~incare~℅~infintie~⧝~inodot~ı~intcal~⊺~integers~ℤ~intercal~⊺~intlarhk~⨗~intprod~⨼~iocy~ё~iogon~į~iopf~𝕚~iprod~⨼~iscr~𝒾~isinE~⋹~isindot~⋵~isins~⋴~isinsv~⋳~isinv~∈~it~~itilde~ĩ~iukcy~і~jcirc~ĵ~jcy~й~jfr~𝔧~jmath~ȷ~jopf~𝕛~jscr~𝒿~jsercy~ј~jukcy~є~kappav~ϰ~kcedil~ķ~kcy~к~kfr~𝔨~kgreen~ĸ~khcy~х~kjcy~ќ~kopf~𝕜~kscr~𝓀~lAarr~⇚~lAtail~⤛~lBarr~⤎~lE~≦~lEg~⪋~lHar~⥢~lacute~ĺ~laemptyv~⦴~lagran~ℒ~langd~⦑~langle~⟨~lap~⪅~larrb~⇤~larrbfs~⤟~larrfs~⤝~larrhk~↩~larrlp~↫~larrpl~⤹~larrsim~⥳~larrtl~↢~lat~⪫~latail~⤙~late~⪭~lates~⪭︀~lbarr~⤌~lbbrk~❲~lbrace~{~lbrack~[~lbrke~⦋~lbrksld~⦏~lbrkslu~⦍~lcaron~ľ~lcedil~ļ~lcub~{~lcy~л~ldca~⤶~ldquor~„~ldrdhar~⥧~ldrushar~⥋~ldsh~↲~leftarrow~←~leftarrowtail~↢~leftharpoondown~↽~leftharpoonup~↼~leftleftarrows~⇇~leftrightarrow~↔~leftrightarrows~⇆~leftrightharpoons~⇋~leftrightsquigarrow~↭~leftthreetimes~⋋~leg~⋚~leq~≤~leqq~≦~leqslant~⩽~les~⩽~lescc~⪨~lesdot~⩿~lesdoto~⪁~lesdotor~⪃~lesg~⋚︀~lesges~⪓~lessapprox~⪅~lessdot~⋖~lesseqgtr~⋚~lesseqqgtr~⪋~lessgtr~≶~lesssim~≲~lfisht~⥼~lfr~𝔩~lg~≶~lgE~⪑~lhard~↽~lharu~↼~lharul~⥪~lhblk~▄~ljcy~љ~ll~≪~llarr~⇇~llcorner~⌞~llhard~⥫~lltri~◺~lmidot~ŀ~lmoust~⎰~lmoustache~⎰~lnE~≨~lnap~⪉~lnapprox~⪉~lne~⪇~lneq~⪇~lneqq~≨~lnsim~⋦~loang~⟬~loarr~⇽~lobrk~⟦~longleftarrow~⟵~longleftrightarrow~⟷~longmapsto~⟼~longrightarrow~⟶~looparrowleft~↫~looparrowright~↬~lopar~⦅~lopf~𝕝~loplus~⨭~lotimes~⨴~lowbar~_~lozenge~◊~lozf~⧫~lpar~(~lparlt~⦓~lrarr~⇆~lrcorner~⌟~lrhar~⇋~lrhard~⥭~lrtri~⊿~lscr~𝓁~lsh~↰~lsim~≲~lsime~⪍~lsimg~⪏~lsqb~[~lsquor~‚~lstrok~ł~ltcc~⪦~ltcir~⩹~ltdot~⋖~lthree~⋋~ltimes~⋉~ltlarr~⥶~ltquest~⩻~ltrPar~⦖~ltri~◃~ltrie~⊴~ltrif~◂~lurdshar~⥊~luruhar~⥦~lvertneqq~≨︀~lvnE~≨︀~mDDot~∺~male~♂~malt~✠~maltese~✠~map~↦~mapsto~↦~mapstodown~↧~mapstoleft~↤~mapstoup~↥~marker~▮~mcomma~⨩~mcy~м~measuredangle~∡~mfr~𝔪~mho~℧~mid~∣~midast~*~midcir~⫰~minusb~⊟~minusd~∸~minusdu~⨪~mlcp~⫛~mldr~…~mnplus~∓~models~⊧~mopf~𝕞~mp~∓~mscr~𝓂~mstpos~∾~multimap~⊸~mumap~⊸~nGg~⋙̸~nGt~≫⃒~nGtv~≫̸~nLeftarrow~⇍~nLeftrightarrow~⇎~nLl~⋘̸~nLt~≪⃒~nLtv~≪̸~nRightarrow~⇏~nVDash~⊯~nVdash~⊮~nacute~ń~nang~∠⃒~nap~≉~napE~⩰̸~napid~≋̸~napos~ʼn~napprox~≉~natur~♮~natural~♮~naturals~ℕ~nbump~≎̸~nbumpe~≏̸~ncap~⩃~ncaron~ň~ncedil~ņ~ncong~≇~ncongdot~⩭̸~ncup~⩂~ncy~н~neArr~⇗~nearhk~⤤~nearr~↗~nearrow~↗~nedot~≐̸~nequiv~≢~nesear~⤨~nesim~≂̸~nexist~∄~nexists~∄~nfr~𝔫~ngE~≧̸~nge~≱~ngeq~≱~ngeqq~≧̸~ngeqslant~⩾̸~nges~⩾̸~ngsim~≵~ngt~≯~ngtr~≯~nhArr~⇎~nharr~↮~nhpar~⫲~nis~⋼~nisd~⋺~niv~∋~njcy~њ~nlArr~⇍~nlE~≦̸~nlarr~↚~nldr~‥~nle~≰~nleftarrow~↚~nleftrightarrow~↮~nleq~≰~nleqq~≦̸~nleqslant~⩽̸~nles~⩽̸~nless~≮~nlsim~≴~nlt~≮~nltri~⋪~nltrie~⋬~nmid~∤~nopf~𝕟~notinE~⋹̸~notindot~⋵̸~notinva~∉~notinvb~⋷~notinvc~⋶~notni~∌~notniva~∌~notnivb~⋾~notnivc~⋽~npar~∦~nparallel~∦~nparsl~⫽⃥~npart~∂̸~npolint~⨔~npr~⊀~nprcue~⋠~npre~⪯̸~nprec~⊀~npreceq~⪯̸~nrArr~⇏~nrarr~↛~nrarrc~⤳̸~nrarrw~↝̸~nrightarrow~↛~nrtri~⋫~nrtrie~⋭~nsc~⊁~nsccue~⋡~nsce~⪰̸~nscr~𝓃~nshortmid~∤~nshortparallel~∦~nsim~≁~nsime~≄~nsimeq~≄~nsmid~∤~nspar~∦~nsqsube~⋢~nsqsupe~⋣~nsubE~⫅̸~nsube~⊈~nsubset~⊂⃒~nsubseteq~⊈~nsubseteqq~⫅̸~nsucc~⊁~nsucceq~⪰̸~nsup~⊅~nsupE~⫆̸~nsupe~⊉~nsupset~⊃⃒~nsupseteq~⊉~nsupseteqq~⫆̸~ntgl~≹~ntlg~≸~ntriangleleft~⋪~ntrianglelefteq~⋬~ntriangleright~⋫~ntrianglerighteq~⋭~num~#~numero~№~numsp~ ~nvDash~⊭~nvHarr~⤄~nvap~≍⃒~nvdash~⊬~nvge~≥⃒~nvgt~>⃒~nvinfin~⧞~nvlArr~⤂~nvle~≤⃒~nvlt~<⃒~nvltrie~⊴⃒~nvrArr~⤃~nvrtrie~⊵⃒~nvsim~∼⃒~nwArr~⇖~nwarhk~⤣~nwarr~↖~nwarrow~↖~nwnear~⤧~oS~Ⓢ~oast~⊛~ocir~⊚~ocy~о~odash~⊝~odblac~ő~odiv~⨸~odot~⊙~odsold~⦼~ofcir~⦿~ofr~𝔬~ogon~˛~ogt~⧁~ohbar~⦵~ohm~Ω~oint~∮~olarr~↺~olcir~⦾~olcross~⦻~olt~⧀~omacr~ō~omid~⦶~ominus~⊖~oopf~𝕠~opar~⦷~operp~⦹~orarr~↻~ord~⩝~order~ℴ~orderof~ℴ~origof~⊶~oror~⩖~orslope~⩗~orv~⩛~oscr~ℴ~osol~⊘~otimesas~⨶~ovbar~⌽~par~∥~parallel~∥~parsim~⫳~parsl~⫽~pcy~п~percnt~%~period~.~pertenk~‱~pfr~𝔭~phiv~ϕ~phmmat~ℳ~phone~☎~pitchfork~⋔~planck~ℏ~planckh~ℎ~plankv~ℏ~plus~+~plusacir~⨣~plusb~⊞~pluscir~⨢~plusdo~∔~plusdu~⨥~pluse~⩲~plussim~⨦~plustwo~⨧~pm~±~pointint~⨕~popf~𝕡~pr~≺~prE~⪳~prap~⪷~prcue~≼~pre~⪯~prec~≺~precapprox~⪷~preccurlyeq~≼~preceq~⪯~precnapprox~⪹~precneqq~⪵~precnsim~⋨~precsim~≾~primes~ℙ~prnE~⪵~prnap~⪹~prnsim~⋨~profalar~⌮~profline~⌒~profsurf~⌓~propto~∝~prsim~≾~prurel~⊰~pscr~𝓅~puncsp~ ~qfr~𝔮~qint~⨌~qopf~𝕢~qprime~⁗~qscr~𝓆~quaternions~ℍ~quatint~⨖~quest~?~questeq~≟~rAarr~⇛~rAtail~⤜~rBarr~⤏~rHar~⥤~race~∽̱~racute~ŕ~raemptyv~⦳~rangd~⦒~range~⦥~rangle~⟩~rarrap~⥵~rarrb~⇥~rarrbfs~⤠~rarrc~⤳~rarrfs~⤞~rarrhk~↪~rarrlp~↬~rarrpl~⥅~rarrsim~⥴~rarrtl~↣~rarrw~↝~ratail~⤚~ratio~∶~rationals~ℚ~rbarr~⤍~rbbrk~❳~rbrace~}~rbrack~]~rbrke~⦌~rbrksld~⦎~rbrkslu~⦐~rcaron~ř~rcedil~ŗ~rcub~}~rcy~р~rdca~⤷~rdldhar~⥩~rdquor~”~rdsh~↳~realine~ℛ~realpart~ℜ~reals~ℝ~rect~▭~rfisht~⥽~rfr~𝔯~rhard~⇁~rharu~⇀~rharul~⥬~rhov~ϱ~rightarrow~→~rightarrowtail~↣~rightharpoondown~⇁~rightharpoonup~⇀~rightleftarrows~⇄~rightleftharpoons~⇌~rightrightarrows~⇉~rightsquigarrow~↝~rightthreetimes~⋌~ring~˚~risingdotseq~≓~rlarr~⇄~rlhar~⇌~rmoust~⎱~rmoustache~⎱~rnmid~⫮~roang~⟭~roarr~⇾~robrk~⟧~ropar~⦆~ropf~𝕣~roplus~⨮~rotimes~⨵~rpar~)~rpargt~⦔~rppolint~⨒~rrarr~⇉~rscr~𝓇~rsh~↱~rsqb~]~rsquor~’~rthree~⋌~rtimes~⋊~rtri~▹~rtrie~⊵~rtrif~▸~rtriltri~⧎~ruluhar~⥨~rx~℞~sacute~ś~sc~≻~scE~⪴~scap~⪸~sccue~≽~sce~⪰~scedil~ş~scirc~ŝ~scnE~⪶~scnap~⪺~scnsim~⋩~scpolint~⨓~scsim~≿~scy~с~sdotb~⊡~sdote~⩦~seArr~⇘~searhk~⤥~searr~↘~searrow~↘~semi~;~seswar~⤩~setminus~∖~setmn~∖~sext~✶~sfr~𝔰~sfrown~⌢~sharp~♯~shchcy~щ~shcy~ш~shortmid~∣~shortparallel~∥~sigmav~ς~simdot~⩪~sime~≃~simeq~≃~simg~⪞~simgE~⪠~siml~⪝~simlE~⪟~simne~≆~simplus~⨤~simrarr~⥲~slarr~←~smallsetminus~∖~smashp~⨳~smeparsl~⧤~smid~∣~smile~⌣~smt~⪪~smte~⪬~smtes~⪬︀~softcy~ь~sol~/~solb~⧄~solbar~⌿~sopf~𝕤~spadesuit~♠~spar~∥~sqcap~⊓~sqcaps~⊓︀~sqcup~⊔~sqcups~⊔︀~sqsub~⊏~sqsube~⊑~sqsubset~⊏~sqsubseteq~⊑~sqsup~⊐~sqsupe~⊒~sqsupset~⊐~sqsupseteq~⊒~squ~□~square~□~squarf~▪~squf~▪~srarr~→~sscr~𝓈~ssetmn~∖~ssmile~⌣~sstarf~⋆~star~☆~starf~★~straightepsilon~ϵ~straightphi~ϕ~strns~¯~subE~⫅~subdot~⪽~subedot~⫃~submult~⫁~subnE~⫋~subne~⊊~subplus~⪿~subrarr~⥹~subset~⊂~subseteq~⊆~subseteqq~⫅~subsetneq~⊊~subsetneqq~⫋~subsim~⫇~subsub~⫕~subsup~⫓~succ~≻~succapprox~⪸~succcurlyeq~≽~succeq~⪰~succnapprox~⪺~succneqq~⪶~succnsim~⋩~succsim~≿~sung~♪~supE~⫆~supdot~⪾~supdsub~⫘~supedot~⫄~suphsol~⟉~suphsub~⫗~suplarr~⥻~supmult~⫂~supnE~⫌~supne~⊋~supplus~⫀~supset~⊃~supseteq~⊇~supseteqq~⫆~supsetneq~⊋~supsetneqq~⫌~supsim~⫈~supsub~⫔~supsup~⫖~swArr~⇙~swarhk~⤦~swarr~↙~swarrow~↙~swnwar~⤪~target~⌖~tbrk~⎴~tcaron~ť~tcedil~ţ~tcy~т~tdot~⃛~telrec~⌕~tfr~𝔱~therefore~∴~thetav~ϑ~thickapprox~≈~thicksim~∼~thkap~≈~thksim~∼~timesb~⊠~timesbar~⨱~timesd~⨰~tint~∭~toea~⤨~top~⊤~topbot~⌶~topcir~⫱~topf~𝕥~topfork~⫚~tosa~⤩~tprime~‴~triangle~▵~triangledown~▿~triangleleft~◃~trianglelefteq~⊴~triangleq~≜~triangleright~▹~trianglerighteq~⊵~tridot~◬~trie~≜~triminus~⨺~triplus~⨹~trisb~⧍~tritime~⨻~trpezium~⏢~tscr~𝓉~tscy~ц~tshcy~ћ~tstrok~ŧ~twixt~≬~twoheadleftarrow~↞~twoheadrightarrow~↠~uHar~⥣~ubrcy~ў~ubreve~ŭ~ucy~у~udarr~⇅~udblac~ű~udhar~⥮~ufisht~⥾~ufr~𝔲~uharl~↿~uharr~↾~uhblk~▀~ulcorn~⌜~ulcorner~⌜~ulcrop~⌏~ultri~◸~umacr~ū~uogon~ų~uopf~𝕦~uparrow~↑~updownarrow~↕~upharpoonleft~↿~upharpoonright~↾~uplus~⊎~upsi~υ~upuparrows~⇈~urcorn~⌝~urcorner~⌝~urcrop~⌎~uring~ů~urtri~◹~uscr~𝓊~utdot~⋰~utilde~ũ~utri~▵~utrif~▴~uuarr~⇈~uwangle~⦧~vArr~⇕~vBar~⫨~vBarv~⫩~vDash~⊨~vangrt~⦜~varepsilon~ϵ~varkappa~ϰ~varnothing~∅~varphi~ϕ~varpi~ϖ~varpropto~∝~varr~↕~varrho~ϱ~varsigma~ς~varsubsetneq~⊊︀~varsubsetneqq~⫋︀~varsupsetneq~⊋︀~varsupsetneqq~⫌︀~vartheta~ϑ~vartriangleleft~⊲~vartriangleright~⊳~vcy~в~vdash~⊢~vee~∨~veebar~⊻~veeeq~≚~vellip~⋮~verbar~|~vert~|~vfr~𝔳~vltri~⊲~vnsub~⊂⃒~vnsup~⊃⃒~vopf~𝕧~vprop~∝~vrtri~⊳~vscr~𝓋~vsubnE~⫋︀~vsubne~⊊︀~vsupnE~⫌︀~vsupne~⊋︀~vzigzag~⦚~wcirc~ŵ~wedbar~⩟~wedge~∧~wedgeq~≙~wfr~𝔴~wopf~𝕨~wp~℘~wr~≀~wreath~≀~wscr~𝓌~xcap~⋂~xcirc~◯~xcup~⋃~xdtri~▽~xfr~𝔵~xhArr~⟺~xharr~⟷~xlArr~⟸~xlarr~⟵~xmap~⟼~xnis~⋻~xodot~⨀~xopf~𝕩~xoplus~⨁~xotime~⨂~xrArr~⟹~xrarr~⟶~xscr~𝓍~xsqcup~⨆~xuplus~⨄~xutri~△~xvee~⋁~xwedge~⋀~yacy~я~ycirc~ŷ~ycy~ы~yfr~𝔶~yicy~ї~yopf~𝕪~yscr~𝓎~yucy~ю~zacute~ź~zcaron~ž~zcy~з~zdot~ż~zeetrf~ℨ~zfr~𝔷~zhcy~ж~zigrarr~⇝~zopf~𝕫~zscr~𝓏~~AMP~&~COPY~©~GT~>~LT~<~QUOT~"~REG~®', I.html4);
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
},
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
},
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
1493
|
+
var ve = je();
|
|
1494
|
+
const N = /* @__PURE__ */ zt(ve), O = ({ text: t }) => t ? /* @__PURE__ */ r.jsx("div", { className: "title", dangerouslySetInnerHTML: { __html: t } }) : null, $e = ({ node: t }) => {
|
|
1495
|
+
const { document: e } = U(), s = e.attributes || {}, n = t.attributes, i = () => s.icons === "font" && !n.icon ? /* @__PURE__ */ r.jsx("i", { className: `fa icon-${n.name}`, title: `${n.textlabel}` }) : /* @__PURE__ */ r.jsx("img", { src: t.iconUri, alt: `${n.textlabel}` });
|
|
1496
|
+
return /* @__PURE__ */ r.jsx(
|
|
1497
|
+
"div",
|
|
1498
|
+
{
|
|
1499
|
+
id: t.id || void 0,
|
|
1500
|
+
className: N("admonitionblock", `${n.name}`, t.role),
|
|
1501
|
+
...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
|
|
1502
|
+
children: /* @__PURE__ */ r.jsx("table", { children: /* @__PURE__ */ r.jsxs("tr", { children: [
|
|
1503
|
+
/* @__PURE__ */ r.jsx("td", { className: "icon", children: s.icons ? i() : /* @__PURE__ */ r.jsx("div", { className: "title", children: `${n.textlabel}` }) }),
|
|
1504
|
+
t.blocks.length > 0 ? /* @__PURE__ */ r.jsxs("td", { className: "content", children: [
|
|
1505
|
+
/* @__PURE__ */ r.jsx(O, { text: t.title }),
|
|
1506
|
+
/* @__PURE__ */ r.jsx(P, { blocks: t.blocks })
|
|
1507
|
+
] }) : /* @__PURE__ */ r.jsx(
|
|
1508
|
+
"td",
|
|
1509
|
+
{
|
|
1510
|
+
className: "content",
|
|
1511
|
+
dangerouslySetInnerHTML: {
|
|
1512
|
+
__html: (t.title ? `<div class="title">${t.title}</div>` : "") + E(t.inlines).__html
|
|
1513
|
+
}
|
|
1514
|
+
}
|
|
1515
|
+
)
|
|
1516
|
+
] }) })
|
|
1517
|
+
}
|
|
1518
|
+
);
|
|
1519
|
+
}, Se = ({ node: t }) => {
|
|
1520
|
+
const e = t.attributes.start, s = t.attributes.end, n = e || s ? `#t=${e || ""}${s ? "," + s : ""}` : "", i = [
|
|
1521
|
+
t.autoplay ? "autoplay" : "",
|
|
1522
|
+
t.noControls ? "" : "controls",
|
|
1523
|
+
t.loop ? "loop" : ""
|
|
1524
|
+
].filter(Boolean).join(" "), a = `<audio src="${t.mediaUri}${n}"${i ? " " + i : ""}>` + "Your browser does not support the audio tag.</audio>";
|
|
1525
|
+
return /* @__PURE__ */ r.jsxs(
|
|
1526
|
+
"div",
|
|
1527
|
+
{
|
|
1528
|
+
id: t.id || void 0,
|
|
1529
|
+
className: N("audioblock", t.role),
|
|
1530
|
+
...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
|
|
1531
|
+
children: [
|
|
1532
|
+
/* @__PURE__ */ r.jsx(O, { text: t.title }),
|
|
1533
|
+
/* @__PURE__ */ r.jsx("div", { className: "content", dangerouslySetInnerHTML: { __html: a } })
|
|
1534
|
+
]
|
|
1535
|
+
}
|
|
1536
|
+
);
|
|
1537
|
+
}, we = ({ node: t }) => {
|
|
1538
|
+
const { document: e } = U(), s = e.attributes?.icons === "font";
|
|
1539
|
+
return /* @__PURE__ */ r.jsxs(
|
|
1540
|
+
"div",
|
|
1541
|
+
{
|
|
1542
|
+
id: t.id || void 0,
|
|
1543
|
+
className: N("colist", t.style || "arabic", t.role),
|
|
1544
|
+
...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
|
|
1545
|
+
children: [
|
|
1546
|
+
/* @__PURE__ */ r.jsx(O, { text: t.title }),
|
|
1547
|
+
s ? /* @__PURE__ */ r.jsx("table", { children: t.items.map((n, i) => /* @__PURE__ */ r.jsxs("tr", { children: [
|
|
1548
|
+
/* @__PURE__ */ r.jsxs("td", { children: [
|
|
1549
|
+
/* @__PURE__ */ r.jsx("i", { className: "conum", "data-value": i + 1 }),
|
|
1550
|
+
/* @__PURE__ */ r.jsx("b", { children: i + 1 })
|
|
1551
|
+
] }),
|
|
1552
|
+
n.blocks.length > 0 ? /* @__PURE__ */ r.jsxs("td", { children: [
|
|
1553
|
+
/* @__PURE__ */ r.jsx("span", { dangerouslySetInnerHTML: E(n.textInlines) }),
|
|
1554
|
+
/* @__PURE__ */ r.jsx(P, { blocks: n.blocks })
|
|
1555
|
+
] }) : /* @__PURE__ */ r.jsx("td", { dangerouslySetInnerHTML: E(n.textInlines) })
|
|
1556
|
+
] }, i)) }) : /* @__PURE__ */ r.jsx("ol", { children: t.items.map((n, i) => /* @__PURE__ */ r.jsxs("li", { children: [
|
|
1557
|
+
/* @__PURE__ */ r.jsx("p", { dangerouslySetInnerHTML: E(n.textInlines) }),
|
|
1558
|
+
/* @__PURE__ */ r.jsx(P, { blocks: n.blocks })
|
|
1559
|
+
] }, i)) })
|
|
1560
|
+
]
|
|
1561
|
+
}
|
|
1562
|
+
);
|
|
1563
|
+
}, J = (t, e) => t[`${e}-option`] !== void 0, ft = (t, e, s = void 0, n, i) => {
|
|
1564
|
+
if (t[e] !== void 0)
|
|
1565
|
+
return t[e];
|
|
1566
|
+
const l = n || e;
|
|
1567
|
+
return l && i && i[l] !== void 0 ? i[l] : s;
|
|
1568
|
+
}, Y = (t, e) => t[e] !== void 0, tt = {}, _e = (t) => {
|
|
1569
|
+
const e = t.$$id;
|
|
1570
|
+
if (tt[e])
|
|
1571
|
+
return tt[e];
|
|
1572
|
+
const s = t.getContent && t.getContent() || "";
|
|
1573
|
+
return tt[e] = s, s;
|
|
1574
|
+
}, Ot = (t) => {
|
|
1575
|
+
const e = t.$$id;
|
|
1576
|
+
if (tt[e])
|
|
1577
|
+
return tt[e];
|
|
1578
|
+
const s = t.getText && t.getText() || "";
|
|
1579
|
+
return tt[e] = s, s;
|
|
1580
|
+
}, Ne = (t) => typeof t.title == "string" ? t.title : void 0, Te = (t) => typeof t.getSourceLines == "function" ? t.getSourceLines().join(`
|
|
1581
|
+
`) : "", is = (t) => {
|
|
1582
|
+
let e;
|
|
1583
|
+
const s = t.getAttributes(), n = {};
|
|
1584
|
+
for (const [o, f] of Object.entries(s))
|
|
1585
|
+
f != null && (n[o] = String(f));
|
|
1586
|
+
const i = {
|
|
1587
|
+
footnoteIndex: 0,
|
|
1588
|
+
footnotesById: /* @__PURE__ */ new Map(),
|
|
1589
|
+
counters: /* @__PURE__ */ new Map()
|
|
1590
|
+
}, l = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Map(), m = typeof s.xrefstyle == "string" ? s.xrefstyle : void 0, x = (o) => {
|
|
1591
|
+
if (o.reftext) return o.reftext;
|
|
1592
|
+
const f = o.sectname === "appendix" || o.sectname === "chapter", v = f ? `<em>${o.title}</em>` : o.title;
|
|
1593
|
+
if (m && o.numbered) {
|
|
1594
|
+
const T = o.numeral.replace(/\.$/, ""), H = s[`${o.sectname}-refsig`];
|
|
1595
|
+
if (m === "full") {
|
|
1596
|
+
const q = f ? `<em>${o.title}</em>` : `“${o.title}”`;
|
|
1597
|
+
return H ? `${H} ${T}, ${q}` : `${T}, ${q}`;
|
|
1598
|
+
}
|
|
1599
|
+
return m === "short" ? H ? `${H} ${T}` : T : v;
|
|
1600
|
+
}
|
|
1601
|
+
return m ? v : o.title;
|
|
1602
|
+
}, g = (o) => {
|
|
1603
|
+
for (const f of o.getSections()) {
|
|
1604
|
+
const v = f.getId(), T = f.getReftext && f.getReftext() || void 0, H = {
|
|
1605
|
+
title: f.getTitle() || "",
|
|
1606
|
+
numbered: f.isNumbered ? f.isNumbered() : !1,
|
|
1607
|
+
sectname: f.getSectionName && f.getSectionName() || "section",
|
|
1608
|
+
numeral: f.getSectionNumeral && f.getSectionNumeral() || "",
|
|
1609
|
+
reftext: T
|
|
1610
|
+
};
|
|
1611
|
+
if (v) {
|
|
1612
|
+
a.add(v), l.set(v, x(H));
|
|
1613
|
+
const q = T || H.title;
|
|
1614
|
+
q && !c.has(q) && c.set(q, v);
|
|
1615
|
+
}
|
|
1616
|
+
g(f);
|
|
1617
|
+
}
|
|
1618
|
+
};
|
|
1619
|
+
g(t);
|
|
1620
|
+
const b = t.getRefs ? t.getRefs() : {};
|
|
1621
|
+
for (const o of Object.keys(b)) {
|
|
1622
|
+
a.add(o);
|
|
1623
|
+
const f = b[o], v = f.getReftext && f.getReftext();
|
|
1624
|
+
if (v)
|
|
1625
|
+
l.set(o, v), c.has(v) || c.set(v, o);
|
|
1626
|
+
else if (!l.has(o)) {
|
|
1627
|
+
const T = typeof f.$xreftext == "function" ? f.$xreftext(m ?? null) : void 0;
|
|
1628
|
+
T ? l.set(o, T) : f.title && l.set(o, f.title);
|
|
479
1629
|
}
|
|
480
1630
|
}
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
const
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
1631
|
+
const u = (o) => {
|
|
1632
|
+
if (!o) return o;
|
|
1633
|
+
for (const f of o) {
|
|
1634
|
+
if (f.type === "anchor" && f.subtype === "xref") {
|
|
1635
|
+
const v = `[${f.target}]`, T = f.text, H = T.length === 1 && T[0].type === "text" && T[0].text === v, q = (k) => {
|
|
1636
|
+
const y = l.get(k);
|
|
1637
|
+
H && typeof y == "string" && (f.text = [{ type: "text", text: y }]);
|
|
1638
|
+
};
|
|
1639
|
+
if (a.has(f.target))
|
|
1640
|
+
q(f.target);
|
|
1641
|
+
else if (f.target.includes(" ") || f.target.toLowerCase() !== f.target) {
|
|
1642
|
+
const k = c.get(f.target);
|
|
1643
|
+
k && (f.target = k, q(k));
|
|
1644
|
+
}
|
|
1645
|
+
}
|
|
1646
|
+
"text" in f && Array.isArray(f.text) && u(f.text);
|
|
1647
|
+
}
|
|
1648
|
+
return o;
|
|
1649
|
+
}, d = (o) => {
|
|
1650
|
+
if (o)
|
|
1651
|
+
return G(o, {
|
|
1652
|
+
attributes: n,
|
|
1653
|
+
state: {
|
|
1654
|
+
footnoteIndex: 0,
|
|
1655
|
+
footnotesById: /* @__PURE__ */ new Map(),
|
|
1656
|
+
counters: i.counters
|
|
1657
|
+
}
|
|
1658
|
+
});
|
|
1659
|
+
};
|
|
1660
|
+
function h(o) {
|
|
1661
|
+
const f = o.getNodeName && o.getNodeName(), v = o.getContentModel && o.getContentModel(), H = f && !(f === "olist" || f === "ulist" || f === "colist" || f === "dlist") && o.hasBlocks() ? o.getBlocks().map((y) => h(y)) : [], q = Ne(o);
|
|
1662
|
+
let k = {
|
|
1663
|
+
id: o.getId && o.getId(),
|
|
1664
|
+
type: f,
|
|
1665
|
+
blocks: H,
|
|
1666
|
+
content: H.length > 0 ? void 0 : _e(o),
|
|
1667
|
+
inlines: H.length === 0 && v === "simple" ? u(
|
|
1668
|
+
G(Te(o), {
|
|
1669
|
+
attributes: n,
|
|
1670
|
+
state: i
|
|
1671
|
+
})
|
|
1672
|
+
) : void 0,
|
|
1673
|
+
titleInlines: o.hasTitle && o.hasTitle() ? d(q) : void 0,
|
|
1674
|
+
attributes: o.getAttributes && o.getAttributes(),
|
|
1675
|
+
contentModel: v,
|
|
1676
|
+
lineNumber: o.getLineNumber && o.getLineNumber(),
|
|
1677
|
+
style: o.getStyle && o.getStyle(),
|
|
1678
|
+
role: o.getRole && o.getRole(),
|
|
1679
|
+
title: o.hasTitle && o.hasTitle() ? o.getCaption && o.getCaption() ? o.getCaptionedTitle() : o.getTitle() : void 0,
|
|
1680
|
+
level: o.getLevel && o.getLevel()
|
|
525
1681
|
};
|
|
526
|
-
if (
|
|
527
|
-
let
|
|
528
|
-
|
|
529
|
-
}
|
|
530
|
-
if (
|
|
531
|
-
let
|
|
532
|
-
|
|
533
|
-
}
|
|
534
|
-
if (
|
|
535
|
-
let
|
|
536
|
-
|
|
537
|
-
}
|
|
538
|
-
if (
|
|
539
|
-
let
|
|
540
|
-
|
|
541
|
-
}
|
|
542
|
-
if ((
|
|
543
|
-
const
|
|
544
|
-
|
|
545
|
-
}
|
|
546
|
-
if (
|
|
547
|
-
const
|
|
548
|
-
|
|
549
|
-
}
|
|
550
|
-
if (
|
|
551
|
-
let
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
(
|
|
1682
|
+
if (f === "admonition") {
|
|
1683
|
+
let y = k;
|
|
1684
|
+
y.iconUri = o.getIconUri(k.attributes.name);
|
|
1685
|
+
}
|
|
1686
|
+
if (f === "audio") {
|
|
1687
|
+
let y = k;
|
|
1688
|
+
y.mediaUri = o.getMediaUri(o.getAttribute("target")), y.autoplay = o.isOption("autoplay"), y.noControls = o.isOption("nocontrols"), y.loop = o.isOption("loop"), k = y;
|
|
1689
|
+
}
|
|
1690
|
+
if (f === "video") {
|
|
1691
|
+
let y = k;
|
|
1692
|
+
y.mediaUri = o.getMediaUri(o.getAttribute("target")), y.autoplay = o.isOption("autoplay"), y.noControls = o.isOption("nocontrols"), y.loop = o.isOption("loop"), y.onHover = o.isOption("onhover"), k = y;
|
|
1693
|
+
}
|
|
1694
|
+
if (f === "image") {
|
|
1695
|
+
let y = k;
|
|
1696
|
+
y.imageUri = o.getImageUri(o.getAttribute("target")), y.alt = typeof o.getAlt == "function" ? o.getAlt() : o.getAttribute("alt") ?? "";
|
|
1697
|
+
}
|
|
1698
|
+
if ((f === "listing" || f === "literal") && "getSource" in o) {
|
|
1699
|
+
const y = k;
|
|
1700
|
+
y.source = o.getSource(), y.language = o.getAttribute("language");
|
|
1701
|
+
}
|
|
1702
|
+
if (f === "section") {
|
|
1703
|
+
const y = k, w = !!o.getCaption();
|
|
1704
|
+
y.title = w ? o.getCaptionedTitle() : o.getTitle() || "", y.hasCaption = w, "getSectionNumeral" in o && (y.name = o.getSectionName(), y.numbered = o.isNumbered(), y.num = o.getSectionNumeral());
|
|
1705
|
+
}
|
|
1706
|
+
if (f === "dlist") {
|
|
1707
|
+
let y = k;
|
|
1708
|
+
y.items = o.getItems().map((w) => [
|
|
1709
|
+
w[0].map(
|
|
1710
|
+
(F) => h(F)
|
|
555
1711
|
),
|
|
556
|
-
|
|
1712
|
+
h(w[1])
|
|
557
1713
|
]);
|
|
558
1714
|
}
|
|
559
|
-
if (
|
|
560
|
-
let
|
|
561
|
-
|
|
1715
|
+
if (f === "colist" || f === "olist" || f === "ulist") {
|
|
1716
|
+
let y = k;
|
|
1717
|
+
y.items = o.getItems().map((w) => h(w));
|
|
562
1718
|
}
|
|
563
|
-
if (
|
|
564
|
-
let
|
|
565
|
-
const
|
|
566
|
-
|
|
1719
|
+
if (f === "list_item") {
|
|
1720
|
+
let y = k;
|
|
1721
|
+
const w = o, F = typeof w.text == "string" ? w.text : void 0;
|
|
1722
|
+
y.text = w.hasText() ? Ot(w) : void 0, y.textInlines = w.hasText() && F !== void 0 ? u(
|
|
1723
|
+
G(F, {
|
|
1724
|
+
attributes: n,
|
|
1725
|
+
state: i
|
|
1726
|
+
})
|
|
1727
|
+
) : void 0;
|
|
567
1728
|
}
|
|
568
|
-
if (
|
|
569
|
-
let
|
|
570
|
-
const
|
|
571
|
-
|
|
1729
|
+
if (f === "table") {
|
|
1730
|
+
let y = k;
|
|
1731
|
+
const w = o;
|
|
1732
|
+
y.columns = w.getColumns().map((B) => ({
|
|
572
1733
|
// @ts-ignore
|
|
573
|
-
attributes:
|
|
574
|
-
columnNumber:
|
|
575
|
-
width:
|
|
576
|
-
horizontalAlign:
|
|
577
|
-
verticalAlign:
|
|
578
|
-
style:
|
|
1734
|
+
attributes: B.getAttributes(),
|
|
1735
|
+
columnNumber: B.getColumnNumber(),
|
|
1736
|
+
width: B.getWidth(),
|
|
1737
|
+
horizontalAlign: B.getHorizontalAlign(),
|
|
1738
|
+
verticalAlign: B.getVerticalAlign(),
|
|
1739
|
+
style: B.getStyle()
|
|
579
1740
|
}));
|
|
580
|
-
const
|
|
581
|
-
(
|
|
582
|
-
),
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
if (c === "table_cell") {
|
|
599
|
-
const u = a, m = u.getColumn();
|
|
600
|
-
g = {
|
|
601
|
-
...g,
|
|
1741
|
+
const F = (B) => B.map(
|
|
1742
|
+
(ct) => ct.map((ot) => h(ot))
|
|
1743
|
+
), Z = F(w.getHeadRows()), et = F(w.getBodyRows()), at = F(w.getFootRows());
|
|
1744
|
+
y.rows = { head: Z, body: et, foot: at }, y = {
|
|
1745
|
+
...y,
|
|
1746
|
+
caption: w.getCaption(),
|
|
1747
|
+
hasHeader: w.hasHeaderOption(),
|
|
1748
|
+
hasFooter: w.hasFooterOption(),
|
|
1749
|
+
hasAutowidth: w.hasAutowidthOption(),
|
|
1750
|
+
headRows: Z,
|
|
1751
|
+
bodyRows: et,
|
|
1752
|
+
footRows: at
|
|
1753
|
+
}, k = y;
|
|
1754
|
+
}
|
|
1755
|
+
if (f === "table_cell") {
|
|
1756
|
+
const y = o, w = y.getColumn(), F = typeof y.text == "string" ? y.text : y.getSource();
|
|
1757
|
+
k = {
|
|
1758
|
+
...k,
|
|
602
1759
|
type: "table_cell",
|
|
603
|
-
text:
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
1760
|
+
text: Ot(y),
|
|
1761
|
+
textInlines: F ? u(
|
|
1762
|
+
G(F, {
|
|
1763
|
+
attributes: n,
|
|
1764
|
+
state: i
|
|
1765
|
+
})
|
|
1766
|
+
) : void 0,
|
|
1767
|
+
columnSpan: y.getColumnSpan(),
|
|
1768
|
+
rowSpan: y.getRowSpan(),
|
|
1769
|
+
source: y.getSource(),
|
|
1770
|
+
lines: y.getLines(),
|
|
1771
|
+
width: y.getWidth(),
|
|
1772
|
+
columnPercentageWidth: y.getColumnPercentageWidth(),
|
|
1773
|
+
column: w ? {
|
|
611
1774
|
// @ts-ignore
|
|
612
|
-
attributes:
|
|
613
|
-
columnNumber:
|
|
614
|
-
width:
|
|
615
|
-
horizontalAlign:
|
|
616
|
-
verticalAlign:
|
|
617
|
-
style:
|
|
1775
|
+
attributes: w.getAttributes(),
|
|
1776
|
+
columnNumber: w.getColumnNumber(),
|
|
1777
|
+
width: w.getWidth(),
|
|
1778
|
+
horizontalAlign: w.getHorizontalAlign(),
|
|
1779
|
+
verticalAlign: w.getVerticalAlign(),
|
|
1780
|
+
style: w.getStyle()
|
|
618
1781
|
} : void 0
|
|
619
1782
|
};
|
|
620
1783
|
}
|
|
621
|
-
return
|
|
1784
|
+
return k;
|
|
622
1785
|
}
|
|
623
|
-
function
|
|
624
|
-
return
|
|
625
|
-
id:
|
|
626
|
-
title: (
|
|
627
|
-
level:
|
|
628
|
-
num:
|
|
629
|
-
|
|
1786
|
+
function j(o) {
|
|
1787
|
+
return o.getSections().map((f) => ({
|
|
1788
|
+
id: f.getId(),
|
|
1789
|
+
title: (f.getCaption() ? f.getCaptionedTitle() : f.getTitle()) || "",
|
|
1790
|
+
level: f.getLevel(),
|
|
1791
|
+
num: f.getSectionNumber(),
|
|
1792
|
+
numbered: f.isNumbered(),
|
|
1793
|
+
hasCaption: !!f.getCaption(),
|
|
1794
|
+
sections: j(f)
|
|
630
1795
|
}));
|
|
631
1796
|
}
|
|
632
|
-
|
|
1797
|
+
e = {
|
|
633
1798
|
type: "document",
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
1799
|
+
id: t.getId && t.getId() || void 0,
|
|
1800
|
+
title: t.getDocumentTitle()?.toString() || "",
|
|
1801
|
+
hasHeader: t.hasHeader(),
|
|
1802
|
+
noHeader: t.getNoheader(),
|
|
1803
|
+
contentModel: t.getContentModel(),
|
|
638
1804
|
footnotes: [],
|
|
639
|
-
attributes:
|
|
640
|
-
blocks:
|
|
641
|
-
sections:
|
|
1805
|
+
attributes: t.getAttributes(),
|
|
1806
|
+
blocks: t.getBlocks().map((o) => h(o)),
|
|
1807
|
+
sections: j(t),
|
|
642
1808
|
authors: []
|
|
643
1809
|
};
|
|
644
|
-
const
|
|
645
|
-
return
|
|
646
|
-
text:
|
|
647
|
-
index:
|
|
648
|
-
}))),
|
|
649
|
-
const
|
|
1810
|
+
const $ = t.getFootnotes();
|
|
1811
|
+
return $ && (e.footnotes = $.map((o) => ({
|
|
1812
|
+
text: o.getText(),
|
|
1813
|
+
index: o.getIndex()
|
|
1814
|
+
}))), t.getAuthors() && (e.authors = t.getAuthors().map((o) => {
|
|
1815
|
+
const f = o.getName(), v = o.getEmail();
|
|
650
1816
|
return {
|
|
651
|
-
name:
|
|
652
|
-
email:
|
|
1817
|
+
name: f ? t.applySubstitutions(f).toString() : void 0,
|
|
1818
|
+
email: v ? t.applySubstitutions(v).toString() : void 0
|
|
653
1819
|
};
|
|
654
|
-
})),
|
|
655
|
-
},
|
|
656
|
-
const s = async (
|
|
657
|
-
|
|
658
|
-
let a = await
|
|
1820
|
+
})), e;
|
|
1821
|
+
}, ls = async (t, e) => {
|
|
1822
|
+
const s = async (i) => Promise.all(
|
|
1823
|
+
i.map(async (l) => {
|
|
1824
|
+
let a = await e(l);
|
|
659
1825
|
if (a.blocks && a.blocks.length > 0 && (a.blocks = await s(a.blocks)), a.items) {
|
|
660
1826
|
const c = a;
|
|
661
1827
|
c.items = await s(
|
|
@@ -664,209 +1830,213 @@ const F = (e, t) => e[`${t}-option`] !== void 0, z = (e, t, s = void 0, n, l) =>
|
|
|
664
1830
|
}
|
|
665
1831
|
return a;
|
|
666
1832
|
})
|
|
667
|
-
), n = await s(
|
|
1833
|
+
), n = await s(t.blocks);
|
|
668
1834
|
return {
|
|
669
|
-
...
|
|
1835
|
+
...t,
|
|
670
1836
|
blocks: n
|
|
671
1837
|
};
|
|
672
|
-
},
|
|
673
|
-
const
|
|
674
|
-
const
|
|
675
|
-
let a =
|
|
676
|
-
return a.type
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
}
|
|
680
|
-
}
|
|
681
|
-
|
|
682
|
-
return /* @__PURE__ */ r.jsxs("dd", { children: [
|
|
683
|
-
n.text && /* @__PURE__ */ r.jsx("p", { children: h(n.text) }),
|
|
684
|
-
/* @__PURE__ */ r.jsx(E, { blocks: n.blocks })
|
|
685
|
-
] });
|
|
686
|
-
};
|
|
687
|
-
if (e.style === "qanda")
|
|
1838
|
+
}, ke = ({ node: t }) => {
|
|
1839
|
+
const e = (n) => {
|
|
1840
|
+
const i = n, l = i[0];
|
|
1841
|
+
let a = i[1];
|
|
1842
|
+
return (!a || !a.type) && (a = null), { terms: l, dd: a };
|
|
1843
|
+
}, s = (n) => n ? /* @__PURE__ */ r.jsxs("dd", { children: [
|
|
1844
|
+
n.text && /* @__PURE__ */ r.jsx("p", { dangerouslySetInnerHTML: E(n.textInlines) }),
|
|
1845
|
+
/* @__PURE__ */ r.jsx(P, { blocks: n.blocks })
|
|
1846
|
+
] }) : null;
|
|
1847
|
+
if (t.style === "qanda")
|
|
688
1848
|
return /* @__PURE__ */ r.jsxs(
|
|
689
1849
|
"div",
|
|
690
1850
|
{
|
|
691
|
-
|
|
692
|
-
|
|
1851
|
+
id: t.id || void 0,
|
|
1852
|
+
className: N("qlist qanda", t.role),
|
|
1853
|
+
...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
|
|
693
1854
|
children: [
|
|
694
|
-
/* @__PURE__ */ r.jsx(
|
|
695
|
-
/* @__PURE__ */ r.jsx("ol", { children:
|
|
696
|
-
const { terms:
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
1855
|
+
/* @__PURE__ */ r.jsx(O, { text: t.title }),
|
|
1856
|
+
/* @__PURE__ */ r.jsx("ol", { children: t.items.map((n, i) => {
|
|
1857
|
+
const { terms: l, dd: a } = e(n);
|
|
1858
|
+
return l ? /* @__PURE__ */ r.jsxs("li", { children: [
|
|
1859
|
+
l.map((c, m) => /* @__PURE__ */ r.jsx("p", { children: /* @__PURE__ */ r.jsx("em", { dangerouslySetInnerHTML: E(c.textInlines) }) }, m)),
|
|
1860
|
+
a && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1861
|
+
a.text && /* @__PURE__ */ r.jsx("p", { dangerouslySetInnerHTML: E(a.textInlines) }),
|
|
1862
|
+
/* @__PURE__ */ r.jsx(P, { blocks: a.blocks })
|
|
1863
|
+
] })
|
|
1864
|
+
] }, i) : null;
|
|
702
1865
|
}) })
|
|
703
1866
|
]
|
|
704
1867
|
}
|
|
705
1868
|
);
|
|
706
|
-
if (
|
|
707
|
-
const n =
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
{
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
)
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
1869
|
+
if (t.style === "horizontal") {
|
|
1870
|
+
const n = t.attributes.labelwidth, i = t.attributes.itemwidth, l = (a) => ({
|
|
1871
|
+
width: `${a.toString().replace("%", "")}%`
|
|
1872
|
+
});
|
|
1873
|
+
return /* @__PURE__ */ r.jsxs(
|
|
1874
|
+
"div",
|
|
1875
|
+
{
|
|
1876
|
+
id: t.id || void 0,
|
|
1877
|
+
className: N("hdlist", t.role),
|
|
1878
|
+
...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
|
|
1879
|
+
children: [
|
|
1880
|
+
/* @__PURE__ */ r.jsx(O, { text: t.title }),
|
|
1881
|
+
/* @__PURE__ */ r.jsxs("table", { children: [
|
|
1882
|
+
(n || i) && /* @__PURE__ */ r.jsxs("colgroup", { children: [
|
|
1883
|
+
/* @__PURE__ */ r.jsx("col", { ...n ? { style: l(n) } : {} }),
|
|
1884
|
+
/* @__PURE__ */ r.jsx("col", { ...i ? { style: l(i) } : {} })
|
|
1885
|
+
] }),
|
|
1886
|
+
t.items.map((a, c) => {
|
|
1887
|
+
const { terms: m, dd: x } = e(a);
|
|
1888
|
+
return m ? /* @__PURE__ */ r.jsxs("tr", { children: [
|
|
1889
|
+
/* @__PURE__ */ r.jsx(
|
|
1890
|
+
"td",
|
|
1891
|
+
{
|
|
1892
|
+
className: N(
|
|
1893
|
+
"hdlist1",
|
|
1894
|
+
J(t.attributes, "strong") && "strong"
|
|
1895
|
+
),
|
|
1896
|
+
dangerouslySetInnerHTML: {
|
|
1897
|
+
__html: m.map((g) => E(g.textInlines).__html).join("<br>")
|
|
1898
|
+
}
|
|
1899
|
+
}
|
|
1900
|
+
),
|
|
1901
|
+
x && /* @__PURE__ */ r.jsxs("td", { className: "hdlist2", children: [
|
|
1902
|
+
x.text && /* @__PURE__ */ r.jsx("p", { dangerouslySetInnerHTML: E(x.textInlines) }),
|
|
1903
|
+
/* @__PURE__ */ r.jsx(P, { blocks: x.blocks })
|
|
1904
|
+
] })
|
|
1905
|
+
] }, c) : null;
|
|
1906
|
+
})
|
|
1907
|
+
] })
|
|
1908
|
+
]
|
|
1909
|
+
}
|
|
1910
|
+
);
|
|
1911
|
+
}
|
|
1912
|
+
return /* @__PURE__ */ r.jsxs(
|
|
1913
|
+
"div",
|
|
1914
|
+
{
|
|
1915
|
+
id: t.id || void 0,
|
|
1916
|
+
className: N("dlist", t.style, t.role),
|
|
1917
|
+
...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
|
|
1918
|
+
children: [
|
|
1919
|
+
/* @__PURE__ */ r.jsx(O, { text: t.title }),
|
|
1920
|
+
/* @__PURE__ */ r.jsx("dl", { children: t.items.map((n, i) => {
|
|
1921
|
+
const { terms: l, dd: a } = e(n);
|
|
1922
|
+
return l ? /* @__PURE__ */ r.jsxs(jt, { children: [
|
|
1923
|
+
l.map((c, m) => /* @__PURE__ */ r.jsx(
|
|
1924
|
+
"dt",
|
|
1925
|
+
{
|
|
1926
|
+
className: t.style === "glossary" ? void 0 : "hdlist1",
|
|
1927
|
+
dangerouslySetInnerHTML: E(c.textInlines)
|
|
1928
|
+
},
|
|
1929
|
+
m
|
|
1930
|
+
)),
|
|
763
1931
|
s(a)
|
|
764
|
-
] },
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
}
|
|
768
|
-
|
|
769
|
-
|
|
1932
|
+
] }, i) : null;
|
|
1933
|
+
}) })
|
|
1934
|
+
]
|
|
1935
|
+
}
|
|
1936
|
+
);
|
|
1937
|
+
}, xt = ({
|
|
1938
|
+
sections: t,
|
|
1939
|
+
opts: e
|
|
770
1940
|
}) => {
|
|
771
|
-
const { document: s } =
|
|
772
|
-
if (!
|
|
773
|
-
const n = s.attributes || {},
|
|
774
|
-
return /* @__PURE__ */ r.jsx("ul", { className: `sectlevel${
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
return g <= a && (u = `${j} ${p.title}`), /* @__PURE__ */ r.jsxs("li", { children: [
|
|
780
|
-
/* @__PURE__ */ r.jsx("a", { href: `#${p.id}`, children: h(u) }),
|
|
781
|
-
g < c && /* @__PURE__ */ r.jsx(
|
|
782
|
-
Y,
|
|
1941
|
+
const { document: s } = U();
|
|
1942
|
+
if (!t || t.length === 0) return null;
|
|
1943
|
+
const n = s.attributes || {}, i = n.sectnumlevels, l = n.toclevels, a = e?.sectNumLevels || (i ? parseInt(`${i}`) : 3), c = e?.tocLevels || (l ? parseInt(`${l}`) : 2), m = (x) => x.includes("<a") ? x.replace(/<(?:a\b[^>]*|\/a)>/g, "") : x;
|
|
1944
|
+
return /* @__PURE__ */ r.jsx("ul", { className: `sectlevel${t[0].level}`, children: t.map((x) => {
|
|
1945
|
+
const b = x.numbered && x.num && x.num !== "." && x.num !== ".." && !x.num.startsWith(".") && !x.hasCaption && x.level <= a ? `${x.num} ${x.title}` : x.title;
|
|
1946
|
+
return /* @__PURE__ */ r.jsxs("li", { children: [
|
|
1947
|
+
/* @__PURE__ */ r.jsx(
|
|
1948
|
+
"a",
|
|
783
1949
|
{
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
tocLevels: c,
|
|
787
|
-
sectNumLevels: a
|
|
788
|
-
}
|
|
1950
|
+
href: `#${x.id}`,
|
|
1951
|
+
dangerouslySetInnerHTML: { __html: m(b) }
|
|
789
1952
|
}
|
|
790
|
-
)
|
|
791
|
-
|
|
1953
|
+
),
|
|
1954
|
+
x.level < c && x.sections.length > 0 && /* @__PURE__ */ r.jsx(xt, { sections: x.sections, opts: { tocLevels: c, sectNumLevels: a } })
|
|
1955
|
+
] }, x.id);
|
|
792
1956
|
}) });
|
|
793
|
-
},
|
|
794
|
-
const
|
|
1957
|
+
}, Ie = ({ document: t }) => {
|
|
1958
|
+
const e = () => t.noHeader ? null : /* @__PURE__ */ r.jsx("div", { id: "header", children: t.hasHeader && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
795
1959
|
/* @__PURE__ */ r.jsx(
|
|
796
1960
|
"h1",
|
|
797
1961
|
{
|
|
1962
|
+
id: t.id || void 0,
|
|
798
1963
|
dangerouslySetInnerHTML: {
|
|
799
|
-
__html:
|
|
1964
|
+
__html: t.title
|
|
800
1965
|
}
|
|
801
1966
|
}
|
|
802
1967
|
),
|
|
803
1968
|
/* @__PURE__ */ r.jsx(n, {}),
|
|
804
|
-
|
|
1969
|
+
t.sections && t.sections.length > 0 && t.attributes.toc !== void 0 && t.attributes["toc-placement"] === "auto" && /* @__PURE__ */ r.jsxs(
|
|
805
1970
|
"div",
|
|
806
1971
|
{
|
|
807
1972
|
id: "toc",
|
|
808
|
-
className:
|
|
1973
|
+
className: ft(t.attributes, "toc-class", "toc"),
|
|
809
1974
|
children: [
|
|
810
|
-
/* @__PURE__ */ r.jsx("div", { id: "toctitle", children:
|
|
811
|
-
/* @__PURE__ */ r.jsx(
|
|
1975
|
+
/* @__PURE__ */ r.jsx("div", { id: "toctitle", children: t.attributes["toc-title"] }),
|
|
1976
|
+
/* @__PURE__ */ r.jsx(xt, { sections: t.sections })
|
|
812
1977
|
]
|
|
813
1978
|
}
|
|
814
1979
|
)
|
|
815
|
-
] }) }), s = () =>
|
|
1980
|
+
] }) }), s = () => t.footnotes && t.footnotes.length > 0 && t.blocks && !Y(t.attributes, "nofootnotes") ? /* @__PURE__ */ r.jsxs("div", { id: "footnotes", children: [
|
|
816
1981
|
/* @__PURE__ */ r.jsx("hr", {}),
|
|
817
|
-
|
|
1982
|
+
t.footnotes.map((i) => /* @__PURE__ */ r.jsxs(
|
|
818
1983
|
"div",
|
|
819
1984
|
{
|
|
820
1985
|
className: "footnote",
|
|
821
|
-
id: `_footnotedef_${
|
|
1986
|
+
id: `_footnotedef_${i.index}`,
|
|
822
1987
|
children: [
|
|
823
|
-
/* @__PURE__ */ r.jsx("a", { href: `#_footnoteref_${
|
|
1988
|
+
/* @__PURE__ */ r.jsx("a", { href: `#_footnoteref_${i.index}`, children: i.index }),
|
|
824
1989
|
".",
|
|
825
1990
|
" ",
|
|
826
|
-
|
|
1991
|
+
lt(i.text || "")
|
|
827
1992
|
]
|
|
828
1993
|
},
|
|
829
|
-
|
|
1994
|
+
i.index
|
|
830
1995
|
))
|
|
831
|
-
] }) : null, n = () =>
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
/* @__PURE__ */ r.jsx("span", { id: `author${
|
|
1996
|
+
] }) : null, n = () => t.authors.length > 0 || Y(t.attributes, "revnumber") || Y(t.attributes, "revdate") || Y(t.attributes, "revremark") ? /* @__PURE__ */ r.jsxs("div", { className: "details", children: [
|
|
1997
|
+
t.authors.map((i, l) => /* @__PURE__ */ r.jsxs(jt, { children: [
|
|
1998
|
+
i.name && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1999
|
+
/* @__PURE__ */ r.jsx("span", { id: `author${l + 1 > 1 ? l + 1 : ""}`, className: "author", children: lt(i.name) }),
|
|
835
2000
|
/* @__PURE__ */ r.jsx("br", {})
|
|
836
2001
|
] }),
|
|
837
|
-
|
|
838
|
-
/* @__PURE__ */ r.jsx("span", { id: `email${
|
|
2002
|
+
i.email && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2003
|
+
/* @__PURE__ */ r.jsx("span", { id: `email${l + 1 > 1 ? l + 1 : ""}`, className: "email", children: lt(i.email) }),
|
|
839
2004
|
/* @__PURE__ */ r.jsx("br", {})
|
|
840
2005
|
] })
|
|
841
|
-
] },
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
2006
|
+
] }, l)),
|
|
2007
|
+
Y(t.attributes, "revnumber") && /* @__PURE__ */ r.jsx("span", { id: "revnumber", children: `${t.attributes["version-label"].toString().toLowerCase()} ${t.attributes.revnumber}${t.attributes.revdate ? "," : ""}` }),
|
|
2008
|
+
Y(t.attributes, "revdate") && /* @__PURE__ */ r.jsx("span", { id: "revdate", children: t.attributes.revdate }),
|
|
2009
|
+
Y(t.attributes, "revremark") && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
845
2010
|
/* @__PURE__ */ r.jsx("br", {}),
|
|
846
|
-
/* @__PURE__ */ r.jsx("span", { id: "revremark", children:
|
|
2011
|
+
/* @__PURE__ */ r.jsx("span", { id: "revremark", children: t.attributes.revremark })
|
|
847
2012
|
] })
|
|
848
2013
|
] }) : null;
|
|
849
2014
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
850
|
-
/* @__PURE__ */ r.jsx(
|
|
851
|
-
/* @__PURE__ */ r.jsx("div", { id: "content", children: /* @__PURE__ */ r.jsx(
|
|
2015
|
+
/* @__PURE__ */ r.jsx(e, {}),
|
|
2016
|
+
/* @__PURE__ */ r.jsx("div", { id: "content", children: /* @__PURE__ */ r.jsx(P, { blocks: t.blocks }) }),
|
|
852
2017
|
/* @__PURE__ */ r.jsx(s, {})
|
|
853
2018
|
] });
|
|
854
|
-
},
|
|
855
|
-
if (
|
|
856
|
-
const s =
|
|
2019
|
+
}, Ae = ({ node: t }) => {
|
|
2020
|
+
if (J(t.attributes, "collapsible")) {
|
|
2021
|
+
const s = t.attributes.open ? !0 : void 0;
|
|
857
2022
|
return /* @__PURE__ */ r.jsxs(
|
|
858
2023
|
"details",
|
|
859
2024
|
{
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
...
|
|
2025
|
+
id: t.id || void 0,
|
|
2026
|
+
className: t.role || void 0,
|
|
2027
|
+
open: s,
|
|
2028
|
+
...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
|
|
864
2029
|
children: [
|
|
865
|
-
/* @__PURE__ */ r.jsx(
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
2030
|
+
/* @__PURE__ */ r.jsx(
|
|
2031
|
+
"summary",
|
|
2032
|
+
{
|
|
2033
|
+
className: "title",
|
|
2034
|
+
dangerouslySetInnerHTML: {
|
|
2035
|
+
__html: t.title || "Details"
|
|
2036
|
+
}
|
|
2037
|
+
}
|
|
2038
|
+
),
|
|
2039
|
+
/* @__PURE__ */ r.jsx("div", { className: "content", children: t.blocks.length > 0 ? /* @__PURE__ */ r.jsx(P, { blocks: t.blocks }) : t.content && /* @__PURE__ */ r.jsx("span", { dangerouslySetInnerHTML: E(t.inlines) }) })
|
|
870
2040
|
]
|
|
871
2041
|
}
|
|
872
2042
|
);
|
|
@@ -874,532 +2044,551 @@ const F = (e, t) => e[`${t}-option`] !== void 0, z = (e, t, s = void 0, n, l) =>
|
|
|
874
2044
|
return /* @__PURE__ */ r.jsxs(
|
|
875
2045
|
"div",
|
|
876
2046
|
{
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
...
|
|
2047
|
+
id: t.id || void 0,
|
|
2048
|
+
className: N("exampleblock", t.role),
|
|
2049
|
+
...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
|
|
880
2050
|
children: [
|
|
881
|
-
/* @__PURE__ */ r.jsx(
|
|
882
|
-
/* @__PURE__ */ r.
|
|
883
|
-
e.content && h(e.content),
|
|
884
|
-
/* @__PURE__ */ r.jsx(E, { blocks: e.blocks })
|
|
885
|
-
] })
|
|
2051
|
+
/* @__PURE__ */ r.jsx(O, { text: t.title }),
|
|
2052
|
+
/* @__PURE__ */ r.jsx("div", { className: "content", children: t.blocks.length > 0 ? /* @__PURE__ */ r.jsx(P, { blocks: t.blocks }) : t.content && /* @__PURE__ */ r.jsx("span", { dangerouslySetInnerHTML: E(t.inlines) }) })
|
|
886
2053
|
]
|
|
887
2054
|
}
|
|
888
2055
|
);
|
|
889
|
-
},
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
)
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
"img",
|
|
906
|
-
{
|
|
907
|
-
src: e.imageUri,
|
|
908
|
-
alt: e.attributes.alt.toString(),
|
|
909
|
-
width: e.attributes.width,
|
|
910
|
-
height: e.attributes.height
|
|
911
|
-
}
|
|
912
|
-
);
|
|
913
|
-
return e.attributes.link && (t = /* @__PURE__ */ r.jsx("a", { className: "image", href: e.attributes.link.toString(), children: t })), /* @__PURE__ */ r.jsxs(
|
|
2056
|
+
}, Re = ({ node: t }) => bt(`h${t.level + 1}`, {
|
|
2057
|
+
id: t.id || void 0,
|
|
2058
|
+
className: N(t.style || "discrete", t.role),
|
|
2059
|
+
...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
|
|
2060
|
+
dangerouslySetInnerHTML: E(t.titleInlines)
|
|
2061
|
+
}), Ee = /^(?:[a-zA-Z][a-zA-Z]+\d{0,2}|#\d{1,7}|#x[\da-fA-F]{1,6});/, nt = (t) => {
|
|
2062
|
+
let e = "";
|
|
2063
|
+
for (let s = 0; s < t.length; s++) {
|
|
2064
|
+
const n = t[s];
|
|
2065
|
+
n === "&" ? e += Ee.test(t.slice(s + 1)) ? "&" : "&" : n === '"' ? e += """ : n === "<" ? e += "<" : n === ">" ? e += ">" : e += n;
|
|
2066
|
+
}
|
|
2067
|
+
return e;
|
|
2068
|
+
}, Oe = ({ node: t }) => {
|
|
2069
|
+
const e = t.alt ?? t.attributes.alt?.toString() ?? "", s = t.attributes.width, n = t.attributes.height, i = t.attributes.link, l = t.attributes.align, a = t.attributes.float;
|
|
2070
|
+
let c = `<img src="${nt(t.imageUri)}" alt="${nt(e)}"`;
|
|
2071
|
+
return s && (c += ` width="${nt(s.toString())}"`), n && (c += ` height="${nt(n.toString())}"`), c += ">", i && (c = `<a class="image" href="${nt(i.toString())}">${c}</a>`), /* @__PURE__ */ r.jsxs(
|
|
914
2072
|
"div",
|
|
915
2073
|
{
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
2074
|
+
id: t.id || void 0,
|
|
2075
|
+
className: N(
|
|
2076
|
+
"imageblock",
|
|
2077
|
+
l ? "text-" + l : void 0,
|
|
2078
|
+
a || void 0,
|
|
2079
|
+
t.role
|
|
2080
|
+
),
|
|
2081
|
+
...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
|
|
922
2082
|
children: [
|
|
923
|
-
/* @__PURE__ */ r.jsx("div", { className: "content",
|
|
924
|
-
/* @__PURE__ */ r.jsx(
|
|
2083
|
+
/* @__PURE__ */ r.jsx("div", { className: "content", dangerouslySetInnerHTML: { __html: c } }),
|
|
2084
|
+
/* @__PURE__ */ r.jsx(O, { text: t.title })
|
|
925
2085
|
]
|
|
926
2086
|
}
|
|
927
2087
|
);
|
|
928
|
-
},
|
|
929
|
-
const { document:
|
|
930
|
-
if (
|
|
931
|
-
const l =
|
|
2088
|
+
}, Le = ({ node: t }) => {
|
|
2089
|
+
const { document: e } = U(), s = e.attributes || {}, n = J(t.attributes, "nowrap") || s.prewrap === void 0, i = N("listingblock", t.role);
|
|
2090
|
+
if (t.style === "source") {
|
|
2091
|
+
const l = t.language;
|
|
932
2092
|
return /* @__PURE__ */ r.jsxs(
|
|
933
2093
|
"div",
|
|
934
2094
|
{
|
|
935
|
-
|
|
936
|
-
|
|
2095
|
+
id: t.id || void 0,
|
|
2096
|
+
className: i,
|
|
2097
|
+
...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
|
|
937
2098
|
children: [
|
|
938
|
-
/* @__PURE__ */ r.jsx(
|
|
939
|
-
/* @__PURE__ */ r.jsx("div", { className: "content", children: /* @__PURE__ */ r.jsx("pre", { className:
|
|
2099
|
+
/* @__PURE__ */ r.jsx(O, { text: t.title }),
|
|
2100
|
+
/* @__PURE__ */ r.jsx("div", { className: "content", children: /* @__PURE__ */ r.jsx("pre", { className: N("highlight", n && "nowrap") || void 0, children: l ? /* @__PURE__ */ r.jsx(
|
|
940
2101
|
"code",
|
|
941
2102
|
{
|
|
942
|
-
className:
|
|
2103
|
+
className: `language-${l}`,
|
|
943
2104
|
"data-lang": l,
|
|
944
|
-
dangerouslySetInnerHTML: {
|
|
945
|
-
__html: e.content || ""
|
|
946
|
-
}
|
|
947
|
-
}
|
|
948
|
-
) : /* @__PURE__ */ r.jsx("code", { dangerouslySetInnerHTML: { __html: e.content || "" } }) }) })
|
|
949
|
-
]
|
|
950
|
-
}
|
|
951
|
-
);
|
|
952
|
-
} else
|
|
953
|
-
return /* @__PURE__ */ r.jsxs(
|
|
954
|
-
"div",
|
|
955
|
-
{
|
|
956
|
-
className: "listingblock",
|
|
957
|
-
...e.lineNumber ? { "data-lineno": e.lineNumber } : {},
|
|
958
|
-
children: [
|
|
959
|
-
/* @__PURE__ */ r.jsx(w, { text: e.title }),
|
|
960
|
-
/* @__PURE__ */ r.jsx("div", { className: "content", children: /* @__PURE__ */ r.jsx(
|
|
961
|
-
"pre",
|
|
962
|
-
{
|
|
963
|
-
className: f("highlight !block", n ? "nowrap" : ""),
|
|
964
|
-
dangerouslySetInnerHTML: {
|
|
965
|
-
__html: e.content || ""
|
|
966
|
-
}
|
|
2105
|
+
dangerouslySetInnerHTML: { __html: t.content || "" }
|
|
967
2106
|
}
|
|
968
|
-
) })
|
|
2107
|
+
) : /* @__PURE__ */ r.jsx("code", { dangerouslySetInnerHTML: { __html: t.content || "" } }) }) })
|
|
969
2108
|
]
|
|
970
2109
|
}
|
|
971
2110
|
);
|
|
972
|
-
}
|
|
973
|
-
const { document: t } = T(), s = t.attributes || {}, n = e.attributes.nowrap || s.prewrap === void 0;
|
|
2111
|
+
}
|
|
974
2112
|
return /* @__PURE__ */ r.jsxs(
|
|
975
2113
|
"div",
|
|
976
2114
|
{
|
|
977
|
-
|
|
978
|
-
|
|
2115
|
+
id: t.id || void 0,
|
|
2116
|
+
className: i,
|
|
2117
|
+
...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
|
|
979
2118
|
children: [
|
|
980
|
-
/* @__PURE__ */ r.jsx(
|
|
981
|
-
/* @__PURE__ */ r.jsx("div", { className: "content", children: /* @__PURE__ */ r.jsx(
|
|
2119
|
+
/* @__PURE__ */ r.jsx(O, { text: t.title }),
|
|
2120
|
+
/* @__PURE__ */ r.jsx("div", { className: "content", children: /* @__PURE__ */ r.jsx(
|
|
2121
|
+
"pre",
|
|
2122
|
+
{
|
|
2123
|
+
className: N(n && "nowrap") || void 0,
|
|
2124
|
+
dangerouslySetInnerHTML: { __html: t.content || "" }
|
|
2125
|
+
}
|
|
2126
|
+
) })
|
|
982
2127
|
]
|
|
983
2128
|
}
|
|
984
2129
|
);
|
|
985
|
-
},
|
|
986
|
-
"
|
|
987
|
-
|
|
988
|
-
className: f("olist", e.role, e.style),
|
|
989
|
-
...e.lineNumber ? { "data-lineno": e.lineNumber } : {},
|
|
990
|
-
children: [
|
|
991
|
-
/* @__PURE__ */ r.jsx(w, { text: e.title }),
|
|
992
|
-
/* @__PURE__ */ r.jsx(
|
|
993
|
-
"ol",
|
|
994
|
-
{
|
|
995
|
-
className: e.style,
|
|
996
|
-
reversed: F(e.attributes, "reversed"),
|
|
997
|
-
...e.attributes.start ? { start: parseInt(`${e.attributes.start}`) } : {},
|
|
998
|
-
children: e.items.map((t, s) => /* @__PURE__ */ r.jsxs("li", { className: e.role ? e.role : "", children: [
|
|
999
|
-
/* @__PURE__ */ r.jsx("p", { children: h(t.text || "") }),
|
|
1000
|
-
/* @__PURE__ */ r.jsx(E, { blocks: t.blocks })
|
|
1001
|
-
] }, s))
|
|
1002
|
-
}
|
|
1003
|
-
)
|
|
1004
|
-
]
|
|
1005
|
-
}
|
|
1006
|
-
), sr = ({ node: e }) => {
|
|
1007
|
-
const t = e.style;
|
|
1008
|
-
return t === "abstract" ? /* @__PURE__ */ r.jsxs(
|
|
2130
|
+
}, Ce = ({ node: t }) => {
|
|
2131
|
+
const { document: e } = U(), s = e.attributes || {}, n = J(t.attributes, "nowrap") || s.prewrap === void 0;
|
|
2132
|
+
return /* @__PURE__ */ r.jsxs(
|
|
1009
2133
|
"div",
|
|
1010
2134
|
{
|
|
1011
|
-
|
|
1012
|
-
|
|
2135
|
+
id: t.id || void 0,
|
|
2136
|
+
className: N("literalblock", t.role),
|
|
2137
|
+
...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
|
|
1013
2138
|
children: [
|
|
1014
|
-
/* @__PURE__ */ r.jsx(
|
|
1015
|
-
/* @__PURE__ */ r.
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
2139
|
+
/* @__PURE__ */ r.jsx(O, { text: t.title }),
|
|
2140
|
+
/* @__PURE__ */ r.jsx("div", { className: "content", children: /* @__PURE__ */ r.jsx(
|
|
2141
|
+
"pre",
|
|
2142
|
+
{
|
|
2143
|
+
className: N(n && "nowrap") || void 0,
|
|
2144
|
+
dangerouslySetInnerHTML: { __html: t.content || "" }
|
|
2145
|
+
}
|
|
2146
|
+
) })
|
|
2147
|
+
]
|
|
2148
|
+
}
|
|
2149
|
+
);
|
|
2150
|
+
}, Me = {
|
|
2151
|
+
upperalpha: "A",
|
|
2152
|
+
loweralpha: "a",
|
|
2153
|
+
upperroman: "I",
|
|
2154
|
+
lowerroman: "i"
|
|
2155
|
+
}, Pe = ({ node: t }) => {
|
|
2156
|
+
const e = t.style, s = e ? Me[e] : void 0, n = t.attributes.start ? parseInt(`${t.attributes.start}`) : void 0;
|
|
2157
|
+
return /* @__PURE__ */ r.jsxs(
|
|
2158
|
+
"div",
|
|
2159
|
+
{
|
|
2160
|
+
id: t.id || void 0,
|
|
2161
|
+
className: N("olist", e, t.role),
|
|
2162
|
+
...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
|
|
2163
|
+
children: [
|
|
2164
|
+
/* @__PURE__ */ r.jsx(O, { text: t.title }),
|
|
2165
|
+
/* @__PURE__ */ r.jsx(
|
|
2166
|
+
"ol",
|
|
2167
|
+
{
|
|
2168
|
+
className: e || void 0,
|
|
2169
|
+
type: s,
|
|
2170
|
+
reversed: J(t.attributes, "reversed") || void 0,
|
|
2171
|
+
start: n,
|
|
2172
|
+
children: t.items.map((i, l) => /* @__PURE__ */ r.jsxs("li", { id: i.id || void 0, children: [
|
|
2173
|
+
/* @__PURE__ */ r.jsx("p", { dangerouslySetInnerHTML: E(i.textInlines) }),
|
|
2174
|
+
/* @__PURE__ */ r.jsx(P, { blocks: i.blocks })
|
|
2175
|
+
] }, l))
|
|
2176
|
+
}
|
|
2177
|
+
)
|
|
2178
|
+
]
|
|
2179
|
+
}
|
|
2180
|
+
);
|
|
2181
|
+
}, He = ({ node: t }) => {
|
|
2182
|
+
const e = t.style;
|
|
2183
|
+
return e === "abstract" ? /* @__PURE__ */ r.jsxs(
|
|
2184
|
+
"div",
|
|
2185
|
+
{
|
|
2186
|
+
id: t.id || void 0,
|
|
2187
|
+
className: N("quoteblock abstract", t.role),
|
|
2188
|
+
...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
|
|
2189
|
+
children: [
|
|
2190
|
+
/* @__PURE__ */ r.jsx(O, { text: t.title }),
|
|
2191
|
+
/* @__PURE__ */ r.jsx("blockquote", { children: t.blocks.length > 0 ? /* @__PURE__ */ r.jsx(P, { blocks: t.blocks }) : t.content && /* @__PURE__ */ r.jsx("span", { dangerouslySetInnerHTML: E(t.inlines) }) })
|
|
1019
2192
|
]
|
|
1020
2193
|
}
|
|
1021
2194
|
) : /* @__PURE__ */ r.jsxs(
|
|
1022
2195
|
"div",
|
|
1023
2196
|
{
|
|
1024
|
-
|
|
1025
|
-
|
|
2197
|
+
id: t.id || void 0,
|
|
2198
|
+
className: N("openblock", e && e !== "open" ? e : null, t.role),
|
|
2199
|
+
...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
|
|
1026
2200
|
children: [
|
|
1027
|
-
/* @__PURE__ */ r.jsx(
|
|
1028
|
-
/* @__PURE__ */ r.
|
|
1029
|
-
e.content && h(e.content),
|
|
1030
|
-
/* @__PURE__ */ r.jsx(E, { blocks: e.blocks })
|
|
1031
|
-
] })
|
|
2201
|
+
/* @__PURE__ */ r.jsx(O, { text: t.title }),
|
|
2202
|
+
/* @__PURE__ */ r.jsx("div", { className: "content", children: t.blocks.length > 0 ? /* @__PURE__ */ r.jsx(P, { blocks: t.blocks }) : t.content && /* @__PURE__ */ r.jsx("span", { dangerouslySetInnerHTML: E(t.inlines) }) })
|
|
1032
2203
|
]
|
|
1033
2204
|
}
|
|
1034
2205
|
);
|
|
1035
|
-
},
|
|
2206
|
+
}, We = () => /* @__PURE__ */ r.jsx("div", { style: { pageBreakAfter: "always" } }), qe = ({ node: t }) => /* @__PURE__ */ r.jsxs(
|
|
1036
2207
|
"div",
|
|
1037
2208
|
{
|
|
1038
|
-
...
|
|
1039
|
-
className:
|
|
1040
|
-
...
|
|
2209
|
+
...t.id ? { id: t.id } : {},
|
|
2210
|
+
className: N("paragraph", t.role),
|
|
2211
|
+
...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
|
|
1041
2212
|
children: [
|
|
1042
|
-
/* @__PURE__ */ r.jsx(
|
|
1043
|
-
|
|
2213
|
+
/* @__PURE__ */ r.jsx(O, { text: t.title }),
|
|
2214
|
+
t.inlines ? /* @__PURE__ */ r.jsx("p", { dangerouslySetInnerHTML: E(t.inlines) }) : t.content && /* @__PURE__ */ r.jsx("p", { dangerouslySetInnerHTML: { __html: t.content } })
|
|
1044
2215
|
]
|
|
1045
2216
|
}
|
|
1046
|
-
),
|
|
1047
|
-
const { document:
|
|
1048
|
-
return /* @__PURE__ */ r.
|
|
1049
|
-
/* @__PURE__ */ r.jsx(
|
|
1050
|
-
n && /* @__PURE__ */ r.jsxs(
|
|
1051
|
-
"div",
|
|
1052
|
-
{
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
)
|
|
1061
|
-
] }) });
|
|
1062
|
-
}, or = ({ node: e }) => {
|
|
1063
|
-
const t = e.attributes.attribution, s = e.attributes.citetitle;
|
|
1064
|
-
return /* @__PURE__ */ r.jsxs(
|
|
2217
|
+
), Fe = ({ node: t }) => /* @__PURE__ */ r.jsx(r.Fragment, { children: lt(t.content || "") }), Be = ({ node: t }) => {
|
|
2218
|
+
const { document: e } = U(), s = e.attributes || {}, n = s["toc-placement"] === "preamble" && e.sections && e.sections.length > 0 && s.toc !== void 0, i = s["toc-title"] || "Table of Contents", l = s["toc-class"] || "toc";
|
|
2219
|
+
return /* @__PURE__ */ r.jsxs("div", { id: "preamble", ...t.lineNumber ? { "data-lineno": t.lineNumber } : {}, children: [
|
|
2220
|
+
/* @__PURE__ */ r.jsx("div", { className: "sectionbody", children: /* @__PURE__ */ r.jsx(P, { blocks: t.blocks }) }),
|
|
2221
|
+
n && /* @__PURE__ */ r.jsxs("div", { id: "toc", className: `${l}`, children: [
|
|
2222
|
+
/* @__PURE__ */ r.jsx("div", { id: "toctitle", dangerouslySetInnerHTML: { __html: `${i}` } }),
|
|
2223
|
+
/* @__PURE__ */ r.jsx(xt, { sections: e.sections })
|
|
2224
|
+
] })
|
|
2225
|
+
] });
|
|
2226
|
+
}, ze = ({ node: t }) => {
|
|
2227
|
+
const e = t.attributes.attribution, s = t.attributes.citetitle;
|
|
2228
|
+
let n = "";
|
|
2229
|
+
return e ? (n = `— ${e}`, s && (n += `<br>
|
|
2230
|
+
<cite>${s}</cite>`)) : s && (n = `<cite>${s}</cite>`), /* @__PURE__ */ r.jsxs(
|
|
1065
2231
|
"div",
|
|
1066
2232
|
{
|
|
1067
|
-
|
|
1068
|
-
className:
|
|
1069
|
-
...
|
|
2233
|
+
id: t.id || void 0,
|
|
2234
|
+
className: N("quoteblock", t.role),
|
|
2235
|
+
...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
|
|
1070
2236
|
children: [
|
|
1071
|
-
/* @__PURE__ */ r.jsx(
|
|
1072
|
-
|
|
1073
|
-
/* @__PURE__ */ r.jsx(
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
2237
|
+
/* @__PURE__ */ r.jsx(O, { text: t.title }),
|
|
2238
|
+
t.content ? /* @__PURE__ */ r.jsx("blockquote", { dangerouslySetInnerHTML: E(t.inlines) }) : /* @__PURE__ */ r.jsx("blockquote", { children: /* @__PURE__ */ r.jsx(P, { blocks: t.blocks }) }),
|
|
2239
|
+
n && /* @__PURE__ */ r.jsx(
|
|
2240
|
+
"div",
|
|
2241
|
+
{
|
|
2242
|
+
className: "attribution",
|
|
2243
|
+
dangerouslySetInnerHTML: { __html: n }
|
|
2244
|
+
}
|
|
2245
|
+
)
|
|
1079
2246
|
]
|
|
1080
2247
|
}
|
|
1081
2248
|
);
|
|
1082
|
-
},
|
|
1083
|
-
const { document:
|
|
1084
|
-
let
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
2249
|
+
}, Ue = ({ node: t }) => {
|
|
2250
|
+
const { document: e } = U(), s = e.attributes || {}, n = s.sectnumlevels ? parseInt(`${s.sectnumlevels}`) : 3, l = t.numbered && t.num && t.num !== "." && t.level <= n && !t.hasCaption ? `${t.num} ` : "", a = t.hasCaption ? t.title : l + E(t.titleInlines).__html, c = s.sectanchors !== void 0, m = s.sectlinks !== void 0;
|
|
2251
|
+
let x;
|
|
2252
|
+
if (t.id && (c || m)) {
|
|
2253
|
+
const b = c ? `<a class="anchor" href="#${t.id}"></a>` : "", u = m ? `<a class="link" href="#${t.id}">${a}</a>` : a;
|
|
2254
|
+
x = `${b}${u}`;
|
|
2255
|
+
} else
|
|
2256
|
+
x = a;
|
|
2257
|
+
const g = bt(`h${t.level + 1}`, {
|
|
2258
|
+
id: t.id || void 0,
|
|
2259
|
+
...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
|
|
2260
|
+
dangerouslySetInnerHTML: { __html: x }
|
|
2261
|
+
});
|
|
2262
|
+
return t.level === 0 ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2263
|
+
bt("h1", {
|
|
2264
|
+
id: t.id || void 0,
|
|
2265
|
+
className: N("sect0", t.role),
|
|
2266
|
+
...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
|
|
2267
|
+
dangerouslySetInnerHTML: { __html: x }
|
|
2268
|
+
}),
|
|
2269
|
+
/* @__PURE__ */ r.jsx(P, { blocks: t.blocks })
|
|
2270
|
+
] }) : t.level === 1 ? /* @__PURE__ */ r.jsxs(
|
|
2271
|
+
"div",
|
|
2272
|
+
{
|
|
2273
|
+
className: N(`sect${t.level}`, t.role),
|
|
2274
|
+
...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
|
|
2275
|
+
children: [
|
|
2276
|
+
g,
|
|
2277
|
+
/* @__PURE__ */ r.jsx("div", { className: "sectionbody", children: /* @__PURE__ */ r.jsx(P, { blocks: t.blocks }) })
|
|
2278
|
+
]
|
|
2279
|
+
}
|
|
2280
|
+
) : /* @__PURE__ */ r.jsxs(
|
|
2281
|
+
"div",
|
|
2282
|
+
{
|
|
2283
|
+
className: N(`sect${t.level}`, t.role),
|
|
2284
|
+
...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
|
|
2285
|
+
children: [
|
|
2286
|
+
g,
|
|
2287
|
+
/* @__PURE__ */ r.jsx(P, { blocks: t.blocks })
|
|
2288
|
+
]
|
|
2289
|
+
}
|
|
2290
|
+
);
|
|
2291
|
+
}, De = ({ node: t }) => {
|
|
2292
|
+
const e = t.blocks.length > 0;
|
|
2293
|
+
return /* @__PURE__ */ r.jsx(
|
|
2294
|
+
"div",
|
|
2295
|
+
{
|
|
2296
|
+
id: t.id || void 0,
|
|
2297
|
+
className: N("sidebarblock", t.role),
|
|
2298
|
+
...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
|
|
2299
|
+
children: e ? /* @__PURE__ */ r.jsxs("div", { className: "content", children: [
|
|
2300
|
+
/* @__PURE__ */ r.jsx(O, { text: t.title }),
|
|
2301
|
+
/* @__PURE__ */ r.jsx(P, { blocks: t.blocks })
|
|
2302
|
+
] }) : /* @__PURE__ */ r.jsx(
|
|
2303
|
+
"div",
|
|
2304
|
+
{
|
|
2305
|
+
className: "content",
|
|
2306
|
+
dangerouslySetInnerHTML: {
|
|
2307
|
+
__html: (t.title ? `<div class="title">${t.title}</div>` : "") + E(t.inlines).__html
|
|
2308
|
+
}
|
|
1103
2309
|
}
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
className: f("sect0", e.role),
|
|
1111
|
-
"data-sectnum": l,
|
|
1112
|
-
...e.lineNumber ? { "data-lineno": e.lineNumber } : {},
|
|
1113
|
-
children: n
|
|
1114
|
-
}
|
|
1115
|
-
),
|
|
1116
|
-
/* @__PURE__ */ r.jsx(E, { blocks: e.blocks })
|
|
1117
|
-
] }) : /* @__PURE__ */ r.jsxs(
|
|
2310
|
+
)
|
|
2311
|
+
}
|
|
2312
|
+
);
|
|
2313
|
+
}, Ye = ({ node: t }) => {
|
|
2314
|
+
const { document: e } = U(), s = e.attributes || {}, n = t.style || s.stem || "asciimath", i = t.content || "", l = n === "latexmath" ? `\\[${i}\\]` : n === "asciimath" || n === "stem" ? `\\$${i}\\$` : i;
|
|
2315
|
+
return /* @__PURE__ */ r.jsxs(
|
|
1118
2316
|
"div",
|
|
1119
2317
|
{
|
|
1120
|
-
|
|
1121
|
-
|
|
2318
|
+
id: t.id || void 0,
|
|
2319
|
+
className: N("stemblock", t.role),
|
|
2320
|
+
...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
|
|
1122
2321
|
children: [
|
|
1123
|
-
|
|
1124
|
-
/* @__PURE__ */ r.jsx("div", { className: "
|
|
2322
|
+
/* @__PURE__ */ r.jsx(O, { text: t.title }),
|
|
2323
|
+
/* @__PURE__ */ r.jsx("div", { className: "content", dangerouslySetInnerHTML: { __html: l } })
|
|
1125
2324
|
]
|
|
1126
2325
|
}
|
|
1127
2326
|
);
|
|
1128
|
-
},
|
|
1129
|
-
|
|
1130
|
-
{
|
|
1131
|
-
className: f("sidebarblock", e.role),
|
|
1132
|
-
...e.lineNumber ? { "data-lineno": e.lineNumber } : {},
|
|
1133
|
-
children: /* @__PURE__ */ r.jsxs("div", { className: "content", children: [
|
|
1134
|
-
/* @__PURE__ */ r.jsx(w, { text: e.title }),
|
|
1135
|
-
e.content && h(e.content),
|
|
1136
|
-
/* @__PURE__ */ r.jsx(E, { blocks: e.blocks })
|
|
1137
|
-
] })
|
|
1138
|
-
}
|
|
1139
|
-
), pr = ({ node: e }) => {
|
|
1140
|
-
const { document: t } = T(), s = t.attributes || {};
|
|
2327
|
+
}, Ve = ({ node: t }) => {
|
|
2328
|
+
const { document: e } = U(), s = e.attributes || {};
|
|
1141
2329
|
let n = [
|
|
1142
|
-
"frame-" +
|
|
1143
|
-
"grid-" +
|
|
1144
|
-
],
|
|
1145
|
-
|
|
1146
|
-
let
|
|
1147
|
-
|
|
1148
|
-
const
|
|
2330
|
+
"frame-" + ft(t.attributes, "frame", "all", "table-frame", s),
|
|
2331
|
+
"grid-" + ft(t.attributes, "grid", "all", "table-grid", s)
|
|
2332
|
+
], i = ft(t.attributes, "stripes", null, "table-stripes", s);
|
|
2333
|
+
i && n.push("stripes-" + i);
|
|
2334
|
+
let l = J(t.attributes, "autowidth"), a = parseInt(`${t.attributes.tablepcwidth}`), c = null;
|
|
2335
|
+
l && !Y(t.attributes, "width") ? n.push("fit-content") : a === 100 ? n.push("stretch") : c = `${a}%`, Y(t.attributes, "float") && n.push(`${t.attributes.float}`), t.role && n.push(t.role || "");
|
|
2336
|
+
const m = (x) => N(
|
|
1149
2337
|
"tableblock",
|
|
1150
|
-
`halign-${
|
|
1151
|
-
`valign-${
|
|
1152
|
-
)
|
|
2338
|
+
`halign-${x.attributes.halign}`,
|
|
2339
|
+
`valign-${x.attributes.valign}`
|
|
2340
|
+
);
|
|
1153
2341
|
return /* @__PURE__ */ r.jsxs(
|
|
1154
2342
|
"table",
|
|
1155
2343
|
{
|
|
1156
|
-
|
|
2344
|
+
id: t.id || void 0,
|
|
2345
|
+
className: N("tableblock", ...n),
|
|
1157
2346
|
style: { width: c || void 0 },
|
|
1158
|
-
...
|
|
2347
|
+
...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
|
|
1159
2348
|
children: [
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
2349
|
+
t.title && /* @__PURE__ */ r.jsx("caption", { className: "title", dangerouslySetInnerHTML: { __html: t.title } }),
|
|
2350
|
+
t.columns.length > 0 && /* @__PURE__ */ r.jsx("colgroup", { children: t.columns.map((x, g) => {
|
|
2351
|
+
const b = x.attributes.colpcwidth;
|
|
2352
|
+
return /* @__PURE__ */ r.jsx(
|
|
2353
|
+
"col",
|
|
2354
|
+
{
|
|
2355
|
+
style: l ? void 0 : { width: `${b}%` }
|
|
2356
|
+
},
|
|
2357
|
+
g
|
|
2358
|
+
);
|
|
1167
2359
|
}) }),
|
|
1168
|
-
|
|
2360
|
+
t.headRows.length > 0 && t.headRows.map((x, g) => /* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsx("tr", { children: x.map((b, u) => /* @__PURE__ */ r.jsx(
|
|
1169
2361
|
"th",
|
|
1170
2362
|
{
|
|
1171
|
-
className:
|
|
1172
|
-
|
|
2363
|
+
className: m(b),
|
|
2364
|
+
colSpan: b.columnSpan,
|
|
2365
|
+
rowSpan: b.rowSpan,
|
|
2366
|
+
dangerouslySetInnerHTML: { __html: b.text }
|
|
1173
2367
|
},
|
|
1174
|
-
|
|
1175
|
-
)) }) },
|
|
1176
|
-
/* @__PURE__ */ r.jsx("tbody", { children:
|
|
1177
|
-
const
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
return /* @__PURE__ */ C("th", { ...L, key: v }, /* @__PURE__ */ r.jsx(
|
|
1194
|
-
"p",
|
|
1195
|
-
{
|
|
1196
|
-
className: "tableblock",
|
|
1197
|
-
dangerouslySetInnerHTML: { __html: R || "" }
|
|
1198
|
-
}
|
|
1199
|
-
));
|
|
1200
|
-
{
|
|
1201
|
-
let G = R;
|
|
1202
|
-
return /* @__PURE__ */ C("td", { ...L, key: v }, G.length === 0 ? "" : h(
|
|
1203
|
-
`<p class="tableblock">${G.join(
|
|
1204
|
-
`</p>
|
|
1205
|
-
<p class="tableblock">`
|
|
1206
|
-
)}</p>`
|
|
1207
|
-
));
|
|
1208
|
-
}
|
|
1209
|
-
}) }, x)) }),
|
|
1210
|
-
e.footRows.map((m, x) => /* @__PURE__ */ r.jsx("tfoot", { children: /* @__PURE__ */ r.jsx("tr", { children: m.map((N, v) => /* @__PURE__ */ r.jsx("td", { className: p(N), children: /* @__PURE__ */ r.jsx("p", { className: "tableblock", dangerouslySetInnerHTML: { __html: N.text } }) }, v)) }) }, x))
|
|
2368
|
+
u
|
|
2369
|
+
)) }) }, g)),
|
|
2370
|
+
t.bodyRows.length > 0 && /* @__PURE__ */ r.jsx("tbody", { children: t.bodyRows.map((x, g) => /* @__PURE__ */ r.jsx("tr", { children: x.map((b, u) => {
|
|
2371
|
+
const d = b.style, h = m(b), j = b.columnSpan, $ = b.rowSpan, _ = d === "header" ? "th" : "td", o = b.content, f = Array.isArray(o) ? o : typeof o == "string" ? [o] : [];
|
|
2372
|
+
let v = "";
|
|
2373
|
+
return d === "asciidoc" ? v = `<div class="content">${f.join("")}</div>` : d === "literal" ? v = `<div class="literal"><pre>${f.join("")}</pre></div>` : d === "header" ? v = f.length > 0 ? `<p class="tableblock">${f.join(`</p>
|
|
2374
|
+
<p class="tableblock">`)}</p>` : "" : f.length > 0 && (v = `<p class="tableblock">${f.join(`</p>
|
|
2375
|
+
<p class="tableblock">`)}</p>`), /* @__PURE__ */ r.jsx(
|
|
2376
|
+
_,
|
|
2377
|
+
{
|
|
2378
|
+
className: h,
|
|
2379
|
+
colSpan: j,
|
|
2380
|
+
rowSpan: $,
|
|
2381
|
+
dangerouslySetInnerHTML: v ? { __html: v } : void 0
|
|
2382
|
+
},
|
|
2383
|
+
u
|
|
2384
|
+
);
|
|
2385
|
+
}) }, g)) }),
|
|
2386
|
+
t.footRows.map((x, g) => /* @__PURE__ */ r.jsx("tfoot", { children: /* @__PURE__ */ r.jsx("tr", { children: x.map((b, u) => /* @__PURE__ */ r.jsx("td", { className: m(b), children: /* @__PURE__ */ r.jsx("p", { className: "tableblock", dangerouslySetInnerHTML: { __html: b.text } }) }, u)) }) }, g))
|
|
1211
2387
|
]
|
|
1212
2388
|
}
|
|
1213
2389
|
);
|
|
1214
|
-
},
|
|
1215
|
-
const { document:
|
|
1216
|
-
let
|
|
1217
|
-
const
|
|
1218
|
-
return a
|
|
1219
|
-
/* @__PURE__ */ r.jsx("div", { id: `${
|
|
1220
|
-
|
|
1221
|
-
] })
|
|
1222
|
-
},
|
|
1223
|
-
|
|
2390
|
+
}, Ze = ({ node: t }) => {
|
|
2391
|
+
const { document: e } = U(), s = e.attributes || {}, n = e.sections && e.sections.length > 0;
|
|
2392
|
+
let i = t.id || "toc";
|
|
2393
|
+
const l = t.title ? t.title : s["toc-title"], a = s["toc-placement"], c = s.toc !== void 0, m = t.attributes.levels ? parseInt(`${t.attributes.levels}`) : void 0;
|
|
2394
|
+
return !c || a !== "macro" || !n ? null : /* @__PURE__ */ r.jsxs("div", { id: i, className: t.role || "toc", children: [
|
|
2395
|
+
/* @__PURE__ */ r.jsx("div", { id: `${i}title`, className: "title", children: lt(`${l}` || "") }),
|
|
2396
|
+
e.sections && /* @__PURE__ */ r.jsx(xt, { sections: e.sections, opts: { tocLevels: m } })
|
|
2397
|
+
] });
|
|
2398
|
+
}, Qe = () => /* @__PURE__ */ r.jsx("hr", {}), Ge = (t) => {
|
|
2399
|
+
if (!t) return "";
|
|
2400
|
+
let e = "";
|
|
2401
|
+
for (const s of t)
|
|
2402
|
+
if (s.type === "anchor" && s.subtype === "bibref") {
|
|
2403
|
+
const n = s.id || s.target, i = V(s.text) || n;
|
|
2404
|
+
e += `<a id="${n}"></a>[${i}]`;
|
|
2405
|
+
} else
|
|
2406
|
+
e += V([s]);
|
|
2407
|
+
return e;
|
|
2408
|
+
}, Je = ({ node: t }) => {
|
|
2409
|
+
const e = J(t.attributes, "checklist"), s = t.style === "bibliography";
|
|
1224
2410
|
return /* @__PURE__ */ r.jsxs(
|
|
1225
2411
|
"div",
|
|
1226
2412
|
{
|
|
1227
|
-
|
|
1228
|
-
className:
|
|
1229
|
-
...
|
|
2413
|
+
id: t.id || void 0,
|
|
2414
|
+
className: N("ulist", t.style, t.role, e && "checklist"),
|
|
2415
|
+
...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
|
|
1230
2416
|
children: [
|
|
1231
|
-
/* @__PURE__ */ r.jsx(
|
|
1232
|
-
/* @__PURE__ */ r.jsx(
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
/* @__PURE__ */ r.jsx("p", { dangerouslySetInnerHTML: { __html: s.text || "" } }),
|
|
1246
|
-
/* @__PURE__ */ r.jsx(E, { blocks: s.blocks })
|
|
1247
|
-
] }, n)) })
|
|
2417
|
+
/* @__PURE__ */ r.jsx(O, { text: t.title }),
|
|
2418
|
+
/* @__PURE__ */ r.jsx(
|
|
2419
|
+
"ul",
|
|
2420
|
+
{
|
|
2421
|
+
className: e ? "checklist" : s ? "bibliography" : t.style || void 0,
|
|
2422
|
+
children: t.items.map((n, i) => {
|
|
2423
|
+
const l = e && "checkbox" in n.attributes, a = l && "checked" in n.attributes, c = s ? Ge(n.textInlines) : E(n.textInlines).__html, m = l ? `<i class="fa ${a ? "fa-check-square-o" : "fa-square-o"}"></i> ${c}` : c;
|
|
2424
|
+
return /* @__PURE__ */ r.jsxs("li", { id: n.id || void 0, children: [
|
|
2425
|
+
/* @__PURE__ */ r.jsx("p", { dangerouslySetInnerHTML: { __html: m } }),
|
|
2426
|
+
/* @__PURE__ */ r.jsx(P, { blocks: n.blocks })
|
|
2427
|
+
] }, i);
|
|
2428
|
+
})
|
|
2429
|
+
}
|
|
2430
|
+
)
|
|
1248
2431
|
]
|
|
1249
2432
|
}
|
|
1250
2433
|
);
|
|
1251
|
-
},
|
|
1252
|
-
const
|
|
1253
|
-
|
|
2434
|
+
}, Xe = ({ node: t }) => {
|
|
2435
|
+
const e = t.attributes.attribution, s = t.attributes.citetitle;
|
|
2436
|
+
let n = "";
|
|
2437
|
+
return (e || s) && (e ? (n = `— ${e}`, s && (n += `<br>
|
|
2438
|
+
<cite>${s}</cite>`)) : s && (n = `<cite>${s}</cite>`)), /* @__PURE__ */ r.jsxs(
|
|
1254
2439
|
"div",
|
|
1255
2440
|
{
|
|
1256
|
-
|
|
1257
|
-
className:
|
|
1258
|
-
...
|
|
2441
|
+
id: t.id || void 0,
|
|
2442
|
+
className: N("verseblock", t.role),
|
|
2443
|
+
...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
|
|
1259
2444
|
children: [
|
|
1260
|
-
/* @__PURE__ */ r.jsx(
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
"
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
2445
|
+
/* @__PURE__ */ r.jsx(O, { text: t.title }),
|
|
2446
|
+
t.content && /* @__PURE__ */ r.jsx("pre", { className: "content", dangerouslySetInnerHTML: { __html: t.content } }),
|
|
2447
|
+
n && /* @__PURE__ */ r.jsx(
|
|
2448
|
+
"div",
|
|
2449
|
+
{
|
|
2450
|
+
className: "attribution",
|
|
2451
|
+
dangerouslySetInnerHTML: { __html: n }
|
|
2452
|
+
}
|
|
2453
|
+
)
|
|
1267
2454
|
]
|
|
1268
2455
|
}
|
|
1269
2456
|
);
|
|
1270
|
-
},
|
|
1271
|
-
const
|
|
2457
|
+
}, Ke = ({ node: t }) => {
|
|
2458
|
+
const e = t.attributes.start, s = t.attributes.end, n = e || s ? `#t=${e || ""}${s ? "," + s : ""}` : "", i = t.attributes.width, l = t.attributes.height, a = t.attributes.poster, c = [`src="${t.mediaUri}${n}"`];
|
|
2459
|
+
i && c.push(`width="${i}"`), l && c.push(`height="${l}"`), a && c.push(`poster="${a}"`), t.autoplay && c.push("autoplay"), t.noControls || c.push("controls"), t.loop && c.push("loop");
|
|
2460
|
+
const m = `<video ${c.join(" ")}>
|
|
2461
|
+
Your browser does not support the video tag.
|
|
2462
|
+
</video>`;
|
|
1272
2463
|
return /* @__PURE__ */ r.jsxs(
|
|
1273
2464
|
"div",
|
|
1274
2465
|
{
|
|
1275
|
-
|
|
1276
|
-
|
|
2466
|
+
id: t.id || void 0,
|
|
2467
|
+
className: N("videoblock", t.role),
|
|
2468
|
+
...t.lineNumber ? { "data-lineno": t.lineNumber } : {},
|
|
1277
2469
|
children: [
|
|
1278
|
-
/* @__PURE__ */ r.jsx(
|
|
1279
|
-
/* @__PURE__ */ r.jsx("div", { className: "content",
|
|
1280
|
-
"video",
|
|
1281
|
-
{
|
|
1282
|
-
src: `${e.mediaUri}${n}`,
|
|
1283
|
-
autoPlay: e.autoplay,
|
|
1284
|
-
controls: !e.noControls,
|
|
1285
|
-
loop: e.loop,
|
|
1286
|
-
children: "Your browser does not support the video tag."
|
|
1287
|
-
}
|
|
1288
|
-
) })
|
|
2470
|
+
/* @__PURE__ */ r.jsx(O, { text: t.title }),
|
|
2471
|
+
/* @__PURE__ */ r.jsx("div", { className: "content", dangerouslySetInnerHTML: { __html: m } })
|
|
1289
2472
|
]
|
|
1290
2473
|
}
|
|
1291
2474
|
);
|
|
1292
|
-
},
|
|
1293
|
-
document:
|
|
1294
|
-
options:
|
|
2475
|
+
}, dt = Bt({ document: {} }), as = ({
|
|
2476
|
+
document: t,
|
|
2477
|
+
options: e
|
|
1295
2478
|
}) => {
|
|
1296
|
-
const s =
|
|
2479
|
+
const s = e && e.customDocument;
|
|
1297
2480
|
return /* @__PURE__ */ r.jsx(
|
|
1298
|
-
|
|
2481
|
+
dt.Provider,
|
|
1299
2482
|
{
|
|
1300
2483
|
value: {
|
|
1301
|
-
...
|
|
1302
|
-
document: { attributes:
|
|
2484
|
+
...e,
|
|
2485
|
+
document: { attributes: t.attributes, sections: t.sections }
|
|
1303
2486
|
},
|
|
1304
|
-
children: s ? /* @__PURE__ */ r.jsx(s, { document:
|
|
2487
|
+
children: s ? /* @__PURE__ */ r.jsx(s, { document: t }) : /* @__PURE__ */ r.jsx(Ie, { document: t })
|
|
1305
2488
|
}
|
|
1306
2489
|
);
|
|
1307
|
-
},
|
|
1308
|
-
const { overrides:
|
|
2490
|
+
}, P = ({ blocks: t }) => /* @__PURE__ */ r.jsx(r.Fragment, { children: t.map((e, s) => /* @__PURE__ */ r.jsx(ts, { node: e }, `${s}-${e.type}`)) }), ts = ({ node: t }) => {
|
|
2491
|
+
const { overrides: e } = yt(dt), s = t.type, n = e && e[s];
|
|
1309
2492
|
if (n)
|
|
1310
|
-
return /* @__PURE__ */ r.jsx(n, { node:
|
|
2493
|
+
return /* @__PURE__ */ r.jsx(n, { node: t });
|
|
1311
2494
|
switch (s) {
|
|
1312
2495
|
case "audio":
|
|
1313
|
-
return /* @__PURE__ */ r.jsx(
|
|
2496
|
+
return /* @__PURE__ */ r.jsx(Se, { node: t });
|
|
1314
2497
|
case "preamble":
|
|
1315
|
-
return /* @__PURE__ */ r.jsx(
|
|
2498
|
+
return /* @__PURE__ */ r.jsx(Be, { node: t });
|
|
1316
2499
|
case "section":
|
|
1317
|
-
return /* @__PURE__ */ r.jsx(
|
|
2500
|
+
return /* @__PURE__ */ r.jsx(Ue, { node: t });
|
|
1318
2501
|
case "paragraph":
|
|
1319
|
-
return /* @__PURE__ */ r.jsx(
|
|
2502
|
+
return /* @__PURE__ */ r.jsx(qe, { node: t });
|
|
1320
2503
|
case "dlist":
|
|
1321
|
-
return /* @__PURE__ */ r.jsx(
|
|
2504
|
+
return /* @__PURE__ */ r.jsx(ke, { node: t });
|
|
1322
2505
|
case "ulist":
|
|
1323
|
-
return /* @__PURE__ */ r.jsx(
|
|
2506
|
+
return /* @__PURE__ */ r.jsx(Je, { node: t });
|
|
1324
2507
|
case "floating_title":
|
|
1325
|
-
return /* @__PURE__ */ r.jsx(
|
|
2508
|
+
return /* @__PURE__ */ r.jsx(Re, { node: t });
|
|
1326
2509
|
case "admonition":
|
|
1327
|
-
return /* @__PURE__ */ r.jsx(
|
|
2510
|
+
return /* @__PURE__ */ r.jsx($e, { node: t });
|
|
1328
2511
|
case "listing":
|
|
1329
|
-
return /* @__PURE__ */ r.jsx(
|
|
2512
|
+
return /* @__PURE__ */ r.jsx(Le, { node: t });
|
|
1330
2513
|
case "literal":
|
|
1331
|
-
return /* @__PURE__ */ r.jsx(
|
|
2514
|
+
return /* @__PURE__ */ r.jsx(Ce, { node: t });
|
|
1332
2515
|
case "image":
|
|
1333
|
-
return /* @__PURE__ */ r.jsx(
|
|
2516
|
+
return /* @__PURE__ */ r.jsx(Oe, { node: t });
|
|
1334
2517
|
case "colist":
|
|
1335
|
-
return /* @__PURE__ */ r.jsx(
|
|
2518
|
+
return /* @__PURE__ */ r.jsx(we, { node: t });
|
|
1336
2519
|
case "olist":
|
|
1337
|
-
return /* @__PURE__ */ r.jsx(
|
|
2520
|
+
return /* @__PURE__ */ r.jsx(Pe, { node: t });
|
|
1338
2521
|
case "table":
|
|
1339
|
-
return /* @__PURE__ */ r.jsx(
|
|
2522
|
+
return /* @__PURE__ */ r.jsx(Ve, { node: t });
|
|
1340
2523
|
case "thematic_break":
|
|
1341
|
-
return /* @__PURE__ */ r.jsx(
|
|
2524
|
+
return /* @__PURE__ */ r.jsx(Qe, {});
|
|
1342
2525
|
case "open":
|
|
1343
|
-
return /* @__PURE__ */ r.jsx(
|
|
2526
|
+
return /* @__PURE__ */ r.jsx(He, { node: t });
|
|
1344
2527
|
case "pass":
|
|
1345
|
-
return /* @__PURE__ */ r.jsx(
|
|
2528
|
+
return /* @__PURE__ */ r.jsx(Fe, { node: t });
|
|
2529
|
+
case "stem":
|
|
2530
|
+
return /* @__PURE__ */ r.jsx(Ye, { node: t });
|
|
1346
2531
|
case "page_break":
|
|
1347
|
-
return /* @__PURE__ */ r.jsx(
|
|
2532
|
+
return /* @__PURE__ */ r.jsx(We, {});
|
|
1348
2533
|
case "example":
|
|
1349
|
-
return /* @__PURE__ */ r.jsx(
|
|
2534
|
+
return /* @__PURE__ */ r.jsx(Ae, { node: t });
|
|
1350
2535
|
case "sidebar":
|
|
1351
|
-
return /* @__PURE__ */ r.jsx(
|
|
2536
|
+
return /* @__PURE__ */ r.jsx(De, { node: t });
|
|
1352
2537
|
case "quote":
|
|
1353
|
-
return /* @__PURE__ */ r.jsx(
|
|
2538
|
+
return /* @__PURE__ */ r.jsx(ze, { node: t });
|
|
1354
2539
|
case "verse":
|
|
1355
|
-
return /* @__PURE__ */ r.jsx(
|
|
2540
|
+
return /* @__PURE__ */ r.jsx(Xe, { node: t });
|
|
1356
2541
|
case "video":
|
|
1357
|
-
return /* @__PURE__ */ r.jsx(
|
|
2542
|
+
return /* @__PURE__ */ r.jsx(Ke, { node: t });
|
|
1358
2543
|
case "toc":
|
|
1359
|
-
return /* @__PURE__ */ r.jsx(
|
|
2544
|
+
return /* @__PURE__ */ r.jsx(Ze, { node: t });
|
|
1360
2545
|
default:
|
|
1361
2546
|
return /* @__PURE__ */ r.jsx(r.Fragment, {});
|
|
1362
2547
|
}
|
|
1363
|
-
},
|
|
1364
|
-
const
|
|
1365
|
-
if (
|
|
2548
|
+
}, U = () => {
|
|
2549
|
+
const t = yt(dt);
|
|
2550
|
+
if (t === void 0)
|
|
1366
2551
|
throw new Error("useConverterContext must be used within a Provider");
|
|
1367
|
-
return
|
|
2552
|
+
return t;
|
|
1368
2553
|
};
|
|
1369
2554
|
export {
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
2555
|
+
$e as Admonition,
|
|
2556
|
+
as as Asciidoc,
|
|
2557
|
+
Se as Audio,
|
|
2558
|
+
we as CoList,
|
|
2559
|
+
P as Content,
|
|
2560
|
+
dt as Context,
|
|
2561
|
+
ke as DList,
|
|
2562
|
+
Ie as Document,
|
|
2563
|
+
Ae as Example,
|
|
2564
|
+
Re as FloatingTitle,
|
|
2565
|
+
Oe as Image,
|
|
2566
|
+
rs as Inline,
|
|
2567
|
+
Le as Listing,
|
|
2568
|
+
Ce as Literal,
|
|
2569
|
+
Pe as OList,
|
|
2570
|
+
He as Open,
|
|
2571
|
+
xt as Outline,
|
|
2572
|
+
We as PageBreak,
|
|
2573
|
+
qe as Paragraph,
|
|
2574
|
+
Fe as Pass,
|
|
2575
|
+
Be as Preamble,
|
|
2576
|
+
ze as Quote,
|
|
2577
|
+
ns as RenderInline,
|
|
2578
|
+
Ue as Section,
|
|
2579
|
+
De as Sidebar,
|
|
2580
|
+
Ye as Stem,
|
|
2581
|
+
Ve as Table,
|
|
2582
|
+
Ze as TableOfContents,
|
|
2583
|
+
Qe as ThematicBreak,
|
|
2584
|
+
O as Title,
|
|
2585
|
+
Je as UList,
|
|
2586
|
+
Xe as Verse,
|
|
2587
|
+
Ke as Video,
|
|
2588
|
+
E as inlineHtml,
|
|
2589
|
+
J as isOption,
|
|
2590
|
+
us as parse,
|
|
2591
|
+
is as prepareDocument,
|
|
2592
|
+
ls as processDocument,
|
|
2593
|
+
U as useConverterContext
|
|
1405
2594
|
};
|