lowcoder-comps 0.0.32 → 0.0.33
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/{c289b0aa.js → 00bb478a.js} +49 -49
- package/{4a860f5d.js → 02bef5a4.js} +58 -58
- package/{f8b68c1a.js → 057d2a44.js} +21 -21
- package/{d8c50a91.js → 0964fcc6.js} +5 -5
- package/{cc799554.js → 14220e98.js} +52 -52
- package/{24307cf2.js → 1c074fe4.js} +11 -11
- package/{ee801edf.js → 250a6954.js} +36 -36
- package/{4cc9caa5.js → 2cd27cf0.js} +2 -2
- package/{fcee2d3c.js → 2f064957.js} +5 -5
- package/{4a489df6.js → 30c4916b.js} +1 -1
- package/{e6388bfd.js → 36ec7270.js} +2 -2
- package/{c9bb75eb.js → 38c14832.js} +1 -1
- package/{debd9490.js → 3ae34bed.js} +11 -11
- package/{97059d88.js → 3e2939fa.js} +75 -75
- package/{4564a1bc.js → 3f5f874f.js} +28 -28
- package/{1e5cb9c2.js → 3fb86fb9.js} +18 -18
- package/{fd51bb2f.js → 415177f9.js} +2 -2
- package/{a40faea7.js → 47848c42.js} +317 -305
- package/4c6a0ece.js +162535 -0
- package/{d3700d97.js → 4db8e48b.js} +22 -22
- package/{e06dcfb0.js → 531065f1.js} +14 -14
- package/{6deaf0be.js → 5a398ea8.js} +29 -29
- package/{444e09f1.js → 5ab1614c.js} +18 -18
- package/{64d87c95.js → 65bbb6ae.js} +2 -2
- package/{a969f4ca.js → 777cd15c.js} +2057 -2057
- package/{df803461.js → 7dacfa82.js} +26 -26
- package/{a408f817.js → 800cf0d0.js} +18 -18
- package/{7a3f27e4.js → 93e9bd3a.js} +6 -6
- package/98622dfa.js +16582 -0
- package/{2b031be2.js → a2e74e62.js} +1 -1
- package/{c4d99b09.js → a61c3bd3.js} +1 -1
- package/{dce9fa3f.js → b8f48ff4.js} +4 -4
- package/{7ae6dd1c.js → bd0f5f65.js} +6 -6
- package/{aa82b740.js → bf4428f5.js} +56 -56
- package/{aa1becc7.js → cb1972f7.js} +9 -9
- package/{d622fb26.js → dfc10c94.js} +66 -66
- package/{794e64d5.js → ed2c9753.js} +13 -13
- package/{cb40fdd9.js → ef2833e6.js} +308 -314
- package/{de8c90a7.js → f9e72519.js} +30 -30
- package/{f7c6b13d.js → fe063d15.js} +7498 -7263
- package/index.js +2 -2
- package/package.json +27 -1
- package/98955949.js +0 -134435
|
@@ -18,7 +18,7 @@ class u0 {
|
|
|
18
18
|
return t ? !e || !e.loc || !t.loc || e.loc.lexer !== t.loc.lexer ? null : new u0(e.loc.lexer, e.loc.start, t.loc.end) : e && e.loc;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
class
|
|
21
|
+
class f0 {
|
|
22
22
|
// don't expand the token
|
|
23
23
|
// used in \noexpand
|
|
24
24
|
constructor(e, t) {
|
|
@@ -29,7 +29,7 @@ class x0 {
|
|
|
29
29
|
* the whole input range enclosed by these two.
|
|
30
30
|
*/
|
|
31
31
|
range(e, t) {
|
|
32
|
-
return new
|
|
32
|
+
return new f0(t, u0.range(this, e));
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
class M {
|
|
@@ -78,9 +78,9 @@ var pr = function r(e) {
|
|
|
78
78
|
throw new Error("Expected non-null, but got " + String(e));
|
|
79
79
|
return e;
|
|
80
80
|
}, ka = function(e) {
|
|
81
|
-
var t =
|
|
82
|
-
return t
|
|
83
|
-
},
|
|
81
|
+
var t = /^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);
|
|
82
|
+
return t ? t[2] !== ":" || !/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1]) ? null : t[1].toLowerCase() : "_relative";
|
|
83
|
+
}, q = {
|
|
84
84
|
contains: da,
|
|
85
85
|
deflt: fa,
|
|
86
86
|
escape: ya,
|
|
@@ -88,7 +88,7 @@ var pr = function r(e) {
|
|
|
88
88
|
getBaseElem: pr,
|
|
89
89
|
isCharacterBox: xa,
|
|
90
90
|
protocolFromUrl: ka
|
|
91
|
-
},
|
|
91
|
+
}, ze = {
|
|
92
92
|
displayMode: {
|
|
93
93
|
type: "boolean",
|
|
94
94
|
description: "Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",
|
|
@@ -195,9 +195,9 @@ function Sa(r) {
|
|
|
195
195
|
class ct {
|
|
196
196
|
constructor(e) {
|
|
197
197
|
this.displayMode = void 0, this.output = void 0, this.leqno = void 0, this.fleqn = void 0, this.throwOnError = void 0, this.errorColor = void 0, this.macros = void 0, this.minRuleThickness = void 0, this.colorIsTextColor = void 0, this.strict = void 0, this.trust = void 0, this.maxSize = void 0, this.maxExpand = void 0, this.globalGroup = void 0, e = e || {};
|
|
198
|
-
for (var t in
|
|
199
|
-
if (
|
|
200
|
-
var a =
|
|
198
|
+
for (var t in ze)
|
|
199
|
+
if (ze.hasOwnProperty(t)) {
|
|
200
|
+
var a = ze[t];
|
|
201
201
|
this[t] = e[t] !== void 0 ? a.processor ? a.processor(e[t]) : e[t] : Sa(a);
|
|
202
202
|
}
|
|
203
203
|
}
|
|
@@ -240,9 +240,14 @@ class ct {
|
|
|
240
240
|
* get added by this function (changing the specified object).
|
|
241
241
|
*/
|
|
242
242
|
isTrusted(e) {
|
|
243
|
-
e.url && !e.protocol
|
|
244
|
-
|
|
245
|
-
|
|
243
|
+
if (e.url && !e.protocol) {
|
|
244
|
+
var t = q.protocolFromUrl(e.url);
|
|
245
|
+
if (t == null)
|
|
246
|
+
return !1;
|
|
247
|
+
e.protocol = t;
|
|
248
|
+
}
|
|
249
|
+
var a = typeof this.trust == "function" ? this.trust(e) : this.trust;
|
|
250
|
+
return !!a;
|
|
246
251
|
}
|
|
247
252
|
}
|
|
248
253
|
class O0 {
|
|
@@ -253,40 +258,40 @@ class O0 {
|
|
|
253
258
|
* Get the style of a superscript given a base in the current style.
|
|
254
259
|
*/
|
|
255
260
|
sup() {
|
|
256
|
-
return
|
|
261
|
+
return y0[Ma[this.id]];
|
|
257
262
|
}
|
|
258
263
|
/**
|
|
259
264
|
* Get the style of a subscript given a base in the current style.
|
|
260
265
|
*/
|
|
261
266
|
sub() {
|
|
262
|
-
return
|
|
267
|
+
return y0[za[this.id]];
|
|
263
268
|
}
|
|
264
269
|
/**
|
|
265
270
|
* Get the style of a fraction numerator given the fraction in the current
|
|
266
271
|
* style.
|
|
267
272
|
*/
|
|
268
273
|
fracNum() {
|
|
269
|
-
return
|
|
274
|
+
return y0[Aa[this.id]];
|
|
270
275
|
}
|
|
271
276
|
/**
|
|
272
277
|
* Get the style of a fraction denominator given the fraction in the current
|
|
273
278
|
* style.
|
|
274
279
|
*/
|
|
275
280
|
fracDen() {
|
|
276
|
-
return
|
|
281
|
+
return y0[Ta[this.id]];
|
|
277
282
|
}
|
|
278
283
|
/**
|
|
279
284
|
* Get the cramped version of a style (in particular, cramping a cramped style
|
|
280
285
|
* doesn't change the style).
|
|
281
286
|
*/
|
|
282
287
|
cramp() {
|
|
283
|
-
return
|
|
288
|
+
return y0[Ba[this.id]];
|
|
284
289
|
}
|
|
285
290
|
/**
|
|
286
291
|
* Get a text or display version of this style.
|
|
287
292
|
*/
|
|
288
293
|
text() {
|
|
289
|
-
return
|
|
294
|
+
return y0[Da[this.id]];
|
|
290
295
|
}
|
|
291
296
|
/**
|
|
292
297
|
* Return true if this style is tightly spaced (scriptstyle/scriptscriptstyle)
|
|
@@ -295,11 +300,11 @@ class O0 {
|
|
|
295
300
|
return this.size >= 2;
|
|
296
301
|
}
|
|
297
302
|
}
|
|
298
|
-
var dt = 0,
|
|
299
|
-
DISPLAY:
|
|
300
|
-
TEXT:
|
|
301
|
-
SCRIPT:
|
|
302
|
-
SCRIPTSCRIPT:
|
|
303
|
+
var dt = 0, Te = 1, _0 = 2, T0 = 3, le = 4, d0 = 5, ee = 6, n0 = 7, y0 = [new O0(dt, 0, !1), new O0(Te, 0, !0), new O0(_0, 1, !1), new O0(T0, 1, !0), new O0(le, 2, !1), new O0(d0, 2, !0), new O0(ee, 3, !1), new O0(n0, 3, !0)], Ma = [le, d0, le, d0, ee, n0, ee, n0], za = [d0, d0, d0, d0, n0, n0, n0, n0], Aa = [_0, T0, le, d0, ee, n0, ee, n0], Ta = [T0, T0, d0, d0, n0, n0, n0, n0], Ba = [Te, Te, T0, T0, d0, d0, n0, n0], Da = [dt, Te, _0, T0, _0, T0, _0, T0], R = {
|
|
304
|
+
DISPLAY: y0[dt],
|
|
305
|
+
TEXT: y0[_0],
|
|
306
|
+
SCRIPT: y0[le],
|
|
307
|
+
SCRIPTSCRIPT: y0[ee]
|
|
303
308
|
}, at = [{
|
|
304
309
|
// Latin characters beyond the Latin-1 characters we have metrics for.
|
|
305
310
|
// Needed for Czech, Hungarian and Turkish text, for example.
|
|
@@ -368,11 +373,11 @@ function Ca(r) {
|
|
|
368
373
|
}
|
|
369
374
|
return null;
|
|
370
375
|
}
|
|
371
|
-
var
|
|
372
|
-
at.forEach((r) => r.blocks.forEach((e) =>
|
|
376
|
+
var Ae = [];
|
|
377
|
+
at.forEach((r) => r.blocks.forEach((e) => Ae.push(...e)));
|
|
373
378
|
function vr(r) {
|
|
374
|
-
for (var e = 0; e <
|
|
375
|
-
if (r >=
|
|
379
|
+
for (var e = 0; e < Ae.length; e += 2)
|
|
380
|
+
if (r >= Ae[e] && r <= Ae[e + 1])
|
|
376
381
|
return !0;
|
|
377
382
|
return !1;
|
|
378
383
|
}
|
|
@@ -401,7 +406,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
|
|
|
401
406
|
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
402
407
|
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
403
408
|
M` + (1001 + e) + " " + t + "h400000v" + (40 + e) + "h-400000z";
|
|
404
|
-
},
|
|
409
|
+
}, Ea = function(e, t) {
|
|
405
410
|
return "M983 " + (10 + e + t) + `
|
|
406
411
|
l` + e / 3.13 + " -" + e + `
|
|
407
412
|
c4,-6.7,10,-10,18,-10 H400000v` + (40 + e) + `
|
|
@@ -412,7 +417,7 @@ c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
|
412
417
|
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
413
418
|
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
414
419
|
M` + (1001 + e) + " " + t + "h400000v" + (40 + e) + "h-400000z";
|
|
415
|
-
},
|
|
420
|
+
}, Ra = function(e, t) {
|
|
416
421
|
return "M424," + (2398 + e + t) + `
|
|
417
422
|
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
418
423
|
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
|
|
@@ -454,10 +459,10 @@ c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
|
454
459
|
n = qa(t, Q0);
|
|
455
460
|
break;
|
|
456
461
|
case "sqrtSize2":
|
|
457
|
-
n =
|
|
462
|
+
n = Ea(t, Q0);
|
|
458
463
|
break;
|
|
459
464
|
case "sqrtSize3":
|
|
460
|
-
n =
|
|
465
|
+
n = Ra(t, Q0);
|
|
461
466
|
break;
|
|
462
467
|
case "sqrtSize4":
|
|
463
468
|
n = Ia(t, Q0);
|
|
@@ -795,14 +800,14 @@ l0,-` + (t + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
795
800
|
throw new Error("Unknown stretchy delimiter.");
|
|
796
801
|
}
|
|
797
802
|
};
|
|
798
|
-
class
|
|
803
|
+
class ue {
|
|
799
804
|
// HtmlDomNode
|
|
800
805
|
// Never used; needed for satisfying interface.
|
|
801
806
|
constructor(e) {
|
|
802
807
|
this.children = void 0, this.classes = void 0, this.height = void 0, this.depth = void 0, this.maxFontSize = void 0, this.style = void 0, this.children = e, this.classes = [], this.height = 0, this.depth = 0, this.maxFontSize = 0, this.style = {};
|
|
803
808
|
}
|
|
804
809
|
hasClass(e) {
|
|
805
|
-
return
|
|
810
|
+
return q.contains(this.classes, e);
|
|
806
811
|
}
|
|
807
812
|
/** Convert the fragment into a node. */
|
|
808
813
|
toNode() {
|
|
@@ -825,7 +830,7 @@ class he {
|
|
|
825
830
|
return this.children.map(e).join("");
|
|
826
831
|
}
|
|
827
832
|
}
|
|
828
|
-
var
|
|
833
|
+
var x0 = {
|
|
829
834
|
"AMS-Regular": {
|
|
830
835
|
32: [0, 0, 0, 0, 0.25],
|
|
831
836
|
65: [0, 0.68889, 0, 0, 0.72222],
|
|
@@ -2900,7 +2905,7 @@ var y0 = {
|
|
|
2900
2905
|
8242: [0, 0.61111, 0, 0, 0.525],
|
|
2901
2906
|
9251: [0.11111, 0.21944, 0, 0, 0.525]
|
|
2902
2907
|
}
|
|
2903
|
-
},
|
|
2908
|
+
}, ve = {
|
|
2904
2909
|
slant: [0.25, 0.25, 0.25],
|
|
2905
2910
|
// sigma1
|
|
2906
2911
|
space: [0, 0, 0],
|
|
@@ -3056,13 +3061,13 @@ var y0 = {
|
|
|
3056
3061
|
я: "r"
|
|
3057
3062
|
};
|
|
3058
3063
|
function Ga(r, e) {
|
|
3059
|
-
|
|
3064
|
+
x0[r] = e;
|
|
3060
3065
|
}
|
|
3061
3066
|
function ft(r, e, t) {
|
|
3062
|
-
if (!
|
|
3067
|
+
if (!x0[e])
|
|
3063
3068
|
throw new Error("Font metrics not found for font: " + e + ".");
|
|
3064
|
-
var a = r.charCodeAt(0), n =
|
|
3065
|
-
if (!n && r[0] in Ot && (a = Ot[r[0]].charCodeAt(0), n =
|
|
3069
|
+
var a = r.charCodeAt(0), n = x0[e][a];
|
|
3070
|
+
if (!n && r[0] in Ot && (a = Ot[r[0]].charCodeAt(0), n = x0[e][a]), !n && t === "text" && vr(a) && (n = x0[e][77]), n)
|
|
3066
3071
|
return {
|
|
3067
3072
|
depth: n[0],
|
|
3068
3073
|
height: n[1],
|
|
@@ -3076,10 +3081,10 @@ function Va(r) {
|
|
|
3076
3081
|
var e;
|
|
3077
3082
|
if (r >= 5 ? e = 0 : r >= 3 ? e = 1 : e = 2, !Ue[e]) {
|
|
3078
3083
|
var t = Ue[e] = {
|
|
3079
|
-
cssEmPerMu:
|
|
3084
|
+
cssEmPerMu: ve.quad[e] / 18
|
|
3080
3085
|
};
|
|
3081
|
-
for (var a in
|
|
3082
|
-
|
|
3086
|
+
for (var a in ve)
|
|
3087
|
+
ve.hasOwnProperty(a) && (t[a] = ve[a][e]);
|
|
3083
3088
|
}
|
|
3084
3089
|
return Ue[e];
|
|
3085
3090
|
}
|
|
@@ -3374,19 +3379,19 @@ var nt = {
|
|
|
3374
3379
|
return t;
|
|
3375
3380
|
}, xr = function(e) {
|
|
3376
3381
|
var t = "<" + e;
|
|
3377
|
-
this.classes.length && (t += ' class="' +
|
|
3382
|
+
this.classes.length && (t += ' class="' + q.escape(L0(this.classes)) + '"');
|
|
3378
3383
|
var a = "";
|
|
3379
3384
|
for (var n in this.style)
|
|
3380
|
-
this.style.hasOwnProperty(n) && (a +=
|
|
3381
|
-
a && (t += ' style="' +
|
|
3385
|
+
this.style.hasOwnProperty(n) && (a += q.hyphenate(n) + ":" + this.style[n] + ";");
|
|
3386
|
+
a && (t += ' style="' + q.escape(a) + '"');
|
|
3382
3387
|
for (var s in this.attributes)
|
|
3383
|
-
this.attributes.hasOwnProperty(s) && (t += " " + s + '="' +
|
|
3388
|
+
this.attributes.hasOwnProperty(s) && (t += " " + s + '="' + q.escape(this.attributes[s]) + '"');
|
|
3384
3389
|
t += ">";
|
|
3385
3390
|
for (var o = 0; o < this.children.length; o++)
|
|
3386
3391
|
t += this.children[o].toMarkup();
|
|
3387
3392
|
return t += "</" + e + ">", t;
|
|
3388
3393
|
};
|
|
3389
|
-
class
|
|
3394
|
+
class he {
|
|
3390
3395
|
constructor(e, t, a, n) {
|
|
3391
3396
|
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, br.call(this, e, a, n), this.children = t || [];
|
|
3392
3397
|
}
|
|
@@ -3399,7 +3404,7 @@ class me {
|
|
|
3399
3404
|
this.attributes[e] = t;
|
|
3400
3405
|
}
|
|
3401
3406
|
hasClass(e) {
|
|
3402
|
-
return
|
|
3407
|
+
return q.contains(this.classes, e);
|
|
3403
3408
|
}
|
|
3404
3409
|
toNode() {
|
|
3405
3410
|
return yr.call(this, "span");
|
|
@@ -3416,7 +3421,7 @@ class pt {
|
|
|
3416
3421
|
this.attributes[e] = t;
|
|
3417
3422
|
}
|
|
3418
3423
|
hasClass(e) {
|
|
3419
|
-
return
|
|
3424
|
+
return q.contains(this.classes, e);
|
|
3420
3425
|
}
|
|
3421
3426
|
toNode() {
|
|
3422
3427
|
return yr.call(this, "a");
|
|
@@ -3430,7 +3435,7 @@ class Xa {
|
|
|
3430
3435
|
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 = t, this.src = e, this.classes = ["mord"], this.style = a;
|
|
3431
3436
|
}
|
|
3432
3437
|
hasClass(e) {
|
|
3433
|
-
return
|
|
3438
|
+
return q.contains(this.classes, e);
|
|
3434
3439
|
}
|
|
3435
3440
|
toNode() {
|
|
3436
3441
|
var e = document.createElement("img");
|
|
@@ -3440,10 +3445,10 @@ class Xa {
|
|
|
3440
3445
|
return e;
|
|
3441
3446
|
}
|
|
3442
3447
|
toMarkup() {
|
|
3443
|
-
var e =
|
|
3448
|
+
var e = '<img src="' + q.escape(this.src) + '"' + (' alt="' + q.escape(this.alt) + '"'), t = "";
|
|
3444
3449
|
for (var a in this.style)
|
|
3445
|
-
this.style.hasOwnProperty(a) && (t +=
|
|
3446
|
-
return t && (e += ' style="' +
|
|
3450
|
+
this.style.hasOwnProperty(a) && (t += q.hyphenate(a) + ":" + this.style[a] + ";");
|
|
3451
|
+
return t && (e += ' style="' + q.escape(t) + '"'), e += "'/>", e;
|
|
3447
3452
|
}
|
|
3448
3453
|
}
|
|
3449
3454
|
var $a = {
|
|
@@ -3453,14 +3458,14 @@ var $a = {
|
|
|
3453
3458
|
// 'ī': '\u0131\u0304', // enable when we add Extended Latin
|
|
3454
3459
|
ì: "ı̀"
|
|
3455
3460
|
};
|
|
3456
|
-
class
|
|
3461
|
+
class p0 {
|
|
3457
3462
|
constructor(e, t, a, n, s, o, h, c) {
|
|
3458
3463
|
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 = t || 0, this.depth = a || 0, this.italic = n || 0, this.skew = s || 0, this.width = o || 0, this.classes = h || [], this.style = c || {}, this.maxFontSize = 0;
|
|
3459
3464
|
var p = Ca(this.text.charCodeAt(0));
|
|
3460
3465
|
p && this.classes.push(p + "_fallback"), /[îïíì]/.test(this.text) && (this.text = $a[this.text]);
|
|
3461
3466
|
}
|
|
3462
3467
|
hasClass(e) {
|
|
3463
|
-
return
|
|
3468
|
+
return q.contains(this.classes, e);
|
|
3464
3469
|
}
|
|
3465
3470
|
/**
|
|
3466
3471
|
* Creates a text node or span from a symbol node. Note that a span is only
|
|
@@ -3478,13 +3483,13 @@ class f0 {
|
|
|
3478
3483
|
*/
|
|
3479
3484
|
toMarkup() {
|
|
3480
3485
|
var e = !1, t = "<span";
|
|
3481
|
-
this.classes.length && (e = !0, t += ' class="', t +=
|
|
3486
|
+
this.classes.length && (e = !0, t += ' class="', t += q.escape(L0(this.classes)), t += '"');
|
|
3482
3487
|
var a = "";
|
|
3483
3488
|
this.italic > 0 && (a += "margin-right:" + this.italic + "em;");
|
|
3484
3489
|
for (var n in this.style)
|
|
3485
|
-
this.style.hasOwnProperty(n) && (a +=
|
|
3486
|
-
a && (e = !0, t += ' style="' +
|
|
3487
|
-
var s =
|
|
3490
|
+
this.style.hasOwnProperty(n) && (a += q.hyphenate(n) + ":" + this.style[n] + ";");
|
|
3491
|
+
a && (e = !0, t += ' style="' + q.escape(a) + '"');
|
|
3492
|
+
var s = q.escape(this.text);
|
|
3488
3493
|
return e ? (t += ">", t += s, t += "</span>", t) : s;
|
|
3489
3494
|
}
|
|
3490
3495
|
}
|
|
@@ -3503,7 +3508,7 @@ class D0 {
|
|
|
3503
3508
|
toMarkup() {
|
|
3504
3509
|
var e = '<svg xmlns="http://www.w3.org/2000/svg"';
|
|
3505
3510
|
for (var t in this.attributes)
|
|
3506
|
-
Object.prototype.hasOwnProperty.call(this.attributes, t) && (e += " " + t + "
|
|
3511
|
+
Object.prototype.hasOwnProperty.call(this.attributes, t) && (e += " " + t + '="' + q.escape(this.attributes[t]) + '"');
|
|
3507
3512
|
e += ">";
|
|
3508
3513
|
for (var a = 0; a < this.children.length; a++)
|
|
3509
3514
|
e += this.children[a].toMarkup();
|
|
@@ -3519,7 +3524,7 @@ class P0 {
|
|
|
3519
3524
|
return this.alternate ? t.setAttribute("d", this.alternate) : t.setAttribute("d", It[this.pathName]), t;
|
|
3520
3525
|
}
|
|
3521
3526
|
toMarkup() {
|
|
3522
|
-
return this.alternate ?
|
|
3527
|
+
return this.alternate ? '<path d="' + q.escape(this.alternate) + '"/>' : '<path d="' + q.escape(It[this.pathName]) + '"/>';
|
|
3523
3528
|
}
|
|
3524
3529
|
}
|
|
3525
3530
|
class it {
|
|
@@ -3535,17 +3540,17 @@ class it {
|
|
|
3535
3540
|
toMarkup() {
|
|
3536
3541
|
var e = "<line";
|
|
3537
3542
|
for (var t in this.attributes)
|
|
3538
|
-
Object.prototype.hasOwnProperty.call(this.attributes, t) && (e += " " + t + "
|
|
3543
|
+
Object.prototype.hasOwnProperty.call(this.attributes, t) && (e += " " + t + '="' + q.escape(this.attributes[t]) + '"');
|
|
3539
3544
|
return e += "/>", e;
|
|
3540
3545
|
}
|
|
3541
3546
|
}
|
|
3542
3547
|
function Lt(r) {
|
|
3543
|
-
if (r instanceof
|
|
3548
|
+
if (r instanceof p0)
|
|
3544
3549
|
return r;
|
|
3545
3550
|
throw new Error("Expected symbolNode but got " + String(r) + ".");
|
|
3546
3551
|
}
|
|
3547
3552
|
function Wa(r) {
|
|
3548
|
-
if (r instanceof
|
|
3553
|
+
if (r instanceof he)
|
|
3549
3554
|
return r;
|
|
3550
3555
|
throw new Error("Expected span<HtmlDomNode> but got " + String(r) + ".");
|
|
3551
3556
|
}
|
|
@@ -3573,7 +3578,7 @@ function i(r, e, t, a, n, s) {
|
|
|
3573
3578
|
replace: a
|
|
3574
3579
|
}, s && a && ($[r][a] = $[r][n]);
|
|
3575
3580
|
}
|
|
3576
|
-
var l = "math", k = "text", u = "main", d = "ams", W = "accent-token", D = "bin", i0 = "close", te = "inner",
|
|
3581
|
+
var l = "math", k = "text", u = "main", d = "ams", W = "accent-token", D = "bin", i0 = "close", te = "inner", E = "mathord", _ = "op-token", h0 = "open", qe = "punct", f = "rel", q0 = "spacing", v = "textord";
|
|
3577
3582
|
i(l, u, f, "≡", "\\equiv", !0);
|
|
3578
3583
|
i(l, u, f, "≺", "\\prec", !0);
|
|
3579
3584
|
i(l, u, f, "≻", "\\succ", !0);
|
|
@@ -3598,8 +3603,8 @@ i(l, u, f, "∝", "\\propto", !0);
|
|
|
3598
3603
|
i(l, u, f, "⊢", "\\vdash", !0);
|
|
3599
3604
|
i(l, u, f, "⊣", "\\dashv", !0);
|
|
3600
3605
|
i(l, u, f, "∋", "\\owns");
|
|
3601
|
-
i(l, u,
|
|
3602
|
-
i(l, u,
|
|
3606
|
+
i(l, u, qe, ".", "\\ldotp");
|
|
3607
|
+
i(l, u, qe, "⋅", "\\cdotp");
|
|
3603
3608
|
i(l, u, v, "#", "\\#");
|
|
3604
3609
|
i(k, u, v, "#", "\\#");
|
|
3605
3610
|
i(l, u, v, "&", "\\&");
|
|
@@ -3938,36 +3943,36 @@ i(l, u, v, "⊤", "\\top");
|
|
|
3938
3943
|
i(l, u, v, "⊥", "\\bot");
|
|
3939
3944
|
i(l, u, v, "∅", "\\emptyset");
|
|
3940
3945
|
i(l, d, v, "∅", "\\varnothing");
|
|
3941
|
-
i(l, u,
|
|
3942
|
-
i(l, u,
|
|
3943
|
-
i(l, u,
|
|
3944
|
-
i(l, u,
|
|
3945
|
-
i(l, u,
|
|
3946
|
-
i(l, u,
|
|
3947
|
-
i(l, u,
|
|
3948
|
-
i(l, u,
|
|
3949
|
-
i(l, u,
|
|
3950
|
-
i(l, u,
|
|
3951
|
-
i(l, u,
|
|
3952
|
-
i(l, u,
|
|
3953
|
-
i(l, u,
|
|
3954
|
-
i(l, u,
|
|
3955
|
-
i(l, u,
|
|
3956
|
-
i(l, u,
|
|
3957
|
-
i(l, u,
|
|
3958
|
-
i(l, u,
|
|
3959
|
-
i(l, u,
|
|
3960
|
-
i(l, u,
|
|
3961
|
-
i(l, u,
|
|
3962
|
-
i(l, u,
|
|
3963
|
-
i(l, u,
|
|
3964
|
-
i(l, u,
|
|
3965
|
-
i(l, u,
|
|
3966
|
-
i(l, u,
|
|
3967
|
-
i(l, u,
|
|
3968
|
-
i(l, u,
|
|
3969
|
-
i(l, u,
|
|
3970
|
-
i(l, u,
|
|
3946
|
+
i(l, u, E, "α", "\\alpha", !0);
|
|
3947
|
+
i(l, u, E, "β", "\\beta", !0);
|
|
3948
|
+
i(l, u, E, "γ", "\\gamma", !0);
|
|
3949
|
+
i(l, u, E, "δ", "\\delta", !0);
|
|
3950
|
+
i(l, u, E, "ϵ", "\\epsilon", !0);
|
|
3951
|
+
i(l, u, E, "ζ", "\\zeta", !0);
|
|
3952
|
+
i(l, u, E, "η", "\\eta", !0);
|
|
3953
|
+
i(l, u, E, "θ", "\\theta", !0);
|
|
3954
|
+
i(l, u, E, "ι", "\\iota", !0);
|
|
3955
|
+
i(l, u, E, "κ", "\\kappa", !0);
|
|
3956
|
+
i(l, u, E, "λ", "\\lambda", !0);
|
|
3957
|
+
i(l, u, E, "μ", "\\mu", !0);
|
|
3958
|
+
i(l, u, E, "ν", "\\nu", !0);
|
|
3959
|
+
i(l, u, E, "ξ", "\\xi", !0);
|
|
3960
|
+
i(l, u, E, "ο", "\\omicron", !0);
|
|
3961
|
+
i(l, u, E, "π", "\\pi", !0);
|
|
3962
|
+
i(l, u, E, "ρ", "\\rho", !0);
|
|
3963
|
+
i(l, u, E, "σ", "\\sigma", !0);
|
|
3964
|
+
i(l, u, E, "τ", "\\tau", !0);
|
|
3965
|
+
i(l, u, E, "υ", "\\upsilon", !0);
|
|
3966
|
+
i(l, u, E, "ϕ", "\\phi", !0);
|
|
3967
|
+
i(l, u, E, "χ", "\\chi", !0);
|
|
3968
|
+
i(l, u, E, "ψ", "\\psi", !0);
|
|
3969
|
+
i(l, u, E, "ω", "\\omega", !0);
|
|
3970
|
+
i(l, u, E, "ε", "\\varepsilon", !0);
|
|
3971
|
+
i(l, u, E, "ϑ", "\\vartheta", !0);
|
|
3972
|
+
i(l, u, E, "ϖ", "\\varpi", !0);
|
|
3973
|
+
i(l, u, E, "ϱ", "\\varrho", !0);
|
|
3974
|
+
i(l, u, E, "ς", "\\varsigma", !0);
|
|
3975
|
+
i(l, u, E, "φ", "\\varphi", !0);
|
|
3971
3976
|
i(l, u, D, "∗", "*", !0);
|
|
3972
3977
|
i(l, u, D, "+", "+");
|
|
3973
3978
|
i(l, u, D, "−", "-", !0);
|
|
@@ -4026,8 +4031,8 @@ i(k, u, q0, " ", "\\space");
|
|
|
4026
4031
|
i(k, u, q0, " ", "\\nobreakspace");
|
|
4027
4032
|
i(l, u, q0, null, "\\nobreak");
|
|
4028
4033
|
i(l, u, q0, null, "\\allowbreak");
|
|
4029
|
-
i(l, u,
|
|
4030
|
-
i(l, u,
|
|
4034
|
+
i(l, u, qe, ",", ",");
|
|
4035
|
+
i(l, u, qe, ";", ";");
|
|
4031
4036
|
i(l, d, D, "⊼", "\\barwedge", !0);
|
|
4032
4037
|
i(l, d, D, "⊻", "\\veebar", !0);
|
|
4033
4038
|
i(l, u, D, "⊙", "\\odot", !0);
|
|
@@ -4118,8 +4123,8 @@ i(l, u, W, "^", "\\hat");
|
|
|
4118
4123
|
i(l, u, W, "⃗", "\\vec");
|
|
4119
4124
|
i(l, u, W, "˙", "\\dot");
|
|
4120
4125
|
i(l, u, W, "˚", "\\mathring");
|
|
4121
|
-
i(l, u,
|
|
4122
|
-
i(l, u,
|
|
4126
|
+
i(l, u, E, "", "\\@imath");
|
|
4127
|
+
i(l, u, E, "", "\\@jmath");
|
|
4123
4128
|
i(l, u, v, "ı", "ı");
|
|
4124
4129
|
i(l, u, v, "ȷ", "ȷ");
|
|
4125
4130
|
i(k, u, v, "ı", "\\i", !0);
|
|
@@ -4181,10 +4186,10 @@ for (var Xe = 0; Xe < Vt.length; Xe++) {
|
|
|
4181
4186
|
var Ut = Vt.charAt(Xe);
|
|
4182
4187
|
i(k, u, v, Ut, Ut);
|
|
4183
4188
|
}
|
|
4184
|
-
var
|
|
4185
|
-
for (var $e = 0; $e <
|
|
4186
|
-
var
|
|
4187
|
-
i(l, u,
|
|
4189
|
+
var Be = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
|
4190
|
+
for (var $e = 0; $e < Be.length; $e++) {
|
|
4191
|
+
var ge = Be.charAt($e);
|
|
4192
|
+
i(l, u, E, ge, ge), i(k, u, v, ge, ge);
|
|
4188
4193
|
}
|
|
4189
4194
|
i(l, d, v, "C", "ℂ");
|
|
4190
4195
|
i(k, d, v, "C", "ℂ");
|
|
@@ -4200,26 +4205,26 @@ i(l, d, v, "R", "ℝ");
|
|
|
4200
4205
|
i(k, d, v, "R", "ℝ");
|
|
4201
4206
|
i(l, d, v, "Z", "ℤ");
|
|
4202
4207
|
i(k, d, v, "Z", "ℤ");
|
|
4203
|
-
i(l, u,
|
|
4204
|
-
i(k, u,
|
|
4205
|
-
var
|
|
4206
|
-
for (var a0 = 0; a0 <
|
|
4207
|
-
var J =
|
|
4208
|
-
|
|
4208
|
+
i(l, u, E, "h", "ℎ");
|
|
4209
|
+
i(k, u, E, "h", "ℎ");
|
|
4210
|
+
var I = "";
|
|
4211
|
+
for (var a0 = 0; a0 < Be.length; a0++) {
|
|
4212
|
+
var J = Be.charAt(a0);
|
|
4213
|
+
I = String.fromCharCode(55349, 56320 + a0), i(l, u, E, J, I), i(k, u, v, J, I), I = String.fromCharCode(55349, 56372 + a0), i(l, u, E, J, I), i(k, u, v, J, I), I = String.fromCharCode(55349, 56424 + a0), i(l, u, E, J, I), i(k, u, v, J, I), I = String.fromCharCode(55349, 56580 + a0), i(l, u, E, J, I), i(k, u, v, J, I), I = String.fromCharCode(55349, 56684 + a0), i(l, u, E, J, I), i(k, u, v, J, I), I = String.fromCharCode(55349, 56736 + a0), i(l, u, E, J, I), i(k, u, v, J, I), I = String.fromCharCode(55349, 56788 + a0), i(l, u, E, J, I), i(k, u, v, J, I), I = String.fromCharCode(55349, 56840 + a0), i(l, u, E, J, I), i(k, u, v, J, I), I = String.fromCharCode(55349, 56944 + a0), i(l, u, E, J, I), i(k, u, v, J, I), a0 < 26 && (I = String.fromCharCode(55349, 56632 + a0), i(l, u, E, J, I), i(k, u, v, J, I), I = String.fromCharCode(55349, 56476 + a0), i(l, u, E, J, I), i(k, u, v, J, I));
|
|
4209
4214
|
}
|
|
4210
|
-
|
|
4211
|
-
i(l, u,
|
|
4212
|
-
i(k, u, v, "k",
|
|
4215
|
+
I = String.fromCharCode(55349, 56668);
|
|
4216
|
+
i(l, u, E, "k", I);
|
|
4217
|
+
i(k, u, v, "k", I);
|
|
4213
4218
|
for (var Y0 = 0; Y0 < 10; Y0++) {
|
|
4214
4219
|
var H0 = Y0.toString();
|
|
4215
|
-
|
|
4220
|
+
I = String.fromCharCode(55349, 57294 + Y0), i(l, u, E, H0, I), i(k, u, v, H0, I), I = String.fromCharCode(55349, 57314 + Y0), i(l, u, E, H0, I), i(k, u, v, H0, I), I = String.fromCharCode(55349, 57324 + Y0), i(l, u, E, H0, I), i(k, u, v, H0, I), I = String.fromCharCode(55349, 57334 + Y0), i(l, u, E, H0, I), i(k, u, v, H0, I);
|
|
4216
4221
|
}
|
|
4217
4222
|
var st = "ÐÞþ";
|
|
4218
4223
|
for (var We = 0; We < st.length; We++) {
|
|
4219
|
-
var
|
|
4220
|
-
i(l, u,
|
|
4224
|
+
var be = st.charAt(We);
|
|
4225
|
+
i(l, u, E, be, be), i(k, u, v, be, be);
|
|
4221
4226
|
}
|
|
4222
|
-
var
|
|
4227
|
+
var ye = [
|
|
4223
4228
|
["mathbf", "textbf", "Main-Bold"],
|
|
4224
4229
|
// A-Z bold upright
|
|
4225
4230
|
["mathbf", "textbf", "Main-Bold"],
|
|
@@ -4290,13 +4295,13 @@ var xe = [
|
|
|
4290
4295
|
var a = e.charCodeAt(0), n = e.charCodeAt(1), s = (a - 55296) * 1024 + (n - 56320) + 65536, o = t === "math" ? 0 : 1;
|
|
4291
4296
|
if (119808 <= s && s < 120484) {
|
|
4292
4297
|
var h = Math.floor((s - 119808) / 26);
|
|
4293
|
-
return [
|
|
4298
|
+
return [ye[h][2], ye[h][o]];
|
|
4294
4299
|
} else if (120782 <= s && s <= 120831) {
|
|
4295
4300
|
var c = Math.floor((s - 120782) / 10);
|
|
4296
4301
|
return [Yt[c][2], Yt[c][o]];
|
|
4297
4302
|
} else {
|
|
4298
4303
|
if (s === 120485 || s === 120486)
|
|
4299
|
-
return [
|
|
4304
|
+
return [ye[0][2], ye[0][o]];
|
|
4300
4305
|
if (120486 < s && s < 120782)
|
|
4301
4306
|
return ["", ""];
|
|
4302
4307
|
throw new M("Unsupported character: " + e);
|
|
@@ -4306,15 +4311,15 @@ var xe = [
|
|
|
4306
4311
|
value: e,
|
|
4307
4312
|
metrics: ft(e, t, a)
|
|
4308
4313
|
};
|
|
4309
|
-
},
|
|
4314
|
+
}, b0 = function(e, t, a, n, s) {
|
|
4310
4315
|
var o = Ee(e, t, a), h = o.metrics;
|
|
4311
4316
|
e = o.value;
|
|
4312
4317
|
var c;
|
|
4313
4318
|
if (h) {
|
|
4314
4319
|
var p = h.italic;
|
|
4315
|
-
(a === "text" || n && n.font === "mathit") && (p = 0), c = new
|
|
4320
|
+
(a === "text" || n && n.font === "mathit") && (p = 0), c = new p0(e, h.height, h.depth, p, h.skew, h.width, s);
|
|
4316
4321
|
} else
|
|
4317
|
-
typeof console != "undefined" && console.warn("No character metrics " + ("for '" + e + "' in style '" + t + "' and mode '" + a + "'")), c = new
|
|
4322
|
+
typeof console != "undefined" && console.warn("No character metrics " + ("for '" + e + "' in style '" + t + "' and mode '" + a + "'")), c = new p0(e, 0, 0, 0, 0, 0, s);
|
|
4318
4323
|
if (n) {
|
|
4319
4324
|
c.maxFontSize = n.sizeMultiplier, n.style.isTight() && c.classes.push("mtight");
|
|
4320
4325
|
var g = n.getColor();
|
|
@@ -4322,7 +4327,7 @@ var xe = [
|
|
|
4322
4327
|
}
|
|
4323
4328
|
return c;
|
|
4324
4329
|
}, Ja = function(e, t, a, n) {
|
|
4325
|
-
return n === void 0 && (n = []), a.font === "boldsymbol" && Ee(e, "Main-Bold", t).metrics ?
|
|
4330
|
+
return n === void 0 && (n = []), a.font === "boldsymbol" && Ee(e, "Main-Bold", t).metrics ? b0(e, "Main-Bold", t, a, n.concat(["mathbf"])) : e === "\\" || $[t][e].font === "main" ? b0(e, "Main-Regular", t, a, n) : b0(e, "AMS-Regular", t, a, n.concat(["amsrm"]));
|
|
4326
4331
|
}, Qa = function(e, t, a, n, s) {
|
|
4327
4332
|
return s !== "textord" && Ee(e, "Math-BoldItalic", t).metrics ? {
|
|
4328
4333
|
fontName: "Math-BoldItalic",
|
|
@@ -4334,35 +4339,35 @@ var xe = [
|
|
|
4334
4339
|
}, _a = function(e, t, a) {
|
|
4335
4340
|
var n = e.mode, s = e.text, o = ["mord"], h = n === "math" || n === "text" && t.font, c = h ? t.font : t.fontFamily, p = "", g = "";
|
|
4336
4341
|
if (s.charCodeAt(0) === 55349 && ([p, g] = Ka(s, n)), p.length > 0)
|
|
4337
|
-
return
|
|
4342
|
+
return b0(s, p, n, t, o.concat(g));
|
|
4338
4343
|
if (c) {
|
|
4339
4344
|
var y, w;
|
|
4340
4345
|
if (c === "boldsymbol") {
|
|
4341
4346
|
var x = Qa(s, n, t, o, a);
|
|
4342
4347
|
y = x.fontName, w = [x.fontClass];
|
|
4343
4348
|
} else
|
|
4344
|
-
h ? (y = Mr[c].fontName, w = [c]) : (y =
|
|
4349
|
+
h ? (y = Mr[c].fontName, w = [c]) : (y = xe(c, t.fontWeight, t.fontShape), w = [c, t.fontWeight, t.fontShape]);
|
|
4345
4350
|
if (Ee(s, y, n).metrics)
|
|
4346
|
-
return
|
|
4351
|
+
return b0(s, y, n, t, o.concat(w));
|
|
4347
4352
|
if (wr.hasOwnProperty(s) && y.slice(0, 10) === "Typewriter") {
|
|
4348
4353
|
for (var z = [], T = 0; T < s.length; T++)
|
|
4349
|
-
z.push(
|
|
4354
|
+
z.push(b0(s[T], y, n, t, o.concat(w)));
|
|
4350
4355
|
return Sr(z);
|
|
4351
4356
|
}
|
|
4352
4357
|
}
|
|
4353
4358
|
if (a === "mathord")
|
|
4354
|
-
return
|
|
4359
|
+
return b0(s, "Math-Italic", n, t, o.concat(["mathnormal"]));
|
|
4355
4360
|
if (a === "textord") {
|
|
4356
4361
|
var C = $[n][s] && $[n][s].font;
|
|
4357
4362
|
if (C === "ams") {
|
|
4358
|
-
var N =
|
|
4359
|
-
return
|
|
4363
|
+
var N = xe("amsrm", t.fontWeight, t.fontShape);
|
|
4364
|
+
return b0(s, N, n, t, o.concat("amsrm", t.fontWeight, t.fontShape));
|
|
4360
4365
|
} else if (C === "main" || !C) {
|
|
4361
|
-
var O =
|
|
4362
|
-
return
|
|
4366
|
+
var O = xe("textrm", t.fontWeight, t.fontShape);
|
|
4367
|
+
return b0(s, O, n, t, o.concat(t.fontWeight, t.fontShape));
|
|
4363
4368
|
} else {
|
|
4364
|
-
var H =
|
|
4365
|
-
return
|
|
4369
|
+
var H = xe(C, t.fontWeight, t.fontShape);
|
|
4370
|
+
return b0(s, H, n, t, o.concat(H, t.fontWeight, t.fontShape));
|
|
4366
4371
|
}
|
|
4367
4372
|
} else
|
|
4368
4373
|
throw new Error("unexpected type: " + a + " in makeOrd");
|
|
@@ -4384,7 +4389,7 @@ var xe = [
|
|
|
4384
4389
|
}, t1 = (r) => {
|
|
4385
4390
|
for (var e = 0; e < r.length - 1; e++) {
|
|
4386
4391
|
var t = r[e], a = r[e + 1];
|
|
4387
|
-
t instanceof
|
|
4392
|
+
t instanceof p0 && a instanceof p0 && e1(t, a) && (t.text += a.text, t.height = Math.max(t.height, a.height), t.depth = Math.max(t.depth, a.depth), t.italic = a.italic, r.splice(e + 1, 1), e--);
|
|
4388
4393
|
}
|
|
4389
4394
|
return r;
|
|
4390
4395
|
}, vt = function(e) {
|
|
@@ -4394,19 +4399,19 @@ var xe = [
|
|
|
4394
4399
|
}
|
|
4395
4400
|
e.height = t, e.depth = a, e.maxFontSize = n;
|
|
4396
4401
|
}, l0 = function(e, t, a, n) {
|
|
4397
|
-
var s = new
|
|
4402
|
+
var s = new he(e, t, a, n);
|
|
4398
4403
|
return vt(s), s;
|
|
4399
|
-
}, kr = (r, e, t, a) => new
|
|
4404
|
+
}, kr = (r, e, t, a) => new he(r, e, t, a), r1 = function(e, t, a) {
|
|
4400
4405
|
var n = l0([e], [], t);
|
|
4401
4406
|
return n.height = Math.max(a || t.fontMetrics().defaultRuleThickness, t.minRuleThickness), n.style.borderBottomWidth = A(n.height), n.maxFontSize = 1, n;
|
|
4402
4407
|
}, a1 = function(e, t, a, n) {
|
|
4403
4408
|
var s = new pt(e, t, a, n);
|
|
4404
4409
|
return vt(s), s;
|
|
4405
4410
|
}, Sr = function(e) {
|
|
4406
|
-
var t = new
|
|
4411
|
+
var t = new ue(e);
|
|
4407
4412
|
return vt(t), t;
|
|
4408
4413
|
}, n1 = function(e, t) {
|
|
4409
|
-
return e instanceof
|
|
4414
|
+
return e instanceof ue ? l0([], [e], t) : e;
|
|
4410
4415
|
}, i1 = function(e) {
|
|
4411
4416
|
if (e.positionType === "individualShift") {
|
|
4412
4417
|
for (var t = e.children, a = [t[0]], n = -t[0].shift - t[0].elem.depth, s = n, o = 1; o < t.length; o++) {
|
|
@@ -4475,7 +4480,7 @@ var xe = [
|
|
|
4475
4480
|
if (y < 0) {
|
|
4476
4481
|
var U = l0([], []), G = l0(["vlist"], [U]);
|
|
4477
4482
|
G.style.height = A(-y);
|
|
4478
|
-
var j = l0(["vlist-s"], [new
|
|
4483
|
+
var j = l0(["vlist-s"], [new p0("")]);
|
|
4479
4484
|
L = [l0(["vlist-r"], [V, j]), l0(["vlist-r"], [G])];
|
|
4480
4485
|
} else
|
|
4481
4486
|
L = [l0(["vlist-r"], [V])];
|
|
@@ -4484,7 +4489,7 @@ var xe = [
|
|
|
4484
4489
|
}, l1 = (r, e) => {
|
|
4485
4490
|
var t = l0(["mspace"], [], e), a = K(r, e);
|
|
4486
4491
|
return t.style.marginRight = A(a), t;
|
|
4487
|
-
},
|
|
4492
|
+
}, xe = function(e, t, a) {
|
|
4488
4493
|
var n = "";
|
|
4489
4494
|
switch (e) {
|
|
4490
4495
|
case "amsrm":
|
|
@@ -4575,7 +4580,7 @@ var xe = [
|
|
|
4575
4580
|
return c.height = s, c.style.height = A(s), c.style.width = A(n), c;
|
|
4576
4581
|
}, b = {
|
|
4577
4582
|
fontMap: Mr,
|
|
4578
|
-
makeSymbol:
|
|
4583
|
+
makeSymbol: b0,
|
|
4579
4584
|
mathsym: Ja,
|
|
4580
4585
|
makeSpan: l0,
|
|
4581
4586
|
makeSvgSpan: kr,
|
|
@@ -4666,7 +4671,7 @@ var xe = [
|
|
|
4666
4671
|
minner: {
|
|
4667
4672
|
mop: Z
|
|
4668
4673
|
}
|
|
4669
|
-
}, Ar = {},
|
|
4674
|
+
}, Ar = {}, De = {}, Ce = {};
|
|
4670
4675
|
function B(r) {
|
|
4671
4676
|
for (var {
|
|
4672
4677
|
type: e,
|
|
@@ -4688,7 +4693,7 @@ function B(r) {
|
|
|
4688
4693
|
handler: n
|
|
4689
4694
|
}, c = 0; c < t.length; ++c)
|
|
4690
4695
|
Ar[t[c]] = h;
|
|
4691
|
-
e && (s && (
|
|
4696
|
+
e && (s && (De[e] = s), o && (Ce[e] = o));
|
|
4692
4697
|
}
|
|
4693
4698
|
function $0(r) {
|
|
4694
4699
|
var {
|
|
@@ -4709,7 +4714,7 @@ function $0(r) {
|
|
|
4709
4714
|
mathmlBuilder: a
|
|
4710
4715
|
});
|
|
4711
4716
|
}
|
|
4712
|
-
var
|
|
4717
|
+
var Ne = function(e) {
|
|
4713
4718
|
return e.type === "ordgroup" && e.body.length === 1 ? e.body[0] : e;
|
|
4714
4719
|
}, Q = function(e) {
|
|
4715
4720
|
return e.type === "ordgroup" ? e.body : [e];
|
|
@@ -4731,7 +4736,7 @@ var qe = function(e) {
|
|
|
4731
4736
|
n === void 0 && (n = [null, null]);
|
|
4732
4737
|
for (var s = [], o = 0; o < e.length; o++) {
|
|
4733
4738
|
var h = P(e[o], t);
|
|
4734
|
-
if (h instanceof
|
|
4739
|
+
if (h instanceof ue) {
|
|
4735
4740
|
var c = h.children;
|
|
4736
4741
|
s.push(...c);
|
|
4737
4742
|
} else
|
|
@@ -4747,7 +4752,7 @@ var qe = function(e) {
|
|
|
4747
4752
|
var y = C0([n[0] || "leftmost"], [], t), w = C0([n[1] || "rightmost"], [], t), x = a === "root";
|
|
4748
4753
|
return Xt(s, (z, T) => {
|
|
4749
4754
|
var C = T.classes[0], N = z.classes[0];
|
|
4750
|
-
C === "mbin" &&
|
|
4755
|
+
C === "mbin" && q.contains(c1, N) ? T.classes[0] = "mord" : N === "mbin" && q.contains(m1, C) && (z.classes[0] = "mord");
|
|
4751
4756
|
}, {
|
|
4752
4757
|
node: y
|
|
4753
4758
|
}, w, x), Xt(s, (z, T) => {
|
|
@@ -4776,7 +4781,7 @@ var qe = function(e) {
|
|
|
4776
4781
|
}
|
|
4777
4782
|
n && e.pop();
|
|
4778
4783
|
}, Tr = function(e) {
|
|
4779
|
-
return e instanceof
|
|
4784
|
+
return e instanceof ue || e instanceof pt || e instanceof he && e.hasClass("enclosing") ? e : null;
|
|
4780
4785
|
}, p1 = function r(e, t) {
|
|
4781
4786
|
var a = Tr(e);
|
|
4782
4787
|
if (a) {
|
|
@@ -4797,8 +4802,8 @@ var qe = function(e) {
|
|
|
4797
4802
|
}, P = function(e, t, a) {
|
|
4798
4803
|
if (!e)
|
|
4799
4804
|
return C0();
|
|
4800
|
-
if (
|
|
4801
|
-
var n =
|
|
4805
|
+
if (De[e.type]) {
|
|
4806
|
+
var n = De[e.type](e, t);
|
|
4802
4807
|
if (a && t.size !== a.size) {
|
|
4803
4808
|
n = C0(t.sizingClasses(a), [n], t);
|
|
4804
4809
|
var s = t.sizeMultiplier / a.sizeMultiplier;
|
|
@@ -4808,7 +4813,7 @@ var qe = function(e) {
|
|
|
4808
4813
|
} else
|
|
4809
4814
|
throw new M("Got group of unknown type: '" + e.type + "'");
|
|
4810
4815
|
};
|
|
4811
|
-
function
|
|
4816
|
+
function we(r, e) {
|
|
4812
4817
|
var t = C0(["base"], r, e), a = C0(["strut"]);
|
|
4813
4818
|
return a.style.height = A(t.height + t.depth), t.depth && (a.style.verticalAlign = A(-t.depth)), t.children.unshift(a), t;
|
|
4814
4819
|
}
|
|
@@ -4821,12 +4826,12 @@ function ot(r, e) {
|
|
|
4821
4826
|
if (o.push(a[h]), a[h].hasClass("mbin") || a[h].hasClass("mrel") || a[h].hasClass("allowbreak")) {
|
|
4822
4827
|
for (var c = !1; h < a.length - 1 && a[h + 1].hasClass("mspace") && !a[h + 1].hasClass("newline"); )
|
|
4823
4828
|
h++, o.push(a[h]), a[h].hasClass("nobreak") && (c = !0);
|
|
4824
|
-
c || (s.push(
|
|
4829
|
+
c || (s.push(we(o, e)), o = []);
|
|
4825
4830
|
} else
|
|
4826
|
-
a[h].hasClass("newline") && (o.pop(), o.length > 0 && (s.push(
|
|
4827
|
-
o.length > 0 && s.push(
|
|
4831
|
+
a[h].hasClass("newline") && (o.pop(), o.length > 0 && (s.push(we(o, e)), o = []), s.push(a[h]));
|
|
4832
|
+
o.length > 0 && s.push(we(o, e));
|
|
4828
4833
|
var p;
|
|
4829
|
-
t ? (p =
|
|
4834
|
+
t ? (p = we(t0(t, e, !0)), p.classes = ["tag"], s.push(p)) : n && s.push(n);
|
|
4830
4835
|
var g = C0(["katex-html"], s);
|
|
4831
4836
|
if (g.setAttribute("aria-hidden", "true"), p) {
|
|
4832
4837
|
var y = p.children[0];
|
|
@@ -4835,7 +4840,7 @@ function ot(r, e) {
|
|
|
4835
4840
|
return g;
|
|
4836
4841
|
}
|
|
4837
4842
|
function Br(r) {
|
|
4838
|
-
return new
|
|
4843
|
+
return new ue(r);
|
|
4839
4844
|
}
|
|
4840
4845
|
class c0 {
|
|
4841
4846
|
constructor(e, t, a) {
|
|
@@ -4872,8 +4877,8 @@ class c0 {
|
|
|
4872
4877
|
toMarkup() {
|
|
4873
4878
|
var e = "<" + this.type;
|
|
4874
4879
|
for (var t in this.attributes)
|
|
4875
|
-
Object.prototype.hasOwnProperty.call(this.attributes, t) && (e += " " + t + '="', e +=
|
|
4876
|
-
this.classes.length > 0 && (e += ' class ="' +
|
|
4880
|
+
Object.prototype.hasOwnProperty.call(this.attributes, t) && (e += " " + t + '="', e += q.escape(this.attributes[t]), e += '"');
|
|
4881
|
+
this.classes.length > 0 && (e += ' class ="' + q.escape(L0(this.classes)) + '"'), e += ">";
|
|
4877
4882
|
for (var a = 0; a < this.children.length; a++)
|
|
4878
4883
|
e += this.children[a].toMarkup();
|
|
4879
4884
|
return e += "</" + this.type + ">", e;
|
|
@@ -4900,7 +4905,7 @@ class ie {
|
|
|
4900
4905
|
* (representing the text itself).
|
|
4901
4906
|
*/
|
|
4902
4907
|
toMarkup() {
|
|
4903
|
-
return
|
|
4908
|
+
return q.escape(this.toText());
|
|
4904
4909
|
}
|
|
4905
4910
|
/**
|
|
4906
4911
|
* Converts the text node into a string
|
|
@@ -4944,7 +4949,7 @@ var S = {
|
|
|
4944
4949
|
TextNode: ie,
|
|
4945
4950
|
SpaceNode: v1,
|
|
4946
4951
|
newDocumentFragment: Br
|
|
4947
|
-
},
|
|
4952
|
+
}, v0 = function(e, t, a) {
|
|
4948
4953
|
return $[t][e] && $[t][e].replace && e.charCodeAt(0) !== 55349 && !(wr.hasOwnProperty(e) && a && (a.fontFamily && a.fontFamily.slice(4, 6) === "tt" || a.font && a.font.slice(4, 6) === "tt")) && (e = $[t][e].replace), new S.TextNode(e);
|
|
4949
4954
|
}, gt = function(e) {
|
|
4950
4955
|
return e.length === 1 ? e[0] : new S.MathNode("mrow", e);
|
|
@@ -4980,7 +4985,7 @@ var S = {
|
|
|
4980
4985
|
if (a === "mathtt")
|
|
4981
4986
|
return "monospace";
|
|
4982
4987
|
var s = e.text;
|
|
4983
|
-
if (
|
|
4988
|
+
if (q.contains(["\\imath", "\\jmath"], s))
|
|
4984
4989
|
return null;
|
|
4985
4990
|
$[n][s] && $[n][s].replace && (s = $[n][s].replace);
|
|
4986
4991
|
var o = b.fontMap[a].fontName;
|
|
@@ -5021,15 +5026,15 @@ var S = {
|
|
|
5021
5026
|
}, X = function(e, t) {
|
|
5022
5027
|
if (!e)
|
|
5023
5028
|
return new S.MathNode("mrow");
|
|
5024
|
-
if (
|
|
5025
|
-
var a =
|
|
5029
|
+
if (Ce[e.type]) {
|
|
5030
|
+
var a = Ce[e.type](e, t);
|
|
5026
5031
|
return a;
|
|
5027
5032
|
} else
|
|
5028
5033
|
throw new M("Got group of unknown type: '" + e.type + "'");
|
|
5029
5034
|
};
|
|
5030
5035
|
function $t(r, e, t, a, n) {
|
|
5031
5036
|
var s = o0(r, t), o;
|
|
5032
|
-
s.length === 1 && s[0] instanceof c0 &&
|
|
5037
|
+
s.length === 1 && s[0] instanceof c0 && q.contains(["mrow", "mtable"], s[0].type) ? o = s[0] : o = new S.MathNode("mrow", s);
|
|
5033
5038
|
var h = new S.MathNode("annotation", [new S.TextNode(e)]);
|
|
5034
5039
|
h.setAttribute("encoding", "application/x-tex");
|
|
5035
5040
|
var c = new S.MathNode("semantics", [o, h]), p = new S.MathNode("math", [c]);
|
|
@@ -5164,7 +5169,7 @@ var Dr = function(e) {
|
|
|
5164
5169
|
}, S1 = function(e, t) {
|
|
5165
5170
|
function a() {
|
|
5166
5171
|
var h = 4e5, c = e.label.slice(1);
|
|
5167
|
-
if (
|
|
5172
|
+
if (q.contains(["widehat", "widecheck", "widetilde", "utilde"], c)) {
|
|
5168
5173
|
var p = e, g = k1(p.base), y, w, x;
|
|
5169
5174
|
if (g > 5)
|
|
5170
5175
|
c === "widehat" || c === "widecheck" ? (y = 420, h = 2364, x = 0.42, w = c + "4") : (y = 312, h = 2340, x = 0.34, w = "tilde4");
|
|
@@ -5263,20 +5268,20 @@ function F(r, e) {
|
|
|
5263
5268
|
return r;
|
|
5264
5269
|
}
|
|
5265
5270
|
function yt(r) {
|
|
5266
|
-
var e =
|
|
5271
|
+
var e = Re(r);
|
|
5267
5272
|
if (!e)
|
|
5268
5273
|
throw new Error("Expected node of symbol group type, but got " + (r ? "node of type " + r.type : String(r)));
|
|
5269
5274
|
return e;
|
|
5270
5275
|
}
|
|
5271
|
-
function
|
|
5276
|
+
function Re(r) {
|
|
5272
5277
|
return r && (r.type === "atom" || Za.hasOwnProperty(r.type)) ? r : null;
|
|
5273
5278
|
}
|
|
5274
5279
|
var xt = (r, e) => {
|
|
5275
5280
|
var t, a, n;
|
|
5276
5281
|
r && r.type === "supsub" ? (a = F(r.base, "accent"), t = a.base, r.base = t, n = Wa(P(r, e)), r.base = a) : (a = F(r, "accent"), t = a.base);
|
|
5277
|
-
var s = P(t, e.havingCrampedStyle()), o = a.isShifty &&
|
|
5282
|
+
var s = P(t, e.havingCrampedStyle()), o = a.isShifty && q.isCharacterBox(t), h = 0;
|
|
5278
5283
|
if (o) {
|
|
5279
|
-
var c =
|
|
5284
|
+
var c = q.getBaseElem(t), p = P(c, e.havingCrampedStyle());
|
|
5280
5285
|
h = Lt(p).skew;
|
|
5281
5286
|
}
|
|
5282
5287
|
var g = a.label === "\\c", y = g ? s.height + s.depth : Math.min(s.height, e.fontMetrics().xHeight), w;
|
|
@@ -5322,7 +5327,7 @@ var xt = (r, e) => {
|
|
|
5322
5327
|
var N = b.makeSpan(["mord", "accent"], [w], e);
|
|
5323
5328
|
return n ? (n.children[0] = N, n.height = Math.max(N.height, n.height), n.classes[0] = "mord", n) : N;
|
|
5324
5329
|
}, Nr = (r, e) => {
|
|
5325
|
-
var t = r.isStretchy ? N0.mathMLnode(r.label) : new S.MathNode("mo", [
|
|
5330
|
+
var t = r.isStretchy ? N0.mathMLnode(r.label) : new S.MathNode("mo", [v0(r.label, r.mode)]), a = new S.MathNode("mover", [X(r.base, e), t]);
|
|
5326
5331
|
return a.setAttribute("accent", "true"), a;
|
|
5327
5332
|
}, z1 = new RegExp(["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring"].map((r) => "\\" + r).join("|"));
|
|
5328
5333
|
B({
|
|
@@ -5332,7 +5337,7 @@ B({
|
|
|
5332
5337
|
numArgs: 1
|
|
5333
5338
|
},
|
|
5334
5339
|
handler: (r, e) => {
|
|
5335
|
-
var t =
|
|
5340
|
+
var t = Ne(e[0]), a = !z1.test(r.funcName), n = !a || r.funcName === "\\widehat" || r.funcName === "\\widetilde" || r.funcName === "\\widecheck";
|
|
5336
5341
|
return {
|
|
5337
5342
|
type: "accent",
|
|
5338
5343
|
mode: r.parser.mode,
|
|
@@ -5410,7 +5415,7 @@ B({
|
|
|
5410
5415
|
return a.setAttribute("accentunder", "true"), a;
|
|
5411
5416
|
}
|
|
5412
5417
|
});
|
|
5413
|
-
var
|
|
5418
|
+
var ke = (r) => {
|
|
5414
5419
|
var e = new S.MathNode("mpadded", r ? [r] : []);
|
|
5415
5420
|
return e.setAttribute("width", "+0.6em"), e.setAttribute("lspace", "0.3em"), e;
|
|
5416
5421
|
};
|
|
@@ -5511,17 +5516,17 @@ B({
|
|
|
5511
5516
|
t.setAttribute("minsize", r.label.charAt(0) === "x" ? "1.75em" : "3.0em");
|
|
5512
5517
|
var a;
|
|
5513
5518
|
if (r.body) {
|
|
5514
|
-
var n =
|
|
5519
|
+
var n = ke(X(r.body, e));
|
|
5515
5520
|
if (r.below) {
|
|
5516
|
-
var s =
|
|
5521
|
+
var s = ke(X(r.below, e));
|
|
5517
5522
|
a = new S.MathNode("munderover", [t, s, n]);
|
|
5518
5523
|
} else
|
|
5519
5524
|
a = new S.MathNode("mover", [t, n]);
|
|
5520
5525
|
} else if (r.below) {
|
|
5521
|
-
var o =
|
|
5526
|
+
var o = ke(X(r.below, e));
|
|
5522
5527
|
a = new S.MathNode("munder", [t, o]);
|
|
5523
5528
|
} else
|
|
5524
|
-
a =
|
|
5529
|
+
a = ke(), a = new S.MathNode("mover", [t, a]);
|
|
5525
5530
|
return a;
|
|
5526
5531
|
}
|
|
5527
5532
|
});
|
|
@@ -5530,7 +5535,7 @@ function qr(r, e) {
|
|
|
5530
5535
|
var t = t0(r.body, e, !0);
|
|
5531
5536
|
return A1([r.mclass], t, e);
|
|
5532
5537
|
}
|
|
5533
|
-
function
|
|
5538
|
+
function Er(r, e) {
|
|
5534
5539
|
var t, a = o0(r.body, e);
|
|
5535
5540
|
return r.mclass === "minner" ? t = new S.MathNode("mpadded", a) : r.mclass === "mord" ? r.isCharacterBox ? (t = a[0], t.type = "mi") : t = new S.MathNode("mi", a) : (r.isCharacterBox ? (t = a[0], t.type = "mo") : t = new S.MathNode("mo", a), r.mclass === "mbin" ? (t.attributes.lspace = "0.22em", t.attributes.rspace = "0.22em") : r.mclass === "mpunct" ? (t.attributes.lspace = "0em", t.attributes.rspace = "0.17em") : r.mclass === "mopen" || r.mclass === "mclose" ? (t.attributes.lspace = "0em", t.attributes.rspace = "0em") : r.mclass === "minner" && (t.attributes.lspace = "0.0556em", t.attributes.width = "+0.1111em")), t;
|
|
5536
5541
|
}
|
|
@@ -5552,13 +5557,13 @@ B({
|
|
|
5552
5557
|
mclass: "m" + a.slice(5),
|
|
5553
5558
|
// TODO(kevinb): don't prefix with 'm'
|
|
5554
5559
|
body: Q(n),
|
|
5555
|
-
isCharacterBox:
|
|
5560
|
+
isCharacterBox: q.isCharacterBox(n)
|
|
5556
5561
|
};
|
|
5557
5562
|
},
|
|
5558
5563
|
htmlBuilder: qr,
|
|
5559
|
-
mathmlBuilder:
|
|
5564
|
+
mathmlBuilder: Er
|
|
5560
5565
|
});
|
|
5561
|
-
var
|
|
5566
|
+
var Ie = (r) => {
|
|
5562
5567
|
var e = r.type === "ordgroup" && r.body.length ? r.body[0] : r;
|
|
5563
5568
|
return e.type === "atom" && (e.family === "bin" || e.family === "rel") ? "m" + e.family : "mord";
|
|
5564
5569
|
};
|
|
@@ -5575,9 +5580,9 @@ B({
|
|
|
5575
5580
|
return {
|
|
5576
5581
|
type: "mclass",
|
|
5577
5582
|
mode: t.mode,
|
|
5578
|
-
mclass:
|
|
5583
|
+
mclass: Ie(e[0]),
|
|
5579
5584
|
body: Q(e[1]),
|
|
5580
|
-
isCharacterBox:
|
|
5585
|
+
isCharacterBox: q.isCharacterBox(e[1])
|
|
5581
5586
|
};
|
|
5582
5587
|
}
|
|
5583
5588
|
});
|
|
@@ -5592,7 +5597,7 @@ B({
|
|
|
5592
5597
|
parser: t,
|
|
5593
5598
|
funcName: a
|
|
5594
5599
|
} = r, n = e[1], s = e[0], o;
|
|
5595
|
-
a !== "\\stackrel" ? o =
|
|
5600
|
+
a !== "\\stackrel" ? o = Ie(n) : o = "mrel";
|
|
5596
5601
|
var h = {
|
|
5597
5602
|
type: "op",
|
|
5598
5603
|
mode: n.mode,
|
|
@@ -5614,11 +5619,11 @@ B({
|
|
|
5614
5619
|
mode: t.mode,
|
|
5615
5620
|
mclass: o,
|
|
5616
5621
|
body: [c],
|
|
5617
|
-
isCharacterBox:
|
|
5622
|
+
isCharacterBox: q.isCharacterBox(c)
|
|
5618
5623
|
};
|
|
5619
5624
|
},
|
|
5620
5625
|
htmlBuilder: qr,
|
|
5621
|
-
mathmlBuilder:
|
|
5626
|
+
mathmlBuilder: Er
|
|
5622
5627
|
});
|
|
5623
5628
|
B({
|
|
5624
5629
|
type: "pmb",
|
|
@@ -5634,7 +5639,7 @@ B({
|
|
|
5634
5639
|
return {
|
|
5635
5640
|
type: "pmb",
|
|
5636
5641
|
mode: t.mode,
|
|
5637
|
-
mclass:
|
|
5642
|
+
mclass: Ie(e[0]),
|
|
5638
5643
|
body: Q(e[0])
|
|
5639
5644
|
};
|
|
5640
5645
|
},
|
|
@@ -5853,7 +5858,7 @@ B({
|
|
|
5853
5858
|
};
|
|
5854
5859
|
}
|
|
5855
5860
|
});
|
|
5856
|
-
var
|
|
5861
|
+
var Rr = (r, e) => {
|
|
5857
5862
|
var t = t0(r.body, e.withColor(r.color), !1);
|
|
5858
5863
|
return b.makeFragment(t);
|
|
5859
5864
|
}, Ir = (r, e) => {
|
|
@@ -5879,7 +5884,7 @@ B({
|
|
|
5879
5884
|
body: Q(n)
|
|
5880
5885
|
};
|
|
5881
5886
|
},
|
|
5882
|
-
htmlBuilder:
|
|
5887
|
+
htmlBuilder: Rr,
|
|
5883
5888
|
mathmlBuilder: Ir
|
|
5884
5889
|
});
|
|
5885
5890
|
B({
|
|
@@ -5904,7 +5909,7 @@ B({
|
|
|
5904
5909
|
body: s
|
|
5905
5910
|
};
|
|
5906
5911
|
},
|
|
5907
|
-
htmlBuilder:
|
|
5912
|
+
htmlBuilder: Rr,
|
|
5908
5913
|
mathmlBuilder: Ir
|
|
5909
5914
|
});
|
|
5910
5915
|
B({
|
|
@@ -6094,10 +6099,10 @@ var ne = function(e, t, a) {
|
|
|
6094
6099
|
}, q1 = function(e, t, a, n, s, o) {
|
|
6095
6100
|
var h = b.makeSymbol(e, "Main-Regular", s, n), c = wt(h, t, n, o);
|
|
6096
6101
|
return a && Fr(c, n, t), c;
|
|
6097
|
-
},
|
|
6102
|
+
}, E1 = function(e, t, a, n) {
|
|
6098
6103
|
return b.makeSymbol(e, "Size" + t + "-Regular", a, n);
|
|
6099
6104
|
}, Lr = function(e, t, a, n, s, o) {
|
|
6100
|
-
var h =
|
|
6105
|
+
var h = E1(e, t, s, n), c = wt(b.makeSpan(["delimsizing", "size" + t], [h], n), R.TEXT, n, o);
|
|
6101
6106
|
return a && Fr(c, n, R.TEXT), c;
|
|
6102
6107
|
}, je = function(e, t, a) {
|
|
6103
6108
|
var n;
|
|
@@ -6108,7 +6113,7 @@ var ne = function(e, t, a) {
|
|
|
6108
6113
|
elem: s
|
|
6109
6114
|
};
|
|
6110
6115
|
}, Ze = function(e, t, a) {
|
|
6111
|
-
var n =
|
|
6116
|
+
var n = x0["Size4-Regular"][e.charCodeAt(0)] ? x0["Size4-Regular"][e.charCodeAt(0)][4] : x0["Size1-Regular"][e.charCodeAt(0)][4], s = new P0("inner", La(e, Math.round(1e3 * t))), o = new D0([s], {
|
|
6112
6117
|
width: A(n),
|
|
6113
6118
|
height: A(t),
|
|
6114
6119
|
// Override CSS rule `.katex svg { width: 100% }`
|
|
@@ -6120,14 +6125,14 @@ var ne = function(e, t, a) {
|
|
|
6120
6125
|
type: "elem",
|
|
6121
6126
|
elem: h
|
|
6122
6127
|
};
|
|
6123
|
-
}, ht = 8e-3,
|
|
6128
|
+
}, ht = 8e-3, Se = {
|
|
6124
6129
|
type: "kern",
|
|
6125
6130
|
size: -1 * ht
|
|
6126
|
-
},
|
|
6131
|
+
}, R1 = ["|", "\\lvert", "\\rvert", "\\vert"], I1 = ["\\|", "\\lVert", "\\rVert", "\\Vert"], Pr = function(e, t, a, n, s, o) {
|
|
6127
6132
|
var h, c, p, g, y = "", w = 0;
|
|
6128
6133
|
h = p = g = e, c = null;
|
|
6129
6134
|
var x = "Size1-Regular";
|
|
6130
|
-
e === "\\uparrow" ? p = g = "⏐" : e === "\\Uparrow" ? p = g = "‖" : e === "\\downarrow" ? h = p = "⏐" : e === "\\Downarrow" ? h = p = "‖" : e === "\\updownarrow" ? (h = "\\uparrow", p = "⏐", g = "\\downarrow") : e === "\\Updownarrow" ? (h = "\\Uparrow", p = "‖", g = "\\Downarrow") :
|
|
6135
|
+
e === "\\uparrow" ? p = g = "⏐" : e === "\\Uparrow" ? p = g = "‖" : e === "\\downarrow" ? h = p = "⏐" : e === "\\Downarrow" ? h = p = "‖" : e === "\\updownarrow" ? (h = "\\uparrow", p = "⏐", g = "\\downarrow") : e === "\\Updownarrow" ? (h = "\\Uparrow", p = "‖", g = "\\Downarrow") : q.contains(R1, e) ? (p = "∣", y = "vert", w = 333) : q.contains(I1, e) ? (p = "∥", y = "doublevert", w = 556) : e === "[" || e === "\\lbrack" ? (h = "⎡", p = "⎢", g = "⎣", x = "Size4-Regular", y = "lbrack", w = 667) : e === "]" || e === "\\rbrack" ? (h = "⎤", p = "⎥", g = "⎦", x = "Size4-Regular", y = "rbrack", w = 667) : e === "\\lfloor" || e === "⌊" ? (p = h = "⎢", g = "⎣", x = "Size4-Regular", y = "lfloor", w = 667) : e === "\\lceil" || e === "⌈" ? (h = "⎡", p = g = "⎢", x = "Size4-Regular", y = "lceil", w = 667) : e === "\\rfloor" || e === "⌋" ? (p = h = "⎥", g = "⎦", x = "Size4-Regular", y = "rfloor", w = 667) : e === "\\rceil" || e === "⌉" ? (h = "⎤", p = g = "⎥", x = "Size4-Regular", y = "rceil", w = 667) : e === "(" || e === "\\lparen" ? (h = "⎛", p = "⎜", g = "⎝", x = "Size4-Regular", y = "lparen", w = 875) : e === ")" || e === "\\rparen" ? (h = "⎞", p = "⎟", g = "⎠", x = "Size4-Regular", y = "rparen", w = 875) : e === "\\{" || e === "\\lbrace" ? (h = "⎧", c = "⎨", g = "⎩", p = "⎪", x = "Size4-Regular") : e === "\\}" || e === "\\rbrace" ? (h = "⎫", c = "⎬", g = "⎭", p = "⎪", x = "Size4-Regular") : e === "\\lgroup" || e === "⟮" ? (h = "⎧", g = "⎩", p = "⎪", x = "Size4-Regular") : e === "\\rgroup" || e === "⟯" ? (h = "⎫", g = "⎭", p = "⎪", x = "Size4-Regular") : e === "\\lmoustache" || e === "⎰" ? (h = "⎧", g = "⎭", p = "⎪", x = "Size4-Regular") : (e === "\\rmoustache" || e === "⎱") && (h = "⎫", g = "⎩", p = "⎪", x = "Size4-Regular");
|
|
6131
6136
|
var z = ne(h, x, s), T = z.height + z.depth, C = ne(p, x, s), N = C.height + C.depth, O = ne(g, x, s), H = O.height + O.depth, V = 0, L = 1;
|
|
6132
6137
|
if (c !== null) {
|
|
6133
6138
|
var U = ne(c, x, s);
|
|
@@ -6137,24 +6142,24 @@ var ne = function(e, t, a) {
|
|
|
6137
6142
|
a && (M0 *= n.sizeMultiplier);
|
|
6138
6143
|
var r0 = Y / 2 - M0, e0 = [];
|
|
6139
6144
|
if (y.length > 0) {
|
|
6140
|
-
var U0 = Y - T - H, s0 = Math.round(Y * 1e3),
|
|
6145
|
+
var U0 = Y - T - H, s0 = Math.round(Y * 1e3), g0 = Pa(y, Math.round(U0 * 1e3)), E0 = new P0(y, g0), W0 = (w / 1e3).toFixed(3) + "em", j0 = (s0 / 1e3).toFixed(3) + "em", Le = new D0([E0], {
|
|
6141
6146
|
width: W0,
|
|
6142
6147
|
height: j0,
|
|
6143
6148
|
viewBox: "0 0 " + w + " " + s0
|
|
6144
|
-
}),
|
|
6145
|
-
|
|
6149
|
+
}), R0 = b.makeSvgSpan([], [Le], n);
|
|
6150
|
+
R0.height = s0 / 1e3, R0.style.width = W0, R0.style.height = j0, e0.push({
|
|
6146
6151
|
type: "elem",
|
|
6147
|
-
elem:
|
|
6152
|
+
elem: R0
|
|
6148
6153
|
});
|
|
6149
6154
|
} else {
|
|
6150
|
-
if (e0.push(je(g, x, s)), e0.push(
|
|
6155
|
+
if (e0.push(je(g, x, s)), e0.push(Se), c === null) {
|
|
6151
6156
|
var I0 = Y - T - H + 2 * ht;
|
|
6152
6157
|
e0.push(Ze(p, I0, n));
|
|
6153
6158
|
} else {
|
|
6154
6159
|
var m0 = (Y - T - H - V) / 2 + 2 * ht;
|
|
6155
|
-
e0.push(Ze(p, m0, n)), e0.push(
|
|
6160
|
+
e0.push(Ze(p, m0, n)), e0.push(Se), e0.push(je(c, x, s)), e0.push(Se), e0.push(Ze(p, m0, n));
|
|
6156
6161
|
}
|
|
6157
|
-
e0.push(
|
|
6162
|
+
e0.push(Se), e0.push(je(h, x, s));
|
|
6158
6163
|
}
|
|
6159
6164
|
var ae = n.havingBaseStyle(R.TEXT), Pe = b.makeVList({
|
|
6160
6165
|
positionType: "bottom",
|
|
@@ -6183,9 +6188,9 @@ var ne = function(e, t, a) {
|
|
|
6183
6188
|
ruleWidth: (t.fontMetrics().sqrtRuleThickness + o) * s
|
|
6184
6189
|
};
|
|
6185
6190
|
}, Gr = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "⌊", "⌋", "\\lceil", "\\rceil", "⌈", "⌉", "\\surd"], H1 = ["\\uparrow", "\\downarrow", "\\updownarrow", "\\Uparrow", "\\Downarrow", "\\Updownarrow", "|", "\\|", "\\vert", "\\Vert", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "⟮", "⟯", "\\lmoustache", "\\rmoustache", "⎰", "⎱"], Vr = ["<", ">", "\\langle", "\\rangle", "/", "\\backslash", "\\lt", "\\gt"], se = [0, 1.2, 1.8, 2.4, 3], F1 = function(e, t, a, n, s) {
|
|
6186
|
-
if (e === "<" || e === "\\lt" || e === "⟨" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "⟩") && (e = "\\rangle"),
|
|
6191
|
+
if (e === "<" || e === "\\lt" || e === "⟨" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "⟩") && (e = "\\rangle"), q.contains(Gr, e) || q.contains(Vr, e))
|
|
6187
6192
|
return Lr(e, t, !1, a, n, s);
|
|
6188
|
-
if (
|
|
6193
|
+
if (q.contains(H1, e))
|
|
6189
6194
|
return Pr(e, se[t], !1, a, n, s);
|
|
6190
6195
|
throw new M("Illegal delimiter: '" + e + "'");
|
|
6191
6196
|
}, L1 = [{
|
|
@@ -6265,7 +6270,7 @@ var ne = function(e, t, a) {
|
|
|
6265
6270
|
}, Xr = function(e, t, a, n, s, o) {
|
|
6266
6271
|
e === "<" || e === "\\lt" || e === "⟨" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "⟩") && (e = "\\rangle");
|
|
6267
6272
|
var h;
|
|
6268
|
-
|
|
6273
|
+
q.contains(Vr, e) ? h = L1 : q.contains(Gr, e) ? h = Ur : h = P1;
|
|
6269
6274
|
var c = Yr(e, t, h, n);
|
|
6270
6275
|
return c.type === "small" ? q1(e, c.style, a, n, s, o) : c.type === "large" ? Lr(e, c.size, a, n, s, o) : Pr(e, t, a, n, s, o);
|
|
6271
6276
|
}, V1 = function(e, t, a, n, s, o) {
|
|
@@ -6355,9 +6360,9 @@ var ne = function(e, t, a) {
|
|
|
6355
6360
|
size: 4
|
|
6356
6361
|
}
|
|
6357
6362
|
}, U1 = ["(", "\\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", "."];
|
|
6358
|
-
function
|
|
6359
|
-
var t =
|
|
6360
|
-
if (t &&
|
|
6363
|
+
function Oe(r, e) {
|
|
6364
|
+
var t = Re(r);
|
|
6365
|
+
if (t && q.contains(U1, t.text))
|
|
6361
6366
|
return t;
|
|
6362
6367
|
throw t ? new M("Invalid delimiter '" + t.text + "' after '" + e.funcName + "'", r) : new M("Invalid delimiter type '" + r.type + "'", r);
|
|
6363
6368
|
}
|
|
@@ -6369,7 +6374,7 @@ B({
|
|
|
6369
6374
|
argTypes: ["primitive"]
|
|
6370
6375
|
},
|
|
6371
6376
|
handler: (r, e) => {
|
|
6372
|
-
var t =
|
|
6377
|
+
var t = Oe(e[0], r);
|
|
6373
6378
|
return {
|
|
6374
6379
|
type: "delimsizing",
|
|
6375
6380
|
mode: r.parser.mode,
|
|
@@ -6381,7 +6386,7 @@ B({
|
|
|
6381
6386
|
htmlBuilder: (r, e) => r.delim === "." ? b.makeSpan([r.mclass]) : B0.sizedDelim(r.delim, r.size, e, r.mode, [r.mclass]),
|
|
6382
6387
|
mathmlBuilder: (r) => {
|
|
6383
6388
|
var e = [];
|
|
6384
|
-
r.delim !== "." && e.push(
|
|
6389
|
+
r.delim !== "." && e.push(v0(r.delim, r.mode));
|
|
6385
6390
|
var t = new S.MathNode("mo", e);
|
|
6386
6391
|
r.mclass === "mopen" || r.mclass === "mclose" ? t.setAttribute("fence", "true") : t.setAttribute("fence", "false"), t.setAttribute("stretchy", "true");
|
|
6387
6392
|
var a = A(B0.sizeToMaxHeight[r.size]);
|
|
@@ -6406,7 +6411,7 @@ B({
|
|
|
6406
6411
|
return {
|
|
6407
6412
|
type: "leftright-right",
|
|
6408
6413
|
mode: r.parser.mode,
|
|
6409
|
-
delim:
|
|
6414
|
+
delim: Oe(e[0], r).text,
|
|
6410
6415
|
color: t
|
|
6411
6416
|
// undefined if not set via \color
|
|
6412
6417
|
};
|
|
@@ -6420,7 +6425,7 @@ B({
|
|
|
6420
6425
|
primitive: !0
|
|
6421
6426
|
},
|
|
6422
6427
|
handler: (r, e) => {
|
|
6423
|
-
var t =
|
|
6428
|
+
var t = Oe(e[0], r), a = r.parser;
|
|
6424
6429
|
++a.leftrightDepth;
|
|
6425
6430
|
var n = a.parseExpression(!1);
|
|
6426
6431
|
--a.leftrightDepth, a.expect("\\right", !1);
|
|
@@ -6458,11 +6463,11 @@ B({
|
|
|
6458
6463
|
Kt(r);
|
|
6459
6464
|
var t = o0(r.body, e);
|
|
6460
6465
|
if (r.left !== ".") {
|
|
6461
|
-
var a = new S.MathNode("mo", [
|
|
6466
|
+
var a = new S.MathNode("mo", [v0(r.left, r.mode)]);
|
|
6462
6467
|
a.setAttribute("fence", "true"), t.unshift(a);
|
|
6463
6468
|
}
|
|
6464
6469
|
if (r.right !== ".") {
|
|
6465
|
-
var n = new S.MathNode("mo", [
|
|
6470
|
+
var n = new S.MathNode("mo", [v0(r.right, r.mode)]);
|
|
6466
6471
|
n.setAttribute("fence", "true"), r.rightColor && n.setAttribute("mathcolor", r.rightColor), t.push(n);
|
|
6467
6472
|
}
|
|
6468
6473
|
return gt(t);
|
|
@@ -6476,7 +6481,7 @@ B({
|
|
|
6476
6481
|
primitive: !0
|
|
6477
6482
|
},
|
|
6478
6483
|
handler: (r, e) => {
|
|
6479
|
-
var t =
|
|
6484
|
+
var t = Oe(e[0], r);
|
|
6480
6485
|
if (!r.parser.leftrightDepth)
|
|
6481
6486
|
throw new M("\\middle without preceding \\left", t);
|
|
6482
6487
|
return {
|
|
@@ -6500,12 +6505,12 @@ B({
|
|
|
6500
6505
|
return t;
|
|
6501
6506
|
},
|
|
6502
6507
|
mathmlBuilder: (r, e) => {
|
|
6503
|
-
var t = r.delim === "\\vert" || r.delim === "|" ?
|
|
6508
|
+
var t = r.delim === "\\vert" || r.delim === "|" ? v0("|", "text") : v0(r.delim, r.mode), a = new S.MathNode("mo", [t]);
|
|
6504
6509
|
return a.setAttribute("fence", "true"), a.setAttribute("lspace", "0.05em"), a.setAttribute("rspace", "0.05em"), a;
|
|
6505
6510
|
}
|
|
6506
6511
|
});
|
|
6507
6512
|
var kt = (r, e) => {
|
|
6508
|
-
var t = b.wrapFragment(P(r.body, e), e), a = r.label.slice(1), n = e.sizeMultiplier, s, o = 0, h =
|
|
6513
|
+
var t = b.wrapFragment(P(r.body, e), e), a = r.label.slice(1), n = e.sizeMultiplier, s, o = 0, h = q.isCharacterBox(r.body);
|
|
6509
6514
|
if (a === "sout")
|
|
6510
6515
|
s = b.makeSpan(["stretchy", "sout"]), s.height = e.fontMetrics().defaultRuleThickness / n, o = -0.5 * e.fontMetrics().xHeight;
|
|
6511
6516
|
else if (a === "phase") {
|
|
@@ -6741,7 +6746,7 @@ function w0(r) {
|
|
|
6741
6746
|
handler: n
|
|
6742
6747
|
}, c = 0; c < t.length; ++c)
|
|
6743
6748
|
$r[t[c]] = h;
|
|
6744
|
-
s && (
|
|
6749
|
+
s && (De[e] = s), o && (Ce[e] = o);
|
|
6745
6750
|
}
|
|
6746
6751
|
var Wr = {};
|
|
6747
6752
|
function m(r, e) {
|
|
@@ -6755,7 +6760,7 @@ function Jt(r) {
|
|
|
6755
6760
|
r.consume(), e.push(t === "\\hdashline"), r.consumeSpaces(), t = r.fetch().text;
|
|
6756
6761
|
return e;
|
|
6757
6762
|
}
|
|
6758
|
-
var
|
|
6763
|
+
var He = (r) => {
|
|
6759
6764
|
var e = r.parser.settings;
|
|
6760
6765
|
if (!e.displayMode)
|
|
6761
6766
|
throw new M("{" + r.envName + "} can be used only in display mode.");
|
|
@@ -6790,7 +6795,7 @@ function V0(r, e, t) {
|
|
|
6790
6795
|
c && r.gullet.macros.set("\\@eqnsw", "1", !0);
|
|
6791
6796
|
}
|
|
6792
6797
|
function V() {
|
|
6793
|
-
O && (r.gullet.macros.get("\\df@tag") ? (O.push(r.subparse([new
|
|
6798
|
+
O && (r.gullet.macros.get("\\df@tag") ? (O.push(r.subparse([new f0("\\df@tag")])), r.gullet.macros.set("\\df@tag", void 0, !0)) : O.push(!!c && r.gullet.macros.get("\\@eqnsw") === "1"));
|
|
6794
6799
|
}
|
|
6795
6800
|
for (H(), N.push(Jt(r)); ; ) {
|
|
6796
6801
|
var L = r.parseExpression(!1, p ? "\\end" : "\\\\");
|
|
@@ -6855,11 +6860,11 @@ var k0 = function(e, t) {
|
|
|
6855
6860
|
number: 3,
|
|
6856
6861
|
unit: "ex"
|
|
6857
6862
|
}, t) : 12 * y, T = 3 * y, C = e.arraystretch * z, N = 0.7 * C, O = 0.3 * C, H = 0;
|
|
6858
|
-
function V(
|
|
6859
|
-
for (var
|
|
6860
|
-
|
|
6863
|
+
function V(fe) {
|
|
6864
|
+
for (var pe = 0; pe < fe.length; ++pe)
|
|
6865
|
+
pe > 0 && (H += 0.25), p.push({
|
|
6861
6866
|
pos: H,
|
|
6862
|
-
isDashed: pe
|
|
6867
|
+
isDashed: fe[pe]
|
|
6863
6868
|
});
|
|
6864
6869
|
}
|
|
6865
6870
|
for (V(o[0]), a = 0; a < e.body.length; ++a) {
|
|
@@ -6873,44 +6878,44 @@ var k0 = function(e, t) {
|
|
|
6873
6878
|
var M0 = e.rowGaps[a], r0 = 0;
|
|
6874
6879
|
M0 && (r0 = K(M0, t), r0 > 0 && (r0 += O, G < r0 && (G = r0), r0 = 0)), e.addJot && (G += T), j.height = U, j.depth = G, H += U, j.pos = H, H += G + r0, c[a] = j, V(o[a + 1]);
|
|
6875
6880
|
}
|
|
6876
|
-
var e0 = H / 2 + t.fontMetrics().axisHeight, U0 = e.cols || [], s0 = [],
|
|
6877
|
-
if (e.tags && e.tags.some((
|
|
6881
|
+
var e0 = H / 2 + t.fontMetrics().axisHeight, U0 = e.cols || [], s0 = [], g0, E0, W0 = [];
|
|
6882
|
+
if (e.tags && e.tags.some((fe) => fe))
|
|
6878
6883
|
for (a = 0; a < s; ++a) {
|
|
6879
|
-
var j0 = c[a], Le = j0.pos - e0,
|
|
6880
|
-
|
|
6884
|
+
var j0 = c[a], Le = j0.pos - e0, R0 = e.tags[a], I0 = void 0;
|
|
6885
|
+
R0 === !0 ? I0 = b.makeSpan(["eqn-num"], [], t) : R0 === !1 ? I0 = b.makeSpan([], [], t) : I0 = b.makeSpan([], t0(R0, t, !0), t), I0.depth = j0.depth, I0.height = j0.height, W0.push({
|
|
6881
6886
|
type: "elem",
|
|
6882
6887
|
elem: I0,
|
|
6883
6888
|
shift: Le
|
|
6884
6889
|
});
|
|
6885
6890
|
}
|
|
6886
6891
|
for (
|
|
6887
|
-
n = 0,
|
|
6892
|
+
n = 0, E0 = 0;
|
|
6888
6893
|
// Continue while either there are more columns or more column
|
|
6889
6894
|
// descriptions, so trailing separators don't get lost.
|
|
6890
|
-
n < h ||
|
|
6891
|
-
++n, ++
|
|
6895
|
+
n < h || E0 < U0.length;
|
|
6896
|
+
++n, ++E0
|
|
6892
6897
|
) {
|
|
6893
|
-
for (var m0 = U0[
|
|
6894
|
-
if (ae || (
|
|
6898
|
+
for (var m0 = U0[E0] || {}, ae = !0; m0.type === "separator"; ) {
|
|
6899
|
+
if (ae || (g0 = b.makeSpan(["arraycolsep"], []), g0.style.width = A(t.fontMetrics().doubleRuleSep), s0.push(g0)), m0.separator === "|" || m0.separator === ":") {
|
|
6895
6900
|
var Pe = m0.separator === "|" ? "solid" : "dashed", Z0 = b.makeSpan(["vertical-separator"], [], t);
|
|
6896
6901
|
Z0.style.height = A(H), Z0.style.borderRightWidth = A(g), Z0.style.borderRightStyle = Pe, Z0.style.margin = "0 " + A(-g / 2);
|
|
6897
6902
|
var qt = H - e0;
|
|
6898
6903
|
qt && (Z0.style.verticalAlign = A(-qt)), s0.push(Z0);
|
|
6899
6904
|
} else
|
|
6900
6905
|
throw new M("Invalid separator type: " + m0.separator);
|
|
6901
|
-
|
|
6906
|
+
E0++, m0 = U0[E0] || {}, ae = !1;
|
|
6902
6907
|
}
|
|
6903
6908
|
if (!(n >= h)) {
|
|
6904
6909
|
var K0 = void 0;
|
|
6905
|
-
(n > 0 || e.hskipBeforeAndAfter) && (K0 =
|
|
6910
|
+
(n > 0 || e.hskipBeforeAndAfter) && (K0 = q.deflt(m0.pregap, w), K0 !== 0 && (g0 = b.makeSpan(["arraycolsep"], []), g0.style.width = A(K0), s0.push(g0)));
|
|
6906
6911
|
var J0 = [];
|
|
6907
6912
|
for (a = 0; a < s; ++a) {
|
|
6908
|
-
var
|
|
6909
|
-
if (
|
|
6910
|
-
var ha =
|
|
6911
|
-
|
|
6913
|
+
var ce = c[a], de = ce[n];
|
|
6914
|
+
if (de) {
|
|
6915
|
+
var ha = ce.pos - e0;
|
|
6916
|
+
de.depth = ce.depth, de.height = ce.height, J0.push({
|
|
6912
6917
|
type: "elem",
|
|
6913
|
-
elem:
|
|
6918
|
+
elem: de,
|
|
6914
6919
|
shift: ha
|
|
6915
6920
|
});
|
|
6916
6921
|
}
|
|
@@ -6918,7 +6923,7 @@ var k0 = function(e, t) {
|
|
|
6918
6923
|
J0 = b.makeVList({
|
|
6919
6924
|
positionType: "individualShift",
|
|
6920
6925
|
children: J0
|
|
6921
|
-
}, t), J0 = b.makeSpan(["col-align-" + (m0.align || "c")], [J0]), s0.push(J0), (n < h - 1 || e.hskipBeforeAndAfter) && (K0 =
|
|
6926
|
+
}, t), J0 = b.makeSpan(["col-align-" + (m0.align || "c")], [J0]), s0.push(J0), (n < h - 1 || e.hskipBeforeAndAfter) && (K0 = q.deflt(m0.postgap, w), K0 !== 0 && (g0 = b.makeSpan(["arraycolsep"], []), g0.style.width = A(K0), s0.push(g0)));
|
|
6922
6927
|
}
|
|
6923
6928
|
}
|
|
6924
6929
|
if (c = b.makeSpan(["mtable"], s0), p.length > 0) {
|
|
@@ -6927,15 +6932,15 @@ var k0 = function(e, t) {
|
|
|
6927
6932
|
elem: c,
|
|
6928
6933
|
shift: 0
|
|
6929
6934
|
}]; p.length > 0; ) {
|
|
6930
|
-
var
|
|
6931
|
-
|
|
6935
|
+
var Et = p.pop(), Rt = Et.pos - e0;
|
|
6936
|
+
Et.isDashed ? Ge.push({
|
|
6932
6937
|
type: "elem",
|
|
6933
6938
|
elem: ca,
|
|
6934
|
-
shift:
|
|
6939
|
+
shift: Rt
|
|
6935
6940
|
}) : Ge.push({
|
|
6936
6941
|
type: "elem",
|
|
6937
6942
|
elem: ma,
|
|
6938
|
-
shift:
|
|
6943
|
+
shift: Rt
|
|
6939
6944
|
});
|
|
6940
6945
|
}
|
|
6941
6946
|
c = b.makeVList({
|
|
@@ -6982,7 +6987,7 @@ var k0 = function(e, t) {
|
|
|
6982
6987
|
G += j[Y].length === 0 ? "none " : j[Y][0] ? "dashed " : "solid ";
|
|
6983
6988
|
return /[sd]/.test(G) && g.setAttribute("rowlines", G.trim()), w !== "" && (g = new S.MathNode("menclose", [g]), g.setAttribute("notation", w.trim())), e.arraystretch && e.arraystretch < 1 && (g = new S.MathNode("mstyle", [g]), g.setAttribute("scriptlevel", "1")), g;
|
|
6984
6989
|
}, jr = function(e, t) {
|
|
6985
|
-
e.envName.indexOf("ed") === -1 &&
|
|
6990
|
+
e.envName.indexOf("ed") === -1 && He(e);
|
|
6986
6991
|
var a = [], n = e.envName.indexOf("at") > -1 ? "alignat" : "align", s = e.envName === "split", o = V0(e.parser, {
|
|
6987
6992
|
cols: a,
|
|
6988
6993
|
addJot: !0,
|
|
@@ -7035,7 +7040,7 @@ w0({
|
|
|
7035
7040
|
numArgs: 1
|
|
7036
7041
|
},
|
|
7037
7042
|
handler(r, e) {
|
|
7038
|
-
var t =
|
|
7043
|
+
var t = Re(e[0]), a = t ? [e[0]] : F(e[0], "ordgroup").body, n = a.map(function(o) {
|
|
7039
7044
|
var h = yt(o), c = h.text;
|
|
7040
7045
|
if ("lcr".indexOf(c) !== -1)
|
|
7041
7046
|
return {
|
|
@@ -7135,7 +7140,7 @@ w0({
|
|
|
7135
7140
|
numArgs: 1
|
|
7136
7141
|
},
|
|
7137
7142
|
handler(r, e) {
|
|
7138
|
-
var t =
|
|
7143
|
+
var t = Re(e[0]), a = t ? [e[0]] : F(e[0], "ordgroup").body, n = a.map(function(o) {
|
|
7139
7144
|
var h = yt(o), c = h.text;
|
|
7140
7145
|
if ("lc".indexOf(c) !== -1)
|
|
7141
7146
|
return {
|
|
@@ -7213,7 +7218,7 @@ w0({
|
|
|
7213
7218
|
numArgs: 0
|
|
7214
7219
|
},
|
|
7215
7220
|
handler(r) {
|
|
7216
|
-
|
|
7221
|
+
q.contains(["gather", "gather*"], r.envName) && He(r);
|
|
7217
7222
|
var e = {
|
|
7218
7223
|
cols: [{
|
|
7219
7224
|
type: "align",
|
|
@@ -7247,7 +7252,7 @@ w0({
|
|
|
7247
7252
|
numArgs: 0
|
|
7248
7253
|
},
|
|
7249
7254
|
handler(r) {
|
|
7250
|
-
|
|
7255
|
+
He(r);
|
|
7251
7256
|
var e = {
|
|
7252
7257
|
autoTag: Mt(r.envName),
|
|
7253
7258
|
emptySingleRow: !0,
|
|
@@ -7267,7 +7272,7 @@ w0({
|
|
|
7267
7272
|
numArgs: 0
|
|
7268
7273
|
},
|
|
7269
7274
|
handler(r) {
|
|
7270
|
-
return
|
|
7275
|
+
return He(r), C1(r.parser);
|
|
7271
7276
|
},
|
|
7272
7277
|
htmlBuilder: k0,
|
|
7273
7278
|
mathmlBuilder: S0
|
|
@@ -7369,7 +7374,7 @@ B({
|
|
|
7369
7374
|
var {
|
|
7370
7375
|
parser: t,
|
|
7371
7376
|
funcName: a
|
|
7372
|
-
} = r, n =
|
|
7377
|
+
} = r, n = Ne(e[0]), s = a;
|
|
7373
7378
|
return s in _t && (s = _t[s]), {
|
|
7374
7379
|
type: "font",
|
|
7375
7380
|
mode: t.mode,
|
|
@@ -7389,11 +7394,11 @@ B({
|
|
|
7389
7394
|
handler: (r, e) => {
|
|
7390
7395
|
var {
|
|
7391
7396
|
parser: t
|
|
7392
|
-
} = r, a = e[0], n =
|
|
7397
|
+
} = r, a = e[0], n = q.isCharacterBox(a);
|
|
7393
7398
|
return {
|
|
7394
7399
|
type: "mclass",
|
|
7395
7400
|
mode: t.mode,
|
|
7396
|
-
mclass:
|
|
7401
|
+
mclass: Ie(a),
|
|
7397
7402
|
body: [{
|
|
7398
7403
|
type: "font",
|
|
7399
7404
|
mode: t.mode,
|
|
@@ -7671,7 +7676,7 @@ B({
|
|
|
7671
7676
|
handler(r, e) {
|
|
7672
7677
|
var {
|
|
7673
7678
|
parser: t
|
|
7674
|
-
} = r, a = e[4], n = e[5], s =
|
|
7679
|
+
} = r, a = e[4], n = e[5], s = Ne(e[0]), o = s.type === "atom" && s.family === "open" ? tr(s.text) : null, h = Ne(e[1]), c = h.type === "atom" && h.family === "close" ? tr(h.text) : null, p = F(e[2], "size"), g, y = null;
|
|
7675
7680
|
p.isBlank ? g = !0 : (y = p.value, g = y.number > 0);
|
|
7676
7681
|
var w = "auto", x = e[3];
|
|
7677
7682
|
if (x.type === "ordgroup") {
|
|
@@ -8269,7 +8274,7 @@ B({
|
|
|
8269
8274
|
});
|
|
8270
8275
|
var _r = (r, e, t, a, n, s, o) => {
|
|
8271
8276
|
r = b.makeSpan([], [r]);
|
|
8272
|
-
var h = t &&
|
|
8277
|
+
var h = t && q.isCharacterBox(t), c, p;
|
|
8273
8278
|
if (e) {
|
|
8274
8279
|
var g = P(e, a.havingStyle(n.sup()), a);
|
|
8275
8280
|
p = {
|
|
@@ -8367,7 +8372,7 @@ var _r = (r, e, t, a, n, s, o) => {
|
|
|
8367
8372
|
var t, a, n = !1, s;
|
|
8368
8373
|
r.type === "supsub" ? (t = r.sup, a = r.sub, s = F(r.base, "op"), n = !0) : s = F(r, "op");
|
|
8369
8374
|
var o = e.style, h = !1;
|
|
8370
|
-
o.size === R.DISPLAY.size && s.symbol && !
|
|
8375
|
+
o.size === R.DISPLAY.size && s.symbol && !q.contains(ea, s.name) && (h = !0);
|
|
8371
8376
|
var c;
|
|
8372
8377
|
if (s.symbol) {
|
|
8373
8378
|
var p = h ? "Size2-Regular" : "Size1-Regular", g = "";
|
|
@@ -8388,23 +8393,23 @@ var _r = (r, e, t, a, n, s, o) => {
|
|
|
8388
8393
|
}
|
|
8389
8394
|
} else if (s.body) {
|
|
8390
8395
|
var x = t0(s.body, e, !0);
|
|
8391
|
-
x.length === 1 && x[0] instanceof
|
|
8396
|
+
x.length === 1 && x[0] instanceof p0 ? (c = x[0], c.classes[0] = "mop") : c = b.makeSpan(["mop"], x, e);
|
|
8392
8397
|
} else {
|
|
8393
8398
|
for (var z = [], T = 1; T < s.name.length; T++)
|
|
8394
8399
|
z.push(b.mathsym(s.name[T], s.mode, e));
|
|
8395
8400
|
c = b.makeSpan(["mop"], z, e);
|
|
8396
8401
|
}
|
|
8397
8402
|
var C = 0, N = 0;
|
|
8398
|
-
return (c instanceof
|
|
8399
|
-
},
|
|
8403
|
+
return (c instanceof p0 || s.name === "\\oiint" || s.name === "\\oiiint") && !s.suppressBaseShift && (C = (c.height - c.depth) / 2 - e.fontMetrics().axisHeight, N = c.italic), n ? _r(c, t, a, e, o, N, C) : (C && (c.style.position = "relative", c.style.top = A(C)), c);
|
|
8404
|
+
}, me = (r, e) => {
|
|
8400
8405
|
var t;
|
|
8401
8406
|
if (r.symbol)
|
|
8402
|
-
t = new c0("mo", [
|
|
8407
|
+
t = new c0("mo", [v0(r.name, r.mode)]), q.contains(ea, r.name) && t.setAttribute("largeop", "false");
|
|
8403
8408
|
else if (r.body)
|
|
8404
8409
|
t = new c0("mo", o0(r.body, e));
|
|
8405
8410
|
else {
|
|
8406
8411
|
t = new c0("mi", [new ie(r.name.slice(1))]);
|
|
8407
|
-
var a = new c0("mo", [
|
|
8412
|
+
var a = new c0("mo", [v0("", "text")]);
|
|
8408
8413
|
r.parentIsSupSub ? t = new c0("mrow", [t, a]) : t = Br([t, a]);
|
|
8409
8414
|
}
|
|
8410
8415
|
return t;
|
|
@@ -8443,7 +8448,7 @@ B({
|
|
|
8443
8448
|
};
|
|
8444
8449
|
},
|
|
8445
8450
|
htmlBuilder: re,
|
|
8446
|
-
mathmlBuilder:
|
|
8451
|
+
mathmlBuilder: me
|
|
8447
8452
|
});
|
|
8448
8453
|
B({
|
|
8449
8454
|
type: "op",
|
|
@@ -8466,7 +8471,7 @@ B({
|
|
|
8466
8471
|
};
|
|
8467
8472
|
},
|
|
8468
8473
|
htmlBuilder: re,
|
|
8469
|
-
mathmlBuilder:
|
|
8474
|
+
mathmlBuilder: me
|
|
8470
8475
|
});
|
|
8471
8476
|
var W1 = {
|
|
8472
8477
|
"∫": "\\int",
|
|
@@ -8497,7 +8502,7 @@ B({
|
|
|
8497
8502
|
};
|
|
8498
8503
|
},
|
|
8499
8504
|
htmlBuilder: re,
|
|
8500
|
-
mathmlBuilder:
|
|
8505
|
+
mathmlBuilder: me
|
|
8501
8506
|
});
|
|
8502
8507
|
B({
|
|
8503
8508
|
type: "op",
|
|
@@ -8520,7 +8525,7 @@ B({
|
|
|
8520
8525
|
};
|
|
8521
8526
|
},
|
|
8522
8527
|
htmlBuilder: re,
|
|
8523
|
-
mathmlBuilder:
|
|
8528
|
+
mathmlBuilder: me
|
|
8524
8529
|
});
|
|
8525
8530
|
B({
|
|
8526
8531
|
type: "op",
|
|
@@ -8543,7 +8548,7 @@ B({
|
|
|
8543
8548
|
};
|
|
8544
8549
|
},
|
|
8545
8550
|
htmlBuilder: re,
|
|
8546
|
-
mathmlBuilder:
|
|
8551
|
+
mathmlBuilder: me
|
|
8547
8552
|
});
|
|
8548
8553
|
var ta = (r, e) => {
|
|
8549
8554
|
var t, a, n = !1, s;
|
|
@@ -8559,7 +8564,7 @@ var ta = (r, e) => {
|
|
|
8559
8564
|
} : y;
|
|
8560
8565
|
}), c = t0(h, e.withFont("mathrm"), !0), p = 0; p < c.length; p++) {
|
|
8561
8566
|
var g = c[p];
|
|
8562
|
-
g instanceof
|
|
8567
|
+
g instanceof p0 && (g.text = g.text.replace(/\u2212/, "-").replace(/\u2217/, "*"));
|
|
8563
8568
|
}
|
|
8564
8569
|
o = b.makeSpan(["mop"], c, e);
|
|
8565
8570
|
} else
|
|
@@ -8594,7 +8599,7 @@ var ta = (r, e) => {
|
|
|
8594
8599
|
}
|
|
8595
8600
|
var c = new S.MathNode("mi", t);
|
|
8596
8601
|
c.setAttribute("mathvariant", "normal");
|
|
8597
|
-
var p = new S.MathNode("mo", [
|
|
8602
|
+
var p = new S.MathNode("mo", [v0("", "text")]);
|
|
8598
8603
|
return r.parentIsSupSub ? new S.MathNode("mrow", [c, p]) : S.newDocumentFragment([c, p]);
|
|
8599
8604
|
};
|
|
8600
8605
|
B({
|
|
@@ -9062,7 +9067,7 @@ var K1 = function(e, t) {
|
|
|
9062
9067
|
return s ? ta : null;
|
|
9063
9068
|
} else {
|
|
9064
9069
|
if (a.type === "accent")
|
|
9065
|
-
return
|
|
9070
|
+
return q.isCharacterBox(a.base) ? xt : null;
|
|
9066
9071
|
if (a.type === "horizBrace") {
|
|
9067
9072
|
var o = !e.sub;
|
|
9068
9073
|
return o === a.isOver ? Qr : null;
|
|
@@ -9082,7 +9087,7 @@ $0({
|
|
|
9082
9087
|
base: a,
|
|
9083
9088
|
sup: n,
|
|
9084
9089
|
sub: s
|
|
9085
|
-
} = r, o = P(a, e), h, c, p = e.fontMetrics(), g = 0, y = 0, w = a &&
|
|
9090
|
+
} = r, o = P(a, e), h, c, p = e.fontMetrics(), g = 0, y = 0, w = a && q.isCharacterBox(a);
|
|
9086
9091
|
if (n) {
|
|
9087
9092
|
var x = e.havingStyle(e.style.sup());
|
|
9088
9093
|
h = P(n, x, e), w || (g = o.height - x.fontMetrics().supDrop * x.sizeMultiplier / e.sizeMultiplier);
|
|
@@ -9096,7 +9101,7 @@ $0({
|
|
|
9096
9101
|
var C = e.sizeMultiplier, N = A(0.5 / p.ptPerEm / C), O = null;
|
|
9097
9102
|
if (c) {
|
|
9098
9103
|
var H = r.base && r.base.type === "op" && r.base.name && (r.base.name === "\\oiint" || r.base.name === "\\oiiint");
|
|
9099
|
-
(o instanceof
|
|
9104
|
+
(o instanceof p0 || H) && (O = A(-o.italic));
|
|
9100
9105
|
}
|
|
9101
9106
|
var V;
|
|
9102
9107
|
if (h && c) {
|
|
@@ -9180,7 +9185,7 @@ $0({
|
|
|
9180
9185
|
return b.mathsym(r.text, r.mode, e, ["m" + r.family]);
|
|
9181
9186
|
},
|
|
9182
9187
|
mathmlBuilder(r, e) {
|
|
9183
|
-
var t = new S.MathNode("mo", [
|
|
9188
|
+
var t = new S.MathNode("mo", [v0(r.text, r.mode)]);
|
|
9184
9189
|
if (r.family === "bin") {
|
|
9185
9190
|
var a = bt(r, e);
|
|
9186
9191
|
a === "bold-italic" && t.setAttribute("mathvariant", a);
|
|
@@ -9200,7 +9205,7 @@ $0({
|
|
|
9200
9205
|
return b.makeOrd(r, e, "mathord");
|
|
9201
9206
|
},
|
|
9202
9207
|
mathmlBuilder(r, e) {
|
|
9203
|
-
var t = new S.MathNode("mi", [
|
|
9208
|
+
var t = new S.MathNode("mi", [v0(r.text, r.mode, e)]), a = bt(r, e) || "italic";
|
|
9204
9209
|
return a !== aa[t.type] && t.setAttribute("mathvariant", a), t;
|
|
9205
9210
|
}
|
|
9206
9211
|
});
|
|
@@ -9210,7 +9215,7 @@ $0({
|
|
|
9210
9215
|
return b.makeOrd(r, e, "textord");
|
|
9211
9216
|
},
|
|
9212
9217
|
mathmlBuilder(r, e) {
|
|
9213
|
-
var t =
|
|
9218
|
+
var t = v0(r.text, r.mode, e), a = bt(r, e) || "normal", n;
|
|
9214
9219
|
return r.mode === "text" ? n = new S.MathNode("mtext", [t]) : /[0-9]/.test(r.text) ? n = new S.MathNode("mn", [t]) : r.text === "\\prime" ? n = new S.MathNode("mo", [t]) : n = new S.MathNode("mi", [t]), a !== aa[n.type] && n.setAttribute("mathvariant", a), n;
|
|
9215
9220
|
}
|
|
9216
9221
|
});
|
|
@@ -9458,17 +9463,17 @@ class hr {
|
|
|
9458
9463
|
lex() {
|
|
9459
9464
|
var e = this.input, t = this.tokenRegex.lastIndex;
|
|
9460
9465
|
if (t === e.length)
|
|
9461
|
-
return new
|
|
9466
|
+
return new f0("EOF", new u0(this, t, t));
|
|
9462
9467
|
var a = this.tokenRegex.exec(e);
|
|
9463
9468
|
if (a === null || a.index !== t)
|
|
9464
|
-
throw new M("Unexpected character: '" + e[t] + "'", new
|
|
9469
|
+
throw new M("Unexpected character: '" + e[t] + "'", new f0(e[t], new u0(this, t, t + 1)));
|
|
9465
9470
|
var n = a[6] || a[3] || (a[2] ? "\\ " : " ");
|
|
9466
9471
|
if (this.catcodes[n] === 14) {
|
|
9467
9472
|
var s = e.indexOf(`
|
|
9468
9473
|
`, this.tokenRegex.lastIndex);
|
|
9469
9474
|
return s === -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 = s + 1, this.lex();
|
|
9470
9475
|
}
|
|
9471
|
-
return new
|
|
9476
|
+
return new f0(n, new u0(this, t, this.tokenRegex.lastIndex));
|
|
9472
9477
|
}
|
|
9473
9478
|
}
|
|
9474
9479
|
class n4 {
|
|
@@ -9810,7 +9815,7 @@ var cr = {
|
|
|
9810
9815
|
};
|
|
9811
9816
|
m("\\dots", function(r) {
|
|
9812
9817
|
var e = "\\dotso", t = r.expandAfterFuture().text;
|
|
9813
|
-
return t in cr ? e = cr[t] : (t.slice(0, 4) === "\\not" || t in $.math &&
|
|
9818
|
+
return t in cr ? e = cr[t] : (t.slice(0, 4) === "\\not" || t in $.math && q.contains(["bin", "rel"], $.math[t].group)) && (e = "\\dotsb"), e;
|
|
9814
9819
|
});
|
|
9815
9820
|
var Dt = {
|
|
9816
9821
|
// \rightdelim@ checks for the following:
|
|
@@ -9884,7 +9889,7 @@ m("\\pmod", "\\pod{{\\rm mod}\\mkern6mu#1}");
|
|
|
9884
9889
|
m("\\mod", "\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");
|
|
9885
9890
|
m("\\newline", "\\\\\\relax");
|
|
9886
9891
|
m("\\TeX", "\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");
|
|
9887
|
-
var ia = A(
|
|
9892
|
+
var ia = A(x0["Main-Regular"]["T".charCodeAt(0)][1] - 0.7 * x0["Main-Regular"]["A".charCodeAt(0)][1]);
|
|
9888
9893
|
m("\\LaTeX", "\\textrm{\\html@mathml{" + ("L\\kern-.36em\\raisebox{" + ia + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{LaTeX}}");
|
|
9889
9894
|
m("\\KaTeX", "\\textrm{\\html@mathml{" + ("K\\kern-.17em\\raisebox{" + ia + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{KaTeX}}");
|
|
9890
9895
|
m("\\hspace", "\\@ifstar\\@hspacer\\@hspace");
|
|
@@ -10212,7 +10217,7 @@ class s4 {
|
|
|
10212
10217
|
start: t,
|
|
10213
10218
|
end: a
|
|
10214
10219
|
} = this.consumeArg());
|
|
10215
|
-
return this.pushToken(new
|
|
10220
|
+
return this.pushToken(new f0("EOF", a.loc)), this.pushTokens(n), t.range(a, "");
|
|
10216
10221
|
}
|
|
10217
10222
|
/**
|
|
10218
10223
|
* Consume all following space tokens, without expansion.
|
|
@@ -10275,6 +10280,14 @@ class s4 {
|
|
|
10275
10280
|
o.push(this.consumeArg(t && t[h + 1]).tokens);
|
|
10276
10281
|
return o;
|
|
10277
10282
|
}
|
|
10283
|
+
/**
|
|
10284
|
+
* Increment `expansionCount` by the specified amount.
|
|
10285
|
+
* Throw an error if it exceeds `maxExpand`.
|
|
10286
|
+
*/
|
|
10287
|
+
countExpansion(e) {
|
|
10288
|
+
if (this.expansionCount += e, this.expansionCount > this.settings.maxExpand)
|
|
10289
|
+
throw new M("Too many expansions: infinite loop or need to increase maxExpand setting");
|
|
10290
|
+
}
|
|
10278
10291
|
/**
|
|
10279
10292
|
* Expand the next token only once if possible.
|
|
10280
10293
|
*
|
|
@@ -10301,8 +10314,7 @@ class s4 {
|
|
|
10301
10314
|
throw new M("Undefined control sequence: " + a);
|
|
10302
10315
|
return this.pushToken(t), !1;
|
|
10303
10316
|
}
|
|
10304
|
-
|
|
10305
|
-
throw new M("Too many expansions: infinite loop or need to increase maxExpand setting");
|
|
10317
|
+
this.countExpansion(1);
|
|
10306
10318
|
var s = n.tokens, o = this.consumeArgs(n.numArgs, n.delimiters);
|
|
10307
10319
|
if (n.numArgs) {
|
|
10308
10320
|
s = s.slice();
|
|
@@ -10347,7 +10359,7 @@ class s4 {
|
|
|
10347
10359
|
* tokens, or return `undefined` if no such macro is defined.
|
|
10348
10360
|
*/
|
|
10349
10361
|
expandMacro(e) {
|
|
10350
|
-
return this.macros.has(e) ? this.expandTokens([new
|
|
10362
|
+
return this.macros.has(e) ? this.expandTokens([new f0(e)]) : void 0;
|
|
10351
10363
|
}
|
|
10352
10364
|
/**
|
|
10353
10365
|
* Fully expand the given token stream and return the resulting list of
|
|
@@ -10361,7 +10373,7 @@ class s4 {
|
|
|
10361
10373
|
var n = this.stack.pop();
|
|
10362
10374
|
n.treatAsRelax && (n.noexpand = !1, n.treatAsRelax = !1), t.push(n);
|
|
10363
10375
|
}
|
|
10364
|
-
return t;
|
|
10376
|
+
return this.countExpansion(t.length), t;
|
|
10365
10377
|
}
|
|
10366
10378
|
/**
|
|
10367
10379
|
* Fully expand the given macro name and return the result as a string,
|
|
@@ -10418,7 +10430,7 @@ class s4 {
|
|
|
10418
10430
|
return t != null ? typeof t == "string" || typeof t == "function" || !t.unexpandable : F0.hasOwnProperty(e) && !F0[e].primitive;
|
|
10419
10431
|
}
|
|
10420
10432
|
}
|
|
10421
|
-
var dr = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,
|
|
10433
|
+
var dr = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/, Me = Object.freeze({
|
|
10422
10434
|
"₊": "+",
|
|
10423
10435
|
"₋": "-",
|
|
10424
10436
|
"₌": "=",
|
|
@@ -10914,7 +10926,7 @@ var dr = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗ
|
|
|
10914
10926
|
Ώ: "Ώ",
|
|
10915
10927
|
Ὼ: "Ὼ"
|
|
10916
10928
|
};
|
|
10917
|
-
class
|
|
10929
|
+
class Fe {
|
|
10918
10930
|
constructor(e, t) {
|
|
10919
10931
|
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 s4(e, t, this.mode), this.settings = t, this.leftrightDepth = 0;
|
|
10920
10932
|
}
|
|
@@ -10965,7 +10977,7 @@ class ue {
|
|
|
10965
10977
|
*/
|
|
10966
10978
|
subparse(e) {
|
|
10967
10979
|
var t = this.nextToken;
|
|
10968
|
-
this.consume(), this.gullet.pushToken(new
|
|
10980
|
+
this.consume(), this.gullet.pushToken(new f0("}")), this.gullet.pushTokens(e);
|
|
10969
10981
|
var a = this.parseExpression(!1);
|
|
10970
10982
|
return this.expect("}"), this.nextToken = t, a;
|
|
10971
10983
|
}
|
|
@@ -10984,7 +10996,7 @@ class ue {
|
|
|
10984
10996
|
for (var a = []; ; ) {
|
|
10985
10997
|
this.mode === "math" && this.consumeSpaces();
|
|
10986
10998
|
var n = this.fetch();
|
|
10987
|
-
if (
|
|
10999
|
+
if (Fe.endOfExpression.indexOf(n.text) !== -1 || t && n.text === t || e && F0[n.text] && F0[n.text].infix)
|
|
10988
11000
|
break;
|
|
10989
11001
|
var s = this.parseAtom(t);
|
|
10990
11002
|
if (s) {
|
|
@@ -11102,16 +11114,16 @@ class ue {
|
|
|
11102
11114
|
mode: this.mode,
|
|
11103
11115
|
body: c
|
|
11104
11116
|
};
|
|
11105
|
-
} else if (
|
|
11106
|
-
var p =
|
|
11107
|
-
for (this.consume(); ; ) {
|
|
11117
|
+
} else if (Me[s.text]) {
|
|
11118
|
+
var p = dr.test(s.text), g = [];
|
|
11119
|
+
for (g.push(new f0(Me[s.text])), this.consume(); ; ) {
|
|
11108
11120
|
var y = this.fetch().text;
|
|
11109
|
-
if (!
|
|
11121
|
+
if (!Me[y] || dr.test(y) !== p)
|
|
11110
11122
|
break;
|
|
11111
|
-
|
|
11123
|
+
g.unshift(new f0(Me[y])), this.consume();
|
|
11112
11124
|
}
|
|
11113
|
-
var w =
|
|
11114
|
-
|
|
11125
|
+
var w = this.subparse(g);
|
|
11126
|
+
p ? n = {
|
|
11115
11127
|
type: "ordgroup",
|
|
11116
11128
|
mode: "math",
|
|
11117
11129
|
body: w
|
|
@@ -11481,11 +11493,11 @@ class ue {
|
|
|
11481
11493
|
return o;
|
|
11482
11494
|
}
|
|
11483
11495
|
}
|
|
11484
|
-
|
|
11496
|
+
Fe.endOfExpression = ["}", "\\endgroup", "\\end", "\\right", "&"];
|
|
11485
11497
|
var Ct = function(e, t) {
|
|
11486
11498
|
if (!(typeof e == "string" || e instanceof String))
|
|
11487
11499
|
throw new TypeError("KaTeX can only parse string typed expression");
|
|
11488
|
-
var a = new
|
|
11500
|
+
var a = new Fe(e, t);
|
|
11489
11501
|
delete a.gullet.macros.current["\\df@tag"];
|
|
11490
11502
|
var n = a.parse();
|
|
11491
11503
|
if (delete a.gullet.macros.current["\\current@color"], delete a.gullet.macros.current["\\color"], a.gullet.macros.get("\\df@tag")) {
|
|
@@ -11495,7 +11507,7 @@ var Ct = function(e, t) {
|
|
|
11495
11507
|
type: "tag",
|
|
11496
11508
|
mode: "text",
|
|
11497
11509
|
body: n,
|
|
11498
|
-
tag: a.subparse([new
|
|
11510
|
+
tag: a.subparse([new f0("\\df@tag")])
|
|
11499
11511
|
}];
|
|
11500
11512
|
}
|
|
11501
11513
|
return n;
|
|
@@ -11516,7 +11528,7 @@ var l4 = function(e, t) {
|
|
|
11516
11528
|
}, ua = function(e, t, a) {
|
|
11517
11529
|
if (a.throwOnError || !(e instanceof M))
|
|
11518
11530
|
throw e;
|
|
11519
|
-
var n = b.makeSpan(["katex-error"], [new
|
|
11531
|
+
var n = b.makeSpan(["katex-error"], [new p0(t)]);
|
|
11520
11532
|
return n.setAttribute("title", e.toString()), n.setAttribute("style", "color:" + a.errorColor), n;
|
|
11521
11533
|
}, Nt = function(e, t) {
|
|
11522
11534
|
var a = new ct(t);
|
|
@@ -11538,7 +11550,7 @@ var l4 = function(e, t) {
|
|
|
11538
11550
|
/**
|
|
11539
11551
|
* Current KaTeX version
|
|
11540
11552
|
*/
|
|
11541
|
-
version: "0.16.
|
|
11553
|
+
version: "0.16.10",
|
|
11542
11554
|
/**
|
|
11543
11555
|
* Renders the given LaTeX into an HTML+MathML combination, and adds
|
|
11544
11556
|
* it as a child to the specified DOM node.
|
|
@@ -11556,7 +11568,7 @@ var l4 = function(e, t) {
|
|
|
11556
11568
|
/**
|
|
11557
11569
|
* The shema of Settings
|
|
11558
11570
|
*/
|
|
11559
|
-
SETTINGS_SCHEMA:
|
|
11571
|
+
SETTINGS_SCHEMA: ze,
|
|
11560
11572
|
/**
|
|
11561
11573
|
* Parses the given LaTeX into KaTeX's internal parse tree structure,
|
|
11562
11574
|
* without rendering to HTML or MathML.
|
|
@@ -11611,9 +11623,9 @@ var l4 = function(e, t) {
|
|
|
11611
11623
|
* to change. Use at your own risk.
|
|
11612
11624
|
*/
|
|
11613
11625
|
__domTree: {
|
|
11614
|
-
Span:
|
|
11626
|
+
Span: he,
|
|
11615
11627
|
Anchor: pt,
|
|
11616
|
-
SymbolNode:
|
|
11628
|
+
SymbolNode: p0,
|
|
11617
11629
|
SvgNode: D0,
|
|
11618
11630
|
PathNode: P0,
|
|
11619
11631
|
LineNode: it
|