@versini/sassysaint 5.4.12 → 5.4.14
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/chunks/{LazyApp.Dyu2ic9d.js → LazyApp.nhzP-Nbc.js} +70 -58
- package/dist/chunks/{LazyHeader.9qAKBwpW.js → LazyHeader.CCjVT4z8.js} +99 -92
- package/dist/chunks/{LazyMarkdownWithExtra.D-ycPLwb.js → LazyMarkdownWithExtra.aWPJfbF0.js} +747 -739
- package/dist/chunks/{LazyMessageAssistant.D02uWotL.js → LazyMessageAssistant.Bpza5zkH.js} +7 -7
- package/dist/chunks/{index.BQqipbFO.js → index.8mgE_tU8.js} +68 -62
- package/dist/chunks/{index.SBEBWYWL.js → index.CYifYdxQ.js} +42 -36
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { convert as _s, getDefaultExportFromCjs as Ss, visit as
|
|
3
|
-
import { O as Is } from "./index.
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
const
|
|
1
|
+
import { jsx as Ve, jsxs as P0, Fragment as Sa } from "react/jsx-runtime";
|
|
2
|
+
import { convert as _s, getDefaultExportFromCjs as Ss, visit as Na, find as Ns, parse as Sn, parse$1 as Nn, normalize as kn, svg as ks, html as Ts, visitParents as Ms, SKIP as As, longestStreak as Os, factorySpace as xr, markdownLineEnding as $t, Markdown as Rs, remarkGfm as Cs } from "./LazyMessageAssistant.Bpza5zkH.js";
|
|
3
|
+
import { O as Is, L as Ds, j as Ls } from "./index.CYifYdxQ.js";
|
|
4
|
+
import Bs, { useState as zs, useEffect as Ps } from "react";
|
|
5
|
+
import Fs from "clsx";
|
|
6
|
+
const ka = ({
|
|
7
7
|
children: t,
|
|
8
8
|
fill: e,
|
|
9
9
|
viewBox: r,
|
|
@@ -14,9 +14,9 @@ const Na = ({
|
|
|
14
14
|
semantic: c = !1,
|
|
15
15
|
...u
|
|
16
16
|
}) => {
|
|
17
|
-
const m =
|
|
18
|
-
return /* @__PURE__ */ P0(
|
|
19
|
-
/* @__PURE__ */
|
|
17
|
+
const m = Fs(i, n);
|
|
18
|
+
return /* @__PURE__ */ P0(Sa, { children: [
|
|
19
|
+
/* @__PURE__ */ Ve(
|
|
20
20
|
"svg",
|
|
21
21
|
{
|
|
22
22
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -30,30 +30,30 @@ const Na = ({
|
|
|
30
30
|
children: t
|
|
31
31
|
}
|
|
32
32
|
),
|
|
33
|
-
o && c && /* @__PURE__ */
|
|
33
|
+
o && c && /* @__PURE__ */ Ve("span", { className: "sr-only", children: o })
|
|
34
34
|
] });
|
|
35
35
|
};
|
|
36
36
|
/*!
|
|
37
|
-
@versini/ui-svgicon v3.0.
|
|
37
|
+
@versini/ui-svgicon v3.0.2
|
|
38
38
|
© 2024 gizmette.com
|
|
39
39
|
*/
|
|
40
40
|
try {
|
|
41
41
|
window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
|
|
42
|
-
version: "3.0.
|
|
43
|
-
buildTime: "12/
|
|
42
|
+
version: "3.0.2",
|
|
43
|
+
buildTime: "12/31/2024 09:01 AM EST",
|
|
44
44
|
homepage: "https://github.com/aversini/ui-components",
|
|
45
45
|
license: "MIT"
|
|
46
46
|
});
|
|
47
47
|
} catch {
|
|
48
48
|
}
|
|
49
|
-
const
|
|
49
|
+
const Us = ({
|
|
50
50
|
className: t,
|
|
51
51
|
viewBox: e,
|
|
52
52
|
title: r,
|
|
53
53
|
monotone: n,
|
|
54
54
|
...a
|
|
55
55
|
}) => /* @__PURE__ */ P0(
|
|
56
|
-
|
|
56
|
+
ka,
|
|
57
57
|
{
|
|
58
58
|
defaultViewBox: "0 0 448 512",
|
|
59
59
|
size: "size-5",
|
|
@@ -62,24 +62,24 @@ const Ps = ({
|
|
|
62
62
|
title: r || "Copied",
|
|
63
63
|
...a,
|
|
64
64
|
children: [
|
|
65
|
-
/* @__PURE__ */
|
|
65
|
+
/* @__PURE__ */ Ve(
|
|
66
66
|
"path",
|
|
67
67
|
{
|
|
68
68
|
opacity: "0.4",
|
|
69
69
|
d: "M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zM337 209L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"
|
|
70
70
|
}
|
|
71
71
|
),
|
|
72
|
-
/* @__PURE__ */
|
|
72
|
+
/* @__PURE__ */ Ve("path", { d: "M337 175c9.4 9.4 9.4 24.6 0 33.9L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0z" })
|
|
73
73
|
]
|
|
74
74
|
}
|
|
75
|
-
),
|
|
75
|
+
), qs = ({
|
|
76
76
|
className: t,
|
|
77
77
|
viewBox: e,
|
|
78
78
|
title: r,
|
|
79
79
|
monotone: n,
|
|
80
80
|
...a
|
|
81
|
-
}) => /* @__PURE__ */
|
|
82
|
-
|
|
81
|
+
}) => /* @__PURE__ */ Ve(
|
|
82
|
+
ka,
|
|
83
83
|
{
|
|
84
84
|
defaultViewBox: "0 0 512 512",
|
|
85
85
|
size: "size-5",
|
|
@@ -87,34 +87,34 @@ const Ps = ({
|
|
|
87
87
|
className: t,
|
|
88
88
|
title: r || "Copy",
|
|
89
89
|
...a,
|
|
90
|
-
children: /* @__PURE__ */
|
|
90
|
+
children: /* @__PURE__ */ Ve("path", { d: "M64 464H288c8.8 0 16-7.2 16-16V384h48v64c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V224c0-35.3 28.7-64 64-64h64v48H64c-8.8 0-16 7.2-16 16V448c0 8.8 7.2 16 16 16zM224 304H448c8.8 0 16-7.2 16-16V64c0-8.8-7.2-16-16-16H224c-8.8 0-16 7.2-16 16V288c0 8.8 7.2 16 16 16zm-64-16V64c0-35.3 28.7-64 64-64H448c35.3 0 64 28.7 64 64V288c0 35.3-28.7 64-64 64H224c-35.3 0-64-28.7-64-64z" })
|
|
91
91
|
}
|
|
92
92
|
);
|
|
93
93
|
/*!
|
|
94
|
-
@versini/ui-icons v3.0.
|
|
94
|
+
@versini/ui-icons v3.0.2
|
|
95
95
|
© 2024 gizmette.com
|
|
96
96
|
*/
|
|
97
97
|
try {
|
|
98
98
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
|
99
|
-
version: "3.0.
|
|
100
|
-
buildTime: "12/
|
|
99
|
+
version: "3.0.2",
|
|
100
|
+
buildTime: "12/31/2024 09:01 AM EST",
|
|
101
101
|
homepage: "https://github.com/aversini/ui-components",
|
|
102
102
|
license: "MIT"
|
|
103
103
|
});
|
|
104
104
|
} catch {
|
|
105
105
|
}
|
|
106
|
-
const
|
|
107
|
-
const [n, a] =
|
|
106
|
+
const Ta = Bs.forwardRef(({ copyToClipboard: t, ...e }, r) => {
|
|
107
|
+
const [n, a] = zs(!1), i = () => {
|
|
108
108
|
typeof t == "string" && (navigator.clipboard.writeText(t), a(!0)), typeof t == "function" && (navigator.clipboard.writeText(t()), a(!0));
|
|
109
109
|
};
|
|
110
|
-
return
|
|
110
|
+
return Ps(() => {
|
|
111
111
|
let o;
|
|
112
112
|
return n && (o = window.setTimeout(() => {
|
|
113
113
|
a(!1);
|
|
114
114
|
}, 3e3)), () => {
|
|
115
115
|
clearTimeout(o);
|
|
116
116
|
};
|
|
117
|
-
}, [n]), /* @__PURE__ */
|
|
117
|
+
}, [n]), /* @__PURE__ */ Ve(
|
|
118
118
|
Is,
|
|
119
119
|
{
|
|
120
120
|
...e,
|
|
@@ -123,11 +123,11 @@ const ka = Ds.forwardRef(({ copyToClipboard: t, ...e }, r) => {
|
|
|
123
123
|
label: n ? "Copied to clipboard" : "Copy to clipboard",
|
|
124
124
|
onClick: i,
|
|
125
125
|
disabled: n,
|
|
126
|
-
children: n ? /* @__PURE__ */
|
|
126
|
+
children: n ? /* @__PURE__ */ Ve(Us, { size: "size-3" }) : /* @__PURE__ */ Ve(qs, { size: "size-3" })
|
|
127
127
|
}
|
|
128
128
|
);
|
|
129
129
|
});
|
|
130
|
-
|
|
130
|
+
Ta.displayName = "ButtonCopy";
|
|
131
131
|
const Tn = (
|
|
132
132
|
// Note: overloads like this are needed to support optional generics.
|
|
133
133
|
/**
|
|
@@ -171,17 +171,17 @@ const Tn = (
|
|
|
171
171
|
*/
|
|
172
172
|
function(t) {
|
|
173
173
|
if (t == null)
|
|
174
|
-
return
|
|
174
|
+
return Gs;
|
|
175
175
|
if (typeof t == "string")
|
|
176
|
-
return
|
|
176
|
+
return $s(t);
|
|
177
177
|
if (typeof t == "object")
|
|
178
|
-
return
|
|
178
|
+
return Hs(t);
|
|
179
179
|
if (typeof t == "function")
|
|
180
180
|
return F0(t);
|
|
181
181
|
throw new Error("Expected function, string, or array as `test`");
|
|
182
182
|
}
|
|
183
183
|
);
|
|
184
|
-
function
|
|
184
|
+
function Hs(t) {
|
|
185
185
|
const e = [];
|
|
186
186
|
let r = -1;
|
|
187
187
|
for (; ++r < t.length; )
|
|
@@ -194,7 +194,7 @@ function Us(t) {
|
|
|
194
194
|
return !1;
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function $s(t) {
|
|
198
198
|
return F0(e);
|
|
199
199
|
function e(r) {
|
|
200
200
|
return r.tagName === t;
|
|
@@ -203,7 +203,7 @@ function qs(t) {
|
|
|
203
203
|
function F0(t) {
|
|
204
204
|
return e;
|
|
205
205
|
function e(r, n, a) {
|
|
206
|
-
return !!(
|
|
206
|
+
return !!(Ks(r) && t.call(
|
|
207
207
|
this,
|
|
208
208
|
r,
|
|
209
209
|
typeof n == "number" ? n : void 0,
|
|
@@ -211,13 +211,13 @@ function F0(t) {
|
|
|
211
211
|
));
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function Gs(t) {
|
|
215
215
|
return !!(t && typeof t == "object" && "type" in t && t.type === "element" && "tagName" in t && typeof t.tagName == "string");
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function Ks(t) {
|
|
218
218
|
return t !== null && typeof t == "object" && "type" in t && "tagName" in t;
|
|
219
219
|
}
|
|
220
|
-
const Mn = /\n/g, An = /[\t ]+/g, N0 = Gt("br"), On = Gt(
|
|
220
|
+
const Mn = /\n/g, An = /[\t ]+/g, N0 = Gt("br"), On = Gt(Js), Vs = Gt("p"), Rn = Gt("tr"), Ws = Gt([
|
|
221
221
|
// List from: <https://html.spec.whatwg.org/multipage/rendering.html#hidden-elements>
|
|
222
222
|
"datalist",
|
|
223
223
|
"head",
|
|
@@ -231,10 +231,10 @@ const Mn = /\n/g, An = /[\t ]+/g, N0 = Gt("br"), On = Gt(Xs), Gs = Gt("p"), Rn =
|
|
|
231
231
|
"template",
|
|
232
232
|
"title",
|
|
233
233
|
// Hidden attribute.
|
|
234
|
-
|
|
234
|
+
Qs,
|
|
235
235
|
// From: <https://html.spec.whatwg.org/multipage/rendering.html#flow-content-3>
|
|
236
|
-
|
|
237
|
-
]),
|
|
236
|
+
js
|
|
237
|
+
]), Ma = Gt([
|
|
238
238
|
"address",
|
|
239
239
|
// Flow content
|
|
240
240
|
"article",
|
|
@@ -317,13 +317,13 @@ const Mn = /\n/g, An = /[\t ]+/g, N0 = Gt("br"), On = Gt(Xs), Gs = Gt("p"), Rn =
|
|
|
317
317
|
// Flow content (legacy)
|
|
318
318
|
]);
|
|
319
319
|
function k0(t, e) {
|
|
320
|
-
const r = e || {}, n = "children" in t ? t.children : [], a =
|
|
320
|
+
const r = e || {}, n = "children" in t ? t.children : [], a = Ma(t), i = Ra(t, {
|
|
321
321
|
whitespace: r.whitespace || "normal",
|
|
322
322
|
breakBefore: !1,
|
|
323
323
|
breakAfter: !1
|
|
324
324
|
}), o = [];
|
|
325
325
|
(t.type === "text" || t.type === "comment") && o.push(
|
|
326
|
-
...
|
|
326
|
+
...Oa(t, {
|
|
327
327
|
whitespace: i,
|
|
328
328
|
breakBefore: !0,
|
|
329
329
|
breakAfter: !0
|
|
@@ -332,7 +332,7 @@ function k0(t, e) {
|
|
|
332
332
|
let c = -1;
|
|
333
333
|
for (; ++c < n.length; )
|
|
334
334
|
o.push(
|
|
335
|
-
...
|
|
335
|
+
...Aa(
|
|
336
336
|
n[c],
|
|
337
337
|
// @ts-expect-error: `tree` is a parent if we’re here.
|
|
338
338
|
t,
|
|
@@ -352,20 +352,20 @@ function k0(t, e) {
|
|
|
352
352
|
}
|
|
353
353
|
return u.join("");
|
|
354
354
|
}
|
|
355
|
-
function
|
|
356
|
-
return t.type === "element" ?
|
|
355
|
+
function Aa(t, e, r) {
|
|
356
|
+
return t.type === "element" ? Ys(t, e, r) : t.type === "text" ? r.whitespace === "normal" ? Oa(t, r) : Zs(t) : [];
|
|
357
357
|
}
|
|
358
|
-
function
|
|
359
|
-
const n =
|
|
358
|
+
function Ys(t, e, r) {
|
|
359
|
+
const n = Ra(t, r), a = t.children || [];
|
|
360
360
|
let i = -1, o = [];
|
|
361
|
-
if (
|
|
361
|
+
if (Ws(t))
|
|
362
362
|
return o;
|
|
363
363
|
let c, u;
|
|
364
364
|
for (N0(t) || Rn(t) && // @ts-expect-error: something up with types of parents.
|
|
365
365
|
Tn(e, t, Rn) ? u = `
|
|
366
|
-
` :
|
|
366
|
+
` : Vs(t) ? (c = 2, u = 2) : Ma(t) && (c = 1, u = 1); ++i < a.length; )
|
|
367
367
|
o = o.concat(
|
|
368
|
-
|
|
368
|
+
Aa(a[i], t, {
|
|
369
369
|
whitespace: n,
|
|
370
370
|
breakBefore: i ? void 0 : c,
|
|
371
371
|
breakAfter: i < a.length - 1 ? N0(a[i + 1]) : u
|
|
@@ -374,7 +374,7 @@ function Vs(t, e, r) {
|
|
|
374
374
|
return On(t) && // @ts-expect-error: something up with types of parents.
|
|
375
375
|
Tn(e, t, On) && o.push(" "), c && o.unshift(c), u && o.push(u), o;
|
|
376
376
|
}
|
|
377
|
-
function
|
|
377
|
+
function Oa(t, e) {
|
|
378
378
|
const r = String(t.value), n = [], a = [];
|
|
379
379
|
let i = 0;
|
|
380
380
|
for (; i <= r.length; ) {
|
|
@@ -383,7 +383,7 @@ function Aa(t, e) {
|
|
|
383
383
|
n.push(
|
|
384
384
|
// Any sequence of collapsible spaces and tabs immediately preceding or
|
|
385
385
|
// following a segment break is removed.
|
|
386
|
-
|
|
386
|
+
Xs(
|
|
387
387
|
// […] ignoring bidi formatting characters (characters with the
|
|
388
388
|
// Bidi_Control property [UAX9]: ALM, LTR, RTL, LRE-RLO, LRI-PDI) as if
|
|
389
389
|
// they were not there.
|
|
@@ -398,10 +398,10 @@ function Aa(t, e) {
|
|
|
398
398
|
n[o].charCodeAt(n[o].length - 1) === 8203 || o < n.length - 1 && n[o + 1].charCodeAt(0) === 8203 ? (a.push(n[o]), c = void 0) : n[o] ? (typeof c == "number" && a.push(c), a.push(n[o]), c = 0) : (o === 0 || o === n.length - 1) && a.push(0);
|
|
399
399
|
return a;
|
|
400
400
|
}
|
|
401
|
-
function
|
|
401
|
+
function Zs(t) {
|
|
402
402
|
return [String(t.value)];
|
|
403
403
|
}
|
|
404
|
-
function
|
|
404
|
+
function Xs(t, e, r) {
|
|
405
405
|
const n = [];
|
|
406
406
|
let a = 0, i;
|
|
407
407
|
for (; a < t.length; ) {
|
|
@@ -411,7 +411,7 @@ function Ys(t, e, r) {
|
|
|
411
411
|
}
|
|
412
412
|
return a !== i && !r && n.push(""), n.join(" ");
|
|
413
413
|
}
|
|
414
|
-
function
|
|
414
|
+
function Ra(t, e) {
|
|
415
415
|
if (t.type === "element") {
|
|
416
416
|
const r = t.properties || {};
|
|
417
417
|
switch (t.tagName) {
|
|
@@ -432,16 +432,16 @@ function Oa(t, e) {
|
|
|
432
432
|
}
|
|
433
433
|
return e.whitespace;
|
|
434
434
|
}
|
|
435
|
-
function
|
|
435
|
+
function Qs(t) {
|
|
436
436
|
return !!(t.properties || {}).hidden;
|
|
437
437
|
}
|
|
438
|
-
function
|
|
438
|
+
function Js(t) {
|
|
439
439
|
return t.tagName === "td" || t.tagName === "th";
|
|
440
440
|
}
|
|
441
|
-
function
|
|
441
|
+
function js(t) {
|
|
442
442
|
return t.tagName === "dialog" && !(t.properties || {}).open;
|
|
443
443
|
}
|
|
444
|
-
function
|
|
444
|
+
function eo(t) {
|
|
445
445
|
const e = t.regex, r = t.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), n = "decltype\\(auto\\)", a = "[a-zA-Z_]\\w*::", o = "(?!struct)(" + n + "|" + e.optional(a) + "[a-zA-Z_]\\w*" + e.optional("<[^<>]+>") + ")", c = {
|
|
446
446
|
className: "type",
|
|
447
447
|
begin: "\\b[a-z\\d_]*_t\\b"
|
|
@@ -950,7 +950,7 @@ function Js(t) {
|
|
|
950
950
|
)
|
|
951
951
|
};
|
|
952
952
|
}
|
|
953
|
-
function
|
|
953
|
+
function to(t) {
|
|
954
954
|
const e = {
|
|
955
955
|
type: [
|
|
956
956
|
"boolean",
|
|
@@ -1316,7 +1316,7 @@ function js(t) {
|
|
|
1316
1316
|
"HIGH",
|
|
1317
1317
|
"LOW"
|
|
1318
1318
|
]
|
|
1319
|
-
}, r =
|
|
1319
|
+
}, r = eo(t), n = (
|
|
1320
1320
|
/** @type {Record<string,any>} */
|
|
1321
1321
|
r.keywords
|
|
1322
1322
|
);
|
|
@@ -1331,7 +1331,7 @@ function js(t) {
|
|
|
1331
1331
|
...e.built_in
|
|
1332
1332
|
], n._hints = e._hints, r.name = "Arduino", r.aliases = ["ino"], r.supersetOf = "cpp", r;
|
|
1333
1333
|
}
|
|
1334
|
-
function
|
|
1334
|
+
function ro(t) {
|
|
1335
1335
|
const e = t.regex, r = {}, n = {
|
|
1336
1336
|
begin: /\$\{/,
|
|
1337
1337
|
end: /\}/,
|
|
@@ -1688,7 +1688,7 @@ function eo(t) {
|
|
|
1688
1688
|
]
|
|
1689
1689
|
};
|
|
1690
1690
|
}
|
|
1691
|
-
function
|
|
1691
|
+
function no(t) {
|
|
1692
1692
|
const e = t.regex, r = t.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), n = "decltype\\(auto\\)", a = "[a-zA-Z_]\\w*::", o = "(" + n + "|" + e.optional(a) + "[a-zA-Z_]\\w*" + e.optional("<[^<>]+>") + ")", c = {
|
|
1693
1693
|
className: "type",
|
|
1694
1694
|
variants: [
|
|
@@ -1947,7 +1947,7 @@ function to(t) {
|
|
|
1947
1947
|
}
|
|
1948
1948
|
};
|
|
1949
1949
|
}
|
|
1950
|
-
function
|
|
1950
|
+
function ao(t) {
|
|
1951
1951
|
const e = t.regex, r = t.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), n = "decltype\\(auto\\)", a = "[a-zA-Z_]\\w*::", o = "(?!struct)(" + n + "|" + e.optional(a) + "[a-zA-Z_]\\w*" + e.optional("<[^<>]+>") + ")", c = {
|
|
1952
1952
|
className: "type",
|
|
1953
1953
|
begin: "\\b[a-z\\d_]*_t\\b"
|
|
@@ -2456,7 +2456,7 @@ function ro(t) {
|
|
|
2456
2456
|
)
|
|
2457
2457
|
};
|
|
2458
2458
|
}
|
|
2459
|
-
function
|
|
2459
|
+
function io(t) {
|
|
2460
2460
|
const e = [
|
|
2461
2461
|
"bool",
|
|
2462
2462
|
"byte",
|
|
@@ -2824,7 +2824,7 @@ function no(t) {
|
|
|
2824
2824
|
]
|
|
2825
2825
|
};
|
|
2826
2826
|
}
|
|
2827
|
-
const
|
|
2827
|
+
const so = (t) => ({
|
|
2828
2828
|
IMPORTANT: {
|
|
2829
2829
|
scope: "meta",
|
|
2830
2830
|
begin: "!important"
|
|
@@ -2857,7 +2857,7 @@ const ao = (t) => ({
|
|
|
2857
2857
|
className: "attr",
|
|
2858
2858
|
begin: /--[A-Za-z_][A-Za-z0-9_-]*/
|
|
2859
2859
|
}
|
|
2860
|
-
}),
|
|
2860
|
+
}), oo = [
|
|
2861
2861
|
"a",
|
|
2862
2862
|
"abbr",
|
|
2863
2863
|
"address",
|
|
@@ -2930,7 +2930,7 @@ const ao = (t) => ({
|
|
|
2930
2930
|
"ul",
|
|
2931
2931
|
"var",
|
|
2932
2932
|
"video"
|
|
2933
|
-
],
|
|
2933
|
+
], lo = [
|
|
2934
2934
|
"any-hover",
|
|
2935
2935
|
"any-pointer",
|
|
2936
2936
|
"aspect-ratio",
|
|
@@ -2965,7 +2965,7 @@ const ao = (t) => ({
|
|
|
2965
2965
|
"max-width",
|
|
2966
2966
|
"min-height",
|
|
2967
2967
|
"max-height"
|
|
2968
|
-
],
|
|
2968
|
+
], co = [
|
|
2969
2969
|
"active",
|
|
2970
2970
|
"any-link",
|
|
2971
2971
|
"blank",
|
|
@@ -3039,7 +3039,7 @@ const ao = (t) => ({
|
|
|
3039
3039
|
"visited",
|
|
3040
3040
|
"where"
|
|
3041
3041
|
// where()
|
|
3042
|
-
],
|
|
3042
|
+
], uo = [
|
|
3043
3043
|
"after",
|
|
3044
3044
|
"backdrop",
|
|
3045
3045
|
"before",
|
|
@@ -3054,7 +3054,7 @@ const ao = (t) => ({
|
|
|
3054
3054
|
"selection",
|
|
3055
3055
|
"slotted",
|
|
3056
3056
|
"spelling-error"
|
|
3057
|
-
],
|
|
3057
|
+
], mo = [
|
|
3058
3058
|
"align-content",
|
|
3059
3059
|
"align-items",
|
|
3060
3060
|
"align-self",
|
|
@@ -3417,8 +3417,8 @@ const ao = (t) => ({
|
|
|
3417
3417
|
// reverse makes sure longer attributes `font-weight` are matched fully
|
|
3418
3418
|
// instead of getting false positives on say `font`
|
|
3419
3419
|
].reverse();
|
|
3420
|
-
function
|
|
3421
|
-
const e = t.regex, r =
|
|
3420
|
+
function ho(t) {
|
|
3421
|
+
const e = t.regex, r = so(t), n = { begin: /-(webkit|moz|ms|o)-(?=[a-z])/ }, a = "and or not only", i = /@-?\w[\w]*(-\w+)*/, o = "[a-zA-Z-][a-zA-Z0-9_-]*", c = [
|
|
3422
3422
|
t.APOS_STRING_MODE,
|
|
3423
3423
|
t.QUOTE_STRING_MODE
|
|
3424
3424
|
];
|
|
@@ -3452,8 +3452,8 @@ function uo(t) {
|
|
|
3452
3452
|
{
|
|
3453
3453
|
className: "selector-pseudo",
|
|
3454
3454
|
variants: [
|
|
3455
|
-
{ begin: ":(" +
|
|
3456
|
-
{ begin: ":(:)?(" +
|
|
3455
|
+
{ begin: ":(" + co.join("|") + ")" },
|
|
3456
|
+
{ begin: ":(:)?(" + uo.join("|") + ")" }
|
|
3457
3457
|
]
|
|
3458
3458
|
},
|
|
3459
3459
|
// we may actually need this (12/2020)
|
|
@@ -3465,7 +3465,7 @@ function uo(t) {
|
|
|
3465
3465
|
r.CSS_VARIABLE,
|
|
3466
3466
|
{
|
|
3467
3467
|
className: "attribute",
|
|
3468
|
-
begin: "\\b(" +
|
|
3468
|
+
begin: "\\b(" + mo.join("|") + ")\\b"
|
|
3469
3469
|
},
|
|
3470
3470
|
// attribute values
|
|
3471
3471
|
{
|
|
@@ -3520,7 +3520,7 @@ function uo(t) {
|
|
|
3520
3520
|
keywords: {
|
|
3521
3521
|
$pattern: /[a-z-]+/,
|
|
3522
3522
|
keyword: a,
|
|
3523
|
-
attribute:
|
|
3523
|
+
attribute: lo.join(" ")
|
|
3524
3524
|
},
|
|
3525
3525
|
contains: [
|
|
3526
3526
|
{
|
|
@@ -3535,12 +3535,12 @@ function uo(t) {
|
|
|
3535
3535
|
},
|
|
3536
3536
|
{
|
|
3537
3537
|
className: "selector-tag",
|
|
3538
|
-
begin: "\\b(" +
|
|
3538
|
+
begin: "\\b(" + oo.join("|") + ")\\b"
|
|
3539
3539
|
}
|
|
3540
3540
|
]
|
|
3541
3541
|
};
|
|
3542
3542
|
}
|
|
3543
|
-
function
|
|
3543
|
+
function po(t) {
|
|
3544
3544
|
const e = t.regex;
|
|
3545
3545
|
return {
|
|
3546
3546
|
name: "Diff",
|
|
@@ -3591,7 +3591,7 @@ function mo(t) {
|
|
|
3591
3591
|
]
|
|
3592
3592
|
};
|
|
3593
3593
|
}
|
|
3594
|
-
function
|
|
3594
|
+
function fo(t) {
|
|
3595
3595
|
const i = {
|
|
3596
3596
|
keyword: [
|
|
3597
3597
|
"break",
|
|
@@ -3719,7 +3719,7 @@ function ho(t) {
|
|
|
3719
3719
|
]
|
|
3720
3720
|
};
|
|
3721
3721
|
}
|
|
3722
|
-
function
|
|
3722
|
+
function go(t) {
|
|
3723
3723
|
const e = t.regex, r = /[_A-Za-z][_0-9A-Za-z]*/;
|
|
3724
3724
|
return {
|
|
3725
3725
|
name: "GraphQL",
|
|
@@ -3786,7 +3786,7 @@ function po(t) {
|
|
|
3786
3786
|
]
|
|
3787
3787
|
};
|
|
3788
3788
|
}
|
|
3789
|
-
function
|
|
3789
|
+
function bo(t) {
|
|
3790
3790
|
const e = t.regex, r = {
|
|
3791
3791
|
className: "number",
|
|
3792
3792
|
relevance: 0,
|
|
@@ -3913,11 +3913,11 @@ var Jt = "[0-9](_*[0-9])*", _r = `\\.(${Jt})`, Sr = "[0-9a-fA-F](_*[0-9a-fA-F])*
|
|
|
3913
3913
|
],
|
|
3914
3914
|
relevance: 0
|
|
3915
3915
|
};
|
|
3916
|
-
function
|
|
3917
|
-
return r === -1 ? "" : t.replace(e, (n) =>
|
|
3916
|
+
function Ca(t, e, r) {
|
|
3917
|
+
return r === -1 ? "" : t.replace(e, (n) => Ca(t, e, r - 1));
|
|
3918
3918
|
}
|
|
3919
|
-
function
|
|
3920
|
-
const e = t.regex, r = "[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*", n = r +
|
|
3919
|
+
function vo(t) {
|
|
3920
|
+
const e = t.regex, r = "[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*", n = r + Ca("(?:<" + r + "~~~(?:\\s*,\\s*" + r + "~~~)*>)?", /~~~/g, 2), u = {
|
|
3921
3921
|
keyword: [
|
|
3922
3922
|
"synchronized",
|
|
3923
3923
|
"abstract",
|
|
@@ -4125,7 +4125,7 @@ function go(t) {
|
|
|
4125
4125
|
]
|
|
4126
4126
|
};
|
|
4127
4127
|
}
|
|
4128
|
-
const In = "[A-Za-z$_][0-9A-Za-z$_]*",
|
|
4128
|
+
const In = "[A-Za-z$_][0-9A-Za-z$_]*", yo = [
|
|
4129
4129
|
"as",
|
|
4130
4130
|
// for exports
|
|
4131
4131
|
"in",
|
|
@@ -4168,14 +4168,14 @@ const In = "[A-Za-z$_][0-9A-Za-z$_]*", bo = [
|
|
|
4168
4168
|
"from",
|
|
4169
4169
|
"export",
|
|
4170
4170
|
"extends"
|
|
4171
|
-
],
|
|
4171
|
+
], wo = [
|
|
4172
4172
|
"true",
|
|
4173
4173
|
"false",
|
|
4174
4174
|
"null",
|
|
4175
4175
|
"undefined",
|
|
4176
4176
|
"NaN",
|
|
4177
4177
|
"Infinity"
|
|
4178
|
-
],
|
|
4178
|
+
], Ia = [
|
|
4179
4179
|
// Fundamental objects
|
|
4180
4180
|
"Object",
|
|
4181
4181
|
"Function",
|
|
@@ -4225,7 +4225,7 @@ const In = "[A-Za-z$_][0-9A-Za-z$_]*", bo = [
|
|
|
4225
4225
|
"Intl",
|
|
4226
4226
|
// WebAssembly
|
|
4227
4227
|
"WebAssembly"
|
|
4228
|
-
],
|
|
4228
|
+
], Da = [
|
|
4229
4229
|
"Error",
|
|
4230
4230
|
"EvalError",
|
|
4231
4231
|
"InternalError",
|
|
@@ -4234,7 +4234,7 @@ const In = "[A-Za-z$_][0-9A-Za-z$_]*", bo = [
|
|
|
4234
4234
|
"SyntaxError",
|
|
4235
4235
|
"TypeError",
|
|
4236
4236
|
"URIError"
|
|
4237
|
-
],
|
|
4237
|
+
], La = [
|
|
4238
4238
|
"setInterval",
|
|
4239
4239
|
"setTimeout",
|
|
4240
4240
|
"clearInterval",
|
|
@@ -4252,7 +4252,7 @@ const In = "[A-Za-z$_][0-9A-Za-z$_]*", bo = [
|
|
|
4252
4252
|
"encodeURIComponent",
|
|
4253
4253
|
"escape",
|
|
4254
4254
|
"unescape"
|
|
4255
|
-
],
|
|
4255
|
+
], Eo = [
|
|
4256
4256
|
"arguments",
|
|
4257
4257
|
"this",
|
|
4258
4258
|
"super",
|
|
@@ -4264,12 +4264,12 @@ const In = "[A-Za-z$_][0-9A-Za-z$_]*", bo = [
|
|
|
4264
4264
|
"module",
|
|
4265
4265
|
"global"
|
|
4266
4266
|
// Node.js
|
|
4267
|
-
],
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4267
|
+
], xo = [].concat(
|
|
4268
|
+
La,
|
|
4269
|
+
Ia,
|
|
4270
|
+
Da
|
|
4271
4271
|
);
|
|
4272
|
-
function
|
|
4272
|
+
function _o(t) {
|
|
4273
4273
|
const e = t.regex, r = (ie, { after: Te }) => {
|
|
4274
4274
|
const xe = "</" + ie[0].slice(1);
|
|
4275
4275
|
return ie.input.indexOf(xe, Te) !== -1;
|
|
@@ -4310,10 +4310,10 @@ function Eo(t) {
|
|
|
4310
4310
|
}
|
|
4311
4311
|
}, c = {
|
|
4312
4312
|
$pattern: In,
|
|
4313
|
-
keyword:
|
|
4314
|
-
literal:
|
|
4315
|
-
built_in:
|
|
4316
|
-
"variable.language":
|
|
4313
|
+
keyword: yo,
|
|
4314
|
+
literal: wo,
|
|
4315
|
+
built_in: xo,
|
|
4316
|
+
"variable.language": Eo
|
|
4317
4317
|
}, u = "[0-9](_?[0-9])*", m = `\\.(${u})`, p = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", f = {
|
|
4318
4318
|
className: "number",
|
|
4319
4319
|
variants: [
|
|
@@ -4520,8 +4520,8 @@ function Eo(t) {
|
|
|
4520
4520
|
keywords: {
|
|
4521
4521
|
_: [
|
|
4522
4522
|
// se we still get relevance credit for JS library classes
|
|
4523
|
-
...
|
|
4524
|
-
...
|
|
4523
|
+
...Ia,
|
|
4524
|
+
...Da
|
|
4525
4525
|
]
|
|
4526
4526
|
}
|
|
4527
4527
|
}, K = {
|
|
@@ -4566,7 +4566,7 @@ function Eo(t) {
|
|
|
4566
4566
|
match: e.concat(
|
|
4567
4567
|
/\b/,
|
|
4568
4568
|
le([
|
|
4569
|
-
...
|
|
4569
|
+
...La,
|
|
4570
4570
|
"super",
|
|
4571
4571
|
"import"
|
|
4572
4572
|
]),
|
|
@@ -4776,7 +4776,7 @@ function Eo(t) {
|
|
|
4776
4776
|
]
|
|
4777
4777
|
};
|
|
4778
4778
|
}
|
|
4779
|
-
function
|
|
4779
|
+
function So(t) {
|
|
4780
4780
|
const e = {
|
|
4781
4781
|
className: "attr",
|
|
4782
4782
|
begin: /"(\\.|[^\\"\r\n])*"(?=\s*:)/,
|
|
@@ -4810,7 +4810,7 @@ function xo(t) {
|
|
|
4810
4810
|
illegal: "\\S"
|
|
4811
4811
|
};
|
|
4812
4812
|
}
|
|
4813
|
-
var jt = "[0-9](_*[0-9])*", Nr = `\\.(${jt})`, kr = "[0-9a-fA-F](_*[0-9a-fA-F])*",
|
|
4813
|
+
var jt = "[0-9](_*[0-9])*", Nr = `\\.(${jt})`, kr = "[0-9a-fA-F](_*[0-9a-fA-F])*", No = {
|
|
4814
4814
|
className: "number",
|
|
4815
4815
|
variants: [
|
|
4816
4816
|
// DecimalFloatingPointLiteral
|
|
@@ -4833,7 +4833,7 @@ var jt = "[0-9](_*[0-9])*", Nr = `\\.(${jt})`, kr = "[0-9a-fA-F](_*[0-9a-fA-F])*
|
|
|
4833
4833
|
],
|
|
4834
4834
|
relevance: 0
|
|
4835
4835
|
};
|
|
4836
|
-
function
|
|
4836
|
+
function ko(t) {
|
|
4837
4837
|
const e = {
|
|
4838
4838
|
keyword: "abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",
|
|
4839
4839
|
built_in: "Byte Short Char Int Long Boolean Float Double Void Unit Nothing",
|
|
@@ -4907,7 +4907,7 @@ function So(t) {
|
|
|
4907
4907
|
]
|
|
4908
4908
|
}
|
|
4909
4909
|
]
|
|
4910
|
-
}, m =
|
|
4910
|
+
}, m = No, p = t.COMMENT(
|
|
4911
4911
|
"/\\*",
|
|
4912
4912
|
"\\*/",
|
|
4913
4913
|
{ contains: [t.C_BLOCK_COMMENT_MODE] }
|
|
@@ -5049,7 +5049,7 @@ function So(t) {
|
|
|
5049
5049
|
]
|
|
5050
5050
|
};
|
|
5051
5051
|
}
|
|
5052
|
-
const
|
|
5052
|
+
const To = (t) => ({
|
|
5053
5053
|
IMPORTANT: {
|
|
5054
5054
|
scope: "meta",
|
|
5055
5055
|
begin: "!important"
|
|
@@ -5082,7 +5082,7 @@ const No = (t) => ({
|
|
|
5082
5082
|
className: "attr",
|
|
5083
5083
|
begin: /--[A-Za-z_][A-Za-z0-9_-]*/
|
|
5084
5084
|
}
|
|
5085
|
-
}),
|
|
5085
|
+
}), Mo = [
|
|
5086
5086
|
"a",
|
|
5087
5087
|
"abbr",
|
|
5088
5088
|
"address",
|
|
@@ -5155,7 +5155,7 @@ const No = (t) => ({
|
|
|
5155
5155
|
"ul",
|
|
5156
5156
|
"var",
|
|
5157
5157
|
"video"
|
|
5158
|
-
],
|
|
5158
|
+
], Ao = [
|
|
5159
5159
|
"any-hover",
|
|
5160
5160
|
"any-pointer",
|
|
5161
5161
|
"aspect-ratio",
|
|
@@ -5190,7 +5190,7 @@ const No = (t) => ({
|
|
|
5190
5190
|
"max-width",
|
|
5191
5191
|
"min-height",
|
|
5192
5192
|
"max-height"
|
|
5193
|
-
],
|
|
5193
|
+
], Ba = [
|
|
5194
5194
|
"active",
|
|
5195
5195
|
"any-link",
|
|
5196
5196
|
"blank",
|
|
@@ -5264,7 +5264,7 @@ const No = (t) => ({
|
|
|
5264
5264
|
"visited",
|
|
5265
5265
|
"where"
|
|
5266
5266
|
// where()
|
|
5267
|
-
],
|
|
5267
|
+
], za = [
|
|
5268
5268
|
"after",
|
|
5269
5269
|
"backdrop",
|
|
5270
5270
|
"before",
|
|
@@ -5279,7 +5279,7 @@ const No = (t) => ({
|
|
|
5279
5279
|
"selection",
|
|
5280
5280
|
"slotted",
|
|
5281
5281
|
"spelling-error"
|
|
5282
|
-
],
|
|
5282
|
+
], Oo = [
|
|
5283
5283
|
"align-content",
|
|
5284
5284
|
"align-items",
|
|
5285
5285
|
"align-self",
|
|
@@ -5641,9 +5641,9 @@ const No = (t) => ({
|
|
|
5641
5641
|
"z-index"
|
|
5642
5642
|
// reverse makes sure longer attributes `font-weight` are matched fully
|
|
5643
5643
|
// instead of getting false positives on say `font`
|
|
5644
|
-
].reverse(),
|
|
5645
|
-
function
|
|
5646
|
-
const e =
|
|
5644
|
+
].reverse(), Ro = Ba.concat(za);
|
|
5645
|
+
function Co(t) {
|
|
5646
|
+
const e = To(t), r = Ro, n = "and or not only", a = "[\\w-]+", i = "(" + a + "|@\\{" + a + "\\})", o = [], c = [], u = function(D) {
|
|
5647
5647
|
return {
|
|
5648
5648
|
// Less strings are not multiline (also include '~' for more consistent coloring of "escaped" strings)
|
|
5649
5649
|
className: "string",
|
|
@@ -5658,7 +5658,7 @@ function Oo(t) {
|
|
|
5658
5658
|
}, p = {
|
|
5659
5659
|
$pattern: /[a-z-]+/,
|
|
5660
5660
|
keyword: n,
|
|
5661
|
-
attribute:
|
|
5661
|
+
attribute: Ao.join(" ")
|
|
5662
5662
|
}, f = {
|
|
5663
5663
|
// used only to properly balance nested parens inside mixin call, def. arg list
|
|
5664
5664
|
begin: "\\(",
|
|
@@ -5719,7 +5719,7 @@ function Oo(t) {
|
|
|
5719
5719
|
e.CSS_VARIABLE,
|
|
5720
5720
|
{
|
|
5721
5721
|
className: "attribute",
|
|
5722
|
-
begin: "\\b(" +
|
|
5722
|
+
begin: "\\b(" + Oo.join("|") + ")\\b",
|
|
5723
5723
|
end: /(?=:)/,
|
|
5724
5724
|
starts: {
|
|
5725
5725
|
endsWithParent: !0,
|
|
@@ -5784,7 +5784,7 @@ function Oo(t) {
|
|
|
5784
5784
|
m("variable", "@\\{" + a + "\\}"),
|
|
5785
5785
|
// otherwise it’s identified as tag
|
|
5786
5786
|
{
|
|
5787
|
-
begin: "\\b(" +
|
|
5787
|
+
begin: "\\b(" + Mo.join("|") + ")\\b",
|
|
5788
5788
|
className: "selector-tag"
|
|
5789
5789
|
},
|
|
5790
5790
|
e.CSS_NUMBER_MODE,
|
|
@@ -5795,11 +5795,11 @@ function Oo(t) {
|
|
|
5795
5795
|
e.ATTRIBUTE_SELECTOR_MODE,
|
|
5796
5796
|
{
|
|
5797
5797
|
className: "selector-pseudo",
|
|
5798
|
-
begin: ":(" +
|
|
5798
|
+
begin: ":(" + Ba.join("|") + ")"
|
|
5799
5799
|
},
|
|
5800
5800
|
{
|
|
5801
5801
|
className: "selector-pseudo",
|
|
5802
|
-
begin: ":(:)?(" +
|
|
5802
|
+
begin: ":(:)?(" + za.join("|") + ")"
|
|
5803
5803
|
},
|
|
5804
5804
|
{
|
|
5805
5805
|
begin: /\(/,
|
|
@@ -5834,7 +5834,7 @@ function Oo(t) {
|
|
|
5834
5834
|
contains: o
|
|
5835
5835
|
};
|
|
5836
5836
|
}
|
|
5837
|
-
function
|
|
5837
|
+
function Io(t) {
|
|
5838
5838
|
const e = "\\[=*\\[", r = "\\]=*\\]", n = {
|
|
5839
5839
|
begin: e,
|
|
5840
5840
|
end: r,
|
|
@@ -5889,7 +5889,7 @@ function Ro(t) {
|
|
|
5889
5889
|
])
|
|
5890
5890
|
};
|
|
5891
5891
|
}
|
|
5892
|
-
function
|
|
5892
|
+
function Do(t) {
|
|
5893
5893
|
const e = {
|
|
5894
5894
|
className: "variable",
|
|
5895
5895
|
variants: [
|
|
@@ -5949,7 +5949,7 @@ function Co(t) {
|
|
|
5949
5949
|
]
|
|
5950
5950
|
};
|
|
5951
5951
|
}
|
|
5952
|
-
function
|
|
5952
|
+
function Lo(t) {
|
|
5953
5953
|
const e = t.regex, r = {
|
|
5954
5954
|
begin: /<\/?[A-Za-z_]/,
|
|
5955
5955
|
end: ">",
|
|
@@ -6157,7 +6157,7 @@ function Io(t) {
|
|
|
6157
6157
|
]
|
|
6158
6158
|
};
|
|
6159
6159
|
}
|
|
6160
|
-
function
|
|
6160
|
+
function Bo(t) {
|
|
6161
6161
|
const e = {
|
|
6162
6162
|
className: "built_in",
|
|
6163
6163
|
begin: "\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"
|
|
@@ -6391,7 +6391,7 @@ function Do(t) {
|
|
|
6391
6391
|
]
|
|
6392
6392
|
};
|
|
6393
6393
|
}
|
|
6394
|
-
function
|
|
6394
|
+
function zo(t) {
|
|
6395
6395
|
const e = t.regex, r = [
|
|
6396
6396
|
"abs",
|
|
6397
6397
|
"accept",
|
|
@@ -6825,7 +6825,7 @@ function Lo(t) {
|
|
|
6825
6825
|
contains: v
|
|
6826
6826
|
};
|
|
6827
6827
|
}
|
|
6828
|
-
function
|
|
6828
|
+
function Po(t) {
|
|
6829
6829
|
const e = t.regex, r = /(?![A-Za-z0-9])(?![$])/, n = e.concat(
|
|
6830
6830
|
/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,
|
|
6831
6831
|
r
|
|
@@ -7375,7 +7375,7 @@ function Bo(t) {
|
|
|
7375
7375
|
]
|
|
7376
7376
|
};
|
|
7377
7377
|
}
|
|
7378
|
-
function
|
|
7378
|
+
function Fo(t) {
|
|
7379
7379
|
return {
|
|
7380
7380
|
name: "PHP template",
|
|
7381
7381
|
subLanguage: "xml",
|
|
@@ -7419,7 +7419,7 @@ function zo(t) {
|
|
|
7419
7419
|
]
|
|
7420
7420
|
};
|
|
7421
7421
|
}
|
|
7422
|
-
function
|
|
7422
|
+
function Uo(t) {
|
|
7423
7423
|
return {
|
|
7424
7424
|
name: "Plain text",
|
|
7425
7425
|
aliases: [
|
|
@@ -7429,7 +7429,7 @@ function Po(t) {
|
|
|
7429
7429
|
disableAutodetect: !0
|
|
7430
7430
|
};
|
|
7431
7431
|
}
|
|
7432
|
-
function
|
|
7432
|
+
function qo(t) {
|
|
7433
7433
|
const e = t.regex, r = new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*", "u"), n = [
|
|
7434
7434
|
"and",
|
|
7435
7435
|
"as",
|
|
@@ -7823,7 +7823,7 @@ function Fo(t) {
|
|
|
7823
7823
|
]
|
|
7824
7824
|
};
|
|
7825
7825
|
}
|
|
7826
|
-
function
|
|
7826
|
+
function Ho(t) {
|
|
7827
7827
|
return {
|
|
7828
7828
|
aliases: ["pycon"],
|
|
7829
7829
|
contains: [
|
|
@@ -7846,7 +7846,7 @@ function Uo(t) {
|
|
|
7846
7846
|
]
|
|
7847
7847
|
};
|
|
7848
7848
|
}
|
|
7849
|
-
function
|
|
7849
|
+
function $o(t) {
|
|
7850
7850
|
const e = t.regex, r = /(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/, n = e.either(
|
|
7851
7851
|
// Special case: only hexadecimal binary powers can contain fractions
|
|
7852
7852
|
/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,
|
|
@@ -8050,7 +8050,7 @@ function qo(t) {
|
|
|
8050
8050
|
]
|
|
8051
8051
|
};
|
|
8052
8052
|
}
|
|
8053
|
-
function
|
|
8053
|
+
function Go(t) {
|
|
8054
8054
|
const e = t.regex, r = "([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)", n = e.either(
|
|
8055
8055
|
/\b([A-Z]+[a-z0-9]+)+/,
|
|
8056
8056
|
// ends in caps
|
|
@@ -8435,7 +8435,7 @@ function Ho(t) {
|
|
|
8435
8435
|
contains: [t.SHEBANG({ binary: "ruby" })].concat(Ee).concat(m).concat(q)
|
|
8436
8436
|
};
|
|
8437
8437
|
}
|
|
8438
|
-
function
|
|
8438
|
+
function Ko(t) {
|
|
8439
8439
|
const e = t.regex, r = {
|
|
8440
8440
|
className: "title.function.invoke",
|
|
8441
8441
|
relevance: 0,
|
|
@@ -8723,7 +8723,7 @@ function $o(t) {
|
|
|
8723
8723
|
]
|
|
8724
8724
|
};
|
|
8725
8725
|
}
|
|
8726
|
-
const
|
|
8726
|
+
const Vo = (t) => ({
|
|
8727
8727
|
IMPORTANT: {
|
|
8728
8728
|
scope: "meta",
|
|
8729
8729
|
begin: "!important"
|
|
@@ -8756,7 +8756,7 @@ const Go = (t) => ({
|
|
|
8756
8756
|
className: "attr",
|
|
8757
8757
|
begin: /--[A-Za-z_][A-Za-z0-9_-]*/
|
|
8758
8758
|
}
|
|
8759
|
-
}),
|
|
8759
|
+
}), Wo = [
|
|
8760
8760
|
"a",
|
|
8761
8761
|
"abbr",
|
|
8762
8762
|
"address",
|
|
@@ -8829,7 +8829,7 @@ const Go = (t) => ({
|
|
|
8829
8829
|
"ul",
|
|
8830
8830
|
"var",
|
|
8831
8831
|
"video"
|
|
8832
|
-
],
|
|
8832
|
+
], Yo = [
|
|
8833
8833
|
"any-hover",
|
|
8834
8834
|
"any-pointer",
|
|
8835
8835
|
"aspect-ratio",
|
|
@@ -8864,7 +8864,7 @@ const Go = (t) => ({
|
|
|
8864
8864
|
"max-width",
|
|
8865
8865
|
"min-height",
|
|
8866
8866
|
"max-height"
|
|
8867
|
-
],
|
|
8867
|
+
], Zo = [
|
|
8868
8868
|
"active",
|
|
8869
8869
|
"any-link",
|
|
8870
8870
|
"blank",
|
|
@@ -8938,7 +8938,7 @@ const Go = (t) => ({
|
|
|
8938
8938
|
"visited",
|
|
8939
8939
|
"where"
|
|
8940
8940
|
// where()
|
|
8941
|
-
],
|
|
8941
|
+
], Xo = [
|
|
8942
8942
|
"after",
|
|
8943
8943
|
"backdrop",
|
|
8944
8944
|
"before",
|
|
@@ -8953,7 +8953,7 @@ const Go = (t) => ({
|
|
|
8953
8953
|
"selection",
|
|
8954
8954
|
"slotted",
|
|
8955
8955
|
"spelling-error"
|
|
8956
|
-
],
|
|
8956
|
+
], Qo = [
|
|
8957
8957
|
"align-content",
|
|
8958
8958
|
"align-items",
|
|
8959
8959
|
"align-self",
|
|
@@ -9316,8 +9316,8 @@ const Go = (t) => ({
|
|
|
9316
9316
|
// reverse makes sure longer attributes `font-weight` are matched fully
|
|
9317
9317
|
// instead of getting false positives on say `font`
|
|
9318
9318
|
].reverse();
|
|
9319
|
-
function
|
|
9320
|
-
const e =
|
|
9319
|
+
function Jo(t) {
|
|
9320
|
+
const e = Vo(t), r = Xo, n = Zo, a = "@[a-z-]+", i = "and or not only", c = {
|
|
9321
9321
|
className: "variable",
|
|
9322
9322
|
begin: "(\\$" + "[a-zA-Z-][a-zA-Z0-9_-]*" + ")\\b",
|
|
9323
9323
|
relevance: 0
|
|
@@ -9345,7 +9345,7 @@ function Xo(t) {
|
|
|
9345
9345
|
e.ATTRIBUTE_SELECTOR_MODE,
|
|
9346
9346
|
{
|
|
9347
9347
|
className: "selector-tag",
|
|
9348
|
-
begin: "\\b(" +
|
|
9348
|
+
begin: "\\b(" + Wo.join("|") + ")\\b",
|
|
9349
9349
|
// was there, before, but why?
|
|
9350
9350
|
relevance: 0
|
|
9351
9351
|
},
|
|
@@ -9367,7 +9367,7 @@ function Xo(t) {
|
|
|
9367
9367
|
e.CSS_VARIABLE,
|
|
9368
9368
|
{
|
|
9369
9369
|
className: "attribute",
|
|
9370
|
-
begin: "\\b(" +
|
|
9370
|
+
begin: "\\b(" + Qo.join("|") + ")\\b"
|
|
9371
9371
|
},
|
|
9372
9372
|
{ begin: "\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b" },
|
|
9373
9373
|
{
|
|
@@ -9402,7 +9402,7 @@ function Xo(t) {
|
|
|
9402
9402
|
keywords: {
|
|
9403
9403
|
$pattern: /[a-z-]+/,
|
|
9404
9404
|
keyword: i,
|
|
9405
|
-
attribute:
|
|
9405
|
+
attribute: Yo.join(" ")
|
|
9406
9406
|
},
|
|
9407
9407
|
contains: [
|
|
9408
9408
|
{
|
|
@@ -9424,7 +9424,7 @@ function Xo(t) {
|
|
|
9424
9424
|
]
|
|
9425
9425
|
};
|
|
9426
9426
|
}
|
|
9427
|
-
function
|
|
9427
|
+
function jo(t) {
|
|
9428
9428
|
return {
|
|
9429
9429
|
name: "Shell Session",
|
|
9430
9430
|
aliases: [
|
|
@@ -9446,7 +9446,7 @@ function Qo(t) {
|
|
|
9446
9446
|
]
|
|
9447
9447
|
};
|
|
9448
9448
|
}
|
|
9449
|
-
function
|
|
9449
|
+
function el(t) {
|
|
9450
9450
|
const e = t.regex, r = t.COMMENT("--", "$"), n = {
|
|
9451
9451
|
className: "string",
|
|
9452
9452
|
variants: [
|
|
@@ -10055,27 +10055,27 @@ function Jo(t) {
|
|
|
10055
10055
|
]
|
|
10056
10056
|
};
|
|
10057
10057
|
}
|
|
10058
|
-
function
|
|
10058
|
+
function Pa(t) {
|
|
10059
10059
|
return t ? typeof t == "string" ? t : t.source : null;
|
|
10060
10060
|
}
|
|
10061
10061
|
function Tr(t) {
|
|
10062
10062
|
return me("(?=", t, ")");
|
|
10063
10063
|
}
|
|
10064
10064
|
function me(...t) {
|
|
10065
|
-
return t.map((r) =>
|
|
10065
|
+
return t.map((r) => Pa(r)).join("");
|
|
10066
10066
|
}
|
|
10067
|
-
function
|
|
10067
|
+
function tl(t) {
|
|
10068
10068
|
const e = t[t.length - 1];
|
|
10069
10069
|
return typeof e == "object" && e.constructor === Object ? (t.splice(t.length - 1, 1), e) : {};
|
|
10070
10070
|
}
|
|
10071
10071
|
function Ke(...t) {
|
|
10072
|
-
return "(" + (
|
|
10072
|
+
return "(" + (tl(t).capture ? "" : "?:") + t.map((n) => Pa(n)).join("|") + ")";
|
|
10073
10073
|
}
|
|
10074
10074
|
const U0 = (t) => me(
|
|
10075
10075
|
/\b/,
|
|
10076
10076
|
t,
|
|
10077
10077
|
/\w$/.test(t) ? /\b/ : /\B/
|
|
10078
|
-
),
|
|
10078
|
+
), rl = [
|
|
10079
10079
|
"Protocol",
|
|
10080
10080
|
// contextual
|
|
10081
10081
|
"Type"
|
|
@@ -10083,7 +10083,7 @@ const U0 = (t) => me(
|
|
|
10083
10083
|
].map(U0), Dn = [
|
|
10084
10084
|
"init",
|
|
10085
10085
|
"self"
|
|
10086
|
-
].map(U0),
|
|
10086
|
+
].map(U0), nl = [
|
|
10087
10087
|
"Any",
|
|
10088
10088
|
"Self"
|
|
10089
10089
|
], s0 = [
|
|
@@ -10225,7 +10225,7 @@ const U0 = (t) => me(
|
|
|
10225
10225
|
"false",
|
|
10226
10226
|
"nil",
|
|
10227
10227
|
"true"
|
|
10228
|
-
],
|
|
10228
|
+
], al = [
|
|
10229
10229
|
"assignment",
|
|
10230
10230
|
"associativity",
|
|
10231
10231
|
"higherThan",
|
|
@@ -10233,7 +10233,7 @@ const U0 = (t) => me(
|
|
|
10233
10233
|
"lowerThan",
|
|
10234
10234
|
"none",
|
|
10235
10235
|
"right"
|
|
10236
|
-
],
|
|
10236
|
+
], il = [
|
|
10237
10237
|
"#colorLiteral",
|
|
10238
10238
|
"#column",
|
|
10239
10239
|
"#dsohandle",
|
|
@@ -10288,7 +10288,7 @@ const U0 = (t) => me(
|
|
|
10288
10288
|
"withVaList",
|
|
10289
10289
|
"withoutActuallyEscaping",
|
|
10290
10290
|
"zip"
|
|
10291
|
-
],
|
|
10291
|
+
], Fa = Ke(
|
|
10292
10292
|
/[/=\-+!*%<>&|^~?]/,
|
|
10293
10293
|
/[\u00A1-\u00A7]/,
|
|
10294
10294
|
/[\u00A9\u00AB]/,
|
|
@@ -10307,8 +10307,8 @@ const U0 = (t) => me(
|
|
|
10307
10307
|
/[\u3001-\u3003]/,
|
|
10308
10308
|
/[\u3008-\u3020]/,
|
|
10309
10309
|
/[\u3030]/
|
|
10310
|
-
),
|
|
10311
|
-
|
|
10310
|
+
), Ua = Ke(
|
|
10311
|
+
Fa,
|
|
10312
10312
|
/[\u0300-\u036F]/,
|
|
10313
10313
|
/[\u1DC0-\u1DFF]/,
|
|
10314
10314
|
/[\u20D0-\u20FF]/,
|
|
@@ -10316,7 +10316,7 @@ const U0 = (t) => me(
|
|
|
10316
10316
|
/[\uFE20-\uFE2F]/
|
|
10317
10317
|
// TODO: The following characters are also allowed, but the regex isn't supported yet.
|
|
10318
10318
|
// /[\u{E0100}-\u{E01EF}]/u
|
|
10319
|
-
), o0 = me(
|
|
10319
|
+
), o0 = me(Fa, Ua, "*"), qa = Ke(
|
|
10320
10320
|
/[a-zA-Z_]/,
|
|
10321
10321
|
/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,
|
|
10322
10322
|
/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,
|
|
@@ -10335,10 +10335,10 @@ const U0 = (t) => me(
|
|
|
10335
10335
|
// /[\u{90000}-\u{9FFFD}\u{A0000-\u{AFFFD}\u{B0000}-\u{BFFFD}\u{C0000}-\u{CFFFD}]/u,
|
|
10336
10336
|
// /[\u{D0000}-\u{DFFFD}\u{E0000-\u{EFFFD}]/u
|
|
10337
10337
|
), Fr = Ke(
|
|
10338
|
-
|
|
10338
|
+
qa,
|
|
10339
10339
|
/\d/,
|
|
10340
10340
|
/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/
|
|
10341
|
-
), yt = me(
|
|
10341
|
+
), yt = me(qa, Fr, "*"), l0 = me(/[A-Z]/, Fr, "*"), sl = [
|
|
10342
10342
|
"attached",
|
|
10343
10343
|
"autoclosure",
|
|
10344
10344
|
me(/convention\(/, Ke("swift", "block", "c"), /\)/),
|
|
@@ -10373,7 +10373,7 @@ const U0 = (t) => me(
|
|
|
10373
10373
|
"unknown",
|
|
10374
10374
|
"usableFromInline",
|
|
10375
10375
|
"warn_unqualified_access"
|
|
10376
|
-
],
|
|
10376
|
+
], ol = [
|
|
10377
10377
|
"iOS",
|
|
10378
10378
|
"iOSApplicationExtension",
|
|
10379
10379
|
"macOS",
|
|
@@ -10386,7 +10386,7 @@ const U0 = (t) => me(
|
|
|
10386
10386
|
"tvOSApplicationExtension",
|
|
10387
10387
|
"swift"
|
|
10388
10388
|
];
|
|
10389
|
-
function
|
|
10389
|
+
function ll(t) {
|
|
10390
10390
|
const e = {
|
|
10391
10391
|
match: /\s+/,
|
|
10392
10392
|
relevance: 0
|
|
@@ -10400,14 +10400,14 @@ function sl(t) {
|
|
|
10400
10400
|
], a = {
|
|
10401
10401
|
match: [
|
|
10402
10402
|
/\./,
|
|
10403
|
-
Ke(...
|
|
10403
|
+
Ke(...rl, ...Dn)
|
|
10404
10404
|
],
|
|
10405
10405
|
className: { 2: "keyword" }
|
|
10406
10406
|
}, i = {
|
|
10407
10407
|
// Consume .keyword to prevent highlighting properties and methods as keywords.
|
|
10408
10408
|
match: me(/\./, Ke(...s0)),
|
|
10409
10409
|
relevance: 0
|
|
10410
|
-
}, o = s0.filter((ue) => typeof ue == "string").concat(["_|0"]), c = s0.filter((ue) => typeof ue != "string").concat(
|
|
10410
|
+
}, o = s0.filter((ue) => typeof ue == "string").concat(["_|0"]), c = s0.filter((ue) => typeof ue != "string").concat(nl).map(U0), u = { variants: [
|
|
10411
10411
|
{
|
|
10412
10412
|
className: "keyword",
|
|
10413
10413
|
match: Ke(...c, ...Dn)
|
|
@@ -10419,7 +10419,7 @@ function sl(t) {
|
|
|
10419
10419
|
/#\w+/
|
|
10420
10420
|
// number keywords
|
|
10421
10421
|
),
|
|
10422
|
-
keyword: o.concat(
|
|
10422
|
+
keyword: o.concat(il),
|
|
10423
10423
|
literal: Ln
|
|
10424
10424
|
}, p = [
|
|
10425
10425
|
a,
|
|
@@ -10448,7 +10448,7 @@ function sl(t) {
|
|
|
10448
10448
|
// dot-operator: only operators that start with a dot are allowed to use dots as
|
|
10449
10449
|
// characters (..., ...<, .*, etc). So there rule here is: a dot followed by one or more
|
|
10450
10450
|
// characters that may also include dots.
|
|
10451
|
-
match: `\\.(\\.|${
|
|
10451
|
+
match: `\\.(\\.|${Ua})+`
|
|
10452
10452
|
}
|
|
10453
10453
|
]
|
|
10454
10454
|
}, N = [
|
|
@@ -10559,7 +10559,7 @@ function sl(t) {
|
|
|
10559
10559
|
{
|
|
10560
10560
|
begin: /\(/,
|
|
10561
10561
|
end: /\)/,
|
|
10562
|
-
keywords:
|
|
10562
|
+
keywords: ol,
|
|
10563
10563
|
contains: [
|
|
10564
10564
|
...N,
|
|
10565
10565
|
D,
|
|
@@ -10569,7 +10569,7 @@ function sl(t) {
|
|
|
10569
10569
|
] }
|
|
10570
10570
|
}, Te = {
|
|
10571
10571
|
scope: "keyword",
|
|
10572
|
-
match: me(/@/, Ke(...
|
|
10572
|
+
match: me(/@/, Ke(...sl))
|
|
10573
10573
|
}, xe = {
|
|
10574
10574
|
scope: "meta",
|
|
10575
10575
|
match: me(/@/, yt)
|
|
@@ -10739,7 +10739,7 @@ function sl(t) {
|
|
|
10739
10739
|
},
|
|
10740
10740
|
contains: [ce],
|
|
10741
10741
|
keywords: [
|
|
10742
|
-
...
|
|
10742
|
+
...al,
|
|
10743
10743
|
...Ln
|
|
10744
10744
|
],
|
|
10745
10745
|
end: /}/
|
|
@@ -10808,7 +10808,7 @@ function sl(t) {
|
|
|
10808
10808
|
]
|
|
10809
10809
|
};
|
|
10810
10810
|
}
|
|
10811
|
-
const Ur = "[A-Za-z$_][0-9A-Za-z$_]*",
|
|
10811
|
+
const Ur = "[A-Za-z$_][0-9A-Za-z$_]*", Ha = [
|
|
10812
10812
|
"as",
|
|
10813
10813
|
// for exports
|
|
10814
10814
|
"in",
|
|
@@ -10851,14 +10851,14 @@ const Ur = "[A-Za-z$_][0-9A-Za-z$_]*", qa = [
|
|
|
10851
10851
|
"from",
|
|
10852
10852
|
"export",
|
|
10853
10853
|
"extends"
|
|
10854
|
-
],
|
|
10854
|
+
], $a = [
|
|
10855
10855
|
"true",
|
|
10856
10856
|
"false",
|
|
10857
10857
|
"null",
|
|
10858
10858
|
"undefined",
|
|
10859
10859
|
"NaN",
|
|
10860
10860
|
"Infinity"
|
|
10861
|
-
],
|
|
10861
|
+
], Ga = [
|
|
10862
10862
|
// Fundamental objects
|
|
10863
10863
|
"Object",
|
|
10864
10864
|
"Function",
|
|
@@ -10908,7 +10908,7 @@ const Ur = "[A-Za-z$_][0-9A-Za-z$_]*", qa = [
|
|
|
10908
10908
|
"Intl",
|
|
10909
10909
|
// WebAssembly
|
|
10910
10910
|
"WebAssembly"
|
|
10911
|
-
],
|
|
10911
|
+
], Ka = [
|
|
10912
10912
|
"Error",
|
|
10913
10913
|
"EvalError",
|
|
10914
10914
|
"InternalError",
|
|
@@ -10917,7 +10917,7 @@ const Ur = "[A-Za-z$_][0-9A-Za-z$_]*", qa = [
|
|
|
10917
10917
|
"SyntaxError",
|
|
10918
10918
|
"TypeError",
|
|
10919
10919
|
"URIError"
|
|
10920
|
-
],
|
|
10920
|
+
], Va = [
|
|
10921
10921
|
"setInterval",
|
|
10922
10922
|
"setTimeout",
|
|
10923
10923
|
"clearInterval",
|
|
@@ -10935,7 +10935,7 @@ const Ur = "[A-Za-z$_][0-9A-Za-z$_]*", qa = [
|
|
|
10935
10935
|
"encodeURIComponent",
|
|
10936
10936
|
"escape",
|
|
10937
10937
|
"unescape"
|
|
10938
|
-
],
|
|
10938
|
+
], Wa = [
|
|
10939
10939
|
"arguments",
|
|
10940
10940
|
"this",
|
|
10941
10941
|
"super",
|
|
@@ -10947,12 +10947,12 @@ const Ur = "[A-Za-z$_][0-9A-Za-z$_]*", qa = [
|
|
|
10947
10947
|
"module",
|
|
10948
10948
|
"global"
|
|
10949
10949
|
// Node.js
|
|
10950
|
-
],
|
|
10951
|
-
|
|
10952
|
-
|
|
10953
|
-
|
|
10950
|
+
], Ya = [].concat(
|
|
10951
|
+
Va,
|
|
10952
|
+
Ga,
|
|
10953
|
+
Ka
|
|
10954
10954
|
);
|
|
10955
|
-
function
|
|
10955
|
+
function cl(t) {
|
|
10956
10956
|
const e = t.regex, r = (ie, { after: Te }) => {
|
|
10957
10957
|
const xe = "</" + ie[0].slice(1);
|
|
10958
10958
|
return ie.input.indexOf(xe, Te) !== -1;
|
|
@@ -10993,10 +10993,10 @@ function ol(t) {
|
|
|
10993
10993
|
}
|
|
10994
10994
|
}, c = {
|
|
10995
10995
|
$pattern: Ur,
|
|
10996
|
-
keyword:
|
|
10997
|
-
literal:
|
|
10998
|
-
built_in:
|
|
10999
|
-
"variable.language":
|
|
10996
|
+
keyword: Ha,
|
|
10997
|
+
literal: $a,
|
|
10998
|
+
built_in: Ya,
|
|
10999
|
+
"variable.language": Wa
|
|
11000
11000
|
}, u = "[0-9](_?[0-9])*", m = `\\.(${u})`, p = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", f = {
|
|
11001
11001
|
className: "number",
|
|
11002
11002
|
variants: [
|
|
@@ -11203,8 +11203,8 @@ function ol(t) {
|
|
|
11203
11203
|
keywords: {
|
|
11204
11204
|
_: [
|
|
11205
11205
|
// se we still get relevance credit for JS library classes
|
|
11206
|
-
|
|
11207
|
-
...
|
|
11206
|
+
...Ga,
|
|
11207
|
+
...Ka
|
|
11208
11208
|
]
|
|
11209
11209
|
}
|
|
11210
11210
|
}, K = {
|
|
@@ -11249,7 +11249,7 @@ function ol(t) {
|
|
|
11249
11249
|
match: e.concat(
|
|
11250
11250
|
/\b/,
|
|
11251
11251
|
le([
|
|
11252
|
-
...
|
|
11252
|
+
...Va,
|
|
11253
11253
|
"super",
|
|
11254
11254
|
"import"
|
|
11255
11255
|
]),
|
|
@@ -11459,8 +11459,8 @@ function ol(t) {
|
|
|
11459
11459
|
]
|
|
11460
11460
|
};
|
|
11461
11461
|
}
|
|
11462
|
-
function
|
|
11463
|
-
const e =
|
|
11462
|
+
function ul(t) {
|
|
11463
|
+
const e = cl(t), r = Ur, n = [
|
|
11464
11464
|
"any",
|
|
11465
11465
|
"void",
|
|
11466
11466
|
"number",
|
|
@@ -11504,10 +11504,10 @@ function ll(t) {
|
|
|
11504
11504
|
"override"
|
|
11505
11505
|
], u = {
|
|
11506
11506
|
$pattern: Ur,
|
|
11507
|
-
keyword:
|
|
11508
|
-
literal:
|
|
11509
|
-
built_in:
|
|
11510
|
-
"variable.language":
|
|
11507
|
+
keyword: Ha.concat(c),
|
|
11508
|
+
literal: $a,
|
|
11509
|
+
built_in: Ya.concat(n),
|
|
11510
|
+
"variable.language": Wa
|
|
11511
11511
|
}, m = {
|
|
11512
11512
|
className: "meta",
|
|
11513
11513
|
begin: "@" + r
|
|
@@ -11533,7 +11533,7 @@ function ll(t) {
|
|
|
11533
11533
|
]
|
|
11534
11534
|
}), e;
|
|
11535
11535
|
}
|
|
11536
|
-
function
|
|
11536
|
+
function dl(t) {
|
|
11537
11537
|
const e = t.regex, r = {
|
|
11538
11538
|
className: "string",
|
|
11539
11539
|
begin: /"(""|[^/n])"C\b/
|
|
@@ -11652,7 +11652,7 @@ function cl(t) {
|
|
|
11652
11652
|
]
|
|
11653
11653
|
};
|
|
11654
11654
|
}
|
|
11655
|
-
function
|
|
11655
|
+
function ml(t) {
|
|
11656
11656
|
const e = t.COMMENT(/\(;/, /;\)/);
|
|
11657
11657
|
e.contains.push("self");
|
|
11658
11658
|
const r = t.COMMENT(/;;/, /$/), n = [
|
|
@@ -11762,7 +11762,7 @@ function ul(t) {
|
|
|
11762
11762
|
]
|
|
11763
11763
|
};
|
|
11764
11764
|
}
|
|
11765
|
-
function
|
|
11765
|
+
function hl(t) {
|
|
11766
11766
|
const e = t.regex, r = e.concat(/[\p{L}_]/u, e.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u), n = /[\p{L}0-9._:-]+/u, a = {
|
|
11767
11767
|
className: "symbol",
|
|
11768
11768
|
begin: /&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/
|
|
@@ -11978,7 +11978,7 @@ function dl(t) {
|
|
|
11978
11978
|
]
|
|
11979
11979
|
};
|
|
11980
11980
|
}
|
|
11981
|
-
function
|
|
11981
|
+
function pl(t) {
|
|
11982
11982
|
const e = "true false yes no null", r = "[\\w#;/?:@&=+$,.~*'()[\\]]+", n = {
|
|
11983
11983
|
className: "attr",
|
|
11984
11984
|
variants: [
|
|
@@ -12142,47 +12142,47 @@ function ml(t) {
|
|
|
12142
12142
|
contains: x
|
|
12143
12143
|
};
|
|
12144
12144
|
}
|
|
12145
|
-
const
|
|
12146
|
-
arduino:
|
|
12147
|
-
bash:
|
|
12148
|
-
c:
|
|
12149
|
-
cpp:
|
|
12150
|
-
csharp:
|
|
12151
|
-
css:
|
|
12152
|
-
diff:
|
|
12153
|
-
go:
|
|
12154
|
-
graphql:
|
|
12155
|
-
ini:
|
|
12156
|
-
java:
|
|
12157
|
-
javascript:
|
|
12158
|
-
json:
|
|
12159
|
-
kotlin:
|
|
12160
|
-
less:
|
|
12161
|
-
lua:
|
|
12162
|
-
makefile:
|
|
12163
|
-
markdown:
|
|
12164
|
-
objectivec:
|
|
12165
|
-
perl:
|
|
12166
|
-
php:
|
|
12167
|
-
"php-template":
|
|
12168
|
-
plaintext:
|
|
12169
|
-
python:
|
|
12170
|
-
"python-repl":
|
|
12171
|
-
r:
|
|
12172
|
-
ruby:
|
|
12173
|
-
rust:
|
|
12174
|
-
scss:
|
|
12175
|
-
shell:
|
|
12176
|
-
sql:
|
|
12177
|
-
swift:
|
|
12178
|
-
typescript:
|
|
12179
|
-
vbnet:
|
|
12180
|
-
wasm:
|
|
12181
|
-
xml:
|
|
12182
|
-
yaml:
|
|
12145
|
+
const fl = {
|
|
12146
|
+
arduino: to,
|
|
12147
|
+
bash: ro,
|
|
12148
|
+
c: no,
|
|
12149
|
+
cpp: ao,
|
|
12150
|
+
csharp: io,
|
|
12151
|
+
css: ho,
|
|
12152
|
+
diff: po,
|
|
12153
|
+
go: fo,
|
|
12154
|
+
graphql: go,
|
|
12155
|
+
ini: bo,
|
|
12156
|
+
java: vo,
|
|
12157
|
+
javascript: _o,
|
|
12158
|
+
json: So,
|
|
12159
|
+
kotlin: ko,
|
|
12160
|
+
less: Co,
|
|
12161
|
+
lua: Io,
|
|
12162
|
+
makefile: Do,
|
|
12163
|
+
markdown: Lo,
|
|
12164
|
+
objectivec: Bo,
|
|
12165
|
+
perl: zo,
|
|
12166
|
+
php: Po,
|
|
12167
|
+
"php-template": Fo,
|
|
12168
|
+
plaintext: Uo,
|
|
12169
|
+
python: qo,
|
|
12170
|
+
"python-repl": Ho,
|
|
12171
|
+
r: $o,
|
|
12172
|
+
ruby: Go,
|
|
12173
|
+
rust: Ko,
|
|
12174
|
+
scss: Jo,
|
|
12175
|
+
shell: jo,
|
|
12176
|
+
sql: el,
|
|
12177
|
+
swift: ll,
|
|
12178
|
+
typescript: ul,
|
|
12179
|
+
vbnet: dl,
|
|
12180
|
+
wasm: ml,
|
|
12181
|
+
xml: hl,
|
|
12182
|
+
yaml: pl
|
|
12183
12183
|
};
|
|
12184
12184
|
var c0, zn;
|
|
12185
|
-
function
|
|
12185
|
+
function gl() {
|
|
12186
12186
|
if (zn) return c0;
|
|
12187
12187
|
zn = 1;
|
|
12188
12188
|
function t(y) {
|
|
@@ -12659,14 +12659,14 @@ function pl() {
|
|
|
12659
12659
|
function Me(Ae, G) {
|
|
12660
12660
|
T && (G = G.map((H) => H.toLowerCase())), G.forEach(function(H) {
|
|
12661
12661
|
const j = H.split("|");
|
|
12662
|
-
ee[j[0]] = [Ae,
|
|
12662
|
+
ee[j[0]] = [Ae, Wi(j[0], j[1])];
|
|
12663
12663
|
});
|
|
12664
12664
|
}
|
|
12665
12665
|
}
|
|
12666
|
-
function
|
|
12667
|
-
return T ? Number(T) :
|
|
12666
|
+
function Wi(y, T) {
|
|
12667
|
+
return T ? Number(T) : Yi(y) ? 0 : 1;
|
|
12668
12668
|
}
|
|
12669
|
-
function
|
|
12669
|
+
function Yi(y) {
|
|
12670
12670
|
return Wt.includes(y.toLowerCase());
|
|
12671
12671
|
}
|
|
12672
12672
|
const cn = {}, Ft = (y) => {
|
|
@@ -12683,7 +12683,7 @@ function pl() {
|
|
|
12683
12683
|
G[H + ee] = Me[H], Ae[H + ee] = !0, ee += k(T[H - 1]);
|
|
12684
12684
|
y[B] = G, y[B]._emit = Ae, y[B]._multi = !0;
|
|
12685
12685
|
}
|
|
12686
|
-
function
|
|
12686
|
+
function Zi(y) {
|
|
12687
12687
|
if (Array.isArray(y.begin)) {
|
|
12688
12688
|
if (y.skip || y.excludeBegin || y.returnBegin)
|
|
12689
12689
|
throw Ft("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), gr;
|
|
@@ -12692,7 +12692,7 @@ function pl() {
|
|
|
12692
12692
|
dn(y, y.begin, { key: "beginScope" }), y.begin = F(y.begin, { joinWith: "" });
|
|
12693
12693
|
}
|
|
12694
12694
|
}
|
|
12695
|
-
function
|
|
12695
|
+
function Xi(y) {
|
|
12696
12696
|
if (Array.isArray(y.end)) {
|
|
12697
12697
|
if (y.skip || y.excludeEnd || y.returnEnd)
|
|
12698
12698
|
throw Ft("skip, excludeEnd, returnEnd not compatible with endScope: {}"), gr;
|
|
@@ -12701,13 +12701,13 @@ function pl() {
|
|
|
12701
12701
|
dn(y, y.end, { key: "endScope" }), y.end = F(y.end, { joinWith: "" });
|
|
12702
12702
|
}
|
|
12703
12703
|
}
|
|
12704
|
-
function Xi(y) {
|
|
12705
|
-
y.scope && typeof y.scope == "object" && y.scope !== null && (y.beginScope = y.scope, delete y.scope);
|
|
12706
|
-
}
|
|
12707
12704
|
function Qi(y) {
|
|
12708
|
-
|
|
12705
|
+
y.scope && typeof y.scope == "object" && y.scope !== null && (y.beginScope = y.scope, delete y.scope);
|
|
12709
12706
|
}
|
|
12710
12707
|
function Ji(y) {
|
|
12708
|
+
Qi(y), typeof y.beginScope == "string" && (y.beginScope = { _wrap: y.beginScope }), typeof y.endScope == "string" && (y.endScope = { _wrap: y.endScope }), Zi(y), Xi(y);
|
|
12709
|
+
}
|
|
12710
|
+
function ji(y) {
|
|
12711
12711
|
function T(G, H) {
|
|
12712
12712
|
return new RegExp(
|
|
12713
12713
|
f(G),
|
|
@@ -12784,7 +12784,7 @@ function pl() {
|
|
|
12784
12784
|
// do this early so compiler extensions generally don't have to worry about
|
|
12785
12785
|
// the distinction between match/begin
|
|
12786
12786
|
ct,
|
|
12787
|
-
|
|
12787
|
+
Ji,
|
|
12788
12788
|
sr
|
|
12789
12789
|
].forEach((Re) => Re(G, H)), y.compilerExtensions.forEach((Re) => Re(G, H)), G.__beforeBegin = null, [
|
|
12790
12790
|
ue,
|
|
@@ -12799,7 +12799,7 @@ function pl() {
|
|
|
12799
12799
|
/** @type {RegExp | string} */
|
|
12800
12800
|
G.illegal
|
|
12801
12801
|
)), G.contains || (G.contains = []), G.contains = [].concat(...G.contains.map(function(Re) {
|
|
12802
|
-
return
|
|
12802
|
+
return es(Re === "self" ? G : Re);
|
|
12803
12803
|
})), G.contains.forEach(function(Re) {
|
|
12804
12804
|
Ae(
|
|
12805
12805
|
/** @type Mode */
|
|
@@ -12818,18 +12818,18 @@ function pl() {
|
|
|
12818
12818
|
function mn(y) {
|
|
12819
12819
|
return y ? y.endsWithParent || mn(y.starts) : !1;
|
|
12820
12820
|
}
|
|
12821
|
-
function
|
|
12821
|
+
function es(y) {
|
|
12822
12822
|
return y.variants && !y.cachedVariants && (y.cachedVariants = y.variants.map(function(T) {
|
|
12823
12823
|
return n(y, { variants: null }, T);
|
|
12824
12824
|
})), y.cachedVariants ? y.cachedVariants : mn(y) ? n(y, { starts: y.starts ? n(y.starts) : null }) : Object.isFrozen(y) ? n(y) : y;
|
|
12825
12825
|
}
|
|
12826
|
-
var
|
|
12827
|
-
class
|
|
12826
|
+
var ts = "11.9.0";
|
|
12827
|
+
class rs extends Error {
|
|
12828
12828
|
constructor(T, B) {
|
|
12829
12829
|
super(T), this.name = "HTMLInjectionError", this.html = B;
|
|
12830
12830
|
}
|
|
12831
12831
|
}
|
|
12832
|
-
const jr = r, hn = n, pn = Symbol("nomatch"),
|
|
12832
|
+
const jr = r, hn = n, pn = Symbol("nomatch"), ns = 7, fn = function(y) {
|
|
12833
12833
|
const T = /* @__PURE__ */ Object.create(null), B = /* @__PURE__ */ Object.create(null), ee = [];
|
|
12834
12834
|
let Me = !0;
|
|
12835
12835
|
const Ae = "Could not find the language '{}', did you forget to load/include a language module?", G = { disableAutodetect: !0, name: "Plain text", contains: [] };
|
|
@@ -12887,12 +12887,12 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ie = C, fe = Y), se =
|
|
|
12887
12887
|
ae += we.substring(z, V.index);
|
|
12888
12888
|
const de = dt.case_insensitive ? V[0].toLowerCase() : V[0], Fe = it(te, de);
|
|
12889
12889
|
if (Fe) {
|
|
12890
|
-
const [bt,
|
|
12891
|
-
if (ze.addText(ae), ae = "", Ie[de] = (Ie[de] || 0) + 1, Ie[de] <=
|
|
12890
|
+
const [bt, Es] = Fe;
|
|
12891
|
+
if (ze.addText(ae), ae = "", Ie[de] = (Ie[de] || 0) + 1, Ie[de] <= ns && (Er += Es), bt.startsWith("_"))
|
|
12892
12892
|
ae += V[0];
|
|
12893
12893
|
else {
|
|
12894
|
-
const
|
|
12895
|
-
ut(V[0],
|
|
12894
|
+
const xs = dt.classNameAliases[bt] || bt;
|
|
12895
|
+
ut(V[0], xs);
|
|
12896
12896
|
}
|
|
12897
12897
|
} else
|
|
12898
12898
|
ae += V[0];
|
|
@@ -12914,7 +12914,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ie = C, fe = Y), se =
|
|
|
12914
12914
|
z = t0(we, te.subLanguage.length ? te.subLanguage : null);
|
|
12915
12915
|
te.relevance > 0 && (Er += z.relevance), ze.__addSublanguage(z._emitter, z.language);
|
|
12916
12916
|
}
|
|
12917
|
-
function
|
|
12917
|
+
function Ye() {
|
|
12918
12918
|
te.subLanguage != null ? yr() : Mt(), we = "";
|
|
12919
12919
|
}
|
|
12920
12920
|
function ut(z, V) {
|
|
@@ -12951,28 +12951,28 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ie = C, fe = Y), se =
|
|
|
12951
12951
|
if (z.endsWithParent)
|
|
12952
12952
|
return En(z.parent, V, ae);
|
|
12953
12953
|
}
|
|
12954
|
-
function
|
|
12954
|
+
function gs(z) {
|
|
12955
12955
|
return te.matcher.regexIndex === 0 ? (we += z[0], 1) : (i0 = !0, 0);
|
|
12956
12956
|
}
|
|
12957
|
-
function
|
|
12957
|
+
function bs(z) {
|
|
12958
12958
|
const V = z[0], ae = z.rule, de = new e(ae), Fe = [ae.__beforeBegin, ae["on:begin"]];
|
|
12959
12959
|
for (const bt of Fe)
|
|
12960
12960
|
if (bt && (bt(z, de), de.isMatchIgnored))
|
|
12961
|
-
return
|
|
12962
|
-
return ae.skip ? we += V : (ae.excludeBegin && (we += V),
|
|
12961
|
+
return gs(V);
|
|
12962
|
+
return ae.skip ? we += V : (ae.excludeBegin && (we += V), Ye(), !ae.returnBegin && !ae.excludeBegin && (we = V)), wn(ae, z), ae.returnBegin ? 0 : V.length;
|
|
12963
12963
|
}
|
|
12964
|
-
function
|
|
12964
|
+
function vs(z) {
|
|
12965
12965
|
const V = z[0], ae = Y.substring(z.index), de = En(te, z, ae);
|
|
12966
12966
|
if (!de)
|
|
12967
12967
|
return pn;
|
|
12968
12968
|
const Fe = te;
|
|
12969
|
-
te.endScope && te.endScope._wrap ? (
|
|
12969
|
+
te.endScope && te.endScope._wrap ? (Ye(), ut(V, te.endScope._wrap)) : te.endScope && te.endScope._multi ? (Ye(), yn(te.endScope, z)) : Fe.skip ? we += V : (Fe.returnEnd || Fe.excludeEnd || (we += V), Ye(), Fe.excludeEnd && (we = V));
|
|
12970
12970
|
do
|
|
12971
12971
|
te.scope && ze.closeNode(), !te.skip && !te.subLanguage && (Er += te.relevance), te = te.parent;
|
|
12972
12972
|
while (te !== de.parent);
|
|
12973
12973
|
return de.starts && wn(de.starts, z), Fe.returnEnd ? 0 : V.length;
|
|
12974
12974
|
}
|
|
12975
|
-
function
|
|
12975
|
+
function ys() {
|
|
12976
12976
|
const z = [];
|
|
12977
12977
|
for (let V = te; V !== dt; V = V.parent)
|
|
12978
12978
|
V.scope && z.unshift(V.scope);
|
|
@@ -12982,7 +12982,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ie = C, fe = Y), se =
|
|
|
12982
12982
|
function xn(z, V) {
|
|
12983
12983
|
const ae = V && V[0];
|
|
12984
12984
|
if (we += z, ae == null)
|
|
12985
|
-
return
|
|
12985
|
+
return Ye(), 0;
|
|
12986
12986
|
if (wr.type === "begin" && V.type === "end" && wr.index === V.index && ae === "") {
|
|
12987
12987
|
if (we += Y.slice(V.index, V.index + 1), !Me) {
|
|
12988
12988
|
const de = new Error(`0 width match regex (${C})`);
|
|
@@ -12991,12 +12991,12 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ie = C, fe = Y), se =
|
|
|
12991
12991
|
return 1;
|
|
12992
12992
|
}
|
|
12993
12993
|
if (wr = V, V.type === "begin")
|
|
12994
|
-
return
|
|
12994
|
+
return bs(V);
|
|
12995
12995
|
if (V.type === "illegal" && !se) {
|
|
12996
12996
|
const de = new Error('Illegal lexeme "' + ae + '" for mode "' + (te.scope || "<unnamed>") + '"');
|
|
12997
12997
|
throw de.mode = te, de;
|
|
12998
12998
|
} else if (V.type === "end") {
|
|
12999
|
-
const de =
|
|
12999
|
+
const de = vs(V);
|
|
13000
13000
|
if (de !== pn)
|
|
13001
13001
|
return de;
|
|
13002
13002
|
}
|
|
@@ -13009,10 +13009,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ie = C, fe = Y), se =
|
|
|
13009
13009
|
const dt = Tt(C);
|
|
13010
13010
|
if (!dt)
|
|
13011
13011
|
throw Ft(Ae.replace("{}", C)), new Error('Unknown language: "' + C + '"');
|
|
13012
|
-
const
|
|
13013
|
-
let n0 = "", te = fe ||
|
|
13012
|
+
const ws = ji(dt);
|
|
13013
|
+
let n0 = "", te = fe || ws;
|
|
13014
13014
|
const _n = {}, ze = new H.__emitter(H);
|
|
13015
|
-
|
|
13015
|
+
ys();
|
|
13016
13016
|
let we = "", Er = 0, Ut = 0, a0 = 0, i0 = !1;
|
|
13017
13017
|
try {
|
|
13018
13018
|
if (dt.__emitTokens)
|
|
@@ -13077,22 +13077,22 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ie = C, fe = Y), se =
|
|
|
13077
13077
|
function t0(C, Y) {
|
|
13078
13078
|
Y = Y || H.languages || Object.keys(T);
|
|
13079
13079
|
const se = e0(C), fe = Y.filter(Tt).filter(vn).map(
|
|
13080
|
-
(
|
|
13080
|
+
(Ye) => or(Ye, C, !1)
|
|
13081
13081
|
);
|
|
13082
13082
|
fe.unshift(se);
|
|
13083
|
-
const Ie = fe.sort((
|
|
13084
|
-
if (
|
|
13085
|
-
if (
|
|
13086
|
-
if (Tt(
|
|
13083
|
+
const Ie = fe.sort((Ye, ut) => {
|
|
13084
|
+
if (Ye.relevance !== ut.relevance) return ut.relevance - Ye.relevance;
|
|
13085
|
+
if (Ye.language && ut.language) {
|
|
13086
|
+
if (Tt(Ye.language).supersetOf === ut.language)
|
|
13087
13087
|
return 1;
|
|
13088
|
-
if (Tt(ut.language).supersetOf ===
|
|
13088
|
+
if (Tt(ut.language).supersetOf === Ye.language)
|
|
13089
13089
|
return -1;
|
|
13090
13090
|
}
|
|
13091
13091
|
return 0;
|
|
13092
13092
|
}), [it, Mt] = Ie, yr = it;
|
|
13093
13093
|
return yr.secondBest = Mt, yr;
|
|
13094
13094
|
}
|
|
13095
|
-
function
|
|
13095
|
+
function as(C, Y, se) {
|
|
13096
13096
|
const fe = Y && B[Y] || se;
|
|
13097
13097
|
C.classList.add("hljs"), C.classList.add(`language-${fe}`);
|
|
13098
13098
|
}
|
|
@@ -13108,13 +13108,13 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ie = C, fe = Y), se =
|
|
|
13108
13108
|
return;
|
|
13109
13109
|
}
|
|
13110
13110
|
if (C.children.length > 0 && (H.ignoreUnescapedHTML || (console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), console.warn("The element with unescaped HTML:"), console.warn(C)), H.throwUnescapedHTML))
|
|
13111
|
-
throw new
|
|
13111
|
+
throw new rs(
|
|
13112
13112
|
"One of your code blocks includes unescaped HTML.",
|
|
13113
13113
|
C.innerHTML
|
|
13114
13114
|
);
|
|
13115
13115
|
Y = C;
|
|
13116
13116
|
const fe = Y.textContent, Ie = se ? Re(fe, { language: se, ignoreIllegals: !0 }) : t0(fe);
|
|
13117
|
-
C.innerHTML = Ie.value, C.dataset.highlighted = "yes",
|
|
13117
|
+
C.innerHTML = Ie.value, C.dataset.highlighted = "yes", as(C, se, Ie.language), C.result = {
|
|
13118
13118
|
language: Ie.language,
|
|
13119
13119
|
// TODO: remove with version 11.0
|
|
13120
13120
|
re: Ie.relevance,
|
|
@@ -13124,13 +13124,13 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ie = C, fe = Y), se =
|
|
|
13124
13124
|
relevance: Ie.secondBest.relevance
|
|
13125
13125
|
}), vr("after:highlightElement", { el: C, result: Ie, text: fe });
|
|
13126
13126
|
}
|
|
13127
|
-
function
|
|
13127
|
+
function is(C) {
|
|
13128
13128
|
H = hn(H, C);
|
|
13129
13129
|
}
|
|
13130
|
-
const
|
|
13130
|
+
const ss = () => {
|
|
13131
13131
|
br(), Zt("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
|
|
13132
13132
|
};
|
|
13133
|
-
function
|
|
13133
|
+
function os() {
|
|
13134
13134
|
br(), Zt("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
|
|
13135
13135
|
}
|
|
13136
13136
|
let gn = !1;
|
|
@@ -13141,11 +13141,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ie = C, fe = Y), se =
|
|
|
13141
13141
|
}
|
|
13142
13142
|
document.querySelectorAll(H.cssSelector).forEach(r0);
|
|
13143
13143
|
}
|
|
13144
|
-
function
|
|
13144
|
+
function ls() {
|
|
13145
13145
|
gn && br();
|
|
13146
13146
|
}
|
|
13147
|
-
typeof window < "u" && window.addEventListener && window.addEventListener("DOMContentLoaded",
|
|
13148
|
-
function
|
|
13147
|
+
typeof window < "u" && window.addEventListener && window.addEventListener("DOMContentLoaded", ls, !1);
|
|
13148
|
+
function cs(C, Y) {
|
|
13149
13149
|
let se = null;
|
|
13150
13150
|
try {
|
|
13151
13151
|
se = Y(y);
|
|
@@ -13158,12 +13158,12 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ie = C, fe = Y), se =
|
|
|
13158
13158
|
}
|
|
13159
13159
|
se.name || (se.name = C), T[C] = se, se.rawDefinition = Y.bind(null, y), se.aliases && bn(se.aliases, { languageName: C });
|
|
13160
13160
|
}
|
|
13161
|
-
function
|
|
13161
|
+
function us(C) {
|
|
13162
13162
|
delete T[C];
|
|
13163
13163
|
for (const Y of Object.keys(B))
|
|
13164
13164
|
B[Y] === C && delete B[Y];
|
|
13165
13165
|
}
|
|
13166
|
-
function
|
|
13166
|
+
function ds() {
|
|
13167
13167
|
return Object.keys(T);
|
|
13168
13168
|
}
|
|
13169
13169
|
function Tt(C) {
|
|
@@ -13178,7 +13178,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ie = C, fe = Y), se =
|
|
|
13178
13178
|
const Y = Tt(C);
|
|
13179
13179
|
return Y && !Y.disableAutodetect;
|
|
13180
13180
|
}
|
|
13181
|
-
function
|
|
13181
|
+
function ms(C) {
|
|
13182
13182
|
C["before:highlightBlock"] && !C["before:highlightElement"] && (C["before:highlightElement"] = (Y) => {
|
|
13183
13183
|
C["before:highlightBlock"](
|
|
13184
13184
|
Object.assign({ block: Y.el }, Y)
|
|
@@ -13189,10 +13189,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ie = C, fe = Y), se =
|
|
|
13189
13189
|
);
|
|
13190
13190
|
});
|
|
13191
13191
|
}
|
|
13192
|
-
function ms(C) {
|
|
13193
|
-
ds(C), ee.push(C);
|
|
13194
|
-
}
|
|
13195
13192
|
function hs(C) {
|
|
13193
|
+
ms(C), ee.push(C);
|
|
13194
|
+
}
|
|
13195
|
+
function ps(C) {
|
|
13196
13196
|
const Y = ee.indexOf(C);
|
|
13197
13197
|
Y !== -1 && ee.splice(Y, 1);
|
|
13198
13198
|
}
|
|
@@ -13202,7 +13202,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ie = C, fe = Y), se =
|
|
|
13202
13202
|
fe[se] && fe[se](Y);
|
|
13203
13203
|
});
|
|
13204
13204
|
}
|
|
13205
|
-
function
|
|
13205
|
+
function fs(C) {
|
|
13206
13206
|
return Zt("10.7.0", "highlightBlock will be removed entirely in v12.0"), Zt("10.7.0", "Please use highlightElement now."), r0(C);
|
|
13207
13207
|
}
|
|
13208
13208
|
Object.assign(y, {
|
|
@@ -13211,24 +13211,24 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ie = C, fe = Y), se =
|
|
|
13211
13211
|
highlightAll: br,
|
|
13212
13212
|
highlightElement: r0,
|
|
13213
13213
|
// TODO: Remove with v12 API
|
|
13214
|
-
highlightBlock:
|
|
13215
|
-
configure:
|
|
13216
|
-
initHighlighting:
|
|
13217
|
-
initHighlightingOnLoad:
|
|
13218
|
-
registerLanguage:
|
|
13219
|
-
unregisterLanguage:
|
|
13220
|
-
listLanguages:
|
|
13214
|
+
highlightBlock: fs,
|
|
13215
|
+
configure: is,
|
|
13216
|
+
initHighlighting: ss,
|
|
13217
|
+
initHighlightingOnLoad: os,
|
|
13218
|
+
registerLanguage: cs,
|
|
13219
|
+
unregisterLanguage: us,
|
|
13220
|
+
listLanguages: ds,
|
|
13221
13221
|
getLanguage: Tt,
|
|
13222
13222
|
registerAliases: bn,
|
|
13223
13223
|
autoDetection: vn,
|
|
13224
13224
|
inherit: hn,
|
|
13225
|
-
addPlugin:
|
|
13226
|
-
removePlugin:
|
|
13225
|
+
addPlugin: hs,
|
|
13226
|
+
removePlugin: ps
|
|
13227
13227
|
}), y.debugMode = function() {
|
|
13228
13228
|
Me = !1;
|
|
13229
13229
|
}, y.safeMode = function() {
|
|
13230
13230
|
Me = !0;
|
|
13231
|
-
}, y.versionString =
|
|
13231
|
+
}, y.versionString = ts, y.regex = {
|
|
13232
13232
|
concat: x,
|
|
13233
13233
|
lookahead: v,
|
|
13234
13234
|
either: M,
|
|
@@ -13241,10 +13241,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ie = C, fe = Y), se =
|
|
|
13241
13241
|
}, Xt = fn({});
|
|
13242
13242
|
return Xt.newInstance = () => fn({}), c0 = Xt, Xt.HighlightJS = Xt, Xt.default = Xt, c0;
|
|
13243
13243
|
}
|
|
13244
|
-
var
|
|
13245
|
-
const
|
|
13246
|
-
function
|
|
13247
|
-
const e =
|
|
13244
|
+
var bl = /* @__PURE__ */ gl();
|
|
13245
|
+
const vl = /* @__PURE__ */ Ss(bl), Pn = {}, yl = "hljs-";
|
|
13246
|
+
function wl(t) {
|
|
13247
|
+
const e = vl.newInstance();
|
|
13248
13248
|
return i(t), {
|
|
13249
13249
|
highlight: r,
|
|
13250
13250
|
highlightAuto: n,
|
|
@@ -13254,10 +13254,10 @@ function vl(t) {
|
|
|
13254
13254
|
registered: c
|
|
13255
13255
|
};
|
|
13256
13256
|
function r(u, m, p) {
|
|
13257
|
-
const f = p || Pn, v = typeof f.prefix == "string" ? f.prefix :
|
|
13257
|
+
const f = p || Pn, v = typeof f.prefix == "string" ? f.prefix : yl;
|
|
13258
13258
|
if (!e.getLanguage(u))
|
|
13259
13259
|
throw new Error("Unknown language: `" + u + "` is not registered");
|
|
13260
|
-
e.configure({ __emitter:
|
|
13260
|
+
e.configure({ __emitter: El, classPrefix: v });
|
|
13261
13261
|
const w = (
|
|
13262
13262
|
/** @type {HighlightResult & {_emitter: HastEmitter}} */
|
|
13263
13263
|
e.highlight(m, { ignoreIllegals: !0, language: u })
|
|
@@ -13323,7 +13323,7 @@ function vl(t) {
|
|
|
13323
13323
|
return !!e.getLanguage(u);
|
|
13324
13324
|
}
|
|
13325
13325
|
}
|
|
13326
|
-
class
|
|
13326
|
+
class El {
|
|
13327
13327
|
/**
|
|
13328
13328
|
* @param {Readonly<HljsOptions>} options
|
|
13329
13329
|
* Configuration.
|
|
@@ -13424,20 +13424,20 @@ class yl {
|
|
|
13424
13424
|
return "";
|
|
13425
13425
|
}
|
|
13426
13426
|
}
|
|
13427
|
-
const
|
|
13428
|
-
function
|
|
13429
|
-
const e = t ||
|
|
13427
|
+
const xl = {};
|
|
13428
|
+
function _l(t) {
|
|
13429
|
+
const e = t || xl, r = e.aliases, n = e.detect || !1, a = e.languages || fl, i = e.plainText, o = e.prefix, c = e.subset;
|
|
13430
13430
|
let u = "hljs";
|
|
13431
|
-
const m =
|
|
13431
|
+
const m = wl(a);
|
|
13432
13432
|
if (r && m.registerAlias(r), o) {
|
|
13433
13433
|
const p = o.indexOf("-");
|
|
13434
13434
|
u = p > -1 ? o.slice(0, p) : o;
|
|
13435
13435
|
}
|
|
13436
13436
|
return function(p, f) {
|
|
13437
|
-
|
|
13437
|
+
Na(p, "element", function(v, w, _) {
|
|
13438
13438
|
if (v.tagName !== "code" || !_ || _.type !== "element" || _.tagName !== "pre")
|
|
13439
13439
|
return;
|
|
13440
|
-
const x =
|
|
13440
|
+
const x = Sl(v);
|
|
13441
13441
|
if (x === !1 || !x && !n || x && i && i.includes(x))
|
|
13442
13442
|
return;
|
|
13443
13443
|
Array.isArray(v.properties.className) || (v.properties.className = []), v.properties.className.includes(u) || v.properties.className.unshift(u);
|
|
@@ -13469,7 +13469,7 @@ function El(t) {
|
|
|
13469
13469
|
});
|
|
13470
13470
|
};
|
|
13471
13471
|
}
|
|
13472
|
-
function
|
|
13472
|
+
function Sl(t) {
|
|
13473
13473
|
const e = t.properties.className;
|
|
13474
13474
|
let r = -1;
|
|
13475
13475
|
if (!Array.isArray(e))
|
|
@@ -13484,7 +13484,7 @@ function xl(t) {
|
|
|
13484
13484
|
return n;
|
|
13485
13485
|
}
|
|
13486
13486
|
const Fn = /[#.]/g;
|
|
13487
|
-
function
|
|
13487
|
+
function Nl(t, e) {
|
|
13488
13488
|
const r = t || "", n = {};
|
|
13489
13489
|
let a = 0, i, o;
|
|
13490
13490
|
for (; a < r.length; ) {
|
|
@@ -13500,9 +13500,9 @@ function _l(t, e) {
|
|
|
13500
13500
|
children: []
|
|
13501
13501
|
};
|
|
13502
13502
|
}
|
|
13503
|
-
const
|
|
13504
|
-
function
|
|
13505
|
-
const n = r &&
|
|
13503
|
+
const kl = /* @__PURE__ */ new Set(["button", "menu", "reset", "submit"]), T0 = {}.hasOwnProperty;
|
|
13504
|
+
function Za(t, e, r) {
|
|
13505
|
+
const n = r && Ol(r);
|
|
13506
13506
|
function a(i, o, ...c) {
|
|
13507
13507
|
let u = -1, m;
|
|
13508
13508
|
if (i == null) {
|
|
@@ -13512,10 +13512,10 @@ function Ya(t, e, r) {
|
|
|
13512
13512
|
o
|
|
13513
13513
|
);
|
|
13514
13514
|
c.unshift(p);
|
|
13515
|
-
} else if (m =
|
|
13515
|
+
} else if (m = Nl(i, e), m.tagName = m.tagName.toLowerCase(), n && T0.call(n, m.tagName) && (m.tagName = n[m.tagName]), Tl(o, m.tagName)) {
|
|
13516
13516
|
let p;
|
|
13517
13517
|
for (p in o)
|
|
13518
|
-
T0.call(o, p) &&
|
|
13518
|
+
T0.call(o, p) && Ml(t, m.properties, p, o[p]);
|
|
13519
13519
|
} else
|
|
13520
13520
|
c.unshift(o);
|
|
13521
13521
|
for (; ++u < c.length; )
|
|
@@ -13524,17 +13524,17 @@ function Ya(t, e, r) {
|
|
|
13524
13524
|
}
|
|
13525
13525
|
return a;
|
|
13526
13526
|
}
|
|
13527
|
-
function
|
|
13528
|
-
return t == null || typeof t != "object" || Array.isArray(t) ? !1 : e === "input" || !t.type || typeof t.type != "string" ? !0 : "children" in t && Array.isArray(t.children) ? !1 : e === "button" ?
|
|
13527
|
+
function Tl(t, e) {
|
|
13528
|
+
return t == null || typeof t != "object" || Array.isArray(t) ? !1 : e === "input" || !t.type || typeof t.type != "string" ? !0 : "children" in t && Array.isArray(t.children) ? !1 : e === "button" ? kl.has(t.type.toLowerCase()) : !("value" in t);
|
|
13529
13529
|
}
|
|
13530
|
-
function
|
|
13530
|
+
function Ml(t, e, r, n) {
|
|
13531
13531
|
const a = Ns(t, r);
|
|
13532
13532
|
let i = -1, o;
|
|
13533
13533
|
if (n != null) {
|
|
13534
13534
|
if (typeof n == "number") {
|
|
13535
13535
|
if (Number.isNaN(n)) return;
|
|
13536
13536
|
o = n;
|
|
13537
|
-
} else typeof n == "boolean" ? o = n : typeof n == "string" ? a.spaceSeparated ? o = Sn(n) : a.commaSeparated ? o = Nn(n) : a.commaOrSpaceSeparated ? o = Sn(Nn(n).join(" ")) : o = Un(a, a.property, n) : Array.isArray(n) ? o = n.concat() : o = a.property === "style" ?
|
|
13537
|
+
} else typeof n == "boolean" ? o = n : typeof n == "string" ? a.spaceSeparated ? o = Sn(n) : a.commaSeparated ? o = Nn(n) : a.commaOrSpaceSeparated ? o = Sn(Nn(n).join(" ")) : o = Un(a, a.property, n) : Array.isArray(n) ? o = n.concat() : o = a.property === "style" ? Al(n) : String(n);
|
|
13538
13538
|
if (Array.isArray(o)) {
|
|
13539
13539
|
const c = [];
|
|
13540
13540
|
for (; ++i < o.length; ) {
|
|
@@ -13577,21 +13577,21 @@ function Un(t, e, r) {
|
|
|
13577
13577
|
}
|
|
13578
13578
|
return r;
|
|
13579
13579
|
}
|
|
13580
|
-
function
|
|
13580
|
+
function Al(t) {
|
|
13581
13581
|
const e = [];
|
|
13582
13582
|
let r;
|
|
13583
13583
|
for (r in t)
|
|
13584
13584
|
T0.call(t, r) && e.push([r, t[r]].join(": "));
|
|
13585
13585
|
return e.join("; ");
|
|
13586
13586
|
}
|
|
13587
|
-
function
|
|
13587
|
+
function Ol(t) {
|
|
13588
13588
|
const e = {};
|
|
13589
13589
|
let r = -1;
|
|
13590
13590
|
for (; ++r < t.length; )
|
|
13591
13591
|
e[t[r].toLowerCase()] = t[r];
|
|
13592
13592
|
return e;
|
|
13593
13593
|
}
|
|
13594
|
-
const
|
|
13594
|
+
const Rl = [
|
|
13595
13595
|
"altGlyph",
|
|
13596
13596
|
"altGlyphDef",
|
|
13597
13597
|
"altGlyphItem",
|
|
@@ -13631,7 +13631,7 @@ const Al = [
|
|
|
13631
13631
|
"solidColor",
|
|
13632
13632
|
"textArea",
|
|
13633
13633
|
"textPath"
|
|
13634
|
-
],
|
|
13634
|
+
], Cl = Za(Ts, "div"), Il = Za(ks, "g", Rl), u0 = {
|
|
13635
13635
|
html: "http://www.w3.org/1999/xhtml",
|
|
13636
13636
|
mathml: "http://www.w3.org/1998/Math/MathML",
|
|
13637
13637
|
svg: "http://www.w3.org/2000/svg",
|
|
@@ -13639,24 +13639,24 @@ const Al = [
|
|
|
13639
13639
|
xml: "http://www.w3.org/XML/1998/namespace",
|
|
13640
13640
|
xmlns: "http://www.w3.org/2000/xmlns/"
|
|
13641
13641
|
};
|
|
13642
|
-
function
|
|
13643
|
-
return
|
|
13642
|
+
function Dl(t, e) {
|
|
13643
|
+
return Xa(t, {}) || { type: "root", children: [] };
|
|
13644
13644
|
}
|
|
13645
|
-
function
|
|
13646
|
-
const r =
|
|
13645
|
+
function Xa(t, e) {
|
|
13646
|
+
const r = Ll(t, e);
|
|
13647
13647
|
return r && e.afterTransform && e.afterTransform(t, r), r;
|
|
13648
13648
|
}
|
|
13649
|
-
function
|
|
13649
|
+
function Ll(t, e) {
|
|
13650
13650
|
switch (t.nodeType) {
|
|
13651
13651
|
case 1:
|
|
13652
|
-
return
|
|
13652
|
+
return Fl(
|
|
13653
13653
|
/** @type {Element} */
|
|
13654
13654
|
t,
|
|
13655
13655
|
e
|
|
13656
13656
|
);
|
|
13657
13657
|
// Ignore: Attr (2).
|
|
13658
13658
|
case 3:
|
|
13659
|
-
return
|
|
13659
|
+
return zl(
|
|
13660
13660
|
/** @type {Text} */
|
|
13661
13661
|
t
|
|
13662
13662
|
);
|
|
@@ -13665,7 +13665,7 @@ function Il(t, e) {
|
|
|
13665
13665
|
// Removed: Entity (6)
|
|
13666
13666
|
// Ignore: Processing instruction (7).
|
|
13667
13667
|
case 8:
|
|
13668
|
-
return
|
|
13668
|
+
return Pl(
|
|
13669
13669
|
/** @type {Comment} */
|
|
13670
13670
|
t
|
|
13671
13671
|
);
|
|
@@ -13676,7 +13676,7 @@ function Il(t, e) {
|
|
|
13676
13676
|
e
|
|
13677
13677
|
);
|
|
13678
13678
|
case 10:
|
|
13679
|
-
return
|
|
13679
|
+
return Bl();
|
|
13680
13680
|
case 11:
|
|
13681
13681
|
return qn(
|
|
13682
13682
|
/** @type {DocumentFragment} */
|
|
@@ -13688,49 +13688,49 @@ function Il(t, e) {
|
|
|
13688
13688
|
}
|
|
13689
13689
|
}
|
|
13690
13690
|
function qn(t, e) {
|
|
13691
|
-
return { type: "root", children:
|
|
13691
|
+
return { type: "root", children: Qa(t, e) };
|
|
13692
13692
|
}
|
|
13693
|
-
function
|
|
13693
|
+
function Bl() {
|
|
13694
13694
|
return { type: "doctype" };
|
|
13695
13695
|
}
|
|
13696
|
-
function
|
|
13696
|
+
function zl(t) {
|
|
13697
13697
|
return { type: "text", value: t.nodeValue || "" };
|
|
13698
13698
|
}
|
|
13699
|
-
function
|
|
13699
|
+
function Pl(t) {
|
|
13700
13700
|
return { type: "comment", value: t.nodeValue || "" };
|
|
13701
13701
|
}
|
|
13702
|
-
function
|
|
13703
|
-
const r = t.namespaceURI, n = r === u0.svg ?
|
|
13702
|
+
function Fl(t, e) {
|
|
13703
|
+
const r = t.namespaceURI, n = r === u0.svg ? Il : Cl, a = r === u0.html ? t.tagName.toLowerCase() : t.tagName, i = (
|
|
13704
13704
|
// @ts-expect-error: DOM types are wrong, content can exist.
|
|
13705
13705
|
r === u0.html && a === "template" ? t.content : t
|
|
13706
13706
|
), o = t.getAttributeNames(), c = {};
|
|
13707
13707
|
let u = -1;
|
|
13708
13708
|
for (; ++u < o.length; )
|
|
13709
13709
|
c[o[u]] = t.getAttribute(o[u]) || "";
|
|
13710
|
-
return n(a, c,
|
|
13710
|
+
return n(a, c, Qa(i, e));
|
|
13711
13711
|
}
|
|
13712
|
-
function
|
|
13712
|
+
function Qa(t, e) {
|
|
13713
13713
|
const r = t.childNodes, n = [];
|
|
13714
13714
|
let a = -1;
|
|
13715
13715
|
for (; ++a < r.length; ) {
|
|
13716
|
-
const i =
|
|
13716
|
+
const i = Xa(r[a], e);
|
|
13717
13717
|
i !== void 0 && n.push(i);
|
|
13718
13718
|
}
|
|
13719
13719
|
return n;
|
|
13720
13720
|
}
|
|
13721
13721
|
new DOMParser();
|
|
13722
|
-
function
|
|
13723
|
-
const r =
|
|
13722
|
+
function Ul(t, e) {
|
|
13723
|
+
const r = ql(t);
|
|
13724
13724
|
return (
|
|
13725
13725
|
/** @type {Root} */
|
|
13726
|
-
|
|
13726
|
+
Dl(r)
|
|
13727
13727
|
);
|
|
13728
13728
|
}
|
|
13729
|
-
function
|
|
13729
|
+
function ql(t) {
|
|
13730
13730
|
const e = document.createElement("template");
|
|
13731
13731
|
return e.innerHTML = t, e.content;
|
|
13732
13732
|
}
|
|
13733
|
-
class
|
|
13733
|
+
class Ze {
|
|
13734
13734
|
// The + prefix indicates that these fields aren't writeable
|
|
13735
13735
|
// Lexer holding the input string.
|
|
13736
13736
|
// Start offset, zero-based inclusive.
|
|
@@ -13747,7 +13747,7 @@ class Ye {
|
|
|
13747
13747
|
* - Otherwise, returns null.
|
|
13748
13748
|
*/
|
|
13749
13749
|
static range(e, r) {
|
|
13750
|
-
return r ? !e || !e.loc || !r.loc || e.loc.lexer !== r.loc.lexer ? null : new
|
|
13750
|
+
return r ? !e || !e.loc || !r.loc || e.loc.lexer !== r.loc.lexer ? null : new Ze(e.loc.lexer, e.loc.start, r.loc.end) : e && e.loc;
|
|
13751
13751
|
}
|
|
13752
13752
|
}
|
|
13753
13753
|
class je {
|
|
@@ -13761,7 +13761,7 @@ class je {
|
|
|
13761
13761
|
* the whole input range enclosed by these two.
|
|
13762
13762
|
*/
|
|
13763
13763
|
range(e, r) {
|
|
13764
|
-
return new je(r,
|
|
13764
|
+
return new je(r, Ze.range(this, e));
|
|
13765
13765
|
}
|
|
13766
13766
|
}
|
|
13767
13767
|
class R {
|
|
@@ -13784,42 +13784,42 @@ class R {
|
|
|
13784
13784
|
}
|
|
13785
13785
|
}
|
|
13786
13786
|
R.prototype.__proto__ = Error.prototype;
|
|
13787
|
-
var
|
|
13787
|
+
var Hl = function(e, r) {
|
|
13788
13788
|
return e.indexOf(r) !== -1;
|
|
13789
|
-
},
|
|
13789
|
+
}, $l = function(e, r) {
|
|
13790
13790
|
return e === void 0 ? r : e;
|
|
13791
|
-
},
|
|
13792
|
-
return e.replace(
|
|
13793
|
-
},
|
|
13791
|
+
}, Gl = /([A-Z])/g, Kl = function(e) {
|
|
13792
|
+
return e.replace(Gl, "-$1").toLowerCase();
|
|
13793
|
+
}, Vl = {
|
|
13794
13794
|
"&": "&",
|
|
13795
13795
|
">": ">",
|
|
13796
13796
|
"<": "<",
|
|
13797
13797
|
'"': """,
|
|
13798
13798
|
"'": "'"
|
|
13799
|
-
},
|
|
13800
|
-
function
|
|
13801
|
-
return String(t).replace(
|
|
13799
|
+
}, Wl = /[&><"']/g;
|
|
13800
|
+
function Yl(t) {
|
|
13801
|
+
return String(t).replace(Wl, (e) => Vl[e]);
|
|
13802
13802
|
}
|
|
13803
|
-
var
|
|
13803
|
+
var Ja = function t(e) {
|
|
13804
13804
|
return e.type === "ordgroup" || e.type === "color" ? e.body.length === 1 ? t(e.body[0]) : e : e.type === "font" ? t(e.body) : e;
|
|
13805
|
-
},
|
|
13806
|
-
var r =
|
|
13805
|
+
}, Zl = function(e) {
|
|
13806
|
+
var r = Ja(e);
|
|
13807
13807
|
return r.type === "mathord" || r.type === "textord" || r.type === "atom";
|
|
13808
|
-
},
|
|
13808
|
+
}, Xl = function(e) {
|
|
13809
13809
|
if (!e)
|
|
13810
13810
|
throw new Error("Expected non-null, but got " + String(e));
|
|
13811
13811
|
return e;
|
|
13812
|
-
},
|
|
13812
|
+
}, Ql = function(e) {
|
|
13813
13813
|
var r = /^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);
|
|
13814
13814
|
return r ? r[2] !== ":" || !/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(r[1]) ? null : r[1].toLowerCase() : "_relative";
|
|
13815
13815
|
}, W = {
|
|
13816
|
-
contains:
|
|
13817
|
-
deflt:
|
|
13818
|
-
escape:
|
|
13819
|
-
hyphenate:
|
|
13820
|
-
getBaseElem:
|
|
13821
|
-
isCharacterBox:
|
|
13822
|
-
protocolFromUrl:
|
|
13816
|
+
contains: Hl,
|
|
13817
|
+
deflt: $l,
|
|
13818
|
+
escape: Yl,
|
|
13819
|
+
hyphenate: Kl,
|
|
13820
|
+
getBaseElem: Ja,
|
|
13821
|
+
isCharacterBox: Zl,
|
|
13822
|
+
protocolFromUrl: Ql
|
|
13823
13823
|
}, zr = {
|
|
13824
13824
|
displayMode: {
|
|
13825
13825
|
type: "boolean",
|
|
@@ -13907,7 +13907,7 @@ var Qa = function t(e) {
|
|
|
13907
13907
|
cli: !1
|
|
13908
13908
|
}
|
|
13909
13909
|
};
|
|
13910
|
-
function
|
|
13910
|
+
function Jl(t) {
|
|
13911
13911
|
if (t.default)
|
|
13912
13912
|
return t.default;
|
|
13913
13913
|
var e = t.type, r = Array.isArray(e) ? e[0] : e;
|
|
@@ -13930,7 +13930,7 @@ class q0 {
|
|
|
13930
13930
|
for (var r in zr)
|
|
13931
13931
|
if (zr.hasOwnProperty(r)) {
|
|
13932
13932
|
var n = zr[r];
|
|
13933
|
-
this[r] = e[r] !== void 0 ? n.processor ? n.processor(e[r]) : e[r] :
|
|
13933
|
+
this[r] = e[r] !== void 0 ? n.processor ? n.processor(e[r]) : e[r] : Jl(n);
|
|
13934
13934
|
}
|
|
13935
13935
|
}
|
|
13936
13936
|
/**
|
|
@@ -13990,40 +13990,40 @@ class At {
|
|
|
13990
13990
|
* Get the style of a superscript given a base in the current style.
|
|
13991
13991
|
*/
|
|
13992
13992
|
sup() {
|
|
13993
|
-
return mt[
|
|
13993
|
+
return mt[jl[this.id]];
|
|
13994
13994
|
}
|
|
13995
13995
|
/**
|
|
13996
13996
|
* Get the style of a subscript given a base in the current style.
|
|
13997
13997
|
*/
|
|
13998
13998
|
sub() {
|
|
13999
|
-
return mt[
|
|
13999
|
+
return mt[ec[this.id]];
|
|
14000
14000
|
}
|
|
14001
14001
|
/**
|
|
14002
14002
|
* Get the style of a fraction numerator given the fraction in the current
|
|
14003
14003
|
* style.
|
|
14004
14004
|
*/
|
|
14005
14005
|
fracNum() {
|
|
14006
|
-
return mt[
|
|
14006
|
+
return mt[tc[this.id]];
|
|
14007
14007
|
}
|
|
14008
14008
|
/**
|
|
14009
14009
|
* Get the style of a fraction denominator given the fraction in the current
|
|
14010
14010
|
* style.
|
|
14011
14011
|
*/
|
|
14012
14012
|
fracDen() {
|
|
14013
|
-
return mt[
|
|
14013
|
+
return mt[rc[this.id]];
|
|
14014
14014
|
}
|
|
14015
14015
|
/**
|
|
14016
14016
|
* Get the cramped version of a style (in particular, cramping a cramped style
|
|
14017
14017
|
* doesn't change the style).
|
|
14018
14018
|
*/
|
|
14019
14019
|
cramp() {
|
|
14020
|
-
return mt[
|
|
14020
|
+
return mt[nc[this.id]];
|
|
14021
14021
|
}
|
|
14022
14022
|
/**
|
|
14023
14023
|
* Get a text or display version of this style.
|
|
14024
14024
|
*/
|
|
14025
14025
|
text() {
|
|
14026
|
-
return mt[
|
|
14026
|
+
return mt[ac[this.id]];
|
|
14027
14027
|
}
|
|
14028
14028
|
/**
|
|
14029
14029
|
* Return true if this style is tightly spaced (scriptstyle/scriptscriptstyle)
|
|
@@ -14032,7 +14032,7 @@ class At {
|
|
|
14032
14032
|
return this.size >= 2;
|
|
14033
14033
|
}
|
|
14034
14034
|
}
|
|
14035
|
-
var H0 = 0, qr = 1, er = 2, Et = 3, dr = 4, Je = 5, tr = 6, He = 7, mt = [new At(H0, 0, !1), new At(qr, 0, !0), new At(er, 1, !1), new At(Et, 1, !0), new At(dr, 2, !1), new At(Je, 2, !0), new At(tr, 3, !1), new At(He, 3, !0)],
|
|
14035
|
+
var H0 = 0, qr = 1, er = 2, Et = 3, dr = 4, Je = 5, tr = 6, He = 7, mt = [new At(H0, 0, !1), new At(qr, 0, !0), new At(er, 1, !1), new At(Et, 1, !0), new At(dr, 2, !1), new At(Je, 2, !0), new At(tr, 3, !1), new At(He, 3, !0)], jl = [dr, Je, dr, Je, tr, He, tr, He], ec = [Je, Je, Je, Je, He, He, He, He], tc = [er, Et, dr, Je, tr, He, tr, He], rc = [Et, Et, Je, Je, He, He, He, He], nc = [qr, qr, Et, Et, Je, Je, He, He], ac = [H0, qr, er, Et, er, Et, er, Et], X = {
|
|
14036
14036
|
DISPLAY: mt[H0],
|
|
14037
14037
|
TEXT: mt[er],
|
|
14038
14038
|
SCRIPT: mt[dr],
|
|
@@ -14096,7 +14096,7 @@ var H0 = 0, qr = 1, er = 2, Et = 3, dr = 4, Je = 5, tr = 6, He = 7, mt = [new At
|
|
|
14096
14096
|
name: "hangul",
|
|
14097
14097
|
blocks: [[44032, 55215]]
|
|
14098
14098
|
}];
|
|
14099
|
-
function
|
|
14099
|
+
function ic(t) {
|
|
14100
14100
|
for (var e = 0; e < A0.length; e++)
|
|
14101
14101
|
for (var r = A0[e], n = 0; n < r.blocks.length; n++) {
|
|
14102
14102
|
var a = r.blocks[n];
|
|
@@ -14107,13 +14107,13 @@ function nc(t) {
|
|
|
14107
14107
|
}
|
|
14108
14108
|
var Pr = [];
|
|
14109
14109
|
A0.forEach((t) => t.blocks.forEach((e) => Pr.push(...e)));
|
|
14110
|
-
function
|
|
14110
|
+
function ja(t) {
|
|
14111
14111
|
for (var e = 0; e < Pr.length; e += 2)
|
|
14112
14112
|
if (t >= Pr[e] && t <= Pr[e + 1])
|
|
14113
14113
|
return !0;
|
|
14114
14114
|
return !1;
|
|
14115
14115
|
}
|
|
14116
|
-
var Qt = 80,
|
|
14116
|
+
var Qt = 80, sc = function(e, r) {
|
|
14117
14117
|
return "M95," + (622 + e + r) + `
|
|
14118
14118
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
14119
14119
|
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
@@ -14126,7 +14126,7 @@ H400000v` + (40 + e) + `H845.2724
|
|
|
14126
14126
|
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
14127
14127
|
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
14128
14128
|
M` + (834 + e) + " " + r + "h400000v" + (40 + e) + "h-400000z";
|
|
14129
|
-
},
|
|
14129
|
+
}, oc = function(e, r) {
|
|
14130
14130
|
return "M263," + (601 + e + r) + `c0.7,0,18,39.7,52,119
|
|
14131
14131
|
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
14132
14132
|
c340,-704.7,510.7,-1060.3,512,-1067
|
|
@@ -14138,7 +14138,7 @@ c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
|
|
|
14138
14138
|
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
14139
14139
|
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
14140
14140
|
M` + (1001 + e) + " " + r + "h400000v" + (40 + e) + "h-400000z";
|
|
14141
|
-
},
|
|
14141
|
+
}, lc = function(e, r) {
|
|
14142
14142
|
return "M983 " + (10 + e + r) + `
|
|
14143
14143
|
l` + e / 3.13 + " -" + e + `
|
|
14144
14144
|
c4,-6.7,10,-10,18,-10 H400000v` + (40 + e) + `
|
|
@@ -14149,7 +14149,7 @@ c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
|
14149
14149
|
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
14150
14150
|
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
14151
14151
|
M` + (1001 + e) + " " + r + "h400000v" + (40 + e) + "h-400000z";
|
|
14152
|
-
},
|
|
14152
|
+
}, cc = function(e, r) {
|
|
14153
14153
|
return "M424," + (2398 + e + r) + `
|
|
14154
14154
|
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
14155
14155
|
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
|
|
@@ -14161,7 +14161,7 @@ s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
|
14161
14161
|
c-2,6,-10,9,-24,9
|
|
14162
14162
|
c-8,0,-12,-0.7,-12,-2z M` + (1001 + e) + " " + r + `
|
|
14163
14163
|
h400000v` + (40 + e) + "h-400000z";
|
|
14164
|
-
},
|
|
14164
|
+
}, uc = function(e, r) {
|
|
14165
14165
|
return "M473," + (2713 + e + r) + `
|
|
14166
14166
|
c339.3,-1799.3,509.3,-2700,510,-2702 l` + e / 5.298 + " -" + e + `
|
|
14167
14167
|
c3.3,-7.3,9.3,-11,18,-11 H400000v` + (40 + e) + `H1017.7
|
|
@@ -14170,40 +14170,40 @@ c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1
|
|
|
14170
14170
|
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
|
|
14171
14171
|
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
14172
14172
|
606zM` + (1001 + e) + " " + r + "h400000v" + (40 + e) + "H1017.7z";
|
|
14173
|
-
},
|
|
14173
|
+
}, dc = function(e) {
|
|
14174
14174
|
var r = e / 2;
|
|
14175
14175
|
return "M400000 " + e + " H0 L" + r + " 0 l65 45 L145 " + (e - 80) + " H400000z";
|
|
14176
|
-
},
|
|
14176
|
+
}, mc = function(e, r, n) {
|
|
14177
14177
|
var a = n - 54 - r - e;
|
|
14178
14178
|
return "M702 " + (e + r) + "H400000" + (40 + e) + `
|
|
14179
14179
|
H742v` + a + `l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
|
|
14180
14180
|
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
14181
14181
|
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
14182
14182
|
219 661 l218 661zM702 ` + r + "H400000v" + (40 + e) + "H742z";
|
|
14183
|
-
},
|
|
14183
|
+
}, hc = function(e, r, n) {
|
|
14184
14184
|
r = 1e3 * r;
|
|
14185
14185
|
var a = "";
|
|
14186
14186
|
switch (e) {
|
|
14187
14187
|
case "sqrtMain":
|
|
14188
|
-
a =
|
|
14188
|
+
a = sc(r, Qt);
|
|
14189
14189
|
break;
|
|
14190
14190
|
case "sqrtSize1":
|
|
14191
|
-
a =
|
|
14191
|
+
a = oc(r, Qt);
|
|
14192
14192
|
break;
|
|
14193
14193
|
case "sqrtSize2":
|
|
14194
|
-
a =
|
|
14194
|
+
a = lc(r, Qt);
|
|
14195
14195
|
break;
|
|
14196
14196
|
case "sqrtSize3":
|
|
14197
|
-
a =
|
|
14197
|
+
a = cc(r, Qt);
|
|
14198
14198
|
break;
|
|
14199
14199
|
case "sqrtSize4":
|
|
14200
|
-
a =
|
|
14200
|
+
a = uc(r, Qt);
|
|
14201
14201
|
break;
|
|
14202
14202
|
case "sqrtTall":
|
|
14203
|
-
a =
|
|
14203
|
+
a = mc(r, Qt, n);
|
|
14204
14204
|
}
|
|
14205
14205
|
return a;
|
|
14206
|
-
},
|
|
14206
|
+
}, pc = function(e, r) {
|
|
14207
14207
|
switch (e) {
|
|
14208
14208
|
case "⎜":
|
|
14209
14209
|
return "M291 0 H417 V" + r + " H291z M291 0 H417 V" + r + " H291z";
|
|
@@ -14478,7 +14478,7 @@ c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
|
14478
14478
|
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
14479
14479
|
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
14480
14480
|
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
14481
|
-
},
|
|
14481
|
+
}, fc = function(e, r) {
|
|
14482
14482
|
switch (e) {
|
|
14483
14483
|
case "lbrack":
|
|
14484
14484
|
return "M403 1759 V84 H666 V0 H319 V1759 v" + r + ` v1759 h347 v-84
|
|
@@ -16792,14 +16792,14 @@ var ht = {
|
|
|
16792
16792
|
ю: "m",
|
|
16793
16793
|
я: "r"
|
|
16794
16794
|
};
|
|
16795
|
-
function
|
|
16795
|
+
function gc(t, e) {
|
|
16796
16796
|
ht[t] = e;
|
|
16797
16797
|
}
|
|
16798
16798
|
function $0(t, e, r) {
|
|
16799
16799
|
if (!ht[e])
|
|
16800
16800
|
throw new Error("Font metrics not found for font: " + e + ".");
|
|
16801
16801
|
var n = t.charCodeAt(0), a = ht[e][n];
|
|
16802
|
-
if (!a && t[0] in $n && (n = $n[t[0]].charCodeAt(0), a = ht[e][n]), !a && r === "text" &&
|
|
16802
|
+
if (!a && t[0] in $n && (n = $n[t[0]].charCodeAt(0), a = ht[e][n]), !a && r === "text" && ja(n) && (a = ht[e][77]), a)
|
|
16803
16803
|
return {
|
|
16804
16804
|
depth: a[0],
|
|
16805
16805
|
height: a[1],
|
|
@@ -16809,7 +16809,7 @@ function $0(t, e, r) {
|
|
|
16809
16809
|
};
|
|
16810
16810
|
}
|
|
16811
16811
|
var d0 = {};
|
|
16812
|
-
function
|
|
16812
|
+
function bc(t) {
|
|
16813
16813
|
var e;
|
|
16814
16814
|
if (t >= 5 ? e = 0 : t >= 3 ? e = 1 : e = 2, !d0[e]) {
|
|
16815
16815
|
var r = d0[e] = {
|
|
@@ -16820,7 +16820,7 @@ function fc(t) {
|
|
|
16820
16820
|
}
|
|
16821
16821
|
return d0[e];
|
|
16822
16822
|
}
|
|
16823
|
-
var
|
|
16823
|
+
var vc = [
|
|
16824
16824
|
// Each element contains [textsize, scriptsize, scriptscriptsize].
|
|
16825
16825
|
// The size mappings are taken from TeX with \normalsize=10pt.
|
|
16826
16826
|
[1, 1, 1],
|
|
@@ -16860,7 +16860,7 @@ var gc = [
|
|
|
16860
16860
|
2.074,
|
|
16861
16861
|
2.488
|
|
16862
16862
|
], Kn = function(e, r) {
|
|
16863
|
-
return r.size < 2 ? e :
|
|
16863
|
+
return r.size < 2 ? e : vc[e - 1][r.size - 1];
|
|
16864
16864
|
};
|
|
16865
16865
|
class wt {
|
|
16866
16866
|
// A font family applies to a group of fonts (i.e. SansSerif), while a font
|
|
@@ -17028,7 +17028,7 @@ class wt {
|
|
|
17028
17028
|
* Return the font metrics for this size.
|
|
17029
17029
|
*/
|
|
17030
17030
|
fontMetrics() {
|
|
17031
|
-
return this._fontMetrics || (this._fontMetrics =
|
|
17031
|
+
return this._fontMetrics || (this._fontMetrics = bc(this.size)), this._fontMetrics;
|
|
17032
17032
|
}
|
|
17033
17033
|
/**
|
|
17034
17034
|
* Gets the CSS color of the current options object
|
|
@@ -17066,12 +17066,12 @@ var O0 = {
|
|
|
17066
17066
|
// https://tex.stackexchange.com/a/41371
|
|
17067
17067
|
px: 803 / 800
|
|
17068
17068
|
// \pdfpxdimen defaults to 1 bp in pdfTeX and LuaTeX
|
|
17069
|
-
},
|
|
17069
|
+
}, yc = {
|
|
17070
17070
|
ex: !0,
|
|
17071
17071
|
em: !0,
|
|
17072
17072
|
mu: !0
|
|
17073
|
-
},
|
|
17074
|
-
return typeof e != "string" && (e = e.unit), e in O0 || e in
|
|
17073
|
+
}, ei = function(e) {
|
|
17074
|
+
return typeof e != "string" && (e = e.unit), e in O0 || e in yc || e === "ex";
|
|
17075
17075
|
}, Ne = function(e, r) {
|
|
17076
17076
|
var n;
|
|
17077
17077
|
if (e.unit in O0)
|
|
@@ -17093,13 +17093,13 @@ var O0 = {
|
|
|
17093
17093
|
return +e.toFixed(4) + "em";
|
|
17094
17094
|
}, Ct = function(e) {
|
|
17095
17095
|
return e.filter((r) => r).join(" ");
|
|
17096
|
-
},
|
|
17096
|
+
}, ti = function(e, r, n) {
|
|
17097
17097
|
if (this.classes = e || [], this.attributes = {}, this.height = 0, this.depth = 0, this.maxFontSize = 0, this.style = n || {}, r) {
|
|
17098
17098
|
r.style.isTight() && this.classes.push("mtight");
|
|
17099
17099
|
var a = r.getColor();
|
|
17100
17100
|
a && (this.style.color = a);
|
|
17101
17101
|
}
|
|
17102
|
-
},
|
|
17102
|
+
}, ri = function(e) {
|
|
17103
17103
|
var r = document.createElement(e);
|
|
17104
17104
|
r.className = Ct(this.classes);
|
|
17105
17105
|
for (var n in this.style)
|
|
@@ -17109,7 +17109,7 @@ var O0 = {
|
|
|
17109
17109
|
for (var i = 0; i < this.children.length; i++)
|
|
17110
17110
|
r.appendChild(this.children[i].toNode());
|
|
17111
17111
|
return r;
|
|
17112
|
-
},
|
|
17112
|
+
}, ni = function(e) {
|
|
17113
17113
|
var r = "<" + e;
|
|
17114
17114
|
this.classes.length && (r += ' class="' + W.escape(Ct(this.classes)) + '"');
|
|
17115
17115
|
var n = "";
|
|
@@ -17125,7 +17125,7 @@ var O0 = {
|
|
|
17125
17125
|
};
|
|
17126
17126
|
class pr {
|
|
17127
17127
|
constructor(e, r, n, a) {
|
|
17128
|
-
this.children = void 0, this.attributes = void 0, this.classes = void 0, this.height = void 0, this.depth = void 0, this.width = void 0, this.maxFontSize = void 0, this.style = void 0,
|
|
17128
|
+
this.children = void 0, this.attributes = void 0, this.classes = void 0, this.height = void 0, this.depth = void 0, this.width = void 0, this.maxFontSize = void 0, this.style = void 0, ti.call(this, e, n, a), this.children = r || [];
|
|
17129
17129
|
}
|
|
17130
17130
|
/**
|
|
17131
17131
|
* Sets an arbitrary attribute on the span. Warning: use this wisely. Not
|
|
@@ -17139,15 +17139,15 @@ class pr {
|
|
|
17139
17139
|
return W.contains(this.classes, e);
|
|
17140
17140
|
}
|
|
17141
17141
|
toNode() {
|
|
17142
|
-
return
|
|
17142
|
+
return ri.call(this, "span");
|
|
17143
17143
|
}
|
|
17144
17144
|
toMarkup() {
|
|
17145
|
-
return
|
|
17145
|
+
return ni.call(this, "span");
|
|
17146
17146
|
}
|
|
17147
17147
|
}
|
|
17148
17148
|
class G0 {
|
|
17149
17149
|
constructor(e, r, n, a) {
|
|
17150
|
-
this.children = void 0, this.attributes = void 0, this.classes = void 0, this.height = void 0, this.depth = void 0, this.maxFontSize = void 0, this.style = void 0,
|
|
17150
|
+
this.children = void 0, this.attributes = void 0, this.classes = void 0, this.height = void 0, this.depth = void 0, this.maxFontSize = void 0, this.style = void 0, ti.call(this, r, a), this.children = n || [], this.setAttribute("href", e);
|
|
17151
17151
|
}
|
|
17152
17152
|
setAttribute(e, r) {
|
|
17153
17153
|
this.attributes[e] = r;
|
|
@@ -17156,13 +17156,13 @@ class G0 {
|
|
|
17156
17156
|
return W.contains(this.classes, e);
|
|
17157
17157
|
}
|
|
17158
17158
|
toNode() {
|
|
17159
|
-
return
|
|
17159
|
+
return ri.call(this, "a");
|
|
17160
17160
|
}
|
|
17161
17161
|
toMarkup() {
|
|
17162
|
-
return
|
|
17162
|
+
return ni.call(this, "a");
|
|
17163
17163
|
}
|
|
17164
17164
|
}
|
|
17165
|
-
class
|
|
17165
|
+
class wc {
|
|
17166
17166
|
constructor(e, r, n) {
|
|
17167
17167
|
this.src = void 0, this.alt = void 0, this.classes = void 0, this.height = void 0, this.depth = void 0, this.maxFontSize = void 0, this.style = void 0, this.alt = r, this.src = e, this.classes = ["mord"], this.style = n;
|
|
17168
17168
|
}
|
|
@@ -17183,7 +17183,7 @@ class vc {
|
|
|
17183
17183
|
return r && (e += ' style="' + W.escape(r) + '"'), e += "'/>", e;
|
|
17184
17184
|
}
|
|
17185
17185
|
}
|
|
17186
|
-
var
|
|
17186
|
+
var Ec = {
|
|
17187
17187
|
î: "ı̂",
|
|
17188
17188
|
ï: "ı̈",
|
|
17189
17189
|
í: "ı́",
|
|
@@ -17193,8 +17193,8 @@ var yc = {
|
|
|
17193
17193
|
class et {
|
|
17194
17194
|
constructor(e, r, n, a, i, o, c, u) {
|
|
17195
17195
|
this.text = void 0, this.height = void 0, this.depth = void 0, this.italic = void 0, this.skew = void 0, this.width = void 0, this.maxFontSize = void 0, this.classes = void 0, this.style = void 0, this.text = e, this.height = r || 0, this.depth = n || 0, this.italic = a || 0, this.skew = i || 0, this.width = o || 0, this.classes = c || [], this.style = u || {}, this.maxFontSize = 0;
|
|
17196
|
-
var m =
|
|
17197
|
-
m && this.classes.push(m + "_fallback"), /[îïíì]/.test(this.text) && (this.text =
|
|
17196
|
+
var m = ic(this.text.charCodeAt(0));
|
|
17197
|
+
m && this.classes.push(m + "_fallback"), /[îïíì]/.test(this.text) && (this.text = Ec[this.text]);
|
|
17198
17198
|
}
|
|
17199
17199
|
hasClass(e) {
|
|
17200
17200
|
return W.contains(this.classes, e);
|
|
@@ -17281,19 +17281,19 @@ function Vn(t) {
|
|
|
17281
17281
|
return t;
|
|
17282
17282
|
throw new Error("Expected symbolNode but got " + String(t) + ".");
|
|
17283
17283
|
}
|
|
17284
|
-
function
|
|
17284
|
+
function xc(t) {
|
|
17285
17285
|
if (t instanceof pr)
|
|
17286
17286
|
return t;
|
|
17287
17287
|
throw new Error("Expected span<HtmlDomNode> but got " + String(t) + ".");
|
|
17288
17288
|
}
|
|
17289
|
-
var
|
|
17289
|
+
var _c = {
|
|
17290
17290
|
bin: 1,
|
|
17291
17291
|
close: 1,
|
|
17292
17292
|
inner: 1,
|
|
17293
17293
|
open: 1,
|
|
17294
17294
|
punct: 1,
|
|
17295
17295
|
rel: 1
|
|
17296
|
-
},
|
|
17296
|
+
}, Sc = {
|
|
17297
17297
|
"accent-token": 1,
|
|
17298
17298
|
mathord: 1,
|
|
17299
17299
|
"op-token": 1,
|
|
@@ -17881,7 +17881,7 @@ s(A, d, _e, "ˇ", "\\v");
|
|
|
17881
17881
|
s(A, d, _e, "¨", '\\"');
|
|
17882
17882
|
s(A, d, _e, "˝", "\\H");
|
|
17883
17883
|
s(A, d, _e, "◯", "\\textcircled");
|
|
17884
|
-
var
|
|
17884
|
+
var ai = {
|
|
17885
17885
|
"--": !0,
|
|
17886
17886
|
"---": !0,
|
|
17887
17887
|
"``": !0,
|
|
@@ -18023,7 +18023,7 @@ var Rr = [
|
|
|
18023
18023
|
// 0-9 bold sans-serif
|
|
18024
18024
|
["mathtt", "texttt", "Typewriter-Regular"]
|
|
18025
18025
|
// 0-9 monospace
|
|
18026
|
-
],
|
|
18026
|
+
], Nc = function(e, r) {
|
|
18027
18027
|
var n = e.charCodeAt(0), a = e.charCodeAt(1), i = (n - 55296) * 1024 + (a - 56320) + 65536, o = r === "math" ? 0 : 1;
|
|
18028
18028
|
if (119808 <= i && i < 120484) {
|
|
18029
18029
|
var c = Math.floor((i - 119808) / 26);
|
|
@@ -18058,9 +18058,9 @@ var Rr = [
|
|
|
18058
18058
|
p && (u.style.color = p);
|
|
18059
18059
|
}
|
|
18060
18060
|
return u;
|
|
18061
|
-
},
|
|
18061
|
+
}, kc = function(e, r, n, a) {
|
|
18062
18062
|
return a === void 0 && (a = []), n.font === "boldsymbol" && Wr(e, "Main-Bold", r).metrics ? st(e, "Main-Bold", r, n, a.concat(["mathbf"])) : e === "\\" || ge[r][e].font === "main" ? st(e, "Main-Regular", r, n, a) : st(e, "AMS-Regular", r, n, a.concat(["amsrm"]));
|
|
18063
|
-
},
|
|
18063
|
+
}, Tc = function(e, r, n, a, i) {
|
|
18064
18064
|
return i !== "textord" && Wr(e, "Math-BoldItalic", r).metrics ? {
|
|
18065
18065
|
fontName: "Math-BoldItalic",
|
|
18066
18066
|
fontClass: "boldsymbol"
|
|
@@ -18068,22 +18068,22 @@ var Rr = [
|
|
|
18068
18068
|
fontName: "Main-Bold",
|
|
18069
18069
|
fontClass: "mathbf"
|
|
18070
18070
|
};
|
|
18071
|
-
},
|
|
18071
|
+
}, Mc = function(e, r, n) {
|
|
18072
18072
|
var a = e.mode, i = e.text, o = ["mord"], c = a === "math" || a === "text" && r.font, u = c ? r.font : r.fontFamily, m = "", p = "";
|
|
18073
|
-
if (i.charCodeAt(0) === 55349 && ([m, p] =
|
|
18073
|
+
if (i.charCodeAt(0) === 55349 && ([m, p] = Nc(i, a)), m.length > 0)
|
|
18074
18074
|
return st(i, m, a, r, o.concat(p));
|
|
18075
18075
|
if (u) {
|
|
18076
18076
|
var f, v;
|
|
18077
18077
|
if (u === "boldsymbol") {
|
|
18078
|
-
var w =
|
|
18078
|
+
var w = Tc(i, a, r, o, n);
|
|
18079
18079
|
f = w.fontName, v = [w.fontClass];
|
|
18080
|
-
} else c ? (f =
|
|
18080
|
+
} else c ? (f = oi[u].fontName, v = [u]) : (f = Cr(u, r.fontWeight, r.fontShape), v = [u, r.fontWeight, r.fontShape]);
|
|
18081
18081
|
if (Wr(i, f, a).metrics)
|
|
18082
18082
|
return st(i, f, a, r, o.concat(v));
|
|
18083
|
-
if (
|
|
18083
|
+
if (ai.hasOwnProperty(i) && f.slice(0, 10) === "Typewriter") {
|
|
18084
18084
|
for (var _ = [], x = 0; x < i.length; x++)
|
|
18085
18085
|
_.push(st(i[x], f, a, r, o.concat(v)));
|
|
18086
|
-
return
|
|
18086
|
+
return si(_);
|
|
18087
18087
|
}
|
|
18088
18088
|
}
|
|
18089
18089
|
if (n === "mathord")
|
|
@@ -18102,7 +18102,7 @@ var Rr = [
|
|
|
18102
18102
|
}
|
|
18103
18103
|
} else
|
|
18104
18104
|
throw new Error("unexpected type: " + n + " in makeOrd");
|
|
18105
|
-
},
|
|
18105
|
+
}, Ac = (t, e) => {
|
|
18106
18106
|
if (Ct(t.classes) !== Ct(e.classes) || t.skew !== e.skew || t.maxFontSize !== e.maxFontSize)
|
|
18107
18107
|
return !1;
|
|
18108
18108
|
if (t.classes.length === 1) {
|
|
@@ -18117,10 +18117,10 @@ var Rr = [
|
|
|
18117
18117
|
if (e.style.hasOwnProperty(a) && t.style[a] !== e.style[a])
|
|
18118
18118
|
return !1;
|
|
18119
18119
|
return !0;
|
|
18120
|
-
},
|
|
18120
|
+
}, Oc = (t) => {
|
|
18121
18121
|
for (var e = 0; e < t.length - 1; e++) {
|
|
18122
18122
|
var r = t[e], n = t[e + 1];
|
|
18123
|
-
r instanceof et && n instanceof et &&
|
|
18123
|
+
r instanceof et && n instanceof et && Ac(r, n) && (r.text += n.text, r.height = Math.max(r.height, n.height), r.depth = Math.max(r.depth, n.depth), r.italic = n.italic, t.splice(e + 1, 1), e--);
|
|
18124
18124
|
}
|
|
18125
18125
|
return t;
|
|
18126
18126
|
}, K0 = function(e) {
|
|
@@ -18132,18 +18132,18 @@ var Rr = [
|
|
|
18132
18132
|
}, Ge = function(e, r, n, a) {
|
|
18133
18133
|
var i = new pr(e, r, n, a);
|
|
18134
18134
|
return K0(i), i;
|
|
18135
|
-
},
|
|
18135
|
+
}, ii = (t, e, r, n) => new pr(t, e, r, n), Rc = function(e, r, n) {
|
|
18136
18136
|
var a = Ge([e], [], r);
|
|
18137
18137
|
return a.height = Math.max(n || r.fontMetrics().defaultRuleThickness, r.minRuleThickness), a.style.borderBottomWidth = I(a.height), a.maxFontSize = 1, a;
|
|
18138
|
-
},
|
|
18138
|
+
}, Cc = function(e, r, n, a) {
|
|
18139
18139
|
var i = new G0(e, r, n, a);
|
|
18140
18140
|
return K0(i), i;
|
|
18141
|
-
},
|
|
18141
|
+
}, si = function(e) {
|
|
18142
18142
|
var r = new hr(e);
|
|
18143
18143
|
return K0(r), r;
|
|
18144
|
-
},
|
|
18144
|
+
}, Ic = function(e, r) {
|
|
18145
18145
|
return e instanceof hr ? Ge([], [e], r) : e;
|
|
18146
|
-
},
|
|
18146
|
+
}, Dc = function(e) {
|
|
18147
18147
|
if (e.positionType === "individualShift") {
|
|
18148
18148
|
for (var r = e.children, n = [r[0]], a = -r[0].shift - r[0].elem.depth, i = a, o = 1; o < r.length; o++) {
|
|
18149
18149
|
var c = -r[o].shift - i - r[o].elem.depth, u = c - (r[o - 1].elem.height + r[o - 1].elem.depth);
|
|
@@ -18181,11 +18181,11 @@ var Rr = [
|
|
|
18181
18181
|
children: e.children,
|
|
18182
18182
|
depth: m
|
|
18183
18183
|
};
|
|
18184
|
-
},
|
|
18184
|
+
}, Lc = function(e, r) {
|
|
18185
18185
|
for (var {
|
|
18186
18186
|
children: n,
|
|
18187
18187
|
depth: a
|
|
18188
|
-
} =
|
|
18188
|
+
} = Dc(e), i = 0, o = 0; o < n.length; o++) {
|
|
18189
18189
|
var c = n[o];
|
|
18190
18190
|
if (c.type === "elem") {
|
|
18191
18191
|
var u = c.elem;
|
|
@@ -18217,7 +18217,7 @@ var Rr = [
|
|
|
18217
18217
|
F = [Ge(["vlist-r"], [L])];
|
|
18218
18218
|
var K = Ge(["vlist-t"], F);
|
|
18219
18219
|
return F.length === 2 && K.classes.push("vlist-t2"), K.height = v, K.depth = -f, K;
|
|
18220
|
-
},
|
|
18220
|
+
}, Bc = (t, e) => {
|
|
18221
18221
|
var r = Ge(["mspace"], [], e), n = Ne(t, e);
|
|
18222
18222
|
return r.style.marginRight = I(n), r;
|
|
18223
18223
|
}, Cr = function(e, r, n) {
|
|
@@ -18240,7 +18240,7 @@ var Rr = [
|
|
|
18240
18240
|
}
|
|
18241
18241
|
var i;
|
|
18242
18242
|
return r === "textbf" && n === "textit" ? i = "BoldItalic" : r === "textbf" ? i = "Bold" : r === "textit" ? i = "Italic" : i = "Regular", a + "-" + i;
|
|
18243
|
-
},
|
|
18243
|
+
}, oi = {
|
|
18244
18244
|
// styles
|
|
18245
18245
|
mathbf: {
|
|
18246
18246
|
variant: "bold",
|
|
@@ -18290,7 +18290,7 @@ var Rr = [
|
|
|
18290
18290
|
variant: "monospace",
|
|
18291
18291
|
fontName: "Typewriter-Regular"
|
|
18292
18292
|
}
|
|
18293
|
-
},
|
|
18293
|
+
}, li = {
|
|
18294
18294
|
// path, width, height
|
|
18295
18295
|
vec: ["vec", 0.471, 0.714],
|
|
18296
18296
|
// values from the font glyph
|
|
@@ -18299,32 +18299,32 @@ var Rr = [
|
|
|
18299
18299
|
oiintSize2: ["oiintSize2", 1.472, 0.659],
|
|
18300
18300
|
oiiintSize1: ["oiiintSize1", 1.304, 0.499],
|
|
18301
18301
|
oiiintSize2: ["oiiintSize2", 1.98, 0.659]
|
|
18302
|
-
},
|
|
18303
|
-
var [n, a, i] =
|
|
18302
|
+
}, zc = function(e, r) {
|
|
18303
|
+
var [n, a, i] = li[e], o = new It(n), c = new _t([o], {
|
|
18304
18304
|
width: I(a),
|
|
18305
18305
|
height: I(i),
|
|
18306
18306
|
// Override CSS rule `.katex svg { width: 100% }`
|
|
18307
18307
|
style: "width:" + I(a),
|
|
18308
18308
|
viewBox: "0 0 " + 1e3 * a + " " + 1e3 * i,
|
|
18309
18309
|
preserveAspectRatio: "xMinYMin"
|
|
18310
|
-
}), u =
|
|
18310
|
+
}), u = ii(["overlay"], [c], r);
|
|
18311
18311
|
return u.height = i, u.style.height = I(i), u.style.width = I(a), u;
|
|
18312
18312
|
}, S = {
|
|
18313
|
-
fontMap:
|
|
18313
|
+
fontMap: oi,
|
|
18314
18314
|
makeSymbol: st,
|
|
18315
|
-
mathsym:
|
|
18315
|
+
mathsym: kc,
|
|
18316
18316
|
makeSpan: Ge,
|
|
18317
|
-
makeSvgSpan:
|
|
18318
|
-
makeLineSpan:
|
|
18319
|
-
makeAnchor:
|
|
18320
|
-
makeFragment:
|
|
18321
|
-
wrapFragment:
|
|
18322
|
-
makeVList:
|
|
18323
|
-
makeOrd:
|
|
18324
|
-
makeGlue:
|
|
18325
|
-
staticSvg:
|
|
18326
|
-
svgData:
|
|
18327
|
-
tryCombineChars:
|
|
18317
|
+
makeSvgSpan: ii,
|
|
18318
|
+
makeLineSpan: Rc,
|
|
18319
|
+
makeAnchor: Cc,
|
|
18320
|
+
makeFragment: si,
|
|
18321
|
+
wrapFragment: Ic,
|
|
18322
|
+
makeVList: Lc,
|
|
18323
|
+
makeOrd: Mc,
|
|
18324
|
+
makeGlue: Bc,
|
|
18325
|
+
staticSvg: zc,
|
|
18326
|
+
svgData: li,
|
|
18327
|
+
tryCombineChars: Oc
|
|
18328
18328
|
}, Se = {
|
|
18329
18329
|
number: 3,
|
|
18330
18330
|
unit: "mu"
|
|
@@ -18334,7 +18334,7 @@ var Rr = [
|
|
|
18334
18334
|
}, vt = {
|
|
18335
18335
|
number: 5,
|
|
18336
18336
|
unit: "mu"
|
|
18337
|
-
},
|
|
18337
|
+
}, Pc = {
|
|
18338
18338
|
mord: {
|
|
18339
18339
|
mop: Se,
|
|
18340
18340
|
mbin: Ht,
|
|
@@ -18384,7 +18384,7 @@ var Rr = [
|
|
|
18384
18384
|
mpunct: Se,
|
|
18385
18385
|
minner: Se
|
|
18386
18386
|
}
|
|
18387
|
-
},
|
|
18387
|
+
}, Fc = {
|
|
18388
18388
|
mord: {
|
|
18389
18389
|
mop: Se
|
|
18390
18390
|
},
|
|
@@ -18402,7 +18402,7 @@ var Rr = [
|
|
|
18402
18402
|
minner: {
|
|
18403
18403
|
mop: Se
|
|
18404
18404
|
}
|
|
18405
|
-
},
|
|
18405
|
+
}, ci = {}, $r = {}, Gr = {};
|
|
18406
18406
|
function P(t) {
|
|
18407
18407
|
for (var {
|
|
18408
18408
|
type: e,
|
|
@@ -18423,7 +18423,7 @@ function P(t) {
|
|
|
18423
18423
|
primitive: !!n.primitive,
|
|
18424
18424
|
handler: a
|
|
18425
18425
|
}, u = 0; u < r.length; ++u)
|
|
18426
|
-
|
|
18426
|
+
ci[r[u]] = c;
|
|
18427
18427
|
e && (i && ($r[e] = i), o && (Gr[e] = o));
|
|
18428
18428
|
}
|
|
18429
18429
|
function Kt(t) {
|
|
@@ -18449,12 +18449,12 @@ var Kr = function(e) {
|
|
|
18449
18449
|
return e.type === "ordgroup" && e.body.length === 1 ? e.body[0] : e;
|
|
18450
18450
|
}, Oe = function(e) {
|
|
18451
18451
|
return e.type === "ordgroup" ? e.body : [e];
|
|
18452
|
-
}, St = S.makeSpan,
|
|
18452
|
+
}, St = S.makeSpan, Uc = ["leftmost", "mbin", "mopen", "mrel", "mop", "mpunct"], qc = ["rightmost", "mrel", "mclose", "mpunct"], Hc = {
|
|
18453
18453
|
display: X.DISPLAY,
|
|
18454
18454
|
text: X.TEXT,
|
|
18455
18455
|
script: X.SCRIPT,
|
|
18456
18456
|
scriptscript: X.SCRIPTSCRIPT
|
|
18457
|
-
},
|
|
18457
|
+
}, $c = {
|
|
18458
18458
|
mord: "mord",
|
|
18459
18459
|
mop: "mop",
|
|
18460
18460
|
mbin: "mbin",
|
|
@@ -18478,16 +18478,16 @@ var Kr = function(e) {
|
|
|
18478
18478
|
var m = r;
|
|
18479
18479
|
if (e.length === 1) {
|
|
18480
18480
|
var p = e[0];
|
|
18481
|
-
p.type === "sizing" ? m = r.havingSize(p.size) : p.type === "styling" && (m = r.havingStyle(
|
|
18481
|
+
p.type === "sizing" ? m = r.havingSize(p.size) : p.type === "styling" && (m = r.havingStyle(Hc[p.style]));
|
|
18482
18482
|
}
|
|
18483
18483
|
var f = St([a[0] || "leftmost"], [], r), v = St([a[1] || "rightmost"], [], r), w = n === "root";
|
|
18484
18484
|
return Jn(i, (_, x) => {
|
|
18485
18485
|
var N = x.classes[0], M = _.classes[0];
|
|
18486
|
-
N === "mbin" && W.contains(
|
|
18486
|
+
N === "mbin" && W.contains(qc, M) ? x.classes[0] = "mord" : M === "mbin" && W.contains(Uc, N) && (_.classes[0] = "mord");
|
|
18487
18487
|
}, {
|
|
18488
18488
|
node: f
|
|
18489
18489
|
}, v, w), Jn(i, (_, x) => {
|
|
18490
|
-
var N = I0(x), M = I0(_), k = N && M ? _.hasClass("mtight") ?
|
|
18490
|
+
var N = I0(x), M = I0(_), k = N && M ? _.hasClass("mtight") ? Fc[N][M] : Pc[N][M] : null;
|
|
18491
18491
|
if (k)
|
|
18492
18492
|
return S.makeGlue(k, m);
|
|
18493
18493
|
}, {
|
|
@@ -18496,7 +18496,7 @@ var Kr = function(e) {
|
|
|
18496
18496
|
}, Jn = function t(e, r, n, a, i) {
|
|
18497
18497
|
a && e.push(a);
|
|
18498
18498
|
for (var o = 0; o < e.length; o++) {
|
|
18499
|
-
var c = e[o], u =
|
|
18499
|
+
var c = e[o], u = ui(c);
|
|
18500
18500
|
if (u) {
|
|
18501
18501
|
t(u.children, r, n, null, i);
|
|
18502
18502
|
continue;
|
|
@@ -18511,10 +18511,10 @@ var Kr = function(e) {
|
|
|
18511
18511
|
})(o);
|
|
18512
18512
|
}
|
|
18513
18513
|
a && e.pop();
|
|
18514
|
-
},
|
|
18514
|
+
}, ui = function(e) {
|
|
18515
18515
|
return e instanceof hr || e instanceof G0 || e instanceof pr && e.hasClass("enclosing") ? e : null;
|
|
18516
|
-
},
|
|
18517
|
-
var n =
|
|
18516
|
+
}, Gc = function t(e, r) {
|
|
18517
|
+
var n = ui(e);
|
|
18518
18518
|
if (n) {
|
|
18519
18519
|
var a = n.children;
|
|
18520
18520
|
if (a.length) {
|
|
@@ -18526,7 +18526,7 @@ var Kr = function(e) {
|
|
|
18526
18526
|
}
|
|
18527
18527
|
return e;
|
|
18528
18528
|
}, I0 = function(e, r) {
|
|
18529
|
-
return e ? (r && (e =
|
|
18529
|
+
return e ? (r && (e = Gc(e, r)), $c[e.classes[0]] || null) : null;
|
|
18530
18530
|
}, mr = function(e, r) {
|
|
18531
18531
|
var n = ["nulldelimiter"].concat(e.baseSizingClasses());
|
|
18532
18532
|
return St(r.concat(n));
|
|
@@ -18569,7 +18569,7 @@ function D0(t, e) {
|
|
|
18569
18569
|
}
|
|
18570
18570
|
return p;
|
|
18571
18571
|
}
|
|
18572
|
-
function
|
|
18572
|
+
function di(t) {
|
|
18573
18573
|
return new hr(t);
|
|
18574
18574
|
}
|
|
18575
18575
|
class Qe {
|
|
@@ -18645,7 +18645,7 @@ class cr {
|
|
|
18645
18645
|
return this.text;
|
|
18646
18646
|
}
|
|
18647
18647
|
}
|
|
18648
|
-
class
|
|
18648
|
+
class Kc {
|
|
18649
18649
|
/**
|
|
18650
18650
|
* Create a Space node with width given in CSS ems.
|
|
18651
18651
|
*/
|
|
@@ -18677,10 +18677,10 @@ class $c {
|
|
|
18677
18677
|
var O = {
|
|
18678
18678
|
MathNode: Qe,
|
|
18679
18679
|
TextNode: cr,
|
|
18680
|
-
SpaceNode:
|
|
18681
|
-
newDocumentFragment:
|
|
18680
|
+
SpaceNode: Kc,
|
|
18681
|
+
newDocumentFragment: di
|
|
18682
18682
|
}, tt = function(e, r, n) {
|
|
18683
|
-
return ge[r][e] && ge[r][e].replace && e.charCodeAt(0) !== 55349 && !(
|
|
18683
|
+
return ge[r][e] && ge[r][e].replace && e.charCodeAt(0) !== 55349 && !(ai.hasOwnProperty(e) && n && (n.fontFamily && n.fontFamily.slice(4, 6) === "tt" || n.font && n.font.slice(4, 6) === "tt")) && (e = ge[r][e].replace), new O.TextNode(e);
|
|
18684
18684
|
}, V0 = function(e) {
|
|
18685
18685
|
return e.length === 1 ? e[0] : new O.MathNode("mrow", e);
|
|
18686
18686
|
}, W0 = function(e, r) {
|
|
@@ -18720,7 +18720,7 @@ var O = {
|
|
|
18720
18720
|
ge[a][i] && ge[a][i].replace && (i = ge[a][i].replace);
|
|
18721
18721
|
var o = S.fontMap[n].fontName;
|
|
18722
18722
|
return $0(i, o, a) ? S.fontMap[n].variant : null;
|
|
18723
|
-
},
|
|
18723
|
+
}, We = function(e, r, n) {
|
|
18724
18724
|
if (e.length === 1) {
|
|
18725
18725
|
var a = pe(e[0], r);
|
|
18726
18726
|
return n && a instanceof Qe && a.type === "mo" && (a.setAttribute("lspace", "0em"), a.setAttribute("rspace", "0em")), [a];
|
|
@@ -18752,7 +18752,7 @@ var O = {
|
|
|
18752
18752
|
}
|
|
18753
18753
|
return i;
|
|
18754
18754
|
}, Dt = function(e, r, n) {
|
|
18755
|
-
return V0(
|
|
18755
|
+
return V0(We(e, r, n));
|
|
18756
18756
|
}, pe = function(e, r) {
|
|
18757
18757
|
if (!e)
|
|
18758
18758
|
return new O.MathNode("mrow");
|
|
@@ -18763,7 +18763,7 @@ var O = {
|
|
|
18763
18763
|
throw new R("Got group of unknown type: '" + e.type + "'");
|
|
18764
18764
|
};
|
|
18765
18765
|
function jn(t, e, r, n, a) {
|
|
18766
|
-
var i =
|
|
18766
|
+
var i = We(t, r), o;
|
|
18767
18767
|
i.length === 1 && i[0] instanceof Qe && W.contains(["mrow", "mtable"], i[0].type) ? o = i[0] : o = new O.MathNode("mrow", i);
|
|
18768
18768
|
var c = new O.MathNode("annotation", [new O.TextNode(e)]);
|
|
18769
18769
|
c.setAttribute("encoding", "application/x-tex");
|
|
@@ -18772,20 +18772,20 @@ function jn(t, e, r, n, a) {
|
|
|
18772
18772
|
var p = a ? "katex" : "katex-mathml";
|
|
18773
18773
|
return S.makeSpan([p], [m]);
|
|
18774
18774
|
}
|
|
18775
|
-
var
|
|
18775
|
+
var mi = function(e) {
|
|
18776
18776
|
return new wt({
|
|
18777
18777
|
style: e.displayMode ? X.DISPLAY : X.TEXT,
|
|
18778
18778
|
maxSize: e.maxSize,
|
|
18779
18779
|
minRuleThickness: e.minRuleThickness
|
|
18780
18780
|
});
|
|
18781
|
-
},
|
|
18781
|
+
}, hi = function(e, r) {
|
|
18782
18782
|
if (r.displayMode) {
|
|
18783
18783
|
var n = ["katex-display"];
|
|
18784
18784
|
r.leqno && n.push("leqno"), r.fleqn && n.push("fleqn"), e = S.makeSpan(n, [e]);
|
|
18785
18785
|
}
|
|
18786
18786
|
return e;
|
|
18787
|
-
},
|
|
18788
|
-
var a =
|
|
18787
|
+
}, Vc = function(e, r, n) {
|
|
18788
|
+
var a = mi(n), i;
|
|
18789
18789
|
if (n.output === "mathml")
|
|
18790
18790
|
return jn(e, r, a, n.displayMode, !0);
|
|
18791
18791
|
if (n.output === "html") {
|
|
@@ -18795,11 +18795,11 @@ var di = function(e) {
|
|
|
18795
18795
|
var c = jn(e, r, a, n.displayMode, !1), u = D0(e, a);
|
|
18796
18796
|
i = S.makeSpan(["katex"], [c, u]);
|
|
18797
18797
|
}
|
|
18798
|
-
return
|
|
18799
|
-
},
|
|
18800
|
-
var a =
|
|
18801
|
-
return
|
|
18802
|
-
},
|
|
18798
|
+
return hi(i, n);
|
|
18799
|
+
}, Wc = function(e, r, n) {
|
|
18800
|
+
var a = mi(n), i = D0(e, a), o = S.makeSpan(["katex"], [i]);
|
|
18801
|
+
return hi(o, n);
|
|
18802
|
+
}, Yc = {
|
|
18803
18803
|
widehat: "^",
|
|
18804
18804
|
widecheck: "ˇ",
|
|
18805
18805
|
widetilde: "~",
|
|
@@ -18844,10 +18844,10 @@ var di = function(e) {
|
|
|
18844
18844
|
"\\cdrightarrow": "→",
|
|
18845
18845
|
"\\cdleftarrow": "←",
|
|
18846
18846
|
"\\cdlongequal": "="
|
|
18847
|
-
},
|
|
18848
|
-
var r = new O.MathNode("mo", [new O.TextNode(
|
|
18847
|
+
}, Zc = function(e) {
|
|
18848
|
+
var r = new O.MathNode("mo", [new O.TextNode(Yc[e.replace(/^\\/, "")])]);
|
|
18849
18849
|
return r.setAttribute("stretchy", "true"), r;
|
|
18850
|
-
},
|
|
18850
|
+
}, Xc = {
|
|
18851
18851
|
// path(s), minWidth, height, align
|
|
18852
18852
|
overrightarrow: [["rightarrow"], 0.888, 522, "xMaxYMin"],
|
|
18853
18853
|
overleftarrow: [["leftarrow"], 0.888, 522, "xMinYMin"],
|
|
@@ -18894,13 +18894,13 @@ var di = function(e) {
|
|
|
18894
18894
|
xrightleftarrows: [["baraboveleftarrow", "rightarrowabovebar"], 1.75, 901],
|
|
18895
18895
|
xrightequilibrium: [["baraboveshortleftharpoon", "rightharpoonaboveshortbar"], 1.75, 716],
|
|
18896
18896
|
xleftequilibrium: [["shortbaraboveleftharpoon", "shortrightharpoonabovebar"], 1.75, 716]
|
|
18897
|
-
},
|
|
18897
|
+
}, Qc = function(e) {
|
|
18898
18898
|
return e.type === "ordgroup" ? e.body.length : 1;
|
|
18899
|
-
},
|
|
18899
|
+
}, Jc = function(e, r) {
|
|
18900
18900
|
function n() {
|
|
18901
18901
|
var c = 4e5, u = e.label.slice(1);
|
|
18902
18902
|
if (W.contains(["widehat", "widecheck", "widetilde", "utilde"], u)) {
|
|
18903
|
-
var m = e, p =
|
|
18903
|
+
var m = e, p = Qc(m.base), f, v, w;
|
|
18904
18904
|
if (p > 5)
|
|
18905
18905
|
u === "widehat" || u === "widecheck" ? (f = 420, c = 2364, w = 0.42, v = u + "4") : (f = 312, c = 2340, w = 0.34, v = "tilde4");
|
|
18906
18906
|
else {
|
|
@@ -18919,7 +18919,7 @@ var di = function(e) {
|
|
|
18919
18919
|
height: w
|
|
18920
18920
|
};
|
|
18921
18921
|
} else {
|
|
18922
|
-
var M = [], k =
|
|
18922
|
+
var M = [], k = Xc[u], [D, L, F] = k, q = F / 1e3, $ = D.length, Q, K;
|
|
18923
18923
|
if ($ === 1) {
|
|
18924
18924
|
var Ee = k[3];
|
|
18925
18925
|
Q = ["hide-tail"], K = [Ee];
|
|
@@ -18958,7 +18958,7 @@ var di = function(e) {
|
|
|
18958
18958
|
height: o
|
|
18959
18959
|
} = n();
|
|
18960
18960
|
return a.height = o, a.style.height = I(o), i > 0 && (a.style.minWidth = I(i)), a;
|
|
18961
|
-
},
|
|
18961
|
+
}, jc = function(e, r, n, a, i) {
|
|
18962
18962
|
var o, c = e.height + e.depth + n + a;
|
|
18963
18963
|
if (/fbox|color|angl/.test(r)) {
|
|
18964
18964
|
if (o = S.makeSpan(["stretchy", r], [], i), r === "fbox") {
|
|
@@ -18988,9 +18988,9 @@ var di = function(e) {
|
|
|
18988
18988
|
}
|
|
18989
18989
|
return o.height = c, o.style.height = I(c), o;
|
|
18990
18990
|
}, Nt = {
|
|
18991
|
-
encloseSpan:
|
|
18992
|
-
mathMLnode:
|
|
18993
|
-
svgSpan:
|
|
18991
|
+
encloseSpan: jc,
|
|
18992
|
+
mathMLnode: Zc,
|
|
18993
|
+
svgSpan: Jc
|
|
18994
18994
|
};
|
|
18995
18995
|
function re(t, e) {
|
|
18996
18996
|
if (!t || t.type !== e)
|
|
@@ -19004,11 +19004,11 @@ function Y0(t) {
|
|
|
19004
19004
|
return e;
|
|
19005
19005
|
}
|
|
19006
19006
|
function Yr(t) {
|
|
19007
|
-
return t && (t.type === "atom" ||
|
|
19007
|
+
return t && (t.type === "atom" || Sc.hasOwnProperty(t.type)) ? t : null;
|
|
19008
19008
|
}
|
|
19009
19009
|
var Z0 = (t, e) => {
|
|
19010
19010
|
var r, n, a;
|
|
19011
|
-
t && t.type === "supsub" ? (n = re(t.base, "accent"), r = n.base, t.base = r, a =
|
|
19011
|
+
t && t.type === "supsub" ? (n = re(t.base, "accent"), r = n.base, t.base = r, a = xc(oe(t, e)), t.base = n) : (n = re(t, "accent"), r = n.base);
|
|
19012
19012
|
var i = oe(r, e.havingCrampedStyle()), o = n.isShifty && W.isCharacterBox(r), c = 0;
|
|
19013
19013
|
if (o) {
|
|
19014
19014
|
var u = W.getBaseElem(r), m = oe(u, e.havingCrampedStyle());
|
|
@@ -19056,10 +19056,10 @@ var Z0 = (t, e) => {
|
|
|
19056
19056
|
}
|
|
19057
19057
|
var M = S.makeSpan(["mord", "accent"], [v], e);
|
|
19058
19058
|
return a ? (a.children[0] = M, a.height = Math.max(M.height, a.height), a.classes[0] = "mord", a) : M;
|
|
19059
|
-
},
|
|
19059
|
+
}, pi = (t, e) => {
|
|
19060
19060
|
var r = t.isStretchy ? Nt.mathMLnode(t.label) : new O.MathNode("mo", [tt(t.label, t.mode)]), n = new O.MathNode("mover", [pe(t.base, e), r]);
|
|
19061
19061
|
return n.setAttribute("accent", "true"), n;
|
|
19062
|
-
},
|
|
19062
|
+
}, eu = new RegExp(["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring"].map((t) => "\\" + t).join("|"));
|
|
19063
19063
|
P({
|
|
19064
19064
|
type: "accent",
|
|
19065
19065
|
names: ["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring", "\\widecheck", "\\widehat", "\\widetilde", "\\overrightarrow", "\\overleftarrow", "\\Overrightarrow", "\\overleftrightarrow", "\\overgroup", "\\overlinesegment", "\\overleftharpoon", "\\overrightharpoon"],
|
|
@@ -19067,7 +19067,7 @@ P({
|
|
|
19067
19067
|
numArgs: 1
|
|
19068
19068
|
},
|
|
19069
19069
|
handler: (t, e) => {
|
|
19070
|
-
var r = Kr(e[0]), n = !
|
|
19070
|
+
var r = Kr(e[0]), n = !eu.test(t.funcName), a = !n || t.funcName === "\\widehat" || t.funcName === "\\widetilde" || t.funcName === "\\widecheck";
|
|
19071
19071
|
return {
|
|
19072
19072
|
type: "accent",
|
|
19073
19073
|
mode: t.parser.mode,
|
|
@@ -19078,7 +19078,7 @@ P({
|
|
|
19078
19078
|
};
|
|
19079
19079
|
},
|
|
19080
19080
|
htmlBuilder: Z0,
|
|
19081
|
-
mathmlBuilder:
|
|
19081
|
+
mathmlBuilder: pi
|
|
19082
19082
|
});
|
|
19083
19083
|
P({
|
|
19084
19084
|
type: "accent",
|
|
@@ -19102,7 +19102,7 @@ P({
|
|
|
19102
19102
|
};
|
|
19103
19103
|
},
|
|
19104
19104
|
htmlBuilder: Z0,
|
|
19105
|
-
mathmlBuilder:
|
|
19105
|
+
mathmlBuilder: pi
|
|
19106
19106
|
});
|
|
19107
19107
|
P({
|
|
19108
19108
|
type: "accentUnder",
|
|
@@ -19260,13 +19260,13 @@ P({
|
|
|
19260
19260
|
return n;
|
|
19261
19261
|
}
|
|
19262
19262
|
});
|
|
19263
|
-
var
|
|
19264
|
-
function
|
|
19263
|
+
var tu = S.makeSpan;
|
|
19264
|
+
function fi(t, e) {
|
|
19265
19265
|
var r = De(t.body, e, !0);
|
|
19266
|
-
return
|
|
19266
|
+
return tu([t.mclass], r, e);
|
|
19267
19267
|
}
|
|
19268
|
-
function
|
|
19269
|
-
var r, n =
|
|
19268
|
+
function gi(t, e) {
|
|
19269
|
+
var r, n = We(t.body, e);
|
|
19270
19270
|
return t.mclass === "minner" ? r = new O.MathNode("mpadded", n) : t.mclass === "mord" ? t.isCharacterBox ? (r = n[0], r.type = "mi") : r = new O.MathNode("mi", n) : (t.isCharacterBox ? (r = n[0], r.type = "mo") : r = new O.MathNode("mo", n), t.mclass === "mbin" ? (r.attributes.lspace = "0.22em", r.attributes.rspace = "0.22em") : t.mclass === "mpunct" ? (r.attributes.lspace = "0em", r.attributes.rspace = "0.17em") : t.mclass === "mopen" || t.mclass === "mclose" ? (r.attributes.lspace = "0em", r.attributes.rspace = "0em") : t.mclass === "minner" && (r.attributes.lspace = "0.0556em", r.attributes.width = "+0.1111em")), r;
|
|
19271
19271
|
}
|
|
19272
19272
|
P({
|
|
@@ -19290,8 +19290,8 @@ P({
|
|
|
19290
19290
|
isCharacterBox: W.isCharacterBox(a)
|
|
19291
19291
|
};
|
|
19292
19292
|
},
|
|
19293
|
-
htmlBuilder:
|
|
19294
|
-
mathmlBuilder:
|
|
19293
|
+
htmlBuilder: fi,
|
|
19294
|
+
mathmlBuilder: gi
|
|
19295
19295
|
});
|
|
19296
19296
|
var Zr = (t) => {
|
|
19297
19297
|
var e = t.type === "ordgroup" && t.body.length ? t.body[0] : t;
|
|
@@ -19352,8 +19352,8 @@ P({
|
|
|
19352
19352
|
isCharacterBox: W.isCharacterBox(u)
|
|
19353
19353
|
};
|
|
19354
19354
|
},
|
|
19355
|
-
htmlBuilder:
|
|
19356
|
-
mathmlBuilder:
|
|
19355
|
+
htmlBuilder: fi,
|
|
19356
|
+
mathmlBuilder: gi
|
|
19357
19357
|
});
|
|
19358
19358
|
P({
|
|
19359
19359
|
type: "pmb",
|
|
@@ -19378,11 +19378,11 @@ P({
|
|
|
19378
19378
|
return n.style.textShadow = "0.02em 0.01em 0.04px", n;
|
|
19379
19379
|
},
|
|
19380
19380
|
mathmlBuilder(t, e) {
|
|
19381
|
-
var r =
|
|
19381
|
+
var r = We(t.body, e), n = new O.MathNode("mstyle", r);
|
|
19382
19382
|
return n.setAttribute("style", "text-shadow: 0.02em 0.01em 0.04px"), n;
|
|
19383
19383
|
}
|
|
19384
19384
|
});
|
|
19385
|
-
var
|
|
19385
|
+
var ru = {
|
|
19386
19386
|
">": "\\\\cdrightarrow",
|
|
19387
19387
|
"<": "\\\\cdleftarrow",
|
|
19388
19388
|
"=": "\\\\cdlongequal",
|
|
@@ -19395,9 +19395,9 @@ var eu = {
|
|
|
19395
19395
|
body: [],
|
|
19396
19396
|
mode: "math",
|
|
19397
19397
|
style: "display"
|
|
19398
|
-
}), ta = (t) => t.type === "textord" && t.text === "@",
|
|
19399
|
-
function
|
|
19400
|
-
var n =
|
|
19398
|
+
}), ta = (t) => t.type === "textord" && t.text === "@", nu = (t, e) => (t.type === "mathord" || t.type === "atom") && t.text === e;
|
|
19399
|
+
function au(t, e, r) {
|
|
19400
|
+
var n = ru[t];
|
|
19401
19401
|
switch (n) {
|
|
19402
19402
|
case "\\\\cdrightarrow":
|
|
19403
19403
|
case "\\\\cdleftarrow":
|
|
@@ -19434,7 +19434,7 @@ function ru(t, e, r) {
|
|
|
19434
19434
|
};
|
|
19435
19435
|
}
|
|
19436
19436
|
}
|
|
19437
|
-
function
|
|
19437
|
+
function iu(t) {
|
|
19438
19438
|
var e = [];
|
|
19439
19439
|
for (t.gullet.beginGroup(), t.gullet.macros.set("\\cr", "\\\\\\relax"), t.gullet.beginGroup(); ; ) {
|
|
19440
19440
|
e.push(t.parseExpression(!1, "\\\\")), t.gullet.endGroup(), t.gullet.beginGroup();
|
|
@@ -19465,7 +19465,7 @@ function nu(t) {
|
|
|
19465
19465
|
}, !("=|.".indexOf(m) > -1)) if ("<>AV".indexOf(m) > -1)
|
|
19466
19466
|
for (var f = 0; f < 2; f++) {
|
|
19467
19467
|
for (var v = !0, w = u + 1; w < o.length; w++) {
|
|
19468
|
-
if (
|
|
19468
|
+
if (nu(o[w], m)) {
|
|
19469
19469
|
v = !1, u = w;
|
|
19470
19470
|
break;
|
|
19471
19471
|
}
|
|
@@ -19478,7 +19478,7 @@ function nu(t) {
|
|
|
19478
19478
|
}
|
|
19479
19479
|
else
|
|
19480
19480
|
throw new R('Expected one of "<>AV=|." after @', o[u]);
|
|
19481
|
-
var _ =
|
|
19481
|
+
var _ = au(m, p, t), x = {
|
|
19482
19482
|
type: "styling",
|
|
19483
19483
|
body: [_],
|
|
19484
19484
|
mode: "math",
|
|
@@ -19587,11 +19587,11 @@ P({
|
|
|
19587
19587
|
};
|
|
19588
19588
|
}
|
|
19589
19589
|
});
|
|
19590
|
-
var
|
|
19590
|
+
var bi = (t, e) => {
|
|
19591
19591
|
var r = De(t.body, e.withColor(t.color), !1);
|
|
19592
19592
|
return S.makeFragment(r);
|
|
19593
|
-
},
|
|
19594
|
-
var r =
|
|
19593
|
+
}, vi = (t, e) => {
|
|
19594
|
+
var r = We(t.body, e.withColor(t.color)), n = new O.MathNode("mstyle", r);
|
|
19595
19595
|
return n.setAttribute("mathcolor", t.color), n;
|
|
19596
19596
|
};
|
|
19597
19597
|
P({
|
|
@@ -19613,8 +19613,8 @@ P({
|
|
|
19613
19613
|
body: Oe(a)
|
|
19614
19614
|
};
|
|
19615
19615
|
},
|
|
19616
|
-
htmlBuilder:
|
|
19617
|
-
mathmlBuilder:
|
|
19616
|
+
htmlBuilder: bi,
|
|
19617
|
+
mathmlBuilder: vi
|
|
19618
19618
|
});
|
|
19619
19619
|
P({
|
|
19620
19620
|
type: "color",
|
|
@@ -19638,8 +19638,8 @@ P({
|
|
|
19638
19638
|
body: i
|
|
19639
19639
|
};
|
|
19640
19640
|
},
|
|
19641
|
-
htmlBuilder:
|
|
19642
|
-
mathmlBuilder:
|
|
19641
|
+
htmlBuilder: bi,
|
|
19642
|
+
mathmlBuilder: vi
|
|
19643
19643
|
});
|
|
19644
19644
|
P({
|
|
19645
19645
|
type: "cr",
|
|
@@ -19681,15 +19681,15 @@ var L0 = {
|
|
|
19681
19681
|
"\\xdef": "\\xdef",
|
|
19682
19682
|
"\\let": "\\\\globallet",
|
|
19683
19683
|
"\\futurelet": "\\\\globalfuture"
|
|
19684
|
-
},
|
|
19684
|
+
}, yi = (t) => {
|
|
19685
19685
|
var e = t.text;
|
|
19686
19686
|
if (/^(?:[\\{}$&#^_]|EOF)$/.test(e))
|
|
19687
19687
|
throw new R("Expected a control sequence", t);
|
|
19688
19688
|
return e;
|
|
19689
|
-
},
|
|
19689
|
+
}, su = (t) => {
|
|
19690
19690
|
var e = t.gullet.popToken();
|
|
19691
19691
|
return e.text === "=" && (e = t.gullet.popToken(), e.text === " " && (e = t.gullet.popToken())), e;
|
|
19692
|
-
},
|
|
19692
|
+
}, wi = (t, e, r, n) => {
|
|
19693
19693
|
var a = t.gullet.macros.get(r.text);
|
|
19694
19694
|
a == null && (r.noexpand = !0, a = {
|
|
19695
19695
|
tokens: [r],
|
|
@@ -19782,10 +19782,10 @@ P({
|
|
|
19782
19782
|
var {
|
|
19783
19783
|
parser: e,
|
|
19784
19784
|
funcName: r
|
|
19785
|
-
} = t, n =
|
|
19785
|
+
} = t, n = yi(e.gullet.popToken());
|
|
19786
19786
|
e.gullet.consumeSpaces();
|
|
19787
|
-
var a =
|
|
19788
|
-
return
|
|
19787
|
+
var a = su(e);
|
|
19788
|
+
return wi(e, n, a, r === "\\\\globallet"), {
|
|
19789
19789
|
type: "internal",
|
|
19790
19790
|
mode: e.mode
|
|
19791
19791
|
};
|
|
@@ -19807,8 +19807,8 @@ P({
|
|
|
19807
19807
|
var {
|
|
19808
19808
|
parser: e,
|
|
19809
19809
|
funcName: r
|
|
19810
|
-
} = t, n =
|
|
19811
|
-
return
|
|
19810
|
+
} = t, n = yi(e.gullet.popToken()), a = e.gullet.popToken(), i = e.gullet.popToken();
|
|
19811
|
+
return wi(e, n, i, r === "\\\\globalfuture"), e.gullet.pushToken(i), e.gullet.pushToken(a), {
|
|
19812
19812
|
type: "internal",
|
|
19813
19813
|
mode: e.mode
|
|
19814
19814
|
};
|
|
@@ -19822,17 +19822,17 @@ var lr = function(e, r, n) {
|
|
|
19822
19822
|
}, X0 = function(e, r, n, a) {
|
|
19823
19823
|
var i = n.havingBaseStyle(r), o = S.makeSpan(a.concat(i.sizingClasses(n)), [e], n), c = i.sizeMultiplier / n.sizeMultiplier;
|
|
19824
19824
|
return o.height *= c, o.depth *= c, o.maxFontSize = i.sizeMultiplier, o;
|
|
19825
|
-
},
|
|
19825
|
+
}, Ei = function(e, r, n) {
|
|
19826
19826
|
var a = r.havingBaseStyle(n), i = (1 - r.sizeMultiplier / a.sizeMultiplier) * r.fontMetrics().axisHeight;
|
|
19827
19827
|
e.classes.push("delimcenter"), e.style.top = I(i), e.height -= i, e.depth += i;
|
|
19828
|
-
},
|
|
19828
|
+
}, ou = function(e, r, n, a, i, o) {
|
|
19829
19829
|
var c = S.makeSymbol(e, "Main-Regular", i, a), u = X0(c, r, a, o);
|
|
19830
|
-
return n &&
|
|
19831
|
-
},
|
|
19830
|
+
return n && Ei(u, a, r), u;
|
|
19831
|
+
}, lu = function(e, r, n, a) {
|
|
19832
19832
|
return S.makeSymbol(e, "Size" + r + "-Regular", n, a);
|
|
19833
|
-
},
|
|
19834
|
-
var c =
|
|
19835
|
-
return n &&
|
|
19833
|
+
}, xi = function(e, r, n, a, i, o) {
|
|
19834
|
+
var c = lu(e, r, i, a), u = X0(S.makeSpan(["delimsizing", "size" + r], [c], a), X.TEXT, a, o);
|
|
19835
|
+
return n && Ei(u, a, X.TEXT), u;
|
|
19836
19836
|
}, g0 = function(e, r, n) {
|
|
19837
19837
|
var a;
|
|
19838
19838
|
r === "Size1-Regular" ? a = "delim-size1" : a = "delim-size4";
|
|
@@ -19842,7 +19842,7 @@ var lr = function(e, r, n) {
|
|
|
19842
19842
|
elem: i
|
|
19843
19843
|
};
|
|
19844
19844
|
}, b0 = function(e, r, n) {
|
|
19845
|
-
var a = ht["Size4-Regular"][e.charCodeAt(0)] ? ht["Size4-Regular"][e.charCodeAt(0)][4] : ht["Size1-Regular"][e.charCodeAt(0)][4], i = new It("inner",
|
|
19845
|
+
var a = ht["Size4-Regular"][e.charCodeAt(0)] ? ht["Size4-Regular"][e.charCodeAt(0)][4] : ht["Size1-Regular"][e.charCodeAt(0)][4], i = new It("inner", pc(e, Math.round(1e3 * r))), o = new _t([i], {
|
|
19846
19846
|
width: I(a),
|
|
19847
19847
|
height: I(r),
|
|
19848
19848
|
// Override CSS rule `.katex svg { width: 100% }`
|
|
@@ -19857,11 +19857,11 @@ var lr = function(e, r, n) {
|
|
|
19857
19857
|
}, B0 = 8e-3, Lr = {
|
|
19858
19858
|
type: "kern",
|
|
19859
19859
|
size: -1 * B0
|
|
19860
|
-
},
|
|
19860
|
+
}, cu = ["|", "\\lvert", "\\rvert", "\\vert"], uu = ["\\|", "\\lVert", "\\rVert", "\\Vert"], _i = function(e, r, n, a, i, o) {
|
|
19861
19861
|
var c, u, m, p, f = "", v = 0;
|
|
19862
19862
|
c = m = p = e, u = null;
|
|
19863
19863
|
var w = "Size1-Regular";
|
|
19864
|
-
e === "\\uparrow" ? m = p = "⏐" : e === "\\Uparrow" ? m = p = "‖" : e === "\\downarrow" ? c = m = "⏐" : e === "\\Downarrow" ? c = m = "‖" : e === "\\updownarrow" ? (c = "\\uparrow", m = "⏐", p = "\\downarrow") : e === "\\Updownarrow" ? (c = "\\Uparrow", m = "‖", p = "\\Downarrow") : W.contains(
|
|
19864
|
+
e === "\\uparrow" ? m = p = "⏐" : e === "\\Uparrow" ? m = p = "‖" : e === "\\downarrow" ? c = m = "⏐" : e === "\\Downarrow" ? c = m = "‖" : e === "\\updownarrow" ? (c = "\\uparrow", m = "⏐", p = "\\downarrow") : e === "\\Updownarrow" ? (c = "\\Uparrow", m = "‖", p = "\\Downarrow") : W.contains(cu, e) ? (m = "∣", f = "vert", v = 333) : W.contains(uu, e) ? (m = "∥", f = "doublevert", v = 556) : e === "[" || e === "\\lbrack" ? (c = "⎡", m = "⎢", p = "⎣", w = "Size4-Regular", f = "lbrack", v = 667) : e === "]" || e === "\\rbrack" ? (c = "⎤", m = "⎥", p = "⎦", w = "Size4-Regular", f = "rbrack", v = 667) : e === "\\lfloor" || e === "⌊" ? (m = c = "⎢", p = "⎣", w = "Size4-Regular", f = "lfloor", v = 667) : e === "\\lceil" || e === "⌈" ? (c = "⎡", m = p = "⎢", w = "Size4-Regular", f = "lceil", v = 667) : e === "\\rfloor" || e === "⌋" ? (m = c = "⎥", p = "⎦", w = "Size4-Regular", f = "rfloor", v = 667) : e === "\\rceil" || e === "⌉" ? (c = "⎤", m = p = "⎥", w = "Size4-Regular", f = "rceil", v = 667) : e === "(" || e === "\\lparen" ? (c = "⎛", m = "⎜", p = "⎝", w = "Size4-Regular", f = "lparen", v = 875) : e === ")" || e === "\\rparen" ? (c = "⎞", m = "⎟", p = "⎠", w = "Size4-Regular", f = "rparen", v = 875) : e === "\\{" || e === "\\lbrace" ? (c = "⎧", u = "⎨", p = "⎩", m = "⎪", w = "Size4-Regular") : e === "\\}" || e === "\\rbrace" ? (c = "⎫", u = "⎬", p = "⎭", m = "⎪", w = "Size4-Regular") : e === "\\lgroup" || e === "⟮" ? (c = "⎧", p = "⎩", m = "⎪", w = "Size4-Regular") : e === "\\rgroup" || e === "⟯" ? (c = "⎫", p = "⎭", m = "⎪", w = "Size4-Regular") : e === "\\lmoustache" || e === "⎰" ? (c = "⎧", p = "⎭", m = "⎪", w = "Size4-Regular") : (e === "\\rmoustache" || e === "⎱") && (c = "⎫", p = "⎩", m = "⎪", w = "Size4-Regular");
|
|
19865
19865
|
var _ = lr(c, w, i), x = _.height + _.depth, N = lr(m, w, i), M = N.height + N.depth, k = lr(p, w, i), D = k.height + k.depth, L = 0, F = 1;
|
|
19866
19866
|
if (u !== null) {
|
|
19867
19867
|
var q = lr(u, w, i);
|
|
@@ -19871,7 +19871,7 @@ var lr = function(e, r, n) {
|
|
|
19871
19871
|
n && (Ee *= a.sizeMultiplier);
|
|
19872
19872
|
var he = K / 2 - Ee, le = [];
|
|
19873
19873
|
if (f.length > 0) {
|
|
19874
|
-
var be = K - x - D, ne = Math.round(K * 1e3), ve =
|
|
19874
|
+
var be = K - x - D, ne = Math.round(K * 1e3), ve = fc(f, Math.round(be * 1e3)), Le = new It(f, ve), Pe = (v / 1e3).toFixed(3) + "em", ie = (ne / 1e3).toFixed(3) + "em", Te = new _t([Le], {
|
|
19875
19875
|
width: Pe,
|
|
19876
19876
|
height: ie,
|
|
19877
19877
|
viewBox: "0 0 " + v + " " + ne
|
|
@@ -19897,7 +19897,7 @@ var lr = function(e, r, n) {
|
|
|
19897
19897
|
}, Ue);
|
|
19898
19898
|
return X0(S.makeSpan(["delimsizing", "mult"], [Bt], Ue), X.TEXT, a, o);
|
|
19899
19899
|
}, v0 = 80, y0 = 0.08, w0 = function(e, r, n, a, i) {
|
|
19900
|
-
var o =
|
|
19900
|
+
var o = hc(e, a, n), c = new It(e, o), u = new _t([c], {
|
|
19901
19901
|
// Note: 1000:1 ratio of viewBox to document em width.
|
|
19902
19902
|
width: "400em",
|
|
19903
19903
|
height: I(r),
|
|
@@ -19905,8 +19905,8 @@ var lr = function(e, r, n) {
|
|
|
19905
19905
|
preserveAspectRatio: "xMinYMin slice"
|
|
19906
19906
|
});
|
|
19907
19907
|
return S.makeSvgSpan(["hide-tail"], [u], i);
|
|
19908
|
-
},
|
|
19909
|
-
var n = r.havingBaseSizing(), a =
|
|
19908
|
+
}, du = function(e, r) {
|
|
19909
|
+
var n = r.havingBaseSizing(), a = Ti("\\surd", e * n.sizeMultiplier, ki, n), i = n.sizeMultiplier, o = Math.max(0, r.minRuleThickness - r.fontMetrics().sqrtRuleThickness), c, u = 0, m = 0, p = 0, f;
|
|
19910
19910
|
return a.type === "small" ? (p = 1e3 + 1e3 * o + v0, e < 1 ? i = 1 : e < 1.4 && (i = 0.7), u = (1 + o + y0) / i, m = (1 + o) / i, c = w0("sqrtMain", u, p, o, r), c.style.minWidth = "0.853em", f = 0.833 / i) : a.type === "large" ? (p = (1e3 + v0) * ur[a.size], m = (ur[a.size] + o) / i, u = (ur[a.size] + o + y0) / i, c = w0("sqrtSize" + a.size, u, p, o, r), c.style.minWidth = "1.02em", f = 1 / i) : (u = e + o + y0, m = e + o, p = Math.floor(1e3 * e + o) + v0, c = w0("sqrtTall", u, p, o, r), c.style.minWidth = "0.742em", f = 1.056), c.height = m, c.style.height = I(u), {
|
|
19911
19911
|
span: c,
|
|
19912
19912
|
advanceWidth: f,
|
|
@@ -19916,13 +19916,13 @@ var lr = function(e, r, n) {
|
|
|
19916
19916
|
// have thicker rules.
|
|
19917
19917
|
ruleWidth: (r.fontMetrics().sqrtRuleThickness + o) * i
|
|
19918
19918
|
};
|
|
19919
|
-
},
|
|
19920
|
-
if (e === "<" || e === "\\lt" || e === "⟨" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "⟩") && (e = "\\rangle"), W.contains(
|
|
19921
|
-
return
|
|
19922
|
-
if (W.contains(
|
|
19923
|
-
return
|
|
19919
|
+
}, Si = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "⌊", "⌋", "\\lceil", "\\rceil", "⌈", "⌉", "\\surd"], mu = ["\\uparrow", "\\downarrow", "\\updownarrow", "\\Uparrow", "\\Downarrow", "\\Updownarrow", "|", "\\|", "\\vert", "\\Vert", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "⟮", "⟯", "\\lmoustache", "\\rmoustache", "⎰", "⎱"], Ni = ["<", ">", "\\langle", "\\rangle", "/", "\\backslash", "\\lt", "\\gt"], ur = [0, 1.2, 1.8, 2.4, 3], hu = function(e, r, n, a, i) {
|
|
19920
|
+
if (e === "<" || e === "\\lt" || e === "⟨" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "⟩") && (e = "\\rangle"), W.contains(Si, e) || W.contains(Ni, e))
|
|
19921
|
+
return xi(e, r, !1, n, a, i);
|
|
19922
|
+
if (W.contains(mu, e))
|
|
19923
|
+
return _i(e, ur[r], !1, n, a, i);
|
|
19924
19924
|
throw new R("Illegal delimiter: '" + e + "'");
|
|
19925
|
-
},
|
|
19925
|
+
}, pu = [{
|
|
19926
19926
|
type: "small",
|
|
19927
19927
|
style: X.SCRIPTSCRIPT
|
|
19928
19928
|
}, {
|
|
@@ -19943,7 +19943,7 @@ var lr = function(e, r, n) {
|
|
|
19943
19943
|
}, {
|
|
19944
19944
|
type: "large",
|
|
19945
19945
|
size: 4
|
|
19946
|
-
}],
|
|
19946
|
+
}], fu = [{
|
|
19947
19947
|
type: "small",
|
|
19948
19948
|
style: X.SCRIPTSCRIPT
|
|
19949
19949
|
}, {
|
|
@@ -19954,7 +19954,7 @@ var lr = function(e, r, n) {
|
|
|
19954
19954
|
style: X.TEXT
|
|
19955
19955
|
}, {
|
|
19956
19956
|
type: "stack"
|
|
19957
|
-
}],
|
|
19957
|
+
}], ki = [{
|
|
19958
19958
|
type: "small",
|
|
19959
19959
|
style: X.SCRIPTSCRIPT
|
|
19960
19960
|
}, {
|
|
@@ -19977,7 +19977,7 @@ var lr = function(e, r, n) {
|
|
|
19977
19977
|
size: 4
|
|
19978
19978
|
}, {
|
|
19979
19979
|
type: "stack"
|
|
19980
|
-
}],
|
|
19980
|
+
}], gu = function(e) {
|
|
19981
19981
|
if (e.type === "small")
|
|
19982
19982
|
return "Main-Regular";
|
|
19983
19983
|
if (e.type === "large")
|
|
@@ -19985,9 +19985,9 @@ var lr = function(e, r, n) {
|
|
|
19985
19985
|
if (e.type === "stack")
|
|
19986
19986
|
return "Size4-Regular";
|
|
19987
19987
|
throw new Error("Add support for delim type '" + e.type + "' here.");
|
|
19988
|
-
},
|
|
19988
|
+
}, Ti = function(e, r, n, a) {
|
|
19989
19989
|
for (var i = Math.min(2, 3 - a.style.size), o = i; o < n.length && n[o].type !== "stack"; o++) {
|
|
19990
|
-
var c = lr(e,
|
|
19990
|
+
var c = lr(e, gu(n[o]), "math"), u = c.height + c.depth;
|
|
19991
19991
|
if (n[o].type === "small") {
|
|
19992
19992
|
var m = a.havingBaseStyle(n[o].style);
|
|
19993
19993
|
u *= m.sizeMultiplier;
|
|
@@ -19996,13 +19996,13 @@ var lr = function(e, r, n) {
|
|
|
19996
19996
|
return n[o];
|
|
19997
19997
|
}
|
|
19998
19998
|
return n[n.length - 1];
|
|
19999
|
-
},
|
|
19999
|
+
}, Mi = function(e, r, n, a, i, o) {
|
|
20000
20000
|
e === "<" || e === "\\lt" || e === "⟨" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "⟩") && (e = "\\rangle");
|
|
20001
20001
|
var c;
|
|
20002
|
-
W.contains(
|
|
20003
|
-
var u =
|
|
20004
|
-
return u.type === "small" ?
|
|
20005
|
-
},
|
|
20002
|
+
W.contains(Ni, e) ? c = pu : W.contains(Si, e) ? c = ki : c = fu;
|
|
20003
|
+
var u = Ti(e, r, c, a);
|
|
20004
|
+
return u.type === "small" ? ou(e, u.style, n, a, i, o) : u.type === "large" ? xi(e, u.size, n, a, i, o) : _i(e, r, n, a, i, o);
|
|
20005
|
+
}, bu = function(e, r, n, a, i, o) {
|
|
20006
20006
|
var c = a.fontMetrics().axisHeight * a.sizeMultiplier, u = 901, m = 5 / a.fontMetrics().ptPerEm, p = Math.max(r - c, n + c), f = Math.max(
|
|
20007
20007
|
// In real TeX, calculations are done using integral values which are
|
|
20008
20008
|
// 65536 per pt, or 655360 per em. So, the division here truncates in
|
|
@@ -20016,13 +20016,13 @@ var lr = function(e, r, n) {
|
|
|
20016
20016
|
p / 500 * u,
|
|
20017
20017
|
2 * p - m
|
|
20018
20018
|
);
|
|
20019
|
-
return
|
|
20019
|
+
return Mi(e, f, !0, a, i, o);
|
|
20020
20020
|
}, xt = {
|
|
20021
|
-
sqrtImage:
|
|
20022
|
-
sizedDelim:
|
|
20021
|
+
sqrtImage: du,
|
|
20022
|
+
sizedDelim: hu,
|
|
20023
20023
|
sizeToMaxHeight: ur,
|
|
20024
|
-
customSizedDelim:
|
|
20025
|
-
leftRightDelim:
|
|
20024
|
+
customSizedDelim: Mi,
|
|
20025
|
+
leftRightDelim: bu
|
|
20026
20026
|
}, ra = {
|
|
20027
20027
|
"\\bigl": {
|
|
20028
20028
|
mclass: "mopen",
|
|
@@ -20088,10 +20088,10 @@ var lr = function(e, r, n) {
|
|
|
20088
20088
|
mclass: "mord",
|
|
20089
20089
|
size: 4
|
|
20090
20090
|
}
|
|
20091
|
-
},
|
|
20091
|
+
}, vu = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "⌊", "⌋", "\\lceil", "\\rceil", "⌈", "⌉", "<", ">", "\\langle", "⟨", "\\rangle", "⟩", "\\lt", "\\gt", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "⟮", "⟯", "\\lmoustache", "\\rmoustache", "⎰", "⎱", "/", "\\backslash", "|", "\\vert", "\\|", "\\Vert", "\\uparrow", "\\Uparrow", "\\downarrow", "\\Downarrow", "\\updownarrow", "\\Updownarrow", "."];
|
|
20092
20092
|
function Xr(t, e) {
|
|
20093
20093
|
var r = Yr(t);
|
|
20094
|
-
if (r && W.contains(
|
|
20094
|
+
if (r && W.contains(vu, r.text))
|
|
20095
20095
|
return r;
|
|
20096
20096
|
throw r ? new R("Invalid delimiter '" + r.text + "' after '" + e.funcName + "'", t) : new R("Invalid delimiter type '" + t.type + "'", t);
|
|
20097
20097
|
}
|
|
@@ -20190,7 +20190,7 @@ P({
|
|
|
20190
20190
|
},
|
|
20191
20191
|
mathmlBuilder: (t, e) => {
|
|
20192
20192
|
na(t);
|
|
20193
|
-
var r =
|
|
20193
|
+
var r = We(t.body, e);
|
|
20194
20194
|
if (t.left !== ".") {
|
|
20195
20195
|
var n = new O.MathNode("mo", [tt(t.left, t.mode)]);
|
|
20196
20196
|
n.setAttribute("fence", "true"), r.unshift(n);
|
|
@@ -20253,7 +20253,7 @@ var Q0 = (t, e) => {
|
|
|
20253
20253
|
a = a / p.sizeMultiplier;
|
|
20254
20254
|
var f = r.height + r.depth + u + m;
|
|
20255
20255
|
r.style.paddingLeft = I(f / 2 + u);
|
|
20256
|
-
var v = Math.floor(1e3 * f * a), w =
|
|
20256
|
+
var v = Math.floor(1e3 * f * a), w = dc(v), _ = new _t([new It("phase", w)], {
|
|
20257
20257
|
width: "400em",
|
|
20258
20258
|
height: I(v / 1e3),
|
|
20259
20259
|
viewBox: "0 0 400000 " + v,
|
|
@@ -20458,7 +20458,7 @@ P({
|
|
|
20458
20458
|
};
|
|
20459
20459
|
}
|
|
20460
20460
|
});
|
|
20461
|
-
var
|
|
20461
|
+
var Ai = {};
|
|
20462
20462
|
function pt(t) {
|
|
20463
20463
|
for (var {
|
|
20464
20464
|
type: e,
|
|
@@ -20474,12 +20474,12 @@ function pt(t) {
|
|
|
20474
20474
|
numOptionalArgs: 0,
|
|
20475
20475
|
handler: a
|
|
20476
20476
|
}, u = 0; u < r.length; ++u)
|
|
20477
|
-
|
|
20477
|
+
Ai[r[u]] = c;
|
|
20478
20478
|
i && ($r[e] = i), o && (Gr[e] = o);
|
|
20479
20479
|
}
|
|
20480
|
-
var
|
|
20480
|
+
var Oi = {};
|
|
20481
20481
|
function h(t, e) {
|
|
20482
|
-
|
|
20482
|
+
Oi[t] = e;
|
|
20483
20483
|
}
|
|
20484
20484
|
function aa(t) {
|
|
20485
20485
|
var e = [];
|
|
@@ -20684,7 +20684,7 @@ var ft = function(e, r) {
|
|
|
20684
20684
|
children: Pe
|
|
20685
20685
|
}, r);
|
|
20686
20686
|
return sr = S.makeSpan(["tag"], [sr], r), S.makeFragment([u, sr]);
|
|
20687
|
-
},
|
|
20687
|
+
}, yu = {
|
|
20688
20688
|
c: "center ",
|
|
20689
20689
|
l: "left ",
|
|
20690
20690
|
r: "right "
|
|
@@ -20701,7 +20701,7 @@ var ft = function(e, r) {
|
|
|
20701
20701
|
var _ = e.cols, x = "", N = !1, M = 0, k = _.length;
|
|
20702
20702
|
_[0].type === "separator" && (v += "top ", M = 1), _[_.length - 1].type === "separator" && (v += "bottom ", k -= 1);
|
|
20703
20703
|
for (var D = M; D < k; D++)
|
|
20704
|
-
_[D].type === "align" ? (w +=
|
|
20704
|
+
_[D].type === "align" ? (w += yu[_[D].align], N && (x += "none "), N = !0) : _[D].type === "separator" && N && (x += _[D].separator === "|" ? "solid " : "dashed ", N = !1);
|
|
20705
20705
|
p.setAttribute("columnalign", w.trim()), /[sd]/.test(x) && p.setAttribute("columnlines", x.trim());
|
|
20706
20706
|
}
|
|
20707
20707
|
if (e.colSeparationType === "align") {
|
|
@@ -20714,7 +20714,7 @@ var ft = function(e, r) {
|
|
|
20714
20714
|
for (var K = 1; K < Q.length - 1; K++)
|
|
20715
20715
|
$ += Q[K].length === 0 ? "none " : Q[K][0] ? "dashed " : "solid ";
|
|
20716
20716
|
return /[sd]/.test($) && p.setAttribute("rowlines", $.trim()), v !== "" && (p = new O.MathNode("menclose", [p]), p.setAttribute("notation", v.trim())), e.arraystretch && e.arraystretch < 1 && (p = new O.MathNode("mstyle", [p]), p.setAttribute("scriptlevel", "1")), p;
|
|
20717
|
-
},
|
|
20717
|
+
}, Ri = function(e, r) {
|
|
20718
20718
|
e.envName.indexOf("ed") === -1 && Qr(e);
|
|
20719
20719
|
var n = [], a = e.envName.indexOf("at") > -1 ? "alignat" : "align", i = e.envName === "split", o = Lt(e.parser, {
|
|
20720
20720
|
cols: n,
|
|
@@ -20935,7 +20935,7 @@ pt({
|
|
|
20935
20935
|
props: {
|
|
20936
20936
|
numArgs: 0
|
|
20937
20937
|
},
|
|
20938
|
-
handler:
|
|
20938
|
+
handler: Ri,
|
|
20939
20939
|
htmlBuilder: ft,
|
|
20940
20940
|
mathmlBuilder: gt
|
|
20941
20941
|
});
|
|
@@ -20969,7 +20969,7 @@ pt({
|
|
|
20969
20969
|
props: {
|
|
20970
20970
|
numArgs: 1
|
|
20971
20971
|
},
|
|
20972
|
-
handler:
|
|
20972
|
+
handler: Ri,
|
|
20973
20973
|
htmlBuilder: ft,
|
|
20974
20974
|
mathmlBuilder: gt
|
|
20975
20975
|
});
|
|
@@ -21000,7 +21000,7 @@ pt({
|
|
|
21000
21000
|
numArgs: 0
|
|
21001
21001
|
},
|
|
21002
21002
|
handler(t) {
|
|
21003
|
-
return Qr(t),
|
|
21003
|
+
return Qr(t), iu(t.parser);
|
|
21004
21004
|
},
|
|
21005
21005
|
htmlBuilder: ft,
|
|
21006
21006
|
mathmlBuilder: gt
|
|
@@ -21020,7 +21020,7 @@ P({
|
|
|
21020
21020
|
throw new R(t.funcName + " valid only within array environment");
|
|
21021
21021
|
}
|
|
21022
21022
|
});
|
|
21023
|
-
var ia =
|
|
21023
|
+
var ia = Ai;
|
|
21024
21024
|
P({
|
|
21025
21025
|
type: "environment",
|
|
21026
21026
|
names: ["\\begin", "\\end"],
|
|
@@ -21062,10 +21062,10 @@ P({
|
|
|
21062
21062
|
};
|
|
21063
21063
|
}
|
|
21064
21064
|
});
|
|
21065
|
-
var
|
|
21065
|
+
var Ci = (t, e) => {
|
|
21066
21066
|
var r = t.font, n = e.withFont(r);
|
|
21067
21067
|
return oe(t.body, n);
|
|
21068
|
-
},
|
|
21068
|
+
}, Ii = (t, e) => {
|
|
21069
21069
|
var r = t.font, n = e.withFont(r);
|
|
21070
21070
|
return pe(t.body, n);
|
|
21071
21071
|
}, sa = {
|
|
@@ -21110,8 +21110,8 @@ P({
|
|
|
21110
21110
|
body: a
|
|
21111
21111
|
};
|
|
21112
21112
|
},
|
|
21113
|
-
htmlBuilder:
|
|
21114
|
-
mathmlBuilder:
|
|
21113
|
+
htmlBuilder: Ci,
|
|
21114
|
+
mathmlBuilder: Ii
|
|
21115
21115
|
});
|
|
21116
21116
|
P({
|
|
21117
21117
|
type: "mclass",
|
|
@@ -21163,14 +21163,14 @@ P({
|
|
|
21163
21163
|
}
|
|
21164
21164
|
};
|
|
21165
21165
|
},
|
|
21166
|
-
htmlBuilder:
|
|
21167
|
-
mathmlBuilder:
|
|
21166
|
+
htmlBuilder: Ci,
|
|
21167
|
+
mathmlBuilder: Ii
|
|
21168
21168
|
});
|
|
21169
|
-
var
|
|
21169
|
+
var Di = (t, e) => {
|
|
21170
21170
|
var r = e;
|
|
21171
21171
|
return t === "display" ? r = r.id >= X.SCRIPT.id ? r.text() : X.DISPLAY : t === "text" && r.size === X.DISPLAY.size ? r = X.TEXT : t === "script" ? r = X.SCRIPT : t === "scriptscript" && (r = X.SCRIPTSCRIPT), r;
|
|
21172
21172
|
}, tn = (t, e) => {
|
|
21173
|
-
var r =
|
|
21173
|
+
var r = Di(t.size, e.style), n = r.fracNum(), a = r.fracDen(), i;
|
|
21174
21174
|
i = e.havingStyle(n);
|
|
21175
21175
|
var o = oe(t.numer, i, e);
|
|
21176
21176
|
if (t.continued) {
|
|
@@ -21231,7 +21231,7 @@ var Ii = (t, e) => {
|
|
|
21231
21231
|
var n = Ne(t.barSize, e);
|
|
21232
21232
|
r.setAttribute("linethickness", I(n));
|
|
21233
21233
|
}
|
|
21234
|
-
var a =
|
|
21234
|
+
var a = Di(t.size, e.style);
|
|
21235
21235
|
if (a.size !== e.style.size) {
|
|
21236
21236
|
r = new O.MathNode("mstyle", [r]);
|
|
21237
21237
|
var i = a.size === X.DISPLAY.size ? "true" : "false";
|
|
@@ -21464,7 +21464,7 @@ P({
|
|
|
21464
21464
|
var {
|
|
21465
21465
|
parser: r,
|
|
21466
21466
|
funcName: n
|
|
21467
|
-
} = t, a = e[0], i =
|
|
21467
|
+
} = t, a = e[0], i = Xl(re(e[1], "infix").size), o = e[2], c = i.number > 0;
|
|
21468
21468
|
return {
|
|
21469
21469
|
type: "genfrac",
|
|
21470
21470
|
mode: r.mode,
|
|
@@ -21481,7 +21481,7 @@ P({
|
|
|
21481
21481
|
htmlBuilder: tn,
|
|
21482
21482
|
mathmlBuilder: rn
|
|
21483
21483
|
});
|
|
21484
|
-
var
|
|
21484
|
+
var Li = (t, e) => {
|
|
21485
21485
|
var r = e.style, n, a;
|
|
21486
21486
|
t.type === "supsub" ? (n = t.sup ? oe(t.sup, e.havingStyle(r.sup()), e) : oe(t.sub, e.havingStyle(r.sub()), e), a = re(t.base, "horizBrace")) : a = re(t, "horizBrace");
|
|
21487
21487
|
var i = oe(a.base, e.havingBaseStyle(X.DISPLAY)), o = Nt.svgSpan(a, e), c;
|
|
@@ -21540,7 +21540,7 @@ var Di = (t, e) => {
|
|
|
21540
21540
|
}, e);
|
|
21541
21541
|
}
|
|
21542
21542
|
return S.makeSpan(["mord", a.isOver ? "mover" : "munder"], [c], e);
|
|
21543
|
-
},
|
|
21543
|
+
}, wu = (t, e) => {
|
|
21544
21544
|
var r = Nt.mathMLnode(t.label);
|
|
21545
21545
|
return new O.MathNode(t.isOver ? "mover" : "munder", [pe(t.base, e), r]);
|
|
21546
21546
|
};
|
|
@@ -21563,8 +21563,8 @@ P({
|
|
|
21563
21563
|
base: e[0]
|
|
21564
21564
|
};
|
|
21565
21565
|
},
|
|
21566
|
-
htmlBuilder:
|
|
21567
|
-
mathmlBuilder:
|
|
21566
|
+
htmlBuilder: Li,
|
|
21567
|
+
mathmlBuilder: wu
|
|
21568
21568
|
});
|
|
21569
21569
|
P({
|
|
21570
21570
|
type: "href",
|
|
@@ -21660,7 +21660,7 @@ P({
|
|
|
21660
21660
|
return S.makeFragment(r);
|
|
21661
21661
|
},
|
|
21662
21662
|
mathmlBuilder(t, e) {
|
|
21663
|
-
return new O.MathNode("mrow",
|
|
21663
|
+
return new O.MathNode("mrow", We(t.body, e));
|
|
21664
21664
|
}
|
|
21665
21665
|
});
|
|
21666
21666
|
P({
|
|
@@ -21769,7 +21769,7 @@ var E0 = function(e) {
|
|
|
21769
21769
|
// sign + magnitude, cast to number
|
|
21770
21770
|
unit: r[3]
|
|
21771
21771
|
};
|
|
21772
|
-
if (!
|
|
21772
|
+
if (!ei(n))
|
|
21773
21773
|
throw new R("Invalid unit: '" + n.unit + "' in \\includegraphics.");
|
|
21774
21774
|
return n;
|
|
21775
21775
|
};
|
|
@@ -21841,7 +21841,7 @@ P({
|
|
|
21841
21841
|
height: I(r + n)
|
|
21842
21842
|
};
|
|
21843
21843
|
a > 0 && (i.width = I(a)), n > 0 && (i.verticalAlign = I(-n));
|
|
21844
|
-
var o = new
|
|
21844
|
+
var o = new wc(t.src, t.alt, i);
|
|
21845
21845
|
return o.height = r, o.depth = n, o;
|
|
21846
21846
|
},
|
|
21847
21847
|
mathmlBuilder: (t, e) => {
|
|
@@ -22000,7 +22000,7 @@ P({
|
|
|
22000
22000
|
return Dt(r, e);
|
|
22001
22001
|
}
|
|
22002
22002
|
});
|
|
22003
|
-
var
|
|
22003
|
+
var Bi = (t, e, r, n, a, i, o) => {
|
|
22004
22004
|
t = S.makeSpan([], [t]);
|
|
22005
22005
|
var c = r && W.isCharacterBox(r), u, m;
|
|
22006
22006
|
if (e) {
|
|
@@ -22096,11 +22096,11 @@ var Li = (t, e, r, n, a, i, o) => {
|
|
|
22096
22096
|
M.style.marginRight = I(i), N.unshift(M);
|
|
22097
22097
|
}
|
|
22098
22098
|
return S.makeSpan(["mop", "op-limits"], N, n);
|
|
22099
|
-
},
|
|
22099
|
+
}, zi = ["\\smallint"], nr = (t, e) => {
|
|
22100
22100
|
var r, n, a = !1, i;
|
|
22101
22101
|
t.type === "supsub" ? (r = t.sup, n = t.sub, i = re(t.base, "op"), a = !0) : i = re(t, "op");
|
|
22102
22102
|
var o = e.style, c = !1;
|
|
22103
|
-
o.size === X.DISPLAY.size && i.symbol && !W.contains(
|
|
22103
|
+
o.size === X.DISPLAY.size && i.symbol && !W.contains(zi, i.name) && (c = !0);
|
|
22104
22104
|
var u;
|
|
22105
22105
|
if (i.symbol) {
|
|
22106
22106
|
var m = c ? "Size2-Regular" : "Size1-Regular", p = "";
|
|
@@ -22128,20 +22128,20 @@ var Li = (t, e, r, n, a, i, o) => {
|
|
|
22128
22128
|
u = S.makeSpan(["mop"], _, e);
|
|
22129
22129
|
}
|
|
22130
22130
|
var N = 0, M = 0;
|
|
22131
|
-
return (u instanceof et || i.name === "\\oiint" || i.name === "\\oiiint") && !i.suppressBaseShift && (N = (u.height - u.depth) / 2 - e.fontMetrics().axisHeight, M = u.italic), a ?
|
|
22131
|
+
return (u instanceof et || i.name === "\\oiint" || i.name === "\\oiiint") && !i.suppressBaseShift && (N = (u.height - u.depth) / 2 - e.fontMetrics().axisHeight, M = u.italic), a ? Bi(u, r, n, e, o, M, N) : (N && (u.style.position = "relative", u.style.top = I(N)), u);
|
|
22132
22132
|
}, fr = (t, e) => {
|
|
22133
22133
|
var r;
|
|
22134
22134
|
if (t.symbol)
|
|
22135
|
-
r = new Qe("mo", [tt(t.name, t.mode)]), W.contains(
|
|
22135
|
+
r = new Qe("mo", [tt(t.name, t.mode)]), W.contains(zi, t.name) && r.setAttribute("largeop", "false");
|
|
22136
22136
|
else if (t.body)
|
|
22137
|
-
r = new Qe("mo",
|
|
22137
|
+
r = new Qe("mo", We(t.body, e));
|
|
22138
22138
|
else {
|
|
22139
22139
|
r = new Qe("mi", [new cr(t.name.slice(1))]);
|
|
22140
22140
|
var n = new Qe("mo", [tt("", "text")]);
|
|
22141
|
-
t.parentIsSupSub ? r = new Qe("mrow", [r, n]) : r =
|
|
22141
|
+
t.parentIsSupSub ? r = new Qe("mrow", [r, n]) : r = di([r, n]);
|
|
22142
22142
|
}
|
|
22143
22143
|
return r;
|
|
22144
|
-
},
|
|
22144
|
+
}, Eu = {
|
|
22145
22145
|
"∏": "\\prod",
|
|
22146
22146
|
"∐": "\\coprod",
|
|
22147
22147
|
"∑": "\\sum",
|
|
@@ -22166,7 +22166,7 @@ P({
|
|
|
22166
22166
|
parser: r,
|
|
22167
22167
|
funcName: n
|
|
22168
22168
|
} = t, a = n;
|
|
22169
|
-
return a.length === 1 && (a =
|
|
22169
|
+
return a.length === 1 && (a = Eu[a]), {
|
|
22170
22170
|
type: "op",
|
|
22171
22171
|
mode: r.mode,
|
|
22172
22172
|
limits: !0,
|
|
@@ -22201,7 +22201,7 @@ P({
|
|
|
22201
22201
|
htmlBuilder: nr,
|
|
22202
22202
|
mathmlBuilder: fr
|
|
22203
22203
|
});
|
|
22204
|
-
var
|
|
22204
|
+
var xu = {
|
|
22205
22205
|
"∫": "\\int",
|
|
22206
22206
|
"∬": "\\iint",
|
|
22207
22207
|
"∭": "\\iiint",
|
|
@@ -22266,7 +22266,7 @@ P({
|
|
|
22266
22266
|
parser: e,
|
|
22267
22267
|
funcName: r
|
|
22268
22268
|
} = t, n = r;
|
|
22269
|
-
return n.length === 1 && (n =
|
|
22269
|
+
return n.length === 1 && (n = xu[n]), {
|
|
22270
22270
|
type: "op",
|
|
22271
22271
|
mode: e.mode,
|
|
22272
22272
|
limits: !1,
|
|
@@ -22278,7 +22278,7 @@ P({
|
|
|
22278
22278
|
htmlBuilder: nr,
|
|
22279
22279
|
mathmlBuilder: fr
|
|
22280
22280
|
});
|
|
22281
|
-
var
|
|
22281
|
+
var Pi = (t, e) => {
|
|
22282
22282
|
var r, n, a = !1, i;
|
|
22283
22283
|
t.type === "supsub" ? (r = t.sup, n = t.sub, i = re(t.base, "operatorname"), a = !0) : i = re(t, "operatorname");
|
|
22284
22284
|
var o;
|
|
@@ -22297,9 +22297,9 @@ var zi = (t, e) => {
|
|
|
22297
22297
|
o = S.makeSpan(["mop"], u, e);
|
|
22298
22298
|
} else
|
|
22299
22299
|
o = S.makeSpan(["mop"], [], e);
|
|
22300
|
-
return a ?
|
|
22301
|
-
},
|
|
22302
|
-
for (var r =
|
|
22300
|
+
return a ? Bi(o, r, n, e, e.style, 0, 0) : o;
|
|
22301
|
+
}, _u = (t, e) => {
|
|
22302
|
+
for (var r = We(t.body, e.withFont("mathrm")), n = !0, a = 0; a < r.length; a++) {
|
|
22303
22303
|
var i = r[a];
|
|
22304
22304
|
if (!(i instanceof O.SpaceNode)) if (i instanceof O.MathNode)
|
|
22305
22305
|
switch (i.type) {
|
|
@@ -22350,8 +22350,8 @@ P({
|
|
|
22350
22350
|
parentIsSupSub: !1
|
|
22351
22351
|
};
|
|
22352
22352
|
},
|
|
22353
|
-
htmlBuilder:
|
|
22354
|
-
mathmlBuilder:
|
|
22353
|
+
htmlBuilder: Pi,
|
|
22354
|
+
mathmlBuilder: _u
|
|
22355
22355
|
});
|
|
22356
22356
|
h("\\operatorname", "\\@ifstar\\operatornamewithlimits\\operatorname@");
|
|
22357
22357
|
Kt({
|
|
@@ -22427,7 +22427,7 @@ P({
|
|
|
22427
22427
|
return S.makeFragment(r);
|
|
22428
22428
|
},
|
|
22429
22429
|
mathmlBuilder: (t, e) => {
|
|
22430
|
-
var r =
|
|
22430
|
+
var r = We(t.body, e);
|
|
22431
22431
|
return new O.MathNode("mphantom", r);
|
|
22432
22432
|
}
|
|
22433
22433
|
});
|
|
@@ -22462,7 +22462,7 @@ P({
|
|
|
22462
22462
|
}, e), S.makeSpan(["mord"], [r], e);
|
|
22463
22463
|
},
|
|
22464
22464
|
mathmlBuilder: (t, e) => {
|
|
22465
|
-
var r =
|
|
22465
|
+
var r = We(Oe(t.body), e), n = new O.MathNode("mphantom", r), a = new O.MathNode("mpadded", [n]);
|
|
22466
22466
|
return a.setAttribute("height", "0px"), a.setAttribute("depth", "0px"), a;
|
|
22467
22467
|
}
|
|
22468
22468
|
});
|
|
@@ -22488,7 +22488,7 @@ P({
|
|
|
22488
22488
|
return S.makeSpan(["mord", "rlap"], [r, n], e);
|
|
22489
22489
|
},
|
|
22490
22490
|
mathmlBuilder: (t, e) => {
|
|
22491
|
-
var r =
|
|
22491
|
+
var r = We(Oe(t.body), e), n = new O.MathNode("mphantom", r), a = new O.MathNode("mpadded", [n]);
|
|
22492
22492
|
return a.setAttribute("width", "0px"), a;
|
|
22493
22493
|
}
|
|
22494
22494
|
});
|
|
@@ -22575,16 +22575,16 @@ P({
|
|
|
22575
22575
|
return a >= 0 ? c.setAttribute("height", I(a)) : (c.setAttribute("height", I(a)), c.setAttribute("depth", I(-a))), c.setAttribute("voffset", I(a)), c;
|
|
22576
22576
|
}
|
|
22577
22577
|
});
|
|
22578
|
-
function
|
|
22578
|
+
function Fi(t, e, r) {
|
|
22579
22579
|
for (var n = De(t, e, !1), a = e.sizeMultiplier / r.sizeMultiplier, i = 0; i < n.length; i++) {
|
|
22580
22580
|
var o = n[i].classes.indexOf("sizing");
|
|
22581
22581
|
o < 0 ? Array.prototype.push.apply(n[i].classes, e.sizingClasses(r)) : n[i].classes[o + 1] === "reset-size" + e.size && (n[i].classes[o + 1] = "reset-size" + r.size), n[i].height *= a, n[i].depth *= a;
|
|
22582
22582
|
}
|
|
22583
22583
|
return S.makeFragment(n);
|
|
22584
22584
|
}
|
|
22585
|
-
var ua = ["\\tiny", "\\sixptsize", "\\scriptsize", "\\footnotesize", "\\small", "\\normalsize", "\\large", "\\Large", "\\LARGE", "\\huge", "\\Huge"],
|
|
22585
|
+
var ua = ["\\tiny", "\\sixptsize", "\\scriptsize", "\\footnotesize", "\\small", "\\normalsize", "\\large", "\\Large", "\\LARGE", "\\huge", "\\Huge"], Su = (t, e) => {
|
|
22586
22586
|
var r = e.havingSize(t.size);
|
|
22587
|
-
return
|
|
22587
|
+
return Fi(t.body, r, e);
|
|
22588
22588
|
};
|
|
22589
22589
|
P({
|
|
22590
22590
|
type: "sizing",
|
|
@@ -22607,9 +22607,9 @@ P({
|
|
|
22607
22607
|
body: i
|
|
22608
22608
|
};
|
|
22609
22609
|
},
|
|
22610
|
-
htmlBuilder:
|
|
22610
|
+
htmlBuilder: Su,
|
|
22611
22611
|
mathmlBuilder: (t, e) => {
|
|
22612
|
-
var r = e.havingSize(t.size), n =
|
|
22612
|
+
var r = e.havingSize(t.size), n = We(t.body, r), a = new O.MathNode("mstyle", n);
|
|
22613
22613
|
return a.setAttribute("mathsize", I(r.sizeMultiplier)), a;
|
|
22614
22614
|
}
|
|
22615
22615
|
});
|
|
@@ -22772,10 +22772,10 @@ P({
|
|
|
22772
22772
|
},
|
|
22773
22773
|
htmlBuilder(t, e) {
|
|
22774
22774
|
var r = da[t.style], n = e.havingStyle(r).withFont("");
|
|
22775
|
-
return
|
|
22775
|
+
return Fi(t.body, n, e);
|
|
22776
22776
|
},
|
|
22777
22777
|
mathmlBuilder(t, e) {
|
|
22778
|
-
var r = da[t.style], n = e.havingStyle(r), a =
|
|
22778
|
+
var r = da[t.style], n = e.havingStyle(r), a = We(t.body, n), i = new O.MathNode("mstyle", a), o = {
|
|
22779
22779
|
display: ["0", "true"],
|
|
22780
22780
|
text: ["0", "false"],
|
|
22781
22781
|
script: ["1", "false"],
|
|
@@ -22784,7 +22784,7 @@ P({
|
|
|
22784
22784
|
return i.setAttribute("scriptlevel", c[0]), i.setAttribute("displaystyle", c[1]), i;
|
|
22785
22785
|
}
|
|
22786
22786
|
});
|
|
22787
|
-
var
|
|
22787
|
+
var Nu = function(e, r) {
|
|
22788
22788
|
var n = e.base;
|
|
22789
22789
|
if (n)
|
|
22790
22790
|
if (n.type === "op") {
|
|
@@ -22792,13 +22792,13 @@ var _u = function(e, r) {
|
|
|
22792
22792
|
return a ? nr : null;
|
|
22793
22793
|
} else if (n.type === "operatorname") {
|
|
22794
22794
|
var i = n.alwaysHandleSupSub && (r.style.size === X.DISPLAY.size || n.limits);
|
|
22795
|
-
return i ?
|
|
22795
|
+
return i ? Pi : null;
|
|
22796
22796
|
} else {
|
|
22797
22797
|
if (n.type === "accent")
|
|
22798
22798
|
return W.isCharacterBox(n.base) ? Z0 : null;
|
|
22799
22799
|
if (n.type === "horizBrace") {
|
|
22800
22800
|
var o = !e.sub;
|
|
22801
|
-
return o === n.isOver ?
|
|
22801
|
+
return o === n.isOver ? Li : null;
|
|
22802
22802
|
} else
|
|
22803
22803
|
return null;
|
|
22804
22804
|
}
|
|
@@ -22807,7 +22807,7 @@ var _u = function(e, r) {
|
|
|
22807
22807
|
Kt({
|
|
22808
22808
|
type: "supsub",
|
|
22809
22809
|
htmlBuilder(t, e) {
|
|
22810
|
-
var r =
|
|
22810
|
+
var r = Nu(t, e);
|
|
22811
22811
|
if (r)
|
|
22812
22812
|
return r(t, e);
|
|
22813
22813
|
var {
|
|
@@ -22920,7 +22920,7 @@ Kt({
|
|
|
22920
22920
|
return r;
|
|
22921
22921
|
}
|
|
22922
22922
|
});
|
|
22923
|
-
var
|
|
22923
|
+
var Ui = {
|
|
22924
22924
|
mi: "italic",
|
|
22925
22925
|
mn: "normal",
|
|
22926
22926
|
mtext: "normal"
|
|
@@ -22932,7 +22932,7 @@ Kt({
|
|
|
22932
22932
|
},
|
|
22933
22933
|
mathmlBuilder(t, e) {
|
|
22934
22934
|
var r = new O.MathNode("mi", [tt(t.text, t.mode, e)]), n = W0(t, e) || "italic";
|
|
22935
|
-
return n !==
|
|
22935
|
+
return n !== Ui[r.type] && r.setAttribute("mathvariant", n), r;
|
|
22936
22936
|
}
|
|
22937
22937
|
});
|
|
22938
22938
|
Kt({
|
|
@@ -22942,7 +22942,7 @@ Kt({
|
|
|
22942
22942
|
},
|
|
22943
22943
|
mathmlBuilder(t, e) {
|
|
22944
22944
|
var r = tt(t.text, t.mode, e), n = W0(t, e) || "normal", a;
|
|
22945
|
-
return t.mode === "text" ? a = new O.MathNode("mtext", [r]) : /[0-9]/.test(t.text) ? a = new O.MathNode("mn", [r]) : t.text === "\\prime" ? a = new O.MathNode("mo", [r]) : a = new O.MathNode("mi", [r]), n !==
|
|
22945
|
+
return t.mode === "text" ? a = new O.MathNode("mtext", [r]) : /[0-9]/.test(t.text) ? a = new O.MathNode("mn", [r]) : t.text === "\\prime" ? a = new O.MathNode("mo", [r]) : a = new O.MathNode("mi", [r]), n !== Ui[a.type] && a.setAttribute("mathvariant", n), a;
|
|
22946
22946
|
}
|
|
22947
22947
|
});
|
|
22948
22948
|
var x0 = {
|
|
@@ -23007,12 +23007,12 @@ var ha = {
|
|
|
23007
23007
|
}, pa = {
|
|
23008
23008
|
"\\textbf": "textbf",
|
|
23009
23009
|
"\\textmd": "textmd"
|
|
23010
|
-
},
|
|
23010
|
+
}, ku = {
|
|
23011
23011
|
"\\textit": "textit",
|
|
23012
23012
|
"\\textup": "textup"
|
|
23013
23013
|
}, fa = (t, e) => {
|
|
23014
23014
|
var r = t.font;
|
|
23015
|
-
return r ? ha[r] ? e.withTextFontFamily(ha[r]) : pa[r] ? e.withTextFontWeight(pa[r]) : e.withTextFontShape(
|
|
23015
|
+
return r ? ha[r] ? e.withTextFontFamily(ha[r]) : pa[r] ? e.withTextFontWeight(pa[r]) : e.withTextFontShape(ku[r]) : e;
|
|
23016
23016
|
};
|
|
23017
23017
|
P({
|
|
23018
23018
|
type: "text",
|
|
@@ -23157,23 +23157,23 @@ P({
|
|
|
23157
23157
|
return n.setAttribute("mathvariant", "monospace"), n;
|
|
23158
23158
|
}
|
|
23159
23159
|
});
|
|
23160
|
-
var ga = (t) => t.body.replace(/ /g, t.star ? "␣" : " "), Rt =
|
|
23161
|
-
]`,
|
|
23160
|
+
var ga = (t) => t.body.replace(/ /g, t.star ? "␣" : " "), Rt = ci, qi = `[ \r
|
|
23161
|
+
]`, Tu = "\\\\[a-zA-Z@]+", Mu = "\\\\[^\uD800-\uDFFF]", Au = "(" + Tu + ")" + qi + "*", Ou = `\\\\(
|
|
23162
23162
|
|[ \r ]+
|
|
23163
|
-
?)[ \r ]*`, z0 = "[̀-ͯ]",
|
|
23164
|
-
(
|
|
23163
|
+
?)[ \r ]*`, z0 = "[̀-ͯ]", Ru = new RegExp(z0 + "+$"), Cu = "(" + qi + "+)|" + // whitespace
|
|
23164
|
+
(Ou + "|") + // \whitespace
|
|
23165
23165
|
"([!-\\[\\]-‧-豈-]" + // single codepoint
|
|
23166
23166
|
(z0 + "*") + // ...plus accents
|
|
23167
23167
|
"|[\uD800-\uDBFF][\uDC00-\uDFFF]" + // surrogate pair
|
|
23168
23168
|
(z0 + "*") + // ...plus accents
|
|
23169
23169
|
"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5" + // \verb unstarred
|
|
23170
|
-
("|" +
|
|
23171
|
-
("|" +
|
|
23170
|
+
("|" + Au) + // \macroName + spaces
|
|
23171
|
+
("|" + Mu + ")");
|
|
23172
23172
|
class ba {
|
|
23173
23173
|
// Category codes. The lexer only supports comment characters (14) for now.
|
|
23174
23174
|
// MacroExpander additionally distinguishes active (13).
|
|
23175
23175
|
constructor(e, r) {
|
|
23176
|
-
this.input = void 0, this.settings = void 0, this.tokenRegex = void 0, this.catcodes = void 0, this.input = e, this.settings = r, this.tokenRegex = new RegExp(
|
|
23176
|
+
this.input = void 0, this.settings = void 0, this.tokenRegex = void 0, this.catcodes = void 0, this.input = e, this.settings = r, this.tokenRegex = new RegExp(Cu, "g"), this.catcodes = {
|
|
23177
23177
|
"%": 14,
|
|
23178
23178
|
// comment character
|
|
23179
23179
|
"~": 13
|
|
@@ -23189,20 +23189,20 @@ class ba {
|
|
|
23189
23189
|
lex() {
|
|
23190
23190
|
var e = this.input, r = this.tokenRegex.lastIndex;
|
|
23191
23191
|
if (r === e.length)
|
|
23192
|
-
return new je("EOF", new
|
|
23192
|
+
return new je("EOF", new Ze(this, r, r));
|
|
23193
23193
|
var n = this.tokenRegex.exec(e);
|
|
23194
23194
|
if (n === null || n.index !== r)
|
|
23195
|
-
throw new R("Unexpected character: '" + e[r] + "'", new je(e[r], new
|
|
23195
|
+
throw new R("Unexpected character: '" + e[r] + "'", new je(e[r], new Ze(this, r, r + 1)));
|
|
23196
23196
|
var a = n[6] || n[3] || (n[2] ? "\\ " : " ");
|
|
23197
23197
|
if (this.catcodes[a] === 14) {
|
|
23198
23198
|
var i = e.indexOf(`
|
|
23199
23199
|
`, this.tokenRegex.lastIndex);
|
|
23200
23200
|
return i === -1 ? (this.tokenRegex.lastIndex = e.length, this.settings.reportNonstrict("commentAtEnd", "% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")) : this.tokenRegex.lastIndex = i + 1, this.lex();
|
|
23201
23201
|
}
|
|
23202
|
-
return new je(a, new
|
|
23202
|
+
return new je(a, new Ze(this, r, this.tokenRegex.lastIndex));
|
|
23203
23203
|
}
|
|
23204
23204
|
}
|
|
23205
|
-
class
|
|
23205
|
+
class Iu {
|
|
23206
23206
|
/**
|
|
23207
23207
|
* Both arguments are optional. The first argument is an object of
|
|
23208
23208
|
* built-in mappings which never change. The second argument is an object
|
|
@@ -23273,7 +23273,7 @@ class Ru {
|
|
|
23273
23273
|
r == null ? delete this.current[e] : this.current[e] = r;
|
|
23274
23274
|
}
|
|
23275
23275
|
}
|
|
23276
|
-
var
|
|
23276
|
+
var Du = Oi;
|
|
23277
23277
|
h("\\noexpand", function(t) {
|
|
23278
23278
|
var e = t.popToken();
|
|
23279
23279
|
return t.isExpandable(e.text) && (e.noexpand = !0, e.treatAsRelax = !0), {
|
|
@@ -23615,9 +23615,9 @@ h("\\pmod", "\\pod{{\\rm mod}\\mkern6mu#1}");
|
|
|
23615
23615
|
h("\\mod", "\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");
|
|
23616
23616
|
h("\\newline", "\\\\\\relax");
|
|
23617
23617
|
h("\\TeX", "\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");
|
|
23618
|
-
var
|
|
23619
|
-
h("\\LaTeX", "\\textrm{\\html@mathml{" + ("L\\kern-.36em\\raisebox{" +
|
|
23620
|
-
h("\\KaTeX", "\\textrm{\\html@mathml{" + ("K\\kern-.17em\\raisebox{" +
|
|
23618
|
+
var Hi = I(ht["Main-Regular"][84][1] - 0.7 * ht["Main-Regular"][65][1]);
|
|
23619
|
+
h("\\LaTeX", "\\textrm{\\html@mathml{" + ("L\\kern-.36em\\raisebox{" + Hi + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{LaTeX}}");
|
|
23620
|
+
h("\\KaTeX", "\\textrm{\\html@mathml{" + ("K\\kern-.17em\\raisebox{" + Hi + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{KaTeX}}");
|
|
23621
23621
|
h("\\hspace", "\\@ifstar\\@hspacer\\@hspace");
|
|
23622
23622
|
h("\\@hspace", "\\hskip #1\\relax");
|
|
23623
23623
|
h("\\@hspacer", "\\rule{0pt}{0pt}\\hskip #1\\relax");
|
|
@@ -23763,7 +23763,7 @@ h("\\ket", "\\mathinner{|{#1}\\rangle}");
|
|
|
23763
23763
|
h("\\braket", "\\mathinner{\\langle{#1}\\rangle}");
|
|
23764
23764
|
h("\\Bra", "\\left\\langle#1\\right|");
|
|
23765
23765
|
h("\\Ket", "\\left|#1\\right\\rangle");
|
|
23766
|
-
var
|
|
23766
|
+
var $i = (t) => (e) => {
|
|
23767
23767
|
var r = e.consumeArg().tokens, n = e.consumeArg().tokens, a = e.consumeArg().tokens, i = e.consumeArg().tokens, o = e.macros.get("|"), c = e.macros.get("\\|");
|
|
23768
23768
|
e.macros.beginGroup();
|
|
23769
23769
|
var u = (f) => (v) => {
|
|
@@ -23790,8 +23790,8 @@ var Hi = (t) => (e) => {
|
|
|
23790
23790
|
numArgs: 0
|
|
23791
23791
|
};
|
|
23792
23792
|
};
|
|
23793
|
-
h("\\bra@ket",
|
|
23794
|
-
h("\\bra@set",
|
|
23793
|
+
h("\\bra@ket", $i(!1));
|
|
23794
|
+
h("\\bra@set", $i(!0));
|
|
23795
23795
|
h("\\Braket", "\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");
|
|
23796
23796
|
h("\\Set", "\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");
|
|
23797
23797
|
h("\\set", "\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");
|
|
@@ -23852,7 +23852,7 @@ h("\\grayH", "\\textcolor{##3b3e40}{#1}");
|
|
|
23852
23852
|
h("\\grayI", "\\textcolor{##21242c}{#1}");
|
|
23853
23853
|
h("\\kaBlue", "\\textcolor{##314453}{#1}");
|
|
23854
23854
|
h("\\kaGreen", "\\textcolor{##71B307}{#1}");
|
|
23855
|
-
var
|
|
23855
|
+
var Gi = {
|
|
23856
23856
|
"^": !0,
|
|
23857
23857
|
// Parser.js
|
|
23858
23858
|
_: !0,
|
|
@@ -23862,9 +23862,9 @@ var $i = {
|
|
|
23862
23862
|
"\\nolimits": !0
|
|
23863
23863
|
// Parser.js
|
|
23864
23864
|
};
|
|
23865
|
-
class
|
|
23865
|
+
class Lu {
|
|
23866
23866
|
constructor(e, r, n) {
|
|
23867
|
-
this.settings = void 0, this.expansionCount = void 0, this.lexer = void 0, this.macros = void 0, this.stack = void 0, this.mode = void 0, this.settings = r, this.expansionCount = 0, this.feed(e), this.macros = new
|
|
23867
|
+
this.settings = void 0, this.expansionCount = void 0, this.lexer = void 0, this.macros = void 0, this.stack = void 0, this.mode = void 0, this.settings = r, this.expansionCount = 0, this.feed(e), this.macros = new Iu(Du, r.macros), this.mode = n, this.stack = [];
|
|
23868
23868
|
}
|
|
23869
23869
|
/**
|
|
23870
23870
|
* Feed a new input string to the same MacroExpander
|
|
@@ -24146,7 +24146,7 @@ class Iu {
|
|
|
24146
24146
|
* `implicitCommands`.
|
|
24147
24147
|
*/
|
|
24148
24148
|
isDefined(e) {
|
|
24149
|
-
return this.macros.has(e) || Rt.hasOwnProperty(e) || ge.math.hasOwnProperty(e) || ge.text.hasOwnProperty(e) ||
|
|
24149
|
+
return this.macros.has(e) || Rt.hasOwnProperty(e) || ge.math.hasOwnProperty(e) || ge.text.hasOwnProperty(e) || Gi.hasOwnProperty(e);
|
|
24150
24150
|
}
|
|
24151
24151
|
/**
|
|
24152
24152
|
* Determine whether a command is expandable.
|
|
@@ -24654,7 +24654,7 @@ var wa = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗ
|
|
|
24654
24654
|
};
|
|
24655
24655
|
class Jr {
|
|
24656
24656
|
constructor(e, r) {
|
|
24657
|
-
this.mode = void 0, this.gullet = void 0, this.settings = void 0, this.leftrightDepth = void 0, this.nextToken = void 0, this.mode = "math", this.gullet = new
|
|
24657
|
+
this.mode = void 0, this.gullet = void 0, this.settings = void 0, this.leftrightDepth = void 0, this.nextToken = void 0, this.mode = "math", this.gullet = new Lu(e, r, this.mode), this.settings = r, this.leftrightDepth = 0;
|
|
24658
24658
|
}
|
|
24659
24659
|
/**
|
|
24660
24660
|
* Checks a result to make sure it has the right type, and throws an
|
|
@@ -25040,7 +25040,7 @@ class Jr {
|
|
|
25040
25040
|
// sign + magnitude, cast to number
|
|
25041
25041
|
unit: a[3]
|
|
25042
25042
|
};
|
|
25043
|
-
if (!
|
|
25043
|
+
if (!ei(i))
|
|
25044
25044
|
throw new R("Invalid unit: '" + i.unit + "'", r);
|
|
25045
25045
|
return {
|
|
25046
25046
|
type: "size",
|
|
@@ -25100,7 +25100,7 @@ class Jr {
|
|
|
25100
25100
|
this.expect(o), this.gullet.endGroup(), i = {
|
|
25101
25101
|
type: "ordgroup",
|
|
25102
25102
|
mode: this.mode,
|
|
25103
|
-
loc:
|
|
25103
|
+
loc: Ze.range(n, u),
|
|
25104
25104
|
body: c,
|
|
25105
25105
|
// A group formed by \begingroup...\endgroup is a semi-simple group
|
|
25106
25106
|
// which doesn't affect spacing in math mode, i.e., is transparent.
|
|
@@ -25108,7 +25108,7 @@ class Jr {
|
|
|
25108
25108
|
// use-begingroup-instead-of-bgroup
|
|
25109
25109
|
semisimple: a === "\\begingroup" || void 0
|
|
25110
25110
|
};
|
|
25111
|
-
} else if (i = this.parseFunction(r, e) || this.parseSymbol(), i == null && a[0] === "\\" &&
|
|
25111
|
+
} else if (i = this.parseFunction(r, e) || this.parseSymbol(), i == null && a[0] === "\\" && !Gi.hasOwnProperty(a)) {
|
|
25112
25112
|
if (this.settings.throwOnError)
|
|
25113
25113
|
throw new R("Undefined control sequence: " + a, n);
|
|
25114
25114
|
i = this.formatUnsupportedCmd(a), this.consume();
|
|
@@ -25129,17 +25129,17 @@ class Jr {
|
|
|
25129
25129
|
i === "-" && e[n + 1].text === "-" && (n + 1 < r && e[n + 2].text === "-" ? (e.splice(n, 3, {
|
|
25130
25130
|
type: "textord",
|
|
25131
25131
|
mode: "text",
|
|
25132
|
-
loc:
|
|
25132
|
+
loc: Ze.range(a, e[n + 2]),
|
|
25133
25133
|
text: "---"
|
|
25134
25134
|
}), r -= 2) : (e.splice(n, 2, {
|
|
25135
25135
|
type: "textord",
|
|
25136
25136
|
mode: "text",
|
|
25137
|
-
loc:
|
|
25137
|
+
loc: Ze.range(a, e[n + 1]),
|
|
25138
25138
|
text: "--"
|
|
25139
25139
|
}), r -= 1)), (i === "'" || i === "`") && e[n + 1].text === i && (e.splice(n, 2, {
|
|
25140
25140
|
type: "textord",
|
|
25141
25141
|
mode: "text",
|
|
25142
|
-
loc:
|
|
25142
|
+
loc: Ze.range(a, e[n + 1]),
|
|
25143
25143
|
text: i + i
|
|
25144
25144
|
}), r -= 1);
|
|
25145
25145
|
}
|
|
@@ -25164,13 +25164,13 @@ class Jr {
|
|
|
25164
25164
|
};
|
|
25165
25165
|
}
|
|
25166
25166
|
Ea.hasOwnProperty(r[0]) && !ge[this.mode][r[0]] && (this.settings.strict && this.mode === "math" && this.settings.reportNonstrict("unicodeTextInMathMode", 'Accented Unicode text character "' + r[0] + '" used in math mode', e), r = Ea[r[0]] + r.slice(1));
|
|
25167
|
-
var i =
|
|
25167
|
+
var i = Ru.exec(r);
|
|
25168
25168
|
i && (r = r.substring(0, i.index), r === "i" ? r = "ı" : r === "j" && (r = "ȷ"));
|
|
25169
25169
|
var o;
|
|
25170
25170
|
if (ge[this.mode][r]) {
|
|
25171
25171
|
this.settings.strict && this.mode === "math" && C0.indexOf(r) >= 0 && this.settings.reportNonstrict("unicodeTextInMathMode", 'Latin-1/Unicode text character "' + r[0] + '" used in math mode', e);
|
|
25172
|
-
var c = ge[this.mode][r].group, u =
|
|
25173
|
-
if (
|
|
25172
|
+
var c = ge[this.mode][r].group, u = Ze.range(e), m;
|
|
25173
|
+
if (_c.hasOwnProperty(c)) {
|
|
25174
25174
|
var p = c;
|
|
25175
25175
|
m = {
|
|
25176
25176
|
type: "atom",
|
|
@@ -25188,10 +25188,10 @@ class Jr {
|
|
|
25188
25188
|
};
|
|
25189
25189
|
o = m;
|
|
25190
25190
|
} else if (r.charCodeAt(0) >= 128)
|
|
25191
|
-
this.settings.strict && (
|
|
25191
|
+
this.settings.strict && (ja(r.charCodeAt(0)) ? this.mode === "math" && this.settings.reportNonstrict("unicodeTextInMathMode", 'Unicode text character "' + r[0] + '" used in math mode', e) : this.settings.reportNonstrict("unknownSymbol", 'Unrecognized Unicode character "' + r[0] + '"' + (" (" + r.charCodeAt(0) + ")"), e)), o = {
|
|
25192
25192
|
type: "textord",
|
|
25193
25193
|
mode: "text",
|
|
25194
|
-
loc:
|
|
25194
|
+
loc: Ze.range(e),
|
|
25195
25195
|
text: r
|
|
25196
25196
|
};
|
|
25197
25197
|
else
|
|
@@ -25207,7 +25207,7 @@ class Jr {
|
|
|
25207
25207
|
o = {
|
|
25208
25208
|
type: "accent",
|
|
25209
25209
|
mode: this.mode,
|
|
25210
|
-
loc:
|
|
25210
|
+
loc: Ze.range(e),
|
|
25211
25211
|
label: w,
|
|
25212
25212
|
isStretchy: !1,
|
|
25213
25213
|
isShifty: !0,
|
|
@@ -25236,21 +25236,21 @@ var sn = function(e, r) {
|
|
|
25236
25236
|
}];
|
|
25237
25237
|
}
|
|
25238
25238
|
return a;
|
|
25239
|
-
},
|
|
25239
|
+
}, Ki = function(e, r, n) {
|
|
25240
25240
|
r.textContent = "";
|
|
25241
25241
|
var a = on(e, n).toNode();
|
|
25242
25242
|
r.appendChild(a);
|
|
25243
25243
|
};
|
|
25244
|
-
typeof document < "u" && document.compatMode !== "CSS1Compat" && (typeof console < "u" && console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),
|
|
25244
|
+
typeof document < "u" && document.compatMode !== "CSS1Compat" && (typeof console < "u" && console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."), Ki = function() {
|
|
25245
25245
|
throw new R("KaTeX doesn't work in quirks mode.");
|
|
25246
25246
|
});
|
|
25247
|
-
var
|
|
25247
|
+
var Bu = function(e, r) {
|
|
25248
25248
|
var n = on(e, r).toMarkup();
|
|
25249
25249
|
return n;
|
|
25250
|
-
},
|
|
25250
|
+
}, zu = function(e, r) {
|
|
25251
25251
|
var n = new q0(r);
|
|
25252
25252
|
return sn(e, n);
|
|
25253
|
-
},
|
|
25253
|
+
}, Vi = function(e, r, n) {
|
|
25254
25254
|
if (n.throwOnError || !(e instanceof R))
|
|
25255
25255
|
throw e;
|
|
25256
25256
|
var a = S.makeSpan(["katex-error"], [new et(r)]);
|
|
@@ -25259,17 +25259,17 @@ var Du = function(e, r) {
|
|
|
25259
25259
|
var n = new q0(r);
|
|
25260
25260
|
try {
|
|
25261
25261
|
var a = sn(e, n);
|
|
25262
|
-
return
|
|
25262
|
+
return Vc(a, e, n);
|
|
25263
25263
|
} catch (i) {
|
|
25264
|
-
return
|
|
25264
|
+
return Vi(i, e, n);
|
|
25265
25265
|
}
|
|
25266
|
-
},
|
|
25266
|
+
}, Pu = function(e, r) {
|
|
25267
25267
|
var n = new q0(r);
|
|
25268
25268
|
try {
|
|
25269
25269
|
var a = sn(e, n);
|
|
25270
|
-
return
|
|
25270
|
+
return Wc(a, e, n);
|
|
25271
25271
|
} catch (i) {
|
|
25272
|
-
return
|
|
25272
|
+
return Vi(i, e, n);
|
|
25273
25273
|
}
|
|
25274
25274
|
}, xa = {
|
|
25275
25275
|
/**
|
|
@@ -25280,12 +25280,12 @@ var Du = function(e, r) {
|
|
|
25280
25280
|
* Renders the given LaTeX into an HTML+MathML combination, and adds
|
|
25281
25281
|
* it as a child to the specified DOM node.
|
|
25282
25282
|
*/
|
|
25283
|
-
render:
|
|
25283
|
+
render: Ki,
|
|
25284
25284
|
/**
|
|
25285
25285
|
* Renders the given LaTeX into an HTML+MathML combination string,
|
|
25286
25286
|
* for sending to the client.
|
|
25287
25287
|
*/
|
|
25288
|
-
renderToString:
|
|
25288
|
+
renderToString: Bu,
|
|
25289
25289
|
/**
|
|
25290
25290
|
* KaTeX error, usually during parsing.
|
|
25291
25291
|
*/
|
|
@@ -25302,7 +25302,7 @@ var Du = function(e, r) {
|
|
|
25302
25302
|
* The internal tree representation is unstable and is very likely
|
|
25303
25303
|
* to change. Use at your own risk.
|
|
25304
25304
|
*/
|
|
25305
|
-
__parse:
|
|
25305
|
+
__parse: zu,
|
|
25306
25306
|
/**
|
|
25307
25307
|
* Renders the given LaTeX into an HTML+MathML internal DOM tree
|
|
25308
25308
|
* representation, without flattening that representation to a string.
|
|
@@ -25320,12 +25320,12 @@ var Du = function(e, r) {
|
|
|
25320
25320
|
* The internal tree representation is unstable and is very likely
|
|
25321
25321
|
* to change. Use at your own risk.
|
|
25322
25322
|
*/
|
|
25323
|
-
__renderToHTMLTree:
|
|
25323
|
+
__renderToHTMLTree: Pu,
|
|
25324
25324
|
/**
|
|
25325
25325
|
* extends internal font metrics object with a new object
|
|
25326
25326
|
* each key in the new object represents a font name
|
|
25327
25327
|
*/
|
|
25328
|
-
__setFontMetrics:
|
|
25328
|
+
__setFontMetrics: gc,
|
|
25329
25329
|
/**
|
|
25330
25330
|
* adds a new symbol to builtin symbols table
|
|
25331
25331
|
*/
|
|
@@ -25356,12 +25356,12 @@ var Du = function(e, r) {
|
|
|
25356
25356
|
LineNode: R0
|
|
25357
25357
|
}
|
|
25358
25358
|
};
|
|
25359
|
-
const
|
|
25360
|
-
function
|
|
25361
|
-
const e = t ||
|
|
25359
|
+
const Fu = {}, Uu = [];
|
|
25360
|
+
function qu(t) {
|
|
25361
|
+
const e = t || Fu;
|
|
25362
25362
|
return function(r, n) {
|
|
25363
25363
|
Ms(r, "element", function(a, i) {
|
|
25364
|
-
const o = Array.isArray(a.properties.className) ? a.properties.className :
|
|
25364
|
+
const o = Array.isArray(a.properties.className) ? a.properties.className : Uu, c = o.includes("language-math"), u = o.includes("math-display"), m = o.includes("math-inline");
|
|
25365
25365
|
let p = u;
|
|
25366
25366
|
if (!c && !u && !m)
|
|
25367
25367
|
return;
|
|
@@ -25410,13 +25410,13 @@ function Fu(t) {
|
|
|
25410
25410
|
}
|
|
25411
25411
|
}
|
|
25412
25412
|
typeof _ == "string" && (_ = /** @type {Array<ElementContent>} */
|
|
25413
|
-
|
|
25413
|
+
Ul(_).children);
|
|
25414
25414
|
const x = f.children.indexOf(v);
|
|
25415
25415
|
return f.children.splice(x, 1, ..._), As;
|
|
25416
25416
|
});
|
|
25417
25417
|
};
|
|
25418
25418
|
}
|
|
25419
|
-
function
|
|
25419
|
+
function Hu() {
|
|
25420
25420
|
return {
|
|
25421
25421
|
enter: {
|
|
25422
25422
|
mathFlow: t,
|
|
@@ -25488,7 +25488,7 @@ function Uu() {
|
|
|
25488
25488
|
this.config.enter.data.call(this, u), this.config.exit.data.call(this, u);
|
|
25489
25489
|
}
|
|
25490
25490
|
}
|
|
25491
|
-
function
|
|
25491
|
+
function $u(t) {
|
|
25492
25492
|
let e = (t || {}).singleDollarTextMath;
|
|
25493
25493
|
return e == null && (e = !0), n.peek = a, {
|
|
25494
25494
|
unsafe: [
|
|
@@ -25550,14 +25550,14 @@ function qu(t) {
|
|
|
25550
25550
|
return "$";
|
|
25551
25551
|
}
|
|
25552
25552
|
}
|
|
25553
|
-
const
|
|
25554
|
-
tokenize:
|
|
25553
|
+
const Gu = {
|
|
25554
|
+
tokenize: Ku,
|
|
25555
25555
|
concrete: !0
|
|
25556
25556
|
}, _a = {
|
|
25557
|
-
tokenize:
|
|
25557
|
+
tokenize: Vu,
|
|
25558
25558
|
partial: !0
|
|
25559
25559
|
};
|
|
25560
|
-
function
|
|
25560
|
+
function Ku(t, e, r) {
|
|
25561
25561
|
const n = this, a = n.events[n.events.length - 1], i = a && a[1].type === "linePrefix" ? a[2].sliceSerialize(a[1], !0).length : 0;
|
|
25562
25562
|
let o = 0;
|
|
25563
25563
|
return c;
|
|
@@ -25632,7 +25632,7 @@ function $u(t, e, r) {
|
|
|
25632
25632
|
}
|
|
25633
25633
|
}
|
|
25634
25634
|
}
|
|
25635
|
-
function
|
|
25635
|
+
function Vu(t, e, r) {
|
|
25636
25636
|
const n = this;
|
|
25637
25637
|
return a;
|
|
25638
25638
|
function a(o) {
|
|
@@ -25642,12 +25642,12 @@ function Gu(t, e, r) {
|
|
|
25642
25642
|
return n.parser.lazy[n.now().line] ? r(o) : e(o);
|
|
25643
25643
|
}
|
|
25644
25644
|
}
|
|
25645
|
-
function
|
|
25645
|
+
function Wu(t) {
|
|
25646
25646
|
let r = t.singleDollarTextMath;
|
|
25647
25647
|
return r == null && (r = !0), {
|
|
25648
25648
|
tokenize: n,
|
|
25649
|
-
resolve:
|
|
25650
|
-
previous:
|
|
25649
|
+
resolve: Yu,
|
|
25650
|
+
previous: Zu
|
|
25651
25651
|
};
|
|
25652
25652
|
function n(a, i, o) {
|
|
25653
25653
|
let c = 0, u, m;
|
|
@@ -25669,7 +25669,7 @@ function Ku(t) {
|
|
|
25669
25669
|
}
|
|
25670
25670
|
}
|
|
25671
25671
|
}
|
|
25672
|
-
function
|
|
25672
|
+
function Yu(t) {
|
|
25673
25673
|
let e = t.length - 4, r = 3, n, a;
|
|
25674
25674
|
if ((t[r][1].type === "lineEnding" || t[r][1].type === "space") && (t[e][1].type === "lineEnding" || t[e][1].type === "space")) {
|
|
25675
25675
|
for (n = r; ++n < e; )
|
|
@@ -25682,58 +25682,66 @@ function Vu(t) {
|
|
|
25682
25682
|
a === void 0 ? n !== e && t[n][1].type !== "lineEnding" && (a = n) : (n === e || t[n][1].type === "lineEnding") && (t[a][1].type = "mathTextData", n !== a + 2 && (t[a][1].end = t[n - 1][1].end, t.splice(a + 2, n - a - 2), e -= n - a - 2, n = a + 2), a = void 0);
|
|
25683
25683
|
return t;
|
|
25684
25684
|
}
|
|
25685
|
-
function
|
|
25685
|
+
function Zu(t) {
|
|
25686
25686
|
return t !== 36 || this.events[this.events.length - 1][1].type === "characterEscape";
|
|
25687
25687
|
}
|
|
25688
|
-
function
|
|
25688
|
+
function Xu(t) {
|
|
25689
25689
|
return {
|
|
25690
25690
|
flow: {
|
|
25691
|
-
36:
|
|
25691
|
+
36: Gu
|
|
25692
25692
|
},
|
|
25693
25693
|
text: {
|
|
25694
|
-
36:
|
|
25694
|
+
36: Wu(t)
|
|
25695
25695
|
}
|
|
25696
25696
|
};
|
|
25697
25697
|
}
|
|
25698
|
-
const
|
|
25699
|
-
function
|
|
25698
|
+
const Qu = {};
|
|
25699
|
+
function Ju(t) {
|
|
25700
25700
|
const e = (
|
|
25701
25701
|
/** @type {Processor} */
|
|
25702
25702
|
this
|
|
25703
|
-
), r = t ||
|
|
25704
|
-
a.push(
|
|
25703
|
+
), r = t || Qu, n = e.data(), a = n.micromarkExtensions || (n.micromarkExtensions = []), i = n.fromMarkdownExtensions || (n.fromMarkdownExtensions = []), o = n.toMarkdownExtensions || (n.toMarkdownExtensions = []);
|
|
25704
|
+
a.push(Xu(r)), i.push(Hu()), o.push($u(r));
|
|
25705
25705
|
}
|
|
25706
|
-
const
|
|
25707
|
-
|
|
25706
|
+
const ju = () => (t) => {
|
|
25707
|
+
Na(t, "element", (e) => {
|
|
25708
25708
|
var r, n;
|
|
25709
25709
|
e.tagName === "code" && ((n = (r = e.children) == null ? void 0 : r[0]) != null && n.value) && (e.properties["data-raw-code"] = e.children[0].value);
|
|
25710
25710
|
});
|
|
25711
|
-
},
|
|
25711
|
+
}, i1 = ({
|
|
25712
25712
|
content: t
|
|
25713
25713
|
}) => {
|
|
25714
25714
|
const e = (r) => r.children.props["data-raw-code"] || "";
|
|
25715
|
-
return /* @__PURE__ */
|
|
25715
|
+
return /* @__PURE__ */ Ve(
|
|
25716
25716
|
Rs,
|
|
25717
25717
|
{
|
|
25718
25718
|
components: {
|
|
25719
|
-
pre: (r) => /* @__PURE__ */ P0(
|
|
25720
|
-
/* @__PURE__ */
|
|
25719
|
+
pre: (r) => /* @__PURE__ */ P0(Sa, { children: [
|
|
25720
|
+
/* @__PURE__ */ Ve(Ds, { alignHorizontal: "flex-end", children: /* @__PURE__ */ Ve(Ls, { children: /* @__PURE__ */ Ve(
|
|
25721
|
+
Ta,
|
|
25722
|
+
{
|
|
25723
|
+
copyToClipboard: () => e(r),
|
|
25724
|
+
labelRight: "copy code",
|
|
25725
|
+
radius: "small",
|
|
25726
|
+
className: "mb-2 px-1"
|
|
25727
|
+
}
|
|
25728
|
+
) }) }),
|
|
25729
|
+
/* @__PURE__ */ Ve(
|
|
25721
25730
|
"pre",
|
|
25722
25731
|
{
|
|
25723
25732
|
...r,
|
|
25724
25733
|
style: { marginTop: 0, marginBottom: 0 },
|
|
25725
25734
|
className: "text-xs"
|
|
25726
25735
|
}
|
|
25727
|
-
)
|
|
25728
|
-
/* @__PURE__ */ Ze("div", { children: /* @__PURE__ */ Ze(ka, { copyToClipboard: () => e(r) }) })
|
|
25736
|
+
)
|
|
25729
25737
|
] })
|
|
25730
25738
|
},
|
|
25731
|
-
remarkPlugins: [Cs,
|
|
25732
|
-
rehypePlugins: [
|
|
25739
|
+
remarkPlugins: [Cs, Ju],
|
|
25740
|
+
rehypePlugins: [ju, _l, qu],
|
|
25733
25741
|
children: t
|
|
25734
25742
|
}
|
|
25735
25743
|
);
|
|
25736
25744
|
};
|
|
25737
25745
|
export {
|
|
25738
|
-
|
|
25746
|
+
i1 as default
|
|
25739
25747
|
};
|